@flussonic/flussonic-dvr-player 25.7.2 → 25.7.3

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.
@@ -13,7 +13,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
15
  ***************************************************************************** */
16
- var r=function(e,t){return(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])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function u(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(s(arguments[t]));return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(37);function i(e){return function t(n){return 0===arguments.length||Object(r.a)(n)?t:e.apply(this,arguments)}}},function(e,t,n){"use strict";var r=n(200),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);e.exports=r?a:function(e){return function(){return o.apply(e,arguments)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(5),i=n(3),o=n(37);function a(e){return function t(n,a,s){switch(arguments.length){case 0:return t;case 1:return Object(o.a)(n)?t:Object(i.a)((function(t,r){return e(n,t,r)}));case 2:return Object(o.a)(n)&&Object(o.a)(a)?t:Object(o.a)(n)?Object(i.a)((function(t,n){return e(t,a,n)})):Object(o.a)(a)?Object(i.a)((function(t,r){return e(n,t,r)})):Object(r.a)((function(t){return e(n,a,t)}));default:return Object(o.a)(n)&&Object(o.a)(a)&&Object(o.a)(s)?t:Object(o.a)(n)&&Object(o.a)(a)?Object(i.a)((function(t,n){return e(t,n,s)})):Object(o.a)(n)&&Object(o.a)(s)?Object(i.a)((function(t,n){return e(t,a,n)})):Object(o.a)(a)&&Object(o.a)(s)?Object(i.a)((function(t,r){return e(n,t,r)})):Object(o.a)(n)?Object(r.a)((function(t){return e(t,a,s)})):Object(o.a)(a)?Object(r.a)((function(t){return e(n,t,s)})):Object(o.a)(s)?Object(r.a)((function(t){return e(n,a,t)})):e(n,a,s)}}}},function(e,t,n){var r=n(343);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";n.d(t,"h",(function(){return i})),n.d(t,"l",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"i",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"r",(function(){return l})),n.d(t,"w",(function(){return f})),n.d(t,"p",(function(){return d})),n.d(t,"n",(function(){return h})),n.d(t,"m",(function(){return p})),n.d(t,"o",(function(){return g})),n.d(t,"k",(function(){return m})),n.d(t,"j",(function(){return v})),n.d(t,"f",(function(){return y})),n.d(t,"e",(function(){return b})),n.d(t,"q",(function(){return _})),n.d(t,"s",(function(){return w})),n.d(t,"u",(function(){return E})),n.d(t,"g",(function(){return T})),n.d(t,"v",(function(){return O})),n.d(t,"t",(function(){return R})),n.d(t,"d",(function(){return P}));var r=n(19),i="undefined"==typeof window;function o(){}function a(e,t){return"function"==typeof e?e(t):e}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function u(e){return Array.isArray(e)?e:[e]}function c(e,t){return e.filter((function(e){return-1===t.indexOf(e)}))}function l(e,t,n){var r=e.slice(0);return r[t]=n,r}function f(e,t){return Math.max(e+(t||0)-Date.now(),0)}function d(e,t,n){return k(e)?"function"==typeof t?Object(r.a)({},n,{queryKey:e,queryFn:t}):Object(r.a)({},t,{queryKey:e}):e}function h(e,t,n){return k(e)?"function"==typeof t?Object(r.a)({},n,{mutationKey:e,mutationFn:t}):Object(r.a)({},t,{mutationKey:e}):"function"==typeof e?Object(r.a)({},t,{mutationFn:e}):Object(r.a)({},e)}function p(e,t,n){return k(e)?[Object(r.a)({},t,{queryKey:e}),n]:[e||{},t]}function g(e,t){return k(e)?Object(r.a)({},t,{mutationKey:e}):e}function m(e,t){var n=e.active,r=e.exact,i=e.fetching,o=e.inactive,a=e.predicate,s=e.queryKey,u=e.stale;if(k(s))if(r){if(t.queryHash!==y(s,t.options))return!1}else if(!_(t.queryKey,s))return!1;var c=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(n,o);if("none"===c)return!1;if("all"!==c){var l=t.isActive();if("active"===c&&!l)return!1;if("inactive"===c&&l)return!1}return("boolean"!=typeof u||t.isStale()===u)&&(("boolean"!=typeof i||t.isFetching()===i)&&!(a&&!a(t)))}function v(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(k(o)){if(!t.options.mutationKey)return!1;if(n){if(b(t.options.mutationKey)!==b(o))return!1}else if(!_(t.options.mutationKey,o))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&!(i&&!i(t))}function y(e,t){return((null==t?void 0:t.queryKeyHashFn)||b)(e)}function b(e){var t,n=u(e);return t=n,JSON.stringify(t,(function(e,t){return S(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function _(e,t){return function e(t,n){if(t===n)return!0;if(typeof t!=typeof n)return!1;if(t&&n&&"object"==typeof t&&"object"==typeof n)return!Object.keys(n).some((function(r){return!e(t[r],n[r])}));return!1}(u(e),u(t))}function w(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||S(e)&&S(t)){for(var r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},s=0,u=0;u<o;u++){var c=n?u:i[u];a[c]=w(e[c],t[c]),a[c]===e[c]&&s++}return r===o&&s===r?e:a}return t}function E(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function S(e){if(!x(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!!x(n)&&!!n.hasOwnProperty("isPrototypeOf")}function x(e){return"[object Object]"===Object.prototype.toString.call(e)}function k(e){return"string"==typeof e||Array.isArray(e)}function T(e){return e instanceof Error}function O(e){return new Promise((function(t){setTimeout(t,e)}))}function R(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function P(){if("function"==typeof AbortController)return new AbortController}},function(e,t,n){"use strict";var r=n(20),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},function(e,t,n){"use strict";var r=n(200),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},function(e,t,n){"use strict";(function(t){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,n(128))},function(e,t,n){"use strict";n.r(t),n.d(t,"mergeRanges",(function(){return s})),n.d(t,"diff",(function(){return u})),n.d(t,"substitute",(function(){return c})),n.d(t,"makeAppOpts",(function(){return l})),n.d(t,"hour",(function(){return f})),n.d(t,"setMinimalRange",(function(){return d})),n.d(t,"now",(function(){return h})),n.d(t,"floorToHour",(function(){return p})),n.d(t,"pad",(function(){return g})),n.d(t,"pad2",(function(){return m})),n.d(t,"humanTime",(function(){return v})),n.d(t,"humanDate",(function(){return y})),n.d(t,"throttle",(function(){return b})),n.d(t,"utc_to_relative",(function(){return _})),n.d(t,"getFirstHourSegmentIndex",(function(){return w})),n.d(t,"utcToRelative",(function(){return E})),n.d(t,"relativeToUtc",(function(){return S})),n.d(t,"getDayRangeByUtc",(function(){return x})),n.d(t,"isInRange",(function(){return k})),n.d(t,"intersection",(function(){return T})),n.d(t,"getNearLeftFrom",(function(){return O})),n.d(t,"currentUrl",(function(){return R})),n.d(t,"CheckInRange",(function(){return P})),n.d(t,"canFastSeek",(function(){return A})),n.d(t,"isIOS",(function(){return C})),n.d(t,"calculateScaleTimeline",(function(){return L}));var r=n(71),i=n(148),o=n.n(i),a=new RegExp("{([a-zA-Z]+)}","ig");function s(e,t){var n=[],r=[],i={},o=0,a=e.length,s=t.length;if(0===s)return e;for(;o<a;){for(var u=e[o].opened_at,c=e[o].closed_at,l=0;l<s;){g(u,c,t[l].opened_at,t[l].closed_at)&&(n.push(o),r.push(l),i[o]=l),l++}o++}var f=n.map((function(n){return{opened_at:Math.min(e[n].opened_at,t[i[n]].opened_at),closed_at:Math.max(e[n].closed_at,t[i[n]].closed_at)}})),d=e.filter((function(e,t){return-1===n.indexOf(t)})),h=t.filter((function(e,t){return-1===r.indexOf(t)})),p=d.concat(f,h);return p.sort((function(e,t){return e.closed_at<t.closed_at?-1:e.closed_at>t.closed_at?1:0})),p;function g(e,t,n,r){return e<=n&&t>=n||n<e&&r>=e}}function u(){for(var e,t,n,r,i,o=[].slice.call(arguments,0),a=o.length,s=o[0],u={},c=1;c<a;c++)for(e=o[c],n=(t=Object.keys(e)).length,i=0;i<n;i++)l(e[r=t[i]],s[r])||(u[r]=e[r]);return u;function l(e,t){return e===t}}function c(e,t){return e?t?e.replace(a,(function(e,n){return void 0!==t[n]?t[n]:e})):e:""}function l(e){var t="undefined"!=typeof window?window.location.search.substring(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){return e[decodeURIComponent(t[0])]=decodeURIComponent(t[1]),e}),{}):{},n=parseInt(t.play_duration,10),r=t.autoplay,i={name:e.name,streamer_http:"undefined"!=typeof window?window.location.protocol+"//"+window.location.host:"",thumbnails_enabled:e.thumbnails_enabled,from:t.from?parseInt(t.from):null,zoom:t.zoom?parseInt(t.zoom):null,proto:t.proto,locale:t.locale||"en",debug:"true"==t.debug,play_duration:n&&!isNaN(n)?n:null,tracks:t.tracks,autoPlay:!r||"true"==r},o=t[e.auth_token];o&&(i.auth_token=e.auth_token+"="+o);var a=parseInt(e.rtmp_port,10);return a>0&&(i.streamer_rtmp="undefined"!=typeof window?"rtmp://"+window.location.hostname+":"+a:""),i}function f(e){return 3600*Math.floor(e/3600)}function d(e,t){return{from:f(e),to:f(t+3600)}}function h(){return Math.round((new Date).getTime()/1e3)}function p(e){return 3600*Math.floor(e/3600)}function g(e,t){var n=e+"";return"00000000000000000000".slice(0,t-n.length)+n}function m(e){return e<=9?"0"+e:e}function v(e,t){t=null==t||t;if(!(e>0))return"";var n=new Date;n.setTime(1e3*e);var r=!(!1===t),i=r?n.getHours():n.getUTCHours(),o=r?n.getMinutes():n.getUTCMinutes(),a=r?n.getSeconds():n.getUTCSeconds();return m(i)+":"+m(o)+":"+m(a)}function y(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(t){t=null==t||t;if(!(e>0))return"";var r=new Date;r.setTime(Math.round(1e3*e));var i=!(!1===t),o=i?r.getDate():r.getUTCDate(),a=(i?r.getMonth():r.getUTCMonth())+1,s=i?r.getFullYear():r.getUTCFullYear();return n?m(o)+"."+m(a)+"."+g(s,4):g(s,4)+"."+m(a)+"."+m(o)}(t)}function b(e,t){var n,r,i=!1;return function o(){if(i)return n=arguments,void(r=this);e.apply(this,arguments),i=!0,setTimeout((function(){i=!1,n&&r&&(o.apply(r,n),r=n=void 0)}),t)}}function _(e,t,n){if(!n)return 0;for(var r=0,i=0;i<n.length&&!(n[i].closed_at>=t);i++);if(i>=n.length)return 0;if(n[i].opened_at<t&&n[i].closed_at>=e)return e-t;if(n[i].opened_at<t&&(r+=n[i].closed_at-t,i++),i>=n.length)return e-t;for(;i<n.length&&n[i].opened_at<t+3600;i++){if(n[i].opened_at<=e&&e<=n[i].closed_at)return r+e-n[i].opened_at;r+=n[i].opened_at}return r}function w(e,t){for(var n=0,r=e.length;n<r&&!(e[n].closed_at>=t);n++);return(n>=r||n<r&&t>e[n].closed_at)&&(n=-1),n}function E(e,t,n){if(Math.trunc(e/3600)!==t/3600)throw new Error("utc should be into h");if(e<t)throw new Error("utc should be gt h");var r=this.getFirstHourSegmentIndex(n,t);if(-1===r)throw new Error("no segments to play");var i=t;n[r]&&n[r].opened_at>t&&(i=n[r].opened_at);for(var o=i,a=n.length,s=0;r<a;){var u=n[r],c=u.opened_at,l=u.closed_at;if(c>e)break;if(e<=l){o=e;break}if(r+1<a&&e>l&&e<n[r+1].opened_at)return void console.error("you click to empty range");r+1<a&&e>n[r+1].opened_at&&(o=n[r+1].opened_at,s+=n[r+1].opened_at-l),r++}return o-i-s}function S(e,t,n){for(var r=t,i=0;i<n.length&&!(n[i].closed_at>=e);)i++;if(i>=n.length)return e+t;if(n[i].opened_at<=e&&n[i].closed_at>=e){if(e+t<=n[i].closed_at)return e+t;r-=n[i].closed_at-n[i].opened_at-(e-n[i].opened_at),i++}for(;i<n.length;){if(r<=n[i].closed_at-n[i].opened_at)return n[i].opened_at+r;if(++i>=n.length||!n[i])break;r-=n[i].closed_at-n[i].opened_at}return e+t}function x(e){var t=new Date,n=new Date;return t.setTime(1e3*e),n.setTime(1e3*e),t.setHours(0,0,0,0),n.setHours(23,59,59,999),{start:Math.round(t.getTime()/1e3),end:Math.round(n.getTime()/1e3)}}function k(e,t){for(var n=t.length,r=0;r<n;){var i=t[r],o=i.opened_at,a=i.closed_at;if(e<o)return!1;if(e>a)r++;else{if(e>=o&&e<=a)return!0;r++}}return!1}function T(e,t){var n=e.start<t.start?e:t,r=n===e?t:e;return!(n.end<r.start)&&{start:r.start,end:n.end<r.end?n.end:r.end}}function O(e,t){for(var n=t.length,r=0;r<n;){var i=t[r],o=i.opened_at,a=i.closed_at;if(e<o)return o;if(e>a)r++;else{if(e>=o&&e<=a)return e;r++}}return"live"}function R(e,t){var n=new URL(e),i=Object(r.parse)(n.search.replace(/^\?/,"")),a=o()(i,{$merge:t});return n.search=Object(r.stringify)(a),n.toString()}Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var o=Object.keys(Object(i)),a=0,s=o.length;a<s;a++){var u=o[a],c=Object.getOwnPropertyDescriptor(i,u);void 0!==c&&c.enumerable&&(n[u]=i[u])}}return n}}),Math.trunc||(Math.trunc=function(e){return e=+e,isFinite(e)?e-e%1||(e<0?-0:0===e?e:0):e}),Int8Array.__proto__&&!Int8Array.__proto__.opened_at&&(Int8Array.__proto__.opened_at=function(e,t,n){var r=Int8Array.__proto__;if("function"!=typeof this)throw new TypeError("# is not a constructor");if(this.__proto__!==r)throw new TypeError("this is not a typed array.");if("function"!=typeof(t=t||function(e){return e}))throw new TypeError("specified argument is not a function");if(!(e=Object(e)).length)return new this(0);for(var i=[],o=0;o<e.length;o++)i.push(e[o]);var a=new this((i=i.map(t,n)).length);for(o=0;o<a.length;o++)a[o]=i[o];return a});var P=function(e,t){if("string"==typeof t)return!1;for(var n=t.length,r=0;r<n;){var i=t[r],o=i.opened_at,a=i.closed_at;if(e<o)return;if(e>a)r++;else{if(e>=o&&e<=a){var s=a,u="live";return t[r+1]&&(u=t[r+1].opened_at),{sectionEnd:s,nextSection:u,playbackDuration:s-e}}r++}}};function A(e,t){if("string"!=typeof t){for(var n=t.length,r=0;r<n;){var i=t[r],o=i.opened_at,a=i.closed_at;if(e>=o&&e<=a)return!0;r++}return!1}}var C=function(){return/iPad|iPhone|iPod|iPad Simulator|iPhone Simulator|iPod Simulator/.test(navigator.userAgent)},L=function(e,t,n,r){var i=n?200:1e3,o="in"===t?-15:15;return e&&e.deltaY&&(o=n?e.deltaY/3:e.deltaY),r&&(o*=3),{requestAnimationStopTime:i,deltaYScaleCount:o}},D={mergeRanges:s,diff:u,substitute:c,makeAppOpts:l,hour:f,setMinimalRange:d,now:h,floorToHour:p,pad:g,pad2:m,humanTime:v,humanDate:y,throttle:b,utc_to_relative:_,getFirstHourSegmentIndex:w,utcToRelative:E,relativeToUtc:S,getDayRangeByUtc:x,isInRange:k,intersection:T,getNearLeftFrom:O,currentUrl:R,CheckInRange:P,canFastSeek:A,isIOS:C,calculateScaleTimeline:L};t.default=D},function(e,t,n){"use strict";t.a={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}}},function(e,t,n){"use strict";var r=n(9);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){"use strict";var r=n(13),i=n(139),o=n(26),a=n(155),s=n(153),u=n(344),c=r.Symbol,l=i("wks"),f=u?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return o(l,e)||(l[e]=s&&o(c,e)?c[e]:f("Symbol."+e)),l[e]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(33),i=n(197);function o(e,t,n){return function(){if(0===arguments.length)return n();var o=arguments[arguments.length-1];if(!Object(r.a)(o)){for(var a=0;a<e.length;){if("function"==typeof o[e[a]])return o[e[a]].apply(o,Array.prototype.slice.call(arguments,0,-1));a+=1}if(Object(i.a)(o)){var s=t.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(o)}}return n.apply(this,arguments)}}},function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(24);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},function(e,t,n){"use strict";var r=n(13),i=n(24),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e]):r[e]&&r[e][t]}},function(e,t,n){"use strict";var r=n(24),i=n(154),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a function")}},function(e,t,n){"use strict";var r=n(102),i=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},function(e,t,n){"use strict";var r="object"==typeof document&&document.all;e.exports=void 0===r&&void 0!==r?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(10),i=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):Object(r.t)((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.schedule((function(){e.apply(void 0,r)}))}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&Object(r.t)((function(){e.batchNotifyFn((function(){t.forEach((function(t){e.notifyFn(t)}))}))}))},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}())},function(e,t,n){"use strict";var r=n(6),i=n(29),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},function(e,t,n){"use strict";var r,i,o,a=n(306),s=n(16),u=n(13),c=n(24),l=n(20),f=n(26),d=n(102),h=n(154),p=n(66),g=n(36),m=n(47),v=n(82),y=n(67),b=n(112),_=n(17),w=n(155),E=n(35),S=E.enforce,x=E.get,k=u.Int8Array,T=k&&k.prototype,O=u.Uint8ClampedArray,R=O&&O.prototype,P=k&&y(k),A=T&&y(T),C=Object.prototype,L=u.TypeError,D=_("toStringTag"),I=w("TYPED_ARRAY_TAG"),j=a&&!!b&&"Opera"!==d(u.opera),M=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},U=function(e){var t=y(e);if(l(t)){var n=x(t);return n&&f(n,"TypedArrayConstructor")?n.TypedArrayConstructor:U(t)}},B=function(e){if(!l(e))return!1;var t=d(e);return f(N,t)||f(F,t)};for(r in N)(o=(i=u[r])&&i.prototype)?S(o).TypedArrayConstructor=i:j=!1;for(r in F)(o=(i=u[r])&&i.prototype)&&(S(o).TypedArrayConstructor=i);if((!j||!c(P)||P===Function.prototype)&&(P=function(){throw new L("Incorrect invocation")},j))for(r in N)u[r]&&b(u[r],P);if((!j||!A||A===C)&&(A=P.prototype,j))for(r in N)u[r]&&b(u[r].prototype,A);if(j&&y(R)!==A&&b(R,A),s&&!f(A,D))for(r in M=!0,m(A,D,{configurable:!0,get:function(){return l(this)?this[I]:void 0}}),N)u[r]&&p(u[r],I,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:j,TYPED_ARRAY_TAG:M&&I,aTypedArray:function(e){if(B(e))return e;throw new L("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!b||v(P,e)))return e;throw new L(h(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(s){if(n)for(var i in N){var o=u[i];if(o&&f(o.prototype,e))try{delete o.prototype[e]}catch(n){try{o.prototype[e]=t}catch(e){}}}A[e]&&!n||g(A,e,n?t:j&&T[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,i;if(s){if(b){if(n)for(r in N)if((i=u[r])&&f(i,e))try{delete i[e]}catch(e){}if(P[e]&&!n)return;try{return g(P,e,n?t:j&&P[e]||t)}catch(e){}}for(r in N)!(i=u[r])||i[e]&&!n||g(i,e,t)}},getTypedArrayConstructor:U,isView:function(e){if(!l(e))return!1;var t=d(e);return"DataView"===t||f(N,t)||f(F,t)},isTypedArray:B,TypedArray:P,TypedArrayPrototype:A}},function(e,t,n){"use strict";e.exports=!1},function(e,t,n){"use strict";var r=n(43),i=Object;e.exports=function(e){return i(r(e))}},function(e,t,n){"use strict";var r=n(101);e.exports=function(e){return r(e.length)}},function(e,t,n){"use strict";var r=n(61),i=n(5),o=n(3),a=n(125),s=Object(o.a)((function(e,t){return 1===e?Object(i.a)(t):Object(r.a)(e,Object(a.a)(e,[],t))}));t.a=s},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";t.a=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(t,e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r,i,o,a=n(348),s=n(13),u=n(20),c=n(66),l=n(26),f=n(226),d=n(230),h=n(201),p=s.TypeError,g=s.WeakMap;if(a||f.state){var m=f.state||(f.state=new g);m.get=m.get,m.has=m.has,m.set=m.set,r=function(e,t){if(m.has(e))throw new p("Object already initialized");return t.facade=e,m.set(e,t),t},i=function(e){return m.get(e)||{}},o=function(e){return m.has(e)}}else{var v=d("state");h[v]=!0,r=function(e,t){if(l(e,v))throw new p("Object already initialized");return t.facade=e,c(e,v,t),t},i=function(e){return l(e,v)?e[v]:{}},o=function(e){return l(e,v)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){"use strict";var r=n(24),i=n(42),o=n(228),a=n(289);e.exports=function(e,t,n,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:t;if(r(n)&&o(n,c,s),s.global)u?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(u=!0):delete e[t]}catch(e){}u?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";var r=n(157),i=n(22),o=n(200),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(343);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(16),i=n(346),o=n(347),a=n(11),s=n(129),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor;t.f=r?o?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=l(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),i)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";var r=n(65),i=TypeError;e.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(3);function i(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}var o=n(111);var a=n(34),s=n(173),u=n(52),c=n(151);function l(e,t,n,r){var a=i(e),s=i(t);function u(e,t){return f(e,t,n.slice(),r.slice())}return!Object(o.a)((function(e,t){return!Object(o.a)(u,t,e)}),s,a)}function f(e,t,n,r){if(Object(s.a)(e,t))return!0;var i,o,d=Object(c.a)(e);if(d!==Object(c.a)(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(d){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(i=e.constructor,null==(o=String(i).match(/^function (\w*)/))?"":o[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Object(s.a)(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Object(s.a)(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var h=n.length-1;h>=0;){if(n[h]===e)return r[h]===t;h-=1}switch(d){case"Map":return e.size===t.size&&l(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&l(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var p=Object(u.a)(e);if(p.length!==Object(u.a)(t).length)return!1;var g=n.concat([e]),m=r.concat([t]);for(h=p.length-1;h>=0;){var v=p[h];if(!Object(a.a)(v,t)||!f(t[v],e[v],g,m))return!1;h-=1}return!0}var d=Object(r.a)((function(e,t){return f(e,t,[],[])}));t.a=d},function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"l",(function(){return c})),n.d(t,"j",(function(){return l})),n.d(t,"i",(function(){return f})),n.d(t,"f",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"k",(function(){return p})),n.d(t,"n",(function(){return g})),n.d(t,"m",(function(){return m})),n.d(t,"h",(function(){return v})),n.d(t,"g",(function(){return y}));var r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(e,Error)}}function o(e,t){return r.call(e)==="[object "+t+"]"}function a(e){return o(e,"ErrorEvent")}function s(e){return o(e,"DOMError")}function u(e){return o(e,"DOMException")}function c(e){return o(e,"String")}function l(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function f(e){return o(e,"Object")}function d(e){return"undefined"!=typeof Event&&y(e,Event)}function h(e){return"undefined"!=typeof Element&&y(e,Element)}function p(e){return o(e,"RegExp")}function g(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function m(e){return f(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e){return"number"==typeof e&&e!=e}function y(e,t){try{return e instanceof t}catch(e){return!1}}},function(e,t,n){"use strict";var r=n(350);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},function(e,t,n){"use strict";var r=n(228),i=n(42);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},function(e,t,n){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},function(e,t,n){var r=n(117).default,i=n(1028);e.exports=function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(1029);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";function r(e,t){var n;t=t||[];var r=(e=e||[]).length,i=t.length,o=[];for(n=0;n<r;)o[o.length]=e[n],n+=1;for(n=0;n<i;)o[o.length]=t[n],n+=1;return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(5),i=n(34),o=n(279),a=!{toString:null}.propertyIsEnumerable("toString"),s=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],u=function(){return arguments.propertyIsEnumerable("length")}(),c=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},l="function"!=typeof Object.keys||u?Object(r.a)((function(e){if(Object(e)!==e)return[];var t,n,r=[],l=u&&Object(o.a)(e);for(t in e)!Object(i.a)(t,e)||l&&"length"===t||(r[r.length]=t);if(a)for(n=s.length-1;n>=0;)t=s[n],Object(i.a)(t,e)&&!c(r,t)&&(r[r.length]=t),n-=1;return r})):Object(r.a)((function(e){return Object(e)!==e?[]:Object.keys(e)}));t.a=l},function(e,t,n){"use strict";var r=n(295),i=n(26),o=n(352),a=n(42).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},function(e,t,n){"use strict";var r=n(39),i=n(12),o=n(11),a=n(154),s=n(299),u=n(30),c=n(82),l=n(159),f=n(140),d=n(141),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},g=p.prototype;e.exports=function(e,t,n){var m,v,y,b,_,w,E,S=n&&n.that,x=!(!n||!n.AS_ENTRIES),k=!(!n||!n.IS_RECORD),T=!(!n||!n.IS_ITERATOR),O=!(!n||!n.INTERRUPTED),R=r(t,S),P=function(e){return m&&d(m,"normal",e),new p(!0,e)},A=function(e){return x?(o(e),O?R(e[0],e[1],P):R(e[0],e[1])):O?R(e,P):R(e)};if(k)m=e.iterator;else if(T)m=e;else{if(!(v=f(e)))throw new h(a(e)+" is not iterable");if(s(v)){for(y=0,b=u(e);b>y;y++)if((_=A(e[y]))&&c(g,_))return _;return new p(!1)}m=l(e,v)}for(w=k?e.next:m.next;!(E=i(w,m)).done;){try{_=A(E.value)}catch(e){d(m,"throw",e)}if("object"==typeof _&&_&&c(g,_))return _}return new p(!1)}},function(e,t,n){"use strict";var r=n(17),i=n(58),o=n(42).f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t,n){"use strict";var r=n(127),i=n(7),o=Object(i.a)(Object(r.a)("slice",(function(e,t,n){return Array.prototype.slice.call(n,e,t)})));t.a=o},function(e,t,n){"use strict";var r=n(22),i=n(65);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},function(e,t,n){"use strict";var r,i=n(11),o=n(293),a=n(291),s=n(201),u=n(351),c=n(227),l=n(230),f=l("IE_PROTO"),d=function(){},h=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;g="undefined"!=typeof document?document.domain&&r?p(r):((t=c("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F):p(r);for(var n=a.length;n--;)delete g.prototype[a[n]];return g()};s[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=i(e),n=new d,d.prototype=null,n[f]=e):n=g(),void 0===t?n:o.f(n,t)}},function(e,t,n){"use strict";var r=n(39),i=n(6),o=n(137),a=n(29),s=n(30),u=n(204),c=i([].push),l=function(e){var t=1===e,n=2===e,i=3===e,l=4===e,f=6===e,d=7===e,h=5===e||f;return function(p,g,m,v){for(var y,b,_=a(p),w=o(_),E=s(w),S=r(g,m),x=0,k=v||u,T=t?k(p,E):n||d?k(p,0):void 0;E>x;x++)if((h||x in w)&&(b=S(y=w[x],x,_),e))if(t)T[x]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return x;case 2:c(T,y)}else switch(e){case 4:return!1;case 7:c(T,y)}return f?-1:i||l?l:T}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},function(e,t,n){"use strict";var r=n(126),i=n(3),o=n(18),a=n(110),s=n(278),u=n(31),c=n(52),l=Object(i.a)(Object(o.a)(["fantasy-land/map","map"],s.a,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Object(u.a)(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return Object(r.a)((function(n,r){return n[r]=e(t[r]),n}),{},Object(c.a)(t));default:return Object(a.a)(e,t)}})));t.a=l},function(e,t,n){"use strict";function r(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,i){return t.apply(this,arguments)};case 5:return function(e,n,r,i,o){return t.apply(this,arguments)};case 6:return function(e,n,r,i,o,a){return t.apply(this,arguments)};case 7:return function(e,n,r,i,o,a,s){return t.apply(this,arguments)};case 8:return function(e,n,r,i,o,a,s,u){return t.apply(this,arguments)};case 9:return function(e,n,r,i,o,a,s,u,c){return t.apply(this,arguments)};case 10:return function(e,n,r,i,o,a,s,u,c,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(0),i=n(1060);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var o=(new r.Component).updater;e.exports=i(r.Component,r.isValidElement,o)},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(1018)},function(e,t,n){"use strict";var r=n(137),i=n(43);e.exports=function(e){return r(i(e))}},function(e,t,n){"use strict";e.exports=function(e){return null==e}},function(e,t,n){"use strict";var r=n(16),i=n(42),o=n(100);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";var r=n(26),i=n(24),o=n(29),a=n(230),s=n(298),u=a("IE_PROTO"),c=Object,l=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=o(e);if(r(t,u))return t[u];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof c?l:null}},function(e,t,n){var r=n(1056),i=n(1057),o=n(482),a=n(1058);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerLogger=t.getFormattedErrorMessage=t.getFormattedEventMessage=t.getFormattedEventName=void 0;const s=n(0),u=o(n(337)),c=n(1059),l={headers:{"X-Authorization":"Bearer dd988397-48cc-49f2-85cf-7dcac77f93bc"}};t.getFormattedEventName=e=>{switch(e){case"play_init":return"player_init";case"play_init_mse":return"player_init_mse";case"play_init_hls":return"player_init_hls";case"play_started":return"player_play";case"play_pause":return"player_pause";case"play_stall":return"player_stall";default:return console.error("Unknown eventName: "+e),e}};t.getFormattedEventMessage=e=>{switch(e){case"play_init":return"DVR Player initialized";case"play_init_mse":return"DVR Player msePlayer initialized";case"play_init_hls":return"DVR Player hlsPlayer initialized";case"play_started":return"DVR Player is playing";case"play_pause":return"DVR Player is paused";case"play_stall":return"DVR Player stalled";default:return console.error("Unknown eventName: "+e),e}};t.getFormattedErrorMessage=e=>{switch(e){case"long_bufferization":return"DVR Player long bufferization";case"corrupted_frag":return"DVR Player corrupted fragment";default:return console.error("Unknown errorName: "+e),e}};t.PlayerLogger=e=>{var t,{logger:n,logEventQueue:r,clearLogEventQueue:i,streamInfo:o,getPlayerStats:f}=e,d=a(e,["logger","logEventQueue","clearLogEventQueue","streamInfo","getPlayerStats"]);const h=(0,c.custom_player_log)(),p=null===(t=Object.values(o))||void 0===t?void 0:t[0];return(0,s.useEffect)(()=>{if(u.isEmpty(r))return;const e=e=>{const t=e.data.event,n=e.key||"",r="player_error"===t,i=r?void 0:e.data.event_message,o=r?e.data.error_message:void 0,a=r?e.data.error_name:void 0,s=f(),u=Object.assign(Object.assign(Object.assign(Object.assign({app_name:"@flussonic/flussonic-dvr-player",app_version:"25.7.2",event:t,stream:(null==p?void 0:p.name)||"",stream_title:(null==p?void 0:p.title)||"",protocol:(null==s?void 0:s.proto)||"",player_session_id:(null==s?void 0:s.source_id)||"",os_version:(null==s?void 0:s.user_agent)||"",uts_ms:n,server_instance_id:(null==p?void 0:p.instance_id)||""},i&&{event_message:i}),a&&{error_name:a}),o&&{error_message:o}),d);h({body:u,config:l})};r.forEach(t=>{"player_play"===t.data.event&&(n.stopLogging(),n.initLogging(()=>{const n=Object.assign({},t);n.key=Date.now(),e(n)})),"player_pause"===t.data.event&&n.stopLogging(),e(t)}),i()},[n,r,i,f]),(0,s.useEffect)(()=>()=>{n.stopLogging()},[n]),null},t.default=(0,s.memo)(t.PlayerLogger)},function(e,t,n){"use strict";n.r(t),n.d(t,"Trans",(function(){return se})),n.d(t,"TransWithoutContext",(function(){return H})),n.d(t,"useTranslation",(function(){return he})),n.d(t,"withTranslation",(function(){return ve})),n.d(t,"Translation",(function(){return be})),n.d(t,"I18nextProvider",(function(){return _e})),n.d(t,"withSSR",(function(){return xe})),n.d(t,"useSSR",(function(){return we})),n.d(t,"initReactI18next",(function(){return J})),n.d(t,"setDefaults",(function(){return j})),n.d(t,"getDefaults",(function(){return M})),n.d(t,"setI18n",(function(){return N})),n.d(t,"getI18n",(function(){return F})),n.d(t,"I18nContext",(function(){return te})),n.d(t,"composeInitialProps",(function(){return re})),n.d(t,"getInitialProps",(function(){return ie})),n.d(t,"date",(function(){return ke})),n.d(t,"time",(function(){return Te})),n.d(t,"number",(function(){return Oe})),n.d(t,"select",(function(){return Re})),n.d(t,"plural",(function(){return Pe})),n.d(t,"selectOrdinal",(function(){return Ae}));var r=n(8),i=n.n(r),o=n(119),a=n.n(o),s=n(0),u=n(117),c=n.n(u),l=n(506),f=n.n(l),d=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function h(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(f.a[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var i=new RegExp(d),o=null;null!==(o=i.exec(e));)if(o[0].trim())if(o[1]){var a=o[1].trim(),s=[a,""];a.indexOf("=")>-1&&(s=a.split("=")),t.attrs[s[0]]=s[1],i.lastIndex--}else o[2]&&(t.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return t}var p=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,g=/^\s*$/,m=Object.create(null);function v(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(v,"")+"</"+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var y={parse:function(e,t){t||(t={}),t.components||(t.components=m);var n,r=[],i=[],o=-1,a=!1;if(0!==e.indexOf("<")){var s=e.indexOf("<");r.push({type:"text",content:-1===s?e:e.substring(0,s)})}return e.replace(p,(function(s,u){if(a){if(s!=="</"+n.name+">")return;a=!1}var c,l="/"!==s.charAt(1),f=s.startsWith("\x3c!--"),d=u+s.length,p=e.charAt(d);if(f){var m=h(s);return o<0?(r.push(m),r):((c=i[o]).children.push(m),r)}if(l&&(o++,"tag"===(n=h(s)).type&&t.components[n.name]&&(n.type="component",a=!0),n.voidElement||a||!p||"<"===p||n.children.push({type:"text",content:e.slice(d,e.indexOf("<",d))}),0===o&&r.push(n),(c=i[o-1])&&c.children.push(n),i[o]=n),(!l||n.voidElement)&&(o>-1&&(n.voidElement||n.name===s.slice(2,-1))&&(o--,n=-1===o?r:i[o]),!a&&"<"!==p&&p)){c=-1===o?r:i[o].children;var v=e.indexOf("<",d),y=e.slice(d,-1===v?void 0:v);g.test(y)&&(y=" "),(v>-1&&o+c.length>=0||" "!==y)&&c.push({type:"text",content:y})}})),r},stringify:function(e){return e.reduce((function(e,t){return e+v("",t)}),"")}};function b(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var _={};function w(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&_[t[0]]||("string"==typeof t[0]&&(_[t[0]]=new Date),b.apply(void 0,t))}var E=function(e,t){return function(){if(e.isInitialized)t();else{e.on("initialized",(function n(){setTimeout((function(){e.off("initialized",n)}),0),t()}))}}};function S(e,t,n){e.loadNamespaces(t,E(e,n))}function x(e,t,n,r){"string"==typeof n&&(n=[n]),n.forEach((function(t){e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,E(e,r))}function k(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],i=!!t.options&&t.options.fallbackLng,o=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||(!(t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages))||!(!a(r,e)||i&&!a(o,e))))}function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return w("i18n.languages were undefined or empty",t.languages),!0;var r=void 0!==t.options.ignoreJSONStructure;return r?t.hasLoadedNamespace(e,{lng:n.lng,precheck:function(t,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):k(e,t,n)}function O(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}var R=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,P={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},A=function(e){return P[e]};function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var D,I={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(R,A)}};function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};I=L(L({},I),e)}function M(){return I}function N(e){D=e}function F(){return D}var U=["format"],B=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t){if(!e)return!1;var n=e.props?e.props.children:e.children;return t?n.length>0:!!n}function z(e){return e?e.props?e.props.children:e.children:[]}function W(e){return Array.isArray(e)?e:[e]}function G(e,t,n,r,i,o){if(""===t)return[];var a=r.transKeepBasicHtmlNodesFor||[],u=t&&new RegExp(a.join("|")).test(t);if(!e&&!u)return[t];var l={};!function e(t){W(t).forEach((function(t){"string"!=typeof t&&(V(t)?e(z(t)):"object"!==c()(t)||Object(s.isValidElement)(t)||Object.assign(l,t))}))}(e);var f=y.parse("<0>".concat(t,"</0>")),d=$($({},l),i);function h(e,t,n){var r=z(e),i=g(r,t.children,n);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every((function(e){return Object(s.isValidElement)(e)}))}(r)&&0===i.length?r:i}function p(e,t,n,r,i){e.dummy&&(e.children=t),n.push(Object(s.cloneElement)(e,$($({},e.props),{},{key:r}),i?void 0:t))}function g(t,i,l){var f=W(t);return W(i).reduce((function(t,i,m){var v,y,b,_=i.children&&i.children[0]&&i.children[0].content&&n.services.interpolator.interpolate(i.children[0].content,d,n.language);if("tag"===i.type){var w=f[parseInt(i.name,10)];!w&&1===l.length&&l[0][i.name]&&(w=l[0][i.name]),w||(w={});var E=0!==Object.keys(i.attrs).length?(v={props:i.attrs},(b=$({},y=w)).props=Object.assign(v.props,y.props),b):w,S=Object(s.isValidElement)(E),x=S&&V(i,!0)&&!i.voidElement,k=u&&"object"===c()(E)&&E.dummy&&!S,T="object"===c()(e)&&null!==e&&Object.hasOwnProperty.call(e,i.name);if("string"==typeof E){var O=n.services.interpolator.interpolate(E,d,n.language);t.push(O)}else if(V(E)||x){p(E,h(E,i,l),t,m)}else if(k){var R=g(f,i.children,l);t.push(Object(s.cloneElement)(E,$($({},E.props),{},{key:m}),R))}else if(Number.isNaN(parseFloat(i.name))){if(T)p(E,h(E,i,l),t,m,i.voidElement);else if(r.transSupportBasicHtmlNodes&&a.indexOf(i.name)>-1)if(i.voidElement)t.push(Object(s.createElement)(i.name,{key:"".concat(i.name,"-").concat(m)}));else{var P=g(f,i.children,l);t.push(Object(s.createElement)(i.name,{key:"".concat(i.name,"-").concat(m)},P))}else if(i.voidElement)t.push("<".concat(i.name," />"));else{var A=g(f,i.children,l);t.push("<".concat(i.name,">").concat(A,"</").concat(i.name,">"))}}else if("object"!==c()(E)||S)1===i.children.length&&_?t.push(Object(s.cloneElement)(E,$($({},E.props),{},{key:m}),_)):t.push(Object(s.cloneElement)(E,$($({},E.props),{},{key:m})));else{var C=i.children[0]?_:null;C&&t.push(C)}}else if("text"===i.type){var L=r.transWrapTextNodes,D=o?r.unescape(n.services.interpolator.interpolate(i.content,d,n.language)):n.services.interpolator.interpolate(i.content,d,n.language);L?t.push(Object(s.createElement)(L,{key:"".concat(i.name,"-").concat(m)},D)):t.push(D)}return t}),[])}return z(g([{dummy:!0,children:e||[]}],f,W(e||[]))[0])}function H(e){var t=e.children,n=e.count,r=e.parent,i=e.i18nKey,o=e.context,u=e.tOptions,l=void 0===u?{}:u,f=e.values,d=e.defaults,h=e.components,p=e.ns,g=e.i18n,m=e.t,v=e.shouldUnescape,y=a()(e,B),_=g||F();if(!_)return w("You will need to pass in an i18next instance by using i18nextReactModule"),t;var E=m||_.t.bind(_)||function(e){return e};o&&(l.context=o);var S=$($({},M()),_.options&&_.options.react),x=p||E.ns||_.options&&_.options.defaultNS;x="string"==typeof x?[x]:x||["translation"];var k=d||function e(t,n){if(!t)return"";var r="",i=W(t),o=n.transSupportBasicHtmlNodes&&n.transKeepBasicHtmlNodesFor?n.transKeepBasicHtmlNodesFor:[];return i.forEach((function(t,i){if("string"==typeof t)r+="".concat(t);else if(Object(s.isValidElement)(t)){var u=Object.keys(t.props).length,l=o.indexOf(t.type)>-1,f=t.props.children;if(!f&&l&&0===u)r+="<".concat(t.type,"/>");else if(f||l&&0===u)if(t.props.i18nIsDynamicList)r+="<".concat(i,"></").concat(i,">");else if(l&&1===u&&"string"==typeof f)r+="<".concat(t.type,">").concat(f,"</").concat(t.type,">");else{var d=e(f,n);r+="<".concat(i,">").concat(d,"</").concat(i,">")}else r+="<".concat(i,"></").concat(i,">")}else if(null===t)b("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"===c()(t)){var h=t.format,p=a()(t,U),g=Object.keys(p);if(1===g.length){var m=h?"".concat(g[0],", ").concat(h):g[0];r+="{{".concat(m,"}}")}else b("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",t)}else b("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",t)})),r}(t,S)||S.transEmptyNodeValue||i,T=S.hashTransKey,O=i||(T?T(k):k),R=f?l.interpolation:{interpolation:$($({},l.interpolation),{},{prefix:"#$?",suffix:"?$#"})},P=$($($($({},l),{},{count:n},f),R),{},{defaultValue:k,ns:x}),A=G(h||t,O?E(O,P):k,_,S,P,v),C=void 0!==r?r:S.defaultTransParent;return C?Object(s.createElement)(C,y,A):A}var K=n(41),Y=n.n(K),Q=n(40),X=n.n(Q),J={type:"3rdParty",init:function(e){j(e.options.react),N(e)}};function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var te=Object(s.createContext)(),ne=function(){function e(){Y()(this,e),this.usedNamespaces={}}return X()(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function re(e){return function(t){return new Promise((function(n){var r=ie();e.getInitialProps?e.getInitialProps(t).then((function(e){n(ee(ee({},e),r))})):n(r)}))}}function ie(){var e=F(),t=e.reportNamespaces?e.reportNamespaces.getUsedNamespaces():[],n={},r={};return e.languages.forEach((function(n){r[n]={},t.forEach((function(t){r[n][t]=e.getResourceBundle(n,t)||{}}))})),n.initialI18nStore=r,n.initialLanguage=e.language,n}var oe=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function se(e){var t=e.children,n=e.count,r=e.parent,o=e.i18nKey,u=e.context,c=e.tOptions,l=void 0===c?{}:c,f=e.values,d=e.defaults,h=e.components,p=e.ns,g=e.i18n,m=e.t,v=e.shouldUnescape,y=a()(e,oe),b=Object(s.useContext)(te)||{},_=b.i18n,w=b.defaultNS,E=g||_||F(),S=m||E&&E.t.bind(E);return H(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({children:t,count:n,parent:r,i18nKey:o,context:u,tOptions:l,values:f,defaults:d,components:h,ns:p||S&&S.ns||w||E&&E.options&&E.options.defaultNS,i18n:E,t:m,shouldUnescape:v},y))}var ue=n(68),ce=n.n(ue);function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var de=function(e,t){var n=Object(s.useRef)();return Object(s.useEffect)((function(){n.current=t?n.current:e}),[e,t]),n.current};function he(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=Object(s.useContext)(te)||{},i=r.i18n,o=r.defaultNS,a=n||i||F();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new ne),!a){w("You will need to pass in an i18next instance by using initReactI18next");var u=function(e,t){return"string"==typeof t?t:t&&"object"===c()(t)&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e},l=[u,{},!1];return l.t=u,l.i18n={},l.ready=!1,l}a.options.react&&void 0!==a.options.react.wait&&w("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var f=fe(fe(fe({},M()),a.options.react),t),d=f.useSuspense,h=f.keyPrefix,p=e||o||a.options&&a.options.defaultNS;p="string"==typeof p?[p]:p||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(p);var g=(a.isInitialized||a.initializedStoreOnce)&&p.every((function(e){return T(e,a,f)}));function m(){return a.getFixedT(t.lng||null,"fallback"===f.nsMode?p:p[0],h)}var v=Object(s.useState)(m),y=ce()(v,2),b=y[0],_=y[1],E=p.join();t.lng&&(E="".concat(t.lng).concat(E));var k=de(E),O=Object(s.useRef)(!0);Object(s.useEffect)((function(){var e=f.bindI18n,n=f.bindI18nStore;function r(){O.current&&_(m)}return O.current=!0,g||d||(t.lng?x(a,t.lng,p,(function(){O.current&&_(m)})):S(a,p,(function(){O.current&&_(m)}))),g&&k&&k!==E&&O.current&&_(m),e&&a&&a.on(e,r),n&&a&&a.store.on(n,r),function(){O.current=!1,e&&a&&e.split(" ").forEach((function(e){return a.off(e,r)})),n&&a&&n.split(" ").forEach((function(e){return a.store.off(e,r)}))}}),[a,E]);var R=Object(s.useRef)(!0);Object(s.useEffect)((function(){O.current&&!R.current&&_(m),R.current=!1}),[a,h]);var P=[b,a,g];if(P.t=b,P.i18n=a,P.ready=g,g)return P;if(!g&&!d)return P;throw new Promise((function(e){t.lng?x(a,t.lng,p,(function(){return e()})):S(a,p,(function(){return e()}))}))}var pe=["forwardedRef"];function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){function r(r){var i=r.forwardedRef,o=a()(r,pe),u=he(e,me(me({},o),{},{keyPrefix:t.keyPrefix})),c=ce()(u,3),l=c[0],f=c[1],d=c[2],h=me(me({},o),{},{t:l,i18n:f,tReady:d});return t.withRef&&i?h.ref=i:!t.withRef&&i&&(h.forwardedRef=i),Object(s.createElement)(n,h)}r.displayName="withI18nextTranslation(".concat(O(n),")"),r.WrappedComponent=n;return t.withRef?Object(s.forwardRef)((function(e,t){return Object(s.createElement)(r,Object.assign({},e,{forwardedRef:t}))})):r}}var ye=["ns","children"];function be(e){var t=e.ns,n=e.children,r=he(t,a()(e,ye)),i=ce()(r,3),o=i[0],s=i[1],u=i[2];return n(o,{i18n:s,lng:s.language},u)}function _e(e){var t=e.i18n,n=e.defaultNS,r=e.children,i=Object(s.useMemo)((function(){return{i18n:t,defaultNS:n}}),[t,n]);return Object(s.createElement)(te.Provider,{value:i},r)}function we(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.i18n,i=Object(s.useContext)(te)||{},o=i.i18n,a=r||o||F();a.options&&a.options.isClone||(e&&!a.initializedStoreOnce&&(a.services.resourceStore.data=e,a.options.ns=Object.values(e).reduce((function(e,t){return Object.keys(t).forEach((function(t){e.indexOf(t)<0&&e.push(t)})),e}),a.options.ns),a.initializedStoreOnce=!0,a.isInitialized=!0),t&&!a.initializedLanguageOnce&&(a.changeLanguage(t),a.initializedLanguageOnce=!0))}var Ee=["initialI18nStore","initialLanguage"];function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xe(){return function(e){function t(t){var n=t.initialI18nStore,r=t.initialLanguage,o=a()(t,Ee);return we(n,r),Object(s.createElement)(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o))}return t.getInitialProps=re(e),t.displayName="withI18nextSSR(".concat(O(e),")"),t.WrappedComponent=e,t}}var ke=function(){return""},Te=function(){return""},Oe=function(){return""},Re=function(){return""},Pe=function(){return""},Ae=function(){return""}},function(e,t,n){"use strict";t.decode=t.parse=n(1023),t.encode=t.stringify=n(1024)},function(e,t,n){"use strict";var r=n(7),i=n(97),o=n(152),a=Object(r.a)((function(e,t,n){return Object(i.a)("function"==typeof e?Object(o.a)(e):e,t,n)}));t.a=a},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r=n(221),i={};function o(){return Object(r.b)()?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(e,t,n){var r=n||o(),i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}}).call(this,n(128))},function(e,t,n){"use strict";var r=n(16),i=n(12),o=n(224),a=n(100),s=n(64),u=n(129),c=n(26),l=n(346),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=s(e),t=u(t),l)try{return f(e,t)}catch(e){}if(c(e,t))return a(!i(o.f,e,t),e[t])}},function(e,t,n){"use strict";e.exports=function(e,t){return{value:e,done:t}}},function(e,t,n){"use strict";var r=n(6),i=Set.prototype;e.exports={Set:Set,add:r(i.add),has:r(i.has),remove:r(i.delete),proto:i}},function(e,t,n){"use strict";var r,i=n(495),o=Object.prototype.toString,a=(r=Object.create(null),function(e){var t=o.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var l=s("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var h=s("Date"),p=s("File"),g=s("Blob"),m=s("FileList");function v(e){return"[object Function]"===o.call(e)}var y=s("URLSearchParams");function b(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var _,w=(_="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return _&&e instanceof _});e.exports={isArray:u,isArrayBuffer:l,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return e&&("function"==typeof FormData&&e instanceof FormData||"[object FormData]"===o.call(e)||v(e.toString)&&"[object FormData]"===e.toString())},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:f,isPlainObject:d,isUndefined:c,isDate:h,isFile:p,isBlob:g,isFunction:v,isStream:function(e){return f(e)&&v(e.pipe)},isURLSearchParams:y,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:b,merge:function e(){var t={};function n(n,r){d(t[r])&&d(n)?t[r]=e(t[r],n):d(n)?t[r]=e({},n):u(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)b(arguments[r],n);return t},extend:function(e,t,n){return b(t,(function(t,r){e[r]=n&&"function"==typeof t?i(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,i,o,a={};t=t||{};do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)a[o=r[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:m}},function(e,t,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},r=[],i=0;i<e.length;i++){var o=e[i],u=t.base?o[0]+t.base:o[0],c=n[u]||0,l="".concat(u," ").concat(c);n[u]=c+1;var f=s(l),d={css:o[1],media:o[2],sourceMap:o[3]};-1!==f?(a[f].references++,a[f].updater(d)):a.push({identifier:l,updater:m(d,t),references:1}),r.push(l)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=o(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,f=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function d(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function h(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var p=null,g=0;function m(e,t){var n,r,i;if(t.singleton){var o=g++;n=p||(p=c(t)),r=d.bind(null,n,o,!1),i=d.bind(null,n,o,!0)}else n=c(t),r=h.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=s(n[r]);a[i].references--}for(var o=u(e,t),c=0;c<n.length;c++){var l=s(n[c]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=o}}}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(u," */")),o=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(o).concat([i]).join("\n")}var a,s,u;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var u=[].concat(e[s]);r&&i[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},function(e,t,n){"use strict";t.a=Number.isInteger||function(e){return e<<0===e}},function(e,t,n){"use strict";var r=n(6),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},function(e,t,n){"use strict";var r=n(6);e.exports=r({}.isPrototypeOf)},function(e,t,n){"use strict";var r=n(6),i=Map.prototype;e.exports={Map:Map,set:r(i.set),get:r(i.get),has:r(i.has),remove:r(i.delete),proto:i}},function(e,t,n){"use strict";var r=n(76).has;e.exports=function(e){return r(e),e}},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return u})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return l}));var r=n(124),i=n(149),o=n(10);function a(e){return Math.min(1e3*Math.pow(2,e),3e4)}function s(e){return"function"==typeof(null==e?void 0:e.cancel)}var u=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function c(e){return e instanceof u}var l=function(e){var t,n,c,l,f=this,d=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){d=!0},this.continueRetry=function(){d=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){c=e,l=t}));var h=function(t){f.isResolved||(f.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),c(t))},p=function(t){f.isResolved||(f.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),l(t))};!function c(){if(!f.isResolved){var l;try{l=e.fn()}catch(e){l=Promise.reject(e)}t=function(e){if(!f.isResolved&&(p(new u(e)),null==f.abort||f.abort(),s(l)))try{l.cancel()}catch(e){}},f.isTransportCancelable=s(l),Promise.resolve(l).then(h).catch((function(t){var s,u;if(!f.isResolved){var l=null!=(s=e.retry)?s:3,h=null!=(u=e.retryDelay)?u:a,g="function"==typeof h?h(f.failureCount,t):h,m=!0===l||"number"==typeof l&&f.failureCount<l||"function"==typeof l&&l(f.failureCount,t);!d&&m?(f.failureCount++,null==e.onFail||e.onFail(f.failureCount,t),Object(o.v)(g).then((function(){if(!r.a.isFocused()||!i.a.isOnline())return new Promise((function(t){n=t,f.isPaused=!0,null==e.onPause||e.onPause()})).then((function(){n=void 0,f.isPaused=!1,null==e.onContinue||e.onContinue()}))})).then((function(){d?p(t):c()}))):p(t)}}))}}()}},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";var r=n(5),i=n(286),o=Object(r.a)((function(e){return Object(i.a)(e,[])}));t.a=o},function(e,t,n){"use strict";var r=n(200),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},function(e,t,n){"use strict";var r=n(82),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c}));var r=n(0),i=n.n(r),o=i.a.createContext(void 0),a=i.a.createContext(!1);function s(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=o),window.ReactQueryClientContext):o}var u=function(){var e=i.a.useContext(s(i.a.useContext(a)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},c=function(e){var t=e.client,n=e.contextSharing,r=void 0!==n&&n,o=e.children;i.a.useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var u=s(r);return i.a.createElement(a.Provider,{value:r},i.a.createElement(u.Provider,{value:t},o))}},function(e,t,n){"use strict";var r=n(42).f,i=n(26),o=n(17)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){"use strict";var r=n(83).has;e.exports=function(e){return r(e),e}},function(e,t,n){"use strict";var r=n(3),i=n(87),o=Object(r.a)((function(e,t){if(e===t)return t;function n(e,t){if(e>t!=t>e)return t>e?t:e}var r=n(e,t);if(void 0!==r)return r;var o=n(typeof e,typeof t);if(void 0!==o)return o===typeof e?e:t;var a=Object(i.a)(e),s=n(a,Object(i.a)(t));return void 0!==s&&s===a?e:t}));t.a=o},function(e,t,n){"use strict";var r=n(3),i=n(80),o=n(95),a=Object(r.a)((function(e,t){if(null!=t)return Object(i.a)(e)?Object(o.a)(e,t):t[e]}));t.a=a},function(e,t,n){"use strict";var r=n(3),i=n(107),o=Object(r.a)((function(e,t){var n=e<0?t.length+e:e;return Object(i.a)(t)?t.charAt(n):t[n]}));t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==n})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},function(e,t,n){"use strict";var r=n(277),i=n(280),o=n(269);function a(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function s(e,t,n,r){return e["@@transducer/result"](n[r](Object(o.a)(e["@@transducer/step"],e),t))}var u=Object(r.a)(i.a,s,a);t.a=u},function(e,t,n){var r=n(1025),i=n(1026),o=n(482),a=n(1027);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.d(t,"e",(function(){return s})),n.d(t,"a",(function(){return u})),n.d(t,"g",(function(){return c})),n.d(t,"f",(function(){return l})),n.d(t,"h",(function(){return f})),n.d(t,"b",(function(){return d})),n.d(t,"d",(function(){return g})),n.d(t,"c",(function(){return m}));var r=n(4),i=n(529),o=n(45),a=n(174);function s(e,t,n){if(t in e){var r=e[t],i=n(r);if("function"==typeof i)try{c(i,r)}catch(e){}e[t]=i}}function u(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function c(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,u(e,"__sentry_original__",t)}function l(e){return e.__sentry_original__}function f(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}function d(e){var t=e;if(Object(o.d)(e))t=Object(r.a)({message:e.message,name:e.name,stack:e.stack},p(e));else if(Object(o.f)(e)){var n=e;t=Object(r.a)({type:n.type,target:h(n.target),currentTarget:h(n.currentTarget)},p(n)),"undefined"!=typeof CustomEvent&&Object(o.g)(e,CustomEvent)&&(t.detail=n.detail)}return t}function h(e){try{return Object(o.c)(e)?Object(i.b)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function p(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function g(e,t){void 0===t&&(t=40);var n=Object.keys(d(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Object(a.d)(n[0],t);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:Object(a.d)(i,t)}return""}function m(e){var t,n;if(Object(o.i)(e)){var i={};try{for(var a=Object(r.e)(Object.keys(e)),s=a.next();!s.done;s=a.next()){var u=s.value;void 0!==e[u]&&(i[u]=m(e[u]))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i}return Array.isArray(e)?e.map(m):e}},function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var r=n(46),i=Math.min;e.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0}},function(e,t,n){"use strict";var r=n(292),i=n(24),o=n(81),a=n(17)("toStringTag"),s=Object,u="Arguments"===o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:u?o(t):"Object"===(r=o(t))&&i(t.callee)?"Arguments":r}},function(e,t,n){"use strict";var r=n(6);e.exports=r([].slice)},function(e,t,n){"use strict";var r=n(6),i=n(145),o=n(76),a=o.Set,s=o.proto,u=r(s.forEach),c=r(s.keys),l=c(new a).next;e.exports=function(e,t,n){return n?i({iterator:c(e),next:l},t):u(e,t)}},function(e,t,n){"use strict";var r=n(6),i=n(43),o=n(23),a=/"/g,s=r("".replace);e.exports=function(e,t,n,r){var u=o(i(e)),c="<"+t;return""!==n&&(c+=" "+n+'="'+s(o(r),a,"&quot;")+'"'),c+">"+u+"</"+t+">"}},function(e,t,n){"use strict";var r=n(9);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},function(e,t,n){"use strict";function r(e){return"[object String]"===Object.prototype.toString.call(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=TypeError;e.exports=function(e,t){if(e<t)throw new r("Not enough arguments");return e}},function(e,t,n){"use strict";var r=n(5),i=Object(r.a)((function(e){return null==e}));t.a=i},function(e,t,n){"use strict";function r(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(232),i=n(20),o=n(43),a=n(358);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),a(r),i(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},function(e,t,n){"use strict";var r=n(16),i=n(42),o=n(100);e.exports=function(e,t,n){r?i.f(e,t,o(0,n)):e[t]=n}},function(e,t,n){"use strict";var r=n(9);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},function(e,t,n){"use strict";var r=n(36);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){"use strict";var r=n(6),i=n(145),o=n(83),a=o.Map,s=o.proto,u=r(s.forEach),c=r(s.entries),l=c(new a).next;e.exports=function(e,t,n){return n?i({iterator:c(e),next:l},(function(e){return t(e[1],e[0])})):u(e,t)}},function(e,t){function n(t){return e.exports=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.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";function r(e){return"[object Object]"===Object.prototype.toString.call(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(1055);e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(46),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},function(e,t,n){"use strict";var r=n(81);e.exports=Array.isArray||function(e){return"Array"===r(e)}},function(e,t,n){"use strict";var r=n(6),i=n(9),o=n(24),a=n(102),s=n(21),u=n(229),c=function(){},l=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),h=!f.test(c),p=function(e){if(!o(e))return!1;try{return l(c,[],e),!0}catch(e){return!1}},g=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!d(f,u(e))}catch(e){return!0}};g.sham=!0,e.exports=!l||i((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?g:p},function(e,t,n){"use strict";var r=n(3),i=n(60),o=n(94),a=Object(r.a)((function(e,t){return Object(i.a)(Object(o.a)(e),t)}));t.a=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(86),i=n(96),o=n(10),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.h&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},t}Object(r.a)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setFocused(e):n.onFocus()}))},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach((function(e){e()}))},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(i.a))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(61),i=n(37);function o(e,t,n){return function(){for(var a=[],s=0,u=e,c=0,l=!1;c<t.length||s<arguments.length;){var f;c<t.length&&(!Object(i.a)(t[c])||s>=arguments.length)?f=t[c]:(f=arguments[s],s+=1),a[c]=f,Object(i.a)(f)?l=!0:u-=1,c+=1}return!l&&u<=0?n.apply(this,a):Object(r.a)(Math.max(0,u),o(e,a,n))}}},function(e,t,n){"use strict";function r(e,t,n){for(var r=0,i=n.length;r<i;)t=e(t,n[r]),r+=1;return t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(33);function i(e,t){return function(){var n=arguments.length;if(0===n)return t();var i=arguments[n-1];return Object(r.a)(i)||"function"!=typeof i[e]?t.apply(this,arguments):i[e].apply(i,Array.prototype.slice.call(arguments,0,n-1))}}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(225),i=n(138);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},function(e,t,n){"use strict";var r,i,o=n(13),a=n(131),s=o.process,u=o.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(i=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},function(e,t,n){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(e,t,n){"use strict";var r=n(22),i=TypeError,o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new i("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},function(e,t,n){"use strict";var r=n(2),i=n(13),o=n(12),a=n(16),s=n(324),u=n(27),c=n(238),l=n(89),f=n(100),d=n(66),h=n(315),p=n(101),g=n(206),m=n(440),v=n(441),y=n(129),b=n(26),_=n(102),w=n(20),E=n(138),S=n(58),x=n(82),k=n(112),T=n(156).f,O=n(442),R=n(59).forEach,P=n(162),A=n(47),C=n(42),L=n(74),D=n(143),I=n(35),j=n(158),M=I.get,N=I.set,F=I.enforce,U=C.f,B=L.f,q=i.RangeError,$=c.ArrayBuffer,V=$.prototype,z=c.DataView,W=u.NATIVE_ARRAY_BUFFER_VIEWS,G=u.TYPED_ARRAY_TAG,H=u.TypedArray,K=u.TypedArrayPrototype,Y=u.isTypedArray,Q=function(e,t){A(e,t,{configurable:!0,get:function(){return M(this)[t]}})},X=function(e){var t;return x(V,e)||"ArrayBuffer"===(t=_(e))||"SharedArrayBuffer"===t},J=function(e,t){return Y(e)&&!E(t)&&t in e&&h(+t)&&t>=0},Z=function(e,t){return t=y(t),J(e,t)?f(2,e[t]):B(e,t)},ee=function(e,t,n){return t=y(t),!(J(e,t)&&w(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?U(e,t,n):(e[t]=n.value,e)};a?(W||(L.f=Z,C.f=ee,Q(K,"buffer"),Q(K,"byteOffset"),Q(K,"byteLength"),Q(K,"length")),r({target:"Object",stat:!0,forced:!W},{getOwnPropertyDescriptor:Z,defineProperty:ee}),e.exports=function(e,t,n){var a=e.match(/\d+/)[0]/8,u=e+(n?"Clamped":"")+"Array",c="get"+e,f="set"+e,h=i[u],y=h,b=y&&y.prototype,_={},E=function(e,t){U(e,t,{get:function(){return function(e,t){var n=M(e);return n.view[c](t*a+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var i=M(e);i.view[f](t*a+i.byteOffset,n?v(r):r,!0)}(this,t,e)},enumerable:!0})};W?s&&(y=t((function(e,t,n,r){return l(e,b),j(w(t)?X(t)?void 0!==r?new h(t,m(n,a),r):void 0!==n?new h(t,m(n,a)):new h(t):Y(t)?D(y,t):o(O,y,t):new h(g(t)),e,y)})),k&&k(y,H),R(T(h),(function(e){e in y||d(y,e,h[e])})),y.prototype=b):(y=t((function(e,t,n,r){l(e,b);var i,s,u,c=0,f=0;if(w(t)){if(!X(t))return Y(t)?D(y,t):o(O,y,t);i=t,f=m(n,a);var d=t.byteLength;if(void 0===r){if(d%a)throw new q("Wrong length");if((s=d-f)<0)throw new q("Wrong length")}else if((s=p(r)*a)+f>d)throw new q("Wrong length");u=s/a}else u=g(t),i=new $(s=u*a);for(N(e,{buffer:i,byteOffset:f,byteLength:s,length:u,view:new z(i)});c<u;)E(e,c++)})),k&&k(y,H),b=y.prototype=S(K)),b.constructor!==y&&d(b,"constructor",y),F(b).TypedArrayConstructor=y,G&&d(b,G,u);var x=y!==h;_[u]=y,r({global:!0,constructor:!0,forced:x,sham:!W},_),"BYTES_PER_ELEMENT"in y||d(y,"BYTES_PER_ELEMENT",a),"BYTES_PER_ELEMENT"in b||d(b,"BYTES_PER_ELEMENT",a),P(u)}):e.exports=function(){}},function(e,t,n){"use strict";n(312),n(327);var r=n(21),i=n(6),o=n(139),a=r("Map"),s=r("WeakMap"),u=i([].push),c=o("metadata"),l=c.store||(c.store=new s),f=function(e,t,n){var r=l.get(e);if(!r){if(!n)return;l.set(e,r=new a)}var i=r.get(t);if(!i){if(!n)return;r.set(t,i=new a)}return i};e.exports={store:l,getMap:f,has:function(e,t,n){var r=f(t,n,!1);return void 0!==r&&r.has(e)},get:function(e,t,n){var r=f(t,n,!1);return void 0===r?void 0:r.get(e)},set:function(e,t,n,r){f(n,r,!0).set(e,t)},keys:function(e,t){var n=f(e,t,!1),r=[];return n&&n.forEach((function(e,t){u(r,t)})),r},toKey:function(e){return void 0===e||"symbol"==typeof e?e:String(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=console;function i(){return r}function o(e){r=e}},function(e,t,n){"use strict";var r=n(5),i=n(33),o=n(107),a=Object(r.a)((function(e){return!!Object(i.a)(e)||!!e&&("object"==typeof e&&(!Object(o.a)(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));t.a=a},function(e,t,n){"use strict";var r=n(6),i=n(9),o=n(81),a=Object,s=r("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?s(e,""):a(e)}:a},function(e,t,n){"use strict";var r=n(21),i=n(24),o=n(82),a=n(344),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,s(e))}},function(e,t,n){"use strict";var r=n(226);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},function(e,t,n){"use strict";var r=n(102),i=n(57),o=n(65),a=n(179),s=n(17)("iterator");e.exports=function(e){if(!o(e))return i(e,s)||i(e,"@@iterator")||a[r(e)]}},function(e,t,n){"use strict";var r=n(12),i=n(11),o=n(57);e.exports=function(e,t,n){var a,s;i(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return i(a),n}},function(e,t,n){"use strict";var r=n(13),i=n(81);e.exports="process"===i(r.process)},function(e,t,n){"use strict";var r=n(30);e.exports=function(e,t,n){for(var i=0,o=arguments.length>2?n:r(t),a=new e(o);o>i;)a[i]=t[i++];return a}},function(e,t,n){"use strict";var r=n(9);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){"use strict";var r=n(12);e.exports=function(e,t,n){for(var i,o,a=n?e:e.iterator,s=e.next;!(i=r(s,a)).done;)if(void 0!==(o=t(i.value)))return o}},function(e,t,n){"use strict";var r=n(5),i=n(267),o=Object(r.a)((function(e){return Object(i.a)(e.length,e)}));t.a=o},function(e,t,n){"use strict";var r=n(282),i=n(3),o=n(196),a=Object(i.a)((function(e,t){return Object(o.a)(Object(r.a)(e),t)}));t.a=a},function(e,t,n){var r=n(1017),i=Object.prototype.hasOwnProperty,o=Array.prototype.splice,a=Object.prototype.toString,s=function(e){return a.call(e).slice(8,-1)},u=Object.assign||function(e,t){return c(t).forEach((function(n){i.call(t,n)&&(e[n]=t[n])})),e},c="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function l(e){if(Array.isArray(e))return u(e.constructor(e.length),e);if("Map"===s(e))return new Map(e);if("Set"===s(e))return new Set(e);if(e&&"object"==typeof e){var t=Object.getPrototypeOf(e);return u(Object.create(t),e)}return e}function f(){var e=u({},d);return t.extend=function(t,n){e[t]=n},t.isEquals=function(e,t){return e===t},t;function t(n,o){"function"==typeof o&&(o={$apply:o}),Array.isArray(n)&&Array.isArray(o)||r(!Array.isArray(o),"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."),r("object"==typeof o&&null!==o,"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: %s.",Object.keys(e).join(", "));var a=n;return c(o).forEach((function(r){if(i.call(e,r)){var u=n===a;a=e[r](o[r],a,o,n),u&&t.isEquals(a,n)&&(a=n)}else{var c="Map"===s(n)?t(n.get(r),o[r]):t(n[r],o[r]),f="Map"===s(a)?a.get(r):a[r];t.isEquals(c,f)&&(void 0!==c||i.call(n,r))||(a===n&&(a=l(n)),"Map"===s(a)?a.set(r,c):a[r]=c)}})),a}}var d={$push:function(e,t,n){return p(t,n,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,n){return p(t,n,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,n,i){return function(e,t){r(Array.isArray(e),"Expected $splice target to be an array; got %s",e),m(t.$splice)}(t,n),e.forEach((function(e){m(e),t===i&&e.length&&(t=l(i)),o.apply(t,e)})),t},$set:function(e,t,n){return function(e){r(1===Object.keys(e).length,"Cannot have more than one key in an object with $set")}(n),e},$toggle:function(e,t){g(e,"$toggle");var n=e.length?l(t):t;return e.forEach((function(e){n[e]=!t[e]})),n},$unset:function(e,t,n,r){return g(e,"$unset"),e.forEach((function(e){Object.hasOwnProperty.call(t,e)&&(t===r&&(t=l(r)),delete t[e])})),t},$add:function(e,t,n,r){return v(t,"$add"),g(e,"$add"),"Map"===s(t)?e.forEach((function(e){var n=e[0],i=e[1];t===r&&t.get(n)!==i&&(t=l(r)),t.set(n,i)})):e.forEach((function(e){t!==r||t.has(e)||(t=l(r)),t.add(e)})),t},$remove:function(e,t,n,r){return v(t,"$remove"),g(e,"$remove"),e.forEach((function(e){t===r&&t.has(e)&&(t=l(r)),t.delete(e)})),t},$merge:function(e,t,n,i){var o,a;return o=t,r((a=e)&&"object"==typeof a,"update(): $merge expects a spec of type 'object'; got %s",a),r(o&&"object"==typeof o,"update(): $merge expects a target of type 'object'; got %s",o),c(e).forEach((function(n){e[n]!==t[n]&&(t===i&&(t=l(i)),t[n]=e[n])})),t},$apply:function(e,t){var n;return r("function"==typeof(n=e),"update(): expected spec of $apply to be a function; got %s.",n),e(t)}},h=f();function p(e,t,n){r(Array.isArray(e),"update(): expected target of %s to be an array; got %s.",n,e),g(t[n],n)}function g(e,t){r(Array.isArray(e),"update(): expected spec of %s to be an array; got %s. Did you forget to wrap your parameter in an array?",t,e)}function m(e){r(Array.isArray(e),"update(): expected spec of $splice to be an array of arrays; got %s. Did you forget to wrap your parameters in an array?",e)}function v(e,t){var n=s(e);r("Map"===n||"Set"===n,"update(): %s expects a target of type Set or Map; got %s",t,n)}e.exports=h,e.exports.default=h,e.exports.newContext=f},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(86),i=n(96),o=n(10),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.h&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},t}Object(r.a)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setOnline(e):n.onOnline()}))},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach((function(e){e()}))},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},t}(i.a))},function(e,t,n){"use strict";var r=n(126),i=n(277);function o(e,t,n){for(var r=n.next();!r.done;)t=e(t,r.value),r=n.next();return t}function a(e,t,n,r){return n[r](e,t)}var s=Object(i.a)(r.a,a,o);t.a=s},function(e,t,n){"use strict";var r=n(5),i=Object(r.a)((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function i(e){return new r(e)}},function(e,t,n){"use strict";var r=n(130),i=n(9),o=n(13).String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(e,t,n){"use strict";var r=String;e.exports=function(e){try{return r(e)}catch(e){return"Object"}}},function(e,t,n){"use strict";var r=n(6),i=0,o=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},function(e,t,n){"use strict";var r=n(349),i=n(291).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(81),i=n(6);e.exports=function(e){if("Function"===r(e))return i(e)}},function(e,t,n){"use strict";var r=n(24),i=n(20),o=n(112);e.exports=function(e,t,n){var a,s;return o&&r(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},function(e,t,n){"use strict";var r=n(12),i=n(22),o=n(11),a=n(154),s=n(140),u=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return o(r(n,e));throw new u(a(e)+" is not iterable")}},function(e,t,n){"use strict";var r=TypeError;e.exports=function(e){if(e>9007199254740991)throw r("Maximum allowed index exceeded");return e}},function(e,t,n){"use strict";var r=n(180).IteratorPrototype,i=n(58),o=n(100),a=n(91),s=n(179),u=function(){return this};e.exports=function(e,t,n,c){var l=t+" Iterator";return e.prototype=i(r,{next:o(+!c,n)}),a(e,l,!1,!0),s[l]=u,e}},function(e,t,n){"use strict";var r=n(21),i=n(47),o=n(17),a=n(16),s=o("species");e.exports=function(e){var t=r(e);a&&t&&!t[s]&&i(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(2),i=n(6),o=n(201),a=n(20),s=n(26),u=n(42).f,c=n(156),l=n(294),f=n(313),d=n(155),h=n(144),p=!1,g=d("meta"),m=0,v=function(e){u(e,g,{value:{objectID:"O"+m++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},p=!0;var e=c.f,t=i([].splice),n={};n[g]=1,e(n).length&&(c.f=function(n){for(var r=e(n),i=0,o=r.length;i<o;i++)if(r[i]===g){t(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,g)){if(!f(e))return"F";if(!t)return"E";v(e)}return e[g].objectID},getWeakData:function(e,t){if(!s(e,g)){if(!f(e))return!0;if(!t)return!1;v(e)}return e[g].weakData},onFreeze:function(e){return h&&p&&f(e)&&!s(e,g)&&v(e),e}};o[g]=!0},function(e,t,n){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){"use strict";var r=n(22),i=n(11),o=n(12),a=n(46),s=n(48),u=RangeError,c=TypeError,l=Math.max,f=function(e,t){this.set=e,this.size=l(t,0),this.has=r(e.has),this.keys=r(e.keys)};f.prototype={getIterator:function(){return s(i(o(this.keys,this.set)))},includes:function(e){return o(this.has,this.set,e)}},e.exports=function(e){i(e);var t=+e.size;if(t!=t)throw new c("Invalid size");var n=a(t);if(n<0)throw new u("Invalid size");return new f(e,n)}},function(e,t,n){"use strict";var r=n(21),i=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};e.exports=function(e){var t=r("Set");try{(new t)[e](i(0));try{return(new t)[e](i(-1)),!1}catch(e){return!0}}catch(e){return!1}}},function(e,t,n){"use strict";var r=n(21),i=n(24),o=n(918),a=n(20),s=r("Set");e.exports=function(e){return function(e){return a(e)&&"number"==typeof e.size&&i(e.has)&&i(e.keys)}(e)?e:o(e)?new s(e):e}},function(e,t,n){"use strict";n.r(t),n.d(t,"isUndefined",(function(){return l})),n.d(t,"isNumber",(function(){return v})),n.d(t,"isFunction",(function(){return y})),n.d(t,"isNotNil",(function(){return f})),n.d(t,"isNotEmpty",(function(){return d})),n.d(t,"isNotNilOrEmpty",(function(){return h})),n.d(t,"isObject",(function(){return m})),n.d(t,"isNilOrEmpty",(function(){return p}));var r=n(218),i=n(109),o=n(338),a=n(339),s=n(217),u=n(44),c=n(151),l=function(e){return void 0===e},f=r.a(i.a),d=r.a(o.a),h=a.a([f,d]),p=r.a(h),g=function(e){return s.a(u.a(e),c.a)},m=g("Object"),v=g("Number"),y=g("Function")},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(19),i=n(86),o=n(10),a=n(25),s=n(124),u=n(96),c=n(135),l=n(85),f=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.options=n,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(n),r}Object(i.a)(t,e);var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),d(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return h(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return h(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var i=this.hasListeners();i&&p(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();var o=this.computeRefetchInterval();!i||this.currentQuery===r&&this.options.enabled===n.enabled&&o===this.currentRefetchInterval||this.updateRefetchInterval(o)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e,t){var n=this,r={},i=function(e){n.trackedProps.includes(e)||n.trackedProps.push(e)};return Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:function(){return i(t),e[t]}})})),(t.useErrorBoundary||t.suspense)&&i("error"),r},n.getNextResult=function(e){var t=this;return new Promise((function(n,r){var i=t.subscribe((function(t){t.isFetching||(i(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):n(t))}))}))},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch(Object(r.a)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then((function(){return t.createResult(r,n)}))},n.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(o.l)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!o.h&&!this.currentResult.isStale&&Object(o.i)(this.options.staleTime)){var t=Object(o.w)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){e.currentResult.isStale||e.updateResult()}),t)}},n.computeRefetchInterval=function(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},n.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!o.h&&!1!==this.options.enabled&&Object(o.i)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(t.options.refetchIntervalInBackground||s.a.isFocused())&&t.executeFetch()}),this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(e,t){var n,r=this.currentQuery,i=this.options,a=this.currentResult,s=this.currentResultState,u=this.currentResultOptions,l=e!==r,f=l?e.state:this.currentQueryInitialState,h=l?this.currentResult:this.previousQueryResult,m=e.state,v=m.dataUpdatedAt,y=m.error,b=m.errorUpdatedAt,_=m.isFetching,w=m.status,E=!1,S=!1;if(t.optimisticResults){var x=this.hasListeners(),k=!x&&d(e,t),T=x&&p(e,r,t,i);(k||T)&&(_=!0,v||(w="loading"))}if(t.keepPreviousData&&!m.dataUpdateCount&&(null==h?void 0:h.isSuccess)&&"error"!==w)n=h.data,v=h.dataUpdatedAt,w=h.status,E=!0;else if(t.select&&void 0!==m.data)if(a&&m.data===(null==s?void 0:s.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(m.data),!1!==t.structuralSharing&&(n=Object(o.s)(null==a?void 0:a.data,n)),this.selectResult=n,this.selectError=null}catch(e){Object(c.a)().error(e),this.selectError=e}else n=m.data;if(void 0!==t.placeholderData&&void 0===n&&("loading"===w||"idle"===w)){var O;if((null==a?void 0:a.isPlaceholderData)&&t.placeholderData===(null==u?void 0:u.placeholderData))O=a.data;else if(O="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==O)try{O=t.select(O),!1!==t.structuralSharing&&(O=Object(o.s)(null==a?void 0:a.data,O)),this.selectError=null}catch(e){Object(c.a)().error(e),this.selectError=e}void 0!==O&&(w="success",n=O,S=!0)}return this.selectError&&(y=this.selectError,n=this.selectResult,b=Date.now(),w="error"),{status:w,isLoading:"loading"===w,isSuccess:"success"===w,isError:"error"===w,isIdle:"idle"===w,data:n,dataUpdatedAt:v,error:y,errorUpdatedAt:b,failureCount:m.fetchFailureCount,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>f.dataUpdateCount||m.errorUpdateCount>f.errorUpdateCount,isFetching:_,isRefetching:_&&"loading"!==w,isLoadingError:"error"===w&&0===m.dataUpdatedAt,isPlaceholderData:S,isPreviousData:E,isRefetchError:"error"===w&&0!==m.dataUpdatedAt,isStale:g(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,r=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!r&&!i)return!0;if("tracked"===r&&!this.trackedProps.length)return!0;var o="tracked"===r?this.trackedProps:r;return Object.keys(e).some((function(n){var r=n,a=e[r]!==t[r],s=null==o?void 0:o.some((function(e){return e===n})),u=null==i?void 0:i.some((function(e){return e===n}));return a&&!u&&(!o||s)}))},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!Object(o.u)(this.currentResult,t)){var n={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify(Object(r.a)({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||Object(l.d)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;a.a.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(u.a);function d(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&h(e,t,t.refetchOnMount)}function h(e,t,n){if(!1!==t.enabled){var r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&g(e,t)}return!1}function p(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&g(e,n)}function g(e,t){return e.isStaleByTime(t.staleTime)}},function(e,t,n){"use strict";n.r(t);var r=n(190);for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);var o=n(485);for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(281);function i(e,t){return Object(r.a)(t,e,0)>=0}},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c}));var r=n(85),i=n(10);function o(){return{onFetch:function(e){e.fetchFn=function(){var t,n,o,u,c,l,f,d=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,h=null==(o=e.fetchOptions)||null==(u=o.meta)?void 0:u.fetchMore,p=null==h?void 0:h.pageParam,g="forward"===(null==h?void 0:h.direction),m="backward"===(null==h?void 0:h.direction),v=(null==(c=e.state.data)?void 0:c.pages)||[],y=(null==(l=e.state.data)?void 0:l.pageParams)||[],b=Object(i.d)(),_=null==b?void 0:b.signal,w=y,E=!1,S=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},x=function(e,t,n,r){return w=r?[t].concat(w):[].concat(w,[t]),r?[n].concat(e):[].concat(e,[n])},k=function(t,n,i,o){if(E)return Promise.reject("Cancelled");if(void 0===i&&!n&&t.length)return Promise.resolve(t);var a={queryKey:e.queryKey,signal:_,pageParam:i,meta:e.meta},s=S(a),u=Promise.resolve(s).then((function(e){return x(t,i,e,o)}));Object(r.c)(s)&&(u.cancel=s.cancel);return u};if(v.length)if(g){var T=void 0!==p,O=T?p:a(e.options,v);f=k(v,T,O)}else if(m){var R=void 0!==p,P=R?p:s(e.options,v);f=k(v,R,P,!0)}else!function(){w=[];var t=void 0===e.options.getNextPageParam,n=!d||!v[0]||d(v[0],0,v);f=n?k([],t,y[0]):Promise.resolve(x([],y[0],v[0]));for(var r=function(n){f=f.then((function(r){if(!d||!v[n]||d(v[n],n,v)){var i=t?y[n]:a(e.options,r);return k(r,t,i)}return Promise.resolve(x(r,y[n],v[n]))}))},i=1;i<v.length;i++)r(i)}();else f=k([]);var A=f.then((function(e){return{pages:e,pageParams:w}}));return A.cancel=function(){E=!0,null==b||b.abort(),Object(r.c)(f)&&f.cancel()},A}}}}function a(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function s(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}function u(e,t){if(e.getNextPageParam&&Array.isArray(t)){var n=a(e,t);return null!=n&&!1!==n}}function c(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){var n=s(e,t);return null!=n&&!1!==n}}},function(e,t,n){"use strict";t.a="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n(45);function i(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function o(e,t){var n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);var i=Math.max(t-60,0);i<5&&(i=0);var o=Math.min(i+140,r);return o>r-5&&(o=r),o===r&&(i=Math.max(o-140,0)),n=n.slice(i,o),i>0&&(n="'{snip} "+n),o<r&&(n+=" {snip}"),n}function a(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var i=e[r];try{n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function s(e,t){return!!Object(r.l)(e)&&(Object(r.k)(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}},function(e,t,n){"use strict";var r=n(16),i=n(26),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},function(e,t,n){"use strict";var r=n(26),i=n(290),o=n(74),a=n(42);e.exports=function(e,t,n){for(var s=i(t),u=a.f,c=o.f,l=0;l<s.length;l++){var f=s[l];r(e,f)||n&&r(n,f)||u(e,f,c(t,f))}}},function(e,t,n){"use strict";var r=n(349),i=n(291);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(23);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";var r,i,o,a=n(9),s=n(24),u=n(20),c=n(58),l=n(67),f=n(36),d=n(17),h=n(28),p=d("iterator"),g=!1;[].keys&&("next"in(o=[].keys())?(i=l(l(o)))!==Object.prototype&&(r=i):g=!0),!u(r)||a((function(){var e={};return r[p].call(e)!==e}))?r={}:h&&(r=c(r)),s(r[p])||f(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:g}},function(e,t,n){"use strict";var r=n(11),i=n(239),o=n(65),a=n(17)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||o(n=r(s)[a])?t:i(n)}},function(e,t,n){"use strict";var r=n(6),i=n(43),o=n(23),a=n(183),s=r("".replace),u=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),l=function(e){return function(t){var n=o(i(t));return 1&e&&(n=s(n,u,"")),2&e&&(n=s(n,c,"$1")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},function(e,t,n){"use strict";e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(e,t,n){"use strict";var r=n(13);e.exports=r.Promise},function(e,t,n){"use strict";var r=n(6),i=n(46),o=n(23),a=n(43),s=r("".charAt),u=r("".charCodeAt),c=r("".slice),l=function(e){return function(t,n){var r,l,f=o(a(t)),d=i(n),h=f.length;return d<0||d>=h?e?"":void 0:(r=u(f,d))<55296||r>56319||d+1===h||(l=u(f,d+1))<56320||l>57343?e?s(f,d):r:e?c(f,d,d+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},function(e,t,n){"use strict";var r=n(12),i=n(22),o=n(11),a=n(20),s=n(160),u=n(21),c=n(48),l=n(214),f=function(e){var t=0===e,n=1===e,f=2===e,d=3===e;return function(e,h,p){o(e);var g=void 0!==h;!g&&t||i(h);var m=c(e),v=u("Promise"),y=m.iterator,b=m.next,_=0;return new v((function(e,i){var u=function(e){l(y,i,e,i)},c=function(){try{if(g)try{s(_)}catch(e){u(e)}v.resolve(o(r(b,y))).then((function(r){try{if(o(r).done)t?(p.length=_,e(p)):e(!d&&(f||void 0));else{var s=r.value;try{if(g){var m=h(s,_),b=function(r){if(n)c();else if(f)r?c():l(y,e,!1,i);else if(t)try{p[_++]=r,c()}catch(e){u(e)}else r?l(y,e,d||s,i):c()};a(m)?v.resolve(m).then(b,u):b(m)}else p[_++]=s,c()}catch(e){u(e)}}}catch(e){i(e)}}),i)}catch(e){i(e)}};c()}))}};e.exports={toArray:f(0),forEach:f(1),every:f(2),some:f(3),find:f(4)}},function(e,t,n){"use strict";var r=n(12),i=n(164),o=n(11),a=n(58),s=n(66),u=n(115),c=n(17),l=n(35),f=n(21),d=n(57),h=n(213),p=n(75),g=n(141),m=f("Promise"),v=c("toStringTag"),y=l.set,b=function(e){var t=!e,n=l.getterFor(e?"WrapForValidAsyncIterator":"AsyncIteratorHelper"),s=function(e){var r=i((function(){return n(e)})),o=r.error,a=r.value;return o||t&&a.done?{exit:!0,value:o?m.reject(a):m.resolve(p(void 0,!0))}:{exit:!1,value:a}};return u(a(h),{next:function(){var e=s(this),t=e.value;if(e.exit)return t;var n=i((function(){return o(t.nextHandler(m))})),r=n.error,a=n.value;return r&&(t.done=!0),r?m.reject(a):m.resolve(a)},return:function(){var t=s(this),n=t.value;if(t.exit)return n;n.done=!0;var a,u,c=n.iterator,l=i((function(){if(n.inner)try{g(n.inner.iterator,"normal")}catch(e){return g(c,"throw",e)}return d(c,"return")}));return a=u=l.value,l.error?m.reject(u):void 0===a?m.resolve(p(void 0,!0)):(u=(l=i((function(){return r(a,c)}))).value,l.error?m.reject(u):e?m.resolve(u):m.resolve(u).then((function(e){return o(e),p(void 0,!0)})))}})},_=b(!0),w=b(!1);s(w,v,"Async Iterator Helper"),e.exports=function(e,t){var n=function(n,r){r?(r.iterator=n.iterator,r.next=n.next):r=n,r.type=t?"WrapForValidAsyncIterator":"AsyncIteratorHelper",r.nextHandler=e,r.counter=0,r.done=!1,y(this,r)};return n.prototype=t?_:w,n}},function(e,t,n){"use strict";var r=n(12),i=n(58),o=n(66),a=n(115),s=n(17),u=n(35),c=n(57),l=n(180).IteratorPrototype,f=n(75),d=n(141),h=s("toStringTag"),p=u.set,g=function(e){var t=u.getterFor(e?"WrapForValidIterator":"IteratorHelper");return a(i(l),{next:function(){var n=t(this);if(e)return n.nextHandler();try{var r=n.done?void 0:n.nextHandler();return f(r,n.done)}catch(e){throw n.done=!0,e}},return:function(){var n=t(this),i=n.iterator;if(n.done=!0,e){var o=c(i,"return");return o?r(o,i):f(void 0,!0)}if(n.inner)try{d(n.inner.iterator,"normal")}catch(e){return d(i,"throw",e)}return d(i,"normal"),f(void 0,!0)}})},m=g(!0),v=g(!1);o(v,h,"Iterator Helper"),e.exports=function(e,t){var n=function(n,r){r?(r.iterator=n.iterator,r.next=n.next):r=n,r.type=t?"WrapForValidIterator":"IteratorHelper",r.nextHandler=e,r.counter=0,r.done=!1,p(this,r)};return n.prototype=t?m:v,n}},function(e,t,n){"use strict";var r=n(6),i=WeakMap.prototype;e.exports={WeakMap:WeakMap,set:r(i.set),get:r(i.get),has:r(i.has),remove:r(i.delete)}},function(e,t,n){"use strict";n.r(t);var r=n(85);n.d(t,"CancelledError",(function(){return r.a}));var i=n(273);n.d(t,"QueryCache",(function(){return i.a}));var o=n(483);n.d(t,"QueryClient",(function(){return o.a}));var a=n(169);n.d(t,"QueryObserver",(function(){return a.a}));var s=n(263);n.d(t,"QueriesObserver",(function(){return s.a}));var u=n(264);n.d(t,"InfiniteQueryObserver",(function(){return u.a}));var c=n(262);n.d(t,"MutationCache",(function(){return c.a}));var l=n(265);n.d(t,"MutationObserver",(function(){return l.a}));var f=n(135);n.d(t,"setLogger",(function(){return f.b}));var d=n(25);n.d(t,"notifyManager",(function(){return d.a}));var h=n(124);n.d(t,"focusManager",(function(){return h.a}));var p=n(149);n.d(t,"onlineManager",(function(){return p.a}));var g=n(10);n.d(t,"hashQueryKey",(function(){return g.e})),n.d(t,"isError",(function(){return g.g})),n.d(t,"isCancelledError",(function(){return r.d}));var m=n(266);n.d(t,"dehydrate",(function(){return m.a})),n.d(t,"hydrate",(function(){return m.b}));var v=n(484);for(var y in v)["default","CancelledError","QueryCache","QueryClient","QueryObserver","QueriesObserver","InfiniteQueryObserver","MutationCache","MutationObserver","setLogger","notifyManager","focusManager","onlineManager","hashQueryKey","isError","isCancelledError","dehydrate","hydrate"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return v[e]}))}(y)},function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.hls_timeshift_rel_manifest=t.hls_timeshift_abs_manifest_refetch=t.hls_timeshift_abs_manifest_query=t.hls_timeshift_abs_manifest=t.hls_dvr_manifest_refetch=t.hls_dvr_manifest_query=t.hls_dvr_manifest=t.hls_rewind_manifest_refetch=t.hls_rewind_manifest_query=t.hls_rewind_manifest=t.hls_manifest_refetch=t.hls_manifest_query=t.hls_manifest=t.hls_live_track_mono_manifest_refetch=t.hls_live_track_mono_manifest_query=t.hls_live_track_mono_manifest=t.hls_ts_timeshift_rel_manifest_refetch=t.hls_ts_timeshift_rel_manifest_query=t.hls_ts_timeshift_rel_manifest=t.hls_ts_timeshift_abs_manifest_refetch=t.hls_ts_timeshift_abs_manifest_query=t.hls_ts_timeshift_abs_manifest=t.hls_ts_dvr_manifest_refetch=t.hls_ts_dvr_manifest_query=t.hls_ts_dvr_manifest=t.hls_ts_rewind_manifest_refetch=t.hls_ts_rewind_manifest_query=t.hls_ts_rewind_manifest=t.hls_single_playlist_manifest_refetch=t.hls_single_playlist_manifest_query=t.hls_single_playlist_manifest=t.hls_ts_manifest_refetch=t.hls_ts_manifest_query=t.hls_ts_manifest=t.abstract_timeshift_rel_manifest_refetch=t.abstract_timeshift_rel_manifest_query=t.abstract_timeshift_rel_manifest=t.abstract_timeshift_abs_manifest_refetch=t.abstract_timeshift_abs_manifest_query=t.abstract_timeshift_abs_manifest=t.abstract_rewind_manifest_refetch=t.abstract_rewind_manifest_query=t.abstract_rewind_manifest=t.abstract_dvr_manifest_refetch=t.abstract_dvr_manifest_query=t.abstract_dvr_manifest=t.abstract_manifest_refetch=t.abstract_manifest_query=t.abstract_manifest=t.axiosInstance=void 0,t.http_mpegts_timeshift_rel_refetch=t.http_mpegts_timeshift_rel_query=t.http_mpegts_timeshift_rel=t.http_mpegts_timeshift_abs_refetch=t.http_mpegts_timeshift_abs_query=t.http_mpegts_timeshift_abs=t.http_mpegts_live_publish=t.http_mpegts_live_play_refetch=t.http_mpegts_live_play_query=t.http_mpegts_live_play=t.webrtc_play=t.webrtc_publish=t.dash_thumbnail_get_refetch=t.dash_thumbnail_get_query=t.dash_thumbnail_get=t.dash_timeshift_abs_manifest_refetch=t.dash_timeshift_abs_manifest_query=t.dash_timeshift_abs_manifest=t.dash_dvr_manifest_refetch=t.dash_dvr_manifest_query=t.dash_dvr_manifest=t.dash_rewind_manifest_refetch=t.dash_rewind_manifest_query=t.dash_rewind_manifest=t.dash_manifest_refetch=t.dash_manifest_query=t.dash_manifest=t.hls_thumbnail_get_refetch=t.hls_thumbnail_get_query=t.hls_thumbnail_get=t.llhls_live_manifest_refetch=t.llhls_live_manifest_query=t.llhls_live_manifest=t.hls_fmp4_timeshift_rel_manifest_refetch=t.hls_fmp4_timeshift_rel_manifest_query=t.hls_fmp4_timeshift_rel_manifest=t.hls_fmp4_timeshift_abs_manifest_refetch=t.hls_fmp4_timeshift_abs_manifest_query=t.hls_fmp4_timeshift_abs_manifest=t.hls_fmp4_dvr_manifest_refetch=t.hls_fmp4_dvr_manifest_query=t.hls_fmp4_dvr_manifest=t.hls_fmp4_rewind_manifest_refetch=t.hls_fmp4_rewind_manifest_query=t.hls_fmp4_rewind_manifest=t.hls_fmp4_manifest_refetch=t.hls_fmp4_manifest_query=t.hls_fmp4_manifest=t.hls_timeshift_rel_manifest_refetch=t.hls_timeshift_rel_manifest_query=void 0,t.ranges_list_query=t.ranges_list=t.recording_status_refetch=t.recording_status_query=t.recording_status=t.embed_html_refetch=t.embed_html_query=t.embed_html=t.media_logo_refetch=t.media_logo_query=t.media_logo=t.mp4_vod_refetch=t.mp4_vod_query=t.mp4_vod=t.mp4_dvr_refetch=t.mp4_dvr_query=t.mp4_dvr=t.mp4_preview_refetch=t.mp4_preview_query=t.mp4_preview=t.jpeg_snapshot_refetch=t.jpeg_snapshot_query=t.jpeg_snapshot=t.jpeg_preview_ondemand_refetch=t.jpeg_preview_ondemand_query=t.jpeg_preview_ondemand=t.jpeg_preview_dvr_refetch=t.jpeg_preview_dvr_query=t.jpeg_preview_dvr=t.jpeg_preview_refetch=t.jpeg_preview_query=t.jpeg_preview=t.mp4_save_refetch=t.mp4_save_query=t.mp4_save=t.ts_export_refetch=t.ts_export_query=t.ts_export=t.mp4_export_refetch=t.mp4_export_query=t.mp4_export=t.mss_dvr_manifest_refetch=t.mss_dvr_manifest_query=t.mss_dvr_manifest=t.mss_live_manifest_refetch=t.mss_live_manifest_query=t.mss_live_manifest=t.shoutcast_live_refetch=t.shoutcast_live_query=t.shoutcast_live=void 0,t.streams_list_refetch=t.streams_list_query=t.streams_list=t.playlist_get_refetch=t.playlist_get_query=t.playlist_get=t.request_tracks=t.session_save=t.public_stream_get_refetch=t.public_stream_get_query=t.public_stream_get=t.media_info_refetch=t.media_info_query=t.media_info=t.ranges_list_refetch=void 0;const i=n(168),o=n(493),a=n(494),s=n(1054),u=n(70),c=n(170);t.axiosInstance=(0,a.getAxiosInstance)();t.abstract_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_abstract_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.abstract_manifest_query)({params:e,config:r}),options:n});t.abstract_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/index.json",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.abstract_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_abstract_manifest"])};t.abstract_dvr_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_abstract_dvr_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.abstract_dvr_manifest_query)({params:e,config:r}),options:n});t.abstract_dvr_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/archive-{from}-{duration}.json",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.abstract_dvr_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_abstract_dvr_manifest"])};t.abstract_rewind_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_abstract_rewind_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.abstract_rewind_manifest_query)({params:e,config:r}),options:n});t.abstract_rewind_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/rewind-{ago}.json",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.abstract_rewind_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_abstract_rewind_manifest"])};t.abstract_timeshift_abs_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_abstract_timeshift_abs_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.abstract_timeshift_abs_manifest_query)({params:e,config:r}),options:n});t.abstract_timeshift_abs_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/timeshift_abs-{from}.json",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.abstract_timeshift_abs_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_abstract_timeshift_abs_manifest"])};t.abstract_timeshift_rel_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_abstract_timeshift_rel_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.abstract_timeshift_rel_manifest_query)({params:e,config:r}),options:n});t.abstract_timeshift_rel_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/timeshift_rel-{delay}.json",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.abstract_timeshift_rel_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_abstract_timeshift_rel_manifest"])};t.hls_ts_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_ts_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_ts_manifest_query)({params:e,config:r}),options:n});t.hls_ts_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/index.ts.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_ts_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_ts_manifest"])};t.hls_single_playlist_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_single_playlist_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_single_playlist_manifest_query)({params:e,config:r}),options:n});t.hls_single_playlist_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/video.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_single_playlist_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_single_playlist_manifest"])};t.hls_ts_rewind_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_ts_rewind_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_ts_rewind_manifest_query)({params:e,config:r}),options:n});t.hls_ts_rewind_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/rewind-{ago}.ts.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_ts_rewind_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_ts_rewind_manifest"])};t.hls_ts_dvr_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_ts_dvr_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_ts_dvr_manifest_query)({params:e,config:r}),options:n});t.hls_ts_dvr_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/archive-{from}-{duration}.ts.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_ts_dvr_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_ts_dvr_manifest"])};t.hls_ts_timeshift_abs_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_ts_timeshift_abs_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_ts_timeshift_abs_manifest_query)({params:e,config:r}),options:n});t.hls_ts_timeshift_abs_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/timeshift_abs-{from}.ts.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_ts_timeshift_abs_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_ts_timeshift_abs_manifest"])};t.hls_ts_timeshift_rel_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_ts_timeshift_rel_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_ts_timeshift_rel_manifest_query)({params:e,config:r}),options:n});t.hls_ts_timeshift_rel_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/timeshift_rel-{delay}.ts.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_ts_timeshift_rel_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_ts_timeshift_rel_manifest"])};t.hls_live_track_mono_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_live_track_mono_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_live_track_mono_manifest_query)({params:e,config:r}),options:n});t.hls_live_track_mono_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/tracks-{tracks}/mono.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_live_track_mono_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_live_track_mono_manifest"])};t.hls_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_manifest_query)({params:e,config:r}),options:n});t.hls_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/index.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_manifest"])};t.hls_rewind_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_rewind_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_rewind_manifest_query)({params:e,config:r}),options:n});t.hls_rewind_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/rewind-{ago}.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_rewind_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_rewind_manifest"])};t.hls_dvr_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_dvr_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_dvr_manifest_query)({params:e,config:r}),options:n});t.hls_dvr_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/archive-{from}-{duration}.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_dvr_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_dvr_manifest"])};t.hls_timeshift_abs_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_timeshift_abs_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_timeshift_abs_manifest_query)({params:e,config:r}),options:n});t.hls_timeshift_abs_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/timeshift_abs-{from}.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_timeshift_abs_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_timeshift_abs_manifest"])};t.hls_timeshift_rel_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_timeshift_rel_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_timeshift_rel_manifest_query)({params:e,config:r}),options:n});t.hls_timeshift_rel_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/timeshift_rel-{delay}.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_timeshift_rel_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_timeshift_rel_manifest"])};t.hls_fmp4_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_fmp4_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_fmp4_manifest_query)({params:e,config:r}),options:n});t.hls_fmp4_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/index.fmp4.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_fmp4_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_fmp4_manifest"])};t.hls_fmp4_rewind_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_fmp4_rewind_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_fmp4_rewind_manifest_query)({params:e,config:r}),options:n});t.hls_fmp4_rewind_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/rewind-{ago}.fmp4.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_fmp4_rewind_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_fmp4_rewind_manifest"])};t.hls_fmp4_dvr_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_fmp4_dvr_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_fmp4_dvr_manifest_query)({params:e,config:r}),options:n});t.hls_fmp4_dvr_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/archive-{from}-{duration}.fmp4.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_fmp4_dvr_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_fmp4_dvr_manifest"])};t.hls_fmp4_timeshift_abs_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_fmp4_timeshift_abs_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_fmp4_timeshift_abs_manifest_query)({params:e,config:r}),options:n});t.hls_fmp4_timeshift_abs_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/timeshift_abs-{from}.fmp4.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_fmp4_timeshift_abs_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_fmp4_timeshift_abs_manifest"])};t.hls_fmp4_timeshift_rel_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_fmp4_timeshift_rel_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_fmp4_timeshift_rel_manifest_query)({params:e,config:r}),options:n});t.hls_fmp4_timeshift_rel_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/timeshift_rel-{delay}.fmp4.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_fmp4_timeshift_rel_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_fmp4_timeshift_rel_manifest"])};t.llhls_live_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_llhls_live_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.llhls_live_manifest_query)({params:e,config:r}),options:n});t.llhls_live_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/index.ll.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.llhls_live_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_llhls_live_manifest"])};t.hls_thumbnail_get=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_thumbnail_get",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_thumbnail_get_query)({params:e,config:r}),options:n});t.hls_thumbnail_get_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/images-{dimensions}/seg-{from}-{offset}.hls.jpg",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_thumbnail_get_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_thumbnail_get"])};t.dash_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_dash_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.dash_manifest_query)({params:e,config:r}),options:n});t.dash_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/Manifest.mpd",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.dash_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_dash_manifest"])};t.dash_rewind_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_dash_rewind_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.dash_rewind_manifest_query)({params:e,config:r}),options:n});t.dash_rewind_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/rewind-{ago}.mpd",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.dash_rewind_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_dash_rewind_manifest"])};t.dash_dvr_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_dash_dvr_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.dash_dvr_manifest_query)({params:e,config:r}),options:n});t.dash_dvr_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/archive-{from}-{duration}.mpd",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.dash_dvr_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_dash_dvr_manifest"])};t.dash_timeshift_abs_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_dash_timeshift_abs_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.dash_timeshift_abs_manifest_query)({params:e,config:r}),options:n});t.dash_timeshift_abs_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/timeshift_abs-{from}.mpd",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.dash_timeshift_abs_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_dash_timeshift_abs_manifest"])};t.dash_thumbnail_get=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_dash_thumbnail_get",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.dash_thumbnail_get_query)({params:e,config:r}),options:n});t.dash_thumbnail_get_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/images-{dimensions}/dvr-{from}-{offset}.m4v.jpg",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.dash_thumbnail_get_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_dash_thumbnail_get"])};t.webrtc_publish=({options:e,isAsync:n,mutationFn:a,showSuccessMessage:c=!0,showErrorMessage:l=!0}={})=>{const{t:f}=(0,u.useTranslation)(),d=(0,o.useMutationApi)(({params:e,body:n,config:r})=>{const{pathWithParams:o,queryParams:u}=(0,s.getPathWithParams)({path:"/{name}/whip",queryAndPathParams:e,encodeParams:(null==r?void 0:r.encodeParams)||!1});return a&&(0,i.isFunction)(a)?a({params:e,body:n,config:r}):t.axiosInstance.post(o,n,Object.assign({params:u},r))},()=>c&&f("webrtc_publish.successPostAlert"),(0,i.isObject)(e)?e:{},l);return n?e=>{var{params:t,body:n,config:i}=e,o=r(e,["params","body","config"]);return d.mutateAsync(Object.assign({params:t,body:n,config:i},o))}:e=>{var{params:t,body:n,config:i}=e,o=r(e,["params","body","config"]);return d.mutate(Object.assign({params:t,body:n,config:i},o))}};t.webrtc_play=({options:e,isAsync:n,mutationFn:a,showSuccessMessage:c=!0,showErrorMessage:l=!0}={})=>{const{t:f}=(0,u.useTranslation)(),d=(0,o.useMutationApi)(({params:e,body:n,config:r})=>{const{pathWithParams:o,queryParams:u}=(0,s.getPathWithParams)({path:"/{name}/whep",queryAndPathParams:e,encodeParams:(null==r?void 0:r.encodeParams)||!1});return a&&(0,i.isFunction)(a)?a({params:e,body:n,config:r}):t.axiosInstance.post(o,n,Object.assign({params:u},r))},()=>c&&f("webrtc_play.successPostAlert"),(0,i.isObject)(e)?e:{},l);return n?e=>{var{params:t,body:n,config:i}=e,o=r(e,["params","body","config"]);return d.mutateAsync(Object.assign({params:t,body:n,config:i},o))}:e=>{var{params:t,body:n,config:i}=e,o=r(e,["params","body","config"]);return d.mutate(Object.assign({params:t,body:n,config:i},o))}};t.http_mpegts_live_play=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_http_mpegts_live_play",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.http_mpegts_live_play_query)({params:e,config:r}),options:n});t.http_mpegts_live_play_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/mpegts",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.http_mpegts_live_play_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_http_mpegts_live_play"])};t.http_mpegts_live_publish=({options:e,isAsync:n,mutationFn:a,showSuccessMessage:c=!0,showErrorMessage:l=!0}={})=>{const{t:f}=(0,u.useTranslation)(),d=(0,o.useMutationApi)(({params:e,body:n,config:r})=>{const{pathWithParams:o,queryParams:u}=(0,s.getPathWithParams)({path:"/{name}/mpegts",queryAndPathParams:e,encodeParams:(null==r?void 0:r.encodeParams)||!1});return a&&(0,i.isFunction)(a)?a({params:e,body:n,config:r}):t.axiosInstance.post(o,n,Object.assign({params:u},r))},()=>c&&f("http_mpegts_live_publish.successPostAlert"),(0,i.isObject)(e)?e:{},l);return n?e=>{var{params:t,body:n,config:i}=e,o=r(e,["params","body","config"]);return d.mutateAsync(Object.assign({params:t,body:n,config:i},o))}:e=>{var{params:t,body:n,config:i}=e,o=r(e,["params","body","config"]);return d.mutate(Object.assign({params:t,body:n,config:i},o))}};t.http_mpegts_timeshift_abs=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_http_mpegts_timeshift_abs",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.http_mpegts_timeshift_abs_query)({params:e,config:r}),options:n});t.http_mpegts_timeshift_abs_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/timeshift_abs-{from}.ts",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.http_mpegts_timeshift_abs_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_http_mpegts_timeshift_abs"])};t.http_mpegts_timeshift_rel=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_http_mpegts_timeshift_rel",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.http_mpegts_timeshift_rel_query)({params:e,config:r}),options:n});t.http_mpegts_timeshift_rel_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/timeshift_rel-{delay}.ts",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.http_mpegts_timeshift_rel_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_http_mpegts_timeshift_rel"])};t.shoutcast_live=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_shoutcast_live",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.shoutcast_live_query)({params:e,config:r}),options:n});t.shoutcast_live_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/shoutcast",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.shoutcast_live_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_shoutcast_live"])};t.mss_live_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_mss_live_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.mss_live_manifest_query)({params:e,config:r}),options:n});t.mss_live_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}.isml/manifest",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.mss_live_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_mss_live_manifest"])};t.mss_dvr_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_mss_dvr_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.mss_dvr_manifest_query)({params:e,config:r}),options:n});t.mss_dvr_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}(archive={from}-{duration}).isml/manifest",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.mss_dvr_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_mss_dvr_manifest"])};t.mp4_export=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_mp4_export",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.mp4_export_query)({params:e,config:r}),options:n});t.mp4_export_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/archive-{from}-{duration}.mp4",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.mp4_export_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_mp4_export"])};t.ts_export=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_ts_export",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.ts_export_query)({params:e,config:r}),options:n});t.ts_export_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/archive-{from}-{duration}.ts",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.ts_export_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_ts_export"])};t.mp4_save=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_mp4_save",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.mp4_save_query)({params:e,config:r}),options:n});t.mp4_save_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/save-mp4-{from}-{duration}.mp4",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.mp4_save_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_mp4_save"])};t.jpeg_preview=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_jpeg_preview",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.jpeg_preview_query)({params:e,config:r}),options:n});t.jpeg_preview_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/preview.jpg",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.jpeg_preview_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_jpeg_preview"])};t.jpeg_preview_dvr=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_jpeg_preview_dvr",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.jpeg_preview_dvr_query)({params:e,config:r}),options:n});t.jpeg_preview_dvr_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/{from}.jpg",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.jpeg_preview_dvr_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_jpeg_preview_dvr"])};t.jpeg_preview_ondemand=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_jpeg_preview_ondemand",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.jpeg_preview_ondemand_query)({params:e,config:r}),options:n});t.jpeg_preview_ondemand_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/{from}-preview.jpg",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.jpeg_preview_ondemand_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_jpeg_preview_ondemand"])};t.jpeg_snapshot=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_jpeg_snapshot",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.jpeg_snapshot_query)({params:e,config:r}),options:n});t.jpeg_snapshot_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/snapshot-{pts}-{size}.jpg",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.jpeg_snapshot_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_jpeg_snapshot"])};t.mp4_preview=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_mp4_preview",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.mp4_preview_query)({params:e,config:r}),options:n});t.mp4_preview_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/preview.mp4",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.mp4_preview_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_mp4_preview"])};t.mp4_dvr=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_mp4_dvr",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.mp4_dvr_query)({params:e,config:r}),options:n});t.mp4_dvr_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/{from}-preview.mp4",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.mp4_dvr_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_mp4_dvr"])};t.mp4_vod=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_mp4_vod",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.mp4_vod_query)({params:e,config:r}),options:n});t.mp4_vod_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/preview-{from}.mp4",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.mp4_vod_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_mp4_vod"])};t.media_logo=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_media_logo",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.media_logo_query)({params:e,config:r}),options:n});t.media_logo_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/logo",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.media_logo_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_media_logo"])};t.embed_html=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_embed_html",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.embed_html_query)({params:e,config:r}),options:n});t.embed_html_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/embed.html",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.embed_html_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_embed_html"])};t.recording_status=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_recording_status",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.recording_status_query)({params:e,config:r}),options:n});t.recording_status_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/recording_status.json",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.recording_status_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_recording_status"])};t.ranges_list=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_ranges_list",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.ranges_list_query)({params:e,config:r}),options:n});t.ranges_list_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/ranges.json",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.ranges_list_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_ranges_list"])};t.media_info=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_media_info",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.media_info_query)({params:e,config:r}),options:n});t.media_info_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/media_info.json",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.media_info_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_media_info"])};t.public_stream_get=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_public_stream_get",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.public_stream_get_query)({params:e,config:r}),options:n});t.public_stream_get_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/info.json",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.public_stream_get_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_public_stream_get"])};t.session_save=({options:e,isAsync:n,mutationFn:a,showSuccessMessage:c=!0,showErrorMessage:l=!0}={})=>{const{t:f}=(0,u.useTranslation)(),d=(0,o.useMutationApi)(({params:e,body:n,config:r})=>{const{pathWithParams:o,queryParams:u}=(0,s.getPathWithParams)({path:"/{name}/sessions/{id}",queryAndPathParams:e,encodeParams:(null==r?void 0:r.encodeParams)||!1});return a&&(0,i.isFunction)(a)?a({params:e,body:n,config:r}):t.axiosInstance.put(o,n,Object.assign({params:u},r))},()=>c&&f("session_save.successPutAlert"),(0,i.isObject)(e)?e:{},l);return n?e=>{var{params:t,body:n,config:i}=e,o=r(e,["params","body","config"]);return d.mutateAsync(Object.assign({params:t,body:n,config:i},o))}:e=>{var{params:t,body:n,config:i}=e,o=r(e,["params","body","config"]);return d.mutate(Object.assign({params:t,body:n,config:i},o))}};t.request_tracks=({options:e,isAsync:n,mutationFn:a,showSuccessMessage:c=!0,showErrorMessage:l=!0}={})=>{const{t:f}=(0,u.useTranslation)(),d=(0,o.useMutationApi)(({params:e,body:n,config:r})=>{const{pathWithParams:o,queryParams:u}=(0,s.getPathWithParams)({path:"/{name}/sessions/{id}/request_tracks",queryAndPathParams:e,encodeParams:(null==r?void 0:r.encodeParams)||!1});return a&&(0,i.isFunction)(a)?a({params:e,body:n,config:r}):t.axiosInstance.put(o,n,Object.assign({params:u},r))},()=>c&&f("request_tracks.successPutAlert"),(0,i.isObject)(e)?e:{},l);return n?e=>{var{params:t,body:n,config:i}=e,o=r(e,["params","body","config"]);return d.mutateAsync(Object.assign({params:t,body:n,config:i},o))}:e=>{var{params:t,body:n,config:i}=e,o=r(e,["params","body","config"]);return d.mutate(Object.assign({params:t,body:n,config:i},o))}};t.playlist_get=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_playlist_get",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.playlist_get_query)({params:e,config:r}),options:n});t.playlist_get_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/tv/playlists/{name}",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.playlist_get_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_playlist_get"])};t.streams_list=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_streams_list",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.streams_list_query)({params:e,config:r}),options:n});t.streams_list_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/-/streams",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.streams_list_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_streams_list"])}},function(e,t,n){"use strict";var r=n(77);function i(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=i.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(i,a),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=function(e,t,n,a,s,u){var c=Object.create(o);return r.toFlatObject(e,c,(function(e){return e!==Error.prototype})),i.call(c,e.message,t,n,a,s),c.name=e.name,u&&Object.assign(c,u),c},e.exports=i},function(e,t,n){"use strict";var r=n(51),i=n(3),o=n(150),a=n(60),s=Object(i.a)((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(n){return e(n)(t(n))}:Object(o.a)((function(e,n){return Object(r.a)(e,Object(a.a)(n,t))}),[],e)}));t.a=s},function(e,t,n){"use strict";var r=n(127),i=n(5),o=n(56),a=Object(i.a)(Object(r.a)("tail",Object(o.a)(1,1/0)));t.a=a},function(e,t,n){"use strict";var r=n(5),i=n(107),o=Object(r.a)((function(e){return Object(i.a)(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));t.a=o},function(e,t,n){"use strict";var r=n(126),i=n(3),o=n(18),a=n(198),s=n(118),u=n(15),c=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=u.a.init,e.prototype["@@transducer/result"]=u.a.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function l(e){return function(t){return new c(e,t)}}var f=n(52),d=Object(i.a)(Object(o.a)(["fantasy-land/filter","filter"],l,(function(e,t){return Object(s.a)(t)?Object(r.a)((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},Object(f.a)(t)):Object(a.a)(e,t)})));t.a=d},function(e,t,n){"use strict";function r(e){return null!=e&&"function"==typeof e["@@transducer/step"]}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0,r=t.length,i=[];n<r;)e(t[n])&&(i[i.length]=t[n]),n+=1;return i}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(283),i=n(151);function o(e,t,n){if(n||(n=new a),u=typeof(s=e),null==s||"object"!=u&&"function"!=u)return e;var s,u,c=function(r){var i=n.get(e);if(i)return i;for(var a in n.set(e,r),e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=t?o(e[a],!0,n):e[a]);return r};switch(Object(i.a)(e)){case"Object":return c(Object.create(Object.getPrototypeOf(e)));case"Array":return c([]);case"Date":return new Date(e.valueOf());case"RegExp":return Object(r.a)(e);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var a=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){const n=this.hash(e);let r=this.map[n];r||(this.map[n]=r=[]),r.push([e,t]),this.length+=1},e.prototype.hash=function(e){let t=[];for(var n in e)t.push(Object.prototype.toString.call(e[n]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(const t in this.map){const n=this.map[t];for(let t=0;t<n.length;t+=1){const r=n[t];if(r[0]===e)return r[1]}}return}const t=this.hash(e),n=this.map[t];if(n)for(let t=0;t<n.length;t+=1){const r=n[t];if(r[0]===e)return r[1]}},e}()},function(e,t,n){"use strict";var r=n(9);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";var r=n(64),i=n(120),o=n(30),a=function(e){return function(t,n,a){var s=r(t),u=o(s);if(0===u)return!e&&-1;var c,l=i(a,u);if(e&&n!=n){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){"use strict";var r=n(9),i=n(24),o=/#|\.prototype\./,a=function(e,t){var n=u[s(e)];return n===l||n!==c&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},function(e,t,n){"use strict";var r=n(541);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},function(e,t,n){"use strict";var r=n(9),i=n(17),o=n(130),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){"use strict";var r=n(46),i=n(101),o=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw new o("Wrong length or index");return n}},function(e,t,n){"use strict";var r=n(13),i=n(184),o=n(24),a=n(203),s=n(229),u=n(17),c=n(390),l=n(311),f=n(28),d=n(130),h=i&&i.prototype,p=u("species"),g=!1,m=o(r.PromiseRejectionEvent),v=a("Promise",(function(){var e=s(i),t=e!==String(i);if(!t&&66===d)return!0;if(f&&(!h.catch||!h.finally))return!0;if(!d||d<51||!/native code/.test(e)){var n=new i((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[p]=r,!(g=n.then((function(){}))instanceof r))return!0}return!t&&(c||l)&&!m}));e.exports={CONSTRUCTOR:v,REJECTION_EVENT:m,SUBCLASSING:g}},function(e,t,n){"use strict";var r=n(12),i=n(26),o=n(82),a=n(316),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||i(e,"flags")||!o(s,e)?t:r(a,e)}},function(e,t,n){"use strict";var r=n(232),i=n(76);e.exports=r(i.proto,"size","get")||function(e){return e.size}},function(e,t,n){"use strict";var r=n(12),i=n(11),o=n(24),a=n(81),s=n(319),u=TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var c=r(n,e,t);return null!==c&&i(c),c}if("RegExp"===a(e))return r(s,e,t);throw new u("RegExp#exec called on incompatible receiver")}},function(e,t,n){"use strict";var r=n(46),i=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw new i("The argument can't be less than 0");return t}},function(e,t,n){"use strict";var r=n(27),i=n(181),o=r.aTypedArrayConstructor,a=r.getTypedArrayConstructor;e.exports=function(e){return o(i(e,a(e)))}},function(e,t,n){"use strict";var r,i,o=n(13),a=n(226),s=n(24),u=n(58),c=n(67),l=n(36),f=n(17),d=n(28),h=f("asyncIterator"),p=o.AsyncIterator,g=a.AsyncIteratorPrototype;if(g)r=g;else if(s(p))r=p.prototype;else if(a.USE_FUNCTION_CONSTRUCTOR||o.USE_FUNCTION_CONSTRUCTOR)try{i=c(c(c(Function("return async function*(){}()")()))),c(i)===Object.prototype&&(r=i)}catch(e){}r?d&&(r=u(r)):r={},s(r[h])||l(r,h,(function(){return this})),e.exports=r},function(e,t,n){"use strict";var r=n(12),i=n(21),o=n(57);e.exports=function(e,t,n,a){try{var s=o(e,"return");if(s)return i("Promise").resolve(r(s,e)).then((function(){t(n)}),(function(e){a(e)}))}catch(e){return a(e)}t(n)}},function(e,t,n){"use strict";var r=n(6),i=WeakSet.prototype;e.exports={WeakSet:WeakSet,add:r(i.add),has:r(i.has),remove:r(i.delete)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return u}));var r=n(0),i=n.n(r);function o(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var a=i.a.createContext(o()),s=function(){return i.a.useContext(a)},u=function(e){var t=e.children,n=i.a.useMemo((function(){return o()}),[]);return i.a.createElement(a.Provider,{value:n},"function"==typeof t?t(n):t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(272),i=n(195);function o(){if(0===arguments.length)throw new Error("compose requires at least one argument");return r.a.apply(this,Object(i.a)(arguments))}},function(e,t,n){"use strict";var r=n(146),i=n(268),o=Object(r.a)(i.a);t.a=o},function(e,t){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(null,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(1094).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},function(e,t,n){"use strict";(function(e,r){n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var i=n(528);function o(){return!Object(i.a)()&&"[object process]"===Object.prototype.toString.call(void 0!==e?e:0)}function a(e,t){return e.require(t)}}).call(this,n(259),n(504)(e))},,,function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t,n){"use strict";var r=n(12),i=n(20),o=n(138),a=n(57),s=n(345),u=n(17),c=TypeError,l=u("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,u=a(e,l);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!i(n)||o(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},function(e,t,n){"use strict";var r=n(28),i=n(13),o=n(289),a=e.exports=i["__core-js_shared__"]||o("__core-js_shared__",{});(a.versions||(a.versions=[])).push({version:"3.37.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(e,t,n){"use strict";var r=n(13),i=n(20),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){"use strict";var r=n(6),i=n(9),o=n(24),a=n(26),s=n(16),u=n(175).CONFIGURABLE,c=n(229),l=n(35),f=l.enforce,d=l.get,h=String,p=Object.defineProperty,g=r("".slice),m=r("".replace),v=r([].join),y=s&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),_=e.exports=function(e,t,n){"Symbol("===g(h(t),0,7)&&(t="["+m(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=f(e);return a(r,"source")||(r.source=v(b,"string"==typeof t?t:"")),e};Function.prototype.toString=_((function(){return o(this)&&d(this).source||c(this)}),"toString")},function(e,t,n){"use strict";var r=n(6),i=n(24),o=n(226),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},function(e,t,n){"use strict";var r=n(139),i=n(155),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var r=n(6),i=n(22);e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},function(e,t,n){"use strict";var r=n(154),i=TypeError;e.exports=function(e,t){if(!delete e[t])throw new i("Cannot delete property "+r(t)+" of "+r(e))}},function(e,t,n){"use strict";var r=n(39),i=n(137),o=n(29),a=n(30),s=function(e){var t=1===e;return function(n,s,u){for(var c,l=o(n),f=i(l),d=a(f),h=r(s,u);d-- >0;)if(h(c=f[d],d,l))switch(e){case 0:return c;case 1:return d}return t?-1:void 0}};e.exports={findLast:s(0),findLastIndex:s(1)}},function(e,t,n){"use strict";var r=n(17)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!i)return!1}catch(e){return!1}var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(64),i=n(55),o=n(179),a=n(35),s=n(42).f,u=n(302),c=n(75),l=n(28),f=n(16),d=a.set,h=a.getterFor("Array Iterator");e.exports=u(Array,"Array",(function(e,t){d(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,c(void 0,!0);switch(e.kind){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)}),"values");var p=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!l&&f&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(e){}},function(e,t,n){"use strict";var r=n(22),i=n(29),o=n(137),a=n(30),s=TypeError,u="Reduce of empty array with no initial value",c=function(e){return function(t,n,c,l){var f=i(t),d=o(f),h=a(f);if(r(n),0===h&&c<2)throw new s(u);var p=e?h-1:0,g=e?-1:1;if(c<2)for(;;){if(p in d){l=d[p],p+=g;break}if(p+=g,e?p<0:h<=p)throw new s(u)}for(;e?p>=0:h>p;p+=g)p in d&&(l=n(l,d[p],p,f));return l}};e.exports={left:c(!1),right:c(!0)}},function(e,t,n){"use strict";var r=n(13),i=n(6),o=n(16),a=n(306),s=n(175),u=n(66),c=n(47),l=n(115),f=n(9),d=n(89),h=n(46),p=n(101),g=n(206),m=n(307),v=n(309),y=n(67),b=n(112),_=n(300),w=n(103),E=n(158),S=n(176),x=n(91),k=n(35),T=s.PROPER,O=s.CONFIGURABLE,R=k.getterFor("ArrayBuffer"),P=k.getterFor("DataView"),A=k.set,C=r.ArrayBuffer,L=C,D=L&&L.prototype,I=r.DataView,j=I&&I.prototype,M=Object.prototype,N=r.Array,F=r.RangeError,U=i(_),B=i([].reverse),q=v.pack,$=v.unpack,V=function(e){return[255&e]},z=function(e){return[255&e,e>>8&255]},W=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},G=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},H=function(e){return q(m(e),23,4)},K=function(e){return q(e,52,8)},Y=function(e,t,n){c(e.prototype,t,{configurable:!0,get:function(){return n(this)[t]}})},Q=function(e,t,n,r){var i=P(e),o=g(n),a=!!r;if(o+t>i.byteLength)throw new F("Wrong index");var s=i.bytes,u=o+i.byteOffset,c=w(s,u,u+t);return a?c:B(c)},X=function(e,t,n,r,i,o){var a=P(e),s=g(n),u=r(+i),c=!!o;if(s+t>a.byteLength)throw new F("Wrong index");for(var l=a.bytes,f=s+a.byteOffset,d=0;d<t;d++)l[f+d]=u[c?d:t-d-1]};if(a){var J=T&&"ArrayBuffer"!==C.name;f((function(){C(1)}))&&f((function(){new C(-1)}))&&!f((function(){return new C,new C(1.5),new C(NaN),1!==C.length||J&&!O}))?J&&O&&u(C,"name","ArrayBuffer"):((L=function(e){return d(this,D),E(new C(g(e)),this,L)}).prototype=D,D.constructor=L,S(L,C)),b&&y(j)!==M&&b(j,M);var Z=new I(new L(2)),ee=i(j.setInt8);Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),!Z.getInt8(0)&&Z.getInt8(1)||l(j,{setInt8:function(e,t){ee(this,e,t<<24>>24)},setUint8:function(e,t){ee(this,e,t<<24>>24)}},{unsafe:!0})}else D=(L=function(e){d(this,D);var t=g(e);A(this,{type:"ArrayBuffer",bytes:U(N(t),0),byteLength:t}),o||(this.byteLength=t,this.detached=!1)}).prototype,j=(I=function(e,t,n){d(this,j),d(e,D);var r=R(e),i=r.byteLength,a=h(t);if(a<0||a>i)throw new F("Wrong offset");if(a+(n=void 0===n?i-a:p(n))>i)throw new F("Wrong length");A(this,{type:"DataView",buffer:e,byteLength:n,byteOffset:a,bytes:r.bytes}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=a)}).prototype,o&&(Y(L,"byteLength",R),Y(I,"buffer",P),Y(I,"byteLength",P),Y(I,"byteOffset",P)),l(j,{getInt8:function(e){return Q(this,1,e)[0]<<24>>24},getUint8:function(e){return Q(this,1,e)[0]},getInt16:function(e){var t=Q(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Q(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return G(Q(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return G(Q(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return $(Q(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return $(Q(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){X(this,1,e,V,t)},setUint8:function(e,t){X(this,1,e,V,t)},setInt16:function(e,t){X(this,2,e,z,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){X(this,2,e,z,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){X(this,4,e,W,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){X(this,4,e,W,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){X(this,4,e,H,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){X(this,8,e,K,t,arguments.length>2&&arguments[2])}});x(L,"ArrayBuffer"),x(I,"DataView"),e.exports={ArrayBuffer:L,DataView:I}},function(e,t,n){"use strict";var r=n(122),i=n(154),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a constructor")}},function(e,t,n){"use strict";var r=n(6),i=n(101),o=n(23),a=n(241),s=n(43),u=r(a),c=r("".slice),l=Math.ceil,f=function(e){return function(t,n,r){var a,f,d=o(s(t)),h=i(n),p=d.length,g=void 0===r?" ":o(r);return h<=p||""===g?d:((f=u(g,l((a=h-p)/g.length))).length>a&&(f=c(f,0,a)),e?d+f:f+d)}};e.exports={start:f(!1),end:f(!0)}},function(e,t,n){"use strict";var r=n(46),i=n(23),o=n(43),a=RangeError;e.exports=function(e){var t=i(o(this)),n="",s=r(e);if(s<0||s===1/0)throw new a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(n+=t);return n}},function(e,t,n){"use strict";var r=n(2),i=n(13),o=n(6),a=n(203),s=n(36),u=n(163),c=n(54),l=n(89),f=n(24),d=n(65),h=n(20),p=n(9),g=n(235),m=n(91),v=n(158);e.exports=function(e,t,n){var y=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),_=y?"set":"add",w=i[e],E=w&&w.prototype,S=w,x={},k=function(e){var t=o(E[e]);s(E,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(b&&!h(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return b&&!h(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(b&&!h(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!f(w)||!(b||E.forEach&&!p((function(){(new w).entries().next()})))))S=n.getConstructor(t,e,y,_),u.enable();else if(a(e,!0)){var T=new S,O=T[_](b?{}:-0,1)!==T,R=p((function(){T.has(1)})),P=g((function(e){new w(e)})),A=!b&&p((function(){for(var e=new w,t=5;t--;)e[_](t,t);return!e.has(-0)}));P||((S=t((function(e,t){l(e,E);var n=v(new w,e,S);return d(t)||c(t,n[_],{that:n,AS_ENTRIES:y}),n}))).prototype=E,E.constructor=S),(R||A)&&(k("delete"),k("has"),y&&k("get")),(A||O)&&k(_),b&&E.clear&&delete E.clear}return x[e]=S,r({global:!0,constructor:!0,forced:S!==w},x),m(S,e),b||n.setStrong(S,e,y),S}},function(e,t,n){"use strict";var r=Math.expm1,i=Math.exp;e.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!==r(-2e-17)?function(e){var t=+e;return 0===t?t:t>-1e-6&&t<1e-6?t+t*t/2:i(t)-1}:r},function(e,t,n){"use strict";var r=n(6);e.exports=r(1..valueOf)},function(e,t,n){"use strict";var r=n(28),i=n(13),o=n(9),a=n(305);e.exports=r||!o((function(){if(!(a&&a<535)){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete i[e]}}))},function(e,t,n){"use strict";var r,i,o,a,s=n(13),u=n(88),c=n(39),l=n(24),f=n(26),d=n(9),h=n(351),p=n(103),g=n(227),m=n(108),v=n(406),y=n(142),b=s.setImmediate,_=s.clearImmediate,w=s.process,E=s.Dispatch,S=s.Function,x=s.MessageChannel,k=s.String,T=0,O={};d((function(){r=s.location}));var R=function(e){if(f(O,e)){var t=O[e];delete O[e],t()}},P=function(e){return function(){R(e)}},A=function(e){R(e.data)},C=function(e){s.postMessage(k(e),r.protocol+"//"+r.host)};b&&_||(b=function(e){m(arguments.length,1);var t=l(e)?e:S(e),n=p(arguments,1);return O[++T]=function(){u(t,void 0,n)},i(T),T},_=function(e){delete O[e]},y?i=function(e){w.nextTick(P(e))}:E&&E.now?i=function(e){E.now(P(e))}:x&&!v?(a=(o=new x).port2,o.port1.onmessage=A,i=c(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!d(C)?(i=C,s.addEventListener("message",A,!1)):i="onreadystatechange"in g("script")?function(e){h.appendChild(g("script")).onreadystatechange=function(){h.removeChild(this),R(e)}}:function(e){setTimeout(P(e),0)}),e.exports={set:b,clear:_}},function(e,t,n){"use strict";var r=n(184),i=n(235),o=n(207).CONSTRUCTOR;e.exports=o||!i((function(e){r.all(e).then(void 0,(function(){}))}))},function(e,t,n){"use strict";var r=n(20),i=n(81),o=n(17)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"===i(e))}},function(e,t,n){"use strict";var r=n(9),i=n(13).RegExp,o=r((function(){var e=i("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=o||r((function(){return!i("a","y").sticky})),s=o||r((function(){var e=i("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},function(e,t,n){"use strict";n(318);var r=n(12),i=n(36),o=n(319),a=n(9),s=n(17),u=n(66),c=s("species"),l=RegExp.prototype;e.exports=function(e,t,n,f){var d=s(e),h=!a((function(){var t={};return t[d]=function(){return 7},7!==""[e](t)})),p=h&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!h||!p||n){var g=/./[d],m=t(d,""[e],(function(e,t,n,i,a){var s=t.exec;return s===o||s===l.exec?h&&!a?{done:!0,value:r(g,t,n,i)}:{done:!0,value:r(e,n,t,i)}:{done:!1}}));i(String.prototype,e,m[0]),i(l,d,m[1])}f&&u(l[d],"sham",!0)}},function(e,t,n){"use strict";var r=n(185).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){"use strict";var r=n(225),i=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw new i("Can't convert number to bigint");return BigInt(t)}},function(e,t,n){"use strict";var r=n(12),i=n(11),o=n(58),a=n(57),s=n(115),u=n(35),c=n(21),l=n(213),f=n(75),d=c("Promise"),h=u.set,p=u.getterFor("AsyncFromSyncIterator"),g=function(e,t,n){var r=e.done;d.resolve(e.value).then((function(e){t(f(e,r))}),n)},m=function(e){e.type="AsyncFromSyncIterator",h(this,e)};m.prototype=s(o(l),{next:function(){var e=p(this);return new d((function(t,n){var o=i(r(e.next,e.iterator));g(o,t,n)}))},return:function(){var e=p(this).iterator;return new d((function(t,n){var o=a(e,"return");if(void 0===o)return t(f(void 0,!0));var s=i(r(o,e));g(s,t,n)}))}}),e.exports=m},function(e,t,n){"use strict";var r=RangeError;e.exports=function(e){if(e==e)return e;throw new r("NaN is not allowed")}},function(e,t,n){"use strict";var r=n(39),i=n(11),o=n(29),a=n(54);e.exports=function(e,t,n){return function(s){var u=o(s),c=arguments.length,l=c>1?arguments[1]:void 0,f=void 0!==l,d=f?r(l,c>2?arguments[2]:void 0):void 0,h=new e,p=0;return a(u,(function(e){var r=f?d(e,p++):e;n?t(h,i(r)[0],r[1]):t(h,r)})),h}}},function(e,t,n){"use strict";var r=n(11);e.exports=function(e,t,n){return function(){for(var i=new e,o=arguments.length,a=0;a<o;a++){var s=arguments[a];n?t(i,r(s)[0],s[1]):t(i,s)}return i}}},function(e,t,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=r+"+/",o=r+"-_",a=function(e){for(var t={},n=0;n<64;n++)t[e.charAt(n)]=n;return t};e.exports={i2c:i,c2i:a(i),i2cUrl:o,c2iUrl:a(o)}},function(e,t,n){"use strict";var r=n(9),i=n(17),o=n(16),a=n(28),s=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),n.delete("a",2),n.delete("b",void 0),a&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(a||!o)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,f=-1;function d(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&h())}function h(){if(!l){var e=s(d);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f<t;)u&&u[f].run();f=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||l||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){e.exports=n(1032)},function(e,t,n){"use strict";var r=n(192);function i(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(77).inherits(i,r,{__CANCEL__:!0}),e.exports=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(86),i=n(25),o=n(274),a=n(10),s=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}Object(r.a)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r=new o.a({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(r),r},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},n.clear=function(){var e=this;i.a.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},n.getAll=function(){return this.mutations},n.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((function(t){return Object(a.j)(e,t)}))},n.findAll=function(e){return this.mutations.filter((function(t){return Object(a.j)(e,t)}))},n.notify=function(e){var t=this;i.a.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return i.a.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(a.l)}))}),Promise.resolve())}))},t}(n(96).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(86),i=n(10),o=n(25),a=n(169),s=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.queries=[],r.result=[],r.observers=[],r.observersMap={},n&&r.setQueries(n),r}Object(r.a)(t,e);var n=t.prototype;return n.onSubscribe=function(){var e=this;1===this.listeners.length&&this.observers.forEach((function(t){t.subscribe((function(n){e.onUpdate(t,n)}))}))},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.destroy=function(){this.listeners=[],this.observers.forEach((function(e){e.destroy()}))},n.setQueries=function(e,t){this.queries=e,this.updateObservers(t)},n.getCurrentResult=function(){return this.result},n.getOptimisticResult=function(e){return this.findMatchingObservers(e).map((function(e){return e.observer.getOptimisticResult(e.defaultedQueryOptions)}))},n.findMatchingObservers=function(e){var t=this,n=this.observers,r=e.map((function(e){return t.client.defaultQueryObserverOptions(e)})),i=r.flatMap((function(e){var t=n.find((function(t){return t.options.queryHash===e.queryHash}));return null!=t?[{defaultedQueryOptions:e,observer:t}]:[]})),o=i.map((function(e){return e.defaultedQueryOptions.queryHash})),a=r.filter((function(e){return!o.includes(e.queryHash)})),s=n.filter((function(e){return!i.some((function(t){return t.observer===e}))})),u=a.map((function(e,n){if(e.keepPreviousData){var r=s[n];if(void 0!==r)return{defaultedQueryOptions:e,observer:r}}return{defaultedQueryOptions:e,observer:t.getObserver(e)}}));return i.concat(u).sort((function(e,t){return r.indexOf(e.defaultedQueryOptions)-r.indexOf(t.defaultedQueryOptions)}))},n.getObserver=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.observersMap[t.queryHash];return null!=n?n:new a.a(this.client,t)},n.updateObservers=function(e){var t=this;o.a.batch((function(){var n=t.observers,r=t.findMatchingObservers(t.queries);r.forEach((function(t){return t.observer.setOptions(t.defaultedQueryOptions,e)}));var o=r.map((function(e){return e.observer})),a=Object.fromEntries(o.map((function(e){return[e.options.queryHash,e]}))),s=o.map((function(e){return e.getCurrentResult()})),u=o.some((function(e,t){return e!==n[t]}));(n.length!==o.length||u)&&(t.observers=o,t.observersMap=a,t.result=s,t.hasListeners()&&(Object(i.a)(n,o).forEach((function(e){e.destroy()})),Object(i.a)(o,n).forEach((function(e){e.subscribe((function(n){t.onUpdate(e,n)}))})),t.notify()))}))},n.onUpdate=function(e,t){var n=this.observers.indexOf(e);-1!==n&&(this.result=Object(i.r)(this.result,n,t),this.notify())},n.notify=function(){var e=this;o.a.batch((function(){e.listeners.forEach((function(t){t(e.result)}))}))},t}(n(96).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(19),i=n(86),o=n(169),a=n(172),s=function(e){function t(t,n){return e.call(this,t,n)||this}Object(i.a)(t,e);var n=t.prototype;return n.bindMethods=function(){e.prototype.bindMethods.call(this),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)},n.setOptions=function(t,n){e.prototype.setOptions.call(this,Object(r.a)({},t,{behavior:Object(a.c)()}),n)},n.getOptimisticResult=function(t){return t.behavior=Object(a.c)(),e.prototype.getOptimisticResult.call(this,t)},n.fetchNextPage=function(e){var t;return this.fetch({cancelRefetch:null==(t=null==e?void 0:e.cancelRefetch)||t,throwOnError:null==e?void 0:e.throwOnError,meta:{fetchMore:{direction:"forward",pageParam:null==e?void 0:e.pageParam}}})},n.fetchPreviousPage=function(e){var t;return this.fetch({cancelRefetch:null==(t=null==e?void 0:e.cancelRefetch)||t,throwOnError:null==e?void 0:e.throwOnError,meta:{fetchMore:{direction:"backward",pageParam:null==e?void 0:e.pageParam}}})},n.createResult=function(t,n){var i,o,s,u,c,l,f=t.state,d=e.prototype.createResult.call(this,t,n);return Object(r.a)({},d,{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Object(a.a)(n,null==(i=f.data)?void 0:i.pages),hasPreviousPage:Object(a.b)(n,null==(o=f.data)?void 0:o.pages),isFetchingNextPage:f.isFetching&&"forward"===(null==(s=f.fetchMeta)||null==(u=s.fetchMore)?void 0:u.direction),isFetchingPreviousPage:f.isFetching&&"backward"===(null==(c=f.fetchMeta)||null==(l=c.fetchMore)?void 0:l.direction)})},t}(o.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(19),i=n(86),o=n(274),a=n(25),s=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.setOptions(n),r.bindMethods(),r.updateResult(),r}Object(i.a)(t,e);var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},n.onUnsubscribe=function(){var e;this.listeners.length||(null==(e=this.currentMutation)||e.removeObserver(this))},n.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,Object(r.a)({},this.options,{variables:void 0!==e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:Object(o.b)(),t=Object(r.a)({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},n.notify=function(e){var t=this;a.a.batch((function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)}))}))},t}(n(96).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n(19);function i(e){return e.state.isPaused}function o(e){return"success"===e.state.status}function a(e,t){var n,r,a=[],s=[];if(!1!==(null==(n=t=t||{})?void 0:n.dehydrateMutations)){var u=t.shouldDehydrateMutation||i;e.getMutationCache().getAll().forEach((function(e){u(e)&&a.push(function(e){return{mutationKey:e.options.mutationKey,state:e.state}}(e))}))}if(!1!==(null==(r=t)?void 0:r.dehydrateQueries)){var c=t.shouldDehydrateQuery||o;e.getQueryCache().getAll().forEach((function(e){c(e)&&s.push(function(e){return{state:e.state,queryKey:e.queryKey,queryHash:e.queryHash}}(e))}))}return{mutations:a,queries:s}}function s(e,t,n){if("object"==typeof t&&null!==t){var i=e.getMutationCache(),o=e.getQueryCache(),a=t.mutations||[],s=t.queries||[];a.forEach((function(t){var o;i.build(e,Object(r.a)({},null==n||null==(o=n.defaultOptions)?void 0:o.mutations,{mutationKey:t.mutationKey}),t.state)})),s.forEach((function(t){var i,a=o.get(t.queryHash);a?a.state.dataUpdatedAt<t.state.dataUpdatedAt&&a.setState(t.state):o.build(e,Object(r.a)({},null==n||null==(i=n.defaultOptions)?void 0:i.queries,{queryKey:t.queryKey,queryHash:t.queryHash}),t.state)}))}}},function(e,t,n){"use strict";var r=n(3),i=n(126),o=n(193),a=n(31),s=n(60),u=Object(r.a)((function(e,t){var n=Object(a.a)(e,t);return Object(a.a)(e,(function(){return Object(i.a)(o.a,Object(s.a)(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));t.a=u},function(e,t,n){"use strict";var r=n(5),i=Object(r.a)((function(e){return!e}));t.a=i},function(e,t,n){"use strict";var r=n(61),i=n(3),o=Object(i.a)((function(e,t){return Object(r.a)(e.length,(function(){return e.apply(t,arguments)}))}));t.a=o},function(e,t,n){"use strict";var r=n(199),i=n(5),o=Object(i.a)((function(e){return null!=e&&"function"==typeof e.clone?e.clone():Object(r.a)(e,!0)}));t.a=o},function(e,t,n){"use strict";var r=n(5),i=n(279),o=n(33),a=n(118),s=n(107);var u=Object(r.a)((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():Object(o.a)(e)?[]:Object(s.a)(e)?"":Object(a.a)(e)?{}:Object(i.a)(e)?function(){return arguments}():(t=e,"[object Uint8ClampedArray]"===(n=Object.prototype.toString.call(t))||"[object Int8Array]"===n||"[object Uint8Array]"===n||"[object Int16Array]"===n||"[object Uint16Array]"===n||"[object Int32Array]"===n||"[object Uint32Array]"===n||"[object Float32Array]"===n||"[object Float64Array]"===n||"[object BigInt64Array]"===n||"[object BigUint64Array]"===n?e.constructor.from(""):void 0);var t,n}));t.a=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(61);function i(e,t){return function(){return t.call(this,e.apply(this,arguments))}}var o=n(72),a=n(194);function s(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return Object(r.a)(arguments[0].length,Object(o.a)(i,arguments[0],Object(a.a)(arguments)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(86),i=n(10),o=n(19),a=n(25),s=n(135),u=n(85),c=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=Object(o.a)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),Object(i.i)(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var n,r,o=this.state.data,a=Object(i.c)(e,o);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,o,a))?a=o:!1!==this.options.structuralSharing&&(a=Object(i.s)(o,a)),this.dispatch({data:a,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),a},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(i.l).catch(i.l):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!Object(i.w)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,r,o,a=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var c;return null==(c=this.retryer)||c.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var l=this.observers.find((function(e){return e.options.queryFn}));l&&this.setOptions(l.options)}var f=Object(i.b)(this.queryKey),d=Object(i.d)(),h={queryKey:f,pageParam:void 0,meta:this.meta};Object.defineProperty(h,"signal",{enumerable:!0,get:function(){if(d)return a.abortSignalConsumed=!0,d.signal}});var p,g,m={fetchOptions:t,options:this.options,queryKey:f,state:this.state,fetchFn:function(){return a.options.queryFn?(a.abortSignalConsumed=!1,a.options.queryFn(h)):Promise.reject("Missing queryFn")},meta:this.meta};(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(p=this.options.behavior)||p.onFetch(m));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(r=m.fetchOptions)?void 0:r.meta))||this.dispatch({type:"fetch",meta:null==(g=m.fetchOptions)?void 0:g.meta});return this.retryer=new u.b({fn:m.fetchFn,abort:null==d||null==(o=d.abort)?void 0:o.bind(d),onSuccess:function(e){a.setData(e),null==a.cache.config.onSuccess||a.cache.config.onSuccess(e,a),0===a.cacheTime&&a.optionalRemove()},onError:function(e){Object(u.d)(e)&&e.silent||a.dispatch({type:"error",error:e}),Object(u.d)(e)||(null==a.cache.config.onError||a.cache.config.onError(e,a),Object(s.a)().error(e)),0===a.cacheTime&&a.optionalRemove()},onFail:function(){a.dispatch({type:"failed"})},onPause:function(){a.dispatch({type:"pause"})},onContinue:function(){a.dispatch({type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),a.a.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"queryUpdated",action:e})}))},t.getDefaultState=function(e){var t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==e.initialData?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,r=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},t.reducer=function(e,t){var n,r;switch(t.type){case"failed":return Object(o.a)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return Object(o.a)({},e,{isPaused:!0});case"continue":return Object(o.a)({},e,{isPaused:!1});case"fetch":return Object(o.a)({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return Object(o.a)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(r=t.dataUpdatedAt)?r:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var i=t.error;return Object(u.d)(i)&&i.revert&&this.revertState?Object(o.a)({},this.revertState):Object(o.a)({},e,{error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return Object(o.a)({},e,{isInvalidated:!0});case"setState":return Object(o.a)({},e,t.state);default:return e}},e}(),l=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}Object(r.a)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r,o=t.queryKey,a=null!=(r=t.queryHash)?r:Object(i.f)(o,t),s=this.get(a);return s||(s=new c({cache:this,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o),meta:t.meta}),this.add(s)),s},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},n.clear=function(){var e=this;a.a.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=Object(i.m)(e,t)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find((function(e){return Object(i.k)(n,e)}))},n.findAll=function(e,t){var n=Object(i.m)(e,t)[0];return Object.keys(n).length>0?this.queries.filter((function(e){return Object(i.k)(n,e)})):this.queries},n.notify=function(e){var t=this;a.a.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){var e=this;a.a.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},n.onOnline=function(){var e=this;a.a.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(n(96).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c}));var r=n(19),i=n(135),o=n(25),a=n(85),s=n(10),u=function(){function e(e){this.options=Object(r.a)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||c(),this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(s.l).catch(s.l)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then((function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)})).then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)})).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),r.then((function(){return t.executeMutation()})).then((function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),Object(i.a)().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new a.b({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return Object(r.a)({},e,{failureCount:e.failureCount+1});case"pause":return Object(r.a)({},e,{isPaused:!0});case"continue":return Object(r.a)({},e,{isPaused:!1});case"loading":return Object(r.a)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return Object(r.a)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return Object(r.a)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return Object(r.a)({},e,t.state);default:return e}}(this.state,e),o.a.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}();function c(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}},function(e,t,n){"use strict";function r(e,t,n){return"function"==typeof t?t.apply(void 0,n):"boolean"==typeof t?t:!!e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),i=n.n(r),o=n(25),a=n(216),s=n(90),u=n(275);function c(e,t){var n=i.a.useRef(!1),r=i.a.useState(0)[1],c=Object(s.b)(),l=Object(a.b)(),f=c.defaultQueryObserverOptions(e);f.optimisticResults=!0,f.onError&&(f.onError=o.a.batchCalls(f.onError)),f.onSuccess&&(f.onSuccess=o.a.batchCalls(f.onSuccess)),f.onSettled&&(f.onSettled=o.a.batchCalls(f.onSettled)),f.suspense&&("number"!=typeof f.staleTime&&(f.staleTime=1e3),0===f.cacheTime&&(f.cacheTime=1)),(f.suspense||f.useErrorBoundary)&&(l.isReset()||(f.retryOnMount=!1));var d=i.a.useState((function(){return new t(c,f)}))[0],h=d.getOptimisticResult(f);if(i.a.useEffect((function(){n.current=!0,l.clearReset();var e=d.subscribe(o.a.batchCalls((function(){n.current&&r((function(e){return e+1}))})));return d.updateResult(),function(){n.current=!1,e()}}),[l,d]),i.a.useEffect((function(){d.setOptions(f,{listeners:!1})}),[f,d]),f.suspense&&h.isLoading)throw d.fetchOptimistic(f).then((function(e){var t=e.data;null==f.onSuccess||f.onSuccess(t),null==f.onSettled||f.onSettled(t,null)})).catch((function(e){l.clearReset(),null==f.onError||f.onError(e),null==f.onSettled||f.onSettled(void 0,e)}));if(h.isError&&!l.isReset()&&!h.isFetching&&Object(u.a)(f.suspense,f.useErrorBoundary,[h.error,d.getCurrentQuery()]))throw h.error;return"tracked"===f.notifyOnChangeProps&&(h=d.trackResult(h,f)),h}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(136),i="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function o(e,t,n){return function(o,a,s){if(Object(r.a)(s))return e(o,a,s);if(null==s)return a;if("function"==typeof s["fantasy-land/reduce"])return t(o,a,s,"fantasy-land/reduce");if(null!=s[i])return n(o,a,s[i]());if("function"==typeof s.next)return n(o,a,s);if("function"==typeof s.reduce)return t(o,a,s,"reduce");throw new TypeError("reduce: list must be array or iterable")}}},function(e,t,n){"use strict";var r=n(15),i=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=r.a.init,e.prototype["@@transducer/result"]=r.a.result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();t.a=function(e){return function(t){return new i(e,t)}}},function(e,t,n){"use strict";var r=n(34),i=Object.prototype.toString,o=function(){return"[object Arguments]"===i.call(arguments)?function(e){return"[object Arguments]"===i.call(e)}:function(e){return Object(r.a)("callee",e)}}();t.a=o},function(e,t,n){"use strict";function r(e,t,n){for(var r=0,i=n.length;r<i;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(44);function i(e,t,n){var i,o;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(i=1/t;n<e.length;){if(0===(o=e[n])&&1/o===i)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(o=e[n])&&o!=o)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(Object(r.a)(e[n],t))return n;n+=1}return-1}},function(e,t,n){"use strict";function r(e){return function(){return!e.apply(this,arguments)}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const a=o(n(0)),s=n(70);n(1101);t.default=(0,a.memo)(({live:e,seekLiveFunc:t})=>{const{t:n}=(0,s.useTranslation)();return a.default.createElement("div",{className:"itsLive"+(e?"":" not"),"data-cy":"itsLive",onClick:function(){return e?null:t("live")}},!e&&a.default.createElement("span",{className:"icon-back"}),n(e?"dvr_live":"dvr_back_to_live"))})},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(4);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.sort((function(e,t){return e[0]-t[0]})).map((function(e){return e[1]}));return function(e,t){var i,a,s,u;void 0===t&&(t=0);var c=[];try{for(var l=Object(r.e)(e.split("\n").slice(t)),f=l.next();!f.done;f=l.next()){var d=f.value;try{for(var h=(s=void 0,Object(r.e)(n)),p=h.next();!p.done;p=h.next()){var g=(0,p.value)(d);if(g){c.push(g);break}}}catch(e){s={error:e}}finally{try{p&&!p.done&&(u=h.return)&&u.call(h)}finally{if(s)throw s.error}}}}catch(e){i={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}return o(c)}}function o(e){if(!e.length)return[];var t=e,n=t[0].function||"",i=t[t.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==i.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((function(e){return Object(r.a)(Object(r.a)({},e),{filename:e.filename||t[0].filename,function:e.function||"?"})})).reverse()}function a(e){try{return e&&"function"==typeof e&&e.name||"<anonymous>"}catch(e){return"<anonymous>"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(171),i=n(110);function o(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var a=function(e){return(e<10?"0":"")+e},s="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"},u=n(52),c=n(147);function l(e,t){var n=function(n){var i=t.concat([e]);return Object(r.a)(n,i)?"<Circular>":l(n,i)},a=function(e,t){return Object(i.a)((function(t){return o(t)+": "+n(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Object(i.a)(n,e).join(", ")+"))";case"[object Array]":return"["+Object(i.a)(n,e).concat(a(e,Object(c.a)((function(e){return/^\d+$/.test(e)}),Object(u.a)(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):o(s(e)))+")";case"[object Map]":return"new Map("+n(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+n(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+n(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+n(e.valueOf())+")":o(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var f=e.toString();if("[object Object]"!==f)return f}return"{"+a(e,Object(u.a)(e)).join(", ")+"}"}}},function(e,t,n){"use strict";(function(e){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Preview=void 0;const s=o(n(0)),u=n(71);n(1079);const c=a(n(1081)),l=n(191);t.Preview=({name:t,hasPreview:n=!1,hidden:r,basicApiConfig:i,address:o,auth_token:a,from:f})=>{const[d,h]=(0,s.useState)(!1),[p,g]=(0,s.useState)(null);let m={};if(a){const e=(0,u.decode)(a.replace(/^\?/,""));m=Object.assign(Object.assign({},m),e)}const v={params:{name:t,from:f},options:{refetchInterval:1e4,keepPreviousData:!0,onSuccess:t=>{g(e.from(t,"binary").toString("base64"))}},config:Object.assign(Object.assign({},i),{responseType:"arraybuffer",baseURL:o||i.baseURL,params:Object.assign(Object.assign({},i.params),m)})};return n?f?(0,l.jpeg_preview_dvr)(v):(0,l.jpeg_preview)(v):f?(0,l.mp4_dvr)(v):(0,l.mp4_preview)(v),(0,s.useEffect)(()=>{r&&h(r)},[r]),s.default.createElement("video",{src:"data:video/mp4;base64,"+p,className:(0,c.default)(["dvrp-preview",{_hidden:d}]),playsInline:!0,autoPlay:!0,loop:!0,controls:!1,muted:!0})}}).call(this,n(336).Buffer)},function(e){e.exports=JSON.parse('{"version":"25.7.2-1-g810b0ce"}')},function(e,t,n){"use strict";var r=n(13),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},function(e,t,n){"use strict";var r=n(21),i=n(6),o=n(156),a=n(231),s=n(11),u=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?u(t,n(e)):t}},function(e,t,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){"use strict";var r={};r[n(17)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){"use strict";var r=n(16),i=n(347),o=n(42),a=n(11),s=n(64),u=n(177);t.f=r&&!i?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),i=u(t),c=i.length,l=0;c>l;)o.f(e,n=i[l++],r[n]);return e}},function(e,t,n){"use strict";var r=n(81),i=n(64),o=n(156).f,a=n(103),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===r(e)?function(e){try{return o(e)}catch(e){return a(s)}}(e):o(i(e))}},function(e,t,n){"use strict";var r=n(13);e.exports=r},function(e,t,n){"use strict";var r=n(66),i=n(297),o=n(362),a=Error.captureStackTrace;e.exports=function(e,t,n,s){o&&(a?a(e,t):r(e,"stack",i(n,s)))}},function(e,t,n){"use strict";var r=n(6),i=Error,o=r("".replace),a=String(new i("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,u=s.test(a);e.exports=function(e,t){if(u&&"string"==typeof e&&!i.prepareStackTrace)for(;t--;)e=o(e,s,"");return e}},function(e,t,n){"use strict";var r=n(9);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){"use strict";var r=n(17),i=n(179),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},function(e,t,n){"use strict";var r=n(29),i=n(120),o=n(30);e.exports=function(e){for(var t=r(this),n=o(t),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>s;)t[s++]=e;return t}},function(e,t,n){"use strict";var r=n(11),i=n(141);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){i(e,"throw",t)}}},function(e,t,n){"use strict";var r=n(2),i=n(12),o=n(28),a=n(175),s=n(24),u=n(161),c=n(67),l=n(112),f=n(91),d=n(66),h=n(36),p=n(17),g=n(179),m=n(180),v=a.PROPER,y=a.CONFIGURABLE,b=m.IteratorPrototype,_=m.BUGGY_SAFARI_ITERATORS,w=p("iterator"),E=function(){return this};e.exports=function(e,t,n,a,p,m,S){u(n,t,a);var x,k,T,O=function(e){if(e===p&&L)return L;if(!_&&e&&e in A)return A[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},R=t+" Iterator",P=!1,A=e.prototype,C=A[w]||A["@@iterator"]||p&&A[p],L=!_&&C||O(p),D="Array"===t&&A.entries||C;if(D&&(x=c(D.call(new e)))!==Object.prototype&&x.next&&(o||c(x)===b||(l?l(x,b):s(x[w])||h(x,w,E)),f(x,R,!0,!0),o&&(g[R]=E)),v&&"values"===p&&C&&"values"!==C.name&&(!o&&y?d(A,"name","values"):(P=!0,L=function(){return i(C,this)})),p)if(k={values:O("values"),keys:m?L:O("keys"),entries:O("entries")},S)for(T in k)(_||P||!(T in A))&&h(A,T,k[T]);else r({target:t,proto:!0,forced:_||P},k);return o&&!S||A[w]===L||h(A,w,L,{name:p}),g[t]=L,k}},function(e,t,n){"use strict";var r=n(16),i=n(121),o=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(i(e)&&!a(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},function(e,t,n){"use strict";var r=n(103),i=Math.floor,o=function(e,t){var n=e.length;if(n<8)for(var a,s,u=1;u<n;){for(s=u,a=e[u];s&&t(e[s-1],a)>0;)e[s]=e[--s];s!==u++&&(e[s]=a)}else for(var c=i(n/2),l=o(r(e,0,c),t),f=o(r(e,c),t),d=l.length,h=f.length,p=0,g=0;p<d||g<h;)e[p+g]=p<d&&g<h?t(l[p],f[g])<=0?l[p++]:f[g++]:p<d?l[p++]:f[g++];return e};e.exports=o},function(e,t,n){"use strict";var r=n(131).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},function(e,t,n){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){"use strict";var r=n(382);e.exports=Math.fround||function(e){return r(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},function(e,t,n){"use strict";e.exports=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}},function(e,t,n){"use strict";var r=Array,i=Math.abs,o=Math.pow,a=Math.floor,s=Math.log,u=Math.LN2;e.exports={pack:function(e,t,n){var c,l,f,d=r(n),h=8*n-t-1,p=(1<<h)-1,g=p>>1,m=23===t?o(2,-24)-o(2,-77):0,v=e<0||0===e&&1/e<0?1:0,y=0;for((e=i(e))!=e||e===1/0?(l=e!=e?1:0,c=p):(c=a(s(e)/u),e*(f=o(2,-c))<1&&(c--,f*=2),(e+=c+g>=1?m/f:m*o(2,1-g))*f>=2&&(c++,f/=2),c+g>=p?(l=0,c=p):c+g>=1?(l=(e*f-1)*o(2,t),c+=g):(l=e*o(2,g-1)*o(2,t),c=0));t>=8;)d[y++]=255&l,l/=256,t-=8;for(c=c<<t|l,h+=t;h>0;)d[y++]=255&c,c/=256,h-=8;return d[--y]|=128*v,d},unpack:function(e,t){var n,r=e.length,i=8*r-t-1,a=(1<<i)-1,s=a>>1,u=i-7,c=r-1,l=e[c--],f=127&l;for(l>>=7;u>0;)f=256*f+e[c--],u-=8;for(n=f&(1<<-u)-1,f>>=-u,u+=t;u>0;)n=256*n+e[c--],u-=8;if(0===f)f=1-s;else{if(f===a)return n?NaN:l?-1/0:1/0;n+=o(2,t),f-=s}return(l?-1:1)*n*o(2,f-t)}}},function(e,t,n){"use strict";var r=n(13),i=n(9),o=n(130),a=n(390),s=n(311),u=n(142),c=r.structuredClone;e.exports=!!c&&!i((function(){if(s&&o>92||u&&o>94||a&&o>97)return!1;var e=new ArrayBuffer(8),t=c(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength}))},function(e,t,n){"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},function(e,t,n){"use strict";n(613)},function(e,t,n){"use strict";var r=n(9),i=n(20),o=n(81),a=n(314),s=Object.isExtensible,u=r((function(){s(1)}));e.exports=u||a?function(e){return!!i(e)&&((!a||"ArrayBuffer"!==o(e))&&(!s||s(e)))}:s},function(e,t,n){"use strict";var r=n(9);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},function(e,t,n){"use strict";var r=n(20),i=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){"use strict";var r=n(11);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(9),i=n(13).RegExp;e.exports=r((function(){var e=i(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},function(e,t,n){"use strict";var r=n(2),i=n(319);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(e,t,n){"use strict";var r,i,o=n(12),a=n(6),s=n(23),u=n(316),c=n(249),l=n(139),f=n(58),d=n(35).get,h=n(317),p=n(416),g=l("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,v=m,y=a("".charAt),b=a("".indexOf),_=a("".replace),w=a("".slice),E=(i=/b*/g,o(m,r=/a/,"a"),o(m,i,"a"),0!==r.lastIndex||0!==i.lastIndex),S=c.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];(E||x||S||h||p)&&(v=function(e){var t,n,r,i,a,c,l,h=this,p=d(h),k=s(e),T=p.raw;if(T)return T.lastIndex=h.lastIndex,t=o(v,T,k),h.lastIndex=T.lastIndex,t;var O=p.groups,R=S&&h.sticky,P=o(u,h),A=h.source,C=0,L=k;if(R&&(P=_(P,"y",""),-1===b(P,"g")&&(P+="g"),L=w(k,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==y(k,h.lastIndex-1))&&(A="(?: "+A+")",L=" "+L,C++),n=new RegExp("^(?:"+A+")",P)),x&&(n=new RegExp("^"+A+"$(?!\\s)",P)),E&&(r=h.lastIndex),i=o(m,R?n:h,L),R?i?(i.input=w(i.input,C),i[0]=w(i[0],C),i.index=h.lastIndex,h.lastIndex+=i[0].length):h.lastIndex=0:E&&i&&(h.lastIndex=h.global?i.index+i[0].length:r),x&&i&&i.length>1&&o(g,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(i[a]=void 0)})),i&&O)for(i.groups=c=f(null),a=0;a<O.length;a++)c[(l=O[a])[0]]=i[l[1]];return i}),e.exports=v},function(e,t,n){"use strict";var r=n(76),i=n(104),o=r.Set,a=r.add;e.exports=function(e){var t=new o;return i(e,(function(e){a(t,e)})),t}},function(e,t,n){"use strict";var r=n(248),i=TypeError;e.exports=function(e){if(r(e))throw new i("The method doesn't accept regular expressions");return e}},function(e,t,n){"use strict";var r=n(17)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){"use strict";var r=n(175).PROPER,i=n(9),o=n(183);e.exports=function(e){return i((function(){return!!o[e]()||"​…᠎"!=="​…᠎"[e]()||r&&o[e].name!==e}))}},function(e,t,n){"use strict";var r=n(13),i=n(9),o=n(235),a=n(27).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,u=r.Int8Array;e.exports=!a||!i((function(){u(1)}))||!i((function(){new u(-1)}))||!o((function(e){new u,new u(null),new u(1.5),new u(e)}),!0)||i((function(){return 1!==new u(new s(2),1,void 0).length}))},function(e,t,n){"use strict";var r=n(102);e.exports=function(e){var t=r(e);return"BigInt64Array"===t||"BigUint64Array"===t}},function(e,t,n){"use strict";var r=n(143),i=n(212);e.exports=function(e,t){return r(i(e),t)}},function(e,t,n){"use strict";n(774)},function(e,t,n){"use strict";var r=n(39),i=n(6),o=n(137),a=n(29),s=n(129),u=n(30),c=n(58),l=n(143),f=Array,d=i([].push);e.exports=function(e,t,n,i){for(var h,p,g,m=a(e),v=o(m),y=r(t,n),b=c(null),_=u(v),w=0;_>w;w++)g=v[w],(p=s(y(g,w,m)))in b?d(b[p],g):b[p]=[g];if(i&&(h=i(m))!==f)for(p in b)b[p]=l(h,b[p]);return b}},function(e,t,n){"use strict";var r=n(6),i=n(22),o=n(65),a=n(30),s=n(29),u=n(83),c=n(116),l=u.Map,f=u.has,d=u.set,h=r([].push);e.exports=function(e){var t,n,r,u=s(this),p=a(u),g=[],m=new l,v=o(e)?function(e){return e}:i(e);for(t=0;t<p;t++)r=v(n=u[t]),f(m,r)||d(m,r,n);return c(m,(function(e){h(g,e)})),g}},function(e,t,n){"use strict";var r=n(35),i=n(161),o=n(75),a=n(65),s=n(20),u=n(47),c=n(16),l="Incorrect Iterator.range arguments",f=r.set,d=r.getterFor("NumericRangeIterator"),h=RangeError,p=TypeError,g=i((function(e,t,n,r,i,o){if(typeof e!=r||t!==1/0&&t!==-1/0&&typeof t!=r)throw new p(l);if(e===1/0||e===-1/0)throw new h(l);var u,d=t>e,g=!1;if(void 0===n)u=void 0;else if(s(n))u=n.step,g=!!n.inclusive;else{if(typeof n!=r)throw new p(l);u=n}if(a(u)&&(u=d?o:-o),typeof u!=r)throw new p(l);if(u===1/0||u===-1/0||u===i&&e!==t)throw new h(l);f(this,{type:"NumericRangeIterator",start:e,end:t,step:u,inclusive:g,hitsEnd:e!=e||t!=t||u!=u||t>e!=u>i,currentCount:i,zero:i}),c||(this.start=e,this.end=t,this.step=u,this.inclusive=g)}),"NumericRangeIterator",(function(){var e=d(this);if(e.hitsEnd)return o(void 0,!0);var t=e.start,n=e.end,r=t+e.step*e.currentCount++;r===n&&(e.hitsEnd=!0);var i=e.inclusive;return(n>t?i?r>n:r>=n:i?n>r:n>=r)?(e.hitsEnd=!0,o(void 0,!0)):o(r,!1)})),m=function(e){u(g.prototype,e,{get:function(){return d(this)[e]},set:function(){},configurable:!0,enumerable:!1})};c&&(m("start"),m("end"),m("inclusive"),m("step")),e.exports=g},function(e,t,n){"use strict";var r=n(12),i=n(22),o=n(24),a=n(11),s=TypeError;e.exports=function(e,t){var n,u=a(this),c=i(u.get),l=i(u.has),f=i(u.set),d=arguments.length>2?arguments[2]:void 0;if(!o(t)&&!o(d))throw new s("At least one callback required");return r(l,u,e)?(n=r(c,u,e),o(t)&&(n=t(n),r(f,u,e,n))):o(d)&&(n=d(),r(f,u,e,n)),n}},function(e,t,n){"use strict";var r=n(35),i=n(161),o=n(75),a=n(26),s=n(177),u=n(29),c=r.set,l=r.getterFor("Object Iterator");e.exports=i((function(e,t){var n=u(e);c(this,{type:"Object Iterator",mode:t,object:n,keys:s(n),index:0})}),"Object",(function(){for(var e=l(this),t=e.keys;;){if(null===t||e.index>=t.length)return e.object=e.keys=null,o(void 0,!0);var n=t[e.index++],r=e.object;if(a(r,n)){switch(e.mode){case"keys":return o(n,!1);case"values":return o(r[n],!1)}return o([n,r[n]],!1)}}}))},function(e,t,n){"use strict";var r,i=n(13),o=n(88),a=n(24),s=n(997),u=n(131),c=n(103),l=n(108),f=i.Function,d=/MSIE .\./.test(u)||s&&((r=i.Bun.version.split(".")).length<3||"0"===r[0]&&(r[1]<3||"3"===r[1]&&"0"===r[2]));e.exports=function(e,t){var n=t?2:1;return d?function(r,i){var s=l(arguments.length,1)>n,u=a(r)?r:f(r),d=s?c(arguments,n):[],h=s?function(){o(u,this,d)}:u;return t?e(h,i):e(h)}:e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return u}));var r=n(0),i=n.n(r),o=n(266),a=n(90);function s(e,t){var n=Object(a.b)(),r=i.a.useRef(t);r.current=t,i.a.useMemo((function(){e&&Object(o.b)(n,e,r.current)}),[n,e])}var u=function(e){var t=e.children,n=e.options;return s(e.state,n),t}},function(e,t,n){"use strict";(function(t){var r=n(77),i=n(1037),o=n(192),a=n(497),s=n(498),u={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,f={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(l=n(499)),l),transformRequest:[function(e,t){if(i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,o=r.isObject(e),a=t&&t["Content-Type"];if((n=r.isFileList(e))||o&&"multipart/form-data"===a){var u=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,u&&new u)}return o||"application/json"===a?(c(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||f.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw o.from(e,o.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(1048)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){f.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){f.headers[e]=r.merge(u)})),e.exports=f}).call(this,n(259))},function(e,t,n){"use strict";(function(e){
16
+ var r=function(e,t){return(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])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function u(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(s(arguments[t]));return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(37);function i(e){return function t(n){return 0===arguments.length||Object(r.a)(n)?t:e.apply(this,arguments)}}},function(e,t,n){"use strict";var r=n(200),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);e.exports=r?a:function(e){return function(){return o.apply(e,arguments)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(5),i=n(3),o=n(37);function a(e){return function t(n,a,s){switch(arguments.length){case 0:return t;case 1:return Object(o.a)(n)?t:Object(i.a)((function(t,r){return e(n,t,r)}));case 2:return Object(o.a)(n)&&Object(o.a)(a)?t:Object(o.a)(n)?Object(i.a)((function(t,n){return e(t,a,n)})):Object(o.a)(a)?Object(i.a)((function(t,r){return e(n,t,r)})):Object(r.a)((function(t){return e(n,a,t)}));default:return Object(o.a)(n)&&Object(o.a)(a)&&Object(o.a)(s)?t:Object(o.a)(n)&&Object(o.a)(a)?Object(i.a)((function(t,n){return e(t,n,s)})):Object(o.a)(n)&&Object(o.a)(s)?Object(i.a)((function(t,n){return e(t,a,n)})):Object(o.a)(a)&&Object(o.a)(s)?Object(i.a)((function(t,r){return e(n,t,r)})):Object(o.a)(n)?Object(r.a)((function(t){return e(t,a,s)})):Object(o.a)(a)?Object(r.a)((function(t){return e(n,t,s)})):Object(o.a)(s)?Object(r.a)((function(t){return e(n,a,t)})):e(n,a,s)}}}},function(e,t,n){var r=n(343);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";n.d(t,"h",(function(){return i})),n.d(t,"l",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"i",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"r",(function(){return l})),n.d(t,"w",(function(){return f})),n.d(t,"p",(function(){return d})),n.d(t,"n",(function(){return h})),n.d(t,"m",(function(){return p})),n.d(t,"o",(function(){return g})),n.d(t,"k",(function(){return m})),n.d(t,"j",(function(){return v})),n.d(t,"f",(function(){return y})),n.d(t,"e",(function(){return b})),n.d(t,"q",(function(){return _})),n.d(t,"s",(function(){return w})),n.d(t,"u",(function(){return E})),n.d(t,"g",(function(){return T})),n.d(t,"v",(function(){return O})),n.d(t,"t",(function(){return R})),n.d(t,"d",(function(){return P}));var r=n(19),i="undefined"==typeof window;function o(){}function a(e,t){return"function"==typeof e?e(t):e}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function u(e){return Array.isArray(e)?e:[e]}function c(e,t){return e.filter((function(e){return-1===t.indexOf(e)}))}function l(e,t,n){var r=e.slice(0);return r[t]=n,r}function f(e,t){return Math.max(e+(t||0)-Date.now(),0)}function d(e,t,n){return k(e)?"function"==typeof t?Object(r.a)({},n,{queryKey:e,queryFn:t}):Object(r.a)({},t,{queryKey:e}):e}function h(e,t,n){return k(e)?"function"==typeof t?Object(r.a)({},n,{mutationKey:e,mutationFn:t}):Object(r.a)({},t,{mutationKey:e}):"function"==typeof e?Object(r.a)({},t,{mutationFn:e}):Object(r.a)({},e)}function p(e,t,n){return k(e)?[Object(r.a)({},t,{queryKey:e}),n]:[e||{},t]}function g(e,t){return k(e)?Object(r.a)({},t,{mutationKey:e}):e}function m(e,t){var n=e.active,r=e.exact,i=e.fetching,o=e.inactive,a=e.predicate,s=e.queryKey,u=e.stale;if(k(s))if(r){if(t.queryHash!==y(s,t.options))return!1}else if(!_(t.queryKey,s))return!1;var c=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(n,o);if("none"===c)return!1;if("all"!==c){var l=t.isActive();if("active"===c&&!l)return!1;if("inactive"===c&&l)return!1}return("boolean"!=typeof u||t.isStale()===u)&&(("boolean"!=typeof i||t.isFetching()===i)&&!(a&&!a(t)))}function v(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(k(o)){if(!t.options.mutationKey)return!1;if(n){if(b(t.options.mutationKey)!==b(o))return!1}else if(!_(t.options.mutationKey,o))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&!(i&&!i(t))}function y(e,t){return((null==t?void 0:t.queryKeyHashFn)||b)(e)}function b(e){var t,n=u(e);return t=n,JSON.stringify(t,(function(e,t){return S(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function _(e,t){return function e(t,n){if(t===n)return!0;if(typeof t!=typeof n)return!1;if(t&&n&&"object"==typeof t&&"object"==typeof n)return!Object.keys(n).some((function(r){return!e(t[r],n[r])}));return!1}(u(e),u(t))}function w(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||S(e)&&S(t)){for(var r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},s=0,u=0;u<o;u++){var c=n?u:i[u];a[c]=w(e[c],t[c]),a[c]===e[c]&&s++}return r===o&&s===r?e:a}return t}function E(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function S(e){if(!x(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!!x(n)&&!!n.hasOwnProperty("isPrototypeOf")}function x(e){return"[object Object]"===Object.prototype.toString.call(e)}function k(e){return"string"==typeof e||Array.isArray(e)}function T(e){return e instanceof Error}function O(e){return new Promise((function(t){setTimeout(t,e)}))}function R(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function P(){if("function"==typeof AbortController)return new AbortController}},function(e,t,n){"use strict";var r=n(20),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},function(e,t,n){"use strict";var r=n(200),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},function(e,t,n){"use strict";(function(t){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,n(128))},function(e,t,n){"use strict";n.r(t),n.d(t,"mergeRanges",(function(){return s})),n.d(t,"diff",(function(){return u})),n.d(t,"substitute",(function(){return c})),n.d(t,"makeAppOpts",(function(){return l})),n.d(t,"hour",(function(){return f})),n.d(t,"setMinimalRange",(function(){return d})),n.d(t,"now",(function(){return h})),n.d(t,"floorToHour",(function(){return p})),n.d(t,"pad",(function(){return g})),n.d(t,"pad2",(function(){return m})),n.d(t,"humanTime",(function(){return v})),n.d(t,"humanDate",(function(){return y})),n.d(t,"throttle",(function(){return b})),n.d(t,"utc_to_relative",(function(){return _})),n.d(t,"getFirstHourSegmentIndex",(function(){return w})),n.d(t,"utcToRelative",(function(){return E})),n.d(t,"relativeToUtc",(function(){return S})),n.d(t,"getDayRangeByUtc",(function(){return x})),n.d(t,"isInRange",(function(){return k})),n.d(t,"intersection",(function(){return T})),n.d(t,"getNearLeftFrom",(function(){return O})),n.d(t,"currentUrl",(function(){return R})),n.d(t,"CheckInRange",(function(){return P})),n.d(t,"canFastSeek",(function(){return A})),n.d(t,"isIOS",(function(){return C})),n.d(t,"calculateScaleTimeline",(function(){return L}));var r=n(71),i=n(148),o=n.n(i),a=new RegExp("{([a-zA-Z]+)}","ig");function s(e,t){var n=[],r=[],i={},o=0,a=e.length,s=t.length;if(0===s)return e;for(;o<a;){for(var u=e[o].opened_at,c=e[o].closed_at,l=0;l<s;){g(u,c,t[l].opened_at,t[l].closed_at)&&(n.push(o),r.push(l),i[o]=l),l++}o++}var f=n.map((function(n){return{opened_at:Math.min(e[n].opened_at,t[i[n]].opened_at),closed_at:Math.max(e[n].closed_at,t[i[n]].closed_at)}})),d=e.filter((function(e,t){return-1===n.indexOf(t)})),h=t.filter((function(e,t){return-1===r.indexOf(t)})),p=d.concat(f,h);return p.sort((function(e,t){return e.closed_at<t.closed_at?-1:e.closed_at>t.closed_at?1:0})),p;function g(e,t,n,r){return e<=n&&t>=n||n<e&&r>=e}}function u(){for(var e,t,n,r,i,o=[].slice.call(arguments,0),a=o.length,s=o[0],u={},c=1;c<a;c++)for(e=o[c],n=(t=Object.keys(e)).length,i=0;i<n;i++)l(e[r=t[i]],s[r])||(u[r]=e[r]);return u;function l(e,t){return e===t}}function c(e,t){return e?t?e.replace(a,(function(e,n){return void 0!==t[n]?t[n]:e})):e:""}function l(e){var t="undefined"!=typeof window?window.location.search.substring(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){return e[decodeURIComponent(t[0])]=decodeURIComponent(t[1]),e}),{}):{},n=parseInt(t.play_duration,10),r=t.autoplay,i={name:e.name,streamer_http:"undefined"!=typeof window?window.location.protocol+"//"+window.location.host:"",thumbnails_enabled:e.thumbnails_enabled,from:t.from?parseInt(t.from):null,zoom:t.zoom?parseInt(t.zoom):null,proto:t.proto,locale:t.locale||"en",debug:"true"==t.debug,play_duration:n&&!isNaN(n)?n:null,tracks:t.tracks,autoPlay:!r||"true"==r},o=t[e.auth_token];o&&(i.auth_token=e.auth_token+"="+o);var a=parseInt(e.rtmp_port,10);return a>0&&(i.streamer_rtmp="undefined"!=typeof window?"rtmp://"+window.location.hostname+":"+a:""),i}function f(e){return 3600*Math.floor(e/3600)}function d(e,t){return{from:f(e),to:f(t+3600)}}function h(){return Math.round((new Date).getTime()/1e3)}function p(e){return 3600*Math.floor(e/3600)}function g(e,t){var n=e+"";return"00000000000000000000".slice(0,t-n.length)+n}function m(e){return e<=9?"0"+e:e}function v(e,t){t=null==t||t;if(!(e>0))return"";var n=new Date;n.setTime(1e3*e);var r=!(!1===t),i=r?n.getHours():n.getUTCHours(),o=r?n.getMinutes():n.getUTCMinutes(),a=r?n.getSeconds():n.getUTCSeconds();return m(i)+":"+m(o)+":"+m(a)}function y(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(t){t=null==t||t;if(!(e>0))return"";var r=new Date;r.setTime(Math.round(1e3*e));var i=!(!1===t),o=i?r.getDate():r.getUTCDate(),a=(i?r.getMonth():r.getUTCMonth())+1,s=i?r.getFullYear():r.getUTCFullYear();return n?m(o)+"."+m(a)+"."+g(s,4):g(s,4)+"."+m(a)+"."+m(o)}(t)}function b(e,t){var n,r,i=!1;return function o(){if(i)return n=arguments,void(r=this);e.apply(this,arguments),i=!0,setTimeout((function(){i=!1,n&&r&&(o.apply(r,n),r=n=void 0)}),t)}}function _(e,t,n){if(!n)return 0;for(var r=0,i=0;i<n.length&&!(n[i].closed_at>=t);i++);if(i>=n.length)return 0;if(n[i].opened_at<t&&n[i].closed_at>=e)return e-t;if(n[i].opened_at<t&&(r+=n[i].closed_at-t,i++),i>=n.length)return e-t;for(;i<n.length&&n[i].opened_at<t+3600;i++){if(n[i].opened_at<=e&&e<=n[i].closed_at)return r+e-n[i].opened_at;r+=n[i].opened_at}return r}function w(e,t){for(var n=0,r=e.length;n<r&&!(e[n].closed_at>=t);n++);return(n>=r||n<r&&t>e[n].closed_at)&&(n=-1),n}function E(e,t,n){if(Math.trunc(e/3600)!==t/3600)throw new Error("utc should be into h");if(e<t)throw new Error("utc should be gt h");var r=this.getFirstHourSegmentIndex(n,t);if(-1===r)throw new Error("no segments to play");var i=t;n[r]&&n[r].opened_at>t&&(i=n[r].opened_at);for(var o=i,a=n.length,s=0;r<a;){var u=n[r],c=u.opened_at,l=u.closed_at;if(c>e)break;if(e<=l){o=e;break}if(r+1<a&&e>l&&e<n[r+1].opened_at)return void console.error("you click to empty range");r+1<a&&e>n[r+1].opened_at&&(o=n[r+1].opened_at,s+=n[r+1].opened_at-l),r++}return o-i-s}function S(e,t,n){for(var r=t,i=0;i<n.length&&!(n[i].closed_at>=e);)i++;if(i>=n.length)return e+t;if(n[i].opened_at<=e&&n[i].closed_at>=e){if(e+t<=n[i].closed_at)return e+t;r-=n[i].closed_at-n[i].opened_at-(e-n[i].opened_at),i++}for(;i<n.length;){if(r<=n[i].closed_at-n[i].opened_at)return n[i].opened_at+r;if(++i>=n.length||!n[i])break;r-=n[i].closed_at-n[i].opened_at}return e+t}function x(e){var t=new Date,n=new Date;return t.setTime(1e3*e),n.setTime(1e3*e),t.setHours(0,0,0,0),n.setHours(23,59,59,999),{start:Math.round(t.getTime()/1e3),end:Math.round(n.getTime()/1e3)}}function k(e,t){for(var n=t.length,r=0;r<n;){var i=t[r],o=i.opened_at,a=i.closed_at;if(e<o)return!1;if(e>a)r++;else{if(e>=o&&e<=a)return!0;r++}}return!1}function T(e,t){var n=e.start<t.start?e:t,r=n===e?t:e;return!(n.end<r.start)&&{start:r.start,end:n.end<r.end?n.end:r.end}}function O(e,t){for(var n=t.length,r=0;r<n;){var i=t[r],o=i.opened_at,a=i.closed_at;if(e<o)return o;if(e>a)r++;else{if(e>=o&&e<=a)return e;r++}}return"live"}function R(e,t){var n=new URL(e),i=Object(r.parse)(n.search.replace(/^\?/,"")),a=o()(i,{$merge:t});return n.search=Object(r.stringify)(a),n.toString()}Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var o=Object.keys(Object(i)),a=0,s=o.length;a<s;a++){var u=o[a],c=Object.getOwnPropertyDescriptor(i,u);void 0!==c&&c.enumerable&&(n[u]=i[u])}}return n}}),Math.trunc||(Math.trunc=function(e){return e=+e,isFinite(e)?e-e%1||(e<0?-0:0===e?e:0):e}),Int8Array.__proto__&&!Int8Array.__proto__.opened_at&&(Int8Array.__proto__.opened_at=function(e,t,n){var r=Int8Array.__proto__;if("function"!=typeof this)throw new TypeError("# is not a constructor");if(this.__proto__!==r)throw new TypeError("this is not a typed array.");if("function"!=typeof(t=t||function(e){return e}))throw new TypeError("specified argument is not a function");if(!(e=Object(e)).length)return new this(0);for(var i=[],o=0;o<e.length;o++)i.push(e[o]);var a=new this((i=i.map(t,n)).length);for(o=0;o<a.length;o++)a[o]=i[o];return a});var P=function(e,t){if("string"==typeof t)return!1;for(var n=t.length,r=0;r<n;){var i=t[r],o=i.opened_at,a=i.closed_at;if(e<o)return;if(e>a)r++;else{if(e>=o&&e<=a){var s=a,u="live";return t[r+1]&&(u=t[r+1].opened_at),{sectionEnd:s,nextSection:u,playbackDuration:s-e}}r++}}};function A(e,t){if("string"!=typeof t){for(var n=t.length,r=0;r<n;){var i=t[r],o=i.opened_at,a=i.closed_at;if(e>=o&&e<=a)return!0;r++}return!1}}var C=function(){return/iPad|iPhone|iPod|iPad Simulator|iPhone Simulator|iPod Simulator/.test(navigator.userAgent)},L=function(e,t,n,r){var i=n?200:1e3,o="in"===t?-15:15;return e&&e.deltaY&&(o=n?e.deltaY/3:e.deltaY),r&&(o*=3),{requestAnimationStopTime:i,deltaYScaleCount:o}},D={mergeRanges:s,diff:u,substitute:c,makeAppOpts:l,hour:f,setMinimalRange:d,now:h,floorToHour:p,pad:g,pad2:m,humanTime:v,humanDate:y,throttle:b,utc_to_relative:_,getFirstHourSegmentIndex:w,utcToRelative:E,relativeToUtc:S,getDayRangeByUtc:x,isInRange:k,intersection:T,getNearLeftFrom:O,currentUrl:R,CheckInRange:P,canFastSeek:A,isIOS:C,calculateScaleTimeline:L};t.default=D},function(e,t,n){"use strict";t.a={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}}},function(e,t,n){"use strict";var r=n(9);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){"use strict";var r=n(13),i=n(139),o=n(26),a=n(155),s=n(153),u=n(344),c=r.Symbol,l=i("wks"),f=u?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return o(l,e)||(l[e]=s&&o(c,e)?c[e]:f("Symbol."+e)),l[e]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(33),i=n(197);function o(e,t,n){return function(){if(0===arguments.length)return n();var o=arguments[arguments.length-1];if(!Object(r.a)(o)){for(var a=0;a<e.length;){if("function"==typeof o[e[a]])return o[e[a]].apply(o,Array.prototype.slice.call(arguments,0,-1));a+=1}if(Object(i.a)(o)){var s=t.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(o)}}return n.apply(this,arguments)}}},function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(24);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},function(e,t,n){"use strict";var r=n(13),i=n(24),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e]):r[e]&&r[e][t]}},function(e,t,n){"use strict";var r=n(24),i=n(154),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a function")}},function(e,t,n){"use strict";var r=n(102),i=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},function(e,t,n){"use strict";var r="object"==typeof document&&document.all;e.exports=void 0===r&&void 0!==r?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(10),i=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):Object(r.t)((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.schedule((function(){e.apply(void 0,r)}))}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&Object(r.t)((function(){e.batchNotifyFn((function(){t.forEach((function(t){e.notifyFn(t)}))}))}))},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}())},function(e,t,n){"use strict";var r=n(6),i=n(29),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},function(e,t,n){"use strict";var r,i,o,a=n(306),s=n(16),u=n(13),c=n(24),l=n(20),f=n(26),d=n(102),h=n(154),p=n(66),g=n(36),m=n(47),v=n(82),y=n(67),b=n(112),_=n(17),w=n(155),E=n(35),S=E.enforce,x=E.get,k=u.Int8Array,T=k&&k.prototype,O=u.Uint8ClampedArray,R=O&&O.prototype,P=k&&y(k),A=T&&y(T),C=Object.prototype,L=u.TypeError,D=_("toStringTag"),I=w("TYPED_ARRAY_TAG"),j=a&&!!b&&"Opera"!==d(u.opera),M=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},U=function(e){var t=y(e);if(l(t)){var n=x(t);return n&&f(n,"TypedArrayConstructor")?n.TypedArrayConstructor:U(t)}},B=function(e){if(!l(e))return!1;var t=d(e);return f(N,t)||f(F,t)};for(r in N)(o=(i=u[r])&&i.prototype)?S(o).TypedArrayConstructor=i:j=!1;for(r in F)(o=(i=u[r])&&i.prototype)&&(S(o).TypedArrayConstructor=i);if((!j||!c(P)||P===Function.prototype)&&(P=function(){throw new L("Incorrect invocation")},j))for(r in N)u[r]&&b(u[r],P);if((!j||!A||A===C)&&(A=P.prototype,j))for(r in N)u[r]&&b(u[r].prototype,A);if(j&&y(R)!==A&&b(R,A),s&&!f(A,D))for(r in M=!0,m(A,D,{configurable:!0,get:function(){return l(this)?this[I]:void 0}}),N)u[r]&&p(u[r],I,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:j,TYPED_ARRAY_TAG:M&&I,aTypedArray:function(e){if(B(e))return e;throw new L("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!b||v(P,e)))return e;throw new L(h(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(s){if(n)for(var i in N){var o=u[i];if(o&&f(o.prototype,e))try{delete o.prototype[e]}catch(n){try{o.prototype[e]=t}catch(e){}}}A[e]&&!n||g(A,e,n?t:j&&T[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,i;if(s){if(b){if(n)for(r in N)if((i=u[r])&&f(i,e))try{delete i[e]}catch(e){}if(P[e]&&!n)return;try{return g(P,e,n?t:j&&P[e]||t)}catch(e){}}for(r in N)!(i=u[r])||i[e]&&!n||g(i,e,t)}},getTypedArrayConstructor:U,isView:function(e){if(!l(e))return!1;var t=d(e);return"DataView"===t||f(N,t)||f(F,t)},isTypedArray:B,TypedArray:P,TypedArrayPrototype:A}},function(e,t,n){"use strict";e.exports=!1},function(e,t,n){"use strict";var r=n(43),i=Object;e.exports=function(e){return i(r(e))}},function(e,t,n){"use strict";var r=n(101);e.exports=function(e){return r(e.length)}},function(e,t,n){"use strict";var r=n(61),i=n(5),o=n(3),a=n(125),s=Object(o.a)((function(e,t){return 1===e?Object(i.a)(t):Object(r.a)(e,Object(a.a)(e,[],t))}));t.a=s},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";t.a=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(t,e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r,i,o,a=n(348),s=n(13),u=n(20),c=n(66),l=n(26),f=n(226),d=n(230),h=n(201),p=s.TypeError,g=s.WeakMap;if(a||f.state){var m=f.state||(f.state=new g);m.get=m.get,m.has=m.has,m.set=m.set,r=function(e,t){if(m.has(e))throw new p("Object already initialized");return t.facade=e,m.set(e,t),t},i=function(e){return m.get(e)||{}},o=function(e){return m.has(e)}}else{var v=d("state");h[v]=!0,r=function(e,t){if(l(e,v))throw new p("Object already initialized");return t.facade=e,c(e,v,t),t},i=function(e){return l(e,v)?e[v]:{}},o=function(e){return l(e,v)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){"use strict";var r=n(24),i=n(42),o=n(228),a=n(289);e.exports=function(e,t,n,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:t;if(r(n)&&o(n,c,s),s.global)u?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(u=!0):delete e[t]}catch(e){}u?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";var r=n(157),i=n(22),o=n(200),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(343);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(16),i=n(346),o=n(347),a=n(11),s=n(129),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor;t.f=r?o?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=l(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),i)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";var r=n(65),i=TypeError;e.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(3);function i(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}var o=n(111);var a=n(34),s=n(173),u=n(52),c=n(151);function l(e,t,n,r){var a=i(e),s=i(t);function u(e,t){return f(e,t,n.slice(),r.slice())}return!Object(o.a)((function(e,t){return!Object(o.a)(u,t,e)}),s,a)}function f(e,t,n,r){if(Object(s.a)(e,t))return!0;var i,o,d=Object(c.a)(e);if(d!==Object(c.a)(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(d){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(i=e.constructor,null==(o=String(i).match(/^function (\w*)/))?"":o[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Object(s.a)(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Object(s.a)(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var h=n.length-1;h>=0;){if(n[h]===e)return r[h]===t;h-=1}switch(d){case"Map":return e.size===t.size&&l(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&l(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var p=Object(u.a)(e);if(p.length!==Object(u.a)(t).length)return!1;var g=n.concat([e]),m=r.concat([t]);for(h=p.length-1;h>=0;){var v=p[h];if(!Object(a.a)(v,t)||!f(t[v],e[v],g,m))return!1;h-=1}return!0}var d=Object(r.a)((function(e,t){return f(e,t,[],[])}));t.a=d},function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"l",(function(){return c})),n.d(t,"j",(function(){return l})),n.d(t,"i",(function(){return f})),n.d(t,"f",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"k",(function(){return p})),n.d(t,"n",(function(){return g})),n.d(t,"m",(function(){return m})),n.d(t,"h",(function(){return v})),n.d(t,"g",(function(){return y}));var r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(e,Error)}}function o(e,t){return r.call(e)==="[object "+t+"]"}function a(e){return o(e,"ErrorEvent")}function s(e){return o(e,"DOMError")}function u(e){return o(e,"DOMException")}function c(e){return o(e,"String")}function l(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function f(e){return o(e,"Object")}function d(e){return"undefined"!=typeof Event&&y(e,Event)}function h(e){return"undefined"!=typeof Element&&y(e,Element)}function p(e){return o(e,"RegExp")}function g(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function m(e){return f(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e){return"number"==typeof e&&e!=e}function y(e,t){try{return e instanceof t}catch(e){return!1}}},function(e,t,n){"use strict";var r=n(350);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},function(e,t,n){"use strict";var r=n(228),i=n(42);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},function(e,t,n){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},function(e,t,n){var r=n(117).default,i=n(1028);e.exports=function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(1029);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";function r(e,t){var n;t=t||[];var r=(e=e||[]).length,i=t.length,o=[];for(n=0;n<r;)o[o.length]=e[n],n+=1;for(n=0;n<i;)o[o.length]=t[n],n+=1;return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(5),i=n(34),o=n(279),a=!{toString:null}.propertyIsEnumerable("toString"),s=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],u=function(){return arguments.propertyIsEnumerable("length")}(),c=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},l="function"!=typeof Object.keys||u?Object(r.a)((function(e){if(Object(e)!==e)return[];var t,n,r=[],l=u&&Object(o.a)(e);for(t in e)!Object(i.a)(t,e)||l&&"length"===t||(r[r.length]=t);if(a)for(n=s.length-1;n>=0;)t=s[n],Object(i.a)(t,e)&&!c(r,t)&&(r[r.length]=t),n-=1;return r})):Object(r.a)((function(e){return Object(e)!==e?[]:Object.keys(e)}));t.a=l},function(e,t,n){"use strict";var r=n(295),i=n(26),o=n(352),a=n(42).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},function(e,t,n){"use strict";var r=n(39),i=n(12),o=n(11),a=n(154),s=n(299),u=n(30),c=n(82),l=n(159),f=n(140),d=n(141),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},g=p.prototype;e.exports=function(e,t,n){var m,v,y,b,_,w,E,S=n&&n.that,x=!(!n||!n.AS_ENTRIES),k=!(!n||!n.IS_RECORD),T=!(!n||!n.IS_ITERATOR),O=!(!n||!n.INTERRUPTED),R=r(t,S),P=function(e){return m&&d(m,"normal",e),new p(!0,e)},A=function(e){return x?(o(e),O?R(e[0],e[1],P):R(e[0],e[1])):O?R(e,P):R(e)};if(k)m=e.iterator;else if(T)m=e;else{if(!(v=f(e)))throw new h(a(e)+" is not iterable");if(s(v)){for(y=0,b=u(e);b>y;y++)if((_=A(e[y]))&&c(g,_))return _;return new p(!1)}m=l(e,v)}for(w=k?e.next:m.next;!(E=i(w,m)).done;){try{_=A(E.value)}catch(e){d(m,"throw",e)}if("object"==typeof _&&_&&c(g,_))return _}return new p(!1)}},function(e,t,n){"use strict";var r=n(17),i=n(58),o=n(42).f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t,n){"use strict";var r=n(127),i=n(7),o=Object(i.a)(Object(r.a)("slice",(function(e,t,n){return Array.prototype.slice.call(n,e,t)})));t.a=o},function(e,t,n){"use strict";var r=n(22),i=n(65);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},function(e,t,n){"use strict";var r,i=n(11),o=n(293),a=n(291),s=n(201),u=n(351),c=n(227),l=n(230),f=l("IE_PROTO"),d=function(){},h=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;g="undefined"!=typeof document?document.domain&&r?p(r):((t=c("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F):p(r);for(var n=a.length;n--;)delete g.prototype[a[n]];return g()};s[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=i(e),n=new d,d.prototype=null,n[f]=e):n=g(),void 0===t?n:o.f(n,t)}},function(e,t,n){"use strict";var r=n(39),i=n(6),o=n(137),a=n(29),s=n(30),u=n(204),c=i([].push),l=function(e){var t=1===e,n=2===e,i=3===e,l=4===e,f=6===e,d=7===e,h=5===e||f;return function(p,g,m,v){for(var y,b,_=a(p),w=o(_),E=s(w),S=r(g,m),x=0,k=v||u,T=t?k(p,E):n||d?k(p,0):void 0;E>x;x++)if((h||x in w)&&(b=S(y=w[x],x,_),e))if(t)T[x]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return x;case 2:c(T,y)}else switch(e){case 4:return!1;case 7:c(T,y)}return f?-1:i||l?l:T}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},function(e,t,n){"use strict";var r=n(126),i=n(3),o=n(18),a=n(110),s=n(278),u=n(31),c=n(52),l=Object(i.a)(Object(o.a)(["fantasy-land/map","map"],s.a,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Object(u.a)(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return Object(r.a)((function(n,r){return n[r]=e(t[r]),n}),{},Object(c.a)(t));default:return Object(a.a)(e,t)}})));t.a=l},function(e,t,n){"use strict";function r(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,i){return t.apply(this,arguments)};case 5:return function(e,n,r,i,o){return t.apply(this,arguments)};case 6:return function(e,n,r,i,o,a){return t.apply(this,arguments)};case 7:return function(e,n,r,i,o,a,s){return t.apply(this,arguments)};case 8:return function(e,n,r,i,o,a,s,u){return t.apply(this,arguments)};case 9:return function(e,n,r,i,o,a,s,u,c){return t.apply(this,arguments)};case 10:return function(e,n,r,i,o,a,s,u,c,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(0),i=n(1060);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var o=(new r.Component).updater;e.exports=i(r.Component,r.isValidElement,o)},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(1018)},function(e,t,n){"use strict";var r=n(137),i=n(43);e.exports=function(e){return r(i(e))}},function(e,t,n){"use strict";e.exports=function(e){return null==e}},function(e,t,n){"use strict";var r=n(16),i=n(42),o=n(100);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";var r=n(26),i=n(24),o=n(29),a=n(230),s=n(298),u=a("IE_PROTO"),c=Object,l=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=o(e);if(r(t,u))return t[u];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof c?l:null}},function(e,t,n){var r=n(1056),i=n(1057),o=n(482),a=n(1058);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerLogger=t.getFormattedErrorMessage=t.getFormattedEventMessage=t.getFormattedEventName=void 0;const s=n(0),u=o(n(337)),c=n(1059),l={headers:{"X-Authorization":"Bearer dd988397-48cc-49f2-85cf-7dcac77f93bc"}};t.getFormattedEventName=e=>{switch(e){case"play_init":return"player_init";case"play_init_mse":return"player_init_mse";case"play_init_hls":return"player_init_hls";case"play_started":return"player_play";case"play_pause":return"player_pause";case"play_stall":return"player_stall";default:return console.error("Unknown eventName: "+e),e}};t.getFormattedEventMessage=e=>{switch(e){case"play_init":return"DVR Player initialized";case"play_init_mse":return"DVR Player msePlayer initialized";case"play_init_hls":return"DVR Player hlsPlayer initialized";case"play_started":return"DVR Player is playing";case"play_pause":return"DVR Player is paused";case"play_stall":return"DVR Player stalled";default:return console.error("Unknown eventName: "+e),e}};t.getFormattedErrorMessage=e=>{switch(e){case"long_bufferization":return"DVR Player long bufferization";case"corrupted_frag":return"DVR Player corrupted fragment";default:return console.error("Unknown errorName: "+e),e}};t.PlayerLogger=e=>{var t,{logger:n,logEventQueue:r,clearLogEventQueue:i,streamInfo:o,getPlayerStats:f}=e,d=a(e,["logger","logEventQueue","clearLogEventQueue","streamInfo","getPlayerStats"]);const h=(0,c.custom_player_log)(),p=null===(t=Object.values(o))||void 0===t?void 0:t[0];return(0,s.useEffect)(()=>{if(u.isEmpty(r))return;const e=e=>{const t=e.data.event,n=e.key||"",r="player_error"===t,i=r?void 0:e.data.event_message,o=r?e.data.error_message:void 0,a=r?e.data.error_name:void 0,s=f(),u=Object.assign(Object.assign(Object.assign(Object.assign({app_name:"@flussonic/flussonic-dvr-player",app_version:"25.7.3",event:t,stream:(null==p?void 0:p.name)||"",stream_title:(null==p?void 0:p.title)||"",protocol:(null==s?void 0:s.proto)||"",player_session_id:(null==s?void 0:s.source_id)||"",os_version:(null==s?void 0:s.user_agent)||"",uts_ms:n,server_instance_id:(null==p?void 0:p.instance_id)||""},i&&{event_message:i}),a&&{error_name:a}),o&&{error_message:o}),d);h({body:u,config:l})};r.forEach(t=>{"player_play"===t.data.event&&(n.stopLogging(),n.initLogging(()=>{const n=Object.assign({},t);n.key=Date.now(),e(n)})),"player_pause"===t.data.event&&n.stopLogging(),e(t)}),i()},[n,r,i,f]),(0,s.useEffect)(()=>()=>{n.stopLogging()},[n]),null},t.default=(0,s.memo)(t.PlayerLogger)},function(e,t,n){"use strict";n.r(t),n.d(t,"Trans",(function(){return se})),n.d(t,"TransWithoutContext",(function(){return H})),n.d(t,"useTranslation",(function(){return he})),n.d(t,"withTranslation",(function(){return ve})),n.d(t,"Translation",(function(){return be})),n.d(t,"I18nextProvider",(function(){return _e})),n.d(t,"withSSR",(function(){return xe})),n.d(t,"useSSR",(function(){return we})),n.d(t,"initReactI18next",(function(){return J})),n.d(t,"setDefaults",(function(){return j})),n.d(t,"getDefaults",(function(){return M})),n.d(t,"setI18n",(function(){return N})),n.d(t,"getI18n",(function(){return F})),n.d(t,"I18nContext",(function(){return te})),n.d(t,"composeInitialProps",(function(){return re})),n.d(t,"getInitialProps",(function(){return ie})),n.d(t,"date",(function(){return ke})),n.d(t,"time",(function(){return Te})),n.d(t,"number",(function(){return Oe})),n.d(t,"select",(function(){return Re})),n.d(t,"plural",(function(){return Pe})),n.d(t,"selectOrdinal",(function(){return Ae}));var r=n(8),i=n.n(r),o=n(119),a=n.n(o),s=n(0),u=n(117),c=n.n(u),l=n(506),f=n.n(l),d=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function h(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(f.a[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var i=new RegExp(d),o=null;null!==(o=i.exec(e));)if(o[0].trim())if(o[1]){var a=o[1].trim(),s=[a,""];a.indexOf("=")>-1&&(s=a.split("=")),t.attrs[s[0]]=s[1],i.lastIndex--}else o[2]&&(t.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return t}var p=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,g=/^\s*$/,m=Object.create(null);function v(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(v,"")+"</"+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var y={parse:function(e,t){t||(t={}),t.components||(t.components=m);var n,r=[],i=[],o=-1,a=!1;if(0!==e.indexOf("<")){var s=e.indexOf("<");r.push({type:"text",content:-1===s?e:e.substring(0,s)})}return e.replace(p,(function(s,u){if(a){if(s!=="</"+n.name+">")return;a=!1}var c,l="/"!==s.charAt(1),f=s.startsWith("\x3c!--"),d=u+s.length,p=e.charAt(d);if(f){var m=h(s);return o<0?(r.push(m),r):((c=i[o]).children.push(m),r)}if(l&&(o++,"tag"===(n=h(s)).type&&t.components[n.name]&&(n.type="component",a=!0),n.voidElement||a||!p||"<"===p||n.children.push({type:"text",content:e.slice(d,e.indexOf("<",d))}),0===o&&r.push(n),(c=i[o-1])&&c.children.push(n),i[o]=n),(!l||n.voidElement)&&(o>-1&&(n.voidElement||n.name===s.slice(2,-1))&&(o--,n=-1===o?r:i[o]),!a&&"<"!==p&&p)){c=-1===o?r:i[o].children;var v=e.indexOf("<",d),y=e.slice(d,-1===v?void 0:v);g.test(y)&&(y=" "),(v>-1&&o+c.length>=0||" "!==y)&&c.push({type:"text",content:y})}})),r},stringify:function(e){return e.reduce((function(e,t){return e+v("",t)}),"")}};function b(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var _={};function w(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&_[t[0]]||("string"==typeof t[0]&&(_[t[0]]=new Date),b.apply(void 0,t))}var E=function(e,t){return function(){if(e.isInitialized)t();else{e.on("initialized",(function n(){setTimeout((function(){e.off("initialized",n)}),0),t()}))}}};function S(e,t,n){e.loadNamespaces(t,E(e,n))}function x(e,t,n,r){"string"==typeof n&&(n=[n]),n.forEach((function(t){e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,E(e,r))}function k(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],i=!!t.options&&t.options.fallbackLng,o=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||(!(t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages))||!(!a(r,e)||i&&!a(o,e))))}function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return w("i18n.languages were undefined or empty",t.languages),!0;var r=void 0!==t.options.ignoreJSONStructure;return r?t.hasLoadedNamespace(e,{lng:n.lng,precheck:function(t,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):k(e,t,n)}function O(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}var R=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,P={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},A=function(e){return P[e]};function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var D,I={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(R,A)}};function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};I=L(L({},I),e)}function M(){return I}function N(e){D=e}function F(){return D}var U=["format"],B=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t){if(!e)return!1;var n=e.props?e.props.children:e.children;return t?n.length>0:!!n}function z(e){return e?e.props?e.props.children:e.children:[]}function W(e){return Array.isArray(e)?e:[e]}function G(e,t,n,r,i,o){if(""===t)return[];var a=r.transKeepBasicHtmlNodesFor||[],u=t&&new RegExp(a.join("|")).test(t);if(!e&&!u)return[t];var l={};!function e(t){W(t).forEach((function(t){"string"!=typeof t&&(V(t)?e(z(t)):"object"!==c()(t)||Object(s.isValidElement)(t)||Object.assign(l,t))}))}(e);var f=y.parse("<0>".concat(t,"</0>")),d=$($({},l),i);function h(e,t,n){var r=z(e),i=g(r,t.children,n);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every((function(e){return Object(s.isValidElement)(e)}))}(r)&&0===i.length?r:i}function p(e,t,n,r,i){e.dummy&&(e.children=t),n.push(Object(s.cloneElement)(e,$($({},e.props),{},{key:r}),i?void 0:t))}function g(t,i,l){var f=W(t);return W(i).reduce((function(t,i,m){var v,y,b,_=i.children&&i.children[0]&&i.children[0].content&&n.services.interpolator.interpolate(i.children[0].content,d,n.language);if("tag"===i.type){var w=f[parseInt(i.name,10)];!w&&1===l.length&&l[0][i.name]&&(w=l[0][i.name]),w||(w={});var E=0!==Object.keys(i.attrs).length?(v={props:i.attrs},(b=$({},y=w)).props=Object.assign(v.props,y.props),b):w,S=Object(s.isValidElement)(E),x=S&&V(i,!0)&&!i.voidElement,k=u&&"object"===c()(E)&&E.dummy&&!S,T="object"===c()(e)&&null!==e&&Object.hasOwnProperty.call(e,i.name);if("string"==typeof E){var O=n.services.interpolator.interpolate(E,d,n.language);t.push(O)}else if(V(E)||x){p(E,h(E,i,l),t,m)}else if(k){var R=g(f,i.children,l);t.push(Object(s.cloneElement)(E,$($({},E.props),{},{key:m}),R))}else if(Number.isNaN(parseFloat(i.name))){if(T)p(E,h(E,i,l),t,m,i.voidElement);else if(r.transSupportBasicHtmlNodes&&a.indexOf(i.name)>-1)if(i.voidElement)t.push(Object(s.createElement)(i.name,{key:"".concat(i.name,"-").concat(m)}));else{var P=g(f,i.children,l);t.push(Object(s.createElement)(i.name,{key:"".concat(i.name,"-").concat(m)},P))}else if(i.voidElement)t.push("<".concat(i.name," />"));else{var A=g(f,i.children,l);t.push("<".concat(i.name,">").concat(A,"</").concat(i.name,">"))}}else if("object"!==c()(E)||S)1===i.children.length&&_?t.push(Object(s.cloneElement)(E,$($({},E.props),{},{key:m}),_)):t.push(Object(s.cloneElement)(E,$($({},E.props),{},{key:m})));else{var C=i.children[0]?_:null;C&&t.push(C)}}else if("text"===i.type){var L=r.transWrapTextNodes,D=o?r.unescape(n.services.interpolator.interpolate(i.content,d,n.language)):n.services.interpolator.interpolate(i.content,d,n.language);L?t.push(Object(s.createElement)(L,{key:"".concat(i.name,"-").concat(m)},D)):t.push(D)}return t}),[])}return z(g([{dummy:!0,children:e||[]}],f,W(e||[]))[0])}function H(e){var t=e.children,n=e.count,r=e.parent,i=e.i18nKey,o=e.context,u=e.tOptions,l=void 0===u?{}:u,f=e.values,d=e.defaults,h=e.components,p=e.ns,g=e.i18n,m=e.t,v=e.shouldUnescape,y=a()(e,B),_=g||F();if(!_)return w("You will need to pass in an i18next instance by using i18nextReactModule"),t;var E=m||_.t.bind(_)||function(e){return e};o&&(l.context=o);var S=$($({},M()),_.options&&_.options.react),x=p||E.ns||_.options&&_.options.defaultNS;x="string"==typeof x?[x]:x||["translation"];var k=d||function e(t,n){if(!t)return"";var r="",i=W(t),o=n.transSupportBasicHtmlNodes&&n.transKeepBasicHtmlNodesFor?n.transKeepBasicHtmlNodesFor:[];return i.forEach((function(t,i){if("string"==typeof t)r+="".concat(t);else if(Object(s.isValidElement)(t)){var u=Object.keys(t.props).length,l=o.indexOf(t.type)>-1,f=t.props.children;if(!f&&l&&0===u)r+="<".concat(t.type,"/>");else if(f||l&&0===u)if(t.props.i18nIsDynamicList)r+="<".concat(i,"></").concat(i,">");else if(l&&1===u&&"string"==typeof f)r+="<".concat(t.type,">").concat(f,"</").concat(t.type,">");else{var d=e(f,n);r+="<".concat(i,">").concat(d,"</").concat(i,">")}else r+="<".concat(i,"></").concat(i,">")}else if(null===t)b("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"===c()(t)){var h=t.format,p=a()(t,U),g=Object.keys(p);if(1===g.length){var m=h?"".concat(g[0],", ").concat(h):g[0];r+="{{".concat(m,"}}")}else b("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",t)}else b("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",t)})),r}(t,S)||S.transEmptyNodeValue||i,T=S.hashTransKey,O=i||(T?T(k):k),R=f?l.interpolation:{interpolation:$($({},l.interpolation),{},{prefix:"#$?",suffix:"?$#"})},P=$($($($({},l),{},{count:n},f),R),{},{defaultValue:k,ns:x}),A=G(h||t,O?E(O,P):k,_,S,P,v),C=void 0!==r?r:S.defaultTransParent;return C?Object(s.createElement)(C,y,A):A}var K=n(41),Y=n.n(K),Q=n(40),X=n.n(Q),J={type:"3rdParty",init:function(e){j(e.options.react),N(e)}};function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var te=Object(s.createContext)(),ne=function(){function e(){Y()(this,e),this.usedNamespaces={}}return X()(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function re(e){return function(t){return new Promise((function(n){var r=ie();e.getInitialProps?e.getInitialProps(t).then((function(e){n(ee(ee({},e),r))})):n(r)}))}}function ie(){var e=F(),t=e.reportNamespaces?e.reportNamespaces.getUsedNamespaces():[],n={},r={};return e.languages.forEach((function(n){r[n]={},t.forEach((function(t){r[n][t]=e.getResourceBundle(n,t)||{}}))})),n.initialI18nStore=r,n.initialLanguage=e.language,n}var oe=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function se(e){var t=e.children,n=e.count,r=e.parent,o=e.i18nKey,u=e.context,c=e.tOptions,l=void 0===c?{}:c,f=e.values,d=e.defaults,h=e.components,p=e.ns,g=e.i18n,m=e.t,v=e.shouldUnescape,y=a()(e,oe),b=Object(s.useContext)(te)||{},_=b.i18n,w=b.defaultNS,E=g||_||F(),S=m||E&&E.t.bind(E);return H(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({children:t,count:n,parent:r,i18nKey:o,context:u,tOptions:l,values:f,defaults:d,components:h,ns:p||S&&S.ns||w||E&&E.options&&E.options.defaultNS,i18n:E,t:m,shouldUnescape:v},y))}var ue=n(68),ce=n.n(ue);function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var de=function(e,t){var n=Object(s.useRef)();return Object(s.useEffect)((function(){n.current=t?n.current:e}),[e,t]),n.current};function he(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=Object(s.useContext)(te)||{},i=r.i18n,o=r.defaultNS,a=n||i||F();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new ne),!a){w("You will need to pass in an i18next instance by using initReactI18next");var u=function(e,t){return"string"==typeof t?t:t&&"object"===c()(t)&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e},l=[u,{},!1];return l.t=u,l.i18n={},l.ready=!1,l}a.options.react&&void 0!==a.options.react.wait&&w("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var f=fe(fe(fe({},M()),a.options.react),t),d=f.useSuspense,h=f.keyPrefix,p=e||o||a.options&&a.options.defaultNS;p="string"==typeof p?[p]:p||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(p);var g=(a.isInitialized||a.initializedStoreOnce)&&p.every((function(e){return T(e,a,f)}));function m(){return a.getFixedT(t.lng||null,"fallback"===f.nsMode?p:p[0],h)}var v=Object(s.useState)(m),y=ce()(v,2),b=y[0],_=y[1],E=p.join();t.lng&&(E="".concat(t.lng).concat(E));var k=de(E),O=Object(s.useRef)(!0);Object(s.useEffect)((function(){var e=f.bindI18n,n=f.bindI18nStore;function r(){O.current&&_(m)}return O.current=!0,g||d||(t.lng?x(a,t.lng,p,(function(){O.current&&_(m)})):S(a,p,(function(){O.current&&_(m)}))),g&&k&&k!==E&&O.current&&_(m),e&&a&&a.on(e,r),n&&a&&a.store.on(n,r),function(){O.current=!1,e&&a&&e.split(" ").forEach((function(e){return a.off(e,r)})),n&&a&&n.split(" ").forEach((function(e){return a.store.off(e,r)}))}}),[a,E]);var R=Object(s.useRef)(!0);Object(s.useEffect)((function(){O.current&&!R.current&&_(m),R.current=!1}),[a,h]);var P=[b,a,g];if(P.t=b,P.i18n=a,P.ready=g,g)return P;if(!g&&!d)return P;throw new Promise((function(e){t.lng?x(a,t.lng,p,(function(){return e()})):S(a,p,(function(){return e()}))}))}var pe=["forwardedRef"];function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){function r(r){var i=r.forwardedRef,o=a()(r,pe),u=he(e,me(me({},o),{},{keyPrefix:t.keyPrefix})),c=ce()(u,3),l=c[0],f=c[1],d=c[2],h=me(me({},o),{},{t:l,i18n:f,tReady:d});return t.withRef&&i?h.ref=i:!t.withRef&&i&&(h.forwardedRef=i),Object(s.createElement)(n,h)}r.displayName="withI18nextTranslation(".concat(O(n),")"),r.WrappedComponent=n;return t.withRef?Object(s.forwardRef)((function(e,t){return Object(s.createElement)(r,Object.assign({},e,{forwardedRef:t}))})):r}}var ye=["ns","children"];function be(e){var t=e.ns,n=e.children,r=he(t,a()(e,ye)),i=ce()(r,3),o=i[0],s=i[1],u=i[2];return n(o,{i18n:s,lng:s.language},u)}function _e(e){var t=e.i18n,n=e.defaultNS,r=e.children,i=Object(s.useMemo)((function(){return{i18n:t,defaultNS:n}}),[t,n]);return Object(s.createElement)(te.Provider,{value:i},r)}function we(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.i18n,i=Object(s.useContext)(te)||{},o=i.i18n,a=r||o||F();a.options&&a.options.isClone||(e&&!a.initializedStoreOnce&&(a.services.resourceStore.data=e,a.options.ns=Object.values(e).reduce((function(e,t){return Object.keys(t).forEach((function(t){e.indexOf(t)<0&&e.push(t)})),e}),a.options.ns),a.initializedStoreOnce=!0,a.isInitialized=!0),t&&!a.initializedLanguageOnce&&(a.changeLanguage(t),a.initializedLanguageOnce=!0))}var Ee=["initialI18nStore","initialLanguage"];function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xe(){return function(e){function t(t){var n=t.initialI18nStore,r=t.initialLanguage,o=a()(t,Ee);return we(n,r),Object(s.createElement)(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o))}return t.getInitialProps=re(e),t.displayName="withI18nextSSR(".concat(O(e),")"),t.WrappedComponent=e,t}}var ke=function(){return""},Te=function(){return""},Oe=function(){return""},Re=function(){return""},Pe=function(){return""},Ae=function(){return""}},function(e,t,n){"use strict";t.decode=t.parse=n(1023),t.encode=t.stringify=n(1024)},function(e,t,n){"use strict";var r=n(7),i=n(97),o=n(152),a=Object(r.a)((function(e,t,n){return Object(i.a)("function"==typeof e?Object(o.a)(e):e,t,n)}));t.a=a},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r=n(221),i={};function o(){return Object(r.b)()?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(e,t,n){var r=n||o(),i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}}).call(this,n(128))},function(e,t,n){"use strict";var r=n(16),i=n(12),o=n(224),a=n(100),s=n(64),u=n(129),c=n(26),l=n(346),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=s(e),t=u(t),l)try{return f(e,t)}catch(e){}if(c(e,t))return a(!i(o.f,e,t),e[t])}},function(e,t,n){"use strict";e.exports=function(e,t){return{value:e,done:t}}},function(e,t,n){"use strict";var r=n(6),i=Set.prototype;e.exports={Set:Set,add:r(i.add),has:r(i.has),remove:r(i.delete),proto:i}},function(e,t,n){"use strict";var r,i=n(495),o=Object.prototype.toString,a=(r=Object.create(null),function(e){var t=o.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var l=s("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var h=s("Date"),p=s("File"),g=s("Blob"),m=s("FileList");function v(e){return"[object Function]"===o.call(e)}var y=s("URLSearchParams");function b(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var _,w=(_="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return _&&e instanceof _});e.exports={isArray:u,isArrayBuffer:l,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return e&&("function"==typeof FormData&&e instanceof FormData||"[object FormData]"===o.call(e)||v(e.toString)&&"[object FormData]"===e.toString())},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:f,isPlainObject:d,isUndefined:c,isDate:h,isFile:p,isBlob:g,isFunction:v,isStream:function(e){return f(e)&&v(e.pipe)},isURLSearchParams:y,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:b,merge:function e(){var t={};function n(n,r){d(t[r])&&d(n)?t[r]=e(t[r],n):d(n)?t[r]=e({},n):u(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)b(arguments[r],n);return t},extend:function(e,t,n){return b(t,(function(t,r){e[r]=n&&"function"==typeof t?i(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,i,o,a={};t=t||{};do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)a[o=r[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:m}},function(e,t,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},r=[],i=0;i<e.length;i++){var o=e[i],u=t.base?o[0]+t.base:o[0],c=n[u]||0,l="".concat(u," ").concat(c);n[u]=c+1;var f=s(l),d={css:o[1],media:o[2],sourceMap:o[3]};-1!==f?(a[f].references++,a[f].updater(d)):a.push({identifier:l,updater:m(d,t),references:1}),r.push(l)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=o(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,f=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function d(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function h(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var p=null,g=0;function m(e,t){var n,r,i;if(t.singleton){var o=g++;n=p||(p=c(t)),r=d.bind(null,n,o,!1),i=d.bind(null,n,o,!0)}else n=c(t),r=h.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=s(n[r]);a[i].references--}for(var o=u(e,t),c=0;c<n.length;c++){var l=s(n[c]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=o}}}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(u," */")),o=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(o).concat([i]).join("\n")}var a,s,u;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var u=[].concat(e[s]);r&&i[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},function(e,t,n){"use strict";t.a=Number.isInteger||function(e){return e<<0===e}},function(e,t,n){"use strict";var r=n(6),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},function(e,t,n){"use strict";var r=n(6);e.exports=r({}.isPrototypeOf)},function(e,t,n){"use strict";var r=n(6),i=Map.prototype;e.exports={Map:Map,set:r(i.set),get:r(i.get),has:r(i.has),remove:r(i.delete),proto:i}},function(e,t,n){"use strict";var r=n(76).has;e.exports=function(e){return r(e),e}},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return u})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return l}));var r=n(124),i=n(149),o=n(10);function a(e){return Math.min(1e3*Math.pow(2,e),3e4)}function s(e){return"function"==typeof(null==e?void 0:e.cancel)}var u=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function c(e){return e instanceof u}var l=function(e){var t,n,c,l,f=this,d=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){d=!0},this.continueRetry=function(){d=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){c=e,l=t}));var h=function(t){f.isResolved||(f.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),c(t))},p=function(t){f.isResolved||(f.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),l(t))};!function c(){if(!f.isResolved){var l;try{l=e.fn()}catch(e){l=Promise.reject(e)}t=function(e){if(!f.isResolved&&(p(new u(e)),null==f.abort||f.abort(),s(l)))try{l.cancel()}catch(e){}},f.isTransportCancelable=s(l),Promise.resolve(l).then(h).catch((function(t){var s,u;if(!f.isResolved){var l=null!=(s=e.retry)?s:3,h=null!=(u=e.retryDelay)?u:a,g="function"==typeof h?h(f.failureCount,t):h,m=!0===l||"number"==typeof l&&f.failureCount<l||"function"==typeof l&&l(f.failureCount,t);!d&&m?(f.failureCount++,null==e.onFail||e.onFail(f.failureCount,t),Object(o.v)(g).then((function(){if(!r.a.isFocused()||!i.a.isOnline())return new Promise((function(t){n=t,f.isPaused=!0,null==e.onPause||e.onPause()})).then((function(){n=void 0,f.isPaused=!1,null==e.onContinue||e.onContinue()}))})).then((function(){d?p(t):c()}))):p(t)}}))}}()}},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";var r=n(5),i=n(286),o=Object(r.a)((function(e){return Object(i.a)(e,[])}));t.a=o},function(e,t,n){"use strict";var r=n(200),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},function(e,t,n){"use strict";var r=n(82),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c}));var r=n(0),i=n.n(r),o=i.a.createContext(void 0),a=i.a.createContext(!1);function s(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=o),window.ReactQueryClientContext):o}var u=function(){var e=i.a.useContext(s(i.a.useContext(a)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},c=function(e){var t=e.client,n=e.contextSharing,r=void 0!==n&&n,o=e.children;i.a.useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var u=s(r);return i.a.createElement(a.Provider,{value:r},i.a.createElement(u.Provider,{value:t},o))}},function(e,t,n){"use strict";var r=n(42).f,i=n(26),o=n(17)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){"use strict";var r=n(83).has;e.exports=function(e){return r(e),e}},function(e,t,n){"use strict";var r=n(3),i=n(87),o=Object(r.a)((function(e,t){if(e===t)return t;function n(e,t){if(e>t!=t>e)return t>e?t:e}var r=n(e,t);if(void 0!==r)return r;var o=n(typeof e,typeof t);if(void 0!==o)return o===typeof e?e:t;var a=Object(i.a)(e),s=n(a,Object(i.a)(t));return void 0!==s&&s===a?e:t}));t.a=o},function(e,t,n){"use strict";var r=n(3),i=n(80),o=n(95),a=Object(r.a)((function(e,t){if(null!=t)return Object(i.a)(e)?Object(o.a)(e,t):t[e]}));t.a=a},function(e,t,n){"use strict";var r=n(3),i=n(107),o=Object(r.a)((function(e,t){var n=e<0?t.length+e:e;return Object(i.a)(t)?t.charAt(n):t[n]}));t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==n})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},function(e,t,n){"use strict";var r=n(277),i=n(280),o=n(269);function a(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function s(e,t,n,r){return e["@@transducer/result"](n[r](Object(o.a)(e["@@transducer/step"],e),t))}var u=Object(r.a)(i.a,s,a);t.a=u},function(e,t,n){var r=n(1025),i=n(1026),o=n(482),a=n(1027);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.d(t,"e",(function(){return s})),n.d(t,"a",(function(){return u})),n.d(t,"g",(function(){return c})),n.d(t,"f",(function(){return l})),n.d(t,"h",(function(){return f})),n.d(t,"b",(function(){return d})),n.d(t,"d",(function(){return g})),n.d(t,"c",(function(){return m}));var r=n(4),i=n(529),o=n(45),a=n(174);function s(e,t,n){if(t in e){var r=e[t],i=n(r);if("function"==typeof i)try{c(i,r)}catch(e){}e[t]=i}}function u(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function c(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,u(e,"__sentry_original__",t)}function l(e){return e.__sentry_original__}function f(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}function d(e){var t=e;if(Object(o.d)(e))t=Object(r.a)({message:e.message,name:e.name,stack:e.stack},p(e));else if(Object(o.f)(e)){var n=e;t=Object(r.a)({type:n.type,target:h(n.target),currentTarget:h(n.currentTarget)},p(n)),"undefined"!=typeof CustomEvent&&Object(o.g)(e,CustomEvent)&&(t.detail=n.detail)}return t}function h(e){try{return Object(o.c)(e)?Object(i.b)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function p(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function g(e,t){void 0===t&&(t=40);var n=Object.keys(d(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Object(a.d)(n[0],t);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:Object(a.d)(i,t)}return""}function m(e){var t,n;if(Object(o.i)(e)){var i={};try{for(var a=Object(r.e)(Object.keys(e)),s=a.next();!s.done;s=a.next()){var u=s.value;void 0!==e[u]&&(i[u]=m(e[u]))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i}return Array.isArray(e)?e.map(m):e}},function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var r=n(46),i=Math.min;e.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0}},function(e,t,n){"use strict";var r=n(292),i=n(24),o=n(81),a=n(17)("toStringTag"),s=Object,u="Arguments"===o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:u?o(t):"Object"===(r=o(t))&&i(t.callee)?"Arguments":r}},function(e,t,n){"use strict";var r=n(6);e.exports=r([].slice)},function(e,t,n){"use strict";var r=n(6),i=n(145),o=n(76),a=o.Set,s=o.proto,u=r(s.forEach),c=r(s.keys),l=c(new a).next;e.exports=function(e,t,n){return n?i({iterator:c(e),next:l},t):u(e,t)}},function(e,t,n){"use strict";var r=n(6),i=n(43),o=n(23),a=/"/g,s=r("".replace);e.exports=function(e,t,n,r){var u=o(i(e)),c="<"+t;return""!==n&&(c+=" "+n+'="'+s(o(r),a,"&quot;")+'"'),c+">"+u+"</"+t+">"}},function(e,t,n){"use strict";var r=n(9);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},function(e,t,n){"use strict";function r(e){return"[object String]"===Object.prototype.toString.call(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=TypeError;e.exports=function(e,t){if(e<t)throw new r("Not enough arguments");return e}},function(e,t,n){"use strict";var r=n(5),i=Object(r.a)((function(e){return null==e}));t.a=i},function(e,t,n){"use strict";function r(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(232),i=n(20),o=n(43),a=n(358);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),a(r),i(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},function(e,t,n){"use strict";var r=n(16),i=n(42),o=n(100);e.exports=function(e,t,n){r?i.f(e,t,o(0,n)):e[t]=n}},function(e,t,n){"use strict";var r=n(9);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},function(e,t,n){"use strict";var r=n(36);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){"use strict";var r=n(6),i=n(145),o=n(83),a=o.Map,s=o.proto,u=r(s.forEach),c=r(s.entries),l=c(new a).next;e.exports=function(e,t,n){return n?i({iterator:c(e),next:l},(function(e){return t(e[1],e[0])})):u(e,t)}},function(e,t){function n(t){return e.exports=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.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";function r(e){return"[object Object]"===Object.prototype.toString.call(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(1055);e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(46),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},function(e,t,n){"use strict";var r=n(81);e.exports=Array.isArray||function(e){return"Array"===r(e)}},function(e,t,n){"use strict";var r=n(6),i=n(9),o=n(24),a=n(102),s=n(21),u=n(229),c=function(){},l=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),h=!f.test(c),p=function(e){if(!o(e))return!1;try{return l(c,[],e),!0}catch(e){return!1}},g=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!d(f,u(e))}catch(e){return!0}};g.sham=!0,e.exports=!l||i((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?g:p},function(e,t,n){"use strict";var r=n(3),i=n(60),o=n(94),a=Object(r.a)((function(e,t){return Object(i.a)(Object(o.a)(e),t)}));t.a=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(86),i=n(96),o=n(10),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.h&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},t}Object(r.a)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setFocused(e):n.onFocus()}))},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach((function(e){e()}))},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(i.a))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(61),i=n(37);function o(e,t,n){return function(){for(var a=[],s=0,u=e,c=0,l=!1;c<t.length||s<arguments.length;){var f;c<t.length&&(!Object(i.a)(t[c])||s>=arguments.length)?f=t[c]:(f=arguments[s],s+=1),a[c]=f,Object(i.a)(f)?l=!0:u-=1,c+=1}return!l&&u<=0?n.apply(this,a):Object(r.a)(Math.max(0,u),o(e,a,n))}}},function(e,t,n){"use strict";function r(e,t,n){for(var r=0,i=n.length;r<i;)t=e(t,n[r]),r+=1;return t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(33);function i(e,t){return function(){var n=arguments.length;if(0===n)return t();var i=arguments[n-1];return Object(r.a)(i)||"function"!=typeof i[e]?t.apply(this,arguments):i[e].apply(i,Array.prototype.slice.call(arguments,0,n-1))}}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(225),i=n(138);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},function(e,t,n){"use strict";var r,i,o=n(13),a=n(131),s=o.process,u=o.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(i=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},function(e,t,n){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(e,t,n){"use strict";var r=n(22),i=TypeError,o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new i("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},function(e,t,n){"use strict";var r=n(2),i=n(13),o=n(12),a=n(16),s=n(324),u=n(27),c=n(238),l=n(89),f=n(100),d=n(66),h=n(315),p=n(101),g=n(206),m=n(440),v=n(441),y=n(129),b=n(26),_=n(102),w=n(20),E=n(138),S=n(58),x=n(82),k=n(112),T=n(156).f,O=n(442),R=n(59).forEach,P=n(162),A=n(47),C=n(42),L=n(74),D=n(143),I=n(35),j=n(158),M=I.get,N=I.set,F=I.enforce,U=C.f,B=L.f,q=i.RangeError,$=c.ArrayBuffer,V=$.prototype,z=c.DataView,W=u.NATIVE_ARRAY_BUFFER_VIEWS,G=u.TYPED_ARRAY_TAG,H=u.TypedArray,K=u.TypedArrayPrototype,Y=u.isTypedArray,Q=function(e,t){A(e,t,{configurable:!0,get:function(){return M(this)[t]}})},X=function(e){var t;return x(V,e)||"ArrayBuffer"===(t=_(e))||"SharedArrayBuffer"===t},J=function(e,t){return Y(e)&&!E(t)&&t in e&&h(+t)&&t>=0},Z=function(e,t){return t=y(t),J(e,t)?f(2,e[t]):B(e,t)},ee=function(e,t,n){return t=y(t),!(J(e,t)&&w(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?U(e,t,n):(e[t]=n.value,e)};a?(W||(L.f=Z,C.f=ee,Q(K,"buffer"),Q(K,"byteOffset"),Q(K,"byteLength"),Q(K,"length")),r({target:"Object",stat:!0,forced:!W},{getOwnPropertyDescriptor:Z,defineProperty:ee}),e.exports=function(e,t,n){var a=e.match(/\d+/)[0]/8,u=e+(n?"Clamped":"")+"Array",c="get"+e,f="set"+e,h=i[u],y=h,b=y&&y.prototype,_={},E=function(e,t){U(e,t,{get:function(){return function(e,t){var n=M(e);return n.view[c](t*a+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var i=M(e);i.view[f](t*a+i.byteOffset,n?v(r):r,!0)}(this,t,e)},enumerable:!0})};W?s&&(y=t((function(e,t,n,r){return l(e,b),j(w(t)?X(t)?void 0!==r?new h(t,m(n,a),r):void 0!==n?new h(t,m(n,a)):new h(t):Y(t)?D(y,t):o(O,y,t):new h(g(t)),e,y)})),k&&k(y,H),R(T(h),(function(e){e in y||d(y,e,h[e])})),y.prototype=b):(y=t((function(e,t,n,r){l(e,b);var i,s,u,c=0,f=0;if(w(t)){if(!X(t))return Y(t)?D(y,t):o(O,y,t);i=t,f=m(n,a);var d=t.byteLength;if(void 0===r){if(d%a)throw new q("Wrong length");if((s=d-f)<0)throw new q("Wrong length")}else if((s=p(r)*a)+f>d)throw new q("Wrong length");u=s/a}else u=g(t),i=new $(s=u*a);for(N(e,{buffer:i,byteOffset:f,byteLength:s,length:u,view:new z(i)});c<u;)E(e,c++)})),k&&k(y,H),b=y.prototype=S(K)),b.constructor!==y&&d(b,"constructor",y),F(b).TypedArrayConstructor=y,G&&d(b,G,u);var x=y!==h;_[u]=y,r({global:!0,constructor:!0,forced:x,sham:!W},_),"BYTES_PER_ELEMENT"in y||d(y,"BYTES_PER_ELEMENT",a),"BYTES_PER_ELEMENT"in b||d(b,"BYTES_PER_ELEMENT",a),P(u)}):e.exports=function(){}},function(e,t,n){"use strict";n(312),n(327);var r=n(21),i=n(6),o=n(139),a=r("Map"),s=r("WeakMap"),u=i([].push),c=o("metadata"),l=c.store||(c.store=new s),f=function(e,t,n){var r=l.get(e);if(!r){if(!n)return;l.set(e,r=new a)}var i=r.get(t);if(!i){if(!n)return;r.set(t,i=new a)}return i};e.exports={store:l,getMap:f,has:function(e,t,n){var r=f(t,n,!1);return void 0!==r&&r.has(e)},get:function(e,t,n){var r=f(t,n,!1);return void 0===r?void 0:r.get(e)},set:function(e,t,n,r){f(n,r,!0).set(e,t)},keys:function(e,t){var n=f(e,t,!1),r=[];return n&&n.forEach((function(e,t){u(r,t)})),r},toKey:function(e){return void 0===e||"symbol"==typeof e?e:String(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=console;function i(){return r}function o(e){r=e}},function(e,t,n){"use strict";var r=n(5),i=n(33),o=n(107),a=Object(r.a)((function(e){return!!Object(i.a)(e)||!!e&&("object"==typeof e&&(!Object(o.a)(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));t.a=a},function(e,t,n){"use strict";var r=n(6),i=n(9),o=n(81),a=Object,s=r("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?s(e,""):a(e)}:a},function(e,t,n){"use strict";var r=n(21),i=n(24),o=n(82),a=n(344),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,s(e))}},function(e,t,n){"use strict";var r=n(226);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},function(e,t,n){"use strict";var r=n(102),i=n(57),o=n(65),a=n(179),s=n(17)("iterator");e.exports=function(e){if(!o(e))return i(e,s)||i(e,"@@iterator")||a[r(e)]}},function(e,t,n){"use strict";var r=n(12),i=n(11),o=n(57);e.exports=function(e,t,n){var a,s;i(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return i(a),n}},function(e,t,n){"use strict";var r=n(13),i=n(81);e.exports="process"===i(r.process)},function(e,t,n){"use strict";var r=n(30);e.exports=function(e,t,n){for(var i=0,o=arguments.length>2?n:r(t),a=new e(o);o>i;)a[i]=t[i++];return a}},function(e,t,n){"use strict";var r=n(9);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){"use strict";var r=n(12);e.exports=function(e,t,n){for(var i,o,a=n?e:e.iterator,s=e.next;!(i=r(s,a)).done;)if(void 0!==(o=t(i.value)))return o}},function(e,t,n){"use strict";var r=n(5),i=n(267),o=Object(r.a)((function(e){return Object(i.a)(e.length,e)}));t.a=o},function(e,t,n){"use strict";var r=n(282),i=n(3),o=n(196),a=Object(i.a)((function(e,t){return Object(o.a)(Object(r.a)(e),t)}));t.a=a},function(e,t,n){var r=n(1017),i=Object.prototype.hasOwnProperty,o=Array.prototype.splice,a=Object.prototype.toString,s=function(e){return a.call(e).slice(8,-1)},u=Object.assign||function(e,t){return c(t).forEach((function(n){i.call(t,n)&&(e[n]=t[n])})),e},c="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function l(e){if(Array.isArray(e))return u(e.constructor(e.length),e);if("Map"===s(e))return new Map(e);if("Set"===s(e))return new Set(e);if(e&&"object"==typeof e){var t=Object.getPrototypeOf(e);return u(Object.create(t),e)}return e}function f(){var e=u({},d);return t.extend=function(t,n){e[t]=n},t.isEquals=function(e,t){return e===t},t;function t(n,o){"function"==typeof o&&(o={$apply:o}),Array.isArray(n)&&Array.isArray(o)||r(!Array.isArray(o),"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."),r("object"==typeof o&&null!==o,"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: %s.",Object.keys(e).join(", "));var a=n;return c(o).forEach((function(r){if(i.call(e,r)){var u=n===a;a=e[r](o[r],a,o,n),u&&t.isEquals(a,n)&&(a=n)}else{var c="Map"===s(n)?t(n.get(r),o[r]):t(n[r],o[r]),f="Map"===s(a)?a.get(r):a[r];t.isEquals(c,f)&&(void 0!==c||i.call(n,r))||(a===n&&(a=l(n)),"Map"===s(a)?a.set(r,c):a[r]=c)}})),a}}var d={$push:function(e,t,n){return p(t,n,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,n){return p(t,n,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,n,i){return function(e,t){r(Array.isArray(e),"Expected $splice target to be an array; got %s",e),m(t.$splice)}(t,n),e.forEach((function(e){m(e),t===i&&e.length&&(t=l(i)),o.apply(t,e)})),t},$set:function(e,t,n){return function(e){r(1===Object.keys(e).length,"Cannot have more than one key in an object with $set")}(n),e},$toggle:function(e,t){g(e,"$toggle");var n=e.length?l(t):t;return e.forEach((function(e){n[e]=!t[e]})),n},$unset:function(e,t,n,r){return g(e,"$unset"),e.forEach((function(e){Object.hasOwnProperty.call(t,e)&&(t===r&&(t=l(r)),delete t[e])})),t},$add:function(e,t,n,r){return v(t,"$add"),g(e,"$add"),"Map"===s(t)?e.forEach((function(e){var n=e[0],i=e[1];t===r&&t.get(n)!==i&&(t=l(r)),t.set(n,i)})):e.forEach((function(e){t!==r||t.has(e)||(t=l(r)),t.add(e)})),t},$remove:function(e,t,n,r){return v(t,"$remove"),g(e,"$remove"),e.forEach((function(e){t===r&&t.has(e)&&(t=l(r)),t.delete(e)})),t},$merge:function(e,t,n,i){var o,a;return o=t,r((a=e)&&"object"==typeof a,"update(): $merge expects a spec of type 'object'; got %s",a),r(o&&"object"==typeof o,"update(): $merge expects a target of type 'object'; got %s",o),c(e).forEach((function(n){e[n]!==t[n]&&(t===i&&(t=l(i)),t[n]=e[n])})),t},$apply:function(e,t){var n;return r("function"==typeof(n=e),"update(): expected spec of $apply to be a function; got %s.",n),e(t)}},h=f();function p(e,t,n){r(Array.isArray(e),"update(): expected target of %s to be an array; got %s.",n,e),g(t[n],n)}function g(e,t){r(Array.isArray(e),"update(): expected spec of %s to be an array; got %s. Did you forget to wrap your parameter in an array?",t,e)}function m(e){r(Array.isArray(e),"update(): expected spec of $splice to be an array of arrays; got %s. Did you forget to wrap your parameters in an array?",e)}function v(e,t){var n=s(e);r("Map"===n||"Set"===n,"update(): %s expects a target of type Set or Map; got %s",t,n)}e.exports=h,e.exports.default=h,e.exports.newContext=f},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(86),i=n(96),o=n(10),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.h&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},t}Object(r.a)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setOnline(e):n.onOnline()}))},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach((function(e){e()}))},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},t}(i.a))},function(e,t,n){"use strict";var r=n(126),i=n(277);function o(e,t,n){for(var r=n.next();!r.done;)t=e(t,r.value),r=n.next();return t}function a(e,t,n,r){return n[r](e,t)}var s=Object(i.a)(r.a,a,o);t.a=s},function(e,t,n){"use strict";var r=n(5),i=Object(r.a)((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function i(e){return new r(e)}},function(e,t,n){"use strict";var r=n(130),i=n(9),o=n(13).String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(e,t,n){"use strict";var r=String;e.exports=function(e){try{return r(e)}catch(e){return"Object"}}},function(e,t,n){"use strict";var r=n(6),i=0,o=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},function(e,t,n){"use strict";var r=n(349),i=n(291).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(81),i=n(6);e.exports=function(e){if("Function"===r(e))return i(e)}},function(e,t,n){"use strict";var r=n(24),i=n(20),o=n(112);e.exports=function(e,t,n){var a,s;return o&&r(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},function(e,t,n){"use strict";var r=n(12),i=n(22),o=n(11),a=n(154),s=n(140),u=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return o(r(n,e));throw new u(a(e)+" is not iterable")}},function(e,t,n){"use strict";var r=TypeError;e.exports=function(e){if(e>9007199254740991)throw r("Maximum allowed index exceeded");return e}},function(e,t,n){"use strict";var r=n(180).IteratorPrototype,i=n(58),o=n(100),a=n(91),s=n(179),u=function(){return this};e.exports=function(e,t,n,c){var l=t+" Iterator";return e.prototype=i(r,{next:o(+!c,n)}),a(e,l,!1,!0),s[l]=u,e}},function(e,t,n){"use strict";var r=n(21),i=n(47),o=n(17),a=n(16),s=o("species");e.exports=function(e){var t=r(e);a&&t&&!t[s]&&i(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(2),i=n(6),o=n(201),a=n(20),s=n(26),u=n(42).f,c=n(156),l=n(294),f=n(313),d=n(155),h=n(144),p=!1,g=d("meta"),m=0,v=function(e){u(e,g,{value:{objectID:"O"+m++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},p=!0;var e=c.f,t=i([].splice),n={};n[g]=1,e(n).length&&(c.f=function(n){for(var r=e(n),i=0,o=r.length;i<o;i++)if(r[i]===g){t(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,g)){if(!f(e))return"F";if(!t)return"E";v(e)}return e[g].objectID},getWeakData:function(e,t){if(!s(e,g)){if(!f(e))return!0;if(!t)return!1;v(e)}return e[g].weakData},onFreeze:function(e){return h&&p&&f(e)&&!s(e,g)&&v(e),e}};o[g]=!0},function(e,t,n){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){"use strict";var r=n(22),i=n(11),o=n(12),a=n(46),s=n(48),u=RangeError,c=TypeError,l=Math.max,f=function(e,t){this.set=e,this.size=l(t,0),this.has=r(e.has),this.keys=r(e.keys)};f.prototype={getIterator:function(){return s(i(o(this.keys,this.set)))},includes:function(e){return o(this.has,this.set,e)}},e.exports=function(e){i(e);var t=+e.size;if(t!=t)throw new c("Invalid size");var n=a(t);if(n<0)throw new u("Invalid size");return new f(e,n)}},function(e,t,n){"use strict";var r=n(21),i=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};e.exports=function(e){var t=r("Set");try{(new t)[e](i(0));try{return(new t)[e](i(-1)),!1}catch(e){return!0}}catch(e){return!1}}},function(e,t,n){"use strict";var r=n(21),i=n(24),o=n(918),a=n(20),s=r("Set");e.exports=function(e){return function(e){return a(e)&&"number"==typeof e.size&&i(e.has)&&i(e.keys)}(e)?e:o(e)?new s(e):e}},function(e,t,n){"use strict";n.r(t),n.d(t,"isUndefined",(function(){return l})),n.d(t,"isNumber",(function(){return v})),n.d(t,"isFunction",(function(){return y})),n.d(t,"isNotNil",(function(){return f})),n.d(t,"isNotEmpty",(function(){return d})),n.d(t,"isNotNilOrEmpty",(function(){return h})),n.d(t,"isObject",(function(){return m})),n.d(t,"isNilOrEmpty",(function(){return p}));var r=n(218),i=n(109),o=n(338),a=n(339),s=n(217),u=n(44),c=n(151),l=function(e){return void 0===e},f=r.a(i.a),d=r.a(o.a),h=a.a([f,d]),p=r.a(h),g=function(e){return s.a(u.a(e),c.a)},m=g("Object"),v=g("Number"),y=g("Function")},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(19),i=n(86),o=n(10),a=n(25),s=n(124),u=n(96),c=n(135),l=n(85),f=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.options=n,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(n),r}Object(i.a)(t,e);var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),d(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return h(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return h(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var i=this.hasListeners();i&&p(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();var o=this.computeRefetchInterval();!i||this.currentQuery===r&&this.options.enabled===n.enabled&&o===this.currentRefetchInterval||this.updateRefetchInterval(o)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e,t){var n=this,r={},i=function(e){n.trackedProps.includes(e)||n.trackedProps.push(e)};return Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:function(){return i(t),e[t]}})})),(t.useErrorBoundary||t.suspense)&&i("error"),r},n.getNextResult=function(e){var t=this;return new Promise((function(n,r){var i=t.subscribe((function(t){t.isFetching||(i(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):n(t))}))}))},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch(Object(r.a)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then((function(){return t.createResult(r,n)}))},n.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(o.l)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!o.h&&!this.currentResult.isStale&&Object(o.i)(this.options.staleTime)){var t=Object(o.w)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){e.currentResult.isStale||e.updateResult()}),t)}},n.computeRefetchInterval=function(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},n.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!o.h&&!1!==this.options.enabled&&Object(o.i)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(t.options.refetchIntervalInBackground||s.a.isFocused())&&t.executeFetch()}),this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(e,t){var n,r=this.currentQuery,i=this.options,a=this.currentResult,s=this.currentResultState,u=this.currentResultOptions,l=e!==r,f=l?e.state:this.currentQueryInitialState,h=l?this.currentResult:this.previousQueryResult,m=e.state,v=m.dataUpdatedAt,y=m.error,b=m.errorUpdatedAt,_=m.isFetching,w=m.status,E=!1,S=!1;if(t.optimisticResults){var x=this.hasListeners(),k=!x&&d(e,t),T=x&&p(e,r,t,i);(k||T)&&(_=!0,v||(w="loading"))}if(t.keepPreviousData&&!m.dataUpdateCount&&(null==h?void 0:h.isSuccess)&&"error"!==w)n=h.data,v=h.dataUpdatedAt,w=h.status,E=!0;else if(t.select&&void 0!==m.data)if(a&&m.data===(null==s?void 0:s.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(m.data),!1!==t.structuralSharing&&(n=Object(o.s)(null==a?void 0:a.data,n)),this.selectResult=n,this.selectError=null}catch(e){Object(c.a)().error(e),this.selectError=e}else n=m.data;if(void 0!==t.placeholderData&&void 0===n&&("loading"===w||"idle"===w)){var O;if((null==a?void 0:a.isPlaceholderData)&&t.placeholderData===(null==u?void 0:u.placeholderData))O=a.data;else if(O="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==O)try{O=t.select(O),!1!==t.structuralSharing&&(O=Object(o.s)(null==a?void 0:a.data,O)),this.selectError=null}catch(e){Object(c.a)().error(e),this.selectError=e}void 0!==O&&(w="success",n=O,S=!0)}return this.selectError&&(y=this.selectError,n=this.selectResult,b=Date.now(),w="error"),{status:w,isLoading:"loading"===w,isSuccess:"success"===w,isError:"error"===w,isIdle:"idle"===w,data:n,dataUpdatedAt:v,error:y,errorUpdatedAt:b,failureCount:m.fetchFailureCount,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>f.dataUpdateCount||m.errorUpdateCount>f.errorUpdateCount,isFetching:_,isRefetching:_&&"loading"!==w,isLoadingError:"error"===w&&0===m.dataUpdatedAt,isPlaceholderData:S,isPreviousData:E,isRefetchError:"error"===w&&0!==m.dataUpdatedAt,isStale:g(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,r=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!r&&!i)return!0;if("tracked"===r&&!this.trackedProps.length)return!0;var o="tracked"===r?this.trackedProps:r;return Object.keys(e).some((function(n){var r=n,a=e[r]!==t[r],s=null==o?void 0:o.some((function(e){return e===n})),u=null==i?void 0:i.some((function(e){return e===n}));return a&&!u&&(!o||s)}))},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!Object(o.u)(this.currentResult,t)){var n={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify(Object(r.a)({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||Object(l.d)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;a.a.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(u.a);function d(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&h(e,t,t.refetchOnMount)}function h(e,t,n){if(!1!==t.enabled){var r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&g(e,t)}return!1}function p(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&g(e,n)}function g(e,t){return e.isStaleByTime(t.staleTime)}},function(e,t,n){"use strict";n.r(t);var r=n(190);for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);var o=n(485);for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(281);function i(e,t){return Object(r.a)(t,e,0)>=0}},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c}));var r=n(85),i=n(10);function o(){return{onFetch:function(e){e.fetchFn=function(){var t,n,o,u,c,l,f,d=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,h=null==(o=e.fetchOptions)||null==(u=o.meta)?void 0:u.fetchMore,p=null==h?void 0:h.pageParam,g="forward"===(null==h?void 0:h.direction),m="backward"===(null==h?void 0:h.direction),v=(null==(c=e.state.data)?void 0:c.pages)||[],y=(null==(l=e.state.data)?void 0:l.pageParams)||[],b=Object(i.d)(),_=null==b?void 0:b.signal,w=y,E=!1,S=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},x=function(e,t,n,r){return w=r?[t].concat(w):[].concat(w,[t]),r?[n].concat(e):[].concat(e,[n])},k=function(t,n,i,o){if(E)return Promise.reject("Cancelled");if(void 0===i&&!n&&t.length)return Promise.resolve(t);var a={queryKey:e.queryKey,signal:_,pageParam:i,meta:e.meta},s=S(a),u=Promise.resolve(s).then((function(e){return x(t,i,e,o)}));Object(r.c)(s)&&(u.cancel=s.cancel);return u};if(v.length)if(g){var T=void 0!==p,O=T?p:a(e.options,v);f=k(v,T,O)}else if(m){var R=void 0!==p,P=R?p:s(e.options,v);f=k(v,R,P,!0)}else!function(){w=[];var t=void 0===e.options.getNextPageParam,n=!d||!v[0]||d(v[0],0,v);f=n?k([],t,y[0]):Promise.resolve(x([],y[0],v[0]));for(var r=function(n){f=f.then((function(r){if(!d||!v[n]||d(v[n],n,v)){var i=t?y[n]:a(e.options,r);return k(r,t,i)}return Promise.resolve(x(r,y[n],v[n]))}))},i=1;i<v.length;i++)r(i)}();else f=k([]);var A=f.then((function(e){return{pages:e,pageParams:w}}));return A.cancel=function(){E=!0,null==b||b.abort(),Object(r.c)(f)&&f.cancel()},A}}}}function a(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function s(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}function u(e,t){if(e.getNextPageParam&&Array.isArray(t)){var n=a(e,t);return null!=n&&!1!==n}}function c(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){var n=s(e,t);return null!=n&&!1!==n}}},function(e,t,n){"use strict";t.a="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n(45);function i(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function o(e,t){var n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);var i=Math.max(t-60,0);i<5&&(i=0);var o=Math.min(i+140,r);return o>r-5&&(o=r),o===r&&(i=Math.max(o-140,0)),n=n.slice(i,o),i>0&&(n="'{snip} "+n),o<r&&(n+=" {snip}"),n}function a(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var i=e[r];try{n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function s(e,t){return!!Object(r.l)(e)&&(Object(r.k)(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}},function(e,t,n){"use strict";var r=n(16),i=n(26),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},function(e,t,n){"use strict";var r=n(26),i=n(290),o=n(74),a=n(42);e.exports=function(e,t,n){for(var s=i(t),u=a.f,c=o.f,l=0;l<s.length;l++){var f=s[l];r(e,f)||n&&r(n,f)||u(e,f,c(t,f))}}},function(e,t,n){"use strict";var r=n(349),i=n(291);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(23);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";var r,i,o,a=n(9),s=n(24),u=n(20),c=n(58),l=n(67),f=n(36),d=n(17),h=n(28),p=d("iterator"),g=!1;[].keys&&("next"in(o=[].keys())?(i=l(l(o)))!==Object.prototype&&(r=i):g=!0),!u(r)||a((function(){var e={};return r[p].call(e)!==e}))?r={}:h&&(r=c(r)),s(r[p])||f(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:g}},function(e,t,n){"use strict";var r=n(11),i=n(239),o=n(65),a=n(17)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||o(n=r(s)[a])?t:i(n)}},function(e,t,n){"use strict";var r=n(6),i=n(43),o=n(23),a=n(183),s=r("".replace),u=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),l=function(e){return function(t){var n=o(i(t));return 1&e&&(n=s(n,u,"")),2&e&&(n=s(n,c,"$1")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},function(e,t,n){"use strict";e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(e,t,n){"use strict";var r=n(13);e.exports=r.Promise},function(e,t,n){"use strict";var r=n(6),i=n(46),o=n(23),a=n(43),s=r("".charAt),u=r("".charCodeAt),c=r("".slice),l=function(e){return function(t,n){var r,l,f=o(a(t)),d=i(n),h=f.length;return d<0||d>=h?e?"":void 0:(r=u(f,d))<55296||r>56319||d+1===h||(l=u(f,d+1))<56320||l>57343?e?s(f,d):r:e?c(f,d,d+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},function(e,t,n){"use strict";var r=n(12),i=n(22),o=n(11),a=n(20),s=n(160),u=n(21),c=n(48),l=n(214),f=function(e){var t=0===e,n=1===e,f=2===e,d=3===e;return function(e,h,p){o(e);var g=void 0!==h;!g&&t||i(h);var m=c(e),v=u("Promise"),y=m.iterator,b=m.next,_=0;return new v((function(e,i){var u=function(e){l(y,i,e,i)},c=function(){try{if(g)try{s(_)}catch(e){u(e)}v.resolve(o(r(b,y))).then((function(r){try{if(o(r).done)t?(p.length=_,e(p)):e(!d&&(f||void 0));else{var s=r.value;try{if(g){var m=h(s,_),b=function(r){if(n)c();else if(f)r?c():l(y,e,!1,i);else if(t)try{p[_++]=r,c()}catch(e){u(e)}else r?l(y,e,d||s,i):c()};a(m)?v.resolve(m).then(b,u):b(m)}else p[_++]=s,c()}catch(e){u(e)}}}catch(e){i(e)}}),i)}catch(e){i(e)}};c()}))}};e.exports={toArray:f(0),forEach:f(1),every:f(2),some:f(3),find:f(4)}},function(e,t,n){"use strict";var r=n(12),i=n(164),o=n(11),a=n(58),s=n(66),u=n(115),c=n(17),l=n(35),f=n(21),d=n(57),h=n(213),p=n(75),g=n(141),m=f("Promise"),v=c("toStringTag"),y=l.set,b=function(e){var t=!e,n=l.getterFor(e?"WrapForValidAsyncIterator":"AsyncIteratorHelper"),s=function(e){var r=i((function(){return n(e)})),o=r.error,a=r.value;return o||t&&a.done?{exit:!0,value:o?m.reject(a):m.resolve(p(void 0,!0))}:{exit:!1,value:a}};return u(a(h),{next:function(){var e=s(this),t=e.value;if(e.exit)return t;var n=i((function(){return o(t.nextHandler(m))})),r=n.error,a=n.value;return r&&(t.done=!0),r?m.reject(a):m.resolve(a)},return:function(){var t=s(this),n=t.value;if(t.exit)return n;n.done=!0;var a,u,c=n.iterator,l=i((function(){if(n.inner)try{g(n.inner.iterator,"normal")}catch(e){return g(c,"throw",e)}return d(c,"return")}));return a=u=l.value,l.error?m.reject(u):void 0===a?m.resolve(p(void 0,!0)):(u=(l=i((function(){return r(a,c)}))).value,l.error?m.reject(u):e?m.resolve(u):m.resolve(u).then((function(e){return o(e),p(void 0,!0)})))}})},_=b(!0),w=b(!1);s(w,v,"Async Iterator Helper"),e.exports=function(e,t){var n=function(n,r){r?(r.iterator=n.iterator,r.next=n.next):r=n,r.type=t?"WrapForValidAsyncIterator":"AsyncIteratorHelper",r.nextHandler=e,r.counter=0,r.done=!1,y(this,r)};return n.prototype=t?_:w,n}},function(e,t,n){"use strict";var r=n(12),i=n(58),o=n(66),a=n(115),s=n(17),u=n(35),c=n(57),l=n(180).IteratorPrototype,f=n(75),d=n(141),h=s("toStringTag"),p=u.set,g=function(e){var t=u.getterFor(e?"WrapForValidIterator":"IteratorHelper");return a(i(l),{next:function(){var n=t(this);if(e)return n.nextHandler();try{var r=n.done?void 0:n.nextHandler();return f(r,n.done)}catch(e){throw n.done=!0,e}},return:function(){var n=t(this),i=n.iterator;if(n.done=!0,e){var o=c(i,"return");return o?r(o,i):f(void 0,!0)}if(n.inner)try{d(n.inner.iterator,"normal")}catch(e){return d(i,"throw",e)}return d(i,"normal"),f(void 0,!0)}})},m=g(!0),v=g(!1);o(v,h,"Iterator Helper"),e.exports=function(e,t){var n=function(n,r){r?(r.iterator=n.iterator,r.next=n.next):r=n,r.type=t?"WrapForValidIterator":"IteratorHelper",r.nextHandler=e,r.counter=0,r.done=!1,p(this,r)};return n.prototype=t?m:v,n}},function(e,t,n){"use strict";var r=n(6),i=WeakMap.prototype;e.exports={WeakMap:WeakMap,set:r(i.set),get:r(i.get),has:r(i.has),remove:r(i.delete)}},function(e,t,n){"use strict";n.r(t);var r=n(85);n.d(t,"CancelledError",(function(){return r.a}));var i=n(273);n.d(t,"QueryCache",(function(){return i.a}));var o=n(483);n.d(t,"QueryClient",(function(){return o.a}));var a=n(169);n.d(t,"QueryObserver",(function(){return a.a}));var s=n(263);n.d(t,"QueriesObserver",(function(){return s.a}));var u=n(264);n.d(t,"InfiniteQueryObserver",(function(){return u.a}));var c=n(262);n.d(t,"MutationCache",(function(){return c.a}));var l=n(265);n.d(t,"MutationObserver",(function(){return l.a}));var f=n(135);n.d(t,"setLogger",(function(){return f.b}));var d=n(25);n.d(t,"notifyManager",(function(){return d.a}));var h=n(124);n.d(t,"focusManager",(function(){return h.a}));var p=n(149);n.d(t,"onlineManager",(function(){return p.a}));var g=n(10);n.d(t,"hashQueryKey",(function(){return g.e})),n.d(t,"isError",(function(){return g.g})),n.d(t,"isCancelledError",(function(){return r.d}));var m=n(266);n.d(t,"dehydrate",(function(){return m.a})),n.d(t,"hydrate",(function(){return m.b}));var v=n(484);for(var y in v)["default","CancelledError","QueryCache","QueryClient","QueryObserver","QueriesObserver","InfiniteQueryObserver","MutationCache","MutationObserver","setLogger","notifyManager","focusManager","onlineManager","hashQueryKey","isError","isCancelledError","dehydrate","hydrate"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return v[e]}))}(y)},function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.hls_timeshift_rel_manifest=t.hls_timeshift_abs_manifest_refetch=t.hls_timeshift_abs_manifest_query=t.hls_timeshift_abs_manifest=t.hls_dvr_manifest_refetch=t.hls_dvr_manifest_query=t.hls_dvr_manifest=t.hls_rewind_manifest_refetch=t.hls_rewind_manifest_query=t.hls_rewind_manifest=t.hls_manifest_refetch=t.hls_manifest_query=t.hls_manifest=t.hls_live_track_mono_manifest_refetch=t.hls_live_track_mono_manifest_query=t.hls_live_track_mono_manifest=t.hls_ts_timeshift_rel_manifest_refetch=t.hls_ts_timeshift_rel_manifest_query=t.hls_ts_timeshift_rel_manifest=t.hls_ts_timeshift_abs_manifest_refetch=t.hls_ts_timeshift_abs_manifest_query=t.hls_ts_timeshift_abs_manifest=t.hls_ts_dvr_manifest_refetch=t.hls_ts_dvr_manifest_query=t.hls_ts_dvr_manifest=t.hls_ts_rewind_manifest_refetch=t.hls_ts_rewind_manifest_query=t.hls_ts_rewind_manifest=t.hls_single_playlist_manifest_refetch=t.hls_single_playlist_manifest_query=t.hls_single_playlist_manifest=t.hls_ts_manifest_refetch=t.hls_ts_manifest_query=t.hls_ts_manifest=t.abstract_timeshift_rel_manifest_refetch=t.abstract_timeshift_rel_manifest_query=t.abstract_timeshift_rel_manifest=t.abstract_timeshift_abs_manifest_refetch=t.abstract_timeshift_abs_manifest_query=t.abstract_timeshift_abs_manifest=t.abstract_rewind_manifest_refetch=t.abstract_rewind_manifest_query=t.abstract_rewind_manifest=t.abstract_dvr_manifest_refetch=t.abstract_dvr_manifest_query=t.abstract_dvr_manifest=t.abstract_manifest_refetch=t.abstract_manifest_query=t.abstract_manifest=t.axiosInstance=void 0,t.http_mpegts_timeshift_rel_refetch=t.http_mpegts_timeshift_rel_query=t.http_mpegts_timeshift_rel=t.http_mpegts_timeshift_abs_refetch=t.http_mpegts_timeshift_abs_query=t.http_mpegts_timeshift_abs=t.http_mpegts_live_publish=t.http_mpegts_live_play_refetch=t.http_mpegts_live_play_query=t.http_mpegts_live_play=t.webrtc_play=t.webrtc_publish=t.dash_thumbnail_get_refetch=t.dash_thumbnail_get_query=t.dash_thumbnail_get=t.dash_timeshift_abs_manifest_refetch=t.dash_timeshift_abs_manifest_query=t.dash_timeshift_abs_manifest=t.dash_dvr_manifest_refetch=t.dash_dvr_manifest_query=t.dash_dvr_manifest=t.dash_rewind_manifest_refetch=t.dash_rewind_manifest_query=t.dash_rewind_manifest=t.dash_manifest_refetch=t.dash_manifest_query=t.dash_manifest=t.hls_thumbnail_get_refetch=t.hls_thumbnail_get_query=t.hls_thumbnail_get=t.llhls_live_manifest_refetch=t.llhls_live_manifest_query=t.llhls_live_manifest=t.hls_fmp4_timeshift_rel_manifest_refetch=t.hls_fmp4_timeshift_rel_manifest_query=t.hls_fmp4_timeshift_rel_manifest=t.hls_fmp4_timeshift_abs_manifest_refetch=t.hls_fmp4_timeshift_abs_manifest_query=t.hls_fmp4_timeshift_abs_manifest=t.hls_fmp4_dvr_manifest_refetch=t.hls_fmp4_dvr_manifest_query=t.hls_fmp4_dvr_manifest=t.hls_fmp4_rewind_manifest_refetch=t.hls_fmp4_rewind_manifest_query=t.hls_fmp4_rewind_manifest=t.hls_fmp4_manifest_refetch=t.hls_fmp4_manifest_query=t.hls_fmp4_manifest=t.hls_timeshift_rel_manifest_refetch=t.hls_timeshift_rel_manifest_query=void 0,t.ranges_list_query=t.ranges_list=t.recording_status_refetch=t.recording_status_query=t.recording_status=t.embed_html_refetch=t.embed_html_query=t.embed_html=t.media_logo_refetch=t.media_logo_query=t.media_logo=t.mp4_vod_refetch=t.mp4_vod_query=t.mp4_vod=t.mp4_dvr_refetch=t.mp4_dvr_query=t.mp4_dvr=t.mp4_preview_refetch=t.mp4_preview_query=t.mp4_preview=t.jpeg_snapshot_refetch=t.jpeg_snapshot_query=t.jpeg_snapshot=t.jpeg_preview_ondemand_refetch=t.jpeg_preview_ondemand_query=t.jpeg_preview_ondemand=t.jpeg_preview_dvr_refetch=t.jpeg_preview_dvr_query=t.jpeg_preview_dvr=t.jpeg_preview_refetch=t.jpeg_preview_query=t.jpeg_preview=t.mp4_save_refetch=t.mp4_save_query=t.mp4_save=t.ts_export_refetch=t.ts_export_query=t.ts_export=t.mp4_export_refetch=t.mp4_export_query=t.mp4_export=t.mss_dvr_manifest_refetch=t.mss_dvr_manifest_query=t.mss_dvr_manifest=t.mss_live_manifest_refetch=t.mss_live_manifest_query=t.mss_live_manifest=t.shoutcast_live_refetch=t.shoutcast_live_query=t.shoutcast_live=void 0,t.streams_list_refetch=t.streams_list_query=t.streams_list=t.playlist_get_refetch=t.playlist_get_query=t.playlist_get=t.request_tracks=t.session_save=t.public_stream_get_refetch=t.public_stream_get_query=t.public_stream_get=t.media_info_refetch=t.media_info_query=t.media_info=t.ranges_list_refetch=void 0;const i=n(168),o=n(493),a=n(494),s=n(1054),u=n(70),c=n(170);t.axiosInstance=(0,a.getAxiosInstance)();t.abstract_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_abstract_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.abstract_manifest_query)({params:e,config:r}),options:n});t.abstract_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/index.json",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.abstract_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_abstract_manifest"])};t.abstract_dvr_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_abstract_dvr_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.abstract_dvr_manifest_query)({params:e,config:r}),options:n});t.abstract_dvr_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/archive-{from}-{duration}.json",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.abstract_dvr_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_abstract_dvr_manifest"])};t.abstract_rewind_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_abstract_rewind_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.abstract_rewind_manifest_query)({params:e,config:r}),options:n});t.abstract_rewind_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/rewind-{ago}.json",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.abstract_rewind_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_abstract_rewind_manifest"])};t.abstract_timeshift_abs_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_abstract_timeshift_abs_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.abstract_timeshift_abs_manifest_query)({params:e,config:r}),options:n});t.abstract_timeshift_abs_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/timeshift_abs-{from}.json",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.abstract_timeshift_abs_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_abstract_timeshift_abs_manifest"])};t.abstract_timeshift_rel_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_abstract_timeshift_rel_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.abstract_timeshift_rel_manifest_query)({params:e,config:r}),options:n});t.abstract_timeshift_rel_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/timeshift_rel-{delay}.json",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.abstract_timeshift_rel_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_abstract_timeshift_rel_manifest"])};t.hls_ts_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_ts_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_ts_manifest_query)({params:e,config:r}),options:n});t.hls_ts_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/index.ts.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_ts_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_ts_manifest"])};t.hls_single_playlist_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_single_playlist_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_single_playlist_manifest_query)({params:e,config:r}),options:n});t.hls_single_playlist_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/video.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_single_playlist_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_single_playlist_manifest"])};t.hls_ts_rewind_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_ts_rewind_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_ts_rewind_manifest_query)({params:e,config:r}),options:n});t.hls_ts_rewind_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/rewind-{ago}.ts.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_ts_rewind_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_ts_rewind_manifest"])};t.hls_ts_dvr_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_ts_dvr_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_ts_dvr_manifest_query)({params:e,config:r}),options:n});t.hls_ts_dvr_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/archive-{from}-{duration}.ts.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_ts_dvr_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_ts_dvr_manifest"])};t.hls_ts_timeshift_abs_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_ts_timeshift_abs_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_ts_timeshift_abs_manifest_query)({params:e,config:r}),options:n});t.hls_ts_timeshift_abs_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/timeshift_abs-{from}.ts.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_ts_timeshift_abs_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_ts_timeshift_abs_manifest"])};t.hls_ts_timeshift_rel_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_ts_timeshift_rel_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_ts_timeshift_rel_manifest_query)({params:e,config:r}),options:n});t.hls_ts_timeshift_rel_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/timeshift_rel-{delay}.ts.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_ts_timeshift_rel_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_ts_timeshift_rel_manifest"])};t.hls_live_track_mono_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_live_track_mono_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_live_track_mono_manifest_query)({params:e,config:r}),options:n});t.hls_live_track_mono_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/tracks-{tracks}/mono.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_live_track_mono_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_live_track_mono_manifest"])};t.hls_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_manifest_query)({params:e,config:r}),options:n});t.hls_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/index.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_manifest"])};t.hls_rewind_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_rewind_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_rewind_manifest_query)({params:e,config:r}),options:n});t.hls_rewind_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/rewind-{ago}.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_rewind_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_rewind_manifest"])};t.hls_dvr_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_dvr_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_dvr_manifest_query)({params:e,config:r}),options:n});t.hls_dvr_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/archive-{from}-{duration}.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_dvr_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_dvr_manifest"])};t.hls_timeshift_abs_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_timeshift_abs_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_timeshift_abs_manifest_query)({params:e,config:r}),options:n});t.hls_timeshift_abs_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/timeshift_abs-{from}.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_timeshift_abs_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_timeshift_abs_manifest"])};t.hls_timeshift_rel_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_timeshift_rel_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_timeshift_rel_manifest_query)({params:e,config:r}),options:n});t.hls_timeshift_rel_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/timeshift_rel-{delay}.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_timeshift_rel_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_timeshift_rel_manifest"])};t.hls_fmp4_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_fmp4_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_fmp4_manifest_query)({params:e,config:r}),options:n});t.hls_fmp4_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/index.fmp4.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_fmp4_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_fmp4_manifest"])};t.hls_fmp4_rewind_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_fmp4_rewind_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_fmp4_rewind_manifest_query)({params:e,config:r}),options:n});t.hls_fmp4_rewind_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/rewind-{ago}.fmp4.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_fmp4_rewind_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_fmp4_rewind_manifest"])};t.hls_fmp4_dvr_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_fmp4_dvr_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_fmp4_dvr_manifest_query)({params:e,config:r}),options:n});t.hls_fmp4_dvr_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/archive-{from}-{duration}.fmp4.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_fmp4_dvr_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_fmp4_dvr_manifest"])};t.hls_fmp4_timeshift_abs_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_fmp4_timeshift_abs_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_fmp4_timeshift_abs_manifest_query)({params:e,config:r}),options:n});t.hls_fmp4_timeshift_abs_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/timeshift_abs-{from}.fmp4.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_fmp4_timeshift_abs_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_fmp4_timeshift_abs_manifest"])};t.hls_fmp4_timeshift_rel_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_fmp4_timeshift_rel_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_fmp4_timeshift_rel_manifest_query)({params:e,config:r}),options:n});t.hls_fmp4_timeshift_rel_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/timeshift_rel-{delay}.fmp4.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_fmp4_timeshift_rel_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_fmp4_timeshift_rel_manifest"])};t.llhls_live_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_llhls_live_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.llhls_live_manifest_query)({params:e,config:r}),options:n});t.llhls_live_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/index.ll.m3u8",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.llhls_live_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_llhls_live_manifest"])};t.hls_thumbnail_get=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_hls_thumbnail_get",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.hls_thumbnail_get_query)({params:e,config:r}),options:n});t.hls_thumbnail_get_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/images-{dimensions}/seg-{from}-{offset}.hls.jpg",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.hls_thumbnail_get_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_hls_thumbnail_get"])};t.dash_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_dash_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.dash_manifest_query)({params:e,config:r}),options:n});t.dash_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/Manifest.mpd",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.dash_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_dash_manifest"])};t.dash_rewind_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_dash_rewind_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.dash_rewind_manifest_query)({params:e,config:r}),options:n});t.dash_rewind_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/rewind-{ago}.mpd",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.dash_rewind_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_dash_rewind_manifest"])};t.dash_dvr_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_dash_dvr_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.dash_dvr_manifest_query)({params:e,config:r}),options:n});t.dash_dvr_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/archive-{from}-{duration}.mpd",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.dash_dvr_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_dash_dvr_manifest"])};t.dash_timeshift_abs_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_dash_timeshift_abs_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.dash_timeshift_abs_manifest_query)({params:e,config:r}),options:n});t.dash_timeshift_abs_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/timeshift_abs-{from}.mpd",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.dash_timeshift_abs_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_dash_timeshift_abs_manifest"])};t.dash_thumbnail_get=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_dash_thumbnail_get",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.dash_thumbnail_get_query)({params:e,config:r}),options:n});t.dash_thumbnail_get_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/images-{dimensions}/dvr-{from}-{offset}.m4v.jpg",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.dash_thumbnail_get_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_dash_thumbnail_get"])};t.webrtc_publish=({options:e,isAsync:n,mutationFn:a,showSuccessMessage:c=!0,showErrorMessage:l=!0}={})=>{const{t:f}=(0,u.useTranslation)(),d=(0,o.useMutationApi)(({params:e,body:n,config:r})=>{const{pathWithParams:o,queryParams:u}=(0,s.getPathWithParams)({path:"/{name}/whip",queryAndPathParams:e,encodeParams:(null==r?void 0:r.encodeParams)||!1});return a&&(0,i.isFunction)(a)?a({params:e,body:n,config:r}):t.axiosInstance.post(o,n,Object.assign({params:u},r))},()=>c&&f("webrtc_publish.successPostAlert"),(0,i.isObject)(e)?e:{},l);return n?e=>{var{params:t,body:n,config:i}=e,o=r(e,["params","body","config"]);return d.mutateAsync(Object.assign({params:t,body:n,config:i},o))}:e=>{var{params:t,body:n,config:i}=e,o=r(e,["params","body","config"]);return d.mutate(Object.assign({params:t,body:n,config:i},o))}};t.webrtc_play=({options:e,isAsync:n,mutationFn:a,showSuccessMessage:c=!0,showErrorMessage:l=!0}={})=>{const{t:f}=(0,u.useTranslation)(),d=(0,o.useMutationApi)(({params:e,body:n,config:r})=>{const{pathWithParams:o,queryParams:u}=(0,s.getPathWithParams)({path:"/{name}/whep",queryAndPathParams:e,encodeParams:(null==r?void 0:r.encodeParams)||!1});return a&&(0,i.isFunction)(a)?a({params:e,body:n,config:r}):t.axiosInstance.post(o,n,Object.assign({params:u},r))},()=>c&&f("webrtc_play.successPostAlert"),(0,i.isObject)(e)?e:{},l);return n?e=>{var{params:t,body:n,config:i}=e,o=r(e,["params","body","config"]);return d.mutateAsync(Object.assign({params:t,body:n,config:i},o))}:e=>{var{params:t,body:n,config:i}=e,o=r(e,["params","body","config"]);return d.mutate(Object.assign({params:t,body:n,config:i},o))}};t.http_mpegts_live_play=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_http_mpegts_live_play",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.http_mpegts_live_play_query)({params:e,config:r}),options:n});t.http_mpegts_live_play_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/mpegts",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.http_mpegts_live_play_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_http_mpegts_live_play"])};t.http_mpegts_live_publish=({options:e,isAsync:n,mutationFn:a,showSuccessMessage:c=!0,showErrorMessage:l=!0}={})=>{const{t:f}=(0,u.useTranslation)(),d=(0,o.useMutationApi)(({params:e,body:n,config:r})=>{const{pathWithParams:o,queryParams:u}=(0,s.getPathWithParams)({path:"/{name}/mpegts",queryAndPathParams:e,encodeParams:(null==r?void 0:r.encodeParams)||!1});return a&&(0,i.isFunction)(a)?a({params:e,body:n,config:r}):t.axiosInstance.post(o,n,Object.assign({params:u},r))},()=>c&&f("http_mpegts_live_publish.successPostAlert"),(0,i.isObject)(e)?e:{},l);return n?e=>{var{params:t,body:n,config:i}=e,o=r(e,["params","body","config"]);return d.mutateAsync(Object.assign({params:t,body:n,config:i},o))}:e=>{var{params:t,body:n,config:i}=e,o=r(e,["params","body","config"]);return d.mutate(Object.assign({params:t,body:n,config:i},o))}};t.http_mpegts_timeshift_abs=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_http_mpegts_timeshift_abs",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.http_mpegts_timeshift_abs_query)({params:e,config:r}),options:n});t.http_mpegts_timeshift_abs_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/timeshift_abs-{from}.ts",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.http_mpegts_timeshift_abs_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_http_mpegts_timeshift_abs"])};t.http_mpegts_timeshift_rel=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_http_mpegts_timeshift_rel",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.http_mpegts_timeshift_rel_query)({params:e,config:r}),options:n});t.http_mpegts_timeshift_rel_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/timeshift_rel-{delay}.ts",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.http_mpegts_timeshift_rel_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_http_mpegts_timeshift_rel"])};t.shoutcast_live=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_shoutcast_live",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.shoutcast_live_query)({params:e,config:r}),options:n});t.shoutcast_live_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/shoutcast",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.shoutcast_live_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_shoutcast_live"])};t.mss_live_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_mss_live_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.mss_live_manifest_query)({params:e,config:r}),options:n});t.mss_live_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}.isml/manifest",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.mss_live_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_mss_live_manifest"])};t.mss_dvr_manifest=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_mss_dvr_manifest",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.mss_dvr_manifest_query)({params:e,config:r}),options:n});t.mss_dvr_manifest_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}(archive={from}-{duration}).isml/manifest",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.mss_dvr_manifest_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_mss_dvr_manifest"])};t.mp4_export=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_mp4_export",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.mp4_export_query)({params:e,config:r}),options:n});t.mp4_export_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/archive-{from}-{duration}.mp4",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.mp4_export_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_mp4_export"])};t.ts_export=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_ts_export",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.ts_export_query)({params:e,config:r}),options:n});t.ts_export_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/archive-{from}-{duration}.ts",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.ts_export_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_ts_export"])};t.mp4_save=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_mp4_save",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.mp4_save_query)({params:e,config:r}),options:n});t.mp4_save_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/save-mp4-{from}-{duration}.mp4",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.mp4_save_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_mp4_save"])};t.jpeg_preview=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_jpeg_preview",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.jpeg_preview_query)({params:e,config:r}),options:n});t.jpeg_preview_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/preview.jpg",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.jpeg_preview_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_jpeg_preview"])};t.jpeg_preview_dvr=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_jpeg_preview_dvr",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.jpeg_preview_dvr_query)({params:e,config:r}),options:n});t.jpeg_preview_dvr_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/{from}.jpg",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.jpeg_preview_dvr_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_jpeg_preview_dvr"])};t.jpeg_preview_ondemand=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_jpeg_preview_ondemand",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.jpeg_preview_ondemand_query)({params:e,config:r}),options:n});t.jpeg_preview_ondemand_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/{from}-preview.jpg",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.jpeg_preview_ondemand_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_jpeg_preview_ondemand"])};t.jpeg_snapshot=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_jpeg_snapshot",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.jpeg_snapshot_query)({params:e,config:r}),options:n});t.jpeg_snapshot_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/snapshot-{pts}-{size}.jpg",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.jpeg_snapshot_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_jpeg_snapshot"])};t.mp4_preview=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_mp4_preview",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.mp4_preview_query)({params:e,config:r}),options:n});t.mp4_preview_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/preview.mp4",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.mp4_preview_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_mp4_preview"])};t.mp4_dvr=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_mp4_dvr",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.mp4_dvr_query)({params:e,config:r}),options:n});t.mp4_dvr_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/{from}-preview.mp4",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.mp4_dvr_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_mp4_dvr"])};t.mp4_vod=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_mp4_vod",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.mp4_vod_query)({params:e,config:r}),options:n});t.mp4_vod_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/preview-{from}.mp4",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.mp4_vod_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_mp4_vod"])};t.media_logo=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_media_logo",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.media_logo_query)({params:e,config:r}),options:n});t.media_logo_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/logo",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.media_logo_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_media_logo"])};t.embed_html=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_embed_html",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.embed_html_query)({params:e,config:r}),options:n});t.embed_html_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/embed.html",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.embed_html_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_embed_html"])};t.recording_status=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_recording_status",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.recording_status_query)({params:e,config:r}),options:n});t.recording_status_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/recording_status.json",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.recording_status_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_recording_status"])};t.ranges_list=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_ranges_list",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.ranges_list_query)({params:e,config:r}),options:n});t.ranges_list_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/ranges.json",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.ranges_list_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_ranges_list"])};t.media_info=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_media_info",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.media_info_query)({params:e,config:r}),options:n});t.media_info_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/media_info.json",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.media_info_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_media_info"])};t.public_stream_get=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_public_stream_get",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.public_stream_get_query)({params:e,config:r}),options:n});t.public_stream_get_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/{name}/info.json",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.public_stream_get_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_public_stream_get"])};t.session_save=({options:e,isAsync:n,mutationFn:a,showSuccessMessage:c=!0,showErrorMessage:l=!0}={})=>{const{t:f}=(0,u.useTranslation)(),d=(0,o.useMutationApi)(({params:e,body:n,config:r})=>{const{pathWithParams:o,queryParams:u}=(0,s.getPathWithParams)({path:"/{name}/sessions/{id}",queryAndPathParams:e,encodeParams:(null==r?void 0:r.encodeParams)||!1});return a&&(0,i.isFunction)(a)?a({params:e,body:n,config:r}):t.axiosInstance.put(o,n,Object.assign({params:u},r))},()=>c&&f("session_save.successPutAlert"),(0,i.isObject)(e)?e:{},l);return n?e=>{var{params:t,body:n,config:i}=e,o=r(e,["params","body","config"]);return d.mutateAsync(Object.assign({params:t,body:n,config:i},o))}:e=>{var{params:t,body:n,config:i}=e,o=r(e,["params","body","config"]);return d.mutate(Object.assign({params:t,body:n,config:i},o))}};t.request_tracks=({options:e,isAsync:n,mutationFn:a,showSuccessMessage:c=!0,showErrorMessage:l=!0}={})=>{const{t:f}=(0,u.useTranslation)(),d=(0,o.useMutationApi)(({params:e,body:n,config:r})=>{const{pathWithParams:o,queryParams:u}=(0,s.getPathWithParams)({path:"/{name}/sessions/{id}/request_tracks",queryAndPathParams:e,encodeParams:(null==r?void 0:r.encodeParams)||!1});return a&&(0,i.isFunction)(a)?a({params:e,body:n,config:r}):t.axiosInstance.put(o,n,Object.assign({params:u},r))},()=>c&&f("request_tracks.successPutAlert"),(0,i.isObject)(e)?e:{},l);return n?e=>{var{params:t,body:n,config:i}=e,o=r(e,["params","body","config"]);return d.mutateAsync(Object.assign({params:t,body:n,config:i},o))}:e=>{var{params:t,body:n,config:i}=e,o=r(e,["params","body","config"]);return d.mutate(Object.assign({params:t,body:n,config:i},o))}};t.playlist_get=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_playlist_get",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.playlist_get_query)({params:e,config:r}),options:n});t.playlist_get_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/tv/playlists/{name}",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.playlist_get_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_playlist_get"])};t.streams_list=({params:e,options:n,config:r,queryFn:a}={})=>(0,o.useApi)({queryKey:["streaming_streams_list",e],queryFn:()=>a&&(0,i.isFunction)(a)?a():(0,t.streams_list_query)({params:e,config:r}),options:n});t.streams_list_query=({params:e,config:n}={})=>{const{pathWithParams:r,queryParams:i}=(0,s.getPathWithParams)({path:"/-/streams",queryAndPathParams:e,encodeParams:(null==n?void 0:n.encodeParams)||!1});return t.axiosInstance.get(r,Object.assign({params:i},n))};t.streams_list_refetch=()=>{const e=(0,c.useQueryClient)();return()=>e.refetchQueries(["streaming_streams_list"])}},function(e,t,n){"use strict";var r=n(77);function i(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=i.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(i,a),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=function(e,t,n,a,s,u){var c=Object.create(o);return r.toFlatObject(e,c,(function(e){return e!==Error.prototype})),i.call(c,e.message,t,n,a,s),c.name=e.name,u&&Object.assign(c,u),c},e.exports=i},function(e,t,n){"use strict";var r=n(51),i=n(3),o=n(150),a=n(60),s=Object(i.a)((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(n){return e(n)(t(n))}:Object(o.a)((function(e,n){return Object(r.a)(e,Object(a.a)(n,t))}),[],e)}));t.a=s},function(e,t,n){"use strict";var r=n(127),i=n(5),o=n(56),a=Object(i.a)(Object(r.a)("tail",Object(o.a)(1,1/0)));t.a=a},function(e,t,n){"use strict";var r=n(5),i=n(107),o=Object(r.a)((function(e){return Object(i.a)(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));t.a=o},function(e,t,n){"use strict";var r=n(126),i=n(3),o=n(18),a=n(198),s=n(118),u=n(15),c=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=u.a.init,e.prototype["@@transducer/result"]=u.a.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function l(e){return function(t){return new c(e,t)}}var f=n(52),d=Object(i.a)(Object(o.a)(["fantasy-land/filter","filter"],l,(function(e,t){return Object(s.a)(t)?Object(r.a)((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},Object(f.a)(t)):Object(a.a)(e,t)})));t.a=d},function(e,t,n){"use strict";function r(e){return null!=e&&"function"==typeof e["@@transducer/step"]}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0,r=t.length,i=[];n<r;)e(t[n])&&(i[i.length]=t[n]),n+=1;return i}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(283),i=n(151);function o(e,t,n){if(n||(n=new a),u=typeof(s=e),null==s||"object"!=u&&"function"!=u)return e;var s,u,c=function(r){var i=n.get(e);if(i)return i;for(var a in n.set(e,r),e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=t?o(e[a],!0,n):e[a]);return r};switch(Object(i.a)(e)){case"Object":return c(Object.create(Object.getPrototypeOf(e)));case"Array":return c([]);case"Date":return new Date(e.valueOf());case"RegExp":return Object(r.a)(e);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var a=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){const n=this.hash(e);let r=this.map[n];r||(this.map[n]=r=[]),r.push([e,t]),this.length+=1},e.prototype.hash=function(e){let t=[];for(var n in e)t.push(Object.prototype.toString.call(e[n]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(const t in this.map){const n=this.map[t];for(let t=0;t<n.length;t+=1){const r=n[t];if(r[0]===e)return r[1]}}return}const t=this.hash(e),n=this.map[t];if(n)for(let t=0;t<n.length;t+=1){const r=n[t];if(r[0]===e)return r[1]}},e}()},function(e,t,n){"use strict";var r=n(9);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";var r=n(64),i=n(120),o=n(30),a=function(e){return function(t,n,a){var s=r(t),u=o(s);if(0===u)return!e&&-1;var c,l=i(a,u);if(e&&n!=n){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){"use strict";var r=n(9),i=n(24),o=/#|\.prototype\./,a=function(e,t){var n=u[s(e)];return n===l||n!==c&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},function(e,t,n){"use strict";var r=n(541);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},function(e,t,n){"use strict";var r=n(9),i=n(17),o=n(130),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){"use strict";var r=n(46),i=n(101),o=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw new o("Wrong length or index");return n}},function(e,t,n){"use strict";var r=n(13),i=n(184),o=n(24),a=n(203),s=n(229),u=n(17),c=n(390),l=n(311),f=n(28),d=n(130),h=i&&i.prototype,p=u("species"),g=!1,m=o(r.PromiseRejectionEvent),v=a("Promise",(function(){var e=s(i),t=e!==String(i);if(!t&&66===d)return!0;if(f&&(!h.catch||!h.finally))return!0;if(!d||d<51||!/native code/.test(e)){var n=new i((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[p]=r,!(g=n.then((function(){}))instanceof r))return!0}return!t&&(c||l)&&!m}));e.exports={CONSTRUCTOR:v,REJECTION_EVENT:m,SUBCLASSING:g}},function(e,t,n){"use strict";var r=n(12),i=n(26),o=n(82),a=n(316),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||i(e,"flags")||!o(s,e)?t:r(a,e)}},function(e,t,n){"use strict";var r=n(232),i=n(76);e.exports=r(i.proto,"size","get")||function(e){return e.size}},function(e,t,n){"use strict";var r=n(12),i=n(11),o=n(24),a=n(81),s=n(319),u=TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var c=r(n,e,t);return null!==c&&i(c),c}if("RegExp"===a(e))return r(s,e,t);throw new u("RegExp#exec called on incompatible receiver")}},function(e,t,n){"use strict";var r=n(46),i=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw new i("The argument can't be less than 0");return t}},function(e,t,n){"use strict";var r=n(27),i=n(181),o=r.aTypedArrayConstructor,a=r.getTypedArrayConstructor;e.exports=function(e){return o(i(e,a(e)))}},function(e,t,n){"use strict";var r,i,o=n(13),a=n(226),s=n(24),u=n(58),c=n(67),l=n(36),f=n(17),d=n(28),h=f("asyncIterator"),p=o.AsyncIterator,g=a.AsyncIteratorPrototype;if(g)r=g;else if(s(p))r=p.prototype;else if(a.USE_FUNCTION_CONSTRUCTOR||o.USE_FUNCTION_CONSTRUCTOR)try{i=c(c(c(Function("return async function*(){}()")()))),c(i)===Object.prototype&&(r=i)}catch(e){}r?d&&(r=u(r)):r={},s(r[h])||l(r,h,(function(){return this})),e.exports=r},function(e,t,n){"use strict";var r=n(12),i=n(21),o=n(57);e.exports=function(e,t,n,a){try{var s=o(e,"return");if(s)return i("Promise").resolve(r(s,e)).then((function(){t(n)}),(function(e){a(e)}))}catch(e){return a(e)}t(n)}},function(e,t,n){"use strict";var r=n(6),i=WeakSet.prototype;e.exports={WeakSet:WeakSet,add:r(i.add),has:r(i.has),remove:r(i.delete)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return u}));var r=n(0),i=n.n(r);function o(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var a=i.a.createContext(o()),s=function(){return i.a.useContext(a)},u=function(e){var t=e.children,n=i.a.useMemo((function(){return o()}),[]);return i.a.createElement(a.Provider,{value:n},"function"==typeof t?t(n):t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(272),i=n(195);function o(){if(0===arguments.length)throw new Error("compose requires at least one argument");return r.a.apply(this,Object(i.a)(arguments))}},function(e,t,n){"use strict";var r=n(146),i=n(268),o=Object(r.a)(i.a);t.a=o},function(e,t){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(null,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(1094).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},function(e,t,n){"use strict";(function(e,r){n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var i=n(528);function o(){return!Object(i.a)()&&"[object process]"===Object.prototype.toString.call(void 0!==e?e:0)}function a(e,t){return e.require(t)}}).call(this,n(259),n(504)(e))},,,function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t,n){"use strict";var r=n(12),i=n(20),o=n(138),a=n(57),s=n(345),u=n(17),c=TypeError,l=u("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,u=a(e,l);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!i(n)||o(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},function(e,t,n){"use strict";var r=n(28),i=n(13),o=n(289),a=e.exports=i["__core-js_shared__"]||o("__core-js_shared__",{});(a.versions||(a.versions=[])).push({version:"3.37.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(e,t,n){"use strict";var r=n(13),i=n(20),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){"use strict";var r=n(6),i=n(9),o=n(24),a=n(26),s=n(16),u=n(175).CONFIGURABLE,c=n(229),l=n(35),f=l.enforce,d=l.get,h=String,p=Object.defineProperty,g=r("".slice),m=r("".replace),v=r([].join),y=s&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),_=e.exports=function(e,t,n){"Symbol("===g(h(t),0,7)&&(t="["+m(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=f(e);return a(r,"source")||(r.source=v(b,"string"==typeof t?t:"")),e};Function.prototype.toString=_((function(){return o(this)&&d(this).source||c(this)}),"toString")},function(e,t,n){"use strict";var r=n(6),i=n(24),o=n(226),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},function(e,t,n){"use strict";var r=n(139),i=n(155),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var r=n(6),i=n(22);e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},function(e,t,n){"use strict";var r=n(154),i=TypeError;e.exports=function(e,t){if(!delete e[t])throw new i("Cannot delete property "+r(t)+" of "+r(e))}},function(e,t,n){"use strict";var r=n(39),i=n(137),o=n(29),a=n(30),s=function(e){var t=1===e;return function(n,s,u){for(var c,l=o(n),f=i(l),d=a(f),h=r(s,u);d-- >0;)if(h(c=f[d],d,l))switch(e){case 0:return c;case 1:return d}return t?-1:void 0}};e.exports={findLast:s(0),findLastIndex:s(1)}},function(e,t,n){"use strict";var r=n(17)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!i)return!1}catch(e){return!1}var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(64),i=n(55),o=n(179),a=n(35),s=n(42).f,u=n(302),c=n(75),l=n(28),f=n(16),d=a.set,h=a.getterFor("Array Iterator");e.exports=u(Array,"Array",(function(e,t){d(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,c(void 0,!0);switch(e.kind){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)}),"values");var p=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!l&&f&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(e){}},function(e,t,n){"use strict";var r=n(22),i=n(29),o=n(137),a=n(30),s=TypeError,u="Reduce of empty array with no initial value",c=function(e){return function(t,n,c,l){var f=i(t),d=o(f),h=a(f);if(r(n),0===h&&c<2)throw new s(u);var p=e?h-1:0,g=e?-1:1;if(c<2)for(;;){if(p in d){l=d[p],p+=g;break}if(p+=g,e?p<0:h<=p)throw new s(u)}for(;e?p>=0:h>p;p+=g)p in d&&(l=n(l,d[p],p,f));return l}};e.exports={left:c(!1),right:c(!0)}},function(e,t,n){"use strict";var r=n(13),i=n(6),o=n(16),a=n(306),s=n(175),u=n(66),c=n(47),l=n(115),f=n(9),d=n(89),h=n(46),p=n(101),g=n(206),m=n(307),v=n(309),y=n(67),b=n(112),_=n(300),w=n(103),E=n(158),S=n(176),x=n(91),k=n(35),T=s.PROPER,O=s.CONFIGURABLE,R=k.getterFor("ArrayBuffer"),P=k.getterFor("DataView"),A=k.set,C=r.ArrayBuffer,L=C,D=L&&L.prototype,I=r.DataView,j=I&&I.prototype,M=Object.prototype,N=r.Array,F=r.RangeError,U=i(_),B=i([].reverse),q=v.pack,$=v.unpack,V=function(e){return[255&e]},z=function(e){return[255&e,e>>8&255]},W=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},G=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},H=function(e){return q(m(e),23,4)},K=function(e){return q(e,52,8)},Y=function(e,t,n){c(e.prototype,t,{configurable:!0,get:function(){return n(this)[t]}})},Q=function(e,t,n,r){var i=P(e),o=g(n),a=!!r;if(o+t>i.byteLength)throw new F("Wrong index");var s=i.bytes,u=o+i.byteOffset,c=w(s,u,u+t);return a?c:B(c)},X=function(e,t,n,r,i,o){var a=P(e),s=g(n),u=r(+i),c=!!o;if(s+t>a.byteLength)throw new F("Wrong index");for(var l=a.bytes,f=s+a.byteOffset,d=0;d<t;d++)l[f+d]=u[c?d:t-d-1]};if(a){var J=T&&"ArrayBuffer"!==C.name;f((function(){C(1)}))&&f((function(){new C(-1)}))&&!f((function(){return new C,new C(1.5),new C(NaN),1!==C.length||J&&!O}))?J&&O&&u(C,"name","ArrayBuffer"):((L=function(e){return d(this,D),E(new C(g(e)),this,L)}).prototype=D,D.constructor=L,S(L,C)),b&&y(j)!==M&&b(j,M);var Z=new I(new L(2)),ee=i(j.setInt8);Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),!Z.getInt8(0)&&Z.getInt8(1)||l(j,{setInt8:function(e,t){ee(this,e,t<<24>>24)},setUint8:function(e,t){ee(this,e,t<<24>>24)}},{unsafe:!0})}else D=(L=function(e){d(this,D);var t=g(e);A(this,{type:"ArrayBuffer",bytes:U(N(t),0),byteLength:t}),o||(this.byteLength=t,this.detached=!1)}).prototype,j=(I=function(e,t,n){d(this,j),d(e,D);var r=R(e),i=r.byteLength,a=h(t);if(a<0||a>i)throw new F("Wrong offset");if(a+(n=void 0===n?i-a:p(n))>i)throw new F("Wrong length");A(this,{type:"DataView",buffer:e,byteLength:n,byteOffset:a,bytes:r.bytes}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=a)}).prototype,o&&(Y(L,"byteLength",R),Y(I,"buffer",P),Y(I,"byteLength",P),Y(I,"byteOffset",P)),l(j,{getInt8:function(e){return Q(this,1,e)[0]<<24>>24},getUint8:function(e){return Q(this,1,e)[0]},getInt16:function(e){var t=Q(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Q(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return G(Q(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return G(Q(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return $(Q(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return $(Q(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){X(this,1,e,V,t)},setUint8:function(e,t){X(this,1,e,V,t)},setInt16:function(e,t){X(this,2,e,z,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){X(this,2,e,z,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){X(this,4,e,W,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){X(this,4,e,W,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){X(this,4,e,H,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){X(this,8,e,K,t,arguments.length>2&&arguments[2])}});x(L,"ArrayBuffer"),x(I,"DataView"),e.exports={ArrayBuffer:L,DataView:I}},function(e,t,n){"use strict";var r=n(122),i=n(154),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a constructor")}},function(e,t,n){"use strict";var r=n(6),i=n(101),o=n(23),a=n(241),s=n(43),u=r(a),c=r("".slice),l=Math.ceil,f=function(e){return function(t,n,r){var a,f,d=o(s(t)),h=i(n),p=d.length,g=void 0===r?" ":o(r);return h<=p||""===g?d:((f=u(g,l((a=h-p)/g.length))).length>a&&(f=c(f,0,a)),e?d+f:f+d)}};e.exports={start:f(!1),end:f(!0)}},function(e,t,n){"use strict";var r=n(46),i=n(23),o=n(43),a=RangeError;e.exports=function(e){var t=i(o(this)),n="",s=r(e);if(s<0||s===1/0)throw new a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(n+=t);return n}},function(e,t,n){"use strict";var r=n(2),i=n(13),o=n(6),a=n(203),s=n(36),u=n(163),c=n(54),l=n(89),f=n(24),d=n(65),h=n(20),p=n(9),g=n(235),m=n(91),v=n(158);e.exports=function(e,t,n){var y=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),_=y?"set":"add",w=i[e],E=w&&w.prototype,S=w,x={},k=function(e){var t=o(E[e]);s(E,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(b&&!h(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return b&&!h(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(b&&!h(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!f(w)||!(b||E.forEach&&!p((function(){(new w).entries().next()})))))S=n.getConstructor(t,e,y,_),u.enable();else if(a(e,!0)){var T=new S,O=T[_](b?{}:-0,1)!==T,R=p((function(){T.has(1)})),P=g((function(e){new w(e)})),A=!b&&p((function(){for(var e=new w,t=5;t--;)e[_](t,t);return!e.has(-0)}));P||((S=t((function(e,t){l(e,E);var n=v(new w,e,S);return d(t)||c(t,n[_],{that:n,AS_ENTRIES:y}),n}))).prototype=E,E.constructor=S),(R||A)&&(k("delete"),k("has"),y&&k("get")),(A||O)&&k(_),b&&E.clear&&delete E.clear}return x[e]=S,r({global:!0,constructor:!0,forced:S!==w},x),m(S,e),b||n.setStrong(S,e,y),S}},function(e,t,n){"use strict";var r=Math.expm1,i=Math.exp;e.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!==r(-2e-17)?function(e){var t=+e;return 0===t?t:t>-1e-6&&t<1e-6?t+t*t/2:i(t)-1}:r},function(e,t,n){"use strict";var r=n(6);e.exports=r(1..valueOf)},function(e,t,n){"use strict";var r=n(28),i=n(13),o=n(9),a=n(305);e.exports=r||!o((function(){if(!(a&&a<535)){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete i[e]}}))},function(e,t,n){"use strict";var r,i,o,a,s=n(13),u=n(88),c=n(39),l=n(24),f=n(26),d=n(9),h=n(351),p=n(103),g=n(227),m=n(108),v=n(406),y=n(142),b=s.setImmediate,_=s.clearImmediate,w=s.process,E=s.Dispatch,S=s.Function,x=s.MessageChannel,k=s.String,T=0,O={};d((function(){r=s.location}));var R=function(e){if(f(O,e)){var t=O[e];delete O[e],t()}},P=function(e){return function(){R(e)}},A=function(e){R(e.data)},C=function(e){s.postMessage(k(e),r.protocol+"//"+r.host)};b&&_||(b=function(e){m(arguments.length,1);var t=l(e)?e:S(e),n=p(arguments,1);return O[++T]=function(){u(t,void 0,n)},i(T),T},_=function(e){delete O[e]},y?i=function(e){w.nextTick(P(e))}:E&&E.now?i=function(e){E.now(P(e))}:x&&!v?(a=(o=new x).port2,o.port1.onmessage=A,i=c(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!d(C)?(i=C,s.addEventListener("message",A,!1)):i="onreadystatechange"in g("script")?function(e){h.appendChild(g("script")).onreadystatechange=function(){h.removeChild(this),R(e)}}:function(e){setTimeout(P(e),0)}),e.exports={set:b,clear:_}},function(e,t,n){"use strict";var r=n(184),i=n(235),o=n(207).CONSTRUCTOR;e.exports=o||!i((function(e){r.all(e).then(void 0,(function(){}))}))},function(e,t,n){"use strict";var r=n(20),i=n(81),o=n(17)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"===i(e))}},function(e,t,n){"use strict";var r=n(9),i=n(13).RegExp,o=r((function(){var e=i("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=o||r((function(){return!i("a","y").sticky})),s=o||r((function(){var e=i("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},function(e,t,n){"use strict";n(318);var r=n(12),i=n(36),o=n(319),a=n(9),s=n(17),u=n(66),c=s("species"),l=RegExp.prototype;e.exports=function(e,t,n,f){var d=s(e),h=!a((function(){var t={};return t[d]=function(){return 7},7!==""[e](t)})),p=h&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!h||!p||n){var g=/./[d],m=t(d,""[e],(function(e,t,n,i,a){var s=t.exec;return s===o||s===l.exec?h&&!a?{done:!0,value:r(g,t,n,i)}:{done:!0,value:r(e,n,t,i)}:{done:!1}}));i(String.prototype,e,m[0]),i(l,d,m[1])}f&&u(l[d],"sham",!0)}},function(e,t,n){"use strict";var r=n(185).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){"use strict";var r=n(225),i=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw new i("Can't convert number to bigint");return BigInt(t)}},function(e,t,n){"use strict";var r=n(12),i=n(11),o=n(58),a=n(57),s=n(115),u=n(35),c=n(21),l=n(213),f=n(75),d=c("Promise"),h=u.set,p=u.getterFor("AsyncFromSyncIterator"),g=function(e,t,n){var r=e.done;d.resolve(e.value).then((function(e){t(f(e,r))}),n)},m=function(e){e.type="AsyncFromSyncIterator",h(this,e)};m.prototype=s(o(l),{next:function(){var e=p(this);return new d((function(t,n){var o=i(r(e.next,e.iterator));g(o,t,n)}))},return:function(){var e=p(this).iterator;return new d((function(t,n){var o=a(e,"return");if(void 0===o)return t(f(void 0,!0));var s=i(r(o,e));g(s,t,n)}))}}),e.exports=m},function(e,t,n){"use strict";var r=RangeError;e.exports=function(e){if(e==e)return e;throw new r("NaN is not allowed")}},function(e,t,n){"use strict";var r=n(39),i=n(11),o=n(29),a=n(54);e.exports=function(e,t,n){return function(s){var u=o(s),c=arguments.length,l=c>1?arguments[1]:void 0,f=void 0!==l,d=f?r(l,c>2?arguments[2]:void 0):void 0,h=new e,p=0;return a(u,(function(e){var r=f?d(e,p++):e;n?t(h,i(r)[0],r[1]):t(h,r)})),h}}},function(e,t,n){"use strict";var r=n(11);e.exports=function(e,t,n){return function(){for(var i=new e,o=arguments.length,a=0;a<o;a++){var s=arguments[a];n?t(i,r(s)[0],s[1]):t(i,s)}return i}}},function(e,t,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=r+"+/",o=r+"-_",a=function(e){for(var t={},n=0;n<64;n++)t[e.charAt(n)]=n;return t};e.exports={i2c:i,c2i:a(i),i2cUrl:o,c2iUrl:a(o)}},function(e,t,n){"use strict";var r=n(9),i=n(17),o=n(16),a=n(28),s=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),n.delete("a",2),n.delete("b",void 0),a&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(a||!o)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,f=-1;function d(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&h())}function h(){if(!l){var e=s(d);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f<t;)u&&u[f].run();f=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||l||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){e.exports=n(1032)},function(e,t,n){"use strict";var r=n(192);function i(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(77).inherits(i,r,{__CANCEL__:!0}),e.exports=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(86),i=n(25),o=n(274),a=n(10),s=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}Object(r.a)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r=new o.a({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(r),r},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},n.clear=function(){var e=this;i.a.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},n.getAll=function(){return this.mutations},n.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((function(t){return Object(a.j)(e,t)}))},n.findAll=function(e){return this.mutations.filter((function(t){return Object(a.j)(e,t)}))},n.notify=function(e){var t=this;i.a.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return i.a.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(a.l)}))}),Promise.resolve())}))},t}(n(96).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(86),i=n(10),o=n(25),a=n(169),s=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.queries=[],r.result=[],r.observers=[],r.observersMap={},n&&r.setQueries(n),r}Object(r.a)(t,e);var n=t.prototype;return n.onSubscribe=function(){var e=this;1===this.listeners.length&&this.observers.forEach((function(t){t.subscribe((function(n){e.onUpdate(t,n)}))}))},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.destroy=function(){this.listeners=[],this.observers.forEach((function(e){e.destroy()}))},n.setQueries=function(e,t){this.queries=e,this.updateObservers(t)},n.getCurrentResult=function(){return this.result},n.getOptimisticResult=function(e){return this.findMatchingObservers(e).map((function(e){return e.observer.getOptimisticResult(e.defaultedQueryOptions)}))},n.findMatchingObservers=function(e){var t=this,n=this.observers,r=e.map((function(e){return t.client.defaultQueryObserverOptions(e)})),i=r.flatMap((function(e){var t=n.find((function(t){return t.options.queryHash===e.queryHash}));return null!=t?[{defaultedQueryOptions:e,observer:t}]:[]})),o=i.map((function(e){return e.defaultedQueryOptions.queryHash})),a=r.filter((function(e){return!o.includes(e.queryHash)})),s=n.filter((function(e){return!i.some((function(t){return t.observer===e}))})),u=a.map((function(e,n){if(e.keepPreviousData){var r=s[n];if(void 0!==r)return{defaultedQueryOptions:e,observer:r}}return{defaultedQueryOptions:e,observer:t.getObserver(e)}}));return i.concat(u).sort((function(e,t){return r.indexOf(e.defaultedQueryOptions)-r.indexOf(t.defaultedQueryOptions)}))},n.getObserver=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.observersMap[t.queryHash];return null!=n?n:new a.a(this.client,t)},n.updateObservers=function(e){var t=this;o.a.batch((function(){var n=t.observers,r=t.findMatchingObservers(t.queries);r.forEach((function(t){return t.observer.setOptions(t.defaultedQueryOptions,e)}));var o=r.map((function(e){return e.observer})),a=Object.fromEntries(o.map((function(e){return[e.options.queryHash,e]}))),s=o.map((function(e){return e.getCurrentResult()})),u=o.some((function(e,t){return e!==n[t]}));(n.length!==o.length||u)&&(t.observers=o,t.observersMap=a,t.result=s,t.hasListeners()&&(Object(i.a)(n,o).forEach((function(e){e.destroy()})),Object(i.a)(o,n).forEach((function(e){e.subscribe((function(n){t.onUpdate(e,n)}))})),t.notify()))}))},n.onUpdate=function(e,t){var n=this.observers.indexOf(e);-1!==n&&(this.result=Object(i.r)(this.result,n,t),this.notify())},n.notify=function(){var e=this;o.a.batch((function(){e.listeners.forEach((function(t){t(e.result)}))}))},t}(n(96).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(19),i=n(86),o=n(169),a=n(172),s=function(e){function t(t,n){return e.call(this,t,n)||this}Object(i.a)(t,e);var n=t.prototype;return n.bindMethods=function(){e.prototype.bindMethods.call(this),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)},n.setOptions=function(t,n){e.prototype.setOptions.call(this,Object(r.a)({},t,{behavior:Object(a.c)()}),n)},n.getOptimisticResult=function(t){return t.behavior=Object(a.c)(),e.prototype.getOptimisticResult.call(this,t)},n.fetchNextPage=function(e){var t;return this.fetch({cancelRefetch:null==(t=null==e?void 0:e.cancelRefetch)||t,throwOnError:null==e?void 0:e.throwOnError,meta:{fetchMore:{direction:"forward",pageParam:null==e?void 0:e.pageParam}}})},n.fetchPreviousPage=function(e){var t;return this.fetch({cancelRefetch:null==(t=null==e?void 0:e.cancelRefetch)||t,throwOnError:null==e?void 0:e.throwOnError,meta:{fetchMore:{direction:"backward",pageParam:null==e?void 0:e.pageParam}}})},n.createResult=function(t,n){var i,o,s,u,c,l,f=t.state,d=e.prototype.createResult.call(this,t,n);return Object(r.a)({},d,{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Object(a.a)(n,null==(i=f.data)?void 0:i.pages),hasPreviousPage:Object(a.b)(n,null==(o=f.data)?void 0:o.pages),isFetchingNextPage:f.isFetching&&"forward"===(null==(s=f.fetchMeta)||null==(u=s.fetchMore)?void 0:u.direction),isFetchingPreviousPage:f.isFetching&&"backward"===(null==(c=f.fetchMeta)||null==(l=c.fetchMore)?void 0:l.direction)})},t}(o.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(19),i=n(86),o=n(274),a=n(25),s=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.setOptions(n),r.bindMethods(),r.updateResult(),r}Object(i.a)(t,e);var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},n.onUnsubscribe=function(){var e;this.listeners.length||(null==(e=this.currentMutation)||e.removeObserver(this))},n.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,Object(r.a)({},this.options,{variables:void 0!==e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:Object(o.b)(),t=Object(r.a)({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},n.notify=function(e){var t=this;a.a.batch((function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)}))}))},t}(n(96).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n(19);function i(e){return e.state.isPaused}function o(e){return"success"===e.state.status}function a(e,t){var n,r,a=[],s=[];if(!1!==(null==(n=t=t||{})?void 0:n.dehydrateMutations)){var u=t.shouldDehydrateMutation||i;e.getMutationCache().getAll().forEach((function(e){u(e)&&a.push(function(e){return{mutationKey:e.options.mutationKey,state:e.state}}(e))}))}if(!1!==(null==(r=t)?void 0:r.dehydrateQueries)){var c=t.shouldDehydrateQuery||o;e.getQueryCache().getAll().forEach((function(e){c(e)&&s.push(function(e){return{state:e.state,queryKey:e.queryKey,queryHash:e.queryHash}}(e))}))}return{mutations:a,queries:s}}function s(e,t,n){if("object"==typeof t&&null!==t){var i=e.getMutationCache(),o=e.getQueryCache(),a=t.mutations||[],s=t.queries||[];a.forEach((function(t){var o;i.build(e,Object(r.a)({},null==n||null==(o=n.defaultOptions)?void 0:o.mutations,{mutationKey:t.mutationKey}),t.state)})),s.forEach((function(t){var i,a=o.get(t.queryHash);a?a.state.dataUpdatedAt<t.state.dataUpdatedAt&&a.setState(t.state):o.build(e,Object(r.a)({},null==n||null==(i=n.defaultOptions)?void 0:i.queries,{queryKey:t.queryKey,queryHash:t.queryHash}),t.state)}))}}},function(e,t,n){"use strict";var r=n(3),i=n(126),o=n(193),a=n(31),s=n(60),u=Object(r.a)((function(e,t){var n=Object(a.a)(e,t);return Object(a.a)(e,(function(){return Object(i.a)(o.a,Object(s.a)(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));t.a=u},function(e,t,n){"use strict";var r=n(5),i=Object(r.a)((function(e){return!e}));t.a=i},function(e,t,n){"use strict";var r=n(61),i=n(3),o=Object(i.a)((function(e,t){return Object(r.a)(e.length,(function(){return e.apply(t,arguments)}))}));t.a=o},function(e,t,n){"use strict";var r=n(199),i=n(5),o=Object(i.a)((function(e){return null!=e&&"function"==typeof e.clone?e.clone():Object(r.a)(e,!0)}));t.a=o},function(e,t,n){"use strict";var r=n(5),i=n(279),o=n(33),a=n(118),s=n(107);var u=Object(r.a)((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():Object(o.a)(e)?[]:Object(s.a)(e)?"":Object(a.a)(e)?{}:Object(i.a)(e)?function(){return arguments}():(t=e,"[object Uint8ClampedArray]"===(n=Object.prototype.toString.call(t))||"[object Int8Array]"===n||"[object Uint8Array]"===n||"[object Int16Array]"===n||"[object Uint16Array]"===n||"[object Int32Array]"===n||"[object Uint32Array]"===n||"[object Float32Array]"===n||"[object Float64Array]"===n||"[object BigInt64Array]"===n||"[object BigUint64Array]"===n?e.constructor.from(""):void 0);var t,n}));t.a=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(61);function i(e,t){return function(){return t.call(this,e.apply(this,arguments))}}var o=n(72),a=n(194);function s(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return Object(r.a)(arguments[0].length,Object(o.a)(i,arguments[0],Object(a.a)(arguments)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(86),i=n(10),o=n(19),a=n(25),s=n(135),u=n(85),c=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=Object(o.a)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),Object(i.i)(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var n,r,o=this.state.data,a=Object(i.c)(e,o);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,o,a))?a=o:!1!==this.options.structuralSharing&&(a=Object(i.s)(o,a)),this.dispatch({data:a,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),a},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(i.l).catch(i.l):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!Object(i.w)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,r,o,a=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var c;return null==(c=this.retryer)||c.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var l=this.observers.find((function(e){return e.options.queryFn}));l&&this.setOptions(l.options)}var f=Object(i.b)(this.queryKey),d=Object(i.d)(),h={queryKey:f,pageParam:void 0,meta:this.meta};Object.defineProperty(h,"signal",{enumerable:!0,get:function(){if(d)return a.abortSignalConsumed=!0,d.signal}});var p,g,m={fetchOptions:t,options:this.options,queryKey:f,state:this.state,fetchFn:function(){return a.options.queryFn?(a.abortSignalConsumed=!1,a.options.queryFn(h)):Promise.reject("Missing queryFn")},meta:this.meta};(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(p=this.options.behavior)||p.onFetch(m));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(r=m.fetchOptions)?void 0:r.meta))||this.dispatch({type:"fetch",meta:null==(g=m.fetchOptions)?void 0:g.meta});return this.retryer=new u.b({fn:m.fetchFn,abort:null==d||null==(o=d.abort)?void 0:o.bind(d),onSuccess:function(e){a.setData(e),null==a.cache.config.onSuccess||a.cache.config.onSuccess(e,a),0===a.cacheTime&&a.optionalRemove()},onError:function(e){Object(u.d)(e)&&e.silent||a.dispatch({type:"error",error:e}),Object(u.d)(e)||(null==a.cache.config.onError||a.cache.config.onError(e,a),Object(s.a)().error(e)),0===a.cacheTime&&a.optionalRemove()},onFail:function(){a.dispatch({type:"failed"})},onPause:function(){a.dispatch({type:"pause"})},onContinue:function(){a.dispatch({type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),a.a.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"queryUpdated",action:e})}))},t.getDefaultState=function(e){var t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==e.initialData?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,r=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},t.reducer=function(e,t){var n,r;switch(t.type){case"failed":return Object(o.a)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return Object(o.a)({},e,{isPaused:!0});case"continue":return Object(o.a)({},e,{isPaused:!1});case"fetch":return Object(o.a)({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return Object(o.a)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(r=t.dataUpdatedAt)?r:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var i=t.error;return Object(u.d)(i)&&i.revert&&this.revertState?Object(o.a)({},this.revertState):Object(o.a)({},e,{error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return Object(o.a)({},e,{isInvalidated:!0});case"setState":return Object(o.a)({},e,t.state);default:return e}},e}(),l=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}Object(r.a)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r,o=t.queryKey,a=null!=(r=t.queryHash)?r:Object(i.f)(o,t),s=this.get(a);return s||(s=new c({cache:this,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o),meta:t.meta}),this.add(s)),s},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},n.clear=function(){var e=this;a.a.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=Object(i.m)(e,t)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find((function(e){return Object(i.k)(n,e)}))},n.findAll=function(e,t){var n=Object(i.m)(e,t)[0];return Object.keys(n).length>0?this.queries.filter((function(e){return Object(i.k)(n,e)})):this.queries},n.notify=function(e){var t=this;a.a.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){var e=this;a.a.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},n.onOnline=function(){var e=this;a.a.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(n(96).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c}));var r=n(19),i=n(135),o=n(25),a=n(85),s=n(10),u=function(){function e(e){this.options=Object(r.a)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||c(),this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(s.l).catch(s.l)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then((function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)})).then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)})).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),r.then((function(){return t.executeMutation()})).then((function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),Object(i.a)().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new a.b({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return Object(r.a)({},e,{failureCount:e.failureCount+1});case"pause":return Object(r.a)({},e,{isPaused:!0});case"continue":return Object(r.a)({},e,{isPaused:!1});case"loading":return Object(r.a)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return Object(r.a)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return Object(r.a)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return Object(r.a)({},e,t.state);default:return e}}(this.state,e),o.a.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}();function c(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}},function(e,t,n){"use strict";function r(e,t,n){return"function"==typeof t?t.apply(void 0,n):"boolean"==typeof t?t:!!e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),i=n.n(r),o=n(25),a=n(216),s=n(90),u=n(275);function c(e,t){var n=i.a.useRef(!1),r=i.a.useState(0)[1],c=Object(s.b)(),l=Object(a.b)(),f=c.defaultQueryObserverOptions(e);f.optimisticResults=!0,f.onError&&(f.onError=o.a.batchCalls(f.onError)),f.onSuccess&&(f.onSuccess=o.a.batchCalls(f.onSuccess)),f.onSettled&&(f.onSettled=o.a.batchCalls(f.onSettled)),f.suspense&&("number"!=typeof f.staleTime&&(f.staleTime=1e3),0===f.cacheTime&&(f.cacheTime=1)),(f.suspense||f.useErrorBoundary)&&(l.isReset()||(f.retryOnMount=!1));var d=i.a.useState((function(){return new t(c,f)}))[0],h=d.getOptimisticResult(f);if(i.a.useEffect((function(){n.current=!0,l.clearReset();var e=d.subscribe(o.a.batchCalls((function(){n.current&&r((function(e){return e+1}))})));return d.updateResult(),function(){n.current=!1,e()}}),[l,d]),i.a.useEffect((function(){d.setOptions(f,{listeners:!1})}),[f,d]),f.suspense&&h.isLoading)throw d.fetchOptimistic(f).then((function(e){var t=e.data;null==f.onSuccess||f.onSuccess(t),null==f.onSettled||f.onSettled(t,null)})).catch((function(e){l.clearReset(),null==f.onError||f.onError(e),null==f.onSettled||f.onSettled(void 0,e)}));if(h.isError&&!l.isReset()&&!h.isFetching&&Object(u.a)(f.suspense,f.useErrorBoundary,[h.error,d.getCurrentQuery()]))throw h.error;return"tracked"===f.notifyOnChangeProps&&(h=d.trackResult(h,f)),h}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(136),i="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function o(e,t,n){return function(o,a,s){if(Object(r.a)(s))return e(o,a,s);if(null==s)return a;if("function"==typeof s["fantasy-land/reduce"])return t(o,a,s,"fantasy-land/reduce");if(null!=s[i])return n(o,a,s[i]());if("function"==typeof s.next)return n(o,a,s);if("function"==typeof s.reduce)return t(o,a,s,"reduce");throw new TypeError("reduce: list must be array or iterable")}}},function(e,t,n){"use strict";var r=n(15),i=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=r.a.init,e.prototype["@@transducer/result"]=r.a.result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();t.a=function(e){return function(t){return new i(e,t)}}},function(e,t,n){"use strict";var r=n(34),i=Object.prototype.toString,o=function(){return"[object Arguments]"===i.call(arguments)?function(e){return"[object Arguments]"===i.call(e)}:function(e){return Object(r.a)("callee",e)}}();t.a=o},function(e,t,n){"use strict";function r(e,t,n){for(var r=0,i=n.length;r<i;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(44);function i(e,t,n){var i,o;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(i=1/t;n<e.length;){if(0===(o=e[n])&&1/o===i)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(o=e[n])&&o!=o)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(Object(r.a)(e[n],t))return n;n+=1}return-1}},function(e,t,n){"use strict";function r(e){return function(){return!e.apply(this,arguments)}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const a=o(n(0)),s=n(70);n(1101);t.default=(0,a.memo)(({live:e,seekLiveFunc:t})=>{const{t:n}=(0,s.useTranslation)();return a.default.createElement("div",{className:"itsLive"+(e?"":" not"),"data-cy":"itsLive",onClick:function(){return e?null:t("live")}},!e&&a.default.createElement("span",{className:"icon-back"}),n(e?"dvr_live":"dvr_back_to_live"))})},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(4);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.sort((function(e,t){return e[0]-t[0]})).map((function(e){return e[1]}));return function(e,t){var i,a,s,u;void 0===t&&(t=0);var c=[];try{for(var l=Object(r.e)(e.split("\n").slice(t)),f=l.next();!f.done;f=l.next()){var d=f.value;try{for(var h=(s=void 0,Object(r.e)(n)),p=h.next();!p.done;p=h.next()){var g=(0,p.value)(d);if(g){c.push(g);break}}}catch(e){s={error:e}}finally{try{p&&!p.done&&(u=h.return)&&u.call(h)}finally{if(s)throw s.error}}}}catch(e){i={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}return o(c)}}function o(e){if(!e.length)return[];var t=e,n=t[0].function||"",i=t[t.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==i.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((function(e){return Object(r.a)(Object(r.a)({},e),{filename:e.filename||t[0].filename,function:e.function||"?"})})).reverse()}function a(e){try{return e&&"function"==typeof e&&e.name||"<anonymous>"}catch(e){return"<anonymous>"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(171),i=n(110);function o(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var a=function(e){return(e<10?"0":"")+e},s="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"},u=n(52),c=n(147);function l(e,t){var n=function(n){var i=t.concat([e]);return Object(r.a)(n,i)?"<Circular>":l(n,i)},a=function(e,t){return Object(i.a)((function(t){return o(t)+": "+n(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Object(i.a)(n,e).join(", ")+"))";case"[object Array]":return"["+Object(i.a)(n,e).concat(a(e,Object(c.a)((function(e){return/^\d+$/.test(e)}),Object(u.a)(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):o(s(e)))+")";case"[object Map]":return"new Map("+n(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+n(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+n(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+n(e.valueOf())+")":o(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var f=e.toString();if("[object Object]"!==f)return f}return"{"+a(e,Object(u.a)(e)).join(", ")+"}"}}},function(e,t,n){"use strict";(function(e){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Preview=void 0;const s=o(n(0)),u=n(71);n(1079);const c=a(n(1081)),l=n(191);t.Preview=({name:t,hasPreview:n=!1,hidden:r,basicApiConfig:i,address:o,auth_token:a,from:f})=>{const[d,h]=(0,s.useState)(!1),[p,g]=(0,s.useState)(null);let m={};if(a){const e=(0,u.decode)(a.replace(/^\?/,""));m=Object.assign(Object.assign({},m),e)}const v={params:{name:t,from:f},options:{refetchInterval:1e4,keepPreviousData:!0,onSuccess:t=>{g(e.from(t,"binary").toString("base64"))}},config:Object.assign(Object.assign({},i),{responseType:"arraybuffer",baseURL:o||i.baseURL,params:Object.assign(Object.assign({},i.params),m)})};return n?f?(0,l.jpeg_preview_dvr)(v):(0,l.jpeg_preview)(v):f?(0,l.mp4_dvr)(v):(0,l.mp4_preview)(v),(0,s.useEffect)(()=>{r&&h(r)},[r]),s.default.createElement("video",{src:"data:video/mp4;base64,"+p,className:(0,c.default)(["dvrp-preview",{_hidden:d}]),playsInline:!0,autoPlay:!0,loop:!0,controls:!1,muted:!0})}}).call(this,n(336).Buffer)},function(e){e.exports=JSON.parse('{"version":"25.7.3-1-ga2a9476"}')},function(e,t,n){"use strict";var r=n(13),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},function(e,t,n){"use strict";var r=n(21),i=n(6),o=n(156),a=n(231),s=n(11),u=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?u(t,n(e)):t}},function(e,t,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){"use strict";var r={};r[n(17)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){"use strict";var r=n(16),i=n(347),o=n(42),a=n(11),s=n(64),u=n(177);t.f=r&&!i?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),i=u(t),c=i.length,l=0;c>l;)o.f(e,n=i[l++],r[n]);return e}},function(e,t,n){"use strict";var r=n(81),i=n(64),o=n(156).f,a=n(103),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===r(e)?function(e){try{return o(e)}catch(e){return a(s)}}(e):o(i(e))}},function(e,t,n){"use strict";var r=n(13);e.exports=r},function(e,t,n){"use strict";var r=n(66),i=n(297),o=n(362),a=Error.captureStackTrace;e.exports=function(e,t,n,s){o&&(a?a(e,t):r(e,"stack",i(n,s)))}},function(e,t,n){"use strict";var r=n(6),i=Error,o=r("".replace),a=String(new i("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,u=s.test(a);e.exports=function(e,t){if(u&&"string"==typeof e&&!i.prepareStackTrace)for(;t--;)e=o(e,s,"");return e}},function(e,t,n){"use strict";var r=n(9);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){"use strict";var r=n(17),i=n(179),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},function(e,t,n){"use strict";var r=n(29),i=n(120),o=n(30);e.exports=function(e){for(var t=r(this),n=o(t),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>s;)t[s++]=e;return t}},function(e,t,n){"use strict";var r=n(11),i=n(141);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){i(e,"throw",t)}}},function(e,t,n){"use strict";var r=n(2),i=n(12),o=n(28),a=n(175),s=n(24),u=n(161),c=n(67),l=n(112),f=n(91),d=n(66),h=n(36),p=n(17),g=n(179),m=n(180),v=a.PROPER,y=a.CONFIGURABLE,b=m.IteratorPrototype,_=m.BUGGY_SAFARI_ITERATORS,w=p("iterator"),E=function(){return this};e.exports=function(e,t,n,a,p,m,S){u(n,t,a);var x,k,T,O=function(e){if(e===p&&L)return L;if(!_&&e&&e in A)return A[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},R=t+" Iterator",P=!1,A=e.prototype,C=A[w]||A["@@iterator"]||p&&A[p],L=!_&&C||O(p),D="Array"===t&&A.entries||C;if(D&&(x=c(D.call(new e)))!==Object.prototype&&x.next&&(o||c(x)===b||(l?l(x,b):s(x[w])||h(x,w,E)),f(x,R,!0,!0),o&&(g[R]=E)),v&&"values"===p&&C&&"values"!==C.name&&(!o&&y?d(A,"name","values"):(P=!0,L=function(){return i(C,this)})),p)if(k={values:O("values"),keys:m?L:O("keys"),entries:O("entries")},S)for(T in k)(_||P||!(T in A))&&h(A,T,k[T]);else r({target:t,proto:!0,forced:_||P},k);return o&&!S||A[w]===L||h(A,w,L,{name:p}),g[t]=L,k}},function(e,t,n){"use strict";var r=n(16),i=n(121),o=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(i(e)&&!a(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},function(e,t,n){"use strict";var r=n(103),i=Math.floor,o=function(e,t){var n=e.length;if(n<8)for(var a,s,u=1;u<n;){for(s=u,a=e[u];s&&t(e[s-1],a)>0;)e[s]=e[--s];s!==u++&&(e[s]=a)}else for(var c=i(n/2),l=o(r(e,0,c),t),f=o(r(e,c),t),d=l.length,h=f.length,p=0,g=0;p<d||g<h;)e[p+g]=p<d&&g<h?t(l[p],f[g])<=0?l[p++]:f[g++]:p<d?l[p++]:f[g++];return e};e.exports=o},function(e,t,n){"use strict";var r=n(131).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},function(e,t,n){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){"use strict";var r=n(382);e.exports=Math.fround||function(e){return r(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},function(e,t,n){"use strict";e.exports=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}},function(e,t,n){"use strict";var r=Array,i=Math.abs,o=Math.pow,a=Math.floor,s=Math.log,u=Math.LN2;e.exports={pack:function(e,t,n){var c,l,f,d=r(n),h=8*n-t-1,p=(1<<h)-1,g=p>>1,m=23===t?o(2,-24)-o(2,-77):0,v=e<0||0===e&&1/e<0?1:0,y=0;for((e=i(e))!=e||e===1/0?(l=e!=e?1:0,c=p):(c=a(s(e)/u),e*(f=o(2,-c))<1&&(c--,f*=2),(e+=c+g>=1?m/f:m*o(2,1-g))*f>=2&&(c++,f/=2),c+g>=p?(l=0,c=p):c+g>=1?(l=(e*f-1)*o(2,t),c+=g):(l=e*o(2,g-1)*o(2,t),c=0));t>=8;)d[y++]=255&l,l/=256,t-=8;for(c=c<<t|l,h+=t;h>0;)d[y++]=255&c,c/=256,h-=8;return d[--y]|=128*v,d},unpack:function(e,t){var n,r=e.length,i=8*r-t-1,a=(1<<i)-1,s=a>>1,u=i-7,c=r-1,l=e[c--],f=127&l;for(l>>=7;u>0;)f=256*f+e[c--],u-=8;for(n=f&(1<<-u)-1,f>>=-u,u+=t;u>0;)n=256*n+e[c--],u-=8;if(0===f)f=1-s;else{if(f===a)return n?NaN:l?-1/0:1/0;n+=o(2,t),f-=s}return(l?-1:1)*n*o(2,f-t)}}},function(e,t,n){"use strict";var r=n(13),i=n(9),o=n(130),a=n(390),s=n(311),u=n(142),c=r.structuredClone;e.exports=!!c&&!i((function(){if(s&&o>92||u&&o>94||a&&o>97)return!1;var e=new ArrayBuffer(8),t=c(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength}))},function(e,t,n){"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},function(e,t,n){"use strict";n(613)},function(e,t,n){"use strict";var r=n(9),i=n(20),o=n(81),a=n(314),s=Object.isExtensible,u=r((function(){s(1)}));e.exports=u||a?function(e){return!!i(e)&&((!a||"ArrayBuffer"!==o(e))&&(!s||s(e)))}:s},function(e,t,n){"use strict";var r=n(9);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},function(e,t,n){"use strict";var r=n(20),i=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){"use strict";var r=n(11);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(9),i=n(13).RegExp;e.exports=r((function(){var e=i(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},function(e,t,n){"use strict";var r=n(2),i=n(319);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(e,t,n){"use strict";var r,i,o=n(12),a=n(6),s=n(23),u=n(316),c=n(249),l=n(139),f=n(58),d=n(35).get,h=n(317),p=n(416),g=l("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,v=m,y=a("".charAt),b=a("".indexOf),_=a("".replace),w=a("".slice),E=(i=/b*/g,o(m,r=/a/,"a"),o(m,i,"a"),0!==r.lastIndex||0!==i.lastIndex),S=c.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];(E||x||S||h||p)&&(v=function(e){var t,n,r,i,a,c,l,h=this,p=d(h),k=s(e),T=p.raw;if(T)return T.lastIndex=h.lastIndex,t=o(v,T,k),h.lastIndex=T.lastIndex,t;var O=p.groups,R=S&&h.sticky,P=o(u,h),A=h.source,C=0,L=k;if(R&&(P=_(P,"y",""),-1===b(P,"g")&&(P+="g"),L=w(k,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==y(k,h.lastIndex-1))&&(A="(?: "+A+")",L=" "+L,C++),n=new RegExp("^(?:"+A+")",P)),x&&(n=new RegExp("^"+A+"$(?!\\s)",P)),E&&(r=h.lastIndex),i=o(m,R?n:h,L),R?i?(i.input=w(i.input,C),i[0]=w(i[0],C),i.index=h.lastIndex,h.lastIndex+=i[0].length):h.lastIndex=0:E&&i&&(h.lastIndex=h.global?i.index+i[0].length:r),x&&i&&i.length>1&&o(g,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(i[a]=void 0)})),i&&O)for(i.groups=c=f(null),a=0;a<O.length;a++)c[(l=O[a])[0]]=i[l[1]];return i}),e.exports=v},function(e,t,n){"use strict";var r=n(76),i=n(104),o=r.Set,a=r.add;e.exports=function(e){var t=new o;return i(e,(function(e){a(t,e)})),t}},function(e,t,n){"use strict";var r=n(248),i=TypeError;e.exports=function(e){if(r(e))throw new i("The method doesn't accept regular expressions");return e}},function(e,t,n){"use strict";var r=n(17)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){"use strict";var r=n(175).PROPER,i=n(9),o=n(183);e.exports=function(e){return i((function(){return!!o[e]()||"​…᠎"!=="​…᠎"[e]()||r&&o[e].name!==e}))}},function(e,t,n){"use strict";var r=n(13),i=n(9),o=n(235),a=n(27).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,u=r.Int8Array;e.exports=!a||!i((function(){u(1)}))||!i((function(){new u(-1)}))||!o((function(e){new u,new u(null),new u(1.5),new u(e)}),!0)||i((function(){return 1!==new u(new s(2),1,void 0).length}))},function(e,t,n){"use strict";var r=n(102);e.exports=function(e){var t=r(e);return"BigInt64Array"===t||"BigUint64Array"===t}},function(e,t,n){"use strict";var r=n(143),i=n(212);e.exports=function(e,t){return r(i(e),t)}},function(e,t,n){"use strict";n(774)},function(e,t,n){"use strict";var r=n(39),i=n(6),o=n(137),a=n(29),s=n(129),u=n(30),c=n(58),l=n(143),f=Array,d=i([].push);e.exports=function(e,t,n,i){for(var h,p,g,m=a(e),v=o(m),y=r(t,n),b=c(null),_=u(v),w=0;_>w;w++)g=v[w],(p=s(y(g,w,m)))in b?d(b[p],g):b[p]=[g];if(i&&(h=i(m))!==f)for(p in b)b[p]=l(h,b[p]);return b}},function(e,t,n){"use strict";var r=n(6),i=n(22),o=n(65),a=n(30),s=n(29),u=n(83),c=n(116),l=u.Map,f=u.has,d=u.set,h=r([].push);e.exports=function(e){var t,n,r,u=s(this),p=a(u),g=[],m=new l,v=o(e)?function(e){return e}:i(e);for(t=0;t<p;t++)r=v(n=u[t]),f(m,r)||d(m,r,n);return c(m,(function(e){h(g,e)})),g}},function(e,t,n){"use strict";var r=n(35),i=n(161),o=n(75),a=n(65),s=n(20),u=n(47),c=n(16),l="Incorrect Iterator.range arguments",f=r.set,d=r.getterFor("NumericRangeIterator"),h=RangeError,p=TypeError,g=i((function(e,t,n,r,i,o){if(typeof e!=r||t!==1/0&&t!==-1/0&&typeof t!=r)throw new p(l);if(e===1/0||e===-1/0)throw new h(l);var u,d=t>e,g=!1;if(void 0===n)u=void 0;else if(s(n))u=n.step,g=!!n.inclusive;else{if(typeof n!=r)throw new p(l);u=n}if(a(u)&&(u=d?o:-o),typeof u!=r)throw new p(l);if(u===1/0||u===-1/0||u===i&&e!==t)throw new h(l);f(this,{type:"NumericRangeIterator",start:e,end:t,step:u,inclusive:g,hitsEnd:e!=e||t!=t||u!=u||t>e!=u>i,currentCount:i,zero:i}),c||(this.start=e,this.end=t,this.step=u,this.inclusive=g)}),"NumericRangeIterator",(function(){var e=d(this);if(e.hitsEnd)return o(void 0,!0);var t=e.start,n=e.end,r=t+e.step*e.currentCount++;r===n&&(e.hitsEnd=!0);var i=e.inclusive;return(n>t?i?r>n:r>=n:i?n>r:n>=r)?(e.hitsEnd=!0,o(void 0,!0)):o(r,!1)})),m=function(e){u(g.prototype,e,{get:function(){return d(this)[e]},set:function(){},configurable:!0,enumerable:!1})};c&&(m("start"),m("end"),m("inclusive"),m("step")),e.exports=g},function(e,t,n){"use strict";var r=n(12),i=n(22),o=n(24),a=n(11),s=TypeError;e.exports=function(e,t){var n,u=a(this),c=i(u.get),l=i(u.has),f=i(u.set),d=arguments.length>2?arguments[2]:void 0;if(!o(t)&&!o(d))throw new s("At least one callback required");return r(l,u,e)?(n=r(c,u,e),o(t)&&(n=t(n),r(f,u,e,n))):o(d)&&(n=d(),r(f,u,e,n)),n}},function(e,t,n){"use strict";var r=n(35),i=n(161),o=n(75),a=n(26),s=n(177),u=n(29),c=r.set,l=r.getterFor("Object Iterator");e.exports=i((function(e,t){var n=u(e);c(this,{type:"Object Iterator",mode:t,object:n,keys:s(n),index:0})}),"Object",(function(){for(var e=l(this),t=e.keys;;){if(null===t||e.index>=t.length)return e.object=e.keys=null,o(void 0,!0);var n=t[e.index++],r=e.object;if(a(r,n)){switch(e.mode){case"keys":return o(n,!1);case"values":return o(r[n],!1)}return o([n,r[n]],!1)}}}))},function(e,t,n){"use strict";var r,i=n(13),o=n(88),a=n(24),s=n(997),u=n(131),c=n(103),l=n(108),f=i.Function,d=/MSIE .\./.test(u)||s&&((r=i.Bun.version.split(".")).length<3||"0"===r[0]&&(r[1]<3||"3"===r[1]&&"0"===r[2]));e.exports=function(e,t){var n=t?2:1;return d?function(r,i){var s=l(arguments.length,1)>n,u=a(r)?r:f(r),d=s?c(arguments,n):[],h=s?function(){o(u,this,d)}:u;return t?e(h,i):e(h)}:e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return u}));var r=n(0),i=n.n(r),o=n(266),a=n(90);function s(e,t){var n=Object(a.b)(),r=i.a.useRef(t);r.current=t,i.a.useMemo((function(){e&&Object(o.b)(n,e,r.current)}),[n,e])}var u=function(e){var t=e.children,n=e.options;return s(e.state,n),t}},function(e,t,n){"use strict";(function(t){var r=n(77),i=n(1037),o=n(192),a=n(497),s=n(498),u={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,f={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(l=n(499)),l),transformRequest:[function(e,t){if(i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,o=r.isObject(e),a=t&&t["Content-Type"];if((n=r.isFileList(e))||o&&"multipart/form-data"===a){var u=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,u&&new u)}return o||"application/json"===a?(c(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||f.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw o.from(e,o.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(1048)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){f.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){f.headers[e]=r.merge(u)})),e.exports=f}).call(this,n(259))},function(e,t,n){"use strict";(function(e){
17
17
  /*!
18
18
  * The buffer module from node.js, for the browser.
19
19
  *
@@ -67,4 +67,4 @@ var r=(n=n(8835)).parse,i=n.Url;function o(e){var t,n=e.url;if(void 0!==n)return
67
67
  Copyright (c) 2018 Jed Watson.
68
68
  Licensed under the MIT License (MIT), see
69
69
  http://jedwatson.github.io/classnames
70
- */!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){var r=n(78),i=n(1078);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,".image-highlighter{position:relative;width:100%;height:100%;display:flex;flex-direction:column;background-color:#000;color:#ebebf5}.image-highlighter__canvas-container{flex:1;position:relative;overflow:hidden;display:flex;justify-content:center;align-items:center;padding:16px;box-sizing:border-box;background-color:#000}.image-highlighter__canvas-wrapper{width:100%;height:100%;position:relative}.image-highlighter__canvas{width:100%;height:100%;display:block;border:5px dotted #57575a;box-sizing:border-box}.image-highlighter__canvas_crosshair{cursor:crosshair}.image-highlighter__canvas_greenBorder{border-color:#117c59}.image-highlighter__controls{padding:12px 16px;display:flex;justify-content:flex-end;gap:8px;flex-shrink:0;background:#000;border-top:1px solid #57575a}.image-highlighter__controls button:focus{outline:2px solid #57575a;outline-offset:2px}.image-highlighter__controls button{padding:8px 12px;font-size:14px;border-radius:6px;color:#ebebf5;border:none;cursor:pointer;transition:background-color .2s ease;background-color:#117c59}.image-highlighter__controls button:hover{background-color:#0e6b4d}.image-highlighter__controls button:active{background-color:#0a5a41}.image-highlighter__controls button.remove{background-color:#c11030}.image-highlighter__controls button.remove:hover{background-color:#a10d27}.image-highlighter__controls button.remove:active{background-color:#7c0a1f}.image-highlighter__controls button.add{background-color:#57575a}.image-highlighter__controls button.add:hover{background-color:#7c7979}.image-highlighter__controls button.add:active{background-color:#3f4044}.image-highlighter__controls button:disabled{background-color:#57575a;color:#7c7979;cursor:not-allowed;opacity:.8;box-shadow:none}.image-highlighter__controls button:disabled:hover{background-color:#57575a}@media(max-width: 600px){.image-highlighter__controls{flex-direction:column}.image-highlighter__controls button{width:100%}}",""]),e.exports=t},function(e,t,n){var r=n(78),i=n(1080);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,".dvrp-preview{position:absolute;left:0;top:0;width:100%;height:100%;opacity:1;pointer-events:none;z-index:1;transition:.1s ease}.dvrp-preview._hidden{opacity:0}",""]),e.exports=t},function(e,t,n){"use strict";n.r(t);t.default=function(e){return e.map((function(e){return"string"==typeof e?e:Object.keys(e).filter((function(t){return!!e[t]})).join(" ")})).join(" ")}},function(e,t,n){var r=n(78),i=n(1083);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,".adverts_block{width:100%;height:100%;background:#000;position:absolute;z-index:40}.adverts_block a{display:flex;width:100%;height:100%}.adverts_block .muted_placeholder{position:absolute;height:48px;width:48px;display:flex;justify-content:center;align-items:center;left:0;bottom:0;z-index:41}",""]),e.exports=t},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AdvertPlayer=void 0;const a=o(n(0));t.AdvertPlayer=({url:e,link:t,index:n,setActiveIndex:r,setAdvertDuration:i,onEvent:o})=>{const s=(0,a.useRef)(null),[u,c]=(0,a.useState)(!1),[l,f]=(0,a.useState)(!0),[d,h]=(0,a.useState)(),p=()=>{r(n+1)},g=(0,a.useCallback)(()=>{var e;s.current&&s.current.currentTime&&i(n,null===(e=s.current)||void 0===e?void 0:e.currentTime)},[n,i]),m=()=>{d||h(setInterval(()=>{g()},250)),o("",{key:Date.now(),data:{event:"advertising",type:"advertising"}})};return(0,a.useEffect)(()=>{if(s.current){const{current:t}=s;t.src=e,t.play().then(()=>{c(!0)}).catch(e=>{e instanceof Error&&o("",{key:Date.now(),data:{event:"player_error",error_name:e.name,error_message:e.message}}),console.info("advert error:",e),p()}),t.addEventListener("play",m,!1),t.addEventListener("ended",p,!1)}return()=>{var e,t;null===(e=s.current)||void 0===e||e.removeEventListener("play",m,!1),null===(t=s.current)||void 0===t||t.removeEventListener("ended",p,!1),clearInterval(d)}},[e]),a.default.createElement(a.Fragment,null,a.default.createElement("a",{href:t,target:"_blank","aria-label":"advertise-link",rel:"noreferrer"},a.default.createElement("video",{ref:s,className:"advert-player",style:{width:"100%",height:"100%"},autoPlay:!0,playsInline:!0,muted:!0,controls:!1,"data-cy":"videoAdvertElement",key:"advert_player"})),u&&a.default.createElement("div",{className:"muted_placeholder"},a.default.createElement("button",{type:"button",className:"dvrp-button dvrp-volume-button",onClick:()=>{if(s.current){if(0===s.current.currentTime)return;s.current.muted=!s.current.muted,f(!l)}},"data-cy":"DVR_mute_button"},l?a.default.createElement("span",{className:"icon-volume_off"}):a.default.createElement("span",{className:"icon-volume"}))))}},function(e,t,n){var r=n(78),i=n(1086);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,'.arrow-effect{position:absolute;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;pointer-events:none;flex-direction:column;z-index:2;opacity:0;background-color:rgba(40,40,40,.3);height:100%;width:33%;transition:opacity .3s ease}.arrow-effect.left{left:0}.arrow-effect.right{right:0}.arrow-effect.animate{opacity:1}.arrow-effect.left::before,.arrow-effect.right::before{content:"";position:absolute;top:0;bottom:0;width:100%;background-color:rgba(40,40,40,.3);z-index:-1}.arrow-effect.left::before{left:-100%}.arrow-effect.right::before{right:-100%}.arrows{display:flex;align-items:center;gap:10px}.arrow-triangle{width:0;height:0;border-style:solid;border-width:10px 14px 10px 0;border-color:rgba(0,0,0,0) rgba(255,255,255,.5) rgba(0,0,0,0) rgba(0,0,0,0);opacity:1;transition:border-color .3s ease}.arrow-effect.right .arrow-triangle{transform:rotate(180deg);border-width:10px 14px 10px 0;border-color:rgba(0,0,0,0) rgba(255,255,255,.5) rgba(0,0,0,0) rgba(0,0,0,0)}@keyframes arrowColorChangeLeft{0%,100%{border-color:rgba(0,0,0,0) rgba(255,255,255,.5) rgba(0,0,0,0) rgba(0,0,0,0)}50%{border-color:rgba(0,0,0,0) #fff rgba(0,0,0,0) rgba(0,0,0,0)}}@keyframes arrowColorChangeRight{0%,100%{border-color:rgba(0,0,0,0) rgba(255,255,255,.5) rgba(0,0,0,0) rgba(0,0,0,0)}50%{border-color:rgba(0,0,0,0) #fff rgba(0,0,0,0) rgba(0,0,0,0)}}.arrow-effect.right.animate .arrow-triangle:nth-child(1){animation:arrowColorChangeRight 1s ease-in-out infinite;animation-delay:0s}.arrow-effect.right.animate .arrow-triangle:nth-child(2){animation:arrowColorChangeRight 1s ease-in-out infinite;animation-delay:.15s}.arrow-effect.right.animate .arrow-triangle:nth-child(3){animation:arrowColorChangeRight 1s ease-in-out infinite;animation-delay:.3s}.arrow-effect.left.animate .arrow-triangle:nth-child(1){animation:arrowColorChangeLeft 1s ease-in-out infinite;animation-delay:.3s}.arrow-effect.left.animate .arrow-triangle:nth-child(2){animation:arrowColorChangeLeft 1s ease-in-out infinite;animation-delay:.15s}.arrow-effect.left.animate .arrow-triangle:nth-child(3){animation:arrowColorChangeLeft 1s ease-in-out infinite;animation-delay:0s}.time-label{margin-top:10px;font-size:18px;color:#fff}',""]),e.exports=t},function(e,t,n){var r=n(78),i=n(1088);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,".dvrp-bottom-gradient{position:absolute;bottom:0;width:100%;height:104px;background:linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 100%);pointer-events:none;opacity:0;transition:opacity .25s cubic-bezier(0, 0, 0.2, 1);z-index:2}.dvrp-bottom-gradient._visible{opacity:1}.dvrp-top{position:absolute;top:0;left:0;right:0;height:48px;padding:0 12px;opacity:0;z-index:3;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;transform:matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)}.dvrp-top *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrp-top._visible{opacity:1}.dvrp-top .dvrp-controls{height:48px;line-height:48px;display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;transform:matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)}.dvrp-top .dvrp-controls .timeStamp{color:#fff;font-size:12px;font-style:normal;font-weight:500;line-height:19px;padding:0 6px;margin-right:12px;border-radius:4px;background:rgba(124,121,121,.3);backdrop-filter:blur(7.5px)}.dvrp-top .dvrp-controls .timeStamp>a{text-decoration:none;color:#fff}.dvrp-top .dvrp-controls .dvrp-button{margin-left:auto}.dvrp-footer{cursor:grab;position:absolute;bottom:0;left:0;right:0;padding:0 12px;color:#fff;background:#000;margin:auto;opacity:0;transition:opacity .25s cubic-bezier(0, 0, 0.2, 1);transform:matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);box-sizing:border-box;z-index:3}.dvrp-footer.ott{cursor:default;background:none}.dvrp-footer._visible{opacity:1}.dvrp-footer .dvrp-controls{position:relative;z-index:4;height:48px;line-height:48px;display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center}.dvrp-footer .dvrp-controls .dropDownWrapper{height:auto;width:auto;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrp-footer .dvrp-controls .dropDownWrapper .dvrp-button{height:100%}.dvrp-footer .dvrp-controls .dvrp-button a{text-decoration:none;color:#fff}.dvrp-footer .dvrp-controls .dvrp-button .icon-share_player{font-size:19px}.dvrp-footer .dvrp-controls .dvrp-button .options{background:#504f59;color:#fff;position:absolute;bottom:48px;border-radius:4px;right:0;z-index:60;box-sizing:border-box;display:flex;flex-direction:column;box-shadow:2px 2px 3px 1px rgba(0,0,0,.45);overflow:hidden}.dvrp-footer .dvrp-controls .dvrp-button .options div,.dvrp-footer .dvrp-controls .dvrp-button .options a{white-space:nowrap;padding:8px 12px;box-sizing:border-box;height:100%;text-decoration:none;color:#fff}.dvrp-footer .dvrp-controls .dvrp-button .options div:hover,.dvrp-footer .dvrp-controls .dvrp-button .options a:hover{background:#33323a}.dvrp-footer .dvrp-controls .dvrp-left-controls{flex:1;order:1;display:flex;align-items:center;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrp-footer .dvrp-controls .dvrp-left-controls *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrp-footer .dvrp-controls .dvrp-right-controls{order:2;display:flex;align-items:center}.dvrp-top .dvrp-controls .dvrp-button,.dvrp-footer .dvrp-controls .dvrp-button{color:#fff;width:32px;height:100%;cursor:pointer;padding:0 2px;opacity:.8;border:none;position:relative;background-color:rgba(0,0,0,0);transition:opacity .1s cubic-bezier(0, 0, 0.2, 1);font-size:14px;font-weight:400;min-height:32px;display:flex;justify-content:center;align-items:center;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;position:relative}.dvrp-top .dvrp-controls .dvrp-button *,.dvrp-footer .dvrp-controls .dvrp-button *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrp-top .dvrp-controls .dvrp-button:hover,.dvrp-footer .dvrp-controls .dvrp-button:hover{opacity:1}.bigRoundButton{cursor:pointer;font-size:9px;border-radius:50%;display:flex;justify-content:center;align-items:center;border:none;color:#fff;width:30px;height:30px;background:rgba(87,87,90,.5)}.bigRoundButton:hover{background:rgba(87,87,90,.75)}.bigRoundButton.green{line-height:8px;background:#10b981}.bigRoundButton.green:hover{background:#0c6346}",""]),e.exports=t},function(e,t,n){"use strict";n.r(t);var r=n(41),i=n.n(r),o=n(40),a=n.n(o),s=n(49),u=n.n(s),c=n(32),l=n.n(c),f=n(50),d=n.n(f),h=n(0),p=n.n(h),g=n(1),m=n.n(g),v=n(14);function y(e,t,n){return t=l()(t),u()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],l()(e).constructor):t.apply(e,n))}var b=function(e){function t(){return i()(this,t),y(this,t,arguments)}return d()(t,e),a()(t,[{key:"render",value:function(){var e=this.props.tooltipData,t=e.title,n=e.note,r=e.utc;return p.a.createElement("div",{className:"motionTooltip"},p.a.createElement("p",null,v.default.humanTime(r)),p.a.createElement("p",{className:"motionTitle"},t),p.a.createElement("h2",null,n))}}])}(h.Component);b.propTypes={tooltipData:m.a.any},t.default=b},function(e,t,n){var r=n(78),i=n(1091);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,".calendar{position:absolute;right:16px;bottom:116px;padding:16px;z-index:3;border-radius:10px;border:.5px solid rgba(235,235,245,.2);background:rgba(40,40,40,.9)}.calendar .nd_calendar .month-selection{color:#fff;display:flex;justify-content:space-between;font-size:15px;font-style:normal;font-weight:400;line-height:20px;letter-spacing:-0.3px}.calendar .nd_calendar .month-selection .month-change{cursor:pointer}.calendar .nd_calendar .month-selection .month-change.month-next{transform:rotateY(180deg)}.calendar .nd_calendar .strap{height:1px;width:100%;background:rgba(255,255,255,.15);margin:16px 0 32px}.calendar .nd_calendar .days{display:flex;vertical-align:top;width:100%;flex-direction:column;align-content:center;justify-content:center;align-items:stretch}.calendar .nd_calendar .day-names{font-size:13px;font-style:normal;font-weight:400;line-height:16px;letter-spacing:-0.3px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin-bottom:8px}.calendar .nd_calendar .day-names .day-name{display:inline-block;vertical-align:top;width:40px;padding:6px 0;color:#fff;text-align:center}.calendar .nd_calendar .day-entries{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.calendar .nd_calendar .day-entries .day-entry{display:flex;justify-content:center;align-items:center;width:36px;height:36px;border-radius:50%;margin:4px;text-align:center;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:#fff;font-size:15px;font-style:normal;line-height:20px;letter-spacing:-0.3px}.calendar .nd_calendar .day-entries .day-entry:hover{color:#000;background:#fff}.calendar .nd_calendar .day-entries .day-entry.other-day{color:#9e9e9e}.calendar .nd_calendar .day-entries .day-entry.current-day{font-weight:500}.calendar .nd_calendar .day-entries .day-entry.available{color:#fff;background:rgba(17,124,88,.7529411765);cursor:pointer}.calendar .nd_calendar .day-entries .day-entry.available:hover{color:#fff;background:#117c59}.calendar .nd_calendar .day-entries .day-entry.selected-day{color:#fff;background:#002dab}.calendar .nd_calendar .day-entries .day-entry.selected-day:hover{color:#fff;background:#002999}@media only screen and (max-width: 1200px){.calendar{padding:7px;bottom:102px}.calendar .nd_calendar .strap{margin:5px 0 0}.calendar .nd_calendar .days .day-names{margin-bottom:0px}.calendar .nd_calendar .days .day-entries .day-entry{width:25px;height:25px;margin:2px}}@media only screen and (max-width: 600px),(max-height: 380px){.calendar{right:5px;left:5px;padding:5px;bottom:97px}}",""]),e.exports=t},function(e,t,n){var r=n(78),i=n(1093);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,'.dvrp-volume-button:before{content:"";position:absolute;top:12px;left:10px;width:2px;height:0;background-color:#fff;transform-origin:top;transform:rotate(-45deg);transition:height .1s cubic-bezier(0, 0, 0.2, 1)}.dvrp-volume-control{display:flex;justify-content:center;align-items:center;height:100%}.dvrp-volume-panel{display:inline-block;height:100%;transition:margin .2s cubic-bezier(0.4, 0, 1, 1),width .1s cubic-bezier(0.4, 0, 1, 1);cursor:pointer;outline:0;margin-right:3px;width:0;overflow:hidden}.dvrp-volume-panel.visible{width:52px}.dvrp-volume-slider{height:100%;min-height:36px;position:relative;overflow:hidden}.dvrp-volume-slider-handle{position:absolute;top:50%;width:12px;height:12px;border-radius:6px;margin-top:-6px;background:#fff}.dvrp-volume-slider-handle:before,.dvrp-volume-slider-handle:after{content:"";position:absolute;display:block;top:50%;left:0;height:3px;margin-top:-2px;width:64px}.dvrp-volume-slider-handle:before{left:-58px;background:#fff}.dvrp-volume-slider-handle:after{left:6px;background:rgba(255,255,255,.2)}',""]),e.exports=t},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var i=s(n(0)),o=s(n(1095)),a=["text","onCopy","options","children"];function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function f(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 h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(u,e);var t,n,r,s=p(u);function u(){var e;f(this,u);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return y(m(e=s.call.apply(s,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,a=n.onCopy,s=n.children,u=n.options,c=i.default.Children.only(s),l=(0,o.default)(r,u);a&&a(r,l),c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(t)})),e}return t=u,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=l(e,a),r=i.default.Children.only(t);return i.default.cloneElement(r,c(c({},n),{},{onClick:this.onClick}))}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(i.default.PureComponent);t.CopyToClipboard=b,y(b,"defaultProps",{onCopy:void 0,options:void 0})},function(e,t,n){"use strict";var r=n(1096),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,u,c,l=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),u=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),u.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(s):u.removeAllRanges()),c&&document.body.removeChild(c),a()}return l}},function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},function(e,t,n){var r=n(78),i=n(1098);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,"#forDownloadModal .control{display:flex;justify-content:center;align-items:center;flex-wrap:nowrap;color:#fff;height:32px;max-height:32px;box-sizing:border-box;white-space:nowrap}#forDownloadModal .control .focus_btn{line-height:18px;background:none;border:none;border-radius:4px;text-align:center;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;width:0;overflow:hidden;max-width:0;min-width:0;padding:0;height:32px;transition:150ms ease-in-out;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}#forDownloadModal .control .focus_btn:hover{background-color:#66666d}#forDownloadModal .control .focus_btn.active{width:32px;min-width:32px}#forDownloadModal .control .download{display:flex;justify-content:center;align-items:center;flex-wrap:nowrap;text-decoration:none;color:#fff;cursor:pointer;background:#209c61;border-radius:4px;line-height:24px}#forDownloadModal .control .download i{margin-right:8px}#forDownloadModal .control .download.cancel{background:#56595e;margin-left:16px}#forDownloadModal .control .download.disabled{background:#56595e}#forDownloadModal .control .download-text{display:flex;justify-content:center;align-items:center}#forDownloadModal .control .download-text .inputWrapper{padding:4px 12px;border-radius:8px;background:var(--grey-900, #1c1c1c)}#forDownloadModal .control .download-text .inputWrapper .inputBlock{display:inline-flex;flex-direction:column;justify-content:center;align-items:center}#forDownloadModal .control .download-text .inputWrapper .inputBlock span{font-size:12px;margin:-20px 0 8px;color:#c1c1c3}#forDownloadModal .control .download-text .inputWrapper .inputBlock input{height:24px;width:35px;margin:0px 1px;font-size:14px;border:none;color:#fff;background:none;text-align:center}#forDownloadModal .control .download-text .inputWrapper .inputBlock input.locked{color:#ffcc80;font-weight:500}#forDownloadModal .control .download-text .separator{color:var(--grey-50, #fcfcfc);font-size:14px;margin:0 8px}#forDownloadModal .control .download-text .verticalLine{width:1px;height:32px;background:#1c1c1c;margin:0 12px}#forDownloadModal .control .dropDown{font-size:14px;border:.5px solid rgba(235,235,245,.2);margin-bottom:8px}#forDownloadModal .control .dropDown a{color:#fff;text-decoration:none;width:100%}#forDownloadModal .control .popup{position:absolute;z-index:46;opacity:0;top:200px;border-radius:8px;padding:0;background:rgba(0,0,0,.75);transition:150ms ease-in-out}#forDownloadModal .control .popup.enabled{top:8px;padding:8px 12px;opacity:1}@media only screen and (min-device-width: 240px)and (max-device-width: 960px)and (orientation: portrait){#forDownloadModal .control .download-text .inputWrapper{padding:4px 8px}#forDownloadModal .control .download-text .separator{margin:0 4px}#forDownloadModal .control .download-text .verticalLine{margin:0 8px}}",""]),e.exports=t},function(e,t,n){var r=n(78),i=n(1100);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,".settingsButton{padding:0;text-align:center;display:flex;justify-content:center;align-items:center;background:#66666d;color:#fff;font-weight:400;max-height:32px;border-radius:4px;border:none;cursor:pointer;min-height:28px;min-width:32px;box-sizing:border-box;margin-left:4px}.settingsButton svg{fill:#fff;height:24px;width:24px}.clearDropdown{position:absolute;left:0;right:0;top:0;bottom:0;z-index:40}.dropDown{background-color:#1e1e1f;padding:8px 0;border-radius:8px;position:absolute;bottom:48px;right:12px;z-index:45;opacity:0;transition:opacity 250ms cubic-bezier(0, 0, 0.2, 1) 0ms;width:0;height:0;overflow:hidden}.dropDown.border{border:.5px solid rgba(235,235,245,.2)}.dropDown.visible{width:auto;height:auto;opacity:1}.dropDown .item{background-color:#1e1e1f;text-align:left;line-height:24px;padding:8px 24px 8px 16px;color:#fff;display:flex;align-items:center;text-decoration:none}.dropDown .item.unclickable:hover{cursor:default;background-color:#1e1e1f}.dropDown .item:hover{background-color:#48484d;cursor:pointer}.dropDown .item.active{color:#00ff86}.dropDown .item .left{display:flex;align-items:center;user-select:none}.dropDown .item .ddicon{font-size:22px;line-height:16px;margin-right:12px}.dropDown .item .smicon{font-size:16px;line-height:16px;margin-right:12px}.dropDown .item .text{text-wrap:nowrap}.dropDown .item .right{display:flex;align-items:center;justify-content:flex-end;margin-left:64px;flex:1;user-select:none}.dropDown .firstRow{width:0;height:0;overflow:hidden;transition:150ms ease-in-out}.dropDown .firstRow.visible{width:100%;height:auto}.dropDown .secondRow{width:0;height:0;overflow:hidden;transition:150ms ease-in-out}.dropDown .secondRow.visible{width:100%;height:auto}.dropDown .hr{background-color:#66666d;height:1px;width:100%}.dropDown .popupCopyDebug{position:absolute;z-index:46;opacity:0;top:8px;border-radius:8px;padding:8px 12px;background:#000;transition:150ms ease-in-out;color:#fff}.dropDown .popupCopyDebug.enabled{opacity:1}",""]),e.exports=t},function(e,t,n){var r=n(78),i=n(1102);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,".itsLive{font-size:12px;font-style:normal;font-weight:500;line-height:19px;color:#fff;background:#c11030;height:19px;padding:0 8px;margin:auto 0;border-radius:4px;display:flex;text-align:center;align-items:center;justify-content:center;box-sizing:border-box;transform:matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);-webkit-user-select:none;-ms-user-select:none;user-select:none}.itsLive.not{cursor:pointer;background-color:#666}.itsLive span{margin-right:8px;font-size:9px;line-height:18px}@media only screen and (min-device-width: 240px)and (max-device-width: 960px)and (orientation: portrait){.itsLive{font-size:11px;padding:0px 4px}}",""]),e.exports=t},function(e,t,n){var r=n(78),i=n(1104);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,".ott_timeline{width:calc(100% - 16px);padding-top:24px;padding-bottom:8px;margin:0 8px;position:relative;border-radius:2px;cursor:pointer;z-index:0}.ott_timeline .line{height:3px;width:100%;max-width:100%;position:relative;border-radius:2px;overflow:hidden;background:#1b1b1b}.ott_timeline .line .buffered{position:absolute;left:0;height:100%;background:#646464;z-index:1;pointer-events:none}.ott_timeline .line .played{position:absolute;left:0;height:100%;background:#117c59;z-index:2;pointer-events:none}.ott_timeline .line .played-debug{position:absolute;left:0;height:100%;background:#b82424;z-index:4;pointer-events:none}.ott_timeline .now{bottom:6px;position:absolute;width:8px;height:8px;margin-left:-4px;border-radius:50%;background:#fff;box-shadow:-1px 1px 5px rgba(0,0,0,.2509803922);z-index:5;pointer-events:none}",""]),e.exports=t},function(e,t,n){var r=n(78),i=n(1106);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,".ott_time{font-size:13px;margin-left:8px}",""]),e.exports=t},function(e,t,n){var r=n(78),i=n(1108);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,".dvrp-button{color:#fff;width:32px;height:100%;cursor:pointer;padding:0 2px;opacity:.8;border:none;position:relative;background-color:rgba(0,0,0,0);transition:opacity .1s cubic-bezier(0, 0, 0.2, 1);font-size:14px;font-weight:400;min-height:32px;display:flex;justify-content:center;align-items:center;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;position:relative}.dvrp-button *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrp-button:hover{opacity:1}.dvrp-footer{position:absolute;bottom:0;left:0;right:0;padding:0 12px;color:#fff;margin:auto;opacity:0;transition:opacity .25s cubic-bezier(0, 0, 0.2, 1);z-index:3}.dvrp-footer._visible{opacity:1}.dvrp-footer .dvrp-controls{height:48px;line-height:48px;display:flex;flex-wrap:nowrap;justify-content:space-between}.dvrp-footer .dvrp-controls .dropDownWrapper{height:auto;width:auto}.dvrp-footer .dvrp-controls .dropDownWrapper .dvrp-button{height:100%}.dvrp-footer .dvrp-controls .dvrp-button{color:#fff;width:32px;height:100%;cursor:pointer;padding:0 2px;opacity:.8;border:none;position:relative;background-color:rgba(0,0,0,0);transition:opacity .1s cubic-bezier(0, 0, 0.2, 1);font-size:14px;font-weight:100}.dvrp-footer .dvrp-controls .dvrp-button:hover{opacity:1}.dvrp-footer .dvrp-controls .dvrp-left-controls{flex:1;order:1;display:flex;align-items:center}.dvrp-footer .dvrp-controls .dvrp-right-controls{order:2;display:flex;align-items:center}.dvrp-top{position:absolute;top:0;left:0;right:0;height:48px;padding:0 12px;opacity:0;z-index:3;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrp-top *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrp-top._visible{opacity:1}.dvrp-top .dvrp-controls{height:48px;line-height:48px;display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start}.dvrp-top .dvrp-controls .timeStamp{color:#fff;font-size:12px;font-style:normal;font-weight:500;line-height:19px;padding:0 6px;margin-right:12px;border-radius:4px;background:rgba(124,121,121,.3);backdrop-filter:blur(7.5px)}.dvrp-top .dvrp-controls .timeStamp>a{text-decoration:none;color:#fff}.dvrp-top .dvrp-controls .dvrp-button{margin-left:auto}",""]),e.exports=t},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.CameraArrow=void 0;const a=o(n(0));t.CameraArrow=({direction:e,Icon:t,onMove:n})=>{const[r,i]=(0,a.useState)(!1),[o,s]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(r){const t=setInterval(()=>{n(e),s(!0)},500);return()=>clearInterval(t)}},[r,e,n]);const u=()=>{i(!0),s(!1)},c=()=>{i(!1),o&&setTimeout(()=>n(e,!0),0)};return a.default.createElement("button",{className:"ptzButton",onMouseDown:u,onMouseUp:c,onTouchStart:u,onTouchEnd:c,onClick:()=>{r||o||n(e,!1,!0)},type:"button"},t)}},function(e,t,n){var r=n(78),i=n(1111);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,"input[type='range'] {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 15px;\n border-radius: 5px;\n outline: none;\n cursor: pointer;\n accent-color: rgba(87, 87, 90, 0.8);\n}\n\ninput[type='range']::-webkit-slider-thumb,\ninput[type='range']::-moz-range-thumb {\n appearance: none;\n width: 15px;\n height: 15px;\n border-radius: 50%;\n cursor: pointer;\n accent-color: rgba(87, 87, 90, 0.8);\n}\n\n.speedControl {\n margin-top: 10px;\n display: flex;\n}\n\n.speedControl > label {\n display: block;\n color: white;\n font-size: 13px;\n margin-right: 4px;\n}\n",""]),e.exports=t},function(e,t,n){var r=n(78),i=n(1113);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,'body{margin:0}button i{pointer-events:none}button svg{pointer-events:none}button:focus{outline:none;box-shadow:none}.dvrContainer{position:relative;box-sizing:border-box;height:100%;width:100%;max-height:100%;max-width:100%;overflow:hidden;margin:0;font:14px "Helvetica Neue",Helvetica,Arial,sans-serif;font-family:"Fira Sans",sans-serif;font-weight:400;display:flex;flex-direction:column;-webkit-font-smoothing:subpixel-antialiased;background:#000;z-index:0}.dvrContainer .video-js{-webkit-filter:brightness(108.5%) blur(0);filter:brightness(108.5%) blur(0);max-height:100%;max-width:100%}.dvrContainer *{user-select:none;outline:none;box-sizing:border-box}.dvrContainer.noDvr .dvr-timeline{display:flex;flex:1}.dvrContainer .videoThumbnail{width:0;height:0}.dvrContainer .reconnect{position:absolute;top:60%;left:0;right:0;z-index:50;color:#fff;font-size:24px;text-align:center}.dvrContainer input:focus,.dvrContainer textarea:focus,.dvrContainer select:focus{outline:none}.dvrContainer #forPopup{z-index:50}.dvrContainer .playersContainer{display:flex;width:100%;min-height:100px;height:calc(100% - 97px);flex-wrap:wrap;background:#000;overflow:hidden;position:relative;transform:matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);z-index:1}.dvrContainer .playersContainer.ott{height:100%}.dvrContainer .playersContainer.large{height:100%}.dvrContainer .playersContainer .seekContainer{width:100%;height:auto;min-height:10%;bottom:0;left:0;overflow:hidden;position:absolute;z-index:49;user-select:none;pointer-events:none}.dvrContainer .playersContainer .seekContainer .buttonGroup{display:flex;width:100%;padding:16px;box-sizing:border-box;position:absolute;bottom:0;left:0;z-index:99}.dvrContainer .playersContainer .seekContainer .buttonGroup button{margin:0 8px;width:48px;height:48px;border-radius:48px;border:none;text-align:center;color:#fff;background:none;cursor:pointer;display:flex;justify-content:center;align-items:center;pointer-events:all}.dvrContainer .playersContainer .seekContainer .buttonGroup button:hover{background-color:#188451}.dvrContainer .playersContainer .seekContainer .buttonGroup div{margin:0 auto}.dvrContainer .arrow-effect{position:absolute;top:50%;font-size:2em;z-index:2;color:#fff;opacity:.8;transform:translateY(-50%);transition:opacity .3s ease-in-out}.dvrContainer .arrow-effect.left{left:10%}.dvrContainer .arrow-effect.right{right:10%}.dvrContainer .menuGroup{display:flex;align-items:center;width:100%;height:100%;padding-top:8px;row-gap:8px}.dvrContainer .menuGroup .separator{width:8px;height:24px;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .menuGroup.liveType{height:auto}.dvrContainer .menuGroup .volumeBlock{display:flex;flex-wrap:nowrap;position:relative}.dvrContainer .menuGroup .timeline__snapshotControl{display:inline-block}.dvrContainer .menuGroup .timeline__snapshotControl .btn{padding:4px 8px;height:32px}.dvrContainer .menuGroup .timeline__snapshotControl .btn:focus{outline:none}.dvrContainer .menuGroup .timeline__snapshotControl .btn .icon{height:24px;width:24px}.dvrContainer .menuGroup button{margin-bottom:0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .menuGroup .btn{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .menuGroup .blanker{margin-left:auto;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .dvr-timeline{margin-bottom:0;margin-top:auto;transform:matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);z-index:1;display:block;position:relative;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrContainer .dvr-timeline *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrContainer .dvr-timeline .selectionControls{position:absolute;width:100%;top:0;left:0;z-index:46}.dvrContainer .dvr-timeline .selectionControls .dvrSelector{display:flex;justify-content:center;align-items:center;cursor:pointer;position:absolute;top:35px;height:39px;width:16px;background:#5da4f9;z-index:43}.dvrContainer .dvr-timeline .selectionControls .dvrSelector.right{border-radius:0 4px 4px 0}.dvrContainer .dvr-timeline .selectionControls .dvrSelector.right>span{transform:rotate(180deg)}.dvrContainer .dvr-timeline .selectionControls .dvrSelector.left{border-radius:4px 0 0 4px;margin-left:-16px}.dvrContainer .dvr-timeline .selectionControls .dvrSelector>span{font-size:21px}.dvrContainer .dvr-timeline .selectionControls .selection_thumbnail{position:absolute;bottom:124px}.dvrContainer .dvr-timeline .selectionControls .selectionLength{position:absolute;overflow:hidden;top:35px;height:4px;text-align:center;color:#fff;background:#5da4f9;user-select:none;transition:height 150ms ease-in-out}.dvrContainer .dvr-timeline .selectionControls .selectionLength.second{top:70px}.dvrContainer .dvr-timeline .btn{background:#66666d;color:#fff;font-weight:400;padding:8px 10px;max-height:32px;border-radius:4px;border:none;cursor:pointer;min-width:32px;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.dvrContainer .dvr-timeline .btn:hover{background-color:#6e6e75}.dvrContainer .dvr-timeline .btn:active{background-color:#58585f}.dvrContainer .dvr-timeline .btn.menu{padding:8px 0;margin-right:8px;margin-left:-6px;border-radius:0 8px 8px 0;min-width:25px;box-shadow:inset -2px 2px 2px 0px rgba(0,0,0,.15)}.dvrContainer .dvr-timeline .btn.menu i{margin-left:-1px}.dvrContainer .dvr-timeline .btn.menu:hover{background:#ffcc80}.dvrContainer .dvr-timeline .btn.menuHighlight{background:#1da664;height:48px;max-height:48px;width:48px;padding:0;margin:0;position:absolute;top:0;left:0;z-index:42}.dvrContainer .dvr-timeline .btn.menuHighlight:hover{background:#f0ad4e}.dvrContainer .dvr-timeline .recorded-ranges{height:16px;width:100%;cursor:pointer;display:block;position:relative}.dvrContainer .dvr-timeline .recorded-ranges .range-wrap{height:4px;width:100%;left:0;bottom:7px;background:#c5c5c5;position:absolute;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:150ms ease-in-out}.dvrContainer .dvr-timeline .motion-wrap{height:4px;width:100%;top:12px;position:absolute;z-index:1000;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .dvr-timeline .icon{width:14px;height:16px;display:block}.dvrContainer .dvr-timeline .motion-wrap>div{position:absolute;height:100%;border-radius:5px}.dvrContainer .dvr-timeline .motion-wrap{position:absolute;height:100%;border-radius:5px}.dvrContainer .dvr-timeline .motion-wrap .tooltiptext{visibility:hidden;width:120px;background:#403f49;color:#fff;text-align:center;padding:5px 0;border-radius:6px;position:absolute;z-index:1;top:-49px;left:0;right:0;font-size:12px;margin:auto}.dvrContainer .dvr-timeline .motion-wrap div:hover .tooltiptext{visibility:visible}.dvrContainer .dvr-timeline .recorded-ranges .range-wrap div{position:absolute;height:100%}.dvrContainer .dvr-timeline .recorded-ranges .range,.dvrContainer .dvr-timeline .recorded-ranges .miss,.dvrContainer .dvr-timeline .recorded-ranges .hit{position:relative}.dvrContainer .dvr-timeline .recorded-ranges .range::before,.dvrContainer .dvr-timeline .recorded-ranges .miss::before,.dvrContainer .dvr-timeline .recorded-ranges .hit::before{content:"";position:absolute;top:-10px;bottom:-10px;left:0;right:0;z-index:-1}.dvrContainer .dvr-timeline .recorded-ranges .hit{background:#117c59;z-index:1}.dvrContainer .dvr-timeline .recorded-ranges .miss{background:#c11030;z-index:0}.dvrContainer .dvr-timeline .recorded-ranges .live{background:#6ba0de;z-index:2}.dvrContainer .dvr-timeline .recorded-ranges .motion{background:#f0ad4e;border:3px solid #f0ad4e;border-radius:4px;box-shadow:4px 2px 5px 1px rgba(0,0,0,.3411764706)}.dvrContainer .dvr-timeline .time-markers{display:block;position:relative;width:100%;height:33px;cursor:pointer;pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .dvr-timeline .time-markers span{font-size:12px;line-height:18px;letter-spacing:-0.078px;position:absolute;color:#fff;white-space:nowrap;transform:translateX(-50%);top:11px;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .dvr-timeline .time-markers span.day{top:11px;font-weight:500}.dvrContainer .dvr-timeline .time-markers span .marker{position:absolute;height:8px;top:19px;left:calc(50% - 1px);width:1px;background:rgba(255,255,255,.35)}.dvrContainer .dvr-timeline .time-markers span .marker.day{background-color:#ce8a13}.dvrContainer .dvr-timeline .dvr-marker-left,.dvrContainer .dvr-timeline .dvr-marker-right{cursor:e-resize;display:block;width:15px;height:26px;position:absolute;top:-15px;display:none}.dvrContainer .dvr-timeline .dvr-marker-left{left:0;height:70px;margin-left:0px}.dvrContainer .dvr-timeline .dvr-marker-left svg{margin:38px 0 0 -16px;transform:scale(-2, 2);-webkit-transform:scale(-2, 2)}.dvrContainer .dvr-timeline .dvr-marker-right{width:12px;height:70px}.dvrContainer .dvr-timeline .dvr-marker-right svg{margin:38px 0 0 4px;transform:scale(2, 2);-webkit-transform:scale(2, 2)}.dvrContainer .dvr-timeline .play-marker{width:10px;height:10px;background:#fff;opacity:.9;border-radius:5px;top:10px}.dvrContainer .dvr-timeline .progress-wrapper .progress-bar{position:absolute;float:none}.dvrContainer .dvr-timeline .progress-wrapper .progress-bar-success{background:#209a60}.dvrContainer .dvr-timeline .progress-wrapper .progress-bar-danger{background:#ce2738}.dvrContainer .dvr-timeline .progress-wrapper .progress-bar-info{background:#6ba0de}.dvrContainer .dvr-timeline.closed{width:48px;height:48px;border-radius:50%;margin:16px;overflow:hidden;box-shadow:2px 2px 3px 1px rgba(0,0,0,.45)}.dvrContainer #forOverlays{display:flex;justify-content:center;align-items:center}.dvrContainer .downloadBlock{position:absolute;bottom:130px;z-index:3;display:flex;justify-content:center;align-items:center;flex-wrap:nowrap;height:48px;max-height:48px;padding:12px;margin:0 16px;border-radius:6px;border:1px solid rgba(235,235,245,.1);background:#212329;box-sizing:border-box}.dvrContainer .downloadBlock button.download{height:32px;width:auto;background:none;border:0;padding:0;margin:0;display:flex;box-sizing:border-box;align-items:center;justify-content:center}.dvrContainer .downloadBlock button.download:hover a:hover{background:#24bf74}.dvrContainer .downloadBlock button.download a{width:100%;height:100%}.dvrContainer .downloadBlock a.download{min-width:auto}.dvrContainer .downloadBlock a.carret{position:relative;width:16px;min-width:auto;padding:8px 6px;background:#209c61;border-radius:0 4px 4px 0;border-left:1px solid #188451}.dvrContainer .downloadBlock a.carret:before{color:#fff;display:inline-block;width:0;height:0;margin-left:-2px;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid rgba(0,0,0,0);border-bottom:0;border-left:.3em solid rgba(0,0,0,0)}.dvrContainer .downloadBlock a.carret div{position:absolute;bottom:30px;right:0;opacity:0;height:0;width:0;background:#56595e;box-shadow:2px 2px 2px 2px rgba(0,0,0,.2117647059);border-radius:2px;z-index:44}.dvrContainer .downloadBlock a.carret div ul{list-style-type:none;margin:0;padding:0}.dvrContainer .downloadBlock a.carret div ul li{padding:8px 12px;white-space:nowrap;text-align:left}.dvrContainer .downloadBlock a.carret div ul li:hover{background:#7e8186}.dvrContainer .downloadBlock a.carret:hover div{width:auto;height:auto;opacity:1}.dvrContainer .clear{width:100%;clear:both}.dvrContainer .btn{outline:none !important}.dvrContainer .dvr-player .failure-message{color:#c12e2a;padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee;margin-left:30px;margin-right:30px}.dvrContainer .dvr-player{height:100%}.dvrContainer .dvr-player-wrapper{display:block;width:100%;position:absolute;left:0;right:0;top:0}.dvrContainer .dvr-player-wrapper .no-live-wrapper{margin:0 auto}.dvrContainer .dvr-player-wrapper>div{margin:0 auto;max-width:100%;max-height:100%}.dvrContainer ::-webkit-scrollbar{width:12px;height:12px}.dvrContainer ::-webkit-scrollbar-track{background:rgba(0,0,0,0);border:none}.dvrContainer ::-webkit-scrollbar-thumb{background:rgba(0,0,0,.4);border:none}.dvrContainer .dvr-player-wrapper{display:block;justify-content:center;align-items:center;overflow:hidden;width:100%;position:absolute;left:0;right:0;top:0}.dvrContainer .dvr-player-wrapper:focus{outline:0}.dvrContainer .clickToPlay{display:flex;align-items:center;justify-content:center;width:160px;height:160px;opacity:.8;margin:auto;cursor:pointer}.dvrContainer .clickToPlay:hover{opacity:1}.dvrContainer .clickToPlay svg{fill:#fff}.dvrContainer .zIndexMax{z-index:999}.dvrContainer .clickToRestart{display:flex;align-items:center;justify-content:center;width:160px;height:160px;opacity:.8;margin:auto;cursor:pointer;z-index:10}.dvrContainer .clickToRestart:hover{opacity:1}.dvrContainer .clickToRestart span{font-size:136px;color:#fff}.dvrContainer .resetZoomBtn{position:absolute;padding:4px;margin:0;right:12px;top:calc(50% - 8px);width:32px;height:32px;border-radius:4px;border:none;cursor:pointer;background:#66666d;color:#fff;outline:none;z-index:49;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrContainer .resetZoomBtn:hover{background:#209c61}.dvrContainer .zoomWrapper{max-height:100%;position:relative;height:100%;transition:150ms ease-in-out}.dvrContainer .flexTransform{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:center;justify-content:center}.dvrContainer .pause-wrapper{position:absolute;z-index:48;font-size:100px;font-weight:500;color:#fff;left:calc(50% - 30px);top:calc(50% - 50px)}.dvrContainer .no-live-wrapper{position:absolute;top:0;left:0;z-index:46;font-size:14px;color:#fff;width:100%;height:100%;text-align:center;display:flex;justify-content:center;align-items:center;flex-direction:column;pointer-events:none}.dvrContainer .no-live-wrapper p{margin-bottom:0}.dvrContainer .no-live-wrapper p:first-child{margin-top:0}.dvrContainer .btn--rightmost{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important;border-left:1px solid rgba(255,255,255,.2) !important}.dvrContainer .btn--leftmost{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;border-right:1px solid rgba(0,0,0,.2) !important}.dvrContainer .timeline__timelineView{display:block;position:relative;overflow:hidden;width:100%;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .timeline__timelineView .line_wrapper{position:relative;transition:150ms ease-in-out}.dvrContainer .timeline__timelineView .line_wrapper.large{height:48px}.dvrContainer .timeline__timelineView .line_wrapper.large .recorded-ranges{height:100%}.dvrContainer .timeline__timelineView .line_wrapper.large .range-wrap{height:39px}.dvrContainer .timeline__timelineView .line_wrapper.large .motion-wrap{top:33px;height:12px;z-index:45}.dvrContainer .timeline__timelineView .line_wrapper.large .now-marker{top:2px}.dvrContainer .timeline__timelineView .line_wrapper.large .now-marker div{width:3px;height:39px;border-radius:4px}.dvrContainer .timeline__timelineView .line_wrapper .now-marker{position:absolute;top:calc(50% - 8px);transform:matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);z-index:6}.dvrContainer .timeline__timelineView .line_wrapper .now-marker div{position:absolute;z-index:5;height:14px;width:14px;margin-left:-7px;border-radius:50%;background:#fff;box-shadow:1px 1px 2px 2px rgba(0,0,0,.1450980392)}.dvrContainer .markers_wrapper{position:relative;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .timeline__zoomoutControl{display:inline-block;vertical-align:top}.dvrContainer .timeline__zoominControl{display:inline-block;vertical-align:top}.dvrContainer .timeline__seekLeftControl{display:inline-block;vertical-align:top}.dvrContainer .timeline__seekRightControl{display:inline-block;vertical-align:top}.dvrContainer .volume{width:100px;height:32px;background-color:#33323a;position:relative;border-radius:0 4px 4px 0;overflow:hidden;cursor:pointer}.dvrContainer .volume .volumePos{position:absolute;top:0;left:0;height:32px;background-color:#1da664;z-index:41}.dvrContainer .timeline__speedControls{display:flex;justify-content:center;align-items:center;flex-direction:row;flex-wrap:nowrap;border-radius:4px;width:auto;overflow:hidden;max-height:34px;white-space:nowrap;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrContainer .timeline__speedControls>div{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrContainer .timeline__speedControls.hidden{visibility:hidden;width:0;display:none}.dvrContainer .timeline__speedControls__slower{display:inline-block;vertical-align:middle;border-right-color:#282828 !important}.dvrContainer .timeline__speedControls__currentSpeed{display:inline-block;vertical-align:middle;width:40px;height:30px;line-height:30px;text-align:center;color:#fff;border-top:1px solid #282828;border-bottom:1px solid #605f69;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .timeline__speedControls__faster{display:inline-block;vertical-align:middle}.dvrContainer .timeline__perFrameSeek{display:flex;justify-content:center;align-items:center}.dvrContainer .timeline__perFrameSeek:hover{background-color:#188451 !important}.dvrContainer .timeline__perFrameSeek.enabled{background-color:#1da664}.dvrContainer .timeline__perFrameSeek i{pointer-events:none}.dvrContainer .timeline__perFrameSeek svg{pointer-events:none}.dvrContainer .timeline__timeControl{display:inline-block;vertical-align:top;padding:4px 15px;line-height:26px;color:#fff;background:#66666d;border-radius:4px;text-align:center;min-width:90px;box-sizing:border-box}.dvrContainer .timeline__timeControl__current{color:#fff;text-decoration:none}.dvrContainer .timeline__downloadControls{display:none}.dvrContainer .noDvr_message{color:#fff;margin-left:16px}.dvrContainer .live_message{color:#fff;margin-left:16px;padding:0;border:0;font-size:100%;vertical-align:baseline}.dvrContainer .live_message:before{content:"";display:inline-block;position:relative;width:7px;height:7px;border-radius:3.5px;margin-right:4px;background-color:#ff0101}.dvrContainer input[type=number]{-moz-appearance:textfield}.dvrContainer input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.dvrContainer input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.dvrContainer .timeline__snapshotControl{display:inline-block}.dvrContainer .timeline__calendarControl{display:flex;vertical-align:middle;line-height:12px;box-sizing:border-box;height:32px;padding:0 8px !important;cursor:pointer;overflow:hidden}.dvrContainer .timeline__calendar__current{display:flex;justify-content:end;align-items:center;padding:0 4px;user-select:none}.dvrContainer .timeline__calendar__current i{margin-right:4px;user-select:none}.dvrContainer .timeline__calendarContent{display:block;width:100%;overflow-x:auto;background-color:#504f59}.dvrContainer .timeline__calendarContent .calendar{display:flex;vertical-align:top;width:auto;padding-top:10px;background:#504f59;color:#fff;white-space:nowrap;position:absolute;top:0;bottom:0;z-index:50;padding:8px;width:100%;box-sizing:border-box;border-radius:8px;flex-direction:column;justify-content:center;align-content:center;align-items:center;user-select:none}.dvrContainer .timeline__calendarContent .calendar .month-selection{text-align:center}.dvrContainer .timeline__calendarContent .calendar .calendar_close{position:absolute;font-size:24px;right:-12px;top:-12px;background:#8a8698;border-radius:50%;width:24px;height:24px;text-align:center;line-height:19px;box-shadow:rgba(0,0,0,.4) 0px 1px 22.8px 2px;cursor:pointer;display:flex;justify-content:center;align-items:center;align-content:center}.dvrContainer .timeline__calendarContent .calendar .calendar_close:hover{background:#1da664}.dvrContainer .timeline__calendarContent .calendar .month-change{display:inline-block;vertical-align:top;width:72px;height:32px;line-height:36px;text-align:center;background-position:center center;background-repeat:no-repeat;cursor:pointer}.dvrContainer .timeline__calendarContent .calendar .month-change:active{background-color:rgba(255,255,255,.05)}.dvrContainer .timeline__calendarContent .calendar .month{display:inline-block;vertical-align:top;margin:8px 0;text-align:center;padding:0 24px;border-left:1px solid #56595e;border-right:1px solid #56595e}.dvrContainer .timeline__calendarContent .calendar .month .year{color:#a6a8aa;margin-left:8px}.dvrContainer .timeline__calendarContent .calendar .days{display:flex;vertical-align:top;width:100%;height:85%;max-height:85%;flex-direction:column;align-content:center;justify-content:center;align-items:stretch}.dvrContainer .timeline__calendarContent .calendar .day-names{height:54px;display:flex;flex-direction:row;align-items:center;justify-content:space-between}.dvrContainer .timeline__calendarContent .calendar .day-name{display:inline-block;vertical-align:top;width:100%;padding:6px 0;color:#1da664;text-align:center}.dvrContainer .timeline__calendarContent .calendar .day-entries{height:64px;display:flex;flex-direction:row;align-items:center;justify-content:space-between}.dvrContainer .timeline__calendarContent .calendar .day-entries:first-child{border-top:1px solid rgba(255,255,255,.15)}.dvrContainer .timeline__calendarContent .calendar .day-entries:nth-child(3){border-top:1px solid rgba(255,255,255,.15)}.dvrContainer .timeline__calendarContent .calendar .day-entry{display:flex;justify-content:center;align-items:center;width:100%;height:100%;text-align:center;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-left:1px solid rgba(255,255,255,.15);border-bottom:1px solid rgba(255,255,255,.15)}.dvrContainer .timeline__calendarContent .calendar .day-entry.available{background:#57b186;cursor:pointer}.dvrContainer .timeline__calendarContent .calendar .day-entry.available:hover{color:#fff;background:blue}.dvrContainer .timeline__calendarContent .calendar .day-entry:last-child{border-right:1px solid rgba(255,255,255,.15)}.dvrContainer .timeline__calendarContent .calendar .day-entry:hover{font-weight:500;color:#000;background:#fff}.dvrContainer .timeline__calendarContent .calendar .day-entry.other-month{color:gray}.dvrContainer .timeline__calendarContent .calendar .day-entry.current-day{background:green}.dvrContainer .timeline__calendarContent .calendar .day-entry.selected-day{background:blue}.dvrContainer .timeline__thumbnail{user-select:none;position:absolute;background:rgba(0,0,0,.4);z-index:48}.dvrContainer .timeline__thumbnail__image{user-select:none;display:block;position:relative;box-sizing:content-box;width:0;height:0}.dvrContainer .timeline__thumbnail__caption{white-space:nowrap;height:24px;line-height:24px;padding:0 6px;background-color:rgba(0,0,0,.5);border-top:1px solid rgba(0,0,0,.4);color:#fff;position:relative;width:auto;display:block}.dvrContainer .dvr-marker-drag{cursor:e-resize}.dvrContainer .dvr-marker-drag.locked{cursor:unset}.dvrContainer .dvr-marker-drag.locked svg path{fill:orange !important;stroke:orange !important}.dvrContainer .dvr-marker-drag .drag-tooltip{background:#fff;color:#000;padding:4px 6px;font-size:12px;border-radius:4px;position:absolute;top:0;left:-28px;z-index:42;opacity:0;transition:300ms ease-in-out;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .dvr-marker-drag .drag-tooltip.visible{opacity:1}@media only screen and (min-width: 240px)and (max-width: 960px){.dvrContainer .menuGroup{flex-wrap:wrap}}@media only screen and (min-device-width: 240px)and (max-device-width: 960px)and (orientation: portrait){.dvrContainer .dvr-timeline{box-sizing:border-box;max-width:100%;width:auto}.dvrContainer .dvr-timeline .time-markers span{font-size:10px}.dvrContainer .dvr-timeline .selectionControls{margin:auto -7px auto -7px;width:calc(100% + 14px)}.dvrContainer .dvr-timeline .timeline__timelineView{box-sizing:border-box;width:auto;max-width:calc(100% + 14px);margin:auto -7px auto -7px}.dvrContainer .dvr-timeline .menuGroup{flex-wrap:wrap;margin-bottom:8px}.dvrContainer .dvr-timeline .menuGroup .timeline__timeControl{margin-top:8px;margin-left:16px}.dvrContainer .dvr-timeline .menuGroup .btn{background:none}.dvrContainer .dvr-timeline .menuGroup .separator{width:2px}.dvrContainer .timeline__calendar__current{padding:0;text-align:center;justify-content:center}.dvrContainer .timeline__calendar__current i{text-align:center;margin-right:0}.dvrContainer .volumeBlock:hover .volume{height:100px}.dvrContainer .volumeBlock .volume{width:32px;height:0;position:absolute;bottom:100%;border-radius:4px}.dvrContainer .volumeBlock .volume .volumePos{height:100px;width:32px;bottom:0;top:unset}.dvrContainer .downloadBlock{padding:8px}}@media only screen and (max-device-width: 1024px)and (orientation: landscape){.dvrContainer .dvr-timeline{box-sizing:border-box;max-width:100%;width:auto}.dvrContainer .dvr-timeline .menuGroup button{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .dvr-timeline .menuGroup button i{font-size:10px;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .volumeBlock:hover .volume{height:100px}.dvrContainer .volumeBlock .volume{width:32px;height:0;position:absolute;bottom:100%;border-radius:4px}.dvrContainer .volumeBlock .volume .volumePos{height:100px;width:32px;bottom:0;top:unset}}@media only screen and (min-device-width: 768px)and (max-device-width: 1024px)and (orientation: landscape){.dvrContainer .menuGroup .separator{width:4px}}@media only screen and (min-device-width: 768px)and (max-device-width: 1024px)and (orientation: portrait){.dvrContainer .menuGroup .separator{width:4px}}@media screen and (max-width: 480px){.dvrContainer .timeline__timeControl{padding:4px 8px;min-width:auto}.dvrContainer .volumeBlock:hover .volume{height:100px}.dvrContainer .volumeBlock .volume{width:32px;height:0;position:absolute;bottom:100%;border-radius:4px}.dvrContainer .volumeBlock .volume .volumePos{height:100px;width:32px;bottom:0;top:unset}}@media screen and (min-width: 480px){.dvrContainer .dvr-timeline .btn .dvr-timeline .btn.menu{margin-left:-14px}.dvrContainer .dvr-timeline .btn .dvr-timeline .btn.menuHighlight{background:#1da664;height:48px;max-height:48px;width:48px;padding:0;margin:0;position:absolute;top:0;left:0;z-index:41}.dvrContainer .dvr-timeline .btn .dvr-timeline .btn.menuHighlight:hover{background:#f0ad4e}.dvrContainer .timeline__timeControl{padding:4px 12px;min-width:auto}.dvrContainer .timeline__calendarControl{visibility:visible}.dvrContainer .timeline__calendarControl.inactive{visibility:hidden}.dvrContainer .timeline__calendar__current{padding:0}.dvrContainer .timeline__thumbnail{transform:none}.dvrContainer .timeline__thumbnail__image{height:160px}.dvrContainer .timeline__calendar__current{padding:0;text-align:center;justify-content:center}.dvrContainer .timeline__calendar__current i{text-align:center;margin-right:0}}@media screen and (min-width: 568px){.dvrContainer .dvr-timeline .btn.menu{margin-left:-8px}.dvrContainer .dvr-timeline .btn.menuHighlight{margin-left:0}}@media screen and (min-width: 720px){.dvrContainer .timeLineCursor{position:absolute;top:34px;width:1px;height:6px;background-color:orange;pointer-events:none}.dvrContainer .dvr-timeline .btn.menu{margin-left:-14px}.dvrContainer .dvr-timeline .btn.menu.menuHighlight{margin-left:0}.dvrContainer .timeline__timeControl{padding:4px 12px;min-width:auto}.dvrContainer .timeline__downloadControls{display:inline-block}.dvrContainer .timeline__calendar__current i{margin-right:4px}.dvrContainer .dvr-timeline .dvr-marker-left,.dvrContainer .dvr-timeline .dvr-marker-right{display:block}}@media screen and (max-width: 1280px){.dvrContainer .menuGroup .btn{padding:0 !important;text-align:center;display:flex;justify-content:center;align-items:center}.dvrContainer .menuGroup button{width:28px !important;height:28px !important;line-height:28px;min-width:28px}.dvrContainer .menuGroup button.download{background:#209c61 !important;border-radius:4px}.dvrContainer .menuGroup button i{display:flex;justify-content:center;align-items:center}.dvrContainer .menuGroup button i svg{width:12px !important;height:12px !important}.dvrContainer .menuGroup .timeline__speedControls{display:flex;height:28px;flex-wrap:nowrap;justify-content:center;align-items:center}.dvrContainer .menuGroup .timeline__calendarControl{height:28px;padding:0 2px !important}.dvrContainer .menuGroup .timeline__calendarControl i{width:20px !important;height:20px !important}.dvrContainer .menuGroup .timeline__calendarControl i svg{width:20px !important;height:20px !important}.dvrContainer .menuGroup .timeline__calendarControl span{font-size:10px}.dvrContainer .menuGroup .volumeBlock svg{width:20px !important;height:20px !important}.dvrContainer .menuGroup .volume{height:28px}.dvrContainer .menuGroup .share{height:28px}}@media screen and (min-width: 1000px){.dvrContainer .dvr-timeline .btn.menu{margin-left:-30px}.dvrContainer .dvr-timeline .btn.menuHighlight i{width:48px !important;margin-left:0}.dvrContainer button.btn{height:32px}.dvrContainer button.btn i{line-height:1;display:flex;align-items:center;justify-content:center}}.dvrContainer .spinnerThreeBounce{position:absolute;margin:0 auto;width:70px;text-align:center;z-index:48;left:0;right:0;margin-left:auto;margin-right:auto;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.dvrContainer .bounce{width:18px;height:18px;background-color:#fff;border-radius:100%;display:inline-block;-webkit-animation-name:bouncedelay;animation-name:bouncedelay;-webkit-animation-duration:1.4s;animation-duration:1.4s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-fill-mode:both;animation-fill-mode:both}@-webkit-keyframes bouncedelay{0%,80%,100%{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes bouncedelay{0%,80%,100%{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}.dvrContainer .bounce1{-webkit-animation-delay:-0.32s;animation-delay:-0.32s}.dvrContainer .bounce2{-webkit-animation-delay:-0.16s;animation-delay:-0.16s}.dvrContainer .Loading{position:absolute;top:calc(50% - 10px);left:calc(50% - 35px);z-index:1;visibility:hidden}.dvrContainer .Loading.visible{visibility:visible}.dvrContainer .PlayerInstance{height:auto;position:relative;box-sizing:border-box;order:999;opacity:1}.dvrContainer .PlayerInstance.hidden{width:0 !important;height:0 !important;opacity:0}.dvrContainer .PlayerInstance.fullscreen{width:100% !important;height:100% !important}.dvrContainer .PlayerInstance .dvr-player-wrapper{bottom:0 !important;position:relative;height:100%;max-height:100%;box-sizing:border-box;z-index:0}.dvrContainer .timelineLoading{position:absolute;width:100%;height:100%;text-align:center;z-index:45}.dvrContainer .PlayerInstance .CameraName{position:absolute;top:8px;left:calc(50% - 50px);color:#fff;font-size:20px;z-index:46;background:rgba(0,0,0,.4901960784);padding:8px 16px;border-radius:4px;opacity:0}.dvrContainer .PlayerInstance:hover .CameraName{opacity:1}.dvrContainer .PlayerInstance.visible .CameraName{opacity:1}.dvrContainer .noData{height:auto;position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;color:#fff}.dvrContainer .noData .CameraName{position:absolute;top:8px;left:8px;color:#fff;font-size:20px;z-index:46;background:rgba(0,0,0,.4901960784);padding:8px 16px;border-radius:4px;opacity:0}.dvrContainer .noData:hover .CameraName{opacity:1}.dvrContainer .noDvr{color:#fff;font-size:16px;text-align:center;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;width:100%;z-index:48}.dvrContainer .mainPlayer{color:#fff;font-size:16px;text-align:center;position:absolute;right:8px;top:8px;z-index:40}.dvrContainer .mainPlayer>span{font-size:24px;margin-right:4px;vertical-align:middle;color:#1da664}.dvrContainer .rangesLoading{position:absolute;z-index:48;left:8px;bottom:2px;color:#fff;opacity:0}.dvrContainer .rangesLoading.visible{opacity:1}.dvrContainer .rangesLoading span{margin-right:4px;color:red}.dvrContainer .flashingPopup{color:#fff;background:rgba(0,0,0,.45);padding:8px 12px;border-radius:8px;position:absolute;bottom:20%;left:0;right:0;text-align:center;max-width:200px;margin:0 auto;z-index:20}.dvrContainer #forClearout{z-index:0}.dvrContainer .ptzButton{cursor:pointer;font-size:9px;border-radius:5px;display:flex;justify-content:center;align-items:center;border:none;color:#fff;width:36px;height:36px;background:rgba(87,87,90,.8)}.dvrContainer .ptzButton:hover{background:rgba(87,87,90,.9)}.dvrContainer .ptzWrapper{position:absolute;width:120px;right:4px;top:12px;z-index:1}@media(min-width: 768px){.dvrContainer .ptzWrapper{top:40px}}.dvrContainer .ptzNavigation{display:flex;flex-wrap:wrap}.dvrContainer .ptzNavigation>div{margin:2px}.dvrContainer .ptzZoom{margin:0 10px 10px;display:flex;justify-content:space-between}.live-player-volume-animation-mask{stroke:#000;stroke-opacity:.15;stroke-width:2px;fill:none}.motionTooltip p{margin:0}.motionTooltip h2{margin:0;font-size:11px}.testTimeline{width:100%;height:36px;margin-bottom:16px}.testTimeline .track{width:100%;background:#18181b;height:16px;border-radius:4px;position:relative;overflow:hidden}.testTimeline .track .buffered{position:absolute;background:#1da664;height:16px;top:0;z-index:2}.testTimeline .track .hoverMarker{position:absolute;background:#ff0101;width:3px;height:16px;top:0;z-index:3}.testTimeline .track .nowMarker{position:absolute;background:#fff;width:2px;height:16px;top:0;z-index:2}.testTimeline .time{color:#fff;float:right;margin-bottom:4px}',""]),e.exports=t},function(e,t,n){var r=n(78),i=n(1115);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(79),i=n(1116),o=n(1117),a=n(1118),s=n(1119),u=n(1120);t=r(!1);var c=i(o),l=i(o,{hash:"#iefix"}),f=i(a),d=i(s),h=i(u);t.push([e.i,"@font-face {\n font-family: 'icomoon';\n src: url("+c+");\n src: url("+l+") format('embedded-opentype'),\n url("+f+") format('truetype'),\n url("+d+") format('woff');\n font-weight: normal;\n font-style: normal;\n font-display: block;\n}\n\n[class^='icon-'],\n[class*=' icon-'] {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: 'icomoon' !important;\n speak: never;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n@font-face {\n font-family: \"Material Symbols Outlined\";\n font-style: normal;\n font-weight: 100 700;\n font-display: block;\n src: url("+h+") format(\"woff2\");\n}\n.material-symbols-outlined {\n font-family: \"Material Symbols Outlined\";\n font-weight: normal;\n font-style: normal;\n font-size: 24px;\n line-height: 1;\n letter-spacing: normal;\n text-transform: none;\n display: inline-block;\n white-space: nowrap;\n word-wrap: normal;\n direction: ltr;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-feature-settings: \"liga\";\n}\n\n.icon-timelapse:before {\n content: '\\e900';\n}\n.icon-arrow_player:before {\n content: '\\e901';\n}\n.icon-audio_streams:before {\n content: '\\e902';\n}\n.icon-back:before {\n content: '\\e903';\n}\n.icon-bitrate_streams:before {\n content: '\\e904';\n}\n.icon-clients:before {\n content: '\\e905';\n}\n.icon-close:before {\n content: '\\e906';\n}\n.icon-copy_embed:before {\n content: '\\e907';\n}\n.icon-date_player:before {\n content: '\\e908';\n}\n.icon-date_two_player:before {\n content: '\\e909';\n}\n.icon-down:before {\n content: '\\e90a';\n}\n.icon-export_player:before {\n content: '\\e90b';\n}\n.icon-export:before {\n content: '\\e90c';\n}\n.icon-full:before {\n content: '\\e90d';\n}\n.icon-hd:before {\n content: '\\e90e';\n}\n.icon-info_player:before {\n content: '\\e90f';\n}\n.icon-not_working_player:before {\n content: '\\e910';\n}\n.icon-one:before {\n content: '\\e911';\n}\n.icon-pause_player:before {\n content: '\\e912';\n}\n.icon-play_player:before {\n content: '\\e913';\n}\n.icon-screen_player:before {\n content: '\\e914';\n}\n.icon-screen:before {\n content: '\\e915';\n}\n.icon-settings_player:before {\n content: '\\e916';\n}\n.icon-share_player:before {\n content: '\\e917';\n}\n.icon-sound_0:before {\n content: '\\e918';\n}\n.icon-sound_1:before {\n content: '\\e919';\n}\n.icon-speed:before {\n content: '\\e91a';\n}\n.icon-subtitles_player:before {\n content: '\\e91b';\n}\n.icon-track_player:before {\n content: '\\e91c';\n}\n.icon-url:before {\n content: '\\e91d';\n}\n.icon-video:before {\n content: '\\e91e';\n}\n.icon-volume_off:before {\n content: '\\e91f';\n}\n.icon-volume_two:before {\n content: '\\e920';\n}\n.icon-volume:before {\n content: '\\e921';\n}\n",""]),e.exports=t},function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},function(e,t,n){"use strict";n.r(t),t.default=n.p+"70a2619575920ff5f3e768452466040b.eot"},function(e,t,n){"use strict";n.r(t),t.default=n.p+"d06a9185c1632b7a9a255a25bb9f901d.ttf"},function(e,t,n){"use strict";n.r(t),t.default=n.p+"46d10a04f3c077bc6f511a1f17e4108c.woff"},function(e,t,n){"use strict";n.r(t),t.default=n.p+"bd6b4a7bfe5141f1366f23bc48a9d006.woff2"},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"FunctionToString",(function(){return y})),n.d(r,"InboundFilters",(function(){return j}));var i,o,a=n(40),s=n.n(a),u=n(41),c=n.n(u),l=n(8),f=n.n(l),d=(n(537),n(1014),n(1015),n(0)),h=n.n(d),p=n(148),g=n.n(p),m=n(4),v=n(99),y=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){i=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object(v.f)(this)||this;return i.apply(n,e)}},e.id="FunctionToString",e}(),b="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,_=n(73),w=Object(_.a)(),E=["debug","info","warn","error","log","assert"];function S(e){var t=Object(_.a)();if(!("console"in t))return e();var n=t.console,r={};E.forEach((function(e){var i=n[e]&&n[e].__sentry_original__;e in t.console&&i&&(r[e]=n[e],n[e]=i)}));try{return e()}finally{Object.keys(r).forEach((function(e){n[e]=r[e]}))}}function x(){var e=!1,t={enable:function(){e=!0},disable:function(){e=!1}};return b?E.forEach((function(n){t[n]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e&&S((function(){var e;(e=w.console)[n].apply(e,Object(m.d)(["Sentry Logger ["+n+"]:"],t))}))}})):E.forEach((function(e){t[e]=function(){}})),t}o=b?Object(_.b)("logger",x):x();var k=n(174);function T(){var e=Object(_.a)(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function O(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function R(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function P(e){var t=e.message,n=e.event_id;if(t)return t;var r=R(e);return r?r.type&&r.value?r.type+": "+r.value:r.type||r.value||n||"<unknown>":n||"<unknown>"}function A(e,t,n){var r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function C(e,t){var n=R(e);if(n){var r=n.mechanism;if(n.mechanism=Object(m.a)(Object(m.a)(Object(m.a)({},{type:"generic",handled:!0}),r),t),t&&"data"in t){var i=Object(m.a)(Object(m.a)({},r&&r.data),t.data);n.mechanism.data=i}}}function L(e){if(e&&e.__sentry_captured__)return!0;try{Object(v.a)(e,"__sentry_captured__",!0)}catch(e){}return!1}var D="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,I=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],j=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(t,n){t((function(t){var r=n();if(r){var i=r.getIntegration(e);if(i){var a=r.getClient(),s=a?a.getOptions():{};return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return D&&o.warn("Event dropped due to being internal Sentry Error.\nEvent: "+P(e)),!0;if(function(e,t){if(!t||!t.length)return!1;return function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,r=void 0===n?"":n,i=t.value,a=void 0===i?"":i;return[""+a,r+": "+a]}catch(t){return D&&o.error("Cannot extract message for event "+P(e)),[]}return[]}(e).some((function(e){return t.some((function(t){return Object(k.a)(e,t)}))}))}(e,t.ignoreErrors))return D&&o.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+P(e)),!0;if(function(e,t){if(!t||!t.length)return!1;var n=N(e);return!!n&&t.some((function(e){return Object(k.a)(n,e)}))}(e,t.denyUrls))return D&&o.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+P(e)+".\nUrl: "+N(e)),!0;if(!function(e,t){if(!t||!t.length)return!0;var n=N(e);return!n||t.some((function(e){return Object(k.a)(n,e)}))}(e,t.allowUrls))return D&&o.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+P(e)+".\nUrl: "+N(e)),!0;return!1}(t,function(e,t){void 0===e&&(e={});void 0===t&&(t={});return{allowUrls:Object(m.d)(e.whitelistUrls||[],e.allowUrls||[],t.whitelistUrls||[],t.allowUrls||[]),denyUrls:Object(m.d)(e.blacklistUrls||[],e.denyUrls||[],t.blacklistUrls||[],t.denyUrls||[]),ignoreErrors:Object(m.d)(e.ignoreErrors||[],t.ignoreErrors||[],I),ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(i._options,s))?null:t}}return t}))},e.id="InboundFilters",e}();function M(e){void 0===e&&(e=[]);for(var t=e.length-1;t>=0;t--){var n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}function N(e){try{if(e.stacktrace)return M(e.stacktrace.frames);var t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?M(t):null}catch(t){return D&&o.error("Cannot extract url for event "+P(e)),null}}var F=n(527),U=n(221),B="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,q=n(45);function $(e){return new z((function(t){t(e)}))}function V(e){return new z((function(t,n){n(e)}))}var z=function(){function e(e){var t=this;this._state=0,this._handlers=[],this._resolve=function(e){t._setResult(1,e)},this._reject=function(e){t._setResult(2,e)},this._setResult=function(e,n){0===t._state&&(Object(q.n)(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._executeHandlers=function(){if(0!==t._state){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e[0]||(1===t._state&&e[1](t._value),2===t._state&&e[2](t._value),e[0]=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.prototype.then=function(t,n){var r=this;return new e((function(e,i){r._handlers.push([!1,function(n){if(t)try{e(t(n))}catch(e){i(e)}else e(n)},function(t){if(n)try{e(n(t))}catch(e){i(e)}else i(t)}]),r._executeHandlers()}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var i,o;return n.then((function(e){o=!1,i=e,t&&t()}),(function(e){o=!0,i=e,t&&t()})).then((function(){o?r(i):e(i)}))}))},e}(),W=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=Object(m.d)(t._breadcrumbs),n._tags=Object(m.a)({},t._tags),n._extra=Object(m.a)({},t._extra),n._contexts=Object(m.a)({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=Object(m.d)(t._eventProcessors),n._requestSession=t._requestSession),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.getRequestSession=function(){return this._requestSession},e.prototype.setRequestSession=function(e){return this._requestSession=e,this},e.prototype.setTags=function(e){return this._tags=Object(m.a)(Object(m.a)({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=Object(m.a)(Object(m.a)({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=Object(m.a)(Object(m.a)({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=Object(m.a)(Object(m.a)({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=Object(m.a)(Object(m.a)({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e=this.getSpan();return e&&e.transaction},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=Object(m.a)(Object(m.a)({},this._tags),t._tags),this._extra=Object(m.a)(Object(m.a)({},this._extra),t._extra),this._contexts=Object(m.a)(Object(m.a)({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):Object(q.i)(t)&&(t=t,this._tags=Object(m.a)(Object(m.a)({},this._tags),t.tags),this._extra=Object(m.a)(Object(m.a)({},this._extra),t.extra),this._contexts=Object(m.a)(Object(m.a)({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var r=Object(m.a)({timestamp:Object(F.a)()},e);return this._breadcrumbs=Object(m.d)(this._breadcrumbs,[r]).slice(-n),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){if(this._extra&&Object.keys(this._extra).length&&(e.extra=Object(m.a)(Object(m.a)({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=Object(m.a)(Object(m.a)({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=Object(m.a)(Object(m.a)({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=Object(m.a)(Object(m.a)({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=Object(m.a)({trace:this._span.getTraceContext()},e.contexts);var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags=Object(m.a)({transaction:n},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=Object(m.d)(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors(Object(m.d)(G(),this._eventProcessors),e,t)},e.prototype.setSDKProcessingMetadata=function(e){return this._sdkProcessingMetadata=Object(m.a)(Object(m.a)({},this._sdkProcessingMetadata),e),this},e.prototype._notifyEventProcessors=function(e,t,n,r){var i=this;return void 0===r&&(r=0),new z((function(o,a){var s=e[r];if(null===t||"function"!=typeof s)o(t);else{var u=s(Object(m.a)({},t),n);Object(q.n)(u)?u.then((function(t){return i._notifyEventProcessors(e,t,n,r+1).then(o)})).then(null,a):i._notifyEventProcessors(e,u,n,r+1).then(o).then(null,a)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function G(){return Object(_.b)("globalEventProcessors",(function(){return[]}))}function H(e){G().push(e)}var K=function(){function e(e){this.errors=0,this.sid=T(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var t=Object(F.b)();this.timestamp=t,this.started=t,e&&this.update(e)}return e.prototype.update=function(e){if(void 0===e&&(e={}),e.user&&(!this.ipAddress&&e.user.ip_address&&(this.ipAddress=e.user.ip_address),this.did||e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||Object(F.b)(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=32===e.sid.length?e.sid:T()),void 0!==e.init&&(this.init=e.init),!this.did&&e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof e.duration)this.duration=e.duration;else{var t=this.timestamp-this.started;this.duration=t>=0?t:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):"ok"===this.status?this.update({status:"exited"}):this.update()},e.prototype.toJSON=function(){return Object(v.c)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},e}(),Y=function(){function e(e,t,n){void 0===t&&(t=new W),void 0===n&&(n=4),this._version=n,this._stack=[{}],this.getStackTop().scope=t,e&&this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=W.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=t&&t.event_id?t.event_id:T(),r=t;if(!t){var i=void 0;try{throw new Error("Sentry syntheticException")}catch(e){i=e}r={originalException:e,syntheticException:i}}return this._invokeClient("captureException",e,Object(m.a)(Object(m.a)({},r),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=n&&n.event_id?n.event_id:T(),i=n;if(!n){var o=void 0;try{throw new Error(e)}catch(e){o=e}i={originalException:e,syntheticException:o}}return this._invokeClient("captureMessage",e,t,Object(m.a)(Object(m.a)({},i),{event_id:r})),r},e.prototype.captureEvent=function(e,t){var n=t&&t.event_id?t.event_id:T();return"transaction"!==e.type&&(this._lastEventId=n),this._invokeClient("captureEvent",e,Object(m.a)(Object(m.a)({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),r=n.scope,i=n.client;if(r&&i){var o=i.getOptions&&i.getOptions()||{},a=o.beforeBreadcrumb,s=void 0===a?null:a,u=o.maxBreadcrumbs,c=void 0===u?100:u;if(!(c<=0)){var l=Object(F.a)(),f=Object(m.a)({timestamp:l},e),d=s?S((function(){return s(f,t)})):f;null!==d&&r.addBreadcrumb(d,c)}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,r=t.client;n&&r&&e(n)},e.prototype.run=function(e){var t=X(this);try{e(this)}finally{X(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return B&&o.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.captureSession=function(e){if(void 0===e&&(e=!1),e)return this.endSession();this._sendSessionUpdate()},e.prototype.endSession=function(){var e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&n.close(),this._sendSessionUpdate(),t&&t.setSession()},e.prototype.startSession=function(e){var t=this.getStackTop(),n=t.scope,r=t.client,i=r&&r.getOptions()||{},o=i.release,a=i.environment,s=(Object(_.a)().navigator||{}).userAgent,u=new K(Object(m.a)(Object(m.a)(Object(m.a)({release:o,environment:a},n&&{user:n.getUser()}),s&&{userAgent:s}),e));if(n){var c=n.getSession&&n.getSession();c&&"ok"===c.status&&c.update({status:"exited"}),this.endSession(),n.setSession(u)}return u},e.prototype._sendSessionUpdate=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var r=t.getSession&&t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this.getStackTop(),o=i.scope,a=i.client;a&&a[e]&&(t=a)[e].apply(t,Object(m.d)(n,[o]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Q(),i=r.__SENTRY__;if(i&&i.extensions&&"function"==typeof i.extensions[e])return i.extensions[e].apply(this,t);B&&o.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function Q(){var e=Object(_.a)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function X(e){var t=Q(),n=ee(t);return te(t,e),n}function J(){var e=Q();return Z(e)&&!ee(e).isOlderThan(4)||te(e,new Y),Object(U.b)()?function(e){try{var t=Q().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return ee(e);if(!Z(n)||ee(n).isOlderThan(4)){var r=ee(e).getStackTop();te(n,new Y(r.client,W.clone(r.scope)))}return ee(n)}catch(t){return ee(e)}}(e):ee(e)}function Z(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function ee(e){return Object(_.b)("hub",(function(){return new Y}),e)}function te(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}var ne=n(285);function re(){if(!("fetch"in Object(_.a)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function ie(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function oe(){if(!re())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}var ae,se=Object(_.a)(),ue={},ce={};function le(e){if(!ce[e])switch(ce[e]=!0,e){case"console":!function(){if(!("console"in se))return;E.forEach((function(e){e in se.console&&Object(v.e)(se.console,e,(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];de("console",{args:n,level:e}),t&&t.apply(se.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in se))return;var e=de.bind(null,"dom"),t=ve(e,!0);se.document.addEventListener("click",t,!1),se.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((function(t){var n=se[t]&&se[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(v.e)(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{var o=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){var s=ve(e);a.handler=s,t.call(this,n,s,i)}a.refCount+=1}catch(e){}return t.call(this,n,r,i)}})),Object(v.e)(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var i=this.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount-=1,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in se))return;var e=XMLHttpRequest.prototype;Object(v.e)(e,"open",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,i=t[1],o=r.__sentry_xhr__={method:Object(q.l)(t[0])?t[0].toUpperCase():t[0],url:t[1]};Object(q.l)(i)&&"POST"===o.method&&i.match(/sentry_key/)&&(r.__sentry_own_request__=!0);var a=function(){if(4===r.readyState){try{o.status_code=r.status}catch(e){}de("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:r})}};return"onreadystatechange"in r&&"function"==typeof r.onreadystatechange?Object(v.e)(r,"onreadystatechange",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return a(),e.apply(r,t)}})):r.addEventListener("readystatechange",a),e.apply(r,t)}})),Object(v.e)(e,"send",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),de("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}();break;case"fetch":!function(){if(!function(){if(!re())return!1;var e=Object(_.a)();if(ie(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=ie(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){b&&o.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t}())return;Object(v.e)(se,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={args:t,fetchData:{method:he(t),url:pe(t)},startTimestamp:Date.now()};return de("fetch",Object(m.a)({},r)),e.apply(se,t).then((function(e){return de("fetch",Object(m.a)(Object(m.a)({},r),{endTimestamp:Date.now(),response:e})),e}),(function(e){throw de("fetch",Object(m.a)(Object(m.a)({},r),{endTimestamp:Date.now(),error:e})),e}))}}))}();break;case"history":!function(){if(e=Object(_.a)(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState,n||!r)return;var e,t,n,r;var i=se.onpopstate;function o(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length>2?t[2]:void 0;if(r){var i=ae,o=String(r);ae=o,de("history",{from:i,to:o})}return e.apply(this,t)}}se.onpopstate=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=se.location.href,r=ae;if(ae=n,de("history",{from:r,to:n}),i)try{return i.apply(this,e)}catch(e){}},Object(v.e)(se.history,"pushState",o),Object(v.e)(se.history,"replaceState",o)}();break;case"error":ye=se.onerror,se.onerror=function(e,t,n,r,i){return de("error",{column:r,error:i,line:n,msg:e,url:t}),!!ye&&ye.apply(this,arguments)};break;case"unhandledrejection":be=se.onunhandledrejection,se.onunhandledrejection=function(e){return de("unhandledrejection",e),!be||be.apply(this,arguments)};break;default:return void(b&&o.warn("unknown instrumentation type:",e))}}function fe(e,t){ue[e]=ue[e]||[],ue[e].push(t),le(e)}function de(e,t){var n,r;if(e&&ue[e])try{for(var i=Object(m.e)(ue[e]||[]),a=i.next();!a.done;a=i.next()){var s=a.value;try{s(t)}catch(t){b&&o.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+Object(ne.b)(s)+"\nError:",t)}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function he(e){return void 0===e&&(e=[]),"Request"in se&&Object(q.g)(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function pe(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in se&&Object(q.g)(e[0],Request)?e[0].url:String(e[0])}var ge,me;function ve(e,t){return void 0===t&&(t=!1),function(n){if(n&&me!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===ge||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(me,n))&&(e({event:n,name:r,global:t}),me=n),clearTimeout(ge),ge=se.setTimeout((function(){ge=void 0}),1e3)}}}var ye=null;var be=null;var _e=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n]);return e});var we=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,_e(r,n.prototype),r}return Object(m.b)(t,e),t}(Error),Ee=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Se(e,t){void 0===t&&(t=!1);var n=e.host,r=e.path,i=e.pass,o=e.port,a=e.projectId;return e.protocol+"://"+e.publicKey+(t&&i?":"+i:"")+"@"+n+(o?":"+o:"")+"/"+(r?r+"/":r)+a}function xe(e){return"user"in e&&!("publicKey"in e)&&(e.publicKey=e.user),{user:e.publicKey||"",protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function ke(e){var t="string"==typeof e?function(e){var t=Ee.exec(e);if(!t)throw new we("Invalid Sentry Dsn: "+e);var n=Object(m.c)(t.slice(1),6),r=n[0],i=n[1],o=n[2],a=void 0===o?"":o,s=n[3],u=n[4],c=void 0===u?"":u,l="",f=n[5],d=f.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),f=d.pop()),f){var h=f.match(/^\d+/);h&&(f=h[0])}return xe({host:s,pass:a,path:l,projectId:f,port:c,protocol:r,publicKey:i})}(e):xe(e);return function(e){if(b){var t=e.port,n=e.projectId,r=e.protocol;if(["protocol","publicKey","host","projectId"].forEach((function(t){if(!e[t])throw new we("Invalid Sentry Dsn: "+t+" missing")})),!n.match(/^\d+$/))throw new we("Invalid Sentry Dsn: Invalid projectId "+n);if(!function(e){return"http"===e||"https"===e}(r))throw new we("Invalid Sentry Dsn: Invalid protocol "+r);if(t&&isNaN(parseInt(t,10)))throw new we("Invalid Sentry Dsn: Invalid port "+t)}}(t),t}var Te=n(1126),Oe=[];function Re(e){return e.reduce((function(e,t){return e.every((function(e){return t.name!==e.name}))&&e.push(t),e}),[])}function Pe(e){var t={};return function(e){var t=e.defaultIntegrations&&Object(m.d)(e.defaultIntegrations)||[],n=e.integrations,r=Object(m.d)(Re(t));Array.isArray(n)?r=Object(m.d)(r.filter((function(e){return n.every((function(t){return t.name!==e.name}))})),Re(n)):"function"==typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);var i=r.map((function(e){return e.name}));return-1!==i.indexOf("Debug")&&r.push.apply(r,Object(m.d)(r.splice(i.indexOf("Debug"),1))),r}(e).forEach((function(e){t[e.name]=e,function(e){-1===Oe.indexOf(e.name)&&(e.setupOnce(H,J),Oe.push(e.name),D&&o.log("Integration installed: "+e.name))}(e)})),Object(v.a)(t,"initialized",!0),t}var Ae="Not capturing exception because it's already been captured.",Ce=function(){function e(e,t){this._integrations={},this._numProcessing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=ke(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this;if(!L(e)){var i=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return r._captureEvent(e,t,n)})).then((function(e){i=e}))),i}D&&o.log(Ae)},e.prototype.captureMessage=function(e,t,n,r){var i=this,o=n&&n.event_id,a=Object(q.j)(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(a.then((function(e){return i._captureEvent(e,n,r)})).then((function(e){o=e}))),o},e.prototype.captureEvent=function(e,t,n){if(!(t&&t.originalException&&L(t.originalException))){var r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){r=e}))),r}D&&o.log(Ae)},e.prototype.captureSession=function(e){this._isEnabled()?"string"!=typeof e.release?D&&o.warn("Discarded session because of missing or non-string release"):(this._sendSession(e),e.update({init:!1})):D&&o.warn("SDK not enabled, will not capture session.")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.getTransport=function(){return this._getBackend().getTransport()},e.prototype.flush=function(e){var t=this;return this._isClientDoneProcessing(e).then((function(n){return t.getTransport().close(e).then((function(e){return n&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=Pe(this._options))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return D&&o.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,r,i=!1,o=!1,a=t.exception&&t.exception.values;if(a){o=!0;try{for(var s=Object(m.e)(a),u=s.next();!u.done;u=s.next()){var c=u.value.mechanism;if(c&&!1===c.handled){i=!0;break}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}}var l="ok"===e.status;(l&&0===e.errors||l&&i)&&(e.update(Object(m.a)(Object(m.a)({},i&&{status:"crashed"}),{errors:e.errors||Number(o||i)})),this.captureSession(e))},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientDoneProcessing=function(e){var t=this;return new z((function(n){var r=0,i=setInterval((function(){0==t._numProcessing?(clearInterval(i),n(!0)):(r+=1,e&&r>=e&&(clearInterval(i),n(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,i=this.getOptions(),o=i.normalizeDepth,a=void 0===o?3:o,s=i.normalizeMaxBreadth,u=void 0===s?1e3:s,c=Object(m.a)(Object(m.a)({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:T()),timestamp:e.timestamp||Object(F.a)()});this._applyClientOptions(c),this._applyIntegrationsMetadata(c);var l=t;n&&n.captureContext&&(l=W.clone(l).update(n.captureContext));var f=$(c);return l&&(f=l.applyToEvent(c,n)),f.then((function(e){return e&&(e.sdkProcessingMetadata=Object(m.a)(Object(m.a)({},e.sdkProcessingMetadata),{normalizeDepth:Object(Te.a)(a)+" ("+typeof a+")"})),"number"==typeof a&&a>0?r._normalizeEvent(e,a,u):e}))},e.prototype._normalizeEvent=function(e,t,n){if(!e)return null;var r=Object(m.a)(Object(m.a)(Object(m.a)(Object(m.a)(Object(m.a)({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return Object(m.a)(Object(m.a)({},e),e.data&&{data:Object(Te.a)(e.data,t,n)})}))}),e.user&&{user:Object(Te.a)(e.user,t,n)}),e.contexts&&{contexts:Object(Te.a)(e.contexts,t,n)}),e.extra&&{extra:Object(Te.a)(e.extra,t,n)});return e.contexts&&e.contexts.trace&&(r.contexts.trace=e.contexts.trace),r.sdkProcessingMetadata=Object(m.a)(Object(m.a)({},r.sdkProcessingMetadata),{baseClientNormalized:!0}),r},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,r=t.release,i=t.dist,o=t.maxValueLength,a=void 0===o?250:o;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=Object(k.d)(e.message,a));var s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=Object(k.d)(s.value,a));var u=e.request;u&&u.url&&(u.url=Object(k.d)(u.url,a))},e.prototype._applyIntegrationsMetadata=function(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=Object(m.d)(e.sdk.integrations||[],t))},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){D&&o.error(e)}))},e.prototype._processEvent=function(e,t,n){var r=this,i=this.getOptions(),o=i.beforeSend,a=i.sampleRate,s=this.getTransport();function u(e,t){s.recordLostEvent&&s.recordLostEvent(e,t)}if(!this._isEnabled())return V(new we("SDK not enabled, will not capture event."));var c="transaction"===e.type;return!c&&"number"==typeof a&&Math.random()>a?(u("sample_rate","event"),V(new we("Discarding event because it's not included in the random sample (sampling rate = "+a+")"))):this._prepareEvent(e,n,t).then((function(n){if(null===n)throw u("event_processor",e.type||"event"),new we("An event processor returned null, will not send event.");return t&&t.data&&!0===t.data.__sentry__||c||!o?n:function(e){var t="`beforeSend` method has to return `null` or a valid event.";if(Object(q.n)(e))return e.then((function(e){if(!Object(q.i)(e)&&null!==e)throw new we(t);return e}),(function(e){throw new we("beforeSend rejected with "+e)}));if(!Object(q.i)(e)&&null!==e)throw new we(t);return e}(o(n,t))})).then((function(t){if(null===t)throw u("before_send",e.type||"event"),new we("`beforeSend` returned `null`, will not send event.");var i=n&&n.getSession&&n.getSession();return!c&&i&&r._updateSessionFromEvent(i,t),r._sendEvent(t),t})).then(null,(function(e){if(e instanceof we)throw e;throw r.captureException(e,{data:{__sentry__:!0},originalException:e}),new we("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._numProcessing+=1,e.then((function(e){return t._numProcessing-=1,e}),(function(e){return t._numProcessing-=1,e}))},e}();!function(){function e(e,t,n){void 0===t&&(t={}),this.dsn=e,this._dsnObject=ke(e),this.metadata=t,this._tunnel=n}e.prototype.getDsn=function(){return this._dsnObject},e.prototype.forceEnvelope=function(){return!!this._tunnel},e.prototype.getBaseApiEndpoint=function(){return De(this._dsnObject)},e.prototype.getStoreEndpoint=function(){return Me(this._dsnObject)},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return Ne(this._dsnObject)},e.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return Fe(this._dsnObject,this._tunnel)}}();function Le(e,t,n){return{initDsn:e,metadata:t||{},dsn:ke(e),tunnel:n}}function De(e){var t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n+(e.path?"/"+e.path:"")+"/api/"}function Ie(e,t){return""+De(e)+e.projectId+"/"+t+"/"}function je(e){return Object(v.h)({sentry_key:e.publicKey,sentry_version:"7"})}function Me(e){return Ie(e,"store")}function Ne(e){return Me(e)+"?"+je(e)}function Fe(e,t){return t||function(e){return Ie(e,"envelope")}(e)+"?"+je(e)}function Ue(e,t){return void 0===t&&(t=[]),[e,t]}function Be(e){var t=Object(m.c)(e,2),n=t[0],r=t[1],i=JSON.stringify(n);return r.reduce((function(e,t){var n=Object(m.c)(t,2),r=n[0],i=n[1],o=Object(q.j)(i)?String(i):JSON.stringify(i);return e+"\n"+JSON.stringify(r)+"\n"+o}),i)}function qe(e){if(e.metadata&&e.metadata.sdk){var t=e.metadata.sdk;return{name:t.name,version:t.version}}}function $e(e,t){return t?(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=Object(m.d)(e.sdk.integrations||[],t.integrations||[]),e.sdk.packages=Object(m.d)(e.sdk.packages||[],t.packages||[]),e):e}function Ve(e,t){var n=qe(t),r="aggregates"in e?"sessions":"session";return[Ue(Object(m.a)(Object(m.a)({sent_at:(new Date).toISOString()},n&&{sdk:n}),!!t.tunnel&&{dsn:Se(t.dsn)}),[[{type:r},e]]),r]}var ze,We=function(){function e(){}return e.prototype.sendEvent=function(e){return $({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},e.prototype.close=function(e){return $(!0)},e}(),Ge=function(){function e(e){this._options=e,this._options.dsn||D&&o.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new we("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new we("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var t=function(e,t){var n=qe(t),r=e.type||"event",i=(e.sdkProcessingMetadata||{}).transactionSampling||{},o=i.method,a=i.rate;return $e(e,t.metadata.sdk),e.tags=e.tags||{},e.extra=e.extra||{},e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baseClientNormalized||(e.tags.skippedNormalization=!0,e.extra.normalizeDepth=e.sdkProcessingMetadata?e.sdkProcessingMetadata.normalizeDepth:"unset"),delete e.sdkProcessingMetadata,Ue(Object(m.a)(Object(m.a)({event_id:e.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),!!t.tunnel&&{dsn:Se(t.dsn)}),[[{type:r,sample_rates:[{id:o,rate:a}]},e]])}(e,Le(this._options.dsn,this._options._metadata,this._options.tunnel));this._newTransport.send(t).then(null,(function(e){D&&o.error("Error while sending event:",e)}))}else this._transport.sendEvent(e).then(null,(function(e){D&&o.error("Error while sending event:",e)}))},e.prototype.sendSession=function(e){if(this._transport.sendSession)if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var t=Le(this._options.dsn,this._options._metadata,this._options.tunnel),n=Object(m.c)(Ve(e,t),1)[0];this._newTransport.send(n).then(null,(function(e){D&&o.error("Error while sending session:",e)}))}else this._transport.sendSession(e).then(null,(function(e){D&&o.error("Error while sending session:",e)}));else D&&o.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new We},e}();!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(ze||(ze={}));function He(e,t,n,r){var i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var Ke=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ye=/\((\S*)(?::(\d+))(?::(\d+))\)/,Qe=[30,function(e){var t=Ke.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var n=Ye.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}var r=Object(m.c)(at(t[1]||"?",t[2]),2),i=r[0];return He(r[1],i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],Xe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Je=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ze=[50,function(e){var t,n=Xe.exec(e);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var r=Je.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}var i=n[3],o=n[1]||"?";return o=(t=Object(m.c)(at(o,i),2))[0],He(i=t[1],o,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],et=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,tt=[40,function(e){var t=et.exec(e);return t?He(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0}],nt=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,rt=[10,function(e){var t=nt.exec(e);return t?He(t[2],t[3]||"?",+t[1]):void 0}],it=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,ot=[20,function(e){var t=it.exec(e);return t?He(t[5],t[3]||t[4]||"?",+t[1],+t[2]):void 0}],at=function(e,t){var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]};function st(e){var t=ct(e),n={type:e&&e.name,value:ft(e)};return t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function ut(e){return{exception:{values:[st(e)]}}}function ct(e){var t=e.stacktrace||e.stack||"",n=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(lt.test(e.message))return 1}return 0}(e);try{return Object(ne.a)(rt,ot,Qe,tt,Ze)(t,n)}catch(e){}return[]}var lt=/Minified React error #\d+;/i;function ft(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function dt(e,t,n,r){var i;if(Object(q.e)(e)&&e.error)return ut(e.error);if(Object(q.a)(e)||Object(q.b)(e)){var o=e;if("stack"in e)i=ut(e);else{var a=o.name||(Object(q.a)(o)?"DOMError":"DOMException"),s=o.message?a+": "+o.message:a;A(i=ht(s,t,n),s)}return"code"in o&&(i.tags=Object(m.a)(Object(m.a)({},i.tags),{"DOMException.code":""+o.code})),i}return Object(q.d)(e)?ut(e):Object(q.i)(e)||Object(q.f)(e)?(C(i=function(e,t,n){var r={exception:{values:[{type:Object(q.f)(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+Object(v.d)(e)}]},extra:{__serialized__:Object(Te.b)(e)}};if(t){var i=ct(t);i.length&&(r.stacktrace={frames:i})}return r}(e,t,r),{synthetic:!0}),i):(A(i=ht(e,t,n),""+e,void 0),C(i,{synthetic:!0}),i)}function ht(e,t,n){var r={message:e};if(n&&t){var i=ct(t);i.length&&(r.stacktrace={frames:i})}return r}function pt(e){var t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return V(new we("Not adding Promise due to buffer limit reached."));var i=r();return-1===t.indexOf(i)&&t.push(i),i.then((function(){return n(i)})).then(null,(function(){return n(i).then(null,(function(){}))})),i},drain:function(e){return new z((function(n,r){var i=t.length;if(!i)return n(!0);var o=setTimeout((function(){e&&e>0&&n(!1)}),e);t.forEach((function(e){$(e).then((function(){--i||(clearTimeout(o),n(!0))}),r)}))}))}}}function gt(e,t){return e[t]||e.all||0}function mt(e,t,n){return void 0===n&&(n=Date.now()),gt(e,t)>n}function vt(e,t,n){var r,i,o,a;void 0===n&&(n=Date.now());var s=Object(m.a)({},e),u=t["x-sentry-rate-limits"],c=t["retry-after"];if(u)try{for(var l=Object(m.e)(u.trim().split(",")),f=l.next();!f.done;f=l.next()){var d=f.value.split(":",2),h=parseInt(d[0],10),p=1e3*(isNaN(h)?60:h);if(d[1])try{for(var g=(o=void 0,Object(m.e)(d[1].split(";"))),v=g.next();!v.done;v=g.next()){s[v.value]=n+p}}catch(e){o={error:e}}finally{try{v&&!v.done&&(a=g.return)&&a.call(g)}finally{if(o)throw o.error}}else s.all=n+p}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}else c&&(s.all=n+function(e,t){void 0===t&&(t=Date.now());var n=parseInt(""+e,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+e);return isNaN(r)?6e4:r-t}(c,n));return s}function yt(e){return e>=200&&e<300?"success":429===e?"rate_limit":e>=400&&e<500?"invalid":e>=500?"failed":"unknown"}function bt(e,t,n){void 0===n&&(n=pt(e.bufferSize||30));var r={};return{send:function(e){var i=function(e){var t=Object(m.c)(e,2),n=Object(m.c)(t[1],1);return Object(m.c)(n[0],1)[0].type}(e),o="event"===i?"error":i,a={category:o,body:Be(e)};return mt(r,o)?V({status:"rate_limit",reason:_t(r,o)}):n.add((function(){return t(a).then((function(e){var t=e.body,n=e.headers,i=e.reason,a=yt(e.statusCode);return n&&(r=vt(r,n)),"success"===a?$({status:a,reason:i}):V({status:a,reason:i||t||("rate_limit"===a?_t(r,o):"Unknown transport error")})}))}))},flush:function(e){return n.drain(e)}}}function _t(e,t){return"Too many "+t+" requests, backing off until: "+new Date(gt(e,t)).toISOString()}var wt,Et="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,St=Object(_.a)();function xt(){if(wt)return wt;if(ie(St.fetch))return wt=St.fetch.bind(St);var e=St.document,t=St.fetch;if(e&&"function"==typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){Et&&o.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return wt=t.bind(St)}function kt(e,t){if("[object Navigator]"===Object.prototype.toString.call(St&&St.navigator)&&"function"==typeof St.navigator.sendBeacon)return St.navigator.sendBeacon.bind(St.navigator)(e,t);if(re()){var n=xt();n(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,(function(e){console.error(e)}))}else;}function Tt(e){return"event"===e?"error":e}var Ot=Object(_.a)(),Rt=function(){function e(e){var t=this;this.options=e,this._buffer=pt(30),this._rateLimits={},this._outcomes={},this._api=Le(e.dsn,e._metadata,e.tunnel),this.url=Ne(this._api.dsn),this.options.sendClientReports&&Ot.document&&Ot.document.addEventListener("visibilitychange",(function(){"hidden"===Ot.document.visibilityState&&t._flushOutcomes()}))}return e.prototype.sendEvent=function(e){return this._sendRequest(function(e,t){var n,r=qe(t),i=e.type||"event",o="transaction"===i||!!t.tunnel,a=(e.sdkProcessingMetadata||{}).transactionSampling||{},s=a.method,u=a.rate;$e(e,t.metadata.sdk),e.tags=e.tags||{},e.extra=e.extra||{},e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baseClientNormalized||(e.tags.skippedNormalization=!0,e.extra.normalizeDepth=e.sdkProcessingMetadata?e.sdkProcessingMetadata.normalizeDepth:"unset"),delete e.sdkProcessingMetadata;try{n=JSON.stringify(e)}catch(t){e.tags.JSONStringifyError=!0,e.extra.JSONStringifyError=t;try{n=JSON.stringify(Object(Te.a)(e))}catch(e){var c=e;n=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:c.message,stack:c.stack}})}}var l={body:n,type:i,url:o?Fe(t.dsn,t.tunnel):Ne(t.dsn)};if(o){var f=Ue(Object(m.a)(Object(m.a)({event_id:e.event_id,sent_at:(new Date).toISOString()},r&&{sdk:r}),!!t.tunnel&&{dsn:Se(t.dsn)}),[[{type:i,sample_rates:[{id:s,rate:u}]},l.body]]);l.body=Be(f)}return l}(e,this._api),e)},e.prototype.sendSession=function(e){return this._sendRequest(function(e,t){var n=Object(m.c)(Ve(e,t),2),r=n[0],i=n[1];return{body:Be(r),type:i,url:Fe(t.dsn,t.tunnel)}}(e,this._api),e)},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype.recordLostEvent=function(e,t){var n;if(this.options.sendClientReports){var r=Tt(t)+":"+e;Et&&o.log("Adding outcome: "+r),this._outcomes[r]=(null!=(n=this._outcomes[r])?n:0)+1}},e.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var e=this._outcomes;if(this._outcomes={},Object.keys(e).length){Et&&o.log("Flushing outcomes:\n"+JSON.stringify(e,null,2));var t,n,r,i=Fe(this._api.dsn,this._api.tunnel),a=Object.keys(e).map((function(t){var n=Object(m.c)(t.split(":"),2),r=n[0];return{reason:n[1],category:r,quantity:e[t]}})),s=(t=a,Ue((n=this._api.tunnel&&Se(this._api.dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:r||Object(F.a)(),discarded_events:t}]]));try{kt(i,Be(s))}catch(e){Et&&o.error(e)}}else Et&&o.log("No outcomes to flush")}},e.prototype._handleResponse=function(e){var t=e.requestType,n=e.response,r=e.headers,i=e.resolve,a=e.reject,s=yt(n.status);this._rateLimits=vt(this._rateLimits,r),this._isRateLimited(t)&&Et&&o.warn("Too many "+t+" requests, backing off until: "+this._disabledUntil(t)),"success"!==s?a(n):i({status:s})},e.prototype._disabledUntil=function(e){var t=Tt(e);return new Date(gt(this._rateLimits,t))},e.prototype._isRateLimited=function(e){var t=Tt(e);return mt(this._rateLimits,t)},e}(),Pt=function(e){function t(t,n){void 0===n&&(n=xt());var r=e.call(this,t)||this;return r._fetch=n,r}return Object(m.b)(t,e),t.prototype._sendRequest=function(e,t){var n=this;if(this._isRateLimited(e.type))return this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var r={body:e.body,method:"POST",referrerPolicy:oe()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add((function(){return new z((function(t,i){n._fetch(e.url,r).then((function(r){var o={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:e.type,response:r,headers:o,resolve:t,reject:i})})).catch(i)}))})).then(void 0,(function(t){throw t instanceof we?n.recordLostEvent("queue_overflow",e.type):n.recordLostEvent("network_error",e.type),t}))},t}(Rt);var At=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.b)(t,e),t.prototype._sendRequest=function(e,t){var n=this;return this._isRateLimited(e.type)?(this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429})):this._buffer.add((function(){return new z((function(t,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var o={"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")};n._handleResponse({requestType:e.type,response:i,headers:o,resolve:t,reject:r})}},i.open("POST",e.url),n.options.headers)Object.prototype.hasOwnProperty.call(n.options.headers,o)&&i.setRequestHeader(o,n.options.headers[o]);i.send(e.body)}))})).then(void 0,(function(t){throw t instanceof we?n.recordLostEvent("queue_overflow",e.type):n.recordLostEvent("network_error",e.type),t}))},t}(Rt),Ct=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.b)(t,e),t.prototype.eventFromException=function(e,t){return function(e,t,n){var r=dt(e,t&&t.syntheticException||void 0,n);return C(r),r.level=ze.Error,t&&t.event_id&&(r.event_id=t.event_id),$(r)}(e,t,this._options.attachStacktrace)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=ze.Info),function(e,t,n,r){void 0===t&&(t=ze.Info);var i=ht(e,n&&n.syntheticException||void 0,r);return i.level=t,n&&n.event_id&&(i.event_id=n.event_id),$(i)}(e,t,n,this._options.attachStacktrace)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t,n,r=Object(m.a)(Object(m.a)({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),i=Le(r.dsn,r._metadata,r.tunnel),o=Fe(i.dsn,i.tunnel);if(this._options.transport)return new this._options.transport(r);if(re()){var a=Object(m.a)({},r.fetchParameters);return this._newTransport=(t={requestOptions:a,url:o},void 0===n&&(n=xt()),bt({bufferSize:t.bufferSize},(function(e){var r=Object(m.a)({body:e.body,method:"POST",referrerPolicy:"origin"},t.requestOptions);return n(t.url,r).then((function(e){return e.text().then((function(t){return{body:t,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")},reason:e.statusText,statusCode:e.status}}))}))}))),new Pt(r)}return this._newTransport=function(e){return bt({bufferSize:e.bufferSize},(function(t){return new z((function(n,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var e={body:i.response,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")},reason:i.statusText,statusCode:i.status};n(e)}},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&i.setRequestHeader(o,e.headers[o]);i.send(t.body)}))}))}({url:o,headers:r.headers}),new At(r)},t}(Ge);function Lt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=J();if(r&&r[e])return r[e].apply(r,Object(m.d)(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function Dt(e,t){return Lt("captureException",e,{captureContext:t,originalException:e,syntheticException:new Error("Sentry syntheticException")})}function It(e){Lt("withScope",e)}var jt=Object(_.a)(),Mt=0;function Nt(){return Mt>0}function Ft(){Mt+=1,setTimeout((function(){Mt-=1}))}function Ut(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{var r=e.__sentry_wrapped__;if(r)return r;if(Object(v.f)(e))return e}catch(t){return e}var i=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var i=r.map((function(e){return Ut(e,t)}));return e.apply(this,i)}catch(e){throw Ft(),It((function(n){n.addEventProcessor((function(e){return t.mechanism&&(A(e,void 0,void 0),C(e,t.mechanism)),e.extra=Object(m.a)(Object(m.a)({},e.extra),{arguments:r}),e})),Dt(e)})),e}};try{for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}catch(e){}Object(v.g)(i,e),Object(v.a)(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:function(){return e.name}})}catch(e){}return i}function Bt(e){if(void 0===e&&(e={}),jt.document)if(e.eventId)if(e.dsn){var t=jt.document.createElement("script");t.async=!0,t.src=function(e,t){var n=ke(e),r=De(n)+"embed/error-page/",i="dsn="+Se(n);for(var o in t)if("dsn"!==o)if("user"===o){if(!t.user)continue;t.user.name&&(i+="&name="+encodeURIComponent(t.user.name)),t.user.email&&(i+="&email="+encodeURIComponent(t.user.email))}else i+="&"+encodeURIComponent(o)+"="+encodeURIComponent(t[o]);return r+"?"+i}(e.dsn,e),e.onLoad&&(t.onload=e.onLoad);var n=jt.document.head||jt.document.body;n&&n.appendChild(t)}else Et&&o.error("Missing dsn option in showReportDialog call");else Et&&o.error("Missing eventId option in showReportDialog call")}var qt=n(529),$t=["fatal","error","warning","log","info","debug","critical"];function Vt(e){return"warn"===e?ze.Warning:function(e){return-1!==$t.indexOf(e)}(e)?e:ze.Log}var zt=function(){function e(t){this.name=e.id,this._options=Object(m.a)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&J().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:P(e)},{event:e})},e.prototype.setupOnce=function(){var e;this._options.console&&fe("console",Wt),this._options.dom&&fe("dom",(e=this._options.dom,function(t){var n,r="object"==typeof e?e.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{n=t.event.target?Object(qt.b)(t.event.target,r):Object(qt.b)(t.event,r)}catch(e){n="<unknown>"}0!==n.length&&J().addBreadcrumb({category:"ui."+t.name,message:n},{event:t.event,name:t.name,global:t.global})})),this._options.xhr&&fe("xhr",Gt),this._options.fetch&&fe("fetch",Ht),this._options.history&&fe("history",Kt)},e.id="Breadcrumbs",e}();function Wt(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:Vt(e.level),message:Object(k.b)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(Object(k.b)(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}J().addBreadcrumb(t,{input:e.args,level:e.level})}function Gt(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,r=t.url,i=t.status_code,o=t.body;J().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:i},type:"http"},{xhr:e.xhr,input:o})}else;}function Ht(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?J().addBreadcrumb({category:"fetch",data:e.fetchData,level:ze.Error,type:"http"},{data:e.error,input:e.args}):J().addBreadcrumb({category:"fetch",data:Object(m.a)(Object(m.a)({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))}function Kt(e){var t=Object(_.a)(),n=e.from,r=e.to,i=O(t.location.href),o=O(n),a=O(r);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),J().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}var Yt=function(e){function t(t){void 0===t&&(t={});return t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:"6.19.7"}],version:"6.19.7"},e.call(this,Ct,t)||this}return Object(m.b)(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),Object(_.a)().document&&(this._isEnabled()?Bt(Object(m.a)(Object(m.a)({},e),{dsn:e.dsn||this.getDsn()})):Et&&o.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",e.prototype._prepareEvent.call(this,t,n,r)},t.prototype._sendEvent=function(t){var n=this.getIntegration(zt);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(Ce),Qt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Xt=function(){function e(t){this.name=e.id,this._options=Object(m.a)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=Object(_.a)();this._options.setTimeout&&Object(v.e)(e,"setTimeout",Jt),this._options.setInterval&&Object(v.e)(e,"setInterval",Jt),this._options.requestAnimationFrame&&Object(v.e)(e,"requestAnimationFrame",Zt),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&Object(v.e)(XMLHttpRequest.prototype,"send",en);var t=this._options.eventTarget;t&&(Array.isArray(t)?t:Qt).forEach(tn)},e.id="TryCatch",e}();function Jt(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0];return t[0]=Ut(r,{mechanism:{data:{function:Object(ne.b)(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function Zt(e){return function(t){return e.apply(this,[Ut(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Object(ne.b)(e)},handled:!0,type:"instrument"}})])}}function en(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,i=["onload","onerror","onprogress","onreadystatechange"];return i.forEach((function(e){e in r&&"function"==typeof r[e]&&Object(v.e)(r,e,(function(t){var n={mechanism:{data:{function:e,handler:Object(ne.b)(t)},handled:!0,type:"instrument"}},r=Object(v.f)(t);return r&&(n.mechanism.data.handler=Object(ne.b)(r)),Ut(t,n)}))})),e.apply(this,t)}}function tn(e){var t=Object(_.a)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(v.e)(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=Ut(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:Object(ne.b)(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[n,Ut(r,{mechanism:{data:{function:"addEventListener",handler:Object(ne.b)(r),target:e},handled:!0,type:"instrument"}}),i])}})),Object(v.e)(n,"removeEventListener",(function(e){return function(t,n,r){var i=n;try{var o=i&&i.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch(e){}return e.call(this,t,i,r)}})))}var nn=function(){function e(t){this.name=e.id,this._installFunc={onerror:rn,onunhandledrejection:on},this._options=Object(m.a)({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50;var e,t=this._options;for(var n in t){var r=this._installFunc[n];r&&t[n]&&(e=n,Et&&o.log("Global Handler attached: "+e),r(),this._installFunc[n]=void 0)}},e.id="GlobalHandlers",e}();function rn(){fe("error",(function(e){var t=Object(m.c)(un(),2),n=t[0],r=t[1];if(n.getIntegration(nn)){var i=e.msg,o=e.url,a=e.line,s=e.column,u=e.error;if(!(Nt()||u&&u.__sentry_own_request__)){var c=void 0===u&&Object(q.l)(i)?function(e,t,n,r){var i=Object(q.e)(e)?e.message:e,o="Error",a=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&&(o=a[1],i=a[2]);return an({exception:{values:[{type:o,value:i}]}},t,n,r)}(i,o,a,s):an(dt(u||i,void 0,r,!1),o,a,s);c.level=ze.Error,sn(n,u,c,"onerror")}}}))}function on(){fe("unhandledrejection",(function(e){var t=Object(m.c)(un(),2),n=t[0],r=t[1];if(n.getIntegration(nn)){var i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(e){}if(Nt()||i&&i.__sentry_own_request__)return!0;var o=Object(q.j)(i)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(i)}]}}:dt(i,void 0,r,!0);o.level=ze.Error,sn(n,i,o,"onunhandledrejection")}}))}function an(e,t,n,r){var i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},u=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,f=Object(q.l)(t)&&t.length>0?t:Object(qt.a)();return 0===u.length&&u.push({colno:c,filename:f,function:"?",in_app:!0,lineno:l}),e}function sn(e,t,n,r){C(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function un(){var e=J(),t=e.getClient();return[e,t&&t.getOptions().attachStacktrace]}var cn=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){H((function(t,n){var r=J().getIntegration(e);return r?function(e,t,n,r){if(!(n.exception&&n.exception.values&&r&&Object(q.g)(r.originalException,Error)))return n;var i=function e(t,n,r,i){void 0===i&&(i=[]);if(!Object(q.g)(n[r],Error)||i.length+1>=t)return i;var o=st(n[r]);return e(t,n[r],r,Object(m.d)([o],i))}(t,r.originalException,e);return n.exception.values=Object(m.d)(i,n.exception.values),n}(r._key,r._limit,t,n):t}))},e.id="LinkedErrors",e}();var ln=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,n){t((function(t){var r=n().getIntegration(e);if(r){try{if(function(e,t){if(!t)return!1;if(function(e,t){var n=e.message,r=t.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!dn(e,t))return!1;if(!fn(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){var n=hn(t),r=hn(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!dn(e,t))return!1;if(!fn(e,t))return!1;return!0}(e,t))return!0;return!1}(t,r._previousEvent))return Et&&o.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){return r._previousEvent=t}return r._previousEvent=t}return t}))},e.id="Dedupe",e}();function fn(e,t){var n=pn(e),r=pn(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,(r=r).length!==n.length)return!1;for(var i=0;i<r.length;i++){var o=r[i],a=n[i];if(o.filename!==a.filename||o.lineno!==a.lineno||o.colno!==a.colno||o.function!==a.function)return!1}return!0}function dn(e,t){var n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function hn(e){return e.exception&&e.exception.values&&e.exception.values[0]}function pn(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}else if(e.stacktrace)return e.stacktrace.frames}var gn=Object(_.a)(),mn=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){H((function(t){if(J().getIntegration(e)){if(!gn.navigator&&!gn.location&&!gn.document)return t;var n=t.request&&t.request.url||gn.location&&gn.location.href,r=(gn.document||{}).referrer,i=(gn.navigator||{}).userAgent,o=Object(m.a)(Object(m.a)(Object(m.a)({},t.request&&t.request.headers),r&&{Referer:r}),i&&{"User-Agent":i}),a=Object(m.a)(Object(m.a)({},n&&{url:n}),{headers:o});return Object(m.a)(Object(m.a)({},t),{request:a})}return t}))},e.id="UserAgent",e}(),vn=[new r.InboundFilters,new r.FunctionToString,new Xt,new zt,new nn,new cn,new ln,new mn];function yn(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=vn),void 0===e.release){var t=Object(_.a)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0),function(e,t){!0===t.debug&&(D?o.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var n=J(),r=n.getScope();r&&r.update(t.initialScope);var i=new e(t);n.bindClient(i)}(Yt,e),e.autoSessionTracking&&function(){if(void 0===Object(_.a)().document)return void(Et&&o.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));var e=J();if(!e.captureSession)return;bn(e),fe("history",(function(e){var t=e.from,n=e.to;void 0!==t&&t!==n&&bn(J())}))}()}function bn(e){e.startSession({ignoreDuration:!0}),e.captureSession()}var _n=n(505),wn=n(71),En=n(98),Sn=n.n(En),xn=n(49),kn=n.n(xn),Tn=n(32),On=n.n(Tn),Rn=n(50),Pn=n.n(Rn),An=n(1),Cn=n.n(An);const Ln={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Dn{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Ln,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Dn(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Dn(this.logger,e)}}var In=new Dn;class jn{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){Array.from(this.observers[e].entries()).forEach(e=>{let[t,r]=e;for(let e=0;e<r;e++)t(...n)})}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach(t=>{let[r,i]=t;for(let t=0;t<i;t++)r.apply(r,[e,...n])})}}}function Mn(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function Nn(e){return null==e?"":""+e}const Fn=/###/g;function Un(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(Fn,"."):e}function i(){return!e||"string"==typeof e}const o="string"!=typeof t?t:t.split(".");let a=0;for(;a<o.length-1;){if(i())return{};const t=r(o[a]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++a}return i()?{}:{obj:e,k:r(o[a])}}function Bn(e,t,n){const{obj:r,k:i}=Un(e,t,Object);if(void 0!==r||1===t.length)return void(r[i]=n);let o=t[t.length-1],a=t.slice(0,t.length-1),s=Un(e,a,Object);for(;void 0===s.obj&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=Un(e,a,Object),s&&s.obj&&void 0!==s.obj[`${s.k}.${o}`]&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n}function qn(e,t){const{obj:n,k:r}=Un(e,t);if(n)return n[r]}function $n(e,t,n){const r=qn(e,n);return void 0!==r?r:qn(t,n)}function Vn(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var zn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Wn(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,e=>zn[e]):e}const Gn=[" ",",","?","!",";"],Hn=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20);function Kn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let e=0;e<r.length;){if(!i||"object"!=typeof i)return;let t,o="";for(let a=e;a<r.length;++a)if(a!==e&&(o+=n),o+=r[a],t=i[o],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<r.length-1)continue;e+=a-e+1;break}i=t}return i}function Yn(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class Qn extends jn{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):"string"==typeof n&&i?a.push(...n.split(i)):a.push(n)));const s=qn(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),s||!o||"string"!=typeof n?s:Kn(this.data&&this.data[e]&&this.data[e][t],n,i)}addResource(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),Bn(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const r in n)("string"==typeof n[r]||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let s=qn(this.data,a)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?function e(t,n,r){for(const i in n)"__proto__"!==i&&"constructor"!==i&&(i in t?"string"==typeof t[i]||t[i]instanceof String||"string"==typeof n[i]||n[i]instanceof String?r&&(t[i]=n[i]):e(t[i],n[i],r):t[i]=n[i]);return t}(s,n,i):s={...s,...n},Bn(this.data,a,s),o.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var Xn={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))}),t}};const Jn={};class Zn extends jn{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,r;super(),n=e,r=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{n[e]&&(r[e]=n[e])}),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=In.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const o=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";const r=Gn.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;const i=Hn.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let o=!i.test(e);if(!o){const t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o}(e,n,r));if(o&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i};const o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(e[e.length-1],t),s=a[a.length-1],u=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(c){const e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${s}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:`${s}${e}${o}`}return r?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:o}const l=this.resolve(e,t);let f=l&&l.res;const d=l&&l.usedKey||o,h=l&&l.exactUsedKey||o,p=Object.prototype.toString.apply(f),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject;if(m&&f&&("string"!=typeof f&&"boolean"!=typeof f&&"number"!=typeof f)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(p)<0&&("string"!=typeof g||!Array.isArray(f))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,{...t,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return r?(l.res=e,l.usedParams=this.getUsedParamsDetails(t),l):e}if(i){const e=Array.isArray(f),n=e?[]:{},r=e?h:d;for(const e in f)if(Object.prototype.hasOwnProperty.call(f,e)){const o=`${r}${i}${e}`;n[e]=this.translate(o,{...t,joinArrays:!1,ns:a}),n[e]===o&&(n[e]=f[e])}f=n}}else if(m&&"string"==typeof g&&Array.isArray(f))f=f.join(g),f&&(f=this.extendTranslation(f,e,t,n));else{let r=!1,a=!1;const c=void 0!==t.count&&"string"!=typeof t.count,d=Zn.hasDefaultValue(t),h=c?this.pluralResolver.getSuffix(u,t.count,t):"",p=t.ordinal&&c?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",g=c&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),m=g&&t[`defaultValue${this.options.pluralSeparator}zero`]||t["defaultValue"+h]||t["defaultValue"+p]||t.defaultValue;!this.isValidLookup(f)&&d&&(r=!0,f=m),this.isValidLookup(f)||(a=!0,f=o);const v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:f,y=d&&m!==f&&this.options.updateMissing;if(a||r||y){if(this.logger.log(y?"updateKey":"missingKey",u,s,o,y?m:f),i){const e=this.resolve(o,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const r=(e,n,r)=>{const i=d&&r!==f?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,i,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,n,i,y,t),this.emit("missingKey",e,s,n,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach(e=>{const n=this.pluralResolver.getSuffixes(e,t);g&&t[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(this.options.pluralSeparator+"zero")<0&&n.push(this.options.pluralSeparator+"zero"),n.forEach(n=>{r([e],o+n,t["defaultValue"+n]||m)})}):r(e,o,m))}f=this.extendTranslation(f,e,t,l,n),a&&f===o&&this.options.appendNamespaceToMissingKey&&(f=`${s}:${o}`),(a||r)&&this.options.parseMissingKeyHandler&&(f="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${o}`:o,r?f:void 0):this.options.parseMissingKeyHandler(f))}return r?(l.res=f,l.usedParams=this.getUsedParamsDetails(t),l):f}extendTranslation(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const a="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(a){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let u=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),e=this.interpolator.interpolate(e,u,n.lng||this.language,n),a){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return i&&i[0]===r[0]&&!n.context?(o.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):o.translate(...r,t)}),n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,s="string"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==n.applyPostProcessor&&(e=Xn.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,r,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,a),u=s.key;n=u;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const l=void 0!==a.count&&"string"!=typeof a.count,f=l&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,h=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);c.forEach(e=>{this.isValidLookup(t)||(o=e,!Jn[`${h[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(Jn[`${h[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${h.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(n=>{if(this.isValidLookup(t))return;i=n;const o=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,u,n,e,a);else{let e;l&&(e=this.pluralResolver.getSuffix(n,a.count,a));const t=this.options.pluralSeparator+"zero",r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(l&&(o.push(u+e),a.ordinal&&0===e.indexOf(r)&&o.push(u+e.replace(r,this.options.pluralSeparator)),f&&o.push(u+t)),d){const n=`${u}${this.options.contextSeparator}${a.context}`;o.push(n),l&&(o.push(n+e),a.ordinal&&0===e.indexOf(r)&&o.push(n+e.replace(r,this.options.pluralSeparator)),f&&o.push(n+t))}}let s;for(;s=o.pop();)this.isValidLookup(t)||(r=s,t=this.getResource(n,e,s,a))}))})}),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&"string"!=typeof e.replace;let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,"defaultValue".length)&&void 0!==e[t])return!0;return!1}}function er(e){return e.charAt(0).toUpperCase()+e.slice(1)}class tr{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=In.create("languageUtils")}getScriptPartFromCode(e){if(!(e=Yn(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=Yn(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=er(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=er(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=er(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn("rejecting language code not found in supportedLngs: "+e))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}}let nr=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],rr={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};const ir=["v1","v2","v3"],or=["v4"],ar={zero:0,one:1,two:2,few:3,many:4,other:5};class sr{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=In.create("pluralResolver"),this.options.compatibilityJSON&&!or.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const e={};return nr.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:rr[t.fc]}})}),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Yn("dev"===e?"en":e),{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>ar[e]-ar[t]).map(e=>`${this.options.prepend}${t.ordinal?"ordinal"+this.options.prepend:""}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?"ordinal"+this.options.prepend:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: "+e),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?"_plural_"+r.toString():i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!ir.includes(this.options.compatibilityJSON)}}function ur(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=$n(e,t,n);return!o&&i&&"string"==typeof n&&(o=Kn(e,n,r),void 0===o&&(o=Kn(t,n,r))),o}class cr{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=In.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:o,suffix:a,suffixEscaped:s,formatSeparator:u,unescapeSuffix:c,unescapePrefix:l,nestingPrefix:f,nestingPrefixEscaped:d,nestingSuffix:h,nestingSuffixEscaped:p,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:Wn,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?Vn(i):o||"{{",this.suffix=a?Vn(a):s||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":l||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=f?Vn(f):d||Vn("$t("),this.nestingSuffix=h?Vn(h):p||Vn(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,o,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}const c=e=>{if(e.indexOf(this.formatSeparator)<0){const i=ur(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}const i=e.split(this.formatSeparator),o=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(ur(t,s,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:o})};this.resetRegExp();const l=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>u(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?u(this.escape(e)):u(e)}].forEach(t=>{for(a=0;i=t.regex.exec(e);){const n=i[1].trim();if(o=c(n),void 0===o)if("function"==typeof l){const t=l(e,i,r);o="string"==typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else{if(f){o=i[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),o=""}else"string"==typeof o||this.useRawValueToEscape||(o=Nn(o));const s=t.safeValue(o);if(e=e.replace(i[0],s),f?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,t){let n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(e,t){const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(n+"[ ]*{"));let o="{"+r[1];e=r[0],o=this.interpolate(o,i);const a=o.match(/'/g),s=o.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(t){return this.logger.warn("failed parsing options string in nesting for key "+e,t),`${e}${n}${o}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let s=[];i={...o},i=i.replace&&"string"!=typeof i.replace?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map(e=>e.trim());n[1]=e.shift(),s=e,u=!0}if(r=t(a.call(this,n[1].trim(),i),i),r&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=Nn(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),u&&(r=s.reduce((e,t)=>this.format(e,t,o.lng,{...o,interpolationkey:n[1].trim()}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}function lr(e){const t={};return function(n,r,i){const o=r+JSON.stringify(i);let a=t[o];return a||(a=e(Yn(r),i),t[o]=a),a(n)}}class fr{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=In.create("formatter"),this.options=e,this.formats={number:lr((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:lr((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:lr((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:lr((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:lr((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=lr(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce((e,t)=>{const{formatName:i,formatOptions:o}=function(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);if("currency"===t&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if("relativetime"===t&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{i.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();n[o]||(n[o]=i),"false"===i&&(n[o]=!1),"true"===i&&(n[o]=!0),isNaN(i)||(n[o]=parseInt(i,10))}})}}return{formatName:t,formatOptions:n}}(t);if(this.formats[i]){let t=e;try{const a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...o,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn("there was no format function for "+i),e},e)}}class dr extends jn{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=In.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const i={},o={},a={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===o[a]&&(o[a]=!0):(this.state[a]=1,r=!1,void 0===o[a]&&(o[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))}),r||(a[e]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2;const a={};this.queue.forEach(n=>{!function(e,t,n,r){const{obj:i,k:o}=Un(e,t,Object);i[o]=i[o]||[],r&&(i[o]=i[o].concat(n)),r||i[o].push(n)}(n.loaded,[i],o),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:o});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&r<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,n,r+1,2*i,o)},i):o(a,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const n=s(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);const i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,(n,o)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,o),this.loaded(e,n,o)})}saveMissing(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const s={...o,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let i;i=5===u.length?u(e,t,n,r,s):u(e,t,n,r),i&&"function"==typeof i.then?i.then(e=>a(null,e)).catch(a):a(null,i)}catch(e){a(e)}else u(e,t,n,r,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}function hr(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function pr(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function gr(){}class mr extends jn{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=pr(e),this.services={},this.logger=In,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=hr();function i(e){return e?"function"==typeof e?new e:e:null}if(this.options={...r,...this.options,...pr(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?In.init(i(this.modules.logger),this.options):In.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=fr);const n=new tr(this.options);this.store=new Qn(this.options.resources,this.options);const o=this.services;o.logger=In,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new sr(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(o.formatter=i(t),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new cr(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new dr(i(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)})),this.modules.languageDetector&&(o.languageDetector=i(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=i(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new Zn(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)})),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=gr),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});const o=Mn(),a=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),o}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gr;const n="string"==typeof e?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};if(n)r(n);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>r(e))}this.options.preload&&this.options.preload.forEach(e=>r(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,t,n){const r=Mn();return e||(e=this.languages),t||(t=this.options.ns),n||(n=gr),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Xn.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=Mn();this.emit("languageChanging",e);const i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(e,o)=>{o?(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,r.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const n="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{o(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const i=function(e,t){let o;if("object"!=typeof t){for(var a=arguments.length,s=new Array(a>2?a-2:0),u=2;u<a;u++)s[u-2]=arguments[u];o=r.options.overloadTranslationOptionHandler([e,t].concat(s))}else o={...t};o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,o.keyPrefix=o.keyPrefix||n||i.keyPrefix;const c=r.options.keySeparator||".";let l;return l=o.keyPrefix&&Array.isArray(e)?e.map(e=>`${o.keyPrefix}${c}${e}`):o.keyPrefix?`${o.keyPrefix}${c}${e}`:e,r.t(l,o)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const o=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||2===n};if(t.precheck){const e=t.precheck(this,o);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!o(n,e)||r&&!o(i,e)))}loadNamespaces(e,t){const n=Mn();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=Mn();"string"==typeof e&&(e=[e]);const r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new tr(hr());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new mr(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gr;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new mr(r);void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e));return["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new Qn(this.store.data,r),i.services.resourceStore=i.store),i.translator=new Zn(i.services,r),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit(e,...n)})),i.init(r,t),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const vr=mr.createInstance();vr.createInstance=mr.createInstance;vr.createInstance,vr.dir,vr.init,vr.loadResources,vr.reloadResources,vr.use,vr.changeLanguage,vr.getFixedT,vr.t,vr.exists,vr.setDefaultNamespace,vr.hasLoadedNamespace,vr.loadNamespaces,vr.loadLanguages;var yr=n(63),br=n(170),_r=n(341),wr=n.n(_r),Er=n(507),Sr=n.n(Er),xr=n(508),kr=n.n(xr),Tr=n(509),Or=n.n(Tr),Rr=n(69),Pr=n.n(Rr),Ar=n(510),Cr=n(511),Lr=n(270),Dr=n(14),Ir=function(){return h.a.createElement("div",{className:"spinnerThreeBounce"},h.a.createElement("div",{className:"bounce bounce1"}),h.a.createElement("div",{className:"bounce bounce2"}),h.a.createElement("div",{className:"bounce bounce3"}))},jr=h.a.memo(Ir),Mr=n(219),Nr=n.n(Mr),Fr=n(68),Ur=n.n(Fr),Br=n(62),qr=n.n(Br),$r=n(70),Vr=n(512),zr=n(513),Wr=n(514),Gr=n(515),Hr=n(516),Kr=n.n(Hr),Yr=n(340);var Qr=function(e,t,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||e.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,t),s&&e.apply(i,o)}},Xr=n(517),Jr=n.n(Xr),Zr=n(518),ei=n.n(Zr);function ti(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ni(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ti(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ti(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ri(e,t,n){return t=On()(t),kn()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],On()(e).constructor):t.apply(e,n))}var ii={MSEPlayer:Vr.MSEPlayer,HLSPlayer:zr.HLSPlayer,WebRTCPlayer:Wr.WebRTCPlayer,NativeiOSPlayer:Gr.NativeiOSPlayer},oi=function(e){function t(){var e;return c()(this,t),(e=ri(this,t)).playEnded=e.playEnded.bind(e),e.getMetadata=e.getMetadata.bind(e),e.changeSpeed=e.changeSpeed.bind(e),e.play=e.play.bind(e),e.getPlayListUrl=e.getPlayListUrl.bind(e),e._getPlayListUrl=e._getPlayListUrl.bind(e),e.handleFullScreen=e.handleFullScreen.bind(e),e.handleTouchEnd=e.handleTouchEnd.bind(e),e.handlePause=e.handlePause.bind(e),e.onHlsEvent=e.onHlsEvent.bind(e),e.takeSnapshot=e.takeSnapshot.bind(e),e.setSnapshotRef=e.setSnapshotRef.bind(e),e.calculatePos=e.calculatePos.bind(e),e.resetZoom=e.resetZoom.bind(e),e.onShotModalClose=e.onShotModalClose.bind(e),e.onShotModalOpen=e.onShotModalOpen.bind(e),e.refreshZoom=Qr(e.refreshZoom.bind(e),150),e.setRef=e.setRef.bind(e),e.state={tracks:[],streams:[],videoStream:{},audioStream:{},utc_timer:void 0,noDvrHere:!1,shouldStartPlay:!1,scale:1,isSelected:!1,currentHlsPosition:null,shouldChangeTracks:!1,players:[],noLive:!1,noVideo:!1,isSnapshotModalOpen:!1,snapshotBlob:null,snapshotDataUrl:null,snapshotNaming:void 0},e.lastTap=0,e}return Pn()(t,e),s()(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.currentTime,n=e.selected,r=e.name,i=e.returnData;this._video&&(this._video.addEventListener("ended",this.playEnded,!1),this._video.addEventListener("touchend",this.handleTouchEnd),this._video.controls=!1),t&&"stop"!==t&&this.play(t),n===r&&(this.setState({isSelected:!0}),i("playerRef",this))}},{key:"componentWillUpdate",value:function(e,t){var n=this.props,r=n.currentTime,i=n.networkError,o=n.noDVR,a=n.streamIsLive,s=n.returnData,u=e.currentTime,c=e.networkError,l=e.playSegmentDuration;if(!a&&e.streamIsLive&&this.setState({noDvrHere:!1}),r&&r!==u&&"stop"!==u)this.setState({noDvrHere:!1,noLive:!1}),this.play(u,l);else if(r!==u)if("stop"===u)o||s("playerReady",!0,this.props.name),this.setState({players:[],noDvrHere:!0});else if(!(u<=r+5||u>=r-5)){if(this.props.noDVR&&"live"!==u)return;this.setState({noDvrHere:!1,noLive:!1}),this.play(u,l)}if("stop"===r&&"stop"!==u&&this.setState({noDvrHere:!1}),this.props.playback_speed!==e.playback_speed&&this.changeSpeed(e.playback_speed),this.props.paused!==e.paused&&("live"===e.currentTime&&!0===e.paused&&s("livePausedAt",Math.round(this.state.snapshotTime)),this.handlePause()),i!==c&&c&&s("playerReady",!0,this.props.name),this.props.playerType!==e.playerType&&this.play(u,l),""!==e.fastSeekingTo){if(this.currentFastSeek===e.fastSeekingTo)return;this.currentFastSeek=e.fastSeekingTo,"forward"===e.fastSeekingTo?this._video.currentTime+=10:"backward"===e.fastSeekingTo&&(this._video.currentTime-=10),s("fastSeekingTo","")}else this.currentFastSeek=""}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.currentTime,i=n.streamIsLive,o=n.selected,a=n.name,s=this.state,u=s.shouldStartPlay,c=s.noLive;e.volume!==this.props.volume&&this._video&&(this._video.volume=this.props.volume/100),(!t.shouldStartPlay&&u||u&&"live"===r&&i&&!e.streamIsLive)&&this.play("live"),e.selected!==o&&(o===a?this.setState({isSelected:!0}):this.setState({isSelected:!1})),!t.noLive&&c&&this.setState({players:t.players.filter((function(){return null}))})}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.refreshZoom),this.zoomElement&&this.zoomElement.dispose(),this._video&&(this._video.removeEventListener("ended",this.playEnded,!1),this._video.removeEventListener("touchend",this.handleTouchEnd),this._video.removeEventListener("error",this.onError),this._video.ontimeupdate=null,this._video.pause(),this._video.removeAttribute("src"),this._video.load(),delete this._video)}},{key:"componentDidCatch",value:function(){error instanceof Error&&this.onHlsEvent({key:Date.now(),data:{event:"player_error",error_name:error.name,error_message:error.message}}),console.error("CATCH AN ERROR!")}},{key:"playEnded",value:function(){this.props.returnData("playingTimeForPlayers","stop",this.props.name),this.props.returnData("playerReady",!0,this.props.name)}},{key:"handleTouchEnd",value:function(e){var t=this,n=(new Date).getTime(),r=n-this.lastTap;clearTimeout(this.timeout),r<500&&r>0?(e.preventDefault(),this.handleFullScreen()):this.timeout=setTimeout((function(){clearTimeout(t.timeout)}),500),this.lastTap=n}},{key:"getMetadata",value:function(){return{width:this._video?this._video.videoWidth:0,height:this._video?this._video.videoHeight:0}}},{key:"changeSpeed",value:function(e){"live"!==this.props.currentTime&&this.onHlsEvent({key:Date.now(),data:{event:"play_options",type:"hls_dvr",speed:e}})}},{key:"play",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=this.props,i=r.name,o=r.debug,a=r.debugTimers,s=r.networkError,u=r.onMediaInfo,c=r.selected,l=r.playerType,d=r.tracksAudio,h=r.multiStream,p=r.autoVideoTrack,g=r.newTracks,m=r.streamer_http,v=r.auth_token,y=r.returnData,b=r.ui,_=this.state,w=_.players,E=_.shouldChangeTracks;if(o&&console.log("[dvr]: play",e,i),a&&(console.timeEnd("[DVRPlayer]: Init Time"),console.time("[DVRPlayer]: Player component play() start")),e&&"stop"!==e&&!s){window.removeEventListener("resize",this.refreshZoom);var S="live"===e;this._video=null,y("playerLink",null);var x={name:i,currentTime:e,onMediaInfo:u,setRef:this.setRef,isSelected:c===i,handleFullScreen:this.handleFullScreen,newTracks:g,debug:o,debugTimers:a},k=this.getPlayListUrl(e,S?void 0:n,S);if(Dr.default.isIOS()&&!("MediaSource"in window)&&"webrtc"!==l)w.push(ni(ni({type:"NativeiOSPlayer",url:k,setNoLiveError:function(e){t.setState({noLive:e})}},x),{},{key:"ios_player_".concat(e,"_").concat(w.length+1)}));else if(S&&"mse"===l)k=this.getMseUrl(),w.push(ni(ni({type:"MSEPlayer",url:k,onEvent:this.onHlsEvent,tracksAudio:d,multiStream:h,shouldChangeTracks:E,setNoLiveError:function(e){t.setState({noLive:e})},setNoVideoError:function(e){t.setState({noVideo:e})}},x),{},{key:"mse_player_".concat(e,"_").concat(w.length+1)}));else if(S&&"webrtc"===l){var T="".concat(m,"/").concat(i),O=Object(wn.decode)(v),R=Object.keys(O),P=Ur()(R,1),A=P[0];w.push(ni(ni({type:"WebRTCPlayer",url:T,onEvent:this.onHlsEvent,tracksAudio:d,multiStream:h,shouldChangeTracks:E,authTokenName:A,tokenValue:O[A]},x),{},{key:"webrtc_player_".concat(e,"_").concat(w.length+1)}))}else w.push(ni(ni(f()(f()({type:"HLSPlayer",url:k,onHlsEvent:this.onHlsEvent,setNoLiveError:function(e){t.setState({noLive:e})},autoVideoTrack:p,ottConfig:"ott"===b},"setNoLiveError",(function(e){t.setState({noLive:e})})),"setNoVideoError",(function(e){t.setState({noVideo:e})})),x),{},{key:"hls_player_".concat(e,"_").concat(w.length+1)}));w=w.filter((function(e,t){if(t===w.length-1)return e})),this.setState({players:w})}}},{key:"getPlayListUrl",value:function(e,t,n){var r=this.props,i=r.name,o=r.streamer_http,a=r.auth_token,s=r.basicApiConfig,u=r.token,c=s.params,l=t||3600;return this._getPlayListUrl(o,i,e,l,a||Object(wn.stringify)(c),n,u)}},{key:"_getPlayListUrl",value:function(e,t,n,r,i,o,a){var s="string"==typeof i&&i.trim().length>0?"?".concat(i):a?"?token=".concat(a):"";return r>3600&&(r=3600),"".concat(e,"/").concat(t,"/index").concat(o?"":"-".concat(n,"-").concat(r),".fmp4.m3u8").concat(s)}},{key:"getMseUrl",value:function(){var e=this.props,t=e.name,n=e.streamer_http,r=e.auth_token,i=e.tracks,o=e.basicApiConfig.params;return"".concat(n.replace(/^http/,"ws"),"/").concat(t,"/mse_ld?").concat([r||Object(wn.stringify)(o),i].filter((function(e){return e})).join("&"))}},{key:"handleFullScreen",value:function(){this.props.allowFullscreen}},{key:"handlePause",value:function(){var e=this.props.paused;this._video&&this._video&&(e?(this._video.play(),this.onHlsEvent({key:Date.now(),data:{event:"play_resume"}})):(this._video.pause(),this.onHlsEvent({key:Date.now(),data:{event:"play_pause"}})))}},{key:"takeSnapshot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=this.props,r=n.features,i=n.returnData,o=Boolean(null==r?void 0:r.isScreenshotEditingEnabled)||void 0===(null==r?void 0:r.isScreenshotEditingEnabled),a=this.snapshotRef,s=this._video;if(s){var u=a.getContext("2d"),c=s.videoWidth,l=s.videoHeight;if(a.width=c,a.height=l,u.fillRect(0,0,c,l),u.drawImage(s,0,0,c,l),o){i("fullscreen",!1),this.onShotModalOpen(!0);var f=a.toDataURL("image/png");this.setState({snapshotDataUrl:f,snapshotNaming:"snapshot_".concat(t,"_").concat(e,".png")})}o||a.toBlob((function(n){if(!n)return reject();Object(Yr.saveAs)(n,"snapshot_".concat(t,"_").concat(e,".png"))}))}}},{key:"setSnapshotRef",value:function(e){!this.snapshotRef&&e&&(this.snapshotRef=e)}},{key:"setRef",value:function(e){var t=this,n=this.props,r=n.setPlayersRef,i=n.name,o=n.panzoomEnable;if(this._video&&(this._video=null),e&&(this._video=e,r(i,e)),o)try{this.zoomElement=Kr()(e,{maxZoom:10,minZoom:1,smoothScroll:!1,zoomDoubleClickSpeed:1,filterKey:function(){return!0},onDoubleClick:function(e){return!1}}),this.zoomElement.on("transform",(function(e){t.calculatePos(e)})),window.addEventListener("resize",this.refreshZoom),this.zoomElement.smoothZoomAbs(0,0,1)}catch(e){return}}},{key:"calculatePos",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(t)e=t.getTransform();else{if(!this.zoomElement)return;e=this.zoomElement.getTransform()}var n=function(e){return Math.floor(100*e)/100};if(e){var r=e,i=r.x,o=r.y,a=r.scale;this.setState({scale:n(a)});var s=i,u=o,c=!1;if(!this.wrapper)return;if(!this._video)return;var l=this.wrapper.getBoundingClientRect(),f=this._video.getBoundingClientRect();if(Math.round(f.left)>Math.round(l.left)&&(s=l.left-l.x,c=!0),Math.round(f.top)>Math.round(l.top)&&(u=l.top-l.y,c=!0),Math.round(f.right)<Math.round(l.right)&&(s=l.right-l.left-f.width,c=!0),Math.round(f.bottom)<Math.round(l.bottom)&&(u=l.bottom-f.height,c=!0),Math.round(f.width)<Math.round(l.width)&&(s=(l.width-f.width)/2,c=!0),Math.round(f.height)<Math.round(l.height)&&(u=(l.height-f.height)/2,c=!0),c){if(n(s)===n(i)&&n(u)===n(o))return;this.zoomElement.moveTo(s,u)}}}},{key:"resetZoom",value:function(e){e.stopPropagation(),this.zoomElement&&(this.zoomElement.smoothZoomAbs(0,0,1),this.zoomElement.moveTo(0,0),this.zoomElement.moveBy(0,0,!1))}},{key:"refreshZoom",value:function(){this.calculatePos()}},{key:"onHlsEvent",value:function(e){var t=this.props,n=t.onEvent,r=t.name;n&&n(r,e)}},{key:"onShotModalOpen",value:function(){this.setState({isSnapshotModalOpen:!0})}},{key:"onShotModalClose",value:function(){this.setState({isSnapshotModalOpen:!1})}},{key:"render",value:function(){var e,t,n,r,i,o,a,s,u=this,c=this.state,l=c.scale,f=c.players,d=c.noLive,p=c.isSnapshotModalOpen,g=c.snapshotDataUrl,m=c.snapshotNaming,v=this.onShotModalClose,y=this.props,b=y.currentTime,_=y.name,w=y.t,E=y.returnData,S=y.muted,x=y.paused,k=y.newTracks,T=y.playback_speed,O=y.ui,R=y.features,P=d||this.props.noDVR&&"live"!==b||this.state.noDvrHere&&!this.props.noDVR&&"live"!==b,A=Boolean(null==R?void 0:R.isScreenshotEditingEnabled)||void 0===(null==R?void 0:R.isScreenshotEditingEnabled),C=f.map((function(e){var t=ii[e.type];return h.a.createElement(t,Nr()({},e,{muted:S,paused:x,newTracks:k,speed:T,returnData:E}))})),L=h.a.createElement("div",{className:"dvr-player-wrapper",ref:function(e){u.wrapper=e},style:!1===this.props.panzoomEnable?{display:"flex",justifyContent:"center",alignItems:"center"}:null},this.zoomElement&&1!==l?h.a.createElement("button",{className:"resetZoomBtn",onMouseDown:this.resetZoom,onTouchEnd:this.resetZoom},h.a.createElement(si,null)):null,h.a.createElement("div",{className:"no-live-wrapper","data-cy":"playErrorWraper",style:{opacity:"".concat(P?"1":"0"),fontSize:"14px"}},(e=u.props,t=e.noAuth,n=e.networkError,r=e.noDVR,i=u.state,o=i.noDvrHere,a=i.noVideo,s=[],t?s=[].concat(Sn()(s),[h.a.createElement("p",{key:"forbidden_".concat(_)},w("dvr_mse_forbidden"))]):(n&&(s=[].concat(Sn()(s),[h.a.createElement("p",{key:"caution_networkError_".concat(_)},w("dvr_mse_network_error"))])),d&&(s=[].concat(Sn()(s),[h.a.createElement("p",{key:"caution_noLive_".concat(_)},w("dvr_mse_no_live_stream"))])),r&&"ott"!==O&&"live"!==b&&(s=[].concat(Sn()(s),[h.a.createElement("p",{key:"caution_currentTime_".concat(_)},w("dvr_mse_no_dvr"))])),!o||r||a||(s=[].concat(Sn()(s),[h.a.createElement("p",{key:"caution_noDvrHere_".concat(_)},w("dvr_mse_no_dvr_recording_here"))])),a&&(s=[].concat(Sn()(s),[h.a.createElement("p",{key:"caution_noVideo_".concat(_)},w("dvr_error_video_stream"))]))),s)),C,h.a.createElement("canvas",{className:"dvr-player-snapshot",style:{display:"none"},ref:this.setSnapshotRef}));return h.a.createElement(h.a.Fragment,null,"function"==typeof this.props.customItemWrapper?this.props.customItemWrapper(L,this.props.item,this.props.index):L,A&&p&&h.a.createElement(Jr.a,{title:w("image_editor"),isOpen:p,onClose:v},g&&h.a.createElement(ei.a,{imageName:m,imageUrl:g})))}}])}(d.Component);oi.propTypes={returnData:Cn.a.func.isRequired,playback_speed:Cn.a.number,currentTime:Cn.a.oneOfType([Cn.a.number,Cn.a.string]),muted:Cn.a.bool.isRequired,volume:Cn.a.number,streamer_http:Cn.a.string.isRequired,name:Cn.a.string.isRequired,selected:Cn.a.string,auth_token:Cn.a.string,paused:Cn.a.bool,debug:Cn.a.bool,debugTimers:Cn.a.bool,tracks:Cn.a.string,onPlayingChangeHandler:Cn.a.func,onProgress:Cn.a.func,onSpeedChanged:Cn.a.func,changeUTC:Cn.a.func,hls:Cn.a.bool,noDVR:Cn.a.bool,networkError:Cn.a.bool,panzoomEnable:Cn.a.bool,playerType:Cn.a.string,index:Cn.a.number,item:Cn.a.shape({}),multiStream:Cn.a.bool,fastSeekingTo:Cn.a.string,from:Cn.a.number,onEvent:Cn.a.func,setPlayersRef:Cn.a.func,fixedRange:Cn.a.bool,ui:Cn.a.oneOf(["ott","nvr"]),startingUTC:Cn.a.number,allowFullscreen:Cn.a.bool,autoVideoTrack:Cn.a.bool,streamIsLive:Cn.a.bool,browser:Cn.a.string,playSegmentDuration:Cn.a.number,newTracks:Cn.a.array,basicApiConfig:Cn.a.shape({token:Cn.a.string,tokenName:Cn.a.string,auth_token:Cn.a.string,streamer_http:Cn.a.string}),features:Cn.a.shape({isScreenshotEditingEnabled:Cn.a.bool})},oi.defaultProps={muted:!0,allowFullscreen:!0,playback_speed:1};var ai=Object($r.withTranslation)()(oi),si=qr()({displayName:"ResetZoomBtn",render:function(){return h.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 8.467 7.753",style:{width:"24px",height:"24px"},fill:"#fff"},h.a.createElement("defs",null),h.a.createElement("path",{d:"M7.32 7.712c-.057-.023-.533-.465-1.058-.983l-.954-.94-.198.125c-.7.444-1.668.575-2.514.34-.49-.136-1.19-.534-1.19-.678 0-.083.596-.558.7-.558.035 0 .147.048.25.107.311.18.694.278 1.081.278.67 0 1.184-.215 1.622-.682.677-.72.82-1.69.379-2.565A2.235 2.235 0 003.452.948c-.409 0-.708.076-1.08.272-.246.13-.751.574-.751.66 0 .05.245.095.52.096.223 0 .307.068.286.23-.017.13-1.63 1.655-1.75 1.655-.067 0-.213-.103-.213-.15 0-.009-.106-.47-.235-1.026-.246-1.056-.27-1.215-.184-1.3.059-.06.212-.068.272-.015.022.02.11.078.196.129l.156.093.137-.214c.239-.372.762-.824 1.21-1.045.51-.252.876-.337 1.447-.334C4.707.003 5.756.66 6.314 1.784c.257.516.331.887.308 1.542-.015.417-.04.578-.136.856l-.118.343 1.03 1.007c.9.88 1.033 1.027 1.058 1.169.105.595-.602 1.224-1.135 1.011z"}))}}),ui=function(){return h.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",style:{width:"20%",height:"20%",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",zIndex:1},fill:"#fff"},h.a.createElement("circle",{cx:"30",cy:"30",r:"30",fill:"gray",opacity:"0.7"}),h.a.createElement("path",{d:"M45.563 29.174l-22-15A1 1 0 0022 15v30a.999.999 0 001.563.826l22-15a1 1 0 000-1.652z",fill:"#fff"}),h.a.createElement("path",{d:" M30 0C13.458 0 0 13.458 0 30s13.458 30 30 30 30-13.458 30-30S46.542 0 30 0zm0 58C14.561 58 2 45.439 2 30S14.561 2 30 2s28 12.561 28 28 -12.561 28-28 28z ",fill:"none"}))},ci=qr()({displayName:"LtBtn",className:"LtBtn",render:function(){return h.a.createElement("i",{style:{width:"14px",height:"14px"}},h.a.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"#fff",style:{width:"14px",height:"14px"},viewBox:"0 0 14 14"},h.a.createElement("path",{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M9 2L4 7l5 5h0"})))}}),li=h.a.memo(ci),fi=qr()({displayName:"GtBtn",className:"GtBtn",render:function(){return h.a.createElement("i",{style:{width:"14px",height:"14px"}},h.a.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"#fff",style:{width:"14px",height:"14px"},viewBox:"0 0 14 14"},h.a.createElement("path",{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M5 2l5 5-5 5h0"})))}}),di=h.a.memo(fi);function hi(e,t,n){return t=On()(t),kn()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],On()(e).constructor):t.apply(e,n))}var pi=function(e){function t(){return c()(this,t),hi(this,t,arguments)}return Pn()(t,e),s()(t,[{key:"render",value:function(){var e=this.props.frameSeek;return h.a.createElement("div",{className:"seekContainer"},h.a.createElement("div",{className:"buttonGroup"},h.a.createElement("button",{"data-cy":"btnFiveFramesBack",onTouchEnd:function(t){t.stopPropagation(),e(-5)},onMouseUp:function(t){t.stopPropagation(),e(-5)}},h.a.createElement(li,null),h.a.createElement("b",null,"5")),h.a.createElement("button",{"data-cy":"btnFrameBack",onTouchEnd:function(t){t.stopPropagation(),e(-1)},onMouseUp:function(t){t.stopPropagation(),e(-1)}},h.a.createElement(li,null)),h.a.createElement("div",null),h.a.createElement("button",{"data-cy":"btnFrameForward",onTouchEnd:function(t){t.stopPropagation(),e(1)},onMouseUp:function(t){t.stopPropagation(),e(1)}},h.a.createElement(di,null)),h.a.createElement("button",{"data-cy":"btnFiveFramesForward",onTouchEnd:function(t){t.stopPropagation(),e(5)},onMouseUp:function(t){t.stopPropagation(),e(5)}},h.a.createElement("b",null,"5"),h.a.createElement(di,null))))}}])}(d.Component);pi.propTypes={frameSeek:Cn.a.func.isRequired};var gi,mi=pi,vi=n(287),yi=n(519),bi=n.n(yi),_i=n(520),wi=function(){return h.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",style:{width:"20%",height:"20%",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",zIndex:1},fill:"#fff"},h.a.createElement("circle",{cx:"30",cy:"30",r:"30",fill:"gray",opacity:"0.7"}),h.a.createElement("path",{d:"M22 15h6v30h-6zM32 15h6v30h-6z",fill:"#fff"}))},Ei=(n(1085),function(e){var t=e.direction,n=e.seek,r=e.isAnimating;return h.a.createElement("div",{className:"arrow-effect ".concat(t," ").concat(r?"animate":"")},h.a.createElement("div",{className:"arrows"},h.a.createElement("div",{className:"arrow-triangle"}),h.a.createElement("div",{className:"arrow-triangle"}),h.a.createElement("div",{className:"arrow-triangle"})),h.a.createElement("div",{className:"time-label"},"left"===t?"-".concat(n," сек"):"+".concat(n," сек")))}),Si=n(342),xi=n.n(Si);function ki(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ti(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ki(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ki(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oi(e,t,n){return t=On()(t),kn()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],On()(e).constructor):t.apply(e,n))}var Ri=function(e){function t(){var e;return c()(this,t),e=Oi(this,t),f()(e,"handleChildClick",(function(){setTimeout(e.handleTogglePlayer,0)})),e.packPlayers=e.packPlayers.bind(e),e.autoFormatPlayers=e.autoFormatPlayers.bind(e),e.selectPlayer=e.selectPlayer.bind(e),e.setPlayersRef=e.setPlayersRef.bind(e),e.frameSeek=e.frameSeek.bind(e),e.handleTogglePlayer=e.handleTogglePlayer.bind(e),e.callIfMouseStill=xi()(e.handleChildClick),e.callIfTouchStill=xi()(e.handleTogglePlayer),e.state={rows:0,cols:0,autoformat:!1,streamsNum:0,playersRefs:{},showArrow:!1,arrowDirection:""},e.autoPlayChecked=!1,e}return Pn()(t,e),s()(t,[{key:"componentDidMount",value:function(){var e=this.props.streamingChannels;if(e&&(e.rows?this.setState({rows:e.rows}):this.setState({autoformat:!0}),e.cols?this.setState({cols:e.cols}):this.setState({autoformat:!0}),e.streams)){var t=Object.keys(e.streams).length;this.setState({streamsNum:t}),this.autoFormatPlayers(t)}}},{key:"componentWillReceiveProps",value:function(e){if(e.streamingChannels.streams){var t=Object.keys(e.streamingChannels.streams).length;t!==this.state.streamsNum&&0!==this.state.streamsNum&&(this.autoFormatPlayers(t),this.setState({streamsNum:t}))}}},{key:"setPlayersRef",value:function(e,t){var n=this.state.playersRefs;n[e]=t,this.setState({playersRefs:n})}},{key:"frameSeek",value:function(e){var t=this.state.playersRefs;Object.keys(t).forEach((function(n){t[n].currentTime=t[n].currentTime+e/30}))}},{key:"packPlayers",value:function(){var e=this,t=this.state,n=t.rows,r=t.cols,i=this.props,o=i.returnData,a=i.playback_speed,s=i.playerType,u=i.name,c=i.autoPlay,l=i.token,f=i.muted,p=i.paused,g=i.debug,m=i.debugTimers,v=i.streamingChannels,y=i.isStalling,b=i.allRanges,_=i.onMediaInfo,w=i.customItemWrapper,E=i.showPlayButton,S=i.volume,x=i.getStats,k=i.onEvent,T=i.noAuth,O=i.onDoubleClick,R=i.autoVideoTrack,P=i.streamIsLive,A=i.browser,C=i.isPlaying,L=i.logoProperties,D=i.basicApiConfig,I=i.playSegmentDurationForPlayers,j=i.dvr_enabled,M=i.newTracks,N=i.ui,F=i.from,U=i.selected,B=i.advert,q=i.showSelectedOnly,$=i.features,V=v.streams[0],z={name:V.subName,address:V.address||"",auth_token:V.auth_token||"",hidden:!E&&!y,hasPreview:!1,basicApiConfig:D},W=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.a.createElement(ui,null);return h.a.createElement("div",{"data-cy":"clickToPlay",className:t,onClick:e.props.onClickToPlay},n)},G=function(){return B.length>0&&h.a.createElement(_i.Advert,{advert:B,returnData:o,onEvent:k})};if(E)return"ott"===N&&void 0===F?h.a.createElement(d.Fragment,null,G(),W("clickToPlay zIndexMax"),h.a.createElement(vi.Preview,z)):"ott"===N?h.a.createElement(d.Fragment,null,G(),W("clickToRestart",h.a.createElement("span",{className:"icon-one"})),h.a.createElement(vi.Preview,Nr()({},z,{from:F}))):W("clickToPlay");var H=function(t){var n={};switch(t){case"mse":n.tracks=e.props.tracks}return n}(s);return v.streams.map((function(t,i){var d=U===t.subName;return t.subName?Object.keys(t).length?h.a.createElement("div",{className:"PlayerInstance".concat(d?" visible":"").concat(q&&!d?" hidden":"").concat(q&&d?" fullscreen":""),onClick:e.selectPlayer,"data-name":t.subName,style:{width:"".concat(100/r,"%"),height:"".concat(100/n,"%"),order:"".concat(t.order||null)},onDoubleClick:O,key:"player_".concat(t.subName).concat(i)},!1===v.renderTitles||!1===t.renderTitle?null:h.a.createElement("div",{className:"CameraName"},d?h.a.createElement("span",null,"• "):"",t.title?t.title:t.subName),(!C||E)&&!c&&h.a.createElement(vi.Preview,{name:t.subName,address:t.address||"",auth_token:t.auth_token||"",hidden:!E&&!y,hasPreview:!1,basicApiConfig:D,from:F}),Object.keys(L).length>0&&L[t.subName]&&h.a.createElement(bi.a,{name:t.subName,logoProperties:L,basicApiConfig:D}),o&&h.a.createElement(ai,Nr()({},Ti(Ti({},H),{},{name:t.subName||u,main:t.main,item:t,index:i,noDVR:!(!(b&&b[t.subName]&&0==b[t.subName].length||"string"==typeof b[t.subName])&&j),networkError:"string"==typeof b[t.subName],noAuth:T[t.subName]||!1,streamer_http:t.address?t.address:e.props.streamer_http,currentTime:b&&b[t.subName]&&e.props.playingTimeForPlayers&&e.props.playingTimeForPlayers[t.subName]&&0!==b[t.subName].length||e.props.playingTimeForPlayers&&"live"===e.props.playingTimeForPlayers[t.subName]||"ott"===e.props.ui?e.props.playingTimeForPlayers[t.subName]:"stop",playSegmentDuration:I[t.subName],auth_token:t.auth_token?t.auth_token:e.props.auth_token,multiStream:e.state.streamsNum>1,fastSeekingTo:e.props.fastSeekingTo,from:F,fixedRange:e.props.fixedRange,ui:e.props.ui,setPlayersRef:e.setPlayersRef,allowFullscreen:"nvr"===e.props.ui,streamIsLive:P[t.subName],browser:A,returnData:o,playback_speed:a,autoPlay:c,token:l,muted:f,volume:S,debug:g,paused:p,debugTimers:m,selected:e.props.selected,playerType:s,playing:e.props.playingStarted,basicApiConfig:D,isStalling:y,onMediaInfo:_,newTracks:M,panzoomEnable:e.props.panzoom,customItemWrapper:w,onEvent:k,getStats:x,autoVideoTrack:R,features:$}),{key:"DvrPlayerWrapper_".concat(t.subName)}))):h.a.createElement("div",{className:"PlayerInstance",style:{width:"".concat(100/r,"%"),maxHeight:"".concat(100/n,"%"),order:"".concat(i)},onDoubleClick:O,key:"empty_player_".concat(i)},"function"==typeof e.props.customItemWrapper?e.props.customItemWrapper(null,null,i):null):null}))}},{key:"autoFormatPlayers",value:function(e){var t=Math.round(Math.sqrt(e)),n=t,r=t;e>t*t&&(n+=1),this.setState({cols:n,rows:r})}},{key:"selectPlayer",value:function(e){var t=e.currentTarget.dataset.name;this.props.returnData("selected",t)}},{key:"showControl",value:function(e){var t=this;switch(e){case"play":this.setState({showPlayButton:!0,showPauseButton:!1});break;case"stop":this.setState({showPlayButton:!1,showPauseButton:!0});break;default:this.hideControls()}this.hideControlsTimeout&&clearTimeout(this.hideControlsTimeout),this.hideControlsTimeout=setTimeout((function(){t.hideControls()}),1500)}},{key:"hideControls",value:function(){this.setState({showPlayButton:!1,showPauseButton:!1}),this.hideControlsTimeout&&(clearTimeout(this.hideControlsTimeout),this.hideControlsTimeout=null)}},{key:"handlePause",value:function(){var e=this.props;(0,e.returnData)("paused",!e.paused)}},{key:"perFrameSeek",value:function(e){var t=this.props,n=t.paused,r=t.seekFrameEnabled,i=t.returnData;n&&!r?i("seekFrameEnabled",!0):(i("seekFrameEnabled",!n),this.handlePause())}},{key:"showArrow",value:function(e,t){var n=this;clearTimeout(this.hideArrowTimeout),clearTimeout(this.animationStartTimeout),this.setState({showArrow:!0,arrowDirection:e,countSeek:t,isAnimating:!1}),this.animationStartTimeout=setTimeout((function(){n.setState({isAnimating:!0}),n.hideArrowTimeout=setTimeout((function(){n.setState({showArrow:!1,isAnimating:!1})}),1e3)}),300)}},{key:"actionTogglePlayPause",value:function(){var e=this.props,t=e.paused,n=e.ui,r=e.live;t?this.showControl("stop"):this.showControl("play"),"ott"===n||r?this.handlePause():this.perFrameSeek()}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0}},{key:"handleTogglePlayer",value:function(e){var t=this,n=this.props,r=n.live,i=n.playerProgressTime,o=n.fastSeek,a=n.onSeek,s=n.ui;if(!1!==n.autoPlay||this.autoPlayChecked)if(this.isTouchDevice()){var u=e.changedTouches[0],c=e.currentTarget.getBoundingClientRect(),l=u.clientX-c.left,f=e.currentTarget.offsetWidth/3,d=Date.now();if(this.lastTap&&d-this.lastTap<300){if(clearTimeout(this.singleTapTimeout),this.hideControls(),"ott"===s)return;this.tapCount&&d-this.lastTap<500?this.tapCount+=1:this.tapCount=1;var h=10*this.tapCount;if(l<f){var p=Math.min(h,i);if(r)return void a(i-60);o(i-p,"backward"),this.showArrow("left",p)}else l>2*f&&(r||o(i+h,"forward"),this.showArrow("right",h));this.lastTap=d}else this.lastTap=d,this.tapCount=0,this.singleTapTimeout=setTimeout((function(){t.actionTogglePlayPause()}),300)}else this.actionTogglePlayPause();else this.autoPlayChecked=!0}},{key:"render",value:function(){var e=this.props,t=e.seekFrameEnabled,n=e.dvr_enabled,r=e.playerType,i=e.currentTime,o=e.ui,a=e.advert,s=this.state,u=s.showArrow,c=s.arrowDirection,l=s.countSeek,f=s.showPauseButton,d=s.showPlayButton,p=s.isAnimating,g="webrtc"===r&&"live"===i;return h.a.createElement("div",{className:"playersContainer".concat(n?"":" large").concat("ott"===o?" ott":""),style:{zIndex:d&&a.length?10:"initial"},onMouseDown:this.callIfMouseStill.handleMouseDown,onMouseMove:this.callIfMouseStill.handleMouseMove,onMouseUp:this.callIfMouseStill.handleMouseUp,onTouchMove:this.callIfTouchStill.handleTouchMove,onTouchEnd:this.callIfTouchStill.handleTouchEnd},t&&!g&&h.a.createElement(mi,{frameSeek:this.frameSeek}),this.packPlayers(),f&&h.a.createElement(wi,null),d&&h.a.createElement(ui,null),u&&h.a.createElement(Ei,{direction:c,seek:l,isAnimating:p}))}}])}(d.Component);Ri.propTypes=(gi={returnData:Cn.a.func.isRequired,playback_speed:Cn.a.number,playerType:Cn.a.string,playingTimeForPlayers:Cn.a.any,debug:Cn.a.bool,debugTimers:Cn.a.bool,autoPlay:Cn.a.bool,muted:Cn.a.bool,name:Cn.a.string,isStalling:Cn.a.bool},f()(f()(f()(f()(f()(f()(f()(f()(f()(f()(gi,"debug",Cn.a.bool),"auth_token",Cn.a.any),"streamer_http",Cn.a.string),"paused",Cn.a.bool),"allRanges",Cn.a.any),"noAuth",Cn.a.any),"selected",Cn.a.string),"streamingChannels",Cn.a.shape({cols:Cn.a.number,rows:Cn.a.number,streams:Cn.a.arrayOf(Cn.a.any)})),"onMediaInfo",Cn.a.func),"panzoom",Cn.a.bool),f()(f()(f()(f()(f()(f()(f()(f()(f()(f()(gi,"customItemWrapper",Cn.a.func),"showPlayButton",Cn.a.bool),"fastSeekingTo",Cn.a.string),"from",Cn.a.number),"volume",Cn.a.number),"onEvent",Cn.a.func),"getStats",Cn.a.func),"seekFrameEnabled",Cn.a.bool),"fixedRange",Cn.a.bool),"ui",Cn.a.oneOf(["ott","nvr"])),f()(f()(f()(f()(f()(f()(f()(f()(f()(f()(gi,"onDoubleClick",Cn.a.func),"newTracks",Cn.a.array),"autoVideoTrack",Cn.a.bool),"isPlaying",Cn.a.bool),"basicApiConfig",Cn.a.shape({token:Cn.a.string,tokenName:Cn.a.string,auth_token:Cn.a.string,streamer_http:Cn.a.string})),"streamIsLive",Cn.a.shape({})),"logoProperties",Cn.a.any),"browser",Cn.a.string),"playSegmentDurationForPlayers",Cn.a.any),"dvr_enabled",Cn.a.bool),f()(f()(f()(f()(f()(f()(f()(f()(f()(gi,"advert",Cn.a.array),"autoPlay",Cn.a.bool),"showSelectedOnly",Cn.a.bool),"fastSeek",Cn.a.func),"onSeek",Cn.a.func),"playerProgressTime",Cn.a.oneOfType([Cn.a.string,Cn.a.number])),"live",Cn.a.bool),"token",Cn.a.string),"features",Cn.a.shape({isScreenshotEditingEnabled:Cn.a.bool}))),Ri.defaultProps={playerType:"mse",showPlayButton:!1};var Pi=h.a.memo(Ri),Ai=(n(1087),qr()({displayName:"DvrTimeMarkers",className:"DvrTimeMarkers",propTypes:{duration:Cn.a.number.isRequired,from:Cn.a.number,localTime:Cn.a.bool,width:Cn.a.number.isRequired},shouldComponentUpdate:function(e){return this.props.duration!==e.duration||this.props.from!==e.from||this.props.localTime!==e.localTime||this.props.width!==e.width},currentStep:function(){return this.time_unit().time},label:function(e,t){var n=new Date;n.setTime(1e3*e);var r=!1!==this.props.localTime,i=r?n.getHours():n.getUTCHours(),o=r?n.getMinutes():n.getUTCMinutes();if(t<60){var a=r?n.getSeconds():n.getUTCSeconds();return"".concat(Object(Dr.pad2)(i),":").concat(Object(Dr.pad2)(o),":").concat(Object(Dr.pad2)(a))}var s=function(){return"".concat(Object(Dr.pad2)(i),":").concat(Object(Dr.pad2)(o))},u=function(){var e=r?n.getDate():n.getUTCDate(),t=(r?n.getMonth():n.getUTCMonth())+1,i=r?n.getFullYear():n.getUTCFullYear();return"".concat(Object(Dr.pad2)(i),"-").concat(Object(Dr.pad2)(t),"-").concat(Object(Dr.pad2)(e))};return t<=3600?0===i&&0===o?u():1===i&&3600===t?"":s():t>=86400||i>=0&&i<Math.ceil(t/3600)?u():s()},time_units:[{name:"min1",time:60},{name:"min2",time:120},{name:"min5",time:300},{name:"min15",time:900},{name:"min30",time:1800},{name:"hour1",time:3600},{name:"hour2",time:14400},{name:"hour12",time:43200},{name:"day1",time:86400},{name:"day7",time:604800},{name:"month1",time:2592e3}],time_unit:function(){for(var e=this.props,t=e.duration,n=e.width,r=Math.round(150*t/n),i=1;i<this.time_units.length;i++)if(this.time_units[i].time>r||i===this.time_units.length-1)return g()(this.time_units[i-1],{$merge:{i:i-1}})},entries:function(e){for(var t=[],n=this.props,r=n.from,i=n.duration,o=Math.floor(r/e)*e;o<=r+i;)t.push({time:e,utc:o,label:this.label(o,e)}),o+=e;return t},timeMarkers:function(){var e=this.props,t=e.from,n=e.duration,r=e.width,i=this.time_unit();return this.entries(i.time).map(function(e){var o=Math.round((e.utc-t)*r/n);return h.a.createElement("span",{key:e.utc,style:{left:o},className:"".concat(e.label.length>5?"day":"")},h.a.createElement("span",{className:"marker".concat(e.label.length>5?" day":"")}),this.label(e.utc,i.time))}.bind(this))},render:function(){return h.a.createElement("div",{className:"time-markers","data-cy":"time-markers"},this.timeMarkers())}})),Ci=h.a.memo(Ai),Li=n(521),Di=n(522),Ii=function(e,t,n,r){var i=function(e){var n=Math.max(e.from,t),r=n-t,i=e.from>t?e.duration:e.duration-(t-e.from);return{utc:n,start:r,end:r+i,duration:i,meta:e.meta}};return e.reduce((function(e,n){if(n.from+n.duration>t)if(0===e.length)e.push(i(n));else{var o=e[e.length-1],a=n.from-(o.utc+o.duration);a>=r?e.push(i(n)):(o.duration+=a+n.duration,o.end+=a+n.duration)}return e}),[])},ji={reduceRanges:function(e,t,n,r,i){if(0===r||n<10)return[];var o=Math.floor(n/r)||1,a=function(e){return Math.floor(e*r/n)},s=Ii(e,t,0,o);if(0===s.length)return t+n>i?[{utc:t,duration:n,left:0,type:"miss",width:a(i-t)}]:[{utc:t,duration:n,left:0,type:"miss",width:r}];var u=[];return s.forEach((function(e,r,o){if(0===r)e.start>0&&u.push({utc:t,duration:n,type:"miss",left:0,width:a(e.start)}),u.push({utc:e.utc,type:"hit",left:a(e.start),width:a(e.duration)});else{var s=o[r-1];u.push({utc:s.utc+s.duration,type:"miss",left:a(s.end),width:a(e.start-s.end)}),u.push({utc:e.utc,type:"hit",left:a(e.start),width:a(e.duration)}),r===o.length-1&&e.utc+e.duration<t+n&&e.utc+e.duration<i&&u.push({utc:e.utc+e.duration,type:"miss",left:a(e.end),width:a(Math.min(i,t+n)-(e.utc+e.duration))}),e.meta&&u.push({utc:e.utc,type:"live",left:a(e.start),width:a(e.duration)})}})),u},reduceMotion:function(e,t,n,r,i){var o=Math.round(i/200);return e.reduce((function(e,t){var n=0===e.length?null:e[e.length-1];return n&&t.from-(n.utc+n.width)<=o?(n.width=t.from+t.duration-n.utc,n.weight+=t.duration):e.push({utc:t.from,width:t.duration,type:"motion",weight:t.duration,color:t.color,title:t.title,note:t.note}),e}),[]).map((function(e){return e.opacity=Math.round(100*e.weight/e.width)/10,e.width=e.width*r/n,e.left=(e.utc-t)*r/n,e}))},_reduceSegments:Ii};function Mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ni(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mi(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fi(e,t,n){return t=On()(t),kn()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],On()(e).constructor):t.apply(e,n))}var Ui=function(e){function t(){var e;return c()(this,t),(e=Fi(this,t)).utc_change=e.utc_change.bind(e),e.domSizes=e.domSizes.bind(e),e.afterResize=e.afterResize.bind(e),e.loadRanges=e.loadRanges.bind(e),e.refreshMotion=e.refreshMotion.bind(e),e.refreshRanges=e.refreshRanges.bind(e),e.reduceThumbnails=e.reduceThumbnails.bind(e),e.jpeg_url=e.jpeg_url.bind(e),e.onSeekTo=e.onSeekTo.bind(e),e.onMotionSeek=e.onMotionSeek.bind(e),e.startScrollLeft=e.startScrollLeft.bind(e),e.startScrollRight=e.startScrollRight.bind(e),e.stopScroll=e.stopScroll.bind(e),e.scrollToPoint=e.scrollToPoint.bind(e),e.startScale=e.startScale.bind(e),e.stopScale=e.stopScale.bind(e),e.visualTick=e.visualTick.bind(e),e.scale=e.scale.bind(e),e.scroll=e.scroll.bind(e),e.requestAnimationFrame=e.requestAnimationFrame.bind(e),e.recheck_borders=e.recheck_borders.bind(e),e.now=e.now.bind(e),e.now_ms=e.now_ms.bind(e),e.toggleCalendar=e.toggleCalendar.bind(e),e.onThumbnail=e.onThumbnail.bind(e),e.onMouseEnter=e.onMouseEnter.bind(e),e.onMouseLeave=e.onMouseLeave.bind(e),e.onMouseClick=e.onMouseClick.bind(e),e.onMouseMove=e.onMouseMove.bind(e),e.onHoverMove=e.onHoverMove.bind(e),e.controlBtn=e.controlBtn.bind(e),e.setWindowRef=e.setWindowRef.bind(e),e.setTimeMarkersRef=e.setTimeMarkersRef.bind(e),e.dataChange=e.dataChange.bind(e),e.setPercent=e.setPercent.bind(e),e.onDragStart=e.onDragStart.bind(e),e.onDragEnd=e.onDragEnd.bind(e),e.onDrag=e.onDrag.bind(e),e.state={ranges:[],motion:[],now:e.now(),visualDelay:150,visible_offset:0,visible_width:86400,v_duration:86400,renderRanges:{},pLeft:0,pRight:100,window_width:0,cursorPos:null,dragging:!1,dragCenter:null,liveInView:!1},e}return Pn()(t,e),s()(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.zoom,n=e.now,r=e.lockViewLeft,i=e.lockViewRight,o=e.fixedRange,a=e.returnData,s=(t<300?300:t)||3600,u=(this.props.from||n||this.now())-2*s/3,c=(this.props.from||n||this.now())+1*s/3;o&&(r||i)&&(r&&(u=r),c=i||this.now()+300),this.setState({v_from:u,v_duration:c-u,real_from:u,real_to:c,real_duration:c-u,visible_width:this.domSizes().window_width}),a("observableRanges",{start:u,end:u+(c-u)}),a("resolution",(c-u)/this.domSizes().window_width)}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.observableRanges,i=n.returnData,o=n.now,a=n.allRangeInfo,s=this.state,u=s.v_from,c=s.v_duration,l=s.visible_offset,f=s.wrapper_width,d=s.liveInView;if(u!==t.v_from||c!==t.v_duration||l!==t.visible_offset||f!==t.wrapper_width){var h=!1,p=(new Date).getTime()/1e3;p>u&&p<u+c&&(h=!0),i("liveInView",h),this.setState({liveInView:h});var g=u,m=u+c,v=(new Date).getTime()/1e3+300;i("observableRanges",{start:Math.round(g),end:Math.round(m)>v?r.end:Math.round(m)}),this.props.returnVisual({real_from:u,real_to:u+c}),this.dataChange(a,!0)}JSON.stringify(e.allRangeInfo)!==JSON.stringify(a)&&this.dataChange(a,!0),e.now!==o&&(this.setState(this.utc_change(this.props.now,this.state)),d&&this.dataChange(a,!0))}},{key:"dataChange",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.allRangeInfo,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={};if(Object.keys(t).length&&Object.keys(t).forEach((function(n){var i=e.loadRanges(t[n]||[],e.state,e.now(),n);r=Ni(Ni({},r),i)})),n){var i=this.afterResize(this.state);r=Ni(Ni({},r),i)}this.props.multiTimeline||r.renderRanges&&r.renderRanges[this.props.selected]&&(r.renderRanges=f()({},this.props.selected,r.renderRanges[this.props.selected]));var o=this.utc_change(this.props.now,this.state);r=Ni(Ni({},r),o),this.setState(r)}},{key:"setPercent",value:function(e,t){this.setState(f()({},e,t))}},{key:"utc_change",value:function(e,t){if(!e)return{};var n=Math.round((e-t.v_from)*t.visible_width/t.v_duration),r={};n!==t.play_progress&&(r.play_progress=n),e!==t.utc&&(r.utc=e);var i=!0;(this.state.scrolling||this.state.scroll_ended_at&&this.now_ms()-this.state.scroll_ended_at<this.state.visualDelay)&&(i=!1),(this.state.scaling||this.state.scale_ended_at&&this.now_ms()-this.state.scale_ended_at<this.state.visualDelay)&&(i=!1);var o={showBackToCursor:!1};return i&&(e<=t.v_from||e>=t.v_from+t.v_duration)&&(o={showBackToCursor:!0}),g()(r,{$merge:o})}},{key:"domSizes",value:function(){if(!this.windowRef)return!1;var e={},t=this.windowRef,n=t.getBoundingClientRect();if(e.window_width=n.width,e.top=n.top,n.width||n.height){var r=t.ownerDocument,i=r.documentElement,o=r.defaultView;e.window_left=n.left+o.pageXOffset-i.clientLeft}return this.props.returnDomSizes(e),this.setState({window_width:n.width}),e}},{key:"afterResize",value:function(e){return void 0!==e.v_from&&void 0!==e.real_from?{visible_offset:Math.round(-(e.v_from-e.real_from)*e.visible_width/e.v_duration),wrapper_width:Math.round(e.real_duration*e.visible_width/e.v_duration)}:{visible_offset:0,wrapper_width:0}}},{key:"loadRanges",value:function(e,t,n,r){var i={};if(!e)return{};if(e.loaded_at===t.range_loaded_at)return{};var o=t.renderRanges,a=Sn()(e.motion),s=[];if(e.ranges){("string"!=typeof e.ranges||e.ranges)&&(e.ranges.forEach((function(e){"opened_at"in e&&"closed_at"in e&&s.push({from:e.opened_at,duration:e.closed_at-e.opened_at})})),s.push({from:n,duration:15,meta:"pseudolive"}));var u=this.refreshRanges(s,t,n),c={range_loaded_at:e.loaded_at};o[r]=Ni(Ni(Ni({},o[r]),u),c),i=Ni(Ni({},i),{},{renderRanges:o});var l=this.recheck_borders(this.state);if(r===this.props.selected){var f=this.reduceThumbnails(e.brief_thumbnails,t),d=this.refreshMotion(a,t);i=Ni(Ni(Ni(Ni({},i),f),d),l)}return i}}},{key:"refreshMotion",value:function(e,t){return e?{motion_data:e,motion:ji.reduceMotion(e,t.real_from,t.real_duration,t.wrapper_width,t.v_duration)}:{}}},{key:"refreshRanges",value:function(e,t,n){return e?{segments:e,ranges:ji.reduceRanges(e,t.real_from,t.real_duration,t.wrapper_width,n)}:{}}},{key:"reduceThumbnails",value:function(e){if(!e)return{thumbnails:{}};var t={jpegs:{},utcs:{}},n=this.state.visible_width||600;t.step=10*this.state.v_duration/n;for(var r=0;r<e.length;r++){var i=Math.floor(e[r]/t.step);t.jpegs[i]||(t.jpegs[i]=this.jpeg_url(e[r]),t.utcs[i]=e[r])}return{thumbnails:t}}},{key:"jpeg_url",value:function(e){var t=new Date;return t.setTime(1e3*e),"".concat(this.props.http_stream_url,"/").concat(t.getUTCFullYear(),"/").concat(pad2(t.getUTCMonth()+1),"/").concat(pad2(t.getUTCDate()),"/").concat(pad2(t.getUTCHours()),"/").concat(pad2(t.getUTCMinutes()),"/").concat(pad2(t.getUTCSeconds()),".jpg").concat(this.props.auth_token?"?".concat(this.props.auth_token):"")}},{key:"onSeekTo",value:function(e){var t=this.domSizes(),n=(e-t.window_left)/t.window_width,r=Math.round(n*this.state.v_duration+this.state.v_from);r>this.now()?this.props.onSeek("live"):this.props.onSeek(r)}},{key:"onMotionSeek",value:function(e){this.props.downloadModal||this.props.onSeek&&this.props.onSeek(e)}},{key:"startScrollLeft",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01,r=this.props.is_mobile;!t&&!r&&e.preventDefault(),this.setState({scrolling:"left",scroll_count:0,scroll_step:Math.round(this.state.v_duration*n),started:this.now_ms(),start_from:this.state.v_from}),this.requestAnimationFrame(this.visualTick),t&&setTimeout(this.stopScroll,300)}},{key:"startScrollRight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01,r=this.props.is_mobile;!t&&!r&&e.preventDefault(),this.setState({scrolling:"right",scroll_count:0,scroll_step:Math.round(this.state.v_duration*n),started:this.now_ms(),start_from:this.state.v_from}),this.requestAnimationFrame(this.visualTick),t&&setTimeout(this.stopScroll,300)}},{key:"stopScroll",value:function(){this.setState({scrolling:void 0,scroll_count:void 0,scroll_step:void 0,scroll_ended_at:this.now_ms()})}},{key:"scrollToPoint",value:function(e){this.setState({scrolling:"toPoint",scroll_count:0,goUtc:e,scroll_ended_at:e}),this.toPoint=e,this.requestAnimationFrame(this.visualTick)}},{key:"startScale",value:function(e,t,n){var r=this.props.is_mobile,i=Dr.default.calculateScaleTimeline(e,t,n,r),o=i.requestAnimationStopTime,a=i.deltaYScaleCount;clearTimeout(this.stopScaleTimer),n||r||e.preventDefault(),this.setState({scalling:t,scale_count:a,started:this.now_ms()}),this.requestAnimationFrame(this.visualTick),this.stopScaleTimer=setTimeout(this.stopScale,o)}},{key:"stopScale",value:function(){this.setState({scalling:void 0,scale_count:0,scale_ended_at:this.now_ms()})}},{key:"visualTick",value:function(){var e=this.props.zoomSensivity,t=this.state,n=t.scrolling,r=t.scalling,i=t.scroll_count,o=t.started,a=t.scroll_step,s=t.v_duration,u=t.start_from,c=t.scale_count,l=this.now_ms();"left"===n&&(this.setState({scroll_count:i+1}),this.scroll(u-a*(l-o)/20)),"right"===n&&(this.setState({scroll_count:i+1}),this.scroll(u+a*(l-o)/20)),this.toPoint&&(this.scroll(this.toPoint-s/2),this.toPoint=void 0),"out"!==r&&"in"!==r||this.scale((1+c/800)*e),(n||r)&&this.requestAnimationFrame(this.visualTick)}},{key:"scale",value:function(e){var t=this.state,n=t.real_from,r=t.real_duration,i=t.cursorPos,o=t.v_from,a=t.v_duration,s=t.utc,u=t.visible_width,c=this.props.returnData;if(n&&r&&!(e<=0||e<1&&r*e<1e3||e>1&&r*e>2592e3)){var l=o+a/2;i&&i>=o&&i<=o+a?l=i:s>o+a/10&&s<o+.9*a&&(l=s),this.setState({v_from:(l-o)*(1-e)+o,v_duration:e*a}),c("resolution",a/u)}}},{key:"scroll",value:function(e){this.setState({v_from:e})}},{key:"requestAnimationFrame",value:function(e){("undefined"!=typeof window?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame:function(e){setTimeout(e,1e3/120)})(e)}},{key:"recheck_borders",value:function(e){var t=e.v_from-e.real_from,n=e.real_to-(e.v_from+e.v_duration),r={too_few_left:[-t/e.v_duration,-.3],too_few_right:[-n/e.v_duration,-.3],too_much_left:[t/e.v_duration,1.3],too_much_right:[n/e.v_duration,1.3]};for(var i in r){if(r.hasOwnProperty(i))if(r[i][0]>r[i][1]){return{real_from:e.v_from-Math.round(2.4*e.v_duration/3),real_duration:2.4*e.v_duration,real_to:e.v_from+Math.round(4.8*e.v_duration/3)}}}return{}}},{key:"now",value:function(){return Math.round(this.now_ms()/1e3)}},{key:"now_ms",value:function(){return Math.round((new Date).getTime())}},{key:"toggleCalendar",value:function(e){e.preventDefault(),this.state.calendarOpened?this.setState({calendarOpened:!1}):this.setState({calendarOpened:!0}),this.props.onCalendarToggle&&this.props.onCalendarToggle(!this.state.calendarOpened)}},{key:"onThumbnail",value:function(e,t,n,r,i){var o=this.props,a=o.is_mobile,s=o.onCallThumbnail;a||s&&s(e,t,n,r,i,this.state.visible_width)}},{key:"onMouseEnter",value:function(e){return this.setState({over_timeline:!0,thumbnail_url:void 0}),this.onHoverMove(e.pageX)}},{key:"onMouseLeave",value:function(){this.setState({over_timeline:!1,thumbnail_url:void 0}),this.onThumbnail("clear")}},{key:"onMouseClick",value:function(e){e.target!==this.backBtnRef&&(this.props.downloadModal||(e.preventDefault(),this.onSeekTo(e.pageX)))}},{key:"onMouseMove",value:function(e){return this.onHoverMove(e.pageX)}},{key:"onHoverMove",value:function(e){if(this.state.over_timeline&&this.state.visible_width){var t=this.domSizes(),n=e-t.window_left,r=t.top,i=n/t.window_width,o=Math.round(i*this.state.v_duration+this.state.v_from),a=this.state.renderRanges[this.props.selected]&&this.state.renderRanges[this.props.selected].segments?this.state.renderRanges[this.props.selected].segments:[];this.setState({cursorPos:o}),!function(e,t){if(!e)return!1;for(var n=0;n<e.length;n++){if(t<e[n].from)return!1;if(t<e[n].from+e[n].duration)return!0}return!1}(a,o)?this.onThumbnail("clear"):this.props.is_mobile?this.onThumbnail("canvas",o,n,r,t.window_left):this.onThumbnail("video",o,n,r,t.window_left)}}},{key:"controlBtn",value:function(e,t,n){var r="btn btn-xs ".concat(e);return h.a.createElement("button",{onMouseDown:t,onTouchStart:t,onMouseUp:n,onTouchEnd:n,type:"button",className:r},h.a.createElement("span",{className:"icon"}))}},{key:"setWindowRef",value:function(e){!this.windowRef&&e&&(this.windowRef=e,this.windowRef.addEventListener("selectstart",(function(){return!1})))}},{key:"setTimeMarkersRef",value:function(e){!this.timeMarkersRef&&e&&(this.timeMarkersRef=e)}},{key:"onDragStart",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.clientX;if(t){var r=e.targetTouches,i=Ur()(r,1),o=i[0];n=o.clientX}var a=this.state,s=a.window_width,u=a.v_from,c=a.v_duration,l=n/(s/100),f=Math.round(u+c/100*l);this.setState({dragging:!0,dragCenter:f})}},{key:"onDragEnd",value:function(){var e=this.state.window_width;this.setState({dragging:!1,dragCenter:e/2}),this.stopScroll()}},{key:"onDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.state,r=n.dragging,i=n.dragCenter;if(r&&i){var o=this.state,a=o.window_width,s=o.v_from,u=o.v_duration,c=e.clientX;if(t){var l=e.targetTouches,f=Ur()(l,1),d=f[0];c=d.clientX}var h=c/(a/100),p=Math.round(s+u/100*h),g=i-p;this.setState({v_from:s+g})}}},{key:"render",value:function(){var e=this.props,t=e.selectionTimeline,n=e.localTime,r=e.debug,i=e.pointSelectTime,o=this.state,a=o.v_from,s=o.v_duration,u=o.window_width,c=o.visible_width,l=o.renderRanges,f=o.motion,d=o.visible_offset,p=o.play_progress;return h.a.createElement("div",{ref:this.setWindowRef,className:"timeline__timelineView","data-cy":"timelineView",onDoubleClick:i},c&&h.a.createElement("div",{className:"markers_wrapper",draggable:!1},h.a.createElement(Ci,{ref:this.setTimeMarkersRef,from:a,duration:s,width:u||0,localTime:n})),c&&h.a.createElement("div",{className:"line_wrapper".concat(t?" large":""),onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseMove:this.onMouseMove,onDragStart:function(){return!1},draggable:!1},p&&p>0&&p<c&&h.a.createElement(Li.DvrNowMarker,{now:p,width:c}),h.a.createElement(Di.DvrRanges,{allRangeInfo:l,motion:f,debug:r,left:d,width:c,onUtcSeek:this.onMotionSeek,onHandleClick:this.onMouseClick})))}}])}(d.Component);Ui.propTypes={utc:Cn.a.any,onRangesRequested:Cn.a.func,onSeek:Cn.a.func,onCalendarToggle:Cn.a.func,onCallThumbnail:Cn.a.func,thumbnails_enabled:Cn.a.bool,locale:Cn.a.oneOf(["ru","en"]),from:Cn.a.number,now:Cn.a.oneOfType([Cn.a.string,Cn.a.number]),range_info:Cn.a.object,zoom:Cn.a.number,debug:Cn.a.bool,localTime:Cn.a.bool,is_mobile:Cn.a.bool,http_stream_url:Cn.a.string,auth_token:Cn.a.string,currentTime:Cn.a.any,playerUtc:Cn.a.number,returnData:Cn.a.func,observableRanges:Cn.a.shape({start:Cn.a.number,end:Cn.a.number}),allRangeInfo:Cn.a.any,multiTimeline:Cn.a.bool,selected:Cn.a.string,downloadModal:Cn.a.bool,toggleDownload:Cn.a.func,returnDomSizes:Cn.a.func,returnVisual:Cn.a.func,fixedRange:Cn.a.bool,lockViewLeft:Cn.a.number,lockViewRight:Cn.a.number,pointSelectTime:Cn.a.func,selectionTimeline:Cn.a.bool,zoomSensivity:Cn.a.number},Ui.defaultProps={};var Bi=Ui;function qi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qi(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vi(e,t,n){return t=On()(t),kn()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],On()(e).constructor):t.apply(e,n))}var zi=function(e){function t(){var e;return c()(this,t),(e=Vi(this,t)).utcToPath=e.utcToPath.bind(e),e.humanify=e.humanify.bind(e),e.buildSourceUrl=e.buildSourceUrl.bind(e),e.setThumbnailCapturerRef=e.setThumbnailCapturerRef.bind(e),e.setVideoThumbnailRef=e.setVideoThumbnailRef.bind(e),e.captureImageFromVideo=e.captureImageFromVideo.bind(e),e.state={},e}return Pn()(t,e),s()(t,[{key:"setThumbnailCapturerRef",value:function(e){!this.thumbnailCapturer&&e&&(this.thumbnailCapturer=e)}},{key:"setVideoThumbnailRef",value:function(e){!this.videoThumbnail&&e&&(this.videoThumbnail=e)}},{key:"utcToPath",value:function(e){var t=new Date(1e3*e);return this.path=Object(Dr.substitute)("{year}/{month}/{day}/{hours}/{minutes}/{seconds}",{year:t.getUTCFullYear(),month:Object(Dr.pad2)(t.getUTCMonth()+1),day:Object(Dr.pad2)(t.getUTCDate()),hours:Object(Dr.pad2)(t.getUTCHours()),minutes:Object(Dr.pad2)(t.getUTCMinutes()),seconds:Object(Dr.pad2)(t.getUTCSeconds())}),this.path}},{key:"humanify",value:function(e){var t=this.props.localTime;return"".concat(Object(Dr.humanDate)(e,t)," ").concat(Object(Dr.humanTime)(e,t))}},{key:"buildSourceUrl",value:function(e,t){var n=this.props,r=n.authToken,i=n.streamUrl,o=n.thumbnailsEnabled,a=n.basicApiConfig.params,s=r?"?".concat(r):"";return Object(Dr.substitute)("{streamUrl}/{path}{postfix}{authToken}",{streamUrl:i,path:this.utcToPath(e),postfix:"video"===t&&!1===o?"-preview.mp4":".jpg",authToken:s||"?".concat(Object(wn.stringify)(a))})}},{key:"captureImageFromVideo",value:function(){var e=this.refs.thumbnailCapturer,t=this.refs.videoThumbnail;if(this.refs&&e){var n=e.getContext("2d"),r=t.videoWidth,i=t.videoHeight;e.width=r,e.height=i,n.fillRect(0,0,r,i),n.drawImage(t,0,0,r,i)}}},{key:"render",value:function(){var e=this.props,t=e.thumbnail,n=e.frameSeek,r=e.isSelector,i=e.thumbnailsEnabled,o=e.selectionTimeline,a=e.isMobile,s=this.state,u=s.height,c=s.width,l=t.utc,f=t.position,d=t.type,p={height:u,width:c||213};if(document.getElementById("thumbnailVideo")&&document.getElementById("thumbnailVideo").videoHeight){var g=document.getElementById("thumbnailVideo").videoHeight/document.getElementById("thumbnailVideo").videoWidth;if(document.getElementById("thumbnailVideo").videoHeight*g<=160)p={height:document.getElementById("thumbnailVideo").videoHeight*g,width:document.getElementById("thumbnailVideo").videoWidth*g};else{var m=160/document.getElementById("thumbnailVideo").videoHeight;p={height:document.getElementById("thumbnailVideo").videoHeight*m,width:document.getElementById("thumbnailVideo").videoWidth*m}}}var v={left:f,bottom:105},y={position:"absolute",zIndex:1,border:"1px solid",bottom:0,left:"-".concat(p.width/2,"px")||!1};return(n||a)&&(v={left:0,top:0,width:"100%",height:"100%"},p={width:"100%",height:"100%"}),r&&(v=$i($i({},v),{},{left:-p.width/2})),h.a.createElement("div",{style:a?{left:"8px",right:"8px",bottom:"200px"}:{left:"".concat(f||0,"px"),bottom:"".concat(o?180:100,"px")}||v,className:"timeline__thumbnail".concat(a?" isMobile":"")},h.a.createElement("div",{style:a?{width:"100%"}:y},"video"===d&&!1===i&&h.a.createElement("video",{className:"timeline__thumbnail__image",style:p,id:"thumbnailVideo",src:this.buildSourceUrl(l,d),playsInline:!0,autoPlay:!0,loop:!0,controls:!1,muted:!0},h.a.createElement("track",{kind:"captions"})),"image"===d||!0===i&&h.a.createElement("img",{className:"timeline__thumbnail__image",style:{height:u},src:this.buildSourceUrl(l,d),alt:"timeline thumbnail"}),"canvas"===d&&h.a.createElement("canvas",{className:"timeline__thumbnail__image",ref:this.setThumbnailCapturerRef,style:p}),"canvas"===d&&h.a.createElement("video",{ref:this.setVideoThumbnailRef,onLoadedData:this.captureImageFromVideo,className:"timeline__thumbnail__hidden",style:p,src:this.buildSourceUrl(l,"video"),playsInline:!0,autoPlay:!0,loop:!0,controls:!1,muted:!0},h.a.createElement("track",{kind:"captions"})),h.a.createElement("span",{className:"timeline__thumbnail__caption"},this.humanify(l))))}}])}(d.Component);zi.propTypes={thumbnail:Cn.a.shape({type:Cn.a.oneOf(["image","video","canvas"]).isRequired,utc:Cn.a.number.isRequired,position:Cn.a.oneOfType([Cn.a.number,Cn.a.string]).isRequired,pageY:Cn.a.number,timelineLeft:Cn.a.number,visibleWidth:Cn.a.number.isRequired}),media:Cn.a.shape({width:Cn.a.number,height:Cn.a.number}).isRequired,streamUrl:Cn.a.string.isRequired,authToken:Cn.a.string,thumbnailsEnabled:Cn.a.bool,frameSeek:Cn.a.bool,localTime:Cn.a.bool,isSelector:Cn.a.bool,selectionTimeline:Cn.a.bool,isMobile:Cn.a.bool,basicApiConfig:Cn.a.shape({token:Cn.a.string,tokenName:Cn.a.string,auth_token:Cn.a.string,streamer_http:Cn.a.string})};var Wi=zi,Gi=qr()({displayName:"DvrSnapshotControl",className:"DvrSnapshotControl",propTypes:{onTakeSnapshotClick:Cn.a.func.isRequired},render:function(){return h.a.createElement("button",{className:"dvrp-button",onClick:this.props.onTakeSnapshotClick,title:this.props.t("dvr_take_screenshot"),"data-cy":"snapshot-button"},h.a.createElement("span",{className:"icon-screen"}))}}),Hi=Object(d.memo)(Object($r.withTranslation)()(Gi)),Ki=n(523),Yi=n.n(Ki),Qi=(n(1092),function(e){var t=e.isMuted,n=e.onChangeMuted,r=e.volume,i=e.onChangeVolume,o=e.isMobile,a=Object(d.useRef)(null),s=Object(d.useRef)(null),u=r?r/100*40:0;t&&(u=0);var c=function(e){var r=e.currentTarget.getBoundingClientRect(),o=Math.round(e.clientX-6-r.left);o>40?o=40:o<0&&(o=0);var a=o/40*100;a>0&&t&&n(!1),i(a)},l=t||0===r;return h.a.createElement("div",{className:"dvrp-volume-control","data-cy":"dvrp-volume-control"},h.a.createElement("button",{type:"button",className:"dvrp-button dvrp-volume-button",onClick:function(){0===r||t?(i(r>0?r:100),n(!1)):n(!0)},"data-cy":"DVR_mute_button"},l?h.a.createElement("span",{className:"icon-volume_off"}):h.a.createElement("span",{className:"icon-volume"})),!o&&h.a.createElement("div",{className:"dvrp-volume-panel".concat(l?"":" visible"),"data-cy":"dvrp-volume-panel",ref:a,onPointerDown:function(e){0===e.button&&(s.current=e.pointerId,a.current.setPointerCapture(e.pointerId),c(e))},onPointerMove:function(e){null!==s.current&&c(e)},onPointerUp:function(e){null!==s.current&&0===e.button&&(a.current.releasePointerCapture(s.current),s.current=null)}},h.a.createElement("div",{className:"dvrp-volume-slider"},h.a.createElement("div",{className:"dvrp-volume-slider-handle",style:{left:u}}))))});Qi.propTypes={isMuted:Cn.a.bool.isRequired,onChangeMuted:Cn.a.func.isRequired,volume:Cn.a.number.isRequired,onChangeVolume:Cn.a.func.isRequired};var Xi=Object(d.memo)(Qi),Ji=qr()({displayName:"FocusBtn",className:"FocusBtn",render:function(){return h.a.createElement("i",{style:{width:"30px",height:"30px"}},h.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 1000 1000",fill:"#fff",style:{width:"18px",height:"30px"}},h.a.createElement("g",null,h.a.createElement("path",{d:"M898.9,557.6c-25.3,176.6-164.8,316-341.3,341.4v91H442.4v-91.1c-176.6-25.3-316-164.8-341.4-341.3H10V442.4h91c25.3-176.5,164.8-316,341.4-341.3V10h115.3v91.1c176.6,25.3,316,164.8,341.4,341.3h91v115.3H898.9z M557.6,199.9c0,0,0,18.2,0,40.7c0,31.8-25.8,57.6-57.6,57.6c-31.9,0-57.6-25.8-57.6-57.6c0-22.5,0-40.7,0-40.7c-122.6,23.5-219.1,120-242.5,242.5c0,0,18.2,0,40.7,0c31.8,0,57.6,25.8,57.6,57.6s-25.8,57.6-57.6,57.6c-22.5,0-40.7,0-40.7,0c23.4,122.5,119.9,219.1,242.5,242.5c0,0,0-18.2,0-40.7c0-31.8,25.8-57.6,57.6-57.6c31.8,0,57.6,25.8,57.6,57.6c0,17,0,40.7,0,40.7c122.5-23.4,219-119.9,242.5-242.5c0,0-18.2,0-40.7,0c-31.8,0-57.6-25.8-57.6-57.6c0-31.9,25.8-57.6,57.6-57.6c22.5,0,40.7,0,40.7,0C776.7,319.8,680.2,223.3,557.6,199.9z"}))))}}),Zi=h.a.memo(Ji),eo=qr()({displayName:"MinusBtn",className:"MinusBtn",render:function(){return h.a.createElement("i",{style:{width:"14px",height:"14px"}},h.a.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"#fff",style:{width:"14px",height:"14px"},viewBox:"0 0 14 14"},h.a.createElement("path",{fill:"#fff",d:"M1 6h11v3H1z"})))}}),to=h.a.memo(eo),no=qr()({displayName:"PlusBtn",className:"PlusBtn",render:function(){return h.a.createElement("i",{style:{width:"14px",height:"14px"}},h.a.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"#fff",style:{width:"14px",height:"14px"},viewBox:"0 0 14 14"},h.a.createElement("path",{fill:"#fff",d:"M1 6h11v3H1z"}),h.a.createElement("path",{fill:"#fff",d:"M5 2h3v11H5z"})))}}),ro=h.a.memo(no),io=qr()({displayName:"SpeedBtn",className:"SpeedBtn",render:function(){var e={width:"14px",height:"14px",transform:"".concat(this.props.rotate?"rotate(180deg)":"")};return h.a.createElement("i",{style:e},h.a.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"#fff",style:{width:"16px",height:"16px"},viewBox:"0 0 14 14"},h.a.createElement("g",null,h.a.createElement("path",{d:"M 1,1 6,6 1,11"}),h.a.createElement("path",{d:"m 8,1 5,5 -5,5"}))))}}),oo=h.a.memo(io),ao=qr()({displayName:"SpeedBtnLeft",className:"SpeedBtnLeft",render:function(){return h.a.createElement("i",{style:{width:"14px",height:"14px"}},h.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 3.704 3.704"},h.a.createElement("path",{d:"m1 1 5 5-5 5M8 1l5 5-5 5",fill:"#fff",style:{width:"16px",height:"16px"},transform:"rotate(180 2.007 1.852) scale(.3088)"})))}}),so=h.a.memo(ao),uo=n(220);n(1097);function co(e,t,n){return t=On()(t),kn()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],On()(e).constructor):t.apply(e,n))}var lo=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?Number.isNaN(Number(e))?e:-1===Number(e)?"v1":(t?"a":"v")+(Number(e)+1):""},fo=function(e){function t(){var e;return c()(this,t),(e=co(this,t)).form_url=e.form_url.bind(e),e.humanTime=e.humanTime.bind(e),e.handleChange=e.handleChange.bind(e),e.handleSendTime=e.handleSendTime.bind(e),e.linkToEmbed=e.linkToEmbed.bind(e),e.showPopup=e.showPopup.bind(e),e.state={timeStart:{},timeStop:{},inputStart:null,inputStop:null,isMenuOpened:!1,popupEnabled:!1,popupText:""},e}return Pn()(t,e),s()(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.start,n=e.stop;this.setState({timeStop:this.humanTime(n),timeStart:this.humanTime(t)})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.start,r=t.stop,i=e.start,o=e.stop;r===o&&o||this.setState({timeStop:this.humanTime(r)}),n===i&&i||this.setState({timeStart:this.humanTime(n)})}},{key:"handleSendTime",value:function(e){e.persist();var t,n=e.target.dataset.type,r=this.state,i=r.inputStart,o=r.inputStop,a=this.props.handleChangeSelection;(t="start"===n?i:o)&&a(t,"start"===n?"left":"right"),this.setState({inputStop:null,inputStart:null})}},{key:"handleChange",value:function(e){e.persist();var t=e.target,n=t.value,r=t.dataset,i=r.name,o=r.type;n=Number.parseInt(n,10);var a=new Date;switch(a.setTime(1e3*this.props[o]),n<0&&(n=0),i){case"h":n>23&&(n=23),a.setHours(n);break;case"m":n>59&&(n=59),a.setMinutes(n);break;case"s":n>59&&(n=59),a.setSeconds(n)}var s=Math.round(a.getTime()/1e3);"start"===o?this.setState({inputStart:s,timeStart:this.humanTime(s)}):this.setState({inputStop:s,timeStop:this.humanTime(s)})}},{key:"form_url",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.props,i=r.name,o=r.basicApiConfig,a=r.form,s=5;if(a){var u=o.baseURL,c=o.params,l=a.state,f=l.left_selected,d=l.right_selected,h=d-f<=0?s:d-f,p=new URL("".concat(u,"/").concat(i,"/archive-").concat(Math.round(f),"-").concat(Math.round(h),".").concat(n?"ts":"mp4"));return Object.keys(c).length&&Object.keys(c).forEach((function(e){p.searchParams.append([e],c[e])})),e&&p.searchParams.append("filter.tracks",t),p}}},{key:"humanTime",value:function(e){var t=this.props.localTime;if(!(e>0))return"";var n=new Date;n.setTime(1e3*e);var r=!(!1===t),i=r?n.getHours():n.getUTCHours(),o=r?n.getMinutes():n.getUTCMinutes(),a=r?n.getSeconds():n.getUTCSeconds();return{h:i<10?"0".concat(i):i.toString(),m:o<10?"0".concat(o):o.toString(),s:a<10?"0".concat(a):a.toString()}}},{key:"linkToEmbed",value:function(){var e=this.props,t=e.basicApiConfig,n=e.playerProgressTime,r=e.name,i=t.baseURL,o=t.params,a=new URL("".concat(i,"/").concat(r,"/embed.html?dvr=true"));return Object.keys(o).length&&Object.keys(o).forEach((function(e){a.searchParams.append([e],o[e])})),n&&(a+="&from=".concat(Math.round(n))),a}},{key:"showPopup",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.t("dvr_content_copied"),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1500;this.setState({popupEnabled:!0,popupText:t}),setTimeout((function(){e.setState({popupEnabled:!1,popupText:""})}),n)}},{key:"render",value:function(){var e=this,t=this.state,n=t.timeStart,r=t.timeStop,i=t.isMenuOpened,o=t.popupEnabled,a=t.popupText,s=this.props,u=s.closeExportMenu,c=s.isTrackSelectAvaible,l=s.activeAudioTrack,f=s.activeVideoTrack,d=s.downloadOptions,p=s.start,g=s.stop,m=s.t,v=document.getElementById("forClearout"),y=document.getElementById("forClearoutTimeline"),b="".concat(lo(f,!1)).concat(lo(l,!0)),_=this.form_url(),w=this.form_url(!0,b),E=this.form_url(!1,void 0,!0),S=this.form_url(!0,b,!0);return h.a.createElement("div",{className:"control"},h.a.createElement("div",{className:"popup".concat(o?" enabled":"")},a),h.a.createElement("div",{className:"download-text"},h.a.createElement("button",{className:"bigRoundButton",onClick:u,type:"button","aria-label":m("dvr_close"),title:m("dvr_close")},h.a.createElement("span",{className:"icon-close"})),h.a.createElement("div",{className:"verticalLine"}),h.a.createElement("div",{className:"inputWrapper"},h.a.createElement("div",{className:"inputBlock"},h.a.createElement("input",{type:"number",maxLength:"2","data-type":"start","data-name":"h","data-cy":"time-select-start-h",value:n.h||"00",onChange:function(t){e.handleChange(t)},onKeyDown:function(t){t.key&&"Enter"===t.key&&e.handleSendTime(t)},onClick:function(e){e.target.focus(),e.target.select()},onBlur:this.handleSendTime,min:"0",max:"23"})),":",h.a.createElement("div",{className:"inputBlock"},h.a.createElement("input",{type:"number",maxLength:"2","data-type":"start","data-name":"m","data-cy":"time-select-start-m",value:n.m||"00",onChange:function(t){e.handleChange(t)},onKeyDown:function(t){t.key&&"Enter"===t.key&&e.handleSendTime(t)},onClick:function(e){e.target.focus(),e.target.select()},onBlur:this.handleSendTime,min:"0",max:"59"})),":",h.a.createElement("div",{className:"inputBlock"},h.a.createElement("input",{type:"number",maxLength:"2","data-type":"start","data-name":"s","data-cy":"time-select-start-s",value:n.s||"00",onChange:function(t){e.handleChange(t)},onKeyDown:function(t){t.key&&"Enter"===t.key&&e.handleSendTime(t)},onClick:function(e){e.target.focus(),e.target.select()},onBlur:this.handleSendTime,min:"0",max:"59"}))),h.a.createElement("span",{className:"separator"},"—"),h.a.createElement("div",{className:"inputWrapper"},h.a.createElement("div",{className:"inputBlock"},h.a.createElement("input",{type:"number",maxLength:"2","data-type":"stop","data-name":"h","data-cy":"time-select-end-h",value:r.h||"00",onChange:function(t){e.handleChange(t)},onKeyDown:function(t){t.key&&"Enter"===t.key&&e.handleSendTime(t)},onClick:function(e){e.target.focus(),e.target.select()},onBlur:this.handleSendTime,min:"0",max:"23"})),":",h.a.createElement("div",{className:"inputBlock"},h.a.createElement("input",{type:"number",maxLength:"2","data-type":"stop","data-name":"m","data-cy":"time-select-end-m",value:r.m||"00",onChange:function(t){e.handleChange(t)},onKeyDown:function(t){t.key&&"Enter"===t.key&&e.handleSendTime(t)},onClick:function(e){e.target.focus(),e.target.select()},onBlur:this.handleSendTime,min:0,max:59})),":",h.a.createElement("div",{className:"inputBlock"},h.a.createElement("input",{type:"number",maxLength:"2","data-type":"stop","data-name":"s","data-cy":"time-select-end-s",value:r.s||"00",onChange:function(t){e.handleChange(t)},onKeyDown:function(t){t.key&&"Enter"===t.key&&e.handleSendTime(t)},onClick:function(e){e.target.focus(),e.target.select()},onBlur:this.handleSendTime,min:"0",max:"59"}))),h.a.createElement("div",{className:"verticalLine"}),h.a.createElement("button",{className:"bigRoundButton green",onClick:function(){return e.setState({isMenuOpened:!i})},type:"button","aria-label":m("dvr_export_menu"),title:m("dvr_export_menu"),"data-cy":"open-download-menu"},h.a.createElement("span",{className:"icon-export_player"})),h.a.createElement("div",{className:"dropDown".concat(i?" visible":""),"data-cy":"download-dropdown-menu"},h.a.createElement("div",{className:"firstRow visible"},h.a.createElement("div",{className:"item",onClick:function(){return e.setState({isMenuOpened:!1})},onBlur:function(){return e.setState({isMenuOpened:!1})},title:_},h.a.createElement("a",{target:"_blank",rel:"noreferrer",href:_,title:_,onBlur:function(){return e.setState({isMenuOpened:!1})},"data-cy":"mp4-download-button"},h.a.createElement("span",{className:"smicon"},h.a.createElement("span",{className:"icon-down"})),m("dvr_download_mp4"))),c&&b.length&&h.a.createElement("a",{className:"item",href:w,title:w,target:"_blank",rel:"noreferrer"},h.a.createElement("span",{className:"smicon"},h.a.createElement("span",{className:"icon-track_player"})),h.a.createElement("span",{className:"text"},m("dvr_download_mp4_with_tracks"))),h.a.createElement("a",{className:"item",target:"_blank",href:E,title:E,rel:"noreferrer"},h.a.createElement("span",{className:"smicon"},h.a.createElement("span",{className:"icon-down"})),h.a.createElement("span",{className:"text"},m("dvr_download_ts"))),c&&b.length&&h.a.createElement("a",{className:"item",target:"_blank",href:S,title:S,rel:"noreferrer"},h.a.createElement("span",{className:"smicon"},h.a.createElement("span",{className:"icon-track_player"})),h.a.createElement("span",{className:"text"},m("dvr_download_ts_with_tracks"))),h.a.createElement(uo.CopyToClipboard,{onCopy:function(){e.showPopup()},text:this.form_url()},h.a.createElement("div",{className:"item"},h.a.createElement("span",{className:"smicon"},h.a.createElement("span",{className:"icon-share_player"})),h.a.createElement("span",{className:"text"},m("dvr_share_selected")))),h.a.createElement(uo.CopyToClipboard,{onCopy:function(){e.showPopup()},text:this.linkToEmbed()},h.a.createElement("div",{className:"item"},h.a.createElement("span",{className:"smicon"},h.a.createElement("span",{className:"icon-copy_embed"})),h.a.createElement("span",{className:"text"},m("dvr_copy_embed_url")))),d&&d.map((function(t){return h.a.createElement("div",{className:"item",key:t.title,onClick:function(){return t.callback({url:e.form_url(),duration:g-p})}},h.a.createElement("span",{className:"smicon"},h.a.createElement("span",{className:"icon-timelapse"})),h.a.createElement("span",{className:"text"},t.title))}))))),i&&Object(yr.createPortal)(h.a.createElement("div",{className:"clearDropdown",onClick:function(){return e.setState({isMenuOpened:!1})}}),v),i&&Object(yr.createPortal)(h.a.createElement("div",{className:"clearDropdown",onClick:function(){return e.setState({isMenuOpened:!1})}}),y))}}])}(h.a.Component);fo.propTypes={start:Cn.a.number.isRequired,stop:Cn.a.number.isRequired,localTime:Cn.a.bool,handleChangeSelection:Cn.a.func,closeExportMenu:Cn.a.func,basicApiConfig:Cn.a.shape({token:Cn.a.string,tokenName:Cn.a.string,auth_token:Cn.a.string,streamer_http:Cn.a.string}),activeAudioTrack:Cn.a.string,activeVideoTrack:Cn.a.oneOfType([Cn.a.string,Cn.a.number]),isTrackSelectAvaible:Cn.a.bool,playerProgressTime:Cn.a.oneOfType([Cn.a.string,Cn.a.number]),form:Cn.a.any,downloadOptions:Cn.a.arrayOf(Cn.a.shape({title:Cn.a.string,callback:Cn.a.func}))};var ho=Object($r.withTranslation)()(fo);function po(e,t,n){return t=On()(t),kn()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],On()(e).constructor):t.apply(e,n))}var go=function(e){function t(){var e;return c()(this,t),(e=po(this,t)).mouseDown=e.mouseDown.bind(e),e.mouseMove=e.mouseMove.bind(e),e.mouseUp=e.mouseUp.bind(e),e.unmountListeners=e.unmountListeners.bind(e),e.touchStart=e.touchStart.bind(e),e.touchMove=e.touchMove.bind(e),e.touchEnd=e.touchEnd.bind(e),e.state={moving:!1},e}return Pn()(t,e),s()(t,[{key:"mouseDown",value:function(e){e.preventDefault(),e.stopPropagation();var t=this.props.onMoveStart;this.setState({moving:!0}),t(),document.addEventListener("mousemove",this.mouseMove),document.addEventListener("mouseup",this.mouseUp)}},{key:"mouseUp",value:function(e){e.preventDefault(e);var t=this.props,n=t.gettingCoordinates,r=t.dom,i=t.direction,o=t.onMoveEnd;n&&n(e.pageX-r.window_left,i,!0),this.setState({moving:!1}),this.unmountListeners(),o()}},{key:"mouseMove",value:function(e){e.preventDefault(e);var t=this.props,n=t.gettingCoordinates,r=t.dom,i=t.direction;n&&n(e.pageX-r.window_left,i)}},{key:"touchStart",value:function(e){e.persist(),e.stopPropagation&&e.stopPropagation();var t=this.props.onMoveStart;this.state.moving||(this.setState({moving:!0}),t())}},{key:"touchMove",value:function(e){e.persist(),e.stopPropagation&&e.stopPropagation();var t=e.targetTouches,n=Ur()(t,1)[0].pageX,r=this.props,i=r.gettingCoordinates,o=r.dom,a=r.direction;i&&i(n-o.window_left,a)}},{key:"touchEnd",value:function(e){e.persist(),e.stopPropagation&&e.stopPropagation();var t=this.props.onMoveEnd;this.setState({moving:!1}),t()}},{key:"unmountListeners",value:function(){document.removeEventListener("mousemove",this.mouseMove),document.removeEventListener("mouseup",this.mouseUp)}},{key:"render",value:function(){var e=this.props,t=e.playerRef,n=e.streamUrl,r=e.authToken,i=e.thumbnailsEnabled,o=e.localTime,a=e.realUtc,s=e.dom,u=e.position,c=e.direction,l=e.is_mobile,f=e.basicApiConfig,d=this.state.moving,p=u<0||u>100?0:1,g=t&&t.getMetadata()||{height:0,width:0},m=document.getElementById("forPopup");return h.a.createElement("div",{className:"dvrSelector ".concat(c),style:{left:"".concat(u,"%"),opacity:p},tabIndex:"0",role:"button",onMouseDown:this.mouseDown,onTouchStart:this.touchStart,onTouchMove:this.touchMove,onTouchEnd:this.touchEnd},d&&a&&(l?Object(yr.createPortal)(h.a.createElement(Wi,{thumbnail:{utc:a,type:"video",position:0,pageY:-60,timelineLeft:s.window_left,visibleWidth:s.window_width},media:g,streamUrl:n,authToken:r,basicApiConfig:f,thumbnailsEnabled:i,localTime:o,isSelector:!0,isMobile:l}),m):h.a.createElement("div",{className:"selection_thumbnail"},h.a.createElement(Wi,{thumbnail:{utc:a,type:"video",position:0,pageY:-60,timelineLeft:s.window_left,visibleWidth:s.window_width},media:g,streamUrl:n,authToken:r,basicApiConfig:f,thumbnailsEnabled:i,localTime:o,isSelector:!0}))),h.a.createElement("span",{className:"icon-arrow_player"}))}}])}(h.a.Component);go.propTypes={position:Cn.a.number.isRequired,gettingCoordinates:Cn.a.func.isRequired,onMoveStart:Cn.a.func.isRequired,onMoveEnd:Cn.a.func.isRequired,dom:Cn.a.any,direction:Cn.a.string.isRequired,playerRef:Cn.a.any,realUtc:Cn.a.number.isRequired,streamUrl:Cn.a.string.isRequired,authToken:Cn.a.string,thumbnailsEnabled:Cn.a.bool,localTime:Cn.a.bool,is_mobile:Cn.a.bool,basicApiConfig:Cn.a.shape({token:Cn.a.string,tokenName:Cn.a.string,auth_token:Cn.a.string,streamer_http:Cn.a.string})},go.defaultProps={dom:{},authToken:"",thumbnailsEnabled:!0,localTime:!0};var mo=go;var vo=function(e,t){var n,r,i=!1;return function o(){if(i)return n=arguments,void(r=this);e.apply(this,arguments),i=!0,setTimeout((function(){i=!1,n&&(o.apply(r,n),n=r=null)}),t)}};function yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yo(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _o(e,t,n){return t=On()(t),kn()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],On()(e).constructor):t.apply(e,n))}var wo=function(e){function t(){var e;return c()(this,t),(e=_o(this,t)).gettingCoordinates=vo(e.gettingCoordinates.bind(e),100),e.handleChangeSelection=e.handleChangeSelection.bind(e),e.timeDiff=e.timeDiff.bind(e),e.setLock=e.setLock.bind(e),e.preciecePercent=e.preciecePercent.bind(e),e.focusSelection=e.focusSelection.bind(e),e.state={left:0,right:100,left_time:"",right_time:"",left_selected:0,right_selected:0,direction:""},e}return Pn()(t,e),s()(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.real_from,n=e.real_to,r=e.maxDuration;if("number"==typeof t&&"number"==typeof n){var i=n-t,o=i/100,a=Math.round((new Date).getTime()/1e3),s=10800>r?r:10800,u=n-30*o;i+2<s&&(s=30*o),a<n&&a>t&&(u=a),this.setState({left_selected:u-s,right_selected:u,left:(u-s-t)/o,right:(u-t)/o})}}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.real_from,i=n.real_to,o=n.changeSelectors,a=n.maxDuration,s=this.state,u=s.left,c=s.right,l=s.left_selected,f=s.right_selected;if(!e.real_from||!e.real_to){var d=(i-r)/100;this.setState({left_selected:Math.round(r+u*d),right_selected:Math.round(r+c*d)})}if(e.real_from!==r||e.real_to!==i){var h=(i-r)/100,p={},g=(l-r)/h,m=(f-r)/h;g===u&&m===c||(p=bo(bo({},p),{},{left:g,right:m})),Object.keys(p).length&&this.setState(p)}o(a&&f-l>a?{from:l,duration:a}:{from:l,duration:f-l})}},{key:"gettingCoordinates",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.props,i=r.dom,o=r.real_from,a=r.real_to,s=r.maxDuration,u=i.window_width,c=this.state,l=c.left,d=c.left_time,h=c.left_selected,p=c.right,g=c.right_time,m=c.right_selected,v=this.preciecePercent(e/(u/100)),y=function(e,t){return"left"===t&&e>p-1?p-1:"right"===t&&e<l+1?l+1:e};v=y(v,t);var b=a-o,_=b/100,w=Math.round(o+v*_),E=f()(f()(f()({},t,v),"".concat(t,"_time"),Dr.default.humanTime(w)),"".concat(t,"_selected"),Math.round(w));if(n){if("left"===t&&v>p){var S=bo({},E);E={left:p,left_time:g,left_selected:m,right:S.left,right_time:S.left_time,right_selected:S.left_selected}}else if("right"===t&&v<l){var x=bo({},E);E={right:l,right_time:d,right_selected:h,left:x.right,left_time:x.right_time,left_selected:x.right_selected}}if(s)if("left"===t&&m-E.left_selected>s){var k=E.left_selected+s;E=bo(bo({},E),{},{right:Math.round((k-o)/_),right_time:Dr.default.humanTime(k),right_selected:k})}else if(E.right_selected-h>s){var T=E.right_selected-s;E=bo(bo({},E),{},{left:Math.round((T-o)/_),left_time:Dr.default.humanTime(T),left_selected:T})}}s&&(E=bo(bo({},E),{},{direction:n?"":t})),this.setState(E)}},{key:"handleChangeSelection",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.props,i=r.real_from,o=r.real_to,a=r.maxDuration,s=this.state,u=s.left,c=s.left_selected,l=s.right,d=s.right_selected,h=5,p=o-i,g=p/100;Number.isNaN(e)&&(e="right"===t?o:i);var m=e,v=this.preciecePercent((m-i)/g),y=f()(f()(f()({},t,v),"".concat(t,"_time"),Dr.default.humanTime(e)),"".concat(t,"_selected"),Math.round(e));if("left"===t&&v>l){var b=d-h;m=b,y={left:Math.round(b/g),left_time:Dr.default.humanTime(b),left_selected:b}}else if("right"===t&&v<u){var _=c+h;m=_,y={right:Math.round(_/g),right_time:Dr.default.humanTime(_),right_selected:_}}if(m!==e&&(y[t]=this.preciecePercent((m-i)/g)),a)if("left"===t&&d-y.left_selected>a){var w=y.left_selected+a;y=bo(bo({},y),{},{right:Math.round((w-i)/g),right_time:Dr.default.humanTime(w),right_selected:w})}else if(y.right_selected-c>a){var E=y.right_selected-a;y=bo(bo({},y),{},{left:Math.round((E-i)/g),left_time:Dr.default.humanTime(E),left_selected:E})}if(n)return y;this.setState(y)}},{key:"timeDiff",value:function(e){var t=Math.floor(e/3600),n=Math.floor(e/60)-60*t,r=Math.floor(e)-60*t*60-60*n;return"".concat(t,":").concat(n<10?"0".concat(n):n,":").concat(r<10?"0".concat(r):r)}},{key:"setLock",value:function(e){this.setState(f()({},"".concat(e,"_lock"),!this.state["".concat(e,"_lock")]))}},{key:"preciecePercent",value:function(e){return Math.round(1e4*e)/1e4}},{key:"focusSelection",value:function(){var e=this.state,t=e.left_selected,n=e.right_selected;this.props.setFocus(t-1e3,n-t+2e3)}},{key:"render",value:function(){var e=this.state,t=e.left,n=e.right,r=e.left_time,i=e.right_time,o=e.left_selected,a=e.right_selected,s=this.props,u=s.name,c=s.dom,l=s.toggleDownload,f=s.real_from,d=s.real_to,p=s.closeExportMenu,g=s.basicApiConfig,m=s.playerProgressTime,v=s.isTrackSelectAvaible,y=s.activeAudioTrack,b=s.activeVideoTrack,_=s.form,w=s.is_mobile,E=s.downloadOptions,S=document.getElementById("forOverlays"),x=t<0?0:t,k=n>100?100:n,T=k-x;return h.a.createElement("div",{className:"selectionControls"},h.a.createElement(mo,{position:t,title:r,realUtc:o,dom:c,gettingCoordinates:this.gettingCoordinates,direction:"left",playerRef:this.props.playerRef,streamUrl:this.props.streamUrl,authToken:this.props.authToken,thumbnailsEnabled:this.props.thumbnailsEnabled,localTime:this.props.localTime,onMoveStart:this.props.onMoveStart,onMoveEnd:this.props.onMoveEnd,is_mobile:w,basicApiConfig:g}),0!==o&&0!==a&&h.a.createElement("div",{className:"selectionLength",style:{left:"".concat(x,"%"),right:"".concat(k,"%"),width:"".concat(T,"%"),opacity:"".concat(t<0&&n<0||t>100&&n>100||n-t<3?0:1)}}),0!==o&&0!==a&&h.a.createElement("div",{className:"selectionLength second",style:{left:"".concat(x,"%"),right:"".concat(k,"%"),width:"".concat(T,"%"),opacity:"".concat(t<0&&n<0||t>100&&n>100||n-t<3?0:1)}}),h.a.createElement(mo,{position:n,title:i,realUtc:a,dom:c,gettingCoordinates:this.gettingCoordinates,direction:"right",playerRef:this.props.playerRef,streamUrl:this.props.streamUrl,authToken:this.props.authToken,thumbnailsEnabled:this.props.thumbnailsEnabled,localTime:this.props.localTime,onMoveStart:this.props.onMoveStart,onMoveEnd:this.props.onMoveEnd,is_mobile:w,basicApiConfig:g}),S&&Object(yr.createPortal)(h.a.createElement("div",{className:"downloadBlock","data-cy":"downloadBlock"},h.a.createElement("div",{id:"forDownloadModal"},h.a.createElement(ho,{name:u,url:this.props.http_stream_url,auth_token:this.props.auth_token,start:o,stop:a,locale:this.props.locale,focusSelection:this.focusSelection,handleChangeSelection:this.handleChangeSelection,toggleDownload:l,downloadActive:t>=0&&n>=0,focusAvailable:o<f||a>d,closeExportMenu:p,basicApiConfig:g,playerProgressTime:m,isTrackSelectAvaible:v,activeAudioTrack:y,activeVideoTrack:b,form:_,downloadOptions:E}))),S))}}])}(h.a.Component);wo.propTypes={real_from:Cn.a.number,real_to:Cn.a.number,dom:Cn.a.any,http_stream_url:Cn.a.string,auth_token:Cn.a.string,name:Cn.a.string,locale:Cn.a.oneOf(["ru","en"]),toggleDownload:Cn.a.func,changeSelectors:Cn.a.func,maxDuration:Cn.a.number,setFocus:Cn.a.func,playerRef:Cn.a.any,media:Cn.a.shape({width:Cn.a.number,height:Cn.a.number}),streamUrl:Cn.a.string,authToken:Cn.a.string,thumbnailsEnabled:Cn.a.bool,frameSeek:Cn.a.bool,localTime:Cn.a.bool,closeExportMenu:Cn.a.func,basicApiConfig:Cn.a.shape({token:Cn.a.string,tokenName:Cn.a.string,auth_token:Cn.a.string,streamer_http:Cn.a.string}),activeAudioTrack:Cn.a.string,activeVideoTrack:Cn.a.oneOfType([Cn.a.string,Cn.a.number]),isTrackSelectAvaible:Cn.a.bool,onMoveStart:Cn.a.func.isRequired,onMoveEnd:Cn.a.func.isRequired,playerProgressTime:Cn.a.oneOfType([Cn.a.string,Cn.a.number]),form:Cn.a.any,is_mobile:Cn.a.bool,downloadOptions:Cn.a.arrayOf(Cn.a.shape({title:Cn.a.string,callback:Cn.a.func}))},wo.defaultProps={};var Eo=wo,So=(n(1099),n(288));function xo(e,t,n){return t=On()(t),kn()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],On()(e).constructor):t.apply(e,n))}var ko=function(e){function t(){var e;return c()(this,t),(e=xo(this,t)).handleTrackChange=e.handleTrackChange.bind(e),e.setDropdownVisible=e.setDropdownVisible.bind(e),e.showSubmenu=e.showSubmenu.bind(e),e.closeSubmenu=e.closeSubmenu.bind(e),e.showPopup=e.showPopup.bind(e),e.state={dropdownVisible:!1,secondRow:!1,secondRowContent:"",popupEnabled:!1,popupText:"",debugData:""},e}return Pn()(t,e),s()(t,[{key:"componentDidMount",value:function(){var e;this.setState({debugData:(e=null==So?void 0:So.version,"Build version: ".concat(e))})}},{key:"setDropdownVisible",value:function(){this.setState({dropdownVisible:!this.state.dropdownVisible,secondRow:!1})}},{key:"handleTrackChange",value:function(e,t){var n=this.props.returnData,r=e.target.dataset.value;n("autoVideoTrack","-1"===r),n(t,r||"0"),n("forceStartTrack",!1),this.setState({secondRow:!1})}},{key:"showSubmenu",value:function(e){this.setState({secondRow:!0,secondRowContent:e})}},{key:"closeSubmenu",value:function(){this.setState({secondRow:!1,secondRowContent:""})}},{key:"showPopup",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.t("dvr_content_copied"),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1500;this.setState({popupEnabled:!0,popupText:t}),setTimeout((function(){e.setState({popupEnabled:!1,popupText:""})}),n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.tracksVideo,r=t.tracksAudio,i=t.ott,o=t.live,a=t.t,s=t.activeVideoTrack,u=t.activeAudioTrack,c=this.state,l=c.dropdownVisible,f=c.secondRow,p=c.secondRowContent,g=c.popupText,m=c.popupEnabled,v=c.debugData,y="auto",b="auto";n.forEach((function(e){s==e.track_id&&(y=e.text)})),r.forEach((function(e){u==e.track_id&&(b=e.text)}));var _=document.getElementById("forOverlays"),w=document.getElementById("forClearout"),E=document.getElementById("forClearoutTimeline");return h.a.createElement(d.Fragment,null,h.a.createElement("div",{className:"dropDownWrapper"},h.a.createElement("button",{className:"dvrp-button",onClick:this.setDropdownVisible},h.a.createElement("span",{className:"icon-settings_player"}))),l&&Object(yr.createPortal)(h.a.createElement("div",{className:"dropDown".concat(l?" visible":"")},h.a.createElement("div",{className:"firstRow".concat(f?"":" visible")},this.props.tracksVideo.length>1&&h.a.createElement("div",{className:"item",onClick:function(){e.showSubmenu("tracksVideo")}},h.a.createElement("div",{className:"left"},h.a.createElement("span",{className:"ddicon"},h.a.createElement("span",{className:"icon-hd"})),a("dvr_video_quality")),h.a.createElement("div",{className:"right"},y)),this.props.tracksAudio.length>1&&h.a.createElement("div",{className:"item",onClick:function(){e.showSubmenu("tracksAudio")}},h.a.createElement("div",{className:"left"},h.a.createElement("span",{className:"ddicon"},h.a.createElement("span",{className:"icon-track_player"})),a("dvr_audio_track")),h.a.createElement("div",{className:"right"},b))),h.a.createElement("div",{className:"secondRow".concat(f?" visible":"")},h.a.createElement("div",{className:"item",onClick:this.closeSubmenu},h.a.createElement("span",{className:"ddicon"},h.a.createElement("span",{className:"icon-date_two_player"})),a("tracksVideo"===p?"dvr_video_quality":"dvr_audio_track")),p&&"tracksVideo"===p&&(!o||i)&&h.a.createElement(Oo,{key:"drop_auto",value:"-1",text:a("dvr_auto"),active:"auto"===y,handleTrackChange:function(t){e.handleTrackChange(t,"activeVideoTrack")}}),p&&this.props[p]&&this.props[p].map((function(t){var n="tracksVideo"===p?y:b;return h.a.createElement(Oo,{key:"drop_".concat(t.track_id),value:t.track_id,text:t.text,active:n==t.text,handleTrackChange:function(t){e.handleTrackChange(t,"tracksVideo"===p?"activeVideoTrack":"activeAudioTrack")}})}))),h.a.createElement(uo.CopyToClipboard,{text:v,onCopy:function(){e.showPopup()}},h.a.createElement("div",{className:"item"},a("copy_debug_data"))),h.a.createElement("div",{className:"popupCopyDebug".concat(m?" enabled":"")},g)),_),l&&Object(yr.createPortal)(h.a.createElement("div",{className:"clearDropdown",onClick:this.setDropdownVisible}),w),l&&Object(yr.createPortal)(h.a.createElement("div",{className:"clearDropdown",onClick:this.setDropdownVisible}),E))}}])}(d.Component);ko.propTypes={returnData:Cn.a.func,tracksAudio:Cn.a.array,tracksVideo:Cn.a.array,activeAudioTrack:Cn.a.string,activeVideoTrack:Cn.a.oneOfType([Cn.a.string,Cn.a.number]),live:Cn.a.bool,ott:Cn.a.bool},ko.defaultProps={ott:!1};var To=Object($r.withTranslation)()(ko);function Oo(e){return h.a.createElement("div",{className:"item".concat(e.active?" active":""),"data-value":e.value,onClick:e.handleTrackChange},e.text)}var Ro=n(284),Po=n.n(Ro),Ao=function(e){var t=e.isFullscreen,n=e.onChangeFullscreenState;return h.a.createElement("button",{onClick:function(e){n(!t),e.target.blur()},type:"button",className:"dvrp-button","data-cy":"DVR_fullscreen_button"},t?h.a.createElement("span",{className:"icon-screen_player"}):h.a.createElement("span",{className:"icon-full"}))};Ao.propTypes={isFullscreen:Cn.a.bool.isRequired,onChangeFullscreenState:Cn.a.func.isRequired};var Co=Object(d.memo)(Ao);function Lo(e,t,n){return t=On()(t),kn()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],On()(e).constructor):t.apply(e,n))}var Do=function(e){function t(){var e;return c()(this,t),e=Lo(this,t),f()(e,"formRef",h.a.createRef()),e.onRangesLoaded=e.onRangesLoaded.bind(e),e.onThumbnail=vo(e.onThumbnail.bind(e),250),e.faster=e.faster.bind(e),e.slower=e.slower.bind(e),e.toggleCalendar=e.toggleCalendar.bind(e),e.setTimelineZoom=e.setTimelineZoom.bind(e),e.calendarDayChanged=e.calendarDayChanged.bind(e),e.controlBtn=e.controlBtn.bind(e),e.startScale=e.startScale.bind(e),e.stopScale=e.stopScale.bind(e),e.startScrollLeft=e.startScrollLeft.bind(e),e.startScrollRight=e.startScrollRight.bind(e),e.stopScroll=e.stopScroll.bind(e),e.scrollToPoint=e.scrollToPoint.bind(e),e.handlePause=e.handlePause.bind(e),e.setDvrTimelineRef=e.setDvrTimelineRef.bind(e),e.onTakeSnapshotClick=e.onTakeSnapshotClick.bind(e),e.keyListener=e.keyListener.bind(e),e.mobileVolumeClick=e.mobileVolumeClick.bind(e),e.toggleDownload=e.toggleDownload.bind(e),e.domSizes=e.domSizes.bind(e),e.returnVisual=e.returnVisual.bind(e),e.changeSelectors=e.changeSelectors.bind(e),e.perFrameSeek=e.perFrameSeek.bind(e),e.setFocus=e.setFocus.bind(e),e.pointSelectTime=e.pointSelectTime.bind(e),e.changeVolumeHandler=e.changeVolumeHandler.bind(e),e.wheelChange=e.wheelChange.bind(e),e.dragGesture=e.dragGesture.bind(e),e.handleDvrSelectionMovingStart=e.handleDvrSelectionMovingStart.bind(e),e.handleDvrSelectionMovingEnd=e.handleDvrSelectionMovingEnd.bind(e),e.changeFullscreenStateHandler=e.changeFullscreenStateHandler.bind(e),e.seekLiveFunc=e.seekLiveFunc.bind(e),e.dragGesture.active=!0,e.hasEpisodesChanged=e.hasEpisodesChanged.bind(e),e.state={range_info:{ranges:[],motion:[]},allRangeInfo:{},calendarOpened:!1,mobileVolumeClicked:!1,downloadModal:!0,real_from:0,real_to:86400,duration:10,thumbnail:{},isFooterVisible:!0,selectionTimeline:!1,isDvrSelectionMoving:!1,timeInfo:{url:"",time:""}},e.timelineRef=h.a.createRef(),e.timeoutIdRef=h.a.createRef(),e.preventDefault=function(e){return e.preventDefault()},e}return Pn()(t,e),s()(t,[{key:"componentDidMount",value:function(){this.keydown=document.addEventListener("keydown",this.keyListener);var e=this.props,t=e.from,n=e.now,r=e.fixedRange,i=e.to,o=e.zoom,a=(o<300?300:o)||3600,s=(t||n||this.now())-2*a/3,u=(t||n||this.now())+1*a/3;r&&(t||i)&&(s=t),this.setState({real_from:s,real_to:u});var c=this.timelineRef.current;c&&c.addEventListener("wheel",this.preventDefault)}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.allRanges,i=n.multiTimeline,o=n.selected,a=n.forceScrollToPoint,s=n.returnData;if(!r.loaded_at&&e.allRanges.loaded_at||r.loaded_at&&e.allRanges.loaded_at&&r.loaded_at!==e.allRanges.loaded_at||o!==e.selected||this.hasEpisodesChanged(e.motion_log)){var u={};i?(Object.keys(e.allRanges).forEach((function(n){u[n]=t.onRangesLoaded({ranges:e.allRanges[n],motion_log:e.motion_log},n)})),this.setState({allRangeInfo:u})):(u[e.selected]=this.onRangesLoaded({ranges:e.allRanges[e.selected],motion_log:e.motion_log},e.selected),this.setState({allRangeInfo:u}))}a&&(this.scrollToPoint(),s("forceScrollToPoint",!1))}},{key:"shouldComponentUpdate",value:function(e,t){var n=this.props.maxDuration,r=this.state.duration;return!(r!==t.duration&&r>n)}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.playerProgressTime;if(e.playerProgressTime!==n){var r=Object(Dr.currentUrl)(document.location.href,{from:Math.round(n)});this.setState({timeInfo:{url:r,time:Object(Dr.humanTime)(n)}})}}},{key:"componentDidCatch",value:function(e){if(e instanceof Error){var t=this.props;(0,t.onEvent)(t.name,{key:Date.now(),data:{event:"player_error",error_name:e.name,error_message:e.message}})}console.log(e)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.keyListener);var e=this.timelineRef.current;e&&e.removeEventListener("wheel",this.preventDefault)}},{key:"handlePause",value:function(e){var t=this.props;(0,t.returnData)("paused",!t.paused),e&&e.target.blur()}},{key:"handleDvrSelectionMovingStart",value:function(){this.setState({isDvrSelectionMoving:!0})}},{key:"handleDvrSelectionMovingEnd",value:function(){this.setState({isDvrSelectionMoving:!1})}},{key:"onRangesLoaded",value:function(e,t){var n=this.props.t,r=this.state,i=(r.allRangeInfo,r.range_info),o=e.ranges,a=[],s=!1;e.motion_log&&("episodes"in e.motion_log?(a=e.motion_log.episodes,s=!0):a=e.motion_log);var u="#197f70",c="#2f4858",l="#f0ad4e";a=a.filter((function(e){return s?e:"motion"===e.type&&"range"===e.subtype&&!!e.data})).map((function(e){var t,r={};if(s){var i,o,a="";switch(e.episode_type){case"face":i=n("dvr_episode_type_person"),o=u,a=null===(t=e.matched_persons)||void 0===t?void 0:t.map((function(e){return e.person.name||""})).join(", ");break;case"vehicle":i=n("dvr_episode_type_plate"),o=c,a=e.license_plate_text;break;case"generic":i=n("dvr_episode_type_motion"),o=l}r={from:Math.round(e.opened_at/1e3)||e.at,duration:Math.round((e.closed_at-e.opened_at)/1e3)||10,color:o||l,title:i||"",note:a||""}}else r={from:e.data.start||e.at,duration:e.data.duration||10,color:e.color||"",title:e.title||"",note:e.note||""};return r}));var f=[];Array.prototype.push.apply(f,i.brief_thumbnails),Array.prototype.push.apply(f,e.brief_thumbnails),f.sort();for(var d=0;d<f.length-1;)f[d]===f[d+1]?f.splice(d,1):d++;return{ranges:o,motion:a,brief_thumbnails:f,loaded_at:this.now_ms()}}},{key:"onThumbnail",value:function(e,t,n,r,i,o){this.state.isDvrSelectionMoving||("clear"===e&&this.setState({thumbnail:null}),this.setState({thumbnail:{utc:t,type:e,position:n,pageY:r,timelineLeft:i,visibleWidth:o}}))}},{key:"onTakeSnapshotClick",value:function(){var e=this.props.onTakeSnapshotClick;e()}},{key:"setDvrTimelineRef",value:function(e){!this.dvrTimelineRef&&e&&(this.dvrTimelineRef=e)}},{key:"setFocus",value:function(e,t){this.dvrTimelineRef.setState({v_from:e,v_duration:t})}},{key:"setIsFooterVisible",value:function(e){var t=this.state.isFooterVisible;this.setState({isFooterVisible:e||!t})}},{key:"now",value:function(){return Math.round(this.now_ms()/1e3)}},{key:"now_ms",value:function(){return Math.round((new Date).getTime())}},{key:"faster",value:function(e){e.preventDefault();var t=this.props;(0,t.changeSpeed)(2*(t.playback_speed||1)),e&&e.target.blur()}},{key:"slower",value:function(e){e.preventDefault();var t=this.props;(0,t.changeSpeed)(.5*(t.playback_speed||1)),e&&e.target.blur()}},{key:"toggleCalendar",value:function(e){e.preventDefault();var t=this.props.onCalendarToggle,n=this.state.calendarOpened;n?this.setState({calendarOpened:!1}):this.setState({calendarOpened:!0}),t&&t(!n)}},{key:"setTimelineZoom",value:function(e,t){var n=this.props,r=n.playerRef,i=n.returnData;if(this&&this.dvrTimelineRef){this.dvrTimelineRef.setState({v_from:Number(e)-3600,v_duration:Number(t)-Number(e)+3600}),i("resolution",(t-e)/r.wrapper.offsetWidth)}}},{key:"calendarDayChanged",value:function(e){var t=this;setTimeout((function(){(0,t.props.onSeek)(e,!0),t.dvrTimelineRef.dataChange()}),0)}},{key:"startScale",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this&&this.dvrTimelineRef)return this.dvrTimelineRef.startScale(e,t,n)}},{key:"stopScale",value:function(){if(this&&this.dvrTimelineRef)return this.dvrTimelineRef.stopScale()}},{key:"startScrollLeft",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this&&this.dvrTimelineRef)return this.dvrTimelineRef.startScrollLeft(e,t)}},{key:"startScrollRight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this&&this.dvrTimelineRef)return this.dvrTimelineRef.startScrollRight(e,t)}},{key:"stopScroll",value:function(e){if(this&&this.dvrTimelineRef)return this.dvrTimelineRef.stopScroll(e)}},{key:"scrollToPoint",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.playerProgressTime,t=e;if(this&&this.dvrTimelineRef)return this.dvrTimelineRef.scrollToPoint(t)}},{key:"controlBtn",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4?arguments[4]:void 0,o="".concat(e);return h.a.createElement("button",{onMouseDown:t,onTouchStart:t,onMouseUp:n,onTouchEnd:n,type:"button",className:o,"data-cy":r},i)}},{key:"mobileVolumeClick",value:function(e){var t=this.state.mobileVolumeClicked;this.setState({mobileVolumeClicked:!t}),e&&e.target.blur()}},{key:"toggleDownload",value:function(){var e=this.state.downloadModal;this.setState({downloadModal:!e,calendarOpened:!1})}},{key:"domSizes",value:function(e){this.setState({dom:e})}},{key:"returnVisual",value:function(e){this.setState(e)}},{key:"pointSelectTime",value:function(e){var t=e.clientX,n=this.formRef.current;if(n){var r=n.state,i=r.left,o=r.right,a=this.state.dom,s=a.window_width,u=a.window_left,c=n.preciecePercent(t/((s-u)/100)),l="left";l=c<i?"left":c>o?"right":c<i+(o-i)/2?"left":"right",n.gettingCoordinates(t-u,l,!0)}}},{key:"changeSelectors",value:function(e){var t=this.state,n=t.from,r=t.duration,i={};n!==e.from&&(i.from=e.from),r!==e.duration&&(i.duration=e.duration),Object.keys(i).length&&this.setState(i)}},{key:"perFrameSeek",value:function(e){var t=this.props,n=t.paused,r=t.seekFrameEnabled,i=t.returnData;n&&!r?i("seekFrameEnabled",!0):(i("seekFrameEnabled",!n),this.handlePause()),e&&e.target.blur()}},{key:"changeVolumeHandler",value:function(e){(0,this.props.returnData)("volume",e)}},{key:"keyListener",value:function(e){var t=this.props,n=t.live,r=t.playerProgressTime,i=t.fastSeek,o=t.onSeek;if("Space"===e.code&&(n?this.handlePause():this.perFrameSeek()),"ArrowUp"===e.code&&this.scrollToPoint(),"NumpadAdd"!==e.code&&"Equal"!==e.code||this.startScale(null,"in",!0),"NumpadSubtract"!==e.code&&"Minus"!==e.code||this.startScale(null,"out",!0),!e.ctrlKey||"ArrowRight"!==e.code&&39!==e.which||this.startScrollRight(null,!0),!e.ctrlKey||"ArrowLeft"!==e.code&&37!==e.which||this.startScrollLeft(null,!0),"ArrowRight"!==e.code||n||i(r+10,"forward"),"ArrowLeft"===e.code){if(n)return void o(r-60);i(r-10,"backward")}}},{key:"wheelChange",value:function(e){var t=e.deltaY,n=this.stopScale();return this.prevDelta&&(this.prevDelta<0&&t>0||this.prevDelta>0&&t<0)?n=this.stopScale():t<0?n=this.startScale(e,"in",!0):t>0&&(n=this.startScale(e,"out",!0)),this.prevDelta=t,n}},{key:"dragGesture",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e.persist();var r=this.props.dvr_enabled;if(r){var i="targetTouches"in e;if(e.stopPropagation&&e.stopPropagation(),i||e.preventDefault&&e.preventDefault(),e.cancelBubble=!0,e.returnValue=!1,n){if(i){var o=e.targetTouches,a=Ur()(o,1),s=a[0],u=s.clientX,c=s.clientY;this.prevTouch,this.prevTouch={clientX:u,clientY:c}}if(t){var l=e.clientX,f=e.clientY;this.dvrTimelineRef.onDragStart(e,i),this.touchStarted=!0,this.prevTouch={clientX:l,clientY:f}}else if(this.touchStarted){var d=e.movementX,h=e.movementY;d?this.dvrTimelineRef.onDrag(e,i):h&&(h<-1?this.toggleSelectionTimeline(!0):h>1&&this.toggleSelectionTimeline(!1))}i&&this.dvrTimelineRef.onDrag(e,i)}}}},{key:"toggleSelectionTimeline",value:function(e){this.props.allowExport&&this.setState({selectionTimeline:e})}},{key:"changeFullscreenStateHandler",value:function(e){(0,this.props.returnData)("fullscreen",e)}},{key:"seekLiveFunc",value:function(){(0,this.props.onSeek)("live"),this.scrollToPoint(Math.round(this.now()))}},{key:"hasEpisodesChanged",value:function(e){var t=this.props.motion_log;return t.episodes&&e.episodes&&t.episodes.length!==e.episodes.length}},{key:"render",value:function(){var e=this,t=this.props,n=t.selected,r=t.auth_token,i=t.basicApiConfig,o=t.dvr_ranges_present,a=t.onSeek,s=t.from,u=t.now,c=t.zoom,l=t.debug,f=t.thumbnails_enabled,p=t.onRangesRequested,g=t.is_mobile,m=t.http_stream_url,v=t.currentTime,y=t.returnData,b=t.observableRanges,_=t.multiTimeline,w=t.fixedRange,E=t.localTime,S=t.ui,x=t.playerRef,k=t.onMetadataRequest,T=t.paused,O=t.muted,R=t.onToggleMuted,P=t.playerProgressTime,A=t.volume,C=t.live,L=t.playback_speed,D=t.locale,I=t.maxDuration,j=t.enableMp4Download,M=t.downloadOptions,N=t.activeVideoTrack,F=t.activeAudioTrack,U=t.tracksVideo,B=t.tracksAudio,q=t.rangesLoading,$=t.dvr_enabled,V=t.isFullscreen,z=t.noFullscreen,W=t.zoomSensivity,G=t.calendarRanges,H=t.t,K=t.allowExport,Y=this.state,Q=Y.real_from,X=Y.real_to,J=Y.thumbnail,Z=Y.range_info,ee=Y.allRangeInfo,te=Y.dom,ne=Y.calendarOpened,re=Y.isFooterVisible,ie=Y.selectionTimeline,oe=Y.timeInfo,ae=J&&J.position,se=document.getElementById("videoThumbnail"),ue=document.getElementById("forCalendar");return h.a.createElement(d.Fragment,null,h.a.createElement("div",{id:"forOverlays"}),h.a.createElement("div",{className:"dvrp-top".concat(re?" _visible":""),"data-cy":"dvrp-top"},h.a.createElement("div",{className:"dvrp-controls"},P&&h.a.createElement("div",{className:"timeStamp","data-cy":"timeStamp"},h.a.createElement("a",{href:oe.url},oe.time)),h.a.createElement(Po.a,{live:C,seekLiveFunc:this.seekLiveFunc}))),h.a.createElement("div",{className:"dvrp-bottom-gradient".concat(re?" _visible":"")}),h.a.createElement("div",{className:"dvrp-footer".concat(re?" _visible":""),"data-cy":"dvrp-footer",onWheel:function(t){$&&e.wheelChange(t)},onContextMenu:function(t){var n=t||window.event;e.dragGesture(n,!1,!1)},onMouseDown:function(t){e.dragGesture(t,!0)},onMouseUp:function(){e.touchStarted=!1,$&&e.dvrTimelineRef&&e.dvrTimelineRef.onDragEnd()},onMouseLeave:function(){e.touchStarted=!1,$&&e.dvrTimelineRef&&e.dvrTimelineRef.onDragEnd()},onMouseMove:function(t){e.touchStarted&&e.dragGesture(t,!1)},onTouchStart:function(t){e.dragGesture(t,!0)},onTouchMove:function(t){e.dragGesture(t)},onTouchEnd:this.dvrTimelineRef&&this.dvrTimelineRef.onDragEnd,onDragStart:function(){return!1},draggable:!1},h.a.createElement("div",{className:"dvr-timeline","data-cy":"dvr-timeline",ref:this.timelineRef},$&&h.a.createElement(Bi,{ref:this.setDvrTimelineRef,onSeek:a,from:s,now:u,zoom:c,utc:u,debug:l,thumbnails_enabled:f,onRangesRequested:p,onCallThumbnail:this.onThumbnail,range_info:Z,is_mobile:g,auth_token:r,http_stream_url:m,currentTime:v,returnData:y,observableRanges:b,allRangeInfo:ee,multiTimeline:_,selected:n,toggleDownload:this.toggleDownload,returnDomSizes:this.domSizes,returnVisual:this.returnVisual,fixedRange:w,localTime:E,pointSelectTime:this.pointSelectTime,selectionTimeline:ie,zoomSensivity:W}),J&&J.utc&&se&&!g&&Object(yr.createPortal)(h.a.createElement(Wi,{thumbnail:J,media:k(),streamUrl:m,authToken:r,thumbnailsEnabled:f,localTime:E,selectionTimeline:ie,basicApiConfig:i}),se),ae>0&&h.a.createElement("div",{className:"timeLineCursor",style:{left:"".concat(ae,"px")}}),ie&&$&&o&&j&&h.a.createElement(Eo,{ref:this.formRef,dom:te,real_from:Q,real_to:X,name:n,http_stream_url:m,auth_token:r,locale:D,toggleDownload:this.toggleDownload,changeSelectors:this.changeSelectors,maxDuration:I,setFocus:this.setFocus,streamUrl:m,authToken:r,thumbnailsEnabled:f,localTime:E,playerRef:x,closeExportMenu:function(){e.toggleSelectionTimeline(!1)},basicApiConfig:i,activeVideoTrack:N,activeAudioTrack:F,isTrackSelectAvaible:U.length>1||B.length>1,playerProgressTime:P,form:this.formRef.current,onMoveStart:this.handleDvrSelectionMovingStart,onMoveEnd:this.handleDvrSelectionMovingEnd,is_mobile:g,downloadOptions:M})),h.a.createElement("div",{className:"dvrp-controls","data-cy":"dvrp-controls"},h.a.createElement("div",{className:"dvrp-left-controls","data-cy":"dvrp-left-controls"},$&&h.a.createElement("button",{type:"button",className:"dvrp-button","data-cy":"DVR_play_button",onClick:C?this.handlePause:this.perFrameSeek,title:H(T?"dvr_play":"dvr_pause")},T?h.a.createElement("span",{className:"icon-play_player"}):h.a.createElement("span",{className:"icon-pause_player"})),B.length>0&&h.a.createElement(Xi,{isMuted:O,volume:A,onChangeMuted:R,onChangeVolume:this.changeVolumeHandler,isMobile:g}),$&&h.a.createElement("button",{className:"dvrp-button",id:"centerZoom","data-cy":"centerZoom",onClick:function(t){e.scrollToPoint(),t&&t.target.blur()},type:"button",title:H("dvr_go_to_carret_position"),"aria-label":H("dvr_go_to_carret_position")},h.a.createElement(Zi,null)),$&&h.a.createElement("div",{style:{display:"flex"}},this.controlBtn("dvrp-button",(function(t){e.startScale(t,"out",!1)}),this.stopScale,"zoom_out",h.a.createElement(to,null)),this.controlBtn("dvrp-button",(function(t){e.startScale(t,"in",!1)}),this.stopScale,"zoom_in",h.a.createElement(ro,null))),$&&!g&&this.controlBtn("dvrp-button",this.startScrollLeft,this.stopScroll,"seek_left",h.a.createElement(li,null)),$&&!g&&this.controlBtn("dvrp-button",this.startScrollRight,this.stopScroll,"seek_right",h.a.createElement(di,null)),$&&h.a.createElement("div",{className:"timeline__speedControls".concat(C?" hidden":"")},h.a.createElement("button",{className:"dvrp-button",onClick:this.slower,title:H("dvr_slower"),type:"button","data-cy":"slower","aria-label":H("dvr_slower")},h.a.createElement(so,null)),h.a.createElement("div",null,"x".concat(L)),h.a.createElement("button",{className:"dvrp-button",onClick:this.faster,title:H("dvr_faster"),type:"button","data-cy":"faster","aria-label":H("dvr_faster")},h.a.createElement(oo,null)))),h.a.createElement("div",{className:"dvrp-right-controls","data-cy":"dvrp-right-controls"},m&&h.a.createElement(d.Fragment,null,h.a.createElement("div",{className:"timeline__snapshotControl"},h.a.createElement(Hi,{onTakeSnapshotClick:this.onTakeSnapshotClick}))),"ott"!==S&&$&&K&&h.a.createElement("button",{className:"dvrp-button",onClick:function(){e.toggleSelectionTimeline(!ie)},title:H("dvr_select_export"),type:"button","data-cy":"select_export","aria-label":H("dvr_select_export")},h.a.createElement("span",{className:"icon-export"})),$&&G.length>0&&h.a.createElement("button",{id:"calendarControl","data-cy":"calendarControl",className:"dvrp-button",onClick:this.toggleCalendar,type:"button",title:H("dvr_calendar"),"aria-label":H("dvr_calendar")},h.a.createElement("span",{className:"icon-date_player"})),h.a.createElement(To,{tracksAudio:B,tracksVideo:U,activeAudioTrack:F,activeVideoTrack:N,returnData:y,live:C,openExportMenu:function(){e.toggleSelectionTimeline(!0)}}),!z&&h.a.createElement(Co,{isFullscreen:V,onChangeFullscreenState:this.changeFullscreenStateHandler})),ne&&Object(yr.createPortal)(h.a.createElement("div",{id:"calendarModal",className:"calendar"},h.a.createElement(Yi.a,{now:u||this.now(),onChange:this.calendarDayChanged,locale:D,toggleCalendar:this.toggleCalendar,calendarRanges:G,setTimelineZoom:this.setTimelineZoom,isMobile:g})),ue)),h.a.createElement("div",{id:"forClearoutTimeline"})),l&&h.a.createElement("div",{className:"rangesLoading".concat(q?" visible":"")},h.a.createElement("span",null,"•"),H("dvr_ranges_loading")))}}])}(d.Component);Do.propTypes={playerProgressTime:Cn.a.oneOfType([Cn.a.string,Cn.a.number]),ranges:Cn.a.shape({brief_thumbnails:Cn.a.arrayOf(Cn.a.any),motion_log:Cn.a.any,ranges:Cn.a.arrayOf(Cn.a.shape({opened_at:Cn.a.number,closed_at:Cn.a.number})),stream:Cn.a.string}),observableRanges:Cn.a.shape({start:Cn.a.number,end:Cn.a.number}),calendarRanges:Cn.a.arrayOf(Cn.a.shape({from:Cn.a.number,duration:Cn.a.number})),returnData:Cn.a.func,live:Cn.a.bool,muted:Cn.a.bool,thumbnails_enabled:Cn.a.bool,changeSpeed:Cn.a.func,playback_speed:Cn.a.number,locale:Cn.a.oneOf(["ru","en"]),from:Cn.a.number,now:Cn.a.oneOfType([Cn.a.string,Cn.a.number]),zoom:Cn.a.number,debug:Cn.a.bool,localTime:Cn.a.bool,is_mobile:Cn.a.bool,http_stream_url:Cn.a.string,auth_token:Cn.a.string,onMetadataRequest:Cn.a.func,onToggleMuted:Cn.a.func,onTakeSnapshotClick:Cn.a.func,onSeek:Cn.a.func,onCalendarToggle:Cn.a.func,currentTime:Cn.a.any,dvr_ranges_present:Cn.a.bool,dvr_enabled:Cn.a.bool,paused:Cn.a.bool,multiTimeline:Cn.a.bool,selected:Cn.a.string,rangesLoading:Cn.a.bool,fastSeek:Cn.a.func,volume:Cn.a.number,enableMp4Download:Cn.a.bool,downloadOptions:Cn.a.arrayOf(Cn.a.shape({title:Cn.a.string,callback:Cn.a.func})),seekFrameEnabled:Cn.a.bool,fixedRange:Cn.a.bool,ui:Cn.a.oneOf(["ott","nvr"]),playerRef:Cn.a.any,maxDuration:Cn.a.number,tracksAudio:Cn.a.array,tracksVideo:Cn.a.array,activeAudioTrack:Cn.a.string,activeVideoTrack:Cn.a.oneOfType([Cn.a.string,Cn.a.number]),basicApiConfig:Cn.a.shape({token:Cn.a.string,tokenName:Cn.a.string,auth_token:Cn.a.string,streamer_http:Cn.a.string}),streams:Cn.a.any,isFullscreen:Cn.a.bool.isRequired,noFullscreen:Cn.a.bool.isRequired,zoomSensivity:Cn.a.number,allowExport:Cn.a.bool};var Io=Object($r.withTranslation)()(Do),jo=function(e){var t=e.isPaused,n=e.onChangePlayState;return h.a.createElement("button",{onClick:function(e){n(!t),e.target.blur()},type:"button",className:"dvrp-button","data-cy":"DVR_play_button"},t?h.a.createElement("span",{className:"icon-play_player"}):h.a.createElement("span",{className:"icon-pause_player"}))};jo.propTypes={isPaused:Cn.a.bool.isRequired,onChangePlayState:Cn.a.func.isRequired};var Mo=Object(d.memo)(jo),No=n(524),Fo=n(525),Uo=(n(1107),function(e){var t=e.isPaused,n=e.returnData,r=e.isMuted,i=e.volume,o=e.isFullscreen,a=e.tracksAudio,s=e.tracksVideo,u=e.activeAudioTrack,c=e.activeVideoTrack,l=e.showPlayButton,f=e.live,p=e.onSeek,g=e.noFullscreen,m=e.video,v=e.from,y=e.to,b=e.playbackDuration,_=e.debug,w=Object(d.useRef)(),E=Object(d.useState)(!0),S=Ur()(E,2),x=S[0],k=S[1],T=Object(d.useState)(!1),O=Ur()(T,2),R=O[0],P=O[1],A=Object(d.useState)(null),C=Ur()(A,2),L=C[0],D=C[1];Object(d.useEffect)((function(){m&&D(m)}),[m]);var I=function(e){n("paused",e)};Object(d.useEffect)((function(){return window.clearTimeout(w.current),R||t?k(!0):w.current=window.setTimeout((function(){k(!1)}),3e3),function(){window.clearTimeout(w.current)}}),[t,R]);var j=Object(d.useCallback)((function(e){"Space"===e.code&&I(!t)}),[I,t]);return Object(d.useEffect)((function(){return document.addEventListener("keydown",j),function(){document.removeEventListener("keydown",j)}}),[t,j]),h.a.createElement(d.Fragment,null,h.a.createElement("div",{id:"forOverlays"}),h.a.createElement("div",{className:"dvrp-top"},h.a.createElement("div",{className:"dvrp-controls"},!(v&&y||v&&b)&&!l&&h.a.createElement(Po.a,{live:f,seekLiveFunc:function(){return p("live")}}))),h.a.createElement("div",{className:"dvrp-bottom-gradient".concat(x?" _visible":""),"data-cy":"dvrp-bottom-gradient"}),h.a.createElement("div",{className:"dvrp-footer ott".concat(x?" _visible":""),"data-cy":"dvrp-footer",onMouseMove:function(){P(!0)},onMouseLeave:function(){P(!1)},style:{position:"absolute"}},(v&&y||v&&b)&&!l&&L&&h.a.createElement(No.Timeline,{video:L,from:v,to:y,playbackDuration:b,returnData:n,debug:_}),h.a.createElement("div",{className:"dvrp-controls","data-cy":"dvrp-controls"},h.a.createElement("div",{className:"dvrp-left-controls","data-cy":"dvrp-left-controls"},!l&&h.a.createElement(d.Fragment,null,h.a.createElement(Mo,{isPaused:t,onChangePlayState:I}),a.length>0&&h.a.createElement(Xi,{isMuted:r,volume:i,onChangeMuted:function(e){n("muted",e)},onChangeVolume:function(e){n("volume",e)}}),L&&v&&(y||b)&&h.a.createElement(Fo.TimeIndicator,{video:L,from:v,to:y,playbackDuration:b}))),!l&&h.a.createElement("div",{className:"dvrp-right-controls","data-cy":"dvrp-right-controls"},h.a.createElement(To,{tracksAudio:a,tracksVideo:s,activeAudioTrack:u,activeVideoTrack:c,returnData:n,live:!0,ott:!0}),!g&&h.a.createElement(Co,{isFullscreen:o,onChangeFullscreenState:function(e){n("fullscreen",e)}}))),h.a.createElement("div",{id:"forClearoutTimeline"})))});Uo.propTypes={isPaused:Cn.a.bool.isRequired,returnData:Cn.a.func.isRequired,isMuted:Cn.a.bool.isRequired,volume:Cn.a.number.isRequired,isFullscreen:Cn.a.bool.isRequired,showPlayButton:Cn.a.bool,tracksAudio:Cn.a.array,tracksVideo:Cn.a.array,activeAudioTrack:Cn.a.string,activeVideoTrack:Cn.a.oneOfType([Cn.a.string,Cn.a.number]),live:Cn.a.bool,onSeek:Cn.a.func,noFullscreen:Cn.a.bool.isRequired,video:Cn.a.any,from:Cn.a.number,to:Cn.a.number,playbackDuration:Cn.a.number,debug:Cn.a.bool},Uo.defaultProps={tracksAudio:[],tracksVideo:[],activeVideoTrack:"v1",activeAudioTrack:"a1",showPlayButton:!1,live:!0};var Bo=Uo,qo=n(526),$o=n.n(qo);n(1112),n(1114);function Vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vo(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wo(e,t,n){return t=On()(t),kn()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],On()(e).constructor):t.apply(e,n))}var Go=new br.QueryClient,Ho=!1,Ko=function(e){function t(e){var n,r,i;return c()(this,t),(n=Wo(this,t,[e])).preparePlayer=n.preparePlayer.bind(n),n.setStateSafe=n.setStateSafe.bind(n),n.timeline=n.timeline.bind(n),n.returnData=n.returnData.bind(n),n.setRanges=n.setRanges.bind(n),n.onTimelineSeek=n.onTimelineSeek.bind(n),n.changeSpeed=n.changeSpeed.bind(n),n.onMetadataRequest=n.onMetadataRequest.bind(n),n.onTakeSnapshotClick=n.onTakeSnapshotClick.bind(n),n.handleToggleMuted=n.handleToggleMuted.bind(n),n.setMotions=n.setMotions.bind(n),n.checkAuth=n.checkAuth.bind(n),n.getProgress=n.getProgress.bind(n),n.checkSegment=n.checkSegment.bind(n),n.checkProgressTime=n.checkProgressTime.bind(n),n.calculateNearLeft=n.calculateNearLeft.bind(n),n.stop=n.stop.bind(n),n.setTimeStop=n.setTimeStop.bind(n),n.refreshPlaying=n.refreshPlaying.bind(n),n.onRangesLoading=n.onRangesLoading.bind(n),n.play=n.play.bind(n),n.onClickToPlay=n.onClickToPlay.bind(n),n.fastSeek=n.fastSeek.bind(n),n.onEventCallback=n.onEventCallback.bind(n),n.clearLogEventQueue=n.clearLogEventQueue.bind(n),n.updateLogEventQueue=n.updateLogEventQueue.bind(n),n.stop=n.stop.bind(n),n.restartPlayer=n.restartPlayer.bind(n),n.changeLanguage=n.changeLanguage.bind(n),n.getStats=n.getStats.bind(n),n.addPlayerStat=n.addPlayerStat.bind(n),n.getPlayerStats=n.getPlayerStats.bind(n),n.toggleFullScreen=n.toggleFullScreen.bind(n),n.requestFullscreen=n.requestFullscreen.bind(n),n.exitFullscreen=n.exitFullscreen.bind(n),n.iOSexitHandler=n.iOSexitHandler.bind(n),n.dvrMediaInfo=n.dvrMediaInfo.bind(n),n.tabListener=n.tabListener.bind(n),n.checkIfStreamsAlive=n.checkIfStreamsAlive.bind(n),n.containerRef=h.a.createRef(),n.logger=new Cr.Logger,n.state={calendarFull:!1,playingStarted:!1,showPlayButton:!1,is_mobile:!1,player:"mse",playback_speed:1,paused:!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform),live:!0,isStalling:!0,muted:!0,volume:0,playerProgressTime:Dr.default.now(),liveInView:!1,observableRanges:{},dvr_enabled:!0,dvr_ranges_present:!1,forceScrollToPoint:!1,selected:null,streamingChannels:{},allRanges:{},calendarRanges:[],allMotions:{},playingTimeForPlayers:{},progressTimeForPlayers:{},playSegmentDurationForPlayers:{},sectionInfo:{},selectedUrl:void 0,selectedAuth:void 0,playerReady:{},noAuth:{},rangesLoading:!1,fastSeekingTo:"",livePausedAt:null,isPlaying:!1,networkError:!1,restartTime:null,playerLink:null,vQuality:{corruptedVideoFrames:0,droppedVideoFrames:0,totalVideoFrames:0},seekFrameEnabled:!1,lockViewLeft:null,lockViewRight:null,fullscreen:!1,showSelectedOnly:!1,tracksVideo:[],tracksAudio:[],activeVideoTrack:"",activeAudioTrack:"",currentVideoTrack:"",currentAudioTrack:"",autoVideoTrack:!0,forceStartTrack:!1,streamIsLive:{},info:{},logoProperties:{},advert:[],allowExport:!0,browser:(i=navigator.userAgent,i.includes("OPR/")||i.includes("Opera/")?r="Opera":!i.includes("Safari/")||i.includes("Chrome/")||i.includes("Chromium/")?!i.includes("Chrome/")||i.includes("Edg.")||i.includes("Chromium/")?i.includes("Chromium/")?r="Chromium":i.includes("Edge/")?r="Edge":i.includes("Firefox/")&&!i.includes("Seamonkey/")?r="Firefox":i.includes("Seamonkey/")&&(r="Seamonkey"):r="Chrome":r="Safari",r),ui:"nvr",noFullscreen:!1,locale:e.locale,shouldStop:!1,playDurationStopTime:null,medianStopTime:[],playerRef:null,newTracks:[],basicApiConfig:{},resolution:1,logEventQueue:[],shouldPlayInitEventLog:!0},n.resetStats=function(){n.playerStatsObject={user_agent:navigator.userAgent,bytes:0,application:{application_name:"dvr_player",application_version:n.props.version,stall_count:0,pause_count:0,error_count:0,reconnect_count:0,bitrate_change_count:0,stall_duration:0,pause_duration:0,live_duration:0,total_video_frames:0,dropped_video_frames:0,corrupted_video_frames:0,advertising:!1,advertising_duration:0}}},n.uuid=n.generateUUID(),n.timeToDurationStop=null,n}return Pn()(t,e),s()(t,[{key:"componentWillMount",value:function(){var e=this.props,t=e.name,n=e.streamingChannels,r=e.streams,i=e.proto,o=e.fixedRange,a=e.streamer_http,s=e.auth_token,u=e.autoPlay,c=e.muted,l=e.from,d=e.start_track,h=e.dvr,p=e.ui,g=e.enoughBufferTime,m=e.debugTimers,v=e.allow_export,y={};p&&(this.setState({ui:p}),"ott"===p?y=zo(zo({},y),{},{player:"hls"}):Ho=!0),"hls"===i&&(y=zo(zo({},y),{},{player:"hls"})),"mse"===i&&(y="undefined"!=typeof window&&"MediaSource"in window?zo(zo({},y),{},{player:"mse"}):zo(zo({},y),{},{player:"hls"})),"webrtc"===i&&(y="undefined"!=typeof window&&(window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection)?zo(zo({},y),{},{player:"webrtc"}):"undefined"!=typeof window&&"MediaSource"in window?zo(zo({},y),{},{player:"mse"}):zo(zo({},y),{},{player:"hls"})),o&&(y=zo(zo({},y),{},{player:"hls"}));var b,_,w=(_=!1,b=navigator.userAgent||navigator.vendor||"undefined"!=typeof window&&window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(b)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(b.substr(0,4)))&&(_=!0),_),E=navigator,S=E.userAgent,x=E.userAgentData;if((S.includes("iPad")||S.includes("iPhone")||S.includes("Android")||x&&x.mobile||w)&&(y=zo(zo({},y),{},{is_mobile:!0})),n&&n.streams){var k;n.renderTitles||(1===n.streams.length?n.renderTitles=!1:n.renderTitles=!0),n.streams.forEach((function(e,t){Object.keys(e).length&&e.subName&&(k=t)})),y=zo(zo({},y),{},void 0===k?{streamingChannels:{renderTitles:!1,streams:[{subName:t,auth_token:s,main:!0}]}}:{streamingChannels:n,selected:n.streams[k||0].subName||t,selectedUrl:n.streams[k||0].address||a,selectedAuth:n.streams[k||0].auth_token||s})}else{var T={renderTitles:!1,streams:[{subName:t,auth_token:s,main:!0}]};if(r&&r.length){var O=[];r.forEach((function(e){O.push({subName:e})})),T.streams=O,O.length>=1&&(T.renderTitles=!0)}y=zo(zo({},y),{},{streamingChannels:T,selected:r&&r[0]||t,selectedAuth:s,playerReady:f()({},t,!1)})}"false"===c&&(y=zo(zo({},y),{},{volume:100})),u?(y=zo(zo({},y),{},{paused:!1,playerProgressTime:Dr.default.now()}),l&&(y=zo(zo({},y),{},{playerProgressTime:1e3*l,live:!1}))):(y=zo(zo({},y),{},{showPlayButton:!0,isStalling:!1,paused:!0,playingStarted:!0}),Ho=!0,l&&(y=zo(zo({},y),{},{playerProgressTime:1e3*l,live:!1}))),d&&(y=zo(zo({},y),{},{forceStartTrack:!0})),h||(y=zo(zo({},y),{},{dvr_enabled:!1,ui:"ott"})),this.enoughBufferTime=g||.1,l&&(y=zo(zo({},y),{},{playerProgressTime:l,live:!1})),"boolean"==typeof v&&(y=zo(zo({},y),{},{allowExport:v})),m&&(console.time("[DVRPlayer]: Init Time"),console.time("[DVRPlayer]: Playback Startup Time"),console.time("[DVRPlayer]: Time to first frame")),this.setStateSafe(y)}},{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.muted,r=t.debug,i=t.version,o=t.autoPlay,a=t.token,s=t.tokenName,u=t.auth_token,c=t.streamer_http,l=this.state,f=l.ui,d=l.selectedAuth,h=l.selectedUrl;if(console.log("VERSION:","25.7.2"),n){var p="true"==n;this.setStateSafe({muted:p})}r&&console.info("DVRPlayer@".concat(i)),this.resetStats(),this.containerRef.current&&this.containerRef.current.addEventListener("fullscreenchange",(function(t){!document.fullscreenElement&&e.state.fullscreen&&e.setState({fullscreen:!1})})),document.addEventListener("visibilitychange",this.tabListener),"ott"===f&&o&&this.onClickToPlay();var g=d||u;this.setState({basicApiConfig:Object(Ar.basicConfig)({token:a,tokenName:s,auth_token:g,streamer_http:c||h})})}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.state,i=r.playerProgressTime,o=r.playingTimeForPlayers,a=r.progressTimeForPlayers,s=r.live,u=r.selected,c=r.allRanges,l=r.streamingChannels,f=r.restartTime,d=r.networkError,h=r.info,p=r.paused,g=r.fullscreen,m=r.player,v=r.ui,y=r.dvr_enabled,b=r.shouldStop,_=r.playDurationStopTime,w=r.medianStopTime,E=r.playerRef,S=r.currentAudioTrack,x=r.currentVideoTrack,k=r.activeVideoTrack,T=r.activeAudioTrack,O=r.autoVideoTrack,R=r.newTracks,P=r.advert,A=r.showPlayButton,C=r.playingStarted,L=this.props,D=L.autoPlay,I=L.auth_token,j=L.from,M=L.to,N=L.reportState,F=L.play_duration,U=l.streams,B=U.length>1,q=Object.keys(h);if(!Object.keys(t.info).length&&q.length&&q.forEach((function(e){var t=h[e],r=t.protocols,i=t.advert,o=t.logo,a=t.stats,s=t.permissions;if(r&&!r.mseld&&(E&&(E.playerType="hls"),n.setState({player:"hls"})),o&&n.returnData("logoProperties",o,e),i&&i.length&&(n.stop(),n.setState({advert:i,isPlaying:!1})),a&&Object.keys(a).length){if("dvr_info"in a&&null!=a&&a.dvr_info){var u=a.dvr_info;if("ranges"in u&&null!=u&&u.ranges){var c=u.ranges;n.setState({calendarRanges:c})}}if("status"in a)"error"===a.status&&E&&E.props.name===e&&E.setState({noLive:!0})}s&&Object.keys(s).length&&"export"in s&&n.setState({allowExport:s.export})})),t.dvr_enabled===y||y||this.setState({ui:"ott",player:"hls"}),!C&&D&&this.preparePlayer(),!t.networkError&&d?(null===f&&this.setState({restartTime:Math.round(i)}),this.setTimeStop()):t.networkError&&!d&&this.restartPlayer(),t.playerProgressTime&&t.playerProgressTime!==i){if(this.state.paused||this.setState({isPlaying:!0,seekFrameEnabled:!1}),F){var $=w;$.length<3?($.push(i+F),this.setStateSafe({medianStopTime:$})):3===$.length&&this.setStateSafe({playDurationStopTime:Math.min.apply(Math,Sn()($))}),this.timeToDurationStop=_-i,F&&_&&i>=_&&this.setStateSafe({shouldStop:!0})}M&&i>=M&&this.stop()}else!t.playerProgressTime&&i&&F&&this.setStateSafe({medianStopTime:[i+F]});if(t.selected!==u&&U.forEach((function(e){if(e.subName&&e.subName===u&&(e.address?n.setState({selectedUrl:e.address}):n.setState({selectedUrl:void 0}),e.auth_token?n.setState({selectedAuth:e.auth_token}):n.setState({selectedAuth:I}),e&&e.subName in h)){var t=h[e.subName].stats;if(t&&Object.keys(t).length&&"dvr_info"in t&&null!=t&&t.dvr_info){var r=t.dvr_info;if("ranges"in r&&null!=r&&r.ranges){var i=r.ranges;n.setState({calendarRanges:i})}}}})),0==t.paused&&p&&!t.isPlaying&&this.setState({isPlaying:!1}),t.paused&&0==p&&null!==t.livePausedAt&&(t.livePausedAt<=Dr.default.now()-30&&this.onTimelineSeek(t.livePausedAt),this.setState({livePausedAt:null})),JSON.stringify(a)!==JSON.stringify(t.progressTimeForPlayers)){var V=this.getProgress(a);if(V){var z=this.state,W=z.isStalling,G=z.playerRef;if(!1!==z.playerReady[u]){if(a[u]!==t.progressTimeForPlayers[u]&&G&&"_video"in G){var H=G._video;H&&H.currentTime&&H.currentTime>this.enoughBufferTime&&(W=!1)}B&&(W=!1),s||null!=t.livePausedAt||this.checkProgressTime(),t.isStalling&&!W&&this.onEventCallback(this.state.selected,{key:Date.now(),data:{event:"play_stall_end"}}),this.setState({playerProgressTime:V,isStalling:W})}}}else{var K=!0,Y=o&&Object.keys(o)||[];Y.length&&Y.forEach((function(e){"stop"!==o[e]&&(K=!1)})),Y.length===U.length&&K&&(A||s||F||"ott"===v||j&&M||d||this.onTimelineSeek(Math.round(i)+1))}if(!Object.keys(t.allRanges).length&&Object.keys(c).length&&(j?D?this.onTimelineSeek(j):(Ho=!0,this.setState({playerProgressTime:j})):D&&this.onClickToPlay()),"ott"===!v&&(!t.muted&&this.state.muted?this.setState({volume:0}):t.muted&&!this.state.muted&&this.setState({volume:100})),"function"==typeof N&&N(this.state,this.getPlayerStats,this),g&&!t.fullscreen)if(Dr.default.isIOS()){var Q=this.state.selected,X=document.getElementById("video_".concat(Q));X&&X.webkitSupportsFullscreen&&(X.webkitEnterFullscreen(),X.addEventListener("webkitendfullscreen",this.iOSexitHandler,!1))}else document.fullscreenEnabled?this.requestFullscreen(this.containerRef.current):this.setState({noFullscreen:!0});if(!g&&t.fullscreen&&(this.exitFullscreen(),this.setState({showSelectedOnly:!1})),!B){if(s!==t.live){if("hls"===m)return;var J=k,Z=T;"v0"===(J=k?s?"v"+(Number(k)+1):O?"-1":Number(k.replace(/[^0-9]/g,""))-1+"":s?"v1":"-1")&&(J="v1"),Z=T?s?"a"+(Number(T)+1):Number(T.replace(/[^0-9]/g,""))-1+"":s?"a1":"0",this.setState({tracksVideo:[],tracksAudio:[],activeVideoTrack:J,activeAudioTrack:Z})}Object.keys(t.info).length!==q.length&&q.forEach((function(e){var t=h[e].stats;t&&("dvr_enabled"in t&&(t.dvr_enabled||n.setState({dvr_enabled:!1})))}))}!T&&S&&this.setState({activeAudioTrack:S}),!k&&x&&this.setState({activeVideoTrack:x}),T&&S&&x&&JSON.stringify([k||"0",T])!=JSON.stringify(R)&&(T==S&&k==x||JSON.stringify([k,T])==JSON.stringify(R)||this.setState({newTracks:[k,T]})),!t.shouldStop&&b&&(this.stop(),this.setState({shouldStop:!1})),t.advert&&t.advert.length&&!P.length&&(this.continueFrom=null,this.onClickToPlay())}},{key:"componentDidCatch",value:function(e,t){var n=this.props.sentryConfig;n&&n.length&&Dt(e),e instanceof Error&&this.onEventCallback(this.state.selected,{key:Date.now(),data:{event:"player_error",error_name:e.name,error_message:e.message}})}},{key:"componentWillUnmount",value:function(){document.removeEventListener("visibilitychange",this.tabListener)}},{key:"getShouldEventsLog",value:function(){var e,t;if("undefined"!=typeof window&&window.Cypress)return!1;var n=null===(e=this.state)||void 0===e||null===(e=e.streamingChannels)||void 0===e?void 0:e.streams,r=!n||n.length<=1,i=null===(t=Object.values(this.state.info))||void 0===t||null===(t=t[0])||void 0===t||null===(t=t.features)||void 0===t?void 0:t.is_player_events_enabled,o=this.props.isLoggingEnabled||i;return r&&o}},{key:"setStateSafe",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.isUnmounted?(e=console).log.apply(e,["DVRPlayer's setState called for unmounted component with args: "].concat(n)):this.setState.apply(this,n)}},{key:"changeLanguage",value:function(e){this.setState({locale:e}),vr.changeLanguage(e)}},{key:"returnData",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(n){if(void 0===t)return;var r=zo(zo({},this.state[e]||{}),{},f()({},n,t));this.setState(f()({},e,r))}else this.setState(f()({},e,t))}},{key:"setMotions",value:function(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=this.state.allMotions,a=(null===(n=o[e])||void 0===n?void 0:n.episodes)||[],s=zo({},o),u=Sn()(a),c=u.map((function(e){return e.opened_at}));null==t||null===(r=t.episodes)||void 0===r||r.forEach((function(e){var t=c.indexOf(e.opened_at);-1===t?u.push(e):(u[t].closed_at>e.closed_at||i)&&(u[t]=e)})),s[e]=zo(zo({},s[e]),{},{episodes:u.sort((function(e,t){return e.opened_at-t.opened_at}))}),this.setState({allMotions:s})}},{key:"setRanges",value:function(e,t){this.setState({allRanges:f()(f()({},e,Sn()(t)),"loaded_at",(new Date).getTime())})}},{key:"preparePlayer",value:function(){var e=this.props,t=e.autoPlay,n=e.fixedRange,r=e.from,i=e.to,o=this.state,a=o.ui,s=o.dvr_enabled,u=o.streamingChannels;if(t){var c={},l={},f={};if(r){u.streams.forEach((function(e){Object.keys(e).length&&(c[e.subName]=r,l[e.subName]={nextSection:"live"},f[e.subName]=!0)}));var d={playingTimeForPlayers:c,playerReady:f,sectionInfo:l,playingStarted:!0};"ott"!==a&&(d=zo(zo({},d),{},{observableRanges:{start:r-300,end:Dr.default.now()+300}})),this.setState(d)}else u.streams.forEach((function(e){Object.keys(e).length&&(c[e.subName]="live",l[e.subName]={nextSection:"live"},f[e.subName]=!1)})),this.setStateSafe({playingTimeForPlayers:c,sectionInfo:l,playerReady:f,live:!0,playingStarted:!0}),s||this.setState({observableRanges:{start:Dr.default.now()-300,end:Dr.default.now()+300}}),"ott"!==a&&this.checkProgressTime()}else Ho=!0,r?this.setStateSafe({observableRanges:{start:r-300,end:Dr.default.now()+300}}):this.setStateSafe({observableRanges:{start:Dr.default.now()-300,end:Dr.default.now()+300}});if(n&&r){var h=Dr.default.now()+300;i&&(h=i,this.setStateSafe({lockViewRight:i})),this.setStateSafe({observableRanges:{start:r-300,end:h},lockViewLeft:r})}}},{key:"play",value:function(){this.onClickToPlay()}},{key:"onClickToPlay",value:function(e,t){var n=this;e&&e.stopPropagation();var r=this.state,i=r.ui,o=r.streamingChannels;if(this.setState({showPlayButton:!1,isStalling:!0,paused:!1}),this.onEventCallback(this.state.selected,{key:Date.now(),data:{event:"play_stall_start"}}),this.resetStats(),this.props.from){var a={},s={};o.streams.forEach((function(e){Object.keys(e).length&&(a[e.subName]=n.props.from,s[e.subName]=!1)})),this.setStateSafe({observableRanges:{start:this.props.from-300,end:Dr.default.now()+300},live:!1,playingTimeForPlayers:a,playerReady:s})}else{var u={},c={},l={};o.streams.forEach((function(e){Object.keys(e).length&&(u[e.subName]=n.continueFrom||t?n.continueFrom||t:"live",c[e.subName]=n.continueFrom?{}:{nextSection:"live"},l[e.subName]=!1)})),this.setStateSafe({playingTimeForPlayers:u,sectionInfo:c,playerReady:l,live:!this.continueFrom&&!t}),"ott"!==i&&this.checkProgressTime()}this.continueFrom=null}},{key:"onRangesLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.setState({rangesLoading:e});var t=this.props.element;if(t&&t.dispatchEvent){var n=new CustomEvent("rangesLoading",{detail:e});t.dispatchEvent(n)}}},{key:"onMetadataRequest",value:function(){var e=this.state.playerRef;return e?e.getMetadata():{width:0,height:0}}},{key:"onTakeSnapshotClick",value:function(){var e=this.state,t=e.playerRef,n=e.playerProgressTime;t&&t.takeSnapshot(Math.round(n),this.props.name)}},{key:"onTimelineSeek",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.state,i=r.playerRef,o=r.playerReady,a=r.allRanges,s=r.showPlayButton,u=r.info,c=r.selected;if("ott"!==this.state.ui){var l=e||"live",f=Object.keys(u);if(s&&this.onClickToPlay(void 0,e),!this.state.live||!(l>=Dr.default.now()||"live"===l)){"live"!==e?this.setState({live:!1}):this.setState({live:!0});var d={},h=zo({},a),p=Object.keys(h).filter((function(e){if("loaded_at"!==e)return e}));if(n)return p.forEach((function(e){d[e]=l})),void this.setState({playingTimeForPlayers:d,playerProgressTime:l,progressTimeForPlayers:{}});if(null!==this.state.livePausedAt&&!l)return p.forEach((function(e){d[e]=l})),void this.setState({playingTimeForPlayers:d,playerProgressTime:l,progressTimeForPlayers:{}});null!==this.state.livePausedAt?f.forEach((function(e){d[e]=t.state.livePausedAt})):d=this.checkSegment(l);var g={};Object.keys(o).forEach((function(e){d&&"stop"===d[e]||"string"==typeof a[e]?g[e]=!0:g[e]=!1}));var m=this.getProgress(d);if(this.checkIfStreamsAlive()&&(l>=Dr.default.now()||"live"===l)&&(m=Dr.default.now()),i&&1===f){var v=i._video;v&&v.pause&&v.pause()}this.timeToDurationStop=null,this.setState({playerReady:g,playingTimeForPlayers:d,isStalling:!0,progressTimeForPlayers:{},playerProgressTime:m||Dr.default.now(),forceScrollToPoint:this.props.centeredSeek,paused:!1,noAuth:{},playDurationStopTime:null,medianStopTime:[]}),this.onEventCallback(this.state.selected,{key:Date.now(),data:{event:"play_stall_start"}}),this.uuid=this.generateUUID()}}else if("live"!==e){var y=document.getElementById("video_".concat(c));y.currentTime=e,this.setState({live:!1})}}},{key:"checkSegment",value:function(e){if(e){var t=zo({},this.state.allRanges),n={},r={},i={},o=Object.keys(t).filter((function(e){if("loaded_at"!==e)return e})),a=!1;if(e>=Dr.default.now()||"live"===e)return o.forEach((function(e){r[e]="live"})),r;if(o&&o.length){if(o.forEach((function(o){if(t[o]){var s=Dr.default.CheckInRange(e,t[o]);if(n[o]||(n[o]={}),n[o]=s,s)a=!0,r=zo(zo({},r),{},f()({},o,e)),i=zo(zo({},i),{},f()({},o,s.playbackDuration));else{var u=Dr.default.getNearLeftFrom(e,t[o]);n[o]={nextSection:u},r=zo(zo({},r),{},f()({},o,"stop"))}}else n[o]={nextSection:"live"}})),this.setState({sectionInfo:n,playSegmentDurationForPlayers:i}),!a){var s=this.calculateNearLeft(e);return this.checkSegment(s)}return r}return r}}},{key:"getProgress",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.progressTimeForPlayers;return Object.keys(t).length&&Object.keys(t).forEach((function(n){"number"==typeof t[n]&&(e<t[n]||!e)&&(e=t[n])})),e}},{key:"checkProgressTime",value:function(){var e=this,t=this.state,n=t.sectionInfo,r=t.playingTimeForPlayers,i=t.playerProgressTime,o=t.playerReady,a=t.showPlayButton;"number"==typeof i&&Object.keys(r).forEach((function(t){if(n[t]&&Math.round(i)>=Math.round(n[t].sectionEnd-.5)&&Math.round(i)<=Math.round(n[t].nextSection-.5))e.setState({playingTimeForPlayers:zo(zo({},r),{},f()({},t,"stop"))});else if("stop"==r[t]){if(!1===o[t]&&e.returnData("playerReady",!0,t),n[t]&&Math.round(i)>Math.round(n[t].nextSection)){var s=Math.round(i);e.checkSegment(s),e.setState({playingTimeForPlayers:zo(zo({},r),{},f()({},t,s))})}}else n[t]&&"live"===n[t].nextSection&&!a&&Math.round(i)>=Dr.default.now()-10&&e.onTimelineSeek("live")}))}},{key:"calculateNearLeft",value:function(e){var t=this.state.allRanges,n=Number.POSITIVE_INFINITY;if(Object.keys(t).filter((function(e){if("loaded_at"!==e)return e})).forEach((function(r){var i=Dr.default.getNearLeftFrom(e,t[r]);(i<n||"live"===i)&&(n=i)})),n!==1/0)return n}},{key:"changeSpeed",value:function(e){e>=1/8&&e<=16&&this.setStateSafe({playback_speed:e})}},{key:"handleToggleMuted",value:function(e){this.setStateSafe({muted:!this.state.muted})}},{key:"refreshPlaying",value:function(){this.onTimelineSeek(this.state.playerProgressTime)}},{key:"fastSeek",value:function(e,t){var n=zo({},this.state.allRanges),r=Object.keys(n),i=!0;r.forEach((function(t){n[t]&&"array"==typeof n[t]&&(Dr.default.canFastSeek(e,n[t])||(i=!1))})),i&&this.setState({fastSeekingTo:t})}},{key:"setTimeStop",value:function(){var e={},t={};this.state.streamingChannels.streams.forEach((function(n){Object.keys(n).length&&(e[n.subName]="stop",t[n.subName]=!0)})),this.setState({playingTimeForPlayers:e,playerReady:t})}},{key:"stop",value:function(){var e=this.state.playerProgressTime;this.setTimeStop(),e&&(this.continueFrom=Math.round(e)),this.setState({showPlayButton:!0,isStalling:!1,playingStarted:!1,paused:!0,playDurationStopTime:null,medianStopTime:[]}),this.onEventCallback(this.state.selected,{key:Date.now(),data:{event:"play_stall_end"}}),this.timeToDurationStop=null}},{key:"restartPlayer",value:function(){var e=this.state.restartTime;null!==e&&(this.onTimelineSeek(e),this.setState({restartTime:null}))}},{key:"onEventCallback",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.selected,n=arguments.length>1?arguments[1]:void 0;if(t===this.state.selected||"ott"===this.props.ui){var r=n.key,i=n.data,o=i.event,a=r||Date.now();switch(o){case"play_init":if("hls_dvr"===(null==i?void 0:i.type)&&(this.playerStatsObject.proto="hls"),null!=i&&null!==(e=i.playerInfo)&&void 0!==e&&e.includes("MSEPlayer")&&(this.playerStatsObject.proto="mse"),this.playerStatsObject.opened_at=a,this.state.shouldPlayInitEventLog){var s=Lr.a(n);s.data=zo(zo({},s.data),{},{event:Object(Rr.getFormattedEventName)("play_init"),event_message:Object(Rr.getFormattedEventMessage)("play_init")}),this.updateLogEventQueue(s,{shouldPlayInitEventLog:!1})}break;case"play_init_mse":var u=Lr.a(n);u.data=zo(zo({},u.data),{},{event:Object(Rr.getFormattedEventName)("play_init_mse"),event_message:Object(Rr.getFormattedEventMessage)("play_init_mse")}),this.updateLogEventQueue(u);break;case"play_init_hls":var c=Lr.a(n);c.data=zo(zo({},c.data),{},{event:Object(Rr.getFormattedEventName)("play_init_hls"),event_message:Object(Rr.getFormattedEventMessage)("play_init_hls")}),this.updateLogEventQueue(c);break;case"play_buffer_codecs":this.playerStatsObject.first_byte_at=a;break;case"play_started":this.playerStatsObject.started_at=a;var l=Lr.a(n);if(l.data=zo(zo({},l.data),{},{event:Object(Rr.getFormattedEventName)("play_started"),event_message:Object(Rr.getFormattedEventMessage)("play_started")}),this.updateLogEventQueue(l),this.corrupted_frag_start){var f=a-this.corrupted_frag_start,d=Lr.a(n);d.data=zo(zo({},d.data),{},{event:"player_error",error_name:"corrupted_frag",error_message:"".concat(Object(Rr.getFormattedErrorMessage)("corrupted_frag"),": ").concat(f,"ms")}),this.updateLogEventQueue(d),delete this.corruptedFragDuration}break;case"play_resume":if(this.pauseStartedAt){var h=this.playerStatsObject.application;if(h){var p=h.pause_duration;p+=a-this.pauseStartedAt,this.addPlayerStat("pause_duration",!1,p),delete this.pauseStartedAt}}var g=Lr.a(n);g.data=zo(zo({},g.data),{},{event:Object(Rr.getFormattedEventName)("play_started"),event_message:Object(Rr.getFormattedEventMessage)("play_started")}),this.updateLogEventQueue(g);break;case"play_stalled":this.addPlayerStat("stall_count");break;case"play_stall_start":this.stallStart||(this.stallStart=a);break;case"play_stall_end":if(!this.stallStart)return;var m=a-this.stallStart;this.stallStart=null;var v=Lr.a(n);v.data=zo(zo({},v.data),{},{event:Object(Rr.getFormattedEventName)("play_stall"),event_message:"".concat(Object(Rr.getFormattedEventMessage)("play_stall"),": ").concat(m,"ms")}),this.updateLogEventQueue(v);break;case"play_buffering":this.buferingStart=a;break;case"play_buffered":var y=i.stats;if(y){var b=y.loaded,_=void 0===b?0:b;this.playerStatsObject.bytes+=_}if(!this.buferingStart)break;var w=a-this.buferingStart,E=this.playerStatsObject.application;if(E){var S=E.stall_duration;S+=w,this.addPlayerStat("stall_duration",!1,S),delete this.buferingStart}if(w>1e3){var x=Lr.a(n);x.data=zo(zo({},x.data),{},{event:"player_error",error_name:"long_bufferization",error_message:"".concat(Object(Rr.getFormattedErrorMessage)("long_bufferization"),": ").concat(w,"ms")}),this.updateLogEventQueue(x)}break;case"play_loadedmetadata":this.addPlayerStat("bitrate_change_count");break;case"play_error":this.addPlayerStat("error_count");break;case"play_stop":this.playerStatsObject.closed_at=a;break;case"play_pause":this.addPlayerStat("pause_count"),this.pauseStartedAt=a;var k=Lr.a(n);k.data=zo(zo({},k.data),{},{event:Object(Rr.getFormattedEventName)("play_pause"),event_message:Object(Rr.getFormattedEventMessage)("play_pause")}),this.updateLogEventQueue(k);break;case"play_manifestloaded":var T=i.networkDetails;this.playerStatsObject.source_id=T.headers.get("X-Sid");break;case"play_progress":if(this.segmentStart){var O=this.playerStatsObject.application;if(O){var R=O.live_duration;R+=a-this.segmentStart,this.addPlayerStat("live_duration",!1,R),delete this.segmentStart;var P=this.state.vQuality,A=P.corruptedVideoFrames,C=P.droppedVideoFrames,L=P.totalVideoFrames;this.addPlayerStat("total_video_frames",!1,L),this.addPlayerStat("dropped_video_frames",!1,C),this.addPlayerStat("corrupted_video_frames",!1,A)}}else this.segmentStart=a;this.playerStatsObject.updated_at=a;break;case"play_corrupted_frag_start":this.corrupted_frag_start=a;break;case"player_error":this.updateLogEventQueue(n);break;case"advertising":this.addPlayerStat("advertising",!1,!0),delete this.playerStatsObject.closed_at,this.playerStatsObject.started_at||(this.playerStatsObject.started_at=a);break;case"advertising_duration":var D=i.duration;this.addPlayerStat("advertising_duration",!1,D)}}this.props.onEvent&&this.props.onEvent(t,n)}},{key:"updateLogEventQueue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.getShouldEventsLog()&&this.setState((function(n){return zo({logEventQueue:[].concat(Sn()(n.logEventQueue),[e])},t)}))}},{key:"clearLogEventQueue",value:function(){this.setState({logEventQueue:[]})}},{key:"addPlayerStat",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.playerStatsObject.application;r&&(n?r[e]=n:t&&r[e]++,this.playerStatsObject.application=r)}},{key:"getStats",value:function(){return zo(zo({},this.playerStatsObject),{},{id:this.uuid})}},{key:"getPlayerStats",value:function(){var e=this.state,t=e.playerLink,n=e.live,r=e.ui;if(n){if("ott"===r)return this.getStats();if(t){var i=t.getStats(),o=i.application;return o&&(o.application_name="dvr_player",o.application_version=this.props.version),delete i.uuid,i=zo(zo({},i),{},{application:o}),this.playerStatsObject=zo(zo(zo({},this.playerStatsObject),i),{},{id:this.uuid}),this.playerStatsObject}}return this.getStats()}},{key:"dvrMediaInfo",value:function(e,t){var n=[],r=[];if("mse"===t||"webrtc"===t){var i=e.tracks,o=e.activeStreams,a=i.filter((function(e){return e.content&&"audio"===e.content})),s=o.audio,u=void 0===s?"a1":s,c=o.video,l=void 0===c?"v1":c;i.forEach((function(e){e.content&&"audio"!==e.content&&n.push({text:"".concat(e.width,"x").concat(e.height),width:e.width,height:e.height,track_id:e.track_id})})),a.forEach((function(e,t){r.push({text:e.language?e.language:"audio track ".concat(t+1),track_id:e.track_id})})),this.setState({tracksAudio:r,tracksVideo:n,currentVideoTrack:l||"v1",currentAudioTrack:u||"a1"})}else{var f=e.audioTracks;e.levels.forEach((function(e,t){n.push({text:"".concat(e.width,"x").concat(e.height),width:e.width,height:e.height,track_id:t})})),f.forEach((function(e,t){r.push({text:e.lang||"audio track ".concat(t+1),track_id:t})})),this.setState({tracksAudio:r,tracksVideo:n})}var d=this.props.start_track;if(this.state.forceStartTrack&&d){if(n.length<=1)return;if("lowest"===d){var h,p=999999;n.forEach((function(e){e.width<p&&(p=e.width,h=e.track_id)})),this.setState({activeVideoTrack:h,autoVideoTrack:!1})}else if("best"===d){var g,m=1;n.forEach((function(e){e.width>m&&(m=e.width,g=e.track_id)})),this.setState({activeVideoTrack:g,autoVideoTrack:!1})}else this.setState({activeVideoTrack:d,autoVideoTrack:!1})}if(this.props.onMediaInfo&&"function"==typeof this.props.onMediaInfo)if("mse"===t)this.props.onMediaInfo(zo(zo({},e),{},{streamType:t}));else{var v=e.audioTracks,y=e.levels,b=[];v.forEach((function(e){var t=e.audioCodec,n=e.bitrate,r=e.lang,i=e.name;b.push({codec:t,bitrate:n,language:r,track_id:i,content:"audio"})})),y.forEach((function(e){var t=e.videoCodec,n=e.bitrate,r=e.height,i=e.width;b.push({codec:t,bitrate:n,height:r,width:i,content:"video"})})),this.props.onMediaInfo({streamType:t,streamName:this.state.selected,streams:b,tracks:b})}}},{key:"checkAuth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.selectedAuth;return void 0!==e?"?".concat(e):void 0!==this.props.auth_token?"?".concat(this.props.auth_token):""}},{key:"generateUUID",value:function(){var e=(new Date).getTime(),t="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){var r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:3&r|8).toString(16)}))}},{key:"toggleFullScreen",value:function(){this.setState((function(e){return{fullscreen:!e.fullscreen}}))}},{key:"requestFullscreen",value:function(e){e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen&&e.webkitRequestFullScreen()}},{key:"exitFullscreen",value:function(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()}},{key:"iOSexitHandler",value:function(){if(!document.webkitIsFullScreen&&!document.mozFullScreen&&!document.msFullscreenElement){var e=this.state.selected,t=document.getElementById("video_".concat(e));this.setState({fullscreen:!1,paused:!1}),t.removeEventListener("webkitendfullscreen",this.iOSexitHandler),setTimeout((function(){t.paused&&t.play()}),500)}}},{key:"tabListener",value:function(){document.hidden?this.timeToDurationStop&&this.timeToDurationStop<3e4?this.stopTimer=setTimeout(this.stop,this.timeToDurationStop):this.stopTimer=setTimeout(this.stop,3e4):this.stopTimer&&clearTimeout(this.stopTimer)}},{key:"checkIfStreamsAlive",value:function(){var e=this.state.streamIsLive,t=Object.keys(e),n=!1;return t.length?(t.forEach((function(t){e[t]&&(n=!0)})),n):n}},{key:"timeline",value:function(e,t){var n=this.state,r=n.rangesLoading,i=n.seekFrameEnabled,o=n.playingTimeForPlayers,a=n.playerProgressTime,s=n.selected,u=n.lockViewLeft,c=n.lockViewRight,l=n.showPlayButton,f=n.tracksAudio,d=n.tracksVideo,p=n.activeAudioTrack,g=n.activeVideoTrack,m=n.browser,v=n.streamingChannels,y=n.fullscreen,b=n.muted,_=n.volume,w=n.paused,E=n.live,S=n.isStalling,x=n.dvr_ranges_present,k=n.dvr_enabled,T=n.ui,O=n.noFullscreen,R=n.forceScrollToPoint,P=n.allMotions,A=n.allRanges,C=n.player,L=n.playback_speed,D=n.is_mobile,I=n.observableRanges,j=n.locale,M=n.playerRef,N=n.basicApiConfig,F=n.calendarRanges,U=n.allowExport,B=this.props,q=B.from,$=B.to,V=B.play_duration,z=B.zoom,W=B.thumbnails_enabled,G=B.noMenu,H=B.debug,K=B.timeLineElement,Y=B.info_url,Q=null;M&&"_video"in M&&(Q=M._video);var X=G?null:h.a.createElement(h.a.Fragment,null,"ott"===T&&h.a.createElement(Bo,{isPaused:w,returnData:this.returnData,volume:_,isMuted:b,isFullscreen:y||!1,tracksAudio:f,tracksVideo:d,activeAudioTrack:p,activeVideoTrack:g,showPlayButton:l,live:E,onSeek:this.onTimelineSeek,noFullscreen:O,video:Q,from:q,to:$,playbackDuration:V,debug:H,info_url:Y}),"nvr"===T&&h.a.createElement(Io,{http_stream_url:e,muted:b,thumbnails_enabled:W,playback_speed:L,locale:j,from:q,zoom:z,player:C,debug:H,is_mobile:D,auth_token:t,changeSpeed:this.changeSpeed,onToggleMuted:this.handleToggleMuted,onMetadataRequest:this.onMetadataRequest,onSeek:this.onTimelineSeek,onTakeSnapshotClick:this.onTakeSnapshotClick,currentTime:o&&s&&s in o?o[s]:{},playerProgressTime:a,now:a,allRanges:A,ranges:A&&A[s]?{ranges:"string"!=typeof A[s]?A[s]:[],motion_log:P&&P[s]?P[s]:[],stream:s}:{ranges:[],stream:s},motion_log:P&&P[s]?P[s]:[],observableRanges:I,calendarRanges:F,returnData:this.returnData,live:E,loading:S,dvr_ranges_present:x,dvr_enabled:k,paused:w,forceScrollToPoint:R,multiTimeline:this.props.multiTimeline,selected:s,rangesLoading:r,fastSeek:this.fastSeek,volume:_,enableMp4Download:this.props.enableMp4Download,downloadOptions:this.props.downloadOptions,seekFrameEnabled:i,fixedRange:this.props.fixedRange,lockViewLeft:u,lockViewRight:c,ui:T,playerRef:M,localTime:this.props.localtime,maxDuration:this.props.export_limit,tracksAudio:f,tracksVideo:d,activeAudioTrack:p,activeVideoTrack:g,basicApiConfig:N,browser:m,streams:v.streams,isFullscreen:y,noFullscreen:O,zoomSensivity:1,allowExport:U,onEvent:this.onEventCallback}));return K?Object(yr.createPortal)(X,K):X}},{key:"render",value:function(){var e=this,t=this.state,n=t.ranges,r=t.playingTimeForPlayers,i=t.playerProgressTime,o=t.muted,a=t.playback_speed,s=t.allRanges,u=t.showPlayButton,c=t.fastSeekingTo,l=t.networkError,f=t.seekFrameEnabled,d=t.selectedUrl,p=t.noAuth,g=t.autoVideoTrack,m=t.observableRanges,v=t.selected,y=t.streamingChannels,b=t.rangesLoading,_=t.isPlaying,w=t.streamIsLive,E=t.selectedAuth,S=t.logoProperties,x=t.browser,k=t.playSegmentDurationForPlayers,T=t.isStalling,O=t.dvr_enabled,R=t.ui,P=t.volume,A=t.newTracks,C=t.basicApiConfig,L=t.advert,D=t.live,I=t.liveInView,j=t.info,M=t.playerRef,N=t.showSelectedOnly,F=t.resolution,U=this.props,B=U.episodes_url,q=U.auth_token,$=U.statsSendEnable,V=U.statsSendTime,z=U.headers,W=U.from,G=U.to,H=U.play_duration,K=U.autoPlay,Y=U.token,Q=U.info_url,X=U.streamer_http,J=U.streamer_rtmp,Z=U.debug,ee=U.debugTimers,te=U.panzoom,ne=U.customItemWrapper,re=U.fixedRange,ie=U.tracks,oe=U.ptz,ae=U.features,se=m.start,ue=m.end,ce="".concat(d||X,"/").concat(v),le=E||q;M&&"_video"in M&&M._video&&"currentTime"in M._video&&M._video.currentTime>.25&&(Ho=!0);var fe=h.a.createElement(Pi,{returnData:this.returnData,playerType:this.state.player,playingTimeForPlayers:r,name:this.props.name,muted:o,auth_token:le,tracks:ie,streamer_http:X||d,streamer_rtmp:J,playback_speed:a,ranges:n,debug:Z,debugTimers:ee,paused:this.state.paused,isStalling:T,onMediaInfo:this.dvrMediaInfo,streamingChannels:y,allRanges:s,noAuth:p,selected:v,panzoom:te,customItemWrapper:ne,refreshPlaying:this.refreshPlaying,showPlayButton:u,onClickToPlay:this.onClickToPlay,fastSeekingTo:c,from:W,volume:P,getStats:this.getPlayerStats,onEvent:this.onEventCallback,seekFrameEnabled:f,fixedRange:re,onDoubleClick:function(){e.toggleFullScreen(),e.setState({showSelectedOnly:!N})},showSelectedOnly:N,ui:R,newTracks:A,autoVideoTrack:g,isPlaying:_,basicApiConfig:C,streamIsLive:w,logoProperties:S,browser:x,playSegmentDurationForPlayers:k,dvr_enabled:O,autoPlay:K,features:ae,advert:L,onSeek:this.onTimelineSeek,fastSeek:this.fastSeek,playerProgressTime:i,live:D,token:Y});return h.a.createElement(br.QueryClientProvider,{client:Go},h.a.createElement("div",{className:"dvrContainer".concat(O?"":" noDvr"),ref:this.containerRef,"data-cy":"dvrContainer"},(null==oe?void 0:oe.show_ptz_controls)&&D&&h.a.createElement($o.a,{headers:z,ptz_url:null==oe?void 0:oe.api_url}),fe,this.getShouldEventsLog()&&h.a.createElement(Pr.a,{logger:this.logger,logEventQueue:this.state.logEventQueue,clearLogEventQueue:this.clearLogEventQueue,streamInfo:this.state.info,getPlayerStats:this.getPlayerStats,login:this.props.login,user_id:this.props.user_id,platform:this.props.platform,session_id:this.props.session_id,watcher_version:this.props.watcher_version}),Ho&&this.timeline(ce,le,C),l&&h.a.createElement("div",{className:"reconnect"},h.a.createElement("p",null,"Trying to reconnect...")),h.a.createElement("div",{id:"videoThumbnail",className:"videoThumbnail"}),h.a.createElement("div",{id:"forCalendar"}),h.a.createElement("div",{id:"forPopup"}),h.a.createElement("div",{id:"forClearout"}),Ho&&_&&h.a.createElement("div",{className:"Loading".concat(T?" visible":""),"data-cy":"loadingIndicator"},h.a.createElement(jr,null)),v&&!("ott"===R&&(W&&G||W&&H))&&Object.keys(C).length&&y.streams.map((function(t,n){if(t.subName){if(t.ureachable)return;return h.a.createElement(Or.a,{name:t.subName,auth_token:t.auth_token||E,address:t.address||"",basicApiConfig:C,returnData:e.returnData,info_url:Q,isLive:D,onEvent:e.onEventCallback,key:"info_".concat(t.subName,"_").concat(n)})}})),v&&se&&ue&&"ott"!==R&&!l&&y.streams.map((function(t,n){if(t.subName){if(t.ureachable)return;return h.a.createElement(wr.a,{name:t.subName,address:t.address||X,auth_token:t.auth_token||"",start:se,end:ue,returnData:e.returnData,setRanges:e.setRanges,dvr_enabled:O,onRangesLoading:t.subName===v?e.onRangesLoading:void 0,onEvent:e.onEventCallback,rangesLoading:b,liveCheck:!1,basicApiConfig:C,key:"".concat(t.subName,"_").concat(n),resolution:F})}})),v&&I&&"ott"!==R&&!l&&Object.keys(j).length&&y.streams.map((function(t,n){if(t.subName===v)return h.a.createElement(wr.a,{name:t.subName,address:t.address,auth_token:t.auth_token||"",returnData:e.returnData,setRanges:e.setRanges,dvr_enabled:O,onRangesLoading:e.onRangesLoading,rangesLoading:b,liveCheck:!0,basicApiConfig:C,key:"".concat(t.subName,"_").concat(n,"_live"),resolution:F,start:se,end:ue,onEvent:e.onEventCallback})})),Object.keys(C).length&&O&&B&&v&&!l&&"ott"!==R&&h.a.createElement(Sr.a,{name:v,start:se,end:ue,episodes_url:B,headers:z,basicApiConfig:C,setMotions:this.setMotions,onEvent:this.onEventCallback}),$&&!l&&y.streams.map((function(t){if(t.subName){if(t.ureachable)return;return h.a.createElement(kr.a,{name:t.subName,stats:e.getPlayerStats,basicApiConfig:C,statsSendTime:V,key:"session_".concat(t.subName)})}}))))}}])}(d.Component);Ko.propTypes={ui:Cn.a.oneOf(["ott","nvr"]),fixedRange:Cn.a.bool,proto:Cn.a.string,from:Cn.a.number,to:Cn.a.number,play_duration:Cn.a.number,streamer_http:Cn.a.string,streamer_rtmp:Cn.a.string,thumbnails_enabled:Cn.a.bool,auth_token:Cn.a.string,autoPlay:Cn.a.bool,locale:Cn.a.oneOf(["ru","en"]),name:Cn.a.string,zoom:Cn.a.number,debug:Cn.a.bool,debugTimers:Cn.a.bool,tracks:Cn.a.string,timeLineElement:Cn.a.object,onMediaInfo:Cn.a.func,panzoom:Cn.a.bool,noMenu:Cn.a.bool,customItemWrapper:Cn.a.func,centeredSeek:Cn.a.bool,multiTimeline:Cn.a.bool,element:Cn.a.instanceOf(Element),episodes_url:Cn.a.string,reportState:Cn.a.func,streams:Cn.a.array,streamingChannels:Cn.a.any,enableMp4Download:Cn.a.bool,sentryConfig:Cn.a.string,version:Cn.a.string,downloadOptions:Cn.a.arrayOf(Cn.a.shape({title:Cn.a.string,callback:Cn.a.func})),statsSendEnable:Cn.a.bool,statsSendTime:Cn.a.number,onEvent:Cn.a.func,localtime:Cn.a.bool,allow_export:Cn.a.bool,export_limit:Cn.a.number,start_track:Cn.a.string,tokenName:Cn.a.string,token:Cn.a.string,dvr:Cn.a.bool,localTime:Cn.a.bool,headers:Cn.a.shape({}),enoughBufferTime:Cn.a.number,ptz:Cn.a.shape({show_ptz_controls:Cn.a.bool,api_url:Cn.a.string})},Ko.defaultProps={autoPlay:!0,timelineElement:void 0,panzoom:!0,centeredSeek:!1,multiTimeline:!1,enableMp4Download:!0,statsSendEnable:!0,statsSendTime:60,fixedRange:!1,ui:"nvr",export_limit:86400,dvr:!0,tokenName:"token",enoughBufferTime:.1,localTime:!0,debug:!1,debugTimers:!1,ptz:{show_ptz_controls:!1,api_url:null},features:Cn.a.shape({isScreenshotEditingEnabled:Cn.a.bool})};var Yo=Ko,Qo=n(530),Xo=n(531);function Jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jo(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}vr.use($r.initReactI18next);var ea=function(e){vr.init({lng:e,fallbackLng:"en",keySeparator:!1,interpolation:{escapeValue:!1},resources:{en:{translation:Zo({},Qo)},ru:{translation:Zo({},Xo)}}})},ta=s()((function e(){var t=this;c()(this,e),f()(this,"subscribe",(function(e,n,r){t.state=e,t.getStats=n,t.main=r})),f()(this,"setRoot",(function(e){t.root=e})),f()(this,"isPlaying",(function(){return!t.state.isStalling&&t.state.isPlaying})),f()(this,"metrics",(function(){var e=t.state;return{ranges:e.allRanges,motions:e.allMotions,playerProgressTime:e.playerProgressTime,playerReady:e.playerReady,playback_speed:e.playback_speed}})),f()(this,"isDvrInUse",(function(){return!t.state.live})),f()(this,"DvrInstance",(function(){return t.main})),f()(this,"DvrUnmount",(function(){t.root.unmount()}))}));Yo.load=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r={timeLineElement:n};if(e.query){var i=Object(wn.decode)(e.query.replace(/^\?/,"")),o=i.auth_token_name||e.auth_token_name||"token";r.tokenName=i.tokenName||e.tokenName||o,o&&i[o]&&(r.auth_token=o+"="+encodeURIComponent(i[o]),r.token=encodeURIComponent(i[o])),i.play_duration&&parseInt(i.play_duration)>0&&(r.play_duration=parseInt(i.play_duration)),i.locale?(r.locale=i.locale,ea(i.locale)):ea((null==e?void 0:e.locale)||"en"),i.info_url&&(r.info_url=i.info_url),i.track&&(r.track=i.track),i.from&&parseInt(i.from)>0&&(r.from=parseInt(i.from)),i.to&&parseInt(i.to)>0&&(r.to=parseInt(i.to)),i.zoom&&parseInt(i.zoom)>0&&(r.zoom=parseInt(i.zoom)),(i.auto_play||i.autoplay||i.autoPlay)&&(r.autoPlay="true"==i.autoplay||"true"==i.autoPlay||"yes"==i.autoPlay),i.allow_export&&("false"==i.allow_export?r.allow_export=!1:"true"==i.allow_export&&(r.allow_export=!0)),i.name&&(r.name=i.name),i.host&&(r.streamer_http=i.host),i.proto&&(r.proto=i.proto),i.muted&&(r.muted=i.muted),i.panzoom&&("false"==i.panzoom?r.panzoom=!1:"true"==i.panzoom&&(r.panzoom=!0)),i.centeredSeek&&(r.centeredSeek="true"==i.centeredSeek),i.multiTimeline&&(r.multiTimeline="true"==i.multiTimeline);var a=i.noMenu||i.nomenu||i.no_menu;a&&(r.noMenu="true"==a),r.element=t,i.episodes_url&&(r.episodes_url=i.episodes_url),i.streams&&(r.streams=i.streams.split(",")),i.enableMp4Download&&(r.enableMp4Download="false"!=i.enableMp4Download),i.sentryConfig&&(r.sentryConfig=i.sentryConfig),i.statsSendEnable&&(r.statsSendEnable="true"===i.statsSendEnable),i.statsSendTime&&(r.statsSendTime=Number(i.statsSendTime)),i.fixedRange&&(r.fixedRange="false"!=i.fixedRange),i.ui&&(r.ui=i.ui),i.localtime&&(r.localtime="false"!==i.localtime),i.export_limit&&(r.export_limit=Number(i.export_limit)),i.start_track&&(r.start_track=i.start_track),i.dvr&&(r.dvr="false"!==i.dvr),i.headers&&(r.headers=i.headers||{}),i.enoughBufferTime&&(r.enoughBufferTime=Number(i.enoughBufferTime)),i.debug&&(r.debug=!0),i.debugTimers&&(r.debugTimers=!0)}else ea((null==e?void 0:e.locale)||"en"),r.info_url=e.info_url;var s=new ta;r.reportState=s.subscribe;var u="";"undefined"!=typeof VERSION&&(u=VERSION),r.version=u;var c=g()(e,{$merge:r});c.thumbnails_enabled||(c.thumbnails_enabled=!1),c.sentryConfig&&c.sentryConfig.length&&yn({dsn:c.sentryConfig,environment:"production",release:"DvrPlayer@"+u});var l=Object(_n.createRoot)(t);return c.close=function(){l.unmount()},l.render(h.a.createElement(Yo,c)),s.setRoot(l),s};t.default=Yo},function(e,t,n){"use strict";var r;n.r(t),n.d(t,"v1",(function(){return g})),n.d(t,"v3",(function(){return k})),n.d(t,"v4",(function(){return T})),n.d(t,"v5",(function(){return P})),n.d(t,"NIL",(function(){return A})),n.d(t,"version",(function(){return C})),n.d(t,"validate",(function(){return s})),n.d(t,"stringify",(function(){return d})),n.d(t,"parse",(function(){return m}));var i=new Uint8Array(16);function o(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var s=function(e){return"string"==typeof e&&a.test(e)},u=[],c=0;c<256;++c)u.push((c+256).toString(16).substr(1));var l,f,d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n},h=0,p=0;var g=function(e,t,n){var r=t&&n||0,i=t||new Array(16),a=(e=e||{}).node||l,s=void 0!==e.clockseq?e.clockseq:f;if(null==a||null==s){var u=e.random||(e.rng||o)();null==a&&(a=l=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==s&&(s=f=16383&(u[6]<<8|u[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),g=void 0!==e.nsecs?e.nsecs:p+1,m=c-h+(g-p)/1e4;if(m<0&&void 0===e.clockseq&&(s=s+1&16383),(m<0||c>h)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");h=c,p=g,f=s;var v=(1e4*(268435455&(c+=122192928e5))+g)%4294967296;i[r++]=v>>>24&255,i[r++]=v>>>16&255,i[r++]=v>>>8&255,i[r++]=255&v;var y=c/4294967296*1e4&268435455;i[r++]=y>>>8&255,i[r++]=255&y,i[r++]=y>>>24&15|16,i[r++]=y>>>16&255,i[r++]=s>>>8|128,i[r++]=255&s;for(var b=0;b<6;++b)i[r+b]=a[b];return t||d(i)};var m=function(e){if(!s(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};var v=function(e,t,n){function r(e,r,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=m(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(r),a.set(e,r.length),(a=n(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,i){o=o||0;for(var s=0;s<16;++s)i[o+s]=a[s];return i}return d(a)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r};function y(e){return 14+(e+64>>>9<<4)+1}function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function _(e,t,n,r,i,o){return b((a=b(b(t,e),b(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function w(e,t,n,r,i,o,a){return _(t&n|~t&r,e,t,i,o,a)}function E(e,t,n,r,i,o,a){return _(t&r|n&~r,e,t,i,o,a)}function S(e,t,n,r,i,o,a){return _(t^n^r,e,t,i,o,a)}function x(e,t,n,r,i,o,a){return _(n^(t|~r),e,t,i,o,a)}var k=v("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r=0;r<n;r+=8){var i=e[r>>5]>>>r%32&255,o=parseInt("0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[y(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,u=r,c=i,l=o;n=w(n,r,i,o,e[a],7,-680876936),o=w(o,n,r,i,e[a+1],12,-389564586),i=w(i,o,n,r,e[a+2],17,606105819),r=w(r,i,o,n,e[a+3],22,-1044525330),n=w(n,r,i,o,e[a+4],7,-176418897),o=w(o,n,r,i,e[a+5],12,1200080426),i=w(i,o,n,r,e[a+6],17,-1473231341),r=w(r,i,o,n,e[a+7],22,-45705983),n=w(n,r,i,o,e[a+8],7,1770035416),o=w(o,n,r,i,e[a+9],12,-1958414417),i=w(i,o,n,r,e[a+10],17,-42063),r=w(r,i,o,n,e[a+11],22,-1990404162),n=w(n,r,i,o,e[a+12],7,1804603682),o=w(o,n,r,i,e[a+13],12,-40341101),i=w(i,o,n,r,e[a+14],17,-1502002290),r=w(r,i,o,n,e[a+15],22,1236535329),n=E(n,r,i,o,e[a+1],5,-165796510),o=E(o,n,r,i,e[a+6],9,-1069501632),i=E(i,o,n,r,e[a+11],14,643717713),r=E(r,i,o,n,e[a],20,-373897302),n=E(n,r,i,o,e[a+5],5,-701558691),o=E(o,n,r,i,e[a+10],9,38016083),i=E(i,o,n,r,e[a+15],14,-660478335),r=E(r,i,o,n,e[a+4],20,-405537848),n=E(n,r,i,o,e[a+9],5,568446438),o=E(o,n,r,i,e[a+14],9,-1019803690),i=E(i,o,n,r,e[a+3],14,-187363961),r=E(r,i,o,n,e[a+8],20,1163531501),n=E(n,r,i,o,e[a+13],5,-1444681467),o=E(o,n,r,i,e[a+2],9,-51403784),i=E(i,o,n,r,e[a+7],14,1735328473),r=E(r,i,o,n,e[a+12],20,-1926607734),n=S(n,r,i,o,e[a+5],4,-378558),o=S(o,n,r,i,e[a+8],11,-2022574463),i=S(i,o,n,r,e[a+11],16,1839030562),r=S(r,i,o,n,e[a+14],23,-35309556),n=S(n,r,i,o,e[a+1],4,-1530992060),o=S(o,n,r,i,e[a+4],11,1272893353),i=S(i,o,n,r,e[a+7],16,-155497632),r=S(r,i,o,n,e[a+10],23,-1094730640),n=S(n,r,i,o,e[a+13],4,681279174),o=S(o,n,r,i,e[a],11,-358537222),i=S(i,o,n,r,e[a+3],16,-722521979),r=S(r,i,o,n,e[a+6],23,76029189),n=S(n,r,i,o,e[a+9],4,-640364487),o=S(o,n,r,i,e[a+12],11,-421815835),i=S(i,o,n,r,e[a+15],16,530742520),r=S(r,i,o,n,e[a+2],23,-995338651),n=x(n,r,i,o,e[a],6,-198630844),o=x(o,n,r,i,e[a+7],10,1126891415),i=x(i,o,n,r,e[a+14],15,-1416354905),r=x(r,i,o,n,e[a+5],21,-57434055),n=x(n,r,i,o,e[a+12],6,1700485571),o=x(o,n,r,i,e[a+3],10,-1894986606),i=x(i,o,n,r,e[a+10],15,-1051523),r=x(r,i,o,n,e[a+1],21,-2054922799),n=x(n,r,i,o,e[a+8],6,1873313359),o=x(o,n,r,i,e[a+15],10,-30611744),i=x(i,o,n,r,e[a+6],15,-1560198380),r=x(r,i,o,n,e[a+13],21,1309151649),n=x(n,r,i,o,e[a+4],6,-145523070),o=x(o,n,r,i,e[a+11],10,-1120210379),i=x(i,o,n,r,e[a+2],15,718787259),r=x(r,i,o,n,e[a+9],21,-343485551),n=b(n,s),r=b(r,u),i=b(i,c),o=b(o,l)}return[n,r,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(y(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}));var T=function(e,t,n){var r=(e=e||{}).random||(e.rng||o)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return d(r)};function O(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function R(e,t){return e<<t|e>>>32-t}var P=v("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,a=Math.ceil(o/16),s=new Array(a),u=0;u<a;++u){for(var c=new Uint32Array(16),l=0;l<16;++l)c[l]=e[64*u+4*l]<<24|e[64*u+4*l+1]<<16|e[64*u+4*l+2]<<8|e[64*u+4*l+3];s[u]=c}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<a;++f){for(var d=new Uint32Array(80),h=0;h<16;++h)d[h]=s[f][h];for(var p=16;p<80;++p)d[p]=R(d[p-3]^d[p-8]^d[p-14]^d[p-16],1);for(var g=n[0],m=n[1],v=n[2],y=n[3],b=n[4],_=0;_<80;++_){var w=Math.floor(_/20),E=R(g,5)+O(w,m,v,y)+b+t[w]+d[_]>>>0;b=y,y=v,v=R(m,30)>>>0,m=g,g=E}n[0]=n[0]+g>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]})),A="00000000-0000-0000-0000-000000000000";var C=function(e){if(!s(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},function(e,t,n){"use strict";var r=n(25),i=n(63),o=n.n(i).a.unstable_batchedUpdates;r.a.setBatchNotifyFunction(o)},function(e,t,n){"use strict";var r=n(135),i=console;Object(r.b)(i)},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c}));var r=n(4),i=n(45),o=n(532),a=n(99),s=n(285);function u(t,n,u){void 0===n&&(n=1/0),void 0===u&&(u=1/0);try{return function t(n,u,c,l,f){void 0===c&&(c=1/0);void 0===l&&(l=1/0);void 0===f&&(f=Object(o.a)());var d=Object(r.c)(f,2),h=d[0],p=d[1],g=u;if(g&&"function"==typeof g.toJSON)try{return g.toJSON()}catch(e){}if(null===u||["number","boolean","string"].includes(typeof u)&&!Object(i.h)(u))return u;var m=function(t,n){try{return"domain"===t&&n&&"object"==typeof n&&n._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":void 0!==e&&n===e?"[Global]":"undefined"!=typeof window&&n===window?"[Window]":"undefined"!=typeof document&&n===document?"[Document]":Object(i.m)(n)?"[SyntheticEvent]":"number"==typeof n&&n!=n?"[NaN]":void 0===n?"[undefined]":"function"==typeof n?"[Function: "+Object(s.b)(n)+"]":"symbol"==typeof n?"["+String(n)+"]":"bigint"==typeof n?"[BigInt: "+String(n)+"]":"[object "+Object.getPrototypeOf(n).constructor.name+"]"}catch(e){return"**non-serializable** ("+e+")"}}(n,u);if(!m.startsWith("[object "))return m;if(0===c)return m.replace("object ","");if(h(u))return"[Circular ~]";var v=Array.isArray(u)?[]:{},y=0,b=Object(i.d)(u)||Object(i.f)(u)?Object(a.b)(u):u;for(var _ in b)if(Object.prototype.hasOwnProperty.call(b,_)){if(y>=l){v[_]="[MaxProperties ~]";break}var w=b[_];v[_]=t(_,w,c-1,l,f),y+=1}return p(u),v}("",t,n,u)}catch(e){return{ERROR:"**non-serializable** ("+e+")"}}}function c(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r,i=u(e,t);return r=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?c(e,t-1,n):i}}).call(this,n(128))}])}));
70
+ */!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){var r=n(78),i=n(1078);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,".image-highlighter{position:relative;width:100%;height:100%;display:flex;flex-direction:column;background-color:#000;color:#ebebf5}.image-highlighter__canvas-container{flex:1;position:relative;overflow:hidden;display:flex;justify-content:center;align-items:center;padding:16px;box-sizing:border-box;background-color:#000}.image-highlighter__canvas-wrapper{width:100%;height:100%;position:relative}.image-highlighter__canvas{width:100%;height:100%;display:block;border:5px dotted #57575a;box-sizing:border-box}.image-highlighter__canvas_crosshair{cursor:crosshair}.image-highlighter__canvas_greenBorder{border-color:#117c59}.image-highlighter__controls{padding:12px 16px;display:flex;justify-content:flex-end;gap:8px;flex-shrink:0;background:#000;border-top:1px solid #57575a}.image-highlighter__controls button:focus{outline:2px solid #57575a;outline-offset:2px}.image-highlighter__controls button{padding:8px 12px;font-size:14px;border-radius:6px;color:#ebebf5;border:none;cursor:pointer;transition:background-color .2s ease;background-color:#117c59}.image-highlighter__controls button:hover{background-color:#0e6b4d}.image-highlighter__controls button:active{background-color:#0a5a41}.image-highlighter__controls button.remove{background-color:#c11030}.image-highlighter__controls button.remove:hover{background-color:#a10d27}.image-highlighter__controls button.remove:active{background-color:#7c0a1f}.image-highlighter__controls button.add{background-color:#57575a}.image-highlighter__controls button.add:hover{background-color:#7c7979}.image-highlighter__controls button.add:active{background-color:#3f4044}.image-highlighter__controls button:disabled{background-color:#57575a;color:#7c7979;cursor:not-allowed;opacity:.8;box-shadow:none}.image-highlighter__controls button:disabled:hover{background-color:#57575a}@media(max-width: 600px){.image-highlighter__controls{flex-direction:column}.image-highlighter__controls button{width:100%}}",""]),e.exports=t},function(e,t,n){var r=n(78),i=n(1080);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,".dvrp-preview{position:absolute;left:0;top:0;width:100%;height:100%;opacity:1;pointer-events:none;z-index:1;transition:.1s ease}.dvrp-preview._hidden{opacity:0}",""]),e.exports=t},function(e,t,n){"use strict";n.r(t);t.default=function(e){return e.map((function(e){return"string"==typeof e?e:Object.keys(e).filter((function(t){return!!e[t]})).join(" ")})).join(" ")}},function(e,t,n){var r=n(78),i=n(1083);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,".adverts_block{width:100%;height:100%;background:#000;position:absolute;z-index:40}.adverts_block a{display:flex;width:100%;height:100%}.adverts_block .muted_placeholder{position:absolute;height:48px;width:48px;display:flex;justify-content:center;align-items:center;left:0;bottom:0;z-index:41}",""]),e.exports=t},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AdvertPlayer=void 0;const a=o(n(0));t.AdvertPlayer=({url:e,link:t,index:n,setActiveIndex:r,setAdvertDuration:i,onEvent:o})=>{const s=(0,a.useRef)(null),[u,c]=(0,a.useState)(!1),[l,f]=(0,a.useState)(!0),[d,h]=(0,a.useState)(),p=()=>{r(n+1)},g=(0,a.useCallback)(()=>{var e;s.current&&s.current.currentTime&&i(n,null===(e=s.current)||void 0===e?void 0:e.currentTime)},[n,i]),m=()=>{d||h(setInterval(()=>{g()},250)),o("",{key:Date.now(),data:{event:"advertising",type:"advertising"}})};return(0,a.useEffect)(()=>{if(s.current){const{current:t}=s;t.src=e,t.play().then(()=>{c(!0)}).catch(e=>{e instanceof Error&&o("",{key:Date.now(),data:{event:"player_error",error_name:e.name,error_message:e.message}}),console.info("advert error:",e),p()}),t.addEventListener("play",m,!1),t.addEventListener("ended",p,!1)}return()=>{var e,t;null===(e=s.current)||void 0===e||e.removeEventListener("play",m,!1),null===(t=s.current)||void 0===t||t.removeEventListener("ended",p,!1),clearInterval(d)}},[e]),a.default.createElement(a.Fragment,null,a.default.createElement("a",{href:t,target:"_blank","aria-label":"advertise-link",rel:"noreferrer"},a.default.createElement("video",{ref:s,className:"advert-player",style:{width:"100%",height:"100%"},autoPlay:!0,playsInline:!0,muted:!0,controls:!1,"data-cy":"videoAdvertElement",key:"advert_player"})),u&&a.default.createElement("div",{className:"muted_placeholder"},a.default.createElement("button",{type:"button",className:"dvrp-button dvrp-volume-button",onClick:()=>{if(s.current){if(0===s.current.currentTime)return;s.current.muted=!s.current.muted,f(!l)}},"data-cy":"DVR_mute_button"},l?a.default.createElement("span",{className:"icon-volume_off"}):a.default.createElement("span",{className:"icon-volume"}))))}},function(e,t,n){var r=n(78),i=n(1086);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,'.arrow-effect{position:absolute;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;pointer-events:none;flex-direction:column;z-index:2;opacity:0;background-color:rgba(40,40,40,.3);height:100%;width:33%;transition:opacity .3s ease}.arrow-effect.left{left:0}.arrow-effect.right{right:0}.arrow-effect.animate{opacity:1}.arrow-effect.left::before,.arrow-effect.right::before{content:"";position:absolute;top:0;bottom:0;width:100%;background-color:rgba(40,40,40,.3);z-index:-1}.arrow-effect.left::before{left:-100%}.arrow-effect.right::before{right:-100%}.arrows{display:flex;align-items:center;gap:10px}.arrow-triangle{width:0;height:0;border-style:solid;border-width:10px 14px 10px 0;border-color:rgba(0,0,0,0) rgba(255,255,255,.5) rgba(0,0,0,0) rgba(0,0,0,0);opacity:1;transition:border-color .3s ease}.arrow-effect.right .arrow-triangle{transform:rotate(180deg);border-width:10px 14px 10px 0;border-color:rgba(0,0,0,0) rgba(255,255,255,.5) rgba(0,0,0,0) rgba(0,0,0,0)}@keyframes arrowColorChangeLeft{0%,100%{border-color:rgba(0,0,0,0) rgba(255,255,255,.5) rgba(0,0,0,0) rgba(0,0,0,0)}50%{border-color:rgba(0,0,0,0) #fff rgba(0,0,0,0) rgba(0,0,0,0)}}@keyframes arrowColorChangeRight{0%,100%{border-color:rgba(0,0,0,0) rgba(255,255,255,.5) rgba(0,0,0,0) rgba(0,0,0,0)}50%{border-color:rgba(0,0,0,0) #fff rgba(0,0,0,0) rgba(0,0,0,0)}}.arrow-effect.right.animate .arrow-triangle:nth-child(1){animation:arrowColorChangeRight 1s ease-in-out infinite;animation-delay:0s}.arrow-effect.right.animate .arrow-triangle:nth-child(2){animation:arrowColorChangeRight 1s ease-in-out infinite;animation-delay:.15s}.arrow-effect.right.animate .arrow-triangle:nth-child(3){animation:arrowColorChangeRight 1s ease-in-out infinite;animation-delay:.3s}.arrow-effect.left.animate .arrow-triangle:nth-child(1){animation:arrowColorChangeLeft 1s ease-in-out infinite;animation-delay:.3s}.arrow-effect.left.animate .arrow-triangle:nth-child(2){animation:arrowColorChangeLeft 1s ease-in-out infinite;animation-delay:.15s}.arrow-effect.left.animate .arrow-triangle:nth-child(3){animation:arrowColorChangeLeft 1s ease-in-out infinite;animation-delay:0s}.time-label{margin-top:10px;font-size:18px;color:#fff}',""]),e.exports=t},function(e,t,n){var r=n(78),i=n(1088);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,".dvrp-bottom-gradient{position:absolute;bottom:0;width:100%;height:104px;background:linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 100%);pointer-events:none;opacity:0;transition:opacity .25s cubic-bezier(0, 0, 0.2, 1);z-index:2}.dvrp-bottom-gradient._visible{opacity:1}.dvrp-top{position:absolute;top:0;left:0;right:0;height:48px;padding:0 12px;opacity:0;z-index:3;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;transform:matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)}.dvrp-top *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrp-top._visible{opacity:1}.dvrp-top .dvrp-controls{height:48px;line-height:48px;display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;transform:matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)}.dvrp-top .dvrp-controls .timeStamp{color:#fff;font-size:12px;font-style:normal;font-weight:500;line-height:19px;padding:0 6px;margin-right:12px;border-radius:4px;background:rgba(124,121,121,.3);backdrop-filter:blur(7.5px)}.dvrp-top .dvrp-controls .timeStamp>a{text-decoration:none;color:#fff}.dvrp-top .dvrp-controls .dvrp-button{margin-left:auto}.dvrp-footer{cursor:grab;position:absolute;bottom:0;left:0;right:0;padding:0 12px;color:#fff;background:#000;margin:auto;opacity:0;transition:opacity .25s cubic-bezier(0, 0, 0.2, 1);transform:matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);box-sizing:border-box;z-index:3}.dvrp-footer.ott{cursor:default;background:none}.dvrp-footer._visible{opacity:1}.dvrp-footer .dvrp-controls{position:relative;z-index:4;height:48px;line-height:48px;display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center}.dvrp-footer .dvrp-controls .dropDownWrapper{height:auto;width:auto;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrp-footer .dvrp-controls .dropDownWrapper .dvrp-button{height:100%}.dvrp-footer .dvrp-controls .dvrp-button a{text-decoration:none;color:#fff}.dvrp-footer .dvrp-controls .dvrp-button .icon-share_player{font-size:19px}.dvrp-footer .dvrp-controls .dvrp-button .options{background:#504f59;color:#fff;position:absolute;bottom:48px;border-radius:4px;right:0;z-index:60;box-sizing:border-box;display:flex;flex-direction:column;box-shadow:2px 2px 3px 1px rgba(0,0,0,.45);overflow:hidden}.dvrp-footer .dvrp-controls .dvrp-button .options div,.dvrp-footer .dvrp-controls .dvrp-button .options a{white-space:nowrap;padding:8px 12px;box-sizing:border-box;height:100%;text-decoration:none;color:#fff}.dvrp-footer .dvrp-controls .dvrp-button .options div:hover,.dvrp-footer .dvrp-controls .dvrp-button .options a:hover{background:#33323a}.dvrp-footer .dvrp-controls .dvrp-left-controls{flex:1;order:1;display:flex;align-items:center;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrp-footer .dvrp-controls .dvrp-left-controls *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrp-footer .dvrp-controls .dvrp-right-controls{order:2;display:flex;align-items:center}.dvrp-top .dvrp-controls .dvrp-button,.dvrp-footer .dvrp-controls .dvrp-button{color:#fff;width:32px;height:100%;cursor:pointer;padding:0 2px;opacity:.8;border:none;position:relative;background-color:rgba(0,0,0,0);transition:opacity .1s cubic-bezier(0, 0, 0.2, 1);font-size:14px;font-weight:400;min-height:32px;display:flex;justify-content:center;align-items:center;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;position:relative}.dvrp-top .dvrp-controls .dvrp-button *,.dvrp-footer .dvrp-controls .dvrp-button *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrp-top .dvrp-controls .dvrp-button:hover,.dvrp-footer .dvrp-controls .dvrp-button:hover{opacity:1}.bigRoundButton{cursor:pointer;font-size:9px;border-radius:50%;display:flex;justify-content:center;align-items:center;border:none;color:#fff;width:30px;height:30px;background:rgba(87,87,90,.5)}.bigRoundButton:hover{background:rgba(87,87,90,.75)}.bigRoundButton.green{line-height:8px;background:#10b981}.bigRoundButton.green:hover{background:#0c6346}",""]),e.exports=t},function(e,t,n){"use strict";n.r(t);var r=n(41),i=n.n(r),o=n(40),a=n.n(o),s=n(49),u=n.n(s),c=n(32),l=n.n(c),f=n(50),d=n.n(f),h=n(0),p=n.n(h),g=n(1),m=n.n(g),v=n(14);function y(e,t,n){return t=l()(t),u()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],l()(e).constructor):t.apply(e,n))}var b=function(e){function t(){return i()(this,t),y(this,t,arguments)}return d()(t,e),a()(t,[{key:"render",value:function(){var e=this.props.tooltipData,t=e.title,n=e.note,r=e.utc;return p.a.createElement("div",{className:"motionTooltip"},p.a.createElement("p",null,v.default.humanTime(r)),p.a.createElement("p",{className:"motionTitle"},t),p.a.createElement("h2",null,n))}}])}(h.Component);b.propTypes={tooltipData:m.a.any},t.default=b},function(e,t,n){var r=n(78),i=n(1091);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,".calendar{position:absolute;right:16px;bottom:116px;padding:16px;z-index:3;border-radius:10px;border:.5px solid rgba(235,235,245,.2);background:rgba(40,40,40,.9)}.calendar .nd_calendar .month-selection{color:#fff;display:flex;justify-content:space-between;font-size:15px;font-style:normal;font-weight:400;line-height:20px;letter-spacing:-0.3px}.calendar .nd_calendar .month-selection .month-change{cursor:pointer}.calendar .nd_calendar .month-selection .month-change.month-next{transform:rotateY(180deg)}.calendar .nd_calendar .strap{height:1px;width:100%;background:rgba(255,255,255,.15);margin:16px 0 32px}.calendar .nd_calendar .days{display:flex;vertical-align:top;width:100%;flex-direction:column;align-content:center;justify-content:center;align-items:stretch}.calendar .nd_calendar .day-names{font-size:13px;font-style:normal;font-weight:400;line-height:16px;letter-spacing:-0.3px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin-bottom:8px}.calendar .nd_calendar .day-names .day-name{display:inline-block;vertical-align:top;width:40px;padding:6px 0;color:#fff;text-align:center}.calendar .nd_calendar .day-entries{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.calendar .nd_calendar .day-entries .day-entry{display:flex;justify-content:center;align-items:center;width:36px;height:36px;border-radius:50%;margin:4px;text-align:center;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:#fff;font-size:15px;font-style:normal;line-height:20px;letter-spacing:-0.3px}.calendar .nd_calendar .day-entries .day-entry:hover{color:#000;background:#fff}.calendar .nd_calendar .day-entries .day-entry.other-day{color:#9e9e9e}.calendar .nd_calendar .day-entries .day-entry.current-day{font-weight:500}.calendar .nd_calendar .day-entries .day-entry.available{color:#fff;background:rgba(17,124,88,.7529411765);cursor:pointer}.calendar .nd_calendar .day-entries .day-entry.available:hover{color:#fff;background:#117c59}.calendar .nd_calendar .day-entries .day-entry.selected-day{color:#fff;background:#002dab}.calendar .nd_calendar .day-entries .day-entry.selected-day:hover{color:#fff;background:#002999}@media only screen and (max-width: 1200px){.calendar{padding:7px;bottom:102px}.calendar .nd_calendar .strap{margin:5px 0 0}.calendar .nd_calendar .days .day-names{margin-bottom:0px}.calendar .nd_calendar .days .day-entries .day-entry{width:25px;height:25px;margin:2px}}@media only screen and (max-width: 600px),(max-height: 380px){.calendar{right:5px;left:5px;padding:5px;bottom:97px}}",""]),e.exports=t},function(e,t,n){var r=n(78),i=n(1093);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,'.dvrp-volume-button:before{content:"";position:absolute;top:12px;left:10px;width:2px;height:0;background-color:#fff;transform-origin:top;transform:rotate(-45deg);transition:height .1s cubic-bezier(0, 0, 0.2, 1)}.dvrp-volume-control{display:flex;justify-content:center;align-items:center;height:100%}.dvrp-volume-panel{display:inline-block;height:100%;transition:margin .2s cubic-bezier(0.4, 0, 1, 1),width .1s cubic-bezier(0.4, 0, 1, 1);cursor:pointer;outline:0;margin-right:3px;width:0;overflow:hidden}.dvrp-volume-panel.visible{width:52px}.dvrp-volume-slider{height:100%;min-height:36px;position:relative;overflow:hidden}.dvrp-volume-slider-handle{position:absolute;top:50%;width:12px;height:12px;border-radius:6px;margin-top:-6px;background:#fff}.dvrp-volume-slider-handle:before,.dvrp-volume-slider-handle:after{content:"";position:absolute;display:block;top:50%;left:0;height:3px;margin-top:-2px;width:64px}.dvrp-volume-slider-handle:before{left:-58px;background:#fff}.dvrp-volume-slider-handle:after{left:6px;background:rgba(255,255,255,.2)}',""]),e.exports=t},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var i=s(n(0)),o=s(n(1095)),a=["text","onCopy","options","children"];function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function f(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 h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(u,e);var t,n,r,s=p(u);function u(){var e;f(this,u);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return y(m(e=s.call.apply(s,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,a=n.onCopy,s=n.children,u=n.options,c=i.default.Children.only(s),l=(0,o.default)(r,u);a&&a(r,l),c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(t)})),e}return t=u,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=l(e,a),r=i.default.Children.only(t);return i.default.cloneElement(r,c(c({},n),{},{onClick:this.onClick}))}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(i.default.PureComponent);t.CopyToClipboard=b,y(b,"defaultProps",{onCopy:void 0,options:void 0})},function(e,t,n){"use strict";var r=n(1096),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,u,c,l=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),u=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),u.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(s):u.removeAllRanges()),c&&document.body.removeChild(c),a()}return l}},function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},function(e,t,n){var r=n(78),i=n(1098);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,"#forDownloadModal .control{display:flex;justify-content:center;align-items:center;flex-wrap:nowrap;color:#fff;height:32px;max-height:32px;box-sizing:border-box;white-space:nowrap}#forDownloadModal .control .focus_btn{line-height:18px;background:none;border:none;border-radius:4px;text-align:center;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;width:0;overflow:hidden;max-width:0;min-width:0;padding:0;height:32px;transition:150ms ease-in-out;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}#forDownloadModal .control .focus_btn:hover{background-color:#66666d}#forDownloadModal .control .focus_btn.active{width:32px;min-width:32px}#forDownloadModal .control .download{display:flex;justify-content:center;align-items:center;flex-wrap:nowrap;text-decoration:none;color:#fff;cursor:pointer;background:#209c61;border-radius:4px;line-height:24px}#forDownloadModal .control .download i{margin-right:8px}#forDownloadModal .control .download.cancel{background:#56595e;margin-left:16px}#forDownloadModal .control .download.disabled{background:#56595e}#forDownloadModal .control .download-text{display:flex;justify-content:center;align-items:center}#forDownloadModal .control .download-text .inputWrapper{padding:4px 12px;border-radius:8px;background:var(--grey-900, #1c1c1c)}#forDownloadModal .control .download-text .inputWrapper .inputBlock{display:inline-flex;flex-direction:column;justify-content:center;align-items:center}#forDownloadModal .control .download-text .inputWrapper .inputBlock span{font-size:12px;margin:-20px 0 8px;color:#c1c1c3}#forDownloadModal .control .download-text .inputWrapper .inputBlock input{height:24px;width:35px;margin:0px 1px;font-size:14px;border:none;color:#fff;background:none;text-align:center}#forDownloadModal .control .download-text .inputWrapper .inputBlock input.locked{color:#ffcc80;font-weight:500}#forDownloadModal .control .download-text .separator{color:var(--grey-50, #fcfcfc);font-size:14px;margin:0 8px}#forDownloadModal .control .download-text .verticalLine{width:1px;height:32px;background:#1c1c1c;margin:0 12px}#forDownloadModal .control .dropDown{font-size:14px;border:.5px solid rgba(235,235,245,.2);margin-bottom:8px}#forDownloadModal .control .dropDown a{color:#fff;text-decoration:none;width:100%}#forDownloadModal .control .popup{position:absolute;z-index:46;opacity:0;top:200px;border-radius:8px;padding:0;background:rgba(0,0,0,.75);transition:150ms ease-in-out}#forDownloadModal .control .popup.enabled{top:8px;padding:8px 12px;opacity:1}@media only screen and (min-device-width: 240px)and (max-device-width: 960px)and (orientation: portrait){#forDownloadModal .control .download-text .inputWrapper{padding:4px 8px}#forDownloadModal .control .download-text .separator{margin:0 4px}#forDownloadModal .control .download-text .verticalLine{margin:0 8px}}",""]),e.exports=t},function(e,t,n){var r=n(78),i=n(1100);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,".settingsButton{padding:0;text-align:center;display:flex;justify-content:center;align-items:center;background:#66666d;color:#fff;font-weight:400;max-height:32px;border-radius:4px;border:none;cursor:pointer;min-height:28px;min-width:32px;box-sizing:border-box;margin-left:4px}.settingsButton svg{fill:#fff;height:24px;width:24px}.clearDropdown{position:absolute;left:0;right:0;top:0;bottom:0;z-index:40}.dropDown{background-color:#1e1e1f;padding:8px 0;border-radius:8px;position:absolute;bottom:48px;right:12px;z-index:45;opacity:0;transition:opacity 250ms cubic-bezier(0, 0, 0.2, 1) 0ms;width:0;height:0;overflow:hidden}.dropDown.border{border:.5px solid rgba(235,235,245,.2)}.dropDown.visible{width:auto;height:auto;opacity:1}.dropDown .item{background-color:#1e1e1f;text-align:left;line-height:24px;padding:8px 24px 8px 16px;color:#fff;display:flex;align-items:center;text-decoration:none}.dropDown .item.unclickable:hover{cursor:default;background-color:#1e1e1f}.dropDown .item:hover{background-color:#48484d;cursor:pointer}.dropDown .item.active{color:#00ff86}.dropDown .item .left{display:flex;align-items:center;user-select:none}.dropDown .item .ddicon{font-size:22px;line-height:16px;margin-right:12px}.dropDown .item .smicon{font-size:16px;line-height:16px;margin-right:12px}.dropDown .item .text{text-wrap:nowrap}.dropDown .item .right{display:flex;align-items:center;justify-content:flex-end;margin-left:64px;flex:1;user-select:none}.dropDown .firstRow{width:0;height:0;overflow:hidden;transition:150ms ease-in-out}.dropDown .firstRow.visible{width:100%;height:auto}.dropDown .secondRow{width:0;height:0;overflow:hidden;transition:150ms ease-in-out}.dropDown .secondRow.visible{width:100%;height:auto}.dropDown .hr{background-color:#66666d;height:1px;width:100%}.dropDown .popupCopyDebug{position:absolute;z-index:46;opacity:0;top:8px;border-radius:8px;padding:8px 12px;background:#000;transition:150ms ease-in-out;color:#fff}.dropDown .popupCopyDebug.enabled{opacity:1}",""]),e.exports=t},function(e,t,n){var r=n(78),i=n(1102);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,".itsLive{font-size:12px;font-style:normal;font-weight:500;line-height:19px;color:#fff;background:#c11030;height:19px;padding:0 8px;margin:auto 0;border-radius:4px;display:flex;text-align:center;align-items:center;justify-content:center;box-sizing:border-box;transform:matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);-webkit-user-select:none;-ms-user-select:none;user-select:none}.itsLive.not{cursor:pointer;background-color:#666}.itsLive span{margin-right:8px;font-size:9px;line-height:18px}@media only screen and (min-device-width: 240px)and (max-device-width: 960px)and (orientation: portrait){.itsLive{font-size:11px;padding:0px 4px}}",""]),e.exports=t},function(e,t,n){var r=n(78),i=n(1104);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,".ott_timeline{width:calc(100% - 16px);padding-top:24px;padding-bottom:8px;margin:0 8px;position:relative;border-radius:2px;cursor:pointer;z-index:0}.ott_timeline .line{height:3px;width:100%;max-width:100%;position:relative;border-radius:2px;overflow:hidden;background:#1b1b1b}.ott_timeline .line .buffered{position:absolute;left:0;height:100%;background:#646464;z-index:1;pointer-events:none}.ott_timeline .line .played{position:absolute;left:0;height:100%;background:#117c59;z-index:2;pointer-events:none}.ott_timeline .line .played-debug{position:absolute;left:0;height:100%;background:#b82424;z-index:4;pointer-events:none}.ott_timeline .now{bottom:6px;position:absolute;width:8px;height:8px;margin-left:-4px;border-radius:50%;background:#fff;box-shadow:-1px 1px 5px rgba(0,0,0,.2509803922);z-index:5;pointer-events:none}",""]),e.exports=t},function(e,t,n){var r=n(78),i=n(1106);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,".ott_time{font-size:13px;margin-left:8px}",""]),e.exports=t},function(e,t,n){var r=n(78),i=n(1108);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,".dvrp-button{color:#fff;width:32px;height:100%;cursor:pointer;padding:0 2px;opacity:.8;border:none;position:relative;background-color:rgba(0,0,0,0);transition:opacity .1s cubic-bezier(0, 0, 0.2, 1);font-size:14px;font-weight:400;min-height:32px;display:flex;justify-content:center;align-items:center;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;position:relative}.dvrp-button *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrp-button:hover{opacity:1}.dvrp-footer{position:absolute;bottom:0;left:0;right:0;padding:0 12px;color:#fff;margin:auto;opacity:0;transition:opacity .25s cubic-bezier(0, 0, 0.2, 1);z-index:3}.dvrp-footer._visible{opacity:1}.dvrp-footer .dvrp-controls{height:48px;line-height:48px;display:flex;flex-wrap:nowrap;justify-content:space-between}.dvrp-footer .dvrp-controls .dropDownWrapper{height:auto;width:auto}.dvrp-footer .dvrp-controls .dropDownWrapper .dvrp-button{height:100%}.dvrp-footer .dvrp-controls .dvrp-button{color:#fff;width:32px;height:100%;cursor:pointer;padding:0 2px;opacity:.8;border:none;position:relative;background-color:rgba(0,0,0,0);transition:opacity .1s cubic-bezier(0, 0, 0.2, 1);font-size:14px;font-weight:100}.dvrp-footer .dvrp-controls .dvrp-button:hover{opacity:1}.dvrp-footer .dvrp-controls .dvrp-left-controls{flex:1;order:1;display:flex;align-items:center}.dvrp-footer .dvrp-controls .dvrp-right-controls{order:2;display:flex;align-items:center}.dvrp-top{position:absolute;top:0;left:0;right:0;height:48px;padding:0 12px;opacity:0;z-index:3;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrp-top *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrp-top._visible{opacity:1}.dvrp-top .dvrp-controls{height:48px;line-height:48px;display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start}.dvrp-top .dvrp-controls .timeStamp{color:#fff;font-size:12px;font-style:normal;font-weight:500;line-height:19px;padding:0 6px;margin-right:12px;border-radius:4px;background:rgba(124,121,121,.3);backdrop-filter:blur(7.5px)}.dvrp-top .dvrp-controls .timeStamp>a{text-decoration:none;color:#fff}.dvrp-top .dvrp-controls .dvrp-button{margin-left:auto}",""]),e.exports=t},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.CameraArrow=void 0;const a=o(n(0));t.CameraArrow=({direction:e,Icon:t,onMove:n})=>{const[r,i]=(0,a.useState)(!1),[o,s]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(r){const t=setInterval(()=>{n(e),s(!0)},500);return()=>clearInterval(t)}},[r,e,n]);const u=()=>{i(!0),s(!1)},c=()=>{i(!1),o&&setTimeout(()=>n(e,!0),0)};return a.default.createElement("button",{className:"ptzButton",onMouseDown:u,onMouseUp:c,onTouchStart:u,onTouchEnd:c,onClick:()=>{r||o||n(e,!1,!0)},type:"button"},t)}},function(e,t,n){var r=n(78),i=n(1111);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,"input[type='range'] {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 15px;\n border-radius: 5px;\n outline: none;\n cursor: pointer;\n accent-color: rgba(87, 87, 90, 0.8);\n}\n\ninput[type='range']::-webkit-slider-thumb,\ninput[type='range']::-moz-range-thumb {\n appearance: none;\n width: 15px;\n height: 15px;\n border-radius: 50%;\n cursor: pointer;\n accent-color: rgba(87, 87, 90, 0.8);\n}\n\n.speedControl {\n margin-top: 10px;\n display: flex;\n}\n\n.speedControl > label {\n display: block;\n color: white;\n font-size: 13px;\n margin-right: 4px;\n}\n",""]),e.exports=t},function(e,t,n){var r=n(78),i=n(1113);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(79)(!1)).push([e.i,'body{margin:0}button i{pointer-events:none}button svg{pointer-events:none}button:focus{outline:none;box-shadow:none}.dvrContainer{position:relative;box-sizing:border-box;height:100%;width:100%;max-height:100%;max-width:100%;overflow:hidden;margin:0;font:14px "Helvetica Neue",Helvetica,Arial,sans-serif;font-family:"Fira Sans",sans-serif;font-weight:400;display:flex;flex-direction:column;-webkit-font-smoothing:subpixel-antialiased;background:#000;z-index:0}.dvrContainer .video-js{-webkit-filter:brightness(108.5%) blur(0);filter:brightness(108.5%) blur(0);max-height:100%;max-width:100%}.dvrContainer *{user-select:none;outline:none;box-sizing:border-box}.dvrContainer.noDvr .dvr-timeline{display:flex;flex:1}.dvrContainer .videoThumbnail{width:0;height:0}.dvrContainer .reconnect{position:absolute;top:60%;left:0;right:0;z-index:50;color:#fff;font-size:24px;text-align:center}.dvrContainer input:focus,.dvrContainer textarea:focus,.dvrContainer select:focus{outline:none}.dvrContainer #forPopup{z-index:50}.dvrContainer .playersContainer{display:flex;width:100%;min-height:100px;height:calc(100% - 97px);flex-wrap:wrap;background:#000;overflow:hidden;position:relative;transform:matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);z-index:1}.dvrContainer .playersContainer.ott{height:100%}.dvrContainer .playersContainer.large{height:100%}.dvrContainer .playersContainer .seekContainer{width:100%;height:auto;min-height:10%;bottom:0;left:0;overflow:hidden;position:absolute;z-index:49;user-select:none;pointer-events:none}.dvrContainer .playersContainer .seekContainer .buttonGroup{display:flex;width:100%;padding:16px;box-sizing:border-box;position:absolute;bottom:0;left:0;z-index:99}.dvrContainer .playersContainer .seekContainer .buttonGroup button{margin:0 8px;width:48px;height:48px;border-radius:48px;border:none;text-align:center;color:#fff;background:none;cursor:pointer;display:flex;justify-content:center;align-items:center;pointer-events:all}.dvrContainer .playersContainer .seekContainer .buttonGroup button:hover{background-color:#188451}.dvrContainer .playersContainer .seekContainer .buttonGroup div{margin:0 auto}.dvrContainer .arrow-effect{position:absolute;top:50%;font-size:2em;z-index:2;color:#fff;opacity:.8;transform:translateY(-50%);transition:opacity .3s ease-in-out}.dvrContainer .arrow-effect.left{left:10%}.dvrContainer .arrow-effect.right{right:10%}.dvrContainer .menuGroup{display:flex;align-items:center;width:100%;height:100%;padding-top:8px;row-gap:8px}.dvrContainer .menuGroup .separator{width:8px;height:24px;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .menuGroup.liveType{height:auto}.dvrContainer .menuGroup .volumeBlock{display:flex;flex-wrap:nowrap;position:relative}.dvrContainer .menuGroup .timeline__snapshotControl{display:inline-block}.dvrContainer .menuGroup .timeline__snapshotControl .btn{padding:4px 8px;height:32px}.dvrContainer .menuGroup .timeline__snapshotControl .btn:focus{outline:none}.dvrContainer .menuGroup .timeline__snapshotControl .btn .icon{height:24px;width:24px}.dvrContainer .menuGroup button{margin-bottom:0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .menuGroup .btn{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .menuGroup .blanker{margin-left:auto;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .dvr-timeline{margin-bottom:0;margin-top:auto;transform:matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);z-index:1;display:block;position:relative;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrContainer .dvr-timeline *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrContainer .dvr-timeline .selectionControls{position:absolute;width:100%;top:0;left:0;z-index:46}.dvrContainer .dvr-timeline .selectionControls .dvrSelector{display:flex;justify-content:center;align-items:center;cursor:pointer;position:absolute;top:35px;height:39px;width:16px;background:#5da4f9;z-index:43}.dvrContainer .dvr-timeline .selectionControls .dvrSelector.right{border-radius:0 4px 4px 0}.dvrContainer .dvr-timeline .selectionControls .dvrSelector.right>span{transform:rotate(180deg)}.dvrContainer .dvr-timeline .selectionControls .dvrSelector.left{border-radius:4px 0 0 4px;margin-left:-16px}.dvrContainer .dvr-timeline .selectionControls .dvrSelector>span{font-size:21px}.dvrContainer .dvr-timeline .selectionControls .selection_thumbnail{position:absolute;bottom:124px}.dvrContainer .dvr-timeline .selectionControls .selectionLength{position:absolute;overflow:hidden;top:35px;height:4px;text-align:center;color:#fff;background:#5da4f9;user-select:none;transition:height 150ms ease-in-out}.dvrContainer .dvr-timeline .selectionControls .selectionLength.second{top:70px}.dvrContainer .dvr-timeline .btn{background:#66666d;color:#fff;font-weight:400;padding:8px 10px;max-height:32px;border-radius:4px;border:none;cursor:pointer;min-width:32px;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.dvrContainer .dvr-timeline .btn:hover{background-color:#6e6e75}.dvrContainer .dvr-timeline .btn:active{background-color:#58585f}.dvrContainer .dvr-timeline .btn.menu{padding:8px 0;margin-right:8px;margin-left:-6px;border-radius:0 8px 8px 0;min-width:25px;box-shadow:inset -2px 2px 2px 0px rgba(0,0,0,.15)}.dvrContainer .dvr-timeline .btn.menu i{margin-left:-1px}.dvrContainer .dvr-timeline .btn.menu:hover{background:#ffcc80}.dvrContainer .dvr-timeline .btn.menuHighlight{background:#1da664;height:48px;max-height:48px;width:48px;padding:0;margin:0;position:absolute;top:0;left:0;z-index:42}.dvrContainer .dvr-timeline .btn.menuHighlight:hover{background:#f0ad4e}.dvrContainer .dvr-timeline .recorded-ranges{height:16px;width:100%;cursor:pointer;display:block;position:relative}.dvrContainer .dvr-timeline .recorded-ranges .range-wrap{height:4px;width:100%;left:0;bottom:7px;background:#c5c5c5;position:absolute;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:150ms ease-in-out}.dvrContainer .dvr-timeline .motion-wrap{height:4px;width:100%;top:12px;position:absolute;z-index:1000;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .dvr-timeline .icon{width:14px;height:16px;display:block}.dvrContainer .dvr-timeline .motion-wrap>div{position:absolute;height:100%;border-radius:5px}.dvrContainer .dvr-timeline .motion-wrap{position:absolute;height:100%;border-radius:5px}.dvrContainer .dvr-timeline .motion-wrap .tooltiptext{visibility:hidden;width:120px;background:#403f49;color:#fff;text-align:center;padding:5px 0;border-radius:6px;position:absolute;z-index:1;top:-49px;left:0;right:0;font-size:12px;margin:auto}.dvrContainer .dvr-timeline .motion-wrap div:hover .tooltiptext{visibility:visible}.dvrContainer .dvr-timeline .recorded-ranges .range-wrap div{position:absolute;height:100%}.dvrContainer .dvr-timeline .recorded-ranges .range,.dvrContainer .dvr-timeline .recorded-ranges .miss,.dvrContainer .dvr-timeline .recorded-ranges .hit{position:relative}.dvrContainer .dvr-timeline .recorded-ranges .range::before,.dvrContainer .dvr-timeline .recorded-ranges .miss::before,.dvrContainer .dvr-timeline .recorded-ranges .hit::before{content:"";position:absolute;top:-10px;bottom:-10px;left:0;right:0;z-index:-1}.dvrContainer .dvr-timeline .recorded-ranges .hit{background:#117c59;z-index:1}.dvrContainer .dvr-timeline .recorded-ranges .miss{background:#c11030;z-index:0}.dvrContainer .dvr-timeline .recorded-ranges .live{background:#6ba0de;z-index:2}.dvrContainer .dvr-timeline .recorded-ranges .motion{background:#f0ad4e;border:3px solid #f0ad4e;border-radius:4px;box-shadow:4px 2px 5px 1px rgba(0,0,0,.3411764706)}.dvrContainer .dvr-timeline .time-markers{display:block;position:relative;width:100%;height:33px;cursor:pointer;pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .dvr-timeline .time-markers span{font-size:12px;line-height:18px;letter-spacing:-0.078px;position:absolute;color:#fff;white-space:nowrap;transform:translateX(-50%);top:11px;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .dvr-timeline .time-markers span.day{top:11px;font-weight:500}.dvrContainer .dvr-timeline .time-markers span .marker{position:absolute;height:8px;top:19px;left:calc(50% - 1px);width:1px;background:rgba(255,255,255,.35)}.dvrContainer .dvr-timeline .time-markers span .marker.day{background-color:#ce8a13}.dvrContainer .dvr-timeline .dvr-marker-left,.dvrContainer .dvr-timeline .dvr-marker-right{cursor:e-resize;display:block;width:15px;height:26px;position:absolute;top:-15px;display:none}.dvrContainer .dvr-timeline .dvr-marker-left{left:0;height:70px;margin-left:0px}.dvrContainer .dvr-timeline .dvr-marker-left svg{margin:38px 0 0 -16px;transform:scale(-2, 2);-webkit-transform:scale(-2, 2)}.dvrContainer .dvr-timeline .dvr-marker-right{width:12px;height:70px}.dvrContainer .dvr-timeline .dvr-marker-right svg{margin:38px 0 0 4px;transform:scale(2, 2);-webkit-transform:scale(2, 2)}.dvrContainer .dvr-timeline .play-marker{width:10px;height:10px;background:#fff;opacity:.9;border-radius:5px;top:10px}.dvrContainer .dvr-timeline .progress-wrapper .progress-bar{position:absolute;float:none}.dvrContainer .dvr-timeline .progress-wrapper .progress-bar-success{background:#209a60}.dvrContainer .dvr-timeline .progress-wrapper .progress-bar-danger{background:#ce2738}.dvrContainer .dvr-timeline .progress-wrapper .progress-bar-info{background:#6ba0de}.dvrContainer .dvr-timeline.closed{width:48px;height:48px;border-radius:50%;margin:16px;overflow:hidden;box-shadow:2px 2px 3px 1px rgba(0,0,0,.45)}.dvrContainer #forOverlays{display:flex;justify-content:center;align-items:center}.dvrContainer .downloadBlock{position:absolute;bottom:130px;z-index:3;display:flex;justify-content:center;align-items:center;flex-wrap:nowrap;height:48px;max-height:48px;padding:12px;margin:0 16px;border-radius:6px;border:1px solid rgba(235,235,245,.1);background:#212329;box-sizing:border-box}.dvrContainer .downloadBlock button.download{height:32px;width:auto;background:none;border:0;padding:0;margin:0;display:flex;box-sizing:border-box;align-items:center;justify-content:center}.dvrContainer .downloadBlock button.download:hover a:hover{background:#24bf74}.dvrContainer .downloadBlock button.download a{width:100%;height:100%}.dvrContainer .downloadBlock a.download{min-width:auto}.dvrContainer .downloadBlock a.carret{position:relative;width:16px;min-width:auto;padding:8px 6px;background:#209c61;border-radius:0 4px 4px 0;border-left:1px solid #188451}.dvrContainer .downloadBlock a.carret:before{color:#fff;display:inline-block;width:0;height:0;margin-left:-2px;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid rgba(0,0,0,0);border-bottom:0;border-left:.3em solid rgba(0,0,0,0)}.dvrContainer .downloadBlock a.carret div{position:absolute;bottom:30px;right:0;opacity:0;height:0;width:0;background:#56595e;box-shadow:2px 2px 2px 2px rgba(0,0,0,.2117647059);border-radius:2px;z-index:44}.dvrContainer .downloadBlock a.carret div ul{list-style-type:none;margin:0;padding:0}.dvrContainer .downloadBlock a.carret div ul li{padding:8px 12px;white-space:nowrap;text-align:left}.dvrContainer .downloadBlock a.carret div ul li:hover{background:#7e8186}.dvrContainer .downloadBlock a.carret:hover div{width:auto;height:auto;opacity:1}.dvrContainer .clear{width:100%;clear:both}.dvrContainer .btn{outline:none !important}.dvrContainer .dvr-player .failure-message{color:#c12e2a;padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee;margin-left:30px;margin-right:30px}.dvrContainer .dvr-player{height:100%}.dvrContainer .dvr-player-wrapper{display:block;width:100%;position:absolute;left:0;right:0;top:0}.dvrContainer .dvr-player-wrapper .no-live-wrapper{margin:0 auto}.dvrContainer .dvr-player-wrapper>div{margin:0 auto;max-width:100%;max-height:100%}.dvrContainer ::-webkit-scrollbar{width:12px;height:12px}.dvrContainer ::-webkit-scrollbar-track{background:rgba(0,0,0,0);border:none}.dvrContainer ::-webkit-scrollbar-thumb{background:rgba(0,0,0,.4);border:none}.dvrContainer .dvr-player-wrapper{display:block;justify-content:center;align-items:center;overflow:hidden;width:100%;position:absolute;left:0;right:0;top:0}.dvrContainer .dvr-player-wrapper:focus{outline:0}.dvrContainer .clickToPlay{display:flex;align-items:center;justify-content:center;width:160px;height:160px;opacity:.8;margin:auto;cursor:pointer}.dvrContainer .clickToPlay:hover{opacity:1}.dvrContainer .clickToPlay svg{fill:#fff}.dvrContainer .zIndexMax{z-index:999}.dvrContainer .clickToRestart{display:flex;align-items:center;justify-content:center;width:160px;height:160px;opacity:.8;margin:auto;cursor:pointer;z-index:10}.dvrContainer .clickToRestart:hover{opacity:1}.dvrContainer .clickToRestart span{font-size:136px;color:#fff}.dvrContainer .resetZoomBtn{position:absolute;padding:4px;margin:0;right:12px;top:calc(50% - 8px);width:32px;height:32px;border-radius:4px;border:none;cursor:pointer;background:#66666d;color:#fff;outline:none;z-index:49;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrContainer .resetZoomBtn:hover{background:#209c61}.dvrContainer .zoomWrapper{max-height:100%;position:relative;height:100%;transition:150ms ease-in-out}.dvrContainer .flexTransform{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:center;justify-content:center}.dvrContainer .pause-wrapper{position:absolute;z-index:48;font-size:100px;font-weight:500;color:#fff;left:calc(50% - 30px);top:calc(50% - 50px)}.dvrContainer .no-live-wrapper{position:absolute;top:0;left:0;z-index:46;font-size:14px;color:#fff;width:100%;height:100%;text-align:center;display:flex;justify-content:center;align-items:center;flex-direction:column;pointer-events:none}.dvrContainer .no-live-wrapper p{margin-bottom:0}.dvrContainer .no-live-wrapper p:first-child{margin-top:0}.dvrContainer .btn--rightmost{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important;border-left:1px solid rgba(255,255,255,.2) !important}.dvrContainer .btn--leftmost{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;border-right:1px solid rgba(0,0,0,.2) !important}.dvrContainer .timeline__timelineView{display:block;position:relative;overflow:hidden;width:100%;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .timeline__timelineView .line_wrapper{position:relative;transition:150ms ease-in-out}.dvrContainer .timeline__timelineView .line_wrapper.large{height:48px}.dvrContainer .timeline__timelineView .line_wrapper.large .recorded-ranges{height:100%}.dvrContainer .timeline__timelineView .line_wrapper.large .range-wrap{height:39px}.dvrContainer .timeline__timelineView .line_wrapper.large .motion-wrap{top:33px;height:12px;z-index:45}.dvrContainer .timeline__timelineView .line_wrapper.large .now-marker{top:2px}.dvrContainer .timeline__timelineView .line_wrapper.large .now-marker div{width:3px;height:39px;border-radius:4px}.dvrContainer .timeline__timelineView .line_wrapper .now-marker{position:absolute;top:calc(50% - 8px);transform:matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);z-index:6}.dvrContainer .timeline__timelineView .line_wrapper .now-marker div{position:absolute;z-index:5;height:14px;width:14px;margin-left:-7px;border-radius:50%;background:#fff;box-shadow:1px 1px 2px 2px rgba(0,0,0,.1450980392)}.dvrContainer .markers_wrapper{position:relative;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .timeline__zoomoutControl{display:inline-block;vertical-align:top}.dvrContainer .timeline__zoominControl{display:inline-block;vertical-align:top}.dvrContainer .timeline__seekLeftControl{display:inline-block;vertical-align:top}.dvrContainer .timeline__seekRightControl{display:inline-block;vertical-align:top}.dvrContainer .volume{width:100px;height:32px;background-color:#33323a;position:relative;border-radius:0 4px 4px 0;overflow:hidden;cursor:pointer}.dvrContainer .volume .volumePos{position:absolute;top:0;left:0;height:32px;background-color:#1da664;z-index:41}.dvrContainer .timeline__speedControls{display:flex;justify-content:center;align-items:center;flex-direction:row;flex-wrap:nowrap;border-radius:4px;width:auto;overflow:hidden;max-height:34px;white-space:nowrap;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrContainer .timeline__speedControls>div{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrContainer .timeline__speedControls.hidden{visibility:hidden;width:0;display:none}.dvrContainer .timeline__speedControls__slower{display:inline-block;vertical-align:middle;border-right-color:#282828 !important}.dvrContainer .timeline__speedControls__currentSpeed{display:inline-block;vertical-align:middle;width:40px;height:30px;line-height:30px;text-align:center;color:#fff;border-top:1px solid #282828;border-bottom:1px solid #605f69;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .timeline__speedControls__faster{display:inline-block;vertical-align:middle}.dvrContainer .timeline__perFrameSeek{display:flex;justify-content:center;align-items:center}.dvrContainer .timeline__perFrameSeek:hover{background-color:#188451 !important}.dvrContainer .timeline__perFrameSeek.enabled{background-color:#1da664}.dvrContainer .timeline__perFrameSeek i{pointer-events:none}.dvrContainer .timeline__perFrameSeek svg{pointer-events:none}.dvrContainer .timeline__timeControl{display:inline-block;vertical-align:top;padding:4px 15px;line-height:26px;color:#fff;background:#66666d;border-radius:4px;text-align:center;min-width:90px;box-sizing:border-box}.dvrContainer .timeline__timeControl__current{color:#fff;text-decoration:none}.dvrContainer .timeline__downloadControls{display:none}.dvrContainer .noDvr_message{color:#fff;margin-left:16px}.dvrContainer .live_message{color:#fff;margin-left:16px;padding:0;border:0;font-size:100%;vertical-align:baseline}.dvrContainer .live_message:before{content:"";display:inline-block;position:relative;width:7px;height:7px;border-radius:3.5px;margin-right:4px;background-color:#ff0101}.dvrContainer input[type=number]{-moz-appearance:textfield}.dvrContainer input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.dvrContainer input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.dvrContainer .timeline__snapshotControl{display:inline-block}.dvrContainer .timeline__calendarControl{display:flex;vertical-align:middle;line-height:12px;box-sizing:border-box;height:32px;padding:0 8px !important;cursor:pointer;overflow:hidden}.dvrContainer .timeline__calendar__current{display:flex;justify-content:end;align-items:center;padding:0 4px;user-select:none}.dvrContainer .timeline__calendar__current i{margin-right:4px;user-select:none}.dvrContainer .timeline__calendarContent{display:block;width:100%;overflow-x:auto;background-color:#504f59}.dvrContainer .timeline__calendarContent .calendar{display:flex;vertical-align:top;width:auto;padding-top:10px;background:#504f59;color:#fff;white-space:nowrap;position:absolute;top:0;bottom:0;z-index:50;padding:8px;width:100%;box-sizing:border-box;border-radius:8px;flex-direction:column;justify-content:center;align-content:center;align-items:center;user-select:none}.dvrContainer .timeline__calendarContent .calendar .month-selection{text-align:center}.dvrContainer .timeline__calendarContent .calendar .calendar_close{position:absolute;font-size:24px;right:-12px;top:-12px;background:#8a8698;border-radius:50%;width:24px;height:24px;text-align:center;line-height:19px;box-shadow:rgba(0,0,0,.4) 0px 1px 22.8px 2px;cursor:pointer;display:flex;justify-content:center;align-items:center;align-content:center}.dvrContainer .timeline__calendarContent .calendar .calendar_close:hover{background:#1da664}.dvrContainer .timeline__calendarContent .calendar .month-change{display:inline-block;vertical-align:top;width:72px;height:32px;line-height:36px;text-align:center;background-position:center center;background-repeat:no-repeat;cursor:pointer}.dvrContainer .timeline__calendarContent .calendar .month-change:active{background-color:rgba(255,255,255,.05)}.dvrContainer .timeline__calendarContent .calendar .month{display:inline-block;vertical-align:top;margin:8px 0;text-align:center;padding:0 24px;border-left:1px solid #56595e;border-right:1px solid #56595e}.dvrContainer .timeline__calendarContent .calendar .month .year{color:#a6a8aa;margin-left:8px}.dvrContainer .timeline__calendarContent .calendar .days{display:flex;vertical-align:top;width:100%;height:85%;max-height:85%;flex-direction:column;align-content:center;justify-content:center;align-items:stretch}.dvrContainer .timeline__calendarContent .calendar .day-names{height:54px;display:flex;flex-direction:row;align-items:center;justify-content:space-between}.dvrContainer .timeline__calendarContent .calendar .day-name{display:inline-block;vertical-align:top;width:100%;padding:6px 0;color:#1da664;text-align:center}.dvrContainer .timeline__calendarContent .calendar .day-entries{height:64px;display:flex;flex-direction:row;align-items:center;justify-content:space-between}.dvrContainer .timeline__calendarContent .calendar .day-entries:first-child{border-top:1px solid rgba(255,255,255,.15)}.dvrContainer .timeline__calendarContent .calendar .day-entries:nth-child(3){border-top:1px solid rgba(255,255,255,.15)}.dvrContainer .timeline__calendarContent .calendar .day-entry{display:flex;justify-content:center;align-items:center;width:100%;height:100%;text-align:center;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-left:1px solid rgba(255,255,255,.15);border-bottom:1px solid rgba(255,255,255,.15)}.dvrContainer .timeline__calendarContent .calendar .day-entry.available{background:#57b186;cursor:pointer}.dvrContainer .timeline__calendarContent .calendar .day-entry.available:hover{color:#fff;background:blue}.dvrContainer .timeline__calendarContent .calendar .day-entry:last-child{border-right:1px solid rgba(255,255,255,.15)}.dvrContainer .timeline__calendarContent .calendar .day-entry:hover{font-weight:500;color:#000;background:#fff}.dvrContainer .timeline__calendarContent .calendar .day-entry.other-month{color:gray}.dvrContainer .timeline__calendarContent .calendar .day-entry.current-day{background:green}.dvrContainer .timeline__calendarContent .calendar .day-entry.selected-day{background:blue}.dvrContainer .timeline__thumbnail{user-select:none;position:absolute;background:rgba(0,0,0,.4);z-index:48}.dvrContainer .timeline__thumbnail__image{user-select:none;display:block;position:relative;box-sizing:content-box;width:0;height:0}.dvrContainer .timeline__thumbnail__caption{white-space:nowrap;height:24px;line-height:24px;padding:0 6px;background-color:rgba(0,0,0,.5);border-top:1px solid rgba(0,0,0,.4);color:#fff;position:relative;width:auto;display:block}.dvrContainer .dvr-marker-drag{cursor:e-resize}.dvrContainer .dvr-marker-drag.locked{cursor:unset}.dvrContainer .dvr-marker-drag.locked svg path{fill:orange !important;stroke:orange !important}.dvrContainer .dvr-marker-drag .drag-tooltip{background:#fff;color:#000;padding:4px 6px;font-size:12px;border-radius:4px;position:absolute;top:0;left:-28px;z-index:42;opacity:0;transition:300ms ease-in-out;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .dvr-marker-drag .drag-tooltip.visible{opacity:1}@media only screen and (min-width: 240px)and (max-width: 960px){.dvrContainer .menuGroup{flex-wrap:wrap}}@media only screen and (min-device-width: 240px)and (max-device-width: 960px)and (orientation: portrait){.dvrContainer .dvr-timeline{box-sizing:border-box;max-width:100%;width:auto}.dvrContainer .dvr-timeline .time-markers span{font-size:10px}.dvrContainer .dvr-timeline .selectionControls{margin:auto -7px auto -7px;width:calc(100% + 14px)}.dvrContainer .dvr-timeline .timeline__timelineView{box-sizing:border-box;width:auto;max-width:calc(100% + 14px);margin:auto -7px auto -7px}.dvrContainer .dvr-timeline .menuGroup{flex-wrap:wrap;margin-bottom:8px}.dvrContainer .dvr-timeline .menuGroup .timeline__timeControl{margin-top:8px;margin-left:16px}.dvrContainer .dvr-timeline .menuGroup .btn{background:none}.dvrContainer .dvr-timeline .menuGroup .separator{width:2px}.dvrContainer .timeline__calendar__current{padding:0;text-align:center;justify-content:center}.dvrContainer .timeline__calendar__current i{text-align:center;margin-right:0}.dvrContainer .volumeBlock:hover .volume{height:100px}.dvrContainer .volumeBlock .volume{width:32px;height:0;position:absolute;bottom:100%;border-radius:4px}.dvrContainer .volumeBlock .volume .volumePos{height:100px;width:32px;bottom:0;top:unset}.dvrContainer .downloadBlock{padding:8px}}@media only screen and (max-device-width: 1024px)and (orientation: landscape){.dvrContainer .dvr-timeline{box-sizing:border-box;max-width:100%;width:auto}.dvrContainer .dvr-timeline .menuGroup button{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .dvr-timeline .menuGroup button i{font-size:10px;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .volumeBlock:hover .volume{height:100px}.dvrContainer .volumeBlock .volume{width:32px;height:0;position:absolute;bottom:100%;border-radius:4px}.dvrContainer .volumeBlock .volume .volumePos{height:100px;width:32px;bottom:0;top:unset}}@media only screen and (min-device-width: 768px)and (max-device-width: 1024px)and (orientation: landscape){.dvrContainer .menuGroup .separator{width:4px}}@media only screen and (min-device-width: 768px)and (max-device-width: 1024px)and (orientation: portrait){.dvrContainer .menuGroup .separator{width:4px}}@media screen and (max-width: 480px){.dvrContainer .timeline__timeControl{padding:4px 8px;min-width:auto}.dvrContainer .volumeBlock:hover .volume{height:100px}.dvrContainer .volumeBlock .volume{width:32px;height:0;position:absolute;bottom:100%;border-radius:4px}.dvrContainer .volumeBlock .volume .volumePos{height:100px;width:32px;bottom:0;top:unset}}@media screen and (min-width: 480px){.dvrContainer .dvr-timeline .btn .dvr-timeline .btn.menu{margin-left:-14px}.dvrContainer .dvr-timeline .btn .dvr-timeline .btn.menuHighlight{background:#1da664;height:48px;max-height:48px;width:48px;padding:0;margin:0;position:absolute;top:0;left:0;z-index:41}.dvrContainer .dvr-timeline .btn .dvr-timeline .btn.menuHighlight:hover{background:#f0ad4e}.dvrContainer .timeline__timeControl{padding:4px 12px;min-width:auto}.dvrContainer .timeline__calendarControl{visibility:visible}.dvrContainer .timeline__calendarControl.inactive{visibility:hidden}.dvrContainer .timeline__calendar__current{padding:0}.dvrContainer .timeline__thumbnail{transform:none}.dvrContainer .timeline__thumbnail__image{height:160px}.dvrContainer .timeline__calendar__current{padding:0;text-align:center;justify-content:center}.dvrContainer .timeline__calendar__current i{text-align:center;margin-right:0}}@media screen and (min-width: 568px){.dvrContainer .dvr-timeline .btn.menu{margin-left:-8px}.dvrContainer .dvr-timeline .btn.menuHighlight{margin-left:0}}@media screen and (min-width: 720px){.dvrContainer .timeLineCursor{position:absolute;top:34px;width:1px;height:6px;background-color:orange;pointer-events:none}.dvrContainer .dvr-timeline .btn.menu{margin-left:-14px}.dvrContainer .dvr-timeline .btn.menu.menuHighlight{margin-left:0}.dvrContainer .timeline__timeControl{padding:4px 12px;min-width:auto}.dvrContainer .timeline__downloadControls{display:inline-block}.dvrContainer .timeline__calendar__current i{margin-right:4px}.dvrContainer .dvr-timeline .dvr-marker-left,.dvrContainer .dvr-timeline .dvr-marker-right{display:block}}@media screen and (max-width: 1280px){.dvrContainer .menuGroup .btn{padding:0 !important;text-align:center;display:flex;justify-content:center;align-items:center}.dvrContainer .menuGroup button{width:28px !important;height:28px !important;line-height:28px;min-width:28px}.dvrContainer .menuGroup button.download{background:#209c61 !important;border-radius:4px}.dvrContainer .menuGroup button i{display:flex;justify-content:center;align-items:center}.dvrContainer .menuGroup button i svg{width:12px !important;height:12px !important}.dvrContainer .menuGroup .timeline__speedControls{display:flex;height:28px;flex-wrap:nowrap;justify-content:center;align-items:center}.dvrContainer .menuGroup .timeline__calendarControl{height:28px;padding:0 2px !important}.dvrContainer .menuGroup .timeline__calendarControl i{width:20px !important;height:20px !important}.dvrContainer .menuGroup .timeline__calendarControl i svg{width:20px !important;height:20px !important}.dvrContainer .menuGroup .timeline__calendarControl span{font-size:10px}.dvrContainer .menuGroup .volumeBlock svg{width:20px !important;height:20px !important}.dvrContainer .menuGroup .volume{height:28px}.dvrContainer .menuGroup .share{height:28px}}@media screen and (min-width: 1000px){.dvrContainer .dvr-timeline .btn.menu{margin-left:-30px}.dvrContainer .dvr-timeline .btn.menuHighlight i{width:48px !important;margin-left:0}.dvrContainer button.btn{height:32px}.dvrContainer button.btn i{line-height:1;display:flex;align-items:center;justify-content:center}}.dvrContainer .spinnerThreeBounce{position:absolute;margin:0 auto;width:70px;text-align:center;z-index:48;left:0;right:0;margin-left:auto;margin-right:auto;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.dvrContainer .bounce{width:18px;height:18px;background-color:#fff;border-radius:100%;display:inline-block;-webkit-animation-name:bouncedelay;animation-name:bouncedelay;-webkit-animation-duration:1.4s;animation-duration:1.4s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-fill-mode:both;animation-fill-mode:both}@-webkit-keyframes bouncedelay{0%,80%,100%{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes bouncedelay{0%,80%,100%{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}.dvrContainer .bounce1{-webkit-animation-delay:-0.32s;animation-delay:-0.32s}.dvrContainer .bounce2{-webkit-animation-delay:-0.16s;animation-delay:-0.16s}.dvrContainer .Loading{position:absolute;top:calc(50% - 10px);left:calc(50% - 35px);z-index:1;visibility:hidden}.dvrContainer .Loading.visible{visibility:visible}.dvrContainer .PlayerInstance{height:auto;position:relative;box-sizing:border-box;order:999;opacity:1}.dvrContainer .PlayerInstance.hidden{width:0 !important;height:0 !important;opacity:0}.dvrContainer .PlayerInstance.fullscreen{width:100% !important;height:100% !important}.dvrContainer .PlayerInstance .dvr-player-wrapper{bottom:0 !important;position:relative;height:100%;max-height:100%;box-sizing:border-box;z-index:0}.dvrContainer .timelineLoading{position:absolute;width:100%;height:100%;text-align:center;z-index:45}.dvrContainer .PlayerInstance .CameraName{position:absolute;top:8px;left:calc(50% - 50px);color:#fff;font-size:20px;z-index:46;background:rgba(0,0,0,.4901960784);padding:8px 16px;border-radius:4px;opacity:0}.dvrContainer .PlayerInstance:hover .CameraName{opacity:1}.dvrContainer .PlayerInstance.visible .CameraName{opacity:1}.dvrContainer .noData{height:auto;position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;color:#fff}.dvrContainer .noData .CameraName{position:absolute;top:8px;left:8px;color:#fff;font-size:20px;z-index:46;background:rgba(0,0,0,.4901960784);padding:8px 16px;border-radius:4px;opacity:0}.dvrContainer .noData:hover .CameraName{opacity:1}.dvrContainer .noDvr{color:#fff;font-size:16px;text-align:center;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;width:100%;z-index:48}.dvrContainer .mainPlayer{color:#fff;font-size:16px;text-align:center;position:absolute;right:8px;top:8px;z-index:40}.dvrContainer .mainPlayer>span{font-size:24px;margin-right:4px;vertical-align:middle;color:#1da664}.dvrContainer .rangesLoading{position:absolute;z-index:48;left:8px;bottom:2px;color:#fff;opacity:0}.dvrContainer .rangesLoading.visible{opacity:1}.dvrContainer .rangesLoading span{margin-right:4px;color:red}.dvrContainer .flashingPopup{color:#fff;background:rgba(0,0,0,.45);padding:8px 12px;border-radius:8px;position:absolute;bottom:20%;left:0;right:0;text-align:center;max-width:200px;margin:0 auto;z-index:20}.dvrContainer #forClearout{z-index:0}.dvrContainer .ptzButton{cursor:pointer;font-size:9px;border-radius:5px;display:flex;justify-content:center;align-items:center;border:none;color:#fff;width:36px;height:36px;background:rgba(87,87,90,.8)}.dvrContainer .ptzButton:hover{background:rgba(87,87,90,.9)}.dvrContainer .ptzWrapper{position:absolute;width:120px;right:4px;top:12px;z-index:1}@media(min-width: 768px){.dvrContainer .ptzWrapper{top:40px}}.dvrContainer .ptzNavigation{display:flex;flex-wrap:wrap}.dvrContainer .ptzNavigation>div{margin:2px}.dvrContainer .ptzZoom{margin:0 10px 10px;display:flex;justify-content:space-between}.live-player-volume-animation-mask{stroke:#000;stroke-opacity:.15;stroke-width:2px;fill:none}.motionTooltip p{margin:0}.motionTooltip h2{margin:0;font-size:11px}.testTimeline{width:100%;height:36px;margin-bottom:16px}.testTimeline .track{width:100%;background:#18181b;height:16px;border-radius:4px;position:relative;overflow:hidden}.testTimeline .track .buffered{position:absolute;background:#1da664;height:16px;top:0;z-index:2}.testTimeline .track .hoverMarker{position:absolute;background:#ff0101;width:3px;height:16px;top:0;z-index:3}.testTimeline .track .nowMarker{position:absolute;background:#fff;width:2px;height:16px;top:0;z-index:2}.testTimeline .time{color:#fff;float:right;margin-bottom:4px}',""]),e.exports=t},function(e,t,n){var r=n(78),i=n(1115);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(79),i=n(1116),o=n(1117),a=n(1118),s=n(1119),u=n(1120);t=r(!1);var c=i(o),l=i(o,{hash:"#iefix"}),f=i(a),d=i(s),h=i(u);t.push([e.i,"@font-face {\n font-family: 'icomoon';\n src: url("+c+");\n src: url("+l+") format('embedded-opentype'),\n url("+f+") format('truetype'),\n url("+d+") format('woff');\n font-weight: normal;\n font-style: normal;\n font-display: block;\n}\n\n[class^='icon-'],\n[class*=' icon-'] {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: 'icomoon' !important;\n speak: never;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n@font-face {\n font-family: \"Material Symbols Outlined\";\n font-style: normal;\n font-weight: 100 700;\n font-display: block;\n src: url("+h+") format(\"woff2\");\n}\n.material-symbols-outlined {\n font-family: \"Material Symbols Outlined\";\n font-weight: normal;\n font-style: normal;\n font-size: 24px;\n line-height: 1;\n letter-spacing: normal;\n text-transform: none;\n display: inline-block;\n white-space: nowrap;\n word-wrap: normal;\n direction: ltr;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-feature-settings: \"liga\";\n}\n\n.icon-timelapse:before {\n content: '\\e900';\n}\n.icon-arrow_player:before {\n content: '\\e901';\n}\n.icon-audio_streams:before {\n content: '\\e902';\n}\n.icon-back:before {\n content: '\\e903';\n}\n.icon-bitrate_streams:before {\n content: '\\e904';\n}\n.icon-clients:before {\n content: '\\e905';\n}\n.icon-close:before {\n content: '\\e906';\n}\n.icon-copy_embed:before {\n content: '\\e907';\n}\n.icon-date_player:before {\n content: '\\e908';\n}\n.icon-date_two_player:before {\n content: '\\e909';\n}\n.icon-down:before {\n content: '\\e90a';\n}\n.icon-export_player:before {\n content: '\\e90b';\n}\n.icon-export:before {\n content: '\\e90c';\n}\n.icon-full:before {\n content: '\\e90d';\n}\n.icon-hd:before {\n content: '\\e90e';\n}\n.icon-info_player:before {\n content: '\\e90f';\n}\n.icon-not_working_player:before {\n content: '\\e910';\n}\n.icon-one:before {\n content: '\\e911';\n}\n.icon-pause_player:before {\n content: '\\e912';\n}\n.icon-play_player:before {\n content: '\\e913';\n}\n.icon-screen_player:before {\n content: '\\e914';\n}\n.icon-screen:before {\n content: '\\e915';\n}\n.icon-settings_player:before {\n content: '\\e916';\n}\n.icon-share_player:before {\n content: '\\e917';\n}\n.icon-sound_0:before {\n content: '\\e918';\n}\n.icon-sound_1:before {\n content: '\\e919';\n}\n.icon-speed:before {\n content: '\\e91a';\n}\n.icon-subtitles_player:before {\n content: '\\e91b';\n}\n.icon-track_player:before {\n content: '\\e91c';\n}\n.icon-url:before {\n content: '\\e91d';\n}\n.icon-video:before {\n content: '\\e91e';\n}\n.icon-volume_off:before {\n content: '\\e91f';\n}\n.icon-volume_two:before {\n content: '\\e920';\n}\n.icon-volume:before {\n content: '\\e921';\n}\n",""]),e.exports=t},function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},function(e,t,n){"use strict";n.r(t),t.default=n.p+"70a2619575920ff5f3e768452466040b.eot"},function(e,t,n){"use strict";n.r(t),t.default=n.p+"d06a9185c1632b7a9a255a25bb9f901d.ttf"},function(e,t,n){"use strict";n.r(t),t.default=n.p+"46d10a04f3c077bc6f511a1f17e4108c.woff"},function(e,t,n){"use strict";n.r(t),t.default=n.p+"bd6b4a7bfe5141f1366f23bc48a9d006.woff2"},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"FunctionToString",(function(){return y})),n.d(r,"InboundFilters",(function(){return j}));var i,o,a=n(40),s=n.n(a),u=n(41),c=n.n(u),l=n(8),f=n.n(l),d=(n(537),n(1014),n(1015),n(0)),h=n.n(d),p=n(148),g=n.n(p),m=n(4),v=n(99),y=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){i=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object(v.f)(this)||this;return i.apply(n,e)}},e.id="FunctionToString",e}(),b="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,_=n(73),w=Object(_.a)(),E=["debug","info","warn","error","log","assert"];function S(e){var t=Object(_.a)();if(!("console"in t))return e();var n=t.console,r={};E.forEach((function(e){var i=n[e]&&n[e].__sentry_original__;e in t.console&&i&&(r[e]=n[e],n[e]=i)}));try{return e()}finally{Object.keys(r).forEach((function(e){n[e]=r[e]}))}}function x(){var e=!1,t={enable:function(){e=!0},disable:function(){e=!1}};return b?E.forEach((function(n){t[n]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e&&S((function(){var e;(e=w.console)[n].apply(e,Object(m.d)(["Sentry Logger ["+n+"]:"],t))}))}})):E.forEach((function(e){t[e]=function(){}})),t}o=b?Object(_.b)("logger",x):x();var k=n(174);function T(){var e=Object(_.a)(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function O(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function R(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function P(e){var t=e.message,n=e.event_id;if(t)return t;var r=R(e);return r?r.type&&r.value?r.type+": "+r.value:r.type||r.value||n||"<unknown>":n||"<unknown>"}function A(e,t,n){var r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function C(e,t){var n=R(e);if(n){var r=n.mechanism;if(n.mechanism=Object(m.a)(Object(m.a)(Object(m.a)({},{type:"generic",handled:!0}),r),t),t&&"data"in t){var i=Object(m.a)(Object(m.a)({},r&&r.data),t.data);n.mechanism.data=i}}}function L(e){if(e&&e.__sentry_captured__)return!0;try{Object(v.a)(e,"__sentry_captured__",!0)}catch(e){}return!1}var D="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,I=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],j=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(t,n){t((function(t){var r=n();if(r){var i=r.getIntegration(e);if(i){var a=r.getClient(),s=a?a.getOptions():{};return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return D&&o.warn("Event dropped due to being internal Sentry Error.\nEvent: "+P(e)),!0;if(function(e,t){if(!t||!t.length)return!1;return function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,r=void 0===n?"":n,i=t.value,a=void 0===i?"":i;return[""+a,r+": "+a]}catch(t){return D&&o.error("Cannot extract message for event "+P(e)),[]}return[]}(e).some((function(e){return t.some((function(t){return Object(k.a)(e,t)}))}))}(e,t.ignoreErrors))return D&&o.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+P(e)),!0;if(function(e,t){if(!t||!t.length)return!1;var n=N(e);return!!n&&t.some((function(e){return Object(k.a)(n,e)}))}(e,t.denyUrls))return D&&o.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+P(e)+".\nUrl: "+N(e)),!0;if(!function(e,t){if(!t||!t.length)return!0;var n=N(e);return!n||t.some((function(e){return Object(k.a)(n,e)}))}(e,t.allowUrls))return D&&o.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+P(e)+".\nUrl: "+N(e)),!0;return!1}(t,function(e,t){void 0===e&&(e={});void 0===t&&(t={});return{allowUrls:Object(m.d)(e.whitelistUrls||[],e.allowUrls||[],t.whitelistUrls||[],t.allowUrls||[]),denyUrls:Object(m.d)(e.blacklistUrls||[],e.denyUrls||[],t.blacklistUrls||[],t.denyUrls||[]),ignoreErrors:Object(m.d)(e.ignoreErrors||[],t.ignoreErrors||[],I),ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(i._options,s))?null:t}}return t}))},e.id="InboundFilters",e}();function M(e){void 0===e&&(e=[]);for(var t=e.length-1;t>=0;t--){var n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}function N(e){try{if(e.stacktrace)return M(e.stacktrace.frames);var t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?M(t):null}catch(t){return D&&o.error("Cannot extract url for event "+P(e)),null}}var F=n(527),U=n(221),B="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,q=n(45);function $(e){return new z((function(t){t(e)}))}function V(e){return new z((function(t,n){n(e)}))}var z=function(){function e(e){var t=this;this._state=0,this._handlers=[],this._resolve=function(e){t._setResult(1,e)},this._reject=function(e){t._setResult(2,e)},this._setResult=function(e,n){0===t._state&&(Object(q.n)(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._executeHandlers=function(){if(0!==t._state){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e[0]||(1===t._state&&e[1](t._value),2===t._state&&e[2](t._value),e[0]=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.prototype.then=function(t,n){var r=this;return new e((function(e,i){r._handlers.push([!1,function(n){if(t)try{e(t(n))}catch(e){i(e)}else e(n)},function(t){if(n)try{e(n(t))}catch(e){i(e)}else i(t)}]),r._executeHandlers()}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var i,o;return n.then((function(e){o=!1,i=e,t&&t()}),(function(e){o=!0,i=e,t&&t()})).then((function(){o?r(i):e(i)}))}))},e}(),W=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=Object(m.d)(t._breadcrumbs),n._tags=Object(m.a)({},t._tags),n._extra=Object(m.a)({},t._extra),n._contexts=Object(m.a)({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=Object(m.d)(t._eventProcessors),n._requestSession=t._requestSession),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.getRequestSession=function(){return this._requestSession},e.prototype.setRequestSession=function(e){return this._requestSession=e,this},e.prototype.setTags=function(e){return this._tags=Object(m.a)(Object(m.a)({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=Object(m.a)(Object(m.a)({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=Object(m.a)(Object(m.a)({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=Object(m.a)(Object(m.a)({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=Object(m.a)(Object(m.a)({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e=this.getSpan();return e&&e.transaction},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=Object(m.a)(Object(m.a)({},this._tags),t._tags),this._extra=Object(m.a)(Object(m.a)({},this._extra),t._extra),this._contexts=Object(m.a)(Object(m.a)({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):Object(q.i)(t)&&(t=t,this._tags=Object(m.a)(Object(m.a)({},this._tags),t.tags),this._extra=Object(m.a)(Object(m.a)({},this._extra),t.extra),this._contexts=Object(m.a)(Object(m.a)({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var r=Object(m.a)({timestamp:Object(F.a)()},e);return this._breadcrumbs=Object(m.d)(this._breadcrumbs,[r]).slice(-n),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){if(this._extra&&Object.keys(this._extra).length&&(e.extra=Object(m.a)(Object(m.a)({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=Object(m.a)(Object(m.a)({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=Object(m.a)(Object(m.a)({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=Object(m.a)(Object(m.a)({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=Object(m.a)({trace:this._span.getTraceContext()},e.contexts);var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags=Object(m.a)({transaction:n},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=Object(m.d)(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors(Object(m.d)(G(),this._eventProcessors),e,t)},e.prototype.setSDKProcessingMetadata=function(e){return this._sdkProcessingMetadata=Object(m.a)(Object(m.a)({},this._sdkProcessingMetadata),e),this},e.prototype._notifyEventProcessors=function(e,t,n,r){var i=this;return void 0===r&&(r=0),new z((function(o,a){var s=e[r];if(null===t||"function"!=typeof s)o(t);else{var u=s(Object(m.a)({},t),n);Object(q.n)(u)?u.then((function(t){return i._notifyEventProcessors(e,t,n,r+1).then(o)})).then(null,a):i._notifyEventProcessors(e,u,n,r+1).then(o).then(null,a)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function G(){return Object(_.b)("globalEventProcessors",(function(){return[]}))}function H(e){G().push(e)}var K=function(){function e(e){this.errors=0,this.sid=T(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var t=Object(F.b)();this.timestamp=t,this.started=t,e&&this.update(e)}return e.prototype.update=function(e){if(void 0===e&&(e={}),e.user&&(!this.ipAddress&&e.user.ip_address&&(this.ipAddress=e.user.ip_address),this.did||e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||Object(F.b)(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=32===e.sid.length?e.sid:T()),void 0!==e.init&&(this.init=e.init),!this.did&&e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof e.duration)this.duration=e.duration;else{var t=this.timestamp-this.started;this.duration=t>=0?t:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):"ok"===this.status?this.update({status:"exited"}):this.update()},e.prototype.toJSON=function(){return Object(v.c)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},e}(),Y=function(){function e(e,t,n){void 0===t&&(t=new W),void 0===n&&(n=4),this._version=n,this._stack=[{}],this.getStackTop().scope=t,e&&this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=W.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=t&&t.event_id?t.event_id:T(),r=t;if(!t){var i=void 0;try{throw new Error("Sentry syntheticException")}catch(e){i=e}r={originalException:e,syntheticException:i}}return this._invokeClient("captureException",e,Object(m.a)(Object(m.a)({},r),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=n&&n.event_id?n.event_id:T(),i=n;if(!n){var o=void 0;try{throw new Error(e)}catch(e){o=e}i={originalException:e,syntheticException:o}}return this._invokeClient("captureMessage",e,t,Object(m.a)(Object(m.a)({},i),{event_id:r})),r},e.prototype.captureEvent=function(e,t){var n=t&&t.event_id?t.event_id:T();return"transaction"!==e.type&&(this._lastEventId=n),this._invokeClient("captureEvent",e,Object(m.a)(Object(m.a)({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),r=n.scope,i=n.client;if(r&&i){var o=i.getOptions&&i.getOptions()||{},a=o.beforeBreadcrumb,s=void 0===a?null:a,u=o.maxBreadcrumbs,c=void 0===u?100:u;if(!(c<=0)){var l=Object(F.a)(),f=Object(m.a)({timestamp:l},e),d=s?S((function(){return s(f,t)})):f;null!==d&&r.addBreadcrumb(d,c)}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,r=t.client;n&&r&&e(n)},e.prototype.run=function(e){var t=X(this);try{e(this)}finally{X(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return B&&o.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.captureSession=function(e){if(void 0===e&&(e=!1),e)return this.endSession();this._sendSessionUpdate()},e.prototype.endSession=function(){var e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&n.close(),this._sendSessionUpdate(),t&&t.setSession()},e.prototype.startSession=function(e){var t=this.getStackTop(),n=t.scope,r=t.client,i=r&&r.getOptions()||{},o=i.release,a=i.environment,s=(Object(_.a)().navigator||{}).userAgent,u=new K(Object(m.a)(Object(m.a)(Object(m.a)({release:o,environment:a},n&&{user:n.getUser()}),s&&{userAgent:s}),e));if(n){var c=n.getSession&&n.getSession();c&&"ok"===c.status&&c.update({status:"exited"}),this.endSession(),n.setSession(u)}return u},e.prototype._sendSessionUpdate=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var r=t.getSession&&t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this.getStackTop(),o=i.scope,a=i.client;a&&a[e]&&(t=a)[e].apply(t,Object(m.d)(n,[o]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Q(),i=r.__SENTRY__;if(i&&i.extensions&&"function"==typeof i.extensions[e])return i.extensions[e].apply(this,t);B&&o.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function Q(){var e=Object(_.a)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function X(e){var t=Q(),n=ee(t);return te(t,e),n}function J(){var e=Q();return Z(e)&&!ee(e).isOlderThan(4)||te(e,new Y),Object(U.b)()?function(e){try{var t=Q().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return ee(e);if(!Z(n)||ee(n).isOlderThan(4)){var r=ee(e).getStackTop();te(n,new Y(r.client,W.clone(r.scope)))}return ee(n)}catch(t){return ee(e)}}(e):ee(e)}function Z(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function ee(e){return Object(_.b)("hub",(function(){return new Y}),e)}function te(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}var ne=n(285);function re(){if(!("fetch"in Object(_.a)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function ie(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function oe(){if(!re())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}var ae,se=Object(_.a)(),ue={},ce={};function le(e){if(!ce[e])switch(ce[e]=!0,e){case"console":!function(){if(!("console"in se))return;E.forEach((function(e){e in se.console&&Object(v.e)(se.console,e,(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];de("console",{args:n,level:e}),t&&t.apply(se.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in se))return;var e=de.bind(null,"dom"),t=ve(e,!0);se.document.addEventListener("click",t,!1),se.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((function(t){var n=se[t]&&se[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(v.e)(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{var o=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){var s=ve(e);a.handler=s,t.call(this,n,s,i)}a.refCount+=1}catch(e){}return t.call(this,n,r,i)}})),Object(v.e)(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var i=this.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount-=1,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in se))return;var e=XMLHttpRequest.prototype;Object(v.e)(e,"open",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,i=t[1],o=r.__sentry_xhr__={method:Object(q.l)(t[0])?t[0].toUpperCase():t[0],url:t[1]};Object(q.l)(i)&&"POST"===o.method&&i.match(/sentry_key/)&&(r.__sentry_own_request__=!0);var a=function(){if(4===r.readyState){try{o.status_code=r.status}catch(e){}de("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:r})}};return"onreadystatechange"in r&&"function"==typeof r.onreadystatechange?Object(v.e)(r,"onreadystatechange",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return a(),e.apply(r,t)}})):r.addEventListener("readystatechange",a),e.apply(r,t)}})),Object(v.e)(e,"send",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),de("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}();break;case"fetch":!function(){if(!function(){if(!re())return!1;var e=Object(_.a)();if(ie(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=ie(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){b&&o.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t}())return;Object(v.e)(se,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={args:t,fetchData:{method:he(t),url:pe(t)},startTimestamp:Date.now()};return de("fetch",Object(m.a)({},r)),e.apply(se,t).then((function(e){return de("fetch",Object(m.a)(Object(m.a)({},r),{endTimestamp:Date.now(),response:e})),e}),(function(e){throw de("fetch",Object(m.a)(Object(m.a)({},r),{endTimestamp:Date.now(),error:e})),e}))}}))}();break;case"history":!function(){if(e=Object(_.a)(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState,n||!r)return;var e,t,n,r;var i=se.onpopstate;function o(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length>2?t[2]:void 0;if(r){var i=ae,o=String(r);ae=o,de("history",{from:i,to:o})}return e.apply(this,t)}}se.onpopstate=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=se.location.href,r=ae;if(ae=n,de("history",{from:r,to:n}),i)try{return i.apply(this,e)}catch(e){}},Object(v.e)(se.history,"pushState",o),Object(v.e)(se.history,"replaceState",o)}();break;case"error":ye=se.onerror,se.onerror=function(e,t,n,r,i){return de("error",{column:r,error:i,line:n,msg:e,url:t}),!!ye&&ye.apply(this,arguments)};break;case"unhandledrejection":be=se.onunhandledrejection,se.onunhandledrejection=function(e){return de("unhandledrejection",e),!be||be.apply(this,arguments)};break;default:return void(b&&o.warn("unknown instrumentation type:",e))}}function fe(e,t){ue[e]=ue[e]||[],ue[e].push(t),le(e)}function de(e,t){var n,r;if(e&&ue[e])try{for(var i=Object(m.e)(ue[e]||[]),a=i.next();!a.done;a=i.next()){var s=a.value;try{s(t)}catch(t){b&&o.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+Object(ne.b)(s)+"\nError:",t)}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function he(e){return void 0===e&&(e=[]),"Request"in se&&Object(q.g)(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function pe(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in se&&Object(q.g)(e[0],Request)?e[0].url:String(e[0])}var ge,me;function ve(e,t){return void 0===t&&(t=!1),function(n){if(n&&me!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===ge||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(me,n))&&(e({event:n,name:r,global:t}),me=n),clearTimeout(ge),ge=se.setTimeout((function(){ge=void 0}),1e3)}}}var ye=null;var be=null;var _e=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n]);return e});var we=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,_e(r,n.prototype),r}return Object(m.b)(t,e),t}(Error),Ee=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Se(e,t){void 0===t&&(t=!1);var n=e.host,r=e.path,i=e.pass,o=e.port,a=e.projectId;return e.protocol+"://"+e.publicKey+(t&&i?":"+i:"")+"@"+n+(o?":"+o:"")+"/"+(r?r+"/":r)+a}function xe(e){return"user"in e&&!("publicKey"in e)&&(e.publicKey=e.user),{user:e.publicKey||"",protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function ke(e){var t="string"==typeof e?function(e){var t=Ee.exec(e);if(!t)throw new we("Invalid Sentry Dsn: "+e);var n=Object(m.c)(t.slice(1),6),r=n[0],i=n[1],o=n[2],a=void 0===o?"":o,s=n[3],u=n[4],c=void 0===u?"":u,l="",f=n[5],d=f.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),f=d.pop()),f){var h=f.match(/^\d+/);h&&(f=h[0])}return xe({host:s,pass:a,path:l,projectId:f,port:c,protocol:r,publicKey:i})}(e):xe(e);return function(e){if(b){var t=e.port,n=e.projectId,r=e.protocol;if(["protocol","publicKey","host","projectId"].forEach((function(t){if(!e[t])throw new we("Invalid Sentry Dsn: "+t+" missing")})),!n.match(/^\d+$/))throw new we("Invalid Sentry Dsn: Invalid projectId "+n);if(!function(e){return"http"===e||"https"===e}(r))throw new we("Invalid Sentry Dsn: Invalid protocol "+r);if(t&&isNaN(parseInt(t,10)))throw new we("Invalid Sentry Dsn: Invalid port "+t)}}(t),t}var Te=n(1126),Oe=[];function Re(e){return e.reduce((function(e,t){return e.every((function(e){return t.name!==e.name}))&&e.push(t),e}),[])}function Pe(e){var t={};return function(e){var t=e.defaultIntegrations&&Object(m.d)(e.defaultIntegrations)||[],n=e.integrations,r=Object(m.d)(Re(t));Array.isArray(n)?r=Object(m.d)(r.filter((function(e){return n.every((function(t){return t.name!==e.name}))})),Re(n)):"function"==typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);var i=r.map((function(e){return e.name}));return-1!==i.indexOf("Debug")&&r.push.apply(r,Object(m.d)(r.splice(i.indexOf("Debug"),1))),r}(e).forEach((function(e){t[e.name]=e,function(e){-1===Oe.indexOf(e.name)&&(e.setupOnce(H,J),Oe.push(e.name),D&&o.log("Integration installed: "+e.name))}(e)})),Object(v.a)(t,"initialized",!0),t}var Ae="Not capturing exception because it's already been captured.",Ce=function(){function e(e,t){this._integrations={},this._numProcessing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=ke(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this;if(!L(e)){var i=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return r._captureEvent(e,t,n)})).then((function(e){i=e}))),i}D&&o.log(Ae)},e.prototype.captureMessage=function(e,t,n,r){var i=this,o=n&&n.event_id,a=Object(q.j)(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(a.then((function(e){return i._captureEvent(e,n,r)})).then((function(e){o=e}))),o},e.prototype.captureEvent=function(e,t,n){if(!(t&&t.originalException&&L(t.originalException))){var r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){r=e}))),r}D&&o.log(Ae)},e.prototype.captureSession=function(e){this._isEnabled()?"string"!=typeof e.release?D&&o.warn("Discarded session because of missing or non-string release"):(this._sendSession(e),e.update({init:!1})):D&&o.warn("SDK not enabled, will not capture session.")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.getTransport=function(){return this._getBackend().getTransport()},e.prototype.flush=function(e){var t=this;return this._isClientDoneProcessing(e).then((function(n){return t.getTransport().close(e).then((function(e){return n&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=Pe(this._options))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return D&&o.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,r,i=!1,o=!1,a=t.exception&&t.exception.values;if(a){o=!0;try{for(var s=Object(m.e)(a),u=s.next();!u.done;u=s.next()){var c=u.value.mechanism;if(c&&!1===c.handled){i=!0;break}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}}var l="ok"===e.status;(l&&0===e.errors||l&&i)&&(e.update(Object(m.a)(Object(m.a)({},i&&{status:"crashed"}),{errors:e.errors||Number(o||i)})),this.captureSession(e))},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientDoneProcessing=function(e){var t=this;return new z((function(n){var r=0,i=setInterval((function(){0==t._numProcessing?(clearInterval(i),n(!0)):(r+=1,e&&r>=e&&(clearInterval(i),n(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,i=this.getOptions(),o=i.normalizeDepth,a=void 0===o?3:o,s=i.normalizeMaxBreadth,u=void 0===s?1e3:s,c=Object(m.a)(Object(m.a)({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:T()),timestamp:e.timestamp||Object(F.a)()});this._applyClientOptions(c),this._applyIntegrationsMetadata(c);var l=t;n&&n.captureContext&&(l=W.clone(l).update(n.captureContext));var f=$(c);return l&&(f=l.applyToEvent(c,n)),f.then((function(e){return e&&(e.sdkProcessingMetadata=Object(m.a)(Object(m.a)({},e.sdkProcessingMetadata),{normalizeDepth:Object(Te.a)(a)+" ("+typeof a+")"})),"number"==typeof a&&a>0?r._normalizeEvent(e,a,u):e}))},e.prototype._normalizeEvent=function(e,t,n){if(!e)return null;var r=Object(m.a)(Object(m.a)(Object(m.a)(Object(m.a)(Object(m.a)({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return Object(m.a)(Object(m.a)({},e),e.data&&{data:Object(Te.a)(e.data,t,n)})}))}),e.user&&{user:Object(Te.a)(e.user,t,n)}),e.contexts&&{contexts:Object(Te.a)(e.contexts,t,n)}),e.extra&&{extra:Object(Te.a)(e.extra,t,n)});return e.contexts&&e.contexts.trace&&(r.contexts.trace=e.contexts.trace),r.sdkProcessingMetadata=Object(m.a)(Object(m.a)({},r.sdkProcessingMetadata),{baseClientNormalized:!0}),r},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,r=t.release,i=t.dist,o=t.maxValueLength,a=void 0===o?250:o;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=Object(k.d)(e.message,a));var s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=Object(k.d)(s.value,a));var u=e.request;u&&u.url&&(u.url=Object(k.d)(u.url,a))},e.prototype._applyIntegrationsMetadata=function(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=Object(m.d)(e.sdk.integrations||[],t))},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){D&&o.error(e)}))},e.prototype._processEvent=function(e,t,n){var r=this,i=this.getOptions(),o=i.beforeSend,a=i.sampleRate,s=this.getTransport();function u(e,t){s.recordLostEvent&&s.recordLostEvent(e,t)}if(!this._isEnabled())return V(new we("SDK not enabled, will not capture event."));var c="transaction"===e.type;return!c&&"number"==typeof a&&Math.random()>a?(u("sample_rate","event"),V(new we("Discarding event because it's not included in the random sample (sampling rate = "+a+")"))):this._prepareEvent(e,n,t).then((function(n){if(null===n)throw u("event_processor",e.type||"event"),new we("An event processor returned null, will not send event.");return t&&t.data&&!0===t.data.__sentry__||c||!o?n:function(e){var t="`beforeSend` method has to return `null` or a valid event.";if(Object(q.n)(e))return e.then((function(e){if(!Object(q.i)(e)&&null!==e)throw new we(t);return e}),(function(e){throw new we("beforeSend rejected with "+e)}));if(!Object(q.i)(e)&&null!==e)throw new we(t);return e}(o(n,t))})).then((function(t){if(null===t)throw u("before_send",e.type||"event"),new we("`beforeSend` returned `null`, will not send event.");var i=n&&n.getSession&&n.getSession();return!c&&i&&r._updateSessionFromEvent(i,t),r._sendEvent(t),t})).then(null,(function(e){if(e instanceof we)throw e;throw r.captureException(e,{data:{__sentry__:!0},originalException:e}),new we("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._numProcessing+=1,e.then((function(e){return t._numProcessing-=1,e}),(function(e){return t._numProcessing-=1,e}))},e}();!function(){function e(e,t,n){void 0===t&&(t={}),this.dsn=e,this._dsnObject=ke(e),this.metadata=t,this._tunnel=n}e.prototype.getDsn=function(){return this._dsnObject},e.prototype.forceEnvelope=function(){return!!this._tunnel},e.prototype.getBaseApiEndpoint=function(){return De(this._dsnObject)},e.prototype.getStoreEndpoint=function(){return Me(this._dsnObject)},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return Ne(this._dsnObject)},e.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return Fe(this._dsnObject,this._tunnel)}}();function Le(e,t,n){return{initDsn:e,metadata:t||{},dsn:ke(e),tunnel:n}}function De(e){var t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n+(e.path?"/"+e.path:"")+"/api/"}function Ie(e,t){return""+De(e)+e.projectId+"/"+t+"/"}function je(e){return Object(v.h)({sentry_key:e.publicKey,sentry_version:"7"})}function Me(e){return Ie(e,"store")}function Ne(e){return Me(e)+"?"+je(e)}function Fe(e,t){return t||function(e){return Ie(e,"envelope")}(e)+"?"+je(e)}function Ue(e,t){return void 0===t&&(t=[]),[e,t]}function Be(e){var t=Object(m.c)(e,2),n=t[0],r=t[1],i=JSON.stringify(n);return r.reduce((function(e,t){var n=Object(m.c)(t,2),r=n[0],i=n[1],o=Object(q.j)(i)?String(i):JSON.stringify(i);return e+"\n"+JSON.stringify(r)+"\n"+o}),i)}function qe(e){if(e.metadata&&e.metadata.sdk){var t=e.metadata.sdk;return{name:t.name,version:t.version}}}function $e(e,t){return t?(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=Object(m.d)(e.sdk.integrations||[],t.integrations||[]),e.sdk.packages=Object(m.d)(e.sdk.packages||[],t.packages||[]),e):e}function Ve(e,t){var n=qe(t),r="aggregates"in e?"sessions":"session";return[Ue(Object(m.a)(Object(m.a)({sent_at:(new Date).toISOString()},n&&{sdk:n}),!!t.tunnel&&{dsn:Se(t.dsn)}),[[{type:r},e]]),r]}var ze,We=function(){function e(){}return e.prototype.sendEvent=function(e){return $({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},e.prototype.close=function(e){return $(!0)},e}(),Ge=function(){function e(e){this._options=e,this._options.dsn||D&&o.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new we("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new we("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var t=function(e,t){var n=qe(t),r=e.type||"event",i=(e.sdkProcessingMetadata||{}).transactionSampling||{},o=i.method,a=i.rate;return $e(e,t.metadata.sdk),e.tags=e.tags||{},e.extra=e.extra||{},e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baseClientNormalized||(e.tags.skippedNormalization=!0,e.extra.normalizeDepth=e.sdkProcessingMetadata?e.sdkProcessingMetadata.normalizeDepth:"unset"),delete e.sdkProcessingMetadata,Ue(Object(m.a)(Object(m.a)({event_id:e.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),!!t.tunnel&&{dsn:Se(t.dsn)}),[[{type:r,sample_rates:[{id:o,rate:a}]},e]])}(e,Le(this._options.dsn,this._options._metadata,this._options.tunnel));this._newTransport.send(t).then(null,(function(e){D&&o.error("Error while sending event:",e)}))}else this._transport.sendEvent(e).then(null,(function(e){D&&o.error("Error while sending event:",e)}))},e.prototype.sendSession=function(e){if(this._transport.sendSession)if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var t=Le(this._options.dsn,this._options._metadata,this._options.tunnel),n=Object(m.c)(Ve(e,t),1)[0];this._newTransport.send(n).then(null,(function(e){D&&o.error("Error while sending session:",e)}))}else this._transport.sendSession(e).then(null,(function(e){D&&o.error("Error while sending session:",e)}));else D&&o.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new We},e}();!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(ze||(ze={}));function He(e,t,n,r){var i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var Ke=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ye=/\((\S*)(?::(\d+))(?::(\d+))\)/,Qe=[30,function(e){var t=Ke.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var n=Ye.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}var r=Object(m.c)(at(t[1]||"?",t[2]),2),i=r[0];return He(r[1],i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],Xe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Je=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ze=[50,function(e){var t,n=Xe.exec(e);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var r=Je.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}var i=n[3],o=n[1]||"?";return o=(t=Object(m.c)(at(o,i),2))[0],He(i=t[1],o,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],et=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,tt=[40,function(e){var t=et.exec(e);return t?He(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0}],nt=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,rt=[10,function(e){var t=nt.exec(e);return t?He(t[2],t[3]||"?",+t[1]):void 0}],it=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,ot=[20,function(e){var t=it.exec(e);return t?He(t[5],t[3]||t[4]||"?",+t[1],+t[2]):void 0}],at=function(e,t){var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]};function st(e){var t=ct(e),n={type:e&&e.name,value:ft(e)};return t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function ut(e){return{exception:{values:[st(e)]}}}function ct(e){var t=e.stacktrace||e.stack||"",n=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(lt.test(e.message))return 1}return 0}(e);try{return Object(ne.a)(rt,ot,Qe,tt,Ze)(t,n)}catch(e){}return[]}var lt=/Minified React error #\d+;/i;function ft(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function dt(e,t,n,r){var i;if(Object(q.e)(e)&&e.error)return ut(e.error);if(Object(q.a)(e)||Object(q.b)(e)){var o=e;if("stack"in e)i=ut(e);else{var a=o.name||(Object(q.a)(o)?"DOMError":"DOMException"),s=o.message?a+": "+o.message:a;A(i=ht(s,t,n),s)}return"code"in o&&(i.tags=Object(m.a)(Object(m.a)({},i.tags),{"DOMException.code":""+o.code})),i}return Object(q.d)(e)?ut(e):Object(q.i)(e)||Object(q.f)(e)?(C(i=function(e,t,n){var r={exception:{values:[{type:Object(q.f)(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+Object(v.d)(e)}]},extra:{__serialized__:Object(Te.b)(e)}};if(t){var i=ct(t);i.length&&(r.stacktrace={frames:i})}return r}(e,t,r),{synthetic:!0}),i):(A(i=ht(e,t,n),""+e,void 0),C(i,{synthetic:!0}),i)}function ht(e,t,n){var r={message:e};if(n&&t){var i=ct(t);i.length&&(r.stacktrace={frames:i})}return r}function pt(e){var t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return V(new we("Not adding Promise due to buffer limit reached."));var i=r();return-1===t.indexOf(i)&&t.push(i),i.then((function(){return n(i)})).then(null,(function(){return n(i).then(null,(function(){}))})),i},drain:function(e){return new z((function(n,r){var i=t.length;if(!i)return n(!0);var o=setTimeout((function(){e&&e>0&&n(!1)}),e);t.forEach((function(e){$(e).then((function(){--i||(clearTimeout(o),n(!0))}),r)}))}))}}}function gt(e,t){return e[t]||e.all||0}function mt(e,t,n){return void 0===n&&(n=Date.now()),gt(e,t)>n}function vt(e,t,n){var r,i,o,a;void 0===n&&(n=Date.now());var s=Object(m.a)({},e),u=t["x-sentry-rate-limits"],c=t["retry-after"];if(u)try{for(var l=Object(m.e)(u.trim().split(",")),f=l.next();!f.done;f=l.next()){var d=f.value.split(":",2),h=parseInt(d[0],10),p=1e3*(isNaN(h)?60:h);if(d[1])try{for(var g=(o=void 0,Object(m.e)(d[1].split(";"))),v=g.next();!v.done;v=g.next()){s[v.value]=n+p}}catch(e){o={error:e}}finally{try{v&&!v.done&&(a=g.return)&&a.call(g)}finally{if(o)throw o.error}}else s.all=n+p}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}else c&&(s.all=n+function(e,t){void 0===t&&(t=Date.now());var n=parseInt(""+e,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+e);return isNaN(r)?6e4:r-t}(c,n));return s}function yt(e){return e>=200&&e<300?"success":429===e?"rate_limit":e>=400&&e<500?"invalid":e>=500?"failed":"unknown"}function bt(e,t,n){void 0===n&&(n=pt(e.bufferSize||30));var r={};return{send:function(e){var i=function(e){var t=Object(m.c)(e,2),n=Object(m.c)(t[1],1);return Object(m.c)(n[0],1)[0].type}(e),o="event"===i?"error":i,a={category:o,body:Be(e)};return mt(r,o)?V({status:"rate_limit",reason:_t(r,o)}):n.add((function(){return t(a).then((function(e){var t=e.body,n=e.headers,i=e.reason,a=yt(e.statusCode);return n&&(r=vt(r,n)),"success"===a?$({status:a,reason:i}):V({status:a,reason:i||t||("rate_limit"===a?_t(r,o):"Unknown transport error")})}))}))},flush:function(e){return n.drain(e)}}}function _t(e,t){return"Too many "+t+" requests, backing off until: "+new Date(gt(e,t)).toISOString()}var wt,Et="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,St=Object(_.a)();function xt(){if(wt)return wt;if(ie(St.fetch))return wt=St.fetch.bind(St);var e=St.document,t=St.fetch;if(e&&"function"==typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){Et&&o.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return wt=t.bind(St)}function kt(e,t){if("[object Navigator]"===Object.prototype.toString.call(St&&St.navigator)&&"function"==typeof St.navigator.sendBeacon)return St.navigator.sendBeacon.bind(St.navigator)(e,t);if(re()){var n=xt();n(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,(function(e){console.error(e)}))}else;}function Tt(e){return"event"===e?"error":e}var Ot=Object(_.a)(),Rt=function(){function e(e){var t=this;this.options=e,this._buffer=pt(30),this._rateLimits={},this._outcomes={},this._api=Le(e.dsn,e._metadata,e.tunnel),this.url=Ne(this._api.dsn),this.options.sendClientReports&&Ot.document&&Ot.document.addEventListener("visibilitychange",(function(){"hidden"===Ot.document.visibilityState&&t._flushOutcomes()}))}return e.prototype.sendEvent=function(e){return this._sendRequest(function(e,t){var n,r=qe(t),i=e.type||"event",o="transaction"===i||!!t.tunnel,a=(e.sdkProcessingMetadata||{}).transactionSampling||{},s=a.method,u=a.rate;$e(e,t.metadata.sdk),e.tags=e.tags||{},e.extra=e.extra||{},e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baseClientNormalized||(e.tags.skippedNormalization=!0,e.extra.normalizeDepth=e.sdkProcessingMetadata?e.sdkProcessingMetadata.normalizeDepth:"unset"),delete e.sdkProcessingMetadata;try{n=JSON.stringify(e)}catch(t){e.tags.JSONStringifyError=!0,e.extra.JSONStringifyError=t;try{n=JSON.stringify(Object(Te.a)(e))}catch(e){var c=e;n=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:c.message,stack:c.stack}})}}var l={body:n,type:i,url:o?Fe(t.dsn,t.tunnel):Ne(t.dsn)};if(o){var f=Ue(Object(m.a)(Object(m.a)({event_id:e.event_id,sent_at:(new Date).toISOString()},r&&{sdk:r}),!!t.tunnel&&{dsn:Se(t.dsn)}),[[{type:i,sample_rates:[{id:s,rate:u}]},l.body]]);l.body=Be(f)}return l}(e,this._api),e)},e.prototype.sendSession=function(e){return this._sendRequest(function(e,t){var n=Object(m.c)(Ve(e,t),2),r=n[0],i=n[1];return{body:Be(r),type:i,url:Fe(t.dsn,t.tunnel)}}(e,this._api),e)},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype.recordLostEvent=function(e,t){var n;if(this.options.sendClientReports){var r=Tt(t)+":"+e;Et&&o.log("Adding outcome: "+r),this._outcomes[r]=(null!=(n=this._outcomes[r])?n:0)+1}},e.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var e=this._outcomes;if(this._outcomes={},Object.keys(e).length){Et&&o.log("Flushing outcomes:\n"+JSON.stringify(e,null,2));var t,n,r,i=Fe(this._api.dsn,this._api.tunnel),a=Object.keys(e).map((function(t){var n=Object(m.c)(t.split(":"),2),r=n[0];return{reason:n[1],category:r,quantity:e[t]}})),s=(t=a,Ue((n=this._api.tunnel&&Se(this._api.dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:r||Object(F.a)(),discarded_events:t}]]));try{kt(i,Be(s))}catch(e){Et&&o.error(e)}}else Et&&o.log("No outcomes to flush")}},e.prototype._handleResponse=function(e){var t=e.requestType,n=e.response,r=e.headers,i=e.resolve,a=e.reject,s=yt(n.status);this._rateLimits=vt(this._rateLimits,r),this._isRateLimited(t)&&Et&&o.warn("Too many "+t+" requests, backing off until: "+this._disabledUntil(t)),"success"!==s?a(n):i({status:s})},e.prototype._disabledUntil=function(e){var t=Tt(e);return new Date(gt(this._rateLimits,t))},e.prototype._isRateLimited=function(e){var t=Tt(e);return mt(this._rateLimits,t)},e}(),Pt=function(e){function t(t,n){void 0===n&&(n=xt());var r=e.call(this,t)||this;return r._fetch=n,r}return Object(m.b)(t,e),t.prototype._sendRequest=function(e,t){var n=this;if(this._isRateLimited(e.type))return this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var r={body:e.body,method:"POST",referrerPolicy:oe()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add((function(){return new z((function(t,i){n._fetch(e.url,r).then((function(r){var o={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:e.type,response:r,headers:o,resolve:t,reject:i})})).catch(i)}))})).then(void 0,(function(t){throw t instanceof we?n.recordLostEvent("queue_overflow",e.type):n.recordLostEvent("network_error",e.type),t}))},t}(Rt);var At=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.b)(t,e),t.prototype._sendRequest=function(e,t){var n=this;return this._isRateLimited(e.type)?(this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429})):this._buffer.add((function(){return new z((function(t,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var o={"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")};n._handleResponse({requestType:e.type,response:i,headers:o,resolve:t,reject:r})}},i.open("POST",e.url),n.options.headers)Object.prototype.hasOwnProperty.call(n.options.headers,o)&&i.setRequestHeader(o,n.options.headers[o]);i.send(e.body)}))})).then(void 0,(function(t){throw t instanceof we?n.recordLostEvent("queue_overflow",e.type):n.recordLostEvent("network_error",e.type),t}))},t}(Rt),Ct=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.b)(t,e),t.prototype.eventFromException=function(e,t){return function(e,t,n){var r=dt(e,t&&t.syntheticException||void 0,n);return C(r),r.level=ze.Error,t&&t.event_id&&(r.event_id=t.event_id),$(r)}(e,t,this._options.attachStacktrace)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=ze.Info),function(e,t,n,r){void 0===t&&(t=ze.Info);var i=ht(e,n&&n.syntheticException||void 0,r);return i.level=t,n&&n.event_id&&(i.event_id=n.event_id),$(i)}(e,t,n,this._options.attachStacktrace)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t,n,r=Object(m.a)(Object(m.a)({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),i=Le(r.dsn,r._metadata,r.tunnel),o=Fe(i.dsn,i.tunnel);if(this._options.transport)return new this._options.transport(r);if(re()){var a=Object(m.a)({},r.fetchParameters);return this._newTransport=(t={requestOptions:a,url:o},void 0===n&&(n=xt()),bt({bufferSize:t.bufferSize},(function(e){var r=Object(m.a)({body:e.body,method:"POST",referrerPolicy:"origin"},t.requestOptions);return n(t.url,r).then((function(e){return e.text().then((function(t){return{body:t,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")},reason:e.statusText,statusCode:e.status}}))}))}))),new Pt(r)}return this._newTransport=function(e){return bt({bufferSize:e.bufferSize},(function(t){return new z((function(n,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var e={body:i.response,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")},reason:i.statusText,statusCode:i.status};n(e)}},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&i.setRequestHeader(o,e.headers[o]);i.send(t.body)}))}))}({url:o,headers:r.headers}),new At(r)},t}(Ge);function Lt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=J();if(r&&r[e])return r[e].apply(r,Object(m.d)(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function Dt(e,t){return Lt("captureException",e,{captureContext:t,originalException:e,syntheticException:new Error("Sentry syntheticException")})}function It(e){Lt("withScope",e)}var jt=Object(_.a)(),Mt=0;function Nt(){return Mt>0}function Ft(){Mt+=1,setTimeout((function(){Mt-=1}))}function Ut(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{var r=e.__sentry_wrapped__;if(r)return r;if(Object(v.f)(e))return e}catch(t){return e}var i=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var i=r.map((function(e){return Ut(e,t)}));return e.apply(this,i)}catch(e){throw Ft(),It((function(n){n.addEventProcessor((function(e){return t.mechanism&&(A(e,void 0,void 0),C(e,t.mechanism)),e.extra=Object(m.a)(Object(m.a)({},e.extra),{arguments:r}),e})),Dt(e)})),e}};try{for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}catch(e){}Object(v.g)(i,e),Object(v.a)(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:function(){return e.name}})}catch(e){}return i}function Bt(e){if(void 0===e&&(e={}),jt.document)if(e.eventId)if(e.dsn){var t=jt.document.createElement("script");t.async=!0,t.src=function(e,t){var n=ke(e),r=De(n)+"embed/error-page/",i="dsn="+Se(n);for(var o in t)if("dsn"!==o)if("user"===o){if(!t.user)continue;t.user.name&&(i+="&name="+encodeURIComponent(t.user.name)),t.user.email&&(i+="&email="+encodeURIComponent(t.user.email))}else i+="&"+encodeURIComponent(o)+"="+encodeURIComponent(t[o]);return r+"?"+i}(e.dsn,e),e.onLoad&&(t.onload=e.onLoad);var n=jt.document.head||jt.document.body;n&&n.appendChild(t)}else Et&&o.error("Missing dsn option in showReportDialog call");else Et&&o.error("Missing eventId option in showReportDialog call")}var qt=n(529),$t=["fatal","error","warning","log","info","debug","critical"];function Vt(e){return"warn"===e?ze.Warning:function(e){return-1!==$t.indexOf(e)}(e)?e:ze.Log}var zt=function(){function e(t){this.name=e.id,this._options=Object(m.a)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&J().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:P(e)},{event:e})},e.prototype.setupOnce=function(){var e;this._options.console&&fe("console",Wt),this._options.dom&&fe("dom",(e=this._options.dom,function(t){var n,r="object"==typeof e?e.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{n=t.event.target?Object(qt.b)(t.event.target,r):Object(qt.b)(t.event,r)}catch(e){n="<unknown>"}0!==n.length&&J().addBreadcrumb({category:"ui."+t.name,message:n},{event:t.event,name:t.name,global:t.global})})),this._options.xhr&&fe("xhr",Gt),this._options.fetch&&fe("fetch",Ht),this._options.history&&fe("history",Kt)},e.id="Breadcrumbs",e}();function Wt(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:Vt(e.level),message:Object(k.b)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(Object(k.b)(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}J().addBreadcrumb(t,{input:e.args,level:e.level})}function Gt(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,r=t.url,i=t.status_code,o=t.body;J().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:i},type:"http"},{xhr:e.xhr,input:o})}else;}function Ht(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?J().addBreadcrumb({category:"fetch",data:e.fetchData,level:ze.Error,type:"http"},{data:e.error,input:e.args}):J().addBreadcrumb({category:"fetch",data:Object(m.a)(Object(m.a)({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))}function Kt(e){var t=Object(_.a)(),n=e.from,r=e.to,i=O(t.location.href),o=O(n),a=O(r);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),J().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}var Yt=function(e){function t(t){void 0===t&&(t={});return t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:"6.19.7"}],version:"6.19.7"},e.call(this,Ct,t)||this}return Object(m.b)(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),Object(_.a)().document&&(this._isEnabled()?Bt(Object(m.a)(Object(m.a)({},e),{dsn:e.dsn||this.getDsn()})):Et&&o.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",e.prototype._prepareEvent.call(this,t,n,r)},t.prototype._sendEvent=function(t){var n=this.getIntegration(zt);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(Ce),Qt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Xt=function(){function e(t){this.name=e.id,this._options=Object(m.a)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=Object(_.a)();this._options.setTimeout&&Object(v.e)(e,"setTimeout",Jt),this._options.setInterval&&Object(v.e)(e,"setInterval",Jt),this._options.requestAnimationFrame&&Object(v.e)(e,"requestAnimationFrame",Zt),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&Object(v.e)(XMLHttpRequest.prototype,"send",en);var t=this._options.eventTarget;t&&(Array.isArray(t)?t:Qt).forEach(tn)},e.id="TryCatch",e}();function Jt(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0];return t[0]=Ut(r,{mechanism:{data:{function:Object(ne.b)(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function Zt(e){return function(t){return e.apply(this,[Ut(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Object(ne.b)(e)},handled:!0,type:"instrument"}})])}}function en(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,i=["onload","onerror","onprogress","onreadystatechange"];return i.forEach((function(e){e in r&&"function"==typeof r[e]&&Object(v.e)(r,e,(function(t){var n={mechanism:{data:{function:e,handler:Object(ne.b)(t)},handled:!0,type:"instrument"}},r=Object(v.f)(t);return r&&(n.mechanism.data.handler=Object(ne.b)(r)),Ut(t,n)}))})),e.apply(this,t)}}function tn(e){var t=Object(_.a)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(v.e)(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=Ut(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:Object(ne.b)(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[n,Ut(r,{mechanism:{data:{function:"addEventListener",handler:Object(ne.b)(r),target:e},handled:!0,type:"instrument"}}),i])}})),Object(v.e)(n,"removeEventListener",(function(e){return function(t,n,r){var i=n;try{var o=i&&i.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch(e){}return e.call(this,t,i,r)}})))}var nn=function(){function e(t){this.name=e.id,this._installFunc={onerror:rn,onunhandledrejection:on},this._options=Object(m.a)({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50;var e,t=this._options;for(var n in t){var r=this._installFunc[n];r&&t[n]&&(e=n,Et&&o.log("Global Handler attached: "+e),r(),this._installFunc[n]=void 0)}},e.id="GlobalHandlers",e}();function rn(){fe("error",(function(e){var t=Object(m.c)(un(),2),n=t[0],r=t[1];if(n.getIntegration(nn)){var i=e.msg,o=e.url,a=e.line,s=e.column,u=e.error;if(!(Nt()||u&&u.__sentry_own_request__)){var c=void 0===u&&Object(q.l)(i)?function(e,t,n,r){var i=Object(q.e)(e)?e.message:e,o="Error",a=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&&(o=a[1],i=a[2]);return an({exception:{values:[{type:o,value:i}]}},t,n,r)}(i,o,a,s):an(dt(u||i,void 0,r,!1),o,a,s);c.level=ze.Error,sn(n,u,c,"onerror")}}}))}function on(){fe("unhandledrejection",(function(e){var t=Object(m.c)(un(),2),n=t[0],r=t[1];if(n.getIntegration(nn)){var i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(e){}if(Nt()||i&&i.__sentry_own_request__)return!0;var o=Object(q.j)(i)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(i)}]}}:dt(i,void 0,r,!0);o.level=ze.Error,sn(n,i,o,"onunhandledrejection")}}))}function an(e,t,n,r){var i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},u=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,f=Object(q.l)(t)&&t.length>0?t:Object(qt.a)();return 0===u.length&&u.push({colno:c,filename:f,function:"?",in_app:!0,lineno:l}),e}function sn(e,t,n,r){C(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function un(){var e=J(),t=e.getClient();return[e,t&&t.getOptions().attachStacktrace]}var cn=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){H((function(t,n){var r=J().getIntegration(e);return r?function(e,t,n,r){if(!(n.exception&&n.exception.values&&r&&Object(q.g)(r.originalException,Error)))return n;var i=function e(t,n,r,i){void 0===i&&(i=[]);if(!Object(q.g)(n[r],Error)||i.length+1>=t)return i;var o=st(n[r]);return e(t,n[r],r,Object(m.d)([o],i))}(t,r.originalException,e);return n.exception.values=Object(m.d)(i,n.exception.values),n}(r._key,r._limit,t,n):t}))},e.id="LinkedErrors",e}();var ln=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,n){t((function(t){var r=n().getIntegration(e);if(r){try{if(function(e,t){if(!t)return!1;if(function(e,t){var n=e.message,r=t.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!dn(e,t))return!1;if(!fn(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){var n=hn(t),r=hn(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!dn(e,t))return!1;if(!fn(e,t))return!1;return!0}(e,t))return!0;return!1}(t,r._previousEvent))return Et&&o.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){return r._previousEvent=t}return r._previousEvent=t}return t}))},e.id="Dedupe",e}();function fn(e,t){var n=pn(e),r=pn(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,(r=r).length!==n.length)return!1;for(var i=0;i<r.length;i++){var o=r[i],a=n[i];if(o.filename!==a.filename||o.lineno!==a.lineno||o.colno!==a.colno||o.function!==a.function)return!1}return!0}function dn(e,t){var n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function hn(e){return e.exception&&e.exception.values&&e.exception.values[0]}function pn(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}else if(e.stacktrace)return e.stacktrace.frames}var gn=Object(_.a)(),mn=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){H((function(t){if(J().getIntegration(e)){if(!gn.navigator&&!gn.location&&!gn.document)return t;var n=t.request&&t.request.url||gn.location&&gn.location.href,r=(gn.document||{}).referrer,i=(gn.navigator||{}).userAgent,o=Object(m.a)(Object(m.a)(Object(m.a)({},t.request&&t.request.headers),r&&{Referer:r}),i&&{"User-Agent":i}),a=Object(m.a)(Object(m.a)({},n&&{url:n}),{headers:o});return Object(m.a)(Object(m.a)({},t),{request:a})}return t}))},e.id="UserAgent",e}(),vn=[new r.InboundFilters,new r.FunctionToString,new Xt,new zt,new nn,new cn,new ln,new mn];function yn(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=vn),void 0===e.release){var t=Object(_.a)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0),function(e,t){!0===t.debug&&(D?o.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var n=J(),r=n.getScope();r&&r.update(t.initialScope);var i=new e(t);n.bindClient(i)}(Yt,e),e.autoSessionTracking&&function(){if(void 0===Object(_.a)().document)return void(Et&&o.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));var e=J();if(!e.captureSession)return;bn(e),fe("history",(function(e){var t=e.from,n=e.to;void 0!==t&&t!==n&&bn(J())}))}()}function bn(e){e.startSession({ignoreDuration:!0}),e.captureSession()}var _n=n(505),wn=n(71),En=n(98),Sn=n.n(En),xn=n(49),kn=n.n(xn),Tn=n(32),On=n.n(Tn),Rn=n(50),Pn=n.n(Rn),An=n(1),Cn=n.n(An);const Ln={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Dn{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Ln,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Dn(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Dn(this.logger,e)}}var In=new Dn;class jn{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){Array.from(this.observers[e].entries()).forEach(e=>{let[t,r]=e;for(let e=0;e<r;e++)t(...n)})}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach(t=>{let[r,i]=t;for(let t=0;t<i;t++)r.apply(r,[e,...n])})}}}function Mn(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function Nn(e){return null==e?"":""+e}const Fn=/###/g;function Un(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(Fn,"."):e}function i(){return!e||"string"==typeof e}const o="string"!=typeof t?t:t.split(".");let a=0;for(;a<o.length-1;){if(i())return{};const t=r(o[a]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++a}return i()?{}:{obj:e,k:r(o[a])}}function Bn(e,t,n){const{obj:r,k:i}=Un(e,t,Object);if(void 0!==r||1===t.length)return void(r[i]=n);let o=t[t.length-1],a=t.slice(0,t.length-1),s=Un(e,a,Object);for(;void 0===s.obj&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=Un(e,a,Object),s&&s.obj&&void 0!==s.obj[`${s.k}.${o}`]&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n}function qn(e,t){const{obj:n,k:r}=Un(e,t);if(n)return n[r]}function $n(e,t,n){const r=qn(e,n);return void 0!==r?r:qn(t,n)}function Vn(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var zn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Wn(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,e=>zn[e]):e}const Gn=[" ",",","?","!",";"],Hn=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20);function Kn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let e=0;e<r.length;){if(!i||"object"!=typeof i)return;let t,o="";for(let a=e;a<r.length;++a)if(a!==e&&(o+=n),o+=r[a],t=i[o],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<r.length-1)continue;e+=a-e+1;break}i=t}return i}function Yn(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class Qn extends jn{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):"string"==typeof n&&i?a.push(...n.split(i)):a.push(n)));const s=qn(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),s||!o||"string"!=typeof n?s:Kn(this.data&&this.data[e]&&this.data[e][t],n,i)}addResource(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),Bn(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const r in n)("string"==typeof n[r]||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let s=qn(this.data,a)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?function e(t,n,r){for(const i in n)"__proto__"!==i&&"constructor"!==i&&(i in t?"string"==typeof t[i]||t[i]instanceof String||"string"==typeof n[i]||n[i]instanceof String?r&&(t[i]=n[i]):e(t[i],n[i],r):t[i]=n[i]);return t}(s,n,i):s={...s,...n},Bn(this.data,a,s),o.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var Xn={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))}),t}};const Jn={};class Zn extends jn{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,r;super(),n=e,r=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{n[e]&&(r[e]=n[e])}),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=In.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const o=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";const r=Gn.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;const i=Hn.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let o=!i.test(e);if(!o){const t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o}(e,n,r));if(o&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i};const o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(e[e.length-1],t),s=a[a.length-1],u=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(c){const e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${s}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:`${s}${e}${o}`}return r?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:o}const l=this.resolve(e,t);let f=l&&l.res;const d=l&&l.usedKey||o,h=l&&l.exactUsedKey||o,p=Object.prototype.toString.apply(f),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject;if(m&&f&&("string"!=typeof f&&"boolean"!=typeof f&&"number"!=typeof f)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(p)<0&&("string"!=typeof g||!Array.isArray(f))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,{...t,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return r?(l.res=e,l.usedParams=this.getUsedParamsDetails(t),l):e}if(i){const e=Array.isArray(f),n=e?[]:{},r=e?h:d;for(const e in f)if(Object.prototype.hasOwnProperty.call(f,e)){const o=`${r}${i}${e}`;n[e]=this.translate(o,{...t,joinArrays:!1,ns:a}),n[e]===o&&(n[e]=f[e])}f=n}}else if(m&&"string"==typeof g&&Array.isArray(f))f=f.join(g),f&&(f=this.extendTranslation(f,e,t,n));else{let r=!1,a=!1;const c=void 0!==t.count&&"string"!=typeof t.count,d=Zn.hasDefaultValue(t),h=c?this.pluralResolver.getSuffix(u,t.count,t):"",p=t.ordinal&&c?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",g=c&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),m=g&&t[`defaultValue${this.options.pluralSeparator}zero`]||t["defaultValue"+h]||t["defaultValue"+p]||t.defaultValue;!this.isValidLookup(f)&&d&&(r=!0,f=m),this.isValidLookup(f)||(a=!0,f=o);const v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:f,y=d&&m!==f&&this.options.updateMissing;if(a||r||y){if(this.logger.log(y?"updateKey":"missingKey",u,s,o,y?m:f),i){const e=this.resolve(o,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const r=(e,n,r)=>{const i=d&&r!==f?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,i,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,n,i,y,t),this.emit("missingKey",e,s,n,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach(e=>{const n=this.pluralResolver.getSuffixes(e,t);g&&t[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(this.options.pluralSeparator+"zero")<0&&n.push(this.options.pluralSeparator+"zero"),n.forEach(n=>{r([e],o+n,t["defaultValue"+n]||m)})}):r(e,o,m))}f=this.extendTranslation(f,e,t,l,n),a&&f===o&&this.options.appendNamespaceToMissingKey&&(f=`${s}:${o}`),(a||r)&&this.options.parseMissingKeyHandler&&(f="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${o}`:o,r?f:void 0):this.options.parseMissingKeyHandler(f))}return r?(l.res=f,l.usedParams=this.getUsedParamsDetails(t),l):f}extendTranslation(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const a="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(a){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let u=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),e=this.interpolator.interpolate(e,u,n.lng||this.language,n),a){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return i&&i[0]===r[0]&&!n.context?(o.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):o.translate(...r,t)}),n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,s="string"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==n.applyPostProcessor&&(e=Xn.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,r,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,a),u=s.key;n=u;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const l=void 0!==a.count&&"string"!=typeof a.count,f=l&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,h=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);c.forEach(e=>{this.isValidLookup(t)||(o=e,!Jn[`${h[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(Jn[`${h[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${h.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(n=>{if(this.isValidLookup(t))return;i=n;const o=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,u,n,e,a);else{let e;l&&(e=this.pluralResolver.getSuffix(n,a.count,a));const t=this.options.pluralSeparator+"zero",r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(l&&(o.push(u+e),a.ordinal&&0===e.indexOf(r)&&o.push(u+e.replace(r,this.options.pluralSeparator)),f&&o.push(u+t)),d){const n=`${u}${this.options.contextSeparator}${a.context}`;o.push(n),l&&(o.push(n+e),a.ordinal&&0===e.indexOf(r)&&o.push(n+e.replace(r,this.options.pluralSeparator)),f&&o.push(n+t))}}let s;for(;s=o.pop();)this.isValidLookup(t)||(r=s,t=this.getResource(n,e,s,a))}))})}),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&"string"!=typeof e.replace;let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,"defaultValue".length)&&void 0!==e[t])return!0;return!1}}function er(e){return e.charAt(0).toUpperCase()+e.slice(1)}class tr{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=In.create("languageUtils")}getScriptPartFromCode(e){if(!(e=Yn(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=Yn(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=er(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=er(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=er(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn("rejecting language code not found in supportedLngs: "+e))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}}let nr=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],rr={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};const ir=["v1","v2","v3"],or=["v4"],ar={zero:0,one:1,two:2,few:3,many:4,other:5};class sr{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=In.create("pluralResolver"),this.options.compatibilityJSON&&!or.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const e={};return nr.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:rr[t.fc]}})}),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Yn("dev"===e?"en":e),{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>ar[e]-ar[t]).map(e=>`${this.options.prepend}${t.ordinal?"ordinal"+this.options.prepend:""}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?"ordinal"+this.options.prepend:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: "+e),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?"_plural_"+r.toString():i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!ir.includes(this.options.compatibilityJSON)}}function ur(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=$n(e,t,n);return!o&&i&&"string"==typeof n&&(o=Kn(e,n,r),void 0===o&&(o=Kn(t,n,r))),o}class cr{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=In.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:o,suffix:a,suffixEscaped:s,formatSeparator:u,unescapeSuffix:c,unescapePrefix:l,nestingPrefix:f,nestingPrefixEscaped:d,nestingSuffix:h,nestingSuffixEscaped:p,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:Wn,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?Vn(i):o||"{{",this.suffix=a?Vn(a):s||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":l||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=f?Vn(f):d||Vn("$t("),this.nestingSuffix=h?Vn(h):p||Vn(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,o,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}const c=e=>{if(e.indexOf(this.formatSeparator)<0){const i=ur(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}const i=e.split(this.formatSeparator),o=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(ur(t,s,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:o})};this.resetRegExp();const l=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>u(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?u(this.escape(e)):u(e)}].forEach(t=>{for(a=0;i=t.regex.exec(e);){const n=i[1].trim();if(o=c(n),void 0===o)if("function"==typeof l){const t=l(e,i,r);o="string"==typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else{if(f){o=i[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),o=""}else"string"==typeof o||this.useRawValueToEscape||(o=Nn(o));const s=t.safeValue(o);if(e=e.replace(i[0],s),f?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,t){let n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(e,t){const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(n+"[ ]*{"));let o="{"+r[1];e=r[0],o=this.interpolate(o,i);const a=o.match(/'/g),s=o.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(t){return this.logger.warn("failed parsing options string in nesting for key "+e,t),`${e}${n}${o}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let s=[];i={...o},i=i.replace&&"string"!=typeof i.replace?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map(e=>e.trim());n[1]=e.shift(),s=e,u=!0}if(r=t(a.call(this,n[1].trim(),i),i),r&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=Nn(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),u&&(r=s.reduce((e,t)=>this.format(e,t,o.lng,{...o,interpolationkey:n[1].trim()}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}function lr(e){const t={};return function(n,r,i){const o=r+JSON.stringify(i);let a=t[o];return a||(a=e(Yn(r),i),t[o]=a),a(n)}}class fr{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=In.create("formatter"),this.options=e,this.formats={number:lr((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:lr((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:lr((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:lr((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:lr((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=lr(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce((e,t)=>{const{formatName:i,formatOptions:o}=function(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);if("currency"===t&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if("relativetime"===t&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{i.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();n[o]||(n[o]=i),"false"===i&&(n[o]=!1),"true"===i&&(n[o]=!0),isNaN(i)||(n[o]=parseInt(i,10))}})}}return{formatName:t,formatOptions:n}}(t);if(this.formats[i]){let t=e;try{const a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...o,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn("there was no format function for "+i),e},e)}}class dr extends jn{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=In.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const i={},o={},a={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===o[a]&&(o[a]=!0):(this.state[a]=1,r=!1,void 0===o[a]&&(o[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))}),r||(a[e]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2;const a={};this.queue.forEach(n=>{!function(e,t,n,r){const{obj:i,k:o}=Un(e,t,Object);i[o]=i[o]||[],r&&(i[o]=i[o].concat(n)),r||i[o].push(n)}(n.loaded,[i],o),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:o});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&r<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,n,r+1,2*i,o)},i):o(a,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const n=s(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);const i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,(n,o)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,o),this.loaded(e,n,o)})}saveMissing(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const s={...o,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let i;i=5===u.length?u(e,t,n,r,s):u(e,t,n,r),i&&"function"==typeof i.then?i.then(e=>a(null,e)).catch(a):a(null,i)}catch(e){a(e)}else u(e,t,n,r,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}function hr(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function pr(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function gr(){}class mr extends jn{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=pr(e),this.services={},this.logger=In,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=hr();function i(e){return e?"function"==typeof e?new e:e:null}if(this.options={...r,...this.options,...pr(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?In.init(i(this.modules.logger),this.options):In.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=fr);const n=new tr(this.options);this.store=new Qn(this.options.resources,this.options);const o=this.services;o.logger=In,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new sr(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(o.formatter=i(t),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new cr(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new dr(i(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)})),this.modules.languageDetector&&(o.languageDetector=i(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=i(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new Zn(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)})),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=gr),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});const o=Mn(),a=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),o}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gr;const n="string"==typeof e?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};if(n)r(n);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>r(e))}this.options.preload&&this.options.preload.forEach(e=>r(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,t,n){const r=Mn();return e||(e=this.languages),t||(t=this.options.ns),n||(n=gr),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Xn.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=Mn();this.emit("languageChanging",e);const i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(e,o)=>{o?(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,r.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const n="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{o(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const i=function(e,t){let o;if("object"!=typeof t){for(var a=arguments.length,s=new Array(a>2?a-2:0),u=2;u<a;u++)s[u-2]=arguments[u];o=r.options.overloadTranslationOptionHandler([e,t].concat(s))}else o={...t};o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,o.keyPrefix=o.keyPrefix||n||i.keyPrefix;const c=r.options.keySeparator||".";let l;return l=o.keyPrefix&&Array.isArray(e)?e.map(e=>`${o.keyPrefix}${c}${e}`):o.keyPrefix?`${o.keyPrefix}${c}${e}`:e,r.t(l,o)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const o=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||2===n};if(t.precheck){const e=t.precheck(this,o);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!o(n,e)||r&&!o(i,e)))}loadNamespaces(e,t){const n=Mn();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=Mn();"string"==typeof e&&(e=[e]);const r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new tr(hr());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new mr(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gr;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new mr(r);void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e));return["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new Qn(this.store.data,r),i.services.resourceStore=i.store),i.translator=new Zn(i.services,r),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit(e,...n)})),i.init(r,t),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const vr=mr.createInstance();vr.createInstance=mr.createInstance;vr.createInstance,vr.dir,vr.init,vr.loadResources,vr.reloadResources,vr.use,vr.changeLanguage,vr.getFixedT,vr.t,vr.exists,vr.setDefaultNamespace,vr.hasLoadedNamespace,vr.loadNamespaces,vr.loadLanguages;var yr=n(63),br=n(170),_r=n(341),wr=n.n(_r),Er=n(507),Sr=n.n(Er),xr=n(508),kr=n.n(xr),Tr=n(509),Or=n.n(Tr),Rr=n(69),Pr=n.n(Rr),Ar=n(510),Cr=n(511),Lr=n(270),Dr=n(14),Ir=function(){return h.a.createElement("div",{className:"spinnerThreeBounce"},h.a.createElement("div",{className:"bounce bounce1"}),h.a.createElement("div",{className:"bounce bounce2"}),h.a.createElement("div",{className:"bounce bounce3"}))},jr=h.a.memo(Ir),Mr=n(219),Nr=n.n(Mr),Fr=n(68),Ur=n.n(Fr),Br=n(62),qr=n.n(Br),$r=n(70),Vr=n(512),zr=n(513),Wr=n(514),Gr=n(515),Hr=n(516),Kr=n.n(Hr),Yr=n(340);var Qr=function(e,t,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||e.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,t),s&&e.apply(i,o)}},Xr=n(517),Jr=n.n(Xr),Zr=n(518),ei=n.n(Zr);function ti(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ni(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ti(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ti(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ri(e,t,n){return t=On()(t),kn()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],On()(e).constructor):t.apply(e,n))}var ii={MSEPlayer:Vr.MSEPlayer,HLSPlayer:zr.HLSPlayer,WebRTCPlayer:Wr.WebRTCPlayer,NativeiOSPlayer:Gr.NativeiOSPlayer},oi=function(e){function t(){var e;return c()(this,t),(e=ri(this,t)).playEnded=e.playEnded.bind(e),e.getMetadata=e.getMetadata.bind(e),e.changeSpeed=e.changeSpeed.bind(e),e.play=e.play.bind(e),e.getPlayListUrl=e.getPlayListUrl.bind(e),e._getPlayListUrl=e._getPlayListUrl.bind(e),e.handleFullScreen=e.handleFullScreen.bind(e),e.handleTouchEnd=e.handleTouchEnd.bind(e),e.handlePause=e.handlePause.bind(e),e.onHlsEvent=e.onHlsEvent.bind(e),e.takeSnapshot=e.takeSnapshot.bind(e),e.setSnapshotRef=e.setSnapshotRef.bind(e),e.calculatePos=e.calculatePos.bind(e),e.resetZoom=e.resetZoom.bind(e),e.onShotModalClose=e.onShotModalClose.bind(e),e.onShotModalOpen=e.onShotModalOpen.bind(e),e.refreshZoom=Qr(e.refreshZoom.bind(e),150),e.setRef=e.setRef.bind(e),e.state={tracks:[],streams:[],videoStream:{},audioStream:{},utc_timer:void 0,noDvrHere:!1,shouldStartPlay:!1,scale:1,isSelected:!1,currentHlsPosition:null,shouldChangeTracks:!1,players:[],noLive:!1,noVideo:!1,isSnapshotModalOpen:!1,snapshotBlob:null,snapshotDataUrl:null,snapshotNaming:void 0},e.lastTap=0,e}return Pn()(t,e),s()(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.currentTime,n=e.selected,r=e.name,i=e.returnData;this._video&&(this._video.addEventListener("ended",this.playEnded,!1),this._video.addEventListener("touchend",this.handleTouchEnd),this._video.controls=!1),t&&"stop"!==t&&this.play(t),n===r&&(this.setState({isSelected:!0}),i("playerRef",this))}},{key:"componentWillUpdate",value:function(e,t){var n=this.props,r=n.currentTime,i=n.networkError,o=n.noDVR,a=n.streamIsLive,s=n.returnData,u=e.currentTime,c=e.networkError,l=e.playSegmentDuration;if(!a&&e.streamIsLive&&this.setState({noDvrHere:!1}),r&&r!==u&&"stop"!==u)this.setState({noDvrHere:!1,noLive:!1}),this.play(u,l);else if(r!==u)if("stop"===u)o||s("playerReady",!0,this.props.name),this.setState({players:[],noDvrHere:!0});else if(!(u<=r+5||u>=r-5)){if(this.props.noDVR&&"live"!==u)return;this.setState({noDvrHere:!1,noLive:!1}),this.play(u,l)}if("stop"===r&&"stop"!==u&&this.setState({noDvrHere:!1}),this.props.playback_speed!==e.playback_speed&&this.changeSpeed(e.playback_speed),this.props.paused!==e.paused&&("live"===e.currentTime&&!0===e.paused&&s("livePausedAt",Math.round(this.state.snapshotTime)),this.handlePause()),i!==c&&c&&s("playerReady",!0,this.props.name),this.props.playerType!==e.playerType&&this.play(u,l),""!==e.fastSeekingTo){if(this.currentFastSeek===e.fastSeekingTo)return;this.currentFastSeek=e.fastSeekingTo,"forward"===e.fastSeekingTo?this._video.currentTime+=10:"backward"===e.fastSeekingTo&&(this._video.currentTime-=10),s("fastSeekingTo","")}else this.currentFastSeek=""}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.currentTime,i=n.streamIsLive,o=n.selected,a=n.name,s=this.state,u=s.shouldStartPlay,c=s.noLive;e.volume!==this.props.volume&&this._video&&(this._video.volume=this.props.volume/100),(!t.shouldStartPlay&&u||u&&"live"===r&&i&&!e.streamIsLive)&&this.play("live"),e.selected!==o&&(o===a?this.setState({isSelected:!0}):this.setState({isSelected:!1})),!t.noLive&&c&&this.setState({players:t.players.filter((function(){return null}))})}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.refreshZoom),this.zoomElement&&this.zoomElement.dispose(),this._video&&(this._video.removeEventListener("ended",this.playEnded,!1),this._video.removeEventListener("touchend",this.handleTouchEnd),this._video.removeEventListener("error",this.onError),this._video.ontimeupdate=null,this._video.pause(),this._video.removeAttribute("src"),this._video.load(),delete this._video)}},{key:"componentDidCatch",value:function(){error instanceof Error&&this.onHlsEvent({key:Date.now(),data:{event:"player_error",error_name:error.name,error_message:error.message}}),console.error("CATCH AN ERROR!")}},{key:"playEnded",value:function(){this.props.returnData("playingTimeForPlayers","stop",this.props.name),this.props.returnData("playerReady",!0,this.props.name)}},{key:"handleTouchEnd",value:function(e){var t=this,n=(new Date).getTime(),r=n-this.lastTap;clearTimeout(this.timeout),r<500&&r>0?(e.preventDefault(),this.handleFullScreen()):this.timeout=setTimeout((function(){clearTimeout(t.timeout)}),500),this.lastTap=n}},{key:"getMetadata",value:function(){return{width:this._video?this._video.videoWidth:0,height:this._video?this._video.videoHeight:0}}},{key:"changeSpeed",value:function(e){"live"!==this.props.currentTime&&this.onHlsEvent({key:Date.now(),data:{event:"play_options",type:"hls_dvr",speed:e}})}},{key:"play",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=this.props,i=r.name,o=r.debug,a=r.debugTimers,s=r.networkError,u=r.onMediaInfo,c=r.selected,l=r.playerType,d=r.tracksAudio,h=r.multiStream,p=r.autoVideoTrack,g=r.newTracks,m=r.streamer_http,v=r.auth_token,y=r.returnData,b=r.ui,_=this.state,w=_.players,E=_.shouldChangeTracks;if(o&&console.log("[dvr]: play",e,i),a&&(console.timeEnd("[DVRPlayer]: Init Time"),console.time("[DVRPlayer]: Player component play() start")),e&&"stop"!==e&&!s){window.removeEventListener("resize",this.refreshZoom);var S="live"===e;this._video=null,y("playerLink",null);var x={name:i,currentTime:e,onMediaInfo:u,setRef:this.setRef,isSelected:c===i,handleFullScreen:this.handleFullScreen,newTracks:g,debug:o,debugTimers:a},k=this.getPlayListUrl(e,S?void 0:n,S);if(Dr.default.isIOS()&&!("MediaSource"in window)&&"webrtc"!==l)w.push(ni(ni({type:"NativeiOSPlayer",url:k,setNoLiveError:function(e){t.setState({noLive:e})}},x),{},{key:"ios_player_".concat(e,"_").concat(w.length+1)}));else if(S&&"mse"===l)k=this.getMseUrl(),w.push(ni(ni({type:"MSEPlayer",url:k,onEvent:this.onHlsEvent,tracksAudio:d,multiStream:h,shouldChangeTracks:E,setNoLiveError:function(e){t.setState({noLive:e})},setNoVideoError:function(e){t.setState({noVideo:e})}},x),{},{key:"mse_player_".concat(e,"_").concat(w.length+1)}));else if(S&&"webrtc"===l){var T="".concat(m,"/").concat(i),O=Object(wn.decode)(v),R=Object.keys(O),P=Ur()(R,1),A=P[0];w.push(ni(ni({type:"WebRTCPlayer",url:T,onEvent:this.onHlsEvent,tracksAudio:d,multiStream:h,shouldChangeTracks:E,authTokenName:A,tokenValue:O[A]},x),{},{key:"webrtc_player_".concat(e,"_").concat(w.length+1)}))}else w.push(ni(ni(f()(f()({type:"HLSPlayer",url:k,onHlsEvent:this.onHlsEvent,setNoLiveError:function(e){t.setState({noLive:e})},autoVideoTrack:p,ottConfig:"ott"===b},"setNoLiveError",(function(e){t.setState({noLive:e})})),"setNoVideoError",(function(e){t.setState({noVideo:e})})),x),{},{key:"hls_player_".concat(e,"_").concat(w.length+1)}));w=w.filter((function(e,t){if(t===w.length-1)return e})),this.setState({players:w})}}},{key:"getPlayListUrl",value:function(e,t,n){var r=this.props,i=r.name,o=r.streamer_http,a=r.auth_token,s=r.basicApiConfig,u=r.token,c=s.params,l=t||3600;return this._getPlayListUrl(o,i,e,l,a||Object(wn.stringify)(c),n,u)}},{key:"_getPlayListUrl",value:function(e,t,n,r,i,o,a){var s="string"==typeof i&&i.trim().length>0?"?".concat(i):a?"?token=".concat(a):"";return r>3600&&(r=3600),"".concat(e,"/").concat(t,"/index").concat(o?"":"-".concat(n,"-").concat(r),".fmp4.m3u8").concat(s)}},{key:"getMseUrl",value:function(){var e=this.props,t=e.name,n=e.streamer_http,r=e.auth_token,i=e.tracks,o=e.basicApiConfig.params;return"".concat(n.replace(/^http/,"ws"),"/").concat(t,"/mse_ld?").concat([r||Object(wn.stringify)(o),i].filter((function(e){return e})).join("&"))}},{key:"handleFullScreen",value:function(){this.props.allowFullscreen}},{key:"handlePause",value:function(){var e=this.props.paused;this._video&&this._video&&(e?(this._video.play(),this.onHlsEvent({key:Date.now(),data:{event:"play_resume"}})):(this._video.pause(),this.onHlsEvent({key:Date.now(),data:{event:"play_pause"}})))}},{key:"takeSnapshot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=this.props,i=r.features,o=r.returnData,a=Boolean(null==i?void 0:i.isScreenshotEditingEnabled)||void 0===(null==i?void 0:i.isScreenshotEditingEnabled),s=this.snapshotRef,u=this._video;if(u){var c="snapshot_".concat(n||t,"_").concat(e,".png"),l=s.getContext("2d"),f=u.videoWidth,d=u.videoHeight;if(s.width=f,s.height=d,l.fillRect(0,0,f,d),l.drawImage(u,0,0,f,d),a){o("fullscreen",!1),this.onShotModalOpen(!0);var h=s.toDataURL("image/png");this.setState({snapshotDataUrl:h,snapshotNaming:c})}a||s.toBlob((function(e){if(!e)return reject();Object(Yr.saveAs)(e,c)}))}}},{key:"setSnapshotRef",value:function(e){!this.snapshotRef&&e&&(this.snapshotRef=e)}},{key:"setRef",value:function(e){var t=this,n=this.props,r=n.setPlayersRef,i=n.name,o=n.panzoomEnable;if(this._video&&(this._video=null),e&&(this._video=e,r(i,e)),o)try{this.zoomElement=Kr()(e,{maxZoom:10,minZoom:1,smoothScroll:!1,zoomDoubleClickSpeed:1,filterKey:function(){return!0},onDoubleClick:function(e){return!1}}),this.zoomElement.on("transform",(function(e){t.calculatePos(e)})),window.addEventListener("resize",this.refreshZoom),this.zoomElement.smoothZoomAbs(0,0,1)}catch(e){return}}},{key:"calculatePos",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(t)e=t.getTransform();else{if(!this.zoomElement)return;e=this.zoomElement.getTransform()}var n=function(e){return Math.floor(100*e)/100};if(e){var r=e,i=r.x,o=r.y,a=r.scale;this.setState({scale:n(a)});var s=i,u=o,c=!1;if(!this.wrapper)return;if(!this._video)return;var l=this.wrapper.getBoundingClientRect(),f=this._video.getBoundingClientRect();if(Math.round(f.left)>Math.round(l.left)&&(s=l.left-l.x,c=!0),Math.round(f.top)>Math.round(l.top)&&(u=l.top-l.y,c=!0),Math.round(f.right)<Math.round(l.right)&&(s=l.right-l.left-f.width,c=!0),Math.round(f.bottom)<Math.round(l.bottom)&&(u=l.bottom-f.height,c=!0),Math.round(f.width)<Math.round(l.width)&&(s=(l.width-f.width)/2,c=!0),Math.round(f.height)<Math.round(l.height)&&(u=(l.height-f.height)/2,c=!0),c){if(n(s)===n(i)&&n(u)===n(o))return;this.zoomElement.moveTo(s,u)}}}},{key:"resetZoom",value:function(e){e.stopPropagation(),this.zoomElement&&(this.zoomElement.smoothZoomAbs(0,0,1),this.zoomElement.moveTo(0,0),this.zoomElement.moveBy(0,0,!1))}},{key:"refreshZoom",value:function(){this.calculatePos()}},{key:"onHlsEvent",value:function(e){var t=this.props,n=t.onEvent,r=t.name;n&&n(r,e)}},{key:"onShotModalOpen",value:function(){this.setState({isSnapshotModalOpen:!0})}},{key:"onShotModalClose",value:function(){this.setState({isSnapshotModalOpen:!1})}},{key:"render",value:function(){var e,t,n,r,i,o,a,s,u=this,c=this.state,l=c.scale,f=c.players,d=c.noLive,p=c.isSnapshotModalOpen,g=c.snapshotDataUrl,m=c.snapshotNaming,v=this.onShotModalClose,y=this.props,b=y.currentTime,_=y.name,w=y.t,E=y.returnData,S=y.muted,x=y.paused,k=y.newTracks,T=y.playback_speed,O=y.ui,R=y.features,P=d||this.props.noDVR&&"live"!==b||this.state.noDvrHere&&!this.props.noDVR&&"live"!==b,A=Boolean(null==R?void 0:R.isScreenshotEditingEnabled)||void 0===(null==R?void 0:R.isScreenshotEditingEnabled),C=f.map((function(e){var t=ii[e.type];return h.a.createElement(t,Nr()({},e,{muted:S,paused:x,newTracks:k,speed:T,returnData:E}))})),L=h.a.createElement("div",{className:"dvr-player-wrapper",ref:function(e){u.wrapper=e},style:!1===this.props.panzoomEnable?{display:"flex",justifyContent:"center",alignItems:"center"}:null},this.zoomElement&&1!==l?h.a.createElement("button",{className:"resetZoomBtn",onMouseDown:this.resetZoom,onTouchEnd:this.resetZoom},h.a.createElement(si,null)):null,h.a.createElement("div",{className:"no-live-wrapper","data-cy":"playErrorWraper",style:{opacity:"".concat(P?"1":"0"),fontSize:"14px"}},(e=u.props,t=e.noAuth,n=e.networkError,r=e.noDVR,i=u.state,o=i.noDvrHere,a=i.noVideo,s=[],t?s=[].concat(Sn()(s),[h.a.createElement("p",{key:"forbidden_".concat(_)},w("dvr_mse_forbidden"))]):(n&&(s=[].concat(Sn()(s),[h.a.createElement("p",{key:"caution_networkError_".concat(_)},w("dvr_mse_network_error"))])),d&&(s=[].concat(Sn()(s),[h.a.createElement("p",{key:"caution_noLive_".concat(_)},w("dvr_mse_no_live_stream"))])),r&&"ott"!==O&&"live"!==b&&(s=[].concat(Sn()(s),[h.a.createElement("p",{key:"caution_currentTime_".concat(_)},w("dvr_mse_no_dvr"))])),!o||r||a||(s=[].concat(Sn()(s),[h.a.createElement("p",{key:"caution_noDvrHere_".concat(_)},w("dvr_mse_no_dvr_recording_here"))])),a&&(s=[].concat(Sn()(s),[h.a.createElement("p",{key:"caution_noVideo_".concat(_)},w("dvr_error_video_stream"))]))),s)),C,h.a.createElement("canvas",{className:"dvr-player-snapshot",style:{display:"none"},ref:this.setSnapshotRef}));return h.a.createElement(h.a.Fragment,null,"function"==typeof this.props.customItemWrapper?this.props.customItemWrapper(L,this.props.item,this.props.index):L,A&&p&&h.a.createElement(Jr.a,{title:w("image_editor"),isOpen:p,onClose:v},g&&h.a.createElement(ei.a,{imageName:m,imageUrl:g})))}}])}(d.Component);oi.propTypes={returnData:Cn.a.func.isRequired,playback_speed:Cn.a.number,currentTime:Cn.a.oneOfType([Cn.a.number,Cn.a.string]),muted:Cn.a.bool.isRequired,volume:Cn.a.number,streamer_http:Cn.a.string.isRequired,name:Cn.a.string.isRequired,selected:Cn.a.string,auth_token:Cn.a.string,paused:Cn.a.bool,debug:Cn.a.bool,debugTimers:Cn.a.bool,tracks:Cn.a.string,onPlayingChangeHandler:Cn.a.func,onProgress:Cn.a.func,onSpeedChanged:Cn.a.func,changeUTC:Cn.a.func,hls:Cn.a.bool,noDVR:Cn.a.bool,networkError:Cn.a.bool,panzoomEnable:Cn.a.bool,playerType:Cn.a.string,index:Cn.a.number,item:Cn.a.shape({}),multiStream:Cn.a.bool,fastSeekingTo:Cn.a.string,from:Cn.a.number,onEvent:Cn.a.func,setPlayersRef:Cn.a.func,fixedRange:Cn.a.bool,ui:Cn.a.oneOf(["ott","nvr"]),startingUTC:Cn.a.number,allowFullscreen:Cn.a.bool,autoVideoTrack:Cn.a.bool,streamIsLive:Cn.a.bool,browser:Cn.a.string,playSegmentDuration:Cn.a.number,newTracks:Cn.a.array,basicApiConfig:Cn.a.shape({token:Cn.a.string,tokenName:Cn.a.string,auth_token:Cn.a.string,streamer_http:Cn.a.string}),features:Cn.a.shape({isScreenshotEditingEnabled:Cn.a.bool})},oi.defaultProps={muted:!0,allowFullscreen:!0,playback_speed:1};var ai=Object($r.withTranslation)()(oi),si=qr()({displayName:"ResetZoomBtn",render:function(){return h.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 8.467 7.753",style:{width:"24px",height:"24px"},fill:"#fff"},h.a.createElement("defs",null),h.a.createElement("path",{d:"M7.32 7.712c-.057-.023-.533-.465-1.058-.983l-.954-.94-.198.125c-.7.444-1.668.575-2.514.34-.49-.136-1.19-.534-1.19-.678 0-.083.596-.558.7-.558.035 0 .147.048.25.107.311.18.694.278 1.081.278.67 0 1.184-.215 1.622-.682.677-.72.82-1.69.379-2.565A2.235 2.235 0 003.452.948c-.409 0-.708.076-1.08.272-.246.13-.751.574-.751.66 0 .05.245.095.52.096.223 0 .307.068.286.23-.017.13-1.63 1.655-1.75 1.655-.067 0-.213-.103-.213-.15 0-.009-.106-.47-.235-1.026-.246-1.056-.27-1.215-.184-1.3.059-.06.212-.068.272-.015.022.02.11.078.196.129l.156.093.137-.214c.239-.372.762-.824 1.21-1.045.51-.252.876-.337 1.447-.334C4.707.003 5.756.66 6.314 1.784c.257.516.331.887.308 1.542-.015.417-.04.578-.136.856l-.118.343 1.03 1.007c.9.88 1.033 1.027 1.058 1.169.105.595-.602 1.224-1.135 1.011z"}))}}),ui=function(){return h.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",style:{width:"20%",height:"20%",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",zIndex:1},fill:"#fff"},h.a.createElement("circle",{cx:"30",cy:"30",r:"30",fill:"gray",opacity:"0.7"}),h.a.createElement("path",{d:"M45.563 29.174l-22-15A1 1 0 0022 15v30a.999.999 0 001.563.826l22-15a1 1 0 000-1.652z",fill:"#fff"}),h.a.createElement("path",{d:" M30 0C13.458 0 0 13.458 0 30s13.458 30 30 30 30-13.458 30-30S46.542 0 30 0zm0 58C14.561 58 2 45.439 2 30S14.561 2 30 2s28 12.561 28 28 -12.561 28-28 28z ",fill:"none"}))},ci=qr()({displayName:"LtBtn",className:"LtBtn",render:function(){return h.a.createElement("i",{style:{width:"14px",height:"14px"}},h.a.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"#fff",style:{width:"14px",height:"14px"},viewBox:"0 0 14 14"},h.a.createElement("path",{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M9 2L4 7l5 5h0"})))}}),li=h.a.memo(ci),fi=qr()({displayName:"GtBtn",className:"GtBtn",render:function(){return h.a.createElement("i",{style:{width:"14px",height:"14px"}},h.a.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"#fff",style:{width:"14px",height:"14px"},viewBox:"0 0 14 14"},h.a.createElement("path",{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M5 2l5 5-5 5h0"})))}}),di=h.a.memo(fi);function hi(e,t,n){return t=On()(t),kn()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],On()(e).constructor):t.apply(e,n))}var pi=function(e){function t(){return c()(this,t),hi(this,t,arguments)}return Pn()(t,e),s()(t,[{key:"render",value:function(){var e=this.props.frameSeek;return h.a.createElement("div",{className:"seekContainer"},h.a.createElement("div",{className:"buttonGroup"},h.a.createElement("button",{"data-cy":"btnFiveFramesBack",onTouchEnd:function(t){t.stopPropagation(),e(-5)},onMouseUp:function(t){t.stopPropagation(),e(-5)}},h.a.createElement(li,null),h.a.createElement("b",null,"5")),h.a.createElement("button",{"data-cy":"btnFrameBack",onTouchEnd:function(t){t.stopPropagation(),e(-1)},onMouseUp:function(t){t.stopPropagation(),e(-1)}},h.a.createElement(li,null)),h.a.createElement("div",null),h.a.createElement("button",{"data-cy":"btnFrameForward",onTouchEnd:function(t){t.stopPropagation(),e(1)},onMouseUp:function(t){t.stopPropagation(),e(1)}},h.a.createElement(di,null)),h.a.createElement("button",{"data-cy":"btnFiveFramesForward",onTouchEnd:function(t){t.stopPropagation(),e(5)},onMouseUp:function(t){t.stopPropagation(),e(5)}},h.a.createElement("b",null,"5"),h.a.createElement(di,null))))}}])}(d.Component);pi.propTypes={frameSeek:Cn.a.func.isRequired};var gi,mi=pi,vi=n(287),yi=n(519),bi=n.n(yi),_i=n(520),wi=function(){return h.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",style:{width:"20%",height:"20%",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",zIndex:1},fill:"#fff"},h.a.createElement("circle",{cx:"30",cy:"30",r:"30",fill:"gray",opacity:"0.7"}),h.a.createElement("path",{d:"M22 15h6v30h-6zM32 15h6v30h-6z",fill:"#fff"}))},Ei=(n(1085),function(e){var t=e.direction,n=e.seek,r=e.isAnimating;return h.a.createElement("div",{className:"arrow-effect ".concat(t," ").concat(r?"animate":"")},h.a.createElement("div",{className:"arrows"},h.a.createElement("div",{className:"arrow-triangle"}),h.a.createElement("div",{className:"arrow-triangle"}),h.a.createElement("div",{className:"arrow-triangle"})),h.a.createElement("div",{className:"time-label"},"left"===t?"-".concat(n," сек"):"+".concat(n," сек")))}),Si=n(342),xi=n.n(Si);function ki(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ti(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ki(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ki(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oi(e,t,n){return t=On()(t),kn()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],On()(e).constructor):t.apply(e,n))}var Ri=function(e){function t(){var e;return c()(this,t),e=Oi(this,t),f()(e,"handleChildClick",(function(){setTimeout(e.handleTogglePlayer,0)})),e.packPlayers=e.packPlayers.bind(e),e.autoFormatPlayers=e.autoFormatPlayers.bind(e),e.selectPlayer=e.selectPlayer.bind(e),e.setPlayersRef=e.setPlayersRef.bind(e),e.frameSeek=e.frameSeek.bind(e),e.handleTogglePlayer=e.handleTogglePlayer.bind(e),e.callIfMouseStill=xi()(e.handleChildClick),e.callIfTouchStill=xi()(e.handleTogglePlayer),e.state={rows:0,cols:0,autoformat:!1,streamsNum:0,playersRefs:{},showArrow:!1,arrowDirection:""},e.autoPlayChecked=!1,e}return Pn()(t,e),s()(t,[{key:"componentDidMount",value:function(){var e=this.props.streamingChannels;if(e&&(e.rows?this.setState({rows:e.rows}):this.setState({autoformat:!0}),e.cols?this.setState({cols:e.cols}):this.setState({autoformat:!0}),e.streams)){var t=Object.keys(e.streams).length;this.setState({streamsNum:t}),this.autoFormatPlayers(t)}}},{key:"componentWillReceiveProps",value:function(e){if(e.streamingChannels.streams){var t=Object.keys(e.streamingChannels.streams).length;t!==this.state.streamsNum&&0!==this.state.streamsNum&&(this.autoFormatPlayers(t),this.setState({streamsNum:t}))}}},{key:"setPlayersRef",value:function(e,t){var n=this.state.playersRefs;n[e]=t,this.setState({playersRefs:n})}},{key:"frameSeek",value:function(e){var t=this.state.playersRefs;Object.keys(t).forEach((function(n){t[n].currentTime=t[n].currentTime+e/30}))}},{key:"packPlayers",value:function(){var e=this,t=this.state,n=t.rows,r=t.cols,i=this.props,o=i.returnData,a=i.playback_speed,s=i.playerType,u=i.name,c=i.autoPlay,l=i.token,f=i.muted,p=i.paused,g=i.debug,m=i.debugTimers,v=i.streamingChannels,y=i.isStalling,b=i.allRanges,_=i.onMediaInfo,w=i.customItemWrapper,E=i.showPlayButton,S=i.volume,x=i.getStats,k=i.onEvent,T=i.noAuth,O=i.onDoubleClick,R=i.autoVideoTrack,P=i.streamIsLive,A=i.browser,C=i.isPlaying,L=i.logoProperties,D=i.basicApiConfig,I=i.playSegmentDurationForPlayers,j=i.dvr_enabled,M=i.newTracks,N=i.ui,F=i.from,U=i.selected,B=i.advert,q=i.showSelectedOnly,$=i.features,V=v.streams[0],z={name:V.subName,address:V.address||"",auth_token:V.auth_token||"",hidden:!E&&!y,hasPreview:!1,basicApiConfig:D},W=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.a.createElement(ui,null);return h.a.createElement("div",{"data-cy":"clickToPlay",className:t,onClick:e.props.onClickToPlay},n)},G=function(){return B.length>0&&h.a.createElement(_i.Advert,{advert:B,returnData:o,onEvent:k})};if(E)return"ott"===N&&void 0===F?h.a.createElement(d.Fragment,null,G(),W("clickToPlay zIndexMax"),h.a.createElement(vi.Preview,z)):"ott"===N?h.a.createElement(d.Fragment,null,G(),W("clickToRestart",h.a.createElement("span",{className:"icon-one"})),h.a.createElement(vi.Preview,Nr()({},z,{from:F}))):W("clickToPlay");var H=function(t){var n={};switch(t){case"mse":n.tracks=e.props.tracks}return n}(s);return v.streams.map((function(t,i){var d=U===t.subName;return t.subName?Object.keys(t).length?h.a.createElement("div",{className:"PlayerInstance".concat(d?" visible":"").concat(q&&!d?" hidden":"").concat(q&&d?" fullscreen":""),onClick:e.selectPlayer,"data-name":t.subName,style:{width:"".concat(100/r,"%"),height:"".concat(100/n,"%"),order:"".concat(t.order||null)},onDoubleClick:O,key:"player_".concat(t.subName).concat(i)},!1===v.renderTitles||!1===t.renderTitle?null:h.a.createElement("div",{className:"CameraName"},d?h.a.createElement("span",null,"• "):"",t.title?t.title:t.subName),(!C||E)&&!c&&h.a.createElement(vi.Preview,{name:t.subName,address:t.address||"",auth_token:t.auth_token||"",hidden:!E&&!y,hasPreview:!1,basicApiConfig:D,from:F}),Object.keys(L).length>0&&L[t.subName]&&h.a.createElement(bi.a,{name:t.subName,logoProperties:L,basicApiConfig:D}),o&&h.a.createElement(ai,Nr()({},Ti(Ti({},H),{},{name:t.subName||u,main:t.main,item:t,index:i,noDVR:!(!(b&&b[t.subName]&&0==b[t.subName].length||"string"==typeof b[t.subName])&&j),networkError:"string"==typeof b[t.subName],noAuth:T[t.subName]||!1,streamer_http:t.address?t.address:e.props.streamer_http,currentTime:b&&b[t.subName]&&e.props.playingTimeForPlayers&&e.props.playingTimeForPlayers[t.subName]&&0!==b[t.subName].length||e.props.playingTimeForPlayers&&"live"===e.props.playingTimeForPlayers[t.subName]||"ott"===e.props.ui?e.props.playingTimeForPlayers[t.subName]:"stop",playSegmentDuration:I[t.subName],auth_token:t.auth_token?t.auth_token:e.props.auth_token,multiStream:e.state.streamsNum>1,fastSeekingTo:e.props.fastSeekingTo,from:F,fixedRange:e.props.fixedRange,ui:e.props.ui,setPlayersRef:e.setPlayersRef,allowFullscreen:"nvr"===e.props.ui,streamIsLive:P[t.subName],browser:A,returnData:o,playback_speed:a,autoPlay:c,token:l,muted:f,volume:S,debug:g,paused:p,debugTimers:m,selected:e.props.selected,playerType:s,playing:e.props.playingStarted,basicApiConfig:D,isStalling:y,onMediaInfo:_,newTracks:M,panzoomEnable:e.props.panzoom,customItemWrapper:w,onEvent:k,getStats:x,autoVideoTrack:R,features:$}),{key:"DvrPlayerWrapper_".concat(t.subName)}))):h.a.createElement("div",{className:"PlayerInstance",style:{width:"".concat(100/r,"%"),maxHeight:"".concat(100/n,"%"),order:"".concat(i)},onDoubleClick:O,key:"empty_player_".concat(i)},"function"==typeof e.props.customItemWrapper?e.props.customItemWrapper(null,null,i):null):null}))}},{key:"autoFormatPlayers",value:function(e){var t=Math.round(Math.sqrt(e)),n=t,r=t;e>t*t&&(n+=1),this.setState({cols:n,rows:r})}},{key:"selectPlayer",value:function(e){var t=e.currentTarget.dataset.name;this.props.returnData("selected",t)}},{key:"showControl",value:function(e){var t=this;switch(e){case"play":this.setState({showPlayButton:!0,showPauseButton:!1});break;case"stop":this.setState({showPlayButton:!1,showPauseButton:!0});break;default:this.hideControls()}this.hideControlsTimeout&&clearTimeout(this.hideControlsTimeout),this.hideControlsTimeout=setTimeout((function(){t.hideControls()}),1500)}},{key:"hideControls",value:function(){this.setState({showPlayButton:!1,showPauseButton:!1}),this.hideControlsTimeout&&(clearTimeout(this.hideControlsTimeout),this.hideControlsTimeout=null)}},{key:"handlePause",value:function(){var e=this.props;(0,e.returnData)("paused",!e.paused)}},{key:"perFrameSeek",value:function(e){var t=this.props,n=t.paused,r=t.seekFrameEnabled,i=t.returnData;n&&!r?i("seekFrameEnabled",!0):(i("seekFrameEnabled",!n),this.handlePause())}},{key:"showArrow",value:function(e,t){var n=this;clearTimeout(this.hideArrowTimeout),clearTimeout(this.animationStartTimeout),this.setState({showArrow:!0,arrowDirection:e,countSeek:t,isAnimating:!1}),this.animationStartTimeout=setTimeout((function(){n.setState({isAnimating:!0}),n.hideArrowTimeout=setTimeout((function(){n.setState({showArrow:!1,isAnimating:!1})}),1e3)}),300)}},{key:"actionTogglePlayPause",value:function(){var e=this.props,t=e.paused,n=e.ui,r=e.live;t?this.showControl("stop"):this.showControl("play"),"ott"===n||r?this.handlePause():this.perFrameSeek()}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0}},{key:"handleTogglePlayer",value:function(e){var t=this,n=this.props,r=n.live,i=n.playerProgressTime,o=n.fastSeek,a=n.onSeek,s=n.ui;if(!1!==n.autoPlay||this.autoPlayChecked)if(this.isTouchDevice()){var u=e.changedTouches[0],c=e.currentTarget.getBoundingClientRect(),l=u.clientX-c.left,f=e.currentTarget.offsetWidth/3,d=Date.now();if(this.lastTap&&d-this.lastTap<300){if(clearTimeout(this.singleTapTimeout),this.hideControls(),"ott"===s)return;this.tapCount&&d-this.lastTap<500?this.tapCount+=1:this.tapCount=1;var h=10*this.tapCount;if(l<f){var p=Math.min(h,i);if(r)return void a(i-60);o(i-p,"backward"),this.showArrow("left",p)}else l>2*f&&(r||o(i+h,"forward"),this.showArrow("right",h));this.lastTap=d}else this.lastTap=d,this.tapCount=0,this.singleTapTimeout=setTimeout((function(){t.actionTogglePlayPause()}),300)}else this.actionTogglePlayPause();else this.autoPlayChecked=!0}},{key:"render",value:function(){var e=this.props,t=e.seekFrameEnabled,n=e.dvr_enabled,r=e.playerType,i=e.currentTime,o=e.ui,a=e.advert,s=this.state,u=s.showArrow,c=s.arrowDirection,l=s.countSeek,f=s.showPauseButton,d=s.showPlayButton,p=s.isAnimating,g="webrtc"===r&&"live"===i;return h.a.createElement("div",{className:"playersContainer".concat(n?"":" large").concat("ott"===o?" ott":""),style:{zIndex:d&&a.length?10:"initial"},onMouseDown:this.callIfMouseStill.handleMouseDown,onMouseMove:this.callIfMouseStill.handleMouseMove,onMouseUp:this.callIfMouseStill.handleMouseUp,onTouchMove:this.callIfTouchStill.handleTouchMove,onTouchEnd:this.callIfTouchStill.handleTouchEnd},t&&!g&&h.a.createElement(mi,{frameSeek:this.frameSeek}),this.packPlayers(),f&&h.a.createElement(wi,null),d&&h.a.createElement(ui,null),u&&h.a.createElement(Ei,{direction:c,seek:l,isAnimating:p}))}}])}(d.Component);Ri.propTypes=(gi={returnData:Cn.a.func.isRequired,playback_speed:Cn.a.number,playerType:Cn.a.string,playingTimeForPlayers:Cn.a.any,debug:Cn.a.bool,debugTimers:Cn.a.bool,autoPlay:Cn.a.bool,muted:Cn.a.bool,name:Cn.a.string,isStalling:Cn.a.bool},f()(f()(f()(f()(f()(f()(f()(f()(f()(f()(gi,"debug",Cn.a.bool),"auth_token",Cn.a.any),"streamer_http",Cn.a.string),"paused",Cn.a.bool),"allRanges",Cn.a.any),"noAuth",Cn.a.any),"selected",Cn.a.string),"streamingChannels",Cn.a.shape({cols:Cn.a.number,rows:Cn.a.number,streams:Cn.a.arrayOf(Cn.a.any)})),"onMediaInfo",Cn.a.func),"panzoom",Cn.a.bool),f()(f()(f()(f()(f()(f()(f()(f()(f()(f()(gi,"customItemWrapper",Cn.a.func),"showPlayButton",Cn.a.bool),"fastSeekingTo",Cn.a.string),"from",Cn.a.number),"volume",Cn.a.number),"onEvent",Cn.a.func),"getStats",Cn.a.func),"seekFrameEnabled",Cn.a.bool),"fixedRange",Cn.a.bool),"ui",Cn.a.oneOf(["ott","nvr"])),f()(f()(f()(f()(f()(f()(f()(f()(f()(f()(gi,"onDoubleClick",Cn.a.func),"newTracks",Cn.a.array),"autoVideoTrack",Cn.a.bool),"isPlaying",Cn.a.bool),"basicApiConfig",Cn.a.shape({token:Cn.a.string,tokenName:Cn.a.string,auth_token:Cn.a.string,streamer_http:Cn.a.string})),"streamIsLive",Cn.a.shape({})),"logoProperties",Cn.a.any),"browser",Cn.a.string),"playSegmentDurationForPlayers",Cn.a.any),"dvr_enabled",Cn.a.bool),f()(f()(f()(f()(f()(f()(f()(f()(f()(gi,"advert",Cn.a.array),"autoPlay",Cn.a.bool),"showSelectedOnly",Cn.a.bool),"fastSeek",Cn.a.func),"onSeek",Cn.a.func),"playerProgressTime",Cn.a.oneOfType([Cn.a.string,Cn.a.number])),"live",Cn.a.bool),"token",Cn.a.string),"features",Cn.a.shape({isScreenshotEditingEnabled:Cn.a.bool}))),Ri.defaultProps={playerType:"mse",showPlayButton:!1};var Pi=h.a.memo(Ri),Ai=(n(1087),qr()({displayName:"DvrTimeMarkers",className:"DvrTimeMarkers",propTypes:{duration:Cn.a.number.isRequired,from:Cn.a.number,localTime:Cn.a.bool,width:Cn.a.number.isRequired},shouldComponentUpdate:function(e){return this.props.duration!==e.duration||this.props.from!==e.from||this.props.localTime!==e.localTime||this.props.width!==e.width},currentStep:function(){return this.time_unit().time},label:function(e,t){var n=new Date;n.setTime(1e3*e);var r=!1!==this.props.localTime,i=r?n.getHours():n.getUTCHours(),o=r?n.getMinutes():n.getUTCMinutes();if(t<60){var a=r?n.getSeconds():n.getUTCSeconds();return"".concat(Object(Dr.pad2)(i),":").concat(Object(Dr.pad2)(o),":").concat(Object(Dr.pad2)(a))}var s=function(){return"".concat(Object(Dr.pad2)(i),":").concat(Object(Dr.pad2)(o))},u=function(){var e=r?n.getDate():n.getUTCDate(),t=(r?n.getMonth():n.getUTCMonth())+1,i=r?n.getFullYear():n.getUTCFullYear();return"".concat(Object(Dr.pad2)(i),"-").concat(Object(Dr.pad2)(t),"-").concat(Object(Dr.pad2)(e))};return t<=3600?0===i&&0===o?u():1===i&&3600===t?"":s():t>=86400||i>=0&&i<Math.ceil(t/3600)?u():s()},time_units:[{name:"min1",time:60},{name:"min2",time:120},{name:"min5",time:300},{name:"min15",time:900},{name:"min30",time:1800},{name:"hour1",time:3600},{name:"hour2",time:14400},{name:"hour12",time:43200},{name:"day1",time:86400},{name:"day7",time:604800},{name:"month1",time:2592e3}],time_unit:function(){for(var e=this.props,t=e.duration,n=e.width,r=Math.round(150*t/n),i=1;i<this.time_units.length;i++)if(this.time_units[i].time>r||i===this.time_units.length-1)return g()(this.time_units[i-1],{$merge:{i:i-1}})},entries:function(e){for(var t=[],n=this.props,r=n.from,i=n.duration,o=Math.floor(r/e)*e;o<=r+i;)t.push({time:e,utc:o,label:this.label(o,e)}),o+=e;return t},timeMarkers:function(){var e=this.props,t=e.from,n=e.duration,r=e.width,i=this.time_unit();return this.entries(i.time).map(function(e){var o=Math.round((e.utc-t)*r/n);return h.a.createElement("span",{key:e.utc,style:{left:o},className:"".concat(e.label.length>5?"day":"")},h.a.createElement("span",{className:"marker".concat(e.label.length>5?" day":"")}),this.label(e.utc,i.time))}.bind(this))},render:function(){return h.a.createElement("div",{className:"time-markers","data-cy":"time-markers"},this.timeMarkers())}})),Ci=h.a.memo(Ai),Li=n(521),Di=n(522),Ii=function(e,t,n,r){var i=function(e){var n=Math.max(e.from,t),r=n-t,i=e.from>t?e.duration:e.duration-(t-e.from);return{utc:n,start:r,end:r+i,duration:i,meta:e.meta}};return e.reduce((function(e,n){if(n.from+n.duration>t)if(0===e.length)e.push(i(n));else{var o=e[e.length-1],a=n.from-(o.utc+o.duration);a>=r?e.push(i(n)):(o.duration+=a+n.duration,o.end+=a+n.duration)}return e}),[])},ji={reduceRanges:function(e,t,n,r,i){if(0===r||n<10)return[];var o=Math.floor(n/r)||1,a=function(e){return Math.floor(e*r/n)},s=Ii(e,t,0,o);if(0===s.length)return t+n>i?[{utc:t,duration:n,left:0,type:"miss",width:a(i-t)}]:[{utc:t,duration:n,left:0,type:"miss",width:r}];var u=[];return s.forEach((function(e,r,o){if(0===r)e.start>0&&u.push({utc:t,duration:n,type:"miss",left:0,width:a(e.start)}),u.push({utc:e.utc,type:"hit",left:a(e.start),width:a(e.duration)});else{var s=o[r-1];u.push({utc:s.utc+s.duration,type:"miss",left:a(s.end),width:a(e.start-s.end)}),u.push({utc:e.utc,type:"hit",left:a(e.start),width:a(e.duration)}),r===o.length-1&&e.utc+e.duration<t+n&&e.utc+e.duration<i&&u.push({utc:e.utc+e.duration,type:"miss",left:a(e.end),width:a(Math.min(i,t+n)-(e.utc+e.duration))}),e.meta&&u.push({utc:e.utc,type:"live",left:a(e.start),width:a(e.duration)})}})),u},reduceMotion:function(e,t,n,r,i){var o=Math.round(i/200);return e.reduce((function(e,t){var n=0===e.length?null:e[e.length-1];return n&&t.from-(n.utc+n.width)<=o?(n.width=t.from+t.duration-n.utc,n.weight+=t.duration):e.push({utc:t.from,width:t.duration,type:"motion",weight:t.duration,color:t.color,title:t.title,note:t.note}),e}),[]).map((function(e){return e.opacity=Math.round(100*e.weight/e.width)/10,e.width=e.width*r/n,e.left=(e.utc-t)*r/n,e}))},_reduceSegments:Ii};function Mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ni(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mi(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fi(e,t,n){return t=On()(t),kn()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],On()(e).constructor):t.apply(e,n))}var Ui=function(e){function t(){var e;return c()(this,t),(e=Fi(this,t)).utc_change=e.utc_change.bind(e),e.domSizes=e.domSizes.bind(e),e.afterResize=e.afterResize.bind(e),e.loadRanges=e.loadRanges.bind(e),e.refreshMotion=e.refreshMotion.bind(e),e.refreshRanges=e.refreshRanges.bind(e),e.reduceThumbnails=e.reduceThumbnails.bind(e),e.jpeg_url=e.jpeg_url.bind(e),e.onSeekTo=e.onSeekTo.bind(e),e.onMotionSeek=e.onMotionSeek.bind(e),e.startScrollLeft=e.startScrollLeft.bind(e),e.startScrollRight=e.startScrollRight.bind(e),e.stopScroll=e.stopScroll.bind(e),e.scrollToPoint=e.scrollToPoint.bind(e),e.startScale=e.startScale.bind(e),e.stopScale=e.stopScale.bind(e),e.visualTick=e.visualTick.bind(e),e.scale=e.scale.bind(e),e.scroll=e.scroll.bind(e),e.requestAnimationFrame=e.requestAnimationFrame.bind(e),e.recheck_borders=e.recheck_borders.bind(e),e.now=e.now.bind(e),e.now_ms=e.now_ms.bind(e),e.toggleCalendar=e.toggleCalendar.bind(e),e.onThumbnail=e.onThumbnail.bind(e),e.onMouseEnter=e.onMouseEnter.bind(e),e.onMouseLeave=e.onMouseLeave.bind(e),e.onMouseClick=e.onMouseClick.bind(e),e.onMouseMove=e.onMouseMove.bind(e),e.onHoverMove=e.onHoverMove.bind(e),e.controlBtn=e.controlBtn.bind(e),e.setWindowRef=e.setWindowRef.bind(e),e.setTimeMarkersRef=e.setTimeMarkersRef.bind(e),e.dataChange=e.dataChange.bind(e),e.setPercent=e.setPercent.bind(e),e.onDragStart=e.onDragStart.bind(e),e.onDragEnd=e.onDragEnd.bind(e),e.onDrag=e.onDrag.bind(e),e.state={ranges:[],motion:[],now:e.now(),visualDelay:150,visible_offset:0,visible_width:86400,v_duration:86400,renderRanges:{},pLeft:0,pRight:100,window_width:0,cursorPos:null,dragging:!1,dragCenter:null,liveInView:!1},e}return Pn()(t,e),s()(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.zoom,n=e.now,r=e.lockViewLeft,i=e.lockViewRight,o=e.fixedRange,a=e.returnData,s=(t<300?300:t)||3600,u=(this.props.from||n||this.now())-2*s/3,c=(this.props.from||n||this.now())+1*s/3;o&&(r||i)&&(r&&(u=r),c=i||this.now()+300),this.setState({v_from:u,v_duration:c-u,real_from:u,real_to:c,real_duration:c-u,visible_width:this.domSizes().window_width}),a("observableRanges",{start:u,end:u+(c-u)}),a("resolution",(c-u)/this.domSizes().window_width)}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.observableRanges,i=n.returnData,o=n.now,a=n.allRangeInfo,s=this.state,u=s.v_from,c=s.v_duration,l=s.visible_offset,f=s.wrapper_width,d=s.liveInView;if(u!==t.v_from||c!==t.v_duration||l!==t.visible_offset||f!==t.wrapper_width){var h=!1,p=(new Date).getTime()/1e3;p>u&&p<u+c&&(h=!0),i("liveInView",h),this.setState({liveInView:h});var g=u,m=u+c,v=(new Date).getTime()/1e3+300;i("observableRanges",{start:Math.round(g),end:Math.round(m)>v?r.end:Math.round(m)}),this.props.returnVisual({real_from:u,real_to:u+c}),this.dataChange(a,!0)}JSON.stringify(e.allRangeInfo)!==JSON.stringify(a)&&this.dataChange(a,!0),e.now!==o&&(this.setState(this.utc_change(this.props.now,this.state)),d&&this.dataChange(a,!0))}},{key:"dataChange",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.allRangeInfo,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={};if(Object.keys(t).length&&Object.keys(t).forEach((function(n){var i=e.loadRanges(t[n]||[],e.state,e.now(),n);r=Ni(Ni({},r),i)})),n){var i=this.afterResize(this.state);r=Ni(Ni({},r),i)}this.props.multiTimeline||r.renderRanges&&r.renderRanges[this.props.selected]&&(r.renderRanges=f()({},this.props.selected,r.renderRanges[this.props.selected]));var o=this.utc_change(this.props.now,this.state);r=Ni(Ni({},r),o),this.setState(r)}},{key:"setPercent",value:function(e,t){this.setState(f()({},e,t))}},{key:"utc_change",value:function(e,t){if(!e)return{};var n=Math.round((e-t.v_from)*t.visible_width/t.v_duration),r={};n!==t.play_progress&&(r.play_progress=n),e!==t.utc&&(r.utc=e);var i=!0;(this.state.scrolling||this.state.scroll_ended_at&&this.now_ms()-this.state.scroll_ended_at<this.state.visualDelay)&&(i=!1),(this.state.scaling||this.state.scale_ended_at&&this.now_ms()-this.state.scale_ended_at<this.state.visualDelay)&&(i=!1);var o={showBackToCursor:!1};return i&&(e<=t.v_from||e>=t.v_from+t.v_duration)&&(o={showBackToCursor:!0}),g()(r,{$merge:o})}},{key:"domSizes",value:function(){if(!this.windowRef)return!1;var e={},t=this.windowRef,n=t.getBoundingClientRect();if(e.window_width=n.width,e.top=n.top,n.width||n.height){var r=t.ownerDocument,i=r.documentElement,o=r.defaultView;e.window_left=n.left+o.pageXOffset-i.clientLeft}return this.props.returnDomSizes(e),this.setState({window_width:n.width}),e}},{key:"afterResize",value:function(e){return void 0!==e.v_from&&void 0!==e.real_from?{visible_offset:Math.round(-(e.v_from-e.real_from)*e.visible_width/e.v_duration),wrapper_width:Math.round(e.real_duration*e.visible_width/e.v_duration)}:{visible_offset:0,wrapper_width:0}}},{key:"loadRanges",value:function(e,t,n,r){var i={};if(!e)return{};if(e.loaded_at===t.range_loaded_at)return{};var o=t.renderRanges,a=Sn()(e.motion),s=[];if(e.ranges){("string"!=typeof e.ranges||e.ranges)&&(e.ranges.forEach((function(e){"opened_at"in e&&"closed_at"in e&&s.push({from:e.opened_at,duration:e.closed_at-e.opened_at})})),s.push({from:n,duration:15,meta:"pseudolive"}));var u=this.refreshRanges(s,t,n),c={range_loaded_at:e.loaded_at};o[r]=Ni(Ni(Ni({},o[r]),u),c),i=Ni(Ni({},i),{},{renderRanges:o});var l=this.recheck_borders(this.state);if(r===this.props.selected){var f=this.reduceThumbnails(e.brief_thumbnails,t),d=this.refreshMotion(a,t);i=Ni(Ni(Ni(Ni({},i),f),d),l)}return i}}},{key:"refreshMotion",value:function(e,t){return e?{motion_data:e,motion:ji.reduceMotion(e,t.real_from,t.real_duration,t.wrapper_width,t.v_duration)}:{}}},{key:"refreshRanges",value:function(e,t,n){return e?{segments:e,ranges:ji.reduceRanges(e,t.real_from,t.real_duration,t.wrapper_width,n)}:{}}},{key:"reduceThumbnails",value:function(e){if(!e)return{thumbnails:{}};var t={jpegs:{},utcs:{}},n=this.state.visible_width||600;t.step=10*this.state.v_duration/n;for(var r=0;r<e.length;r++){var i=Math.floor(e[r]/t.step);t.jpegs[i]||(t.jpegs[i]=this.jpeg_url(e[r]),t.utcs[i]=e[r])}return{thumbnails:t}}},{key:"jpeg_url",value:function(e){var t=new Date;return t.setTime(1e3*e),"".concat(this.props.http_stream_url,"/").concat(t.getUTCFullYear(),"/").concat(pad2(t.getUTCMonth()+1),"/").concat(pad2(t.getUTCDate()),"/").concat(pad2(t.getUTCHours()),"/").concat(pad2(t.getUTCMinutes()),"/").concat(pad2(t.getUTCSeconds()),".jpg").concat(this.props.auth_token?"?".concat(this.props.auth_token):"")}},{key:"onSeekTo",value:function(e){var t=this.domSizes(),n=(e-t.window_left)/t.window_width,r=Math.round(n*this.state.v_duration+this.state.v_from);r>this.now()?this.props.onSeek("live"):this.props.onSeek(r)}},{key:"onMotionSeek",value:function(e){this.props.downloadModal||this.props.onSeek&&this.props.onSeek(e)}},{key:"startScrollLeft",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01,r=this.props.is_mobile;!t&&!r&&e.preventDefault(),this.setState({scrolling:"left",scroll_count:0,scroll_step:Math.round(this.state.v_duration*n),started:this.now_ms(),start_from:this.state.v_from}),this.requestAnimationFrame(this.visualTick),t&&setTimeout(this.stopScroll,300)}},{key:"startScrollRight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01,r=this.props.is_mobile;!t&&!r&&e.preventDefault(),this.setState({scrolling:"right",scroll_count:0,scroll_step:Math.round(this.state.v_duration*n),started:this.now_ms(),start_from:this.state.v_from}),this.requestAnimationFrame(this.visualTick),t&&setTimeout(this.stopScroll,300)}},{key:"stopScroll",value:function(){this.setState({scrolling:void 0,scroll_count:void 0,scroll_step:void 0,scroll_ended_at:this.now_ms()})}},{key:"scrollToPoint",value:function(e){this.setState({scrolling:"toPoint",scroll_count:0,goUtc:e,scroll_ended_at:e}),this.toPoint=e,this.requestAnimationFrame(this.visualTick)}},{key:"startScale",value:function(e,t,n){var r=this.props.is_mobile,i=Dr.default.calculateScaleTimeline(e,t,n,r),o=i.requestAnimationStopTime,a=i.deltaYScaleCount;clearTimeout(this.stopScaleTimer),n||r||e.preventDefault(),this.setState({scalling:t,scale_count:a,started:this.now_ms()}),this.requestAnimationFrame(this.visualTick),this.stopScaleTimer=setTimeout(this.stopScale,o)}},{key:"stopScale",value:function(){this.setState({scalling:void 0,scale_count:0,scale_ended_at:this.now_ms()})}},{key:"visualTick",value:function(){var e=this.props.zoomSensivity,t=this.state,n=t.scrolling,r=t.scalling,i=t.scroll_count,o=t.started,a=t.scroll_step,s=t.v_duration,u=t.start_from,c=t.scale_count,l=this.now_ms();"left"===n&&(this.setState({scroll_count:i+1}),this.scroll(u-a*(l-o)/20)),"right"===n&&(this.setState({scroll_count:i+1}),this.scroll(u+a*(l-o)/20)),this.toPoint&&(this.scroll(this.toPoint-s/2),this.toPoint=void 0),"out"!==r&&"in"!==r||this.scale((1+c/800)*e),(n||r)&&this.requestAnimationFrame(this.visualTick)}},{key:"scale",value:function(e){var t=this.state,n=t.real_from,r=t.real_duration,i=t.cursorPos,o=t.v_from,a=t.v_duration,s=t.utc,u=t.visible_width,c=this.props.returnData;if(n&&r&&!(e<=0||e<1&&r*e<1e3||e>1&&r*e>2592e3)){var l=o+a/2;i&&i>=o&&i<=o+a?l=i:s>o+a/10&&s<o+.9*a&&(l=s),this.setState({v_from:(l-o)*(1-e)+o,v_duration:e*a}),c("resolution",a/u)}}},{key:"scroll",value:function(e){this.setState({v_from:e})}},{key:"requestAnimationFrame",value:function(e){("undefined"!=typeof window?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame:function(e){setTimeout(e,1e3/120)})(e)}},{key:"recheck_borders",value:function(e){var t=e.v_from-e.real_from,n=e.real_to-(e.v_from+e.v_duration),r={too_few_left:[-t/e.v_duration,-.3],too_few_right:[-n/e.v_duration,-.3],too_much_left:[t/e.v_duration,1.3],too_much_right:[n/e.v_duration,1.3]};for(var i in r){if(r.hasOwnProperty(i))if(r[i][0]>r[i][1]){return{real_from:e.v_from-Math.round(2.4*e.v_duration/3),real_duration:2.4*e.v_duration,real_to:e.v_from+Math.round(4.8*e.v_duration/3)}}}return{}}},{key:"now",value:function(){return Math.round(this.now_ms()/1e3)}},{key:"now_ms",value:function(){return Math.round((new Date).getTime())}},{key:"toggleCalendar",value:function(e){e.preventDefault(),this.state.calendarOpened?this.setState({calendarOpened:!1}):this.setState({calendarOpened:!0}),this.props.onCalendarToggle&&this.props.onCalendarToggle(!this.state.calendarOpened)}},{key:"onThumbnail",value:function(e,t,n,r,i){var o=this.props,a=o.is_mobile,s=o.onCallThumbnail;a||s&&s(e,t,n,r,i,this.state.visible_width)}},{key:"onMouseEnter",value:function(e){return this.setState({over_timeline:!0,thumbnail_url:void 0}),this.onHoverMove(e.pageX)}},{key:"onMouseLeave",value:function(){this.setState({over_timeline:!1,thumbnail_url:void 0}),this.onThumbnail("clear")}},{key:"onMouseClick",value:function(e){e.target!==this.backBtnRef&&(this.props.downloadModal||(e.preventDefault(),this.onSeekTo(e.pageX)))}},{key:"onMouseMove",value:function(e){return this.onHoverMove(e.pageX)}},{key:"onHoverMove",value:function(e){if(this.state.over_timeline&&this.state.visible_width){var t=this.domSizes(),n=e-t.window_left,r=t.top,i=n/t.window_width,o=Math.round(i*this.state.v_duration+this.state.v_from),a=this.state.renderRanges[this.props.selected]&&this.state.renderRanges[this.props.selected].segments?this.state.renderRanges[this.props.selected].segments:[];this.setState({cursorPos:o}),!function(e,t){if(!e)return!1;for(var n=0;n<e.length;n++){if(t<e[n].from)return!1;if(t<e[n].from+e[n].duration)return!0}return!1}(a,o)?this.onThumbnail("clear"):this.props.is_mobile?this.onThumbnail("canvas",o,n,r,t.window_left):this.onThumbnail("video",o,n,r,t.window_left)}}},{key:"controlBtn",value:function(e,t,n){var r="btn btn-xs ".concat(e);return h.a.createElement("button",{onMouseDown:t,onTouchStart:t,onMouseUp:n,onTouchEnd:n,type:"button",className:r},h.a.createElement("span",{className:"icon"}))}},{key:"setWindowRef",value:function(e){!this.windowRef&&e&&(this.windowRef=e,this.windowRef.addEventListener("selectstart",(function(){return!1})))}},{key:"setTimeMarkersRef",value:function(e){!this.timeMarkersRef&&e&&(this.timeMarkersRef=e)}},{key:"onDragStart",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.clientX;if(t){var r=e.targetTouches,i=Ur()(r,1),o=i[0];n=o.clientX}var a=this.state,s=a.window_width,u=a.v_from,c=a.v_duration,l=n/(s/100),f=Math.round(u+c/100*l);this.setState({dragging:!0,dragCenter:f})}},{key:"onDragEnd",value:function(){var e=this.state.window_width;this.setState({dragging:!1,dragCenter:e/2}),this.stopScroll()}},{key:"onDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.state,r=n.dragging,i=n.dragCenter;if(r&&i){var o=this.state,a=o.window_width,s=o.v_from,u=o.v_duration,c=e.clientX;if(t){var l=e.targetTouches,f=Ur()(l,1),d=f[0];c=d.clientX}var h=c/(a/100),p=Math.round(s+u/100*h),g=i-p;this.setState({v_from:s+g})}}},{key:"render",value:function(){var e=this.props,t=e.selectionTimeline,n=e.localTime,r=e.debug,i=e.pointSelectTime,o=this.state,a=o.v_from,s=o.v_duration,u=o.window_width,c=o.visible_width,l=o.renderRanges,f=o.motion,d=o.visible_offset,p=o.play_progress;return h.a.createElement("div",{ref:this.setWindowRef,className:"timeline__timelineView","data-cy":"timelineView",onDoubleClick:i},c&&h.a.createElement("div",{className:"markers_wrapper",draggable:!1},h.a.createElement(Ci,{ref:this.setTimeMarkersRef,from:a,duration:s,width:u||0,localTime:n})),c&&h.a.createElement("div",{className:"line_wrapper".concat(t?" large":""),onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseMove:this.onMouseMove,onDragStart:function(){return!1},draggable:!1},p&&p>0&&p<c&&h.a.createElement(Li.DvrNowMarker,{now:p,width:c}),h.a.createElement(Di.DvrRanges,{allRangeInfo:l,motion:f,debug:r,left:d,width:c,onUtcSeek:this.onMotionSeek,onHandleClick:this.onMouseClick})))}}])}(d.Component);Ui.propTypes={utc:Cn.a.any,onRangesRequested:Cn.a.func,onSeek:Cn.a.func,onCalendarToggle:Cn.a.func,onCallThumbnail:Cn.a.func,thumbnails_enabled:Cn.a.bool,locale:Cn.a.oneOf(["ru","en"]),from:Cn.a.number,now:Cn.a.oneOfType([Cn.a.string,Cn.a.number]),range_info:Cn.a.object,zoom:Cn.a.number,debug:Cn.a.bool,localTime:Cn.a.bool,is_mobile:Cn.a.bool,http_stream_url:Cn.a.string,auth_token:Cn.a.string,currentTime:Cn.a.any,playerUtc:Cn.a.number,returnData:Cn.a.func,observableRanges:Cn.a.shape({start:Cn.a.number,end:Cn.a.number}),allRangeInfo:Cn.a.any,multiTimeline:Cn.a.bool,selected:Cn.a.string,downloadModal:Cn.a.bool,toggleDownload:Cn.a.func,returnDomSizes:Cn.a.func,returnVisual:Cn.a.func,fixedRange:Cn.a.bool,lockViewLeft:Cn.a.number,lockViewRight:Cn.a.number,pointSelectTime:Cn.a.func,selectionTimeline:Cn.a.bool,zoomSensivity:Cn.a.number},Ui.defaultProps={};var Bi=Ui;function qi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qi(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vi(e,t,n){return t=On()(t),kn()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],On()(e).constructor):t.apply(e,n))}var zi=function(e){function t(){var e;return c()(this,t),(e=Vi(this,t)).utcToPath=e.utcToPath.bind(e),e.humanify=e.humanify.bind(e),e.buildSourceUrl=e.buildSourceUrl.bind(e),e.setThumbnailCapturerRef=e.setThumbnailCapturerRef.bind(e),e.setVideoThumbnailRef=e.setVideoThumbnailRef.bind(e),e.captureImageFromVideo=e.captureImageFromVideo.bind(e),e.state={},e}return Pn()(t,e),s()(t,[{key:"setThumbnailCapturerRef",value:function(e){!this.thumbnailCapturer&&e&&(this.thumbnailCapturer=e)}},{key:"setVideoThumbnailRef",value:function(e){!this.videoThumbnail&&e&&(this.videoThumbnail=e)}},{key:"utcToPath",value:function(e){var t=new Date(1e3*e);return this.path=Object(Dr.substitute)("{year}/{month}/{day}/{hours}/{minutes}/{seconds}",{year:t.getUTCFullYear(),month:Object(Dr.pad2)(t.getUTCMonth()+1),day:Object(Dr.pad2)(t.getUTCDate()),hours:Object(Dr.pad2)(t.getUTCHours()),minutes:Object(Dr.pad2)(t.getUTCMinutes()),seconds:Object(Dr.pad2)(t.getUTCSeconds())}),this.path}},{key:"humanify",value:function(e){var t=this.props.localTime;return"".concat(Object(Dr.humanDate)(e,t)," ").concat(Object(Dr.humanTime)(e,t))}},{key:"buildSourceUrl",value:function(e,t){var n=this.props,r=n.authToken,i=n.streamUrl,o=n.thumbnailsEnabled,a=n.basicApiConfig.params,s=r?"?".concat(r):"";return Object(Dr.substitute)("{streamUrl}/{path}{postfix}{authToken}",{streamUrl:i,path:this.utcToPath(e),postfix:"video"===t&&!1===o?"-preview.mp4":".jpg",authToken:s||"?".concat(Object(wn.stringify)(a))})}},{key:"captureImageFromVideo",value:function(){var e=this.refs.thumbnailCapturer,t=this.refs.videoThumbnail;if(this.refs&&e){var n=e.getContext("2d"),r=t.videoWidth,i=t.videoHeight;e.width=r,e.height=i,n.fillRect(0,0,r,i),n.drawImage(t,0,0,r,i)}}},{key:"render",value:function(){var e=this.props,t=e.thumbnail,n=e.frameSeek,r=e.isSelector,i=e.thumbnailsEnabled,o=e.selectionTimeline,a=e.isMobile,s=this.state,u=s.height,c=s.width,l=t.utc,f=t.position,d=t.type,p={height:u,width:c||213};if(document.getElementById("thumbnailVideo")&&document.getElementById("thumbnailVideo").videoHeight){var g=document.getElementById("thumbnailVideo").videoHeight/document.getElementById("thumbnailVideo").videoWidth;if(document.getElementById("thumbnailVideo").videoHeight*g<=160)p={height:document.getElementById("thumbnailVideo").videoHeight*g,width:document.getElementById("thumbnailVideo").videoWidth*g};else{var m=160/document.getElementById("thumbnailVideo").videoHeight;p={height:document.getElementById("thumbnailVideo").videoHeight*m,width:document.getElementById("thumbnailVideo").videoWidth*m}}}var v={left:f,bottom:105},y={position:"absolute",zIndex:1,border:"1px solid",bottom:0,left:"-".concat(p.width/2,"px")||!1};return(n||a)&&(v={left:0,top:0,width:"100%",height:"100%"},p={width:"100%",height:"100%"}),r&&(v=$i($i({},v),{},{left:-p.width/2})),h.a.createElement("div",{style:a?{left:"8px",right:"8px",bottom:"200px"}:{left:"".concat(f||0,"px"),bottom:"".concat(o?180:100,"px")}||v,className:"timeline__thumbnail".concat(a?" isMobile":"")},h.a.createElement("div",{style:a?{width:"100%"}:y},"video"===d&&!1===i&&h.a.createElement("video",{className:"timeline__thumbnail__image",style:p,id:"thumbnailVideo",src:this.buildSourceUrl(l,d),playsInline:!0,autoPlay:!0,loop:!0,controls:!1,muted:!0},h.a.createElement("track",{kind:"captions"})),"image"===d||!0===i&&h.a.createElement("img",{className:"timeline__thumbnail__image",style:{height:u},src:this.buildSourceUrl(l,d),alt:"timeline thumbnail"}),"canvas"===d&&h.a.createElement("canvas",{className:"timeline__thumbnail__image",ref:this.setThumbnailCapturerRef,style:p}),"canvas"===d&&h.a.createElement("video",{ref:this.setVideoThumbnailRef,onLoadedData:this.captureImageFromVideo,className:"timeline__thumbnail__hidden",style:p,src:this.buildSourceUrl(l,"video"),playsInline:!0,autoPlay:!0,loop:!0,controls:!1,muted:!0},h.a.createElement("track",{kind:"captions"})),h.a.createElement("span",{className:"timeline__thumbnail__caption"},this.humanify(l))))}}])}(d.Component);zi.propTypes={thumbnail:Cn.a.shape({type:Cn.a.oneOf(["image","video","canvas"]).isRequired,utc:Cn.a.number.isRequired,position:Cn.a.oneOfType([Cn.a.number,Cn.a.string]).isRequired,pageY:Cn.a.number,timelineLeft:Cn.a.number,visibleWidth:Cn.a.number.isRequired}),media:Cn.a.shape({width:Cn.a.number,height:Cn.a.number}).isRequired,streamUrl:Cn.a.string.isRequired,authToken:Cn.a.string,thumbnailsEnabled:Cn.a.bool,frameSeek:Cn.a.bool,localTime:Cn.a.bool,isSelector:Cn.a.bool,selectionTimeline:Cn.a.bool,isMobile:Cn.a.bool,basicApiConfig:Cn.a.shape({token:Cn.a.string,tokenName:Cn.a.string,auth_token:Cn.a.string,streamer_http:Cn.a.string})};var Wi=zi,Gi=qr()({displayName:"DvrSnapshotControl",className:"DvrSnapshotControl",propTypes:{onTakeSnapshotClick:Cn.a.func.isRequired},render:function(){return h.a.createElement("button",{className:"dvrp-button",onClick:this.props.onTakeSnapshotClick,title:this.props.t("dvr_take_screenshot"),"data-cy":"snapshot-button"},h.a.createElement("span",{className:"icon-screen"}))}}),Hi=Object(d.memo)(Object($r.withTranslation)()(Gi)),Ki=n(523),Yi=n.n(Ki),Qi=(n(1092),function(e){var t=e.isMuted,n=e.onChangeMuted,r=e.volume,i=e.onChangeVolume,o=e.isMobile,a=Object(d.useRef)(null),s=Object(d.useRef)(null),u=r?r/100*40:0;t&&(u=0);var c=function(e){var r=e.currentTarget.getBoundingClientRect(),o=Math.round(e.clientX-6-r.left);o>40?o=40:o<0&&(o=0);var a=o/40*100;a>0&&t&&n(!1),i(a)},l=t||0===r;return h.a.createElement("div",{className:"dvrp-volume-control","data-cy":"dvrp-volume-control"},h.a.createElement("button",{type:"button",className:"dvrp-button dvrp-volume-button",onClick:function(){0===r||t?(i(r>0?r:100),n(!1)):n(!0)},"data-cy":"DVR_mute_button"},l?h.a.createElement("span",{className:"icon-volume_off"}):h.a.createElement("span",{className:"icon-volume"})),!o&&h.a.createElement("div",{className:"dvrp-volume-panel".concat(l?"":" visible"),"data-cy":"dvrp-volume-panel",ref:a,onPointerDown:function(e){0===e.button&&(s.current=e.pointerId,a.current.setPointerCapture(e.pointerId),c(e))},onPointerMove:function(e){null!==s.current&&c(e)},onPointerUp:function(e){null!==s.current&&0===e.button&&(a.current.releasePointerCapture(s.current),s.current=null)}},h.a.createElement("div",{className:"dvrp-volume-slider"},h.a.createElement("div",{className:"dvrp-volume-slider-handle",style:{left:u}}))))});Qi.propTypes={isMuted:Cn.a.bool.isRequired,onChangeMuted:Cn.a.func.isRequired,volume:Cn.a.number.isRequired,onChangeVolume:Cn.a.func.isRequired};var Xi=Object(d.memo)(Qi),Ji=qr()({displayName:"FocusBtn",className:"FocusBtn",render:function(){return h.a.createElement("i",{style:{width:"30px",height:"30px"}},h.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 1000 1000",fill:"#fff",style:{width:"18px",height:"30px"}},h.a.createElement("g",null,h.a.createElement("path",{d:"M898.9,557.6c-25.3,176.6-164.8,316-341.3,341.4v91H442.4v-91.1c-176.6-25.3-316-164.8-341.4-341.3H10V442.4h91c25.3-176.5,164.8-316,341.4-341.3V10h115.3v91.1c176.6,25.3,316,164.8,341.4,341.3h91v115.3H898.9z M557.6,199.9c0,0,0,18.2,0,40.7c0,31.8-25.8,57.6-57.6,57.6c-31.9,0-57.6-25.8-57.6-57.6c0-22.5,0-40.7,0-40.7c-122.6,23.5-219.1,120-242.5,242.5c0,0,18.2,0,40.7,0c31.8,0,57.6,25.8,57.6,57.6s-25.8,57.6-57.6,57.6c-22.5,0-40.7,0-40.7,0c23.4,122.5,119.9,219.1,242.5,242.5c0,0,0-18.2,0-40.7c0-31.8,25.8-57.6,57.6-57.6c31.8,0,57.6,25.8,57.6,57.6c0,17,0,40.7,0,40.7c122.5-23.4,219-119.9,242.5-242.5c0,0-18.2,0-40.7,0c-31.8,0-57.6-25.8-57.6-57.6c0-31.9,25.8-57.6,57.6-57.6c22.5,0,40.7,0,40.7,0C776.7,319.8,680.2,223.3,557.6,199.9z"}))))}}),Zi=h.a.memo(Ji),eo=qr()({displayName:"MinusBtn",className:"MinusBtn",render:function(){return h.a.createElement("i",{style:{width:"14px",height:"14px"}},h.a.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"#fff",style:{width:"14px",height:"14px"},viewBox:"0 0 14 14"},h.a.createElement("path",{fill:"#fff",d:"M1 6h11v3H1z"})))}}),to=h.a.memo(eo),no=qr()({displayName:"PlusBtn",className:"PlusBtn",render:function(){return h.a.createElement("i",{style:{width:"14px",height:"14px"}},h.a.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"#fff",style:{width:"14px",height:"14px"},viewBox:"0 0 14 14"},h.a.createElement("path",{fill:"#fff",d:"M1 6h11v3H1z"}),h.a.createElement("path",{fill:"#fff",d:"M5 2h3v11H5z"})))}}),ro=h.a.memo(no),io=qr()({displayName:"SpeedBtn",className:"SpeedBtn",render:function(){var e={width:"14px",height:"14px",transform:"".concat(this.props.rotate?"rotate(180deg)":"")};return h.a.createElement("i",{style:e},h.a.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"#fff",style:{width:"16px",height:"16px"},viewBox:"0 0 14 14"},h.a.createElement("g",null,h.a.createElement("path",{d:"M 1,1 6,6 1,11"}),h.a.createElement("path",{d:"m 8,1 5,5 -5,5"}))))}}),oo=h.a.memo(io),ao=qr()({displayName:"SpeedBtnLeft",className:"SpeedBtnLeft",render:function(){return h.a.createElement("i",{style:{width:"14px",height:"14px"}},h.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 3.704 3.704"},h.a.createElement("path",{d:"m1 1 5 5-5 5M8 1l5 5-5 5",fill:"#fff",style:{width:"16px",height:"16px"},transform:"rotate(180 2.007 1.852) scale(.3088)"})))}}),so=h.a.memo(ao),uo=n(220);n(1097);function co(e,t,n){return t=On()(t),kn()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],On()(e).constructor):t.apply(e,n))}var lo=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?Number.isNaN(Number(e))?e:-1===Number(e)?"v1":(t?"a":"v")+(Number(e)+1):""},fo=function(e){function t(){var e;return c()(this,t),(e=co(this,t)).form_url=e.form_url.bind(e),e.humanTime=e.humanTime.bind(e),e.handleChange=e.handleChange.bind(e),e.handleSendTime=e.handleSendTime.bind(e),e.linkToEmbed=e.linkToEmbed.bind(e),e.showPopup=e.showPopup.bind(e),e.state={timeStart:{},timeStop:{},inputStart:null,inputStop:null,isMenuOpened:!1,popupEnabled:!1,popupText:""},e}return Pn()(t,e),s()(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.start,n=e.stop;this.setState({timeStop:this.humanTime(n),timeStart:this.humanTime(t)})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.start,r=t.stop,i=e.start,o=e.stop;r===o&&o||this.setState({timeStop:this.humanTime(r)}),n===i&&i||this.setState({timeStart:this.humanTime(n)})}},{key:"handleSendTime",value:function(e){e.persist();var t,n=e.target.dataset.type,r=this.state,i=r.inputStart,o=r.inputStop,a=this.props.handleChangeSelection;(t="start"===n?i:o)&&a(t,"start"===n?"left":"right"),this.setState({inputStop:null,inputStart:null})}},{key:"handleChange",value:function(e){e.persist();var t=e.target,n=t.value,r=t.dataset,i=r.name,o=r.type;n=Number.parseInt(n,10);var a=new Date;switch(a.setTime(1e3*this.props[o]),n<0&&(n=0),i){case"h":n>23&&(n=23),a.setHours(n);break;case"m":n>59&&(n=59),a.setMinutes(n);break;case"s":n>59&&(n=59),a.setSeconds(n)}var s=Math.round(a.getTime()/1e3);"start"===o?this.setState({inputStart:s,timeStart:this.humanTime(s)}):this.setState({inputStop:s,timeStop:this.humanTime(s)})}},{key:"form_url",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.props,i=r.name,o=r.basicApiConfig,a=r.form,s=5;if(a){var u=o.baseURL,c=o.params,l=a.state,f=l.left_selected,d=l.right_selected,h=d-f<=0?s:d-f,p=new URL("".concat(u,"/").concat(i,"/archive-").concat(Math.round(f),"-").concat(Math.round(h),".").concat(n?"ts":"mp4"));return Object.keys(c).length&&Object.keys(c).forEach((function(e){p.searchParams.append([e],c[e])})),e&&p.searchParams.append("filter.tracks",t),p}}},{key:"humanTime",value:function(e){var t=this.props.localTime;if(!(e>0))return"";var n=new Date;n.setTime(1e3*e);var r=!(!1===t),i=r?n.getHours():n.getUTCHours(),o=r?n.getMinutes():n.getUTCMinutes(),a=r?n.getSeconds():n.getUTCSeconds();return{h:i<10?"0".concat(i):i.toString(),m:o<10?"0".concat(o):o.toString(),s:a<10?"0".concat(a):a.toString()}}},{key:"linkToEmbed",value:function(){var e=this.props,t=e.basicApiConfig,n=e.playerProgressTime,r=e.name,i=t.baseURL,o=t.params,a=new URL("".concat(i,"/").concat(r,"/embed.html?dvr=true"));return Object.keys(o).length&&Object.keys(o).forEach((function(e){a.searchParams.append([e],o[e])})),n&&(a+="&from=".concat(Math.round(n))),a}},{key:"showPopup",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.t("dvr_content_copied"),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1500;this.setState({popupEnabled:!0,popupText:t}),setTimeout((function(){e.setState({popupEnabled:!1,popupText:""})}),n)}},{key:"render",value:function(){var e=this,t=this.state,n=t.timeStart,r=t.timeStop,i=t.isMenuOpened,o=t.popupEnabled,a=t.popupText,s=this.props,u=s.closeExportMenu,c=s.isTrackSelectAvaible,l=s.activeAudioTrack,f=s.activeVideoTrack,d=s.downloadOptions,p=s.start,g=s.stop,m=s.t,v=document.getElementById("forClearout"),y=document.getElementById("forClearoutTimeline"),b="".concat(lo(f,!1)).concat(lo(l,!0)),_=this.form_url(),w=this.form_url(!0,b),E=this.form_url(!1,void 0,!0),S=this.form_url(!0,b,!0);return h.a.createElement("div",{className:"control"},h.a.createElement("div",{className:"popup".concat(o?" enabled":"")},a),h.a.createElement("div",{className:"download-text"},h.a.createElement("button",{className:"bigRoundButton",onClick:u,type:"button","aria-label":m("dvr_close"),title:m("dvr_close")},h.a.createElement("span",{className:"icon-close"})),h.a.createElement("div",{className:"verticalLine"}),h.a.createElement("div",{className:"inputWrapper"},h.a.createElement("div",{className:"inputBlock"},h.a.createElement("input",{type:"number",maxLength:"2","data-type":"start","data-name":"h","data-cy":"time-select-start-h",value:n.h||"00",onChange:function(t){e.handleChange(t)},onKeyDown:function(t){t.key&&"Enter"===t.key&&e.handleSendTime(t)},onClick:function(e){e.target.focus(),e.target.select()},onBlur:this.handleSendTime,min:"0",max:"23"})),":",h.a.createElement("div",{className:"inputBlock"},h.a.createElement("input",{type:"number",maxLength:"2","data-type":"start","data-name":"m","data-cy":"time-select-start-m",value:n.m||"00",onChange:function(t){e.handleChange(t)},onKeyDown:function(t){t.key&&"Enter"===t.key&&e.handleSendTime(t)},onClick:function(e){e.target.focus(),e.target.select()},onBlur:this.handleSendTime,min:"0",max:"59"})),":",h.a.createElement("div",{className:"inputBlock"},h.a.createElement("input",{type:"number",maxLength:"2","data-type":"start","data-name":"s","data-cy":"time-select-start-s",value:n.s||"00",onChange:function(t){e.handleChange(t)},onKeyDown:function(t){t.key&&"Enter"===t.key&&e.handleSendTime(t)},onClick:function(e){e.target.focus(),e.target.select()},onBlur:this.handleSendTime,min:"0",max:"59"}))),h.a.createElement("span",{className:"separator"},"—"),h.a.createElement("div",{className:"inputWrapper"},h.a.createElement("div",{className:"inputBlock"},h.a.createElement("input",{type:"number",maxLength:"2","data-type":"stop","data-name":"h","data-cy":"time-select-end-h",value:r.h||"00",onChange:function(t){e.handleChange(t)},onKeyDown:function(t){t.key&&"Enter"===t.key&&e.handleSendTime(t)},onClick:function(e){e.target.focus(),e.target.select()},onBlur:this.handleSendTime,min:"0",max:"23"})),":",h.a.createElement("div",{className:"inputBlock"},h.a.createElement("input",{type:"number",maxLength:"2","data-type":"stop","data-name":"m","data-cy":"time-select-end-m",value:r.m||"00",onChange:function(t){e.handleChange(t)},onKeyDown:function(t){t.key&&"Enter"===t.key&&e.handleSendTime(t)},onClick:function(e){e.target.focus(),e.target.select()},onBlur:this.handleSendTime,min:0,max:59})),":",h.a.createElement("div",{className:"inputBlock"},h.a.createElement("input",{type:"number",maxLength:"2","data-type":"stop","data-name":"s","data-cy":"time-select-end-s",value:r.s||"00",onChange:function(t){e.handleChange(t)},onKeyDown:function(t){t.key&&"Enter"===t.key&&e.handleSendTime(t)},onClick:function(e){e.target.focus(),e.target.select()},onBlur:this.handleSendTime,min:"0",max:"59"}))),h.a.createElement("div",{className:"verticalLine"}),h.a.createElement("button",{className:"bigRoundButton green",onClick:function(){return e.setState({isMenuOpened:!i})},type:"button","aria-label":m("dvr_export_menu"),title:m("dvr_export_menu"),"data-cy":"open-download-menu"},h.a.createElement("span",{className:"icon-export_player"})),h.a.createElement("div",{className:"dropDown".concat(i?" visible":""),"data-cy":"download-dropdown-menu"},h.a.createElement("div",{className:"firstRow visible"},h.a.createElement("div",{className:"item",onClick:function(){return e.setState({isMenuOpened:!1})},onBlur:function(){return e.setState({isMenuOpened:!1})},title:_},h.a.createElement("a",{target:"_blank",rel:"noreferrer",href:_,title:_,onBlur:function(){return e.setState({isMenuOpened:!1})},"data-cy":"mp4-download-button"},h.a.createElement("span",{className:"smicon"},h.a.createElement("span",{className:"icon-down"})),m("dvr_download_mp4"))),c&&b.length&&h.a.createElement("a",{className:"item",href:w,title:w,target:"_blank",rel:"noreferrer"},h.a.createElement("span",{className:"smicon"},h.a.createElement("span",{className:"icon-track_player"})),h.a.createElement("span",{className:"text"},m("dvr_download_mp4_with_tracks"))),h.a.createElement("a",{className:"item",target:"_blank",href:E,title:E,rel:"noreferrer"},h.a.createElement("span",{className:"smicon"},h.a.createElement("span",{className:"icon-down"})),h.a.createElement("span",{className:"text"},m("dvr_download_ts"))),c&&b.length&&h.a.createElement("a",{className:"item",target:"_blank",href:S,title:S,rel:"noreferrer"},h.a.createElement("span",{className:"smicon"},h.a.createElement("span",{className:"icon-track_player"})),h.a.createElement("span",{className:"text"},m("dvr_download_ts_with_tracks"))),h.a.createElement(uo.CopyToClipboard,{onCopy:function(){e.showPopup()},text:this.form_url()},h.a.createElement("div",{className:"item"},h.a.createElement("span",{className:"smicon"},h.a.createElement("span",{className:"icon-share_player"})),h.a.createElement("span",{className:"text"},m("dvr_share_selected")))),h.a.createElement(uo.CopyToClipboard,{onCopy:function(){e.showPopup()},text:this.linkToEmbed()},h.a.createElement("div",{className:"item"},h.a.createElement("span",{className:"smicon"},h.a.createElement("span",{className:"icon-copy_embed"})),h.a.createElement("span",{className:"text"},m("dvr_copy_embed_url")))),d&&d.map((function(t){return h.a.createElement("div",{className:"item",key:t.title,onClick:function(){return t.callback({url:e.form_url(),duration:g-p})}},h.a.createElement("span",{className:"smicon"},h.a.createElement("span",{className:"icon-timelapse"})),h.a.createElement("span",{className:"text"},t.title))}))))),i&&Object(yr.createPortal)(h.a.createElement("div",{className:"clearDropdown",onClick:function(){return e.setState({isMenuOpened:!1})}}),v),i&&Object(yr.createPortal)(h.a.createElement("div",{className:"clearDropdown",onClick:function(){return e.setState({isMenuOpened:!1})}}),y))}}])}(h.a.Component);fo.propTypes={start:Cn.a.number.isRequired,stop:Cn.a.number.isRequired,localTime:Cn.a.bool,handleChangeSelection:Cn.a.func,closeExportMenu:Cn.a.func,basicApiConfig:Cn.a.shape({token:Cn.a.string,tokenName:Cn.a.string,auth_token:Cn.a.string,streamer_http:Cn.a.string}),activeAudioTrack:Cn.a.string,activeVideoTrack:Cn.a.oneOfType([Cn.a.string,Cn.a.number]),isTrackSelectAvaible:Cn.a.bool,playerProgressTime:Cn.a.oneOfType([Cn.a.string,Cn.a.number]),form:Cn.a.any,downloadOptions:Cn.a.arrayOf(Cn.a.shape({title:Cn.a.string,callback:Cn.a.func}))};var ho=Object($r.withTranslation)()(fo);function po(e,t,n){return t=On()(t),kn()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],On()(e).constructor):t.apply(e,n))}var go=function(e){function t(){var e;return c()(this,t),(e=po(this,t)).mouseDown=e.mouseDown.bind(e),e.mouseMove=e.mouseMove.bind(e),e.mouseUp=e.mouseUp.bind(e),e.unmountListeners=e.unmountListeners.bind(e),e.touchStart=e.touchStart.bind(e),e.touchMove=e.touchMove.bind(e),e.touchEnd=e.touchEnd.bind(e),e.state={moving:!1},e}return Pn()(t,e),s()(t,[{key:"mouseDown",value:function(e){e.preventDefault(),e.stopPropagation();var t=this.props.onMoveStart;this.setState({moving:!0}),t(),document.addEventListener("mousemove",this.mouseMove),document.addEventListener("mouseup",this.mouseUp)}},{key:"mouseUp",value:function(e){e.preventDefault(e);var t=this.props,n=t.gettingCoordinates,r=t.dom,i=t.direction,o=t.onMoveEnd;n&&n(e.pageX-r.window_left,i,!0),this.setState({moving:!1}),this.unmountListeners(),o()}},{key:"mouseMove",value:function(e){e.preventDefault(e);var t=this.props,n=t.gettingCoordinates,r=t.dom,i=t.direction;n&&n(e.pageX-r.window_left,i)}},{key:"touchStart",value:function(e){e.persist(),e.stopPropagation&&e.stopPropagation();var t=this.props.onMoveStart;this.state.moving||(this.setState({moving:!0}),t())}},{key:"touchMove",value:function(e){e.persist(),e.stopPropagation&&e.stopPropagation();var t=e.targetTouches,n=Ur()(t,1)[0].pageX,r=this.props,i=r.gettingCoordinates,o=r.dom,a=r.direction;i&&i(n-o.window_left,a)}},{key:"touchEnd",value:function(e){e.persist(),e.stopPropagation&&e.stopPropagation();var t=this.props.onMoveEnd;this.setState({moving:!1}),t()}},{key:"unmountListeners",value:function(){document.removeEventListener("mousemove",this.mouseMove),document.removeEventListener("mouseup",this.mouseUp)}},{key:"render",value:function(){var e=this.props,t=e.playerRef,n=e.streamUrl,r=e.authToken,i=e.thumbnailsEnabled,o=e.localTime,a=e.realUtc,s=e.dom,u=e.position,c=e.direction,l=e.is_mobile,f=e.basicApiConfig,d=this.state.moving,p=u<0||u>100?0:1,g=t&&t.getMetadata()||{height:0,width:0},m=document.getElementById("forPopup");return h.a.createElement("div",{className:"dvrSelector ".concat(c),style:{left:"".concat(u,"%"),opacity:p},tabIndex:"0",role:"button",onMouseDown:this.mouseDown,onTouchStart:this.touchStart,onTouchMove:this.touchMove,onTouchEnd:this.touchEnd},d&&a&&(l?Object(yr.createPortal)(h.a.createElement(Wi,{thumbnail:{utc:a,type:"video",position:0,pageY:-60,timelineLeft:s.window_left,visibleWidth:s.window_width},media:g,streamUrl:n,authToken:r,basicApiConfig:f,thumbnailsEnabled:i,localTime:o,isSelector:!0,isMobile:l}),m):h.a.createElement("div",{className:"selection_thumbnail"},h.a.createElement(Wi,{thumbnail:{utc:a,type:"video",position:0,pageY:-60,timelineLeft:s.window_left,visibleWidth:s.window_width},media:g,streamUrl:n,authToken:r,basicApiConfig:f,thumbnailsEnabled:i,localTime:o,isSelector:!0}))),h.a.createElement("span",{className:"icon-arrow_player"}))}}])}(h.a.Component);go.propTypes={position:Cn.a.number.isRequired,gettingCoordinates:Cn.a.func.isRequired,onMoveStart:Cn.a.func.isRequired,onMoveEnd:Cn.a.func.isRequired,dom:Cn.a.any,direction:Cn.a.string.isRequired,playerRef:Cn.a.any,realUtc:Cn.a.number.isRequired,streamUrl:Cn.a.string.isRequired,authToken:Cn.a.string,thumbnailsEnabled:Cn.a.bool,localTime:Cn.a.bool,is_mobile:Cn.a.bool,basicApiConfig:Cn.a.shape({token:Cn.a.string,tokenName:Cn.a.string,auth_token:Cn.a.string,streamer_http:Cn.a.string})},go.defaultProps={dom:{},authToken:"",thumbnailsEnabled:!0,localTime:!0};var mo=go;var vo=function(e,t){var n,r,i=!1;return function o(){if(i)return n=arguments,void(r=this);e.apply(this,arguments),i=!0,setTimeout((function(){i=!1,n&&(o.apply(r,n),n=r=null)}),t)}};function yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yo(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _o(e,t,n){return t=On()(t),kn()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],On()(e).constructor):t.apply(e,n))}var wo=function(e){function t(){var e;return c()(this,t),(e=_o(this,t)).gettingCoordinates=vo(e.gettingCoordinates.bind(e),100),e.handleChangeSelection=e.handleChangeSelection.bind(e),e.timeDiff=e.timeDiff.bind(e),e.setLock=e.setLock.bind(e),e.preciecePercent=e.preciecePercent.bind(e),e.focusSelection=e.focusSelection.bind(e),e.state={left:0,right:100,left_time:"",right_time:"",left_selected:0,right_selected:0,direction:""},e}return Pn()(t,e),s()(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.real_from,n=e.real_to,r=e.maxDuration;if("number"==typeof t&&"number"==typeof n){var i=n-t,o=i/100,a=Math.round((new Date).getTime()/1e3),s=10800>r?r:10800,u=n-30*o;i+2<s&&(s=30*o),a<n&&a>t&&(u=a),this.setState({left_selected:u-s,right_selected:u,left:(u-s-t)/o,right:(u-t)/o})}}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.real_from,i=n.real_to,o=n.changeSelectors,a=n.maxDuration,s=this.state,u=s.left,c=s.right,l=s.left_selected,f=s.right_selected;if(!e.real_from||!e.real_to){var d=(i-r)/100;this.setState({left_selected:Math.round(r+u*d),right_selected:Math.round(r+c*d)})}if(e.real_from!==r||e.real_to!==i){var h=(i-r)/100,p={},g=(l-r)/h,m=(f-r)/h;g===u&&m===c||(p=bo(bo({},p),{},{left:g,right:m})),Object.keys(p).length&&this.setState(p)}o(a&&f-l>a?{from:l,duration:a}:{from:l,duration:f-l})}},{key:"gettingCoordinates",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.props,i=r.dom,o=r.real_from,a=r.real_to,s=r.maxDuration,u=i.window_width,c=this.state,l=c.left,d=c.left_time,h=c.left_selected,p=c.right,g=c.right_time,m=c.right_selected,v=this.preciecePercent(e/(u/100)),y=function(e,t){return"left"===t&&e>p-1?p-1:"right"===t&&e<l+1?l+1:e};v=y(v,t);var b=a-o,_=b/100,w=Math.round(o+v*_),E=f()(f()(f()({},t,v),"".concat(t,"_time"),Dr.default.humanTime(w)),"".concat(t,"_selected"),Math.round(w));if(n){if("left"===t&&v>p){var S=bo({},E);E={left:p,left_time:g,left_selected:m,right:S.left,right_time:S.left_time,right_selected:S.left_selected}}else if("right"===t&&v<l){var x=bo({},E);E={right:l,right_time:d,right_selected:h,left:x.right,left_time:x.right_time,left_selected:x.right_selected}}if(s)if("left"===t&&m-E.left_selected>s){var k=E.left_selected+s;E=bo(bo({},E),{},{right:Math.round((k-o)/_),right_time:Dr.default.humanTime(k),right_selected:k})}else if(E.right_selected-h>s){var T=E.right_selected-s;E=bo(bo({},E),{},{left:Math.round((T-o)/_),left_time:Dr.default.humanTime(T),left_selected:T})}}s&&(E=bo(bo({},E),{},{direction:n?"":t})),this.setState(E)}},{key:"handleChangeSelection",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.props,i=r.real_from,o=r.real_to,a=r.maxDuration,s=this.state,u=s.left,c=s.left_selected,l=s.right,d=s.right_selected,h=5,p=o-i,g=p/100;Number.isNaN(e)&&(e="right"===t?o:i);var m=e,v=this.preciecePercent((m-i)/g),y=f()(f()(f()({},t,v),"".concat(t,"_time"),Dr.default.humanTime(e)),"".concat(t,"_selected"),Math.round(e));if("left"===t&&v>l){var b=d-h;m=b,y={left:Math.round(b/g),left_time:Dr.default.humanTime(b),left_selected:b}}else if("right"===t&&v<u){var _=c+h;m=_,y={right:Math.round(_/g),right_time:Dr.default.humanTime(_),right_selected:_}}if(m!==e&&(y[t]=this.preciecePercent((m-i)/g)),a)if("left"===t&&d-y.left_selected>a){var w=y.left_selected+a;y=bo(bo({},y),{},{right:Math.round((w-i)/g),right_time:Dr.default.humanTime(w),right_selected:w})}else if(y.right_selected-c>a){var E=y.right_selected-a;y=bo(bo({},y),{},{left:Math.round((E-i)/g),left_time:Dr.default.humanTime(E),left_selected:E})}if(n)return y;this.setState(y)}},{key:"timeDiff",value:function(e){var t=Math.floor(e/3600),n=Math.floor(e/60)-60*t,r=Math.floor(e)-60*t*60-60*n;return"".concat(t,":").concat(n<10?"0".concat(n):n,":").concat(r<10?"0".concat(r):r)}},{key:"setLock",value:function(e){this.setState(f()({},"".concat(e,"_lock"),!this.state["".concat(e,"_lock")]))}},{key:"preciecePercent",value:function(e){return Math.round(1e4*e)/1e4}},{key:"focusSelection",value:function(){var e=this.state,t=e.left_selected,n=e.right_selected;this.props.setFocus(t-1e3,n-t+2e3)}},{key:"render",value:function(){var e=this.state,t=e.left,n=e.right,r=e.left_time,i=e.right_time,o=e.left_selected,a=e.right_selected,s=this.props,u=s.name,c=s.dom,l=s.toggleDownload,f=s.real_from,d=s.real_to,p=s.closeExportMenu,g=s.basicApiConfig,m=s.playerProgressTime,v=s.isTrackSelectAvaible,y=s.activeAudioTrack,b=s.activeVideoTrack,_=s.form,w=s.is_mobile,E=s.downloadOptions,S=document.getElementById("forOverlays"),x=t<0?0:t,k=n>100?100:n,T=k-x;return h.a.createElement("div",{className:"selectionControls"},h.a.createElement(mo,{position:t,title:r,realUtc:o,dom:c,gettingCoordinates:this.gettingCoordinates,direction:"left",playerRef:this.props.playerRef,streamUrl:this.props.streamUrl,authToken:this.props.authToken,thumbnailsEnabled:this.props.thumbnailsEnabled,localTime:this.props.localTime,onMoveStart:this.props.onMoveStart,onMoveEnd:this.props.onMoveEnd,is_mobile:w,basicApiConfig:g}),0!==o&&0!==a&&h.a.createElement("div",{className:"selectionLength",style:{left:"".concat(x,"%"),right:"".concat(k,"%"),width:"".concat(T,"%"),opacity:"".concat(t<0&&n<0||t>100&&n>100||n-t<3?0:1)}}),0!==o&&0!==a&&h.a.createElement("div",{className:"selectionLength second",style:{left:"".concat(x,"%"),right:"".concat(k,"%"),width:"".concat(T,"%"),opacity:"".concat(t<0&&n<0||t>100&&n>100||n-t<3?0:1)}}),h.a.createElement(mo,{position:n,title:i,realUtc:a,dom:c,gettingCoordinates:this.gettingCoordinates,direction:"right",playerRef:this.props.playerRef,streamUrl:this.props.streamUrl,authToken:this.props.authToken,thumbnailsEnabled:this.props.thumbnailsEnabled,localTime:this.props.localTime,onMoveStart:this.props.onMoveStart,onMoveEnd:this.props.onMoveEnd,is_mobile:w,basicApiConfig:g}),S&&Object(yr.createPortal)(h.a.createElement("div",{className:"downloadBlock","data-cy":"downloadBlock"},h.a.createElement("div",{id:"forDownloadModal"},h.a.createElement(ho,{name:u,url:this.props.http_stream_url,auth_token:this.props.auth_token,start:o,stop:a,locale:this.props.locale,focusSelection:this.focusSelection,handleChangeSelection:this.handleChangeSelection,toggleDownload:l,downloadActive:t>=0&&n>=0,focusAvailable:o<f||a>d,closeExportMenu:p,basicApiConfig:g,playerProgressTime:m,isTrackSelectAvaible:v,activeAudioTrack:y,activeVideoTrack:b,form:_,downloadOptions:E}))),S))}}])}(h.a.Component);wo.propTypes={real_from:Cn.a.number,real_to:Cn.a.number,dom:Cn.a.any,http_stream_url:Cn.a.string,auth_token:Cn.a.string,name:Cn.a.string,locale:Cn.a.oneOf(["ru","en"]),toggleDownload:Cn.a.func,changeSelectors:Cn.a.func,maxDuration:Cn.a.number,setFocus:Cn.a.func,playerRef:Cn.a.any,media:Cn.a.shape({width:Cn.a.number,height:Cn.a.number}),streamUrl:Cn.a.string,authToken:Cn.a.string,thumbnailsEnabled:Cn.a.bool,frameSeek:Cn.a.bool,localTime:Cn.a.bool,closeExportMenu:Cn.a.func,basicApiConfig:Cn.a.shape({token:Cn.a.string,tokenName:Cn.a.string,auth_token:Cn.a.string,streamer_http:Cn.a.string}),activeAudioTrack:Cn.a.string,activeVideoTrack:Cn.a.oneOfType([Cn.a.string,Cn.a.number]),isTrackSelectAvaible:Cn.a.bool,onMoveStart:Cn.a.func.isRequired,onMoveEnd:Cn.a.func.isRequired,playerProgressTime:Cn.a.oneOfType([Cn.a.string,Cn.a.number]),form:Cn.a.any,is_mobile:Cn.a.bool,downloadOptions:Cn.a.arrayOf(Cn.a.shape({title:Cn.a.string,callback:Cn.a.func}))},wo.defaultProps={};var Eo=wo,So=(n(1099),n(288));function xo(e,t,n){return t=On()(t),kn()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],On()(e).constructor):t.apply(e,n))}var ko=function(e){function t(){var e;return c()(this,t),(e=xo(this,t)).handleTrackChange=e.handleTrackChange.bind(e),e.setDropdownVisible=e.setDropdownVisible.bind(e),e.showSubmenu=e.showSubmenu.bind(e),e.closeSubmenu=e.closeSubmenu.bind(e),e.showPopup=e.showPopup.bind(e),e.state={dropdownVisible:!1,secondRow:!1,secondRowContent:"",popupEnabled:!1,popupText:"",debugData:""},e}return Pn()(t,e),s()(t,[{key:"componentDidMount",value:function(){var e;this.setState({debugData:(e=null==So?void 0:So.version,"Build version: ".concat(e))})}},{key:"setDropdownVisible",value:function(){this.setState({dropdownVisible:!this.state.dropdownVisible,secondRow:!1})}},{key:"handleTrackChange",value:function(e,t){var n=this.props.returnData,r=e.target.dataset.value;n("autoVideoTrack","-1"===r),n(t,r||"0"),n("forceStartTrack",!1),this.setState({secondRow:!1})}},{key:"showSubmenu",value:function(e){this.setState({secondRow:!0,secondRowContent:e})}},{key:"closeSubmenu",value:function(){this.setState({secondRow:!1,secondRowContent:""})}},{key:"showPopup",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.t("dvr_content_copied"),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1500;this.setState({popupEnabled:!0,popupText:t}),setTimeout((function(){e.setState({popupEnabled:!1,popupText:""})}),n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.tracksVideo,r=t.tracksAudio,i=t.ott,o=t.live,a=t.t,s=t.activeVideoTrack,u=t.activeAudioTrack,c=this.state,l=c.dropdownVisible,f=c.secondRow,p=c.secondRowContent,g=c.popupText,m=c.popupEnabled,v=c.debugData,y="auto",b="auto";n.forEach((function(e){s==e.track_id&&(y=e.text)})),r.forEach((function(e){u==e.track_id&&(b=e.text)}));var _=document.getElementById("forOverlays"),w=document.getElementById("forClearout"),E=document.getElementById("forClearoutTimeline");return h.a.createElement(d.Fragment,null,h.a.createElement("div",{className:"dropDownWrapper"},h.a.createElement("button",{className:"dvrp-button",onClick:this.setDropdownVisible},h.a.createElement("span",{className:"icon-settings_player"}))),l&&Object(yr.createPortal)(h.a.createElement("div",{className:"dropDown".concat(l?" visible":"")},h.a.createElement("div",{className:"firstRow".concat(f?"":" visible")},this.props.tracksVideo.length>1&&h.a.createElement("div",{className:"item",onClick:function(){e.showSubmenu("tracksVideo")}},h.a.createElement("div",{className:"left"},h.a.createElement("span",{className:"ddicon"},h.a.createElement("span",{className:"icon-hd"})),a("dvr_video_quality")),h.a.createElement("div",{className:"right"},y)),this.props.tracksAudio.length>1&&h.a.createElement("div",{className:"item",onClick:function(){e.showSubmenu("tracksAudio")}},h.a.createElement("div",{className:"left"},h.a.createElement("span",{className:"ddicon"},h.a.createElement("span",{className:"icon-track_player"})),a("dvr_audio_track")),h.a.createElement("div",{className:"right"},b))),h.a.createElement("div",{className:"secondRow".concat(f?" visible":"")},h.a.createElement("div",{className:"item",onClick:this.closeSubmenu},h.a.createElement("span",{className:"ddicon"},h.a.createElement("span",{className:"icon-date_two_player"})),a("tracksVideo"===p?"dvr_video_quality":"dvr_audio_track")),p&&"tracksVideo"===p&&(!o||i)&&h.a.createElement(Oo,{key:"drop_auto",value:"-1",text:a("dvr_auto"),active:"auto"===y,handleTrackChange:function(t){e.handleTrackChange(t,"activeVideoTrack")}}),p&&this.props[p]&&this.props[p].map((function(t){var n="tracksVideo"===p?y:b;return h.a.createElement(Oo,{key:"drop_".concat(t.track_id),value:t.track_id,text:t.text,active:n==t.text,handleTrackChange:function(t){e.handleTrackChange(t,"tracksVideo"===p?"activeVideoTrack":"activeAudioTrack")}})}))),h.a.createElement(uo.CopyToClipboard,{text:v,onCopy:function(){e.showPopup()}},h.a.createElement("div",{className:"item"},a("copy_debug_data"))),h.a.createElement("div",{className:"popupCopyDebug".concat(m?" enabled":"")},g)),_),l&&Object(yr.createPortal)(h.a.createElement("div",{className:"clearDropdown",onClick:this.setDropdownVisible}),w),l&&Object(yr.createPortal)(h.a.createElement("div",{className:"clearDropdown",onClick:this.setDropdownVisible}),E))}}])}(d.Component);ko.propTypes={returnData:Cn.a.func,tracksAudio:Cn.a.array,tracksVideo:Cn.a.array,activeAudioTrack:Cn.a.string,activeVideoTrack:Cn.a.oneOfType([Cn.a.string,Cn.a.number]),live:Cn.a.bool,ott:Cn.a.bool},ko.defaultProps={ott:!1};var To=Object($r.withTranslation)()(ko);function Oo(e){return h.a.createElement("div",{className:"item".concat(e.active?" active":""),"data-value":e.value,onClick:e.handleTrackChange},e.text)}var Ro=n(284),Po=n.n(Ro),Ao=function(e){var t=e.isFullscreen,n=e.onChangeFullscreenState;return h.a.createElement("button",{onClick:function(e){n(!t),e.target.blur()},type:"button",className:"dvrp-button","data-cy":"DVR_fullscreen_button"},t?h.a.createElement("span",{className:"icon-screen_player"}):h.a.createElement("span",{className:"icon-full"}))};Ao.propTypes={isFullscreen:Cn.a.bool.isRequired,onChangeFullscreenState:Cn.a.func.isRequired};var Co=Object(d.memo)(Ao);function Lo(e,t,n){return t=On()(t),kn()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],On()(e).constructor):t.apply(e,n))}var Do=function(e){function t(){var e;return c()(this,t),e=Lo(this,t),f()(e,"formRef",h.a.createRef()),e.onRangesLoaded=e.onRangesLoaded.bind(e),e.onThumbnail=vo(e.onThumbnail.bind(e),250),e.faster=e.faster.bind(e),e.slower=e.slower.bind(e),e.toggleCalendar=e.toggleCalendar.bind(e),e.setTimelineZoom=e.setTimelineZoom.bind(e),e.calendarDayChanged=e.calendarDayChanged.bind(e),e.controlBtn=e.controlBtn.bind(e),e.startScale=e.startScale.bind(e),e.stopScale=e.stopScale.bind(e),e.startScrollLeft=e.startScrollLeft.bind(e),e.startScrollRight=e.startScrollRight.bind(e),e.stopScroll=e.stopScroll.bind(e),e.scrollToPoint=e.scrollToPoint.bind(e),e.handlePause=e.handlePause.bind(e),e.setDvrTimelineRef=e.setDvrTimelineRef.bind(e),e.onTakeSnapshotClick=e.onTakeSnapshotClick.bind(e),e.keyListener=e.keyListener.bind(e),e.mobileVolumeClick=e.mobileVolumeClick.bind(e),e.toggleDownload=e.toggleDownload.bind(e),e.domSizes=e.domSizes.bind(e),e.returnVisual=e.returnVisual.bind(e),e.changeSelectors=e.changeSelectors.bind(e),e.perFrameSeek=e.perFrameSeek.bind(e),e.setFocus=e.setFocus.bind(e),e.pointSelectTime=e.pointSelectTime.bind(e),e.changeVolumeHandler=e.changeVolumeHandler.bind(e),e.wheelChange=e.wheelChange.bind(e),e.dragGesture=e.dragGesture.bind(e),e.handleDvrSelectionMovingStart=e.handleDvrSelectionMovingStart.bind(e),e.handleDvrSelectionMovingEnd=e.handleDvrSelectionMovingEnd.bind(e),e.changeFullscreenStateHandler=e.changeFullscreenStateHandler.bind(e),e.seekLiveFunc=e.seekLiveFunc.bind(e),e.dragGesture.active=!0,e.hasEpisodesChanged=e.hasEpisodesChanged.bind(e),e.state={range_info:{ranges:[],motion:[]},allRangeInfo:{},calendarOpened:!1,mobileVolumeClicked:!1,downloadModal:!0,real_from:0,real_to:86400,duration:10,thumbnail:{},isFooterVisible:!0,selectionTimeline:!1,isDvrSelectionMoving:!1,timeInfo:{url:"",time:""}},e.timelineRef=h.a.createRef(),e.timeoutIdRef=h.a.createRef(),e.preventDefault=function(e){return e.preventDefault()},e}return Pn()(t,e),s()(t,[{key:"componentDidMount",value:function(){this.keydown=document.addEventListener("keydown",this.keyListener);var e=this.props,t=e.from,n=e.now,r=e.fixedRange,i=e.to,o=e.zoom,a=(o<300?300:o)||3600,s=(t||n||this.now())-2*a/3,u=(t||n||this.now())+1*a/3;r&&(t||i)&&(s=t),this.setState({real_from:s,real_to:u});var c=this.timelineRef.current;c&&c.addEventListener("wheel",this.preventDefault)}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.allRanges,i=n.multiTimeline,o=n.selected,a=n.forceScrollToPoint,s=n.returnData;if(!r.loaded_at&&e.allRanges.loaded_at||r.loaded_at&&e.allRanges.loaded_at&&r.loaded_at!==e.allRanges.loaded_at||o!==e.selected||this.hasEpisodesChanged(e.motion_log)){var u={};i?(Object.keys(e.allRanges).forEach((function(n){u[n]=t.onRangesLoaded({ranges:e.allRanges[n],motion_log:e.motion_log},n)})),this.setState({allRangeInfo:u})):(u[e.selected]=this.onRangesLoaded({ranges:e.allRanges[e.selected],motion_log:e.motion_log},e.selected),this.setState({allRangeInfo:u}))}a&&(this.scrollToPoint(),s("forceScrollToPoint",!1))}},{key:"shouldComponentUpdate",value:function(e,t){var n=this.props.maxDuration,r=this.state.duration;return!(r!==t.duration&&r>n)}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.playerProgressTime;if(e.playerProgressTime!==n){var r=Object(Dr.currentUrl)(document.location.href,{from:Math.round(n)});this.setState({timeInfo:{url:r,time:Object(Dr.humanTime)(n)}})}}},{key:"componentDidCatch",value:function(e){if(e instanceof Error){var t=this.props;(0,t.onEvent)(t.name,{key:Date.now(),data:{event:"player_error",error_name:e.name,error_message:e.message}})}console.log(e)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.keyListener);var e=this.timelineRef.current;e&&e.removeEventListener("wheel",this.preventDefault)}},{key:"handlePause",value:function(e){var t=this.props;(0,t.returnData)("paused",!t.paused),e&&e.target.blur()}},{key:"handleDvrSelectionMovingStart",value:function(){this.setState({isDvrSelectionMoving:!0})}},{key:"handleDvrSelectionMovingEnd",value:function(){this.setState({isDvrSelectionMoving:!1})}},{key:"onRangesLoaded",value:function(e,t){var n=this.props.t,r=this.state,i=(r.allRangeInfo,r.range_info),o=e.ranges,a=[],s=!1;e.motion_log&&("episodes"in e.motion_log?(a=e.motion_log.episodes,s=!0):a=e.motion_log);var u="#197f70",c="#2f4858",l="#f0ad4e";a=a.filter((function(e){return s?e:"motion"===e.type&&"range"===e.subtype&&!!e.data})).map((function(e){var t,r={};if(s){var i,o,a="";switch(e.episode_type){case"face":i=n("dvr_episode_type_person"),o=u,a=null===(t=e.matched_persons)||void 0===t?void 0:t.map((function(e){return e.person.name||""})).join(", ");break;case"vehicle":i=n("dvr_episode_type_plate"),o=c,a=e.license_plate_text;break;case"generic":i=n("dvr_episode_type_motion"),o=l}r={from:Math.round(e.opened_at/1e3)||e.at,duration:Math.round((e.closed_at-e.opened_at)/1e3)||10,color:o||l,title:i||"",note:a||""}}else r={from:e.data.start||e.at,duration:e.data.duration||10,color:e.color||"",title:e.title||"",note:e.note||""};return r}));var f=[];Array.prototype.push.apply(f,i.brief_thumbnails),Array.prototype.push.apply(f,e.brief_thumbnails),f.sort();for(var d=0;d<f.length-1;)f[d]===f[d+1]?f.splice(d,1):d++;return{ranges:o,motion:a,brief_thumbnails:f,loaded_at:this.now_ms()}}},{key:"onThumbnail",value:function(e,t,n,r,i,o){this.state.isDvrSelectionMoving||("clear"===e&&this.setState({thumbnail:null}),this.setState({thumbnail:{utc:t,type:e,position:n,pageY:r,timelineLeft:i,visibleWidth:o}}))}},{key:"onTakeSnapshotClick",value:function(){var e=this.props.onTakeSnapshotClick;e()}},{key:"setDvrTimelineRef",value:function(e){!this.dvrTimelineRef&&e&&(this.dvrTimelineRef=e)}},{key:"setFocus",value:function(e,t){this.dvrTimelineRef.setState({v_from:e,v_duration:t})}},{key:"setIsFooterVisible",value:function(e){var t=this.state.isFooterVisible;this.setState({isFooterVisible:e||!t})}},{key:"now",value:function(){return Math.round(this.now_ms()/1e3)}},{key:"now_ms",value:function(){return Math.round((new Date).getTime())}},{key:"faster",value:function(e){e.preventDefault();var t=this.props;(0,t.changeSpeed)(2*(t.playback_speed||1)),e&&e.target.blur()}},{key:"slower",value:function(e){e.preventDefault();var t=this.props;(0,t.changeSpeed)(.5*(t.playback_speed||1)),e&&e.target.blur()}},{key:"toggleCalendar",value:function(e){e.preventDefault();var t=this.props.onCalendarToggle,n=this.state.calendarOpened;n?this.setState({calendarOpened:!1}):this.setState({calendarOpened:!0}),t&&t(!n)}},{key:"setTimelineZoom",value:function(e,t){var n=this.props,r=n.playerRef,i=n.returnData;if(this&&this.dvrTimelineRef){this.dvrTimelineRef.setState({v_from:Number(e)-3600,v_duration:Number(t)-Number(e)+3600}),i("resolution",(t-e)/r.wrapper.offsetWidth)}}},{key:"calendarDayChanged",value:function(e){var t=this;setTimeout((function(){(0,t.props.onSeek)(e,!0),t.dvrTimelineRef.dataChange()}),0)}},{key:"startScale",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this&&this.dvrTimelineRef)return this.dvrTimelineRef.startScale(e,t,n)}},{key:"stopScale",value:function(){if(this&&this.dvrTimelineRef)return this.dvrTimelineRef.stopScale()}},{key:"startScrollLeft",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this&&this.dvrTimelineRef)return this.dvrTimelineRef.startScrollLeft(e,t)}},{key:"startScrollRight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this&&this.dvrTimelineRef)return this.dvrTimelineRef.startScrollRight(e,t)}},{key:"stopScroll",value:function(e){if(this&&this.dvrTimelineRef)return this.dvrTimelineRef.stopScroll(e)}},{key:"scrollToPoint",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.playerProgressTime,t=e;if(this&&this.dvrTimelineRef)return this.dvrTimelineRef.scrollToPoint(t)}},{key:"controlBtn",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4?arguments[4]:void 0,o="".concat(e);return h.a.createElement("button",{onMouseDown:t,onTouchStart:t,onMouseUp:n,onTouchEnd:n,type:"button",className:o,"data-cy":r},i)}},{key:"mobileVolumeClick",value:function(e){var t=this.state.mobileVolumeClicked;this.setState({mobileVolumeClicked:!t}),e&&e.target.blur()}},{key:"toggleDownload",value:function(){var e=this.state.downloadModal;this.setState({downloadModal:!e,calendarOpened:!1})}},{key:"domSizes",value:function(e){this.setState({dom:e})}},{key:"returnVisual",value:function(e){this.setState(e)}},{key:"pointSelectTime",value:function(e){var t=e.clientX,n=this.formRef.current;if(n){var r=n.state,i=r.left,o=r.right,a=this.state.dom,s=a.window_width,u=a.window_left,c=n.preciecePercent(t/((s-u)/100)),l="left";l=c<i?"left":c>o?"right":c<i+(o-i)/2?"left":"right",n.gettingCoordinates(t-u,l,!0)}}},{key:"changeSelectors",value:function(e){var t=this.state,n=t.from,r=t.duration,i={};n!==e.from&&(i.from=e.from),r!==e.duration&&(i.duration=e.duration),Object.keys(i).length&&this.setState(i)}},{key:"perFrameSeek",value:function(e){var t=this.props,n=t.paused,r=t.seekFrameEnabled,i=t.returnData;n&&!r?i("seekFrameEnabled",!0):(i("seekFrameEnabled",!n),this.handlePause()),e&&e.target.blur()}},{key:"changeVolumeHandler",value:function(e){(0,this.props.returnData)("volume",e)}},{key:"keyListener",value:function(e){var t=this.props,n=t.live,r=t.playerProgressTime,i=t.fastSeek,o=t.onSeek;if("Space"===e.code&&(n?this.handlePause():this.perFrameSeek()),"ArrowUp"===e.code&&this.scrollToPoint(),"NumpadAdd"!==e.code&&"Equal"!==e.code||this.startScale(null,"in",!0),"NumpadSubtract"!==e.code&&"Minus"!==e.code||this.startScale(null,"out",!0),!e.ctrlKey||"ArrowRight"!==e.code&&39!==e.which||this.startScrollRight(null,!0),!e.ctrlKey||"ArrowLeft"!==e.code&&37!==e.which||this.startScrollLeft(null,!0),"ArrowRight"!==e.code||n||i(r+10,"forward"),"ArrowLeft"===e.code){if(n)return void o(r-60);i(r-10,"backward")}}},{key:"wheelChange",value:function(e){var t=e.deltaY,n=this.stopScale();return this.prevDelta&&(this.prevDelta<0&&t>0||this.prevDelta>0&&t<0)?n=this.stopScale():t<0?n=this.startScale(e,"in",!0):t>0&&(n=this.startScale(e,"out",!0)),this.prevDelta=t,n}},{key:"dragGesture",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e.persist();var r=this.props.dvr_enabled;if(r){var i="targetTouches"in e;if(e.stopPropagation&&e.stopPropagation(),i||e.preventDefault&&e.preventDefault(),e.cancelBubble=!0,e.returnValue=!1,n){if(i){var o=e.targetTouches,a=Ur()(o,1),s=a[0],u=s.clientX,c=s.clientY;this.prevTouch,this.prevTouch={clientX:u,clientY:c}}if(t){var l=e.clientX,f=e.clientY;this.dvrTimelineRef.onDragStart(e,i),this.touchStarted=!0,this.prevTouch={clientX:l,clientY:f}}else if(this.touchStarted){var d=e.movementX,h=e.movementY;d?this.dvrTimelineRef.onDrag(e,i):h&&(h<-1?this.toggleSelectionTimeline(!0):h>1&&this.toggleSelectionTimeline(!1))}i&&this.dvrTimelineRef.onDrag(e,i)}}}},{key:"toggleSelectionTimeline",value:function(e){this.props.allowExport&&this.setState({selectionTimeline:e})}},{key:"changeFullscreenStateHandler",value:function(e){(0,this.props.returnData)("fullscreen",e)}},{key:"seekLiveFunc",value:function(){(0,this.props.onSeek)("live"),this.scrollToPoint(Math.round(this.now()))}},{key:"hasEpisodesChanged",value:function(e){var t=this.props.motion_log;return t.episodes&&e.episodes&&t.episodes.length!==e.episodes.length}},{key:"render",value:function(){var e=this,t=this.props,n=t.selected,r=t.auth_token,i=t.basicApiConfig,o=t.dvr_ranges_present,a=t.onSeek,s=t.from,u=t.now,c=t.zoom,l=t.debug,f=t.thumbnails_enabled,p=t.onRangesRequested,g=t.is_mobile,m=t.http_stream_url,v=t.currentTime,y=t.returnData,b=t.observableRanges,_=t.multiTimeline,w=t.fixedRange,E=t.localTime,S=t.ui,x=t.playerRef,k=t.onMetadataRequest,T=t.paused,O=t.muted,R=t.onToggleMuted,P=t.playerProgressTime,A=t.volume,C=t.live,L=t.playback_speed,D=t.locale,I=t.maxDuration,j=t.enableMp4Download,M=t.downloadOptions,N=t.activeVideoTrack,F=t.activeAudioTrack,U=t.tracksVideo,B=t.tracksAudio,q=t.rangesLoading,$=t.dvr_enabled,V=t.isFullscreen,z=t.noFullscreen,W=t.zoomSensivity,G=t.calendarRanges,H=t.t,K=t.allowExport,Y=this.state,Q=Y.real_from,X=Y.real_to,J=Y.thumbnail,Z=Y.range_info,ee=Y.allRangeInfo,te=Y.dom,ne=Y.calendarOpened,re=Y.isFooterVisible,ie=Y.selectionTimeline,oe=Y.timeInfo,ae=J&&J.position,se=document.getElementById("videoThumbnail"),ue=document.getElementById("forCalendar");return h.a.createElement(d.Fragment,null,h.a.createElement("div",{id:"forOverlays"}),h.a.createElement("div",{className:"dvrp-top".concat(re?" _visible":""),"data-cy":"dvrp-top"},h.a.createElement("div",{className:"dvrp-controls"},P&&h.a.createElement("div",{className:"timeStamp","data-cy":"timeStamp"},h.a.createElement("a",{href:oe.url},oe.time)),h.a.createElement(Po.a,{live:C,seekLiveFunc:this.seekLiveFunc}))),h.a.createElement("div",{className:"dvrp-bottom-gradient".concat(re?" _visible":"")}),h.a.createElement("div",{className:"dvrp-footer".concat(re?" _visible":""),"data-cy":"dvrp-footer",onWheel:function(t){$&&e.wheelChange(t)},onContextMenu:function(t){var n=t||window.event;e.dragGesture(n,!1,!1)},onMouseDown:function(t){e.dragGesture(t,!0)},onMouseUp:function(){e.touchStarted=!1,$&&e.dvrTimelineRef&&e.dvrTimelineRef.onDragEnd()},onMouseLeave:function(){e.touchStarted=!1,$&&e.dvrTimelineRef&&e.dvrTimelineRef.onDragEnd()},onMouseMove:function(t){e.touchStarted&&e.dragGesture(t,!1)},onTouchStart:function(t){e.dragGesture(t,!0)},onTouchMove:function(t){e.dragGesture(t)},onTouchEnd:this.dvrTimelineRef&&this.dvrTimelineRef.onDragEnd,onDragStart:function(){return!1},draggable:!1},h.a.createElement("div",{className:"dvr-timeline","data-cy":"dvr-timeline",ref:this.timelineRef},$&&h.a.createElement(Bi,{ref:this.setDvrTimelineRef,onSeek:a,from:s,now:u,zoom:c,utc:u,debug:l,thumbnails_enabled:f,onRangesRequested:p,onCallThumbnail:this.onThumbnail,range_info:Z,is_mobile:g,auth_token:r,http_stream_url:m,currentTime:v,returnData:y,observableRanges:b,allRangeInfo:ee,multiTimeline:_,selected:n,toggleDownload:this.toggleDownload,returnDomSizes:this.domSizes,returnVisual:this.returnVisual,fixedRange:w,localTime:E,pointSelectTime:this.pointSelectTime,selectionTimeline:ie,zoomSensivity:W}),J&&J.utc&&se&&!g&&Object(yr.createPortal)(h.a.createElement(Wi,{thumbnail:J,media:k(),streamUrl:m,authToken:r,thumbnailsEnabled:f,localTime:E,selectionTimeline:ie,basicApiConfig:i}),se),ae>0&&h.a.createElement("div",{className:"timeLineCursor",style:{left:"".concat(ae,"px")}}),ie&&$&&o&&j&&h.a.createElement(Eo,{ref:this.formRef,dom:te,real_from:Q,real_to:X,name:n,http_stream_url:m,auth_token:r,locale:D,toggleDownload:this.toggleDownload,changeSelectors:this.changeSelectors,maxDuration:I,setFocus:this.setFocus,streamUrl:m,authToken:r,thumbnailsEnabled:f,localTime:E,playerRef:x,closeExportMenu:function(){e.toggleSelectionTimeline(!1)},basicApiConfig:i,activeVideoTrack:N,activeAudioTrack:F,isTrackSelectAvaible:U.length>1||B.length>1,playerProgressTime:P,form:this.formRef.current,onMoveStart:this.handleDvrSelectionMovingStart,onMoveEnd:this.handleDvrSelectionMovingEnd,is_mobile:g,downloadOptions:M})),h.a.createElement("div",{className:"dvrp-controls","data-cy":"dvrp-controls"},h.a.createElement("div",{className:"dvrp-left-controls","data-cy":"dvrp-left-controls"},$&&h.a.createElement("button",{type:"button",className:"dvrp-button","data-cy":"DVR_play_button",onClick:C?this.handlePause:this.perFrameSeek,title:H(T?"dvr_play":"dvr_pause")},T?h.a.createElement("span",{className:"icon-play_player"}):h.a.createElement("span",{className:"icon-pause_player"})),B.length>0&&h.a.createElement(Xi,{isMuted:O,volume:A,onChangeMuted:R,onChangeVolume:this.changeVolumeHandler,isMobile:g}),$&&h.a.createElement("button",{className:"dvrp-button",id:"centerZoom","data-cy":"centerZoom",onClick:function(t){e.scrollToPoint(),t&&t.target.blur()},type:"button",title:H("dvr_go_to_carret_position"),"aria-label":H("dvr_go_to_carret_position")},h.a.createElement(Zi,null)),$&&h.a.createElement("div",{style:{display:"flex"}},this.controlBtn("dvrp-button",(function(t){e.startScale(t,"out",!1)}),this.stopScale,"zoom_out",h.a.createElement(to,null)),this.controlBtn("dvrp-button",(function(t){e.startScale(t,"in",!1)}),this.stopScale,"zoom_in",h.a.createElement(ro,null))),$&&!g&&this.controlBtn("dvrp-button",this.startScrollLeft,this.stopScroll,"seek_left",h.a.createElement(li,null)),$&&!g&&this.controlBtn("dvrp-button",this.startScrollRight,this.stopScroll,"seek_right",h.a.createElement(di,null)),$&&h.a.createElement("div",{className:"timeline__speedControls".concat(C?" hidden":"")},h.a.createElement("button",{className:"dvrp-button",onClick:this.slower,title:H("dvr_slower"),type:"button","data-cy":"slower","aria-label":H("dvr_slower")},h.a.createElement(so,null)),h.a.createElement("div",null,"x".concat(L)),h.a.createElement("button",{className:"dvrp-button",onClick:this.faster,title:H("dvr_faster"),type:"button","data-cy":"faster","aria-label":H("dvr_faster")},h.a.createElement(oo,null)))),h.a.createElement("div",{className:"dvrp-right-controls","data-cy":"dvrp-right-controls"},m&&h.a.createElement(d.Fragment,null,h.a.createElement("div",{className:"timeline__snapshotControl"},h.a.createElement(Hi,{onTakeSnapshotClick:this.onTakeSnapshotClick}))),"ott"!==S&&$&&K&&h.a.createElement("button",{className:"dvrp-button",onClick:function(){e.toggleSelectionTimeline(!ie)},title:H("dvr_select_export"),type:"button","data-cy":"select_export","aria-label":H("dvr_select_export")},h.a.createElement("span",{className:"icon-export"})),$&&G.length>0&&h.a.createElement("button",{id:"calendarControl","data-cy":"calendarControl",className:"dvrp-button",onClick:this.toggleCalendar,type:"button",title:H("dvr_calendar"),"aria-label":H("dvr_calendar")},h.a.createElement("span",{className:"icon-date_player"})),h.a.createElement(To,{tracksAudio:B,tracksVideo:U,activeAudioTrack:F,activeVideoTrack:N,returnData:y,live:C,openExportMenu:function(){e.toggleSelectionTimeline(!0)}}),!z&&h.a.createElement(Co,{isFullscreen:V,onChangeFullscreenState:this.changeFullscreenStateHandler})),ne&&Object(yr.createPortal)(h.a.createElement("div",{id:"calendarModal",className:"calendar"},h.a.createElement(Yi.a,{now:u||this.now(),onChange:this.calendarDayChanged,locale:D,toggleCalendar:this.toggleCalendar,calendarRanges:G,setTimelineZoom:this.setTimelineZoom,isMobile:g})),ue)),h.a.createElement("div",{id:"forClearoutTimeline"})),l&&h.a.createElement("div",{className:"rangesLoading".concat(q?" visible":"")},h.a.createElement("span",null,"•"),H("dvr_ranges_loading")))}}])}(d.Component);Do.propTypes={playerProgressTime:Cn.a.oneOfType([Cn.a.string,Cn.a.number]),ranges:Cn.a.shape({brief_thumbnails:Cn.a.arrayOf(Cn.a.any),motion_log:Cn.a.any,ranges:Cn.a.arrayOf(Cn.a.shape({opened_at:Cn.a.number,closed_at:Cn.a.number})),stream:Cn.a.string}),observableRanges:Cn.a.shape({start:Cn.a.number,end:Cn.a.number}),calendarRanges:Cn.a.arrayOf(Cn.a.shape({from:Cn.a.number,duration:Cn.a.number})),returnData:Cn.a.func,live:Cn.a.bool,muted:Cn.a.bool,thumbnails_enabled:Cn.a.bool,changeSpeed:Cn.a.func,playback_speed:Cn.a.number,locale:Cn.a.oneOf(["ru","en"]),from:Cn.a.number,now:Cn.a.oneOfType([Cn.a.string,Cn.a.number]),zoom:Cn.a.number,debug:Cn.a.bool,localTime:Cn.a.bool,is_mobile:Cn.a.bool,http_stream_url:Cn.a.string,auth_token:Cn.a.string,onMetadataRequest:Cn.a.func,onToggleMuted:Cn.a.func,onTakeSnapshotClick:Cn.a.func,onSeek:Cn.a.func,onCalendarToggle:Cn.a.func,currentTime:Cn.a.any,dvr_ranges_present:Cn.a.bool,dvr_enabled:Cn.a.bool,paused:Cn.a.bool,multiTimeline:Cn.a.bool,selected:Cn.a.string,rangesLoading:Cn.a.bool,fastSeek:Cn.a.func,volume:Cn.a.number,enableMp4Download:Cn.a.bool,downloadOptions:Cn.a.arrayOf(Cn.a.shape({title:Cn.a.string,callback:Cn.a.func})),seekFrameEnabled:Cn.a.bool,fixedRange:Cn.a.bool,ui:Cn.a.oneOf(["ott","nvr"]),playerRef:Cn.a.any,maxDuration:Cn.a.number,tracksAudio:Cn.a.array,tracksVideo:Cn.a.array,activeAudioTrack:Cn.a.string,activeVideoTrack:Cn.a.oneOfType([Cn.a.string,Cn.a.number]),basicApiConfig:Cn.a.shape({token:Cn.a.string,tokenName:Cn.a.string,auth_token:Cn.a.string,streamer_http:Cn.a.string}),streams:Cn.a.any,isFullscreen:Cn.a.bool.isRequired,noFullscreen:Cn.a.bool.isRequired,zoomSensivity:Cn.a.number,allowExport:Cn.a.bool};var Io=Object($r.withTranslation)()(Do),jo=function(e){var t=e.isPaused,n=e.onChangePlayState;return h.a.createElement("button",{onClick:function(e){n(!t),e.target.blur()},type:"button",className:"dvrp-button","data-cy":"DVR_play_button"},t?h.a.createElement("span",{className:"icon-play_player"}):h.a.createElement("span",{className:"icon-pause_player"}))};jo.propTypes={isPaused:Cn.a.bool.isRequired,onChangePlayState:Cn.a.func.isRequired};var Mo=Object(d.memo)(jo),No=n(524),Fo=n(525),Uo=(n(1107),function(e){var t=e.isPaused,n=e.returnData,r=e.isMuted,i=e.volume,o=e.isFullscreen,a=e.tracksAudio,s=e.tracksVideo,u=e.activeAudioTrack,c=e.activeVideoTrack,l=e.showPlayButton,f=e.live,p=e.onSeek,g=e.noFullscreen,m=e.video,v=e.from,y=e.to,b=e.playbackDuration,_=e.debug,w=Object(d.useRef)(),E=Object(d.useState)(!0),S=Ur()(E,2),x=S[0],k=S[1],T=Object(d.useState)(!1),O=Ur()(T,2),R=O[0],P=O[1],A=Object(d.useState)(null),C=Ur()(A,2),L=C[0],D=C[1];Object(d.useEffect)((function(){m&&D(m)}),[m]);var I=function(e){n("paused",e)};Object(d.useEffect)((function(){return window.clearTimeout(w.current),R||t?k(!0):w.current=window.setTimeout((function(){k(!1)}),3e3),function(){window.clearTimeout(w.current)}}),[t,R]);var j=Object(d.useCallback)((function(e){"Space"===e.code&&I(!t)}),[I,t]);return Object(d.useEffect)((function(){return document.addEventListener("keydown",j),function(){document.removeEventListener("keydown",j)}}),[t,j]),h.a.createElement(d.Fragment,null,h.a.createElement("div",{id:"forOverlays"}),h.a.createElement("div",{className:"dvrp-top"},h.a.createElement("div",{className:"dvrp-controls"},!(v&&y||v&&b)&&!l&&h.a.createElement(Po.a,{live:f,seekLiveFunc:function(){return p("live")}}))),h.a.createElement("div",{className:"dvrp-bottom-gradient".concat(x?" _visible":""),"data-cy":"dvrp-bottom-gradient"}),h.a.createElement("div",{className:"dvrp-footer ott".concat(x?" _visible":""),"data-cy":"dvrp-footer",onMouseMove:function(){P(!0)},onMouseLeave:function(){P(!1)},style:{position:"absolute"}},(v&&y||v&&b)&&!l&&L&&h.a.createElement(No.Timeline,{video:L,from:v,to:y,playbackDuration:b,returnData:n,debug:_}),h.a.createElement("div",{className:"dvrp-controls","data-cy":"dvrp-controls"},h.a.createElement("div",{className:"dvrp-left-controls","data-cy":"dvrp-left-controls"},!l&&h.a.createElement(d.Fragment,null,h.a.createElement(Mo,{isPaused:t,onChangePlayState:I}),a.length>0&&h.a.createElement(Xi,{isMuted:r,volume:i,onChangeMuted:function(e){n("muted",e)},onChangeVolume:function(e){n("volume",e)}}),L&&v&&(y||b)&&h.a.createElement(Fo.TimeIndicator,{video:L,from:v,to:y,playbackDuration:b}))),!l&&h.a.createElement("div",{className:"dvrp-right-controls","data-cy":"dvrp-right-controls"},h.a.createElement(To,{tracksAudio:a,tracksVideo:s,activeAudioTrack:u,activeVideoTrack:c,returnData:n,live:!0,ott:!0}),!g&&h.a.createElement(Co,{isFullscreen:o,onChangeFullscreenState:function(e){n("fullscreen",e)}}))),h.a.createElement("div",{id:"forClearoutTimeline"})))});Uo.propTypes={isPaused:Cn.a.bool.isRequired,returnData:Cn.a.func.isRequired,isMuted:Cn.a.bool.isRequired,volume:Cn.a.number.isRequired,isFullscreen:Cn.a.bool.isRequired,showPlayButton:Cn.a.bool,tracksAudio:Cn.a.array,tracksVideo:Cn.a.array,activeAudioTrack:Cn.a.string,activeVideoTrack:Cn.a.oneOfType([Cn.a.string,Cn.a.number]),live:Cn.a.bool,onSeek:Cn.a.func,noFullscreen:Cn.a.bool.isRequired,video:Cn.a.any,from:Cn.a.number,to:Cn.a.number,playbackDuration:Cn.a.number,debug:Cn.a.bool},Uo.defaultProps={tracksAudio:[],tracksVideo:[],activeVideoTrack:"v1",activeAudioTrack:"a1",showPlayButton:!1,live:!0};var Bo=Uo,qo=n(526),$o=n.n(qo);n(1112),n(1114);function Vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vo(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wo(e,t,n){return t=On()(t),kn()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],On()(e).constructor):t.apply(e,n))}var Go=new br.QueryClient,Ho=!1,Ko=function(e){function t(e){var n,r,i;return c()(this,t),(n=Wo(this,t,[e])).preparePlayer=n.preparePlayer.bind(n),n.setStateSafe=n.setStateSafe.bind(n),n.timeline=n.timeline.bind(n),n.returnData=n.returnData.bind(n),n.setRanges=n.setRanges.bind(n),n.onTimelineSeek=n.onTimelineSeek.bind(n),n.changeSpeed=n.changeSpeed.bind(n),n.onMetadataRequest=n.onMetadataRequest.bind(n),n.onTakeSnapshotClick=n.onTakeSnapshotClick.bind(n),n.handleToggleMuted=n.handleToggleMuted.bind(n),n.setMotions=n.setMotions.bind(n),n.checkAuth=n.checkAuth.bind(n),n.getProgress=n.getProgress.bind(n),n.checkSegment=n.checkSegment.bind(n),n.checkProgressTime=n.checkProgressTime.bind(n),n.calculateNearLeft=n.calculateNearLeft.bind(n),n.stop=n.stop.bind(n),n.setTimeStop=n.setTimeStop.bind(n),n.refreshPlaying=n.refreshPlaying.bind(n),n.onRangesLoading=n.onRangesLoading.bind(n),n.play=n.play.bind(n),n.onClickToPlay=n.onClickToPlay.bind(n),n.fastSeek=n.fastSeek.bind(n),n.onEventCallback=n.onEventCallback.bind(n),n.clearLogEventQueue=n.clearLogEventQueue.bind(n),n.updateLogEventQueue=n.updateLogEventQueue.bind(n),n.stop=n.stop.bind(n),n.restartPlayer=n.restartPlayer.bind(n),n.changeLanguage=n.changeLanguage.bind(n),n.getStats=n.getStats.bind(n),n.addPlayerStat=n.addPlayerStat.bind(n),n.getPlayerStats=n.getPlayerStats.bind(n),n.toggleFullScreen=n.toggleFullScreen.bind(n),n.requestFullscreen=n.requestFullscreen.bind(n),n.exitFullscreen=n.exitFullscreen.bind(n),n.iOSexitHandler=n.iOSexitHandler.bind(n),n.dvrMediaInfo=n.dvrMediaInfo.bind(n),n.tabListener=n.tabListener.bind(n),n.checkIfStreamsAlive=n.checkIfStreamsAlive.bind(n),n.containerRef=h.a.createRef(),n.logger=new Cr.Logger,n.state={calendarFull:!1,playingStarted:!1,showPlayButton:!1,is_mobile:!1,player:"mse",playback_speed:1,paused:!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform),live:!0,isStalling:!0,muted:!0,volume:0,playerProgressTime:Dr.default.now(),liveInView:!1,observableRanges:{},dvr_enabled:!0,dvr_ranges_present:!1,forceScrollToPoint:!1,selected:null,streamingChannels:{},allRanges:{},calendarRanges:[],allMotions:{},playingTimeForPlayers:{},progressTimeForPlayers:{},playSegmentDurationForPlayers:{},sectionInfo:{},selectedUrl:void 0,selectedAuth:void 0,playerReady:{},noAuth:{},rangesLoading:!1,fastSeekingTo:"",livePausedAt:null,isPlaying:!1,networkError:!1,restartTime:null,playerLink:null,vQuality:{corruptedVideoFrames:0,droppedVideoFrames:0,totalVideoFrames:0},seekFrameEnabled:!1,lockViewLeft:null,lockViewRight:null,fullscreen:!1,showSelectedOnly:!1,tracksVideo:[],tracksAudio:[],activeVideoTrack:"",activeAudioTrack:"",currentVideoTrack:"",currentAudioTrack:"",autoVideoTrack:!0,forceStartTrack:!1,streamIsLive:{},info:{},logoProperties:{},advert:[],allowExport:!0,browser:(i=navigator.userAgent,i.includes("OPR/")||i.includes("Opera/")?r="Opera":!i.includes("Safari/")||i.includes("Chrome/")||i.includes("Chromium/")?!i.includes("Chrome/")||i.includes("Edg.")||i.includes("Chromium/")?i.includes("Chromium/")?r="Chromium":i.includes("Edge/")?r="Edge":i.includes("Firefox/")&&!i.includes("Seamonkey/")?r="Firefox":i.includes("Seamonkey/")&&(r="Seamonkey"):r="Chrome":r="Safari",r),ui:"nvr",noFullscreen:!1,locale:e.locale,shouldStop:!1,playDurationStopTime:null,medianStopTime:[],playerRef:null,newTracks:[],basicApiConfig:{},resolution:1,logEventQueue:[],shouldPlayInitEventLog:!0},n.resetStats=function(){n.playerStatsObject={user_agent:navigator.userAgent,bytes:0,application:{application_name:"dvr_player",application_version:n.props.version,stall_count:0,pause_count:0,error_count:0,reconnect_count:0,bitrate_change_count:0,stall_duration:0,pause_duration:0,live_duration:0,total_video_frames:0,dropped_video_frames:0,corrupted_video_frames:0,advertising:!1,advertising_duration:0}}},n.uuid=n.generateUUID(),n.timeToDurationStop=null,n}return Pn()(t,e),s()(t,[{key:"componentWillMount",value:function(){var e=this.props,t=e.name,n=e.streamingChannels,r=e.streams,i=e.proto,o=e.fixedRange,a=e.streamer_http,s=e.auth_token,u=e.autoPlay,c=e.muted,l=e.from,d=e.start_track,h=e.dvr,p=e.ui,g=e.enoughBufferTime,m=e.debugTimers,v=e.allow_export,y={};p&&(this.setState({ui:p}),"ott"===p?y=zo(zo({},y),{},{player:"hls"}):Ho=!0),"hls"===i&&(y=zo(zo({},y),{},{player:"hls"})),"mse"===i&&(y="undefined"!=typeof window&&"MediaSource"in window?zo(zo({},y),{},{player:"mse"}):zo(zo({},y),{},{player:"hls"})),"webrtc"===i&&(y="undefined"!=typeof window&&(window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection)?zo(zo({},y),{},{player:"webrtc"}):"undefined"!=typeof window&&"MediaSource"in window?zo(zo({},y),{},{player:"mse"}):zo(zo({},y),{},{player:"hls"})),o&&(y=zo(zo({},y),{},{player:"hls"}));var b,_,w=(_=!1,b=navigator.userAgent||navigator.vendor||"undefined"!=typeof window&&window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(b)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(b.substr(0,4)))&&(_=!0),_),E=navigator,S=E.userAgent,x=E.userAgentData;if((S.includes("iPad")||S.includes("iPhone")||S.includes("Android")||x&&x.mobile||w)&&(y=zo(zo({},y),{},{is_mobile:!0})),n&&n.streams){var k;n.renderTitles||(1===n.streams.length?n.renderTitles=!1:n.renderTitles=!0),n.streams.forEach((function(e,t){Object.keys(e).length&&e.subName&&(k=t)})),y=zo(zo({},y),{},void 0===k?{streamingChannels:{renderTitles:!1,streams:[{subName:t,auth_token:s,main:!0}]}}:{streamingChannels:n,selected:n.streams[k||0].subName||t,selectedUrl:n.streams[k||0].address||a,selectedAuth:n.streams[k||0].auth_token||s})}else{var T={renderTitles:!1,streams:[{subName:t,auth_token:s,main:!0}]};if(r&&r.length){var O=[];r.forEach((function(e){O.push({subName:e})})),T.streams=O,O.length>=1&&(T.renderTitles=!0)}y=zo(zo({},y),{},{streamingChannels:T,selected:r&&r[0]||t,selectedAuth:s,playerReady:f()({},t,!1)})}"false"===c&&(y=zo(zo({},y),{},{volume:100})),u?(y=zo(zo({},y),{},{paused:!1,playerProgressTime:Dr.default.now()}),l&&(y=zo(zo({},y),{},{playerProgressTime:1e3*l,live:!1}))):(y=zo(zo({},y),{},{showPlayButton:!0,isStalling:!1,paused:!0,playingStarted:!0}),Ho=!0,l&&(y=zo(zo({},y),{},{playerProgressTime:1e3*l,live:!1}))),d&&(y=zo(zo({},y),{},{forceStartTrack:!0})),h||(y=zo(zo({},y),{},{dvr_enabled:!1,ui:"ott"})),this.enoughBufferTime=g||.1,l&&(y=zo(zo({},y),{},{playerProgressTime:l,live:!1})),"boolean"==typeof v&&(y=zo(zo({},y),{},{allowExport:v})),m&&(console.time("[DVRPlayer]: Init Time"),console.time("[DVRPlayer]: Playback Startup Time"),console.time("[DVRPlayer]: Time to first frame")),this.setStateSafe(y)}},{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.muted,r=t.debug,i=t.version,o=t.autoPlay,a=t.token,s=t.tokenName,u=t.auth_token,c=t.streamer_http,l=this.state,f=l.ui,d=l.selectedAuth,h=l.selectedUrl;if(console.log("VERSION:","25.7.3"),n){var p="true"==n;this.setStateSafe({muted:p})}r&&console.info("DVRPlayer@".concat(i)),this.resetStats(),this.containerRef.current&&this.containerRef.current.addEventListener("fullscreenchange",(function(t){!document.fullscreenElement&&e.state.fullscreen&&e.setState({fullscreen:!1})})),document.addEventListener("visibilitychange",this.tabListener),"ott"===f&&o&&this.onClickToPlay();var g=d||u;this.setState({basicApiConfig:Object(Ar.basicConfig)({token:a,tokenName:s,auth_token:g,streamer_http:c||h})})}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.state,i=r.playerProgressTime,o=r.playingTimeForPlayers,a=r.progressTimeForPlayers,s=r.live,u=r.selected,c=r.allRanges,l=r.streamingChannels,f=r.restartTime,d=r.networkError,h=r.info,p=r.paused,g=r.fullscreen,m=r.player,v=r.ui,y=r.dvr_enabled,b=r.shouldStop,_=r.playDurationStopTime,w=r.medianStopTime,E=r.playerRef,S=r.currentAudioTrack,x=r.currentVideoTrack,k=r.activeVideoTrack,T=r.activeAudioTrack,O=r.autoVideoTrack,R=r.newTracks,P=r.advert,A=r.showPlayButton,C=r.playingStarted,L=this.props,D=L.autoPlay,I=L.auth_token,j=L.from,M=L.to,N=L.reportState,F=L.play_duration,U=l.streams,B=U.length>1,q=Object.keys(h);if(!Object.keys(t.info).length&&q.length&&q.forEach((function(e){var t=h[e],r=t.protocols,i=t.advert,o=t.logo,a=t.stats,s=t.permissions;if(r&&!r.mseld&&(E&&(E.playerType="hls"),n.setState({player:"hls"})),o&&n.returnData("logoProperties",o,e),i&&i.length&&(n.stop(),n.setState({advert:i,isPlaying:!1})),a&&Object.keys(a).length){if("dvr_info"in a&&null!=a&&a.dvr_info){var u=a.dvr_info;if("ranges"in u&&null!=u&&u.ranges){var c=u.ranges;n.setState({calendarRanges:c})}}if("status"in a)"error"===a.status&&E&&E.props.name===e&&E.setState({noLive:!0})}s&&Object.keys(s).length&&"export"in s&&n.setState({allowExport:s.export})})),t.dvr_enabled===y||y||this.setState({ui:"ott",player:"hls"}),!C&&D&&this.preparePlayer(),!t.networkError&&d?(null===f&&this.setState({restartTime:Math.round(i)}),this.setTimeStop()):t.networkError&&!d&&this.restartPlayer(),t.playerProgressTime&&t.playerProgressTime!==i){if(this.state.paused||this.setState({isPlaying:!0,seekFrameEnabled:!1}),F){var $=w;$.length<3?($.push(i+F),this.setStateSafe({medianStopTime:$})):3===$.length&&this.setStateSafe({playDurationStopTime:Math.min.apply(Math,Sn()($))}),this.timeToDurationStop=_-i,F&&_&&i>=_&&this.setStateSafe({shouldStop:!0})}M&&i>=M&&this.stop()}else!t.playerProgressTime&&i&&F&&this.setStateSafe({medianStopTime:[i+F]});if(t.selected!==u&&U.forEach((function(e){if(e.subName&&e.subName===u&&(e.address?n.setState({selectedUrl:e.address}):n.setState({selectedUrl:void 0}),e.auth_token?n.setState({selectedAuth:e.auth_token}):n.setState({selectedAuth:I}),e&&e.subName in h)){var t=h[e.subName].stats;if(t&&Object.keys(t).length&&"dvr_info"in t&&null!=t&&t.dvr_info){var r=t.dvr_info;if("ranges"in r&&null!=r&&r.ranges){var i=r.ranges;n.setState({calendarRanges:i})}}}})),0==t.paused&&p&&!t.isPlaying&&this.setState({isPlaying:!1}),t.paused&&0==p&&null!==t.livePausedAt&&(t.livePausedAt<=Dr.default.now()-30&&this.onTimelineSeek(t.livePausedAt),this.setState({livePausedAt:null})),JSON.stringify(a)!==JSON.stringify(t.progressTimeForPlayers)){var V=this.getProgress(a);if(V){var z=this.state,W=z.isStalling,G=z.playerRef;if(!1!==z.playerReady[u]){if(a[u]!==t.progressTimeForPlayers[u]&&G&&"_video"in G){var H=G._video;H&&H.currentTime&&H.currentTime>this.enoughBufferTime&&(W=!1)}B&&(W=!1),s||null!=t.livePausedAt||this.checkProgressTime(),t.isStalling&&!W&&this.onEventCallback(this.state.selected,{key:Date.now(),data:{event:"play_stall_end"}}),this.setState({playerProgressTime:V,isStalling:W})}}}else{var K=!0,Y=o&&Object.keys(o)||[];Y.length&&Y.forEach((function(e){"stop"!==o[e]&&(K=!1)})),Y.length===U.length&&K&&(A||s||F||"ott"===v||j&&M||d||this.onTimelineSeek(Math.round(i)+1))}if(!Object.keys(t.allRanges).length&&Object.keys(c).length&&(j?D?this.onTimelineSeek(j):(Ho=!0,this.setState({playerProgressTime:j})):D&&this.onClickToPlay()),"ott"===!v&&(!t.muted&&this.state.muted?this.setState({volume:0}):t.muted&&!this.state.muted&&this.setState({volume:100})),"function"==typeof N&&N(this.state,this.getPlayerStats,this),g&&!t.fullscreen)if(Dr.default.isIOS()){var Q=this.state.selected,X=document.getElementById("video_".concat(Q));X&&X.webkitSupportsFullscreen&&(X.webkitEnterFullscreen(),X.addEventListener("webkitendfullscreen",this.iOSexitHandler,!1))}else document.fullscreenEnabled?this.requestFullscreen(this.containerRef.current):this.setState({noFullscreen:!0});if(!g&&t.fullscreen&&(this.exitFullscreen(),this.setState({showSelectedOnly:!1})),!B){if(s!==t.live){if("hls"===m)return;var J=k,Z=T;"v0"===(J=k?s?"v"+(Number(k)+1):O?"-1":Number(k.replace(/[^0-9]/g,""))-1+"":s?"v1":"-1")&&(J="v1"),Z=T?s?"a"+(Number(T)+1):Number(T.replace(/[^0-9]/g,""))-1+"":s?"a1":"0",this.setState({tracksVideo:[],tracksAudio:[],activeVideoTrack:J,activeAudioTrack:Z})}Object.keys(t.info).length!==q.length&&q.forEach((function(e){var t=h[e].stats;t&&("dvr_enabled"in t&&(t.dvr_enabled||n.setState({dvr_enabled:!1})))}))}!T&&S&&this.setState({activeAudioTrack:S}),!k&&x&&this.setState({activeVideoTrack:x}),T&&S&&x&&JSON.stringify([k||"0",T])!=JSON.stringify(R)&&(T==S&&k==x||JSON.stringify([k,T])==JSON.stringify(R)||this.setState({newTracks:[k,T]})),!t.shouldStop&&b&&(this.stop(),this.setState({shouldStop:!1})),t.advert&&t.advert.length&&!P.length&&(this.continueFrom=null,this.onClickToPlay())}},{key:"componentDidCatch",value:function(e,t){var n=this.props.sentryConfig;n&&n.length&&Dt(e),e instanceof Error&&this.onEventCallback(this.state.selected,{key:Date.now(),data:{event:"player_error",error_name:e.name,error_message:e.message}})}},{key:"componentWillUnmount",value:function(){document.removeEventListener("visibilitychange",this.tabListener)}},{key:"getShouldEventsLog",value:function(){var e,t;if("undefined"!=typeof window&&window.Cypress)return!1;var n=null===(e=this.state)||void 0===e||null===(e=e.streamingChannels)||void 0===e?void 0:e.streams,r=!n||n.length<=1,i=null===(t=Object.values(this.state.info))||void 0===t||null===(t=t[0])||void 0===t||null===(t=t.features)||void 0===t?void 0:t.is_player_events_enabled,o=this.props.isLoggingEnabled||i;return r&&o}},{key:"setStateSafe",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.isUnmounted?(e=console).log.apply(e,["DVRPlayer's setState called for unmounted component with args: "].concat(n)):this.setState.apply(this,n)}},{key:"changeLanguage",value:function(e){this.setState({locale:e}),vr.changeLanguage(e)}},{key:"returnData",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(n){if(void 0===t)return;var r=zo(zo({},this.state[e]||{}),{},f()({},n,t));this.setState(f()({},e,r))}else this.setState(f()({},e,t))}},{key:"setMotions",value:function(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=this.state.allMotions,a=(null===(n=o[e])||void 0===n?void 0:n.episodes)||[],s=zo({},o),u=Sn()(a),c=u.map((function(e){return e.opened_at}));null==t||null===(r=t.episodes)||void 0===r||r.forEach((function(e){var t=c.indexOf(e.opened_at);-1===t?u.push(e):(u[t].closed_at>e.closed_at||i)&&(u[t]=e)})),s[e]=zo(zo({},s[e]),{},{episodes:u.sort((function(e,t){return e.opened_at-t.opened_at}))}),this.setState({allMotions:s})}},{key:"setRanges",value:function(e,t){this.setState({allRanges:f()(f()({},e,Sn()(t)),"loaded_at",(new Date).getTime())})}},{key:"preparePlayer",value:function(){var e=this.props,t=e.autoPlay,n=e.fixedRange,r=e.from,i=e.to,o=this.state,a=o.ui,s=o.dvr_enabled,u=o.streamingChannels;if(t){var c={},l={},f={};if(r){u.streams.forEach((function(e){Object.keys(e).length&&(c[e.subName]=r,l[e.subName]={nextSection:"live"},f[e.subName]=!0)}));var d={playingTimeForPlayers:c,playerReady:f,sectionInfo:l,playingStarted:!0};"ott"!==a&&(d=zo(zo({},d),{},{observableRanges:{start:r-300,end:Dr.default.now()+300}})),this.setState(d)}else u.streams.forEach((function(e){Object.keys(e).length&&(c[e.subName]="live",l[e.subName]={nextSection:"live"},f[e.subName]=!1)})),this.setStateSafe({playingTimeForPlayers:c,sectionInfo:l,playerReady:f,live:!0,playingStarted:!0}),s||this.setState({observableRanges:{start:Dr.default.now()-300,end:Dr.default.now()+300}}),"ott"!==a&&this.checkProgressTime()}else Ho=!0,r?this.setStateSafe({observableRanges:{start:r-300,end:Dr.default.now()+300}}):this.setStateSafe({observableRanges:{start:Dr.default.now()-300,end:Dr.default.now()+300}});if(n&&r){var h=Dr.default.now()+300;i&&(h=i,this.setStateSafe({lockViewRight:i})),this.setStateSafe({observableRanges:{start:r-300,end:h},lockViewLeft:r})}}},{key:"play",value:function(){this.onClickToPlay()}},{key:"onClickToPlay",value:function(e,t){var n=this;e&&e.stopPropagation();var r=this.state,i=r.ui,o=r.streamingChannels;if(this.setState({showPlayButton:!1,isStalling:!0,paused:!1}),this.onEventCallback(this.state.selected,{key:Date.now(),data:{event:"play_stall_start"}}),this.resetStats(),this.props.from){var a={},s={};o.streams.forEach((function(e){Object.keys(e).length&&(a[e.subName]=n.props.from,s[e.subName]=!1)})),this.setStateSafe({observableRanges:{start:this.props.from-300,end:Dr.default.now()+300},live:!1,playingTimeForPlayers:a,playerReady:s})}else{var u={},c={},l={};o.streams.forEach((function(e){Object.keys(e).length&&(u[e.subName]=n.continueFrom||t?n.continueFrom||t:"live",c[e.subName]=n.continueFrom?{}:{nextSection:"live"},l[e.subName]=!1)})),this.setStateSafe({playingTimeForPlayers:u,sectionInfo:c,playerReady:l,live:!this.continueFrom&&!t}),"ott"!==i&&this.checkProgressTime()}this.continueFrom=null}},{key:"onRangesLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.setState({rangesLoading:e});var t=this.props.element;if(t&&t.dispatchEvent){var n=new CustomEvent("rangesLoading",{detail:e});t.dispatchEvent(n)}}},{key:"onMetadataRequest",value:function(){var e=this.state.playerRef;return e?e.getMetadata():{width:0,height:0}}},{key:"onTakeSnapshotClick",value:function(){var e=this.state,t=e.playerRef,n=e.playerProgressTime,r=e.info;if(t){var i,o=null==r||null===(i=r[this.props.name])||void 0===i?void 0:i.title;t.takeSnapshot(Math.round(n),this.props.name,o)}}},{key:"onTimelineSeek",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.state,i=r.playerRef,o=r.playerReady,a=r.allRanges,s=r.showPlayButton,u=r.info,c=r.selected;if("ott"!==this.state.ui){var l=e||"live",f=Object.keys(u);if(s&&this.onClickToPlay(void 0,e),!this.state.live||!(l>=Dr.default.now()||"live"===l)){"live"!==e?this.setState({live:!1}):this.setState({live:!0});var d={},h=zo({},a),p=Object.keys(h).filter((function(e){if("loaded_at"!==e)return e}));if(n)return p.forEach((function(e){d[e]=l})),void this.setState({playingTimeForPlayers:d,playerProgressTime:l,progressTimeForPlayers:{}});if(null!==this.state.livePausedAt&&!l)return p.forEach((function(e){d[e]=l})),void this.setState({playingTimeForPlayers:d,playerProgressTime:l,progressTimeForPlayers:{}});null!==this.state.livePausedAt?f.forEach((function(e){d[e]=t.state.livePausedAt})):d=this.checkSegment(l);var g={};Object.keys(o).forEach((function(e){d&&"stop"===d[e]||"string"==typeof a[e]?g[e]=!0:g[e]=!1}));var m=this.getProgress(d);if(this.checkIfStreamsAlive()&&(l>=Dr.default.now()||"live"===l)&&(m=Dr.default.now()),i&&1===f){var v=i._video;v&&v.pause&&v.pause()}this.timeToDurationStop=null,this.setState({playerReady:g,playingTimeForPlayers:d,isStalling:!0,progressTimeForPlayers:{},playerProgressTime:m||Dr.default.now(),forceScrollToPoint:this.props.centeredSeek,paused:!1,noAuth:{},playDurationStopTime:null,medianStopTime:[]}),this.onEventCallback(this.state.selected,{key:Date.now(),data:{event:"play_stall_start"}}),this.uuid=this.generateUUID()}}else if("live"!==e){var y=document.getElementById("video_".concat(c));y.currentTime=e,this.setState({live:!1})}}},{key:"checkSegment",value:function(e){if(e){var t=zo({},this.state.allRanges),n={},r={},i={},o=Object.keys(t).filter((function(e){if("loaded_at"!==e)return e})),a=!1;if(e>=Dr.default.now()||"live"===e)return o.forEach((function(e){r[e]="live"})),r;if(o&&o.length){if(o.forEach((function(o){if(t[o]){var s=Dr.default.CheckInRange(e,t[o]);if(n[o]||(n[o]={}),n[o]=s,s)a=!0,r=zo(zo({},r),{},f()({},o,e)),i=zo(zo({},i),{},f()({},o,s.playbackDuration));else{var u=Dr.default.getNearLeftFrom(e,t[o]);n[o]={nextSection:u},r=zo(zo({},r),{},f()({},o,"stop"))}}else n[o]={nextSection:"live"}})),this.setState({sectionInfo:n,playSegmentDurationForPlayers:i}),!a){var s=this.calculateNearLeft(e);return this.checkSegment(s)}return r}return r}}},{key:"getProgress",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.progressTimeForPlayers;return Object.keys(t).length&&Object.keys(t).forEach((function(n){"number"==typeof t[n]&&(e<t[n]||!e)&&(e=t[n])})),e}},{key:"checkProgressTime",value:function(){var e=this,t=this.state,n=t.sectionInfo,r=t.playingTimeForPlayers,i=t.playerProgressTime,o=t.playerReady,a=t.showPlayButton;"number"==typeof i&&Object.keys(r).forEach((function(t){if(n[t]&&Math.round(i)>=Math.round(n[t].sectionEnd-.5)&&Math.round(i)<=Math.round(n[t].nextSection-.5))e.setState({playingTimeForPlayers:zo(zo({},r),{},f()({},t,"stop"))});else if("stop"==r[t]){if(!1===o[t]&&e.returnData("playerReady",!0,t),n[t]&&Math.round(i)>Math.round(n[t].nextSection)){var s=Math.round(i);e.checkSegment(s),e.setState({playingTimeForPlayers:zo(zo({},r),{},f()({},t,s))})}}else n[t]&&"live"===n[t].nextSection&&!a&&Math.round(i)>=Dr.default.now()-10&&e.onTimelineSeek("live")}))}},{key:"calculateNearLeft",value:function(e){var t=this.state.allRanges,n=Number.POSITIVE_INFINITY;if(Object.keys(t).filter((function(e){if("loaded_at"!==e)return e})).forEach((function(r){var i=Dr.default.getNearLeftFrom(e,t[r]);(i<n||"live"===i)&&(n=i)})),n!==1/0)return n}},{key:"changeSpeed",value:function(e){e>=1/8&&e<=16&&this.setStateSafe({playback_speed:e})}},{key:"handleToggleMuted",value:function(e){this.setStateSafe({muted:!this.state.muted})}},{key:"refreshPlaying",value:function(){this.onTimelineSeek(this.state.playerProgressTime)}},{key:"fastSeek",value:function(e,t){var n=zo({},this.state.allRanges),r=Object.keys(n),i=!0;r.forEach((function(t){n[t]&&"array"==typeof n[t]&&(Dr.default.canFastSeek(e,n[t])||(i=!1))})),i&&this.setState({fastSeekingTo:t})}},{key:"setTimeStop",value:function(){var e={},t={};this.state.streamingChannels.streams.forEach((function(n){Object.keys(n).length&&(e[n.subName]="stop",t[n.subName]=!0)})),this.setState({playingTimeForPlayers:e,playerReady:t})}},{key:"stop",value:function(){var e=this.state.playerProgressTime;this.setTimeStop(),e&&(this.continueFrom=Math.round(e)),this.setState({showPlayButton:!0,isStalling:!1,playingStarted:!1,paused:!0,playDurationStopTime:null,medianStopTime:[]}),this.onEventCallback(this.state.selected,{key:Date.now(),data:{event:"play_stall_end"}}),this.timeToDurationStop=null}},{key:"restartPlayer",value:function(){var e=this.state.restartTime;null!==e&&(this.onTimelineSeek(e),this.setState({restartTime:null}))}},{key:"onEventCallback",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.selected,n=arguments.length>1?arguments[1]:void 0;if(t===this.state.selected||"ott"===this.props.ui){var r=n.key,i=n.data,o=i.event,a=r||Date.now();switch(o){case"play_init":if("hls_dvr"===(null==i?void 0:i.type)&&(this.playerStatsObject.proto="hls"),null!=i&&null!==(e=i.playerInfo)&&void 0!==e&&e.includes("MSEPlayer")&&(this.playerStatsObject.proto="mse"),this.playerStatsObject.opened_at=a,this.state.shouldPlayInitEventLog){var s=Lr.a(n);s.data=zo(zo({},s.data),{},{event:Object(Rr.getFormattedEventName)("play_init"),event_message:Object(Rr.getFormattedEventMessage)("play_init")}),this.updateLogEventQueue(s,{shouldPlayInitEventLog:!1})}break;case"play_init_mse":var u=Lr.a(n);u.data=zo(zo({},u.data),{},{event:Object(Rr.getFormattedEventName)("play_init_mse"),event_message:Object(Rr.getFormattedEventMessage)("play_init_mse")}),this.updateLogEventQueue(u);break;case"play_init_hls":var c=Lr.a(n);c.data=zo(zo({},c.data),{},{event:Object(Rr.getFormattedEventName)("play_init_hls"),event_message:Object(Rr.getFormattedEventMessage)("play_init_hls")}),this.updateLogEventQueue(c);break;case"play_buffer_codecs":this.playerStatsObject.first_byte_at=a;break;case"play_started":this.playerStatsObject.started_at=a;var l=Lr.a(n);if(l.data=zo(zo({},l.data),{},{event:Object(Rr.getFormattedEventName)("play_started"),event_message:Object(Rr.getFormattedEventMessage)("play_started")}),this.updateLogEventQueue(l),this.corrupted_frag_start){var f=a-this.corrupted_frag_start,d=Lr.a(n);d.data=zo(zo({},d.data),{},{event:"player_error",error_name:"corrupted_frag",error_message:"".concat(Object(Rr.getFormattedErrorMessage)("corrupted_frag"),": ").concat(f,"ms")}),this.updateLogEventQueue(d),delete this.corruptedFragDuration}break;case"play_resume":if(this.pauseStartedAt){var h=this.playerStatsObject.application;if(h){var p=h.pause_duration;p+=a-this.pauseStartedAt,this.addPlayerStat("pause_duration",!1,p),delete this.pauseStartedAt}}var g=Lr.a(n);g.data=zo(zo({},g.data),{},{event:Object(Rr.getFormattedEventName)("play_started"),event_message:Object(Rr.getFormattedEventMessage)("play_started")}),this.updateLogEventQueue(g);break;case"play_stalled":this.addPlayerStat("stall_count");break;case"play_stall_start":this.stallStart||(this.stallStart=a);break;case"play_stall_end":if(!this.stallStart)return;var m=a-this.stallStart;this.stallStart=null;var v=Lr.a(n);v.data=zo(zo({},v.data),{},{event:Object(Rr.getFormattedEventName)("play_stall"),event_message:"".concat(Object(Rr.getFormattedEventMessage)("play_stall"),": ").concat(m,"ms")}),this.updateLogEventQueue(v);break;case"play_buffering":this.buferingStart=a;break;case"play_buffered":var y=i.stats;if(y){var b=y.loaded,_=void 0===b?0:b;this.playerStatsObject.bytes+=_}if(!this.buferingStart)break;var w=a-this.buferingStart,E=this.playerStatsObject.application;if(E){var S=E.stall_duration;S+=w,this.addPlayerStat("stall_duration",!1,S),delete this.buferingStart}if(w>1e3){var x=Lr.a(n);x.data=zo(zo({},x.data),{},{event:"player_error",error_name:"long_bufferization",error_message:"".concat(Object(Rr.getFormattedErrorMessage)("long_bufferization"),": ").concat(w,"ms")}),this.updateLogEventQueue(x)}break;case"play_loadedmetadata":this.addPlayerStat("bitrate_change_count");break;case"play_error":this.addPlayerStat("error_count");break;case"play_stop":this.playerStatsObject.closed_at=a;break;case"play_pause":this.addPlayerStat("pause_count"),this.pauseStartedAt=a;var k=Lr.a(n);k.data=zo(zo({},k.data),{},{event:Object(Rr.getFormattedEventName)("play_pause"),event_message:Object(Rr.getFormattedEventMessage)("play_pause")}),this.updateLogEventQueue(k);break;case"play_manifestloaded":var T=i.networkDetails;this.playerStatsObject.source_id=T.headers.get("X-Sid");break;case"play_progress":if(this.segmentStart){var O=this.playerStatsObject.application;if(O){var R=O.live_duration;R+=a-this.segmentStart,this.addPlayerStat("live_duration",!1,R),delete this.segmentStart;var P=this.state.vQuality,A=P.corruptedVideoFrames,C=P.droppedVideoFrames,L=P.totalVideoFrames;this.addPlayerStat("total_video_frames",!1,L),this.addPlayerStat("dropped_video_frames",!1,C),this.addPlayerStat("corrupted_video_frames",!1,A)}}else this.segmentStart=a;this.playerStatsObject.updated_at=a;break;case"play_corrupted_frag_start":this.corrupted_frag_start=a;break;case"player_error":this.updateLogEventQueue(n);break;case"advertising":this.addPlayerStat("advertising",!1,!0),delete this.playerStatsObject.closed_at,this.playerStatsObject.started_at||(this.playerStatsObject.started_at=a);break;case"advertising_duration":var D=i.duration;this.addPlayerStat("advertising_duration",!1,D)}}this.props.onEvent&&this.props.onEvent(t,n)}},{key:"updateLogEventQueue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.getShouldEventsLog()&&this.setState((function(n){return zo({logEventQueue:[].concat(Sn()(n.logEventQueue),[e])},t)}))}},{key:"clearLogEventQueue",value:function(){this.setState({logEventQueue:[]})}},{key:"addPlayerStat",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.playerStatsObject.application;r&&(n?r[e]=n:t&&r[e]++,this.playerStatsObject.application=r)}},{key:"getStats",value:function(){return zo(zo({},this.playerStatsObject),{},{id:this.uuid})}},{key:"getPlayerStats",value:function(){var e=this.state,t=e.playerLink,n=e.live,r=e.ui;if(n){if("ott"===r)return this.getStats();if(t){var i=t.getStats(),o=i.application;return o&&(o.application_name="dvr_player",o.application_version=this.props.version),delete i.uuid,i=zo(zo({},i),{},{application:o}),this.playerStatsObject=zo(zo(zo({},this.playerStatsObject),i),{},{id:this.uuid}),this.playerStatsObject}}return this.getStats()}},{key:"dvrMediaInfo",value:function(e,t){var n=[],r=[];if("mse"===t||"webrtc"===t){var i=e.tracks,o=e.activeStreams,a=i.filter((function(e){return e.content&&"audio"===e.content})),s=o.audio,u=void 0===s?"a1":s,c=o.video,l=void 0===c?"v1":c;i.forEach((function(e){e.content&&"audio"!==e.content&&n.push({text:"".concat(e.width,"x").concat(e.height),width:e.width,height:e.height,track_id:e.track_id})})),a.forEach((function(e,t){r.push({text:e.language?e.language:"audio track ".concat(t+1),track_id:e.track_id})})),this.setState({tracksAudio:r,tracksVideo:n,currentVideoTrack:l||"v1",currentAudioTrack:u||"a1"})}else{var f=e.audioTracks;e.levels.forEach((function(e,t){n.push({text:"".concat(e.width,"x").concat(e.height),width:e.width,height:e.height,track_id:t})})),f.forEach((function(e,t){r.push({text:e.lang||"audio track ".concat(t+1),track_id:t})})),this.setState({tracksAudio:r,tracksVideo:n})}var d=this.props.start_track;if(this.state.forceStartTrack&&d){if(n.length<=1)return;if("lowest"===d){var h,p=999999;n.forEach((function(e){e.width<p&&(p=e.width,h=e.track_id)})),this.setState({activeVideoTrack:h,autoVideoTrack:!1})}else if("best"===d){var g,m=1;n.forEach((function(e){e.width>m&&(m=e.width,g=e.track_id)})),this.setState({activeVideoTrack:g,autoVideoTrack:!1})}else this.setState({activeVideoTrack:d,autoVideoTrack:!1})}if(this.props.onMediaInfo&&"function"==typeof this.props.onMediaInfo)if("mse"===t)this.props.onMediaInfo(zo(zo({},e),{},{streamType:t}));else{var v=e.audioTracks,y=e.levels,b=[];v.forEach((function(e){var t=e.audioCodec,n=e.bitrate,r=e.lang,i=e.name;b.push({codec:t,bitrate:n,language:r,track_id:i,content:"audio"})})),y.forEach((function(e){var t=e.videoCodec,n=e.bitrate,r=e.height,i=e.width;b.push({codec:t,bitrate:n,height:r,width:i,content:"video"})})),this.props.onMediaInfo({streamType:t,streamName:this.state.selected,streams:b,tracks:b})}}},{key:"checkAuth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.selectedAuth;return void 0!==e?"?".concat(e):void 0!==this.props.auth_token?"?".concat(this.props.auth_token):""}},{key:"generateUUID",value:function(){var e=(new Date).getTime(),t="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){var r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:3&r|8).toString(16)}))}},{key:"toggleFullScreen",value:function(){this.setState((function(e){return{fullscreen:!e.fullscreen}}))}},{key:"requestFullscreen",value:function(e){e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen&&e.webkitRequestFullScreen()}},{key:"exitFullscreen",value:function(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()}},{key:"iOSexitHandler",value:function(){if(!document.webkitIsFullScreen&&!document.mozFullScreen&&!document.msFullscreenElement){var e=this.state.selected,t=document.getElementById("video_".concat(e));this.setState({fullscreen:!1,paused:!1}),t.removeEventListener("webkitendfullscreen",this.iOSexitHandler),setTimeout((function(){t.paused&&t.play()}),500)}}},{key:"tabListener",value:function(){document.hidden?this.timeToDurationStop&&this.timeToDurationStop<3e4?this.stopTimer=setTimeout(this.stop,this.timeToDurationStop):this.stopTimer=setTimeout(this.stop,3e4):this.stopTimer&&clearTimeout(this.stopTimer)}},{key:"checkIfStreamsAlive",value:function(){var e=this.state.streamIsLive,t=Object.keys(e),n=!1;return t.length?(t.forEach((function(t){e[t]&&(n=!0)})),n):n}},{key:"timeline",value:function(e,t){var n=this.state,r=n.rangesLoading,i=n.seekFrameEnabled,o=n.playingTimeForPlayers,a=n.playerProgressTime,s=n.selected,u=n.lockViewLeft,c=n.lockViewRight,l=n.showPlayButton,f=n.tracksAudio,d=n.tracksVideo,p=n.activeAudioTrack,g=n.activeVideoTrack,m=n.browser,v=n.streamingChannels,y=n.fullscreen,b=n.muted,_=n.volume,w=n.paused,E=n.live,S=n.isStalling,x=n.dvr_ranges_present,k=n.dvr_enabled,T=n.ui,O=n.noFullscreen,R=n.forceScrollToPoint,P=n.allMotions,A=n.allRanges,C=n.player,L=n.playback_speed,D=n.is_mobile,I=n.observableRanges,j=n.locale,M=n.playerRef,N=n.basicApiConfig,F=n.calendarRanges,U=n.allowExport,B=this.props,q=B.from,$=B.to,V=B.play_duration,z=B.zoom,W=B.thumbnails_enabled,G=B.noMenu,H=B.debug,K=B.timeLineElement,Y=B.info_url,Q=null;M&&"_video"in M&&(Q=M._video);var X=G?null:h.a.createElement(h.a.Fragment,null,"ott"===T&&h.a.createElement(Bo,{isPaused:w,returnData:this.returnData,volume:_,isMuted:b,isFullscreen:y||!1,tracksAudio:f,tracksVideo:d,activeAudioTrack:p,activeVideoTrack:g,showPlayButton:l,live:E,onSeek:this.onTimelineSeek,noFullscreen:O,video:Q,from:q,to:$,playbackDuration:V,debug:H,info_url:Y}),"nvr"===T&&h.a.createElement(Io,{http_stream_url:e,muted:b,thumbnails_enabled:W,playback_speed:L,locale:j,from:q,zoom:z,player:C,debug:H,is_mobile:D,auth_token:t,changeSpeed:this.changeSpeed,onToggleMuted:this.handleToggleMuted,onMetadataRequest:this.onMetadataRequest,onSeek:this.onTimelineSeek,onTakeSnapshotClick:this.onTakeSnapshotClick,currentTime:o&&s&&s in o?o[s]:{},playerProgressTime:a,now:a,allRanges:A,ranges:A&&A[s]?{ranges:"string"!=typeof A[s]?A[s]:[],motion_log:P&&P[s]?P[s]:[],stream:s}:{ranges:[],stream:s},motion_log:P&&P[s]?P[s]:[],observableRanges:I,calendarRanges:F,returnData:this.returnData,live:E,loading:S,dvr_ranges_present:x,dvr_enabled:k,paused:w,forceScrollToPoint:R,multiTimeline:this.props.multiTimeline,selected:s,rangesLoading:r,fastSeek:this.fastSeek,volume:_,enableMp4Download:this.props.enableMp4Download,downloadOptions:this.props.downloadOptions,seekFrameEnabled:i,fixedRange:this.props.fixedRange,lockViewLeft:u,lockViewRight:c,ui:T,playerRef:M,localTime:this.props.localtime,maxDuration:this.props.export_limit,tracksAudio:f,tracksVideo:d,activeAudioTrack:p,activeVideoTrack:g,basicApiConfig:N,browser:m,streams:v.streams,isFullscreen:y,noFullscreen:O,zoomSensivity:1,allowExport:U,onEvent:this.onEventCallback}));return K?Object(yr.createPortal)(X,K):X}},{key:"render",value:function(){var e=this,t=this.state,n=t.ranges,r=t.playingTimeForPlayers,i=t.playerProgressTime,o=t.muted,a=t.playback_speed,s=t.allRanges,u=t.showPlayButton,c=t.fastSeekingTo,l=t.networkError,f=t.seekFrameEnabled,d=t.selectedUrl,p=t.noAuth,g=t.autoVideoTrack,m=t.observableRanges,v=t.selected,y=t.streamingChannels,b=t.rangesLoading,_=t.isPlaying,w=t.streamIsLive,E=t.selectedAuth,S=t.logoProperties,x=t.browser,k=t.playSegmentDurationForPlayers,T=t.isStalling,O=t.dvr_enabled,R=t.ui,P=t.volume,A=t.newTracks,C=t.basicApiConfig,L=t.advert,D=t.live,I=t.liveInView,j=t.info,M=t.playerRef,N=t.showSelectedOnly,F=t.resolution,U=this.props,B=U.episodes_url,q=U.auth_token,$=U.statsSendEnable,V=U.statsSendTime,z=U.headers,W=U.from,G=U.to,H=U.play_duration,K=U.autoPlay,Y=U.token,Q=U.info_url,X=U.streamer_http,J=U.streamer_rtmp,Z=U.debug,ee=U.debugTimers,te=U.panzoom,ne=U.customItemWrapper,re=U.fixedRange,ie=U.tracks,oe=U.ptz,ae=U.features,se=m.start,ue=m.end,ce="".concat(d||X,"/").concat(v),le=E||q;M&&"_video"in M&&M._video&&"currentTime"in M._video&&M._video.currentTime>.25&&(Ho=!0);var fe=h.a.createElement(Pi,{returnData:this.returnData,playerType:this.state.player,playingTimeForPlayers:r,name:this.props.name,muted:o,auth_token:le,tracks:ie,streamer_http:X||d,streamer_rtmp:J,playback_speed:a,ranges:n,debug:Z,debugTimers:ee,paused:this.state.paused,isStalling:T,onMediaInfo:this.dvrMediaInfo,streamingChannels:y,allRanges:s,noAuth:p,selected:v,panzoom:te,customItemWrapper:ne,refreshPlaying:this.refreshPlaying,showPlayButton:u,onClickToPlay:this.onClickToPlay,fastSeekingTo:c,from:W,volume:P,getStats:this.getPlayerStats,onEvent:this.onEventCallback,seekFrameEnabled:f,fixedRange:re,onDoubleClick:function(){e.toggleFullScreen(),e.setState({showSelectedOnly:!N})},showSelectedOnly:N,ui:R,newTracks:A,autoVideoTrack:g,isPlaying:_,basicApiConfig:C,streamIsLive:w,logoProperties:S,browser:x,playSegmentDurationForPlayers:k,dvr_enabled:O,autoPlay:K,features:ae,advert:L,onSeek:this.onTimelineSeek,fastSeek:this.fastSeek,playerProgressTime:i,live:D,token:Y});return h.a.createElement(br.QueryClientProvider,{client:Go},h.a.createElement("div",{className:"dvrContainer".concat(O?"":" noDvr"),ref:this.containerRef,"data-cy":"dvrContainer"},(null==oe?void 0:oe.show_ptz_controls)&&D&&h.a.createElement($o.a,{headers:z,ptz_url:null==oe?void 0:oe.api_url}),fe,this.getShouldEventsLog()&&h.a.createElement(Pr.a,{logger:this.logger,logEventQueue:this.state.logEventQueue,clearLogEventQueue:this.clearLogEventQueue,streamInfo:this.state.info,getPlayerStats:this.getPlayerStats,login:this.props.login,user_id:this.props.user_id,platform:this.props.platform,session_id:this.props.session_id,watcher_version:this.props.watcher_version}),Ho&&this.timeline(ce,le,C),l&&h.a.createElement("div",{className:"reconnect"},h.a.createElement("p",null,"Trying to reconnect...")),h.a.createElement("div",{id:"videoThumbnail",className:"videoThumbnail"}),h.a.createElement("div",{id:"forCalendar"}),h.a.createElement("div",{id:"forPopup"}),h.a.createElement("div",{id:"forClearout"}),Ho&&_&&h.a.createElement("div",{className:"Loading".concat(T?" visible":""),"data-cy":"loadingIndicator"},h.a.createElement(jr,null)),v&&!("ott"===R&&(W&&G||W&&H))&&Object.keys(C).length&&y.streams.map((function(t,n){if(t.subName){if(t.ureachable)return;return h.a.createElement(Or.a,{name:t.subName,auth_token:t.auth_token||E,address:t.address||"",basicApiConfig:C,returnData:e.returnData,info_url:Q,isLive:D,onEvent:e.onEventCallback,key:"info_".concat(t.subName,"_").concat(n)})}})),v&&se&&ue&&"ott"!==R&&!l&&y.streams.map((function(t,n){if(t.subName){if(t.ureachable)return;return h.a.createElement(wr.a,{name:t.subName,address:t.address||X,auth_token:t.auth_token||"",start:se,end:ue,returnData:e.returnData,setRanges:e.setRanges,dvr_enabled:O,onRangesLoading:t.subName===v?e.onRangesLoading:void 0,onEvent:e.onEventCallback,rangesLoading:b,liveCheck:!1,basicApiConfig:C,key:"".concat(t.subName,"_").concat(n),resolution:F})}})),v&&I&&"ott"!==R&&!l&&Object.keys(j).length&&y.streams.map((function(t,n){if(t.subName===v)return h.a.createElement(wr.a,{name:t.subName,address:t.address,auth_token:t.auth_token||"",returnData:e.returnData,setRanges:e.setRanges,dvr_enabled:O,onRangesLoading:e.onRangesLoading,rangesLoading:b,liveCheck:!0,basicApiConfig:C,key:"".concat(t.subName,"_").concat(n,"_live"),resolution:F,start:se,end:ue,onEvent:e.onEventCallback})})),Object.keys(C).length&&O&&B&&v&&!l&&"ott"!==R&&h.a.createElement(Sr.a,{name:v,start:se,end:ue,episodes_url:B,headers:z,basicApiConfig:C,setMotions:this.setMotions,onEvent:this.onEventCallback}),$&&!l&&y.streams.map((function(t){if(t.subName){if(t.ureachable)return;return h.a.createElement(kr.a,{name:t.subName,stats:e.getPlayerStats,basicApiConfig:C,statsSendTime:V,key:"session_".concat(t.subName)})}}))))}}])}(d.Component);Ko.propTypes={ui:Cn.a.oneOf(["ott","nvr"]),fixedRange:Cn.a.bool,proto:Cn.a.string,from:Cn.a.number,to:Cn.a.number,play_duration:Cn.a.number,streamer_http:Cn.a.string,streamer_rtmp:Cn.a.string,thumbnails_enabled:Cn.a.bool,auth_token:Cn.a.string,autoPlay:Cn.a.bool,locale:Cn.a.oneOf(["ru","en"]),name:Cn.a.string,zoom:Cn.a.number,debug:Cn.a.bool,debugTimers:Cn.a.bool,tracks:Cn.a.string,timeLineElement:Cn.a.object,onMediaInfo:Cn.a.func,panzoom:Cn.a.bool,noMenu:Cn.a.bool,customItemWrapper:Cn.a.func,centeredSeek:Cn.a.bool,multiTimeline:Cn.a.bool,element:Cn.a.instanceOf(Element),episodes_url:Cn.a.string,reportState:Cn.a.func,streams:Cn.a.array,streamingChannels:Cn.a.any,enableMp4Download:Cn.a.bool,sentryConfig:Cn.a.string,version:Cn.a.string,downloadOptions:Cn.a.arrayOf(Cn.a.shape({title:Cn.a.string,callback:Cn.a.func})),statsSendEnable:Cn.a.bool,statsSendTime:Cn.a.number,onEvent:Cn.a.func,localtime:Cn.a.bool,allow_export:Cn.a.bool,export_limit:Cn.a.number,start_track:Cn.a.string,tokenName:Cn.a.string,token:Cn.a.string,dvr:Cn.a.bool,localTime:Cn.a.bool,headers:Cn.a.shape({}),enoughBufferTime:Cn.a.number,ptz:Cn.a.shape({show_ptz_controls:Cn.a.bool,api_url:Cn.a.string})},Ko.defaultProps={autoPlay:!0,timelineElement:void 0,panzoom:!0,centeredSeek:!1,multiTimeline:!1,enableMp4Download:!0,statsSendEnable:!0,statsSendTime:60,fixedRange:!1,ui:"nvr",export_limit:86400,dvr:!0,tokenName:"token",enoughBufferTime:.1,localTime:!0,debug:!1,debugTimers:!1,ptz:{show_ptz_controls:!1,api_url:null},features:Cn.a.shape({isScreenshotEditingEnabled:Cn.a.bool})};var Yo=Ko,Qo=n(530),Xo=n(531);function Jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jo(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}vr.use($r.initReactI18next);var ea=function(e){vr.init({lng:e,fallbackLng:"en",keySeparator:!1,interpolation:{escapeValue:!1},resources:{en:{translation:Zo({},Qo)},ru:{translation:Zo({},Xo)}}})},ta=s()((function e(){var t=this;c()(this,e),f()(this,"subscribe",(function(e,n,r){t.state=e,t.getStats=n,t.main=r})),f()(this,"setRoot",(function(e){t.root=e})),f()(this,"isPlaying",(function(){return!t.state.isStalling&&t.state.isPlaying})),f()(this,"metrics",(function(){var e=t.state;return{ranges:e.allRanges,motions:e.allMotions,playerProgressTime:e.playerProgressTime,playerReady:e.playerReady,playback_speed:e.playback_speed}})),f()(this,"isDvrInUse",(function(){return!t.state.live})),f()(this,"DvrInstance",(function(){return t.main})),f()(this,"DvrUnmount",(function(){t.root.unmount()}))}));Yo.load=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r={timeLineElement:n};if(e.query){var i=Object(wn.decode)(e.query.replace(/^\?/,"")),o=i.auth_token_name||e.auth_token_name||"token";r.tokenName=i.tokenName||e.tokenName||o,o&&i[o]&&(r.auth_token=o+"="+encodeURIComponent(i[o]),r.token=encodeURIComponent(i[o])),i.play_duration&&parseInt(i.play_duration)>0&&(r.play_duration=parseInt(i.play_duration)),i.locale?(r.locale=i.locale,ea(i.locale)):ea((null==e?void 0:e.locale)||"en"),i.info_url&&(r.info_url=i.info_url),i.track&&(r.track=i.track),i.from&&parseInt(i.from)>0&&(r.from=parseInt(i.from)),i.to&&parseInt(i.to)>0&&(r.to=parseInt(i.to)),i.zoom&&parseInt(i.zoom)>0&&(r.zoom=parseInt(i.zoom)),(i.auto_play||i.autoplay||i.autoPlay)&&(r.autoPlay="true"==i.autoplay||"true"==i.autoPlay||"yes"==i.autoPlay),i.allow_export&&("false"==i.allow_export?r.allow_export=!1:"true"==i.allow_export&&(r.allow_export=!0)),i.name&&(r.name=i.name),i.host&&(r.streamer_http=i.host),i.proto&&(r.proto=i.proto),i.muted&&(r.muted=i.muted),i.panzoom&&("false"==i.panzoom?r.panzoom=!1:"true"==i.panzoom&&(r.panzoom=!0)),i.centeredSeek&&(r.centeredSeek="true"==i.centeredSeek),i.multiTimeline&&(r.multiTimeline="true"==i.multiTimeline);var a=i.noMenu||i.nomenu||i.no_menu;a&&(r.noMenu="true"==a),r.element=t,i.episodes_url&&(r.episodes_url=i.episodes_url),i.streams&&(r.streams=i.streams.split(",")),i.enableMp4Download&&(r.enableMp4Download="false"!=i.enableMp4Download),i.sentryConfig&&(r.sentryConfig=i.sentryConfig),i.statsSendEnable&&(r.statsSendEnable="true"===i.statsSendEnable),i.statsSendTime&&(r.statsSendTime=Number(i.statsSendTime)),i.fixedRange&&(r.fixedRange="false"!=i.fixedRange),i.ui&&(r.ui=i.ui),i.localtime&&(r.localtime="false"!==i.localtime),i.export_limit&&(r.export_limit=Number(i.export_limit)),i.start_track&&(r.start_track=i.start_track),i.dvr&&(r.dvr="false"!==i.dvr),i.headers&&(r.headers=i.headers||{}),i.enoughBufferTime&&(r.enoughBufferTime=Number(i.enoughBufferTime)),i.debug&&(r.debug=!0),i.debugTimers&&(r.debugTimers=!0)}else ea((null==e?void 0:e.locale)||"en"),r.info_url=e.info_url;var s=new ta;r.reportState=s.subscribe;var u="";"undefined"!=typeof VERSION&&(u=VERSION),r.version=u;var c=g()(e,{$merge:r});c.thumbnails_enabled||(c.thumbnails_enabled=!1),c.sentryConfig&&c.sentryConfig.length&&yn({dsn:c.sentryConfig,environment:"production",release:"DvrPlayer@"+u});var l=Object(_n.createRoot)(t);return c.close=function(){l.unmount()},l.render(h.a.createElement(Yo,c)),s.setRoot(l),s};t.default=Yo},function(e,t,n){"use strict";var r;n.r(t),n.d(t,"v1",(function(){return g})),n.d(t,"v3",(function(){return k})),n.d(t,"v4",(function(){return T})),n.d(t,"v5",(function(){return P})),n.d(t,"NIL",(function(){return A})),n.d(t,"version",(function(){return C})),n.d(t,"validate",(function(){return s})),n.d(t,"stringify",(function(){return d})),n.d(t,"parse",(function(){return m}));var i=new Uint8Array(16);function o(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var s=function(e){return"string"==typeof e&&a.test(e)},u=[],c=0;c<256;++c)u.push((c+256).toString(16).substr(1));var l,f,d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n},h=0,p=0;var g=function(e,t,n){var r=t&&n||0,i=t||new Array(16),a=(e=e||{}).node||l,s=void 0!==e.clockseq?e.clockseq:f;if(null==a||null==s){var u=e.random||(e.rng||o)();null==a&&(a=l=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==s&&(s=f=16383&(u[6]<<8|u[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),g=void 0!==e.nsecs?e.nsecs:p+1,m=c-h+(g-p)/1e4;if(m<0&&void 0===e.clockseq&&(s=s+1&16383),(m<0||c>h)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");h=c,p=g,f=s;var v=(1e4*(268435455&(c+=122192928e5))+g)%4294967296;i[r++]=v>>>24&255,i[r++]=v>>>16&255,i[r++]=v>>>8&255,i[r++]=255&v;var y=c/4294967296*1e4&268435455;i[r++]=y>>>8&255,i[r++]=255&y,i[r++]=y>>>24&15|16,i[r++]=y>>>16&255,i[r++]=s>>>8|128,i[r++]=255&s;for(var b=0;b<6;++b)i[r+b]=a[b];return t||d(i)};var m=function(e){if(!s(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};var v=function(e,t,n){function r(e,r,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=m(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(r),a.set(e,r.length),(a=n(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,i){o=o||0;for(var s=0;s<16;++s)i[o+s]=a[s];return i}return d(a)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r};function y(e){return 14+(e+64>>>9<<4)+1}function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function _(e,t,n,r,i,o){return b((a=b(b(t,e),b(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function w(e,t,n,r,i,o,a){return _(t&n|~t&r,e,t,i,o,a)}function E(e,t,n,r,i,o,a){return _(t&r|n&~r,e,t,i,o,a)}function S(e,t,n,r,i,o,a){return _(t^n^r,e,t,i,o,a)}function x(e,t,n,r,i,o,a){return _(n^(t|~r),e,t,i,o,a)}var k=v("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r=0;r<n;r+=8){var i=e[r>>5]>>>r%32&255,o=parseInt("0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[y(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,u=r,c=i,l=o;n=w(n,r,i,o,e[a],7,-680876936),o=w(o,n,r,i,e[a+1],12,-389564586),i=w(i,o,n,r,e[a+2],17,606105819),r=w(r,i,o,n,e[a+3],22,-1044525330),n=w(n,r,i,o,e[a+4],7,-176418897),o=w(o,n,r,i,e[a+5],12,1200080426),i=w(i,o,n,r,e[a+6],17,-1473231341),r=w(r,i,o,n,e[a+7],22,-45705983),n=w(n,r,i,o,e[a+8],7,1770035416),o=w(o,n,r,i,e[a+9],12,-1958414417),i=w(i,o,n,r,e[a+10],17,-42063),r=w(r,i,o,n,e[a+11],22,-1990404162),n=w(n,r,i,o,e[a+12],7,1804603682),o=w(o,n,r,i,e[a+13],12,-40341101),i=w(i,o,n,r,e[a+14],17,-1502002290),r=w(r,i,o,n,e[a+15],22,1236535329),n=E(n,r,i,o,e[a+1],5,-165796510),o=E(o,n,r,i,e[a+6],9,-1069501632),i=E(i,o,n,r,e[a+11],14,643717713),r=E(r,i,o,n,e[a],20,-373897302),n=E(n,r,i,o,e[a+5],5,-701558691),o=E(o,n,r,i,e[a+10],9,38016083),i=E(i,o,n,r,e[a+15],14,-660478335),r=E(r,i,o,n,e[a+4],20,-405537848),n=E(n,r,i,o,e[a+9],5,568446438),o=E(o,n,r,i,e[a+14],9,-1019803690),i=E(i,o,n,r,e[a+3],14,-187363961),r=E(r,i,o,n,e[a+8],20,1163531501),n=E(n,r,i,o,e[a+13],5,-1444681467),o=E(o,n,r,i,e[a+2],9,-51403784),i=E(i,o,n,r,e[a+7],14,1735328473),r=E(r,i,o,n,e[a+12],20,-1926607734),n=S(n,r,i,o,e[a+5],4,-378558),o=S(o,n,r,i,e[a+8],11,-2022574463),i=S(i,o,n,r,e[a+11],16,1839030562),r=S(r,i,o,n,e[a+14],23,-35309556),n=S(n,r,i,o,e[a+1],4,-1530992060),o=S(o,n,r,i,e[a+4],11,1272893353),i=S(i,o,n,r,e[a+7],16,-155497632),r=S(r,i,o,n,e[a+10],23,-1094730640),n=S(n,r,i,o,e[a+13],4,681279174),o=S(o,n,r,i,e[a],11,-358537222),i=S(i,o,n,r,e[a+3],16,-722521979),r=S(r,i,o,n,e[a+6],23,76029189),n=S(n,r,i,o,e[a+9],4,-640364487),o=S(o,n,r,i,e[a+12],11,-421815835),i=S(i,o,n,r,e[a+15],16,530742520),r=S(r,i,o,n,e[a+2],23,-995338651),n=x(n,r,i,o,e[a],6,-198630844),o=x(o,n,r,i,e[a+7],10,1126891415),i=x(i,o,n,r,e[a+14],15,-1416354905),r=x(r,i,o,n,e[a+5],21,-57434055),n=x(n,r,i,o,e[a+12],6,1700485571),o=x(o,n,r,i,e[a+3],10,-1894986606),i=x(i,o,n,r,e[a+10],15,-1051523),r=x(r,i,o,n,e[a+1],21,-2054922799),n=x(n,r,i,o,e[a+8],6,1873313359),o=x(o,n,r,i,e[a+15],10,-30611744),i=x(i,o,n,r,e[a+6],15,-1560198380),r=x(r,i,o,n,e[a+13],21,1309151649),n=x(n,r,i,o,e[a+4],6,-145523070),o=x(o,n,r,i,e[a+11],10,-1120210379),i=x(i,o,n,r,e[a+2],15,718787259),r=x(r,i,o,n,e[a+9],21,-343485551),n=b(n,s),r=b(r,u),i=b(i,c),o=b(o,l)}return[n,r,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(y(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}));var T=function(e,t,n){var r=(e=e||{}).random||(e.rng||o)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return d(r)};function O(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function R(e,t){return e<<t|e>>>32-t}var P=v("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,a=Math.ceil(o/16),s=new Array(a),u=0;u<a;++u){for(var c=new Uint32Array(16),l=0;l<16;++l)c[l]=e[64*u+4*l]<<24|e[64*u+4*l+1]<<16|e[64*u+4*l+2]<<8|e[64*u+4*l+3];s[u]=c}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<a;++f){for(var d=new Uint32Array(80),h=0;h<16;++h)d[h]=s[f][h];for(var p=16;p<80;++p)d[p]=R(d[p-3]^d[p-8]^d[p-14]^d[p-16],1);for(var g=n[0],m=n[1],v=n[2],y=n[3],b=n[4],_=0;_<80;++_){var w=Math.floor(_/20),E=R(g,5)+O(w,m,v,y)+b+t[w]+d[_]>>>0;b=y,y=v,v=R(m,30)>>>0,m=g,g=E}n[0]=n[0]+g>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]})),A="00000000-0000-0000-0000-000000000000";var C=function(e){if(!s(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},function(e,t,n){"use strict";var r=n(25),i=n(63),o=n.n(i).a.unstable_batchedUpdates;r.a.setBatchNotifyFunction(o)},function(e,t,n){"use strict";var r=n(135),i=console;Object(r.b)(i)},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c}));var r=n(4),i=n(45),o=n(532),a=n(99),s=n(285);function u(t,n,u){void 0===n&&(n=1/0),void 0===u&&(u=1/0);try{return function t(n,u,c,l,f){void 0===c&&(c=1/0);void 0===l&&(l=1/0);void 0===f&&(f=Object(o.a)());var d=Object(r.c)(f,2),h=d[0],p=d[1],g=u;if(g&&"function"==typeof g.toJSON)try{return g.toJSON()}catch(e){}if(null===u||["number","boolean","string"].includes(typeof u)&&!Object(i.h)(u))return u;var m=function(t,n){try{return"domain"===t&&n&&"object"==typeof n&&n._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":void 0!==e&&n===e?"[Global]":"undefined"!=typeof window&&n===window?"[Window]":"undefined"!=typeof document&&n===document?"[Document]":Object(i.m)(n)?"[SyntheticEvent]":"number"==typeof n&&n!=n?"[NaN]":void 0===n?"[undefined]":"function"==typeof n?"[Function: "+Object(s.b)(n)+"]":"symbol"==typeof n?"["+String(n)+"]":"bigint"==typeof n?"[BigInt: "+String(n)+"]":"[object "+Object.getPrototypeOf(n).constructor.name+"]"}catch(e){return"**non-serializable** ("+e+")"}}(n,u);if(!m.startsWith("[object "))return m;if(0===c)return m.replace("object ","");if(h(u))return"[Circular ~]";var v=Array.isArray(u)?[]:{},y=0,b=Object(i.d)(u)||Object(i.f)(u)?Object(a.b)(u):u;for(var _ in b)if(Object.prototype.hasOwnProperty.call(b,_)){if(y>=l){v[_]="[MaxProperties ~]";break}var w=b[_];v[_]=t(_,w,c-1,l,f),y+=1}return p(u),v}("",t,n,u)}catch(e){return{ERROR:"**non-serializable** ("+e+")"}}}function c(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r,i=u(e,t);return r=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?c(e,t-1,n):i}}).call(this,n(128))}])}));