@flussonic/flussonic-dvr-player 25.9.4 → 25.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.FlussonicDvrPlayer=t():e.FlussonicDvrPlayer=t()}(this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=572)}([function(e,t,n){"use strict";e.exports=n(1069)},function(e,t,n){e.exports=n(1083)()},function(e,t,n){"use strict";var r=n(11),i=n(73).f,o=n(62),a=n(35),s=n(296),u=n(179),c=n(206);e.exports=function(e,t){var n,l,f,d,h,p=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[p]||s(p,{}):r[p]&&r[p].prototype)for(l in t){if(d=t[l],f=e.dontCallGetSet?(h=i(n,l))&&h.value:n[l],!c(g?l:p+(m?".":"#")+l,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(e.sham||f&&f.sham)&&o(d,"sham",!0),a(n,l,d,e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(5),i=n(36);function o(e){return function t(n,o){switch(arguments.length){case 0:return t;case 1:return Object(i.a)(n)?t:Object(r.a)((function(t){return e(n,t)}));default:return Object(i.a)(n)&&Object(i.a)(o)?t:Object(i.a)(n)?Object(r.a)((function(t){return e(t,o)})):Object(i.a)(o)?Object(r.a)((function(t){return e(n,t)})):e(n,o)}}}},function(e,t,n){"use strict";var r=n(202),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 i}));var r=n(36);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";n.d(t,"a",(function(){return a}));var r=n(5),i=n(3),o=n(36);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){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";var r=n(202),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},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 P})),n.d(t,"d",(function(){return R}));var r=n(21),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 P(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function R(){if("function"==typeof AbortController)return new AbortController}},function(e,t,n){"use strict";var r=n(16),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";(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(153))},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 P})),n.d(t,"checkInRange",(function(){return R})),n.d(t,"canFastSeek",(function(){return A})),n.d(t,"isIOS",(function(){return C})),n.d(t,"calculateScaleTimeline",(function(){return D})),n.d(t,"downloadFile",(function(){return L}));var r=n(76),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 P(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 R=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)},D=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}},L=function(e,t){var n=document.createElement("a"),r=new Blob([e]),i=URL.createObjectURL(r);n.href=i,n.download=null!=t?t:"",document.body.appendChild(n),n.click(),URL.revokeObjectURL(i),n.remove()}},function(e,t,n){var r=n(351);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";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(7);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){"use strict";var r=n(23);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},function(e,t,n){"use strict";var r=n(11),i=n(141),o=n(24),a=n(156),s=n(154),u=n(352),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";var r=n(11),i=n(23),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(23),i=n(155),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";n.d(t,"a",(function(){return o}));var r=n(32),i=n(198);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(90),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";var r=n(4),i=n(27),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(9),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,i,o,a=n(240),s=n(15),u=n(11),c=n(23),l=n(16),f=n(24),d=n(90),h=n(155),p=n(62),g=n(35),m=n(45),v=n(79),y=n(63),b=n(111),_=n(17),w=n(156),E=n(34),S=E.enforce,x=E.get,k=u.Int8Array,T=k&&k.prototype,O=u.Uint8ClampedArray,P=O&&O.prototype,R=k&&y(k),A=T&&y(T),C=Object.prototype,D=u.TypeError,L=_("toStringTag"),I=w("TYPED_ARRAY_TAG"),M=a&&!!b&&"Opera"!==d(u.opera),j=!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:M=!1;for(r in F)(o=(i=u[r])&&i.prototype)&&(S(o).TypedArrayConstructor=i);if((!M||!c(R)||R===Function.prototype)&&(R=function(){throw new D("Incorrect invocation")},M))for(r in N)u[r]&&b(u[r],R);if((!M||!A||A===C)&&(A=R.prototype,M))for(r in N)u[r]&&b(u[r].prototype,A);if(M&&y(P)!==A&&b(P,A),s&&!f(A,L))for(r in j=!0,m(A,L,{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:M,TYPED_ARRAY_TAG:j&&I,aTypedArray:function(e){if(B(e))return e;throw new D("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!b||v(R,e)))return e;throw new D(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:M&&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(R[e]&&!n)return;try{return g(R,e,n?t:M&&R[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:R,TypedArrayPrototype:A}},function(e,t,n){"use strict";var r=n(42),i=Object;e.exports=function(e){return i(r(e))}},function(e,t,n){"use strict";var r=n(100);e.exports=function(e){return r(e.length)}},function(e,t,n){"use strict";var r=n(59),i=n(5),o=n(3),a=n(128),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";e.exports=!1},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(356),s=n(11),u=n(16),c=n(62),l=n(24),f=n(225),d=n(229),h=n(204),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(23),i=n(40),o=n(227),a=n(296);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(158),i=n(19),o=n(202),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(351);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(15),i=n(354),o=n(355),a=n(10),s=n(131),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";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},function(e,t,n){"use strict";var r=n(99),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(110);var a=n(33),s=n(176),u=n(49),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";var r=n(358);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},function(e,t,n){"use strict";var r=n(227),i=n(40);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){var r=n(107).default,i=n(1081);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(1082);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(33),o=n(286),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(231),i=n(24),o=n(360),a=n(40).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(37),i=n(8),o=n(10),a=n(155),s=n(305),u=n(28),c=n(79),l=n(142),f=n(132),d=n(57),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),P=r(t,S),R=function(e){return m&&d(m,"normal"),new p(!0,e)},A=function(e){return x?(o(e),O?P(e[0],e[1],R):P(e[0],e[1])):O?P(e,R):P(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(55),o=n(40).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(130),i=n(6),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(19),i=n(99);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(10),o=n(300),a=n(298),s=n(204),u=n(359),c=n(226),l=n(229),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(37),i=n(4),o=n(139),a=n(27),s=n(28),u=n(207),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(8),i=n(10),o=n(54);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(129),i=n(3),o=n(20),a=n(109),s=n(285),u=n(29),c=n(49),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";!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(1071)},function(e,t,n){"use strict";var r=n(139),i=n(42);e.exports=function(e){return r(i(e))}},function(e,t,n){"use strict";var r=n(15),i=n(40),o=n(98);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(24),i=n(23),o=n(27),a=n(229),s=n(304),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(1109),i=n(1110),o=n(519),a=n(1111);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";e.exports=function(e,t){return{value:e,done:t}}},function(e,t,n){"use strict";var r=n(4),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,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";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 M})),n.d(t,"getDefaults",(function(){return j})),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 Pe})),n.d(t,"plural",(function(){return Re})),n.d(t,"selectOrdinal",(function(){return Ae}));var r=n(13),i=n.n(r),o=n(117),a=n.n(o),s=n(0),u=n(107),c=n.n(u),l=n(549),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 P=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,R={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},A=function(e){return R[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 D(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 L,I={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(P,A)}};function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};I=D(D({},I),e)}function j(){return I}function N(e){L=e}function F(){return L}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 V(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 $(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 G(e){return Array.isArray(e)?e:[e]}function W(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){G(t).forEach((function(t){"string"!=typeof t&&($(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=V(V({},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,V(V({},e.props),{},{key:r}),i?void 0:t))}function g(t,i,l){var f=G(t);return G(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=V({},y=w)).props=Object.assign(v.props,y.props),b):w,S=Object(s.isValidElement)(E),x=S&&$(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($(E)||x){p(E,h(E,i,l),t,m)}else if(k){var P=g(f,i.children,l);t.push(Object(s.cloneElement)(E,V(V({},E.props),{},{key:m}),P))}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 R=g(f,i.children,l);t.push(Object(s.createElement)(i.name,{key:"".concat(i.name,"-").concat(m)},R))}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,V(V({},E.props),{},{key:m}),_)):t.push(Object(s.cloneElement)(E,V(V({},E.props),{},{key:m})));else{var C=i.children[0]?_:null;C&&t.push(C)}}else if("text"===i.type){var D=r.transWrapTextNodes,L=o?r.unescape(n.services.interpolator.interpolate(i.content,d,n.language)):n.services.interpolator.interpolate(i.content,d,n.language);D?t.push(Object(s.createElement)(D,{key:"".concat(i.name,"-").concat(m)},L)):t.push(L)}return t}),[])}return z(g([{dummy:!0,children:e||[]}],f,G(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=V(V({},j()),_.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=G(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),P=f?l.interpolation:{interpolation:V(V({},l.interpolation),{},{prefix:"#$?",suffix:"?$#"})},R=V(V(V(V({},l),{},{count:n},f),P),{},{defaultValue:k,ns:x}),A=W(h||t,O?E(O,R):k,_,S,R,v),C=void 0!==r?r:S.defaultTransParent;return C?Object(s.createElement)(C,y,A):A}var K=n(39),Y=n.n(K),Q=n(38),X=n.n(Q),J={type:"3rdParty",init:function(e){M(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(64),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({},j()),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 P=Object(s.useRef)(!0);Object(s.useEffect)((function(){O.current&&!P.current&&_(m),P.current=!1}),[a,h]);var R=[b,a,g];if(R.t=b,R.i18n=a,R.ready=g,g)return R;if(!g&&!d)return R;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""},Pe=function(){return""},Re=function(){return""},Ae=function(){return""}},function(e,t,n){"use strict";var r=n(6),i=n(96),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";var r=n(0),i=n(1139);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";var r,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return(r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return o(t,e),t}),s=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.getFormattedErrorMessage=t.getFormattedEventMessage=t.getFormattedEventName=void 0;const u=n(0),c=a(n(193)),l=n(541),f=n(1112),d=n(347);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_error":return"DVR Player long bufferization";case"on_load_error":return"DVR Player segment loading error";default:return console.error("Unknown errorName: "+e),e}};t.default=(0,u.memo)(e=>{var t,{logger:n,logEventQueue:r,clearLogEventQueue:i,streamInfo:o,getPlayerStats:a,getCurrentPlayerName:h}=e,p=s(e,["logger","logEventQueue","clearLogEventQueue","streamInfo","getPlayerStats","getCurrentPlayerName"]);const g=(0,f.custom_player_log)(),m=null===(t=Object.values(o))||void 0===t?void 0:t[0];return(0,u.useEffect)(()=>{if(c.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,s=r?e.data.error_name:void 0,u=a(),c=h(),f=(0,d.getCurrentPlayerVersion)(c),v=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({event:t,app_name:"@flussonic/flussonic-dvr-player",app_version:"25.9.4",stream:(null==m?void 0:m.name)||"",stream_title:(null==m?void 0:m.title)||"",server_instance_id:(null==m?void 0:m.instance_id)||"",protocol:(null==u?void 0:u.proto)||"",player_session_id:(null==u?void 0:u.source_id)||"",os_version:(null==u?void 0:u.user_agent)||"",uts_ms:n},(null==m?void 0:m.operator_id)&&{operator_id:null==m?void 0:m.operator_id}),f&&{player_version:f}),c&&{player_name:c}),i&&{event_message:i}),s&&{error_name:s}),o&&{error_message:o}),p);g({body:v,config:l.AUTH_CONFIG})};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,a]),(0,u.useEffect)(()=>()=>{n.stopLogging()},[n]),null})},function(e,t,n){"use strict";var r=n(15),i=n(8),o=n(203),a=n(98),s=n(61),u=n(131),c=n(24),l=n(354),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";var r=n(4),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(531),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";t.decode=t.parse=n(1076),t.encode=t.stringify=n(1077)},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(4),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(4);e.exports=r({}.isPrototypeOf)},function(e,t,n){"use strict";var r=n(202),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(74).has;e.exports=function(e){return r(e),e}},function(e,t,n){"use strict";var r=n(66).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(127),i=n(149),o=n(9);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(293),o=Object(r.a)((function(e){return Object(i.a)(e,[])}));t.a=o},function(e,t,n){"use strict";var r=n(79),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryContext=void 0;const i=r(n(0)),o=n(346),a=n(89),s={getCommonTelemetryFields:()=>({}),getCommonRequestFields:e=>{var t,n,r,i;const o=(0,a.getFilteredParams)(null===(t=e.config)||void 0===t?void 0:t.params),s=null!==(i=(0,a.getNewURL)(null===(n=e.config)||void 0===n?void 0:n.url,null===(r=e.config)||void 0===r?void 0:r.baseURL))&&void 0!==i?i:"";return{duration:e.duration,status:e.status,url:s.toString(),query_parameters:o}},getCommonErrorRequestFields:e=>{var t,n,r,i;const o=(0,a.getFilteredParams)(null===(t=e.config)||void 0===t?void 0:t.params),s=null!==(i=(0,a.getNewURL)(null===(n=e.config)||void 0===n?void 0:n.url,null===(r=e.config)||void 0===r?void 0:r.baseURL))&&void 0!==i?i:"";return{duration:e.duration,status:e.status||"",url:s.toString(),query_parameters:o,error_name:null==e?void 0:e.name,error_message:null==e?void 0:e.message}},sendMetrics:e=>{(0,o.sendMetrics)(e)}};t.TelemetryContext=i.default.createContext(s)},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";Object.defineProperty(t,"__esModule",{value:!0}),t.getFormattedBufferLength=t.getFormattedDuration=t.getFilteredParams=t.getNewURL=void 0;const r=n(193),i=["token","login"];t.getNewURL=(e,t)=>{if(e)return new URL(e,t)};t.getFilteredParams=e=>{const t=(0,r.omit)(i,e);return(0,r.isEmpty)(t)?void 0:JSON.stringify(t)};t.getFormattedDuration=e=>Number(e.toFixed(2)),t.getFormattedBufferLength=t.getFormattedDuration},function(e,t,n){"use strict";var r=n(299),i=n(23),o=n(78),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(40).f,i=n(24),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(3),i=n(85),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(77),o=n(94),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(105),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(284),i=n(287),o=n(276);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(1078),i=n(1079),o=n(519),a=n(1080);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";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";e.exports=function(e){return null==e}},function(e,t,n){"use strict";var r=n(44),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(4);e.exports=r([].slice)},function(e,t,n){"use strict";var r=n(4),i=n(145),o=n(74),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(4),i=n(42),o=n(22),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(7);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){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";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(16),o=n(42),a=n(368);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(15),i=n(40),o=n(98);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(7);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(35);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(4),i=n(145),o=n(66),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,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(1108);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],-1===t.indexOf(n)&&{}.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";Object.defineProperty(t,"__esModule",{value:!0}),t.PLAYER_NAME=t.DIGITS_REGEXP=t.MOBILE_DEVICE_REGEXP=t.OLDER_MOBILE_DEVICE_REGEXP=void 0,t.OLDER_MOBILE_DEVICE_REGEXP=/(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,t.MOBILE_DEVICE_REGEXP=/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,t.DIGITS_REGEXP=/[^0-9]/g,t.PLAYER_NAME={MSE:"mse-player",HLS:"hls.js",WEBRTC:"webrtc-player",NATIVE:"native-player"}},function(e,t,n){"use strict";var r,i,o=n(11),a=n(120),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";var r=n(11).navigator,i=r&&r.userAgent;e.exports=i?String(i):""},function(e,t,n){"use strict";var r=n(44),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(78);e.exports=Array.isArray||function(e){return"Array"===r(e)}},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(23),a=n(90),s=n(18),u=n(228),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(8),i=n(55),o=n(62),a=n(114),s=n(17),u=n(34),c=n(54),l=n(162).IteratorPrototype,f=n(65),d=n(57),h=n(244),p=s("toStringTag"),g=u.set,m=function(e){var t=u.getterFor(e?"WrapForValidIterator":"IteratorHelper");return a(i(l),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return f(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r: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)}if(n.openIters)try{h(n.openIters,"normal")}catch(e){return d(i,"throw",e)}return i&&d(i,"normal"),f(void 0,!0)}})},v=m(!0),y=m(!1);o(y,p,"Iterator Helper"),e.exports=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?"WrapForValidIterator":"IteratorHelper",i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,g(this,i)};return r.prototype=t?v:y,r}},function(e,t,n){"use strict";var r=n(11);e.exports=function(e,t){var n=r.Iterator,i=n&&n.prototype,o=i&&i[e],a=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){a=!0}},-1)}catch(e){e instanceof t||(a=!1)}if(!a)return o}},function(e,t,n){"use strict";var r=n(3),i=n(58),o=n(93),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(84),i=n(95),o=n(9),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(59),i=n(36);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(32);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,n){"use strict";var r=n(224),i=n(140);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},function(e,t,n){"use strict";var r=n(90),i=n(54),o=n(99),a=n(182),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(19),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(11),o=n(8),a=n(15),s=n(328),u=n(26),c=n(239),l=n(86),f=n(98),d=n(62),h=n(319),p=n(100),g=n(209),m=n(481),v=n(482),y=n(131),b=n(24),_=n(90),w=n(16),E=n(140),S=n(55),x=n(79),k=n(111),T=n(157).f,O=n(483),P=n(56).forEach,R=n(163),A=n(45),C=n(40),D=n(73),L=n(143),I=n(34),M=n(159),j=I.get,N=I.set,F=I.enforce,U=C.f,B=D.f,q=i.RangeError,V=c.ArrayBuffer,$=V.prototype,z=c.DataView,G=u.NATIVE_ARRAY_BUFFER_VIEWS,W=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 j(this)[t]}})},X=function(e){var t;return x($,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?(G||(D.f=Z,C.f=ee,Q(K,"buffer"),Q(K,"byteOffset"),Q(K,"byteLength"),Q(K,"length")),r({target:"Object",stat:!0,forced:!G},{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=j(e);return n.view[c](t*a+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var i=j(e);i.view[f](t*a+i.byteOffset,n?v(r):r,!0)}(this,t,e)},enumerable:!0})};G?s&&(y=t((function(e,t,n,r){return l(e,b),M(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)?L(y,t):o(O,y,t):new h(g(t)),e,y)})),k&&k(y,H),P(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)?L(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 V(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,W&&d(b,W,u);var x=y!==h;_[u]=y,r({global:!0,constructor:!0,forced:x,sham:!G},_),"BYTES_PER_ELEMENT"in y||d(y,"BYTES_PER_ELEMENT",a),"BYTES_PER_ELEMENT"in b||d(b,"BYTES_PER_ELEMENT",a),R(u)}):e.exports=function(){}},function(e,t,n){"use strict";n(316),n(331);var r=n(18),i=n(4),o=n(141),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";var r=n(4),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.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(32),o=n(105),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(4),i=n(7),o=n(78),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(18),i=n(23),o=n(79),a=n(352),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(225);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},function(e,t,n){"use strict";var r=n(8),i=n(19),o=n(10),a=n(155),s=n(132),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=n(28);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(7);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){"use strict";var r=n(8);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(274),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(289),i=n(3),o=n(197),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(1070),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(84),i=n(95),o=n(9),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(129),i=n(284);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){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(119),i=n(7),o=n(11).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(4),i=0,o=Math.random(),a=r(1.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(357),i=n(298).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(78),i=n(4);e.exports=function(e){if("Function"===r(e))return i(e)}},function(e,t,n){"use strict";var r=n(23),i=n(16),o=n(111);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=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(162).IteratorPrototype,i=n(55),o=n(98),a=n(91),s=n(182),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,i,o,a=n(7),s=n(23),u=n(16),c=n(55),l=n(63),f=n(35),d=n(17),h=n(31),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(18),i=n(45),o=n(17),a=n(15),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(4),o=n(204),a=n(16),s=n(24),u=n(40).f,c=n(157),l=n(301),f=n(317),d=n(156),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(8),i=n(24),o=n(79),a=n(453),s=n(320),u=RegExp.prototype;e.exports=a.correct?function(e){return e.flags}:function(e){return a.correct||!o(u,e)||i(e,"flags")?e.flags:r(s,e)}},function(e,t,n){"use strict";var r=n(19),i=n(10),o=n(8),a=n(44),s=n(41),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(18),i=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},o=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};e.exports=function(e,t){var n=r("Set");try{(new n)[e](i(0));try{return(new n)[e](i(-1)),!1}catch(r){if(!t)return!0;try{return(new n)[e](o(-1/0)),!1}catch(r){var a=new n;return a.add(1),a.add(2),t(a[e](o(1/0)))}}}catch(e){return!1}}},function(e,t,n){"use strict";var r=n(18),i=n(23),o=n(967),a=n(16),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){e.exports=n(1085)},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(221),i=n(108),o=n(344),a=n(345),s=n(220),u=n(43),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(21),i=n(84),o=n(9),a=n(25),s=n(127),u=n(95),c=n(137),l=n(83),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(522);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(288);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(83),i=n(9);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 P=void 0!==p,R=P?p:s(e.options,v);f=k(v,P,R,!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";Object.defineProperty(t,"__esModule",{value:!0}),t.selectionControlTelemetry=void 0,t.selectionControlTelemetry={openDownloadDropdown:()=>({event:"open_download_dropdown",event_message:"User clicked on open download dropdown button",uts_ms:Date.now()}),openDownloadOptions:()=>({event:"open_download_options",event_message:"User clicked on open download options button",uts_ms:Date.now()}),clickBackToDownloadDropdown:()=>({event:"click_back_to_download_dropdown",event_message:"User clicked on back to download dropdown button",uts_ms:Date.now()}),clickDownload:e=>({event:"click_download_button",event_message:"User clicked on download button. Settings: "+JSON.stringify(e),uts_ms:Date.now()}),clickShareLink:()=>({event:"click_share_link",event_message:"User clicked on share link",uts_ms:Date.now()}),clickCopyEmbedURL:()=>({event:"click_copy_embed_url",event_message:"User clicked on copy embed url",uts_ms:Date.now()})}},function(e,t,n){"use strict";var r=n(15),i=n(24),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(24),i=n(297),o=n(73),a=n(40);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(357),i=n(298);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(22);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=n(238);e.exports="NODE"===r},function(e,t,n){"use strict";var r=n(4),i=n(42),o=n(22),a=n(185),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(11);e.exports=r.Promise},function(e,t,n){"use strict";var r=n(8),i=n(19),o=n(10),a=n(16),s=n(160),u=n(18),c=n(41),l=n(215),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(4),i=n(44),o=n(22),a=n(42),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(8),i=n(165),o=n(10),a=n(55),s=n(62),u=n(114),c=n(17),l=n(34),f=n(18),d=n(54),h=n(214),p=n(65),g=n(57),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";n.r(t);var r=n(83);n.d(t,"CancelledError",(function(){return r.a}));var i=n(280);n.d(t,"QueryCache",(function(){return i.a}));var o=n(520);n.d(t,"QueryClient",(function(){return o.a}));var a=n(172);n.d(t,"QueryObserver",(function(){return a.a}));var s=n(270);n.d(t,"QueriesObserver",(function(){return s.a}));var u=n(271);n.d(t,"InfiniteQueryObserver",(function(){return u.a}));var c=n(269);n.d(t,"MutationCache",(function(){return c.a}));var l=n(272);n.d(t,"MutationObserver",(function(){return l.a}));var f=n(137);n.d(t,"setLogger",(function(){return f.b}));var d=n(25);n.d(t,"notifyManager",(function(){return d.a}));var h=n(127);n.d(t,"focusManager",(function(){return h.a}));var p=n(149);n.d(t,"onlineManager",(function(){return p.a}));var g=n(9);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(273);n.d(t,"dehydrate",(function(){return m.a})),n.d(t,"hydrate",(function(){return m.b}));var v=n(521);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(171),o=n(530),a=n(540),s=n(1107),u=n(69),c=n(173);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(75);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";n.r(t),n.d(t,"F",(function(){return r})),n.d(t,"T",(function(){return i})),n.d(t,"__",(function(){return o})),n.d(t,"add",(function(){return s})),n.d(t,"addIndex",(function(){return f})),n.d(t,"addIndexRight",(function(){return d})),n.d(t,"adjust",(function(){return p})),n.d(t,"all",(function(){return _})),n.d(t,"allPass",(function(){return w.a})),n.d(t,"always",(function(){return E})),n.d(t,"and",(function(){return S})),n.d(t,"any",(function(){return T})),n.d(t,"anyPass",(function(){return A})),n.d(t,"ap",(function(){return C.a})),n.d(t,"aperture",(function(){return M})),n.d(t,"append",(function(){return j})),n.d(t,"apply",(function(){return N})),n.d(t,"applySpec",(function(){return V})),n.d(t,"applyTo",(function(){return $})),n.d(t,"ascend",(function(){return z})),n.d(t,"assoc",(function(){return Q})),n.d(t,"assocPath",(function(){return Y})),n.d(t,"binary",(function(){return J})),n.d(t,"bind",(function(){return Z.a})),n.d(t,"both",(function(){return ne})),n.d(t,"call",(function(){return re})),n.d(t,"chain",(function(){return me})),n.d(t,"clamp",(function(){return ve})),n.d(t,"clone",(function(){return ye.a})),n.d(t,"collectBy",(function(){return _e})),n.d(t,"comparator",(function(){return we})),n.d(t,"complement",(function(){return Ee.a})),n.d(t,"compose",(function(){return Se.a})),n.d(t,"composeWith",(function(){return De})),n.d(t,"concat",(function(){return Me})),n.d(t,"cond",(function(){return je})),n.d(t,"construct",(function(){return Ue})),n.d(t,"constructN",(function(){return Fe})),n.d(t,"converge",(function(){return qe})),n.d(t,"count",(function(){return Ve})),n.d(t,"countBy",(function(){return Ye})),n.d(t,"curry",(function(){return Ne})),n.d(t,"curryN",(function(){return l.a})),n.d(t,"dec",(function(){return Qe})),n.d(t,"defaultTo",(function(){return Xe})),n.d(t,"descend",(function(){return Je})),n.d(t,"difference",(function(){return nt})),n.d(t,"differenceWith",(function(){return it})),n.d(t,"dissoc",(function(){return st})),n.d(t,"dissocPath",(function(){return at})),n.d(t,"divide",(function(){return ut})),n.d(t,"drop",(function(){return dt})),n.d(t,"dropLast",(function(){return bt})),n.d(t,"dropLastWhile",(function(){return St})),n.d(t,"dropRepeats",(function(){return Rt})),n.d(t,"dropRepeatsBy",(function(){return Ct})),n.d(t,"dropRepeatsWith",(function(){return Ot})),n.d(t,"dropWhile",(function(){return It})),n.d(t,"either",(function(){return jt})),n.d(t,"empty",(function(){return Nt.a})),n.d(t,"endsWith",(function(){return Ut})),n.d(t,"eqBy",(function(){return At})),n.d(t,"eqProps",(function(){return Bt})),n.d(t,"equals",(function(){return Pt.a})),n.d(t,"evolve",(function(){return Vt})),n.d(t,"filter",(function(){return $t.a})),n.d(t,"find",(function(){return Wt})),n.d(t,"findIndex",(function(){return Yt})),n.d(t,"findLast",(function(){return Jt})),n.d(t,"findLastIndex",(function(){return tn})),n.d(t,"flatten",(function(){return nn})),n.d(t,"flip",(function(){return rn})),n.d(t,"forEach",(function(){return an})),n.d(t,"forEachObjIndexed",(function(){return sn})),n.d(t,"fromPairs",(function(){return un})),n.d(t,"groupBy",(function(){return cn})),n.d(t,"groupWith",(function(){return ln})),n.d(t,"gt",(function(){return fn})),n.d(t,"gte",(function(){return dn})),n.d(t,"has",(function(){return pn})),n.d(t,"hasIn",(function(){return gn})),n.d(t,"hasPath",(function(){return hn})),n.d(t,"head",(function(){return Te})),n.d(t,"identical",(function(){return yn})),n.d(t,"identity",(function(){return Re})),n.d(t,"ifElse",(function(){return bn})),n.d(t,"inc",(function(){return _n})),n.d(t,"includes",(function(){return wn})),n.d(t,"indexBy",(function(){return En})),n.d(t,"indexOf",(function(){return xn})),n.d(t,"init",(function(){return kn})),n.d(t,"innerJoin",(function(){return On})),n.d(t,"insert",(function(){return Pn})),n.d(t,"insertAll",(function(){return Rn})),n.d(t,"intersection",(function(){return In})),n.d(t,"intersperse",(function(){return Mn})),n.d(t,"into",(function(){return Vn})),n.d(t,"invert",(function(){return $n})),n.d(t,"invertObj",(function(){return zn})),n.d(t,"invoker",(function(){return Gn})),n.d(t,"is",(function(){return Wn})),n.d(t,"isEmpty",(function(){return Hn.a})),n.d(t,"isNil",(function(){return K.a})),n.d(t,"isNotNil",(function(){return Kn})),n.d(t,"join",(function(){return Yn})),n.d(t,"juxt",(function(){return Qn})),n.d(t,"keys",(function(){return U.a})),n.d(t,"keysIn",(function(){return Xn})),n.d(t,"last",(function(){return Tt})),n.d(t,"lastIndexOf",(function(){return Jn})),n.d(t,"length",(function(){return er})),n.d(t,"lens",(function(){return tr})),n.d(t,"lensIndex",(function(){return rr})),n.d(t,"lensPath",(function(){return ar})),n.d(t,"lensProp",(function(){return ur})),n.d(t,"lift",(function(){return te.a})),n.d(t,"liftN",(function(){return cr.a})),n.d(t,"lt",(function(){return lr})),n.d(t,"lte",(function(){return fr})),n.d(t,"map",(function(){return ge.a})),n.d(t,"mapAccum",(function(){return dr})),n.d(t,"mapAccumRight",(function(){return hr})),n.d(t,"mapObjIndexed",(function(){return gr})),n.d(t,"match",(function(){return mr})),n.d(t,"mathMod",(function(){return vr})),n.d(t,"max",(function(){return O.a})),n.d(t,"maxBy",(function(){return yr})),n.d(t,"mean",(function(){return _r})),n.d(t,"median",(function(){return wr})),n.d(t,"memoizeWith",(function(){return Er})),n.d(t,"mergeAll",(function(){return Sr})),n.d(t,"mergeDeepLeft",(function(){return Tr})),n.d(t,"mergeDeepRight",(function(){return Or})),n.d(t,"mergeDeepWith",(function(){return Pr})),n.d(t,"mergeDeepWithKey",(function(){return kr})),n.d(t,"mergeLeft",(function(){return Rr})),n.d(t,"mergeRight",(function(){return Ar})),n.d(t,"mergeWith",(function(){return Cr})),n.d(t,"mergeWithKey",(function(){return xr})),n.d(t,"min",(function(){return Dr})),n.d(t,"minBy",(function(){return Lr})),n.d(t,"modify",(function(){return Mr})),n.d(t,"modifyPath",(function(){return Ir})),n.d(t,"modulo",(function(){return jr})),n.d(t,"move",(function(){return Nr})),n.d(t,"multiply",(function(){return Fr})),n.d(t,"nAry",(function(){return X})),n.d(t,"partialObject",(function(){return Ur})),n.d(t,"negate",(function(){return Br})),n.d(t,"none",(function(){return Vr})),n.d(t,"not",(function(){return $r.a})),n.d(t,"nth",(function(){return ke.a})),n.d(t,"nthArg",(function(){return zr})),n.d(t,"o",(function(){return Gr})),n.d(t,"objOf",(function(){return Fn})),n.d(t,"of",(function(){return Wr})),n.d(t,"omit",(function(){return Hr})),n.d(t,"on",(function(){return Kr})),n.d(t,"once",(function(){return Yr})),n.d(t,"or",(function(){return Mt})),n.d(t,"otherwise",(function(){return Jr})),n.d(t,"over",(function(){return ei})),n.d(t,"pair",(function(){return ti})),n.d(t,"partial",(function(){return ri})),n.d(t,"partialRight",(function(){return ii})),n.d(t,"partition",(function(){return ai})),n.d(t,"path",(function(){return or})),n.d(t,"paths",(function(){return ir})),n.d(t,"pathEq",(function(){return si})),n.d(t,"pathOr",(function(){return ui})),n.d(t,"pathSatisfies",(function(){return ci})),n.d(t,"pick",(function(){return li})),n.d(t,"pickAll",(function(){return fi})),n.d(t,"pickBy",(function(){return di})),n.d(t,"pipe",(function(){return hi.a})),n.d(t,"pipeWith",(function(){return Ae})),n.d(t,"pluck",(function(){return P.a})),n.d(t,"prepend",(function(){return pi})),n.d(t,"product",(function(){return gi})),n.d(t,"project",(function(){return vi})),n.d(t,"promap",(function(){return wi})),n.d(t,"prop",(function(){return sr.a})),n.d(t,"propEq",(function(){return Ei})),n.d(t,"propIs",(function(){return Si})),n.d(t,"propOr",(function(){return xi})),n.d(t,"propSatisfies",(function(){return ki})),n.d(t,"props",(function(){return Ti})),n.d(t,"range",(function(){return Oi})),n.d(t,"reduce",(function(){return R.a})),n.d(t,"reduceBy",(function(){return Ke})),n.d(t,"reduceRight",(function(){return Pi})),n.d(t,"reduceWhile",(function(){return Ri})),n.d(t,"reduced",(function(){return Ai})),n.d(t,"reject",(function(){return oi.a})),n.d(t,"remove",(function(){return ot})),n.d(t,"repeat",(function(){return Di})),n.d(t,"replace",(function(){return Li})),n.d(t,"reverse",(function(){return Ce.a})),n.d(t,"scan",(function(){return ji})),n.d(t,"sequence",(function(){return Ni})),n.d(t,"set",(function(){return Fi})),n.d(t,"slice",(function(){return ft.a})),n.d(t,"sort",(function(){return Ui})),n.d(t,"sortBy",(function(){return Bi})),n.d(t,"sortWith",(function(){return qi})),n.d(t,"split",(function(){return Vi})),n.d(t,"splitAt",(function(){return $i})),n.d(t,"splitEvery",(function(){return zi})),n.d(t,"splitWhen",(function(){return Gi})),n.d(t,"splitWhenever",(function(){return Wi})),n.d(t,"startsWith",(function(){return Hi})),n.d(t,"subtract",(function(){return Ki})),n.d(t,"sum",(function(){return br})),n.d(t,"swap",(function(){return Qi})),n.d(t,"symmetricDifference",(function(){return Xi})),n.d(t,"symmetricDifferenceWith",(function(){return Ji})),n.d(t,"tail",(function(){return Oe.a})),n.d(t,"take",(function(){return gt})),n.d(t,"takeLast",(function(){return Ft})),n.d(t,"takeLastWhile",(function(){return Zi})),n.d(t,"takeWhile",(function(){return no})),n.d(t,"tap",(function(){return oo})),n.d(t,"test",(function(){return so})),n.d(t,"andThen",(function(){return uo})),n.d(t,"times",(function(){return Ci})),n.d(t,"toLower",(function(){return co})),n.d(t,"toPairs",(function(){return lo})),n.d(t,"toPairsIn",(function(){return fo})),n.d(t,"toString",(function(){return Ie.a})),n.d(t,"toUpper",(function(){return ho})),n.d(t,"transduce",(function(){return po})),n.d(t,"transpose",(function(){return go})),n.d(t,"traverse",(function(){return mo})),n.d(t,"trim",(function(){return yo})),n.d(t,"tryCatch",(function(){return bo})),n.d(t,"type",(function(){return _o.a})),n.d(t,"unapply",(function(){return wo})),n.d(t,"unary",(function(){return Eo})),n.d(t,"uncurryN",(function(){return So})),n.d(t,"unfold",(function(){return xo})),n.d(t,"union",(function(){return ko})),n.d(t,"unionWith",(function(){return Ro})),n.d(t,"uniq",(function(){return Ln})),n.d(t,"uniqBy",(function(){return Dn})),n.d(t,"uniqWith",(function(){return Po})),n.d(t,"unless",(function(){return Ao})),n.d(t,"unnest",(function(){return Co})),n.d(t,"until",(function(){return Do})),n.d(t,"unwind",(function(){return Lo})),n.d(t,"update",(function(){return nr})),n.d(t,"useWith",(function(){return mi})),n.d(t,"values",(function(){return B})),n.d(t,"valuesIn",(function(){return Io})),n.d(t,"view",(function(){return jo})),n.d(t,"when",(function(){return No})),n.d(t,"where",(function(){return Fo})),n.d(t,"whereAny",(function(){return Uo})),n.d(t,"whereEq",(function(){return Bo})),n.d(t,"without",(function(){return qo})),n.d(t,"xor",(function(){return Vo})),n.d(t,"xprod",(function(){return $o})),n.d(t,"zip",(function(){return zo})),n.d(t,"zipObj",(function(){return Go})),n.d(t,"zipWith",(function(){return Wo})),n.d(t,"thunkify",(function(){return Ho}));var r=function(){return!1},i=function(){return!0},o={"@@functional/placeholder":!0},a=n(3),s=Object(a.a)((function(e,t){return Number(e)+Number(t)})),u=n(48),c=n(5),l=n(29),f=Object(c.a)((function(e){return Object(l.a)(e.length,(function(){var t=0,n=arguments[0],r=arguments[arguments.length-1],i=Array.prototype.slice.call(arguments,0);return i[0]=function(){var e=n.apply(this,Object(u.a)(arguments,[t,r]));return t+=1,e},e.apply(this,i)}))})),d=Object(c.a)((function(e){return Object(l.a)(e.length,(function(){var t=arguments[0],n=arguments[arguments.length-1],r=n.length-1,i=Array.prototype.slice.call(arguments,0);return i[0]=function(){var e=t.apply(this,Object(u.a)(arguments,[r,n]));return r-=1,e},e.apply(this,i)}))})),h=n(6),p=Object(h.a)((function(e,t,n){var r=n.length;if(e>=r||e<-r)return n;var i=(r+e)%r,o=Object(u.a)(n);return o[i]=t(n[i]),o})),g=n(20);function m(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var v=n(14),y=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=m(this.xf["@@transducer/step"](e,!1))),e},e}();function b(e){return function(t){return new y(e,t)}}var _=Object(a.a)(Object(g.a)(["all"],b,(function(e,t){for(var n=0;n<t.length;){if(!e(t[n]))return!1;n+=1}return!0}))),w=n(345),E=Object(c.a)((function(e){return function(){return e}})),S=Object(a.a)((function(e,t){return e&&t})),x=function(){function e(e,t){this.xf=t,this.f=e,this.any=!1}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=function(e){return this.any||(e=this.xf["@@transducer/step"](e,!1)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.any=!0,e=m(this.xf["@@transducer/step"](e,!0))),e},e}();function k(e){return function(t){return new x(e,t)}}var T=Object(a.a)(Object(g.a)(["any"],k,(function(e,t){for(var n=0;n<t.length;){if(e(t[n]))return!0;n+=1}return!1}))),O=n(92),P=n(126),R=n(70),A=Object(c.a)((function(e){return Object(l.a)(Object(R.a)(O.a,0,Object(P.a)("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))})),C=n(194);function D(e,t){for(var n=0,r=t.length-(e-1),i=new Array(r>=0?r:0);n<r;)i[n]=Array.prototype.slice.call(t,n,n+e),n+=1;return i}var L=function(){function e(e,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(e)}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=function(e){return this.acc=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.store(t),this.full?this.xf["@@transducer/step"](e,this.getCopy()):e},e.prototype.store=function(e){this.acc[this.pos]=e,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},e.prototype.getCopy=function(){return Object(u.a)(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))},e}();function I(e){return function(t){return new L(e,t)}}var M=Object(a.a)(Object(g.a)([],I,D)),j=Object(a.a)((function(e,t){return Object(u.a)(t,[e])})),N=Object(a.a)((function(e,t){return e.apply(this,t)})),F=n(32),U=n(49),B=Object(c.a)((function(e){for(var t=Object(U.a)(e),n=t.length,r=[],i=0;i<n;)r[i]=e[t[i]],i+=1;return r}));function q(e,t){return Object(F.a)(t)?t.map(e):Object(U.a)(t).reduce((function(n,r){return n[r]=e(t[r]),n}),{})}var V=Object(c.a)((function e(t){return t=q((function(t){return"function"==typeof t?t:e(t)}),t),Object(l.a)(Object(R.a)(O.a,0,Object(P.a)("length",B(t))),(function(){var e=arguments;return q((function(t){return N(t,e)}),t)}))})),$=Object(a.a)((function(e,t){return t(e)})),z=Object(h.a)((function(e,t,n){var r=e(t),i=e(n);return r<i?-1:r>i?1:0})),G=n(33),W=n(77);function H(e,t,n){if(Object(W.a)(e)&&Object(F.a)(n)){var r=[].concat(n);return r[e]=t,r}var i={};for(var o in n)i[o]=n[o];return i[e]=t,i}var K=n(108),Y=Object(h.a)((function e(t,n,r){if(0===t.length)return n;var i=t[0];if(t.length>1){var o=!Object(K.a)(r)&&Object(G.a)(i,r)&&"object"==typeof r[i]?r[i]:Object(W.a)(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,o)}return H(i,n,r)})),Q=Object(h.a)((function(e,t,n){return Y([e],t,n)})),X=Object(a.a)((function(e,t){switch(e){case 0:return function(){return t.call(this)};case 1:return function(e){return t.call(this,e)};case 2:return function(e,n){return t.call(this,e,n)};case 3:return function(e,n,r){return t.call(this,e,n,r)};case 4:return function(e,n,r,i){return t.call(this,e,n,r,i)};case 5:return function(e,n,r,i,o){return t.call(this,e,n,r,i,o)};case 6:return function(e,n,r,i,o,a){return t.call(this,e,n,r,i,o,a)};case 7:return function(e,n,r,i,o,a,s){return t.call(this,e,n,r,i,o,a,s)};case 8:return function(e,n,r,i,o,a,s,u){return t.call(this,e,n,r,i,o,a,s,u)};case 9:return function(e,n,r,i,o,a,s,u,c){return t.call(this,e,n,r,i,o,a,s,u,c)};case 10:return function(e,n,r,i,o,a,s,u,c,l){return t.call(this,e,n,r,i,o,a,s,u,c,l)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}})),J=Object(c.a)((function(e){return X(2,e)})),Z=n(276);function ee(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}var te=n(146),ne=Object(a.a)((function(e,t){return ee(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Object(te.a)(S)(e,t)})),re=Object(c.a)((function(e){return e.apply(this,Array.prototype.slice.call(arguments,1))})),ie=n(138);function oe(e){return function t(n){for(var r,i,o,a=[],s=0,u=n.length;s<u;){if(Object(ie.a)(n[s]))for(o=0,i=(r=e?t(n[s]):n[s]).length;o<i;)a[a.length]=r[o],o+=1;else a[a.length]=n[s];s+=1}return a}}var ae=n(287),se=n(96),ue="@@transducer/init",ce="@@transducer/step",le=function(){function e(e){this.xf=e}return e.prototype[ue]=v.a.init,e.prototype["@@transducer/result"]=v.a.result,e.prototype[ce]=function(e,t){var n=this.xf[ce](e,t);return n["@@transducer/reduced"]?{"@@transducer/value":n,"@@transducer/reduced":!0}:n},e}(),fe=function(){function e(e){this.xf=new le(e)}return e.prototype[ue]=v.a.init,e.prototype["@@transducer/result"]=v.a.result,e.prototype[ce]=function(e,t){return Object(ie.a)(t)?Object(se.a)(this.xf,e,t):Object(ae.a)(this.xf,e,[t])},e}(),de=function(e){return new fe(e)},he=n(285);function pe(e){return function(t){return Object(he.a)(e)(de(t))}}var ge=n(58),me=Object(a.a)(Object(g.a)(["fantasy-land/chain","chain"],pe,(function(e,t){return"function"==typeof t?function(n){return e(t(n))(n)}:oe(!1)(Object(ge.a)(e,t))}))),ve=Object(h.a)((function(e,t,n){if(e>t)throw new Error("min must not be greater than max in clamp(min, max, value)");return n<e?e:n>t?t:n})),ye=n(277),be=n(150),_e=Object(a.a)((function(e,t){var n=Object(be.a)((function(t,n){var r=e(n);return void 0===t[r]&&(t[r]=[]),t[r].push(n),t}),{},t),r=[];for(var i in n)r.push(n[i]);return r})),we=Object(c.a)((function(e){return function(t,n){return e(t,n)?-1:e(n,t)?1:0}})),Ee=n(221),Se=n(220),xe=n(59),ke=n(94),Te=Object(ke.a)(0),Oe=n(195);function Pe(e){return e}var Re=Object(c.a)(Pe),Ae=Object(a.a)((function(e,t){if(t.length<=0)return Re;var n=Te(t),r=Object(Oe.a)(t);return Object(xe.a)(n.length,(function(){return Object(be.a)((function(t,n){return e.call(this,n,t)}),n.apply(this,arguments),r)}))})),Ce=n(196),De=Object(a.a)((function(e,t){return Ae.apply(this,[e,Object(Ce.a)(t)])})),Le=n(105),Ie=n(85),Me=Object(a.a)((function(e,t){if(Object(F.a)(e)){if(Object(F.a)(t))return e.concat(t);throw new TypeError(Object(Ie.a)(t)+" is not an array")}if(Object(Le.a)(e)){if(Object(Le.a)(t))return e+t;throw new TypeError(Object(Ie.a)(t)+" is not a string")}if(null!=e&&ee(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&ee(e.concat))return e.concat(t);throw new TypeError(Object(Ie.a)(e)+' does not have a method named "concat" or "fantasy-land/concat"')})),je=Object(c.a)((function(e){var t=Object(R.a)(O.a,0,Object(ge.a)((function(e){return e[0].length}),e));return Object(xe.a)(t,(function(){for(var t=0;t<e.length;){if(e[t][0].apply(this,arguments))return e[t][1].apply(this,arguments);t+=1}}))})),Ne=Object(c.a)((function(e){return Object(l.a)(e.length,e)})),Fe=Object(a.a)((function(e,t){if(e>10)throw new Error("Constructor with greater than ten arguments");return 0===e?function(){return new t}:Ne(X(e,(function(n,r,i,o,a,s,u,c,l,f){switch(e){case 1:return new t(n);case 2:return new t(n,r);case 3:return new t(n,r,i);case 4:return new t(n,r,i,o);case 5:return new t(n,r,i,o,a);case 6:return new t(n,r,i,o,a,s);case 7:return new t(n,r,i,o,a,s,u);case 8:return new t(n,r,i,o,a,s,u,c);case 9:return new t(n,r,i,o,a,s,u,c,l);case 10:return new t(n,r,i,o,a,s,u,c,l,f)}})))})),Ue=Object(c.a)((function(e){return Fe(e.length,e)})),Be=n(109),qe=Object(a.a)((function(e,t){return Object(l.a)(Object(R.a)(O.a,0,Object(P.a)("length",t)),(function(){var n=arguments,r=this;return e.apply(r,Object(Be.a)((function(e){return e.apply(r,n)}),t))}))})),Ve=Ne((function(e,t){return Object(be.a)((function(t,n){return e(n)?t+1:t}),0,t)})),$e=n(200),ze=n(128),Ge=function(){function e(e,t,n,r){this.valueFn=e,this.valueAcc=t,this.keyFn=n,this.xf=r,this.inputs={}}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(Object(G.a)(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var n=this.keyFn(t);return this.inputs[n]=this.inputs[n]||[n,Object($e.a)(this.valueAcc,!1)],this.inputs[n][1]=this.valueFn(this.inputs[n][1],t),e},e}();function We(e,t,n){return function(r){return new Ge(e,t,n,r)}}var He=n(152),Ke=Object(ze.a)(4,[],Object(g.a)([],We,(function(e,t,n,r){var i=Object(He.a)((function(r,i){var o=n(i),a=e(Object(G.a)(o,r)?r[o]:Object($e.a)(t,!1),i);return a&&a["@@transducer/reduced"]?m(r):(r[o]=a,r)}));return Object(se.a)(i,{},r)}))),Ye=Ke((function(e,t){return e+1}),0),Qe=s(-1),Xe=Object(a.a)((function(e,t){return null==t||t!=t?e:t})),Je=Object(h.a)((function(e,t,n){var r=e(t),i=e(n);return r>i?-1:r<i?1:0})),Ze=n(174);function et(e,t,n){var r,i=typeof e;switch(i){case"string":case"number":return 0===e&&1/e==-1/0?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):i in n._items?e in n._items[i]||(t&&(n._items[i][e]=!0),!1):(t&&(n._items[i]={},n._items[i][e]=!0),!1);case"boolean":if(i in n._items){var o=e?1:0;return!!n._items[i][o]||(t&&(n._items[i][o]=!0),!1)}return t&&(n._items[i]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):i in n._items?!!Object(Ze.a)(e,n._items[i])||(t&&n._items[i].push(e),!1):(t&&(n._items[i]=[e]),!1);case"undefined":return!!n._items[i]||(t&&(n._items[i]=!0),!1);case"object":if(null===e)return!!n._items.null||(t&&(n._items.null=!0),!1);default:return(i=Object.prototype.toString.call(e))in n._items?!!Object(Ze.a)(e,n._items[i])||(t&&n._items[i].push(e),!1):(t&&(n._items[i]=[e]),!1)}}var tt=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!et(e,!0,this)},e.prototype.has=function(e){return et(e,!1,this)},e}(),nt=Object(a.a)((function(e,t){for(var n=[],r=0,i=e.length,o=t.length,a=new tt,s=0;s<o;s+=1)a.add(t[s]);for(;r<i;)a.add(e[r])&&(n[n.length]=e[r]),r+=1;return n})),rt=n(110),it=Object(h.a)((function(e,t,n){for(var r=[],i=0,o=t.length;i<o;)Object(rt.a)(e,t[i],n)||Object(rt.a)(e,t[i],r)||r.push(t[i]),i+=1;return r})),ot=Object(h.a)((function(e,t,n){var r=Array.prototype.slice.call(n,0);return r.splice(e,t),r}));var at=Object(a.a)((function e(t,n){if(null==n)return n;switch(t.length){case 0:return n;case 1:return function(e,t){if(null==t)return t;if(Object(W.a)(e)&&Object(F.a)(t))return ot(e,1,t);var n={};for(var r in t)n[r]=t[r];return delete n[e],n}(t[0],n);default:var r=t[0],i=Array.prototype.slice.call(t,1);return null==n[r]?function(e,t){if(Object(W.a)(e)&&Object(F.a)(t))return[].concat(t);var n={};for(var r in t)n[r]=t[r];return n}(r,n):Q(r,e(i,n[r]),n)}})),st=Object(a.a)((function(e,t){return at([e],t)})),ut=Object(a.a)((function(e,t){return e/t})),ct=function(){function e(e,t){this.xf=t,this.n=e}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=v.a.result,e.prototype["@@transducer/step"]=function(e,t){return this.n>0?(this.n-=1,e):this.xf["@@transducer/step"](e,t)},e}();function lt(e){return function(t){return new ct(e,t)}}var ft=n(53),dt=Object(a.a)(Object(g.a)(["drop"],lt,(function(e,t){return Object(ft.a)(Math.max(0,e),1/0,t)}))),ht=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=v.a.result,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var n=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?m(n):n},e}();function pt(e){return function(t){return new ht(e,t)}}var gt=Object(a.a)(Object(g.a)(["take"],pt,(function(e,t){return Object(ft.a)(0,e<0?1/0:e,t)})));function mt(e,t){return gt(e<t.length?t.length-e:0,t)}var vt=function(){function e(e,t){if(e<=0)return t;this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(e)}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=function(e){return this.acc=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.full&&(e=this.xf["@@transducer/step"](e,this.acc[this.pos])),this.store(t),e},e.prototype.store=function(e){this.acc[this.pos]=e,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},e}();function yt(e){return function(t){return new vt(e,t)}}var bt=Object(a.a)(Object(g.a)([],yt,mt));function _t(e,t){for(var n=t.length-1;n>=0&&e(t[n]);)n-=1;return Object(ft.a)(0,n+1,t)}var wt=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=function(e){return this.retained=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.retain(e,t):this.flush(e,t)},e.prototype.flush=function(e,t){return e=Object(se.a)(this.xf,e,this.retained),this.retained=[],this.xf["@@transducer/step"](e,t)},e.prototype.retain=function(e,t){return this.retained.push(t),e},e}();function Et(e){return function(t){return new wt(e,t)}}var St=Object(a.a)(Object(g.a)([],Et,_t)),xt=function(){function e(e,t){this.xf=t,this.pred=e,this.lastValue=void 0,this.seenFirstValue=!1}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=v.a.result,e.prototype["@@transducer/step"]=function(e,t){var n=!1;return this.seenFirstValue?this.pred(this.lastValue,t)&&(n=!0):this.seenFirstValue=!0,this.lastValue=t,n?e:this.xf["@@transducer/step"](e,t)},e}();function kt(e){return function(t){return new xt(e,t)}}var Tt=Object(ke.a)(-1),Ot=Object(a.a)(Object(g.a)([],kt,(function(e,t){var n=[],r=1,i=t.length;if(0!==i)for(n[0]=t[0];r<i;)e(Tt(n),t[r])||(n[n.length]=t[r]),r+=1;return n}))),Pt=n(43),Rt=Object(c.a)(Object(g.a)([],(function(){return kt(Pt.a)}),Ot(Pt.a))),At=Object(h.a)((function(e,t,n){return Object(Pt.a)(e(t),e(n))})),Ct=Object(a.a)((function(e,t){return Object(g.a)([],(function(){return kt(At(e))}),Ot(At(e)))(t)})),Dt=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=v.a.result,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function Lt(e){return function(t){return new Dt(e,t)}}var It=Object(a.a)(Object(g.a)(["dropWhile"],Lt,(function(e,t){for(var n=0,r=t.length;n<r&&e(t[n]);)n+=1;return Object(ft.a)(n,1/0,t)}))),Mt=Object(a.a)((function(e,t){return e||t})),jt=Object(a.a)((function(e,t){return ee(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Object(te.a)(Mt)(e,t)})),Nt=n(278),Ft=Object(a.a)((function(e,t){return dt(e>=0?t.length-e:0,t)})),Ut=Object(a.a)((function(e,t){return Object(Pt.a)(Ft(e.length,t),e)})),Bt=Object(h.a)((function(e,t,n){return Object(Pt.a)(t[e],n[e])})),qt=n(116),Vt=Object(a.a)((function e(t,n){if(!Object(qt.a)(n)&&!Object(F.a)(n))return n;var r,i,o,a=n instanceof Array?[]:{};for(i in n)o=typeof(r=t[i]),a[i]="function"===o?r(n[i]):r&&"object"===o?e(r,n[i]):n[i];return a})),$t=n(197),zt=function(){function e(e,t){this.xf=t,this.f=e,this.found=!1}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,void 0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.found=!0,e=m(this.xf["@@transducer/step"](e,t))),e},e}();function Gt(e){return function(t){return new zt(e,t)}}var Wt=Object(a.a)(Object(g.a)(["find"],Gt,(function(e,t){for(var n=0,r=t.length;n<r;){if(e(t[n]))return t[n];n+=1}}))),Ht=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.found=!1}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,-1)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.found=!0,e=m(this.xf["@@transducer/step"](e,this.idx))),e},e}();function Kt(e){return function(t){return new Ht(e,t)}}var Yt=Object(a.a)(Object(g.a)([],Kt,(function(e,t){for(var n=0,r=t.length;n<r;){if(e(t[n]))return n;n+=1}return-1}))),Qt=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.last))},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.last=t),e},e}();function Xt(e){return function(t){return new Qt(e,t)}}var Jt=Object(a.a)(Object(g.a)([],Xt,(function(e,t){for(var n=t.length-1;n>=0;){if(e(t[n]))return t[n];n-=1}}))),Zt=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.lastIdx=-1}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.lastIdx))},e.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.lastIdx=this.idx),e},e}();function en(e){return function(t){return new Zt(e,t)}}var tn=Object(a.a)(Object(g.a)([],en,(function(e,t){for(var n=t.length-1;n>=0;){if(e(t[n]))return n;n-=1}return-1}))),nn=Object(c.a)(oe(!0)),rn=Object(c.a)((function(e){return Object(l.a)(e.length,(function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)}))})),on=n(130),an=Object(a.a)(Object(on.a)("forEach",(function(e,t){for(var n=t.length,r=0;r<n;)e(t[r]),r+=1;return t}))),sn=Object(a.a)((function(e,t){for(var n=Object(U.a)(t),r=0;r<n.length;){var i=n[r];e(t[i],i,t),r+=1}return t})),un=Object(c.a)((function(e){for(var t={},n=0;n<e.length;)t[e[n][0]]=e[n][1],n+=1;return t})),cn=Object(a.a)(Object(on.a)("groupBy",Ke((function(e,t){return e.push(t),e}),[]))),ln=Object(a.a)((function(e,t){for(var n=[],r=0,i=t.length;r<i;){for(var o=r+1;o<i&&e(t[o-1],t[o]);)o+=1;n.push(t.slice(r,o)),r=o}return n})),fn=Object(a.a)((function(e,t){return e>t})),dn=Object(a.a)((function(e,t){return e>=t})),hn=Object(a.a)((function(e,t){if(0===e.length||Object(K.a)(t))return!1;for(var n=t,r=0;r<e.length;){if(Object(K.a)(n)||!Object(G.a)(e[r],n))return!1;n=n[e[r]],r+=1}return!0})),pn=Object(a.a)((function(e,t){return hn([e],t)})),gn=Object(a.a)((function(e,t){return!Object(K.a)(t)&&e in t})),mn=n(176),vn=function(e,t){switch(arguments.length){case 0:return vn;case 1:return function t(n){switch(arguments.length){case 0:return t;default:return Object(mn.a)(e,n)}};default:return Object(mn.a)(e,t)}},yn=vn,bn=Object(h.a)((function(e,t,n){return Object(l.a)(Math.max(e.length,t.length,n.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)}))})),_n=s(1),wn=Object(a.a)(Ze.a),En=Ke((function(e,t){return t}),null),Sn=n(288),xn=Object(a.a)((function(e,t){return"function"!=typeof t.indexOf||Object(F.a)(t)?Object(Sn.a)(t,e,0):t.indexOf(e)})),kn=Object(ft.a)(0,-1),Tn=n(199),On=Object(h.a)((function(e,t,n){return Object(Tn.a)((function(t){return Object(rt.a)(e,t,n)}),t)})),Pn=Object(h.a)((function(e,t,n){e=e<n.length&&e>=0?e:n.length;var r=Array.prototype.slice.call(n,0);return r.splice(e,0,t),r})),Rn=Object(h.a)((function(e,t,n){return e=e<n.length&&e>=0?e:n.length,[].concat(Array.prototype.slice.call(n,0,e),t,Array.prototype.slice.call(n,e))})),An=function(){function e(e,t){this.xf=t,this.f=e,this.set=new tt}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=v.a.result,e.prototype["@@transducer/step"]=function(e,t){return this.set.add(this.f(t))?this.xf["@@transducer/step"](e,t):e},e}();function Cn(e){return function(t){return new An(e,t)}}var Dn=Object(a.a)(Object(g.a)([],Cn,(function(e,t){for(var n,r,i=new tt,o=[],a=0;a<t.length;)n=e(r=t[a]),i.add(n)&&o.push(r),a+=1;return o}))),Ln=Dn(Re),In=Object(a.a)((function(e,t){for(var n=new tt,r=0;r<e.length;r+=1)n.add(e[r]);return Ln(Object(Tn.a)(n.has.bind(n),t))})),Mn=Object(a.a)(Object(on.a)("intersperse",(function(e,t){for(var n=[],r=0,i=t.length;r<i;)r===i-1?n.push(t[r]):n.push(t[r],e),r+=1;return n}))),jn=n(198);var Nn="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,r=arguments.length;n<r;){var i=arguments[n];if(null!=i)for(var o in i)Object(G.a)(o,i)&&(t[o]=i[o]);n+=1}return t},Fn=Object(a.a)((function(e,t){var n={};return n[e]=t,n})),Un={"@@transducer/init":Array,"@@transducer/step":function(e,t){return e.push(t),e},"@@transducer/result":Pe},Bn={"@@transducer/init":String,"@@transducer/step":function(e,t){return e+t},"@@transducer/result":Pe},qn={"@@transducer/init":Object,"@@transducer/step":function(e,t){return Nn(e,Object(ie.a)(t)?Fn(t[0],t[1]):t)},"@@transducer/result":Pe};var Vn=Object(h.a)((function(e,t,n){var r=t(Object(jn.a)(e)?e:function(e){if(Object(jn.a)(e))return e;if(Object(ie.a)(e))return Un;if("string"==typeof e)return Bn;if("object"==typeof e)return qn;throw new Error("Cannot create transformer for "+e)}(e));return Object(se.a)(r,r["@@transducer/init"](),n)})),$n=Object(c.a)((function(e){for(var t=Object(U.a)(e),n=t.length,r=0,i={};r<n;){var o=t[r],a=e[o],s=Object(G.a)(a,i)?i[a]:i[a]=[];s[s.length]=o,r+=1}return i})),zn=Object(c.a)((function(e){for(var t=Object(U.a)(e),n=t.length,r=0,i={};r<n;){var o=t[r];i[e[o]]=o,r+=1}return i})),Gn=Object(a.a)((function(e,t){return Object(l.a)(e+1,(function(){var n=arguments[e];if(null!=n&&ee(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Object(Ie.a)(n)+' does not have a method named "'+t+'"')}))})),Wn=Object(a.a)((function(e,t){return t instanceof e||null!=t&&(t.constructor===e||"Object"===e.name&&"object"==typeof t)})),Hn=n(344),Kn=Object(c.a)((function(e){return!Object(K.a)(e)})),Yn=Gn(1,"join"),Qn=Object(c.a)((function(e){return qe((function(){return Array.prototype.slice.call(arguments,0)}),e)})),Xn=Object(c.a)((function(e){var t,n=[];for(t in e)n[n.length]=t;return n})),Jn=Object(a.a)((function(e,t){if("function"!=typeof t.lastIndexOf||Object(F.a)(t)){for(var n=t.length-1;n>=0;){if(Object(Pt.a)(t[n],e))return n;n-=1}return-1}return t.lastIndexOf(e)}));function Zn(e){return"[object Number]"===Object.prototype.toString.call(e)}var er=Object(c.a)((function(e){return null!=e&&Zn(e.length)?e.length:NaN})),tr=Object(a.a)((function(e,t){return function(n){return function(r){return Object(ge.a)((function(e){return t(e,r)}),n(e(r)))}}})),nr=Object(h.a)((function(e,t,n){return p(e,E(t),n)})),rr=Object(c.a)((function(e){return tr(Object(ke.a)(e),nr(e))})),ir=Object(a.a)((function(e,t){return e.map((function(e){for(var n,r=t,i=0;i<e.length;){if(null==r)return;n=e[i],r=Object(W.a)(n)?Object(ke.a)(n,r):r[n],i+=1}return r}))})),or=Object(a.a)((function(e,t){return ir([e],t)[0]})),ar=Object(c.a)((function(e){return tr(or(e),Y(e))})),sr=n(93),ur=Object(c.a)((function(e){return tr(Object(sr.a)(e),Q(e))})),cr=n(274),lr=Object(a.a)((function(e,t){return e<t})),fr=Object(a.a)((function(e,t){return e<=t})),dr=Object(h.a)((function(e,t,n){for(var r=0,i=n.length,o=[],a=[t];r<i;)a=e(a[0],n[r]),o[r]=a[1],r+=1;return[a[0],o]})),hr=Object(h.a)((function(e,t,n){for(var r=n.length-1,i=[],o=[t];r>=0;)o=e(o[0],n[r]),i[r]=o[1],r-=1;return[o[0],i]})),pr=n(129),gr=Object(a.a)((function(e,t){return Object(pr.a)((function(n,r){return n[r]=e(t[r],r,t),n}),{},Object(U.a)(t))})),mr=Object(a.a)((function(e,t){return t.match(e)||[]})),vr=Object(a.a)((function(e,t){return Object(W.a)(e)?!Object(W.a)(t)||t<1?NaN:(e%t+t)%t:NaN})),yr=Object(h.a)((function(e,t,n){var r=e(n);return Object(O.a)(e(t),r)===r?n:t})),br=Object(R.a)(s,0),_r=Object(c.a)((function(e){return br(e)/e.length})),wr=Object(c.a)((function(e){var t=e.length;if(0===t)return NaN;var n=2-t%2,r=(t-n)/2;return _r(Array.prototype.slice.call(e,0).sort((function(e,t){return e<t?-1:e>t?1:0})).slice(r,r+n))})),Er=Object(a.a)((function(e,t){var n={};return Object(xe.a)(t.length,(function(){var r=e.apply(this,arguments);return Object(G.a)(r,n)||(n[r]=t.apply(this,arguments)),n[r]}))})),Sr=Object(c.a)((function(e){return Nn.apply(null,[{}].concat(e))})),xr=Object(h.a)((function(e,t,n){var r,i={};for(r in n=n||{},t=t||{})Object(G.a)(r,t)&&(i[r]=Object(G.a)(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)Object(G.a)(r,n)&&!Object(G.a)(r,i)&&(i[r]=n[r]);return i})),kr=Object(h.a)((function e(t,n,r){return xr((function(n,r,i){return Object(qt.a)(r)&&Object(qt.a)(i)?e(t,r,i):t(n,r,i)}),n,r)})),Tr=Object(a.a)((function(e,t){return kr((function(e,t,n){return t}),e,t)})),Or=Object(a.a)((function(e,t){return kr((function(e,t,n){return n}),e,t)})),Pr=Object(h.a)((function(e,t,n){return kr((function(t,n,r){return e(n,r)}),t,n)})),Rr=Object(a.a)((function(e,t){return Nn({},t,e)})),Ar=Object(a.a)((function(e,t){return Nn({},e,t)})),Cr=Object(h.a)((function(e,t,n){return xr((function(t,n,r){return e(n,r)}),t,n)})),Dr=Object(a.a)((function(e,t){if(e===t)return e;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 i=n(typeof e,typeof t);if(void 0!==i)return i===typeof e?e:t;var o=Object(Ie.a)(e),a=n(o,Object(Ie.a)(t));return void 0!==a?a===o?e:t:e})),Lr=Object(h.a)((function(e,t,n){var r=e(n);return Dr(e(t),r)===r?n:t}));var Ir=Object(h.a)((function e(t,n,r){if(!Object(qt.a)(r)&&!Object(F.a)(r))return r;if(0===t.length)return n(r);var i=t[0];if(!Object(G.a)(i,r))return r;if(1===t.length)return function(e,t,n){if(Object(W.a)(e)&&Object(F.a)(n)){var r=[].concat(n);return r[e]=t(r[e]),r}var i={};for(var o in n)i[o]=n[o];return i[e]=t(i[e]),i}(i,n,r);var o=e(Array.prototype.slice.call(t,1),n,r[i]);return o===r[i]?r:H(i,o,r)})),Mr=Object(h.a)((function(e,t,n){return Ir([e],t,n)})),jr=Object(a.a)((function(e,t){return e%t})),Nr=Object(h.a)((function(e,t,n){var r=n.length,i=n.slice(),o=e<0?r+e:e,a=t<0?r+t:t,s=i.splice(o,1);return o<0||o>=n.length||a<0||a>=n.length?n:[].concat(i.slice(0,a)).concat(s).concat(i.slice(a,n.length))})),Fr=Object(a.a)((function(e,t){return e*t})),Ur=Object(a.a)((e,t)=>n=>e.call(void 0,Or(t,n))),Br=Object(c.a)((function(e){return-e})),qr=n(289),Vr=Object(a.a)((function(e,t){return _(Object(qr.a)(e),t)})),$r=n(275),zr=Object(c.a)((function(e){var t=e<0?1:e+1;return Object(l.a)(t,(function(){return Object(ke.a)(e,arguments)}))})),Gr=Object(h.a)((function(e,t,n){return e(t(n))})),Wr=Object(a.a)((function(e,t){return"function"==typeof e["fantasy-land/of"]?e["fantasy-land/of"](t):"function"==typeof e.of?e.of(t):[t]})),Hr=Object(a.a)((function(e,t){for(var n={},r={},i=0,o=e.length;i<o;)r[e[i]]=1,i+=1;for(var a in t)r.hasOwnProperty(a)||(n[a]=t[a]);return n})),Kr=Object(ze.a)(4,[],(function(e,t,n,r){return e(t(n),t(r))})),Yr=Object(c.a)((function(e){var t,n=!1;return Object(xe.a)(e.length,(function(){return n?t:(n=!0,t=e.apply(this,arguments))}))})),Qr=n(293);function Xr(e,t){if(null==t||!ee(t.then))throw new TypeError("`"+e+"` expected a Promise, received "+Object(Qr.a)(t,[]))}var Jr=Object(a.a)((function(e,t){return Xr("otherwise",t),t.then(null,e)})),Zr=function(e){return{value:e,map:function(t){return Zr(t(e))}}},ei=Object(h.a)((function(e,t,n){return e((function(e){return Zr(t(e))}))(n).value})),ti=Object(a.a)((function(e,t){return[e,t]}));function ni(e){return Object(a.a)((function(t,n){return Object(xe.a)(Math.max(0,t.length-n.length),(function(){return t.apply(this,e(n,arguments))}))}))}var ri=ni(u.a),ii=ni(rn(u.a)),oi=n(147),ai=Qn([$t.a,oi.a]),si=Object(h.a)((function(e,t,n){return Object(Pt.a)(or(t,n),e)})),ui=Object(h.a)((function(e,t,n){return Xe(e,or(t,n))})),ci=Object(h.a)((function(e,t,n){return e(or(t,n))})),li=Object(a.a)((function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n})),fi=Object(a.a)((function(e,t){for(var n={},r=0,i=e.length;r<i;){var o=e[r];n[o]=t[o],r+=1}return n})),di=Object(a.a)((function(e,t){var n={};for(var r in t)e(t[r],r,t)&&(n[r]=t[r]);return n})),hi=n(279),pi=Object(a.a)((function(e,t){return Object(u.a)([e],t)})),gi=Object(R.a)(Fr,1),mi=Object(a.a)((function(e,t){return Object(l.a)(t.length,(function(){for(var n=[],r=0;r<t.length;)n.push(t[r].call(this,arguments[r])),r+=1;return e.apply(this,n.concat(Array.prototype.slice.call(arguments,t.length)))}))})),vi=mi(Be.a,[fi,Re]);function yi(e,t,n){return function(r){return t(n(e(r)))}}var bi=function(){function e(e,t,n){this.xf=n,this.f=e,this.g=t}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=v.a.result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,yi(this.f,this.g,t))},e}();function _i(e,t){return function(n){return new bi(e,t,n)}}var wi=Object(h.a)(Object(g.a)(["fantasy-land/promap","promap"],_i,yi)),Ei=Object(h.a)((function(e,t,n){return Object(Pt.a)(e,Object(sr.a)(t,n))})),Si=Object(h.a)((function(e,t,n){return Wn(e,Object(sr.a)(t,n))})),xi=Object(h.a)((function(e,t,n){return Xe(e,Object(sr.a)(t,n))})),ki=Object(h.a)((function(e,t,n){return e(Object(sr.a)(t,n))})),Ti=Object(a.a)((function(e,t){return e.map((function(e){return or([e],t)}))})),Oi=Object(a.a)((function(e,t){if(!Zn(e)||!Zn(t))throw new TypeError("Both arguments to range must be numbers");for(var n=[],r=e;r<t;)n.push(r),r+=1;return n})),Pi=Object(h.a)((function(e,t,n){for(var r=n.length-1;r>=0;){if((t=e(n[r],t))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r-=1}return t})),Ri=Object(ze.a)(4,[],(function(e,t,n,r){var i=Object(He.a)((function(n,r){return e(n,r)?t(n,r):m(n)}));return Object(se.a)(i,n,r)})),Ai=Object(c.a)(m),Ci=Object(a.a)((function(e,t){var n,r=Number(t),i=0;if(r<0||isNaN(r))throw new RangeError("n must be a non-negative number");for(n=[];i<r;)n.push(e(i)),i+=1;return n})),Di=Object(a.a)((function(e,t){return Ci(E(e),t)})),Li=Object(h.a)((function(e,t,n){return n.replace(e,t)})),Ii=function(){function e(e,t,n){this.xf=n,this.f=e,this.acc=t}return e.prototype["@@transducer/init"]=function(){return this.xf["@@transducer/step"](this.xf["@@transducer/init"](),this.acc)},e.prototype["@@transducer/result"]=v.a.result,e.prototype["@@transducer/step"]=function(e,t){return e["@@transducer/reduced"]?e:(this.acc=this.f(this.acc,t),this.xf["@@transducer/step"](e,this.acc))},e}(),Mi=Object(h.a)((function(e,t,n){return new Ii(e,t,n)})),ji=Object(h.a)(Object(g.a)([],Mi,(function(e,t,n){for(var r=0,i=n.length,o=[t];r<i;)t=e(t,n[r]),o[r+1]=t,r+=1;return o}))),Ni=Object(a.a)((function(e,t){var n="function"==typeof e["fantasy-land/of"]?e["fantasy-land/of"]:"function"==typeof e.of?e.of:e,r={"fantasy-land/of":n};return"function"==typeof t["fantasy-land/traverse"]?t["fantasy-land/traverse"](r,Pe):"function"==typeof t.traverse?t.traverse(r,Pe):Pi((function(e,t){return Object(C.a)(Object(ge.a)(pi,e),t)}),n([]),t)})),Fi=Object(h.a)((function(e,t,n){return ei(e,E(t),n)})),Ui=Object(a.a)((function(e,t){return Array.prototype.slice.call(t,0).sort(e)})),Bi=Object(a.a)((function(e,t){return Array.prototype.slice.call(t,0).sort((function(t,n){var r=e(t),i=e(n);return r<i?-1:r>i?1:0}))})),qi=Object(a.a)((function(e,t){return Array.prototype.slice.call(t,0).sort((function(t,n){for(var r=0,i=0;0===r&&i<e.length;)r=e[i](t,n),i+=1;return r}))})),Vi=Gn(1,"split"),$i=Object(a.a)((function(e,t){return[Object(ft.a)(0,e,t),Object(ft.a)(e,er(t),t)]})),zi=Object(a.a)((function(e,t){if(e<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var n=[],r=0;r<t.length;)n.push(Object(ft.a)(r,r+=e,t));return n})),Gi=Object(a.a)((function(e,t){for(var n=0,r=t.length,i=[];n<r&&!e(t[n]);)i.push(t[n]),n+=1;return[i,Array.prototype.slice.call(t,n)]})),Wi=Object(ze.a)(2,[],(function(e,t){for(var n=[],r=[],i=0;i<t.length;i+=1)e(t[i])||r.push(t[i]),(i<t.length-1&&e(t[i+1])||i===t.length-1)&&r.length>0&&(n.push(r),r=[]);return n})),Hi=Object(a.a)((function(e,t){return Object(Pt.a)(gt(e.length,t),e)})),Ki=Object(a.a)((function(e,t){return Number(e)-Number(t)})),Yi=function(e,t,n){var r=n.length,i=n.slice(),o=e<0?r+e:e,a=t<0?r+t:t,s=Math.min(o,a),u=Math.max(o,a);return o<0||o>r||a<0||a>r||o===a?i:i=[].concat(i.slice(0,s)).concat([i[u]]).concat(i.slice(s+1,u)).concat([i[s]]).concat(i.slice(u+1,r))},Qi=Object(h.a)((function(e,t,n){return Object(F.a)(n)?Yi(e,t,n):Object(Le.a)(n)?function(e,t,n){var r=Yi(e,t,n);return Object(F.a)(r)?r.join(""):r}(e,t,n):function(e,t,n){var r=Object(ye.a)(n),i=Object.getOwnPropertyNames(r);if(i.includes(e)&&i.includes(t)){var o=r[e];r[e]=r[t],r[t]=o}return r}(e,t,n)})),Xi=Object(a.a)((function(e,t){return Me(nt(e,t),nt(t,e))})),Ji=Object(h.a)((function(e,t,n){return Me(it(e,t,n),it(e,n,t))})),Zi=Object(a.a)((function(e,t){for(var n=t.length-1;n>=0&&e(t[n]);)n-=1;return Object(ft.a)(n+1,1/0,t)})),eo=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=v.a.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):m(e)},e}();function to(e){return function(t){return new eo(e,t)}}var no=Object(a.a)(Object(g.a)(["takeWhile"],to,(function(e,t){for(var n=0,r=t.length;n<r&&e(t[n]);)n+=1;return Object(ft.a)(0,n,t)}))),ro=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=v.a.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t),this.xf["@@transducer/step"](e,t)},e}();function io(e){return function(t){return new ro(e,t)}}var oo=Object(a.a)(Object(g.a)([],io,(function(e,t){return e(t),t}))),ao=n(290);var so=Object(a.a)((function(e,t){if(n=e,"[object RegExp]"!==Object.prototype.toString.call(n))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Object(Ie.a)(e));var n;return Object(ao.a)(e).test(t)})),uo=Object(a.a)((function(e,t){return Xr("andThen",t),t.then(e)})),co=Gn(0,"toLowerCase"),lo=Object(c.a)((function(e){var t=[];for(var n in e)Object(G.a)(n,e)&&(t[t.length]=[n,e[n]]);return t})),fo=Object(c.a)((function(e){var t=[];for(var n in e)t[t.length]=[n,e[n]];return t})),ho=Gn(0,"toUpperCase"),po=Object(l.a)(4,(function(e,t,n,r){return Object(se.a)(e("function"==typeof t?Object(He.a)(t):t),n,r)})),go=Object(c.a)((function(e){for(var t=0,n=[];t<e.length;){for(var r=e[t],i=0;i<r.length;)void 0===n[i]&&(n[i]=[]),n[i].push(r[i]),i+=1;t+=1}return n})),mo=Object(h.a)((function(e,t,n){var r={"fantasy-land/of":"function"==typeof e["fantasy-land/of"]?e["fantasy-land/of"]:"function"==typeof e.of?e.of:e};return"function"==typeof n["fantasy-land/traverse"]?n["fantasy-land/traverse"](r,t):"function"==typeof n.traverse?n.traverse(r,t):Ni(r,Object(ge.a)(t,n))})),vo="\t\n\v\f\r                 \u2028\u2029\ufeff",yo="function"==typeof String.prototype.trim&&!vo.trim()&&"​".trim()?Object(c.a)((function(e){return e.trim()})):Object(c.a)((function(e){var t=new RegExp("^["+vo+"]["+vo+"]*"),n=new RegExp("["+vo+"]["+vo+"]*$");return e.replace(t,"").replace(n,"")})),bo=Object(a.a)((function(e,t){return Object(xe.a)(e.length,(function(){try{return e.apply(this,arguments)}catch(e){return t.apply(this,Object(u.a)([e],arguments))}}))})),_o=n(151),wo=Object(c.a)((function(e){return function(){return e(Array.prototype.slice.call(arguments,0))}})),Eo=Object(c.a)((function(e){return X(1,e)})),So=Object(a.a)((function(e,t){return Object(l.a)(e,(function(){for(var n,r=1,i=t,o=0;r<=e&&"function"==typeof i;)n=r===e?arguments.length:o+i.length,i=i.apply(this,Array.prototype.slice.call(arguments,o,n)),r+=1,o=n;return i}))})),xo=Object(a.a)((function(e,t){for(var n=e(t),r=[];n&&n.length;)r[r.length]=n[0],n=e(n[1]);return r})),ko=Object(a.a)(Object(Se.a)(Ln,u.a)),To=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=v.a.result,e.prototype["@@transducer/step"]=function(e,t){return Object(rt.a)(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();function Oo(e){return function(t){return new To(e,t)}}var Po=Object(a.a)(Object(g.a)([],Oo,(function(e,t){for(var n,r=0,i=t.length,o=[];r<i;)n=t[r],Object(rt.a)(e,n,o)||(o[o.length]=n),r+=1;return o}))),Ro=Object(h.a)((function(e,t,n){return Po(e,Object(u.a)(t,n))})),Ao=Object(h.a)((function(e,t,n){return e(n)?n:t(n)})),Co=me(Pe),Do=Object(h.a)((function(e,t,n){for(var r=n;!e(r);)r=t(r);return r})),Lo=Object(a.a)((function(e,t){return e in t&&Object(F.a)(t[e])?Object(Be.a)((function(n){return H(e,n,t)}),t[e]):[t]})),Io=Object(c.a)((function(e){var t,n=[];for(t in e)n[n.length]=e[t];return n})),Mo=function(e){return{value:e,"fantasy-land/map":function(){return this}}},jo=Object(a.a)((function(e,t){return e(Mo)(t).value})),No=Object(h.a)((function(e,t,n){return e(n)?t(n):n})),Fo=Object(a.a)((function(e,t){for(var n in e)if(Object(G.a)(n,e)&&!e[n](t[n]))return!1;return!0})),Uo=Object(a.a)((function(e,t){for(var n in e)if(Object(G.a)(n,e)&&e[n](t[n]))return!0;return!1})),Bo=Object(a.a)((function(e,t){return Fo(Object(ge.a)(Pt.a,e),t)})),qo=Object(a.a)((function(e,t){for(var n=new tt,r=0;r<e.length;r+=1)n.add(e[r]);return Object(oi.a)(n.has.bind(n),t)})),Vo=Object(a.a)((function(e,t){return Boolean(!e^!t)})),$o=Object(a.a)((function(e,t){for(var n,r=0,i=e.length,o=t.length,a=[];r<i;){for(n=0;n<o;)a[a.length]=[e[r],t[n]],n+=1;r+=1}return a})),zo=Object(a.a)((function(e,t){for(var n=[],r=0,i=Math.min(e.length,t.length);r<i;)n[r]=[e[r],t[r]],r+=1;return n})),Go=Object(a.a)((function(e,t){for(var n=0,r=Math.min(e.length,t.length),i={};n<r;)i[e[n]]=t[n],n+=1;return i})),Wo=Object(h.a)((function(e,t,n){for(var r=[],i=0,o=Math.min(t.length,n.length);i<o;)r[i]=e(t[i],n[i]),i+=1;return r})),Ho=Object(c.a)((function(e){return Object(l.a)(e.length,(function(){var t=arguments;return function(){return e.apply(this,t)}}))}))},function(e,t,n){"use strict";var r=n(48),i=n(3),o=n(150),a=n(58),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(130),i=n(5),o=n(53),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(105),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(129),i=n(3),o=n(20),a=n(199),s=n(116),u=n(14),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(49),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(290),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){var r=n(1113)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";var r=n(7);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},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";e.exports={}},function(e,t,n){"use strict";var r=n(61),i=n(121),o=n(28),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(7),i=n(23),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(578);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},function(e,t,n){"use strict";var r=n(7),i=n(17),o=n(119),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(44),i=n(100),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(401),i=TypeError;e.exports=function(e){if(r(e))throw new i("ArrayBuffer is detached");return e}},function(e,t,n){"use strict";var r=n(44),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(4);e.exports=r(1.1.valueOf)},function(e,t,n){"use strict";var r=n(11),i=n(186),o=n(23),a=n(206),s=n(228),u=n(17),c=n(238),l=n(31),f=n(119),d=i&&i.prototype,h=u("species"),p=!1,g=o(r.PromiseRejectionEvent),m=a("Promise",(function(){var e=s(i),t=e!==String(i);if(!t&&66===f)return!0;if(l&&(!d.catch||!d.finally))return!0;if(!f||f<51||!/native code/.test(e)){var n=new i((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[h]=r,!(p=n.then((function(){}))instanceof r))return!0}return!(t||"BROWSER"!==c&&"DENO"!==c||g)}));e.exports={CONSTRUCTOR:m,REJECTION_EVENT:g,SUBCLASSING:p}},function(e,t,n){"use strict";var r,i,o=n(11),a=n(225),s=n(23),u=n(55),c=n(63),l=n(35),f=n(17),d=n(31),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(8),i=n(18),o=n(54);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(232),i=n(74);e.exports=r(i.proto,"size","get")||function(e){return e.size}},function(e,t,n){"use strict";var r=n(8),i=n(10),o=n(23),a=n(78),s=n(323),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(4),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(279),i=n(196);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(275),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(1157).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},function(e,t,n){"use strict";var r=n(8),i=n(16),o=n(140),a=n(54),s=n(353),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(31),i=n(11),o=n(296),a=e.exports=i["__core-js_shared__"]||o("__core-js_shared__",{});(a.versions||(a.versions=[])).push({version:"3.44.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"})},function(e,t,n){"use strict";var r=n(11),i=n(16),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(4),i=n(7),o=n(23),a=n(24),s=n(15),u=n(178).CONFIGURABLE,c=n(228),l=n(34),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(4),i=n(23),o=n(225),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(141),i=n(156),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(11);e.exports=r},function(e,t,n){"use strict";var r=n(4),i=n(19);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(155),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(37),i=n(139),o=n(27),a=n(28),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(61),i=n(52),o=n(182),a=n(34),s=n(40).f,u=n(308),c=n(65),l=n(31),f=n(15),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=null,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(19),i=n(27),o=n(139),a=n(28),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(11),i=n(120),o=n(78),a=function(e){return i.slice(0,e.length)===e};e.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},function(e,t,n){"use strict";var r=n(11),i=n(4),o=n(15),a=n(240),s=n(178),u=n(62),c=n(45),l=n(114),f=n(7),d=n(86),h=n(44),p=n(100),g=n(209),m=n(312),v=n(631),y=n(63),b=n(111),_=n(306),w=n(101),E=n(159),S=n(179),x=n(91),k=n(34),T=s.PROPER,O=s.CONFIGURABLE,P=k.getterFor("ArrayBuffer"),R=k.getterFor("DataView"),A=k.set,C=r.ArrayBuffer,D=C,L=D&&D.prototype,I=r.DataView,M=I&&I.prototype,j=Object.prototype,N=r.Array,F=r.RangeError,U=i(_),B=i([].reverse),q=v.pack,V=v.unpack,$=function(e){return[255&e]},z=function(e){return[255&e,e>>8&255]},G=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},W=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=R(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=R(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"):((D=function(e){return d(this,L),E(new C(g(e)),this,D)}).prototype=L,L.constructor=D,S(D,C)),b&&y(M)!==j&&b(M,j);var Z=new I(new D(2)),ee=i(M.setInt8);Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),!Z.getInt8(0)&&Z.getInt8(1)||l(M,{setInt8:function(e,t){ee(this,e,t<<24>>24)},setUint8:function(e,t){ee(this,e,t<<24>>24)}},{unsafe:!0})}else L=(D=function(e){d(this,L);var t=g(e);A(this,{type:"ArrayBuffer",bytes:U(N(t),0),byteLength:t}),o||(this.byteLength=t,this.detached=!1)}).prototype,M=(I=function(e,t,n){d(this,M),d(e,L);var r=P(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(D,"byteLength",P),Y(I,"buffer",R),Y(I,"byteLength",R),Y(I,"byteOffset",R)),l(M,{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 W(Q(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return W(Q(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return V(Q(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return V(Q(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){X(this,1,e,$,t)},setUint8:function(e,t){X(this,1,e,$,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,G,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){X(this,4,e,G,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(D,"ArrayBuffer"),x(I,"DataView"),e.exports={ArrayBuffer:D,DataView:I}},function(e,t,n){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){"use strict";var r=n(4),i=n(100),o=n(22),a=n(242),s=n(42),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(44),i=n(22),o=n(42),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=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(57);e.exports=function(e,t,n){for(var i=e.length-1;i>=0;i--)if(void 0!==e[i])try{n=r(e[i].iterator,t,n)}catch(e){t="throw",n=e}if("throw"===t)throw n;return n}},function(e,t,n){"use strict";e.exports=function(e,t){var n="function"==typeof Iterator&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch(e){return!0}}},function(e,t,n){"use strict";var r=n(8),i=n(10),o=n(41),a=n(132);e.exports=function(e,t){t&&"string"==typeof e||i(e);var n=a(e);return o(i(void 0!==n?r(n,e):e))}},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(4),a=n(206),s=n(35),u=n(164),c=n(51),l=n(86),f=n(23),d=n(99),h=n(16),p=n(7),g=n(235),m=n(91),v=n(159);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,P=p((function(){T.has(1)})),R=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)}));R||((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),(P||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(31),i=n(11),o=n(7),a=n(311);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=n(10),i=n(251),o=n(99),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(123),i=n(155),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,i,o,a,s=n(11),u=n(80),c=n(37),l=n(23),f=n(24),d=n(7),h=n(359),p=n(101),g=n(226),m=n(106),v=n(438),y=n(183),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 P=function(e){if(f(O,e)){var t=O[e];delete O[e],t()}},R=function(e){return function(){P(e)}},A=function(e){P(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(R(e))}:E&&E.now?i=function(e){E.now(R(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),P(e)}}:function(e){setTimeout(R(e),0)}),e.exports={set:b,clear:_}},function(e,t,n){"use strict";var r=n(186),i=n(235),o=n(213).CONSTRUCTOR;e.exports=o||!i((function(e){r.all(e).then(void 0,(function(){}))}))},function(e,t,n){"use strict";var r=n(8),i=n(10),o=n(55),a=n(54),s=n(114),u=n(34),c=n(57),l=n(18),f=n(214),d=n(65),h=l("Promise"),p=u.set,g=u.getterFor("AsyncFromSyncIterator"),m=function(e,t,n,r,i){var o=e.done;h.resolve(e.value).then((function(e){t(d(e,o))}),(function(e){if(!o&&i)try{c(r,"throw",e)}catch(t){e=t}n(e)}))},v=function(e){e.type="AsyncFromSyncIterator",p(this,e)};v.prototype=s(o(f),{next:function(){var e=g(this);return new h((function(t,n){var o=i(r(e.next,e.iterator));m(o,t,n,e.iterator,!0)}))},return:function(){var e=g(this).iterator;return new h((function(t,n){var o=a(e,"return");if(void 0===o)return t(d(void 0,!0));var s=i(r(o,e));m(s,t,n,e)}))}}),e.exports=v},function(e,t,n){"use strict";var r=n(16),i=n(78),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(7),i=n(11).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";var r=TypeError;e.exports=function(e){if("string"==typeof e)return e;throw new r("Argument is not a string")}},function(e,t,n){"use strict";n(322);var r=n(8),i=n(35),o=n(323),a=n(7),s=n(17),u=n(62),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(188).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){"use strict";var r=n(224),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(16),i=String,o=TypeError;e.exports=function(e){if(void 0===e||r(e))return e;throw new o(i(e)+" is not an object or undefined")}},function(e,t,n){"use strict";var r=n(37),i=n(10),o=n(27),a=n(51);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(10);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(90),i=TypeError;e.exports=function(e){if("Uint8Array"===r(e))return e;throw new i("Argument is not an Uint8Array")}},function(e,t,n){"use strict";var r=n(136).has;e.exports=function(e){return r(e),e}},function(e,t,n){"use strict";var r=n(7),i=n(17),o=n(15),a=n(31),s=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","https://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||"https://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("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==r||"x"!==new URL("https://x",void 0).host}))},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(75).inherits(i,r,{__CANCEL__:!0}),e.exports=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(84),i=n(25),o=n(281),a=n(9),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(95).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(84),i=n(9),o=n(25),a=n(172),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(95).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(21),i=n(84),o=n(172),a=n(175),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(21),i=n(84),o=n(281),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(95).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n(21);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(129),o=n(194),a=n(29),s=n(58),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(59),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(200),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(286),o=n(32),a=n(116),s=n(105);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(59);function i(e,t){return function(){return t.call(this,e.apply(this,arguments))}}var o=n(70),a=n(195);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(84),i=n(9),o=n(21),a=n(25),s=n(137),u=n(83),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(95).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c}));var r=n(21),i=n(137),o=n(25),a=n(83),s=n(9),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(219),s=n(88),u=n(282);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(138),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(14),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(33),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(43);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){function n(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return(r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0});const s=a(n(0)),u=n(69);n(1164);t.default=(0,s.memo)(({live:e,seekLiveFunc:t})=>{const{t:n}=(0,u.useTranslation)();return s.default.createElement("div",{className:"itsLive"+(e?"":" not"),"data-cy":"itsLive",onClick:function(){return e?null:t("live")}},!e&&s.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 l}));var r=n(174),i=n(109);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(49),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,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return(r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return o(t,e),t}),s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Preview=void 0;const u=a(n(0)),c=n(76);n(1141);const l=s(n(1143)),f=n(191);t.Preview=({name:t,hasPreview:n=!1,hidden:r,basicApiConfig:i,address:o,auth_token:a,from:s})=>{const[d,h]=(0,u.useState)(!1),[p,g]=(0,u.useState)(null);let m={};if(a){const e=(0,c.decode)(a.replace(/^\?/,""));m=Object.assign(Object.assign({},m),e)}const v={params:{name:t,from:s},options:{refetchInterval:1e4,keepPreviousData:!0,onSuccess:t=>{g(e.from(t.data,"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?s?(0,f.jpeg_preview_dvr)(v):(0,f.jpeg_preview)(v):s?(0,f.mp4_dvr)(v):(0,f.mp4_preview)(v),(0,u.useEffect)(()=>{r&&h(r)},[r]),u.default.createElement("video",{src:"data:video/mp4;base64,"+p,className:(0,l.default)(["dvrp-preview",{_hidden:d}]),playsInline:!0,autoPlay:!0,loop:!0,controls:!1,muted:!0})}}).call(this,n(341).Buffer)},function(e){e.exports=JSON.parse('{"version":"25.9.4-1-gc5c86a6"}')},function(e,t,n){"use strict";var r=n(11),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(18),i=n(4),o=n(157),a=n(230),s=n(10),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(15),i=n(355),o=n(40),a=n(10),s=n(61),u=n(180);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(78),i=n(61),o=n(157).f,a=n(101),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(62),i=n(303),o=n(372),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(4),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(7);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(182),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(27),i=n(121),o=n(28);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(10),i=n(57);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(8),o=n(31),a=n(178),s=n(23),u=n(161),c=n(63),l=n(111),f=n(91),d=n(62),h=n(35),p=n(17),g=n(182),m=n(162),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&&D)return D;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)}},P=t+" Iterator",R=!1,A=e.prototype,C=A[w]||A["@@iterator"]||p&&A[p],D=!_&&C||O(p),L="Array"===t&&A.entries||C;if(L&&(x=c(L.call(new e)))!==Object.prototype&&x.next&&(o||c(x)===b||(l?l(x,b):s(x[w])||h(x,w,E)),f(x,P,!0,!0),o&&(g[P]=E)),v&&"values"===p&&C&&"values"!==C.name&&(!o&&y?d(A,"name","values"):(R=!0,D=function(){return i(C,this)})),p)if(k={values:O("values"),keys:m?D:O("keys"),entries:O("entries")},S)for(T in k)(_||R||!(T in A))&&h(A,T,k[T]);else r({target:t,proto:!0,forced:_||R},k);return o&&!S||A[w]===D||h(A,w,D,{name:p}),g[t]=D,k}},function(e,t,n){"use strict";var r=n(15),i=n(122),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(101),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(120).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},function(e,t,n){"use strict";var r=n(394);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=n(11),i=n(7),o=n(119),a=n(238),s=r.structuredClone;e.exports=!!s&&!i((function(){if("DENO"===a&&o>92||"NODE"===a&&o>94||"BROWSER"===a&&o>97)return!1;var e=new ArrayBuffer(8),t=s(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength}))},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(19),a=n(10),s=n(41),u=n(124),c=n(307),l=n(57),f=n(245),d=n(125),h=n(31),p=!h&&!f("map",(function(){})),g=!h&&!p&&d("map",TypeError),m=h||p||g,v=u((function(){var e=this.iterator,t=a(i(this.next,e));if(!(this.done=!!t.done))return c(e,this.mapper,[t.value,this.counter++],!0)}));r({target:"Iterator",proto:!0,real:!0,forced:m},{map:function(e){a(this);try{o(e)}catch(e){l(this,"throw",e)}return g?i(g,this,e):new v(s(this),{mapper:e})}})},function(e,t,n){"use strict";n(651)},function(e,t,n){"use strict";var r=n(7),i=n(16),o=n(78),a=n(318),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(7);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(16),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(10);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(7),i=n(11).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(323);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(e,t,n){"use strict";var r,i,o=n(8),a=n(4),s=n(22),u=n(320),c=n(256),l=n(141),f=n(55),d=n(34).get,h=n(321),p=n(454),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,P=S&&h.sticky,R=o(u,h),A=h.source,C=0,D=k;if(P&&(R=_(R,"y",""),-1===b(R,"g")&&(R+="g"),D=w(k,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==y(k,h.lastIndex-1))&&(A="(?: "+A+")",D=" "+D,C++),n=new RegExp("^(?:"+A+")",R)),x&&(n=new RegExp("^"+A+"$(?!\\s)",R)),E&&(r=h.lastIndex),i=o(m,P?n:h,D),P?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(74),i=n(102),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(255),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(178).PROPER,i=n(7),o=n(185);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(11),i=n(7),o=n(235),a=n(26).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(90);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(26).getTypedArrayConstructor;e.exports=function(e,t){return r(i(e),t)}},function(e,t,n){"use strict";n(812)},function(e,t,n){"use strict";var r=n(37),i=n(4),o=n(139),a=n(27),s=n(131),u=n(28),c=n(55),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(4),i=n(19),o=n(99),a=n(28),s=n(27),u=n(66),c=n(115),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(34),i=n(161),o=n(65),a=n(99),s=n(16),u=n(45),c=n(15),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(8),i=n(19),o=n(23),a=n(10),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(34),i=n(161),o=n(65),a=n(24),s=n(180),u=n(27),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(11),o=n(80),a=n(23),s=n(238),u=n(120),c=n(101),l=n(106),f=i.Function,d=/MSIE .\./.test(u)||"BUN"===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){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){"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(273),a=n(88);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(75),i=n(1090),o=n(192),a=n(533),s=n(534),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(535)),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(1101)},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(338))},function(e,t,n){"use strict";(function(e){
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.FlussonicDvrPlayer=t():e.FlussonicDvrPlayer=t()}(this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=572)}([function(e,t,n){"use strict";e.exports=n(1069)},function(e,t,n){e.exports=n(1083)()},function(e,t,n){"use strict";var r=n(11),i=n(73).f,o=n(62),a=n(35),s=n(296),u=n(179),c=n(206);e.exports=function(e,t){var n,l,f,d,h,p=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[p]||s(p,{}):r[p]&&r[p].prototype)for(l in t){if(d=t[l],f=e.dontCallGetSet?(h=i(n,l))&&h.value:n[l],!c(g?l:p+(m?".":"#")+l,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(e.sham||f&&f.sham)&&o(d,"sham",!0),a(n,l,d,e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(5),i=n(36);function o(e){return function t(n,o){switch(arguments.length){case 0:return t;case 1:return Object(i.a)(n)?t:Object(r.a)((function(t){return e(n,t)}));default:return Object(i.a)(n)&&Object(i.a)(o)?t:Object(i.a)(n)?Object(r.a)((function(t){return e(t,o)})):Object(i.a)(o)?Object(r.a)((function(t){return e(n,t)})):e(n,o)}}}},function(e,t,n){"use strict";var r=n(202),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 i}));var r=n(36);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";n.d(t,"a",(function(){return a}));var r=n(5),i=n(3),o=n(36);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){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";var r=n(202),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},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 P})),n.d(t,"d",(function(){return R}));var r=n(21),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 P(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function R(){if("function"==typeof AbortController)return new AbortController}},function(e,t,n){"use strict";var r=n(16),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";(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(153))},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 P})),n.d(t,"checkInRange",(function(){return R})),n.d(t,"canFastSeek",(function(){return A})),n.d(t,"isIOS",(function(){return C})),n.d(t,"calculateScaleTimeline",(function(){return D})),n.d(t,"downloadFile",(function(){return L}));var r=n(76),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 P(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 R=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)},D=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}},L=function(e,t){var n=document.createElement("a"),r=new Blob([e]),i=URL.createObjectURL(r);n.href=i,n.download=null!=t?t:"",document.body.appendChild(n),n.click(),URL.revokeObjectURL(i),n.remove()}},function(e,t,n){var r=n(351);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";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(7);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){"use strict";var r=n(23);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},function(e,t,n){"use strict";var r=n(11),i=n(141),o=n(24),a=n(156),s=n(154),u=n(352),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";var r=n(11),i=n(23),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(23),i=n(155),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";n.d(t,"a",(function(){return o}));var r=n(32),i=n(198);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(90),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";var r=n(4),i=n(27),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(9),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,i,o,a=n(240),s=n(15),u=n(11),c=n(23),l=n(16),f=n(24),d=n(90),h=n(155),p=n(62),g=n(35),m=n(45),v=n(79),y=n(63),b=n(111),_=n(17),w=n(156),E=n(34),S=E.enforce,x=E.get,k=u.Int8Array,T=k&&k.prototype,O=u.Uint8ClampedArray,P=O&&O.prototype,R=k&&y(k),A=T&&y(T),C=Object.prototype,D=u.TypeError,L=_("toStringTag"),I=w("TYPED_ARRAY_TAG"),M=a&&!!b&&"Opera"!==d(u.opera),j=!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:M=!1;for(r in F)(o=(i=u[r])&&i.prototype)&&(S(o).TypedArrayConstructor=i);if((!M||!c(R)||R===Function.prototype)&&(R=function(){throw new D("Incorrect invocation")},M))for(r in N)u[r]&&b(u[r],R);if((!M||!A||A===C)&&(A=R.prototype,M))for(r in N)u[r]&&b(u[r].prototype,A);if(M&&y(P)!==A&&b(P,A),s&&!f(A,L))for(r in j=!0,m(A,L,{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:M,TYPED_ARRAY_TAG:j&&I,aTypedArray:function(e){if(B(e))return e;throw new D("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!b||v(R,e)))return e;throw new D(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:M&&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(R[e]&&!n)return;try{return g(R,e,n?t:M&&R[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:R,TypedArrayPrototype:A}},function(e,t,n){"use strict";var r=n(42),i=Object;e.exports=function(e){return i(r(e))}},function(e,t,n){"use strict";var r=n(100);e.exports=function(e){return r(e.length)}},function(e,t,n){"use strict";var r=n(59),i=n(5),o=n(3),a=n(128),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";e.exports=!1},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(356),s=n(11),u=n(16),c=n(62),l=n(24),f=n(225),d=n(229),h=n(204),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(23),i=n(40),o=n(227),a=n(296);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(158),i=n(19),o=n(202),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(351);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(15),i=n(354),o=n(355),a=n(10),s=n(131),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";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},function(e,t,n){"use strict";var r=n(99),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(110);var a=n(33),s=n(176),u=n(49),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";var r=n(358);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},function(e,t,n){"use strict";var r=n(227),i=n(40);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){var r=n(107).default,i=n(1081);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(1082);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(33),o=n(286),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(231),i=n(24),o=n(360),a=n(40).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(37),i=n(8),o=n(10),a=n(155),s=n(305),u=n(28),c=n(79),l=n(142),f=n(132),d=n(57),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),P=r(t,S),R=function(e){return m&&d(m,"normal"),new p(!0,e)},A=function(e){return x?(o(e),O?P(e[0],e[1],R):P(e[0],e[1])):O?P(e,R):P(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(55),o=n(40).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(130),i=n(6),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(19),i=n(99);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(10),o=n(300),a=n(298),s=n(204),u=n(359),c=n(226),l=n(229),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(37),i=n(4),o=n(139),a=n(27),s=n(28),u=n(207),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(8),i=n(10),o=n(54);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(129),i=n(3),o=n(20),a=n(109),s=n(285),u=n(29),c=n(49),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";!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(1071)},function(e,t,n){"use strict";var r=n(139),i=n(42);e.exports=function(e){return r(i(e))}},function(e,t,n){"use strict";var r=n(15),i=n(40),o=n(98);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(24),i=n(23),o=n(27),a=n(229),s=n(304),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(1109),i=n(1110),o=n(519),a=n(1111);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";e.exports=function(e,t){return{value:e,done:t}}},function(e,t,n){"use strict";var r=n(4),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,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";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 M})),n.d(t,"getDefaults",(function(){return j})),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 Pe})),n.d(t,"plural",(function(){return Re})),n.d(t,"selectOrdinal",(function(){return Ae}));var r=n(13),i=n.n(r),o=n(117),a=n.n(o),s=n(0),u=n(107),c=n.n(u),l=n(549),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 P=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,R={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},A=function(e){return R[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 D(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 L,I={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(P,A)}};function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};I=D(D({},I),e)}function j(){return I}function N(e){L=e}function F(){return L}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 V(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 $(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 G(e){return Array.isArray(e)?e:[e]}function W(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){G(t).forEach((function(t){"string"!=typeof t&&($(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=V(V({},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,V(V({},e.props),{},{key:r}),i?void 0:t))}function g(t,i,l){var f=G(t);return G(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=V({},y=w)).props=Object.assign(v.props,y.props),b):w,S=Object(s.isValidElement)(E),x=S&&$(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($(E)||x){p(E,h(E,i,l),t,m)}else if(k){var P=g(f,i.children,l);t.push(Object(s.cloneElement)(E,V(V({},E.props),{},{key:m}),P))}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 R=g(f,i.children,l);t.push(Object(s.createElement)(i.name,{key:"".concat(i.name,"-").concat(m)},R))}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,V(V({},E.props),{},{key:m}),_)):t.push(Object(s.cloneElement)(E,V(V({},E.props),{},{key:m})));else{var C=i.children[0]?_:null;C&&t.push(C)}}else if("text"===i.type){var D=r.transWrapTextNodes,L=o?r.unescape(n.services.interpolator.interpolate(i.content,d,n.language)):n.services.interpolator.interpolate(i.content,d,n.language);D?t.push(Object(s.createElement)(D,{key:"".concat(i.name,"-").concat(m)},L)):t.push(L)}return t}),[])}return z(g([{dummy:!0,children:e||[]}],f,G(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=V(V({},j()),_.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=G(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),P=f?l.interpolation:{interpolation:V(V({},l.interpolation),{},{prefix:"#$?",suffix:"?$#"})},R=V(V(V(V({},l),{},{count:n},f),P),{},{defaultValue:k,ns:x}),A=W(h||t,O?E(O,R):k,_,S,R,v),C=void 0!==r?r:S.defaultTransParent;return C?Object(s.createElement)(C,y,A):A}var K=n(39),Y=n.n(K),Q=n(38),X=n.n(Q),J={type:"3rdParty",init:function(e){M(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(64),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({},j()),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 P=Object(s.useRef)(!0);Object(s.useEffect)((function(){O.current&&!P.current&&_(m),P.current=!1}),[a,h]);var R=[b,a,g];if(R.t=b,R.i18n=a,R.ready=g,g)return R;if(!g&&!d)return R;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""},Pe=function(){return""},Re=function(){return""},Ae=function(){return""}},function(e,t,n){"use strict";var r=n(6),i=n(96),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";var r=n(0),i=n(1139);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";var r,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return(r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return o(t,e),t}),s=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.getFormattedErrorMessage=t.getFormattedEventMessage=t.getFormattedEventName=void 0;const u=n(0),c=a(n(193)),l=n(541),f=n(1112),d=n(347);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_error":return"DVR Player long bufferization";case"on_load_error":return"DVR Player segment loading error";default:return console.error("Unknown errorName: "+e),e}};t.default=(0,u.memo)(e=>{var t,{logger:n,logEventQueue:r,clearLogEventQueue:i,streamInfo:o,getPlayerStats:a,getCurrentPlayerName:h}=e,p=s(e,["logger","logEventQueue","clearLogEventQueue","streamInfo","getPlayerStats","getCurrentPlayerName"]);const g=(0,f.custom_player_log)(),m=null===(t=Object.values(o))||void 0===t?void 0:t[0];return(0,u.useEffect)(()=>{if(c.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,s=r?e.data.error_name:void 0,u=a(),c=h(),f=(0,d.getCurrentPlayerVersion)(c),v=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({event:t,app_name:"@flussonic/flussonic-dvr-player",app_version:"25.9.5",stream:(null==m?void 0:m.name)||"",stream_title:(null==m?void 0:m.title)||"",server_instance_id:(null==m?void 0:m.instance_id)||"",protocol:(null==u?void 0:u.proto)||"",player_session_id:(null==u?void 0:u.source_id)||"",os_version:(null==u?void 0:u.user_agent)||"",uts_ms:n},(null==m?void 0:m.operator_id)&&{operator_id:null==m?void 0:m.operator_id}),f&&{player_version:f}),c&&{player_name:c}),i&&{event_message:i}),s&&{error_name:s}),o&&{error_message:o}),p);g({body:v,config:l.AUTH_CONFIG})};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,a]),(0,u.useEffect)(()=>()=>{n.stopLogging()},[n]),null})},function(e,t,n){"use strict";var r=n(15),i=n(8),o=n(203),a=n(98),s=n(61),u=n(131),c=n(24),l=n(354),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";var r=n(4),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(531),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";t.decode=t.parse=n(1076),t.encode=t.stringify=n(1077)},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(4),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(4);e.exports=r({}.isPrototypeOf)},function(e,t,n){"use strict";var r=n(202),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(74).has;e.exports=function(e){return r(e),e}},function(e,t,n){"use strict";var r=n(66).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(127),i=n(149),o=n(9);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(293),o=Object(r.a)((function(e){return Object(i.a)(e,[])}));t.a=o},function(e,t,n){"use strict";var r=n(79),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryContext=void 0;const i=r(n(0)),o=n(346),a=n(89),s={getCommonTelemetryFields:()=>({}),getCommonRequestFields:e=>{var t,n,r,i;const o=(0,a.getFilteredParams)(null===(t=e.config)||void 0===t?void 0:t.params),s=null!==(i=(0,a.getNewURL)(null===(n=e.config)||void 0===n?void 0:n.url,null===(r=e.config)||void 0===r?void 0:r.baseURL))&&void 0!==i?i:"";return{duration:e.duration,status:e.status,url:s.toString(),query_parameters:o}},getCommonErrorRequestFields:e=>{var t,n,r,i;const o=(0,a.getFilteredParams)(null===(t=e.config)||void 0===t?void 0:t.params),s=null!==(i=(0,a.getNewURL)(null===(n=e.config)||void 0===n?void 0:n.url,null===(r=e.config)||void 0===r?void 0:r.baseURL))&&void 0!==i?i:"";return{duration:e.duration,status:e.status||"",url:s.toString(),query_parameters:o,error_name:null==e?void 0:e.name,error_message:null==e?void 0:e.message}},sendMetrics:e=>{(0,o.sendMetrics)(e)}};t.TelemetryContext=i.default.createContext(s)},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";Object.defineProperty(t,"__esModule",{value:!0}),t.getFormattedBufferLength=t.getFormattedDuration=t.getFilteredParams=t.getNewURL=void 0;const r=n(193),i=["token","login"];t.getNewURL=(e,t)=>{if(e)return new URL(e,t)};t.getFilteredParams=e=>{const t=(0,r.omit)(i,e);return(0,r.isEmpty)(t)?void 0:JSON.stringify(t)};t.getFormattedDuration=e=>Number(e.toFixed(2)),t.getFormattedBufferLength=t.getFormattedDuration},function(e,t,n){"use strict";var r=n(299),i=n(23),o=n(78),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(40).f,i=n(24),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(3),i=n(85),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(77),o=n(94),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(105),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(284),i=n(287),o=n(276);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(1078),i=n(1079),o=n(519),a=n(1080);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";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";e.exports=function(e){return null==e}},function(e,t,n){"use strict";var r=n(44),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(4);e.exports=r([].slice)},function(e,t,n){"use strict";var r=n(4),i=n(145),o=n(74),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(4),i=n(42),o=n(22),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(7);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){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";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(16),o=n(42),a=n(368);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(15),i=n(40),o=n(98);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(7);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(35);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(4),i=n(145),o=n(66),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,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(1108);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],-1===t.indexOf(n)&&{}.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";Object.defineProperty(t,"__esModule",{value:!0}),t.PLAYER_NAME=t.DIGITS_REGEXP=t.MOBILE_DEVICE_REGEXP=t.OLDER_MOBILE_DEVICE_REGEXP=void 0,t.OLDER_MOBILE_DEVICE_REGEXP=/(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,t.MOBILE_DEVICE_REGEXP=/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,t.DIGITS_REGEXP=/[^0-9]/g,t.PLAYER_NAME={MSE:"mse-player",HLS:"hls.js",WEBRTC:"webrtc-player",NATIVE:"native-player"}},function(e,t,n){"use strict";var r,i,o=n(11),a=n(120),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";var r=n(11).navigator,i=r&&r.userAgent;e.exports=i?String(i):""},function(e,t,n){"use strict";var r=n(44),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(78);e.exports=Array.isArray||function(e){return"Array"===r(e)}},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(23),a=n(90),s=n(18),u=n(228),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(8),i=n(55),o=n(62),a=n(114),s=n(17),u=n(34),c=n(54),l=n(162).IteratorPrototype,f=n(65),d=n(57),h=n(244),p=s("toStringTag"),g=u.set,m=function(e){var t=u.getterFor(e?"WrapForValidIterator":"IteratorHelper");return a(i(l),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return f(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r: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)}if(n.openIters)try{h(n.openIters,"normal")}catch(e){return d(i,"throw",e)}return i&&d(i,"normal"),f(void 0,!0)}})},v=m(!0),y=m(!1);o(y,p,"Iterator Helper"),e.exports=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?"WrapForValidIterator":"IteratorHelper",i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,g(this,i)};return r.prototype=t?v:y,r}},function(e,t,n){"use strict";var r=n(11);e.exports=function(e,t){var n=r.Iterator,i=n&&n.prototype,o=i&&i[e],a=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){a=!0}},-1)}catch(e){e instanceof t||(a=!1)}if(!a)return o}},function(e,t,n){"use strict";var r=n(3),i=n(58),o=n(93),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(84),i=n(95),o=n(9),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(59),i=n(36);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(32);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,n){"use strict";var r=n(224),i=n(140);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},function(e,t,n){"use strict";var r=n(90),i=n(54),o=n(99),a=n(182),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(19),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(11),o=n(8),a=n(15),s=n(328),u=n(26),c=n(239),l=n(86),f=n(98),d=n(62),h=n(319),p=n(100),g=n(209),m=n(481),v=n(482),y=n(131),b=n(24),_=n(90),w=n(16),E=n(140),S=n(55),x=n(79),k=n(111),T=n(157).f,O=n(483),P=n(56).forEach,R=n(163),A=n(45),C=n(40),D=n(73),L=n(143),I=n(34),M=n(159),j=I.get,N=I.set,F=I.enforce,U=C.f,B=D.f,q=i.RangeError,V=c.ArrayBuffer,$=V.prototype,z=c.DataView,G=u.NATIVE_ARRAY_BUFFER_VIEWS,W=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 j(this)[t]}})},X=function(e){var t;return x($,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?(G||(D.f=Z,C.f=ee,Q(K,"buffer"),Q(K,"byteOffset"),Q(K,"byteLength"),Q(K,"length")),r({target:"Object",stat:!0,forced:!G},{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=j(e);return n.view[c](t*a+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var i=j(e);i.view[f](t*a+i.byteOffset,n?v(r):r,!0)}(this,t,e)},enumerable:!0})};G?s&&(y=t((function(e,t,n,r){return l(e,b),M(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)?L(y,t):o(O,y,t):new h(g(t)),e,y)})),k&&k(y,H),P(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)?L(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 V(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,W&&d(b,W,u);var x=y!==h;_[u]=y,r({global:!0,constructor:!0,forced:x,sham:!G},_),"BYTES_PER_ELEMENT"in y||d(y,"BYTES_PER_ELEMENT",a),"BYTES_PER_ELEMENT"in b||d(b,"BYTES_PER_ELEMENT",a),R(u)}):e.exports=function(){}},function(e,t,n){"use strict";n(316),n(331);var r=n(18),i=n(4),o=n(141),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";var r=n(4),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.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(32),o=n(105),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(4),i=n(7),o=n(78),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(18),i=n(23),o=n(79),a=n(352),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(225);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},function(e,t,n){"use strict";var r=n(8),i=n(19),o=n(10),a=n(155),s=n(132),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=n(28);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(7);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){"use strict";var r=n(8);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(274),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(289),i=n(3),o=n(197),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(1070),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(84),i=n(95),o=n(9),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(129),i=n(284);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){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(119),i=n(7),o=n(11).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(4),i=0,o=Math.random(),a=r(1.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(357),i=n(298).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(78),i=n(4);e.exports=function(e){if("Function"===r(e))return i(e)}},function(e,t,n){"use strict";var r=n(23),i=n(16),o=n(111);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=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(162).IteratorPrototype,i=n(55),o=n(98),a=n(91),s=n(182),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,i,o,a=n(7),s=n(23),u=n(16),c=n(55),l=n(63),f=n(35),d=n(17),h=n(31),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(18),i=n(45),o=n(17),a=n(15),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(4),o=n(204),a=n(16),s=n(24),u=n(40).f,c=n(157),l=n(301),f=n(317),d=n(156),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(8),i=n(24),o=n(79),a=n(453),s=n(320),u=RegExp.prototype;e.exports=a.correct?function(e){return e.flags}:function(e){return a.correct||!o(u,e)||i(e,"flags")?e.flags:r(s,e)}},function(e,t,n){"use strict";var r=n(19),i=n(10),o=n(8),a=n(44),s=n(41),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(18),i=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},o=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};e.exports=function(e,t){var n=r("Set");try{(new n)[e](i(0));try{return(new n)[e](i(-1)),!1}catch(r){if(!t)return!0;try{return(new n)[e](o(-1/0)),!1}catch(r){var a=new n;return a.add(1),a.add(2),t(a[e](o(1/0)))}}}catch(e){return!1}}},function(e,t,n){"use strict";var r=n(18),i=n(23),o=n(967),a=n(16),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){e.exports=n(1085)},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(221),i=n(108),o=n(344),a=n(345),s=n(220),u=n(43),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(21),i=n(84),o=n(9),a=n(25),s=n(127),u=n(95),c=n(137),l=n(83),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(522);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(288);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(83),i=n(9);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 P=void 0!==p,R=P?p:s(e.options,v);f=k(v,P,R,!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";Object.defineProperty(t,"__esModule",{value:!0}),t.selectionControlTelemetry=void 0,t.selectionControlTelemetry={openDownloadDropdown:()=>({event:"open_download_dropdown",event_message:"User clicked on open download dropdown button",uts_ms:Date.now()}),openDownloadOptions:()=>({event:"open_download_options",event_message:"User clicked on open download options button",uts_ms:Date.now()}),clickBackToDownloadDropdown:()=>({event:"click_back_to_download_dropdown",event_message:"User clicked on back to download dropdown button",uts_ms:Date.now()}),clickDownload:e=>({event:"click_download_button",event_message:"User clicked on download button. Settings: "+JSON.stringify(e),uts_ms:Date.now()}),clickShareLink:()=>({event:"click_share_link",event_message:"User clicked on share link",uts_ms:Date.now()}),clickCopyEmbedURL:()=>({event:"click_copy_embed_url",event_message:"User clicked on copy embed url",uts_ms:Date.now()})}},function(e,t,n){"use strict";var r=n(15),i=n(24),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(24),i=n(297),o=n(73),a=n(40);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(357),i=n(298);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(22);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=n(238);e.exports="NODE"===r},function(e,t,n){"use strict";var r=n(4),i=n(42),o=n(22),a=n(185),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(11);e.exports=r.Promise},function(e,t,n){"use strict";var r=n(8),i=n(19),o=n(10),a=n(16),s=n(160),u=n(18),c=n(41),l=n(215),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(4),i=n(44),o=n(22),a=n(42),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(8),i=n(165),o=n(10),a=n(55),s=n(62),u=n(114),c=n(17),l=n(34),f=n(18),d=n(54),h=n(214),p=n(65),g=n(57),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";n.r(t);var r=n(83);n.d(t,"CancelledError",(function(){return r.a}));var i=n(280);n.d(t,"QueryCache",(function(){return i.a}));var o=n(520);n.d(t,"QueryClient",(function(){return o.a}));var a=n(172);n.d(t,"QueryObserver",(function(){return a.a}));var s=n(270);n.d(t,"QueriesObserver",(function(){return s.a}));var u=n(271);n.d(t,"InfiniteQueryObserver",(function(){return u.a}));var c=n(269);n.d(t,"MutationCache",(function(){return c.a}));var l=n(272);n.d(t,"MutationObserver",(function(){return l.a}));var f=n(137);n.d(t,"setLogger",(function(){return f.b}));var d=n(25);n.d(t,"notifyManager",(function(){return d.a}));var h=n(127);n.d(t,"focusManager",(function(){return h.a}));var p=n(149);n.d(t,"onlineManager",(function(){return p.a}));var g=n(9);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(273);n.d(t,"dehydrate",(function(){return m.a})),n.d(t,"hydrate",(function(){return m.b}));var v=n(521);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(171),o=n(530),a=n(540),s=n(1107),u=n(69),c=n(173);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(75);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";n.r(t),n.d(t,"F",(function(){return r})),n.d(t,"T",(function(){return i})),n.d(t,"__",(function(){return o})),n.d(t,"add",(function(){return s})),n.d(t,"addIndex",(function(){return f})),n.d(t,"addIndexRight",(function(){return d})),n.d(t,"adjust",(function(){return p})),n.d(t,"all",(function(){return _})),n.d(t,"allPass",(function(){return w.a})),n.d(t,"always",(function(){return E})),n.d(t,"and",(function(){return S})),n.d(t,"any",(function(){return T})),n.d(t,"anyPass",(function(){return A})),n.d(t,"ap",(function(){return C.a})),n.d(t,"aperture",(function(){return M})),n.d(t,"append",(function(){return j})),n.d(t,"apply",(function(){return N})),n.d(t,"applySpec",(function(){return V})),n.d(t,"applyTo",(function(){return $})),n.d(t,"ascend",(function(){return z})),n.d(t,"assoc",(function(){return Q})),n.d(t,"assocPath",(function(){return Y})),n.d(t,"binary",(function(){return J})),n.d(t,"bind",(function(){return Z.a})),n.d(t,"both",(function(){return ne})),n.d(t,"call",(function(){return re})),n.d(t,"chain",(function(){return me})),n.d(t,"clamp",(function(){return ve})),n.d(t,"clone",(function(){return ye.a})),n.d(t,"collectBy",(function(){return _e})),n.d(t,"comparator",(function(){return we})),n.d(t,"complement",(function(){return Ee.a})),n.d(t,"compose",(function(){return Se.a})),n.d(t,"composeWith",(function(){return De})),n.d(t,"concat",(function(){return Me})),n.d(t,"cond",(function(){return je})),n.d(t,"construct",(function(){return Ue})),n.d(t,"constructN",(function(){return Fe})),n.d(t,"converge",(function(){return qe})),n.d(t,"count",(function(){return Ve})),n.d(t,"countBy",(function(){return Ye})),n.d(t,"curry",(function(){return Ne})),n.d(t,"curryN",(function(){return l.a})),n.d(t,"dec",(function(){return Qe})),n.d(t,"defaultTo",(function(){return Xe})),n.d(t,"descend",(function(){return Je})),n.d(t,"difference",(function(){return nt})),n.d(t,"differenceWith",(function(){return it})),n.d(t,"dissoc",(function(){return st})),n.d(t,"dissocPath",(function(){return at})),n.d(t,"divide",(function(){return ut})),n.d(t,"drop",(function(){return dt})),n.d(t,"dropLast",(function(){return bt})),n.d(t,"dropLastWhile",(function(){return St})),n.d(t,"dropRepeats",(function(){return Rt})),n.d(t,"dropRepeatsBy",(function(){return Ct})),n.d(t,"dropRepeatsWith",(function(){return Ot})),n.d(t,"dropWhile",(function(){return It})),n.d(t,"either",(function(){return jt})),n.d(t,"empty",(function(){return Nt.a})),n.d(t,"endsWith",(function(){return Ut})),n.d(t,"eqBy",(function(){return At})),n.d(t,"eqProps",(function(){return Bt})),n.d(t,"equals",(function(){return Pt.a})),n.d(t,"evolve",(function(){return Vt})),n.d(t,"filter",(function(){return $t.a})),n.d(t,"find",(function(){return Wt})),n.d(t,"findIndex",(function(){return Yt})),n.d(t,"findLast",(function(){return Jt})),n.d(t,"findLastIndex",(function(){return tn})),n.d(t,"flatten",(function(){return nn})),n.d(t,"flip",(function(){return rn})),n.d(t,"forEach",(function(){return an})),n.d(t,"forEachObjIndexed",(function(){return sn})),n.d(t,"fromPairs",(function(){return un})),n.d(t,"groupBy",(function(){return cn})),n.d(t,"groupWith",(function(){return ln})),n.d(t,"gt",(function(){return fn})),n.d(t,"gte",(function(){return dn})),n.d(t,"has",(function(){return pn})),n.d(t,"hasIn",(function(){return gn})),n.d(t,"hasPath",(function(){return hn})),n.d(t,"head",(function(){return Te})),n.d(t,"identical",(function(){return yn})),n.d(t,"identity",(function(){return Re})),n.d(t,"ifElse",(function(){return bn})),n.d(t,"inc",(function(){return _n})),n.d(t,"includes",(function(){return wn})),n.d(t,"indexBy",(function(){return En})),n.d(t,"indexOf",(function(){return xn})),n.d(t,"init",(function(){return kn})),n.d(t,"innerJoin",(function(){return On})),n.d(t,"insert",(function(){return Pn})),n.d(t,"insertAll",(function(){return Rn})),n.d(t,"intersection",(function(){return In})),n.d(t,"intersperse",(function(){return Mn})),n.d(t,"into",(function(){return Vn})),n.d(t,"invert",(function(){return $n})),n.d(t,"invertObj",(function(){return zn})),n.d(t,"invoker",(function(){return Gn})),n.d(t,"is",(function(){return Wn})),n.d(t,"isEmpty",(function(){return Hn.a})),n.d(t,"isNil",(function(){return K.a})),n.d(t,"isNotNil",(function(){return Kn})),n.d(t,"join",(function(){return Yn})),n.d(t,"juxt",(function(){return Qn})),n.d(t,"keys",(function(){return U.a})),n.d(t,"keysIn",(function(){return Xn})),n.d(t,"last",(function(){return Tt})),n.d(t,"lastIndexOf",(function(){return Jn})),n.d(t,"length",(function(){return er})),n.d(t,"lens",(function(){return tr})),n.d(t,"lensIndex",(function(){return rr})),n.d(t,"lensPath",(function(){return ar})),n.d(t,"lensProp",(function(){return ur})),n.d(t,"lift",(function(){return te.a})),n.d(t,"liftN",(function(){return cr.a})),n.d(t,"lt",(function(){return lr})),n.d(t,"lte",(function(){return fr})),n.d(t,"map",(function(){return ge.a})),n.d(t,"mapAccum",(function(){return dr})),n.d(t,"mapAccumRight",(function(){return hr})),n.d(t,"mapObjIndexed",(function(){return gr})),n.d(t,"match",(function(){return mr})),n.d(t,"mathMod",(function(){return vr})),n.d(t,"max",(function(){return O.a})),n.d(t,"maxBy",(function(){return yr})),n.d(t,"mean",(function(){return _r})),n.d(t,"median",(function(){return wr})),n.d(t,"memoizeWith",(function(){return Er})),n.d(t,"mergeAll",(function(){return Sr})),n.d(t,"mergeDeepLeft",(function(){return Tr})),n.d(t,"mergeDeepRight",(function(){return Or})),n.d(t,"mergeDeepWith",(function(){return Pr})),n.d(t,"mergeDeepWithKey",(function(){return kr})),n.d(t,"mergeLeft",(function(){return Rr})),n.d(t,"mergeRight",(function(){return Ar})),n.d(t,"mergeWith",(function(){return Cr})),n.d(t,"mergeWithKey",(function(){return xr})),n.d(t,"min",(function(){return Dr})),n.d(t,"minBy",(function(){return Lr})),n.d(t,"modify",(function(){return Mr})),n.d(t,"modifyPath",(function(){return Ir})),n.d(t,"modulo",(function(){return jr})),n.d(t,"move",(function(){return Nr})),n.d(t,"multiply",(function(){return Fr})),n.d(t,"nAry",(function(){return X})),n.d(t,"partialObject",(function(){return Ur})),n.d(t,"negate",(function(){return Br})),n.d(t,"none",(function(){return Vr})),n.d(t,"not",(function(){return $r.a})),n.d(t,"nth",(function(){return ke.a})),n.d(t,"nthArg",(function(){return zr})),n.d(t,"o",(function(){return Gr})),n.d(t,"objOf",(function(){return Fn})),n.d(t,"of",(function(){return Wr})),n.d(t,"omit",(function(){return Hr})),n.d(t,"on",(function(){return Kr})),n.d(t,"once",(function(){return Yr})),n.d(t,"or",(function(){return Mt})),n.d(t,"otherwise",(function(){return Jr})),n.d(t,"over",(function(){return ei})),n.d(t,"pair",(function(){return ti})),n.d(t,"partial",(function(){return ri})),n.d(t,"partialRight",(function(){return ii})),n.d(t,"partition",(function(){return ai})),n.d(t,"path",(function(){return or})),n.d(t,"paths",(function(){return ir})),n.d(t,"pathEq",(function(){return si})),n.d(t,"pathOr",(function(){return ui})),n.d(t,"pathSatisfies",(function(){return ci})),n.d(t,"pick",(function(){return li})),n.d(t,"pickAll",(function(){return fi})),n.d(t,"pickBy",(function(){return di})),n.d(t,"pipe",(function(){return hi.a})),n.d(t,"pipeWith",(function(){return Ae})),n.d(t,"pluck",(function(){return P.a})),n.d(t,"prepend",(function(){return pi})),n.d(t,"product",(function(){return gi})),n.d(t,"project",(function(){return vi})),n.d(t,"promap",(function(){return wi})),n.d(t,"prop",(function(){return sr.a})),n.d(t,"propEq",(function(){return Ei})),n.d(t,"propIs",(function(){return Si})),n.d(t,"propOr",(function(){return xi})),n.d(t,"propSatisfies",(function(){return ki})),n.d(t,"props",(function(){return Ti})),n.d(t,"range",(function(){return Oi})),n.d(t,"reduce",(function(){return R.a})),n.d(t,"reduceBy",(function(){return Ke})),n.d(t,"reduceRight",(function(){return Pi})),n.d(t,"reduceWhile",(function(){return Ri})),n.d(t,"reduced",(function(){return Ai})),n.d(t,"reject",(function(){return oi.a})),n.d(t,"remove",(function(){return ot})),n.d(t,"repeat",(function(){return Di})),n.d(t,"replace",(function(){return Li})),n.d(t,"reverse",(function(){return Ce.a})),n.d(t,"scan",(function(){return ji})),n.d(t,"sequence",(function(){return Ni})),n.d(t,"set",(function(){return Fi})),n.d(t,"slice",(function(){return ft.a})),n.d(t,"sort",(function(){return Ui})),n.d(t,"sortBy",(function(){return Bi})),n.d(t,"sortWith",(function(){return qi})),n.d(t,"split",(function(){return Vi})),n.d(t,"splitAt",(function(){return $i})),n.d(t,"splitEvery",(function(){return zi})),n.d(t,"splitWhen",(function(){return Gi})),n.d(t,"splitWhenever",(function(){return Wi})),n.d(t,"startsWith",(function(){return Hi})),n.d(t,"subtract",(function(){return Ki})),n.d(t,"sum",(function(){return br})),n.d(t,"swap",(function(){return Qi})),n.d(t,"symmetricDifference",(function(){return Xi})),n.d(t,"symmetricDifferenceWith",(function(){return Ji})),n.d(t,"tail",(function(){return Oe.a})),n.d(t,"take",(function(){return gt})),n.d(t,"takeLast",(function(){return Ft})),n.d(t,"takeLastWhile",(function(){return Zi})),n.d(t,"takeWhile",(function(){return no})),n.d(t,"tap",(function(){return oo})),n.d(t,"test",(function(){return so})),n.d(t,"andThen",(function(){return uo})),n.d(t,"times",(function(){return Ci})),n.d(t,"toLower",(function(){return co})),n.d(t,"toPairs",(function(){return lo})),n.d(t,"toPairsIn",(function(){return fo})),n.d(t,"toString",(function(){return Ie.a})),n.d(t,"toUpper",(function(){return ho})),n.d(t,"transduce",(function(){return po})),n.d(t,"transpose",(function(){return go})),n.d(t,"traverse",(function(){return mo})),n.d(t,"trim",(function(){return yo})),n.d(t,"tryCatch",(function(){return bo})),n.d(t,"type",(function(){return _o.a})),n.d(t,"unapply",(function(){return wo})),n.d(t,"unary",(function(){return Eo})),n.d(t,"uncurryN",(function(){return So})),n.d(t,"unfold",(function(){return xo})),n.d(t,"union",(function(){return ko})),n.d(t,"unionWith",(function(){return Ro})),n.d(t,"uniq",(function(){return Ln})),n.d(t,"uniqBy",(function(){return Dn})),n.d(t,"uniqWith",(function(){return Po})),n.d(t,"unless",(function(){return Ao})),n.d(t,"unnest",(function(){return Co})),n.d(t,"until",(function(){return Do})),n.d(t,"unwind",(function(){return Lo})),n.d(t,"update",(function(){return nr})),n.d(t,"useWith",(function(){return mi})),n.d(t,"values",(function(){return B})),n.d(t,"valuesIn",(function(){return Io})),n.d(t,"view",(function(){return jo})),n.d(t,"when",(function(){return No})),n.d(t,"where",(function(){return Fo})),n.d(t,"whereAny",(function(){return Uo})),n.d(t,"whereEq",(function(){return Bo})),n.d(t,"without",(function(){return qo})),n.d(t,"xor",(function(){return Vo})),n.d(t,"xprod",(function(){return $o})),n.d(t,"zip",(function(){return zo})),n.d(t,"zipObj",(function(){return Go})),n.d(t,"zipWith",(function(){return Wo})),n.d(t,"thunkify",(function(){return Ho}));var r=function(){return!1},i=function(){return!0},o={"@@functional/placeholder":!0},a=n(3),s=Object(a.a)((function(e,t){return Number(e)+Number(t)})),u=n(48),c=n(5),l=n(29),f=Object(c.a)((function(e){return Object(l.a)(e.length,(function(){var t=0,n=arguments[0],r=arguments[arguments.length-1],i=Array.prototype.slice.call(arguments,0);return i[0]=function(){var e=n.apply(this,Object(u.a)(arguments,[t,r]));return t+=1,e},e.apply(this,i)}))})),d=Object(c.a)((function(e){return Object(l.a)(e.length,(function(){var t=arguments[0],n=arguments[arguments.length-1],r=n.length-1,i=Array.prototype.slice.call(arguments,0);return i[0]=function(){var e=t.apply(this,Object(u.a)(arguments,[r,n]));return r-=1,e},e.apply(this,i)}))})),h=n(6),p=Object(h.a)((function(e,t,n){var r=n.length;if(e>=r||e<-r)return n;var i=(r+e)%r,o=Object(u.a)(n);return o[i]=t(n[i]),o})),g=n(20);function m(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var v=n(14),y=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=m(this.xf["@@transducer/step"](e,!1))),e},e}();function b(e){return function(t){return new y(e,t)}}var _=Object(a.a)(Object(g.a)(["all"],b,(function(e,t){for(var n=0;n<t.length;){if(!e(t[n]))return!1;n+=1}return!0}))),w=n(345),E=Object(c.a)((function(e){return function(){return e}})),S=Object(a.a)((function(e,t){return e&&t})),x=function(){function e(e,t){this.xf=t,this.f=e,this.any=!1}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=function(e){return this.any||(e=this.xf["@@transducer/step"](e,!1)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.any=!0,e=m(this.xf["@@transducer/step"](e,!0))),e},e}();function k(e){return function(t){return new x(e,t)}}var T=Object(a.a)(Object(g.a)(["any"],k,(function(e,t){for(var n=0;n<t.length;){if(e(t[n]))return!0;n+=1}return!1}))),O=n(92),P=n(126),R=n(70),A=Object(c.a)((function(e){return Object(l.a)(Object(R.a)(O.a,0,Object(P.a)("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))})),C=n(194);function D(e,t){for(var n=0,r=t.length-(e-1),i=new Array(r>=0?r:0);n<r;)i[n]=Array.prototype.slice.call(t,n,n+e),n+=1;return i}var L=function(){function e(e,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(e)}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=function(e){return this.acc=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.store(t),this.full?this.xf["@@transducer/step"](e,this.getCopy()):e},e.prototype.store=function(e){this.acc[this.pos]=e,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},e.prototype.getCopy=function(){return Object(u.a)(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))},e}();function I(e){return function(t){return new L(e,t)}}var M=Object(a.a)(Object(g.a)([],I,D)),j=Object(a.a)((function(e,t){return Object(u.a)(t,[e])})),N=Object(a.a)((function(e,t){return e.apply(this,t)})),F=n(32),U=n(49),B=Object(c.a)((function(e){for(var t=Object(U.a)(e),n=t.length,r=[],i=0;i<n;)r[i]=e[t[i]],i+=1;return r}));function q(e,t){return Object(F.a)(t)?t.map(e):Object(U.a)(t).reduce((function(n,r){return n[r]=e(t[r]),n}),{})}var V=Object(c.a)((function e(t){return t=q((function(t){return"function"==typeof t?t:e(t)}),t),Object(l.a)(Object(R.a)(O.a,0,Object(P.a)("length",B(t))),(function(){var e=arguments;return q((function(t){return N(t,e)}),t)}))})),$=Object(a.a)((function(e,t){return t(e)})),z=Object(h.a)((function(e,t,n){var r=e(t),i=e(n);return r<i?-1:r>i?1:0})),G=n(33),W=n(77);function H(e,t,n){if(Object(W.a)(e)&&Object(F.a)(n)){var r=[].concat(n);return r[e]=t,r}var i={};for(var o in n)i[o]=n[o];return i[e]=t,i}var K=n(108),Y=Object(h.a)((function e(t,n,r){if(0===t.length)return n;var i=t[0];if(t.length>1){var o=!Object(K.a)(r)&&Object(G.a)(i,r)&&"object"==typeof r[i]?r[i]:Object(W.a)(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,o)}return H(i,n,r)})),Q=Object(h.a)((function(e,t,n){return Y([e],t,n)})),X=Object(a.a)((function(e,t){switch(e){case 0:return function(){return t.call(this)};case 1:return function(e){return t.call(this,e)};case 2:return function(e,n){return t.call(this,e,n)};case 3:return function(e,n,r){return t.call(this,e,n,r)};case 4:return function(e,n,r,i){return t.call(this,e,n,r,i)};case 5:return function(e,n,r,i,o){return t.call(this,e,n,r,i,o)};case 6:return function(e,n,r,i,o,a){return t.call(this,e,n,r,i,o,a)};case 7:return function(e,n,r,i,o,a,s){return t.call(this,e,n,r,i,o,a,s)};case 8:return function(e,n,r,i,o,a,s,u){return t.call(this,e,n,r,i,o,a,s,u)};case 9:return function(e,n,r,i,o,a,s,u,c){return t.call(this,e,n,r,i,o,a,s,u,c)};case 10:return function(e,n,r,i,o,a,s,u,c,l){return t.call(this,e,n,r,i,o,a,s,u,c,l)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}})),J=Object(c.a)((function(e){return X(2,e)})),Z=n(276);function ee(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}var te=n(146),ne=Object(a.a)((function(e,t){return ee(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Object(te.a)(S)(e,t)})),re=Object(c.a)((function(e){return e.apply(this,Array.prototype.slice.call(arguments,1))})),ie=n(138);function oe(e){return function t(n){for(var r,i,o,a=[],s=0,u=n.length;s<u;){if(Object(ie.a)(n[s]))for(o=0,i=(r=e?t(n[s]):n[s]).length;o<i;)a[a.length]=r[o],o+=1;else a[a.length]=n[s];s+=1}return a}}var ae=n(287),se=n(96),ue="@@transducer/init",ce="@@transducer/step",le=function(){function e(e){this.xf=e}return e.prototype[ue]=v.a.init,e.prototype["@@transducer/result"]=v.a.result,e.prototype[ce]=function(e,t){var n=this.xf[ce](e,t);return n["@@transducer/reduced"]?{"@@transducer/value":n,"@@transducer/reduced":!0}:n},e}(),fe=function(){function e(e){this.xf=new le(e)}return e.prototype[ue]=v.a.init,e.prototype["@@transducer/result"]=v.a.result,e.prototype[ce]=function(e,t){return Object(ie.a)(t)?Object(se.a)(this.xf,e,t):Object(ae.a)(this.xf,e,[t])},e}(),de=function(e){return new fe(e)},he=n(285);function pe(e){return function(t){return Object(he.a)(e)(de(t))}}var ge=n(58),me=Object(a.a)(Object(g.a)(["fantasy-land/chain","chain"],pe,(function(e,t){return"function"==typeof t?function(n){return e(t(n))(n)}:oe(!1)(Object(ge.a)(e,t))}))),ve=Object(h.a)((function(e,t,n){if(e>t)throw new Error("min must not be greater than max in clamp(min, max, value)");return n<e?e:n>t?t:n})),ye=n(277),be=n(150),_e=Object(a.a)((function(e,t){var n=Object(be.a)((function(t,n){var r=e(n);return void 0===t[r]&&(t[r]=[]),t[r].push(n),t}),{},t),r=[];for(var i in n)r.push(n[i]);return r})),we=Object(c.a)((function(e){return function(t,n){return e(t,n)?-1:e(n,t)?1:0}})),Ee=n(221),Se=n(220),xe=n(59),ke=n(94),Te=Object(ke.a)(0),Oe=n(195);function Pe(e){return e}var Re=Object(c.a)(Pe),Ae=Object(a.a)((function(e,t){if(t.length<=0)return Re;var n=Te(t),r=Object(Oe.a)(t);return Object(xe.a)(n.length,(function(){return Object(be.a)((function(t,n){return e.call(this,n,t)}),n.apply(this,arguments),r)}))})),Ce=n(196),De=Object(a.a)((function(e,t){return Ae.apply(this,[e,Object(Ce.a)(t)])})),Le=n(105),Ie=n(85),Me=Object(a.a)((function(e,t){if(Object(F.a)(e)){if(Object(F.a)(t))return e.concat(t);throw new TypeError(Object(Ie.a)(t)+" is not an array")}if(Object(Le.a)(e)){if(Object(Le.a)(t))return e+t;throw new TypeError(Object(Ie.a)(t)+" is not a string")}if(null!=e&&ee(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&ee(e.concat))return e.concat(t);throw new TypeError(Object(Ie.a)(e)+' does not have a method named "concat" or "fantasy-land/concat"')})),je=Object(c.a)((function(e){var t=Object(R.a)(O.a,0,Object(ge.a)((function(e){return e[0].length}),e));return Object(xe.a)(t,(function(){for(var t=0;t<e.length;){if(e[t][0].apply(this,arguments))return e[t][1].apply(this,arguments);t+=1}}))})),Ne=Object(c.a)((function(e){return Object(l.a)(e.length,e)})),Fe=Object(a.a)((function(e,t){if(e>10)throw new Error("Constructor with greater than ten arguments");return 0===e?function(){return new t}:Ne(X(e,(function(n,r,i,o,a,s,u,c,l,f){switch(e){case 1:return new t(n);case 2:return new t(n,r);case 3:return new t(n,r,i);case 4:return new t(n,r,i,o);case 5:return new t(n,r,i,o,a);case 6:return new t(n,r,i,o,a,s);case 7:return new t(n,r,i,o,a,s,u);case 8:return new t(n,r,i,o,a,s,u,c);case 9:return new t(n,r,i,o,a,s,u,c,l);case 10:return new t(n,r,i,o,a,s,u,c,l,f)}})))})),Ue=Object(c.a)((function(e){return Fe(e.length,e)})),Be=n(109),qe=Object(a.a)((function(e,t){return Object(l.a)(Object(R.a)(O.a,0,Object(P.a)("length",t)),(function(){var n=arguments,r=this;return e.apply(r,Object(Be.a)((function(e){return e.apply(r,n)}),t))}))})),Ve=Ne((function(e,t){return Object(be.a)((function(t,n){return e(n)?t+1:t}),0,t)})),$e=n(200),ze=n(128),Ge=function(){function e(e,t,n,r){this.valueFn=e,this.valueAcc=t,this.keyFn=n,this.xf=r,this.inputs={}}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(Object(G.a)(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var n=this.keyFn(t);return this.inputs[n]=this.inputs[n]||[n,Object($e.a)(this.valueAcc,!1)],this.inputs[n][1]=this.valueFn(this.inputs[n][1],t),e},e}();function We(e,t,n){return function(r){return new Ge(e,t,n,r)}}var He=n(152),Ke=Object(ze.a)(4,[],Object(g.a)([],We,(function(e,t,n,r){var i=Object(He.a)((function(r,i){var o=n(i),a=e(Object(G.a)(o,r)?r[o]:Object($e.a)(t,!1),i);return a&&a["@@transducer/reduced"]?m(r):(r[o]=a,r)}));return Object(se.a)(i,{},r)}))),Ye=Ke((function(e,t){return e+1}),0),Qe=s(-1),Xe=Object(a.a)((function(e,t){return null==t||t!=t?e:t})),Je=Object(h.a)((function(e,t,n){var r=e(t),i=e(n);return r>i?-1:r<i?1:0})),Ze=n(174);function et(e,t,n){var r,i=typeof e;switch(i){case"string":case"number":return 0===e&&1/e==-1/0?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):i in n._items?e in n._items[i]||(t&&(n._items[i][e]=!0),!1):(t&&(n._items[i]={},n._items[i][e]=!0),!1);case"boolean":if(i in n._items){var o=e?1:0;return!!n._items[i][o]||(t&&(n._items[i][o]=!0),!1)}return t&&(n._items[i]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):i in n._items?!!Object(Ze.a)(e,n._items[i])||(t&&n._items[i].push(e),!1):(t&&(n._items[i]=[e]),!1);case"undefined":return!!n._items[i]||(t&&(n._items[i]=!0),!1);case"object":if(null===e)return!!n._items.null||(t&&(n._items.null=!0),!1);default:return(i=Object.prototype.toString.call(e))in n._items?!!Object(Ze.a)(e,n._items[i])||(t&&n._items[i].push(e),!1):(t&&(n._items[i]=[e]),!1)}}var tt=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!et(e,!0,this)},e.prototype.has=function(e){return et(e,!1,this)},e}(),nt=Object(a.a)((function(e,t){for(var n=[],r=0,i=e.length,o=t.length,a=new tt,s=0;s<o;s+=1)a.add(t[s]);for(;r<i;)a.add(e[r])&&(n[n.length]=e[r]),r+=1;return n})),rt=n(110),it=Object(h.a)((function(e,t,n){for(var r=[],i=0,o=t.length;i<o;)Object(rt.a)(e,t[i],n)||Object(rt.a)(e,t[i],r)||r.push(t[i]),i+=1;return r})),ot=Object(h.a)((function(e,t,n){var r=Array.prototype.slice.call(n,0);return r.splice(e,t),r}));var at=Object(a.a)((function e(t,n){if(null==n)return n;switch(t.length){case 0:return n;case 1:return function(e,t){if(null==t)return t;if(Object(W.a)(e)&&Object(F.a)(t))return ot(e,1,t);var n={};for(var r in t)n[r]=t[r];return delete n[e],n}(t[0],n);default:var r=t[0],i=Array.prototype.slice.call(t,1);return null==n[r]?function(e,t){if(Object(W.a)(e)&&Object(F.a)(t))return[].concat(t);var n={};for(var r in t)n[r]=t[r];return n}(r,n):Q(r,e(i,n[r]),n)}})),st=Object(a.a)((function(e,t){return at([e],t)})),ut=Object(a.a)((function(e,t){return e/t})),ct=function(){function e(e,t){this.xf=t,this.n=e}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=v.a.result,e.prototype["@@transducer/step"]=function(e,t){return this.n>0?(this.n-=1,e):this.xf["@@transducer/step"](e,t)},e}();function lt(e){return function(t){return new ct(e,t)}}var ft=n(53),dt=Object(a.a)(Object(g.a)(["drop"],lt,(function(e,t){return Object(ft.a)(Math.max(0,e),1/0,t)}))),ht=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=v.a.result,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var n=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?m(n):n},e}();function pt(e){return function(t){return new ht(e,t)}}var gt=Object(a.a)(Object(g.a)(["take"],pt,(function(e,t){return Object(ft.a)(0,e<0?1/0:e,t)})));function mt(e,t){return gt(e<t.length?t.length-e:0,t)}var vt=function(){function e(e,t){if(e<=0)return t;this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(e)}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=function(e){return this.acc=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.full&&(e=this.xf["@@transducer/step"](e,this.acc[this.pos])),this.store(t),e},e.prototype.store=function(e){this.acc[this.pos]=e,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},e}();function yt(e){return function(t){return new vt(e,t)}}var bt=Object(a.a)(Object(g.a)([],yt,mt));function _t(e,t){for(var n=t.length-1;n>=0&&e(t[n]);)n-=1;return Object(ft.a)(0,n+1,t)}var wt=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=function(e){return this.retained=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.retain(e,t):this.flush(e,t)},e.prototype.flush=function(e,t){return e=Object(se.a)(this.xf,e,this.retained),this.retained=[],this.xf["@@transducer/step"](e,t)},e.prototype.retain=function(e,t){return this.retained.push(t),e},e}();function Et(e){return function(t){return new wt(e,t)}}var St=Object(a.a)(Object(g.a)([],Et,_t)),xt=function(){function e(e,t){this.xf=t,this.pred=e,this.lastValue=void 0,this.seenFirstValue=!1}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=v.a.result,e.prototype["@@transducer/step"]=function(e,t){var n=!1;return this.seenFirstValue?this.pred(this.lastValue,t)&&(n=!0):this.seenFirstValue=!0,this.lastValue=t,n?e:this.xf["@@transducer/step"](e,t)},e}();function kt(e){return function(t){return new xt(e,t)}}var Tt=Object(ke.a)(-1),Ot=Object(a.a)(Object(g.a)([],kt,(function(e,t){var n=[],r=1,i=t.length;if(0!==i)for(n[0]=t[0];r<i;)e(Tt(n),t[r])||(n[n.length]=t[r]),r+=1;return n}))),Pt=n(43),Rt=Object(c.a)(Object(g.a)([],(function(){return kt(Pt.a)}),Ot(Pt.a))),At=Object(h.a)((function(e,t,n){return Object(Pt.a)(e(t),e(n))})),Ct=Object(a.a)((function(e,t){return Object(g.a)([],(function(){return kt(At(e))}),Ot(At(e)))(t)})),Dt=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=v.a.result,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function Lt(e){return function(t){return new Dt(e,t)}}var It=Object(a.a)(Object(g.a)(["dropWhile"],Lt,(function(e,t){for(var n=0,r=t.length;n<r&&e(t[n]);)n+=1;return Object(ft.a)(n,1/0,t)}))),Mt=Object(a.a)((function(e,t){return e||t})),jt=Object(a.a)((function(e,t){return ee(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Object(te.a)(Mt)(e,t)})),Nt=n(278),Ft=Object(a.a)((function(e,t){return dt(e>=0?t.length-e:0,t)})),Ut=Object(a.a)((function(e,t){return Object(Pt.a)(Ft(e.length,t),e)})),Bt=Object(h.a)((function(e,t,n){return Object(Pt.a)(t[e],n[e])})),qt=n(116),Vt=Object(a.a)((function e(t,n){if(!Object(qt.a)(n)&&!Object(F.a)(n))return n;var r,i,o,a=n instanceof Array?[]:{};for(i in n)o=typeof(r=t[i]),a[i]="function"===o?r(n[i]):r&&"object"===o?e(r,n[i]):n[i];return a})),$t=n(197),zt=function(){function e(e,t){this.xf=t,this.f=e,this.found=!1}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,void 0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.found=!0,e=m(this.xf["@@transducer/step"](e,t))),e},e}();function Gt(e){return function(t){return new zt(e,t)}}var Wt=Object(a.a)(Object(g.a)(["find"],Gt,(function(e,t){for(var n=0,r=t.length;n<r;){if(e(t[n]))return t[n];n+=1}}))),Ht=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.found=!1}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,-1)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.found=!0,e=m(this.xf["@@transducer/step"](e,this.idx))),e},e}();function Kt(e){return function(t){return new Ht(e,t)}}var Yt=Object(a.a)(Object(g.a)([],Kt,(function(e,t){for(var n=0,r=t.length;n<r;){if(e(t[n]))return n;n+=1}return-1}))),Qt=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.last))},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.last=t),e},e}();function Xt(e){return function(t){return new Qt(e,t)}}var Jt=Object(a.a)(Object(g.a)([],Xt,(function(e,t){for(var n=t.length-1;n>=0;){if(e(t[n]))return t[n];n-=1}}))),Zt=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.lastIdx=-1}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.lastIdx))},e.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.lastIdx=this.idx),e},e}();function en(e){return function(t){return new Zt(e,t)}}var tn=Object(a.a)(Object(g.a)([],en,(function(e,t){for(var n=t.length-1;n>=0;){if(e(t[n]))return n;n-=1}return-1}))),nn=Object(c.a)(oe(!0)),rn=Object(c.a)((function(e){return Object(l.a)(e.length,(function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)}))})),on=n(130),an=Object(a.a)(Object(on.a)("forEach",(function(e,t){for(var n=t.length,r=0;r<n;)e(t[r]),r+=1;return t}))),sn=Object(a.a)((function(e,t){for(var n=Object(U.a)(t),r=0;r<n.length;){var i=n[r];e(t[i],i,t),r+=1}return t})),un=Object(c.a)((function(e){for(var t={},n=0;n<e.length;)t[e[n][0]]=e[n][1],n+=1;return t})),cn=Object(a.a)(Object(on.a)("groupBy",Ke((function(e,t){return e.push(t),e}),[]))),ln=Object(a.a)((function(e,t){for(var n=[],r=0,i=t.length;r<i;){for(var o=r+1;o<i&&e(t[o-1],t[o]);)o+=1;n.push(t.slice(r,o)),r=o}return n})),fn=Object(a.a)((function(e,t){return e>t})),dn=Object(a.a)((function(e,t){return e>=t})),hn=Object(a.a)((function(e,t){if(0===e.length||Object(K.a)(t))return!1;for(var n=t,r=0;r<e.length;){if(Object(K.a)(n)||!Object(G.a)(e[r],n))return!1;n=n[e[r]],r+=1}return!0})),pn=Object(a.a)((function(e,t){return hn([e],t)})),gn=Object(a.a)((function(e,t){return!Object(K.a)(t)&&e in t})),mn=n(176),vn=function(e,t){switch(arguments.length){case 0:return vn;case 1:return function t(n){switch(arguments.length){case 0:return t;default:return Object(mn.a)(e,n)}};default:return Object(mn.a)(e,t)}},yn=vn,bn=Object(h.a)((function(e,t,n){return Object(l.a)(Math.max(e.length,t.length,n.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)}))})),_n=s(1),wn=Object(a.a)(Ze.a),En=Ke((function(e,t){return t}),null),Sn=n(288),xn=Object(a.a)((function(e,t){return"function"!=typeof t.indexOf||Object(F.a)(t)?Object(Sn.a)(t,e,0):t.indexOf(e)})),kn=Object(ft.a)(0,-1),Tn=n(199),On=Object(h.a)((function(e,t,n){return Object(Tn.a)((function(t){return Object(rt.a)(e,t,n)}),t)})),Pn=Object(h.a)((function(e,t,n){e=e<n.length&&e>=0?e:n.length;var r=Array.prototype.slice.call(n,0);return r.splice(e,0,t),r})),Rn=Object(h.a)((function(e,t,n){return e=e<n.length&&e>=0?e:n.length,[].concat(Array.prototype.slice.call(n,0,e),t,Array.prototype.slice.call(n,e))})),An=function(){function e(e,t){this.xf=t,this.f=e,this.set=new tt}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=v.a.result,e.prototype["@@transducer/step"]=function(e,t){return this.set.add(this.f(t))?this.xf["@@transducer/step"](e,t):e},e}();function Cn(e){return function(t){return new An(e,t)}}var Dn=Object(a.a)(Object(g.a)([],Cn,(function(e,t){for(var n,r,i=new tt,o=[],a=0;a<t.length;)n=e(r=t[a]),i.add(n)&&o.push(r),a+=1;return o}))),Ln=Dn(Re),In=Object(a.a)((function(e,t){for(var n=new tt,r=0;r<e.length;r+=1)n.add(e[r]);return Ln(Object(Tn.a)(n.has.bind(n),t))})),Mn=Object(a.a)(Object(on.a)("intersperse",(function(e,t){for(var n=[],r=0,i=t.length;r<i;)r===i-1?n.push(t[r]):n.push(t[r],e),r+=1;return n}))),jn=n(198);var Nn="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,r=arguments.length;n<r;){var i=arguments[n];if(null!=i)for(var o in i)Object(G.a)(o,i)&&(t[o]=i[o]);n+=1}return t},Fn=Object(a.a)((function(e,t){var n={};return n[e]=t,n})),Un={"@@transducer/init":Array,"@@transducer/step":function(e,t){return e.push(t),e},"@@transducer/result":Pe},Bn={"@@transducer/init":String,"@@transducer/step":function(e,t){return e+t},"@@transducer/result":Pe},qn={"@@transducer/init":Object,"@@transducer/step":function(e,t){return Nn(e,Object(ie.a)(t)?Fn(t[0],t[1]):t)},"@@transducer/result":Pe};var Vn=Object(h.a)((function(e,t,n){var r=t(Object(jn.a)(e)?e:function(e){if(Object(jn.a)(e))return e;if(Object(ie.a)(e))return Un;if("string"==typeof e)return Bn;if("object"==typeof e)return qn;throw new Error("Cannot create transformer for "+e)}(e));return Object(se.a)(r,r["@@transducer/init"](),n)})),$n=Object(c.a)((function(e){for(var t=Object(U.a)(e),n=t.length,r=0,i={};r<n;){var o=t[r],a=e[o],s=Object(G.a)(a,i)?i[a]:i[a]=[];s[s.length]=o,r+=1}return i})),zn=Object(c.a)((function(e){for(var t=Object(U.a)(e),n=t.length,r=0,i={};r<n;){var o=t[r];i[e[o]]=o,r+=1}return i})),Gn=Object(a.a)((function(e,t){return Object(l.a)(e+1,(function(){var n=arguments[e];if(null!=n&&ee(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Object(Ie.a)(n)+' does not have a method named "'+t+'"')}))})),Wn=Object(a.a)((function(e,t){return t instanceof e||null!=t&&(t.constructor===e||"Object"===e.name&&"object"==typeof t)})),Hn=n(344),Kn=Object(c.a)((function(e){return!Object(K.a)(e)})),Yn=Gn(1,"join"),Qn=Object(c.a)((function(e){return qe((function(){return Array.prototype.slice.call(arguments,0)}),e)})),Xn=Object(c.a)((function(e){var t,n=[];for(t in e)n[n.length]=t;return n})),Jn=Object(a.a)((function(e,t){if("function"!=typeof t.lastIndexOf||Object(F.a)(t)){for(var n=t.length-1;n>=0;){if(Object(Pt.a)(t[n],e))return n;n-=1}return-1}return t.lastIndexOf(e)}));function Zn(e){return"[object Number]"===Object.prototype.toString.call(e)}var er=Object(c.a)((function(e){return null!=e&&Zn(e.length)?e.length:NaN})),tr=Object(a.a)((function(e,t){return function(n){return function(r){return Object(ge.a)((function(e){return t(e,r)}),n(e(r)))}}})),nr=Object(h.a)((function(e,t,n){return p(e,E(t),n)})),rr=Object(c.a)((function(e){return tr(Object(ke.a)(e),nr(e))})),ir=Object(a.a)((function(e,t){return e.map((function(e){for(var n,r=t,i=0;i<e.length;){if(null==r)return;n=e[i],r=Object(W.a)(n)?Object(ke.a)(n,r):r[n],i+=1}return r}))})),or=Object(a.a)((function(e,t){return ir([e],t)[0]})),ar=Object(c.a)((function(e){return tr(or(e),Y(e))})),sr=n(93),ur=Object(c.a)((function(e){return tr(Object(sr.a)(e),Q(e))})),cr=n(274),lr=Object(a.a)((function(e,t){return e<t})),fr=Object(a.a)((function(e,t){return e<=t})),dr=Object(h.a)((function(e,t,n){for(var r=0,i=n.length,o=[],a=[t];r<i;)a=e(a[0],n[r]),o[r]=a[1],r+=1;return[a[0],o]})),hr=Object(h.a)((function(e,t,n){for(var r=n.length-1,i=[],o=[t];r>=0;)o=e(o[0],n[r]),i[r]=o[1],r-=1;return[o[0],i]})),pr=n(129),gr=Object(a.a)((function(e,t){return Object(pr.a)((function(n,r){return n[r]=e(t[r],r,t),n}),{},Object(U.a)(t))})),mr=Object(a.a)((function(e,t){return t.match(e)||[]})),vr=Object(a.a)((function(e,t){return Object(W.a)(e)?!Object(W.a)(t)||t<1?NaN:(e%t+t)%t:NaN})),yr=Object(h.a)((function(e,t,n){var r=e(n);return Object(O.a)(e(t),r)===r?n:t})),br=Object(R.a)(s,0),_r=Object(c.a)((function(e){return br(e)/e.length})),wr=Object(c.a)((function(e){var t=e.length;if(0===t)return NaN;var n=2-t%2,r=(t-n)/2;return _r(Array.prototype.slice.call(e,0).sort((function(e,t){return e<t?-1:e>t?1:0})).slice(r,r+n))})),Er=Object(a.a)((function(e,t){var n={};return Object(xe.a)(t.length,(function(){var r=e.apply(this,arguments);return Object(G.a)(r,n)||(n[r]=t.apply(this,arguments)),n[r]}))})),Sr=Object(c.a)((function(e){return Nn.apply(null,[{}].concat(e))})),xr=Object(h.a)((function(e,t,n){var r,i={};for(r in n=n||{},t=t||{})Object(G.a)(r,t)&&(i[r]=Object(G.a)(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)Object(G.a)(r,n)&&!Object(G.a)(r,i)&&(i[r]=n[r]);return i})),kr=Object(h.a)((function e(t,n,r){return xr((function(n,r,i){return Object(qt.a)(r)&&Object(qt.a)(i)?e(t,r,i):t(n,r,i)}),n,r)})),Tr=Object(a.a)((function(e,t){return kr((function(e,t,n){return t}),e,t)})),Or=Object(a.a)((function(e,t){return kr((function(e,t,n){return n}),e,t)})),Pr=Object(h.a)((function(e,t,n){return kr((function(t,n,r){return e(n,r)}),t,n)})),Rr=Object(a.a)((function(e,t){return Nn({},t,e)})),Ar=Object(a.a)((function(e,t){return Nn({},e,t)})),Cr=Object(h.a)((function(e,t,n){return xr((function(t,n,r){return e(n,r)}),t,n)})),Dr=Object(a.a)((function(e,t){if(e===t)return e;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 i=n(typeof e,typeof t);if(void 0!==i)return i===typeof e?e:t;var o=Object(Ie.a)(e),a=n(o,Object(Ie.a)(t));return void 0!==a?a===o?e:t:e})),Lr=Object(h.a)((function(e,t,n){var r=e(n);return Dr(e(t),r)===r?n:t}));var Ir=Object(h.a)((function e(t,n,r){if(!Object(qt.a)(r)&&!Object(F.a)(r))return r;if(0===t.length)return n(r);var i=t[0];if(!Object(G.a)(i,r))return r;if(1===t.length)return function(e,t,n){if(Object(W.a)(e)&&Object(F.a)(n)){var r=[].concat(n);return r[e]=t(r[e]),r}var i={};for(var o in n)i[o]=n[o];return i[e]=t(i[e]),i}(i,n,r);var o=e(Array.prototype.slice.call(t,1),n,r[i]);return o===r[i]?r:H(i,o,r)})),Mr=Object(h.a)((function(e,t,n){return Ir([e],t,n)})),jr=Object(a.a)((function(e,t){return e%t})),Nr=Object(h.a)((function(e,t,n){var r=n.length,i=n.slice(),o=e<0?r+e:e,a=t<0?r+t:t,s=i.splice(o,1);return o<0||o>=n.length||a<0||a>=n.length?n:[].concat(i.slice(0,a)).concat(s).concat(i.slice(a,n.length))})),Fr=Object(a.a)((function(e,t){return e*t})),Ur=Object(a.a)((e,t)=>n=>e.call(void 0,Or(t,n))),Br=Object(c.a)((function(e){return-e})),qr=n(289),Vr=Object(a.a)((function(e,t){return _(Object(qr.a)(e),t)})),$r=n(275),zr=Object(c.a)((function(e){var t=e<0?1:e+1;return Object(l.a)(t,(function(){return Object(ke.a)(e,arguments)}))})),Gr=Object(h.a)((function(e,t,n){return e(t(n))})),Wr=Object(a.a)((function(e,t){return"function"==typeof e["fantasy-land/of"]?e["fantasy-land/of"](t):"function"==typeof e.of?e.of(t):[t]})),Hr=Object(a.a)((function(e,t){for(var n={},r={},i=0,o=e.length;i<o;)r[e[i]]=1,i+=1;for(var a in t)r.hasOwnProperty(a)||(n[a]=t[a]);return n})),Kr=Object(ze.a)(4,[],(function(e,t,n,r){return e(t(n),t(r))})),Yr=Object(c.a)((function(e){var t,n=!1;return Object(xe.a)(e.length,(function(){return n?t:(n=!0,t=e.apply(this,arguments))}))})),Qr=n(293);function Xr(e,t){if(null==t||!ee(t.then))throw new TypeError("`"+e+"` expected a Promise, received "+Object(Qr.a)(t,[]))}var Jr=Object(a.a)((function(e,t){return Xr("otherwise",t),t.then(null,e)})),Zr=function(e){return{value:e,map:function(t){return Zr(t(e))}}},ei=Object(h.a)((function(e,t,n){return e((function(e){return Zr(t(e))}))(n).value})),ti=Object(a.a)((function(e,t){return[e,t]}));function ni(e){return Object(a.a)((function(t,n){return Object(xe.a)(Math.max(0,t.length-n.length),(function(){return t.apply(this,e(n,arguments))}))}))}var ri=ni(u.a),ii=ni(rn(u.a)),oi=n(147),ai=Qn([$t.a,oi.a]),si=Object(h.a)((function(e,t,n){return Object(Pt.a)(or(t,n),e)})),ui=Object(h.a)((function(e,t,n){return Xe(e,or(t,n))})),ci=Object(h.a)((function(e,t,n){return e(or(t,n))})),li=Object(a.a)((function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n})),fi=Object(a.a)((function(e,t){for(var n={},r=0,i=e.length;r<i;){var o=e[r];n[o]=t[o],r+=1}return n})),di=Object(a.a)((function(e,t){var n={};for(var r in t)e(t[r],r,t)&&(n[r]=t[r]);return n})),hi=n(279),pi=Object(a.a)((function(e,t){return Object(u.a)([e],t)})),gi=Object(R.a)(Fr,1),mi=Object(a.a)((function(e,t){return Object(l.a)(t.length,(function(){for(var n=[],r=0;r<t.length;)n.push(t[r].call(this,arguments[r])),r+=1;return e.apply(this,n.concat(Array.prototype.slice.call(arguments,t.length)))}))})),vi=mi(Be.a,[fi,Re]);function yi(e,t,n){return function(r){return t(n(e(r)))}}var bi=function(){function e(e,t,n){this.xf=n,this.f=e,this.g=t}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=v.a.result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,yi(this.f,this.g,t))},e}();function _i(e,t){return function(n){return new bi(e,t,n)}}var wi=Object(h.a)(Object(g.a)(["fantasy-land/promap","promap"],_i,yi)),Ei=Object(h.a)((function(e,t,n){return Object(Pt.a)(e,Object(sr.a)(t,n))})),Si=Object(h.a)((function(e,t,n){return Wn(e,Object(sr.a)(t,n))})),xi=Object(h.a)((function(e,t,n){return Xe(e,Object(sr.a)(t,n))})),ki=Object(h.a)((function(e,t,n){return e(Object(sr.a)(t,n))})),Ti=Object(a.a)((function(e,t){return e.map((function(e){return or([e],t)}))})),Oi=Object(a.a)((function(e,t){if(!Zn(e)||!Zn(t))throw new TypeError("Both arguments to range must be numbers");for(var n=[],r=e;r<t;)n.push(r),r+=1;return n})),Pi=Object(h.a)((function(e,t,n){for(var r=n.length-1;r>=0;){if((t=e(n[r],t))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r-=1}return t})),Ri=Object(ze.a)(4,[],(function(e,t,n,r){var i=Object(He.a)((function(n,r){return e(n,r)?t(n,r):m(n)}));return Object(se.a)(i,n,r)})),Ai=Object(c.a)(m),Ci=Object(a.a)((function(e,t){var n,r=Number(t),i=0;if(r<0||isNaN(r))throw new RangeError("n must be a non-negative number");for(n=[];i<r;)n.push(e(i)),i+=1;return n})),Di=Object(a.a)((function(e,t){return Ci(E(e),t)})),Li=Object(h.a)((function(e,t,n){return n.replace(e,t)})),Ii=function(){function e(e,t,n){this.xf=n,this.f=e,this.acc=t}return e.prototype["@@transducer/init"]=function(){return this.xf["@@transducer/step"](this.xf["@@transducer/init"](),this.acc)},e.prototype["@@transducer/result"]=v.a.result,e.prototype["@@transducer/step"]=function(e,t){return e["@@transducer/reduced"]?e:(this.acc=this.f(this.acc,t),this.xf["@@transducer/step"](e,this.acc))},e}(),Mi=Object(h.a)((function(e,t,n){return new Ii(e,t,n)})),ji=Object(h.a)(Object(g.a)([],Mi,(function(e,t,n){for(var r=0,i=n.length,o=[t];r<i;)t=e(t,n[r]),o[r+1]=t,r+=1;return o}))),Ni=Object(a.a)((function(e,t){var n="function"==typeof e["fantasy-land/of"]?e["fantasy-land/of"]:"function"==typeof e.of?e.of:e,r={"fantasy-land/of":n};return"function"==typeof t["fantasy-land/traverse"]?t["fantasy-land/traverse"](r,Pe):"function"==typeof t.traverse?t.traverse(r,Pe):Pi((function(e,t){return Object(C.a)(Object(ge.a)(pi,e),t)}),n([]),t)})),Fi=Object(h.a)((function(e,t,n){return ei(e,E(t),n)})),Ui=Object(a.a)((function(e,t){return Array.prototype.slice.call(t,0).sort(e)})),Bi=Object(a.a)((function(e,t){return Array.prototype.slice.call(t,0).sort((function(t,n){var r=e(t),i=e(n);return r<i?-1:r>i?1:0}))})),qi=Object(a.a)((function(e,t){return Array.prototype.slice.call(t,0).sort((function(t,n){for(var r=0,i=0;0===r&&i<e.length;)r=e[i](t,n),i+=1;return r}))})),Vi=Gn(1,"split"),$i=Object(a.a)((function(e,t){return[Object(ft.a)(0,e,t),Object(ft.a)(e,er(t),t)]})),zi=Object(a.a)((function(e,t){if(e<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var n=[],r=0;r<t.length;)n.push(Object(ft.a)(r,r+=e,t));return n})),Gi=Object(a.a)((function(e,t){for(var n=0,r=t.length,i=[];n<r&&!e(t[n]);)i.push(t[n]),n+=1;return[i,Array.prototype.slice.call(t,n)]})),Wi=Object(ze.a)(2,[],(function(e,t){for(var n=[],r=[],i=0;i<t.length;i+=1)e(t[i])||r.push(t[i]),(i<t.length-1&&e(t[i+1])||i===t.length-1)&&r.length>0&&(n.push(r),r=[]);return n})),Hi=Object(a.a)((function(e,t){return Object(Pt.a)(gt(e.length,t),e)})),Ki=Object(a.a)((function(e,t){return Number(e)-Number(t)})),Yi=function(e,t,n){var r=n.length,i=n.slice(),o=e<0?r+e:e,a=t<0?r+t:t,s=Math.min(o,a),u=Math.max(o,a);return o<0||o>r||a<0||a>r||o===a?i:i=[].concat(i.slice(0,s)).concat([i[u]]).concat(i.slice(s+1,u)).concat([i[s]]).concat(i.slice(u+1,r))},Qi=Object(h.a)((function(e,t,n){return Object(F.a)(n)?Yi(e,t,n):Object(Le.a)(n)?function(e,t,n){var r=Yi(e,t,n);return Object(F.a)(r)?r.join(""):r}(e,t,n):function(e,t,n){var r=Object(ye.a)(n),i=Object.getOwnPropertyNames(r);if(i.includes(e)&&i.includes(t)){var o=r[e];r[e]=r[t],r[t]=o}return r}(e,t,n)})),Xi=Object(a.a)((function(e,t){return Me(nt(e,t),nt(t,e))})),Ji=Object(h.a)((function(e,t,n){return Me(it(e,t,n),it(e,n,t))})),Zi=Object(a.a)((function(e,t){for(var n=t.length-1;n>=0&&e(t[n]);)n-=1;return Object(ft.a)(n+1,1/0,t)})),eo=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=v.a.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):m(e)},e}();function to(e){return function(t){return new eo(e,t)}}var no=Object(a.a)(Object(g.a)(["takeWhile"],to,(function(e,t){for(var n=0,r=t.length;n<r&&e(t[n]);)n+=1;return Object(ft.a)(0,n,t)}))),ro=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=v.a.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t),this.xf["@@transducer/step"](e,t)},e}();function io(e){return function(t){return new ro(e,t)}}var oo=Object(a.a)(Object(g.a)([],io,(function(e,t){return e(t),t}))),ao=n(290);var so=Object(a.a)((function(e,t){if(n=e,"[object RegExp]"!==Object.prototype.toString.call(n))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Object(Ie.a)(e));var n;return Object(ao.a)(e).test(t)})),uo=Object(a.a)((function(e,t){return Xr("andThen",t),t.then(e)})),co=Gn(0,"toLowerCase"),lo=Object(c.a)((function(e){var t=[];for(var n in e)Object(G.a)(n,e)&&(t[t.length]=[n,e[n]]);return t})),fo=Object(c.a)((function(e){var t=[];for(var n in e)t[t.length]=[n,e[n]];return t})),ho=Gn(0,"toUpperCase"),po=Object(l.a)(4,(function(e,t,n,r){return Object(se.a)(e("function"==typeof t?Object(He.a)(t):t),n,r)})),go=Object(c.a)((function(e){for(var t=0,n=[];t<e.length;){for(var r=e[t],i=0;i<r.length;)void 0===n[i]&&(n[i]=[]),n[i].push(r[i]),i+=1;t+=1}return n})),mo=Object(h.a)((function(e,t,n){var r={"fantasy-land/of":"function"==typeof e["fantasy-land/of"]?e["fantasy-land/of"]:"function"==typeof e.of?e.of:e};return"function"==typeof n["fantasy-land/traverse"]?n["fantasy-land/traverse"](r,t):"function"==typeof n.traverse?n.traverse(r,t):Ni(r,Object(ge.a)(t,n))})),vo="\t\n\v\f\r                 \u2028\u2029\ufeff",yo="function"==typeof String.prototype.trim&&!vo.trim()&&"​".trim()?Object(c.a)((function(e){return e.trim()})):Object(c.a)((function(e){var t=new RegExp("^["+vo+"]["+vo+"]*"),n=new RegExp("["+vo+"]["+vo+"]*$");return e.replace(t,"").replace(n,"")})),bo=Object(a.a)((function(e,t){return Object(xe.a)(e.length,(function(){try{return e.apply(this,arguments)}catch(e){return t.apply(this,Object(u.a)([e],arguments))}}))})),_o=n(151),wo=Object(c.a)((function(e){return function(){return e(Array.prototype.slice.call(arguments,0))}})),Eo=Object(c.a)((function(e){return X(1,e)})),So=Object(a.a)((function(e,t){return Object(l.a)(e,(function(){for(var n,r=1,i=t,o=0;r<=e&&"function"==typeof i;)n=r===e?arguments.length:o+i.length,i=i.apply(this,Array.prototype.slice.call(arguments,o,n)),r+=1,o=n;return i}))})),xo=Object(a.a)((function(e,t){for(var n=e(t),r=[];n&&n.length;)r[r.length]=n[0],n=e(n[1]);return r})),ko=Object(a.a)(Object(Se.a)(Ln,u.a)),To=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=v.a.init,e.prototype["@@transducer/result"]=v.a.result,e.prototype["@@transducer/step"]=function(e,t){return Object(rt.a)(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();function Oo(e){return function(t){return new To(e,t)}}var Po=Object(a.a)(Object(g.a)([],Oo,(function(e,t){for(var n,r=0,i=t.length,o=[];r<i;)n=t[r],Object(rt.a)(e,n,o)||(o[o.length]=n),r+=1;return o}))),Ro=Object(h.a)((function(e,t,n){return Po(e,Object(u.a)(t,n))})),Ao=Object(h.a)((function(e,t,n){return e(n)?n:t(n)})),Co=me(Pe),Do=Object(h.a)((function(e,t,n){for(var r=n;!e(r);)r=t(r);return r})),Lo=Object(a.a)((function(e,t){return e in t&&Object(F.a)(t[e])?Object(Be.a)((function(n){return H(e,n,t)}),t[e]):[t]})),Io=Object(c.a)((function(e){var t,n=[];for(t in e)n[n.length]=e[t];return n})),Mo=function(e){return{value:e,"fantasy-land/map":function(){return this}}},jo=Object(a.a)((function(e,t){return e(Mo)(t).value})),No=Object(h.a)((function(e,t,n){return e(n)?t(n):n})),Fo=Object(a.a)((function(e,t){for(var n in e)if(Object(G.a)(n,e)&&!e[n](t[n]))return!1;return!0})),Uo=Object(a.a)((function(e,t){for(var n in e)if(Object(G.a)(n,e)&&e[n](t[n]))return!0;return!1})),Bo=Object(a.a)((function(e,t){return Fo(Object(ge.a)(Pt.a,e),t)})),qo=Object(a.a)((function(e,t){for(var n=new tt,r=0;r<e.length;r+=1)n.add(e[r]);return Object(oi.a)(n.has.bind(n),t)})),Vo=Object(a.a)((function(e,t){return Boolean(!e^!t)})),$o=Object(a.a)((function(e,t){for(var n,r=0,i=e.length,o=t.length,a=[];r<i;){for(n=0;n<o;)a[a.length]=[e[r],t[n]],n+=1;r+=1}return a})),zo=Object(a.a)((function(e,t){for(var n=[],r=0,i=Math.min(e.length,t.length);r<i;)n[r]=[e[r],t[r]],r+=1;return n})),Go=Object(a.a)((function(e,t){for(var n=0,r=Math.min(e.length,t.length),i={};n<r;)i[e[n]]=t[n],n+=1;return i})),Wo=Object(h.a)((function(e,t,n){for(var r=[],i=0,o=Math.min(t.length,n.length);i<o;)r[i]=e(t[i],n[i]),i+=1;return r})),Ho=Object(c.a)((function(e){return Object(l.a)(e.length,(function(){var t=arguments;return function(){return e.apply(this,t)}}))}))},function(e,t,n){"use strict";var r=n(48),i=n(3),o=n(150),a=n(58),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(130),i=n(5),o=n(53),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(105),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(129),i=n(3),o=n(20),a=n(199),s=n(116),u=n(14),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(49),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(290),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){var r=n(1113)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";var r=n(7);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},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";e.exports={}},function(e,t,n){"use strict";var r=n(61),i=n(121),o=n(28),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(7),i=n(23),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(578);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},function(e,t,n){"use strict";var r=n(7),i=n(17),o=n(119),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(44),i=n(100),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(401),i=TypeError;e.exports=function(e){if(r(e))throw new i("ArrayBuffer is detached");return e}},function(e,t,n){"use strict";var r=n(44),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(4);e.exports=r(1.1.valueOf)},function(e,t,n){"use strict";var r=n(11),i=n(186),o=n(23),a=n(206),s=n(228),u=n(17),c=n(238),l=n(31),f=n(119),d=i&&i.prototype,h=u("species"),p=!1,g=o(r.PromiseRejectionEvent),m=a("Promise",(function(){var e=s(i),t=e!==String(i);if(!t&&66===f)return!0;if(l&&(!d.catch||!d.finally))return!0;if(!f||f<51||!/native code/.test(e)){var n=new i((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[h]=r,!(p=n.then((function(){}))instanceof r))return!0}return!(t||"BROWSER"!==c&&"DENO"!==c||g)}));e.exports={CONSTRUCTOR:m,REJECTION_EVENT:g,SUBCLASSING:p}},function(e,t,n){"use strict";var r,i,o=n(11),a=n(225),s=n(23),u=n(55),c=n(63),l=n(35),f=n(17),d=n(31),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(8),i=n(18),o=n(54);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(232),i=n(74);e.exports=r(i.proto,"size","get")||function(e){return e.size}},function(e,t,n){"use strict";var r=n(8),i=n(10),o=n(23),a=n(78),s=n(323),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(4),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(279),i=n(196);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(275),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(1157).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},function(e,t,n){"use strict";var r=n(8),i=n(16),o=n(140),a=n(54),s=n(353),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(31),i=n(11),o=n(296),a=e.exports=i["__core-js_shared__"]||o("__core-js_shared__",{});(a.versions||(a.versions=[])).push({version:"3.44.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"})},function(e,t,n){"use strict";var r=n(11),i=n(16),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(4),i=n(7),o=n(23),a=n(24),s=n(15),u=n(178).CONFIGURABLE,c=n(228),l=n(34),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(4),i=n(23),o=n(225),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(141),i=n(156),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(11);e.exports=r},function(e,t,n){"use strict";var r=n(4),i=n(19);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(155),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(37),i=n(139),o=n(27),a=n(28),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(61),i=n(52),o=n(182),a=n(34),s=n(40).f,u=n(308),c=n(65),l=n(31),f=n(15),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=null,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(19),i=n(27),o=n(139),a=n(28),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(11),i=n(120),o=n(78),a=function(e){return i.slice(0,e.length)===e};e.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},function(e,t,n){"use strict";var r=n(11),i=n(4),o=n(15),a=n(240),s=n(178),u=n(62),c=n(45),l=n(114),f=n(7),d=n(86),h=n(44),p=n(100),g=n(209),m=n(312),v=n(631),y=n(63),b=n(111),_=n(306),w=n(101),E=n(159),S=n(179),x=n(91),k=n(34),T=s.PROPER,O=s.CONFIGURABLE,P=k.getterFor("ArrayBuffer"),R=k.getterFor("DataView"),A=k.set,C=r.ArrayBuffer,D=C,L=D&&D.prototype,I=r.DataView,M=I&&I.prototype,j=Object.prototype,N=r.Array,F=r.RangeError,U=i(_),B=i([].reverse),q=v.pack,V=v.unpack,$=function(e){return[255&e]},z=function(e){return[255&e,e>>8&255]},G=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},W=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=R(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=R(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"):((D=function(e){return d(this,L),E(new C(g(e)),this,D)}).prototype=L,L.constructor=D,S(D,C)),b&&y(M)!==j&&b(M,j);var Z=new I(new D(2)),ee=i(M.setInt8);Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),!Z.getInt8(0)&&Z.getInt8(1)||l(M,{setInt8:function(e,t){ee(this,e,t<<24>>24)},setUint8:function(e,t){ee(this,e,t<<24>>24)}},{unsafe:!0})}else L=(D=function(e){d(this,L);var t=g(e);A(this,{type:"ArrayBuffer",bytes:U(N(t),0),byteLength:t}),o||(this.byteLength=t,this.detached=!1)}).prototype,M=(I=function(e,t,n){d(this,M),d(e,L);var r=P(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(D,"byteLength",P),Y(I,"buffer",R),Y(I,"byteLength",R),Y(I,"byteOffset",R)),l(M,{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 W(Q(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return W(Q(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return V(Q(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return V(Q(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){X(this,1,e,$,t)},setUint8:function(e,t){X(this,1,e,$,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,G,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){X(this,4,e,G,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(D,"ArrayBuffer"),x(I,"DataView"),e.exports={ArrayBuffer:D,DataView:I}},function(e,t,n){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){"use strict";var r=n(4),i=n(100),o=n(22),a=n(242),s=n(42),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(44),i=n(22),o=n(42),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=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(57);e.exports=function(e,t,n){for(var i=e.length-1;i>=0;i--)if(void 0!==e[i])try{n=r(e[i].iterator,t,n)}catch(e){t="throw",n=e}if("throw"===t)throw n;return n}},function(e,t,n){"use strict";e.exports=function(e,t){var n="function"==typeof Iterator&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch(e){return!0}}},function(e,t,n){"use strict";var r=n(8),i=n(10),o=n(41),a=n(132);e.exports=function(e,t){t&&"string"==typeof e||i(e);var n=a(e);return o(i(void 0!==n?r(n,e):e))}},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(4),a=n(206),s=n(35),u=n(164),c=n(51),l=n(86),f=n(23),d=n(99),h=n(16),p=n(7),g=n(235),m=n(91),v=n(159);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,P=p((function(){T.has(1)})),R=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)}));R||((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),(P||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(31),i=n(11),o=n(7),a=n(311);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=n(10),i=n(251),o=n(99),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(123),i=n(155),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,i,o,a,s=n(11),u=n(80),c=n(37),l=n(23),f=n(24),d=n(7),h=n(359),p=n(101),g=n(226),m=n(106),v=n(438),y=n(183),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 P=function(e){if(f(O,e)){var t=O[e];delete O[e],t()}},R=function(e){return function(){P(e)}},A=function(e){P(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(R(e))}:E&&E.now?i=function(e){E.now(R(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),P(e)}}:function(e){setTimeout(R(e),0)}),e.exports={set:b,clear:_}},function(e,t,n){"use strict";var r=n(186),i=n(235),o=n(213).CONSTRUCTOR;e.exports=o||!i((function(e){r.all(e).then(void 0,(function(){}))}))},function(e,t,n){"use strict";var r=n(8),i=n(10),o=n(55),a=n(54),s=n(114),u=n(34),c=n(57),l=n(18),f=n(214),d=n(65),h=l("Promise"),p=u.set,g=u.getterFor("AsyncFromSyncIterator"),m=function(e,t,n,r,i){var o=e.done;h.resolve(e.value).then((function(e){t(d(e,o))}),(function(e){if(!o&&i)try{c(r,"throw",e)}catch(t){e=t}n(e)}))},v=function(e){e.type="AsyncFromSyncIterator",p(this,e)};v.prototype=s(o(f),{next:function(){var e=g(this);return new h((function(t,n){var o=i(r(e.next,e.iterator));m(o,t,n,e.iterator,!0)}))},return:function(){var e=g(this).iterator;return new h((function(t,n){var o=a(e,"return");if(void 0===o)return t(d(void 0,!0));var s=i(r(o,e));m(s,t,n,e)}))}}),e.exports=v},function(e,t,n){"use strict";var r=n(16),i=n(78),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(7),i=n(11).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";var r=TypeError;e.exports=function(e){if("string"==typeof e)return e;throw new r("Argument is not a string")}},function(e,t,n){"use strict";n(322);var r=n(8),i=n(35),o=n(323),a=n(7),s=n(17),u=n(62),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(188).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){"use strict";var r=n(224),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(16),i=String,o=TypeError;e.exports=function(e){if(void 0===e||r(e))return e;throw new o(i(e)+" is not an object or undefined")}},function(e,t,n){"use strict";var r=n(37),i=n(10),o=n(27),a=n(51);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(10);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(90),i=TypeError;e.exports=function(e){if("Uint8Array"===r(e))return e;throw new i("Argument is not an Uint8Array")}},function(e,t,n){"use strict";var r=n(136).has;e.exports=function(e){return r(e),e}},function(e,t,n){"use strict";var r=n(7),i=n(17),o=n(15),a=n(31),s=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","https://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||"https://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("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==r||"x"!==new URL("https://x",void 0).host}))},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(75).inherits(i,r,{__CANCEL__:!0}),e.exports=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(84),i=n(25),o=n(281),a=n(9),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(95).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(84),i=n(9),o=n(25),a=n(172),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(95).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(21),i=n(84),o=n(172),a=n(175),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(21),i=n(84),o=n(281),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(95).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n(21);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(129),o=n(194),a=n(29),s=n(58),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(59),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(200),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(286),o=n(32),a=n(116),s=n(105);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(59);function i(e,t){return function(){return t.call(this,e.apply(this,arguments))}}var o=n(70),a=n(195);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(84),i=n(9),o=n(21),a=n(25),s=n(137),u=n(83),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(95).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c}));var r=n(21),i=n(137),o=n(25),a=n(83),s=n(9),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(219),s=n(88),u=n(282);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(138),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(14),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(33),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(43);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){function n(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return(r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0});const s=a(n(0)),u=n(69);n(1164);t.default=(0,s.memo)(({live:e,seekLiveFunc:t})=>{const{t:n}=(0,u.useTranslation)();return s.default.createElement("div",{className:"itsLive"+(e?"":" not"),"data-cy":"itsLive",onClick:function(){return e?null:t("live")}},!e&&s.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 l}));var r=n(174),i=n(109);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(49),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,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return(r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return o(t,e),t}),s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Preview=void 0;const u=a(n(0)),c=n(76);n(1141);const l=s(n(1143)),f=n(191);t.Preview=({name:t,hasPreview:n=!1,hidden:r,basicApiConfig:i,address:o,auth_token:a,from:s})=>{const[d,h]=(0,u.useState)(!1),[p,g]=(0,u.useState)(null);let m={};if(a){const e=(0,c.decode)(a.replace(/^\?/,""));m=Object.assign(Object.assign({},m),e)}const v={params:{name:t,from:s},options:{refetchInterval:1e4,keepPreviousData:!0,onSuccess:t=>{g(e.from(t.data,"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?s?(0,f.jpeg_preview_dvr)(v):(0,f.jpeg_preview)(v):s?(0,f.mp4_dvr)(v):(0,f.mp4_preview)(v),(0,u.useEffect)(()=>{r&&h(r)},[r]),u.default.createElement("video",{src:"data:video/mp4;base64,"+p,className:(0,l.default)(["dvrp-preview",{_hidden:d}]),playsInline:!0,autoPlay:!0,loop:!0,controls:!1,muted:!0})}}).call(this,n(341).Buffer)},function(e){e.exports=JSON.parse('{"version":"25.9.5-1-g69ca7ea"}')},function(e,t,n){"use strict";var r=n(11),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(18),i=n(4),o=n(157),a=n(230),s=n(10),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(15),i=n(355),o=n(40),a=n(10),s=n(61),u=n(180);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(78),i=n(61),o=n(157).f,a=n(101),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(62),i=n(303),o=n(372),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(4),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(7);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(182),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(27),i=n(121),o=n(28);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(10),i=n(57);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(8),o=n(31),a=n(178),s=n(23),u=n(161),c=n(63),l=n(111),f=n(91),d=n(62),h=n(35),p=n(17),g=n(182),m=n(162),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&&D)return D;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)}},P=t+" Iterator",R=!1,A=e.prototype,C=A[w]||A["@@iterator"]||p&&A[p],D=!_&&C||O(p),L="Array"===t&&A.entries||C;if(L&&(x=c(L.call(new e)))!==Object.prototype&&x.next&&(o||c(x)===b||(l?l(x,b):s(x[w])||h(x,w,E)),f(x,P,!0,!0),o&&(g[P]=E)),v&&"values"===p&&C&&"values"!==C.name&&(!o&&y?d(A,"name","values"):(R=!0,D=function(){return i(C,this)})),p)if(k={values:O("values"),keys:m?D:O("keys"),entries:O("entries")},S)for(T in k)(_||R||!(T in A))&&h(A,T,k[T]);else r({target:t,proto:!0,forced:_||R},k);return o&&!S||A[w]===D||h(A,w,D,{name:p}),g[t]=D,k}},function(e,t,n){"use strict";var r=n(15),i=n(122),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(101),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(120).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},function(e,t,n){"use strict";var r=n(394);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=n(11),i=n(7),o=n(119),a=n(238),s=r.structuredClone;e.exports=!!s&&!i((function(){if("DENO"===a&&o>92||"NODE"===a&&o>94||"BROWSER"===a&&o>97)return!1;var e=new ArrayBuffer(8),t=s(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength}))},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(19),a=n(10),s=n(41),u=n(124),c=n(307),l=n(57),f=n(245),d=n(125),h=n(31),p=!h&&!f("map",(function(){})),g=!h&&!p&&d("map",TypeError),m=h||p||g,v=u((function(){var e=this.iterator,t=a(i(this.next,e));if(!(this.done=!!t.done))return c(e,this.mapper,[t.value,this.counter++],!0)}));r({target:"Iterator",proto:!0,real:!0,forced:m},{map:function(e){a(this);try{o(e)}catch(e){l(this,"throw",e)}return g?i(g,this,e):new v(s(this),{mapper:e})}})},function(e,t,n){"use strict";n(651)},function(e,t,n){"use strict";var r=n(7),i=n(16),o=n(78),a=n(318),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(7);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(16),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(10);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(7),i=n(11).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(323);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(e,t,n){"use strict";var r,i,o=n(8),a=n(4),s=n(22),u=n(320),c=n(256),l=n(141),f=n(55),d=n(34).get,h=n(321),p=n(454),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,P=S&&h.sticky,R=o(u,h),A=h.source,C=0,D=k;if(P&&(R=_(R,"y",""),-1===b(R,"g")&&(R+="g"),D=w(k,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==y(k,h.lastIndex-1))&&(A="(?: "+A+")",D=" "+D,C++),n=new RegExp("^(?:"+A+")",R)),x&&(n=new RegExp("^"+A+"$(?!\\s)",R)),E&&(r=h.lastIndex),i=o(m,P?n:h,D),P?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(74),i=n(102),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(255),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(178).PROPER,i=n(7),o=n(185);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(11),i=n(7),o=n(235),a=n(26).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(90);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(26).getTypedArrayConstructor;e.exports=function(e,t){return r(i(e),t)}},function(e,t,n){"use strict";n(812)},function(e,t,n){"use strict";var r=n(37),i=n(4),o=n(139),a=n(27),s=n(131),u=n(28),c=n(55),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(4),i=n(19),o=n(99),a=n(28),s=n(27),u=n(66),c=n(115),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(34),i=n(161),o=n(65),a=n(99),s=n(16),u=n(45),c=n(15),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(8),i=n(19),o=n(23),a=n(10),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(34),i=n(161),o=n(65),a=n(24),s=n(180),u=n(27),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(11),o=n(80),a=n(23),s=n(238),u=n(120),c=n(101),l=n(106),f=i.Function,d=/MSIE .\./.test(u)||"BUN"===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){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){"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(273),a=n(88);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(75),i=n(1090),o=n(192),a=n(533),s=n(534),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(535)),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(1101)},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(338))},function(e,t,n){"use strict";(function(e){
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
5
5
  * @author Feross Aboukhadijeh <http://feross.org>
6
6
  * @license MIT
7
7
  */
8
- var r=n(1091),i=n(1092),o=n(1093);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|h(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):d(e,t);if("Buffer"===t.type&&o(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=s(e,t<0?0:0|h(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|h(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var f=!0,d=0;d<u;d++)if(c(e,o+d)!==c(t,d)){f=!1;break}if(f)return o}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function _(e,t,n,r){return V(B(t,e.length-n),e,n,r)}function w(e,t,n,r){return V(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function E(e,t,n,r){return w(e,t,n,r)}function S(e,t,n,r){return V(q(t),e,n,r)}function x(e,t,n,r){return V(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,u,c=e[i],l=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):g.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),l=e.slice(t,n),f=0;f<s;++f)if(c[f]!==l[f]){o=c[f],a=l[f];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return E(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function O(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function P(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function R(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=U(e[o]);return i}function A(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function C(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function L(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function I(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function M(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,r,o){return o||M(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function N(e,t,n,r,o){return o||M(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||C(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||C(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||C(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||C(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||C(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||C(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||C(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||C(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||C(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||C(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||C(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||C(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||C(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return N(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=u.isBuffer(e)?e:B(new u(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(153))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.networkTelemetry=void 0,t.networkTelemetry={getStreamFields:()=>({event:"request_success",event_message:"Get stream info.json",uts_ms:Date.now()}),errorStreamFields:()=>({event:"request_error",error_type:"stream_info_request_error",event_message:"Error in get stream info.json",uts_ms:Date.now()}),getRangesListFields:()=>({event:"request_success",event_message:"Get ranges",uts_ms:Date.now()}),errorRangesListFields:()=>({event:"request_error",error_type:"ranges_list_request_error",event_message:"Error in get ranges",uts_ms:Date.now()}),getRecordingStatusFields:()=>({event:"request_success",event_message:"Get recording_status.json",uts_ms:Date.now()}),errorRecordingStatusFields:()=>({event:"request_error",error_type:"recording_status_request_error",event_message:"Error in get recording status",uts_ms:Date.now()}),getMotionsGetter:()=>({event:"request_success",event_message:"Get motions",uts_ms:Date.now()}),errorMotionsGetter:()=>({event:"request_error",error_type:"motions_request_error",event_message:"Error in get motions",uts_ms:Date.now()})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.webrtcTelemetry=t.mseTelemetry=t.hlsTelemetry=void 0,t.hlsTelemetry={loadManifest:()=>({event:"request_success",event_message:"Load manifest",uts_ms:Date.now()}),loadFragment:()=>({event:"request_success",event_message:"Load fragment",uts_ms:Date.now()})},t.mseTelemetry={getMessage:()=>({event:"request_success",event_message:"Message received",uts_ms:Date.now()})},t.webrtcTelemetry={getPackets:()=>({event:"request_success",event_message:"Packets received",uts_ms:Date.now()})}},function(e,t,n){"use strict";var r=n(5),i=n(278),o=n(43),a=Object(r.a)((function(e){return null!=e&&Object(o.a)(e,Object(i.a)(e))}));t.a=a},function(e,t,n){"use strict";var r=n(5),i=n(29),o=n(92),a=n(126),s=n(70),u=Object(r.a)((function(e){return Object(i.a)(Object(s.a)(o.a,0,Object(a.a)("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));t.a=u},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendMetrics=t.logAxios=void 0;const i=r(n(170)),o=n(541);t.logAxios=i.default.create({baseURL:"https://mobile-logger.flussonic.cloud",headers:Object.assign({"Content-Type":"application/json"},o.AUTH_CONFIG.headers),timeout:5e3});t.sendMetrics=e=>{const n=Object.assign(Object.assign({},e),{platform:"web",app_name:"@flussonic/flussonic-dvr-player",app_version:"25.9.4"});t.logAxios.post("/collect",n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCurrentPlayerVersion=void 0;const r=n(118);t.getCurrentPlayerVersion=e=>{switch(e){case r.PLAYER_NAME.MSE:return"25.6.3-1-g01bd0c9";case r.PLAYER_NAME.HLS:return"1.5.13";case r.PLAYER_NAME.WEBRTC:return"^24.7.1-0-g20fa1ce";default:return}}},function(e,t,n){(function(n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){s(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,a=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,n,a){var s=o.URL||o.webkitURL,u=document.createElement("a");n=n||e.name||"download",u.download=n,u.rel="noopener","string"==typeof e?(u.href=e,u.origin===location.origin?i(u):r(u.href)?t(e,n,a):i(u,u.target="_blank")):(u.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(u.href)}),4e4),setTimeout((function(){i(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,o){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),n);else if(r(e))t(e,n,o);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){i(a)}))}}:function(e,n,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var s="application/octet-stream"===e.type,u=/constructor/i.test(o.HTMLElement)||o.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||s&&u||a)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},l.readAsDataURL(e)}else{var f=o.URL||o.webkitURL,d=f.createObjectURL(e);i?i.location=d:location.href=d,i=null,setTimeout((function(){f.revokeObjectURL(d)}),4e4)}});o.saveAs=s.saveAs=s,e.exports=s})?r.apply(t,i):r)||(e.exports=o)}).call(this,n(153))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(76),i=n(0),o=n(191),a=n(12),s=n(171),u=n(87),c=n(342);t.default=(0,i.memo)(({name:e,address:t,returnData:n,setRanges:l,start:f,end:d,dvr_enabled:h,onRangesLoading:p,onEvent:g,rangesLoading:m,liveCheck:v,basicApiConfig:y,auth_token:b,resolution:_})=>{const{getCommonTelemetryFields:w,getCommonRequestFields:E,getCommonErrorRequestFields:S,sendMetrics:x}=(0,i.useContext)(u.TelemetryContext),{getRangesListFields:k,errorRangesListFields:T,getRecordingStatusFields:O,errorRecordingStatusFields:P}=c.networkTelemetry,[R,A]=(0,i.useState)(!1),[C,D]=(0,i.useState)(null),[L,I]=(0,i.useState)(!0);let M={};if(b){const e=(0,r.decode)(b.replace(/^\?/,""));M=Object.assign(Object.assign({},M),e)}const j=Object.assign(Object.assign({},y),{params:Object.assign(Object.assign({},y.params),M),baseURL:t||y.baseURL,encodeParams:!1});(0,i.useEffect)(()=>{p&&m&&p(!1)},[m,p]);const N=e=>({closed_at_gte:Math.round(((0,s.isNumber)(f)?f:(0,a.now)()-300)*(L?1e3:1)),opened_at_lte:Math.round((e?(0,a.now)()+300:d)*(L?1e3:1))}),F=e=>e>1e10?Math.floor(e/1e3):e,{refetch:U}=(0,o.ranges_list)({params:Object.assign({name:e},N(v)),options:{keepPreviousData:!0,enabled:!R,refetchInterval:v?1e3:void 0,onSuccess:t=>{x(Object.assign(Object.assign(Object.assign({},w()),E(t)),k()));const{ranges:r,next:i}=t.data;if(r&&r.length>0){const t=r.map(e=>Object.assign(Object.assign({},e),{closed_at:e.closed_at?F(e.closed_at):e.closed_at,opened_at:e.opened_at?F(e.opened_at):e.opened_at}));l(e,t,v),D(i||null),i?setTimeout(()=>U(),100):n("dvr_ranges_present",!0)}else L&&(I(!1),U())},onError:t=>{t&&x(Object.assign(Object.assign(Object.assign({},w()),S(t)),T())),t instanceof Error&&g&&g(e,{key:Date.now(),data:{event:"player_error",error_name:"ranges_fetching_error",error_message:"DVR Player ranges fetch error"}}),console.error("Fetch ranges error:",t),A(!0),l(e,[{closed_at:(0,a.now)(),opened_at:(0,a.now)()}]),p&&p(!1)}},config:Object.assign(Object.assign({},j),{params:Object.assign(Object.assign(Object.assign({},j.params),N(v)),{limit:1e3,cursor:C,resolution:Math.floor(_)})})});return(0,o.recording_status)({params:{name:e},options:{refetchInterval:v?1e3:2e3,keepPreviousData:!0,enabled:R,onSuccess:t=>{const r=t.data[0];x(Object.assign(Object.assign(Object.assign({},w()),E(r)),O()));const{ranges:i}=r;if(i&&i.length)if(h){n("dvr_ranges_present",!0);const t=i.map(e=>e.from&&e.duration?{opened_at:e.from,closed_at:e.from+e.duration}:{});l(e,t)}else n("dvr_ranges_present",!1),l(e,[{closed_at:(0,a.now)(),opened_at:(0,a.now)()}]);else n("dvr_ranges_present",!1);p&&p(!0)},onError:t=>{t&&x(Object.assign(Object.assign(Object.assign({},w()),S(t)),P())),t instanceof Error&&g&&g(e,{key:Date.now(),data:{event:"player_error",error_name:t.name,error_message:t.message}}),console.error("Fetch ranges error:",t),l(e,[{closed_at:(0,a.now)(),opened_at:(0,a.now)()}]),p&&p(!1)}},config:Object.assign(Object.assign({},y),{params:Object.assign(Object.assign({},y.params),Object.assign({from:v?Math.round((0,a.now)()-300):Math.round(f),to:v?Math.round((0,a.now)()+300):Math.round(d),request:"motion_log,ranges"},M)),baseURL:t||y.baseURL,encodeParams:!1})}),null})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=e=>{let t=!1;let n=0,r=0;return{handleMouseDown:e=>{t=!1,n=e.clientX,r=e.clientY},handleMouseMove:e=>{const i=Math.abs(e.clientX-n),o=Math.abs(e.clientY-r);(i>5||o>5)&&(t=!0)},handleMouseUp:n=>{t||e(n)},handleTouchMove:e=>{if(n&&r){const i=Math.abs(e.touches[0].clientX-n),o=Math.abs(e.touches[0].clientY-r);(i>5||o>5)&&(t=!0)}else n=e.touches[0].clientX,r=e.touches[0].clientY},handleTouchEnd:i=>{t||e(i),0===i.touches.length&&(t=!1,n=0,r=0)}}}},function(e,t,n){var r=n(107).default,i=n(573);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(154);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){"use strict";var r=n(8),i=n(23),o=n(16),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!o(s=r(n,e)))return s;if(i(n=e.valueOf)&&!o(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!o(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},function(e,t,n){"use strict";var r=n(15),i=n(7),o=n(226);e.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";var r=n(15),i=n(7);e.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(e,t,n){"use strict";var r=n(11),i=n(23),o=r.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},function(e,t,n){"use strict";var r=n(4),i=n(24),o=n(61),a=n(205).indexOf,s=n(204),u=r([].push);e.exports=function(e,t){var n,r=o(e),c=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&u(l,n);for(;t.length>c;)i(r,n=t[c++])&&(~a(l,n)||u(l,n));return l}},function(e,t,n){"use strict";var r=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?i:r)(t)}},function(e,t,n){"use strict";var r=n(18);e.exports=r("document","documentElement")},function(e,t,n){"use strict";var r=n(17);t.f=r},function(e,t,n){"use strict";var r=n(8),i=n(18),o=n(17),a=n(35);e.exports=function(){var e=i("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=o("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return r(n,this)}),{arity:1})}},function(e,t,n){"use strict";var r=n(154);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},function(e,t,n){"use strict";var r=n(2),i=n(18),o=n(80),a=n(8),s=n(4),u=n(7),c=n(23),l=n(140),f=n(101),d=n(364),h=n(154),p=String,g=i("JSON","stringify"),m=s(/./.exec),v=s("".charAt),y=s("".charCodeAt),b=s("".replace),_=s(1.1.toString),w=/[\uD800-\uDFFF]/g,E=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,x=!h||u((function(){var e=i("Symbol")("stringify detection");return"[null]"!==g([e])||"{}"!==g({a:e})||"{}"!==g(Object(e))})),k=u((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),T=function(e,t){var n=f(arguments),r=d(t);if(c(r)||void 0!==e&&!l(e))return n[1]=function(e,t){if(c(r)&&(t=a(r,this,p(e),t)),!l(t))return t},o(g,null,n)},O=function(e,t,n){var r=v(n,t-1),i=v(n,t+1);return m(E,e)&&!m(S,i)||m(S,e)&&!m(E,r)?"\\u"+_(y(e,0),16):e};g&&r({target:"JSON",stat:!0,arity:3,forced:x||k},{stringify:function(e,t,n){var r=f(arguments),i=o(x?T:g,null,r);return k&&"string"==typeof i?b(i,w,O):i}})},function(e,t,n){"use strict";var r=n(4),i=n(122),o=n(23),a=n(78),s=n(22),u=r([].push);e.exports=function(e){if(o(e))return e;if(i(e)){for(var t=e.length,n=[],r=0;r<t;r++){var c=e[r];"string"==typeof c?u(n,c):"number"!=typeof c&&"Number"!==a(c)&&"String"!==a(c)||u(n,s(c))}var l=n.length,f=!0;return function(e,t){if(f)return f=!1,t;if(i(this))return t;for(var r=0;r<l;r++)if(n[r]===e)return t}}}},function(e,t,n){"use strict";var r=n(11),i=n(50),o=n(40).f,a=n(73).f,s=r.Symbol;if(i("asyncDispose"),s){var u=a(s,"asyncDispose");u.enumerable&&u.configurable&&u.writable&&o(s,"asyncDispose",{value:u.value,enumerable:!1,configurable:!1,writable:!1})}},function(e,t,n){"use strict";var r=n(11),i=n(50),o=n(40).f,a=n(73).f,s=r.Symbol;if(i("dispose"),s){var u=a(s,"dispose");u.enumerable&&u.configurable&&u.writable&&o(s,"dispose",{value:u.value,enumerable:!1,configurable:!1,writable:!1})}},function(e,t,n){"use strict";var r=n(18),i=n(24),o=n(62),a=n(79),s=n(111),u=n(179),c=n(370),l=n(159),f=n(181),d=n(371),h=n(302),p=n(15),g=n(31);e.exports=function(e,t,n,m){var v=m?2:1,y=e.split("."),b=y[y.length-1],_=r.apply(null,y);if(_){var w=_.prototype;if(!g&&i(w,"cause")&&delete w.cause,!n)return _;var E=r("Error"),S=t((function(e,t){var n=f(m?t:e,void 0),r=m?new _(e):new _;return void 0!==n&&o(r,"message",n),h(r,S,r.stack,2),this&&a(w,this)&&l(r,this,S),arguments.length>v&&d(r,arguments[v]),r}));if(S.prototype=w,"Error"!==b?s?s(S,E):u(S,E,{name:!0}):p&&"stackTraceLimit"in _&&(c(S,_,"stackTraceLimit"),c(S,_,"prepareStackTrace")),u(S,_),!g)try{w.name!==b&&o(w,"name",b),w.constructor=S}catch(e){}return S}}},function(e,t,n){"use strict";var r=n(369),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},function(e,t,n){"use strict";var r=n(16);e.exports=function(e){return r(e)||null===e}},function(e,t,n){"use strict";var r=n(40).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},function(e,t,n){"use strict";var r=n(16),i=n(62);e.exports=function(e,t){r(t)&&"cause"in t&&i(e,"cause",t.cause)}},function(e,t,n){"use strict";var r=n(7),i=n(98);e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)}))},function(e,t,n){"use strict";var r=n(2),i=n(18),o=n(16),a=n(90),s=n(7),u=Object.setPrototypeOf||{}.__proto__,c=i("DOMException"),l=Error,f=l.isError;r({target:"Error",stat:!0,sham:!0,forced:!f||!u||s((function(){return c&&!f(new c("DOMException"))||!f(new l("Error",{cause:function(){}}))||f(i("Object","create")(l.prototype))}))},{isError:function(e){if(!o(e))return!1;var t=a(e);return"Error"===t||"DOMException"===t}})},function(e,t,n){"use strict";var r=n(15),i=n(7),o=n(10),a=n(181),s=Error.prototype.toString,u=i((function(){if(r){var e=Object.create(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==s.call(e))return!0}return"2: 1"!==s.call({message:1,name:2})||"Error"!==s.call({})}));e.exports=u?function(){var e=o(this),t=a(e.name,"Error"),n=a(e.message);return t?n?t+": "+n:t:n}:s},function(e,t,n){"use strict";n(598)},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(79),a=n(63),s=n(111),u=n(179),c=n(55),l=n(62),f=n(98),d=n(302),h=n(181),p=n(17),g=n(7),m=n(31),v=i.SuppressedError,y=p("toStringTag"),b=Error,_=!!v&&3!==v.length,w=!!v&&g((function(){return 4===new v(1,2,3,{cause:4}).cause})),E=_||w,S=function(e,t,n){var r,i=o(x,this);return s?r=!E||i&&a(this)!==x?s(new b,i?a(this):x):new v:(r=i?this:c(x),l(r,y,"Error")),void 0!==n&&l(r,"message",h(n)),d(r,S,r.stack,1),l(r,"error",e),l(r,"suppressed",t),r};s?s(S,b):u(S,b,{name:!0});var x=S.prototype=E?v.prototype:c(b.prototype,{constructor:f(1,S),message:f(1,""),name:f(1,"SuppressedError")});E&&!m&&(x.constructor=S),r({global:!0,constructor:!0,arity:3,forced:E},{SuppressedError:S})},function(e,t,n){"use strict";var r=n(2),i=n(27),o=n(28),a=n(44),s=n(52);r({target:"Array",proto:!0},{at:function(e){var t=i(this),n=o(t),r=a(e),s=r>=0?r:n+r;return s<0||s>=n?void 0:t[s]}}),s("at")},function(e,t,n){"use strict";var r=n(27),i=n(121),o=n(28),a=n(233),s=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),u=o(n),c=i(e,u),l=i(t,u),f=arguments.length>2?arguments[2]:void 0,d=s((void 0===f?u:i(f,u))-l,u-c),h=1;for(l<c&&c<l+d&&(h=-1,l+=d-1,c+=d-1);d-- >0;)l in n?n[c]=n[l]:a(n,c),c+=h,l+=h;return n}},function(e,t,n){"use strict";var r=n(2),i=n(234).findLast,o=n(52);r({target:"Array",proto:!0},{findLast:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findLast")},function(e,t,n){"use strict";var r=n(2),i=n(234).findLastIndex,o=n(52);r({target:"Array",proto:!0},{findLastIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findLastIndex")},function(e,t,n){"use strict";var r=n(122),i=n(28),o=n(160),a=n(37),s=function(e,t,n,u,c,l,f,d){for(var h,p,g=c,m=0,v=!!f&&a(f,d);m<u;)m in n&&(h=v?v(n[m],m,t):n[m],l>0&&r(h)?(p=i(h),g=s(e,t,h,p,g,l-1)-1):(o(g+1),e[g]=h),g++),m++;return g};e.exports=s},function(e,t,n){"use strict";var r=n(56).forEach,i=n(113)("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){"use strict";var r=n(37),i=n(8),o=n(27),a=n(307),s=n(305),u=n(123),c=n(28),l=n(112),f=n(142),d=n(132),h=Array;e.exports=function(e){var t=o(e),n=u(this),p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g;m&&(g=r(g,p>2?arguments[2]:void 0));var v,y,b,_,w,E,S=d(t),x=0;if(!S||this===h&&s(S))for(v=c(t),y=n?new this(v):h(v);v>x;x++)E=m?g(t[x],x):t[x],l(y,x,E);else for(y=n?new this:[],w=(_=f(t,S)).next;!(b=i(w,_)).done;x++)E=m?a(_,g,[b.value,x],!0):b.value,l(y,x,E);return y.length=x,y}},function(e,t,n){"use strict";var r=n(80),i=n(61),o=n(44),a=n(28),s=n(113),u=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,f=s("lastIndexOf"),d=l||!f;e.exports=d?function(e){if(l)return r(c,this,arguments)||0;var t=i(this),n=a(t);if(0===n)return-1;var s=n-1;for(arguments.length>1&&(s=u(s,o(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:c},function(e,t,n){"use strict";var r=n(120).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},function(e,t,n){"use strict";var r=n(120);e.exports=/MSIE|Trident/.test(r)},function(e,t,n){"use strict";var r=n(2),i=n(388),o=n(61),a=n(52),s=Array;r({target:"Array",proto:!0},{toReversed:function(){return i(o(this),s)}}),a("toReversed")},function(e,t,n){"use strict";var r=n(28);e.exports=function(e,t){for(var n=r(e),i=new t(n),o=0;o<n;o++)i[o]=e[n-o-1];return i}},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(19),a=n(61),s=n(143),u=n(390),c=n(52),l=Array,f=i(u("Array","sort"));r({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&o(e);var t=a(this),n=s(l,t);return f(n,e)}}),c("toSorted")},function(e,t,n){"use strict";var r=n(11);e.exports=function(e,t){var n=r[e],i=n&&n.prototype;return i&&i[t]}},function(e,t,n){"use strict";var r=n(2),i=n(52),o=n(160),a=n(28),s=n(121),u=n(61),c=n(44),l=Array,f=Math.max,d=Math.min;r({target:"Array",proto:!0},{toSpliced:function(e,t){var n,r,i,h,p=u(this),g=a(p),m=s(e,g),v=arguments.length,y=0;for(0===v?n=r=0:1===v?(n=0,r=g-m):(n=v-2,r=d(f(c(t),0),g-m)),i=o(g+n-r),h=l(i);y<m;y++)h[y]=p[y];for(;y<m+n;y++)h[y]=arguments[y-m+2];for(;y<i;y++)h[y]=p[y+r-n];return h}}),i("toSpliced")},function(e,t,n){"use strict";var r=n(2),i=n(393),o=n(61),a=Array;r({target:"Array",proto:!0,forced:function(){try{[].with({valueOf:function(){throw 4}},null)}catch(e){return 4!==e}}()},{with:function(e,t){return i(o(this),a,e,t)}})},function(e,t,n){"use strict";var r=n(28),i=n(44),o=RangeError;e.exports=function(e,t,n,a){var s=r(e),u=i(n),c=u<0?s+u:u;if(c>=s||c<0)throw new o("Incorrect index");for(var l=new t(s),f=0;f<s;f++)l[f]=f===c?a:e[f];return l}},function(e,t,n){"use strict";var r=n(313),i=n(395),o=Math.abs;e.exports=function(e,t,n,a){var s=+e,u=o(s),c=r(s);if(u<a)return c*i(u/a/t)*a*t;var l=(1+t/2220446049250313e-31)*u,f=l-(l-u);return f>n||f!=f?c*(1/0):c*f}},function(e,t,n){"use strict";e.exports=function(e){return e+4503599627370496-4503599627370496}},function(e,t,n){"use strict";var r=n(2),i=n(4),o=Math.pow,a=o(2,-24),s=function(e){var t=e>>>15,n=e>>>10&31,r=1023&e;return 31===n?0===r?0===t?1/0:-1/0:NaN:0===n?r*(0===t?a:-a):o(2,n-15)*(0===t?1+.0009765625*r:-1-.0009765625*r)},u=i(DataView.prototype.getUint16);r({target:"DataView",proto:!0},{getFloat16:function(e){return s(u(this,e,arguments.length>1&&arguments[1]))}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(398),a=n(209),s=n(399),u=n(395),c=Math.pow,l=function(e){if(e!=e)return 32256;if(0===e)return(1/e==-1/0)<<15;var t=e<0;if(t&&(e=-e),e>=65520)return t<<15|31744;if(e<61005353927612305e-21)return t<<15|u(16777216*e);var n=0|s(e);if(-15===n)return t<<15|1024;var r=u(1024*(e*c(2,-n)-1));return 1024===r?t<<15|n+16<<10:t<<15|n+15<<10|r},f=i(DataView.prototype.setUint16);r({target:"DataView",proto:!0},{setFloat16:function(e,t){f(o(this),a(e),l(+t),arguments.length>2&&arguments[2])}})},function(e,t,n){"use strict";var r=n(90),i=TypeError;e.exports=function(e){if("DataView"===r(e))return e;throw new i("Argument is not a DataView")}},function(e,t,n){"use strict";var r=Math.log,i=Math.LN2;e.exports=Math.log2||function(e){return r(e)/i}},function(e,t,n){"use strict";var r=n(15),i=n(45),o=n(401),a=ArrayBuffer.prototype;r&&!("detached"in a)&&i(a,"detached",{configurable:!0,get:function(){return o(this)}})},function(e,t,n){"use strict";var r=n(11),i=n(240),o=n(402),a=r.DataView;e.exports=function(e){if(!i||0!==o(e))return!1;try{return new a(e),!1}catch(e){return!0}}},function(e,t,n){"use strict";var r=n(11),i=n(232),o=n(78),a=r.ArrayBuffer,s=r.TypeError;e.exports=a&&i(a.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==o(e))throw new s("ArrayBuffer expected");return e.byteLength}},function(e,t,n){"use strict";var r=n(2),i=n(404);i&&r({target:"ArrayBuffer",proto:!0},{transfer:function(){return i(this,arguments.length?arguments[0]:void 0,!0)}})},function(e,t,n){"use strict";var r=n(11),i=n(4),o=n(232),a=n(209),s=n(210),u=n(402),c=n(405),l=n(314),f=r.structuredClone,d=r.ArrayBuffer,h=r.DataView,p=Math.min,g=d.prototype,m=h.prototype,v=i(g.slice),y=o(g,"resizable","get"),b=o(g,"maxByteLength","get"),_=i(m.getInt8),w=i(m.setInt8);e.exports=(l||c)&&function(e,t,n){var r,i=u(e),o=void 0===t?i:a(t),g=!y||!y(e);if(s(e),l&&(e=f(e,{transfer:[e]}),i===o&&(n||g)))return e;if(i>=o&&(!n||g))r=v(e,0,o);else{var m=n&&!g&&b?{maxByteLength:b(e)}:void 0;r=new d(o,m);for(var E=new h(e),S=new h(r),x=p(o,i),k=0;k<x;k++)w(S,k,_(E,k))}return l||c(e),r}},function(e,t,n){"use strict";var r,i,o,a,s=n(11),u=n(406),c=n(314),l=s.structuredClone,f=s.ArrayBuffer,d=s.MessageChannel,h=!1;if(c)h=function(e){l(e,{transfer:[e]})};else if(f)try{d||(r=u("worker_threads"))&&(d=r.MessageChannel),d&&(i=new d,o=new f(2),a=function(e){i.port1.postMessage(null,[e])},2===o.byteLength&&(a(o),0===o.byteLength&&(h=a)))}catch(e){}e.exports=h},function(e,t,n){"use strict";var r=n(11),i=n(183);e.exports=function(e){if(i){try{return r.process.getBuiltinModule(e)}catch(e){}try{return Function('return require("'+e+'")')()}catch(e){}}}},function(e,t,n){"use strict";var r=n(2),i=n(404);i&&r({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return i(this,arguments.length?arguments[0]:void 0,!1)}})},function(e,t,n){"use strict";var r=n(2),i=n(15),o=n(18),a=n(19),s=n(86),u=n(35),c=n(114),l=n(45),f=n(17),d=n(34),h=n(409),p=o("SuppressedError"),g=ReferenceError,m=f("dispose"),v=f("toStringTag"),y=d.set,b=d.getterFor("DisposableStack"),_="sync-dispose",w=function(e){var t=b(e);if("disposed"===t.state)throw new g("DisposableStack already disposed");return t},E=function(){y(s(this,S),{type:"DisposableStack",state:"pending",stack:[]}),i||(this.disposed=!1)},S=E.prototype;c(S,{dispose:function(){var e=b(this);if("disposed"!==e.state){e.state="disposed",i||(this.disposed=!0);for(var t,n=e.stack,r=n.length,o=!1;r;){var a=n[--r];n[r]=null;try{a()}catch(e){o?t=new p(e,t):(o=!0,t=e)}}if(e.stack=null,o)throw t}},use:function(e){return h(w(this),e,_),e},adopt:function(e,t){var n=w(this);return a(t),h(n,void 0,_,(function(){t(e)})),e},defer:function(e){var t=w(this);a(e),h(t,void 0,_,e)},move:function(){var e=w(this),t=new E;return b(t).stack=e.stack,e.stack=[],e.state="disposed",i||(this.disposed=!0),t}}),i&&l(S,"disposed",{configurable:!0,get:function(){return"disposed"===b(this).state}}),u(S,m,S.dispose,{name:"dispose"}),u(S,v,"DisposableStack",{nonWritable:!0}),r({global:!0,constructor:!0},{DisposableStack:E})},function(e,t,n){"use strict";var r=n(18),i=n(8),o=n(4),a=n(37),s=n(10),u=n(19),c=n(99),l=n(54),f=n(17),d=f("asyncDispose"),h=f("dispose"),p=o([].push),g=function(e,t){if("async-dispose"===t){var n=l(e,d);return void 0!==n||void 0===(n=l(e,h))?n:function(){var e=this;return new(r("Promise"))((function(t){i(n,e),t(void 0)}))}}return l(e,h)},m=function(e,t,n){return arguments.length<3&&!c(e)&&(n=u(g(s(e),t))),void 0===n?function(){}:a(n,e)};e.exports=function(e,t,n,r){var i;if(arguments.length<4){if(c(t)&&"sync-dispose"===n)return;i=m(t,n)}else i=m(void 0,n,r);p(e.stack,i)}},function(e,t,n){"use strict";var r=n(4),i=n(19),o=n(16),a=n(24),s=n(101),u=n(202),c=Function,l=r([].concat),f=r([].join),d={},h=function(e,t,n){if(!a(d,t)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";d[t]=c("C,a","return new C("+f(r,",")+")")}return d[t](e,n)};e.exports=u?c.bind:function(e){var t=i(this),n=t.prototype,r=s(arguments,1),a=function(){var n=l(r,s(arguments));return this instanceof a?h(t,n.length,n):t.apply(e,n)};return o(n)&&(a.prototype=n),a}},function(e,t,n){"use strict";var r=n(2),i=n(11);r({global:!0,forced:i.globalThis!==i},{globalThis:i})},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(86),a=n(10),s=n(23),u=n(63),c=n(45),l=n(112),f=n(7),d=n(24),h=n(17),p=n(162).IteratorPrototype,g=n(15),m=n(31),v=h("toStringTag"),y=TypeError,b=i.Iterator,_=m||!s(b)||b.prototype!==p||!f((function(){b({})})),w=function(){if(o(this,p),u(this)===p)throw new y("Abstract class Iterator not directly constructable")},E=function(e,t){g?c(p,e,{configurable:!0,get:function(){return t},set:function(t){if(a(this),this===p)throw new y("You can't redefine this property");d(this,e)?this[e]=t:l(this,e,t)}}):p[e]=t};d(p,v)||E(v,"Iterator"),!_&&d(p,"constructor")&&p.constructor!==Object||E("constructor",w),w.prototype=p,r({global:!0,constructor:!0,forced:_},{Iterator:w})},function(e,t,n){"use strict";var r=n(8),i=n(35),o=n(54),a=n(24),s=n(17),u=n(162).IteratorPrototype,c=s("dispose");a(u,c)||i(u,c,(function(){var e=o(this,"return");e&&r(e,this)}))},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(10),a=n(41),s=n(243),u=n(211),c=n(57),l=n(124),f=n(245),d=n(125),h=n(31),p=!h&&!f("drop",0),g=!h&&!p&&d("drop",RangeError),m=h||p||g,v=l((function(){for(var e,t=this.iterator,n=this.next;this.remaining;)if(this.remaining--,e=o(i(n,t)),this.done=!!e.done)return;if(e=o(i(n,t)),!(this.done=!!e.done))return e.value}));r({target:"Iterator",proto:!0,real:!0,forced:m},{drop:function(e){var t;o(this);try{t=u(s(+e))}catch(e){c(this,"throw",e)}return g?i(g,this,t):new v(a(this),{remaining:t})}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(51),a=n(19),s=n(10),u=n(41),c=n(57),l=n(125)("every",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:l},{every:function(e){s(this);try{a(e)}catch(e){c(this,"throw",e)}if(l)return i(l,this,e);var t=u(this),n=0;return!o(t,(function(t,r){if(!e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(19),a=n(10),s=n(41),u=n(124),c=n(307),l=n(31),f=n(57),d=n(245),h=n(125),p=!l&&!d("filter",(function(){})),g=!l&&!p&&h("filter",TypeError),m=l||p||g,v=u((function(){for(var e,t,n=this.iterator,r=this.predicate,o=this.next;;){if(e=a(i(o,n)),this.done=!!e.done)return;if(t=e.value,c(n,r,[t,this.counter++],!0))return t}}));r({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function(e){a(this);try{o(e)}catch(e){f(this,"throw",e)}return g?i(g,this,e):new v(s(this),{predicate:e})}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(51),a=n(19),s=n(10),u=n(41),c=n(57),l=n(125)("find",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:l},{find:function(e){s(this);try{a(e)}catch(e){c(this,"throw",e)}if(l)return i(l,this,e);var t=u(this),n=0;return o(t,(function(t,r){if(e(t,n++))return r(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(19),a=n(10),s=n(41),u=n(246),c=n(124),l=n(57),f=n(31),d=n(245),h=n(125),p=!f&&!d("flatMap",(function(){})),g=!f&&!p&&h("flatMap",TypeError),m=f||p||g,v=c((function(){for(var e,t,n=this.iterator,r=this.mapper;;){if(t=this.inner)try{if(!(e=a(i(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){l(n,"throw",e)}if(e=a(i(this.next,n)),this.done=!!e.done)return;try{this.inner=u(r(e.value,this.counter++),!1)}catch(e){l(n,"throw",e)}}}));r({target:"Iterator",proto:!0,real:!0,forced:m},{flatMap:function(e){a(this);try{o(e)}catch(e){l(this,"throw",e)}return g?i(g,this,e):new v(s(this),{mapper:e,inner:null})}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(51),a=n(19),s=n(10),u=n(41),c=n(57),l=n(125)("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:l},{forEach:function(e){s(this);try{a(e)}catch(e){c(this,"throw",e)}if(l)return i(l,this,e);var t=u(this),n=0;o(t,(function(t){e(t,n++)}),{IS_RECORD:!0})}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(27),a=n(79),s=n(162).IteratorPrototype,u=n(124),c=n(246),l=n(31)||function(){try{Iterator.from({return:null}).return()}catch(e){return!0}}(),f=u((function(){return i(this.next,this.iterator)}),!0);r({target:"Iterator",stat:!0,forced:l},{from:function(e){var t=c("string"==typeof e?o(e):e,!0);return a(s,t.iterator)?t.iterator:new f(t)}})},function(e,t,n){"use strict";var r=n(2),i=n(51),o=n(19),a=n(10),s=n(41),u=n(57),c=n(125),l=n(80),f=n(7),d=TypeError,h=f((function(){[].keys().reduce((function(){}),void 0)})),p=!h&&c("reduce",d);r({target:"Iterator",proto:!0,real:!0,forced:h||p},{reduce:function(e){a(this);try{o(e)}catch(e){u(this,"throw",e)}var t=arguments.length<2,n=t?void 0:arguments[1];if(p)return l(p,this,t?[e]:[e,n]);var r=s(this),c=0;if(i(r,(function(r){t?(t=!1,n=r):n=e(n,r,c),c++}),{IS_RECORD:!0}),t)throw new d("Reduce of empty iterator with no initial value");return n}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(51),a=n(19),s=n(10),u=n(41),c=n(57),l=n(125)("some",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:l},{some:function(e){s(this);try{a(e)}catch(e){c(this,"throw",e)}if(l)return i(l,this,e);var t=u(this),n=0;return o(t,(function(t,r){if(e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(10),a=n(41),s=n(243),u=n(211),c=n(124),l=n(57),f=n(125),d=n(31),h=!d&&f("take",RangeError),p=c((function(){var e=this.iterator;if(!this.remaining--)return this.done=!0,l(e,"normal",void 0);var t=o(i(this.next,e));return(this.done=!!t.done)?void 0:t.value}));r({target:"Iterator",proto:!0,real:!0,forced:d||h},{take:function(e){var t;o(this);try{t=u(s(+e))}catch(e){l(this,"throw",e)}return h?i(h,this,t):new p(a(this),{remaining:t})}})},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(51),a=n(41),s=[].push;r({target:"Iterator",proto:!0,real:!0},{toArray:function(){var e=[];return o(a(i(this)),s,{that:e,IS_RECORD:!0}),e}})},function(e,t,n){"use strict";var r=n(55),i=n(45),o=n(114),a=n(37),s=n(86),u=n(99),c=n(51),l=n(308),f=n(65),d=n(163),h=n(15),p=n(164).fastKey,g=n(34),m=g.set,v=g.getterFor;e.exports={getConstructor:function(e,t,n,l){var f=e((function(e,i){s(e,d),m(e,{type:t,index:r(null),first:null,last:null,size:0}),h||(e.size=0),u(i)||c(i,e[l],{that:e,AS_ENTRIES:n})})),d=f.prototype,g=v(t),y=function(e,t,n){var r,i,o=g(e),a=b(e,t);return a?a.value=n:(o.last=a={index:i=p(t,!0),key:t,value:n,previous:r=o.last,next:null,removed:!1},o.first||(o.first=a),r&&(r.next=a),h?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},b=function(e,t){var n,r=g(e),i=p(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key===t)return n};return o(d,{clear:function(){for(var e=g(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=r(null),h?e.size=0:this.size=0},delete:function(e){var t=g(this),n=b(this,e);if(n){var r=n.next,i=n.previous;delete t.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),t.first===n&&(t.first=r),t.last===n&&(t.last=i),h?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=g(this),r=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),o(d,n?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),h&&i(d,"size",{configurable:!0,get:function(){return g(this).size}}),f},setStrong:function(e,t,n){var r=t+" Iterator",i=v(t),o=v(r);l(e,t,(function(e,t){m(this,{type:r,target:e,state:i(e),kind:t,last:null})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?f("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=null,f(void 0,!0))}),n?"entries":"values",!n,!0),d(t)}}},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(19),a=n(42),s=n(51),u=n(66),c=n(31),l=n(7),f=u.Map,d=u.has,h=u.get,p=u.set,g=i([].push),m=c||l((function(){return 1!==f.groupBy("ab",(function(e){return e})).get("a").length}));r({target:"Map",stat:!0,forced:c||m},{groupBy:function(e,t){a(e),o(t);var n=new f,r=0;return s(e,(function(e){var i=t(e,r++);d(n,i)?g(h(n,i),e):p(n,i,[e])})),n}})},function(e,t,n){"use strict";var r=Math.log;e.exports=Math.log1p||function(e){var t=+e;return t>-1e-8&&t<1e-8?t-t*t/2:r(1+t)}},function(e,t,n){"use strict";var r=n(2),i=n(394);r({target:"Math",stat:!0},{f16round:function(e){return i(e,.0009765625,65504,6103515625e-14)}})},function(e,t,n){"use strict";var r=Math.log,i=Math.LOG10E;e.exports=Math.log10||function(e){return r(e)*i}},function(e,t,n){"use strict";var r=n(11).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},function(e,t,n){"use strict";var r=n(11),i=n(7),o=n(4),a=n(22),s=n(184).trim,u=n(185),c=o("".charAt),l=r.parseFloat,f=r.Symbol,d=f&&f.iterator,h=1/l(u+"-0")!=-1/0||d&&!i((function(){l(Object(d))}));e.exports=h?function(e){var t=s(a(e)),n=l(t);return 0===n&&"-"===c(t,0)?-0:n}:l},function(e,t,n){"use strict";var r=n(11),i=n(7),o=n(4),a=n(22),s=n(184).trim,u=n(185),c=r.parseInt,l=r.Symbol,f=l&&l.iterator,d=/^[+-]?0x/i,h=o(d.exec),p=8!==c(u+"08")||22!==c(u+"0x16")||f&&!i((function(){c(Object(f))}));e.exports=p?function(e,t){var n=s(a(e));return c(n,t>>>0||(h(d,n)?16:10))}:c},function(e,t,n){"use strict";var r=n(15),i=n(4),o=n(8),a=n(7),s=n(180),u=n(230),c=n(203),l=n(27),f=n(139),d=Object.assign,h=Object.defineProperty,p=i([].concat);e.exports=!d||a((function(){if(r&&1!==d({b:1},d(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection");return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!==d({},e)[n]||"abcdefghijklmnopqrst"!==s(d({},t)).join("")}))?function(e,t){for(var n=l(e),i=arguments.length,a=1,d=u.f,h=c.f;i>a;)for(var g,m=f(arguments[a++]),v=d?p(s(m),d(m)):s(m),y=v.length,b=0;y>b;)g=v[b++],r&&!o(h,m,g)||(n[g]=m[g]);return n}:d},function(e,t,n){"use strict";var r=n(15),i=n(7),o=n(4),a=n(63),s=n(180),u=n(61),c=o(n(203).f),l=o([].push),f=r&&i((function(){var e=Object.create(null);return e[2]=2,!c(e,2)})),d=function(e){return function(t){for(var n,i=u(t),o=s(i),d=f&&null===a(i),h=o.length,p=0,g=[];h>p;)n=o[p++],r&&!(d?n in i:c(i,n))||l(g,e?[n,i[n]]:i[n]);return g}};e.exports={entries:d(!0),values:d(!1)}},function(e,t,n){"use strict";var r=n(2),i=n(18),o=n(4),a=n(19),s=n(42),u=n(131),c=n(51),l=n(7),f=Object.groupBy,d=i("Object","create"),h=o([].push);r({target:"Object",stat:!0,forced:!f||l((function(){return 1!==f("ab",(function(e){return e})).a.length}))},{groupBy:function(e,t){s(e),a(t);var n=d(null),r=0;return c(e,(function(e){var i=u(t(e,r++));i in n?h(n[i],e):n[i]=[e]})),n}})},function(e,t,n){"use strict";n(2)({target:"Object",stat:!0},{hasOwn:n(24)})},function(e,t,n){"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var r=n(120);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},function(e,t,n){"use strict";var r,i,o,a,s,u=n(11),c=n(440),l=n(37),f=n(252).set,d=n(441),h=n(438),p=n(714),g=n(715),m=n(183),v=u.MutationObserver||u.WebKitMutationObserver,y=u.document,b=u.process,_=u.Promise,w=c("queueMicrotask");if(!w){var E=new d,S=function(){var e,t;for(m&&(e=b.domain)&&e.exit();t=E.get();)try{t()}catch(e){throw E.head&&r(),e}e&&e.enter()};h||m||g||!v||!y?!p&&_&&_.resolve?((a=_.resolve(void 0)).constructor=_,s=l(a.then,a),r=function(){s(S)}):m?r=function(){b.nextTick(S)}:(f=l(f,u),r=function(){f(S)}):(i=!0,o=y.createTextNode(""),new v(S).observe(o,{characterData:!0}),r=function(){o.data=i=!i}),w=function(e){E.head||r(),E.add(e)}}e.exports=w},function(e,t,n){"use strict";var r=n(11),i=n(15),o=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!i)return r[e];var t=o(r,e);return t&&t.value}},function(e,t,n){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=r},function(e,t,n){"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},function(e,t,n){"use strict";var r=n(10),i=n(16),o=n(133);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(19),a=n(133),s=n(165),u=n(51);r({target:"Promise",stat:!0,forced:n(253)},{allSettled:function(e){var t=this,n=a.f(t),r=n.resolve,c=n.reject,l=s((function(){var n=o(t.resolve),a=[],s=0,c=1;u(e,(function(e){var o=s++,u=!1;c++,i(n,t,e).then((function(e){u||(u=!0,a[o]={status:"fulfilled",value:e},--c||r(a))}),(function(e){u||(u=!0,a[o]={status:"rejected",reason:e},--c||r(a))}))})),--c||r(a)}));return l.error&&c(l.value),n.promise}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(19),a=n(18),s=n(133),u=n(165),c=n(51),l=n(253);r({target:"Promise",stat:!0,forced:l},{any:function(e){var t=this,n=a("AggregateError"),r=s.f(t),l=r.resolve,f=r.reject,d=u((function(){var r=o(t.resolve),a=[],s=0,u=1,d=!1;c(e,(function(e){var o=s++,c=!1;u++,i(r,t,e).then((function(e){c||d||(d=!0,l(e))}),(function(e){c||d||(c=!0,a[o]=e,--u||f(new n(a,"No one promise resolved")))}))})),--u||f(new n(a,"No one promise resolved"))}));return d.error&&f(d.value),r.promise}})},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(80),a=n(101),s=n(133),u=n(19),c=n(165),l=i.Promise,f=!1;r({target:"Promise",stat:!0,forced:!l||!l.try||c((function(){l.try((function(e){f=8===e}),8)})).error||!f},{try:function(e){var t=arguments.length>1?a(arguments,1):[],n=s.f(this),r=c((function(){return o(u(e),void 0,t)}));return(r.error?n.reject:n.resolve)(r.value),n.promise}})},function(e,t,n){"use strict";var r=n(2),i=n(133);r({target:"Promise",stat:!0},{withResolvers:function(){var e=i.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})},function(e,t,n){"use strict";var r=n(2),i=n(449),o=n(7),a=Array.fromAsync;r({target:"Array",stat:!0,forced:!a||o((function(){var e=0;return a.call((function(){return e++,[]}),{length:0}),1!==e}))},{fromAsync:i})},function(e,t,n){"use strict";var r=n(37),i=n(4),o=n(27),a=n(123),s=n(722),u=n(142),c=n(41),l=n(132),f=n(54),d=n(18),h=n(390),p=n(17),g=n(254),m=n(187).toArray,v=p("asyncIterator"),y=i(h("Array","values")),b=i(y([]).next),_=function(){return new w(this)},w=function(e){this.iterator=y(e)};w.prototype.next=function(){return b(this.iterator)},e.exports=function(e){var t=this,n=arguments.length,i=n>1?arguments[1]:void 0,h=n>2?arguments[2]:void 0;return new(d("Promise"))((function(n){var d=o(e);void 0!==i&&(i=r(i,h));var p=f(d,v),y=p?void 0:l(d)||_,b=a(t)?new t:[],w=p?s(d,p):new g(c(u(d,y)));n(m(w,i,b))}))}},function(e,t,n){"use strict";var r=n(2),i=n(15),o=n(18),a=n(19),s=n(86),u=n(35),c=n(114),l=n(45),f=n(17),d=n(34),h=n(409),p=n(119),g=o("Promise"),m=o("SuppressedError"),v=ReferenceError,y=f("asyncDispose"),b=f("toStringTag"),_=d.set,w=d.getterFor("AsyncDisposableStack"),E="async-dispose",S=function(e){var t=w(e);if("disposed"===t.state)throw new v("AsyncDisposableStack already disposed");return t},x=function(){_(s(this,k),{type:"AsyncDisposableStack",state:"pending",stack:[]}),i||(this.disposed=!1)},k=x.prototype;c(k,{disposeAsync:function(){var e=this;return new g((function(t,n){var r=w(e);if("disposed"===r.state)return t(void 0);r.state="disposed",i||(e.disposed=!0);var o,a=r.stack,s=a.length,u=!1,c=function(e){u?o=new m(e,o):(u=!0,o=e),l()},l=function(){if(s){var e=a[--s];a[s]=null;try{g.resolve(e()).then(l,c)}catch(e){c(e)}}else r.stack=null,u?n(o):t(void 0)};l()}))},use:function(e){return h(S(this),e,E),e},adopt:function(e,t){var n=S(this);return a(t),h(n,void 0,E,(function(){return t(e)})),e},defer:function(e){var t=S(this);a(e),h(t,void 0,E,e)},move:function(){var e=S(this),t=new x;return w(t).stack=e.stack,e.stack=[],e.state="disposed",i||(this.disposed=!0),t}}),i&&l(k,"disposed",{configurable:!0,get:function(){return"disposed"===w(this).state}}),u(k,y,k.disposeAsync,{name:"disposeAsync"}),u(k,b,"AsyncDisposableStack",{nonWritable:!0}),r({global:!0,constructor:!0,forced:p&&p<136},{AsyncDisposableStack:x})},function(e,t,n){"use strict";var r=n(8),i=n(35),o=n(18),a=n(54),s=n(24),u=n(17),c=n(214),l=u("asyncDispose"),f=o("Promise");s(c,l)||i(c,l,(function(){var e=this;return new f((function(t,n){var i=a(e,"return");i?f.resolve(r(i,e)).then((function(){t(void 0)}),n):t(void 0)}))}))},function(e,t,n){"use strict";var r=n(24);e.exports=function(e){return void 0!==e&&(r(e,"value")||r(e,"writable"))}},function(e,t,n){"use strict";var r=n(11),i=n(7),o=r.RegExp,a=!i((function(){var e=!0;try{o(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(a.hasIndices="d"),a)i(s,a[s]);return Object.getOwnPropertyDescriptor(o.prototype,"flags").get.call(t)!==r||n!==r}));e.exports={correct:a}},function(e,t,n){"use strict";var r=n(7),i=n(11).RegExp;e.exports=r((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(257),a=n(24),s=n(241).start,u=n(185),c=Array,l=RegExp.escape,f=i("".charAt),d=i("".charCodeAt),h=i(1.1.toString),p=i([].join),g=/^[0-9a-z]/i,m=/^[$()*+./?[\\\]^{|}]/,v=RegExp("^[!\"#%&',\\-:;<=>@`~"+u+"]"),y=i(g.exec),b={"\t":"t","\n":"n","\v":"v","\f":"f","\r":"r"},_=function(e){var t=h(d(e,0),16);return t.length<3?"\\x"+s(t,2,"0"):"\\u"+s(t,4,"0")};r({target:"RegExp",stat:!0,forced:!l||"\\x61b"!==l("ab")},{escape:function(e){o(e);for(var t=e.length,n=c(t),r=0;r<t;r++){var i=f(e,r);if(0===r&&y(g,i))n[r]=_(i);else if(a(b,i))n[r]="\\"+b[i];else if(y(m,i))n[r]="\\"+i;else if(y(v,i))n[r]=_(i);else{var s=d(i,0);55296!=(63488&s)?n[r]=i:s>=56320||r+1>=t||56320!=(64512&d(e,r+1))?n[r]=_(i):(n[r]=i,n[++r]=f(e,r))}}return p(n,"")}})},function(e,t,n){"use strict";var r=n(2),i=n(457),o=n(7);r({target:"Set",proto:!0,real:!0,forced:!n(168)("difference",(function(e){return 0===e.size}))||o((function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var n=e++>1;return t.has(1)&&t.clear(),{done:n,value:2}}}}},t=new Set([1,2,3,4]);return 3!==t.difference(e).size}))},{difference:i})},function(e,t,n){"use strict";var r=n(81),i=n(74),o=n(324),a=n(216),s=n(167),u=n(102),c=n(145),l=i.has,f=i.remove;e.exports=function(e){var t=r(this),n=s(e),i=o(t);return a(t)<=n.size?u(t,(function(e){n.includes(e)&&f(i,e)})):c(n.getIterator(),(function(e){l(i,e)&&f(i,e)})),i}},function(e,t,n){"use strict";var r=n(2),i=n(7),o=n(459);r({target:"Set",proto:!0,real:!0,forced:!n(168)("intersection",(function(e){return 2===e.size&&e.has(1)&&e.has(2)}))||i((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:o})},function(e,t,n){"use strict";var r=n(81),i=n(74),o=n(216),a=n(167),s=n(102),u=n(145),c=i.Set,l=i.add,f=i.has;e.exports=function(e){var t=r(this),n=a(e),i=new c;return o(t)>n.size?u(n.getIterator(),(function(e){f(t,e)&&l(i,e)})):s(t,(function(e){n.includes(e)&&l(i,e)})),i}},function(e,t,n){"use strict";var r=n(2),i=n(461);r({target:"Set",proto:!0,real:!0,forced:!n(168)("isDisjointFrom",(function(e){return!e}))},{isDisjointFrom:i})},function(e,t,n){"use strict";var r=n(81),i=n(74).has,o=n(216),a=n(167),s=n(102),u=n(145),c=n(57);e.exports=function(e){var t=r(this),n=a(e);if(o(t)<=n.size)return!1!==s(t,(function(e){if(n.includes(e))return!1}),!0);var l=n.getIterator();return!1!==u(l,(function(e){if(i(t,e))return c(l,"normal",!1)}))}},function(e,t,n){"use strict";var r=n(2),i=n(463);r({target:"Set",proto:!0,real:!0,forced:!n(168)("isSubsetOf",(function(e){return e}))},{isSubsetOf:i})},function(e,t,n){"use strict";var r=n(81),i=n(216),o=n(102),a=n(167);e.exports=function(e){var t=r(this),n=a(e);return!(i(t)>n.size)&&!1!==o(t,(function(e){if(!n.includes(e))return!1}),!0)}},function(e,t,n){"use strict";var r=n(2),i=n(465);r({target:"Set",proto:!0,real:!0,forced:!n(168)("isSupersetOf",(function(e){return!e}))},{isSupersetOf:i})},function(e,t,n){"use strict";var r=n(81),i=n(74).has,o=n(216),a=n(167),s=n(145),u=n(57);e.exports=function(e){var t=r(this),n=a(e);if(o(t)<n.size)return!1;var c=n.getIterator();return!1!==s(c,(function(e){if(!i(t,e))return u(c,"normal",!1)}))}},function(e,t,n){"use strict";var r=n(2),i=n(467),o=n(468);r({target:"Set",proto:!0,real:!0,forced:!n(168)("symmetricDifference")||!o("symmetricDifference")},{symmetricDifference:i})},function(e,t,n){"use strict";var r=n(81),i=n(74),o=n(324),a=n(167),s=n(145),u=i.add,c=i.has,l=i.remove;e.exports=function(e){var t=r(this),n=a(e).getIterator(),i=o(t);return s(n,(function(e){c(t,e)?l(i,e):u(i,e)})),i}},function(e,t,n){"use strict";e.exports=function(e){try{var t=new Set,n={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},r=t[e](n);return 1===r.size&&4===r.values().next().value}catch(e){return!1}}},function(e,t,n){"use strict";var r=n(2),i=n(470),o=n(468);r({target:"Set",proto:!0,real:!0,forced:!n(168)("union")||!o("union")},{union:i})},function(e,t,n){"use strict";var r=n(81),i=n(74).add,o=n(324),a=n(167),s=n(145);e.exports=function(e){var t=r(this),n=a(e).getIterator(),u=o(t);return s(n,(function(e){i(u,e)})),u}},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(121),a=RangeError,s=String.fromCharCode,u=String.fromCodePoint,c=i([].join);r({target:"String",stat:!0,arity:1,forced:!!u&&1!==u.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,i=0;r>i;){if(t=+arguments[i++],o(t,1114111)!==t)throw new a(t+" is not a valid code point");n[i]=t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320)}return c(n,"")}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(42),a=n(22),s=i("".charCodeAt);r({target:"String",proto:!0},{isWellFormed:function(){for(var e=a(o(this)),t=e.length,n=0;n<t;n++){var r=s(e,n);if(55296==(63488&r)&&(r>=56320||++n>=t||56320!=(64512&s(e,n))))return!1}return!0}})},function(e,t,n){"use strict";var r=n(188).charAt,i=n(22),o=n(34),a=n(308),s=n(65),u=o.set,c=o.getterFor("String Iterator");a(String,"String",(function(e){u(this,{type:"String Iterator",string:i(e),index:0})}),(function(){var e,t=c(this),n=t.string,i=t.index;return i>=n.length?s(void 0,!0):(e=r(n,i),t.index+=e.length,s(e,!1))}))},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(158),a=n(161),s=n(65),u=n(42),c=n(100),l=n(22),f=n(10),d=n(16),h=n(78),p=n(255),g=n(166),m=n(54),v=n(35),y=n(7),b=n(17),_=n(250),w=n(259),E=n(217),S=n(34),x=n(31),k=b("matchAll"),T=S.set,O=S.getterFor("RegExp String Iterator"),P=RegExp.prototype,R=TypeError,A=o("".indexOf),C=o("".matchAll),D=!!C&&!y((function(){C("a",/./)})),L=a((function(e,t,n,r){T(this,{type:"RegExp String Iterator",regexp:e,string:t,global:n,unicode:r,done:!1})}),"RegExp String",(function(){var e=O(this);if(e.done)return s(void 0,!0);var t=e.regexp,n=e.string,r=E(t,n);return null===r?(e.done=!0,s(void 0,!0)):e.global?(""===l(r[0])&&(t.lastIndex=w(n,c(t.lastIndex),e.unicode)),s(r,!1)):(e.done=!0,s(r,!1))})),I=function(e){var t,n,r,i=f(this),o=l(e),a=_(i,RegExp),s=l(g(i));return t=new a(a===RegExp?i.source:i,s),n=!!~A(s,"g"),r=!!~A(s,"u"),t.lastIndex=c(i.lastIndex),new L(t,o,n,r)};r({target:"String",proto:!0,forced:D},{matchAll:function(e){var t,n,r,o,a=u(this);if(d(e)){if(p(e)&&(t=l(u(g(e))),!~A(t,"g")))throw new R("`.matchAll` does not allow non-global regexes");if(D)return C(a,e);if(void 0===(r=m(e,k))&&x&&"RegExp"===h(e)&&(r=I),r)return i(r,e,a)}else if(D)return C(a,e);return n=l(a),o=new RegExp(e,"g"),x?i(I,o,n):o[k](n)}}),x||k in P||v(P,k,I)},function(e,t,n){"use strict";var r=n(120);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},function(e,t,n){"use strict";var r=n(4),i=n(27),o=Math.floor,a=r("".charAt),s=r("".replace),u=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,f,d){var h=n+e.length,p=r.length,g=l;return void 0!==f&&(f=i(f),g=c),s(d,g,(function(i,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,h);case"<":c=f[u(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>p){var d=o(l/10);return 0===d?i:d<=p?void 0===r[d-1]?a(s,1):r[d-1]+a(s,1):i}c=r[l-1]}return void 0===c?"":c}))}},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(4),a=n(42),s=n(23),u=n(16),c=n(255),l=n(22),f=n(54),d=n(166),h=n(476),p=n(17),g=n(31),m=p("replace"),v=TypeError,y=o("".indexOf),b=o("".replace),_=o("".slice),w=Math.max;r({target:"String",proto:!0},{replaceAll:function(e,t){var n,r,o,p,E,S,x,k,T,O,P=a(this),R=0,A="";if(u(e)){if((n=c(e))&&(r=l(a(d(e))),!~y(r,"g")))throw new v("`.replaceAll` does not allow non-global regexes");if(o=f(e,m))return i(o,e,P,t);if(g&&n)return b(l(P),e,t)}for(p=l(P),E=l(e),(S=s(t))||(t=l(t)),x=E.length,k=w(1,x),T=y(p,E);-1!==T;)O=S?l(t(E,T,p)):h(E,p,T,[],void 0,t),A+=_(p,R,T)+O,R=T+x,T=T+k>p.length?-1:y(p,E,T+k);return R<p.length&&(A+=_(p,R)),A}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(4),a=n(42),s=n(22),u=n(7),c=Array,l=o("".charAt),f=o("".charCodeAt),d=o([].join),h="".toWellFormed,p=h&&u((function(){return"1"!==i(h,1)}));r({target:"String",proto:!0,forced:p},{toWellFormed:function(){var e=s(a(this));if(p)return i(h,e);for(var t=e.length,n=c(t),r=0;r<t;r++){var o=f(e,r);55296!=(63488&o)?n[r]=l(e,r):o>=56320||r+1>=t||56320!=(64512&f(e,r+1))?n[r]="�":(n[r]=l(e,r),n[++r]=l(e,r))}return d(n,"")}})},function(e,t,n){"use strict";var r=n(184).end,i=n(327);e.exports=i("trimEnd")?function(){return r(this)}:"".trimEnd},function(e,t,n){"use strict";var r=n(184).start,i=n(327);e.exports=i("trimStart")?function(){return r(this)}:"".trimStart},function(e,t,n){"use strict";var r=n(211),i=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw new i("Wrong offset");return n}},function(e,t,n){"use strict";var r=Math.round;e.exports=function(e){var t=r(e);return t<0?0:t>255?255:255&t}},function(e,t,n){"use strict";var r=n(37),i=n(8),o=n(251),a=n(27),s=n(28),u=n(142),c=n(132),l=n(305),f=n(329),d=n(26).aTypedArrayConstructor,h=n(260);e.exports=function(e){var t,n,p,g,m,v,y,b,_=o(this),w=a(e),E=arguments.length,S=E>1?arguments[1]:void 0,x=void 0!==S,k=c(w);if(k&&!l(k))for(b=(y=u(w,k)).next,w=[];!(v=i(b,y)).done;)w.push(v.value);for(x&&E>2&&(S=r(S,arguments[2])),n=s(w),p=new(d(_))(n),g=f(p),t=0;n>t;t++)m=x?S(w[t],t):w[t],p[t]=g?h(m):+m;return p}},function(e,t,n){"use strict";var r=n(26),i=n(28),o=n(44),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("at",(function(e){var t=a(this),n=i(t),r=o(e),s=r>=0?r:n+r;return s<0||s>=n?void 0:t[s]}))},function(e,t,n){"use strict";var r=n(26),i=n(234).findLast,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLast",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(26),i=n(234).findLastIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLastIndex",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(388),i=n(26),o=i.aTypedArray,a=i.exportTypedArrayMethod,s=i.getTypedArrayConstructor;a("toReversed",(function(){return r(o(this),s(this))}))},function(e,t,n){"use strict";var r=n(26),i=n(4),o=n(19),a=n(143),s=r.aTypedArray,u=r.getTypedArrayConstructor,c=r.exportTypedArrayMethod,l=i(r.TypedArrayPrototype.sort);c("toSorted",(function(e){void 0!==e&&o(e);var t=s(this),n=a(u(t),t);return l(n,e)}))},function(e,t,n){"use strict";var r=n(393),i=n(26),o=n(329),a=n(44),s=n(260),u=i.aTypedArray,c=i.getTypedArrayConstructor,l=i.exportTypedArrayMethod,f=function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}(),d=f&&function(){try{new Int8Array(1).with(-.5,1)}catch(e){return!0}}();l("with",{with:function(e,t){var n=u(this),i=a(e),l=o(n)?s(t):+t;return r(n,c(n),i,l)}}.with,!f||d)},function(e,t,n){"use strict";var r=n(4),i=n(114),o=n(164).getWeakData,a=n(86),s=n(10),u=n(99),c=n(16),l=n(51),f=n(56),d=n(24),h=n(34),p=h.set,g=h.getterFor,m=f.find,v=f.findIndex,y=r([].splice),b=0,_=function(e){return e.frozen||(e.frozen=new w)},w=function(){this.entries=[]},E=function(e,t){return m(e.entries,(function(e){return e[0]===t}))};w.prototype={get:function(e){var t=E(this,e);if(t)return t[1]},has:function(e){return!!E(this,e)},set:function(e,t){var n=E(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=v(this.entries,(function(t){return t[0]===e}));return~t&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var f=e((function(e,i){a(e,h),p(e,{type:t,id:b++,frozen:null}),u(i)||l(i,e[r],{that:e,AS_ENTRIES:n})})),h=f.prototype,m=g(t),v=function(e,t,n){var r=m(e),i=o(s(t),!0);return!0===i?_(r).set(t,n):i[r.id]=n,e};return i(h,{delete:function(e){var t=m(this);if(!c(e))return!1;var n=o(e);return!0===n?_(t).delete(e):n&&d(n,t.id)&&delete n[t.id]},has:function(e){var t=m(this);if(!c(e))return!1;var n=o(e);return!0===n?_(t).has(e):n&&d(n,t.id)}}),i(h,n?{get:function(e){var t=m(this);if(c(e)){var n=o(e);if(!0===n)return _(t).get(e);if(n)return n[t.id]}},set:function(e,t){return v(this,e,t)}}:{add:function(e){return v(this,e,!0)}}),f}}},function(e,t,n){"use strict";var r=n(37),i=n(4),o=n(139),a=n(27),s=n(28),u=n(66),c=u.Map,l=u.get,f=u.has,d=u.set,h=i([].push);e.exports=function(e){for(var t,n,i=a(this),u=o(i),p=r(e,arguments.length>1?arguments[1]:void 0),g=new c,m=s(u),v=0;m>v;v++)t=p(n=u[v],v,i),f(g,t)?h(l(g,t),n):d(g,t,[n]);return g}},function(e,t,n){"use strict";var r=n(8),i=n(493),o=function(e,t){return[t,e]};e.exports=function(){return r(i,this,o)}},function(e,t,n){"use strict";var r=n(8),i=n(19),o=n(10),a=n(16),s=n(41),u=n(189),c=n(65),l=n(215),f=u((function(e){var t=this,n=t.iterator,i=t.mapper;return new e((function(s,u){var f=function(e){t.done=!0,u(e)},d=function(e){l(n,f,e,f)};e.resolve(o(r(t.next,n))).then((function(n){try{if(o(n).done)t.done=!0,s(c(void 0,!0));else{var r=n.value;try{var u=i(r,t.counter++),l=function(e){s(c(e,!1))};a(u)?e.resolve(u).then(l,d):l(u)}catch(e){d(e)}}}catch(e){f(e)}}),f)}))}));e.exports=function(e){return o(this),i(e),new f(s(this),{mapper:e})}},function(e,t,n){"use strict";var r=n(8),i=n(23),o=n(10),a=n(41),s=n(132),u=n(54),c=n(17),l=n(254),f=c("asyncIterator");e.exports=function(e){var t,n=o(e),c=!0,d=u(n,f);return i(d)||(d=s(n),c=!1),void 0!==d?t=r(d,n):(t=n,c=!0),o(t),a(c?t:new l(a(t)))}},function(e,t,n){"use strict";var r=n(8),i=n(189);e.exports=i((function(){return r(this.next,this.iterator)}),!0)},function(e,t,n){"use strict";n(316),n(331);var r=n(18),i=n(55),o=n(16),a=Object,s=TypeError,u=r("Map"),c=r("WeakMap"),l=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=i(null)};l.prototype.get=function(e,t){return this[e]||(this[e]=t())},l.prototype.next=function(e,t,n){var r=n?this.objectsByIndex[e]||(this.objectsByIndex[e]=new c):this.primitives||(this.primitives=new u),i=r.get(t);return i||r.set(t,i=new l),i};var f=new l;e.exports=function(){var e,t,n=f,r=arguments.length;for(e=0;e<r;e++)o(t=arguments[e])&&(n=n.next(e,t,!0));if(this===a&&n===f)throw new s("Composite keys must contain a non-primitive component");for(e=0;e<r;e++)o(t=arguments[e])||(n=n.next(e,t,!1));return n}},function(e,t,n){"use strict";var r=n(4),i=n(19);e.exports=function(){return r(i(this))}},function(e,t,n){"use strict";n(315);var r=n(8),i=n(162).IteratorPrototype.map,o=function(e,t){return[t,e]};e.exports=function(){return r(i,this,o)}},function(e,t,n){"use strict";var r=n(10),i=n(8),o=n(124),a=n(65),s=n(41),u=n(57),c=n(4),l=RangeError,f=c([].push),d=c([].slice),h=o((function(){for(var e,t,n=this.iterator,o=this.next,s=this.buffer,u=this.windowSize,c=this.sliding;;){if(e=r(i(o,n)),t=this.done=!!e.done,c&&t&&s.length&&s.length<u)return a(s,!1);if(t)return a(void 0,!0);if(s.length===u&&(this.buffer=s=d(s,1)),f(s,e.value),s.length===u)return a(s,!1)}}),!1,!0);e.exports=function(e,t,n){return r(e),"number"==typeof t&&t&&t>>>0===t?new h(s(e),{windowSize:t,buffer:[],sliding:n}):u(e,"throw",new l("windowSize must be integer in [1, 2^32-1]"))}},function(e,t,n){"use strict";var r=TypeError;e.exports=function(e){var t=e&&e.mode;if(void 0===t||"shortest"===t||"longest"===t||"strict"===t)return t||"shortest";throw new r("Incorrect `mode` option")}},function(e,t,n){"use strict";var r=n(8),i=n(4),o=n(124),a=n(244),s=TypeError,u=i([].slice),c=i([].push),l=o((function(){var e=this.iterCount;if(e){for(var t,n,i=this.openIters,o=this.iters,u=this.padding,l=this.mode,f=this.finishResults,d=[],h=0;h<e;h++){var p=o[h];if(null===p)c(d,u[h]);else{try{n=(t=r(p.next,p.iterator)).done,t=t.value}catch(e){return i[h]=void 0,a(i,"throw",e)}if(n){if(i[h]=void 0,this.openItersCount--,"shortest"===l)return this.done=!0,a(i,"normal",void 0);if("strict"===l){if(h)return a(i,"throw",new s("Iterator is exhausted"));for(var g,m,v=1;v<e;v++){try{m=(g=r(o[v].next,o[v].iterator)).done,g=g.value}catch(e){return i[v]=void 0,a(i,"throw",g)}if(!m)return a(i,"throw",new s("Iterator is exhausted"));i[v]=void 0,this.openItersCount--}return void(this.done=!0)}if(!this.openItersCount)return void(this.done=!0);o[h]=null,t=u[h]}}c(d,t)}return f?f(d):d}this.done=!0}));e.exports=function(e,t,n,r){var i=e.length;return new l({iters:e,iterCount:i,openIters:u(e,0),openItersCount:i,mode:t,padding:n,finishResults:r})}},function(e,t,n){"use strict";var r=n(7);e.exports=!r((function(){var e=JSON.rawJSON("9007199254740993");return!JSON.isRawJSON(e)||"9007199254740993"!==JSON.stringify(e)}))},function(e,t,n){"use strict";var r=n(16),i=n(34).get;e.exports=function(e){if(!r(e))return!1;var t=i(e);return!!t&&"RawJSON"===t.type}},function(e,t,n){"use strict";var r=n(4),i=n(24),o=SyntaxError,a=parseInt,s=String.fromCharCode,u=r("".charAt),c=r("".slice),l=r(/./.exec),f={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},d=/^[\da-f]{4}$/i,h=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var n=!0,r="";t<e.length;){var p=u(e,t);if("\\"===p){var g=c(e,t,t+2);if(i(f,g))r+=f[g],t+=2;else{if("\\u"!==g)throw new o('Unknown escape sequence: "'+g+'"');var m=c(e,t+=2,t+4);if(!l(d,m))throw new o("Bad Unicode escape at: "+t);r+=s(a(m,16)),t+=4}}else{if('"'===p){n=!1,t++;break}if(l(h,p))throw new o("Bad control character in string literal at: "+t);r+=p,t++}}if(n)throw new o("Unterminated string at: "+t);return{value:r,end:t}}},function(e,t,n){"use strict";var r=n(922),i=Math.min,o=Math.max;e.exports=function(e,t,n){return i(o(r(e),r(t)),r(n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){var o=+e,a=+t,s=+n,u=+r,c=+i;return o!=o||a!=a||s!=s||u!=u||c!=c?NaN:o===1/0||o===-1/0?o:(o-a)*(c-u)/(s-a)+u}},function(e,t,n){"use strict";var r=n(4),i=n(61),o=n(22),a=n(28),s=TypeError,u=r([].push),c=r([].join);e.exports=function(e){var t=i(e),n=a(t);if(!n)return"";for(var r=arguments.length,l=[],f=0;;){var d=t[f++];if(void 0===d)throw new s("Incorrect template");if(u(l,o(d)),f===n)return c(l,"");f<r&&u(l,o(arguments[f]))}}},function(e,t,n){"use strict";var r=n(18),i=n(4),o=r("Symbol"),a=o.keyFor,s=i(o.prototype.valueOf);e.exports=o.isRegisteredSymbol||function(e){try{return void 0!==a(s(e))}catch(e){return!1}}},function(e,t,n){"use strict";for(var r=n(141),i=n(18),o=n(4),a=n(140),s=n(17),u=i("Symbol"),c=u.isWellKnownSymbol,l=i("Object","getOwnPropertyNames"),f=o(u.prototype.valueOf),d=r("wks"),h=0,p=l(u),g=p.length;h<g;h++)try{var m=p[h];a(u[m])&&s(m)}catch(e){}e.exports=function(e){if(c&&c(e))return!0;try{for(var t=f(e),n=0,r=l(d),i=r.length;n<i;n++)if(d[r[n]]==t)return!0}catch(e){}return!1}},function(e,t,n){"use strict";var r=n(11),i=n(4),o=n(261),a=n(257),s=n(24),u=n(264),c=n(511),l=n(210),f=u.c2i,d=u.c2iUrl,h=r.SyntaxError,p=r.TypeError,g=i("".charAt),m=function(e,t){for(var n=e.length;t<n;t++){var r=g(e,t);if(" "!==r&&"\t"!==r&&"\n"!==r&&"\f"!==r&&"\r"!==r)break}return t},v=function(e,t,n){var r=e.length;r<4&&(e+=2===r?"AA":"A");var i=(t[g(e,0)]<<18)+(t[g(e,1)]<<12)+(t[g(e,2)]<<6)+t[g(e,3)],o=[i>>16&255,i>>8&255,255&i];if(2===r){if(n&&0!==o[1])throw new h("Extra bits");return[o[0]]}if(3===r){if(n&&0!==o[2])throw new h("Extra bits");return[o[0],o[1]]}return o},y=function(e,t,n){for(var r=t.length,i=0;i<r;i++)e[n+i]=t[i];return n+r};e.exports=function(e,t,n,r){a(e),o(t);var i="base64"===c(t)?f:d,u=t?t.lastChunkHandling:void 0;if(void 0===u&&(u="loose"),"loose"!==u&&"strict"!==u&&"stop-before-partial"!==u)throw new p("Incorrect `lastChunkHandling` option");n&&l(n.buffer);var b=n||[],_=0,w=0,E="",S=0;if(r)for(;;){if((S=m(e,S))===e.length){if(E.length>0){if("stop-before-partial"===u)break;if("loose"!==u)throw new h("Missing padding");if(1===E.length)throw new h("Malformed padding: exactly one additional character");_=y(b,v(E,i,!1),_)}w=e.length;break}var x=g(e,S);if(++S,"="===x){if(E.length<2)throw new h("Padding is too early");if(S=m(e,S),2===E.length){if(S===e.length){if("stop-before-partial"===u)break;throw new h("Malformed padding: only one =")}"="===g(e,S)&&(++S,S=m(e,S))}if(S<e.length)throw new h("Unexpected character after padding");_=y(b,v(E,i,"strict"===u),_),w=e.length;break}if(!s(i,x))throw new h("Unexpected character");var k=r-_;if(1===k&&2===E.length||2===k&&3===E.length)break;if(4===(E+=x).length&&(_=y(b,v(E,i,!1),_),E="",w=S,_===r))break}return{bytes:b,read:w,written:_}}},function(e,t,n){"use strict";var r=TypeError;e.exports=function(e){var t=e&&e.alphabet;if(void 0===t||"base64"===t||"base64url"===t)return t||"base64";throw new r("Incorrect `alphabet` option")}},function(e,t,n){"use strict";var r=n(11),i=n(4),o=r.Uint8Array,a=r.SyntaxError,s=r.parseInt,u=Math.min,c=/[^\da-f]/i,l=i(c.exec),f=i("".slice);e.exports=function(e,t){var n=e.length;if(n%2!=0)throw new a("String should be an even number of characters");for(var r=t?u(t.length,n/2):n/2,i=t||new o(r),d=0,h=0;h<r;){var p=f(e,d,d+=2);if(l(c,p))throw new a("String should only contain hex characters");i[h++]=s(p,16)}return{bytes:i,read:d}}},function(e,t,n){"use strict";var r=n(218).has;e.exports=function(e){return r(e),e}},function(e,t,n){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){"use strict";var r=n(226)("span").classList,i=r&&r.constructor&&r.constructor.prototype;e.exports=i===Object.prototype?void 0:i},function(e,t,n){"use strict";e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},function(e,t,n){"use strict";n(236),n(471);var r=n(2),i=n(11),o=n(440),a=n(18),s=n(8),u=n(4),c=n(15),l=n(267),f=n(35),d=n(45),h=n(114),p=n(91),g=n(161),m=n(34),v=n(86),y=n(23),b=n(24),_=n(37),w=n(90),E=n(10),S=n(16),x=n(22),k=n(55),T=n(98),O=n(142),P=n(132),R=n(65),A=n(106),C=n(17),D=n(310),L=C("iterator"),I=m.set,M=m.getterFor("URLSearchParams"),j=m.getterFor("URLSearchParamsIterator"),N=o("fetch"),F=o("Request"),U=o("Headers"),B=F&&F.prototype,q=U&&U.prototype,V=i.TypeError,$=i.encodeURIComponent,z=String.fromCharCode,G=a("String","fromCodePoint"),W=parseInt,H=u("".charAt),K=u([].join),Y=u([].push),Q=u("".replace),X=u([].shift),J=u([].splice),Z=u("".split),ee=u("".slice),te=u(/./.exec),ne=/\+/g,re=/^[0-9a-f]+$/i,ie=function(e,t){var n=ee(e,t,t+2);return te(re,n)?W(n,16):NaN},oe=function(e){for(var t=0,n=128;n>0&&0!=(e&n);n>>=1)t++;return t},ae=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},se=function(e){for(var t=(e=Q(e,ne," ")).length,n="",r=0;r<t;){var i=H(e,r);if("%"===i){if("%"===H(e,r+1)||r+3>t){n+="%",r++;continue}var o=ie(e,r+1);if(o!=o){n+=i,r++;continue}r+=2;var a=oe(o);if(0===a)i=z(o);else{if(1===a||a>4){n+="�",r++;continue}for(var s=[o],u=1;u<a&&!(++r+3>t||"%"!==H(e,r));){var c=ie(e,r+1);if(c!=c){r+=3;break}if(c>191||c<128)break;Y(s,c),r+=2,u++}if(s.length!==a){n+="�";continue}var l=ae(s);null===l?n+="�":i=G(l)}}n+=i,r++}return n},ue=/[!'()~]|%20/g,ce={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},le=function(e){return ce[e]},fe=function(e){return Q($(e),ue,le)},de=g((function(e,t){I(this,{type:"URLSearchParamsIterator",target:M(e).entries,index:0,kind:t})}),"URLSearchParams",(function(){var e=j(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,R(void 0,!0);var r=t[n];switch(e.kind){case"keys":return R(r.key,!1);case"values":return R(r.value,!1)}return R([r.key,r.value],!1)}),!0),he=function(e){this.entries=[],this.url=null,void 0!==e&&(S(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===H(e,0)?ee(e,1):e:x(e)))};he.prototype={type:"URLSearchParams",bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,o,a,u,c=this.entries,l=P(e);if(l)for(n=(t=O(e,l)).next;!(r=s(n,t)).done;){if(o=(i=O(E(r.value))).next,(a=s(o,i)).done||(u=s(o,i)).done||!s(o,i).done)throw new V("Expected sequence with length 2");Y(c,{key:x(a.value),value:x(u.value)})}else for(var f in e)b(e,f)&&Y(c,{key:f,value:x(e[f])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,i=Z(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(n=Z(t,"="),Y(r,{key:se(X(n)),value:se(K(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],Y(n,fe(e.key)+"="+fe(e.value));return K(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var pe=function(){v(this,ge);var e=arguments.length>0?arguments[0]:void 0,t=I(this,new he(e));c||(this.size=t.entries.length)},ge=pe.prototype;if(h(ge,{append:function(e,t){var n=M(this);A(arguments.length,2),Y(n.entries,{key:x(e),value:x(t)}),c||this.length++,n.updateURL()},delete:function(e){for(var t=M(this),n=A(arguments.length,1),r=t.entries,i=x(e),o=n<2?void 0:arguments[1],a=void 0===o?o:x(o),s=0;s<r.length;){var u=r[s];if(u.key!==i||void 0!==a&&u.value!==a)s++;else if(J(r,s,1),void 0!==a)break}c||(this.size=r.length),t.updateURL()},get:function(e){var t=M(this).entries;A(arguments.length,1);for(var n=x(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=M(this).entries;A(arguments.length,1);for(var n=x(e),r=[],i=0;i<t.length;i++)t[i].key===n&&Y(r,t[i].value);return r},has:function(e){for(var t=M(this).entries,n=A(arguments.length,1),r=x(e),i=n<2?void 0:arguments[1],o=void 0===i?i:x(i),a=0;a<t.length;){var s=t[a++];if(s.key===r&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var n=M(this);A(arguments.length,1);for(var r,i=n.entries,o=!1,a=x(e),s=x(t),u=0;u<i.length;u++)(r=i[u]).key===a&&(o?J(i,u--,1):(o=!0,r.value=s));o||Y(i,{key:a,value:s}),c||(this.size=i.length),n.updateURL()},sort:function(){var e=M(this);D(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=M(this).entries,r=_(e,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new de(this,"keys")},values:function(){return new de(this,"values")},entries:function(){return new de(this,"entries")}},{enumerable:!0}),f(ge,L,ge.entries,{name:"entries"}),f(ge,"toString",(function(){return M(this).serialize()}),{enumerable:!0}),c&&d(ge,"size",{get:function(){return M(this).entries.length},configurable:!0,enumerable:!0}),p(pe,"URLSearchParams"),r({global:!0,constructor:!0,forced:!l},{URLSearchParams:pe}),!l&&y(U)){var me=u(q.has),ve=u(q.set),ye=function(e){if(S(e)){var t,n=e.body;if("URLSearchParams"===w(n))return t=e.headers?new U(e.headers):new U,me(t,"content-type")||ve(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),k(e,{body:T(0,x(n)),headers:T(0,t)})}return e};if(y(N)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return N(e,arguments.length>1?ye(arguments[1]):{})}}),y(F)){var be=function(e){return v(this,B),new F(e,arguments.length>1?ye(arguments[1]):{})};B.constructor=be,be.prototype=B,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:be})}}e.exports={URLSearchParams:pe,getState:M}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(518);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(21),i=n(9),o=n(280),a=n(269),s=n(127),u=n(149),c=n(25),l=n(175),f=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new o.a,this.mutationCache=e.mutationCache||new a.a,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=s.a.subscribe((function(){s.a.isFocused()&&u.a.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=u.a.subscribe((function(){s.a.isFocused()&&u.a.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=Object(i.m)(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll(Object(r.a)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,n){var r=Object(i.p)(e),o=this.defaultQueryOptions(r);return this.queryCache.build(this,o).setData(t,n)},t.setQueriesData=function(e,t,n){var r=this;return c.a.batch((function(){return r.getQueryCache().findAll(e).map((function(e){var i=e.queryKey;return[i,r.setQueryData(i,t,n)]}))}))},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=Object(i.m)(e,t)[0],r=this.queryCache;c.a.batch((function(){r.findAll(n).forEach((function(e){r.remove(e)}))}))},t.resetQueries=function(e,t,n){var o=this,a=Object(i.m)(e,t,n),s=a[0],u=a[1],l=this.queryCache,f=Object(r.a)({},s,{active:!0});return c.a.batch((function(){return l.findAll(s).forEach((function(e){e.reset()})),o.refetchQueries(f,u)}))},t.cancelQueries=function(e,t,n){var r=this,o=Object(i.m)(e,t,n),a=o[0],s=o[1],u=void 0===s?{}:s;void 0===u.revert&&(u.revert=!0);var l=c.a.batch((function(){return r.queryCache.findAll(a).map((function(e){return e.cancel(u)}))}));return Promise.all(l).then(i.l).catch(i.l)},t.invalidateQueries=function(e,t,n){var o,a,s,u=this,l=Object(i.m)(e,t,n),f=l[0],d=l[1],h=Object(r.a)({},f,{active:null==(o=null!=(a=f.refetchActive)?a:f.active)||o,inactive:null!=(s=f.refetchInactive)&&s});return c.a.batch((function(){return u.queryCache.findAll(f).forEach((function(e){e.invalidate()})),u.refetchQueries(h,d)}))},t.refetchQueries=function(e,t,n){var o=this,a=Object(i.m)(e,t,n),s=a[0],u=a[1],l=c.a.batch((function(){return o.queryCache.findAll(s).map((function(e){return e.fetch(void 0,Object(r.a)({},u,{meta:{refetchPage:null==s?void 0:s.refetchPage}}))}))})),f=Promise.all(l).then(i.l);return(null==u?void 0:u.throwOnError)||(f=f.catch(i.l)),f},t.fetchQuery=function(e,t,n){var r=Object(i.p)(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);var a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(i.l).catch(i.l)},t.fetchInfiniteQuery=function(e,t,n){var r=Object(i.p)(e,t,n);return r.behavior=Object(l.c)(),this.fetchQuery(r)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(i.l).catch(i.l)},t.cancelMutations=function(){var e=this,t=c.a.batch((function(){return e.mutationCache.getAll().map((function(e){return e.cancel()}))}));return Promise.all(t).then(i.l).catch(i.l)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find((function(t){return Object(i.e)(e)===Object(i.e)(t.queryKey)}));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find((function(t){return Object(i.q)(e,t.queryKey)})))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find((function(t){return Object(i.e)(e)===Object(i.e)(t.mutationKey)}));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find((function(t){return Object(i.q)(e,t.mutationKey)})))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=Object(r.a)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=Object(i.f)(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:Object(r.a)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}()},function(e,t){},function(e,t,n){"use strict";n.r(t);n(1187),n(1188);var r=n(88);n.d(t,"QueryClientProvider",(function(){return r.a})),n.d(t,"useQueryClient",(function(){return r.b}));var i=n(219);n.d(t,"QueryErrorResetBoundary",(function(){return i.a})),n.d(t,"useQueryErrorResetBoundary",(function(){return i.b}));var o=n(523);n.d(t,"useIsFetching",(function(){return o.a}));var a=n(524);n.d(t,"useIsMutating",(function(){return a.a}));var s=n(525);n.d(t,"useMutation",(function(){return s.a}));var u=n(526);n.d(t,"useQuery",(function(){return u.a}));var c=n(527);n.d(t,"useQueries",(function(){return c.a}));var l=n(528);n.d(t,"useInfiniteQuery",(function(){return l.a}));var f=n(339);n.d(t,"useHydrate",(function(){return f.b})),n.d(t,"Hydrate",(function(){return f.a}));var d=n(529);for(var h in d)["default","QueryClientProvider","useQueryClient","QueryErrorResetBoundary","useQueryErrorResetBoundary","useIsFetching","useIsMutating","useMutation","useQuery","useQueries","useInfiniteQuery","useHydrate","Hydrate"].indexOf(h)<0&&function(e){n.d(t,e,(function(){return d[e]}))}(h)},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(9),s=n(88),u=function(e,t,n,r){var i=e.isFetching(t);n!==i&&r(i)};function c(e,t){var n=i.a.useRef(!1),r=Object(s.b)(),c=Object(a.m)(e,t)[0],l=i.a.useState(r.isFetching(c)),f=l[0],d=l[1],h=i.a.useRef(c);h.current=c;var p=i.a.useRef(f);return p.current=f,i.a.useEffect((function(){n.current=!0,u(r,h.current,p.current,d);var e=r.getQueryCache().subscribe(o.a.batchCalls((function(){n.current&&u(r,h.current,p.current,d)})));return function(){n.current=!1,e()}}),[r]),f}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),i=n.n(r),o=n(25),a=n(9),s=n(88);function u(e,t){var n=i.a.useRef(!1),r=Object(a.o)(e,t),u=Object(s.b)(),c=i.a.useState(u.isMutating(r)),l=c[0],f=c[1],d=i.a.useRef(r);d.current=r;var h=i.a.useRef(l);return h.current=l,i.a.useEffect((function(){n.current=!0;var e=u.getMutationCache().subscribe(o.a.batchCalls((function(){if(n.current){var e=u.isMutating(d.current);h.current!==e&&f(e)}})));return function(){n.current=!1,e()}}),[u]),l}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(21),i=n(0),o=n.n(i),a=n(25),s=n(9),u=n(272),c=n(88),l=n(282);function f(e,t,n){var i=o.a.useRef(!1),f=o.a.useState(0)[1],d=Object(s.n)(e,t,n),h=Object(c.b)(),p=o.a.useRef();p.current?p.current.setOptions(d):p.current=new u.a(h,d);var g=p.current.getCurrentResult();o.a.useEffect((function(){i.current=!0;var e=p.current.subscribe(a.a.batchCalls((function(){i.current&&f((function(e){return e+1}))})));return function(){i.current=!1,e()}}),[]);var m=o.a.useCallback((function(e,t){p.current.mutate(e,t).catch(s.l)}),[]);if(g.error&&Object(l.a)(void 0,p.current.options.useErrorBoundary,[g.error]))throw g.error;return Object(r.a)({},g,{mutate:m,mutateAsync:g.mutate})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(172),i=n(9),o=n(283);function a(e,t,n){var a=Object(i.p)(e,t,n);return Object(o.a)(a,r.a)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),i=n.n(r),o=n(25),a=n(270),s=n(88);function u(e){var t=i.a.useRef(!1),n=i.a.useState(0)[1],u=Object(s.b)(),c=Object(r.useMemo)((function(){return e.map((function(e){var t=u.defaultQueryObserverOptions(e);return t.optimisticResults=!0,t}))}),[e,u]),l=i.a.useState((function(){return new a.a(u,c)}))[0],f=l.getOptimisticResult(c);return i.a.useEffect((function(){t.current=!0;var e=l.subscribe(o.a.batchCalls((function(){t.current&&n((function(e){return e+1}))})));return function(){t.current=!1,e()}}),[l]),i.a.useEffect((function(){l.setQueries(c,{listeners:!1})}),[c,l]),f}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(271),i=n(9),o=n(283);function a(e,t,n){var a=Object(i.p)(e,t,n);return Object(o.a)(a,r.a)}},function(e,t){},function(e,t,n){"use strict";n.r(t),n.d(t,"useApi",(function(){return p})),n.d(t,"useMutationApi",(function(){return g}));var r=n(13),i=n.n(r),o=n(173),a=n(171),s=n(0),u=n(170),c=n.n(u),l=n(89);function f(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(){return{updateAuthIfNeeded:Object(s.useCallback)((function(){return new Promise((function(e){e()}))}),[]),catchAuthError:Object(s.useCallback)((function(e){var t;throw 401===(null==e||null===(t=e.response)||void 0===t?void 0:t.status)&&logout(),e}),[])}},p=function(e){var t=e.queryKey,n=e.queryFn,r=e.options,i=void 0===r?{}:r,a=h(),s=a.updateAuthIfNeeded,u=a.catchAuthError;return Object(o.useQuery)(t,(function(){var e=performance.now();return s().then(n).then((function(t){var n=Object(l.getFormattedDuration)(performance.now()-e);return d(d({},t),{},{duration:n})})).catch((function(t){u(t);var n=Object(l.getFormattedDuration)(performance.now()-e);if(c.a.isAxiosError(t))return d(d({},t),{},{duration:n});throw t}))}),d({refetchInterval:!1,refetchOnWindowFocus:!1,retry:!1},i))},g=function(e,t,n,r){var i=h(),s=i.updateAuthIfNeeded,u=i.catchAuthError;return Object(o.useMutation)((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return s().then((function(){return e.apply(void 0,n)})).catch(u)}),d({onSuccess:function(e,n){t(n);null!=n&&n.onSuccess&&Object(a.isFunction)(n.onSuccess)&&n.onSuccess(e,n)},onError:function(e,t){if(null!=t&&t.onError&&Object(a.isFunction)(t.onError)&&t.onError(e,t),r){var n=e.response.data;n.error,n.errors}}},n))}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(75);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},function(e,t,n){"use strict";(function(t){var r=n(75);e.exports=function(e,n){n=n||new FormData;var i=[];function o(e){return null===e?"":r.isDate(e)?e.toISOString():r.isArrayBuffer(e)||r.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):t.from(e):e}return function e(t,a){if(r.isPlainObject(t)||r.isArray(t)){if(-1!==i.indexOf(t))throw Error("Circular reference detected in "+a);i.push(t),r.forEach(t,(function(t,i){if(!r.isUndefined(t)){var s,u=a?a+"."+i:i;if(t&&!a&&"object"==typeof t)if(r.endsWith(i,"{}"))t=JSON.stringify(t);else if(r.endsWith(i,"[]")&&(s=r.toArray(t)))return void s.forEach((function(e){!r.isUndefined(e)&&n.append(u,o(e))}));e(t,u)}})),i.pop()}else n.append(a,o(t))}(e),n}}).call(this,n(341).Buffer)},function(e,t,n){"use strict";var r=n(75),i=n(1094),o=n(1095),a=n(532),s=n(536),u=n(1098),c=n(1099),l=n(533),f=n(192),d=n(268),h=n(1100);e.exports=function(e){return new Promise((function(t,n){var p,g=e.data,m=e.headers,v=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(g)&&r.isStandardBrowserEnv()&&delete m["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(_+":"+w)}var E=s(e.baseURL,e.url);function S(){if(b){var r="getAllResponseHeaders"in b?u(b.getAllResponseHeaders()):null,o={data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};i((function(e){t(e),y()}),(function(e){n(e),y()}),o),b=null}}if(b.open(e.method.toUpperCase(),a(E,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=S:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(S)},b.onabort=function(){b&&(n(new f("Request aborted",f.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new f("Network Error",f.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||l;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new f(t,r.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var x=(e.withCredentials||c(E))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;x&&(m[e.xsrfHeaderName]=x)}"setRequestHeader"in b&&r.forEach(m,(function(e,t){void 0===g&&"content-type"===t.toLowerCase()?delete m[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),v&&"json"!==v&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){b&&(n(!e||e&&e.type?new d:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),g||(g=null);var k=h(E);k&&-1===["http","https","file"].indexOf(k)?n(new f("Unsupported protocol "+k+":",f.ERR_BAD_REQUEST,e)):b.send(g)}))}},function(e,t,n){"use strict";var r=n(1096),i=n(1097);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(75);e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function u(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,i=t(e);r.isUndefined(i)&&t!==u||(n[e]=i)})),n}},function(e,t){e.exports={version:"0.27.2"}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getAxiosInstance=t.getAuthorization=t.STREAMER_STORAGE_KEY=void 0;const i=r(n(170)),o=n(1106),a="undefined"!=typeof window?new URLSearchParams(window.location.search):new URLSearchParams(""),s=a.get("host"),u="undefined"!=typeof window?`${window.location.protocol}//${window.location.host}`:"";t.STREAMER_STORAGE_KEY="MediaServerAuth";t.getAuthorization=()=>{const e=localStorage.getItem(t.STREAMER_STORAGE_KEY);if(e){const t=JSON.parse(e);return(0,o.loginHeader)({login:t.login,password:t.password})}};t.getAxiosInstance=()=>{const e=i.default.create({baseURL:""+(a.get("streamer_host")||s||u),headers:Object.assign(Object.assign({},o.globalHeaders),{"Content-Type":"application/json"})});return e.interceptors.request.use((function(e){const n=(0,t.getAuthorization)();return n&&(e.headers=Object.assign(Object.assign({},e.headers),{Authorization:n})),e})),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AUTH_CONFIG=t.LOGGER_TOKEN=void 0,t.LOGGER_TOKEN="dd988397-48cc-49f2-85cf-7dcac77f93bc",t.AUTH_CONFIG={headers:{"X-Authorization":"Bearer "+t.LOGGER_TOKEN}}},function(e,t){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(544);function i(){
8
+ var r=n(1091),i=n(1092),o=n(1093);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|h(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):d(e,t);if("Buffer"===t.type&&o(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=s(e,t<0?0:0|h(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|h(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var f=!0,d=0;d<u;d++)if(c(e,o+d)!==c(t,d)){f=!1;break}if(f)return o}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function _(e,t,n,r){return V(B(t,e.length-n),e,n,r)}function w(e,t,n,r){return V(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function E(e,t,n,r){return w(e,t,n,r)}function S(e,t,n,r){return V(q(t),e,n,r)}function x(e,t,n,r){return V(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,u,c=e[i],l=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):g.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),l=e.slice(t,n),f=0;f<s;++f)if(c[f]!==l[f]){o=c[f],a=l[f];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return E(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function O(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function P(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function R(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=U(e[o]);return i}function A(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function C(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function L(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function I(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function M(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,r,o){return o||M(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function N(e,t,n,r,o){return o||M(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||C(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||C(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||C(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||C(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||C(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||C(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||C(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||C(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||C(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||C(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||C(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||C(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||C(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return N(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=u.isBuffer(e)?e:B(new u(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(153))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.networkTelemetry=void 0,t.networkTelemetry={getStreamFields:()=>({event:"request_success",event_message:"Get stream info.json",uts_ms:Date.now()}),errorStreamFields:()=>({event:"request_error",error_type:"stream_info_request_error",event_message:"Error in get stream info.json",uts_ms:Date.now()}),getRangesListFields:()=>({event:"request_success",event_message:"Get ranges",uts_ms:Date.now()}),errorRangesListFields:()=>({event:"request_error",error_type:"ranges_list_request_error",event_message:"Error in get ranges",uts_ms:Date.now()}),getRecordingStatusFields:()=>({event:"request_success",event_message:"Get recording_status.json",uts_ms:Date.now()}),errorRecordingStatusFields:()=>({event:"request_error",error_type:"recording_status_request_error",event_message:"Error in get recording status",uts_ms:Date.now()}),getMotionsGetter:()=>({event:"request_success",event_message:"Get motions",uts_ms:Date.now()}),errorMotionsGetter:()=>({event:"request_error",error_type:"motions_request_error",event_message:"Error in get motions",uts_ms:Date.now()})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.webrtcTelemetry=t.mseTelemetry=t.hlsTelemetry=void 0,t.hlsTelemetry={loadManifest:()=>({event:"request_success",event_message:"Load manifest",uts_ms:Date.now()}),loadFragment:()=>({event:"request_success",event_message:"Load fragment",uts_ms:Date.now()})},t.mseTelemetry={getMessage:()=>({event:"request_success",event_message:"Message received",uts_ms:Date.now()})},t.webrtcTelemetry={getPackets:()=>({event:"request_success",event_message:"Packets received",uts_ms:Date.now()})}},function(e,t,n){"use strict";var r=n(5),i=n(278),o=n(43),a=Object(r.a)((function(e){return null!=e&&Object(o.a)(e,Object(i.a)(e))}));t.a=a},function(e,t,n){"use strict";var r=n(5),i=n(29),o=n(92),a=n(126),s=n(70),u=Object(r.a)((function(e){return Object(i.a)(Object(s.a)(o.a,0,Object(a.a)("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));t.a=u},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendMetrics=t.logAxios=void 0;const i=r(n(170)),o=n(541);t.logAxios=i.default.create({baseURL:"https://mobile-logger.flussonic.cloud",headers:Object.assign({"Content-Type":"application/json"},o.AUTH_CONFIG.headers),timeout:5e3});t.sendMetrics=e=>{const n=Object.assign(Object.assign({},e),{platform:"web",app_name:"@flussonic/flussonic-dvr-player",app_version:"25.9.5"});t.logAxios.post("/collect",n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCurrentPlayerVersion=void 0;const r=n(118);t.getCurrentPlayerVersion=e=>{switch(e){case r.PLAYER_NAME.MSE:return"25.6.3-1-g01bd0c9";case r.PLAYER_NAME.HLS:return"1.5.13";case r.PLAYER_NAME.WEBRTC:return"^24.7.1-0-g20fa1ce";default:return}}},function(e,t,n){(function(n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){s(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,a=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,n,a){var s=o.URL||o.webkitURL,u=document.createElement("a");n=n||e.name||"download",u.download=n,u.rel="noopener","string"==typeof e?(u.href=e,u.origin===location.origin?i(u):r(u.href)?t(e,n,a):i(u,u.target="_blank")):(u.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(u.href)}),4e4),setTimeout((function(){i(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,o){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),n);else if(r(e))t(e,n,o);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){i(a)}))}}:function(e,n,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var s="application/octet-stream"===e.type,u=/constructor/i.test(o.HTMLElement)||o.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||s&&u||a)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},l.readAsDataURL(e)}else{var f=o.URL||o.webkitURL,d=f.createObjectURL(e);i?i.location=d:location.href=d,i=null,setTimeout((function(){f.revokeObjectURL(d)}),4e4)}});o.saveAs=s.saveAs=s,e.exports=s})?r.apply(t,i):r)||(e.exports=o)}).call(this,n(153))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(76),i=n(0),o=n(191),a=n(12),s=n(171),u=n(87),c=n(342);t.default=(0,i.memo)(({name:e,address:t,returnData:n,setRanges:l,start:f,end:d,dvr_enabled:h,onRangesLoading:p,onEvent:g,rangesLoading:m,liveCheck:v,basicApiConfig:y,auth_token:b,resolution:_})=>{const{getCommonTelemetryFields:w,getCommonRequestFields:E,getCommonErrorRequestFields:S,sendMetrics:x}=(0,i.useContext)(u.TelemetryContext),{getRangesListFields:k,errorRangesListFields:T,getRecordingStatusFields:O,errorRecordingStatusFields:P}=c.networkTelemetry,[R,A]=(0,i.useState)(!1),[C,D]=(0,i.useState)(null),[L,I]=(0,i.useState)(!0);let M={};if(b){const e=(0,r.decode)(b.replace(/^\?/,""));M=Object.assign(Object.assign({},M),e)}const j=Object.assign(Object.assign({},y),{params:Object.assign(Object.assign({},y.params),M),baseURL:t||y.baseURL,encodeParams:!1});(0,i.useEffect)(()=>{p&&m&&p(!1)},[m,p]);const N=e=>({closed_at_gte:Math.round(((0,s.isNumber)(f)?f:(0,a.now)()-300)*(L?1e3:1)),opened_at_lte:Math.round((e?(0,a.now)()+300:d)*(L?1e3:1))}),F=e=>e>1e10?Math.floor(e/1e3):e,{refetch:U}=(0,o.ranges_list)({params:Object.assign({name:e},N(v)),options:{keepPreviousData:!0,enabled:!R,refetchInterval:v?1e3:void 0,onSuccess:t=>{x(Object.assign(Object.assign(Object.assign({},w()),E(t)),k()));const{ranges:r,next:i}=t.data;if(r&&r.length>0){const t=r.map(e=>Object.assign(Object.assign({},e),{closed_at:e.closed_at?F(e.closed_at):e.closed_at,opened_at:e.opened_at?F(e.opened_at):e.opened_at}));l(e,t,v),D(i||null),i?setTimeout(()=>U(),100):n("dvr_ranges_present",!0)}else L&&(I(!1),U())},onError:t=>{t&&x(Object.assign(Object.assign(Object.assign({},w()),S(t)),T())),t instanceof Error&&g&&g(e,{key:Date.now(),data:{event:"player_error",error_name:"ranges_fetching_error",error_message:"DVR Player ranges fetch error"}}),console.error("Fetch ranges error:",t),A(!0),l(e,[{closed_at:(0,a.now)(),opened_at:(0,a.now)()}]),p&&p(!1)}},config:Object.assign(Object.assign({},j),{params:Object.assign(Object.assign(Object.assign({},j.params),N(v)),{limit:1e3,cursor:C,resolution:Math.floor(_)})})});return(0,o.recording_status)({params:{name:e},options:{refetchInterval:v?1e3:2e3,keepPreviousData:!0,enabled:R,onSuccess:t=>{const r=t.data[0];x(Object.assign(Object.assign(Object.assign({},w()),E(r)),O()));const{ranges:i}=r;if(i&&i.length)if(h){n("dvr_ranges_present",!0);const t=i.map(e=>e.from&&e.duration?{opened_at:e.from,closed_at:e.from+e.duration}:{});l(e,t)}else n("dvr_ranges_present",!1),l(e,[{closed_at:(0,a.now)(),opened_at:(0,a.now)()}]);else n("dvr_ranges_present",!1);p&&p(!0)},onError:t=>{t&&x(Object.assign(Object.assign(Object.assign({},w()),S(t)),P())),t instanceof Error&&g&&g(e,{key:Date.now(),data:{event:"player_error",error_name:t.name,error_message:t.message}}),console.error("Fetch ranges error:",t),l(e,[{closed_at:(0,a.now)(),opened_at:(0,a.now)()}]),p&&p(!1)}},config:Object.assign(Object.assign({},y),{params:Object.assign(Object.assign({},y.params),Object.assign({from:v?Math.round((0,a.now)()-300):Math.round(f),to:v?Math.round((0,a.now)()+300):Math.round(d),request:"motion_log,ranges"},M)),baseURL:t||y.baseURL,encodeParams:!1})}),null})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=e=>{let t=!1;let n=0,r=0;return{handleMouseDown:e=>{t=!1,n=e.clientX,r=e.clientY},handleMouseMove:e=>{const i=Math.abs(e.clientX-n),o=Math.abs(e.clientY-r);(i>5||o>5)&&(t=!0)},handleMouseUp:n=>{t||e(n)},handleTouchMove:e=>{if(n&&r){const i=Math.abs(e.touches[0].clientX-n),o=Math.abs(e.touches[0].clientY-r);(i>5||o>5)&&(t=!0)}else n=e.touches[0].clientX,r=e.touches[0].clientY},handleTouchEnd:i=>{t||e(i),0===i.touches.length&&(t=!1,n=0,r=0)}}}},function(e,t,n){var r=n(107).default,i=n(573);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(154);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){"use strict";var r=n(8),i=n(23),o=n(16),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!o(s=r(n,e)))return s;if(i(n=e.valueOf)&&!o(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!o(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},function(e,t,n){"use strict";var r=n(15),i=n(7),o=n(226);e.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";var r=n(15),i=n(7);e.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(e,t,n){"use strict";var r=n(11),i=n(23),o=r.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},function(e,t,n){"use strict";var r=n(4),i=n(24),o=n(61),a=n(205).indexOf,s=n(204),u=r([].push);e.exports=function(e,t){var n,r=o(e),c=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&u(l,n);for(;t.length>c;)i(r,n=t[c++])&&(~a(l,n)||u(l,n));return l}},function(e,t,n){"use strict";var r=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?i:r)(t)}},function(e,t,n){"use strict";var r=n(18);e.exports=r("document","documentElement")},function(e,t,n){"use strict";var r=n(17);t.f=r},function(e,t,n){"use strict";var r=n(8),i=n(18),o=n(17),a=n(35);e.exports=function(){var e=i("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=o("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return r(n,this)}),{arity:1})}},function(e,t,n){"use strict";var r=n(154);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},function(e,t,n){"use strict";var r=n(2),i=n(18),o=n(80),a=n(8),s=n(4),u=n(7),c=n(23),l=n(140),f=n(101),d=n(364),h=n(154),p=String,g=i("JSON","stringify"),m=s(/./.exec),v=s("".charAt),y=s("".charCodeAt),b=s("".replace),_=s(1.1.toString),w=/[\uD800-\uDFFF]/g,E=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,x=!h||u((function(){var e=i("Symbol")("stringify detection");return"[null]"!==g([e])||"{}"!==g({a:e})||"{}"!==g(Object(e))})),k=u((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),T=function(e,t){var n=f(arguments),r=d(t);if(c(r)||void 0!==e&&!l(e))return n[1]=function(e,t){if(c(r)&&(t=a(r,this,p(e),t)),!l(t))return t},o(g,null,n)},O=function(e,t,n){var r=v(n,t-1),i=v(n,t+1);return m(E,e)&&!m(S,i)||m(S,e)&&!m(E,r)?"\\u"+_(y(e,0),16):e};g&&r({target:"JSON",stat:!0,arity:3,forced:x||k},{stringify:function(e,t,n){var r=f(arguments),i=o(x?T:g,null,r);return k&&"string"==typeof i?b(i,w,O):i}})},function(e,t,n){"use strict";var r=n(4),i=n(122),o=n(23),a=n(78),s=n(22),u=r([].push);e.exports=function(e){if(o(e))return e;if(i(e)){for(var t=e.length,n=[],r=0;r<t;r++){var c=e[r];"string"==typeof c?u(n,c):"number"!=typeof c&&"Number"!==a(c)&&"String"!==a(c)||u(n,s(c))}var l=n.length,f=!0;return function(e,t){if(f)return f=!1,t;if(i(this))return t;for(var r=0;r<l;r++)if(n[r]===e)return t}}}},function(e,t,n){"use strict";var r=n(11),i=n(50),o=n(40).f,a=n(73).f,s=r.Symbol;if(i("asyncDispose"),s){var u=a(s,"asyncDispose");u.enumerable&&u.configurable&&u.writable&&o(s,"asyncDispose",{value:u.value,enumerable:!1,configurable:!1,writable:!1})}},function(e,t,n){"use strict";var r=n(11),i=n(50),o=n(40).f,a=n(73).f,s=r.Symbol;if(i("dispose"),s){var u=a(s,"dispose");u.enumerable&&u.configurable&&u.writable&&o(s,"dispose",{value:u.value,enumerable:!1,configurable:!1,writable:!1})}},function(e,t,n){"use strict";var r=n(18),i=n(24),o=n(62),a=n(79),s=n(111),u=n(179),c=n(370),l=n(159),f=n(181),d=n(371),h=n(302),p=n(15),g=n(31);e.exports=function(e,t,n,m){var v=m?2:1,y=e.split("."),b=y[y.length-1],_=r.apply(null,y);if(_){var w=_.prototype;if(!g&&i(w,"cause")&&delete w.cause,!n)return _;var E=r("Error"),S=t((function(e,t){var n=f(m?t:e,void 0),r=m?new _(e):new _;return void 0!==n&&o(r,"message",n),h(r,S,r.stack,2),this&&a(w,this)&&l(r,this,S),arguments.length>v&&d(r,arguments[v]),r}));if(S.prototype=w,"Error"!==b?s?s(S,E):u(S,E,{name:!0}):p&&"stackTraceLimit"in _&&(c(S,_,"stackTraceLimit"),c(S,_,"prepareStackTrace")),u(S,_),!g)try{w.name!==b&&o(w,"name",b),w.constructor=S}catch(e){}return S}}},function(e,t,n){"use strict";var r=n(369),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},function(e,t,n){"use strict";var r=n(16);e.exports=function(e){return r(e)||null===e}},function(e,t,n){"use strict";var r=n(40).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},function(e,t,n){"use strict";var r=n(16),i=n(62);e.exports=function(e,t){r(t)&&"cause"in t&&i(e,"cause",t.cause)}},function(e,t,n){"use strict";var r=n(7),i=n(98);e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)}))},function(e,t,n){"use strict";var r=n(2),i=n(18),o=n(16),a=n(90),s=n(7),u=Object.setPrototypeOf||{}.__proto__,c=i("DOMException"),l=Error,f=l.isError;r({target:"Error",stat:!0,sham:!0,forced:!f||!u||s((function(){return c&&!f(new c("DOMException"))||!f(new l("Error",{cause:function(){}}))||f(i("Object","create")(l.prototype))}))},{isError:function(e){if(!o(e))return!1;var t=a(e);return"Error"===t||"DOMException"===t}})},function(e,t,n){"use strict";var r=n(15),i=n(7),o=n(10),a=n(181),s=Error.prototype.toString,u=i((function(){if(r){var e=Object.create(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==s.call(e))return!0}return"2: 1"!==s.call({message:1,name:2})||"Error"!==s.call({})}));e.exports=u?function(){var e=o(this),t=a(e.name,"Error"),n=a(e.message);return t?n?t+": "+n:t:n}:s},function(e,t,n){"use strict";n(598)},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(79),a=n(63),s=n(111),u=n(179),c=n(55),l=n(62),f=n(98),d=n(302),h=n(181),p=n(17),g=n(7),m=n(31),v=i.SuppressedError,y=p("toStringTag"),b=Error,_=!!v&&3!==v.length,w=!!v&&g((function(){return 4===new v(1,2,3,{cause:4}).cause})),E=_||w,S=function(e,t,n){var r,i=o(x,this);return s?r=!E||i&&a(this)!==x?s(new b,i?a(this):x):new v:(r=i?this:c(x),l(r,y,"Error")),void 0!==n&&l(r,"message",h(n)),d(r,S,r.stack,1),l(r,"error",e),l(r,"suppressed",t),r};s?s(S,b):u(S,b,{name:!0});var x=S.prototype=E?v.prototype:c(b.prototype,{constructor:f(1,S),message:f(1,""),name:f(1,"SuppressedError")});E&&!m&&(x.constructor=S),r({global:!0,constructor:!0,arity:3,forced:E},{SuppressedError:S})},function(e,t,n){"use strict";var r=n(2),i=n(27),o=n(28),a=n(44),s=n(52);r({target:"Array",proto:!0},{at:function(e){var t=i(this),n=o(t),r=a(e),s=r>=0?r:n+r;return s<0||s>=n?void 0:t[s]}}),s("at")},function(e,t,n){"use strict";var r=n(27),i=n(121),o=n(28),a=n(233),s=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),u=o(n),c=i(e,u),l=i(t,u),f=arguments.length>2?arguments[2]:void 0,d=s((void 0===f?u:i(f,u))-l,u-c),h=1;for(l<c&&c<l+d&&(h=-1,l+=d-1,c+=d-1);d-- >0;)l in n?n[c]=n[l]:a(n,c),c+=h,l+=h;return n}},function(e,t,n){"use strict";var r=n(2),i=n(234).findLast,o=n(52);r({target:"Array",proto:!0},{findLast:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findLast")},function(e,t,n){"use strict";var r=n(2),i=n(234).findLastIndex,o=n(52);r({target:"Array",proto:!0},{findLastIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findLastIndex")},function(e,t,n){"use strict";var r=n(122),i=n(28),o=n(160),a=n(37),s=function(e,t,n,u,c,l,f,d){for(var h,p,g=c,m=0,v=!!f&&a(f,d);m<u;)m in n&&(h=v?v(n[m],m,t):n[m],l>0&&r(h)?(p=i(h),g=s(e,t,h,p,g,l-1)-1):(o(g+1),e[g]=h),g++),m++;return g};e.exports=s},function(e,t,n){"use strict";var r=n(56).forEach,i=n(113)("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){"use strict";var r=n(37),i=n(8),o=n(27),a=n(307),s=n(305),u=n(123),c=n(28),l=n(112),f=n(142),d=n(132),h=Array;e.exports=function(e){var t=o(e),n=u(this),p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g;m&&(g=r(g,p>2?arguments[2]:void 0));var v,y,b,_,w,E,S=d(t),x=0;if(!S||this===h&&s(S))for(v=c(t),y=n?new this(v):h(v);v>x;x++)E=m?g(t[x],x):t[x],l(y,x,E);else for(y=n?new this:[],w=(_=f(t,S)).next;!(b=i(w,_)).done;x++)E=m?a(_,g,[b.value,x],!0):b.value,l(y,x,E);return y.length=x,y}},function(e,t,n){"use strict";var r=n(80),i=n(61),o=n(44),a=n(28),s=n(113),u=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,f=s("lastIndexOf"),d=l||!f;e.exports=d?function(e){if(l)return r(c,this,arguments)||0;var t=i(this),n=a(t);if(0===n)return-1;var s=n-1;for(arguments.length>1&&(s=u(s,o(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:c},function(e,t,n){"use strict";var r=n(120).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},function(e,t,n){"use strict";var r=n(120);e.exports=/MSIE|Trident/.test(r)},function(e,t,n){"use strict";var r=n(2),i=n(388),o=n(61),a=n(52),s=Array;r({target:"Array",proto:!0},{toReversed:function(){return i(o(this),s)}}),a("toReversed")},function(e,t,n){"use strict";var r=n(28);e.exports=function(e,t){for(var n=r(e),i=new t(n),o=0;o<n;o++)i[o]=e[n-o-1];return i}},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(19),a=n(61),s=n(143),u=n(390),c=n(52),l=Array,f=i(u("Array","sort"));r({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&o(e);var t=a(this),n=s(l,t);return f(n,e)}}),c("toSorted")},function(e,t,n){"use strict";var r=n(11);e.exports=function(e,t){var n=r[e],i=n&&n.prototype;return i&&i[t]}},function(e,t,n){"use strict";var r=n(2),i=n(52),o=n(160),a=n(28),s=n(121),u=n(61),c=n(44),l=Array,f=Math.max,d=Math.min;r({target:"Array",proto:!0},{toSpliced:function(e,t){var n,r,i,h,p=u(this),g=a(p),m=s(e,g),v=arguments.length,y=0;for(0===v?n=r=0:1===v?(n=0,r=g-m):(n=v-2,r=d(f(c(t),0),g-m)),i=o(g+n-r),h=l(i);y<m;y++)h[y]=p[y];for(;y<m+n;y++)h[y]=arguments[y-m+2];for(;y<i;y++)h[y]=p[y+r-n];return h}}),i("toSpliced")},function(e,t,n){"use strict";var r=n(2),i=n(393),o=n(61),a=Array;r({target:"Array",proto:!0,forced:function(){try{[].with({valueOf:function(){throw 4}},null)}catch(e){return 4!==e}}()},{with:function(e,t){return i(o(this),a,e,t)}})},function(e,t,n){"use strict";var r=n(28),i=n(44),o=RangeError;e.exports=function(e,t,n,a){var s=r(e),u=i(n),c=u<0?s+u:u;if(c>=s||c<0)throw new o("Incorrect index");for(var l=new t(s),f=0;f<s;f++)l[f]=f===c?a:e[f];return l}},function(e,t,n){"use strict";var r=n(313),i=n(395),o=Math.abs;e.exports=function(e,t,n,a){var s=+e,u=o(s),c=r(s);if(u<a)return c*i(u/a/t)*a*t;var l=(1+t/2220446049250313e-31)*u,f=l-(l-u);return f>n||f!=f?c*(1/0):c*f}},function(e,t,n){"use strict";e.exports=function(e){return e+4503599627370496-4503599627370496}},function(e,t,n){"use strict";var r=n(2),i=n(4),o=Math.pow,a=o(2,-24),s=function(e){var t=e>>>15,n=e>>>10&31,r=1023&e;return 31===n?0===r?0===t?1/0:-1/0:NaN:0===n?r*(0===t?a:-a):o(2,n-15)*(0===t?1+.0009765625*r:-1-.0009765625*r)},u=i(DataView.prototype.getUint16);r({target:"DataView",proto:!0},{getFloat16:function(e){return s(u(this,e,arguments.length>1&&arguments[1]))}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(398),a=n(209),s=n(399),u=n(395),c=Math.pow,l=function(e){if(e!=e)return 32256;if(0===e)return(1/e==-1/0)<<15;var t=e<0;if(t&&(e=-e),e>=65520)return t<<15|31744;if(e<61005353927612305e-21)return t<<15|u(16777216*e);var n=0|s(e);if(-15===n)return t<<15|1024;var r=u(1024*(e*c(2,-n)-1));return 1024===r?t<<15|n+16<<10:t<<15|n+15<<10|r},f=i(DataView.prototype.setUint16);r({target:"DataView",proto:!0},{setFloat16:function(e,t){f(o(this),a(e),l(+t),arguments.length>2&&arguments[2])}})},function(e,t,n){"use strict";var r=n(90),i=TypeError;e.exports=function(e){if("DataView"===r(e))return e;throw new i("Argument is not a DataView")}},function(e,t,n){"use strict";var r=Math.log,i=Math.LN2;e.exports=Math.log2||function(e){return r(e)/i}},function(e,t,n){"use strict";var r=n(15),i=n(45),o=n(401),a=ArrayBuffer.prototype;r&&!("detached"in a)&&i(a,"detached",{configurable:!0,get:function(){return o(this)}})},function(e,t,n){"use strict";var r=n(11),i=n(240),o=n(402),a=r.DataView;e.exports=function(e){if(!i||0!==o(e))return!1;try{return new a(e),!1}catch(e){return!0}}},function(e,t,n){"use strict";var r=n(11),i=n(232),o=n(78),a=r.ArrayBuffer,s=r.TypeError;e.exports=a&&i(a.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==o(e))throw new s("ArrayBuffer expected");return e.byteLength}},function(e,t,n){"use strict";var r=n(2),i=n(404);i&&r({target:"ArrayBuffer",proto:!0},{transfer:function(){return i(this,arguments.length?arguments[0]:void 0,!0)}})},function(e,t,n){"use strict";var r=n(11),i=n(4),o=n(232),a=n(209),s=n(210),u=n(402),c=n(405),l=n(314),f=r.structuredClone,d=r.ArrayBuffer,h=r.DataView,p=Math.min,g=d.prototype,m=h.prototype,v=i(g.slice),y=o(g,"resizable","get"),b=o(g,"maxByteLength","get"),_=i(m.getInt8),w=i(m.setInt8);e.exports=(l||c)&&function(e,t,n){var r,i=u(e),o=void 0===t?i:a(t),g=!y||!y(e);if(s(e),l&&(e=f(e,{transfer:[e]}),i===o&&(n||g)))return e;if(i>=o&&(!n||g))r=v(e,0,o);else{var m=n&&!g&&b?{maxByteLength:b(e)}:void 0;r=new d(o,m);for(var E=new h(e),S=new h(r),x=p(o,i),k=0;k<x;k++)w(S,k,_(E,k))}return l||c(e),r}},function(e,t,n){"use strict";var r,i,o,a,s=n(11),u=n(406),c=n(314),l=s.structuredClone,f=s.ArrayBuffer,d=s.MessageChannel,h=!1;if(c)h=function(e){l(e,{transfer:[e]})};else if(f)try{d||(r=u("worker_threads"))&&(d=r.MessageChannel),d&&(i=new d,o=new f(2),a=function(e){i.port1.postMessage(null,[e])},2===o.byteLength&&(a(o),0===o.byteLength&&(h=a)))}catch(e){}e.exports=h},function(e,t,n){"use strict";var r=n(11),i=n(183);e.exports=function(e){if(i){try{return r.process.getBuiltinModule(e)}catch(e){}try{return Function('return require("'+e+'")')()}catch(e){}}}},function(e,t,n){"use strict";var r=n(2),i=n(404);i&&r({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return i(this,arguments.length?arguments[0]:void 0,!1)}})},function(e,t,n){"use strict";var r=n(2),i=n(15),o=n(18),a=n(19),s=n(86),u=n(35),c=n(114),l=n(45),f=n(17),d=n(34),h=n(409),p=o("SuppressedError"),g=ReferenceError,m=f("dispose"),v=f("toStringTag"),y=d.set,b=d.getterFor("DisposableStack"),_="sync-dispose",w=function(e){var t=b(e);if("disposed"===t.state)throw new g("DisposableStack already disposed");return t},E=function(){y(s(this,S),{type:"DisposableStack",state:"pending",stack:[]}),i||(this.disposed=!1)},S=E.prototype;c(S,{dispose:function(){var e=b(this);if("disposed"!==e.state){e.state="disposed",i||(this.disposed=!0);for(var t,n=e.stack,r=n.length,o=!1;r;){var a=n[--r];n[r]=null;try{a()}catch(e){o?t=new p(e,t):(o=!0,t=e)}}if(e.stack=null,o)throw t}},use:function(e){return h(w(this),e,_),e},adopt:function(e,t){var n=w(this);return a(t),h(n,void 0,_,(function(){t(e)})),e},defer:function(e){var t=w(this);a(e),h(t,void 0,_,e)},move:function(){var e=w(this),t=new E;return b(t).stack=e.stack,e.stack=[],e.state="disposed",i||(this.disposed=!0),t}}),i&&l(S,"disposed",{configurable:!0,get:function(){return"disposed"===b(this).state}}),u(S,m,S.dispose,{name:"dispose"}),u(S,v,"DisposableStack",{nonWritable:!0}),r({global:!0,constructor:!0},{DisposableStack:E})},function(e,t,n){"use strict";var r=n(18),i=n(8),o=n(4),a=n(37),s=n(10),u=n(19),c=n(99),l=n(54),f=n(17),d=f("asyncDispose"),h=f("dispose"),p=o([].push),g=function(e,t){if("async-dispose"===t){var n=l(e,d);return void 0!==n||void 0===(n=l(e,h))?n:function(){var e=this;return new(r("Promise"))((function(t){i(n,e),t(void 0)}))}}return l(e,h)},m=function(e,t,n){return arguments.length<3&&!c(e)&&(n=u(g(s(e),t))),void 0===n?function(){}:a(n,e)};e.exports=function(e,t,n,r){var i;if(arguments.length<4){if(c(t)&&"sync-dispose"===n)return;i=m(t,n)}else i=m(void 0,n,r);p(e.stack,i)}},function(e,t,n){"use strict";var r=n(4),i=n(19),o=n(16),a=n(24),s=n(101),u=n(202),c=Function,l=r([].concat),f=r([].join),d={},h=function(e,t,n){if(!a(d,t)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";d[t]=c("C,a","return new C("+f(r,",")+")")}return d[t](e,n)};e.exports=u?c.bind:function(e){var t=i(this),n=t.prototype,r=s(arguments,1),a=function(){var n=l(r,s(arguments));return this instanceof a?h(t,n.length,n):t.apply(e,n)};return o(n)&&(a.prototype=n),a}},function(e,t,n){"use strict";var r=n(2),i=n(11);r({global:!0,forced:i.globalThis!==i},{globalThis:i})},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(86),a=n(10),s=n(23),u=n(63),c=n(45),l=n(112),f=n(7),d=n(24),h=n(17),p=n(162).IteratorPrototype,g=n(15),m=n(31),v=h("toStringTag"),y=TypeError,b=i.Iterator,_=m||!s(b)||b.prototype!==p||!f((function(){b({})})),w=function(){if(o(this,p),u(this)===p)throw new y("Abstract class Iterator not directly constructable")},E=function(e,t){g?c(p,e,{configurable:!0,get:function(){return t},set:function(t){if(a(this),this===p)throw new y("You can't redefine this property");d(this,e)?this[e]=t:l(this,e,t)}}):p[e]=t};d(p,v)||E(v,"Iterator"),!_&&d(p,"constructor")&&p.constructor!==Object||E("constructor",w),w.prototype=p,r({global:!0,constructor:!0,forced:_},{Iterator:w})},function(e,t,n){"use strict";var r=n(8),i=n(35),o=n(54),a=n(24),s=n(17),u=n(162).IteratorPrototype,c=s("dispose");a(u,c)||i(u,c,(function(){var e=o(this,"return");e&&r(e,this)}))},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(10),a=n(41),s=n(243),u=n(211),c=n(57),l=n(124),f=n(245),d=n(125),h=n(31),p=!h&&!f("drop",0),g=!h&&!p&&d("drop",RangeError),m=h||p||g,v=l((function(){for(var e,t=this.iterator,n=this.next;this.remaining;)if(this.remaining--,e=o(i(n,t)),this.done=!!e.done)return;if(e=o(i(n,t)),!(this.done=!!e.done))return e.value}));r({target:"Iterator",proto:!0,real:!0,forced:m},{drop:function(e){var t;o(this);try{t=u(s(+e))}catch(e){c(this,"throw",e)}return g?i(g,this,t):new v(a(this),{remaining:t})}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(51),a=n(19),s=n(10),u=n(41),c=n(57),l=n(125)("every",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:l},{every:function(e){s(this);try{a(e)}catch(e){c(this,"throw",e)}if(l)return i(l,this,e);var t=u(this),n=0;return!o(t,(function(t,r){if(!e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(19),a=n(10),s=n(41),u=n(124),c=n(307),l=n(31),f=n(57),d=n(245),h=n(125),p=!l&&!d("filter",(function(){})),g=!l&&!p&&h("filter",TypeError),m=l||p||g,v=u((function(){for(var e,t,n=this.iterator,r=this.predicate,o=this.next;;){if(e=a(i(o,n)),this.done=!!e.done)return;if(t=e.value,c(n,r,[t,this.counter++],!0))return t}}));r({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function(e){a(this);try{o(e)}catch(e){f(this,"throw",e)}return g?i(g,this,e):new v(s(this),{predicate:e})}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(51),a=n(19),s=n(10),u=n(41),c=n(57),l=n(125)("find",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:l},{find:function(e){s(this);try{a(e)}catch(e){c(this,"throw",e)}if(l)return i(l,this,e);var t=u(this),n=0;return o(t,(function(t,r){if(e(t,n++))return r(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(19),a=n(10),s=n(41),u=n(246),c=n(124),l=n(57),f=n(31),d=n(245),h=n(125),p=!f&&!d("flatMap",(function(){})),g=!f&&!p&&h("flatMap",TypeError),m=f||p||g,v=c((function(){for(var e,t,n=this.iterator,r=this.mapper;;){if(t=this.inner)try{if(!(e=a(i(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){l(n,"throw",e)}if(e=a(i(this.next,n)),this.done=!!e.done)return;try{this.inner=u(r(e.value,this.counter++),!1)}catch(e){l(n,"throw",e)}}}));r({target:"Iterator",proto:!0,real:!0,forced:m},{flatMap:function(e){a(this);try{o(e)}catch(e){l(this,"throw",e)}return g?i(g,this,e):new v(s(this),{mapper:e,inner:null})}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(51),a=n(19),s=n(10),u=n(41),c=n(57),l=n(125)("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:l},{forEach:function(e){s(this);try{a(e)}catch(e){c(this,"throw",e)}if(l)return i(l,this,e);var t=u(this),n=0;o(t,(function(t){e(t,n++)}),{IS_RECORD:!0})}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(27),a=n(79),s=n(162).IteratorPrototype,u=n(124),c=n(246),l=n(31)||function(){try{Iterator.from({return:null}).return()}catch(e){return!0}}(),f=u((function(){return i(this.next,this.iterator)}),!0);r({target:"Iterator",stat:!0,forced:l},{from:function(e){var t=c("string"==typeof e?o(e):e,!0);return a(s,t.iterator)?t.iterator:new f(t)}})},function(e,t,n){"use strict";var r=n(2),i=n(51),o=n(19),a=n(10),s=n(41),u=n(57),c=n(125),l=n(80),f=n(7),d=TypeError,h=f((function(){[].keys().reduce((function(){}),void 0)})),p=!h&&c("reduce",d);r({target:"Iterator",proto:!0,real:!0,forced:h||p},{reduce:function(e){a(this);try{o(e)}catch(e){u(this,"throw",e)}var t=arguments.length<2,n=t?void 0:arguments[1];if(p)return l(p,this,t?[e]:[e,n]);var r=s(this),c=0;if(i(r,(function(r){t?(t=!1,n=r):n=e(n,r,c),c++}),{IS_RECORD:!0}),t)throw new d("Reduce of empty iterator with no initial value");return n}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(51),a=n(19),s=n(10),u=n(41),c=n(57),l=n(125)("some",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:l},{some:function(e){s(this);try{a(e)}catch(e){c(this,"throw",e)}if(l)return i(l,this,e);var t=u(this),n=0;return o(t,(function(t,r){if(e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(10),a=n(41),s=n(243),u=n(211),c=n(124),l=n(57),f=n(125),d=n(31),h=!d&&f("take",RangeError),p=c((function(){var e=this.iterator;if(!this.remaining--)return this.done=!0,l(e,"normal",void 0);var t=o(i(this.next,e));return(this.done=!!t.done)?void 0:t.value}));r({target:"Iterator",proto:!0,real:!0,forced:d||h},{take:function(e){var t;o(this);try{t=u(s(+e))}catch(e){l(this,"throw",e)}return h?i(h,this,t):new p(a(this),{remaining:t})}})},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(51),a=n(41),s=[].push;r({target:"Iterator",proto:!0,real:!0},{toArray:function(){var e=[];return o(a(i(this)),s,{that:e,IS_RECORD:!0}),e}})},function(e,t,n){"use strict";var r=n(55),i=n(45),o=n(114),a=n(37),s=n(86),u=n(99),c=n(51),l=n(308),f=n(65),d=n(163),h=n(15),p=n(164).fastKey,g=n(34),m=g.set,v=g.getterFor;e.exports={getConstructor:function(e,t,n,l){var f=e((function(e,i){s(e,d),m(e,{type:t,index:r(null),first:null,last:null,size:0}),h||(e.size=0),u(i)||c(i,e[l],{that:e,AS_ENTRIES:n})})),d=f.prototype,g=v(t),y=function(e,t,n){var r,i,o=g(e),a=b(e,t);return a?a.value=n:(o.last=a={index:i=p(t,!0),key:t,value:n,previous:r=o.last,next:null,removed:!1},o.first||(o.first=a),r&&(r.next=a),h?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},b=function(e,t){var n,r=g(e),i=p(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key===t)return n};return o(d,{clear:function(){for(var e=g(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=r(null),h?e.size=0:this.size=0},delete:function(e){var t=g(this),n=b(this,e);if(n){var r=n.next,i=n.previous;delete t.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),t.first===n&&(t.first=r),t.last===n&&(t.last=i),h?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=g(this),r=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),o(d,n?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),h&&i(d,"size",{configurable:!0,get:function(){return g(this).size}}),f},setStrong:function(e,t,n){var r=t+" Iterator",i=v(t),o=v(r);l(e,t,(function(e,t){m(this,{type:r,target:e,state:i(e),kind:t,last:null})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?f("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=null,f(void 0,!0))}),n?"entries":"values",!n,!0),d(t)}}},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(19),a=n(42),s=n(51),u=n(66),c=n(31),l=n(7),f=u.Map,d=u.has,h=u.get,p=u.set,g=i([].push),m=c||l((function(){return 1!==f.groupBy("ab",(function(e){return e})).get("a").length}));r({target:"Map",stat:!0,forced:c||m},{groupBy:function(e,t){a(e),o(t);var n=new f,r=0;return s(e,(function(e){var i=t(e,r++);d(n,i)?g(h(n,i),e):p(n,i,[e])})),n}})},function(e,t,n){"use strict";var r=Math.log;e.exports=Math.log1p||function(e){var t=+e;return t>-1e-8&&t<1e-8?t-t*t/2:r(1+t)}},function(e,t,n){"use strict";var r=n(2),i=n(394);r({target:"Math",stat:!0},{f16round:function(e){return i(e,.0009765625,65504,6103515625e-14)}})},function(e,t,n){"use strict";var r=Math.log,i=Math.LOG10E;e.exports=Math.log10||function(e){return r(e)*i}},function(e,t,n){"use strict";var r=n(11).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},function(e,t,n){"use strict";var r=n(11),i=n(7),o=n(4),a=n(22),s=n(184).trim,u=n(185),c=o("".charAt),l=r.parseFloat,f=r.Symbol,d=f&&f.iterator,h=1/l(u+"-0")!=-1/0||d&&!i((function(){l(Object(d))}));e.exports=h?function(e){var t=s(a(e)),n=l(t);return 0===n&&"-"===c(t,0)?-0:n}:l},function(e,t,n){"use strict";var r=n(11),i=n(7),o=n(4),a=n(22),s=n(184).trim,u=n(185),c=r.parseInt,l=r.Symbol,f=l&&l.iterator,d=/^[+-]?0x/i,h=o(d.exec),p=8!==c(u+"08")||22!==c(u+"0x16")||f&&!i((function(){c(Object(f))}));e.exports=p?function(e,t){var n=s(a(e));return c(n,t>>>0||(h(d,n)?16:10))}:c},function(e,t,n){"use strict";var r=n(15),i=n(4),o=n(8),a=n(7),s=n(180),u=n(230),c=n(203),l=n(27),f=n(139),d=Object.assign,h=Object.defineProperty,p=i([].concat);e.exports=!d||a((function(){if(r&&1!==d({b:1},d(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection");return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!==d({},e)[n]||"abcdefghijklmnopqrst"!==s(d({},t)).join("")}))?function(e,t){for(var n=l(e),i=arguments.length,a=1,d=u.f,h=c.f;i>a;)for(var g,m=f(arguments[a++]),v=d?p(s(m),d(m)):s(m),y=v.length,b=0;y>b;)g=v[b++],r&&!o(h,m,g)||(n[g]=m[g]);return n}:d},function(e,t,n){"use strict";var r=n(15),i=n(7),o=n(4),a=n(63),s=n(180),u=n(61),c=o(n(203).f),l=o([].push),f=r&&i((function(){var e=Object.create(null);return e[2]=2,!c(e,2)})),d=function(e){return function(t){for(var n,i=u(t),o=s(i),d=f&&null===a(i),h=o.length,p=0,g=[];h>p;)n=o[p++],r&&!(d?n in i:c(i,n))||l(g,e?[n,i[n]]:i[n]);return g}};e.exports={entries:d(!0),values:d(!1)}},function(e,t,n){"use strict";var r=n(2),i=n(18),o=n(4),a=n(19),s=n(42),u=n(131),c=n(51),l=n(7),f=Object.groupBy,d=i("Object","create"),h=o([].push);r({target:"Object",stat:!0,forced:!f||l((function(){return 1!==f("ab",(function(e){return e})).a.length}))},{groupBy:function(e,t){s(e),a(t);var n=d(null),r=0;return c(e,(function(e){var i=u(t(e,r++));i in n?h(n[i],e):n[i]=[e]})),n}})},function(e,t,n){"use strict";n(2)({target:"Object",stat:!0},{hasOwn:n(24)})},function(e,t,n){"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var r=n(120);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},function(e,t,n){"use strict";var r,i,o,a,s,u=n(11),c=n(440),l=n(37),f=n(252).set,d=n(441),h=n(438),p=n(714),g=n(715),m=n(183),v=u.MutationObserver||u.WebKitMutationObserver,y=u.document,b=u.process,_=u.Promise,w=c("queueMicrotask");if(!w){var E=new d,S=function(){var e,t;for(m&&(e=b.domain)&&e.exit();t=E.get();)try{t()}catch(e){throw E.head&&r(),e}e&&e.enter()};h||m||g||!v||!y?!p&&_&&_.resolve?((a=_.resolve(void 0)).constructor=_,s=l(a.then,a),r=function(){s(S)}):m?r=function(){b.nextTick(S)}:(f=l(f,u),r=function(){f(S)}):(i=!0,o=y.createTextNode(""),new v(S).observe(o,{characterData:!0}),r=function(){o.data=i=!i}),w=function(e){E.head||r(),E.add(e)}}e.exports=w},function(e,t,n){"use strict";var r=n(11),i=n(15),o=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!i)return r[e];var t=o(r,e);return t&&t.value}},function(e,t,n){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=r},function(e,t,n){"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},function(e,t,n){"use strict";var r=n(10),i=n(16),o=n(133);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(19),a=n(133),s=n(165),u=n(51);r({target:"Promise",stat:!0,forced:n(253)},{allSettled:function(e){var t=this,n=a.f(t),r=n.resolve,c=n.reject,l=s((function(){var n=o(t.resolve),a=[],s=0,c=1;u(e,(function(e){var o=s++,u=!1;c++,i(n,t,e).then((function(e){u||(u=!0,a[o]={status:"fulfilled",value:e},--c||r(a))}),(function(e){u||(u=!0,a[o]={status:"rejected",reason:e},--c||r(a))}))})),--c||r(a)}));return l.error&&c(l.value),n.promise}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(19),a=n(18),s=n(133),u=n(165),c=n(51),l=n(253);r({target:"Promise",stat:!0,forced:l},{any:function(e){var t=this,n=a("AggregateError"),r=s.f(t),l=r.resolve,f=r.reject,d=u((function(){var r=o(t.resolve),a=[],s=0,u=1,d=!1;c(e,(function(e){var o=s++,c=!1;u++,i(r,t,e).then((function(e){c||d||(d=!0,l(e))}),(function(e){c||d||(c=!0,a[o]=e,--u||f(new n(a,"No one promise resolved")))}))})),--u||f(new n(a,"No one promise resolved"))}));return d.error&&f(d.value),r.promise}})},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(80),a=n(101),s=n(133),u=n(19),c=n(165),l=i.Promise,f=!1;r({target:"Promise",stat:!0,forced:!l||!l.try||c((function(){l.try((function(e){f=8===e}),8)})).error||!f},{try:function(e){var t=arguments.length>1?a(arguments,1):[],n=s.f(this),r=c((function(){return o(u(e),void 0,t)}));return(r.error?n.reject:n.resolve)(r.value),n.promise}})},function(e,t,n){"use strict";var r=n(2),i=n(133);r({target:"Promise",stat:!0},{withResolvers:function(){var e=i.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})},function(e,t,n){"use strict";var r=n(2),i=n(449),o=n(7),a=Array.fromAsync;r({target:"Array",stat:!0,forced:!a||o((function(){var e=0;return a.call((function(){return e++,[]}),{length:0}),1!==e}))},{fromAsync:i})},function(e,t,n){"use strict";var r=n(37),i=n(4),o=n(27),a=n(123),s=n(722),u=n(142),c=n(41),l=n(132),f=n(54),d=n(18),h=n(390),p=n(17),g=n(254),m=n(187).toArray,v=p("asyncIterator"),y=i(h("Array","values")),b=i(y([]).next),_=function(){return new w(this)},w=function(e){this.iterator=y(e)};w.prototype.next=function(){return b(this.iterator)},e.exports=function(e){var t=this,n=arguments.length,i=n>1?arguments[1]:void 0,h=n>2?arguments[2]:void 0;return new(d("Promise"))((function(n){var d=o(e);void 0!==i&&(i=r(i,h));var p=f(d,v),y=p?void 0:l(d)||_,b=a(t)?new t:[],w=p?s(d,p):new g(c(u(d,y)));n(m(w,i,b))}))}},function(e,t,n){"use strict";var r=n(2),i=n(15),o=n(18),a=n(19),s=n(86),u=n(35),c=n(114),l=n(45),f=n(17),d=n(34),h=n(409),p=n(119),g=o("Promise"),m=o("SuppressedError"),v=ReferenceError,y=f("asyncDispose"),b=f("toStringTag"),_=d.set,w=d.getterFor("AsyncDisposableStack"),E="async-dispose",S=function(e){var t=w(e);if("disposed"===t.state)throw new v("AsyncDisposableStack already disposed");return t},x=function(){_(s(this,k),{type:"AsyncDisposableStack",state:"pending",stack:[]}),i||(this.disposed=!1)},k=x.prototype;c(k,{disposeAsync:function(){var e=this;return new g((function(t,n){var r=w(e);if("disposed"===r.state)return t(void 0);r.state="disposed",i||(e.disposed=!0);var o,a=r.stack,s=a.length,u=!1,c=function(e){u?o=new m(e,o):(u=!0,o=e),l()},l=function(){if(s){var e=a[--s];a[s]=null;try{g.resolve(e()).then(l,c)}catch(e){c(e)}}else r.stack=null,u?n(o):t(void 0)};l()}))},use:function(e){return h(S(this),e,E),e},adopt:function(e,t){var n=S(this);return a(t),h(n,void 0,E,(function(){return t(e)})),e},defer:function(e){var t=S(this);a(e),h(t,void 0,E,e)},move:function(){var e=S(this),t=new x;return w(t).stack=e.stack,e.stack=[],e.state="disposed",i||(this.disposed=!0),t}}),i&&l(k,"disposed",{configurable:!0,get:function(){return"disposed"===w(this).state}}),u(k,y,k.disposeAsync,{name:"disposeAsync"}),u(k,b,"AsyncDisposableStack",{nonWritable:!0}),r({global:!0,constructor:!0,forced:p&&p<136},{AsyncDisposableStack:x})},function(e,t,n){"use strict";var r=n(8),i=n(35),o=n(18),a=n(54),s=n(24),u=n(17),c=n(214),l=u("asyncDispose"),f=o("Promise");s(c,l)||i(c,l,(function(){var e=this;return new f((function(t,n){var i=a(e,"return");i?f.resolve(r(i,e)).then((function(){t(void 0)}),n):t(void 0)}))}))},function(e,t,n){"use strict";var r=n(24);e.exports=function(e){return void 0!==e&&(r(e,"value")||r(e,"writable"))}},function(e,t,n){"use strict";var r=n(11),i=n(7),o=r.RegExp,a=!i((function(){var e=!0;try{o(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(a.hasIndices="d"),a)i(s,a[s]);return Object.getOwnPropertyDescriptor(o.prototype,"flags").get.call(t)!==r||n!==r}));e.exports={correct:a}},function(e,t,n){"use strict";var r=n(7),i=n(11).RegExp;e.exports=r((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(257),a=n(24),s=n(241).start,u=n(185),c=Array,l=RegExp.escape,f=i("".charAt),d=i("".charCodeAt),h=i(1.1.toString),p=i([].join),g=/^[0-9a-z]/i,m=/^[$()*+./?[\\\]^{|}]/,v=RegExp("^[!\"#%&',\\-:;<=>@`~"+u+"]"),y=i(g.exec),b={"\t":"t","\n":"n","\v":"v","\f":"f","\r":"r"},_=function(e){var t=h(d(e,0),16);return t.length<3?"\\x"+s(t,2,"0"):"\\u"+s(t,4,"0")};r({target:"RegExp",stat:!0,forced:!l||"\\x61b"!==l("ab")},{escape:function(e){o(e);for(var t=e.length,n=c(t),r=0;r<t;r++){var i=f(e,r);if(0===r&&y(g,i))n[r]=_(i);else if(a(b,i))n[r]="\\"+b[i];else if(y(m,i))n[r]="\\"+i;else if(y(v,i))n[r]=_(i);else{var s=d(i,0);55296!=(63488&s)?n[r]=i:s>=56320||r+1>=t||56320!=(64512&d(e,r+1))?n[r]=_(i):(n[r]=i,n[++r]=f(e,r))}}return p(n,"")}})},function(e,t,n){"use strict";var r=n(2),i=n(457),o=n(7);r({target:"Set",proto:!0,real:!0,forced:!n(168)("difference",(function(e){return 0===e.size}))||o((function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var n=e++>1;return t.has(1)&&t.clear(),{done:n,value:2}}}}},t=new Set([1,2,3,4]);return 3!==t.difference(e).size}))},{difference:i})},function(e,t,n){"use strict";var r=n(81),i=n(74),o=n(324),a=n(216),s=n(167),u=n(102),c=n(145),l=i.has,f=i.remove;e.exports=function(e){var t=r(this),n=s(e),i=o(t);return a(t)<=n.size?u(t,(function(e){n.includes(e)&&f(i,e)})):c(n.getIterator(),(function(e){l(i,e)&&f(i,e)})),i}},function(e,t,n){"use strict";var r=n(2),i=n(7),o=n(459);r({target:"Set",proto:!0,real:!0,forced:!n(168)("intersection",(function(e){return 2===e.size&&e.has(1)&&e.has(2)}))||i((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:o})},function(e,t,n){"use strict";var r=n(81),i=n(74),o=n(216),a=n(167),s=n(102),u=n(145),c=i.Set,l=i.add,f=i.has;e.exports=function(e){var t=r(this),n=a(e),i=new c;return o(t)>n.size?u(n.getIterator(),(function(e){f(t,e)&&l(i,e)})):s(t,(function(e){n.includes(e)&&l(i,e)})),i}},function(e,t,n){"use strict";var r=n(2),i=n(461);r({target:"Set",proto:!0,real:!0,forced:!n(168)("isDisjointFrom",(function(e){return!e}))},{isDisjointFrom:i})},function(e,t,n){"use strict";var r=n(81),i=n(74).has,o=n(216),a=n(167),s=n(102),u=n(145),c=n(57);e.exports=function(e){var t=r(this),n=a(e);if(o(t)<=n.size)return!1!==s(t,(function(e){if(n.includes(e))return!1}),!0);var l=n.getIterator();return!1!==u(l,(function(e){if(i(t,e))return c(l,"normal",!1)}))}},function(e,t,n){"use strict";var r=n(2),i=n(463);r({target:"Set",proto:!0,real:!0,forced:!n(168)("isSubsetOf",(function(e){return e}))},{isSubsetOf:i})},function(e,t,n){"use strict";var r=n(81),i=n(216),o=n(102),a=n(167);e.exports=function(e){var t=r(this),n=a(e);return!(i(t)>n.size)&&!1!==o(t,(function(e){if(!n.includes(e))return!1}),!0)}},function(e,t,n){"use strict";var r=n(2),i=n(465);r({target:"Set",proto:!0,real:!0,forced:!n(168)("isSupersetOf",(function(e){return!e}))},{isSupersetOf:i})},function(e,t,n){"use strict";var r=n(81),i=n(74).has,o=n(216),a=n(167),s=n(145),u=n(57);e.exports=function(e){var t=r(this),n=a(e);if(o(t)<n.size)return!1;var c=n.getIterator();return!1!==s(c,(function(e){if(!i(t,e))return u(c,"normal",!1)}))}},function(e,t,n){"use strict";var r=n(2),i=n(467),o=n(468);r({target:"Set",proto:!0,real:!0,forced:!n(168)("symmetricDifference")||!o("symmetricDifference")},{symmetricDifference:i})},function(e,t,n){"use strict";var r=n(81),i=n(74),o=n(324),a=n(167),s=n(145),u=i.add,c=i.has,l=i.remove;e.exports=function(e){var t=r(this),n=a(e).getIterator(),i=o(t);return s(n,(function(e){c(t,e)?l(i,e):u(i,e)})),i}},function(e,t,n){"use strict";e.exports=function(e){try{var t=new Set,n={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},r=t[e](n);return 1===r.size&&4===r.values().next().value}catch(e){return!1}}},function(e,t,n){"use strict";var r=n(2),i=n(470),o=n(468);r({target:"Set",proto:!0,real:!0,forced:!n(168)("union")||!o("union")},{union:i})},function(e,t,n){"use strict";var r=n(81),i=n(74).add,o=n(324),a=n(167),s=n(145);e.exports=function(e){var t=r(this),n=a(e).getIterator(),u=o(t);return s(n,(function(e){i(u,e)})),u}},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(121),a=RangeError,s=String.fromCharCode,u=String.fromCodePoint,c=i([].join);r({target:"String",stat:!0,arity:1,forced:!!u&&1!==u.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,i=0;r>i;){if(t=+arguments[i++],o(t,1114111)!==t)throw new a(t+" is not a valid code point");n[i]=t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320)}return c(n,"")}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(42),a=n(22),s=i("".charCodeAt);r({target:"String",proto:!0},{isWellFormed:function(){for(var e=a(o(this)),t=e.length,n=0;n<t;n++){var r=s(e,n);if(55296==(63488&r)&&(r>=56320||++n>=t||56320!=(64512&s(e,n))))return!1}return!0}})},function(e,t,n){"use strict";var r=n(188).charAt,i=n(22),o=n(34),a=n(308),s=n(65),u=o.set,c=o.getterFor("String Iterator");a(String,"String",(function(e){u(this,{type:"String Iterator",string:i(e),index:0})}),(function(){var e,t=c(this),n=t.string,i=t.index;return i>=n.length?s(void 0,!0):(e=r(n,i),t.index+=e.length,s(e,!1))}))},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(158),a=n(161),s=n(65),u=n(42),c=n(100),l=n(22),f=n(10),d=n(16),h=n(78),p=n(255),g=n(166),m=n(54),v=n(35),y=n(7),b=n(17),_=n(250),w=n(259),E=n(217),S=n(34),x=n(31),k=b("matchAll"),T=S.set,O=S.getterFor("RegExp String Iterator"),P=RegExp.prototype,R=TypeError,A=o("".indexOf),C=o("".matchAll),D=!!C&&!y((function(){C("a",/./)})),L=a((function(e,t,n,r){T(this,{type:"RegExp String Iterator",regexp:e,string:t,global:n,unicode:r,done:!1})}),"RegExp String",(function(){var e=O(this);if(e.done)return s(void 0,!0);var t=e.regexp,n=e.string,r=E(t,n);return null===r?(e.done=!0,s(void 0,!0)):e.global?(""===l(r[0])&&(t.lastIndex=w(n,c(t.lastIndex),e.unicode)),s(r,!1)):(e.done=!0,s(r,!1))})),I=function(e){var t,n,r,i=f(this),o=l(e),a=_(i,RegExp),s=l(g(i));return t=new a(a===RegExp?i.source:i,s),n=!!~A(s,"g"),r=!!~A(s,"u"),t.lastIndex=c(i.lastIndex),new L(t,o,n,r)};r({target:"String",proto:!0,forced:D},{matchAll:function(e){var t,n,r,o,a=u(this);if(d(e)){if(p(e)&&(t=l(u(g(e))),!~A(t,"g")))throw new R("`.matchAll` does not allow non-global regexes");if(D)return C(a,e);if(void 0===(r=m(e,k))&&x&&"RegExp"===h(e)&&(r=I),r)return i(r,e,a)}else if(D)return C(a,e);return n=l(a),o=new RegExp(e,"g"),x?i(I,o,n):o[k](n)}}),x||k in P||v(P,k,I)},function(e,t,n){"use strict";var r=n(120);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},function(e,t,n){"use strict";var r=n(4),i=n(27),o=Math.floor,a=r("".charAt),s=r("".replace),u=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,f,d){var h=n+e.length,p=r.length,g=l;return void 0!==f&&(f=i(f),g=c),s(d,g,(function(i,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,h);case"<":c=f[u(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>p){var d=o(l/10);return 0===d?i:d<=p?void 0===r[d-1]?a(s,1):r[d-1]+a(s,1):i}c=r[l-1]}return void 0===c?"":c}))}},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(4),a=n(42),s=n(23),u=n(16),c=n(255),l=n(22),f=n(54),d=n(166),h=n(476),p=n(17),g=n(31),m=p("replace"),v=TypeError,y=o("".indexOf),b=o("".replace),_=o("".slice),w=Math.max;r({target:"String",proto:!0},{replaceAll:function(e,t){var n,r,o,p,E,S,x,k,T,O,P=a(this),R=0,A="";if(u(e)){if((n=c(e))&&(r=l(a(d(e))),!~y(r,"g")))throw new v("`.replaceAll` does not allow non-global regexes");if(o=f(e,m))return i(o,e,P,t);if(g&&n)return b(l(P),e,t)}for(p=l(P),E=l(e),(S=s(t))||(t=l(t)),x=E.length,k=w(1,x),T=y(p,E);-1!==T;)O=S?l(t(E,T,p)):h(E,p,T,[],void 0,t),A+=_(p,R,T)+O,R=T+x,T=T+k>p.length?-1:y(p,E,T+k);return R<p.length&&(A+=_(p,R)),A}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(4),a=n(42),s=n(22),u=n(7),c=Array,l=o("".charAt),f=o("".charCodeAt),d=o([].join),h="".toWellFormed,p=h&&u((function(){return"1"!==i(h,1)}));r({target:"String",proto:!0,forced:p},{toWellFormed:function(){var e=s(a(this));if(p)return i(h,e);for(var t=e.length,n=c(t),r=0;r<t;r++){var o=f(e,r);55296!=(63488&o)?n[r]=l(e,r):o>=56320||r+1>=t||56320!=(64512&f(e,r+1))?n[r]="�":(n[r]=l(e,r),n[++r]=l(e,r))}return d(n,"")}})},function(e,t,n){"use strict";var r=n(184).end,i=n(327);e.exports=i("trimEnd")?function(){return r(this)}:"".trimEnd},function(e,t,n){"use strict";var r=n(184).start,i=n(327);e.exports=i("trimStart")?function(){return r(this)}:"".trimStart},function(e,t,n){"use strict";var r=n(211),i=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw new i("Wrong offset");return n}},function(e,t,n){"use strict";var r=Math.round;e.exports=function(e){var t=r(e);return t<0?0:t>255?255:255&t}},function(e,t,n){"use strict";var r=n(37),i=n(8),o=n(251),a=n(27),s=n(28),u=n(142),c=n(132),l=n(305),f=n(329),d=n(26).aTypedArrayConstructor,h=n(260);e.exports=function(e){var t,n,p,g,m,v,y,b,_=o(this),w=a(e),E=arguments.length,S=E>1?arguments[1]:void 0,x=void 0!==S,k=c(w);if(k&&!l(k))for(b=(y=u(w,k)).next,w=[];!(v=i(b,y)).done;)w.push(v.value);for(x&&E>2&&(S=r(S,arguments[2])),n=s(w),p=new(d(_))(n),g=f(p),t=0;n>t;t++)m=x?S(w[t],t):w[t],p[t]=g?h(m):+m;return p}},function(e,t,n){"use strict";var r=n(26),i=n(28),o=n(44),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("at",(function(e){var t=a(this),n=i(t),r=o(e),s=r>=0?r:n+r;return s<0||s>=n?void 0:t[s]}))},function(e,t,n){"use strict";var r=n(26),i=n(234).findLast,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLast",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(26),i=n(234).findLastIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLastIndex",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(388),i=n(26),o=i.aTypedArray,a=i.exportTypedArrayMethod,s=i.getTypedArrayConstructor;a("toReversed",(function(){return r(o(this),s(this))}))},function(e,t,n){"use strict";var r=n(26),i=n(4),o=n(19),a=n(143),s=r.aTypedArray,u=r.getTypedArrayConstructor,c=r.exportTypedArrayMethod,l=i(r.TypedArrayPrototype.sort);c("toSorted",(function(e){void 0!==e&&o(e);var t=s(this),n=a(u(t),t);return l(n,e)}))},function(e,t,n){"use strict";var r=n(393),i=n(26),o=n(329),a=n(44),s=n(260),u=i.aTypedArray,c=i.getTypedArrayConstructor,l=i.exportTypedArrayMethod,f=function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}(),d=f&&function(){try{new Int8Array(1).with(-.5,1)}catch(e){return!0}}();l("with",{with:function(e,t){var n=u(this),i=a(e),l=o(n)?s(t):+t;return r(n,c(n),i,l)}}.with,!f||d)},function(e,t,n){"use strict";var r=n(4),i=n(114),o=n(164).getWeakData,a=n(86),s=n(10),u=n(99),c=n(16),l=n(51),f=n(56),d=n(24),h=n(34),p=h.set,g=h.getterFor,m=f.find,v=f.findIndex,y=r([].splice),b=0,_=function(e){return e.frozen||(e.frozen=new w)},w=function(){this.entries=[]},E=function(e,t){return m(e.entries,(function(e){return e[0]===t}))};w.prototype={get:function(e){var t=E(this,e);if(t)return t[1]},has:function(e){return!!E(this,e)},set:function(e,t){var n=E(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=v(this.entries,(function(t){return t[0]===e}));return~t&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var f=e((function(e,i){a(e,h),p(e,{type:t,id:b++,frozen:null}),u(i)||l(i,e[r],{that:e,AS_ENTRIES:n})})),h=f.prototype,m=g(t),v=function(e,t,n){var r=m(e),i=o(s(t),!0);return!0===i?_(r).set(t,n):i[r.id]=n,e};return i(h,{delete:function(e){var t=m(this);if(!c(e))return!1;var n=o(e);return!0===n?_(t).delete(e):n&&d(n,t.id)&&delete n[t.id]},has:function(e){var t=m(this);if(!c(e))return!1;var n=o(e);return!0===n?_(t).has(e):n&&d(n,t.id)}}),i(h,n?{get:function(e){var t=m(this);if(c(e)){var n=o(e);if(!0===n)return _(t).get(e);if(n)return n[t.id]}},set:function(e,t){return v(this,e,t)}}:{add:function(e){return v(this,e,!0)}}),f}}},function(e,t,n){"use strict";var r=n(37),i=n(4),o=n(139),a=n(27),s=n(28),u=n(66),c=u.Map,l=u.get,f=u.has,d=u.set,h=i([].push);e.exports=function(e){for(var t,n,i=a(this),u=o(i),p=r(e,arguments.length>1?arguments[1]:void 0),g=new c,m=s(u),v=0;m>v;v++)t=p(n=u[v],v,i),f(g,t)?h(l(g,t),n):d(g,t,[n]);return g}},function(e,t,n){"use strict";var r=n(8),i=n(493),o=function(e,t){return[t,e]};e.exports=function(){return r(i,this,o)}},function(e,t,n){"use strict";var r=n(8),i=n(19),o=n(10),a=n(16),s=n(41),u=n(189),c=n(65),l=n(215),f=u((function(e){var t=this,n=t.iterator,i=t.mapper;return new e((function(s,u){var f=function(e){t.done=!0,u(e)},d=function(e){l(n,f,e,f)};e.resolve(o(r(t.next,n))).then((function(n){try{if(o(n).done)t.done=!0,s(c(void 0,!0));else{var r=n.value;try{var u=i(r,t.counter++),l=function(e){s(c(e,!1))};a(u)?e.resolve(u).then(l,d):l(u)}catch(e){d(e)}}}catch(e){f(e)}}),f)}))}));e.exports=function(e){return o(this),i(e),new f(s(this),{mapper:e})}},function(e,t,n){"use strict";var r=n(8),i=n(23),o=n(10),a=n(41),s=n(132),u=n(54),c=n(17),l=n(254),f=c("asyncIterator");e.exports=function(e){var t,n=o(e),c=!0,d=u(n,f);return i(d)||(d=s(n),c=!1),void 0!==d?t=r(d,n):(t=n,c=!0),o(t),a(c?t:new l(a(t)))}},function(e,t,n){"use strict";var r=n(8),i=n(189);e.exports=i((function(){return r(this.next,this.iterator)}),!0)},function(e,t,n){"use strict";n(316),n(331);var r=n(18),i=n(55),o=n(16),a=Object,s=TypeError,u=r("Map"),c=r("WeakMap"),l=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=i(null)};l.prototype.get=function(e,t){return this[e]||(this[e]=t())},l.prototype.next=function(e,t,n){var r=n?this.objectsByIndex[e]||(this.objectsByIndex[e]=new c):this.primitives||(this.primitives=new u),i=r.get(t);return i||r.set(t,i=new l),i};var f=new l;e.exports=function(){var e,t,n=f,r=arguments.length;for(e=0;e<r;e++)o(t=arguments[e])&&(n=n.next(e,t,!0));if(this===a&&n===f)throw new s("Composite keys must contain a non-primitive component");for(e=0;e<r;e++)o(t=arguments[e])||(n=n.next(e,t,!1));return n}},function(e,t,n){"use strict";var r=n(4),i=n(19);e.exports=function(){return r(i(this))}},function(e,t,n){"use strict";n(315);var r=n(8),i=n(162).IteratorPrototype.map,o=function(e,t){return[t,e]};e.exports=function(){return r(i,this,o)}},function(e,t,n){"use strict";var r=n(10),i=n(8),o=n(124),a=n(65),s=n(41),u=n(57),c=n(4),l=RangeError,f=c([].push),d=c([].slice),h=o((function(){for(var e,t,n=this.iterator,o=this.next,s=this.buffer,u=this.windowSize,c=this.sliding;;){if(e=r(i(o,n)),t=this.done=!!e.done,c&&t&&s.length&&s.length<u)return a(s,!1);if(t)return a(void 0,!0);if(s.length===u&&(this.buffer=s=d(s,1)),f(s,e.value),s.length===u)return a(s,!1)}}),!1,!0);e.exports=function(e,t,n){return r(e),"number"==typeof t&&t&&t>>>0===t?new h(s(e),{windowSize:t,buffer:[],sliding:n}):u(e,"throw",new l("windowSize must be integer in [1, 2^32-1]"))}},function(e,t,n){"use strict";var r=TypeError;e.exports=function(e){var t=e&&e.mode;if(void 0===t||"shortest"===t||"longest"===t||"strict"===t)return t||"shortest";throw new r("Incorrect `mode` option")}},function(e,t,n){"use strict";var r=n(8),i=n(4),o=n(124),a=n(244),s=TypeError,u=i([].slice),c=i([].push),l=o((function(){var e=this.iterCount;if(e){for(var t,n,i=this.openIters,o=this.iters,u=this.padding,l=this.mode,f=this.finishResults,d=[],h=0;h<e;h++){var p=o[h];if(null===p)c(d,u[h]);else{try{n=(t=r(p.next,p.iterator)).done,t=t.value}catch(e){return i[h]=void 0,a(i,"throw",e)}if(n){if(i[h]=void 0,this.openItersCount--,"shortest"===l)return this.done=!0,a(i,"normal",void 0);if("strict"===l){if(h)return a(i,"throw",new s("Iterator is exhausted"));for(var g,m,v=1;v<e;v++){try{m=(g=r(o[v].next,o[v].iterator)).done,g=g.value}catch(e){return i[v]=void 0,a(i,"throw",g)}if(!m)return a(i,"throw",new s("Iterator is exhausted"));i[v]=void 0,this.openItersCount--}return void(this.done=!0)}if(!this.openItersCount)return void(this.done=!0);o[h]=null,t=u[h]}}c(d,t)}return f?f(d):d}this.done=!0}));e.exports=function(e,t,n,r){var i=e.length;return new l({iters:e,iterCount:i,openIters:u(e,0),openItersCount:i,mode:t,padding:n,finishResults:r})}},function(e,t,n){"use strict";var r=n(7);e.exports=!r((function(){var e=JSON.rawJSON("9007199254740993");return!JSON.isRawJSON(e)||"9007199254740993"!==JSON.stringify(e)}))},function(e,t,n){"use strict";var r=n(16),i=n(34).get;e.exports=function(e){if(!r(e))return!1;var t=i(e);return!!t&&"RawJSON"===t.type}},function(e,t,n){"use strict";var r=n(4),i=n(24),o=SyntaxError,a=parseInt,s=String.fromCharCode,u=r("".charAt),c=r("".slice),l=r(/./.exec),f={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},d=/^[\da-f]{4}$/i,h=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var n=!0,r="";t<e.length;){var p=u(e,t);if("\\"===p){var g=c(e,t,t+2);if(i(f,g))r+=f[g],t+=2;else{if("\\u"!==g)throw new o('Unknown escape sequence: "'+g+'"');var m=c(e,t+=2,t+4);if(!l(d,m))throw new o("Bad Unicode escape at: "+t);r+=s(a(m,16)),t+=4}}else{if('"'===p){n=!1,t++;break}if(l(h,p))throw new o("Bad control character in string literal at: "+t);r+=p,t++}}if(n)throw new o("Unterminated string at: "+t);return{value:r,end:t}}},function(e,t,n){"use strict";var r=n(922),i=Math.min,o=Math.max;e.exports=function(e,t,n){return i(o(r(e),r(t)),r(n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){var o=+e,a=+t,s=+n,u=+r,c=+i;return o!=o||a!=a||s!=s||u!=u||c!=c?NaN:o===1/0||o===-1/0?o:(o-a)*(c-u)/(s-a)+u}},function(e,t,n){"use strict";var r=n(4),i=n(61),o=n(22),a=n(28),s=TypeError,u=r([].push),c=r([].join);e.exports=function(e){var t=i(e),n=a(t);if(!n)return"";for(var r=arguments.length,l=[],f=0;;){var d=t[f++];if(void 0===d)throw new s("Incorrect template");if(u(l,o(d)),f===n)return c(l,"");f<r&&u(l,o(arguments[f]))}}},function(e,t,n){"use strict";var r=n(18),i=n(4),o=r("Symbol"),a=o.keyFor,s=i(o.prototype.valueOf);e.exports=o.isRegisteredSymbol||function(e){try{return void 0!==a(s(e))}catch(e){return!1}}},function(e,t,n){"use strict";for(var r=n(141),i=n(18),o=n(4),a=n(140),s=n(17),u=i("Symbol"),c=u.isWellKnownSymbol,l=i("Object","getOwnPropertyNames"),f=o(u.prototype.valueOf),d=r("wks"),h=0,p=l(u),g=p.length;h<g;h++)try{var m=p[h];a(u[m])&&s(m)}catch(e){}e.exports=function(e){if(c&&c(e))return!0;try{for(var t=f(e),n=0,r=l(d),i=r.length;n<i;n++)if(d[r[n]]==t)return!0}catch(e){}return!1}},function(e,t,n){"use strict";var r=n(11),i=n(4),o=n(261),a=n(257),s=n(24),u=n(264),c=n(511),l=n(210),f=u.c2i,d=u.c2iUrl,h=r.SyntaxError,p=r.TypeError,g=i("".charAt),m=function(e,t){for(var n=e.length;t<n;t++){var r=g(e,t);if(" "!==r&&"\t"!==r&&"\n"!==r&&"\f"!==r&&"\r"!==r)break}return t},v=function(e,t,n){var r=e.length;r<4&&(e+=2===r?"AA":"A");var i=(t[g(e,0)]<<18)+(t[g(e,1)]<<12)+(t[g(e,2)]<<6)+t[g(e,3)],o=[i>>16&255,i>>8&255,255&i];if(2===r){if(n&&0!==o[1])throw new h("Extra bits");return[o[0]]}if(3===r){if(n&&0!==o[2])throw new h("Extra bits");return[o[0],o[1]]}return o},y=function(e,t,n){for(var r=t.length,i=0;i<r;i++)e[n+i]=t[i];return n+r};e.exports=function(e,t,n,r){a(e),o(t);var i="base64"===c(t)?f:d,u=t?t.lastChunkHandling:void 0;if(void 0===u&&(u="loose"),"loose"!==u&&"strict"!==u&&"stop-before-partial"!==u)throw new p("Incorrect `lastChunkHandling` option");n&&l(n.buffer);var b=n||[],_=0,w=0,E="",S=0;if(r)for(;;){if((S=m(e,S))===e.length){if(E.length>0){if("stop-before-partial"===u)break;if("loose"!==u)throw new h("Missing padding");if(1===E.length)throw new h("Malformed padding: exactly one additional character");_=y(b,v(E,i,!1),_)}w=e.length;break}var x=g(e,S);if(++S,"="===x){if(E.length<2)throw new h("Padding is too early");if(S=m(e,S),2===E.length){if(S===e.length){if("stop-before-partial"===u)break;throw new h("Malformed padding: only one =")}"="===g(e,S)&&(++S,S=m(e,S))}if(S<e.length)throw new h("Unexpected character after padding");_=y(b,v(E,i,"strict"===u),_),w=e.length;break}if(!s(i,x))throw new h("Unexpected character");var k=r-_;if(1===k&&2===E.length||2===k&&3===E.length)break;if(4===(E+=x).length&&(_=y(b,v(E,i,!1),_),E="",w=S,_===r))break}return{bytes:b,read:w,written:_}}},function(e,t,n){"use strict";var r=TypeError;e.exports=function(e){var t=e&&e.alphabet;if(void 0===t||"base64"===t||"base64url"===t)return t||"base64";throw new r("Incorrect `alphabet` option")}},function(e,t,n){"use strict";var r=n(11),i=n(4),o=r.Uint8Array,a=r.SyntaxError,s=r.parseInt,u=Math.min,c=/[^\da-f]/i,l=i(c.exec),f=i("".slice);e.exports=function(e,t){var n=e.length;if(n%2!=0)throw new a("String should be an even number of characters");for(var r=t?u(t.length,n/2):n/2,i=t||new o(r),d=0,h=0;h<r;){var p=f(e,d,d+=2);if(l(c,p))throw new a("String should only contain hex characters");i[h++]=s(p,16)}return{bytes:i,read:d}}},function(e,t,n){"use strict";var r=n(218).has;e.exports=function(e){return r(e),e}},function(e,t,n){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){"use strict";var r=n(226)("span").classList,i=r&&r.constructor&&r.constructor.prototype;e.exports=i===Object.prototype?void 0:i},function(e,t,n){"use strict";e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},function(e,t,n){"use strict";n(236),n(471);var r=n(2),i=n(11),o=n(440),a=n(18),s=n(8),u=n(4),c=n(15),l=n(267),f=n(35),d=n(45),h=n(114),p=n(91),g=n(161),m=n(34),v=n(86),y=n(23),b=n(24),_=n(37),w=n(90),E=n(10),S=n(16),x=n(22),k=n(55),T=n(98),O=n(142),P=n(132),R=n(65),A=n(106),C=n(17),D=n(310),L=C("iterator"),I=m.set,M=m.getterFor("URLSearchParams"),j=m.getterFor("URLSearchParamsIterator"),N=o("fetch"),F=o("Request"),U=o("Headers"),B=F&&F.prototype,q=U&&U.prototype,V=i.TypeError,$=i.encodeURIComponent,z=String.fromCharCode,G=a("String","fromCodePoint"),W=parseInt,H=u("".charAt),K=u([].join),Y=u([].push),Q=u("".replace),X=u([].shift),J=u([].splice),Z=u("".split),ee=u("".slice),te=u(/./.exec),ne=/\+/g,re=/^[0-9a-f]+$/i,ie=function(e,t){var n=ee(e,t,t+2);return te(re,n)?W(n,16):NaN},oe=function(e){for(var t=0,n=128;n>0&&0!=(e&n);n>>=1)t++;return t},ae=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},se=function(e){for(var t=(e=Q(e,ne," ")).length,n="",r=0;r<t;){var i=H(e,r);if("%"===i){if("%"===H(e,r+1)||r+3>t){n+="%",r++;continue}var o=ie(e,r+1);if(o!=o){n+=i,r++;continue}r+=2;var a=oe(o);if(0===a)i=z(o);else{if(1===a||a>4){n+="�",r++;continue}for(var s=[o],u=1;u<a&&!(++r+3>t||"%"!==H(e,r));){var c=ie(e,r+1);if(c!=c){r+=3;break}if(c>191||c<128)break;Y(s,c),r+=2,u++}if(s.length!==a){n+="�";continue}var l=ae(s);null===l?n+="�":i=G(l)}}n+=i,r++}return n},ue=/[!'()~]|%20/g,ce={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},le=function(e){return ce[e]},fe=function(e){return Q($(e),ue,le)},de=g((function(e,t){I(this,{type:"URLSearchParamsIterator",target:M(e).entries,index:0,kind:t})}),"URLSearchParams",(function(){var e=j(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,R(void 0,!0);var r=t[n];switch(e.kind){case"keys":return R(r.key,!1);case"values":return R(r.value,!1)}return R([r.key,r.value],!1)}),!0),he=function(e){this.entries=[],this.url=null,void 0!==e&&(S(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===H(e,0)?ee(e,1):e:x(e)))};he.prototype={type:"URLSearchParams",bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,o,a,u,c=this.entries,l=P(e);if(l)for(n=(t=O(e,l)).next;!(r=s(n,t)).done;){if(o=(i=O(E(r.value))).next,(a=s(o,i)).done||(u=s(o,i)).done||!s(o,i).done)throw new V("Expected sequence with length 2");Y(c,{key:x(a.value),value:x(u.value)})}else for(var f in e)b(e,f)&&Y(c,{key:f,value:x(e[f])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,i=Z(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(n=Z(t,"="),Y(r,{key:se(X(n)),value:se(K(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],Y(n,fe(e.key)+"="+fe(e.value));return K(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var pe=function(){v(this,ge);var e=arguments.length>0?arguments[0]:void 0,t=I(this,new he(e));c||(this.size=t.entries.length)},ge=pe.prototype;if(h(ge,{append:function(e,t){var n=M(this);A(arguments.length,2),Y(n.entries,{key:x(e),value:x(t)}),c||this.length++,n.updateURL()},delete:function(e){for(var t=M(this),n=A(arguments.length,1),r=t.entries,i=x(e),o=n<2?void 0:arguments[1],a=void 0===o?o:x(o),s=0;s<r.length;){var u=r[s];if(u.key!==i||void 0!==a&&u.value!==a)s++;else if(J(r,s,1),void 0!==a)break}c||(this.size=r.length),t.updateURL()},get:function(e){var t=M(this).entries;A(arguments.length,1);for(var n=x(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=M(this).entries;A(arguments.length,1);for(var n=x(e),r=[],i=0;i<t.length;i++)t[i].key===n&&Y(r,t[i].value);return r},has:function(e){for(var t=M(this).entries,n=A(arguments.length,1),r=x(e),i=n<2?void 0:arguments[1],o=void 0===i?i:x(i),a=0;a<t.length;){var s=t[a++];if(s.key===r&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var n=M(this);A(arguments.length,1);for(var r,i=n.entries,o=!1,a=x(e),s=x(t),u=0;u<i.length;u++)(r=i[u]).key===a&&(o?J(i,u--,1):(o=!0,r.value=s));o||Y(i,{key:a,value:s}),c||(this.size=i.length),n.updateURL()},sort:function(){var e=M(this);D(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=M(this).entries,r=_(e,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new de(this,"keys")},values:function(){return new de(this,"values")},entries:function(){return new de(this,"entries")}},{enumerable:!0}),f(ge,L,ge.entries,{name:"entries"}),f(ge,"toString",(function(){return M(this).serialize()}),{enumerable:!0}),c&&d(ge,"size",{get:function(){return M(this).entries.length},configurable:!0,enumerable:!0}),p(pe,"URLSearchParams"),r({global:!0,constructor:!0,forced:!l},{URLSearchParams:pe}),!l&&y(U)){var me=u(q.has),ve=u(q.set),ye=function(e){if(S(e)){var t,n=e.body;if("URLSearchParams"===w(n))return t=e.headers?new U(e.headers):new U,me(t,"content-type")||ve(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),k(e,{body:T(0,x(n)),headers:T(0,t)})}return e};if(y(N)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return N(e,arguments.length>1?ye(arguments[1]):{})}}),y(F)){var be=function(e){return v(this,B),new F(e,arguments.length>1?ye(arguments[1]):{})};B.constructor=be,be.prototype=B,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:be})}}e.exports={URLSearchParams:pe,getState:M}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(518);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(21),i=n(9),o=n(280),a=n(269),s=n(127),u=n(149),c=n(25),l=n(175),f=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new o.a,this.mutationCache=e.mutationCache||new a.a,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=s.a.subscribe((function(){s.a.isFocused()&&u.a.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=u.a.subscribe((function(){s.a.isFocused()&&u.a.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=Object(i.m)(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll(Object(r.a)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,n){var r=Object(i.p)(e),o=this.defaultQueryOptions(r);return this.queryCache.build(this,o).setData(t,n)},t.setQueriesData=function(e,t,n){var r=this;return c.a.batch((function(){return r.getQueryCache().findAll(e).map((function(e){var i=e.queryKey;return[i,r.setQueryData(i,t,n)]}))}))},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=Object(i.m)(e,t)[0],r=this.queryCache;c.a.batch((function(){r.findAll(n).forEach((function(e){r.remove(e)}))}))},t.resetQueries=function(e,t,n){var o=this,a=Object(i.m)(e,t,n),s=a[0],u=a[1],l=this.queryCache,f=Object(r.a)({},s,{active:!0});return c.a.batch((function(){return l.findAll(s).forEach((function(e){e.reset()})),o.refetchQueries(f,u)}))},t.cancelQueries=function(e,t,n){var r=this,o=Object(i.m)(e,t,n),a=o[0],s=o[1],u=void 0===s?{}:s;void 0===u.revert&&(u.revert=!0);var l=c.a.batch((function(){return r.queryCache.findAll(a).map((function(e){return e.cancel(u)}))}));return Promise.all(l).then(i.l).catch(i.l)},t.invalidateQueries=function(e,t,n){var o,a,s,u=this,l=Object(i.m)(e,t,n),f=l[0],d=l[1],h=Object(r.a)({},f,{active:null==(o=null!=(a=f.refetchActive)?a:f.active)||o,inactive:null!=(s=f.refetchInactive)&&s});return c.a.batch((function(){return u.queryCache.findAll(f).forEach((function(e){e.invalidate()})),u.refetchQueries(h,d)}))},t.refetchQueries=function(e,t,n){var o=this,a=Object(i.m)(e,t,n),s=a[0],u=a[1],l=c.a.batch((function(){return o.queryCache.findAll(s).map((function(e){return e.fetch(void 0,Object(r.a)({},u,{meta:{refetchPage:null==s?void 0:s.refetchPage}}))}))})),f=Promise.all(l).then(i.l);return(null==u?void 0:u.throwOnError)||(f=f.catch(i.l)),f},t.fetchQuery=function(e,t,n){var r=Object(i.p)(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);var a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(i.l).catch(i.l)},t.fetchInfiniteQuery=function(e,t,n){var r=Object(i.p)(e,t,n);return r.behavior=Object(l.c)(),this.fetchQuery(r)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(i.l).catch(i.l)},t.cancelMutations=function(){var e=this,t=c.a.batch((function(){return e.mutationCache.getAll().map((function(e){return e.cancel()}))}));return Promise.all(t).then(i.l).catch(i.l)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find((function(t){return Object(i.e)(e)===Object(i.e)(t.queryKey)}));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find((function(t){return Object(i.q)(e,t.queryKey)})))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find((function(t){return Object(i.e)(e)===Object(i.e)(t.mutationKey)}));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find((function(t){return Object(i.q)(e,t.mutationKey)})))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=Object(r.a)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=Object(i.f)(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:Object(r.a)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}()},function(e,t){},function(e,t,n){"use strict";n.r(t);n(1187),n(1188);var r=n(88);n.d(t,"QueryClientProvider",(function(){return r.a})),n.d(t,"useQueryClient",(function(){return r.b}));var i=n(219);n.d(t,"QueryErrorResetBoundary",(function(){return i.a})),n.d(t,"useQueryErrorResetBoundary",(function(){return i.b}));var o=n(523);n.d(t,"useIsFetching",(function(){return o.a}));var a=n(524);n.d(t,"useIsMutating",(function(){return a.a}));var s=n(525);n.d(t,"useMutation",(function(){return s.a}));var u=n(526);n.d(t,"useQuery",(function(){return u.a}));var c=n(527);n.d(t,"useQueries",(function(){return c.a}));var l=n(528);n.d(t,"useInfiniteQuery",(function(){return l.a}));var f=n(339);n.d(t,"useHydrate",(function(){return f.b})),n.d(t,"Hydrate",(function(){return f.a}));var d=n(529);for(var h in d)["default","QueryClientProvider","useQueryClient","QueryErrorResetBoundary","useQueryErrorResetBoundary","useIsFetching","useIsMutating","useMutation","useQuery","useQueries","useInfiniteQuery","useHydrate","Hydrate"].indexOf(h)<0&&function(e){n.d(t,e,(function(){return d[e]}))}(h)},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(9),s=n(88),u=function(e,t,n,r){var i=e.isFetching(t);n!==i&&r(i)};function c(e,t){var n=i.a.useRef(!1),r=Object(s.b)(),c=Object(a.m)(e,t)[0],l=i.a.useState(r.isFetching(c)),f=l[0],d=l[1],h=i.a.useRef(c);h.current=c;var p=i.a.useRef(f);return p.current=f,i.a.useEffect((function(){n.current=!0,u(r,h.current,p.current,d);var e=r.getQueryCache().subscribe(o.a.batchCalls((function(){n.current&&u(r,h.current,p.current,d)})));return function(){n.current=!1,e()}}),[r]),f}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),i=n.n(r),o=n(25),a=n(9),s=n(88);function u(e,t){var n=i.a.useRef(!1),r=Object(a.o)(e,t),u=Object(s.b)(),c=i.a.useState(u.isMutating(r)),l=c[0],f=c[1],d=i.a.useRef(r);d.current=r;var h=i.a.useRef(l);return h.current=l,i.a.useEffect((function(){n.current=!0;var e=u.getMutationCache().subscribe(o.a.batchCalls((function(){if(n.current){var e=u.isMutating(d.current);h.current!==e&&f(e)}})));return function(){n.current=!1,e()}}),[u]),l}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(21),i=n(0),o=n.n(i),a=n(25),s=n(9),u=n(272),c=n(88),l=n(282);function f(e,t,n){var i=o.a.useRef(!1),f=o.a.useState(0)[1],d=Object(s.n)(e,t,n),h=Object(c.b)(),p=o.a.useRef();p.current?p.current.setOptions(d):p.current=new u.a(h,d);var g=p.current.getCurrentResult();o.a.useEffect((function(){i.current=!0;var e=p.current.subscribe(a.a.batchCalls((function(){i.current&&f((function(e){return e+1}))})));return function(){i.current=!1,e()}}),[]);var m=o.a.useCallback((function(e,t){p.current.mutate(e,t).catch(s.l)}),[]);if(g.error&&Object(l.a)(void 0,p.current.options.useErrorBoundary,[g.error]))throw g.error;return Object(r.a)({},g,{mutate:m,mutateAsync:g.mutate})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(172),i=n(9),o=n(283);function a(e,t,n){var a=Object(i.p)(e,t,n);return Object(o.a)(a,r.a)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),i=n.n(r),o=n(25),a=n(270),s=n(88);function u(e){var t=i.a.useRef(!1),n=i.a.useState(0)[1],u=Object(s.b)(),c=Object(r.useMemo)((function(){return e.map((function(e){var t=u.defaultQueryObserverOptions(e);return t.optimisticResults=!0,t}))}),[e,u]),l=i.a.useState((function(){return new a.a(u,c)}))[0],f=l.getOptimisticResult(c);return i.a.useEffect((function(){t.current=!0;var e=l.subscribe(o.a.batchCalls((function(){t.current&&n((function(e){return e+1}))})));return function(){t.current=!1,e()}}),[l]),i.a.useEffect((function(){l.setQueries(c,{listeners:!1})}),[c,l]),f}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(271),i=n(9),o=n(283);function a(e,t,n){var a=Object(i.p)(e,t,n);return Object(o.a)(a,r.a)}},function(e,t){},function(e,t,n){"use strict";n.r(t),n.d(t,"useApi",(function(){return p})),n.d(t,"useMutationApi",(function(){return g}));var r=n(13),i=n.n(r),o=n(173),a=n(171),s=n(0),u=n(170),c=n.n(u),l=n(89);function f(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(){return{updateAuthIfNeeded:Object(s.useCallback)((function(){return new Promise((function(e){e()}))}),[]),catchAuthError:Object(s.useCallback)((function(e){var t;throw 401===(null==e||null===(t=e.response)||void 0===t?void 0:t.status)&&logout(),e}),[])}},p=function(e){var t=e.queryKey,n=e.queryFn,r=e.options,i=void 0===r?{}:r,a=h(),s=a.updateAuthIfNeeded,u=a.catchAuthError;return Object(o.useQuery)(t,(function(){var e=performance.now();return s().then(n).then((function(t){var n=Object(l.getFormattedDuration)(performance.now()-e);return d(d({},t),{},{duration:n})})).catch((function(t){u(t);var n=Object(l.getFormattedDuration)(performance.now()-e);if(c.a.isAxiosError(t))return d(d({},t),{},{duration:n});throw t}))}),d({refetchInterval:!1,refetchOnWindowFocus:!1,retry:!1},i))},g=function(e,t,n,r){var i=h(),s=i.updateAuthIfNeeded,u=i.catchAuthError;return Object(o.useMutation)((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return s().then((function(){return e.apply(void 0,n)})).catch(u)}),d({onSuccess:function(e,n){t(n);null!=n&&n.onSuccess&&Object(a.isFunction)(n.onSuccess)&&n.onSuccess(e,n)},onError:function(e,t){if(null!=t&&t.onError&&Object(a.isFunction)(t.onError)&&t.onError(e,t),r){var n=e.response.data;n.error,n.errors}}},n))}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(75);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},function(e,t,n){"use strict";(function(t){var r=n(75);e.exports=function(e,n){n=n||new FormData;var i=[];function o(e){return null===e?"":r.isDate(e)?e.toISOString():r.isArrayBuffer(e)||r.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):t.from(e):e}return function e(t,a){if(r.isPlainObject(t)||r.isArray(t)){if(-1!==i.indexOf(t))throw Error("Circular reference detected in "+a);i.push(t),r.forEach(t,(function(t,i){if(!r.isUndefined(t)){var s,u=a?a+"."+i:i;if(t&&!a&&"object"==typeof t)if(r.endsWith(i,"{}"))t=JSON.stringify(t);else if(r.endsWith(i,"[]")&&(s=r.toArray(t)))return void s.forEach((function(e){!r.isUndefined(e)&&n.append(u,o(e))}));e(t,u)}})),i.pop()}else n.append(a,o(t))}(e),n}}).call(this,n(341).Buffer)},function(e,t,n){"use strict";var r=n(75),i=n(1094),o=n(1095),a=n(532),s=n(536),u=n(1098),c=n(1099),l=n(533),f=n(192),d=n(268),h=n(1100);e.exports=function(e){return new Promise((function(t,n){var p,g=e.data,m=e.headers,v=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(g)&&r.isStandardBrowserEnv()&&delete m["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(_+":"+w)}var E=s(e.baseURL,e.url);function S(){if(b){var r="getAllResponseHeaders"in b?u(b.getAllResponseHeaders()):null,o={data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};i((function(e){t(e),y()}),(function(e){n(e),y()}),o),b=null}}if(b.open(e.method.toUpperCase(),a(E,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=S:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(S)},b.onabort=function(){b&&(n(new f("Request aborted",f.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new f("Network Error",f.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||l;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new f(t,r.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var x=(e.withCredentials||c(E))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;x&&(m[e.xsrfHeaderName]=x)}"setRequestHeader"in b&&r.forEach(m,(function(e,t){void 0===g&&"content-type"===t.toLowerCase()?delete m[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),v&&"json"!==v&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){b&&(n(!e||e&&e.type?new d:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),g||(g=null);var k=h(E);k&&-1===["http","https","file"].indexOf(k)?n(new f("Unsupported protocol "+k+":",f.ERR_BAD_REQUEST,e)):b.send(g)}))}},function(e,t,n){"use strict";var r=n(1096),i=n(1097);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(75);e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function u(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,i=t(e);r.isUndefined(i)&&t!==u||(n[e]=i)})),n}},function(e,t){e.exports={version:"0.27.2"}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getAxiosInstance=t.getAuthorization=t.STREAMER_STORAGE_KEY=void 0;const i=r(n(170)),o=n(1106),a="undefined"!=typeof window?new URLSearchParams(window.location.search):new URLSearchParams(""),s=a.get("host"),u="undefined"!=typeof window?`${window.location.protocol}//${window.location.host}`:"";t.STREAMER_STORAGE_KEY="MediaServerAuth";t.getAuthorization=()=>{const e=localStorage.getItem(t.STREAMER_STORAGE_KEY);if(e){const t=JSON.parse(e);return(0,o.loginHeader)({login:t.login,password:t.password})}};t.getAxiosInstance=()=>{const e=i.default.create({baseURL:""+(a.get("streamer_host")||s||u),headers:Object.assign(Object.assign({},o.globalHeaders),{"Content-Type":"application/json"})});return e.interceptors.request.use((function(e){const n=(0,t.getAuthorization)();return n&&(e.headers=Object.assign(Object.assign({},e.headers),{Authorization:n})),e})),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AUTH_CONFIG=t.LOGGER_TOKEN=void 0,t.LOGGER_TOKEN="dd988397-48cc-49f2-85cf-7dcac77f93bc",t.AUTH_CONFIG={headers:{"X-Authorization":"Bearer "+t.LOGGER_TOKEN}}},function(e,t){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(544);function i(){
9
9
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
10
10
  var t,n,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.toStringTag||"@@toStringTag";function u(e,i,o,a){var s=i&&i.prototype instanceof l?i:l,u=Object.create(s.prototype);return r(u,"_invoke",function(e,r,i){var o,a,s,u=0,l=i||[],f=!1,d={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return o=e,a=0,s=t,d.n=n,c}};function h(e,r){for(a=e,s=r,n=0;!f&&u&&!i&&n<l.length;n++){var i,o=l[n],h=d.p,p=o[2];e>3?(i=p===r)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=h&&((i=e<2&&h<o[1])?(a=0,d.v=r,d.n=o[1]):h<p&&(i=e<3||o[0]>r||r>p)&&(o[4]=e,o[5]=r,d.n=p,a=0))}if(i||e>1)return c;throw f=!0,r}return function(i,l,p){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,p),a=l,s=p;(n=a<2?t:s)||!f;){o||(a?a<3?(a>1&&(d.n=-1),h(a,s)):d.n=s:d.v=s);try{if(u=2,o){if(a||(i="next"),n=o[i]){if(!(n=n.call(o,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,a<2&&(a=0)}else 1===a&&(n=o.return)&&n.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((n=(f=d.n<0)?s:e.call(r,d))!==c)break}catch(e){o=t,a=1,s=e}finally{u=1}}return{value:n,done:f}}}(e,o,a),!0),u}var c={};function l(){}function f(){}function d(){}n=Object.getPrototypeOf;var h=[][a]?n(n([][a]())):(r(n={},a,(function(){return this})),n),p=d.prototype=l.prototype=Object.create(h);function g(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,r(e,s,"GeneratorFunction")),e.prototype=Object.create(p),e}return f.prototype=d,r(p,"constructor",d),r(d,"constructor",f),f.displayName="GeneratorFunction",r(d,s,"GeneratorFunction"),r(p),r(p,s,"Generator"),r(p,a,(function(){return this})),r(p,"toString",(function(){return"[object Generator]"})),(e.exports=i=function(){return{w:u,m:g}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t,r,i,o){var a=Object.defineProperty;try{a({},"",{})}catch(t){a=0}e.exports=n=function(e,t,r,i){if(t)a?a(e,t,{value:r,enumerable:!i,configurable:!i,writable:!i}):e[t]=r;else{var o=function(t,r){n(e,t,(function(e){return this._invoke(t,r,e)}))};o("next",0),o("throw",1),o("return",2)}},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r,i,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(543),i=n(546);e.exports=function(e,t,n,o,a){return new i(r().w(e,t,n,o),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(542),i=n(544);e.exports=function e(t,n){function o(e,i,a,s){try{var u=t[e](i),c=u.value;return c instanceof r?n.resolve(c.v).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):n.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}catch(e){s(e)}}var a;this.next||(i(e.prototype),i(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),i(this,"_invoke",(function(e,t,r){function i(){return new n((function(t,n){o(e,r,t,n)}))}return a=a?a.then(i,i):i()}),!0)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.imageHighlighterTelemetry=void 0,t.imageHighlighterTelemetry={turnOnDrawingMode:e=>Object.assign(Object.assign({},e),{event:"image_highlighter_click_button_select_area",event_message:"User turned on drawing mode",uts_ms:Date.now()}),drawStarted:e=>Object.assign(Object.assign({},e),{event:"image_highlighter_draw_start",event_message:"User started drawing a box",uts_ms:Date.now()}),drawCompleted:e=>Object.assign(Object.assign({},e),{event:"image_highlighter_draw_complete",event_message:"User completed drawing a box",uts_ms:Date.now()}),allRectsDeleted:e=>Object.assign(Object.assign({},e),{event:"image_highlighter_delete_all",event_message:"User clicked delete all boxes",uts_ms:Date.now()}),screenshotDownloaded:e=>Object.assign(Object.assign({},e),{event:"image_highlighter_download",event_message:"User downloaded image with highlights",uts_ms:Date.now()}),errorOccurred:(e,t)=>Object.assign(Object.assign({},e),{event:"image_highlighter_error",uts_ms:Date.now(),error_name:null==t?void 0:t.name,error_message:null==t?void 0:t.message})}},function(e,t,n){"use strict";var r=n(60);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},function(e,t){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(76),o=n(0),a=r(n(170)),s=n(87),u=n(89),c=n(342);let l;t.default=(0,o.memo)(({name:e,start:t,end:n,episodes_url:r,headers:f,basicApiConfig:d,setMotions:h,onEvent:p})=>{const{getCommonTelemetryFields:g,getCommonRequestFields:m,sendMetrics:v}=(0,o.useContext)(s.TelemetryContext),{getMotionsGetter:y}=c.networkTelemetry,[b,_]=(0,o.useState)(void 0);let w={},E="";if(r.length>1){const e=`${r.includes("https://")||r.includes("http://")?"":d.baseURL}${r}`,{search:t,origin:n,pathname:o}=new URL(e),a=(0,i.decode)(t.replace(/^\?/,""));n&&o&&(E=`${n}${o}`),w=Object.assign(Object.assign(Object.assign({},w),a),{cursor:b,sort:"-opened_at"})}else E=`${d.baseURL}/vsaas/api/v2/cameras/${e}/timeline-events`,w=Object.assign(Object.assign({},d.params),w);r.includes("v2")?w=Object.assign(Object.assign({},w),{from:Math.round(t),to:Math.round(n)}):r.includes("v3")&&(w=Object.assign(Object.assign({},w),{opened_at_gt:Math.round(1e3*t)}));const S=()=>{const t=performance.now();a.default.get(E,{headers:f,params:w}).then(n=>{v(Object.assign(Object.assign(Object.assign({},g()),m(Object.assign(Object.assign({},n),{duration:(0,u.getFormattedDuration)(performance.now()-t)}))),y()));const{data:r}=n;(null==r?void 0:r.next)?_(r.next):_(void 0),h(e,r)}).catch((function(t){t instanceof Error&&p&&p(e,{key:Date.now(),data:{event:"player_error",error_name:t.name,error_message:t.message}}),console.error(t)}))};return(0,o.useEffect)(()=>(_(void 0),l=setTimeout(()=>S(),700),()=>clearTimeout(l)),[t,n,E,f,e]),(0,o.useEffect)(()=>{b&&S()},[b]),null})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(76),i=n(0),o=n(191);t.default=(0,i.memo)(({name:e,stats:t,address:n,statsSendTime:a,basicApiConfig:s,auth_token:u})=>{let c={};if(u){const e=(0,r.decode)(u.replace(/^\?/,""));c=Object.assign(Object.assign({},c),e)}const l=Object.assign(Object.assign({},s),{params:Object.assign(Object.assign({},s.params),c),baseURL:n||s.baseURL,encodeParams:!1}),f=(0,o.session_save)({showSuccessMessage:!1,showErrorMessage:!1}),d=(0,i.useRef)(!0),h=(0,i.useCallback)(()=>{const n=t();if(!("started_at"in n))return;const r=JSON.stringify(n),i=JSON.parse(r);if(i&&i.source_id&&i.id){const{source_id:t}=i;f({params:{name:e,id:t},config:l,body:i})}},[e,f,t]);return(0,i.useEffect)(()=>{const e=setTimeout(()=>{d.current&&(h(),d.current=!1)},3e3),t=setInterval(()=>{h()},a?1e3*a:6e4);return()=>{clearTimeout(e),clearInterval(t)}},[h]),null})},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(76),o=n(0),a=r(n(170)),s=n(191),u=n(87),c=n(342),l=n(89);t.default=(0,o.memo)(({name:e,basicApiConfig:t,returnData:n,address:r,auth_token:f,info_url:d,isLive:h,onEvent:p})=>{var g;const[m,v]=(0,o.useState)(),{getCommonTelemetryFields:y,getCommonRequestFields:b,getCommonErrorRequestFields:_,sendMetrics:w}=(0,o.useContext)(u.TelemetryContext),{getStreamFields:E,errorStreamFields:S}=c.networkTelemetry;let x={};if(f){const e=(0,i.decode)(f.replace(/^\?/,""));x=Object.assign(Object.assign({},x),e)}const k=Object.assign(Object.assign({},t),{baseURL:r||t.baseURL,params:Object.assign(Object.assign({},t.params),x)});(0,s.public_stream_get)({params:{name:e},options:{refetchInterval:5e3,keepPreviousData:!0,enabled:!d,onSuccess:e=>{w(Object.assign(Object.assign(Object.assign({},y()),b(e)),E())),n("networkError",!1),v(e.data)},onError:t=>{t&&w(Object.assign(Object.assign(Object.assign({},y()),_(t)),S())),t&&"code"in t&&p&&(p(e,{key:Date.now(),data:{event:"player_error",error_name:t,error_message:t.code}}),"ERR_NETWORK"===t.code&&h&&n("networkError",!0))}},config:k});const T=()=>{const t=performance.now();return a.default.get(`${d}/${e}/info.json`,{params:Object.assign({},k.params)}).then(r=>{w(Object.assign(Object.assign(Object.assign({},y()),b(Object.assign(Object.assign({},r),{duration:(0,l.getFormattedDuration)(performance.now()-t)}))),E())),v(null==r?void 0:r.data),n("info",null==r?void 0:r.data,e),n("networkError",!1)}).catch(n=>{n&&w(Object.assign(Object.assign(Object.assign({},y()),_(Object.assign(Object.assign({},n),{duration:(0,l.getFormattedDuration)(performance.now()-t)}))),S())),n instanceof Error&&p&&p(e,{key:Date.now(),data:{event:"player_error",error_name:n.name,error_message:n.message}}),console.error(n)})};(0,o.useEffect)(()=>{let e;return d&&f&&(T(),e=setTimeout(()=>{T()},5e3)),()=>clearTimeout(e)},[f,d]),(0,o.useEffect)(()=>{m&&Object.keys(m).length&&n("info",m,e)},[m,n,e]);const O=(0,o.useMemo)(()=>{var e;return!(!(null===(e=null==m?void 0:m.stats)||void 0===e?void 0:e.status)||"running"!==m.stats.status)},[null===(g=null==m?void 0:m.stats)||void 0===g?void 0:g.status]);return(0,o.useEffect)(()=>{n("streamIsLive",O,e)},[O,n,e]),null})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.basicConfig=void 0;const r=n(76),i=n(191);t.basicConfig=({token:e,tokenName:t,auth_token:n,streamer_http:o})=>{let a={};const s=t||"token";if(n){const e=(0,r.decode)(n.replace(/^\?/,""));a=Object.assign(Object.assign({},a),e)}e&&(a=Object.assign(Object.assign({},a),{[s]:e}));return{baseURL:o||i.axiosInstance.getUri(),params:a}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=void 0;t.Logger=class{constructor(){this.shortLogInterval=5e3,this.shortLogIntervalDuration=1e4,this.longLogInterval=3e4,this.shortIntervalId=null,this.longIntervalId=null,this.timeoutId=null}initLogging(e){this.shortIntervalId=setInterval(()=>{e()},this.shortLogInterval),this.timeoutId=setTimeout(()=>{this.shortIntervalId&&clearInterval(this.shortIntervalId),this.longIntervalId=setInterval(()=>{e()},this.longLogInterval)},this.shortLogIntervalDuration)}stopLogging(){this.shortIntervalId&&clearInterval(this.shortIntervalId),this.longIntervalId&&clearInterval(this.longIntervalId),this.timeoutId&&clearTimeout(this.timeoutId)}}},function(e,t,n){"use strict";var r=n(1117),i=n(1118),o=n(1120),a=n(1121),s=n(1122),u=s(),c=s(!0),l=n(1123),f=n(1124),d=n(1125);function h(e,t){var n=(t=t||{}).controller;if(n||(f.canAttach(e)?n=f(e,t):d.canAttach(e)&&(n=d(e,t))),!n)throw new Error("Cannot create panzoom for the current type of dom element");var s=n.getOwner(),h={x:0,y:0},g=!1,b=new l;n.initTransform&&n.initTransform(b);var _,w="function"==typeof t.filterKey?t.filterKey:m,E="number"==typeof t.pinchSpeed?t.pinchSpeed:1,S=t.bounds,x="number"==typeof t.maxZoom?t.maxZoom:Number.POSITIVE_INFINITY,k="number"==typeof t.minZoom?t.minZoom:0,T="number"==typeof t.boundsPadding?t.boundsPadding:.05,O="number"==typeof t.zoomDoubleClickSpeed?t.zoomDoubleClickSpeed:1.75,P=t.beforeWheel||m,R=t.beforeMouseDown||m,A="number"==typeof t.zoomSpeed?t.zoomSpeed:1,C=p(t.transformOrigin),D=t.enableTextSelection?c:u;!function(e){var t=typeof e;if("undefined"===t||"boolean"===t)return;if(!(v(e.left)&&v(e.top)&&v(e.bottom)&&v(e.right)))throw new Error("Bounds object is not valid. It can be: undefined, boolean (true|false) or an object {left, top, right, bottom}")}(S),t.autocenter&&function(){var e,t,r=0,i=0,o=oe();if(o)r=o.left,i=o.top,e=o.right-o.left,t=o.bottom-o.top;else{var a=s.getBoundingClientRect();e=a.width,t=a.height}var u=n.getBBox();if(0===u.width||0===u.height)return;var c=t/u.height,l=e/u.width,f=Math.min(l,c);b.x=-(u.left+u.width/2)*f+e/2+r,b.y=-(u.top+u.height/2)*f+t/2+i,b.scale=f}();var L,I,M,j,N,F,U,B,q,V,$=0,z=0,G=0,W=null,H=new Date,K=!1,Y=!1;U="smoothScroll"in t&&!t.smoothScroll?{start:m,stop:m,cancel:m}:a((function(){return{x:b.x,y:b.y}}),(function(e,t){De(),ne(e,t)}),t.smoothScroll);var Q=!1;le();var X={dispose:function(){fe()},moveBy:ce,moveTo:ne,smoothMoveTo:function(e,t){ce(e-b.x,t-b.y,!0)},centerOn:function(e){var t=e.ownerSVGElement;if(!t)throw new Error("ui element is required to be within the scene");var n=e.getBoundingClientRect(),r=n.left+n.width/2,i=n.top+n.height/2,o=t.getBoundingClientRect(),a=o.width/2-r,s=o.height/2-i;ce(a,s,!0)},zoomTo:Ce,zoomAbs:ue,smoothZoom:Re,smoothZoomAbs:function(e,t,n){var r={scale:b.scale},o={scale:n};U.cancel(),De(),q=i(r,o,{step:function(n){ue(e,t,n.scale)}})},showRectangle:function(e){var t=s.getBoundingClientRect(),n=te(t.width,t.height),r=e.right-e.left,i=e.bottom-e.top;if(!Number.isFinite(r)||!Number.isFinite(i))throw new Error("Invalid rectangle");var o=n.x/r,a=n.y/i,u=Math.min(o,a);b.x=-(e.left+r/2)*u+n.x/2,b.y=-(e.top+i/2)*u+n.y/2,b.scale=u},pause:function(){fe(),Q=!0},resume:function(){Q&&(le(),Q=!1)},isPaused:function(){return Q},getTransform:function(){return b},getMinZoom:function(){return k},setMinZoom:function(e){k=e},getMaxZoom:function(){return x},setMaxZoom:function(e){x=e},getTransformOrigin:function(){return C},setTransformOrigin:function(e){C=p(e)},getZoomSpeed:function(){return A},setZoomSpeed:function(e){if(!Number.isFinite(e))throw new Error("Zoom speed should be a number");A=e}};o(X);var J="number"==typeof t.initialX?t.initialX:b.x,Z="number"==typeof t.initialY?t.initialY:b.y,ee="number"==typeof t.initialZoom?t.initialZoom:b.scale;return J==b.x&&Z==b.y&&ee==b.scale||ue(J,Z,ee),X;function te(e,t){if(n.getScreenCTM){var r=n.getScreenCTM(),i=r.a,o=r.d,a=r.e,s=r.f;h.x=e*i-a,h.y=t*o-s}else h.x=e,h.y=t;return h}function ne(e,t){b.x=e,b.y=t,ie(),Ne("pan"),ae()}function re(e,t){ne(b.x+e,b.y+t)}function ie(){var e=oe();if(e){var t,r,i,o,a=!1,s=(t=n.getBBox(),i=t.left,o=t.top,{left:(r={x:i*b.scale+b.x,y:o*b.scale+b.y}).x,top:r.y,right:t.width*b.scale+r.x,bottom:t.height*b.scale+r.y}),u=e.left-s.right;return u>0&&(b.x+=u,a=!0),(u=e.right-s.left)<0&&(b.x+=u,a=!0),(u=e.top-s.bottom)>0&&(b.y+=u,a=!0),(u=e.bottom-s.top)<0&&(b.y+=u,a=!0),a}}function oe(){if(S){if("boolean"==typeof S){var e=s.getBoundingClientRect(),t=e.width,n=e.height;return{left:t*T,top:n*T,right:t*(1-T),bottom:n*(1-T)}}return S}}function ae(){g=!0,_=window.requestAnimationFrame(de)}function se(e,t,n){if(y(e)||y(t)||y(n))throw new Error("zoom requires valid numbers");var r=b.scale*n;if(r<k){if(b.scale===k)return;n=k/b.scale}if(r>x){if(b.scale===x)return;n=x/b.scale}var i=te(e,t);(b.x=i.x-n*(i.x-b.x),b.y=i.y-n*(i.y-b.y),S&&1===T&&1===k)?(b.scale*=n,ie()):ie()||(b.scale*=n);Ne("zoom"),ae()}function ue(e,t,n){se(e,t,n/b.scale)}function ce(e,t,n){if(!n)return re(e,t);B&&B.cancel();var r=0,o=0;B=i({x:0,y:0},{x:e,y:t},{step:function(e){re(e.x-r,e.y-o),r=e.x,o=e.y}})}function le(){s.addEventListener("mousedown",Ee,{passive:!1}),s.addEventListener("dblclick",we,{passive:!1}),s.addEventListener("touchstart",pe,{passive:!1}),s.addEventListener("keydown",he,{passive:!1}),r.addWheelListener(s,Oe,{passive:!1}),ae()}function fe(){r.removeWheelListener(s,Oe),s.removeEventListener("mousedown",Ee),s.removeEventListener("keydown",he),s.removeEventListener("dblclick",we),s.removeEventListener("touchstart",pe),_&&(window.cancelAnimationFrame(_),_=0),U.cancel(),ke(),Te(),D.release(),Me()}function de(){g&&(g=!1,n.applyTransform(b),Ne("transform"),_=0)}function he(e){var t=0,n=0,r=0;if(38===e.keyCode?n=1:40===e.keyCode?n=-1:37===e.keyCode?t=1:39===e.keyCode?t=-1:189===e.keyCode||109===e.keyCode?r=1:187!==e.keyCode&&107!==e.keyCode||(r=-1),!w(e,t,n,r)){if(t||n){e.preventDefault(),e.stopPropagation();var i=s.getBoundingClientRect();ce(.05*(o=Math.min(i.width,i.height))*t,.05*o*n)}if(r){var o,a=Le(100*r);Ce((o=C?Ae():{x:(u=s.getBoundingClientRect()).width/2,y:u.height/2}).x,o.y,a)}var u}}function pe(e){if(function(e){if(t.onTouch&&!t.onTouch(e))return;e.stopPropagation(),e.preventDefault()}(e),ve(),1===e.touches.length)return function(e){z=new Date;var t=Pe(e.touches[0]);L=t;var n=te(t.x,t.y);I=n.x,M=n.y,j=I,N=M,U.cancel(),ge()}(e,e.touches[0]);2===e.touches.length&&(F=_e(e.touches[0],e.touches[1]),V=!0,ge())}function ge(){K||(K=!0,document.addEventListener("touchmove",me),document.addEventListener("touchend",be),document.addEventListener("touchcancel",be))}function me(e){if(1===e.touches.length){e.stopPropagation();var t=te((l=Pe(e.touches[0])).x,l.y),n=t.x-I,r=t.y-M;0!==n&&0!==r&&Ie(),I=t.x,M=t.y,ce(n,r)}else if(2===e.touches.length){V=!0;var i=e.touches[0],o=e.touches[1],a=_e(i,o),s=1+(a/F-1)*E,u=Pe(i),c=Pe(o);if(I=(u.x+c.x)/2,M=(u.y+c.y)/2,C){var l=Ae();I=l.x,M=l.y}Ce(I,M,s),F=a,e.stopPropagation(),e.preventDefault()}}function ve(){G&&(clearTimeout(G),G=0)}function ye(e){if(t.onClick){ve();var n=I-j,r=M-N;Math.sqrt(n*n+r*r)>5||(G=setTimeout((function(){G=0,t.onClick(e)}),300))}}function be(e){if(ve(),e.touches.length>0){var t=te((n=Pe(e.touches[0])).x,n.y);I=t.x,M=t.y}else{var n,r=new Date;if(r-$<300)if(C)Re((n=Ae()).x,n.y,O);else Re(L.x,L.y,O);else r-z<200&&ye(e);$=r,Me(),Te()}}function _e(e,t){var n=e.clientX-t.clientX,r=e.clientY-t.clientY;return Math.sqrt(n*n+r*r)}function we(e){!function(e){ve(),t.onDoubleClick&&!t.onDoubleClick(e)||(e.preventDefault(),e.stopPropagation())}(e);var n=Pe(e);C&&(n=Ae()),Re(n.x,n.y,O)}function Ee(e){if(ve(),!R(e)){if(W=e,H=new Date,K)return e.stopPropagation(),!1;if(1===e.button&&null!==window.event||0===e.button){U.cancel();var t=Pe(e),n=te(t.x,t.y);return j=I=n.x,N=M=n.y,document.addEventListener("mousemove",Se),document.addEventListener("mouseup",xe),D.capture(e.target||e.srcElement),!1}}}function Se(e){if(!K){Ie();var t=Pe(e),n=te(t.x,t.y),r=n.x-I,i=n.y-M;I=n.x,M=n.y,ce(r,i)}}function xe(){new Date-H<200&&ye(W),D.release(),Me(),ke()}function ke(){document.removeEventListener("mousemove",Se),document.removeEventListener("mouseup",xe),Y=!1}function Te(){document.removeEventListener("touchmove",me),document.removeEventListener("touchend",be),document.removeEventListener("touchcancel",be),Y=!1,V=!1,K=!1}function Oe(e){if(!P(e)){U.cancel();var t=e.deltaY;e.deltaMode>0&&(t*=100);var n=Le(t);if(1!==n){var r=C?Ae():Pe(e);Ce(r.x,r.y,n),e.preventDefault()}}}function Pe(e){var t=s.getBoundingClientRect();return{x:e.clientX-t.left,y:e.clientY-t.top}}function Re(e,t,n){var r=b.scale,o={scale:r},a={scale:n*r};U.cancel(),De(),q=i(o,a,{step:function(n){ue(e,t,n.scale)},done:je})}function Ae(){var e=s.getBoundingClientRect();return{x:e.width*C.x,y:e.height*C.y}}function Ce(e,t,n){return U.cancel(),De(),se(e,t,n)}function De(){q&&(q.cancel(),q=null)}function Le(e){return 1-Math.sign(e)*Math.min(.25,Math.abs(A*e/128))}function Ie(){Y||(Ne("panstart"),Y=!0,U.start())}function Me(){Y&&(V||U.stop(),Ne("panend"))}function je(){Ne("zoomend")}function Ne(e){X.fire(e,X)}}function p(e){if(e)return"object"==typeof e?(v(e.x)&&v(e.y)||g(e),e):void g()}function g(e){throw console.error(e),new Error(["Cannot parse transform origin.","Some good examples:",' "center center" can be achieved with {x: 0.5, y: 0.5}',' "top center" can be achieved with {x: 0.5, y: 0}',' "bottom right" can be achieved with {x: 1, y: 1}'].join("\n"))}function m(){}function v(e){return Number.isFinite(e)}function y(e){return Number.isNaN?Number.isNaN(e):e!=e}e.exports=h,function(){if("undefined"!=typeof document){var e=document.getElementsByTagName("script");if(e){for(var t,n=0;n<e.length;++n){var r=e[n];if(r.src&&r.src.match(/\bpanzoom(\.min)?\.js/)){t=r;break}}if(t){var i=t.getAttribute("query");if(i){var o=t.getAttribute("name")||"pz",a=Date.now();!function e(){var n=document.querySelector(i);if(!n){return Date.now()-a<2e3?void setTimeout(e,100):void console.error("Cannot find the panzoom element",o)}var r=function(e){for(var t=e.attributes,n={},r=0;r<t.length;++r){var i=s(t[r]);i&&(n[i.name]=i.value)}return n}(t);console.log(r),window[o]=h(n,r)}()}}}}function s(e){if(e.name&&("p"===e.name[0]&&"z"===e.name[1]&&"-"===e.name[2]))return{name:e.name.substr(3),value:JSON.parse(e.value)}}}()},function(e,t,n){"use strict";var r,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return(r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return o(t,e),t}),s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MSEPlayer=void 0;const u=a(n(0)),c=s(n(1126)),l=n(87),f=n(343),d=n(89);t.MSEPlayer=({name:e,url:t,setRef:n,muted:r,handleFullScreen:i,returnData:o,onMediaInfo:a,setNoLiveError:s,setNoVideoError:h,multiStream:p,isSelected:g,currentTime:m,newTracks:v,debug:y,debugTimers:b,onEvent:_})=>{const w=(0,u.useRef)(null),[E,S]=(0,u.useState)([]),[x,k]=(0,u.useState)([]),[T,O]=(0,u.useState)(null),P=(0,u.useRef)(Date.now()),{getCommonTelemetryFields:R,sendMetrics:A}=(0,u.useContext)(l.TelemetryContext),{getMessage:C}=f.mseTelemetry,D=(0,d.getNewURL)(t),L=`${null==D?void 0:D.origin}${null==D?void 0:D.pathname}`,I=D?(0,d.getFilteredParams)(Object.fromEntries(D.searchParams.entries())):void 0,M=(t,n="mse")=>{const{streams:r,activeStreams:i}=t;S(r),k(i),a(Object.assign(Object.assign({},t),{streamName:e}),n),s(!1)},j=()=>{_({key:Date.now(),data:{event:"play_init_mse"}})};return(0,u.useEffect)(()=>{const i=new c.default(w.current,t,{debug:y,connectionRetries:0,errorsBeforeStop:0,retryMuted:!1,onCrashTryVideoOnly:!1,maxBufferDelay:2,progressUpdateTime:100,wsReconnect:!1,statsSendEnable:!1,onInit:j,onProgress:t=>{if(o("progressTimeForPlayers",t,e),g&&w.current){const e=w.current.getVideoPlaybackQuality();if(e){const{corruptedVideoFrames:t,droppedVideoFrames:n,totalVideoFrames:r}=e;o("vQuality",{corruptedVideoFrames:t,droppedVideoFrames:n,totalVideoFrames:r})}}},onEvent:_,onDisconnect:e=>{console.log("Websocket status:",e)},onError:((t,n)=>{y&&(console.log("••••• ERROR on:",e,t),console.log("Error event:",n));const r="string"==typeof t?t:t.error;if(_({key:Date.now(),data:{event:"player_error",error_name:r,error_message:"DVR Player msePlayer error: "+r}}),("object"!=typeof t||!t.logOnly)&&(o("playingTimeForPlayers","stop",e),o("playerProgressTime",(new Date).getTime()/1e3),o("playerReady",!0,e),"object"==typeof t&&"error"in t)){const{error:e}=t;"playPromise reject - stream unavaible"!==e&&"play_promise_reject"!==e||(o("isStalling",!1),_({key:Date.now(),data:{event:"play_stall_end"}}),h(!0))}}).bind(this)});b&&(console.timeEnd("[DVRPlayer]: Playback Startup Time"),w.current&&(w.current.oncanplay=()=>{console.timeEnd("[DVRPlayer]: Time to first frame")})),i.onMediaInfo=M;const a=i.ws.opts.message;i.ws.opts.message=function(...e){return(()=>{var e,t,n;const r=Date.now();if(r-P.current<5e3)return;P.current=r;const i=null===(e=w.current)||void 0===e?void 0:e.buffered,o=null!==(n=null===(t=w.current)||void 0===t?void 0:t.currentTime)&&void 0!==n?n:0,a=(null==i?void 0:i.length)?i.end(i.length-1):0,s=(0,d.getFormattedBufferLength)(a-o);A(Object.assign(Object.assign(Object.assign({},R()),C()),{url:L,status:"open",bufferLength:s,query_parameters:I}))})(),a.apply(this,e)},O(i),o("live",!0),o("playback_speed",1),g&&i&&o("playerLink",i);let[s,u]=v;v&&v.length&&(u.length&&!Number.isNaN(Number(u))&&(u="a"+(Number(u)+1)),s.length&&!Number.isNaN(Number(s))&&(s=-1===Number(s)?"v1":"v"+(Number(s)+1)));return i.play(s,u).then(()=>{const e=(()=>{let e=!1;return performance.getEntriesByType("navigation").forEach(t=>{"reload"===t.type&&(e=!0)}),e})()||r;o("muted",e)}).catch(e=>(_({key:Date.now(),data:{event:"player_error",error_name:e,error_message:"DVR Player msePlayer error: "+e}}),y&&console.log("Nothing to play",e),null)).finally(()=>{if(o("playerReady",!0,e),o("isStalling",!1),_({key:Date.now(),data:{event:"play_stall_end"}}),n(w.current,i),p){const t=E.filter(e=>"v"===e.track_id.charAt(0)),n=E.filter(e=>"a"===e.track_id.charAt(0));let r=99999,o=99999,a="";if(t.forEach(e=>{e.width&&e.width<r&&(r=e.width,a=e.track_id),e.bitrate&&e.bitrate<o&&(o=e.bitrate,a=e.track_id)}),i){let t="";n.length&&(t=n[0].track_id),x.length&&x.video&&x.video!==a&&(y&&console.log(`Selecting lowest bitrate track for ${e} - `,a),i.setTracks([a,t]))}}b&&console.timeEnd("[DVRPlayer]: Player component play() start")}),()=>{setTimeout(()=>{i.stop(),w.current&&(w.current.src="",w.current.load())},0)}},[]),(0,u.useEffect)(()=>{v&&!v.length||T&&T.setTracks&&T.setTracks(v)},[v]),(0,u.useEffect)(()=>{if(!w.current)return;const e=()=>{_({key:Date.now(),data:{event:"play_buffering"}})},t=()=>{_({key:Date.now(),data:{event:"play_buffered"}})};return w.current.addEventListener("waiting",e),w.current.addEventListener("playing",t),()=>{var n,r;null===(n=w.current)||void 0===n||n.removeEventListener("waiting",e),null===(r=w.current)||void 0===r||r.removeEventListener("playing",t)}},[_,w]),u.default.createElement("video",{ref:w,muted:r,onDoubleClick:i,style:{width:"100%",height:"100%"},autoPlay:!0,className:"video-js",controls:!1,playsInline:!0,"data-cy":"videoElement",key:"mse_"+m})}},function(e,t,n){"use strict";var r,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return(r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return o(t,e),t}),s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HLSPlayer=void 0;const u=a(n(0)),c=s(n(1127)),l=n(89),f=n(87),d=n(343),h=[c.default.ErrorDetails.FRAG_PARSING_ERROR,c.default.ErrorDetails.FRAG_DECRYPT_ERROR,c.default.ErrorDetails.FRAG_LOAD_ERROR,c.default.ErrorDetails.BUFFER_NUDGE_ON_STALL,c.default.ErrorDetails.BUFFER_FULL_ERROR,c.default.ErrorDetails.BUFFER_ADD_CODEC_ERROR,c.default.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,c.default.ErrorDetails.BUFFER_STALLED_ERROR];t.HLSPlayer=({name:e,url:t,setRef:n,muted:r,handleFullScreen:i,returnData:o,onHlsEvent:a,onMediaInfo:s,setNoLiveError:p,setNoVideoError:g,isSelected:m,currentTime:v,speed:y,newTracks:b,ottConfig:_,debug:w,debugTimers:E})=>{const S=(0,u.useRef)(null),[x,k]=(0,u.useState)(null),[T,O]=(0,u.useState)(null),{getCommonTelemetryFields:P,sendMetrics:R}=(0,u.useContext)(f.TelemetryContext),{loadManifest:A,loadFragment:C}=d.hlsTelemetry,D=(0,u.useCallback)(t=>{if(T&&(o("progressTimeForPlayers",t,e),a({key:Date.now(),data:{event:"play_progress",type:"hls_dvr",time:t}}),m&&S.current)){const e=S.current.getVideoPlaybackQuality();if(e){const{corruptedVideoFrames:t,droppedVideoFrames:n,totalVideoFrames:r}=e;o("vQuality",{corruptedVideoFrames:t,droppedVideoFrames:n,totalVideoFrames:r})}}},[T,e,a,o]),L=e=>{var t,n,r,i;if(!S.current)return;const o=null===(t=S.current)||void 0===t?void 0:t.currentTime,a=null===(i=null===(r=null===(n=null==e?void 0:e.levels)||void 0===n?void 0:n[null==e?void 0:e.currentLevel])||void 0===r?void 0:r.details)||void 0===i?void 0:i.fragments;return null==a?void 0:a.find(e=>o>=e.start&&o<=e.end)},I=(e,t)=>{null==e||e.trigger(c.default.Events.ERROR,{error:new Error(c.default.Events.ERROR),type:c.default.ErrorTypes.MEDIA_ERROR,details:c.default.ErrorDetails.BUFFER_APPEND_ERROR,fatal:!0,frag:t,reason:"corrupted_frag"})},M=(0,u.useCallback)(()=>{let e;if(S.current&&x){let t=x;"live"!==v&&"number"==typeof v&&(t=v),e=t+S.current.currentTime,D(e)}},[x,v]),j=e=>{var t;const n=null===(t=S.current)||void 0===t?void 0:t.error;if(n){switch(n.code){case n.MEDIA_ERR_ABORTED:console.error("Video playback aborted.",e);break;case n.MEDIA_ERR_NETWORK:console.error("Network error occurred while fetching video.",e);break;case n.MEDIA_ERR_DECODE:console.error("Video decoding error.",e);break;case n.MEDIA_ERR_SRC_NOT_SUPPORTED:console.error("Video format or source not supported.",e);break;default:console.error("An unknown video error occurred.",e)}if(n.code===n.MEDIA_ERR_DECODE){const e=L(T);if(!e)return;I(T,e),a({key:Date.now(),data:{event:"play_corrupted_frag_start"}})}}else console.log("Unknown video error",e)},N=e=>{if(b&&b.length){const[t,n]=b;let r=T;e&&!T&&(r=e),r&&(t&&!Number.isNaN(Number(t))&&r.currentLevel&&(r.currentLevel=Number(t)),Number.isNaN(Number(n))||(r.audioTrack=Number(n)))}},F=(e,t)=>{const{frag:n}=t,{programDateTime:r,startPTS:i}=n,a=Math.round(((r||0)+(i||0))/1e3);if(k(e=>null!=e?e:a),m&&S.current){const e=S.current.getVideoPlaybackQuality(),{corruptedVideoFrames:t,droppedVideoFrames:n,totalVideoFrames:r}=e;o("vQuality",{corruptedVideoFrames:t,droppedVideoFrames:n,totalVideoFrames:r})}},U=(e,t)=>{a({key:Date.now(),data:Object.assign({event:"play_buffered",type:"hls_dvr"},t)})},B=()=>{a({key:Date.now(),data:{event:"play_buffering"}})};(0,u.useEffect)(()=>{const r=new c.default(function(){let[e]=b;if("string"==typeof e){e=e[1]}let t={debug:w,enableWorker:!0,lowLatencyMode:!0,progressive:!0,maxBufferHole:0};return t=_?Object.assign(Object.assign({},t),{autoStartLoad:!0,startPosition:-1,maxLoadingDelay:1,startFragPrefetch:!0}):Object.assign(Object.assign({},t),{maxMaxBufferLength:60,backBufferLength:90,startLevel:e&&!Number.isNaN(Number(e))?Number(e):-1}),Object.assign({},t)}());O(r),E&&console.timeEnd("[DVRPlayer]: Playback Startup Time");const i=(t,i)=>{if(S.current){S.current.play().then(()=>{n(S.current),o("playerReady",!0,e)}).catch(t=>{t instanceof Error&&(a({key:Date.now(),data:{event:"player_error",error_name:t.name,error_message:"DVR Player hlsPlayer error: "+t.message}}),"NotAllowedError"===t.name&&S.current&&(S.current.muted=!0,S.current.play().then(()=>{n(S.current),o("volume",0),o("playerReady",!0,e)}).catch(e=>{console.error("Error after retrying play()",e)})))}).finally(()=>{a({key:Date.now(),data:Object.assign({event:"play_loadedmetadata"},i)}),b&&b.length&&N(r),E&&console.timeEnd("[DVRPlayer]: Player component play() start")})}},u=(e,t)=>{a({key:Date.now(),data:Object.assign({event:"play_buffer_codecs",type:"hls_dvr"},t)})},f=(e,t)=>{const n=(0,l.getNewURL)(t.networkDetails.url),r=`${null==n?void 0:n.origin}${null==n?void 0:n.pathname}`,i=n?(0,l.getFilteredParams)(Object.fromEntries(n.searchParams.entries())):void 0;R(Object.assign(Object.assign(Object.assign({},P()),A()),{duration:(0,l.getFormattedDuration)(t.stats.loading.end-t.stats.loading.start),status:t.networkDetails.status,url:r,query_parameters:i})),s(t,"hls"),a({key:Date.now(),data:Object.assign({event:"play_manifestloaded"},t)})};return c.default.isSupported()&&S.current&&r&&(S.current.controls=!1,a({key:Date.now(),data:{event:"play_init",type:"hls_dvr"}}),a({key:Date.now(),data:{event:"play_init_hls",type:"hls_dvr"}}),r.attachMedia(S.current),S.current.oncanplay=()=>{E&&console.timeEnd("[DVRPlayer]: Time to first frame"),a({key:Date.now(),data:{event:"play_started",currentLevel:r?r.currentLevel:-1}})},r.on(c.default.Events.BUFFER_CODECS,u),r.on(c.default.Events.MEDIA_ATTACHED,()=>{r.loadSource(t),r.on(c.default.Events.MANIFEST_PARSED,i.bind(this)),r.on(c.default.Events.MANIFEST_LOADED,f.bind(this))}),r.on(c.default.Events.LEVEL_UPDATED,(e,t)=>((e,t)=>{const{details:n}=t,{live:r}=n;r&&o("liveType_isLive",r)})(0,t)),r.on(c.default.Events.LEVEL_SWITCHED,(e,t)=>((e,t)=>{const n=""+t.level;r&&(o("currentVideoTrack",n),o("currentAudioTrack",""+r.audioTrack))})(0,t)),r.on(c.default.Events.FRAG_CHANGED,F),r.on(c.default.Events.FRAG_BUFFERED,U),r.on(c.default.Events.FRAG_LOADED,(e=>(t,n)=>{var r,i,o;const a=(0,l.getNewURL)(n.networkDetails.url),s=`${null==a?void 0:a.origin}${null==a?void 0:a.pathname}`,u=a?(0,l.getFilteredParams)(Object.fromEntries(a.searchParams.entries())):void 0,c=null===(r=S.current)||void 0===r?void 0:r.buffered,f=null!==(o=null===(i=S.current)||void 0===i?void 0:i.currentTime)&&void 0!==o?o:0,d=(null==c?void 0:c.length)?c.end(c.length-1):0,h=(0,l.getFormattedBufferLength)(d-f),p=e.config.maxMaxBufferLength;R(Object.assign(Object.assign(Object.assign({},P()),C()),{duration:(0,l.getFormattedDuration)(n.frag.stats.loading.end-n.frag.stats.loading.start),status:n.networkDetails.status,url:s,query_parameters:u,bufferLength:h,maxBufferLength:p}))})(r)),r.on(c.default.Events.BUFFER_APPENDING,B),r.on(c.default.Events.ERROR,(t,n)=>{const i=n.type,s=n.details,u=n.fatal,l=n.reason,{response:f}=n;switch(console.log({event:t,errorType:i,errorDetails:s,errorFatal:u,reason:l,response:f}),"corrupted_frag"!==l&&a({key:Date.now(),data:{event:"player_error",error_name:i,error_message:"DVR Player hlsPlayer error: "+s}}),s){case c.default.ErrorDetails.BUFFER_SEEK_OVER_HOLE:console.log("BUFFER_SEEK_OVER_HOLE",t,n)}if(h.includes(s)){const e=L(r);e&&I(r,e)}if("fragLoadError"===s&&_&&S.current&&(S.current.currentTime=s.frag.start+s.frag.duration+1),u){switch(i){case c.default.ErrorTypes.NETWORK_ERROR:o("networkError",!0);break;case c.default.ErrorTypes.MEDIA_ERROR:console.log("fatal media error encountered, try to recover");break;default:r.destroy()}"live"===v&&(o("isStalling",!1),a({key:Date.now(),data:{event:"play_stall_end"}}),"bufferAppendError"===s?g(!0):p(!0)),o("playingTimeForPlayers","stop",e),o("playerReady",!0,e)}else switch(i){case c.default.ErrorTypes.MEDIA_ERROR:"no audio/video samples found"===l&&r.detachMedia()}})),()=>{S.current&&(S.current.ontimeupdate=null),setTimeout(()=>{r&&r.destroy&&r.destroy()},0),a({key:Date.now(),data:{event:"play_stop",type:"hls_dvr"}})}},[k]);const q=e=>{const t=e||y;S.current&&(S.current.playbackRate="live"===v?1:t,a({key:Date.now(),data:{event:"play_options",type:"hls_dvr",currentSpeed:t}}))};return(0,u.useEffect)(()=>{N(T)},[b,T]),(0,u.useEffect)(()=>{q(y)},[y,v]),(0,u.useEffect)(()=>{var e,t;return null===(e=S.current)||void 0===e||e.addEventListener("timeupdate",M.bind(this)),null===(t=S.current)||void 0===t||t.addEventListener("error",j),()=>{var e,t;null===(e=S.current)||void 0===e||e.removeEventListener("timeupdate",M),null===(t=S.current)||void 0===t||t.removeEventListener("error",j)}},[S,x,M]),(0,u.useEffect)(()=>{S.current&&(S.current.playbackRate=y)},[S]),u.default.createElement(u.Fragment,null,w&&u.default.createElement("div",{style:{position:"absolute",color:"#fff",background:"#00000060",padding:"8px 12px",zIndex:50}},String(x)),u.default.createElement("video",{ref:S,muted:r,onDoubleClick:i,style:{width:"100%",height:"100%"},autoPlay:!0,className:"video-js",controls:!1,playsInline:!0,"data-cy":"videoElement",onCanPlay:()=>q(y),key:"dvr_player"}))}},function(e,t,n){"use strict";var r,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return(r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return o(t,e),t}),s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.WebRTCPlayer=void 0;const u=a(n(0)),c=n(1128),l=n(87),f=n(343),d=n(89);t.WebRTCPlayer=({name:e,url:t,setRef:n,muted:r,handleFullScreen:i,returnData:o,onEvent:a,isSelected:h,authTokenName:p,tokenValue:g,debug:m})=>{const{getCommonTelemetryFields:v,sendMetrics:y}=(0,u.useContext)(l.TelemetryContext),{getPackets:b}=f.webrtcTelemetry,_=(0,d.getNewURL)(t),w=`${null==_?void 0:_.origin}${null==_?void 0:_.pathname}`,E=_?(0,d.getFilteredParams)(Object.fromEntries(_.searchParams.entries())):void 0,S=(0,u.useRef)(null);return(0,u.useEffect)(()=>{const r=(new Date).getTime()/1e3,i={shouldLog:m,autoplay:!0,retryMax:0,statsSendEnable:!1,authTokenName:p,tokenValue:g},u=new c.Player(S.current,t,i);o("live",!0),o("playback_speed",1),a({key:Date.now(),data:{event:"play_init"}}),h&&u&&o("playerLink",u),u.on(c.PLAYER_EVENTS.PLAY,()=>{o("playerReady",!0,e),o("isStalling",!1),a({key:Date.now(),data:{event:"play_stall_end"}}),o("playerProgressTime",r),o("progressTimeForPlayers",r,e),a({key:Date.now(),data:{event:"play_started"}})}),u.on(c.PLAYER_EVENTS.FAIL,t=>{a({key:Date.now(),data:{event:"player_error",error_name:JSON.stringify(t),error_message:JSON.stringify(t)}}),o("playingTimeForPlayers","stop",e),o("playerProgressTime",(new Date).getTime()/1e3),o("playerReady",!0,e)});const l=u.remotePc.ontrack;u.remotePc.ontrack=function(e){return e.receiver&&(e=>{let t=0;setInterval(()=>s(void 0,void 0,void 0,(function*(){(yield e.getStats()).forEach(e=>{if("inbound-rtp"===e.type&&!e.isRemote){const{packetsReceived:n,packetsLost:r}=e,i=n-t;t=n,y(Object.assign(Object.assign(Object.assign({},v()),b()),{url:w,query_parameters:E,packets:i,packetsLost:r}))}})})),5e3)})(e.receiver),l.call(this,e)};const f=setInterval(()=>{if(S.current&&S.current.currentTime&&r){const e=r+S.current.currentTime;o("playerProgressTime",e),a({key:Date.now(),data:{event:"play_progress",time:e}})}},250);return n(S.current),()=>{clearInterval(f),u.destroy(),a({key:Date.now(),data:{event:"play_stop"}})}},[]),u.default.createElement("video",{ref:S,muted:r,onDoubleClick:i,style:{width:"100%",height:"100%"},autoPlay:!0,className:"video-js",controls:!1,playsInline:!0,"data-cy":"videoElement",key:"webrtc_player"})}},function(e,t,n){"use strict";var r,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return(r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.NativeiOSPlayer=void 0;const s=a(n(0));t.NativeiOSPlayer=({name:e,url:t,setRef:n,muted:r,handleFullScreen:i,returnData:o,onEvent:a,setNoLiveError:u,currentTime:c,speed:l,debug:f,debugTimers:d})=>{const h=(0,s.useRef)(null),[p,g]=(0,s.useState)();(0,s.useEffect)(()=>{const r="live"===c?(new Date).getTime()/1e3:c,i=()=>{g(setInterval(()=>{h.current&&h.current.currentTime&&r&&"number"==typeof r&&o("playerProgressTime",r+h.current.currentTime)},250))},s=t=>{f&&console.log("Native ios hls error",t),"live"===c?u(!0):o("noDVR",!0),o("playerReady",!0,e),o("playingTimeForPlayers","stop",e),o("playerProgressTime",c)};return h.current&&h.current.canPlayType("application/vnd.apple.mpegurl")&&(h.current.src=t,d&&(console.timeEnd("[DVRPlayer]: Playback Startup Time"),h.current.oncanplay=()=>{console.timeEnd("[DVRPlayer]: Time to first frame")}),h.current.addEventListener("loadedmetadata",()=>{if(h.current){h.current.play().then(()=>{i(),o("tracksAudio",[{text:"ios",track_id:"a1"}])}).finally(()=>{o("playerReady",!0,e),o("isStalling",!1),a({key:Date.now(),data:{event:"play_stall_end"}}),d&&console.timeEnd("[DVRPlayer]: Player component play() start"),n(h.current),u(!1)}),h.current.addEventListener("error",s,!0)}})),()=>{h.current&&(h.current.ontimeupdate=null),clearInterval(p)}},[]);return(0,s.useEffect)(()=>{h.current&&h.current.currentTime>0&&(e=>{const t=e||l;h.current&&(h.current.playbackRate="live"===c?1:t)})(l)},[l,c]),s.default.createElement("video",{id:"video_"+e,crossOrigin:"anonymous",ref:h,muted:r,onDoubleClick:i,style:{width:"100%",height:"100%"},autoPlay:!0,className:"video-js",controls:!1,playsInline:!0,"data-cy":"videoElement",key:"native_ios_player"})}},function(e,t,n){"use strict";var r,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return(r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return o(t,e),t}),s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const u=a(n(0)),c=s(n(60)),l=n(69);n(1129);t.default=({isOpen:e,onClose:t,title:n,children:r,footer:i})=>{const{t:o}=(0,l.useTranslation)();return(0,u.useEffect)(()=>{const n=e=>{"Escape"===e.key&&t()};return e&&document.addEventListener("keydown",n),()=>{document.removeEventListener("keydown",n)}},[e,t]),e?c.default.createPortal(u.default.createElement("div",{onDoubleClick:e=>{e.stopPropagation()},className:"dvr_modal",onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),onMouseUp:e=>e.stopPropagation(),onWheel:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation(),onTouchStart:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation()},u.default.createElement("div",{className:"dvr_modal_wrapper"},u.default.createElement("button",{className:"bigRoundButton dvr_modal_close",onClick:t,type:"button","aria-label":o("modal.close"),title:o("modal.close")},u.default.createElement("span",{className:"icon-close"})),n&&u.default.createElement("div",{className:"dvr_modal_title"},n),u.default.createElement("div",{className:"dvr_modal_content"},r),i&&u.default.createElement("div",{className:"dvr_modal_footer"},i))),document.body):null}},function(e,t,n){"use strict";var r,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return(r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return o(t,e),t}),s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const u=a(n(0)),c=n(1131),l=n(87),f=s(n(1132)),d=n(1136),h=n(547);t.default=e=>{const{getCommonTelemetryFields:t,sendMetrics:n}=(0,u.useContext)(l.TelemetryContext);return u.default.createElement(c.ErrorBoundary,{FallbackComponent:d.ErrorFallback,onError:e=>(e=>{n(h.imageHighlighterTelemetry.errorOccurred(t(),e))})(e)},u.default.createElement(f.default,Object.assign({},e)))}},function(e,t,n){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0;const i=r(n(0)),o=n(171),a=n(191);t.Logo=({name:t,basicApiConfig:n,logoProperties:r})=>{const[s,u]=i.default.useState(null);(0,a.media_logo)({params:{name:t},options:{keepPreviousData:!0,onSuccess:t=>{u(e.from(t.data,"binary").toString("base64"))}},config:Object.assign(Object.assign({},n),{responseType:"arraybuffer"})});const c=(0,o.isUndefined)(r.top)&&(0,o.isUndefined)(r.bottom)&&(0,o.isUndefined)(r.left)&&(0,o.isUndefined)(r.right);return i.default.createElement("img",{src:"data:image/png;base64,"+s,alt:"Dvr Player stream logo",style:{position:"absolute",zIndex:49,pointerEvents:"none",top:c?"10px":r.top+"px",bottom:r.bottom+"px",left:c?"10px":r.left+"px",right:r.right+"px",width:r.width||60,height:r.height||60}})},t.default=t.Logo}).call(this,n(341).Buffer)},function(e,t,n){"use strict";var r,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return(r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.Advert=void 0;const s=a(n(0));n(1144);const u=n(1146);t.Advert=({advert:e,returnData:t,onEvent:n})=>{const[r,i]=(0,s.useState)(0),[o,a]=(0,s.useState)([]);return(0,s.useEffect)(()=>{r===e.length&&t("advert",[])},[r,e,t]),s.default.createElement("div",{className:"adverts_block"},r<=e.length-1?s.default.createElement(u.AdvertPlayer,{url:e[r].clip_url,link:e[r].site_url,index:r,setActiveIndex:i,setAdvertDuration:(e,t)=>{if("number"==typeof e){const r=o;r[e]=t,a(r),(()=>{let e=0;o.forEach(t=>{e+=t}),n("",{key:Date.now(),data:{event:"advertising_duration",type:"advertising_duration",duration:e}})})()}},onEvent:n,key:"advert_player_"+r}):null)},t.default=t.Advert},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DvrNowMarker=void 0;const i=r(n(0));t.DvrNowMarker=({width:e,now:t})=>i.default.createElement("div",{className:"now-marker","data-cy":"now-marker",style:{left:t/(e/100)+"%"}},i.default.createElement("div",null))},function(e,t,n){"use strict";var r,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return(r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return o(t,e),t}),s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DvrRanges=t.checkSegmentAndInvoke=void 0;const u=a(n(0)),c=s(n(1152));t.checkSegmentAndInvoke=(e,t,n,r)=>{e.some(e=>e.from>Number(t.utc)&&!(null==e?void 0:e.meta))&&(null==n?void 0:n.some(e=>{const[n,r]=(null==e?void 0:e.key)?e.key.split("_"):[null,null];return"hit"===r&&Number(n)>Number(t.utc)}))&&r()};t.DvrRanges=({left:e,width:n,motion:r,onUtcSeek:i,allRangeInfo:o,onHandleClick:a})=>{const[s,l]=(0,u.useState)(),f=(0,u.useCallback)((t=[])=>{const r=n/100,i=[];return t.forEach(t=>{if("number"!=typeof t.width||Number.isNaN(t.width)||Number.isNaN(t.left))return;let o=Math.round(t.left+e),a=Math.round(t.width);if(o+a<=0)return;if(o<0&&(a+=o,o=0),o>n)return;o+a>n&&(a=n-o);const s={left:o/r,utc:t.utc,width:a/r,type:t.type};t.opacity&&(s.opacity=t.opacity),t.color&&(s.color=t.color),t.title&&(s.title=t.title),t.note&&(s.note=t.note),i.push(s)}),i},[e,n]),d=function(e){if(e.preventDefault(),e.stopPropagation(),null!==e&&e.target instanceof HTMLElement){const{dataset:t}=e.target,{utc:n}=t;n&&i&&i(parseInt(n,10))}},h=(0,u.useCallback)(e=>f(e)||[],[f]);return(0,u.useEffect)(()=>{Object.keys(o).forEach(e=>{var n;const r=h(o[e].ranges).map(e=>u.default.createElement("div",{key:`${e.utc}_${e.type}`,className:e.type,"data-cy":e.type,onClick:n=>((e,n)=>{if("hit"===e.type)a(n);else{const r=Object.values(o)[0];(0,t.checkSegmentAndInvoke)(r.segments,e,s,()=>a(n))}})(e,n),style:e?{left:e.left+"%",width:e.width?e.width+"%":""}:{}}));if((null==r?void 0:r.length)>0){const e=null===(n=r[r.length-1])||void 0===n?void 0:n.props.style.left;if(e&&e.endsWith("%")){const t=100-parseFloat(e.replace("%",""));r.push(u.default.createElement("div",{key:"backToLive",className:"backToLive","data-cy":"backToLive",onClick:e=>a(e),style:{width:t+"%",right:"0%"}}))}}return l(r),r})},[o,h]),u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"recorded-ranges"},u.default.createElement("div",{className:"range-wrap","data-cy":"range-wrap"},s)),u.default.createElement("div",{className:"motion-wrap"},(f(r)||[]).map(e=>u.default.createElement("div",{key:`${e.utc}-${e.type}-${e.left}`,"data-utc":e.utc,"data-type":e.type,className:e.type,"data-title":e.title,"data-note":e.note,onMouseDown:d,style:e?{left:e.left+"%",width:e.width+"%",opacity:e.opacity,background:e.color?e.color:"#f0ad4e",border:e.color?"3px solid "+e.color:"3px solid #f0ad4e"}:{}},u.default.createElement("div",{className:"tooltiptext"},u.default.createElement(c.default,{tooltipData:{title:e.title,note:e.note,utc:e.utc}}))))))}},function(e,t,n){"use strict";var r,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return(r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0});const s=a(n(0)),u=n(12);n(1153);t.default=({now:e,locale:t,onChange:n,setTimelineZoom:r,toggleCalendar:i,calendarRanges:o})=>{const[a,c]=(0,s.useState)(e),[l,f]=(0,s.useState)((new Date).getTime()),d={ru:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],en:["January","February","March","April","May","June","July","August","September","October","November","December"]},h={ru:["Пн","Вт","Ср","Чт","Пт","Сб","Вс"],en:["Mon","Tue","Wen","Thu","Fri","Sat","Sun"]},p=(e,t)=>{if(e.preventDefault(),!(e.target instanceof HTMLDivElement&&t))return;const{dataset:i}=e.target,{utc:o,start:a,end:s}=i;a&&s&&r(a,s),n(o)},g=(e,t)=>{let n=!1;for(let r=0;r<t.length&&(n=(0,u.intersection)(e,t[r]),!n);r++);return n},m=t=>{const n=new Date;n.setTime(1e3*a);const r=n.getMonth();let i=[];o&&o.length&&(i=o.map((function(e){return{start:e.from,end:e.from+e.duration}}))),n.setDate(1);const c=n.getDay();n.setTime(n.getTime()-864e5*(c-1)),n.setHours(0,0,0,0);const d=n.getTime();0===t&&d!==l&&f(d);const h=[],m=function(){let t=new Date;return t=new Date(1e3*e),n.getDate()===t.getDate()&&n.getMonth()===t.getMonth()&&n.getFullYear()===t.getFullYear()};for(let e=0;e<7;e+=1){n.setTime(d+86400*(7*t+e)*1e3);let o="day-entry "+(n.getMonth()===r?"current-month":"other-month");m()?o+=" selected-day ":n.getDate()===(new Date).getDate()&&n.getMonth()===(new Date).getMonth()&&n.getFullYear()===(new Date).getFullYear()?o+=" current-day ":o+=" other-day ";const a=(0,u.getDayRangeByUtc)(Math.round(n.getTime()/1e3)),c=g(a,i),l=!!c;let f=Math.round((new Date).getTime()/1e3);c&&(f=c.start),h.push(s.default.createElement("div",{className:`${o}${l&&n.getTime()<(new Date).getTime()?"available":""}`,key:`${e}_${n.getDate()}`,"data-date":n,"data-utc":f,"data-start":a.start,"data-end":a.end,"data-cy":`calendar_btn_${n.getMonth()}_${n.getDate()}`,onClick:e=>{p(e,l)}},n.getDate()))}return h};return(0,s.useEffect)(()=>{(()=>{const e=new Date;let t=new Date;e.setTime(1e3*a),t=new Date(e.getFullYear(),e.getMonth()+1,e.getDate()),e.setDate(1),t.setDate(0),e.setHours(0,0,0),t.setHours(0,0,0)})()},[i]),s.default.createElement("div",{className:"nd_calendar",id:"calendar"},s.default.createElement("div",{className:"month-selection"},s.default.createElement("div",{onClick:e=>{e.preventDefault();const t=new Date;t.setTime(1e3*a),0===t.getMonth()?(t.setFullYear(t.getFullYear()-1),t.setMonth(11)):t.setMonth(t.getMonth()-1),c(Math.round(t.getTime()/1e3))},className:"month-change month-prev","data-cy":"calendarPrevMonthBtn"},s.default.createElement("span",{className:"icon-date_two_player"})),s.default.createElement("div",{className:"month"},(e=>{const n=new Date;return n.setTime(1e3*e),d[t||"en"][n.getMonth()]})(a)+", ",s.default.createElement("span",{className:"year"},(e=>{const t=new Date;return t.setTime(1e3*e),t.getFullYear()})(a))),s.default.createElement("div",{onClick:e=>{e.preventDefault();const t=new Date;t.setTime(1e3*a),11===t.getMonth()?(t.setFullYear(t.getFullYear()+1),t.setMonth(0)):t.setMonth(t.getMonth()+1),t.getTime()<(new Date).getTime()&&c(Math.round(t.getTime()/1e3))},className:"month-change month-next"},s.default.createElement("span",{className:"icon-date_two_player"}))),s.default.createElement("div",{className:"clear"}),s.default.createElement("div",{className:"strap"}),s.default.createElement("div",{className:"days"},s.default.createElement("div",{className:"day-names"},(()=>{const e=h[t||"en"],n=[];for(let t=0;t<7;t++)n.push(s.default.createElement("div",{className:"day-name",key:t},e[t%e.length]));return n})()),s.default.createElement("div",{className:"clear"}),s.default.createElement("div",{className:"day-entries"},m(0)),s.default.createElement("div",{className:"clear"}),s.default.createElement("div",{className:"day-entries"},m(1)),s.default.createElement("div",{className:"clear"}),s.default.createElement("div",{className:"day-entries"},m(2)),s.default.createElement("div",{className:"clear"}),s.default.createElement("div",{className:"day-entries"},m(3)),s.default.createElement("div",{className:"clear"}),s.default.createElement("div",{className:"day-entries"},m(4)),s.default.createElement("div",{className:"clear"}),s.default.createElement("div",{className:"day-entries"},m(5)),s.default.createElement("div",{className:"clear"})))}},function(e,t,n){"use strict";var r,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return(r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.Timeline=void 0;const s=a(n(0));n(1166);t.Timeline=({video:e,from:t,to:n,playbackDuration:r,returnData:i,debug:o})=>{const[a,u]=(0,s.useState)(!1),c=n-t||r,l=e=>e/(c/100)+"%",f=e?e.currentTime:0,d=e?e.buffered:[],h=e?e.played:0,p=function(e,t){const n=[];if(e.length)for(let r=0;r<e.length;r+=1)n.push(s.default.createElement("div",{className:t,style:{left:l(e.start(r)),width:l(e.end(r)-e.start(r))},key:`${t}_${Math.random()}`}));return n},g=t=>{const{target:n,clientX:r}=t,{width:i,left:o}=n.getBoundingClientRect(),a=Number(((r-o)/(i/c)).toFixed(6));e&&f>0&&e.currentTime!==a&&(e.currentTime=a)},m=(0,s.useCallback)(t=>{const{code:n}=t;e&&("ArrowRight"===n&&(e.currentTime+=.5),"ArrowLeft"===n&&(e.currentTime-=.5))},[e]);(0,s.useEffect)(()=>(document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}),[m]);return s.default.createElement("div",{className:"ott_timeline",onClick:g,onMouseMove:e=>{const{clientX:t,target:n}=e,{left:r}=n.getBoundingClientRect();a&&g(e)},onMouseDown:()=>{u(!0),i("paused",!0),e.pause()},onMouseUp:()=>{u(!1),i("paused",!1),e.play()}},s.default.createElement("div",{className:"line"},p(d,"buffered"),o&&p(h,"played-debug"),s.default.createElement("div",{className:"played",style:{width:l(f)}})),s.default.createElement("div",{className:"now",style:{left:l(f)}}))},t.default=t.Timeline},function(e,t,n){"use strict";var r,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return(r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.TimeIndicator=void 0;const s=a(n(0));n(1168);t.TimeIndicator=({from:e,to:t,playbackDuration:n,video:r})=>{const i=r?r.currentTime:0,o=t-e||n,a=e=>{let t=Math.floor(e/60),n=e%60;return t=t<10?"0"+t:t,n=n<10?"0"+n:n,`${t}:${n}`};return s.default.createElement("div",{className:"ott_time"},`${a(Math.round(i))} / ${a(o)}`)},t.default=(0,s.memo)(t.TimeIndicator)},function(e,t,n){"use strict";var r,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return(r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return o(t,e),t}),s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const c=a(n(0)),l=u(n(170)),f=n(69),d=n(1172);n(1173);const h=n(87),p=n(89),g=n(1175);t.default=(0,c.memo)(({headers:e,ptz_url:t})=>{const{t:n}=(0,f.useTranslation)(),[r,i]=(0,c.useState)(20),[o,a]=(0,c.useState)(10),{getCommonTelemetryFields:u,getCommonRequestFields:m,getCommonErrorRequestFields:v,sendMetrics:y}=(0,c.useContext)(h.TelemetryContext),{getPtzFields:b,errorPtzFields:_}=g.ptzTelemetry,w=(n,i,a)=>s(void 0,void 0,void 0,(function*(){const s=i?0:r,c=i?0:o,f={left:{left:s},right:{right:s},up:{up:s},down:{down:s},"north-west":{left:c,up:c},"north-east":{right:c,up:c},"south-west":{left:c,down:c},"south-east":{right:c,down:c},in:{in:s},out:{out:s}}[n]||{},d=performance.now();yield l.default.post(t,f,{headers:e}).then(e=>(y(Object.assign(Object.assign(Object.assign({},u()),m(Object.assign(Object.assign({},e),{duration:(0,p.getFormattedDuration)(performance.now()-d)}))),b())),a?setTimeout(()=>{w(n,!0)},500):null)).catch(e=>{e&&y(Object.assign(Object.assign(Object.assign({},u()),v(e)),_()))})}));return c.default.createElement("div",{className:"ptzWrapper"},c.default.createElement("div",{className:"ptzZoom"},c.default.createElement("div",null,c.default.createElement(d.CameraArrow,{direction:"in",Icon:c.default.createElement("span",{className:"material-symbols-outlined"},"add"),onMove:w})),c.default.createElement("div",null,c.default.createElement(d.CameraArrow,{direction:"out",Icon:c.default.createElement("span",{className:"material-symbols-outlined"},"remove"),onMove:w}))),c.default.createElement("div",{className:"ptzNavigation"},c.default.createElement("div",null,c.default.createElement(d.CameraArrow,{direction:"north-west",Icon:c.default.createElement("span",{className:"material-symbols-outlined"},"north_west"),onMove:w})),c.default.createElement("div",null,c.default.createElement(d.CameraArrow,{direction:"up",Icon:c.default.createElement("span",{className:"material-symbols-outlined"},"arrow_upward"),onMove:w})),c.default.createElement("div",null,c.default.createElement(d.CameraArrow,{direction:"north-east",Icon:c.default.createElement("span",{className:"material-symbols-outlined"},"north_east"),onMove:w})),c.default.createElement("div",null,c.default.createElement(d.CameraArrow,{direction:"left",Icon:c.default.createElement("span",{className:"material-symbols-outlined"},"arrow_back"),onMove:w})),c.default.createElement("div",null,c.default.createElement("div",{style:{width:36,height:36}})),c.default.createElement("div",null,c.default.createElement(d.CameraArrow,{direction:"right",Icon:c.default.createElement("span",{className:"material-symbols-outlined"},"arrow_forward"),onMove:w})),c.default.createElement("div",null,c.default.createElement(d.CameraArrow,{direction:"south-west",Icon:c.default.createElement("span",{className:"material-symbols-outlined"},"south_west"),onMove:w})),c.default.createElement("div",null,c.default.createElement(d.CameraArrow,{direction:"down",Icon:c.default.createElement("span",{className:"material-symbols-outlined"},"arrow_downward"),onMove:w})),c.default.createElement("div",null,c.default.createElement(d.CameraArrow,{direction:"south-east",Icon:c.default.createElement("span",{className:"material-symbols-outlined"},"south_east"),onMove:w}))),c.default.createElement("div",{className:"speedControl"},c.default.createElement("label",{htmlFor:"speedSlider"},n("ptz_speed")),c.default.createElement("input",{title:`${n("ptz_speed")}: ${r}`,type:"range",id:"speedSlider",min:"0",max:"100",value:r,onChange:e=>{const t=parseInt(e.target.value,10);i(t),a(t/2)},step:"1"})))})},function(e){e.exports=JSON.parse('{"dvr_back_to_live":"Back to live","dvr_live":"LIVE","dvr_back":"Back","dvr_play":"Play","dvr_pause":"Pause","dvr_go_to_carret_position":"Go to carret position","dvr_slower":"Slower","dvr_faster":"Faster","dvr_select_export":"Select and export","dvr_calendar":"Calendar","dvr_ranges_loading":"Ranges loading ...","dvr_take_screenshot":"Take a screenshot","dvr_content_copied":"Content copied to clipboard","dvr_close":"Close","dvr_dropdown_download":"Download","dvr_format":"Format","dvr_export_menu":"Export menu","dvr_download_mp4":"Download mp4","dvr_download_mp4_with_tracks":"Download mp4 with selected tracks","dvr_download_ts":"Download TS","dvr_download_ts_with_tracks":"Download TS with selected tracks","dvr_share_selected":"Share selected","dvr_copy_embed_url":"Copy embed URL","dvr_video_quality":"Video quality","dvr_audio_track":"Audio track","dvr_auto":"auto","dvr_mse_forbidden":"FORBIDDEN","dvr_mse_network_error":"NETWORK ERROR","dvr_mse_no_live_stream":"NO LIVE STREAM","dvr_mse_no_dvr":"NO DVR","dvr_mse_no_dvr_recording_here":"NO DVR RECORDING HERE","dvr_error_video_stream":"The video is unavailable. Try upgrade your browser.","dvr_episode_type_person":"Person","dvr_episode_type_plate":"Plate","dvr_episode_type_motion":"Motion","copy_debug_data":"Copy Debug Data","ptz_speed":"Speed","highlighter.delete_all":"Delete selected areas","highlighter.add_box":"Select Area","highlighter.download":"Download image","modal.close":"Close modal","image_editor":"Image editing"}')},function(e){e.exports=JSON.parse('{"dvr_back_to_live":"Вернуться к прямому эфиру","dvr_live":"ПРЯМОЙ ЭФИР","dvr_back":"Назад","dvr_play":"Воспроизведение","dvr_pause":"Пауза","dvr_go_to_carret_position":"Перейти к каретке","dvr_slower":"Медленнее","dvr_faster":"Быстрее","dvr_select_export":"Выбрать и экспортировать","dvr_calendar":"Календарь","dvr_ranges_loading":"Загрузка рейнджей ...","dvr_take_screenshot":"Сделать скриншот","dvr_content_copied":"Данные скопированы","dvr_close":"Закрыть","dvr_dropdown_download":"Скачать","dvr_format":"Формат","dvr_export_menu":"Меню экспорта","dvr_download_mp4":"Загрузить mp4","dvr_download_mp4_with_tracks":"Загрузить mp4 с выбранными треками","dvr_download_ts":"Загрузить TS","dvr_download_ts_with_tracks":"Загрузить TS с выбранными треками","dvr_share_selected":"Поделиться выбранным","dvr_copy_embed_url":"Скопировать embed URL","dvr_video_quality":"Качество видео","dvr_audio_track":"Аудио трек","dvr_auto":"авто","dvr_mse_forbidden":"ДОСТУП ЗАПРЕЩËН","dvr_mse_network_error":"ОШИБКА СОЕДИНЕНИЯ","dvr_mse_no_live_stream":"ОТСУТСТВУЕТ ПРЯМОЙ ЭФИР","dvr_mse_no_dvr":"ОТСУТСТВУЕТ DVR","dvr_mse_no_dvr_recording_here":"ЗДЕСЬ ОТСУТСТВУЕТ DVR ЗАПИСЬ","dvr_error_video_stream":"Видео недоступно. Попробуйте обновить браузер.","dvr_episode_type_person":"Персона","dvr_episode_type_plate":"Номерной знак","dvr_episode_type_motion":"Движение","copy_debug_data":"Скопировать данные для отладки","ptz_speed":"Speed","highlighter.delete_all":"Удалить выделенные области","highlighter.add_box":"Выделить область","highlighter.download":"Скачать картинку","modal.close":"Закрыть модалку","image_editor":"Работа с изображением"}')},function(e,t,n){e.exports=n(1185)},function(e,t,n){var r=n(107).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";e.exports=n(575)},function(e,t,n){"use strict";n(576),n(582),n(365),n(583),n(366),n(584),n(585),n(586),n(587),n(588),n(589),n(590),n(591),n(592),n(593),n(594),n(595),n(596),n(373),n(597),n(375),n(599),n(376),n(377),n(600),n(601),n(602),n(603),n(604),n(605),n(606),n(379),n(380),n(607),n(608),n(609),n(610),n(611),n(612),n(613),n(236),n(614),n(615),n(616),n(617),n(618),n(619),n(620),n(621),n(622),n(623),n(624),n(625),n(626),n(387),n(389),n(391),n(627),n(628),n(629),n(392),n(630),n(632),n(633),n(634),n(396),n(397),n(400),n(403),n(407),n(636),n(637),n(638),n(639),n(640),n(642),n(643),n(645),n(408),n(646),n(647),n(648),n(649),n(411),n(412),n(413),n(414),n(415),n(416),n(417),n(418),n(419),n(420),n(315),n(421),n(422),n(423),n(424),n(363),n(650),n(316),n(426),n(652),n(653),n(654),n(655),n(656),n(657),n(658),n(659),n(428),n(660),n(661),n(662),n(663),n(664),n(665),n(666),n(667),n(668),n(669),n(670),n(671),n(672),n(673),n(674),n(675),n(676),n(677),n(678),n(679),n(680),n(681),n(682),n(683),n(684),n(685),n(686),n(687),n(688),n(689),n(690),n(691),n(692),n(693),n(694),n(695),n(435),n(436),n(696),n(697),n(698),n(699),n(700),n(701),n(702),n(703),n(704),n(705),n(706),n(707),n(709),n(710),n(711),n(712),n(444),n(445),n(721),n(446),n(447),n(448),n(450),n(451),n(723),n(724),n(725),n(726),n(727),n(728),n(729),n(730),n(731),n(732),n(733),n(734),n(735),n(736),n(737),n(455),n(738),n(322),n(739),n(740),n(741),n(742),n(743),n(456),n(458),n(460),n(462),n(464),n(466),n(469),n(745),n(746),n(747),n(471),n(748),n(472),n(473),n(749),n(474),n(750),n(751),n(752),n(753),n(754),n(477),n(755),n(756),n(757),n(758),n(478),n(759),n(760),n(762),n(764),n(765),n(766),n(767),n(768),n(769),n(770),n(771),n(772),n(773),n(774),n(775),n(776),n(777),n(778),n(779),n(780),n(781),n(782),n(783),n(784),n(785),n(484),n(786),n(787),n(788),n(789),n(790),n(791),n(485),n(486),n(792),n(793),n(794),n(795),n(796),n(797),n(798),n(799),n(800),n(801),n(802),n(803),n(804),n(805),n(806),n(807),n(808),n(809),n(487),n(488),n(810),n(489),n(811),n(331),n(813),n(815),n(816),n(817),n(818),n(819),n(820),n(821),n(822),n(823),n(824),n(825),n(826),n(827),n(828),n(829),n(830),n(831),n(832),n(833),n(834),n(835),n(836),n(837),n(838),n(839),n(840),n(841),n(842),n(843),n(844),n(845),n(846),n(847),n(848),n(849),n(850),n(851),n(852),n(853),n(854),n(855),n(856),n(857),n(858),n(859),n(860),n(861),n(862),n(863),n(864),n(865),n(866),n(867),n(868),n(869),n(870),n(871),n(872),n(873),n(874),n(875),n(876),n(877),n(878),n(879),n(880),n(881),n(882),n(883),n(884),n(885),n(886),n(887),n(888),n(889),n(890),n(891),n(892),n(894),n(895),n(896),n(897),n(898),n(899),n(900),n(901),n(902),n(903),n(904),n(905),n(906),n(907),n(908),n(910),n(911),n(912),n(913),n(914),n(915),n(916),n(917),n(918),n(919),n(920),n(921),n(923),n(924),n(925),n(926),n(927),n(928),n(929),n(930),n(931),n(932),n(933),n(934),n(935),n(936),n(937),n(938),n(939),n(940),n(941),n(942),n(943),n(944),n(945),n(949),n(950),n(951),n(952),n(953),n(954),n(955),n(956),n(957),n(958),n(959),n(960),n(961),n(962),n(963),n(964),n(965),n(966),n(968),n(969),n(970),n(971),n(972),n(973),n(974),n(975),n(976),n(977),n(978),n(979),n(980),n(981),n(982),n(983),n(984),n(985),n(986),n(987),n(988),n(989),n(990),n(991),n(992),n(994),n(995),n(996),n(997),n(998),n(999),n(1e3),n(1001),n(1002),n(1003),n(1004),n(1005),n(1006),n(1007),n(1008),n(1009),n(1010),n(1011),n(1012),n(1013),n(1014),n(1015),n(1016),n(1017),n(1018),n(1019),n(1020),n(1021),n(1022),n(1023),n(1024),n(1025),n(1026),n(1027),n(1028),n(1029),n(1030),n(1031),n(1032),n(1033),n(1034),n(1036),n(1037),n(1038),n(1039),n(1040),n(1041),n(1042),n(1043),n(1044),n(1045),n(1046),n(1047),n(1048),n(1051),n(1052),n(1053),n(1054),n(1057),n(1060),n(1061),n(1062),n(1063),n(1064),n(1065),n(1066),e.exports=n(231)},function(e,t,n){"use strict";n(577),n(579),n(580),n(363),n(581)},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(8),a=n(4),s=n(31),u=n(15),c=n(154),l=n(7),f=n(24),d=n(79),h=n(10),p=n(61),g=n(131),m=n(22),v=n(98),y=n(55),b=n(180),_=n(157),w=n(301),E=n(230),S=n(73),x=n(40),k=n(300),T=n(203),O=n(35),P=n(45),R=n(141),A=n(229),C=n(204),D=n(156),L=n(17),I=n(360),M=n(50),j=n(361),N=n(91),F=n(34),U=n(56).forEach,B=A("hidden"),q=F.set,V=F.getterFor("Symbol"),$=Object.prototype,z=i.Symbol,G=z&&z.prototype,W=i.RangeError,H=i.TypeError,K=i.QObject,Y=S.f,Q=x.f,X=w.f,J=T.f,Z=a([].push),ee=R("symbols"),te=R("op-symbols"),ne=R("wks"),re=!K||!K.prototype||!K.prototype.findChild,ie=function(e,t,n){var r=Y($,t);r&&delete $[t],Q(e,t,n),r&&e!==$&&Q($,t,r)},oe=u&&l((function(){return 7!==y(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a}))?ie:Q,ae=function(e,t){var n=ee[e]=y(G);return q(n,{type:"Symbol",tag:e,description:t}),u||(n.description=t),n},se=function(e,t,n){e===$&&se(te,t,n),h(e);var r=g(t);return h(n),f(ee,r)?(n.enumerable?(f(e,B)&&e[B][r]&&(e[B][r]=!1),n=y(n,{enumerable:v(0,!1)})):(f(e,B)||Q(e,B,v(1,y(null))),e[B][r]=!0),oe(e,r,n)):Q(e,r,n)},ue=function(e,t){h(e);var n=p(t),r=b(n).concat(de(n));return U(r,(function(t){u&&!o(ce,n,t)||se(e,t,n[t])})),e},ce=function(e){var t=g(e),n=o(J,this,t);return!(this===$&&f(ee,t)&&!f(te,t))&&(!(n||!f(this,t)||!f(ee,t)||f(this,B)&&this[B][t])||n)},le=function(e,t){var n=p(e),r=g(t);if(n!==$||!f(ee,r)||f(te,r)){var i=Y(n,r);return!i||!f(ee,r)||f(n,B)&&n[B][r]||(i.enumerable=!0),i}},fe=function(e){var t=X(p(e)),n=[];return U(t,(function(e){f(ee,e)||f(C,e)||Z(n,e)})),n},de=function(e){var t=e===$,n=X(t?te:p(e)),r=[];return U(n,(function(e){!f(ee,e)||t&&!f($,e)||Z(r,ee[e])})),r};c||(O(G=(z=function(){if(d(G,this))throw new H("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=D(e),n=function(e){var r=void 0===this?i:this;r===$&&o(n,te,e),f(r,B)&&f(r[B],t)&&(r[B][t]=!1);var a=v(1,e);try{oe(r,t,a)}catch(e){if(!(e instanceof W))throw e;ie(r,t,a)}};return u&&re&&oe($,t,{configurable:!0,set:n}),ae(t,e)}).prototype,"toString",(function(){return V(this).tag})),O(z,"withoutSetter",(function(e){return ae(D(e),e)})),T.f=ce,x.f=se,k.f=ue,S.f=le,_.f=w.f=fe,E.f=de,I.f=function(e){return ae(L(e),e)},u&&(P(G,"description",{configurable:!0,get:function(){return V(this).description}}),s||O($,"propertyIsEnumerable",ce,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:z}),U(b(ne),(function(e){M(e)})),r({target:"Symbol",stat:!0,forced:!c},{useSetter:function(){re=!0},useSimple:function(){re=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(e,t){return void 0===t?y(e):ue(y(e),t)},defineProperty:se,defineProperties:ue,getOwnPropertyDescriptor:le}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:fe}),j(),N(z,"Symbol"),C[B]=!0},function(e,t,n){"use strict";var r=n(122),i=n(123),o=n(16),a=n(17)("species"),s=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(i(t)&&(t===s||r(t.prototype))||o(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},function(e,t,n){"use strict";var r=n(2),i=n(18),o=n(24),a=n(22),s=n(141),u=n(362),c=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=a(e);if(o(c,t))return c[t];var n=i("Symbol")(t);return c[t]=n,l[n]=t,n}})},function(e,t,n){"use strict";var r=n(2),i=n(24),o=n(140),a=n(155),s=n(141),u=n(362),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(e){if(!o(e))throw new TypeError(a(e)+" is not a symbol");if(i(c,e))return c[e]}})},function(e,t,n){"use strict";var r=n(2),i=n(154),o=n(7),a=n(230),s=n(27);r({target:"Object",stat:!0,forced:!i||o((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},function(e,t,n){"use strict";var r=n(2),i=n(15),o=n(11),a=n(4),s=n(24),u=n(23),c=n(79),l=n(22),f=n(45),d=n(179),h=o.Symbol,p=h&&h.prototype;if(i&&u(h)&&(!("description"in p)||void 0!==h().description)){var g={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=c(p,this)?new h(e):void 0===e?h():h(e);return""===e&&(g[t]=!0),t};d(m,h),m.prototype=p,p.constructor=m;var v="Symbol(description detection)"===String(h("description detection")),y=a(p.valueOf),b=a(p.toString),_=/^Symbol\((.*)\)[^)]+$/,w=a("".replace),E=a("".slice);f(p,"description",{configurable:!0,get:function(){var e=y(this);if(s(g,e))return"";var t=b(e),n=v?E(t,7,-1):w(t,_,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:m})}},function(e,t,n){"use strict";n(50)("asyncIterator")},function(e,t,n){"use strict";n(50)("hasInstance")},function(e,t,n){"use strict";n(50)("isConcatSpreadable")},function(e,t,n){"use strict";n(50)("iterator")},function(e,t,n){"use strict";n(50)("match")},function(e,t,n){"use strict";n(50)("matchAll")},function(e,t,n){"use strict";n(50)("replace")},function(e,t,n){"use strict";n(50)("search")},function(e,t,n){"use strict";n(50)("species")},function(e,t,n){"use strict";n(50)("split")},function(e,t,n){"use strict";var r=n(50),i=n(361);r("toPrimitive"),i()},function(e,t,n){"use strict";var r=n(18),i=n(50),o=n(91);i("toStringTag"),o(r("Symbol"),"Symbol")},function(e,t,n){"use strict";n(50)("unscopables")},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(80),a=n(367),s=i.WebAssembly,u=7!==new Error("e",{cause:7}).cause,c=function(e,t){var n={};n[e]=a(e,t,u),r({global:!0,constructor:!0,arity:1,forced:u},n)},l=function(e,t){if(s&&s[e]){var n={};n[e]=a("WebAssembly."+e,t,u),r({target:"WebAssembly",stat:!0,constructor:!0,arity:1,forced:u},n)}};c("Error",(function(e){return function(t){return o(e,this,arguments)}})),c("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),c("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),c("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),c("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),c("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),c("URIError",(function(e){return function(t){return o(e,this,arguments)}})),l("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),l("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),l("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},function(e,t,n){"use strict";var r=n(35),i=n(374),o=Error.prototype;o.toString!==i&&r(o,"toString",i)},function(e,t,n){"use strict";var r=n(2),i=n(79),o=n(63),a=n(111),s=n(179),u=n(55),c=n(62),l=n(98),f=n(371),d=n(302),h=n(51),p=n(181),g=n(17)("toStringTag"),m=Error,v=[].push,y=function(e,t){var n,r=i(b,this);a?n=a(new m,r?o(this):b):(n=r?this:u(b),c(n,g,"Error")),void 0!==t&&c(n,"message",p(t)),d(n,y,n.stack,1),arguments.length>2&&f(n,arguments[2]);var s=[];return h(e,v,{that:s}),c(n,"errors",s),n};a?a(y,m):s(y,m,{name:!0});var b=y.prototype=u(m.prototype,{constructor:l(1,y),message:l(1,""),name:l(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:y})},function(e,t,n){"use strict";var r=n(2),i=n(18),o=n(80),a=n(7),s=n(367),u=i("AggregateError"),c=!a((function(){return 1!==u([1]).errors[0]}))&&a((function(){return 7!==u([1],"AggregateError",{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:c},{AggregateError:s("AggregateError",(function(e){return function(t,n){return o(e,this,arguments)}}),c,!0)})},function(e,t,n){"use strict";var r=n(2),i=n(7),o=n(122),a=n(16),s=n(27),u=n(28),c=n(160),l=n(112),f=n(207),d=n(208),h=n(17),p=n(119),g=h("isConcatSpreadable"),m=p>=51||!i((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),v=function(e){if(!a(e))return!1;var t=e[g];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,arity:1,forced:!m||!d("concat")},{concat:function(e){var t,n,r,i,o,a=s(this),d=f(a,0),h=0;for(t=-1,r=arguments.length;t<r;t++)if(v(o=-1===t?a:arguments[t]))for(i=u(o),c(h+i),n=0;n<i;n++,h++)n in o&&l(d,h,o[n]);else c(h+1),l(d,h++,o);return d.length=h,d}})},function(e,t,n){"use strict";var r=n(2),i=n(378),o=n(52);r({target:"Array",proto:!0},{copyWithin:i}),o("copyWithin")},function(e,t,n){"use strict";var r=n(2),i=n(56).every;r({target:"Array",proto:!0,forced:!n(113)("every")},{every:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(2),i=n(306),o=n(52);r({target:"Array",proto:!0},{fill:i}),o("fill")},function(e,t,n){"use strict";var r=n(2),i=n(56).filter;r({target:"Array",proto:!0,forced:!n(208)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(2),i=n(56).find,o=n(52),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("find")},function(e,t,n){"use strict";var r=n(2),i=n(56).findIndex,o=n(52),a=!0;"findIndex"in[]&&Array(1).findIndex((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findIndex")},function(e,t,n){"use strict";var r=n(2),i=n(381),o=n(27),a=n(28),s=n(44),u=n(207);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=o(this),n=a(t),r=u(t,0);return r.length=i(r,t,t,n,0,void 0===e?1:s(e)),r}})},function(e,t,n){"use strict";var r=n(2),i=n(381),o=n(19),a=n(27),s=n(28),u=n(207);r({target:"Array",proto:!0},{flatMap:function(e){var t,n=a(this),r=s(n);return o(e),(t=u(n,0)).length=i(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},function(e,t,n){"use strict";var r=n(2),i=n(382);r({target:"Array",proto:!0,forced:[].forEach!==i},{forEach:i})},function(e,t,n){"use strict";var r=n(2),i=n(383);r({target:"Array",stat:!0,forced:!n(235)((function(e){Array.from(e)}))},{from:i})},function(e,t,n){"use strict";var r=n(2),i=n(205).includes,o=n(7),a=n(52);r({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},function(e,t,n){"use strict";var r=n(2),i=n(158),o=n(205).indexOf,a=n(113),s=i([].indexOf),u=!!s&&1/s([1],1,-0)<0;r({target:"Array",proto:!0,forced:u||!a("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return u?s(this,e,t)||0:o(this,e,t)}})},function(e,t,n){"use strict";n(2)({target:"Array",stat:!0},{isArray:n(122)})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(139),a=n(61),s=n(113),u=i([].join);r({target:"Array",proto:!0,forced:o!==Object||!s("join",",")},{join:function(e){return u(a(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var r=n(2),i=n(384);r({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},function(e,t,n){"use strict";var r=n(2),i=n(56).map;r({target:"Array",proto:!0,forced:!n(208)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(2),i=n(7),o=n(123),a=n(112),s=Array;r({target:"Array",stat:!0,forced:i((function(){function e(){}return!(s.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,n=new(o(this)?this:s)(t);t>e;)a(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var r=n(2),i=n(27),o=n(28),a=n(309),s=n(160);r({target:"Array",proto:!0,arity:1,forced:n(7)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=i(this),n=o(t),r=arguments.length;s(n+r);for(var u=0;u<r;u++)t[n]=arguments[u],n++;return a(t,n),n}})},function(e,t,n){"use strict";var r=n(2),i=n(237).left,o=n(113),a=n(119);r({target:"Array",proto:!0,forced:!n(183)&&a>79&&a<83||!o("reduce")},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(2),i=n(237).right,o=n(113),a=n(119);r({target:"Array",proto:!0,forced:!n(183)&&a>79&&a<83||!o("reduceRight")},{reduceRight:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(122),a=i([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),a(this)}})},function(e,t,n){"use strict";var r=n(2),i=n(122),o=n(123),a=n(16),s=n(121),u=n(28),c=n(61),l=n(112),f=n(17),d=n(208),h=n(101),p=d("slice"),g=f("species"),m=Array,v=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var n,r,f,d=c(this),p=u(d),y=s(e,p),b=s(void 0===t?p:t,p);if(i(d)&&(n=d.constructor,(o(n)&&(n===m||i(n.prototype))||a(n)&&null===(n=n[g]))&&(n=void 0),n===m||void 0===n))return h(d,y,b);for(r=new(void 0===n?m:n)(v(b-y,0)),f=0;y<b;y++,f++)y in d&&l(r,f,d[y]);return r.length=f,r}})},function(e,t,n){"use strict";var r=n(2),i=n(56).some;r({target:"Array",proto:!0,forced:!n(113)("some")},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(19),a=n(27),s=n(28),u=n(233),c=n(22),l=n(7),f=n(310),d=n(113),h=n(385),p=n(386),g=n(119),m=n(311),v=[],y=i(v.sort),b=i(v.push),_=l((function(){v.sort(void 0)})),w=l((function(){v.sort(null)})),E=d("sort"),S=!l((function(){if(g)return g<70;if(!(h&&h>3)){if(p)return!0;if(m)return m<603;var e,t,n,r,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)v.push({k:t+r,v:n})}for(v.sort((function(e,t){return t.v-e.v})),r=0;r<v.length;r++)t=v[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));r({target:"Array",proto:!0,forced:_||!w||!E||!S},{sort:function(e){void 0!==e&&o(e);var t=a(this);if(S)return void 0===e?y(t):y(t,e);var n,r,i=[],l=s(t);for(r=0;r<l;r++)r in t&&b(i,t[r]);for(f(i,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:c(t)>c(n)?1:-1}}(e)),n=s(i),r=0;r<n;)t[r]=i[r++];for(;r<l;)u(t,r++);return t}})},function(e,t,n){"use strict";n(163)("Array")},function(e,t,n){"use strict";var r=n(2),i=n(27),o=n(121),a=n(44),s=n(28),u=n(309),c=n(160),l=n(207),f=n(112),d=n(233),h=n(208)("splice"),p=Math.max,g=Math.min;r({target:"Array",proto:!0,forced:!h},{splice:function(e,t){var n,r,h,m,v,y,b=i(this),_=s(b),w=o(e,_),E=arguments.length;for(0===E?n=r=0:1===E?(n=0,r=_-w):(n=E-2,r=g(p(a(t),0),_-w)),c(_+n-r),h=l(b,r),m=0;m<r;m++)(v=w+m)in b&&f(h,m,b[v]);if(h.length=r,n<r){for(m=w;m<_-r;m++)y=m+n,(v=m+r)in b?b[y]=b[v]:d(b,y);for(m=_;m>_-r+n;m--)d(b,m-1)}else if(n>r)for(m=_-r;m>w;m--)y=m+n-1,(v=m+r-1)in b?b[y]=b[v]:d(b,y);for(m=0;m<n;m++)b[m+w]=arguments[m+2];return u(b,_-r+n),h}})},function(e,t,n){"use strict";n(52)("flat")},function(e,t,n){"use strict";n(52)("flatMap")},function(e,t,n){"use strict";var r=n(2),i=n(27),o=n(28),a=n(309),s=n(233),u=n(160);r({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var t=i(this),n=o(t),r=arguments.length;if(r){u(n+r);for(var c=n;c--;){var l=c+r;c in t?t[l]=t[c]:s(t,l)}for(var f=0;f<r;f++)t[f]=arguments[f]}return a(t,n+r)}})},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(239),a=n(163),s=o.ArrayBuffer;r({global:!0,constructor:!0,forced:i.ArrayBuffer!==s},{ArrayBuffer:s}),a("ArrayBuffer")},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-1]|=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(2),i=n(26);r({target:"ArrayBuffer",stat:!0,forced:!i.NATIVE_ARRAY_BUFFER_VIEWS},{isView:i.isView})},function(e,t,n){"use strict";var r=n(2),i=n(158),o=n(7),a=n(239),s=n(10),u=n(121),c=n(100),l=a.ArrayBuffer,f=a.DataView,d=f.prototype,h=i(l.prototype.slice),p=i(d.getUint8),g=i(d.setUint8);r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o((function(){return!new l(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(h&&void 0===t)return h(s(this),e);for(var n=s(this).byteLength,r=u(e,n),i=u(void 0===t?n:t,n),o=new l(c(i-r)),a=new f(this),d=new f(o),m=0;r<i;)g(d,m++,p(a,r++));return o}})},function(e,t,n){"use strict";n(635)},function(e,t,n){"use strict";var r=n(2),i=n(239);r({global:!0,constructor:!0,forced:!n(240)},{DataView:i.DataView})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(7)((function(){return 120!==new Date(16e11).getYear()})),a=i(Date.prototype.getFullYear);r({target:"Date",proto:!0,forced:o},{getYear:function(){return a(this)-1900}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=Date,a=i(o.prototype.getTime);r({target:"Date",stat:!0},{now:function(){return a(new o)}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(44),a=Date.prototype,s=i(a.getTime),u=i(a.setFullYear);r({target:"Date",proto:!0},{setYear:function(e){s(this);var t=o(e);return u(this,t>=0&&t<=99?t+1900:t)}})},function(e,t,n){"use strict";n(2)({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},function(e,t,n){"use strict";var r=n(2),i=n(641);r({target:"Date",proto:!0,forced:Date.prototype.toISOString!==i},{toISOString:i})},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(241).start,a=RangeError,s=isFinite,u=Math.abs,c=Date.prototype,l=c.toISOString,f=r(c.getTime),d=r(c.getUTCDate),h=r(c.getUTCFullYear),p=r(c.getUTCHours),g=r(c.getUTCMilliseconds),m=r(c.getUTCMinutes),v=r(c.getUTCMonth),y=r(c.getUTCSeconds);e.exports=i((function(){return"0385-07-25T07:06:39.999Z"!==l.call(new Date(-50000000000001))}))||!i((function(){l.call(new Date(NaN))}))?function(){if(!s(f(this)))throw new a("Invalid time value");var e=h(this),t=g(this),n=e<0?"-":e>9999?"+":"";return n+o(u(e),n?6:4,0)+"-"+o(v(this)+1,2,0)+"-"+o(d(this),2,0)+"T"+o(p(this),2,0)+":"+o(m(this),2,0)+":"+o(y(this),2,0)+"."+o(t,3,0)+"Z"}:l},function(e,t,n){"use strict";var r=n(2),i=n(7),o=n(27),a=n(224);r({target:"Date",proto:!0,arity:1,forced:i((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(e){var t=o(this),n=a(t,"number");return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){"use strict";var r=n(24),i=n(35),o=n(644),a=n(17)("toPrimitive"),s=Date.prototype;r(s,a)||i(s,a,o)},function(e,t,n){"use strict";var r=n(10),i=n(353),o=TypeError;e.exports=function(e){if(r(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new o("Incorrect hint");return i(this,e)}},function(e,t,n){"use strict";var r=n(4),i=n(35),o=Date.prototype,a=r(o.toString),s=r(o.getTime);"Invalid Date"!==String(new Date(NaN))&&i(o,"toString",(function(){var e=s(this);return e==e?a(this):"Invalid Date"}))},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(22),a=i("".charAt),s=i("".charCodeAt),u=i(/./.exec),c=i(1.1.toString),l=i("".toUpperCase),f=/[\w*+\-./@]/,d=function(e,t){for(var n=c(e,16);n.length<t;)n="0"+n;return n};r({global:!0},{escape:function(e){for(var t,n,r=o(e),i="",c=r.length,h=0;h<c;)t=a(r,h++),u(f,t)?i+=t:i+=(n=s(t,0))<256?"%"+d(n,2):"%u"+l(d(n,4));return i}})},function(e,t,n){"use strict";var r=n(2),i=n(410);r({target:"Function",proto:!0,forced:Function.bind!==i},{bind:i})},function(e,t,n){"use strict";var r=n(23),i=n(16),o=n(40),a=n(79),s=n(17),u=n(227),c=s("hasInstance"),l=Function.prototype;c in l||o.f(l,c,{value:u((function(e){if(!r(this)||!i(e))return!1;var t=this.prototype;return i(t)?a(t,e):e instanceof this}),c)})},function(e,t,n){"use strict";var r=n(15),i=n(178).EXISTS,o=n(4),a=n(45),s=Function.prototype,u=o(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=o(c.exec);r&&!i&&a(s,"name",{configurable:!0,get:function(){try{return l(c,u(this))[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(11);n(91)(r.JSON,"JSON",!0)},function(e,t,n){"use strict";n(247)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(425))},function(e,t,n){"use strict";var r=n(2),i=n(427),o=Math.acosh,a=Math.log,s=Math.sqrt,u=Math.LN2;r({target:"Math",stat:!0,forced:!o||710!==Math.floor(o(Number.MAX_VALUE))||o(1/0)!==1/0},{acosh:function(e){var t=+e;return t<1?NaN:t>94906265.62425156?a(t)+u:i(t-1+s(t-1)*s(t+1))}})},function(e,t,n){"use strict";var r=n(2),i=Math.asinh,o=Math.log,a=Math.sqrt;r({target:"Math",stat:!0,forced:!(i&&1/i(0)>0)},{asinh:function e(t){var n=+t;return isFinite(n)&&0!==n?n<0?-e(-n):o(n+a(n*n+1)):n}})},function(e,t,n){"use strict";var r=n(2),i=Math.atanh,o=Math.log;r({target:"Math",stat:!0,forced:!(i&&1/i(-0)<0)},{atanh:function(e){var t=+e;return 0===t?t:o((1+t)/(1-t))/2}})},function(e,t,n){"use strict";var r=n(2),i=n(313),o=Math.abs,a=Math.pow;r({target:"Math",stat:!0},{cbrt:function(e){var t=+e;return i(t)*a(o(t),1/3)}})},function(e,t,n){"use strict";var r=n(2),i=Math.floor,o=Math.log,a=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(e){var t=e>>>0;return t?31-i(o(t+.5)*a):32}})},function(e,t,n){"use strict";var r=n(2),i=n(248),o=Math.cosh,a=Math.abs,s=Math.E;r({target:"Math",stat:!0,forced:!o||o(710)===1/0},{cosh:function(e){var t=i(a(e)-1)+1;return(t+1/(t*s*s))*(s/2)}})},function(e,t,n){"use strict";var r=n(2),i=n(248);r({target:"Math",stat:!0,forced:i!==Math.expm1},{expm1:i})},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0},{fround:n(312)})},function(e,t,n){"use strict";var r=n(2),i=Math.hypot,o=Math.abs,a=Math.sqrt;r({target:"Math",stat:!0,arity:2,forced:!!i&&i(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,r,i=0,s=0,u=arguments.length,c=0;s<u;)c<(n=o(arguments[s++]))?(i=i*(r=c/n)*r+1,c=n):i+=n>0?(r=n/c)*r:n;return c===1/0?1/0:c*a(i)}})},function(e,t,n){"use strict";var r=n(2),i=n(7),o=Math.imul;r({target:"Math",stat:!0,forced:i((function(){return-5!==o(4294967295,5)||2!==o.length}))},{imul:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0},{log10:n(429)})},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0},{log1p:n(427)})},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0},{log2:n(399)})},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0},{sign:n(313)})},function(e,t,n){"use strict";var r=n(2),i=n(7),o=n(248),a=Math.abs,s=Math.exp,u=Math.E;r({target:"Math",stat:!0,forced:i((function(){return-2e-17!==Math.sinh(-2e-17)}))},{sinh:function(e){var t=+e;return a(t)<1?(o(t)-o(-t))/2:(s(t-1)-s(-t-1))*(u/2)}})},function(e,t,n){"use strict";var r=n(2),i=n(248),o=Math.exp;r({target:"Math",stat:!0},{tanh:function(e){var t=+e,n=i(t),r=i(-t);return n===1/0?1:r===1/0?-1:(n-r)/(o(t)+o(-t))}})},function(e,t,n){"use strict";n(91)(Math,"Math",!0)},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0},{trunc:n(358)})},function(e,t,n){"use strict";var r=n(2),i=n(31),o=n(15),a=n(11),s=n(231),u=n(4),c=n(206),l=n(24),f=n(159),d=n(79),h=n(140),p=n(224),g=n(7),m=n(157).f,v=n(73).f,y=n(40).f,b=n(212),_=n(184).trim,w=a.Number,E=s.Number,S=w.prototype,x=a.TypeError,k=u("".slice),T=u("".charCodeAt),O=function(e){var t=p(e,"number");return"bigint"==typeof t?t:P(t)},P=function(e){var t,n,r,i,o,a,s,u,c=p(e,"number");if(h(c))throw new x("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=_(c),43===(t=T(c,0))||45===t){if(88===(n=T(c,2))||120===n)return NaN}else if(48===t){switch(T(c,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(a=(o=k(c,2)).length,s=0;s<a;s++)if((u=T(o,s))<48||u>i)return NaN;return parseInt(o,r)}return+c},R=c("Number",!w(" 0o1")||!w("0b1")||w("+0x1")),A=function(e){return d(S,e)&&g((function(){b(e)}))},C=function(e){var t=arguments.length<1?0:w(O(e));return A(this)?f(Object(t),this,C):t};C.prototype=S,R&&!i&&(S.constructor=C),r({global:!0,constructor:!0,wrap:!0,forced:R},{Number:C});var D=function(e,t){for(var n,r=o?m(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)l(t,n=r[i])&&!l(e,n)&&y(e,n,v(t,n))};i&&E&&D(s.Number,E),(R||i)&&D(s.Number,w)},function(e,t,n){"use strict";n(2)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},function(e,t,n){"use strict";n(2)({target:"Number",stat:!0},{isFinite:n(430)})},function(e,t,n){"use strict";n(2)({target:"Number",stat:!0},{isInteger:n(319)})},function(e,t,n){"use strict";n(2)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,n){"use strict";var r=n(2),i=n(319),o=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},function(e,t,n){"use strict";n(2)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){"use strict";n(2)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){"use strict";var r=n(2),i=n(431);r({target:"Number",stat:!0,forced:Number.parseFloat!==i},{parseFloat:i})},function(e,t,n){"use strict";var r=n(2),i=n(432);r({target:"Number",stat:!0,forced:Number.parseInt!==i},{parseInt:i})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(44),a=n(212),s=n(242),u=n(429),c=n(7),l=RangeError,f=String,d=isFinite,h=Math.abs,p=Math.floor,g=Math.pow,m=Math.round,v=i(1.1.toExponential),y=i(s),b=i("".slice),_="-6.9000e-11"===v(-69e-12,4)&&"1.25e+0"===v(1.255,2)&&"1.235e+4"===v(12345,3)&&"3e+1"===v(25,0);r({target:"Number",proto:!0,forced:!_||!(c((function(){v(1,1/0)}))&&c((function(){v(1,-1/0)})))||!!c((function(){v(1/0,1/0),v(NaN,1/0)}))},{toExponential:function(e){var t=a(this);if(void 0===e)return v(t);var n=o(e);if(!d(t))return String(t);if(n<0||n>20)throw new l("Incorrect fraction digits");if(_)return v(t,n);var r,i,s,c,w="";if(t<0&&(w="-",t=-t),0===t)i=0,r=y("0",n+1);else{var E=u(t);i=p(E);var S=g(10,i-n),x=m(t/S);2*t>=(2*x+1)*S&&(x+=1),x>=g(10,n+1)&&(x/=10,i+=1),r=f(x)}return 0!==n&&(r=b(r,0,1)+"."+b(r,1)),0===i?(s="+",c="0"):(s=i>0?"+":"-",c=f(h(i))),w+(r+="e"+s+c)}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(44),a=n(212),s=n(242),u=n(7),c=RangeError,l=String,f=Math.floor,d=i(s),h=i("".slice),p=i(1.1.toFixed),g=function(e,t,n){return 0===t?n:t%2==1?g(e,t-1,n*e):g(e*e,t/2,n)},m=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=f(i/1e7)},v=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=f(r/t),r=r%t*1e7},y=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=l(e[t]);n=""===n?r:n+d("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:u((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!u((function(){p({})}))},{toFixed:function(e){var t,n,r,i,s=a(this),u=o(e),f=[0,0,0,0,0,0],p="",b="0";if(u<0||u>20)throw new c("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return l(s);if(s<0&&(p="-",s=-s),s>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(s*g(2,69,1))-69)<0?s*g(2,-t,1):s/g(2,t,1),n*=4503599627370496,(t=52-t)>0){for(m(f,0,n),r=u;r>=7;)m(f,1e7,0),r-=7;for(m(f,g(10,r,1),0),r=t-1;r>=23;)v(f,1<<23),r-=23;v(f,1<<r),m(f,1,1),v(f,2),b=y(f)}else m(f,0,n),m(f,1<<-t,0),b=y(f)+d("0",u);return b=u>0?p+((i=b.length)<=u?"0."+d("0",u-i)+b:h(b,0,i-u)+"."+h(b,i-u)):p+b}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(7),a=n(212),s=i(1.1.toPrecision);r({target:"Number",proto:!0,forced:o((function(){return"1"!==s(1,void 0)}))||!o((function(){s({})}))},{toPrecision:function(e){return void 0===e?s(a(this)):s(a(this),e)}})},function(e,t,n){"use strict";var r=n(2),i=n(433);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},function(e,t,n){"use strict";n(2)({target:"Object",stat:!0,sham:!n(15)},{create:n(55)})},function(e,t,n){"use strict";var r=n(2),i=n(15),o=n(249),a=n(19),s=n(27),u=n(40);i&&r({target:"Object",proto:!0,forced:o},{__defineGetter__:function(e,t){u.f(s(this),e,{get:a(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(2),i=n(15),o=n(300).f;r({target:"Object",stat:!0,forced:Object.defineProperties!==o,sham:!i},{defineProperties:o})},function(e,t,n){"use strict";var r=n(2),i=n(15),o=n(40).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==o,sham:!i},{defineProperty:o})},function(e,t,n){"use strict";var r=n(2),i=n(15),o=n(249),a=n(19),s=n(27),u=n(40);i&&r({target:"Object",proto:!0,forced:o},{__defineSetter__:function(e,t){u.f(s(this),e,{set:a(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(2),i=n(434).entries;r({target:"Object",stat:!0},{entries:function(e){return i(e)}})},function(e,t,n){"use strict";var r=n(2),i=n(144),o=n(7),a=n(16),s=n(164).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:o((function(){u(1)})),sham:!i},{freeze:function(e){return u&&a(e)?u(s(e)):e}})},function(e,t,n){"use strict";var r=n(2),i=n(51),o=n(112);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return i(e,(function(e,n){o(t,e,n)}),{AS_ENTRIES:!0}),t}})},function(e,t,n){"use strict";var r=n(2),i=n(7),o=n(61),a=n(73).f,s=n(15);r({target:"Object",stat:!0,forced:!s||i((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},function(e,t,n){"use strict";var r=n(2),i=n(15),o=n(297),a=n(61),s=n(73),u=n(112);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),i=s.f,c=o(r),l={},f=0;c.length>f;)void 0!==(n=i(r,t=c[f++]))&&u(l,t,n);return l}})},function(e,t,n){"use strict";var r=n(2),i=n(7),o=n(301).f;r({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:o})},function(e,t,n){"use strict";var r=n(2),i=n(7),o=n(27),a=n(63),s=n(304);r({target:"Object",stat:!0,forced:i((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(o(e))}})},function(e,t,n){"use strict";n(2)({target:"Object",stat:!0},{is:n(437)})},function(e,t,n){"use strict";var r=n(2),i=n(317);r({target:"Object",stat:!0,forced:Object.isExtensible!==i},{isExtensible:i})},function(e,t,n){"use strict";var r=n(2),i=n(7),o=n(16),a=n(78),s=n(318),u=Object.isFrozen;r({target:"Object",stat:!0,forced:s||i((function(){u(1)}))},{isFrozen:function(e){return!o(e)||(!(!s||"ArrayBuffer"!==a(e))||!!u&&u(e))}})},function(e,t,n){"use strict";var r=n(2),i=n(7),o=n(16),a=n(78),s=n(318),u=Object.isSealed;r({target:"Object",stat:!0,forced:s||i((function(){u(1)}))},{isSealed:function(e){return!o(e)||(!(!s||"ArrayBuffer"!==a(e))||!!u&&u(e))}})},function(e,t,n){"use strict";var r=n(2),i=n(27),o=n(180);r({target:"Object",stat:!0,forced:n(7)((function(){o(1)}))},{keys:function(e){return o(i(e))}})},function(e,t,n){"use strict";var r=n(2),i=n(15),o=n(249),a=n(27),s=n(131),u=n(63),c=n(73).f;i&&r({target:"Object",proto:!0,forced:o},{__lookupGetter__:function(e){var t,n=a(this),r=s(e);do{if(t=c(n,r))return t.get}while(n=u(n))}})},function(e,t,n){"use strict";var r=n(2),i=n(15),o=n(249),a=n(27),s=n(131),u=n(63),c=n(73).f;i&&r({target:"Object",proto:!0,forced:o},{__lookupSetter__:function(e){var t,n=a(this),r=s(e);do{if(t=c(n,r))return t.set}while(n=u(n))}})},function(e,t,n){"use strict";var r=n(2),i=n(16),o=n(164).onFreeze,a=n(144),s=n(7),u=Object.preventExtensions;r({target:"Object",stat:!0,forced:s((function(){u(1)})),sham:!a},{preventExtensions:function(e){return u&&i(e)?u(o(e)):e}})},function(e,t,n){"use strict";var r=n(15),i=n(45),o=n(16),a=n(369),s=n(27),u=n(42),c=Object.getPrototypeOf,l=Object.setPrototypeOf,f=Object.prototype;if(r&&c&&l&&!("__proto__"in f))try{i(f,"__proto__",{configurable:!0,get:function(){return c(s(this))},set:function(e){var t=u(this);a(e)&&o(t)&&l(t,e)}})}catch(e){}},function(e,t,n){"use strict";var r=n(2),i=n(16),o=n(164).onFreeze,a=n(144),s=n(7),u=Object.seal;r({target:"Object",stat:!0,forced:s((function(){u(1)})),sham:!a},{seal:function(e){return u&&i(e)?u(o(e)):e}})},function(e,t,n){"use strict";n(2)({target:"Object",stat:!0},{setPrototypeOf:n(111)})},function(e,t,n){"use strict";var r=n(299),i=n(35),o=n(708);r||i(Object.prototype,"toString",o,{unsafe:!0})},function(e,t,n){"use strict";var r=n(299),i=n(90);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,n){"use strict";var r=n(2),i=n(434).values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},function(e,t,n){"use strict";var r=n(2),i=n(431);r({global:!0,forced:parseFloat!==i},{parseFloat:i})},function(e,t,n){"use strict";var r=n(2),i=n(432);r({global:!0,forced:parseInt!==i},{parseInt:i})},function(e,t,n){"use strict";n(713),n(716),n(717),n(718),n(719),n(720)},function(e,t,n){"use strict";var r,i,o,a,s=n(2),u=n(31),c=n(183),l=n(11),f=n(231),d=n(8),h=n(35),p=n(111),g=n(91),m=n(163),v=n(19),y=n(23),b=n(16),_=n(86),w=n(250),E=n(252).set,S=n(439),x=n(442),k=n(165),T=n(441),O=n(34),P=n(186),R=n(213),A=n(133),C=R.CONSTRUCTOR,D=R.REJECTION_EVENT,L=R.SUBCLASSING,I=O.getterFor("Promise"),M=O.set,j=P&&P.prototype,N=P,F=j,U=l.TypeError,B=l.document,q=l.process,V=A.f,$=V,z=!!(B&&B.createEvent&&l.dispatchEvent),G=function(e){var t;return!(!b(e)||!y(t=e.then))&&t},W=function(e,t){var n,r,i,o=t.value,a=1===t.state,s=a?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(a||(2===t.rejection&&X(t),t.rejection=1),!0===s?n=o:(l&&l.enter(),n=s(o),l&&(l.exit(),i=!0)),n===e.promise?c(new U("Promise-chain cycle")):(r=G(n))?d(r,n,u,c):u(n)):c(o)}catch(e){l&&!i&&l.exit(),c(e)}},H=function(e,t){e.notified||(e.notified=!0,S((function(){for(var n,r=e.reactions;n=r.get();)W(n,e);e.notified=!1,t&&!e.rejection&&Y(e)})))},K=function(e,t,n){var r,i;z?((r=B.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},!D&&(i=l["on"+e])?i(r):"unhandledrejection"===e&&x("Unhandled promise rejection",n)},Y=function(e){d(E,l,(function(){var t,n=e.facade,r=e.value;if(Q(e)&&(t=k((function(){c?q.emit("unhandledRejection",r,n):K("unhandledrejection",n,r)})),e.rejection=c||Q(e)?2:1,t.error))throw t.value}))},Q=function(e){return 1!==e.rejection&&!e.parent},X=function(e){d(E,l,(function(){var t=e.facade;c?q.emit("rejectionHandled",t):K("rejectionhandled",t,e.value)}))},J=function(e,t,n){return function(r){e(t,r,n)}},Z=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,H(e,!0))},ee=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new U("Promise can't be resolved itself");var r=G(t);r?S((function(){var n={done:!1};try{d(r,t,J(ee,n,e),J(Z,n,e))}catch(t){Z(n,t,e)}})):(e.value=t,e.state=1,H(e,!1))}catch(t){Z({done:!1},t,e)}}};if(C&&(F=(N=function(e){_(this,F),v(e),d(r,this);var t=I(this);try{e(J(ee,t),J(Z,t))}catch(e){Z(t,e)}}).prototype,(r=function(e){M(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new T,rejection:!1,state:0,value:null})}).prototype=h(F,"then",(function(e,t){var n=I(this),r=V(w(this,N));return n.parent=!0,r.ok=!y(e)||e,r.fail=y(t)&&t,r.domain=c?q.domain:void 0,0===n.state?n.reactions.add(r):S((function(){W(r,n)})),r.promise})),i=function(){var e=new r,t=I(e);this.promise=e,this.resolve=J(ee,t),this.reject=J(Z,t)},A.f=V=function(e){return e===N||e===o?new i(e):$(e)},!u&&y(P)&&j!==Object.prototype)){a=j.then,L||h(j,"then",(function(e,t){var n=this;return new N((function(e,t){d(a,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete j.constructor}catch(e){}p&&p(j,F)}s({global:!0,constructor:!0,wrap:!0,forced:C},{Promise:N}),o=f.Promise,g(N,"Promise",!1,!0),m("Promise")},function(e,t,n){"use strict";var r=n(120);e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},function(e,t,n){"use strict";var r=n(120);e.exports=/web0s(?!.*chrome)/i.test(r)},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(19),a=n(133),s=n(165),u=n(51);r({target:"Promise",stat:!0,forced:n(253)},{all:function(e){var t=this,n=a.f(t),r=n.resolve,c=n.reject,l=s((function(){var n=o(t.resolve),a=[],s=0,l=1;u(e,(function(e){var o=s++,u=!1;l++,i(n,t,e).then((function(e){u||(u=!0,a[o]=e,--l||r(a))}),c)})),--l||r(a)}));return l.error&&c(l.value),n.promise}})},function(e,t,n){"use strict";var r=n(2),i=n(31),o=n(213).CONSTRUCTOR,a=n(186),s=n(18),u=n(23),c=n(35),l=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&u(a)){var f=s("Promise").prototype.catch;l.catch!==f&&c(l,"catch",f,{unsafe:!0})}},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(19),a=n(133),s=n(165),u=n(51);r({target:"Promise",stat:!0,forced:n(253)},{race:function(e){var t=this,n=a.f(t),r=n.reject,c=s((function(){var a=o(t.resolve);u(e,(function(e){i(a,t,e).then(n.resolve,r)}))}));return c.error&&r(c.value),n.promise}})},function(e,t,n){"use strict";var r=n(2),i=n(133);r({target:"Promise",stat:!0,forced:n(213).CONSTRUCTOR},{reject:function(e){var t=i.f(this);return(0,t.reject)(e),t.promise}})},function(e,t,n){"use strict";var r=n(2),i=n(18),o=n(31),a=n(186),s=n(213).CONSTRUCTOR,u=n(443),c=i("Promise"),l=o&&!s;r({target:"Promise",stat:!0,forced:o||s},{resolve:function(e){return u(l&&this===c?a:this,e)}})},function(e,t,n){"use strict";var r=n(2),i=n(31),o=n(186),a=n(7),s=n(18),u=n(23),c=n(250),l=n(443),f=n(35),d=o&&o.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){d.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,s("Promise")),n=u(e);return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),!i&&u(o)){var h=s("Promise").prototype.finally;d.finally!==h&&f(d,"finally",h,{unsafe:!0})}},function(e,t,n){"use strict";var r=n(8),i=n(254),o=n(10),a=n(142),s=n(41),u=n(54),c=n(17)("asyncIterator");e.exports=function(e,t){var n=arguments.length<2?u(e,c):t;return n?o(r(n,e)):new i(s(a(e)))}},function(e,t,n){"use strict";var r=n(2),i=n(80),o=n(19),a=n(10);r({target:"Reflect",stat:!0,forced:!n(7)((function(){Reflect.apply((function(){}))}))},{apply:function(e,t,n){return i(o(e),t,a(n))}})},function(e,t,n){"use strict";var r=n(2),i=n(18),o=n(80),a=n(410),s=n(251),u=n(10),c=n(16),l=n(55),f=n(7),d=i("Reflect","construct"),h=Object.prototype,p=[].push,g=f((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),m=!f((function(){d((function(){}))})),v=g||m;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(e,t){s(e),u(t);var n=arguments.length<3?e:s(arguments[2]);if(m&&!g)return d(e,t,n);if(e===n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return o(p,r,t),new(o(a,e,r))}var i=n.prototype,f=l(c(i)?i:h),v=o(e,f,t);return c(v)?v:f}})},function(e,t,n){"use strict";var r=n(2),i=n(15),o=n(10),a=n(131),s=n(40);r({target:"Reflect",stat:!0,forced:n(7)((function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})})),sham:!i},{defineProperty:function(e,t,n){o(e);var r=a(t);o(n);try{return s.f(e,r,n),!0}catch(e){return!1}}})},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(73).f;r({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=o(i(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(16),a=n(10),s=n(452),u=n(73),c=n(63);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,l,f=arguments.length<3?t:arguments[2];return a(t)===f?t[n]:(r=u.f(t,n))?s(r)?r.value:void 0===r.get?void 0:i(r.get,f):o(l=c(t))?e(l,n,f):void 0}})},function(e,t,n){"use strict";var r=n(2),i=n(15),o=n(10),a=n(73);r({target:"Reflect",stat:!0,sham:!i},{getOwnPropertyDescriptor:function(e,t){return a.f(o(e),t)}})},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(63);r({target:"Reflect",stat:!0,sham:!n(304)},{getPrototypeOf:function(e){return o(i(e))}})},function(e,t,n){"use strict";n(2)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(317);r({target:"Reflect",stat:!0},{isExtensible:function(e){return i(e),o(e)}})},function(e,t,n){"use strict";n(2)({target:"Reflect",stat:!0},{ownKeys:n(297)})},function(e,t,n){"use strict";var r=n(2),i=n(18),o=n(10);r({target:"Reflect",stat:!0,sham:!n(144)},{preventExtensions:function(e){o(e);try{var t=i("Object","preventExtensions");return t&&t(e),!0}catch(e){return!1}}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(10),a=n(16),s=n(452),u=n(7),c=n(40),l=n(73),f=n(63),d=n(98);r({target:"Reflect",stat:!0,forced:u((function(){var e=function(){},t=c.f(new e,"a",{configurable:!0});return!1!==Reflect.set(e.prototype,"a",1,t)}))},{set:function e(t,n,r){var u,h,p,g=arguments.length<4?t:arguments[3],m=l.f(o(t),n);if(!m){if(a(h=f(t)))return e(h,n,r,g);m=d(0)}if(s(m)){if(!1===m.writable||!a(g))return!1;if(u=l.f(g,n)){if(u.get||u.set||!1===u.writable)return!1;u.value=r,c.f(g,n,u)}else c.f(g,n,d(0,r))}else{if(void 0===(p=m.set))return!1;i(p,g,r)}return!0}})},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(368),a=n(111);a&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){i(e),o(t);try{return a(e,t),!0}catch(e){return!1}}})},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(91);r({global:!0},{Reflect:{}}),o(i.Reflect,"Reflect",!0)},function(e,t,n){"use strict";var r=n(15),i=n(11),o=n(4),a=n(206),s=n(159),u=n(62),c=n(55),l=n(157).f,f=n(79),d=n(255),h=n(22),p=n(166),g=n(256),m=n(370),v=n(35),y=n(7),b=n(24),_=n(34).enforce,w=n(163),E=n(17),S=n(321),x=n(454),k=E("match"),T=i.RegExp,O=T.prototype,P=i.SyntaxError,R=o(O.exec),A=o("".charAt),C=o("".replace),D=o("".indexOf),L=o("".slice),I=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,j=/a/g,N=new T(M)!==M,F=g.MISSED_STICKY,U=g.UNSUPPORTED_Y,B=r&&(!N||F||S||x||y((function(){return j[k]=!1,T(M)!==M||T(j)===j||"/a/i"!==String(T(M,"i"))})));if(a("RegExp",B)){for(var q=function(e,t){var n,r,i,o,a,l,g=f(O,this),m=d(e),v=void 0===t,y=[],w=e;if(!g&&m&&v&&e.constructor===q)return e;if((m||f(O,e))&&(e=e.source,v&&(t=p(w))),e=void 0===e?"":h(e),t=void 0===t?"":h(t),w=e,S&&"dotAll"in M&&(r=!!t&&D(t,"s")>-1)&&(t=C(t,/s/g,"")),n=t,F&&"sticky"in M&&(i=!!t&&D(t,"y")>-1)&&U&&(t=C(t,/y/g,"")),x&&(e=(o=function(e){for(var t,n=e.length,r=0,i="",o=[],a=c(null),s=!1,u=!1,l=0,f="";r<=n;r++){if("\\"===(t=A(e,r)))t+=A(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:if(i+=t,"?:"===L(e,r+1,r+3))continue;R(I,L(e,r+1))&&(r+=2,u=!0),l++;continue;case">"===t&&u:if(""===f||b(a,f))throw new P("Invalid capture group name");a[f]=!0,o[o.length]=[f,l],u=!1,f="";continue}u?f+=t:i+=t}return[i,o]}(e))[0],y=o[1]),a=s(T(e,t),g?this:O,q),(r||i||y.length)&&(l=_(a),r&&(l.dotAll=!0,l.raw=q(function(e){for(var t,n=e.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(t=A(e,r))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+A(e,++r);return i}(e),n)),i&&(l.sticky=!0),y.length&&(l.groups=y)),e!==w)try{u(a,"source",""===w?"(?:)":w)}catch(e){}return a},V=l(T),$=0;V.length>$;)m(q,T,V[$++]);O.constructor=q,q.prototype=O,v(i,"RegExp",q,{constructor:!0})}w("RegExp")},function(e,t,n){"use strict";var r=n(15),i=n(321),o=n(78),a=n(45),s=n(34).get,u=RegExp.prototype,c=TypeError;r&&i&&a(u,"dotAll",{configurable:!0,get:function(){if(this!==u){if("RegExp"===o(this))return!!s(this).dotAll;throw new c("Incompatible receiver, RegExp required")}}})},function(e,t,n){"use strict";var r=n(15),i=n(45),o=n(453),a=n(320);r&&!o.correct&&(i(RegExp.prototype,"flags",{configurable:!0,get:a}),o.correct=!0)},function(e,t,n){"use strict";var r=n(15),i=n(256).MISSED_STICKY,o=n(78),a=n(45),s=n(34).get,u=RegExp.prototype,c=TypeError;r&&i&&a(u,"sticky",{configurable:!0,get:function(){if(this!==u){if("RegExp"===o(this))return!!s(this).sticky;throw new c("Incompatible receiver, RegExp required")}}})},function(e,t,n){"use strict";n(322);var r,i,o=n(2),a=n(8),s=n(23),u=n(10),c=n(22),l=(r=!1,(i=/[ac]/).exec=function(){return r=!0,/./.exec.apply(this,arguments)},!0===i.test("abc")&&r),f=/./.test;o({target:"RegExp",proto:!0,forced:!l},{test:function(e){var t=u(this),n=c(e),r=t.exec;if(!s(r))return a(f,t,n);var i=a(r,t,n);return null!==i&&(u(i),!0)}})},function(e,t,n){"use strict";var r=n(178).PROPER,i=n(35),o=n(10),a=n(22),s=n(7),u=n(166),c=RegExp.prototype,l=c.toString,f=s((function(){return"/a/b"!==l.call({source:"a",flags:"b"})})),d=r&&"toString"!==l.name;(f||d)&&i(c,"toString",(function(){var e=o(this);return"/"+a(e.source)+"/"+a(u(e))}),{unsafe:!0})},function(e,t,n){"use strict";n(744)},function(e,t,n){"use strict";n(247)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(425))},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(42),a=n(44),s=n(22),u=n(7),c=i("".charAt);r({target:"String",proto:!0,forced:u((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(e){var t=s(o(this)),n=t.length,r=a(e),i=r>=0?r:n+r;return i<0||i>=n?void 0:c(t,i)}})},function(e,t,n){"use strict";var r=n(2),i=n(188).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r,i=n(2),o=n(158),a=n(73).f,s=n(100),u=n(22),c=n(325),l=n(42),f=n(326),d=n(31),h=o("".slice),p=Math.min,g=f("endsWith");i({target:"String",proto:!0,forced:!!(d||g||(r=a(String.prototype,"endsWith"),!r||r.writable))&&!g},{endsWith:function(e){var t=u(l(this));c(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=void 0===n?r:p(s(n),r),o=u(e);return h(t,i-o.length,i)===o}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(325),a=n(42),s=n(22),u=n(326),c=i("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(e){return!!~c(s(a(this)),s(o(e)),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(8),i=n(4),o=n(258),a=n(10),s=n(16),u=n(100),c=n(22),l=n(42),f=n(54),d=n(259),h=n(166),p=n(217),g=i("".indexOf);o("match",(function(e,t,n){return[function(t){var n=l(this),i=s(t)?f(t,e):void 0;return i?r(i,t,n):new RegExp(t)[e](c(n))},function(e){var r=a(this),i=c(e),o=n(t,r,i);if(o.done)return o.value;var s=c(h(r));if(-1===g(s,"g"))return p(r,i);var l=-1!==g(s,"u");r.lastIndex=0;for(var f,m=[],v=0;null!==(f=p(r,i));){var y=c(f[0]);m[v]=y,""===y&&(r.lastIndex=d(i,u(r.lastIndex),l)),v++}return 0===v?null:m}]}))},function(e,t,n){"use strict";var r=n(2),i=n(241).end;r({target:"String",proto:!0,forced:n(475)},{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(2),i=n(241).start;r({target:"String",proto:!0,forced:n(475)},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(61),a=n(27),s=n(22),u=n(28),c=i([].push),l=i([].join);r({target:"String",stat:!0},{raw:function(e){var t=o(a(e).raw),n=u(t);if(!n)return"";for(var r=arguments.length,i=[],f=0;;){if(c(i,s(t[f++])),f===n)return l(i,"");f<r&&c(i,s(arguments[f]))}}})},function(e,t,n){"use strict";n(2)({target:"String",proto:!0},{repeat:n(242)})},function(e,t,n){"use strict";var r=n(80),i=n(8),o=n(4),a=n(258),s=n(7),u=n(10),c=n(23),l=n(16),f=n(44),d=n(100),h=n(22),p=n(42),g=n(259),m=n(54),v=n(476),y=n(166),b=n(217),_=n(17)("replace"),w=Math.max,E=Math.min,S=o([].concat),x=o([].push),k=o("".indexOf),T=o("".slice),O="$0"==="a".replace(/./,"$0"),P=!!/./[_]&&""===/./[_]("a","$0");a("replace",(function(e,t,n){var o=P?"$":"$0";return[function(e,n){var r=p(this),o=l(e)?m(e,_):void 0;return o?i(o,e,r,n):i(t,h(r),e,n)},function(e,i){var a=u(this),s=h(e);if("string"==typeof i&&-1===k(i,o)&&-1===k(i,"$<")){var l=n(t,a,s,i);if(l.done)return l.value}var p=c(i);p||(i=h(i));var m,_=h(y(a)),O=-1!==k(_,"g");O&&(m=-1!==k(_,"u"),a.lastIndex=0);for(var P,R=[];null!==(P=b(a,s))&&(x(R,P),O);){""===h(P[0])&&(a.lastIndex=g(s,d(a.lastIndex),m))}for(var A,C="",D=0,L=0;L<R.length;L++){for(var I,M=h((P=R[L])[0]),j=w(E(f(P.index),s.length),0),N=[],F=1;F<P.length;F++)x(N,void 0===(A=P[F])?A:String(A));var U=P.groups;if(p){var B=S([M],N,j,s);void 0!==U&&x(B,U),I=h(r(i,void 0,B))}else I=v(M,s,j,N,U,i);j>=D&&(C+=T(s,D,j)+I,D=j+M.length)}return C+T(s,D)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!O||P)},function(e,t,n){"use strict";var r=n(8),i=n(258),o=n(10),a=n(16),s=n(42),u=n(437),c=n(22),l=n(54),f=n(217);i("search",(function(e,t,n){return[function(t){var n=s(this),i=a(t)?l(t,e):void 0;return i?r(i,t,n):new RegExp(t)[e](c(n))},function(e){var r=o(this),i=c(e),a=n(t,r,i);if(a.done)return a.value;var s=r.lastIndex;u(s,0)||(r.lastIndex=0);var l=f(r,i);return u(r.lastIndex,s)||(r.lastIndex=s),null===l?-1:l.index}]}))},function(e,t,n){"use strict";var r=n(8),i=n(4),o=n(258),a=n(10),s=n(16),u=n(42),c=n(250),l=n(259),f=n(100),d=n(22),h=n(54),p=n(217),g=n(256),m=n(7),v=g.UNSUPPORTED_Y,y=Math.min,b=i([].push),_=i("".slice),w=!m((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),E="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;o("split",(function(e,t,n){var i="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:r(t,this,e,n)}:t;return[function(t,n){var o=u(this),a=s(t)?h(t,e):void 0;return a?r(a,t,o,n):r(i,d(o),t,n)},function(e,r){var o=a(this),s=d(e);if(!E){var u=n(i,o,s,r,i!==t);if(u.done)return u.value}var h=c(o,RegExp),g=o.unicode,m=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(v?"g":"y"),w=new h(v?"^(?:"+o.source+")":o,m),S=void 0===r?4294967295:r>>>0;if(0===S)return[];if(0===s.length)return null===p(w,s)?[s]:[];for(var x=0,k=0,T=[];k<s.length;){w.lastIndex=v?0:k;var O,P=p(w,v?_(s,k):s);if(null===P||(O=y(f(w.lastIndex+(v?k:0)),s.length))===x)k=l(s,k,g);else{if(b(T,_(s,x,k)),T.length===S)return T;for(var R=1;R<=P.length-1;R++)if(b(T,P[R]),T.length===S)return T;k=x=O}}return b(T,_(s,x)),T}]}),E||!w,v)},function(e,t,n){"use strict";var r,i=n(2),o=n(158),a=n(73).f,s=n(100),u=n(22),c=n(325),l=n(42),f=n(326),d=n(31),h=o("".slice),p=Math.min,g=f("startsWith");i({target:"String",proto:!0,forced:!!(d||g||(r=a(String.prototype,"startsWith"),!r||r.writable))&&!g},{startsWith:function(e){var t=u(l(this));c(e);var n=s(p(arguments.length>1?arguments[1]:void 0,t.length)),r=u(e);return h(t,n,n+r.length)===r}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(42),a=n(44),s=n(22),u=i("".slice),c=Math.max,l=Math.min;r({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(e,t){var n,r,i=s(o(this)),f=i.length,d=a(e);return d===1/0&&(d=0),d<0&&(d=c(f+d,0)),(n=void 0===t?f:a(t))<=0||n===1/0||d>=(r=l(d+n,f))?"":u(i,d,r)}})},function(e,t,n){"use strict";var r=n(2),i=n(184).trim;r({target:"String",proto:!0,forced:n(327)("trim")},{trim:function(){return i(this)}})},function(e,t,n){"use strict";n(761);var r=n(2),i=n(479);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==i},{trimEnd:i})},function(e,t,n){"use strict";var r=n(2),i=n(479);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==i},{trimRight:i})},function(e,t,n){"use strict";n(763);var r=n(2),i=n(480);r({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==i},{trimStart:i})},function(e,t,n){"use strict";var r=n(2),i=n(480);r({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==i},{trimLeft:i})},function(e,t,n){"use strict";var r=n(2),i=n(103);r({target:"String",proto:!0,forced:n(104)("anchor")},{anchor:function(e){return i(this,"a","name",e)}})},function(e,t,n){"use strict";var r=n(2),i=n(103);r({target:"String",proto:!0,forced:n(104)("big")},{big:function(){return i(this,"big","","")}})},function(e,t,n){"use strict";var r=n(2),i=n(103);r({target:"String",proto:!0,forced:n(104)("blink")},{blink:function(){return i(this,"blink","","")}})},function(e,t,n){"use strict";var r=n(2),i=n(103);r({target:"String",proto:!0,forced:n(104)("bold")},{bold:function(){return i(this,"b","","")}})},function(e,t,n){"use strict";var r=n(2),i=n(103);r({target:"String",proto:!0,forced:n(104)("fixed")},{fixed:function(){return i(this,"tt","","")}})},function(e,t,n){"use strict";var r=n(2),i=n(103);r({target:"String",proto:!0,forced:n(104)("fontcolor")},{fontcolor:function(e){return i(this,"font","color",e)}})},function(e,t,n){"use strict";var r=n(2),i=n(103);r({target:"String",proto:!0,forced:n(104)("fontsize")},{fontsize:function(e){return i(this,"font","size",e)}})},function(e,t,n){"use strict";var r=n(2),i=n(103);r({target:"String",proto:!0,forced:n(104)("italics")},{italics:function(){return i(this,"i","","")}})},function(e,t,n){"use strict";var r=n(2),i=n(103);r({target:"String",proto:!0,forced:n(104)("link")},{link:function(e){return i(this,"a","href",e)}})},function(e,t,n){"use strict";var r=n(2),i=n(103);r({target:"String",proto:!0,forced:n(104)("small")},{small:function(){return i(this,"small","","")}})},function(e,t,n){"use strict";var r=n(2),i=n(103);r({target:"String",proto:!0,forced:n(104)("strike")},{strike:function(){return i(this,"strike","","")}})},function(e,t,n){"use strict";var r=n(2),i=n(103);r({target:"String",proto:!0,forced:n(104)("sub")},{sub:function(){return i(this,"sub","","")}})},function(e,t,n){"use strict";var r=n(2),i=n(103);r({target:"String",proto:!0,forced:n(104)("sup")},{sup:function(){return i(this,"sup","","")}})},function(e,t,n){"use strict";n(134)("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(134)("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(134)("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(134)("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(134)("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(134)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(134)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},function(e,t,n){"use strict";n(134)("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(134)("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";var r=n(4),i=n(26),o=r(n(378)),a=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",(function(e,t){return o(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},function(e,t,n){"use strict";var r=n(26),i=n(56).every,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(26),i=n(306),o=n(260),a=n(90),s=n(8),u=n(4),c=n(7),l=r.aTypedArray,f=r.exportTypedArrayMethod,d=u("".slice);f("fill",(function(e){var t=arguments.length;l(this);var n="Big"===d(a(this),0,3)?o(e):+e;return s(i,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),c((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},function(e,t,n){"use strict";var r=n(26),i=n(56).filter,o=n(330),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(e){var t=i(a(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)}))},function(e,t,n){"use strict";var r=n(26),i=n(56).find,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(26),i=n(56).findIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(26),i=n(56).forEach,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(e){i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(328);(0,n(26).exportTypedArrayStaticMethod)("from",n(483),r)},function(e,t,n){"use strict";var r=n(26),i=n(205).includes,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(26),i=n(205).indexOf,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(11),i=n(7),o=n(4),a=n(26),s=n(236),u=n(17)("iterator"),c=r.Uint8Array,l=o(s.values),f=o(s.keys),d=o(s.entries),h=a.aTypedArray,p=a.exportTypedArrayMethod,g=c&&c.prototype,m=!i((function(){g[u].call([1])})),v=!!g&&g.values&&g[u]===g.values&&"values"===g.values.name,y=function(){return l(h(this))};p("entries",(function(){return d(h(this))}),m),p("keys",(function(){return f(h(this))}),m),p("values",y,m||!v,{name:"values"}),p(u,y,m||!v,{name:"values"})},function(e,t,n){"use strict";var r=n(26),i=n(4),o=r.aTypedArray,a=r.exportTypedArrayMethod,s=i([].join);a("join",(function(e){return s(o(this),e)}))},function(e,t,n){"use strict";var r=n(26),i=n(80),o=n(384),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return i(o,a(this),t>1?[e,arguments[1]]:[e])}))},function(e,t,n){"use strict";var r=n(26),i=n(56).map,o=r.aTypedArray,a=r.getTypedArrayConstructor;(0,r.exportTypedArrayMethod)("map",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(a(e))(t)}))}))},function(e,t,n){"use strict";var r=n(26),i=n(328),o=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(o(this))(t);t>e;)n[e]=arguments[e++];return n}),i)},function(e,t,n){"use strict";var r=n(26),i=n(237).left,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(26),i=n(237).right,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(26),i=r.aTypedArray,o=r.exportTypedArrayMethod,a=Math.floor;o("reverse",(function(){for(var e,t=i(this).length,n=a(t/2),r=0;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this}))},function(e,t,n){"use strict";var r=n(11),i=n(8),o=n(26),a=n(28),s=n(481),u=n(27),c=n(7),l=r.RangeError,f=r.Int8Array,d=f&&f.prototype,h=d&&d.set,p=o.aTypedArray,g=o.exportTypedArrayMethod,m=!c((function(){var e=new Uint8ClampedArray(2);return i(h,e,{length:1,0:3},1),3!==e[1]})),v=m&&o.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var e=new f(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));g("set",(function(e){p(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=u(e);if(m)return i(h,this,n,t);var r=this.length,o=a(n),c=0;if(o+t>r)throw new l("Wrong length");for(;c<o;)this[t+c]=n[c++]}),!m||v)},function(e,t,n){"use strict";var r=n(26),i=n(7),o=n(101),a=r.aTypedArray,s=r.getTypedArrayConstructor;(0,r.exportTypedArrayMethod)("slice",(function(e,t){for(var n=o(a(this),e,t),r=s(this),i=0,u=n.length,c=new r(u);u>i;)c[i]=n[i++];return c}),i((function(){new Int8Array(1).slice()})))},function(e,t,n){"use strict";var r=n(26),i=n(56).some,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(11),i=n(158),o=n(7),a=n(19),s=n(310),u=n(26),c=n(385),l=n(386),f=n(119),d=n(311),h=u.aTypedArray,p=u.exportTypedArrayMethod,g=r.Uint16Array,m=g&&i(g.prototype.sort),v=!(!m||o((function(){m(new g(2),null)}))&&o((function(){m(new g(2),{})}))),y=!!m&&!o((function(){if(f)return f<74;if(c)return c<67;if(l)return!0;if(d)return d<602;var e,t,n=new g(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(m(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));p("sort",(function(e){return void 0!==e&&a(e),y?m(this,e):s(h(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!y||v)},function(e,t,n){"use strict";var r=n(26),i=n(100),o=n(121),a=r.aTypedArray,s=r.getTypedArrayConstructor;(0,r.exportTypedArrayMethod)("subarray",(function(e,t){var n=a(this),r=n.length,u=o(e,r);return new(s(n))(n.buffer,n.byteOffset+u*n.BYTES_PER_ELEMENT,i((void 0===t?r:o(t,r))-u))}))},function(e,t,n){"use strict";var r=n(11),i=n(80),o=n(26),a=n(7),s=n(101),u=r.Int8Array,c=o.aTypedArray,l=o.exportTypedArrayMethod,f=[].toLocaleString,d=!!u&&a((function(){f.call(new u(1))}));l("toLocaleString",(function(){return i(f,d?s(c(this)):c(this),s(arguments))}),a((function(){return[1,2].toLocaleString()!==new u([1,2]).toLocaleString()}))||!a((function(){u.prototype.toLocaleString.call([1,2])})))},function(e,t,n){"use strict";var r=n(26).exportTypedArrayMethod,i=n(7),o=n(11),a=n(4),s=o.Uint8Array,u=s&&s.prototype||{},c=[].toString,l=a([].join);i((function(){c.call({})}))&&(c=function(){return l(this)});var f=u.toString!==c;r("toString",c,f)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(22),a=String.fromCharCode,s=i("".charAt),u=i(/./.exec),c=i("".slice),l=/^[\da-f]{2}$/i,f=/^[\da-f]{4}$/i;r({global:!0},{unescape:function(e){for(var t,n,r=o(e),i="",d=r.length,h=0;h<d;){if("%"===(t=s(r,h++)))if("u"===s(r,h)){if(n=c(r,h+1,h+5),u(f,n)){i+=a(parseInt(n,16)),h+=5;continue}}else if(n=c(r,h,h+2),u(l,n)){i+=a(parseInt(n,16)),h+=2;continue}i+=t}return i}})},function(e,t,n){"use strict";var r,i=n(144),o=n(11),a=n(4),s=n(114),u=n(164),c=n(247),l=n(490),f=n(16),d=n(34).enforce,h=n(7),p=n(356),g=Object,m=Array.isArray,v=g.isExtensible,y=g.isFrozen,b=g.isSealed,_=g.freeze,w=g.seal,E=!o.ActiveXObject&&"ActiveXObject"in o,S=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},x=c("WeakMap",S,l),k=x.prototype,T=a(k.set);if(p)if(E){r=l.getConstructor(S,"WeakMap",!0),u.enable();var O=a(k.delete),P=a(k.has),R=a(k.get);s(k,{delete:function(e){if(f(e)&&!v(e)){var t=d(this);return t.frozen||(t.frozen=new r),O(this,e)||t.frozen.delete(e)}return O(this,e)},has:function(e){if(f(e)&&!v(e)){var t=d(this);return t.frozen||(t.frozen=new r),P(this,e)||t.frozen.has(e)}return P(this,e)},get:function(e){if(f(e)&&!v(e)){var t=d(this);return t.frozen||(t.frozen=new r),P(this,e)?R(this,e):t.frozen.get(e)}return R(this,e)},set:function(e,t){if(f(e)&&!v(e)){var n=d(this);n.frozen||(n.frozen=new r),P(this,e)?T(this,e,t):n.frozen.set(e,t)}else T(this,e,t);return this}})}else i&&h((function(){var e=_([]);return T(new x,e,1),!y(e)}))&&s(k,{set:function(e,t){var n;return m(e)&&(y(e)?n=_:b(e)&&(n=w)),T(this,e,t),n&&n(e),this}})},function(e,t,n){"use strict";n(814)},function(e,t,n){"use strict";n(247)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(490))},function(e,t,n){"use strict";n(375)},function(e,t,n){"use strict";n(376)},function(e,t,n){"use strict";n(448)},function(e,t,n){"use strict";n(377)},function(e,t,n){"use strict";var r=n(2),i=n(56).filterReject,o=n(52);r({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("filterOut")},function(e,t,n){"use strict";var r=n(2),i=n(56).filterReject,o=n(52);r({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("filterReject")},function(e,t,n){"use strict";n(379)},function(e,t,n){"use strict";n(380)},function(e,t,n){"use strict";var r=n(2),i=n(332),o=n(52);r({target:"Array",proto:!0},{group:function(e){var t=arguments.length>1?arguments[1]:void 0;return i(this,e,t)}}),o("group")},function(e,t,n){"use strict";var r=n(2),i=n(332),o=n(113),a=n(52);r({target:"Array",proto:!0,forced:!o("groupBy")},{groupBy:function(e){var t=arguments.length>1?arguments[1]:void 0;return i(this,e,t)}}),a("groupBy")},function(e,t,n){"use strict";var r=n(2),i=n(113),o=n(52),a=n(491);r({target:"Array",proto:!0,name:"groupToMap",forced:n(31)||!i("groupByToMap")},{groupByToMap:a}),o("groupByToMap")},function(e,t,n){"use strict";var r=n(2),i=n(52),o=n(491);r({target:"Array",proto:!0,forced:n(31)},{groupToMap:o}),i("groupToMap")},function(e,t,n){"use strict";var r=n(2),i=n(122),o=Object.isFrozen,a=function(e,t){if(!o||!i(e)||!o(e))return!1;for(var n,r=0,a=e.length;r<a;)if(!("string"==typeof(n=e[r++])||t&&void 0===n))return!1;return 0!==a};r({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!a(e,!0))return!1;var t=e.raw;return t.length===e.length&&a(t,!1)}})},function(e,t,n){"use strict";var r=n(15),i=n(52),o=n(27),a=n(28),s=n(45);r&&(s(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=o(this),t=a(e);return 0===t?0:t-1}}),i("lastIndex"))},function(e,t,n){"use strict";var r=n(15),i=n(52),o=n(27),a=n(28),s=n(45);r&&(s(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=o(this),t=a(e);return 0===t?void 0:e[t-1]},set:function(e){var t=o(this),n=a(t);return t[0===n?0:n-1]=e}}),i("lastItem"))},function(e,t,n){"use strict";n(387)},function(e,t,n){"use strict";n(389)},function(e,t,n){"use strict";n(391)},function(e,t,n){"use strict";var r=n(2),i=n(52);r({target:"Array",proto:!0,forced:!0},{uniqueBy:n(333)}),i("uniqueBy")},function(e,t,n){"use strict";n(392)},function(e,t,n){"use strict";n(400)},function(e,t,n){"use strict";n(403)},function(e,t,n){"use strict";n(407)},function(e,t,n){"use strict";n(450)},function(e,t,n){"use strict";var r=n(2),i=n(86),o=n(63),a=n(62),s=n(24),u=n(17),c=n(214),l=n(31),f=u("toStringTag"),d=TypeError,h=function(){if(i(this,c),o(this)===c)throw new d("Abstract class AsyncIterator not directly constructable")};h.prototype=c,s(c,f)||a(c,f,"AsyncIterator"),!l&&s(c,"constructor")&&c.constructor!==Object||a(c,"constructor",h),r({global:!0,constructor:!0,forced:l},{AsyncIterator:h})},function(e,t,n){"use strict";n(2)({target:"AsyncIterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:n(492)})},function(e,t,n){"use strict";n(451)},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(10),a=n(41),s=n(243),u=n(211),c=n(189),l=n(65),f=c((function(e){var t=this;return new e((function(n,r){var a=function(e){t.done=!0,r(e)},s=function(){try{e.resolve(o(i(t.next,t.iterator))).then((function(e){try{o(e).done?(t.done=!0,n(l(void 0,!0))):t.remaining?(t.remaining--,s()):n(l(e.value,!1))}catch(e){a(e)}}),a)}catch(e){a(e)}};s()}))}));r({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{drop:function(e){o(this);var t=u(s(+e));return new f(a(this),{remaining:t})}})},function(e,t,n){"use strict";var r=n(2),i=n(187).every;r({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{every:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(19),a=n(10),s=n(16),u=n(41),c=n(189),l=n(65),f=n(215),d=c((function(e){var t=this,n=t.iterator,r=t.predicate;return new e((function(o,u){var c=function(e){t.done=!0,u(e)},d=function(e){f(n,c,e,c)},h=function(){try{e.resolve(a(i(t.next,n))).then((function(n){try{if(a(n).done)t.done=!0,o(l(void 0,!0));else{var i=n.value;try{var u=r(i,t.counter++),f=function(e){e?o(l(i,!1)):h()};s(u)?e.resolve(u).then(f,d):f(u)}catch(e){d(e)}}}catch(e){c(e)}}),c)}catch(e){c(e)}};h()}))}));r({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{filter:function(e){return a(this),o(e),new d(u(this),{predicate:e})}})},function(e,t,n){"use strict";var r=n(2),i=n(187).find;r({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{find:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(19),a=n(10),s=n(16),u=n(41),c=n(189),l=n(65),f=n(494),d=n(215),h=c((function(e){var t=this,n=t.iterator,r=t.mapper;return new e((function(o,u){var c=function(e){t.done=!0,u(e)},h=function(e){d(n,c,e,c)},p=function(){try{e.resolve(a(i(t.next,n))).then((function(n){try{if(a(n).done)t.done=!0,o(l(void 0,!0));else{var i=n.value;try{var u=r(i,t.counter++),d=function(e){try{t.inner=f(e),g()}catch(e){h(e)}};s(u)?e.resolve(u).then(d,h):d(u)}catch(e){h(e)}}}catch(e){c(e)}}),c)}catch(e){c(e)}},g=function(){var n=t.inner;if(n)try{e.resolve(a(i(n.next,n.iterator))).then((function(e){try{a(e).done?(t.inner=null,p()):o(l(e.value,!1))}catch(e){h(e)}}),h)}catch(e){h(e)}else p()};g()}))}));r({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{flatMap:function(e){return a(this),o(e),new h(u(this),{mapper:e,inner:null})}})},function(e,t,n){"use strict";var r=n(2),i=n(187).forEach;r({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{forEach:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(2),i=n(27),o=n(79),a=n(494),s=n(214),u=n(495);r({target:"AsyncIterator",stat:!0,forced:!0},{from:function(e){var t=a("string"==typeof e?i(e):e);return o(s,t.iterator)?t.iterator:new u(t)}})},function(e,t,n){"use strict";n(2)({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{indexed:n(492)})},function(e,t,n){"use strict";n(2)({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{map:n(493)})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(19),a=n(10),s=n(16),u=n(18),c=n(41),l=n(215),f=u("Promise"),d=TypeError;r({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{reduce:function(e){a(this),o(e);var t=c(this),n=t.iterator,r=t.next,u=arguments.length<2,h=u?void 0:arguments[1],p=0;return new f((function(t,o){var c=function(e){l(n,o,e,o)},g=function(){try{f.resolve(a(i(r,n))).then((function(n){try{if(a(n).done)u?o(new d("Reduce of empty iterator with no initial value")):t(h);else{var r=n.value;if(u)u=!1,h=r,g();else try{var i=e(h,r,p),l=function(e){h=e,g()};s(i)?f.resolve(i).then(l,c):l(i)}catch(e){c(e)}}p++}catch(e){o(e)}}),o)}catch(e){o(e)}};g()}))}})},function(e,t,n){"use strict";var r=n(2),i=n(187).some;r({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{some:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(10),a=n(41),s=n(243),u=n(211),c=n(189),l=n(65),f=c((function(e){var t,n=this,r=n.iterator;if(!n.remaining--){var a=l(void 0,!0);return n.done=!0,void 0!==(t=r.return)?e.resolve(i(t,r,void 0)).then((function(){return a})):a}return e.resolve(i(n.next,r)).then((function(e){return o(e).done?(n.done=!0,l(void 0,!0)):l(e.value,!1)})).then(null,(function(e){throw n.done=!0,e}))}));r({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{take:function(e){o(this);var t=u(s(+e));return new f(a(this),{remaining:t})}})},function(e,t,n){"use strict";var r=n(2),i=n(187).toArray;r({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{toArray:function(){return i(this,void 0,[])}})},function(e,t,n){"use strict";var r=n(2),i=n(334);"function"==typeof BigInt&&r({target:"BigInt",stat:!0,forced:!0},{range:function(e,t,n){return new i(e,t,n,"bigint",BigInt(0),BigInt(1))}})},function(e,t,n){"use strict";var r=n(2),i=n(80),o=n(496),a=n(18),s=n(55),u=Object,c=function(){var e=a("Object","freeze");return e?e(s(null)):s(null)};r({global:!0,forced:!0},{compositeKey:function(){return i(o,u,arguments).get("object",c)}})},function(e,t,n){"use strict";var r=n(2),i=n(496),o=n(18),a=n(80);r({global:!0,forced:!0},{compositeSymbol:function(){return 1===arguments.length&&"string"==typeof arguments[0]?o("Symbol").for(arguments[0]):a(i,null,arguments).get("symbol",o("Symbol"))}})},function(e,t,n){"use strict";n(396)},function(e,t,n){"use strict";var r=n(2),i=n(4)(DataView.prototype.getUint8);r({target:"DataView",proto:!0,forced:!0},{getUint8Clamped:function(e){return i(this,e)}})},function(e,t,n){"use strict";n(397)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(398),a=n(209),s=n(482),u=i(DataView.prototype.setUint8);r({target:"DataView",proto:!0,forced:!0},{setUint8Clamped:function(e,t){u(o(this),a(e),s(t))}})},function(e,t,n){"use strict";n(408)},function(e,t,n){"use strict";n(373)},function(e,t,n){"use strict";n(2)({target:"Function",proto:!0,forced:!0},{demethodize:n(497)})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(23),a=n(228),s=n(24),u=n(15),c=Object.getOwnPropertyDescriptor,l=/^\s*class\b/,f=i(l.exec);r({target:"Function",stat:!0,sham:!0,forced:!0},{isCallable:function(e){return o(e)&&!function(e){try{if(!u||!f(l,a(e)))return!1}catch(e){}var t=c(e,"prototype");return!!t&&s(t,"writable")&&!t.writable}(e)}})},function(e,t,n){"use strict";n(2)({target:"Function",stat:!0,forced:!0},{isConstructor:n(123)})},function(e,t,n){"use strict";var r=n(17),i=n(40).f,o=r("metadata"),a=Function.prototype;void 0===a[o]&&i(a,o,{value:null})},function(e,t,n){"use strict";n(2)({target:"Function",proto:!0,forced:!0,name:"demethodize"},{unThis:n(497)})},function(e,t,n){"use strict";n(411)},function(e,t,n){"use strict";n(412)},function(e,t,n){"use strict";n(2)({target:"Iterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:n(498)})},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(8),a=n(124),s=n(41),u=n(57),c=n(4),l=RangeError,f=c([].push),d=a((function(){for(var e,t=this.iterator,n=this.next,r=this.chunkSize,a=[];;){if(!!(e=i(o(n,t))).done)return a.length?a:void(this.done=!0);if(f(a,e.value),a.length===r)return a}}));r({target:"Iterator",proto:!0,real:!0,forced:!0},{chunks:function(e){var t=i(this);return"number"==typeof e&&e&&e>>>0===e?new d(s(t),{chunkSize:e}):u(t,"throw",new l("chunkSize must be integer in [1, 2^32-1]"))}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(19),a=n(10),s=n(132),u=n(124),c=Array,l=u((function(){for(;;){var e=this.iterator;if(!e){var t=this.nextIterableIndex++,n=this.iterables;if(t>=n.length)return void(this.done=!0);var r=n[t];this.iterables[t]=null,e=this.iterator=i(r.method,r.iterable),this.next=e.next}var o=a(i(this.next,e));if(!o.done)return o.value;this.iterator=null,this.next=null}}));r({target:"Iterator",stat:!0,forced:!0},{concat:function(){for(var e=arguments.length,t=c(e),n=0;n<e;n++){var r=a(arguments[n]);t[n]={iterable:r,method:o(s(r))}}return new l({iterables:t,nextIterableIndex:0,iterator:null,next:null})}})},function(e,t,n){"use strict";n(413)},function(e,t,n){"use strict";n(414)},function(e,t,n){"use strict";n(415)},function(e,t,n){"use strict";n(416)},function(e,t,n){"use strict";n(417)},function(e,t,n){"use strict";n(418)},function(e,t,n){"use strict";n(419)},function(e,t,n){"use strict";n(420)},function(e,t,n){"use strict";n(2)({target:"Iterator",proto:!0,real:!0,forced:!0},{indexed:n(498)})},function(e,t,n){"use strict";n(315)},function(e,t,n){"use strict";var r=n(2),i=n(334),o=TypeError;r({target:"Iterator",stat:!0,forced:!0},{range:function(e,t,n){if("number"==typeof e)return new i(e,t,n,"number",0,1);if("bigint"==typeof e)return new i(e,t,n,"bigint",BigInt(0),BigInt(1));throw new o("Incorrect Iterator.range arguments")}})},function(e,t,n){"use strict";n(421)},function(e,t,n){"use strict";var r=n(2),i=n(499);r({target:"Iterator",proto:!0,real:!0,forced:!0},{sliding:function(e){return i(this,e,!0)}})},function(e,t,n){"use strict";n(422)},function(e,t,n){"use strict";n(423)},function(e,t,n){"use strict";n(424)},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(254),a=n(495),s=n(41);r({target:"Iterator",proto:!0,real:!0,forced:!0},{toAsync:function(){return new a(s(new o(s(i(this)))))}})},function(e,t,n){"use strict";var r=n(2),i=n(499);r({target:"Iterator",proto:!0,real:!0,forced:!0},{windows:function(e){return i(this,e,!1)}})},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(261),a=n(8),s=n(4),u=n(893),c=n(246),l=n(500),f=n(57),d=n(244),h=n(501),p=s([].concat),g=s([].push),m="throw";r({target:"Iterator",stat:!0,forced:!0},{zip:function(e){i(e);for(var t,n,r,s=arguments.length>1?o(arguments[1]):void 0,v=l(s),y="longest"===v?o(s&&s.padding):void 0,b=[],_=[],w=u(e);!n;){try{n=(r=i(a(w.next,w.iterator))).done}catch(e){return d(b,m,e)}if(!n){try{t=c(r.value,!0)}catch(e){return d(p([w.iterator],b),m,e)}g(b,t)}}var E,S,x,k=b.length;if("longest"===v)if(void 0===y)for(E=0;E<k;E++)g(_,void 0);else{try{x=u(y)}catch(e){return d(b,m,e)}var T=!0;for(E=0;E<k;E++)if(T){try{S=(r=i(a(x.next,x.iterator))).done,r=r.value}catch(e){return d(b,m,e)}S?T=!1:g(_,r)}else g(_,void 0);if(T)try{f(x.iterator,"normal")}catch(e){return d(b,m,e)}}return h(b,v,_)}})},function(e,t,n){"use strict";var r=n(142),i=n(41);e.exports=function(e){return i(r(e))}},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(261),a=n(8),s=n(4),u=n(18),c=n(203),l=n(246),f=n(500),d=n(244),h=n(501),p=u("Object","create"),g=u("Reflect","ownKeys"),m=s([].push);r({target:"Iterator",stat:!0,forced:!0},{zipKeyed:function(e){i(e);var t,n,r,s=arguments.length>1?o(arguments[1]):void 0,u=f(s),v="longest"===u?o(s&&s.padding):void 0,y=[],b=[],_=g(e),w=[],E=c.f;for(t=0;t<_.length;t++)try{if(n=_[t],!a(E,e,n))continue;void 0!==(r=e[n])&&(m(w,n),m(y,l(r,!0)))}catch(e){return d(y,"throw",e)}var S=y.length;if("longest"===u)if(void 0===v)for(t=0;t<S;t++)m(b,void 0);else for(t=0;t<w.length;t++){try{r=v[w[t]]}catch(e){return d(y,"throw",e)}m(b,r)}return h(y,u,b,(function(e){for(var t=p(null),n=0;n<S;n++)t[w[n]]=e[n];return t}))}})},function(e,t,n){"use strict";n(2)({target:"JSON",stat:!0,forced:!n(502)},{isRawJSON:n(503)})},function(e,t,n){"use strict";var r=n(2),i=n(15),o=n(11),a=n(18),s=n(4),u=n(8),c=n(23),l=n(16),f=n(122),d=n(24),h=n(22),p=n(28),g=n(112),m=n(7),v=n(504),y=n(154),b=o.JSON,_=o.Number,w=o.SyntaxError,E=b&&b.parse,S=a("Object","keys"),x=Object.getOwnPropertyDescriptor,k=s("".charAt),T=s("".slice),O=s(/./.exec),P=s([].push),R=/^\d$/,A=/^[1-9]$/,C=/^[\d-]$/,D=/^[\t\n\r ]$/,L=function(e,t,n,r){var i,o,a,s,c,h=e[t],g=r&&h===r.value,m=g&&"string"==typeof r.source?{source:r.source}:{};if(l(h)){var v=f(h),y=g?r.nodes:v?[]:{};if(v)for(i=y.length,a=p(h),s=0;s<a;s++)I(h,s,L(h,""+s,n,s<i?y[s]:void 0));else for(o=S(h),a=p(o),s=0;s<a;s++)c=o[s],I(h,c,L(h,c,n,d(y,c)?y[c]:void 0))}return u(n,e,t,h,m)},I=function(e,t,n){if(i){var r=x(e,t);if(r&&!r.configurable)return}void 0===n?delete e[t]:g(e,t,n)},M=function(e,t,n,r){this.value=e,this.end=t,this.source=n,this.nodes=r},j=function(e,t){this.source=e,this.index=t};j.prototype={fork:function(e){return new j(this.source,e)},parse:function(){var e=this.source,t=this.skip(D,this.index),n=this.fork(t),r=k(e,t);if(O(C,r))return n.number();switch(r){case"{":return n.object();case"[":return n.array();case'"':return n.string();case"t":return n.keyword(!0);case"f":return n.keyword(!1);case"n":return n.keyword(null)}throw new w('Unexpected character: "'+r+'" at: '+t)},node:function(e,t,n,r,i){return new M(t,r,e?null:T(this.source,n,r),i)},object:function(){for(var e=this.source,t=this.index+1,n=!1,r={},i={};t<e.length;){if(t=this.until(['"',"}"],t),"}"===k(e,t)&&!n){t++;break}var o=this.fork(t).string(),a=o.value;t=o.end,t=this.until([":"],t)+1,t=this.skip(D,t),o=this.fork(t).parse(),g(i,a,o),g(r,a,o.value),t=this.until([",","}"],o.end);var s=k(e,t);if(","===s)n=!0,t++;else if("}"===s){t++;break}}return this.node(1,r,this.index,t,i)},array:function(){for(var e=this.source,t=this.index+1,n=!1,r=[],i=[];t<e.length;){if(t=this.skip(D,t),"]"===k(e,t)&&!n){t++;break}var o=this.fork(t).parse();if(P(i,o),P(r,o.value),t=this.until([",","]"],o.end),","===k(e,t))n=!0,t++;else if("]"===k(e,t)){t++;break}}return this.node(1,r,this.index,t,i)},string:function(){var e=this.index,t=v(this.source,this.index+1);return this.node(0,t.value,e,t.end)},number:function(){var e=this.source,t=this.index,n=t;if("-"===k(e,n)&&n++,"0"===k(e,n))n++;else{if(!O(A,k(e,n)))throw new w("Failed to parse number at: "+n);n=this.skip(R,n+1)}if(("."===k(e,n)&&(n=this.skip(R,n+1)),"e"===k(e,n)||"E"===k(e,n))&&(n++,"+"!==k(e,n)&&"-"!==k(e,n)||n++,n===(n=this.skip(R,n))))throw new w("Failed to parse number's exponent value at: "+n);return this.node(0,_(T(e,t,n)),t,n)},keyword:function(e){var t=""+e,n=this.index,r=n+t.length;if(T(this.source,n,r)!==t)throw new w("Failed to parse value at: "+n);return this.node(0,e,n,r)},skip:function(e,t){for(var n=this.source;t<n.length&&O(e,k(n,t));t++);return t},until:function(e,t){t=this.skip(D,t);for(var n=k(this.source,t),r=0;r<e.length;r++)if(e[r]===n)return t;throw new w('Unexpected character: "'+n+'" at: '+t)}};var N=m((function(){var e;return E("9007199254740993",(function(t,n,r){e=r.source})),"9007199254740993"!==e})),F=y&&!m((function(){return 1/E("-0 \t")!=-1/0}));r({target:"JSON",stat:!0,forced:N},{parse:function(e,t){return F&&!c(t)?E(e):function(e,t){e=h(e);var n=new j(e,0,""),r=n.parse(),i=r.value,o=n.skip(D,r.end);if(o<e.length)throw new w('Unexpected extra character: "'+k(e,o)+'" after the parsed data at: '+o);return c(t)?L({"":i},"",t,r):i}(e,t)}})},function(e,t,n){"use strict";var r=n(2),i=n(144),o=n(502),a=n(18),s=n(8),u=n(4),c=n(23),l=n(503),f=n(22),d=n(112),h=n(504),p=n(364),g=n(156),m=n(34).set,v=String,y=SyntaxError,b=a("JSON","parse"),_=a("JSON","stringify"),w=a("Object","create"),E=a("Object","freeze"),S=u("".charAt),x=u("".slice),k=u([].push),T=g(),O=T.length,P=function(e){return" "===e||"\t"===e||"\n"===e||"\r"===e};r({target:"JSON",stat:!0,forced:!o},{rawJSON:function(e){var t=f(e);if(""===t||P(S(t,0))||P(S(t,t.length-1)))throw new y("Unacceptable as raw JSON");var n=b(t);if("object"==typeof n&&null!==n)throw new y("Unacceptable as raw JSON");var r=w(null);return m(r,{type:"RawJSON"}),d(r,"rawJSON",t),i?E(r):r}}),_&&r({target:"JSON",stat:!0,arity:3,forced:!o},{stringify:function(e,t,n){var r=p(t),i=[],o=_(e,(function(e,t){var n=c(r)?s(r,this,v(e),t):t;return l(n)?T+(k(i,n.rawJSON)-1):n}),n);if("string"!=typeof o)return o;for(var a="",u=o.length,f=0;f<u;f++){var d=S(o,f);if('"'===d){var g=h(o,++f).end-1,m=x(o,f,g);a+=x(m,0,O)===T?i[x(m,O)]:'"'+m+'"',f=g}else a+=d}return a}})},function(e,t,n){"use strict";var r=n(2),i=n(82),o=n(66).remove;r({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=i(this),n=!0,r=0,a=arguments.length;r<a;r++)e=o(t,arguments[r]),n=n&&e;return!!n}})},function(e,t,n){"use strict";var r=n(2),i=n(82),o=n(66),a=o.get,s=o.has,u=o.set;r({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var n,r,o=i(this);return s(o,e)?(n=a(o,e),"update"in t&&(n=t.update(n,e,o),u(o,e,n)),n):(r=t.insert(e,o),u(o,e,r),r)}})},function(e,t,n){"use strict";var r=n(2),i=n(37),o=n(82),a=n(115);r({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=o(this),n=i(e,arguments.length>1?arguments[1]:void 0);return!1!==a(t,(function(e,r){if(!n(e,r,t))return!1}),!0)}})},function(e,t,n){"use strict";var r=n(2),i=n(37),o=n(82),a=n(66),s=n(115),u=a.Map,c=a.set;r({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=o(this),n=i(e,arguments.length>1?arguments[1]:void 0),r=new u;return s(t,(function(e,i){n(e,i,t)&&c(r,i,e)})),r}})},function(e,t,n){"use strict";var r=n(2),i=n(37),o=n(82),a=n(115);r({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=o(this),n=i(e,arguments.length>1?arguments[1]:void 0),r=a(t,(function(e,r){if(n(e,r,t))return{value:e}}),!0);return r&&r.value}})},function(e,t,n){"use strict";var r=n(2),i=n(37),o=n(82),a=n(115);r({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=o(this),n=i(e,arguments.length>1?arguments[1]:void 0),r=a(t,(function(e,r){if(n(e,r,t))return{key:r}}),!0);return r&&r.key}})},function(e,t,n){"use strict";var r=n(2),i=n(66);r({target:"Map",stat:!0,forced:!0},{from:n(262)(i.Map,i.set,!0)})},function(e,t,n){"use strict";var r=n(2),i=n(82),o=n(66),a=o.get,s=o.has,u=o.set;r({target:"Map",proto:!0,real:!0,forced:!0},{getOrInsert:function(e,t){return s(i(this),e)?a(this,e):(u(this,e,t),t)}})},function(e,t,n){"use strict";var r=n(2),i=n(19),o=n(82),a=n(66),s=a.get,u=a.has,c=a.set;r({target:"Map",proto:!0,real:!0,forced:!0},{getOrInsertComputed:function(e,t){if(o(this),i(t),u(this,e))return s(this,e);0===e&&1/e==-1/0&&(e=0);var n=t(e);return c(this,e,n),n}})},function(e,t,n){"use strict";n(426)},function(e,t,n){"use strict";var r=n(2),i=n(909),o=n(82),a=n(115);r({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===a(o(this),(function(t){if(i(t,e))return!0}),!0)}})},function(e,t,n){"use strict";e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(51),a=n(23),s=n(19),u=n(66).Map;r({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var n=new(a(this)?this:u);s(t);var r=s(n.set);return o(e,(function(e){i(r,n,t(e),e)})),n}})},function(e,t,n){"use strict";var r=n(2),i=n(82),o=n(115);r({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=o(i(this),(function(t,n){if(t===e)return{key:n}}),!0);return t&&t.key}})},function(e,t,n){"use strict";var r=n(2),i=n(37),o=n(82),a=n(66),s=n(115),u=a.Map,c=a.set;r({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=o(this),n=i(e,arguments.length>1?arguments[1]:void 0),r=new u;return s(t,(function(e,i){c(r,n(e,i,t),e)})),r}})},function(e,t,n){"use strict";var r=n(2),i=n(37),o=n(82),a=n(66),s=n(115),u=a.Map,c=a.set;r({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=o(this),n=i(e,arguments.length>1?arguments[1]:void 0),r=new u;return s(t,(function(e,i){c(r,i,n(e,i,t))})),r}})},function(e,t,n){"use strict";var r=n(2),i=n(82),o=n(51),a=n(66).set;r({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=i(this),n=arguments.length,r=0;r<n;)o(arguments[r++],(function(e,n){a(t,e,n)}),{AS_ENTRIES:!0});return t}})},function(e,t,n){"use strict";var r=n(2),i=n(66);r({target:"Map",stat:!0,forced:!0},{of:n(263)(i.Map,i.set,!0)})},function(e,t,n){"use strict";var r=n(2),i=n(19),o=n(82),a=n(115),s=TypeError;r({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=o(this),n=arguments.length<2,r=n?void 0:arguments[1];if(i(e),a(t,(function(i,o){n?(n=!1,r=i):r=e(r,i,o,t)})),n)throw new s("Reduce of empty map with no initial value");return r}})},function(e,t,n){"use strict";var r=n(2),i=n(37),o=n(82),a=n(115);r({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=o(this),n=i(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,(function(e,r){if(n(e,r,t))return!0}),!0)}})},function(e,t,n){"use strict";var r=n(2),i=n(19),o=n(82),a=n(66),s=TypeError,u=a.get,c=a.has,l=a.set;r({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var n=o(this),r=arguments.length;i(t);var a=c(n,e);if(!a&&r<3)throw new s("Updating absent value");var f=a?u(n,e):i(r>2?arguments[2]:void 0)(e,n);return l(n,e,t(f,e,n)),n}})},function(e,t,n){"use strict";n(2)({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:n(335)})},function(e,t,n){"use strict";n(2)({target:"Map",proto:!0,real:!0,forced:!0},{upsert:n(335)})},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0,forced:!0},{clamp:n(505)})},function(e,t,n){"use strict";var r=TypeError;e.exports=function(e){if("number"==typeof e)return e;throw new r("Argument is not a number")}},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180})},function(e,t,n){"use strict";var r=n(2),i=180/Math.PI;r({target:"Math",stat:!0,forced:!0},{degrees:function(e){return e*i}})},function(e,t,n){"use strict";var r=n(2),i=n(506),o=n(312);r({target:"Math",stat:!0,forced:!0},{fscale:function(e,t,n,r,a){return o(i(e,t,n,r,a))}})},function(e,t,n){"use strict";n(428)},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0,forced:!0},{iaddh:function(e,t,n,r){var i=e>>>0,o=n>>>0;return(t>>>0)+(r>>>0)+((i&o|(i|o)&~(i+o>>>0))>>>31)|0}})},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0,forced:!0},{imulh:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r,a=n>>16,s=r>>16,u=(a*o>>>0)+(i*o>>>16);return a*s+(u>>16)+((i*s>>>0)+(65535&u)>>16)}})},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0,forced:!0},{isubh:function(e,t,n,r){var i=e>>>0,o=n>>>0;return(t>>>0)-(r>>>0)-((~i&o|~(i^o)&i-o>>>0)>>>31)|0}})},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI})},function(e,t,n){"use strict";var r=n(2),i=Math.PI/180;r({target:"Math",stat:!0,forced:!0},{radians:function(e){return e*i}})},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0,forced:!0},{scale:n(506)})},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(430),a=n(161),s=n(65),u=n(34),c=u.set,l=u.getterFor("Seeded Random Generator"),f=TypeError,d=a((function(e){c(this,{type:"Seeded Random Generator",seed:e%2147483647})}),"Seeded Random",(function(){var e=l(this),t=e.seed=(1103515245*e.seed+12345)%2147483647;return s((1073741823&t)/1073741823,!1)}));r({target:"Math",stat:!0,forced:!0},{seededPRNG:function(e){var t=i(e).seed;if(!o(t))throw new f('Math.seededPRNG() argument should have a "seed" field with a finite value.');return new d(t)}})},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0,forced:!0},{signbit:function(e){var t=+e;return t==t&&0===t?1/t==-1/0:t<0}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(51),a=RangeError,s=TypeError,u=Math.abs,c=Math.pow,l=i([].push),f=c(2,1023),d=c(2,53)-1,h=Number.MAX_VALUE,p=c(2,971),g={},m={},v={},y={},b={},_=function(e,t){var n=e+t;return{hi:n,lo:t-(n-e)}};r({target:"Math",stat:!0},{sumPrecise:function(e){var t=[],n=0,r=y;switch(o(e,(function(e){if(++n>=d)throw new a("Maximum allowed index exceeded");if("number"!=typeof e)throw new s("Value is not a number");r!==g&&(e!=e?r=g:e===1/0?r=r===m?g:v:e===-1/0?r=r===v?g:m:0===e&&1/e!=1/0||r!==y&&r!==b||(r=b,l(t,e)))})),r){case g:return NaN;case m:return-1/0;case v:return 1/0;case y:return-0}for(var i,c,w,E,S,x,k=[],T=0,O=0;O<t.length;O++){i=t[O];for(var P=0,R=0;R<k.length;R++){if(c=k[R],u(i)<u(c)&&(x=i,i=c,c=x),E=(w=_(i,c)).hi,S=w.lo,u(E)===1/0){var A=E===1/0?1:-1;T+=A,u(i=i-A*f-A*f)<u(c)&&(x=i,i=c,c=x),E=(w=_(i,c)).hi,S=w.lo}0!==S&&(k[P++]=S),i=E}k.length=P,0!==i&&l(k,i)}var C=k.length-1;if(E=0,S=0,0!==T){var D=C>=0?k[C]:0;if(C--,u(T)>1||T>0&&D>0||T<0&&D<0)return T>0?1/0:-1/0;if(E=(w=_(T*f,D/2)).hi,S=w.lo,S*=2,u(2*E)===1/0)return E>0?E===f&&S===-p/2&&C>=0&&k[C]<0?h:1/0:E===-f&&S===p/2&&C>=0&&k[C]>0?-h:-1/0;0!==S&&(k[++C]=S,S=0),E*=2}for(;C>=0&&(E=(w=_(E,k[C--])).hi,0===(S=w.lo)););return C>=0&&(S<0&&k[C]<0||S>0&&k[C]>0)&&(c=2*S)===(i=E+c)-E&&(E=i),E}})},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0,forced:!0},{umulh:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r,a=n>>>16,s=r>>>16,u=(a*o>>>0)+(i*o>>>16);return a*s+(u>>>16)+((i*s>>>0)+(65535&u)>>>16)}})},function(e,t,n){"use strict";var r=n(2),i=n(505),o=n(212);r({target:"Number",proto:!0,forced:!0},{clamp:function(e,t){return i(o(this),e,t)}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(44),a=RangeError,s=SyntaxError,u=TypeError,c=parseInt,l=Math.pow,f=/^[\d.a-z]+$/,d=i("".charAt),h=i(f.exec),p=i(1.1.toString),g=i("".slice),m=i("".split);r({target:"Number",stat:!0,forced:!0},{fromString:function(e,t){var n=1;if("string"!=typeof e)throw new u("Invalid number representation");if(!e.length)throw new s("Invalid number representation");if("-"===d(e,0)&&(n=-1,!(e=g(e,1)).length))throw new s("Invalid number representation");var r=void 0===t?10:o(t);if(r<2||r>36)throw new a("Invalid radix");if(!h(f,e))throw new s("Invalid number representation");var i=m(e,"."),v=c(i[0],r);if(i.length>1&&(v+=c(i[1],r)/l(r,i[1].length)),10===r&&p(v,r)!==e)throw new s("Invalid number representation");return n*v}})},function(e,t,n){"use strict";var r=n(2),i=n(334);r({target:"Number",stat:!0,forced:!0},{range:function(e,t,n){return new i(e,t,n,"number",0,1)}})},function(e,t,n){"use strict";n(436)},function(e,t,n){"use strict";var r=n(2),i=n(336);r({target:"Object",stat:!0,forced:!0},{iterateEntries:function(e){return new i(e,"entries")}})},function(e,t,n){"use strict";var r=n(2),i=n(336);r({target:"Object",stat:!0,forced:!0},{iterateKeys:function(e){return new i(e,"keys")}})},function(e,t,n){"use strict";var r=n(2),i=n(336);r({target:"Object",stat:!0,forced:!0},{iterateValues:function(e){return new i(e,"values")}})},function(e,t,n){"use strict";n(435)},function(e,t,n){"use strict";n(946),n(947),n(948)},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(15),a=n(163),s=n(19),u=n(10),c=n(86),l=n(23),f=n(99),d=n(16),h=n(54),p=n(35),g=n(114),m=n(45),v=n(442),y=n(17),b=n(34),_=y("observable"),w=b.getterFor,E=b.set,S=w("Observable"),x=w("Subscription"),k=w("SubscriptionObserver"),T=function(e){this.observer=u(e),this.cleanup=null,this.subscriptionObserver=null};T.prototype={type:"Subscription",clean:function(){var e=this.cleanup;if(e){this.cleanup=null;try{e()}catch(e){v(e)}}},close:function(){if(!o){var e=this.facade,t=this.subscriptionObserver;e.closed=!0,t&&(t.closed=!0)}this.observer=null},isClosed:function(){return null===this.observer}};var O=function(e,t){var n,r=E(this,new T(e));o||(this.closed=!1);try{(n=h(e,"start"))&&i(n,e,this)}catch(e){v(e)}if(!r.isClosed()){var a=r.subscriptionObserver=new P(r);try{var u=t(a),c=u;f(u)||(r.cleanup=l(u.unsubscribe)?function(){c.unsubscribe()}:s(u))}catch(e){return void a.error(e)}r.isClosed()&&r.clean()}};O.prototype=g({},{unsubscribe:function(){var e=x(this);e.isClosed()||(e.close(),e.clean())}}),o&&m(O.prototype,"closed",{configurable:!0,get:function(){return x(this).isClosed()}});var P=function(e){E(this,{type:"SubscriptionObserver",subscriptionState:e}),o||(this.closed=!1)};P.prototype=g({},{next:function(e){var t=k(this).subscriptionState;if(!t.isClosed()){var n=t.observer;try{var r=h(n,"next");r&&i(r,n,e)}catch(e){v(e)}}},error:function(e){var t=k(this).subscriptionState;if(!t.isClosed()){var n=t.observer;t.close();try{var r=h(n,"error");r?i(r,n,e):v(e)}catch(e){v(e)}t.clean()}},complete:function(){var e=k(this).subscriptionState;if(!e.isClosed()){var t=e.observer;e.close();try{var n=h(t,"complete");n&&i(n,t)}catch(e){v(e)}e.clean()}}}),o&&m(P.prototype,"closed",{configurable:!0,get:function(){return k(this).subscriptionState.isClosed()}});var R=function(e){c(this,A),E(this,{type:"Observable",subscriber:s(e)})},A=R.prototype;g(A,{subscribe:function(e){var t=arguments.length;return new O(l(e)?{next:e,error:t>1?arguments[1]:void 0,complete:t>2?arguments[2]:void 0}:d(e)?e:{},S(this).subscriber)}}),p(A,_,(function(){return this})),r({global:!0,constructor:!0,forced:!0},{Observable:R}),a("Observable")},function(e,t,n){"use strict";var r=n(2),i=n(18),o=n(8),a=n(10),s=n(123),u=n(142),c=n(54),l=n(51),f=n(17)("observable");r({target:"Observable",stat:!0,forced:!0},{from:function(e){var t=s(this)?this:i("Observable"),n=c(a(e),f);if(n){var r=a(o(n,e));return r.constructor===t?r:new t((function(e){return r.subscribe(e)}))}var d=u(e);return new t((function(e){l(d,(function(t,n){if(e.next(t),e.closed)return n()}),{IS_ITERATOR:!0,INTERRUPTED:!0}),e.complete()}))}})},function(e,t,n){"use strict";var r=n(2),i=n(18),o=n(123),a=i("Array");r({target:"Observable",stat:!0,forced:!0},{of:function(){for(var e=o(this)?this:i("Observable"),t=arguments.length,n=a(t),r=0;r<t;)n[r]=arguments[r++];return new e((function(e){for(var r=0;r<t;r++)if(e.next(n[r]),e.closed)return;e.complete()}))}})},function(e,t,n){"use strict";n(444)},function(e,t,n){"use strict";n(445)},function(e,t,n){"use strict";n(446)},function(e,t,n){"use strict";n(447)},function(e,t,n){"use strict";var r=n(2),i=n(135),o=n(10),a=i.toKey,s=i.set;r({target:"Reflect",stat:!0},{defineMetadata:function(e,t,n){var r=arguments.length<4?void 0:a(arguments[3]);s(e,t,o(n),r)}})},function(e,t,n){"use strict";var r=n(2),i=n(135),o=n(10),a=i.toKey,s=i.getMap,u=i.store;r({target:"Reflect",stat:!0},{deleteMetadata:function(e,t){var n=arguments.length<3?void 0:a(arguments[2]),r=s(o(t),n,!1);if(void 0===r||!r.delete(e))return!1;if(r.size)return!0;var i=u.get(t);return i.delete(n),!!i.size||u.delete(t)}})},function(e,t,n){"use strict";var r=n(2),i=n(135),o=n(10),a=n(63),s=i.has,u=i.get,c=i.toKey,l=function(e,t,n){if(s(e,t,n))return u(e,t,n);var r=a(t);return null!==r?l(e,r,n):void 0};r({target:"Reflect",stat:!0},{getMetadata:function(e,t){var n=arguments.length<3?void 0:c(arguments[2]);return l(e,o(t),n)}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(135),a=n(10),s=n(63),u=i(n(333)),c=i([].concat),l=o.keys,f=o.toKey,d=function(e,t){var n=l(e,t),r=s(e);if(null===r)return n;var i=d(r,t);return i.length?n.length?u(c(n,i)):i:n};r({target:"Reflect",stat:!0},{getMetadataKeys:function(e){var t=arguments.length<2?void 0:f(arguments[1]);return d(a(e),t)}})},function(e,t,n){"use strict";var r=n(2),i=n(135),o=n(10),a=i.get,s=i.toKey;r({target:"Reflect",stat:!0},{getOwnMetadata:function(e,t){var n=arguments.length<3?void 0:s(arguments[2]);return a(e,o(t),n)}})},function(e,t,n){"use strict";var r=n(2),i=n(135),o=n(10),a=i.keys,s=i.toKey;r({target:"Reflect",stat:!0},{getOwnMetadataKeys:function(e){var t=arguments.length<2?void 0:s(arguments[1]);return a(o(e),t)}})},function(e,t,n){"use strict";var r=n(2),i=n(135),o=n(10),a=n(63),s=i.has,u=i.toKey,c=function(e,t,n){if(s(e,t,n))return!0;var r=a(t);return null!==r&&c(e,r,n)};r({target:"Reflect",stat:!0},{hasMetadata:function(e,t){var n=arguments.length<3?void 0:u(arguments[2]);return c(e,o(t),n)}})},function(e,t,n){"use strict";var r=n(2),i=n(135),o=n(10),a=i.has,s=i.toKey;r({target:"Reflect",stat:!0},{hasOwnMetadata:function(e,t){var n=arguments.length<3?void 0:s(arguments[2]);return a(e,o(t),n)}})},function(e,t,n){"use strict";var r=n(2),i=n(135),o=n(10),a=i.toKey,s=i.set;r({target:"Reflect",stat:!0},{metadata:function(e,t){return function(n,r){s(e,t,o(n),a(r))}}})},function(e,t,n){"use strict";n(455)},function(e,t,n){"use strict";var r=n(2),i=n(81),o=n(74).add;r({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=i(this),t=0,n=arguments.length;t<n;t++)o(e,arguments[t]);return e}})},function(e,t,n){"use strict";var r=n(2),i=n(81),o=n(74).remove;r({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=i(this),n=!0,r=0,a=arguments.length;r<a;r++)e=o(t,arguments[r]),n=n&&e;return!!n}})},function(e,t,n){"use strict";n(456)},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(169),a=n(457);r({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(e){return i(a,this,o(e))}})},function(e,t,n){"use strict";var r=n(90),i=n(24),o=n(99),a=n(17),s=n(182),u=a("iterator"),c=Object;e.exports=function(e){if(o(e))return!1;var t=c(e);return void 0!==t[u]||"@@iterator"in t||i(s,r(t))}},function(e,t,n){"use strict";var r=n(2),i=n(37),o=n(81),a=n(102);r({target:"Set",proto:!0,real:!0,forced:!0},{every:function(e){var t=o(this),n=i(e,arguments.length>1?arguments[1]:void 0);return!1!==a(t,(function(e){if(!n(e,e,t))return!1}),!0)}})},function(e,t,n){"use strict";var r=n(2),i=n(37),o=n(81),a=n(74),s=n(102),u=a.Set,c=a.add;r({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=o(this),n=i(e,arguments.length>1?arguments[1]:void 0),r=new u;return s(t,(function(e){n(e,e,t)&&c(r,e)})),r}})},function(e,t,n){"use strict";var r=n(2),i=n(37),o=n(81),a=n(102);r({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=o(this),n=i(e,arguments.length>1?arguments[1]:void 0),r=a(t,(function(e){if(n(e,e,t))return{value:e}}),!0);return r&&r.value}})},function(e,t,n){"use strict";var r=n(2),i=n(74);r({target:"Set",stat:!0,forced:!0},{from:n(262)(i.Set,i.add,!1)})},function(e,t,n){"use strict";n(458)},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(169),a=n(459);r({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return i(a,this,o(e))}})},function(e,t,n){"use strict";n(460)},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(169),a=n(461);r({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return i(a,this,o(e))}})},function(e,t,n){"use strict";n(462)},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(169),a=n(463);r({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return i(a,this,o(e))}})},function(e,t,n){"use strict";n(464)},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(169),a=n(465);r({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return i(a,this,o(e))}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(81),a=n(102),s=n(22),u=i([].join),c=i([].push);r({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var t=o(this),n=void 0===e?",":s(e),r=[];return a(t,(function(e){c(r,e)})),u(r,n)}})},function(e,t,n){"use strict";var r=n(2),i=n(37),o=n(81),a=n(74),s=n(102),u=a.Set,c=a.add;r({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var t=o(this),n=i(e,arguments.length>1?arguments[1]:void 0),r=new u;return s(t,(function(e){c(r,n(e,e,t))})),r}})},function(e,t,n){"use strict";var r=n(2),i=n(74);r({target:"Set",stat:!0,forced:!0},{of:n(263)(i.Set,i.add,!1)})},function(e,t,n){"use strict";var r=n(2),i=n(19),o=n(81),a=n(102),s=TypeError;r({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=o(this),n=arguments.length<2,r=n?void 0:arguments[1];if(i(e),a(t,(function(i){n?(n=!1,r=i):r=e(r,i,i,t)})),n)throw new s("Reduce of empty set with no initial value");return r}})},function(e,t,n){"use strict";var r=n(2),i=n(37),o=n(81),a=n(102);r({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=o(this),n=i(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,(function(e){if(n(e,e,t))return!0}),!0)}})},function(e,t,n){"use strict";n(466)},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(169),a=n(467);r({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return i(a,this,o(e))}})},function(e,t,n){"use strict";n(469)},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(169),a=n(470);r({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return i(a,this,o(e))}})},function(e,t,n){"use strict";var r=n(2),i=n(188).charAt,o=n(42),a=n(44),s=n(22);r({target:"String",proto:!0,forced:!0},{at:function(e){var t=s(o(this)),n=t.length,r=a(e),u=r>=0?r:n+r;return u<0||u>=n?void 0:i(t,u)}})},function(e,t,n){"use strict";n(2)({target:"String",stat:!0,forced:!0},{cooked:n(507)})},function(e,t,n){"use strict";var r=n(2),i=n(161),o=n(65),a=n(42),s=n(22),u=n(34),c=n(188),l=c.codeAt,f=c.charAt,d=u.set,h=u.getterFor("String Iterator"),p=i((function(e){d(this,{type:"String Iterator",string:e,index:0})}),"String",(function(){var e,t=h(this),n=t.string,r=t.index;return r>=n.length?o(void 0,!0):(e=f(n,r),t.index+=e.length,o({codePoint:l(e,0),position:r},!1))}));r({target:"String",proto:!0,forced:!0},{codePoints:function(){return new p(s(a(this)))}})},function(e,t,n){"use strict";var r=n(144),i=n(2),o=n(227),a=n(4),s=n(80),u=n(10),c=n(27),l=n(23),f=n(28),d=n(40).f,h=n(101),p=n(136),g=n(507),m=n(993),v=n(185),y=new p.WeakMap,b=p.get,_=p.has,w=p.set,E=Array,S=TypeError,x=Object.freeze||Object,k=Object.isFrozen,T=Math.min,O=a("".charAt),P=a("".slice),R=a("".split),A=a(/./.exec),C=/([\n\u2028\u2029]|\r\n?)/g,D=RegExp("^["+v+"]*"),L=RegExp("[^"+v+"]"),I=function(e){var t=e.raw;if(r&&!k(t))throw new S("Raw template should be frozen");if(_(y,t))return b(y,t);var n=M(t),i=N(n);return d(i,"raw",{value:x(n)}),x(i),w(y,t,i),i},M=function(e){var t,n,r,i,o=c(e),a=f(o),s=E(a),u=E(a),l=0;if(!a)throw new S("Invalid tag");for(;l<a;l++){var d=o[l];if("string"!=typeof d)throw new S("Invalid tag");s[l]=R(d,C)}for(l=0;l<a;l++){var h=l+1===a;if(t=s[l],0===l){if(1===t.length||t[0].length>0)throw new S("Invalid opening line");t[1]=""}if(h){if(1===t.length||A(L,t[t.length-1]))throw new S("Invalid closing line");t[t.length-2]="",t[t.length-1]=""}for(var p=2;p<t.length;p+=2){var g=t[p],m=p+1===t.length&&!h,v=A(D,g)[0];m||v.length!==g.length?n=j(v,n):t[p]=""}}var y=n?n.length:0;for(l=0;l<a;l++){for(r=(t=s[l])[0],i=1;i<t.length;i+=2)r+=t[i]+P(t[i+1],y);u[l]=r}return u},j=function(e,t){if(void 0===t||e===t)return e;for(var n=0,r=T(e.length,t.length);n<r&&O(e,n)===O(t,n);n++);return P(e,0,n)},N=function(e){for(var t=0,n=e.length,r=E(n);t<n;t++)r[t]=m(e[t]);return r},F=function(e){return o((function(t){var n=h(arguments);return n[0]=I(u(t)),s(e,this,n)}),"")},U=F(g);i({target:"String",stat:!0,forced:!0},{dedent:function(e){return u(e),l(e)?F(e):s(U,this,arguments)}})},function(e,t,n){"use strict";var r=n(18),i=n(4),o=String.fromCharCode,a=r("String","fromCodePoint"),s=i("".charAt),u=i("".charCodeAt),c=i("".indexOf),l=i("".slice),f=function(e,t){var n=u(e,t);return n>=48&&n<=57},d=function(e,t,n){if(n>=e.length)return-1;for(var r=0;t<n;t++){var i=h(u(e,t));if(-1===i)return-1;r=16*r+i}return r},h=function(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-97+10:e>=65&&e<=70?e-65+10:-1};e.exports=function(e){for(var t,n="",r=0,i=0;(i=c(e,"\\",i))>-1;){if(n+=l(e,r,i),++i===e.length)return;var u=s(e,i++);switch(u){case"b":n+="\b";break;case"t":n+="\t";break;case"n":n+="\n";break;case"v":n+="\v";break;case"f":n+="\f";break;case"r":n+="\r";break;case"\r":i<e.length&&"\n"===s(e,i)&&++i;case"\n":case"\u2028":case"\u2029":break;case"0":if(f(e,i))return;n+="\0";break;case"x":if(-1===(t=d(e,i,i+2)))return;i+=2,n+=o(t);break;case"u":if(i<e.length&&"{"===s(e,i)){var h=c(e,"}",++i);if(-1===h)return;t=d(e,i,h),i=h+1}else t=d(e,i,i+4),i+=4;if(-1===t||t>1114111)return;n+=a(t);break;default:if(f(u,0))return;n+=u}r=i}return n+l(e,r)}},function(e,t,n){"use strict";n(472)},function(e,t,n){"use strict";n(474)},function(e,t,n){"use strict";n(477)},function(e,t,n){"use strict";n(478)},function(e,t,n){"use strict";n(365)},function(e,t,n){"use strict";n(50)("customMatcher")},function(e,t,n){"use strict";n(366)},function(e,t,n){"use strict";n(2)({target:"Symbol",stat:!0},{isRegisteredSymbol:n(508)})},function(e,t,n){"use strict";n(2)({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:n(508)})},function(e,t,n){"use strict";n(2)({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:n(509)})},function(e,t,n){"use strict";n(2)({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:n(509)})},function(e,t,n){"use strict";n(50)("matcher")},function(e,t,n){"use strict";n(50)("metadata")},function(e,t,n){"use strict";n(50)("metadataKey")},function(e,t,n){"use strict";n(50)("observable")},function(e,t,n){"use strict";n(50)("patternMatch")},function(e,t,n){"use strict";n(50)("replaceAll")},function(e,t,n){"use strict";var r=n(18),i=n(251),o=n(449),a=n(26),s=n(143),u=a.aTypedArrayConstructor;(0,a.exportTypedArrayStaticMethod)("fromAsync",(function(e){var t=this,n=arguments.length,a=n>1?arguments[1]:void 0,c=n>2?arguments[2]:void 0;return new(r("Promise"))((function(n){i(t),n(o(e,a,c))})).then((function(e){return s(u(t),e)}))}),!0)},function(e,t,n){"use strict";n(484)},function(e,t,n){"use strict";var r=n(26),i=n(56).filterReject,o=n(330),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("filterOut",(function(e){var t=i(a(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)}),!0)},function(e,t,n){"use strict";var r=n(26),i=n(56).filterReject,o=n(330),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("filterReject",(function(e){var t=i(a(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)}),!0)},function(e,t,n){"use strict";n(485)},function(e,t,n){"use strict";n(486)},function(e,t,n){"use strict";var r=n(26),i=n(332),o=r.aTypedArray,a=r.getTypedArrayConstructor;(0,r.exportTypedArrayMethod)("groupBy",(function(e){var t=arguments.length>1?arguments[1]:void 0;return i(o(this),e,t,a)}),!0)},function(e,t,n){"use strict";n(487)},function(e,t,n){"use strict";n(488)},function(e,t,n){"use strict";var r=n(26),i=n(28),o=n(329),a=n(121),s=n(260),u=n(44),c=r.aTypedArray,l=r.getTypedArrayConstructor,f=r.exportTypedArrayMethod,d=Math.max,h=Math.min;f("toSpliced",(function(e,t){var n,r,f,p,g,m,v,y=c(this),b=l(y),_=i(y),w=a(e,_),E=arguments.length,S=0;if(0===E)n=r=0;else if(1===E)n=0,r=_-w;else if(r=h(d(u(t),0),_-w),n=E-2){p=new b(n),f=o(p);for(var x=2;x<E;x++)g=arguments[x],p[x-2]=f?s(g):+g}for(v=new b(m=_+n-r);S<w;S++)v[S]=y[S];for(;S<w+n;S++)v[S]=p[S-w];for(;S<m;S++)v[S]=y[S+r-n];return v}),!0)},function(e,t,n){"use strict";var r=n(4),i=n(26),o=n(143),a=n(333),s=i.aTypedArray,u=i.getTypedArrayConstructor,c=i.exportTypedArrayMethod,l=r(a);c("uniqueBy",(function(e){return s(this),o(u(this),l(this,e))}),!0)},function(e,t,n){"use strict";n(489)},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(143),a=n(510),s=i.Uint8Array,u=!s||!s.fromBase64||!function(){try{s.fromBase64("",null)}catch(e){return!0}}();s&&r({target:"Uint8Array",stat:!0,forced:u},{fromBase64:function(e){var t=a(e,arguments.length>1?arguments[1]:void 0,null,9007199254740991);return o(s,t.bytes)}})},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(257),a=n(512);i.Uint8Array&&r({target:"Uint8Array",stat:!0},{fromHex:function(e){return a(o(e)).bytes}})},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(510),a=n(265),s=i.Uint8Array,u=!s||!s.prototype.setFromBase64||!function(){var e=new s([255,255,255,255,255]);try{return void e.setFromBase64("",null)}catch(e){}try{e.setFromBase64("MjYyZg===")}catch(t){return 50===e[0]&&54===e[1]&&50===e[2]&&255===e[3]&&255===e[4]}}();s&&r({target:"Uint8Array",proto:!0,forced:u},{setFromBase64:function(e){a(this);var t=o(e,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:t.read,written:t.written}}})},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(257),a=n(265),s=n(210),u=n(512);i.Uint8Array&&r({target:"Uint8Array",proto:!0},{setFromHex:function(e){a(this),o(e),s(this.buffer);var t=u(e,this).read;return{read:t,written:t/2}}})},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(4),a=n(261),s=n(265),u=n(210),c=n(264),l=n(511),f=c.i2c,d=c.i2cUrl,h=o("".charAt),p=i.Uint8Array,g=!p||!p.prototype.toBase64||!function(){try{(new p).toBase64(null)}catch(e){return!0}}();p&&r({target:"Uint8Array",proto:!0,forced:g},{toBase64:function(){var e=s(this),t=arguments.length?a(arguments[0]):void 0,n="base64"===l(t)?f:d,r=!!t&&!!t.omitPadding;u(this.buffer);for(var i,o="",c=0,p=e.length,g=function(e){return h(n,i>>6*e&63)};c+2<p;c+=3)i=(e[c]<<16)+(e[c+1]<<8)+e[c+2],o+=g(3)+g(2)+g(1)+g(0);return c+2===p?(i=(e[c]<<16)+(e[c+1]<<8),o+=g(3)+g(2)+g(1)+(r?"":"=")):c+1===p&&(i=e[c]<<16,o+=g(3)+g(2)+(r?"":"==")),o}})},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(4),a=n(265),s=n(210),u=o(1.1.toString),c=i.Uint8Array,l=!c||!c.prototype.toHex||!function(){try{return"ffffffffffffffff"===new c([255,255,255,255,255,255,255,255]).toHex()}catch(e){return!1}}();c&&r({target:"Uint8Array",proto:!0,forced:l},{toHex:function(){a(this),s(this.buffer);for(var e="",t=0,n=this.length;t<n;t++){var r=u(this[t],16);e+=1===r.length?"0"+r:r}return e}})},function(e,t,n){"use strict";var r=n(2),i=n(266),o=n(136).remove;r({target:"WeakMap",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=i(this),n=!0,r=0,a=arguments.length;r<a;r++)e=o(t,arguments[r]),n=n&&e;return!!n}})},function(e,t,n){"use strict";var r=n(2),i=n(136);r({target:"WeakMap",stat:!0,forced:!0},{from:n(262)(i.WeakMap,i.set,!0)})},function(e,t,n){"use strict";var r=n(2),i=n(136);r({target:"WeakMap",stat:!0,forced:!0},{of:n(263)(i.WeakMap,i.set,!0)})},function(e,t,n){"use strict";var r=n(2),i=n(266),o=n(136),a=o.get,s=o.has,u=o.set;r({target:"WeakMap",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var n,r,o=i(this);return s(o,e)?(n=a(o,e),"update"in t&&(n=t.update(n,e,o),u(o,e,n)),n):(r=t.insert(e,o),u(o,e,r),r)}})},function(e,t,n){"use strict";var r=n(2),i=n(266),o=n(136),a=o.get,s=o.has,u=o.set;r({target:"WeakMap",proto:!0,real:!0,forced:!0},{getOrInsert:function(e,t){return s(i(this),e)?a(this,e):(u(this,e,t),t)}})},function(e,t,n){"use strict";var r=n(2),i=n(19),o=n(266),a=n(1035),s=n(136),u=s.get,c=s.has,l=s.set;r({target:"WeakMap",proto:!0,real:!0,forced:!0},{getOrInsertComputed:function(e,t){if(o(this),a(e),i(t),c(this,e))return u(this,e);var n=t(e);return l(this,e,n),n}})},function(e,t,n){"use strict";var r=n(136),i=new r.WeakMap,o=r.set,a=r.remove;e.exports=function(e){return o(i,e,1),a(i,e),e}},function(e,t,n){"use strict";n(2)({target:"WeakMap",proto:!0,real:!0,forced:!0},{upsert:n(335)})},function(e,t,n){"use strict";var r=n(2),i=n(513),o=n(218).add;r({target:"WeakSet",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=i(this),t=0,n=arguments.length;t<n;t++)o(e,arguments[t]);return e}})},function(e,t,n){"use strict";var r=n(2),i=n(513),o=n(218).remove;r({target:"WeakSet",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=i(this),n=!0,r=0,a=arguments.length;r<a;r++)e=o(t,arguments[r]),n=n&&e;return!!n}})},function(e,t,n){"use strict";var r=n(2),i=n(218);r({target:"WeakSet",stat:!0,forced:!0},{from:n(262)(i.WeakSet,i.add,!1)})},function(e,t,n){"use strict";var r=n(2),i=n(218);r({target:"WeakSet",stat:!0,forced:!0},{of:n(263)(i.WeakSet,i.add,!1)})},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(18),a=n(4),s=n(8),u=n(7),c=n(22),l=n(106),f=n(264).c2i,d=/[^\d+/a-z]/i,h=/[\t\n\f\r ]+/g,p=/[=]{1,2}$/,g=o("atob"),m=String.fromCharCode,v=a("".charAt),y=a("".replace),b=a(d.exec),_=!!g&&!u((function(){return"hi"!==g("aGk=")})),w=_&&u((function(){return""!==g(" ")})),E=_&&!u((function(){g("a")})),S=_&&!u((function(){g()})),x=_&&1!==g.length;r({global:!0,bind:!0,enumerable:!0,forced:!_||w||E||S||x},{atob:function(e){if(l(arguments.length,1),_&&!w&&!E)return s(g,i,e);var t,n,r,a=y(c(e),h,""),u="",S=0,x=0;if(a.length%4==0&&(a=y(a,p,"")),(t=a.length)%4==1||b(d,a))throw new(o("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;S<t;)n=v(a,S++),r=x%4?64*r+f[n]:f[n],x++%4&&(u+=m(255&r>>(-2*x&6)));return u}})},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(18),a=n(4),s=n(8),u=n(7),c=n(22),l=n(106),f=n(264).i2c,d=o("btoa"),h=a("".charAt),p=a("".charCodeAt),g=!!d&&!u((function(){return"aGk="!==d("hi")})),m=g&&!u((function(){d()})),v=g&&u((function(){return"bnVsbA=="!==d(null)})),y=g&&1!==d.length;r({global:!0,bind:!0,enumerable:!0,forced:!g||m||v||y},{btoa:function(e){if(l(arguments.length,1),g)return s(d,i,c(e));for(var t,n,r=c(e),a="",u=0,m=f;h(r,u)||(m="=",u%1);){if((n=p(r,u+=3/4))>255)throw new(o("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");a+=h(m,63&(t=t<<8|n)>>8-u%1*8)}return a}})},function(e,t,n){"use strict";var r=n(11),i=n(514),o=n(515),a=n(382),s=n(62),u=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var c in i)i[c]&&u(r[c]&&r[c].prototype);u(o)},function(e,t,n){"use strict";var r=n(11),i=n(514),o=n(515),a=n(236),s=n(62),u=n(91),c=n(17)("iterator"),l=a.values,f=function(e,t){if(e){if(e[c]!==l)try{s(e,c,l)}catch(t){e[c]=l}if(u(e,t,!0),i[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var d in i)f(r[d]&&r[d].prototype,d);f(o,"DOMTokenList")},function(e,t,n){"use strict";var r=n(2),i=n(18),o=n(406),a=n(7),s=n(55),u=n(98),c=n(40).f,l=n(35),f=n(45),d=n(24),h=n(86),p=n(10),g=n(374),m=n(181),v=n(516),y=n(303),b=n(34),_=n(15),w=n(31),E=i("Error"),S=i("DOMException")||function(){try{(new(i("MessageChannel")||o("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(e){if("DATA_CLONE_ERR"===e.name&&25===e.code)return e.constructor}}(),x=S&&S.prototype,k=E.prototype,T=b.set,O=b.getterFor("DOMException"),P="stack"in new E("DOMException"),R=function(e){return d(v,e)&&v[e].m?v[e].c:0},A=function(){h(this,C);var e=arguments.length,t=m(e<1?void 0:arguments[0]),n=m(e<2?void 0:arguments[1],"Error"),r=R(n);if(T(this,{type:"DOMException",name:n,message:t,code:r}),_||(this.name=n,this.message=t,this.code=r),P){var i=new E(t);i.name="DOMException",c(this,"stack",u(1,y(i.stack,1)))}},C=A.prototype=s(k),D=function(e){return{enumerable:!0,configurable:!0,get:e}},L=function(e){return D((function(){return O(this)[e]}))};_&&(f(C,"code",L("code")),f(C,"message",L("message")),f(C,"name",L("name"))),c(C,"constructor",u(1,A));var I=a((function(){return!(new S instanceof E)})),M=I||a((function(){return k.toString!==g||"2: 1"!==String(new S(1,2))})),j=I||a((function(){return 25!==new S(1,"DataCloneError").code})),N=I||25!==S.DATA_CLONE_ERR||25!==x.DATA_CLONE_ERR,F=w?M||j||N:I;r({global:!0,constructor:!0,forced:F},{DOMException:F?A:S});var U=i("DOMException"),B=U.prototype;for(var q in M&&(w||S===U)&&l(B,"toString",g),j&&_&&S===U&&f(B,"code",D((function(){return R(p(this).name)}))),v)if(d(v,q)){var V=v[q],$=V.s,z=u(6,V.c);d(U,$)||c(U,$,z),d(B,$)||c(B,$,z)}},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(18),a=n(98),s=n(40).f,u=n(24),c=n(86),l=n(159),f=n(181),d=n(516),h=n(303),p=n(15),g=n(31),m=o("Error"),v=o("DOMException"),y=function(){c(this,b);var e=arguments.length,t=f(e<1?void 0:arguments[0]),n=f(e<2?void 0:arguments[1],"Error"),r=new v(t,n),i=new m(t);return i.name="DOMException",s(r,"stack",a(1,h(i.stack,1))),l(r,this,y),r},b=y.prototype=v.prototype,_="stack"in new m("DOMException"),w="stack"in new v(1,2),E=v&&p&&Object.getOwnPropertyDescriptor(i,"DOMException"),S=!(!E||E.writable&&E.configurable),x=_&&!S&&!w;r({global:!0,constructor:!0,forced:g||x},{DOMException:x?y:v});var k=o("DOMException"),T=k.prototype;if(T.constructor!==k)for(var O in g||s(T,"constructor",a(1,k)),d)if(u(d,O)){var P=d[O],R=P.s;u(k,R)||s(k,R,a(6,P.c))}},function(e,t,n){"use strict";var r=n(18);n(91)(r("DOMException"),"DOMException")},function(e,t,n){"use strict";n(1049),n(1050)},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(252).clear;r({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==o},{clearImmediate:o})},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(252).set,a=n(337),s=i.setImmediate?a(o,!1):o;r({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==s},{setImmediate:s})},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(439),a=n(19),s=n(106),u=n(7),c=n(15);r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:u((function(){return c&&1!==Object.getOwnPropertyDescriptor(i,"queueMicrotask").value.length}))},{queueMicrotask:function(e){s(arguments.length,1),o(a(e))}})},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(45),a=n(15),s=TypeError,u=Object.defineProperty,c=i.self!==i;try{if(a){var l=Object.getOwnPropertyDescriptor(i,"self");!c&&l&&l.get&&l.enumerable||o(i,"self",{get:function(){return i},set:function(e){if(this!==i)throw new s("Illegal invocation");u(i,"self",{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else r({global:!0,simple:!0,forced:c},{self:i})}catch(e){}},function(e,t,n){"use strict";var r,i=n(31),o=n(2),a=n(11),s=n(18),u=n(4),c=n(7),l=n(156),f=n(23),d=n(123),h=n(99),p=n(16),g=n(140),m=n(51),v=n(10),y=n(90),b=n(24),_=n(112),w=n(62),E=n(28),S=n(106),x=n(166),k=n(66),T=n(74),O=n(102),P=n(405),R=n(372),A=n(314),C=a.Object,D=a.Array,L=a.Date,I=a.Error,M=a.TypeError,j=a.PerformanceMark,N=s("DOMException"),F=k.Map,U=k.has,B=k.get,q=k.set,V=T.Set,$=T.add,z=T.has,G=s("Object","keys"),W=u([].push),H=u((!0).valueOf),K=u(1.1.valueOf),Y=u("".valueOf),Q=u(L.prototype.getTime),X=l("structuredClone"),J=function(e){return!c((function(){var t=new a.Set([7]),n=e(t),r=e(C(7));return n===t||!n.has(7)||!p(r)||7!=+r}))&&e},Z=function(e,t){return!c((function(){var n=new t,r=e({a:n,b:n});return!(r&&r.a===r.b&&r.a instanceof t&&r.a.stack===n.stack)}))},ee=a.structuredClone,te=i||!Z(ee,I)||!Z(ee,N)||(r=ee,!!c((function(){var e=r(new a.AggregateError([1],X,{cause:3}));return"AggregateError"!==e.name||1!==e.errors[0]||e.message!==X||3!==e.cause}))),ne=!ee&&J((function(e){return new j(X,{detail:e}).detail})),re=J(ee)||ne,ie=function(e){throw new N("Uncloneable type: "+e,"DataCloneError")},oe=function(e,t){throw new N((t||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine","DataCloneError")},ae=function(e,t){return re||oe(t),re(e)},se=function(e,t,n){if(U(t,e))return B(t,e);var r,i,o,s,u,c;if("SharedArrayBuffer"===(n||y(e)))r=re?re(e):e;else{var l=a.DataView;l||f(e.slice)||oe("ArrayBuffer");try{if(f(e.slice)&&!e.resizable)r=e.slice(0);else{i=e.byteLength,o="maxByteLength"in e?{maxByteLength:e.maxByteLength}:void 0,r=new ArrayBuffer(i,o),s=new l(e),u=new l(r);for(c=0;c<i;c++)u.setUint8(c,s.getUint8(c))}}catch(e){throw new N("ArrayBuffer is detached","DataCloneError")}}return q(t,e,r),r},ue=function(e,t){if(g(e)&&ie("Symbol"),!p(e))return e;if(t){if(U(t,e))return B(t,e)}else t=new F;var n,r,i,o,u,c,l,d,h=y(e);switch(h){case"Array":i=D(E(e));break;case"Object":i={};break;case"Map":i=new F;break;case"Set":i=new V;break;case"RegExp":i=new RegExp(e.source,x(e));break;case"Error":switch(r=e.name){case"AggregateError":i=new(s(r))([]);break;case"EvalError":case"RangeError":case"ReferenceError":case"SuppressedError":case"SyntaxError":case"TypeError":case"URIError":i=new(s(r));break;case"CompileError":case"LinkError":case"RuntimeError":i=new(s("WebAssembly",r));break;default:i=new I}break;case"DOMException":i=new N(e.message,e.name);break;case"ArrayBuffer":case"SharedArrayBuffer":i=se(e,t,h);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":c="DataView"===h?e.byteLength:e.length,i=function(e,t,n,r,i){var o=a[t];return p(o)||oe(t),new o(se(e.buffer,i),n,r)}(e,h,e.byteOffset,c,t);break;case"DOMQuad":try{i=new DOMQuad(ue(e.p1,t),ue(e.p2,t),ue(e.p3,t),ue(e.p4,t))}catch(t){i=ae(e,h)}break;case"File":if(re)try{i=re(e),y(i)!==h&&(i=void 0)}catch(e){}if(!i)try{i=new File([e],e.name,e)}catch(e){}i||oe(h);break;case"FileList":if(o=function(){var e;try{e=new a.DataTransfer}catch(t){try{e=new a.ClipboardEvent("").clipboardData}catch(e){}}return e&&e.items&&e.files?e:null}()){for(u=0,c=E(e);u<c;u++)o.items.add(ue(e[u],t));i=o.files}else i=ae(e,h);break;case"ImageData":try{i=new ImageData(ue(e.data,t),e.width,e.height,{colorSpace:e.colorSpace})}catch(t){i=ae(e,h)}break;default:if(re)i=re(e);else switch(h){case"BigInt":i=C(e.valueOf());break;case"Boolean":i=C(H(e));break;case"Number":i=C(K(e));break;case"String":i=C(Y(e));break;case"Date":i=new L(Q(e));break;case"Blob":try{i=e.slice(0,e.size,e.type)}catch(e){oe(h)}break;case"DOMPoint":case"DOMPointReadOnly":n=a[h];try{i=n.fromPoint?n.fromPoint(e):new n(e.x,e.y,e.z,e.w)}catch(e){oe(h)}break;case"DOMRect":case"DOMRectReadOnly":n=a[h];try{i=n.fromRect?n.fromRect(e):new n(e.x,e.y,e.width,e.height)}catch(e){oe(h)}break;case"DOMMatrix":case"DOMMatrixReadOnly":n=a[h];try{i=n.fromMatrix?n.fromMatrix(e):new n(e)}catch(e){oe(h)}break;case"AudioData":case"VideoFrame":f(e.clone)||oe(h);try{i=e.clone()}catch(e){ie(h)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":oe(h);default:ie(h)}}switch(q(t,e,i),h){case"Array":case"Object":for(l=G(e),u=0,c=E(l);u<c;u++)d=l[u],_(i,d,ue(e[d],t));break;case"Map":e.forEach((function(e,n){q(i,ue(n,t),ue(e,t))}));break;case"Set":e.forEach((function(e){$(i,ue(e,t))}));break;case"Error":w(i,"message",ue(e.message,t)),b(e,"cause")&&w(i,"cause",ue(e.cause,t)),"AggregateError"===r?i.errors=ue(e.errors,t):"SuppressedError"===r&&(i.error=ue(e.error,t),i.suppressed=ue(e.suppressed,t));case"DOMException":R&&w(i,"stack",ue(e.stack,t))}return i},ce=function(e,t){if(!p(e))throw new M("Transfer option cannot be converted to a sequence");var n=[];m(e,(function(e){W(n,v(e))}));for(var r,i,o,s,u,c=0,l=E(n),h=new V;c<l;){if(r=n[c++],"ArrayBuffer"===(i=y(r))?z(h,r):U(t,r))throw new N("Duplicate transferable","DataCloneError");if("ArrayBuffer"!==i){if(A)s=ee(r,{transfer:[r]});else switch(i){case"ImageBitmap":o=a.OffscreenCanvas,d(o)||oe(i,"Transferring");try{(u=new o(r.width,r.height)).getContext("bitmaprenderer").transferFromImageBitmap(r),s=u.transferToImageBitmap()}catch(e){}break;case"AudioData":case"VideoFrame":f(r.clone)&&f(r.close)||oe(i,"Transferring");try{s=r.clone(),r.close()}catch(e){}break;case"MediaSourceHandle":case"MessagePort":case"MIDIAccess":case"OffscreenCanvas":case"ReadableStream":case"RTCDataChannel":case"TransformStream":case"WebTransportReceiveStream":case"WebTransportSendStream":case"WritableStream":oe(i,"Transferring")}if(void 0===s)throw new N("This object cannot be transferred: "+i,"DataCloneError");q(t,r,s)}else $(h,r)}return h},le=function(e){O(e,(function(e){A?re(e,{transfer:[e]}):f(e.transfer)?e.transfer():P?P(e):oe("ArrayBuffer","Transferring")}))};o({global:!0,enumerable:!0,sham:!A,forced:te},{structuredClone:function(e){var t,n,r=S(arguments.length,1)>1&&!h(arguments[1])?v(arguments[1]):void 0,i=r?r.transfer:void 0;void 0!==i&&(t=new F,n=ce(i,t));var o=ue(e,t);return n&&le(n),o}})},function(e,t,n){"use strict";n(1055),n(1056)},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(337)(i.setInterval,!0);r({global:!0,bind:!0,forced:i.setInterval!==o},{setInterval:o})},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(337)(i.setTimeout,!0);r({global:!0,bind:!0,forced:i.setTimeout!==o},{setTimeout:o})},function(e,t,n){"use strict";n(1058)},function(e,t,n){"use strict";n(473);var r,i=n(2),o=n(15),a=n(267),s=n(11),u=n(37),c=n(4),l=n(35),f=n(45),d=n(86),h=n(24),p=n(433),g=n(383),m=n(101),v=n(188).codeAt,y=n(1059),b=n(22),_=n(91),w=n(106),E=n(517),S=n(34),x=S.set,k=S.getterFor("URL"),T=E.URLSearchParams,O=E.getState,P=s.URL,R=s.TypeError,A=s.parseInt,C=Math.floor,D=Math.pow,L=c("".charAt),I=c(/./.exec),M=c([].join),j=c(1.1.toString),N=c([].pop),F=c([].push),U=c("".replace),B=c([].shift),q=c("".split),V=c("".slice),$=c("".toLowerCase),z=c([].unshift),G=/[a-z]/i,W=/[\d+-.a-z]/i,H=/\d/,K=/^0x/i,Y=/^[0-7]+$/,Q=/^\d+$/,X=/^[\da-f]+$/i,J=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Z=/[\0\t\n\r #/:<>?@[\\\]^|]/,ee=/^[\u0000-\u0020]+/,te=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ne=/[\t\n\r]/g,re=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)z(t,e%256),e=C(e/256);return M(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n?r:t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=j(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},ie={},oe=p({},ie,{" ":1,'"':1,"<":1,">":1,"`":1}),ae=p({},oe,{"#":1,"?":1,"{":1,"}":1}),se=p({},ae,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ue=function(e,t){var n=v(e,0);return n>32&&n<127&&!h(t,e)?e:encodeURIComponent(e)},ce={ftp:21,file:null,http:80,https:443,ws:80,wss:443},le=function(e,t){var n;return 2===e.length&&I(G,L(e,0))&&(":"===(n=L(e,1))||!t&&"|"===n)},fe=function(e){var t;return e.length>1&&le(V(e,0,2))&&(2===e.length||"/"===(t=L(e,2))||"\\"===t||"?"===t||"#"===t)},de=function(e){return"."===e||"%2e"===$(e)},he={},pe={},ge={},me={},ve={},ye={},be={},_e={},we={},Ee={},Se={},xe={},ke={},Te={},Oe={},Pe={},Re={},Ae={},Ce={},De={},Le={},Ie=function(e,t,n){var r,i,o,a=b(e);if(t){if(i=this.parse(a))throw new R(i);this.searchParams=null}else{if(void 0!==n&&(r=new Ie(n,!0)),i=this.parse(a,null,r))throw new R(i);(o=O(new T)).bindURL(this),this.searchParams=o}};Ie.prototype={type:"URL",parse:function(e,t,n){var i,o,a,s,u,c=this,l=t||he,f=0,d="",p=!1,v=!1,y=!1;for(e=b(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=U(e,ee,""),e=U(e,te,"$1")),e=U(e,ne,""),i=g(e);f<=i.length;){switch(o=i[f],l){case he:if(!o||!I(G,o)){if(t)return"Invalid scheme";l=ge;continue}d+=$(o),l=pe;break;case pe:if(o&&(I(W,o)||"+"===o||"-"===o||"."===o))d+=$(o);else{if(":"!==o){if(t)return"Invalid scheme";d="",l=ge,f=0;continue}if(t&&(c.isSpecial()!==h(ce,d)||"file"===d&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=d,t)return void(c.isSpecial()&&ce[c.scheme]===c.port&&(c.port=null));d="","file"===c.scheme?l=Te:c.isSpecial()&&n&&n.scheme===c.scheme?l=me:c.isSpecial()?l=_e:"/"===i[f+1]?(l=ve,f++):(c.cannotBeABaseURL=!0,F(c.path,""),l=Ce)}break;case ge:if(!n||n.cannotBeABaseURL&&"#"!==o)return"Invalid scheme";if(n.cannotBeABaseURL&&"#"===o){c.scheme=n.scheme,c.path=m(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,l=Le;break}l="file"===n.scheme?Te:ye;continue;case me:if("/"!==o||"/"!==i[f+1]){l=ye;continue}l=we,f++;break;case ve:if("/"===o){l=Ee;break}l=Ae;continue;case ye:if(c.scheme=n.scheme,o===r)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=m(n.path),c.query=n.query;else if("/"===o||"\\"===o&&c.isSpecial())l=be;else if("?"===o)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=m(n.path),c.query="",l=De;else{if("#"!==o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=m(n.path),c.path.length--,l=Ae;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=m(n.path),c.query=n.query,c.fragment="",l=Le}break;case be:if(!c.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,l=Ae;continue}l=Ee}else l=we;break;case _e:if(l=we,"/"!==o||"/"!==L(d,f+1))continue;f++;break;case we:if("/"!==o&&"\\"!==o){l=Ee;continue}break;case Ee:if("@"===o){p&&(d="%40"+d),p=!0,a=g(d);for(var _=0;_<a.length;_++){var w=a[_];if(":"!==w||y){var E=ue(w,se);y?c.password+=E:c.username+=E}else y=!0}d=""}else if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()){if(p&&""===d)return"Invalid authority";f-=g(d).length+1,d="",l=Se}else d+=o;break;case Se:case xe:if(t&&"file"===c.scheme){l=Pe;continue}if(":"!==o||v){if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()){if(c.isSpecial()&&""===d)return"Invalid host";if(t&&""===d&&(c.includesCredentials()||null!==c.port))return;if(s=c.parseHost(d))return s;if(d="",l=Re,t)return;continue}"["===o?v=!0:"]"===o&&(v=!1),d+=o}else{if(""===d)return"Invalid host";if(s=c.parseHost(d))return s;if(d="",l=ke,t===xe)return}break;case ke:if(!I(H,o)){if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()||t){if(""!==d){var S=A(d,10);if(S>65535)return"Invalid port";c.port=c.isSpecial()&&S===ce[c.scheme]?null:S,d=""}if(t)return;l=Re;continue}return"Invalid port"}d+=o;break;case Te:if(c.scheme="file","/"===o||"\\"===o)l=Oe;else{if(!n||"file"!==n.scheme){l=Ae;continue}switch(o){case r:c.host=n.host,c.path=m(n.path),c.query=n.query;break;case"?":c.host=n.host,c.path=m(n.path),c.query="",l=De;break;case"#":c.host=n.host,c.path=m(n.path),c.query=n.query,c.fragment="",l=Le;break;default:fe(M(m(i,f),""))||(c.host=n.host,c.path=m(n.path),c.shortenPath()),l=Ae;continue}}break;case Oe:if("/"===o||"\\"===o){l=Pe;break}n&&"file"===n.scheme&&!fe(M(m(i,f),""))&&(le(n.path[0],!0)?F(c.path,n.path[0]):c.host=n.host),l=Ae;continue;case Pe:if(o===r||"/"===o||"\\"===o||"?"===o||"#"===o){if(!t&&le(d))l=Ae;else if(""===d){if(c.host="",t)return;l=Re}else{if(s=c.parseHost(d))return s;if("localhost"===c.host&&(c.host=""),t)return;d="",l=Re}continue}d+=o;break;case Re:if(c.isSpecial()){if(l=Ae,"/"!==o&&"\\"!==o)continue}else if(t||"?"!==o)if(t||"#"!==o){if(o!==r&&(l=Ae,"/"!==o))continue}else c.fragment="",l=Le;else c.query="",l=De;break;case Ae:if(o===r||"/"===o||"\\"===o&&c.isSpecial()||!t&&("?"===o||"#"===o)){if(".."===(u=$(u=d))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(c.shortenPath(),"/"===o||"\\"===o&&c.isSpecial()||F(c.path,"")):de(d)?"/"===o||"\\"===o&&c.isSpecial()||F(c.path,""):("file"===c.scheme&&!c.path.length&&le(d)&&(c.host&&(c.host=""),d=L(d,0)+":"),F(c.path,d)),d="","file"===c.scheme&&(o===r||"?"===o||"#"===o))for(;c.path.length>1&&""===c.path[0];)B(c.path);"?"===o?(c.query="",l=De):"#"===o&&(c.fragment="",l=Le)}else d+=ue(o,ae);break;case Ce:"?"===o?(c.query="",l=De):"#"===o?(c.fragment="",l=Le):o!==r&&(c.path[0]+=ue(o,ie));break;case De:t||"#"!==o?o!==r&&("'"===o&&c.isSpecial()?c.query+="%27":c.query+="#"===o?"%23":ue(o,ie)):(c.fragment="",l=Le);break;case Le:o!==r&&(c.fragment+=ue(o,oe))}f++}},parseHost:function(e){var t,n,r;if("["===L(e,0)){if("]"!==L(e,e.length-1))return"Invalid host";if(!(t=function(e){var t,n,r,i,o,a,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,d=function(){return L(e,f)};if(":"===d()){if(":"!==L(e,1))return;f+=2,l=++c}for(;d();){if(8===c)return;if(":"!==d()){for(t=n=0;n<4&&I(X,d());)t=16*t+A(d(),16),f++,n++;if("."===d()){if(0===n)return;if(f-=n,c>6)return;for(r=0;d();){if(i=null,r>0){if(!("."===d()&&r<4))return;f++}if(!I(H,d()))return;for(;I(H,d());){if(o=A(d(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;f++}u[c]=256*u[c]+i,2!==++r&&4!==r||c++}if(4!==r)return;break}if(":"===d()){if(f++,!d())return}else if(d())return;u[c++]=t}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(a=c-l,c=7;0!==c&&a>0;)s=u[c],u[c--]=u[l+a-1],u[l+--a]=s;else if(8!==c)return;return u}(V(e,1,-1))))return"Invalid host";this.host=t}else if(this.isSpecial()){if(e=y(e),I(J,e))return"Invalid host";if(null===(t=function(e){var t,n,r,i,o,a,s,u=q(e,".");if(u.length&&""===u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(n=[],r=0;r<t;r++){if(""===(i=u[r]))return e;if(o=10,i.length>1&&"0"===L(i,0)&&(o=I(K,i)?16:8,i=V(i,8===o?1:2)),""===i)a=0;else{if(!I(10===o?Q:8===o?Y:X,i))return e;a=A(i,o)}F(n,a)}for(r=0;r<t;r++)if(a=n[r],r===t-1){if(a>=D(256,5-t))return null}else if(a>255)return null;for(s=N(n),r=0;r<n.length;r++)s+=n[r]*D(256,3-r);return s}(e)))return"Invalid host";this.host=t}else{if(I(Z,e))return"Invalid host";for(t="",n=g(e),r=0;r<n.length;r++)t+=ue(n[r],ie);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return h(ce,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&le(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,u=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=n+(r?":"+r:"")+"@"),c+=re(i),null!==o&&(c+=":"+o)):"file"===t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+M(a,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw new R(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new Me(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+re(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(b(e)+":",he)},getUsername:function(){return this.username},setUsername:function(e){var t=g(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=ue(t[n],se)}},getPassword:function(){return this.password},setPassword:function(e){var t=g(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=ue(t[n],se)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?re(e):re(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Se)},getHostname:function(){var e=this.host;return null===e?"":re(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,xe)},getPort:function(){var e=this.port;return null===e?"":b(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=b(e))?this.port=null:this.parse(e,ke))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+M(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Re))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=b(e))?this.query=null:("?"===L(e,0)&&(e=V(e,1)),this.query="",this.parse(e,De)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=b(e))?("#"===L(e,0)&&(e=V(e,1)),this.fragment="",this.parse(e,Le)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Me=function(e){var t=d(this,je),n=w(arguments.length,1)>1?arguments[1]:void 0,r=x(t,new Ie(e,!1,n));o||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},je=Me.prototype,Ne=function(e,t){return{get:function(){return k(this)[e]()},set:t&&function(e){return k(this)[t](e)},configurable:!0,enumerable:!0}};if(o&&(f(je,"href",Ne("serialize","setHref")),f(je,"origin",Ne("getOrigin")),f(je,"protocol",Ne("getProtocol","setProtocol")),f(je,"username",Ne("getUsername","setUsername")),f(je,"password",Ne("getPassword","setPassword")),f(je,"host",Ne("getHost","setHost")),f(je,"hostname",Ne("getHostname","setHostname")),f(je,"port",Ne("getPort","setPort")),f(je,"pathname",Ne("getPathname","setPathname")),f(je,"search",Ne("getSearch","setSearch")),f(je,"searchParams",Ne("getSearchParams")),f(je,"hash",Ne("getHash","setHash"))),l(je,"toJSON",(function(){return k(this).serialize()}),{enumerable:!0}),l(je,"toString",(function(){return k(this).serialize()}),{enumerable:!0}),P){var Fe=P.createObjectURL,Ue=P.revokeObjectURL;Fe&&l(Me,"createObjectURL",u(Fe,P)),Ue&&l(Me,"revokeObjectURL",u(Ue,P))}_(Me,"URL"),i({global:!0,constructor:!0,forced:!a,sham:!o},{URL:Me})},function(e,t,n){"use strict";var r=n(4),i=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",s=RangeError,u=r(o.exec),c=Math.floor,l=String.fromCharCode,f=r("".charCodeAt),d=r([].join),h=r([].push),p=r("".replace),g=r("".split),m=r("".toLowerCase),v=function(e){return e+22+75*(e<26)},y=function(e,t,n){var r=0;for(e=n?c(e/700):e>>1,e+=c(e/t);e>455;)e=c(e/35),r+=36;return c(r+36*e/(e+38))},b=function(e){var t,n,r=[],i=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=f(e,n++);if(i>=55296&&i<=56319&&n<r){var o=f(e,n++);56320==(64512&o)?h(t,((1023&i)<<10)+(1023&o)+65536):(h(t,i),n--)}else h(t,i)}return t}(e)).length,o=128,u=0,p=72;for(t=0;t<e.length;t++)(n=e[t])<128&&h(r,l(n));var g=r.length,m=g;for(g&&h(r,"-");m<i;){var b=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=o&&n<b&&(b=n);var _=m+1;if(b-o>c((2147483647-u)/_))throw new s(a);for(u+=(b-o)*_,o=b,t=0;t<e.length;t++){if((n=e[t])<o&&++u>2147483647)throw new s(a);if(n===o){for(var w=u,E=36;;){var S=E<=p?1:E>=p+26?26:E-p;if(w<S)break;var x=w-S,k=36-S;h(r,l(v(S+x%k))),w=c(x/k),E+=36}h(r,l(v(w))),p=y(u,_,m===g),u=0,m++}}u++,o++}return d(r,"")};e.exports=function(e){var t,n,r=[],a=g(p(m(e),o,"."),".");for(t=0;t<a.length;t++)n=a[t],h(r,u(i,n)?"xn--"+b(n):n);return d(r,".")}},function(e,t,n){"use strict";var r=n(2),i=n(18),o=n(7),a=n(106),s=n(22),u=n(267),c=i("URL"),l=u&&o((function(){c.canParse()})),f=o((function(){return 1!==c.canParse.length}));r({target:"URL",stat:!0,forced:!l||f},{canParse:function(e){var t=a(arguments.length,1),n=s(e),r=t<2||void 0===arguments[1]?void 0:s(arguments[1]);try{return!!new c(n,r)}catch(e){return!1}}})},function(e,t,n){"use strict";var r=n(2),i=n(18),o=n(106),a=n(22),s=n(267),u=i("URL");r({target:"URL",stat:!0,forced:!s},{parse:function(e){var t=o(arguments.length,1),n=a(e),r=t<2||void 0===arguments[1]?void 0:a(arguments[1]);try{return new u(n,r)}catch(e){return null}}})},function(e,t,n){"use strict";var r=n(2),i=n(8);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},function(e,t,n){"use strict";n(517)},function(e,t,n){"use strict";var r=n(35),i=n(4),o=n(22),a=n(106),s=URLSearchParams,u=s.prototype,c=i(u.append),l=i(u.delete),f=i(u.forEach),d=i([].push),h=new s("a=1&a=2&b=3");h.delete("a",1),h.delete("b",void 0),h+""!="a=2"&&r(u,"delete",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return l(this,e);var r=[];f(this,(function(e,t){d(r,{key:t,value:e})})),a(t,1);for(var i,s=o(e),u=o(n),h=0,p=0,g=!1,m=r.length;h<m;)i=r[h++],g||i.key===s?(g=!0,l(this,i.key)):p++;for(;p<m;)(i=r[p++]).key===s&&i.value===u||c(this,i.key,i.value)}),{enumerable:!0,unsafe:!0})},function(e,t,n){"use strict";var r=n(35),i=n(4),o=n(22),a=n(106),s=URLSearchParams,u=s.prototype,c=i(u.getAll),l=i(u.has),f=new s("a=1");!f.has("a",2)&&f.has("a",void 0)||r(u,"has",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return l(this,e);var r=c(this,e);a(t,1);for(var i=o(n),s=0;s<r.length;)if(r[s++]===i)return!0;return!1}),{enumerable:!0,unsafe:!0})},function(e,t,n){"use strict";var r=n(15),i=n(4),o=n(45),a=URLSearchParams.prototype,s=i(a.forEach);r&&!("size"in a)&&o(a,"size",{get:function(){var e=0;return s(this,(function(){e++})),e},configurable:!0,enumerable:!0})},function(e,t,n){"use strict";(function(e){var t="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==e&&e||{},n="URLSearchParams"in t,r="Symbol"in t&&"iterator"in Symbol,i="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in t,a="ArrayBuffer"in t;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function p(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=p(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=h(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(i)return this.blob().then(g);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r,i,o=h(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=p(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=r?r[1]:"utf-8",t.readAsText(e,i),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=c(e),t=l(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},d.prototype.delete=function(e){delete this.map[c(e)]},d.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},d.prototype.set=function(e,t){this.map[c(e)]=l(t)},d.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),f(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),f(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),f(e)},r&&(d.prototype[Symbol.iterator]=d.prototype.entries);var y=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function b(e,n){if(!(this instanceof b))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,i,o=(n=n||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,n.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=n.credentials||this.credentials||"same-origin",!n.headers&&this.headers||(this.headers=new d(n.headers)),this.method=(r=n.method||this.method||"GET",i=r.toUpperCase(),y.indexOf(i)>-1?i:r),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal||function(){if("AbortController"in t)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==n.cache&&"no-cache"!==n.cache)){var a=/([?&])_=[^&]*/;if(a.test(this.url))this.url=this.url.replace(a,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function _(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function w(e,t){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},v.call(b.prototype),v.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var E=[301,302,303,307,308];w.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new w(null,{status:t,headers:{location:e}})};var S=t.DOMException;try{new S}catch(e){(S=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),S.prototype.constructor=S}function x(e,n){return new Promise((function(r,o){var s=new b(e,n);if(s.signal&&s.signal.aborted)return o(new S("Aborted","AbortError"));var u=new XMLHttpRequest;function f(){u.abort()}if(u.onload=function(){var e,t,n={statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();try{t.append(r,i)}catch(e){console.warn("Response "+e.message)}}})),t)};0===s.url.indexOf("file://")&&(u.status<200||u.status>599)?n.status=200:n.status=u.status,n.url="responseURL"in u?u.responseURL:n.headers.get("X-Request-URL");var i="response"in u?u.response:u.responseText;setTimeout((function(){r(new w(i,n))}),0)},u.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request timed out"))}),0)},u.onabort=function(){setTimeout((function(){o(new S("Aborted","AbortError"))}),0)},u.open(s.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(t){return e}}(s.url),!0),"include"===s.credentials?u.withCredentials=!0:"omit"===s.credentials&&(u.withCredentials=!1),"responseType"in u&&(i?u.responseType="blob":a&&(u.responseType="arraybuffer")),n&&"object"==typeof n.headers&&!(n.headers instanceof d||t.Headers&&n.headers instanceof t.Headers)){var h=[];Object.getOwnPropertyNames(n.headers).forEach((function(e){h.push(c(e)),u.setRequestHeader(e,l(n.headers[e]))})),s.headers.forEach((function(e,t){-1===h.indexOf(t)&&u.setRequestHeader(t,e)}))}else s.headers.forEach((function(e,t){u.setRequestHeader(t,e)}));s.signal&&(s.signal.addEventListener("abort",f),u.onreadystatechange=function(){4===u.readyState&&s.signal.removeEventListener("abort",f)}),u.send(void 0===s._bodyInit?null:s._bodyInit)}))}x.polyfill=!0,t.fetch||(t.fetch=x,t.Headers=d,t.Request=b,t.Response=w)}).call(this,n(153))},function(e,t,n){(function(e){!function(e){var t=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),n=function(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t&&(n[Symbol.iterator]=function(){return n}),n},r=function(e){return encodeURIComponent(e).replace(/%20/g,"+")},i=function(e){return decodeURIComponent(String(e).replace(/\+/g," "))};(function(){try{var t=e.URLSearchParams;return"a=1"===new t("?a=1").toString()&&"function"==typeof t.prototype.set&&"function"==typeof t.prototype.entries}catch(e){return!1}})()||function(){var i=function(e){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var t=typeof e;if("undefined"===t);else if("string"===t)""!==e&&this._fromString(e);else if(e instanceof i){var n=this;e.forEach((function(e,t){n.append(t,e)}))}else{if(null===e||"object"!==t)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(e))for(var r=0;r<e.length;r++){var o=e[r];if("[object Array]"!==Object.prototype.toString.call(o)&&2===o.length)throw new TypeError("Expected [string, any] as entry at index "+r+" of URLSearchParams's input");this.append(o[0],o[1])}else for(var a in e)e.hasOwnProperty(a)&&this.append(a,e[a])}},o=i.prototype;o.append=function(e,t){e in this._entries?this._entries[e].push(String(t)):this._entries[e]=[String(t)]},o.delete=function(e){delete this._entries[e]},o.get=function(e){return e in this._entries?this._entries[e][0]:null},o.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},o.has=function(e){return e in this._entries},o.set=function(e,t){this._entries[e]=[String(t)]},o.forEach=function(e,t){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var i=0;i<n.length;i++)e.call(t,n[i],r,this)}},o.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),n(e)},o.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),n(e)},o.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),n(e)},t&&(o[Symbol.iterator]=o.entries),o.toString=function(){var e=[];return this.forEach((function(t,n){e.push(r(n)+"="+r(t))})),e.join("&")},Object.defineProperty(o,"size",{get:function(){return this._entries?Object.keys(this._entries).length:0}}),e.URLSearchParams=i}();var o=e.URLSearchParams.prototype;"function"!=typeof o.sort&&(o.sort=function(){var e=this,t=[];this.forEach((function(n,r){t.push([r,n]),e._entries||e.delete(r)})),t.sort((function(e,t){return e[0]<t[0]?-1:e[0]>t[0]?1:0})),e._entries&&(e._entries={});for(var n=0;n<t.length;n++)this.append(t[n][0],t[n][1])}),"function"!=typeof o._fromString&&Object.defineProperty(o,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(e){if(this._entries)this._entries={};else{var t=[];this.forEach((function(e,n){t.push(n)}));for(var n=0;n<t.length;n++)this.delete(t[n])}var r,o=(e=e.replace(/^\?/,"")).split("&");for(n=0;n<o.length;n++)r=o[n].split("="),this.append(i(r[0]),r.length>1?i(r.slice(1).join("=")):"")}})}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(e){if(function(){try{var t=new e.URL("b","http://a");return t.pathname="c d","http://a/c%20d"===t.href&&t.searchParams}catch(e){return!1}}()||function(){var t=e.URL,n=function(t,n){"string"!=typeof t&&(t=String(t)),n&&"string"!=typeof n&&(n=String(n));var r,i=document;if(n&&(void 0===e.location||n!==e.location.href)){n=n.toLowerCase(),(r=(i=document.implementation.createHTMLDocument("")).createElement("base")).href=n,i.head.appendChild(r);try{if(0!==r.href.indexOf(n))throw new Error(r.href)}catch(e){throw new Error("URL unable to set base "+n+" due to "+e)}}var o=i.createElement("a");o.href=t,r&&(i.body.appendChild(o),o.href=o.href);var a=i.createElement("input");if(a.type="url",a.value=t,":"===o.protocol||!/:/.test(o.href)||!a.checkValidity()&&!n)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:o});var s=new e.URLSearchParams(this.search),u=!0,c=!0,l=this;["append","delete","set"].forEach((function(e){var t=s[e];s[e]=function(){t.apply(s,arguments),u&&(c=!1,l.search=s.toString(),c=!0)}})),Object.defineProperty(this,"searchParams",{value:s,enumerable:!0});var f=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==f&&(f=this.search,c&&(u=!1,this.searchParams._fromString(this.search),u=!0))}})},r=n.prototype;["hash","host","hostname","port","protocol"].forEach((function(e){!function(e){Object.defineProperty(r,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)})),Object.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(r,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0}}),n.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)},n.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)},e.URL=n}(),void 0!==e.location&&!("origin"in e.location)){var t=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:t,enumerable:!0})}catch(n){setInterval((function(){e.location.origin=t()}),100)}}}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this)}).call(this,n(153))},function(e,t,n){"use strict";
11
11
  /**
@@ -54,4 +54,4 @@ var r=(n=n(8835)).parse,i=n.Url;function o(e){var t,n=e.url;if(void 0!==n)return
54
54
  object-assign
55
55
  (c) Sindre Sorhus
56
56
  @license MIT
57
- */var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,u=a(e),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))i.call(n,l)&&(u[l]=n[l]);if(r){s=r(n);for(var f=0;f<s.length;f++)o.call(n,s[f])&&(u[s[f]]=n[s[f]])}}return u}},function(e,t,n){var r=n(67),i=n(1142);"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(68)(!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(67),i=n(1145);"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(68)(!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,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return(r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.AdvertPlayer=void 0;const s=a(n(0));t.AdvertPlayer=({url:e,link:t,index:n,setActiveIndex:r,setAdvertDuration:i,onEvent:o})=>{const a=(0,s.useRef)(null),[u,c]=(0,s.useState)(!1),[l,f]=(0,s.useState)(!0),[d,h]=(0,s.useState)(),p=()=>{r(n+1)},g=(0,s.useCallback)(()=>{var e;a.current&&a.current.currentTime&&i(n,null===(e=a.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,s.useEffect)(()=>{if(a.current){const{current:t}=a;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=a.current)||void 0===e||e.removeEventListener("play",m,!1),null===(t=a.current)||void 0===t||t.removeEventListener("ended",p,!1),clearInterval(d)}},[e]),s.default.createElement(s.Fragment,null,s.default.createElement("a",{href:t,target:"_blank","aria-label":"advertise-link",rel:"noreferrer"},s.default.createElement("video",{ref:a,className:"advert-player",style:{width:"100%",height:"100%"},autoPlay:!0,playsInline:!0,muted:!0,controls:!1,"data-cy":"videoAdvertElement",key:"advert_player"})),u&&s.default.createElement("div",{className:"muted_placeholder"},s.default.createElement("button",{type:"button",className:"dvrp-button dvrp-volume-button",onClick:()=>{if(a.current){if(0===a.current.currentTime)return;a.current.muted=!a.current.muted,f(!l)}},"data-cy":"DVR_mute_button"},l?s.default.createElement("span",{className:"icon-volume_off"}):s.default.createElement("span",{className:"icon-volume"}))))}},function(e,t,n){var r=n(67),i=n(1148);"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(68)(!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) hsla(0,0%,100%,.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) hsla(0,0%,100%,.5) rgba(0,0,0,0) rgba(0,0,0,0)}@keyframes arrowColorChangeLeft{0%,100%{border-color:rgba(0,0,0,0) hsla(0,0%,100%,.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) hsla(0,0%,100%,.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){e.exports=function(e){throw new TypeError('"'+e+'" is read-only')},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(67),i=n(1151);"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(68)(!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(39),i=n.n(r),o=n(38),a=n.n(o),s=n(46),u=n.n(s),c=n(30),l=n.n(c),f=n(47),d=n.n(f),h=n(0),p=n.n(h),g=n(1),m=n.n(g),v=n(12);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,Object(v.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(67),i=n(1154);"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(68)(!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:hsla(0,0%,100%,.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(67),i=n(1156);"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(68)(!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:hsla(0,0%,100%,.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(1158)),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(1159),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(67),i=n(1161);"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(68)(!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%}.popup{position:absolute;color:#fff;z-index:100;opacity:0;border-radius:8px;padding:0;top:25px;background:rgba(0,0,0,.75);transition:150ms ease-in-out}.popup.enabled{left:50%;transform:translate(-50%, -50%);padding:8px 12px;opacity:1}.downloadDropdownContent{display:flex;flex-direction:column;gap:.5rem}.downloadOptions{display:flex;flex-direction:column}.downloadOptions_type{padding-left:.5rem;padding-bottom:.25rem;color:#fff;font-size:smaller;border-bottom:1px solid gray}.downloadOptions_item{font-size:smaller;line-height:normal}@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(67),i=n(1163);"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(68)(!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:fit-content;opacity:1}.dropDown .item{background-color:#1e1e1f;text-align:left;padding:8px 24px 8px 16px;color:#fff;display:flex;align-items:center;text-decoration:none;border:none;width:100%}.dropDown .item a{text-decoration:none;color:inherit}.dropDown .item.unclickable:hover{cursor:default;background-color:#1e1e1f}.dropDown .item:hover{background-color:#48484d;cursor:pointer}.dropDown .item:disabled{color:gray}.dropDown .item.active{color:#00ff86}.dropDown .item .left{display:flex;align-items:center;user-select:none}.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}.ddicon{font-size:16px;line-height:16px;margin-right:12px}.smicon{font-size:16px;line-height:16px;margin-right:12px}.downloadOptions_icon{font-size:small;line-height:normal;margin-right:8px}",""]),e.exports=t},function(e,t,n){var r=n(67),i=n(1165);"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(68)(!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(67),i=n(1167);"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(68)(!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(67),i=n(1169);"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(68)(!1)).push([e.i,".ott_time{font-size:13px;margin-left:8px}",""]),e.exports=t},function(e,t,n){var r=n(67),i=n(1171);"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(68)(!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,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return(r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.CameraArrow=void 0;const s=a(n(0));t.CameraArrow=({direction:e,Icon:t,onMove:n})=>{const[r,i]=(0,s.useState)(!1),[o,a]=(0,s.useState)(!1);(0,s.useEffect)(()=>{if(r){const t=setInterval(()=>{n(e),a(!0)},500);return()=>clearInterval(t)}},[r,e,n]);const u=()=>{i(!0),a(!1)},c=()=>{i(!1),o&&setTimeout(()=>n(e,!0),0)};return s.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(67),i=n(1174);"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(68)(!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){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ptzTelemetry=void 0,t.ptzTelemetry={getPtzFields:()=>({event:"request_success",event_message:"Get stream info.json",uts_ms:Date.now()}),errorPtzFields:()=>({event:"request_error",error_type:"ptz_request_error",event_message:"Error in get ptz",uts_ms:Date.now()})}},function(e,t,n){var r=n(67),i=n(1177);"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(68)(!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%;height:100%;min-height:100px;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:48px;bottom:97px;left:0;overflow:hidden;position:absolute;z-index:49;user-select:none;pointer-events:none}.dvrContainer .playersContainer .seekContainer .buttonGroup{display:flex;width:100%;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:hsla(0,0%,100%,.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;width:100%}.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{right:0;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 hsla(0,0%,100%,.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:hsla(0,0%,100%,.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 hsla(0,0%,100%,.15)}.dvrContainer .timeline__calendarContent .calendar .day-entries:nth-child(3){border-top:1px solid hsla(0,0%,100%,.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 hsla(0,0%,100%,.15);border-bottom:1px solid hsla(0,0%,100%,.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 hsla(0,0%,100%,.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:calc(100% - 97px);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(67),i=n(1179);"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(68),i=n(1180),o=n(1181),a=n(1182),s=n(1183),u=n(1184);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(38),i=n.n(r),o=n(39),a=n.n(o),s=n(13),u=n.n(s),c=(n(574),n(1067),n(1068),n(0)),l=n.n(c),f=n(148),d=n.n(f),h=n(548),p=n(76),g=n(97),m=n.n(g),v=n(46),y=n.n(v),b=n(30),_=n.n(b),w=n(47),E=n.n(w),S=n(1),x=n.n(S);const k=e=>"string"==typeof e,T=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},O=e=>null==e?"":""+e,P=/###/g,R=e=>e&&e.indexOf("###")>-1?e.replace(P,"."):e,A=e=>!e||k(e),C=(e,t,n)=>{const r=k(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(A(e))return{};const t=R(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return A(e)?{}:{obj:e,k:R(r[i])}},D=(e,t,n)=>{const{obj:r,k:i}=C(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=C(e,a,Object);for(;void 0===s.obj&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=C(e,a,Object),s&&s.obj&&void 0!==s.obj[`${s.k}.${o}`]&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},L=(e,t)=>{const{obj:n,k:r}=C(e,t);if(n)return n[r]},I=(e,t,n)=>{const r=L(e,n);return void 0!==r?r:L(t,n)},M=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?k(e[r])||e[r]instanceof String||k(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):M(e[r],t[r],n):e[r]=t[r]);return e},j=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var N={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const F=e=>k(e)?e.replace(/[&<>"'\/]/g,e=>N[e]):e;const U=[" ",",","?","!",";"],B=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),q=function(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},V=e=>e&&e.replace("_","-"),$={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 z{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||$,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:(k(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new z(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new z(this.logger,e)}}var G=new z;class W{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])})}}}class H extends W{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):k(n)&&i?a.push(...n.split(i)):a.push(n)));const s=L(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),!s&&o&&k(n)?q(this.data&&this.data[e]&&this.data[e][t],n,i):s}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),D(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)(k(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=L(this.data,a)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?M(s,n,i):s={...s,...n},D(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 K={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 Y={};class Q extends W{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=G.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||((e,t,n)=>{t=t||"",n=n||"";const r=U.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;const i=B.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:k(i)?[i]: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{key:e,namespaces:k(i)?[i]: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,v=!k(f)&&"boolean"!=typeof f&&"number"!=typeof f;if(!(m&&f&&v&&["[object Number]","[object Function]","[object RegExp]"].indexOf(p)<0)||k(g)&&Array.isArray(f))if(m&&k(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&&!k(t.count),d=Q.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))}else{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}}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=k(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&&!k(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||r.usedLng,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=this.language||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=k(a)?[a]:a;return null!=e&&s&&s.length&&!1!==n.applyPostProcessor&&(e=K.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 k(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&&!k(a.count),f=l&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==a.context&&(k(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,!Y[`${h[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(Y[`${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&&!k(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}}const X=e=>e.charAt(0).toUpperCase()+e.slice(1);class J{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=G.create("languageUtils")}getScriptPartFromCode(e){if(!(e=V(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=V(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(k(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(e){}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]=X(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]=X(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=X(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)),k(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 k(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))):k(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}}let Z=[{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}],ee={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)};const te=["v1","v2","v3"],ne=["v4"],re={zero:0,one:1,two:2,few:3,many:4,other:5};class ie{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=G.create("pluralResolver"),this.options.compatibilityJSON&&!ne.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=(()=>{const e={};return Z.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:ee[t.fc]}})}),e})(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){const n=V("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(n,{type:r})}catch(n){if(!e.match(/-|_/))return;const r=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(r,t)}return this.pluralRulesCache[i]=o,o}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)=>re[e]-re[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!te.includes(this.options.compatibilityJSON)}}const oe=function(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=I(e,t,n);return!o&&i&&k(n)&&(o=q(e,n,r),void 0===o&&(o=q(t,n,r))),o},ae=e=>e.replace(/\$/g,"$$$$");class se{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=G.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:F,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?j(i):o||"{{",this.suffix=a?j(a):s||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":l||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=f?j(f):d||j("$t("),this.nestingSuffix=h?j(h):p||j(")"),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||{},u=e=>{if(e.indexOf(this.formatSeparator)<0){const i=oe(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(oe(t,s,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:o})};this.resetRegExp();const c=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,l=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>ae(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?ae(this.escape(e)):ae(e)}].forEach(t=>{for(a=0;i=t.regex.exec(e);){const n=i[1].trim();if(o=u(n),void 0===o)if("function"==typeof c){const t=c(e,i,r);o=k(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else{if(l){o=i[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),o=""}else k(o)||this.useRawValueToEscape||(o=O(o));const s=t.safeValue(o);if(e=e.replace(i[0],s),l?(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]:{};const 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&&!k(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&&!k(r))return r;k(r)||(r=O(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}}const ue=e=>{const t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const a=r+JSON.stringify(o);let s=t[a];return s||(s=e(V(r),i),t[a]=s),s(n)}};class ce{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=G.create("formatter"),this.options=e,this.formats={number:ue((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:ue((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:ue((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:ue((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:ue((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=ue(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(e=>e.indexOf(")")>-1)){const e=i.findIndex(e=>e.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{const{formatName:i,formatOptions:o}=(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 le extends W{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=G.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),!t&&n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const a={};this.queue.forEach(n=>{((e,t,n,r)=>{const{obj:i,k:o}=C(e,t,Object);i[o]=i[o]||[],i[o].push(n)})(n.loaded,[i],o),((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();k(e)&&(e=this.languageUtils.toResolveHierarchy(e)),k(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)}}}const fe=()=>({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:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),k(e[1])&&(t.defaultValue=e[1]),k(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}}),de=e=>(k(e.ns)&&(e.ns=[e.ns]),k(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),k(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),he=()=>{};class pe extends W{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=de(e),this.services={},this.logger=G,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&&(k(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=fe();this.options={...r,...this.options,...de(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);const i=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?G.init(i(this.modules.logger),this.options):G.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=ce);const n=new J(this.options);this.store=new H(this.options.resources,this.options);const o=this.services;o.logger=G,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new ie(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 se(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new le(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 Q(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=he),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=T(),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]:he;const n=k(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=T();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=he),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&&K.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=T();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=k(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=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 k(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||0===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=T();return this.options.ns?(k(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=T();k(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 J(fe());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 pe(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]:he;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new pe(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 H(this.store.data,r),i.services.resourceStore=i.store),i.translator=new Q(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 ge=pe.createInstance();ge.createInstance=pe.createInstance;ge.createInstance,ge.dir,ge.init,ge.loadResources,ge.reloadResources,ge.use,ge.changeLanguage,ge.getFixedT,ge.t,ge.exists,ge.setDefaultNamespace,ge.hasLoadedNamespace,ge.loadNamespaces,ge.loadLanguages;var me=n(60),ve=n(173),ye=n(277),be=n(349),_e=n.n(be),we=n(550),Ee=n.n(we),Se=n(551),xe=n.n(Se),ke=n(552),Te=n.n(ke),Oe=n(72),Pe=n.n(Oe),Re=n(553),Ae=n(554),Ce=n(89),De=n(12),Le=n(347),Ie=n(118),Me=function(){return l.a.createElement("div",{className:"spinnerThreeBounce"},l.a.createElement("div",{className:"bounce bounce1"}),l.a.createElement("div",{className:"bounce bounce2"}),l.a.createElement("div",{className:"bounce bounce3"}))},je=l.a.memo(Me),Ne=n(291),Fe=n.n(Ne),Ue=n(222),Be=n.n(Ue),qe=n(201),Ve=n.n(qe),$e=n(344),ze=n(64),Ge=n.n(ze),We=n(69),He=n(555),Ke=n.n(He),Ye=n(348),Qe=n(556),Xe=n(557),Je=n(558),Ze=n(559);var et=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)}},tt=n(560),nt=n.n(tt),rt=n(561),it=n.n(rt),ot=n(87);function at(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 st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ut(e,t,n){return t=_()(t),y()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],_()(e).constructor):t.apply(e,n))}var ct={MSEPlayer:Qe.MSEPlayer,HLSPlayer:Xe.HLSPlayer,WebRTCPlayer:Je.WebRTCPlayer,NativeiOSPlayer:Ze.NativeiOSPlayer},lt=function(){return l.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 8.467 7.753",style:{width:"24px",height:"24px"},fill:"#fff"},l.a.createElement("defs",null),l.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"}))},ft=function(e){function t(){var e;return a()(this,t),(e=ut(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.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=et(e.refreshZoom.bind(e),150),e.setRef=e.setRef.bind(e),e.state={noDvrHere:!1,shouldStartPlay:!1,scale:1,isSelected:!1,shouldChangeTracks:!1,players:[],noLive:!1,noVideo:!1,isSnapshotModalOpen:!1,snapshotDataUrl:null,snapshotNaming:void 0},e.lastTap=0,e}return E()(t,e),i()(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:"UNSAFE_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)),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:"componentDidCatch",value:function(e){e instanceof Error&&this.onHlsEvent({key:Date.now(),data:{event:"player_error",error_name:e.name,error_message:e.message}}),console.error("CATCH AN ERROR!")}},{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:"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,f=r.tracksAudio,d=r.multiStream,h=r.autoVideoTrack,g=r.newTracks,m=r.streamer_http,v=r.auth_token,y=r.returnData,b=r.ui,_=this.state.players,w=this.state.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 E="live"===e;this._video=null,y("playerLink",null);var S={name:i,currentTime:e,onMediaInfo:u,setRef:this.setRef,isSelected:c===i,handleFullScreen:this.handleFullScreen,newTracks:g,debug:o,debugTimers:a},x=this.getPlayListUrl(e,E?void 0:n,E);if(Object(De.isIOS)()&&!("MediaSource"in window)&&"webrtc"!==l)_.push(st(st({type:"NativeiOSPlayer",url:x,setNoLiveError:function(e){t.setState({noLive:e})}},S),{},{key:"ios_player_".concat(e,"_").concat(_.length+1),playerName:Ie.PLAYER_NAME.NATIVE}));else if(E&&"mse"===l)x=this.getMseUrl(),_.push(st(st({type:"MSEPlayer",url:x,onEvent:this.onHlsEvent,tracksAudio:f,multiStream:d,shouldChangeTracks:w,setNoLiveError:function(e){t.setState({noLive:e})},setNoVideoError:function(e){t.setState({noVideo:e})}},S),{},{key:"mse_player_".concat(e,"_").concat(_.length+1),playerName:Ie.PLAYER_NAME.MSE}));else if(E&&"webrtc"===l){var k="".concat(m,"/").concat(i),T=Object(p.decode)(v),O=Object.keys(T),P=Ge()(O,1),R=P[0];_.push(st(st({type:"WebRTCPlayer",url:k,onEvent:this.onHlsEvent,tracksAudio:f,multiStream:d,shouldChangeTracks:w,authTokenName:R,tokenValue:T[R]},S),{},{key:"webrtc_player_".concat(e,"_").concat(_.length+1),playerName:Ie.PLAYER_NAME.WEBRTC}))}else _.push(st(st({type:"HLSPlayer",url:x,onHlsEvent:this.onHlsEvent,autoVideoTrack:h,ottConfig:"ott"===b,setNoLiveError:function(e){t.setState({noLive:e})},setNoVideoError:function(e){t.setState({noVideo:e})}},S),{},{key:"hls_player_".concat(e,"_").concat(_.length+1),playerName:Ie.PLAYER_NAME.HLS}));y("currentPlayerName",(_=[_[_.length-1]])[0].playerName),this.setState({players:_})}}},{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(p.stringify)(c),n,u)}},{key:"_getPlayListUrl",value:function(e,t,n,r,i,o,a){var s="";return"string"==typeof i&&i.trim().length>0?s="?".concat(i):a&&(s="?token=".concat(a)),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(p.stringify)(o),i].filter((function(e){return e})).join("&"))}},{key:"handleFullScreen",value:function(){this.props.allowFullscreen}},{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,c=this.context,l=c.getCommonTelemetryFields,f=c.sendMetrics,d=l();if(u){var h="snapshot_".concat(n||t,"_").concat(e,".png"),p=s.getContext("2d"),g=u.videoWidth,m=u.videoHeight;if(s.width=g,s.height=m,p.fillRect(0,0,g,m),p.drawImage(u,0,0,g,m),a){o("fullscreen",!1),this.onShotModalOpen(!0);var v=s.toDataURL("image/png");this.setState({snapshotDataUrl:v,snapshotNaming:h})}a||(f(st({event:"image_download",event_message:"Screenshot downloaded",uts_ms:Date.now()},d)),s.toBlob((function(e){e&&Object(Ye.saveAs)(e,h)})))}else f(st({event:"screenshot_click_ignored",event_message:"Click on take snapshot without video",uts_ms:Date.now()},d))}},{key:"setSnapshotRef",value:function(e){!this.snapshotRef&&e&&(this.snapshotRef=e)}},{key:"setRef",value:function(e,t){var n=this,r=this.props,i=r.setPlayersRef,o=r.name,a=r.panzoomEnable;if(this._video&&(this._video=null),e&&(this._video=e,i(o,e,t)),a)try{this.zoomElement=Ke()(e,{maxZoom:10,minZoom:1,smoothScroll:!1,zoomDoubleClickSpeed:1,filterKey:function(){return!0},onDoubleClick:function(){return!1}}),this.zoomElement.on("transform",(function(e){n.calculatePos(e)})),window.addEventListener("resize",this.refreshZoom),this.zoomElement.smoothZoomAbs(0,0,1)}catch(e){console.error(e)}}},{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});var e=this.context,t=e.getCommonTelemetryFields,n=e.sendMetrics,r=t();n(st({event:"open_screenshot_editor_modal",event_message:"Screenshot editor modal opened",uts_ms:Date.now()},r))}},{key:"onShotModalClose",value:function(){this.setState({isSnapshotModalOpen:!1});var e=this.context,t=e.getCommonTelemetryFields,n=e.sendMetrics,r=t();n(st({event:"close_screenshot_editor_modal",event_message:"Screenshot editor modal closed",uts_ms:Date.now()},r))}},{key:"render",value:function(){var e,t,n,r,i,o,a,s,u=this,c=this.state,f=c.scale,d=c.players,h=c.noLive,p=c.isSnapshotModalOpen,g=c.snapshotDataUrl,v=c.snapshotNaming,y=this.onShotModalClose,b=this.props,_=b.currentTime,w=b.name,E=b.t,S=b.returnData,x=b.muted,k=b.paused,T=b.newTracks,O=b.playback_speed,P=b.ui,R=b.features,A=h||this.props.noDVR&&"live"!==_||this.state.noDvrHere&&!this.props.noDVR&&"live"!==_,C=Boolean(null==R?void 0:R.isScreenshotEditingEnabled)||void 0===(null==R?void 0:R.isScreenshotEditingEnabled),D=d.map((function(e){var t=ct[e.type];return l.a.createElement(t,Be()({},e,{muted:x,paused:k,newTracks:T,speed:O,returnData:S}))})),L=l.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!==f?l.a.createElement("button",{type:"button","aria-label":"resetZoom",className:"resetZoomBtn",onMouseDown:this.resetZoom,onTouchEnd:this.resetZoom},l.a.createElement(lt,null)):null,l.a.createElement("div",{className:"no-live-wrapper","data-cy":"playErrorWraper",style:{opacity:"".concat(A?"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(m()(s),[l.a.createElement("p",{key:"forbidden_".concat(w)},E("dvr_mse_forbidden"))]):(n&&(s=[].concat(m()(s),[l.a.createElement("p",{key:"caution_networkError_".concat(w)},E("dvr_mse_network_error"))])),h&&(s=[].concat(m()(s),[l.a.createElement("p",{key:"caution_noLive_".concat(w)},E("dvr_mse_no_live_stream"))])),r&&"ott"!==P&&"live"!==_&&(s=[].concat(m()(s),[l.a.createElement("p",{key:"caution_currentTime_".concat(w)},E("dvr_mse_no_dvr"))])),!o||r||a||(s=[].concat(m()(s),[l.a.createElement("p",{key:"caution_noDvrHere_".concat(w)},E("dvr_mse_no_dvr_recording_here"))])),a&&(s=[].concat(m()(s),[l.a.createElement("p",{key:"caution_noVideo_".concat(w)},E("dvr_error_video_stream"))]))),s)),D,l.a.createElement("canvas",{className:"dvr-player-snapshot",style:{display:"none"},ref:this.setSnapshotRef}));return l.a.createElement(l.a.Fragment,null,"function"==typeof this.props.customItemWrapper?this.props.customItemWrapper(L,this.props.item,this.props.index):L,C&&p&&l.a.createElement(nt.a,{title:E("image_editor"),isOpen:p,onClose:y},g&&l.a.createElement(it.a,{imageName:v,imageUrl:g})))}}])}(c.Component);ft.propTypes={returnData:x.a.func.isRequired,playback_speed:x.a.number,currentTime:x.a.oneOfType([x.a.number,x.a.string]),muted:x.a.bool.isRequired,volume:x.a.number,streamer_http:x.a.string.isRequired,name:x.a.string.isRequired,selected:x.a.string,auth_token:x.a.string,paused:x.a.bool,debug:x.a.bool,debugTimers:x.a.bool,tracks:x.a.string,onPlayingChangeHandler:x.a.func,onProgress:x.a.func,onSpeedChanged:x.a.func,changeUTC:x.a.func,hls:x.a.bool,noDVR:x.a.bool,networkError:x.a.bool,panzoomEnable:x.a.bool,playerType:x.a.string,index:x.a.number,item:x.a.shape({}),multiStream:x.a.bool,fastSeekingTo:x.a.string,from:x.a.number,onEvent:x.a.func,setPlayersRef:x.a.func,fixedRange:x.a.bool,ui:x.a.oneOf(["ott","nvr"]),startingUTC:x.a.number,allowFullscreen:x.a.bool,autoVideoTrack:x.a.bool,streamIsLive:x.a.bool,browser:x.a.string,playSegmentDuration:x.a.number,newTracks:x.a.array,basicApiConfig:x.a.shape({token:x.a.string,tokenName:x.a.string,auth_token:x.a.string,streamer_http:x.a.string}),features:x.a.shape({isScreenshotEditingEnabled:x.a.bool})},ft.defaultProps={allowFullscreen:!0,playback_speed:1},ft.contextType=ot.TelemetryContext;var dt=Object(We.withTranslation)()(ft),ht=function(){return l.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"},l.a.createElement("circle",{cx:"30",cy:"30",r:"30",fill:"gray",opacity:"0.7"}),l.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"}),l.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"}))},pt=n(71),gt=n.n(pt),mt=gt()({displayName:"LtBtn",className:"LtBtn",render:function(){return l.a.createElement("i",{style:{width:"14px",height:"14px"}},l.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"},l.a.createElement("path",{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M9 2L4 7l5 5h0"})))}}),vt=l.a.memo(mt),yt=gt()({displayName:"GtBtn",className:"GtBtn",render:function(){return l.a.createElement("i",{style:{width:"14px",height:"14px"}},l.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"},l.a.createElement("path",{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M5 2l5 5-5 5h0"})))}}),bt=l.a.memo(yt);function _t(e,t,n){return t=_()(t),y()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],_()(e).constructor):t.apply(e,n))}var wt=function(e){function t(){return a()(this,t),_t(this,t,arguments)}return E()(t,e),i()(t,[{key:"render",value:function(){var e=this.props.frameSeek;return l.a.createElement("div",{className:"seekContainer"},l.a.createElement("div",{className:"buttonGroup"},l.a.createElement("button",{"data-cy":"btnFiveFramesBack",onTouchEnd:function(t){t.stopPropagation(),e(-5)},onMouseUp:function(t){t.stopPropagation(),e(-5)}},l.a.createElement(vt,null),l.a.createElement("b",null,"5")),l.a.createElement("button",{"data-cy":"btnFrameBack",onTouchEnd:function(t){t.stopPropagation(),e(-1)},onMouseUp:function(t){t.stopPropagation(),e(-1)}},l.a.createElement(vt,null)),l.a.createElement("div",null),l.a.createElement("button",{"data-cy":"btnFrameForward",onTouchEnd:function(t){t.stopPropagation(),e(1)},onMouseUp:function(t){t.stopPropagation(),e(1)}},l.a.createElement(bt,null)),l.a.createElement("button",{"data-cy":"btnFiveFramesForward",onTouchEnd:function(t){t.stopPropagation(),e(5)},onMouseUp:function(t){t.stopPropagation(),e(5)}},l.a.createElement("b",null,"5"),l.a.createElement(bt,null))))}}])}(c.Component);wt.propTypes={frameSeek:x.a.func.isRequired};var Et=wt,St=n(294),xt=n(562),kt=n(563),Tt=function(){return l.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"},l.a.createElement("circle",{cx:"30",cy:"30",r:"30",fill:"gray",opacity:"0.7"}),l.a.createElement("path",{d:"M22 15h6v30h-6zM32 15h6v30h-6z",fill:"#fff"}))},Ot=(n(1147),function(e){var t=e.direction,n=e.seek,r=e.isAnimating;return l.a.createElement("div",{className:"arrow-effect ".concat(t," ").concat(r?"animate":"")},l.a.createElement("div",{className:"arrows"},l.a.createElement("div",{className:"arrow-triangle"}),l.a.createElement("div",{className:"arrow-triangle"}),l.a.createElement("div",{className:"arrow-triangle"})),l.a.createElement("div",{className:"time-label"},"left"===t?"-".concat(n," сек"):"+".concat(n," сек")))}),Pt=n(350),Rt=n.n(Pt);function At(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 Ct(e,t,n){return t=_()(t),y()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],_()(e).constructor):t.apply(e,n))}var Dt=function(e){function t(){var e;return a()(this,t),e=Ct(this,t),u()(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.onEventCb=e.onEventCb.bind(e),e.frameSeek=e.frameSeek.bind(e),e.handleTogglePlayer=e.handleTogglePlayer.bind(e),e.callIfMouseStill=Rt()(e.handleChildClick),e.callIfTouchStill=Rt()(e.handleTogglePlayer),e.state={rows:0,cols:0,autoformat:!1,streamsNum:0,playersRefs:{},showArrow:!1,arrowDirection:""},e.autoPlayChecked=!1,e.pauseTimeoutId=void 0,e}return E()(t,e),i()(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:"UNSAFE_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,n){var r=this.state.playersRefs;r[e]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?At(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({ref:t},n&&{mseInstance:n}),this.setState({playersRefs:r})}},{key:"frameSeek",value:function(e){var t=this.state.playersRefs;Object.keys(t).forEach((function(n){t[n].ref.currentTime+=e/30}))}},{key:"onEventCb",value:function(e){var t=this.props,n=t.onEvent,r=t.name;n&&n(r,e)}},{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,f=i.autoPlay,d=i.token,h=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,P=i.autoVideoTrack,R=i.streamIsLive,A=i.browser,C=i.isPlaying,D=i.logoProperties,L=i.basicApiConfig,I=i.playSegmentDurationForPlayers,M=i.dvr_enabled,j=i.newTracks,N=i.ui,F=i.from,U=i.selected,B=i.advert,q=i.showSelectedOnly,V=i.features,$=v.streams[0],z={name:$.subName,address:$.address||"",auth_token:$.auth_token||"",hidden:!E&&!y,hasPreview:!1,basicApiConfig:L},G=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.a.createElement(ht,null);return l.a.createElement("div",{"data-cy":"clickToPlay",className:t,onClick:e.props.onClickToPlay},n)},W=function(){return B.length>0&&l.a.createElement(kt.Advert,{advert:B,returnData:o,onEvent:k})};if(E)return"ott"===N&&void 0===F?l.a.createElement(c.Fragment,null,W(),G("clickToPlay zIndexMax"),l.a.createElement(St.Preview,z)):"ott"===N?l.a.createElement(c.Fragment,null,W(),G("clickToRestart",l.a.createElement("span",{className:"icon-one"})),l.a.createElement(St.Preview,Be()({},z,{from:F}))):G("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 c,N,B=U===t.subName;if(!t.subName)return null;if(0===Object.keys(t).length){var $="".concat(t.subName,"_empty_player_").concat(i);return l.a.createElement("div",{className:"PlayerInstance",style:{width:"".concat(100/r,"%"),maxHeight:"".concat(100/n,"%"),order:"".concat(i)},onDoubleClick:O,key:$},"function"==typeof e.props.customItemWrapper?e.props.customItemWrapper(null,null,i):null)}var z="".concat(t.subName,"_player_").concat(i),G="".concat(t.subName,"_DvrPlayerWrapper_").concat(i),W=Object($e.a)(null==b?void 0:b[t.subName]),K=!W&&(null===(c=e.props.playingTimeForPlayers)||void 0===c?void 0:c[t.subName]),Y="live"===(null===(N=e.props.playingTimeForPlayers)||void 0===N?void 0:N[t.subName]),Q="ott"===e.props.ui,X=K||Y||Q?e.props.playingTimeForPlayers[t.subName]:"stop",J=!W||"string"==typeof b[t.subName]||!M;return l.a.createElement("div",{className:"PlayerInstance".concat(B?" visible":"").concat(q&&!B?" hidden":"").concat(q&&B?" 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:z},v.renderTitles&&t.renderTitle&&l.a.createElement("div",{className:"CameraName"},B&&l.a.createElement("span",null,"• "),t.title||t.subName),(!C||E)&&!f&&l.a.createElement(St.Preview,{name:t.subName,address:t.address||"",auth_token:t.auth_token||"",hidden:!E&&!y,hasPreview:!1,basicApiConfig:L,from:F}),Object.keys(D).length>0&&D[t.subName]&&l.a.createElement(xt.Logo,{name:t.subName,logoProperties:D,basicApiConfig:L}),o&&l.a.createElement(dt,Be()({},H,{key:G,name:t.subName||u,main:t.main,item:t,index:i,noDvr:J,networkError:"string"==typeof b[t.subName],noAuth:T[t.subName]||!1,streamer_http:t.address||e.props.streamer_http,currentTime:X,playSegmentDuration:I[t.subName],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:R[t.subName],browser:A,returnData:o,playback_speed:a,autoPlay:f,token:d,muted:h,volume:S,debug:g,paused:p,debugTimers:m,selected:e.props.selected,playerType:s,playing:e.props.playingStarted,basicApiConfig:L,isStalling:y,onMediaInfo:_,newTracks:j,panzoomEnable:e.props.panzoom,customItemWrapper:w,onEvent:k,getStats:x,autoVideoTrack:P,features:V,timeline:e.props.timeline,canShowTimeline:e.props.canShowTimeline})))}))}},{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,t=this.props,n=t.returnData,r=t.paused,i=t.live,o=t.seekFrameEnabled,a=this.state.playersRefs;clearTimeout(this.pauseTimeoutId),this.pauseTimeoutId=setTimeout(Fe()(Ve.a.mark((function t(){var s,u;return Ve.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r){t.next=1;break}Object.values(a).forEach((function(e){"mseInstance"in e?e.mseInstance.pause():e.ref.pause()})),n("paused",!r),i||n("seekFrameEnabled",!r),e.onEventCb({key:Date.now(),data:{event:"play_pause"}}),t.next=4;break;case 1:return t.prev=1,s=Object.values(a).filter((function(e){return!("mseInstance"in e)})).map((function(e){return e.ref.play()})),Object.values(a).forEach((function(e){if("mseInstance"in e)try{e.mseInstance.play()}catch(e){console.warn("mseInstance.play() error",e)}})),t.next=2,Promise.allSettled(s);case 2:n("paused",!r),o||i||n("seekFrameEnabled",!0),e.onEventCb({key:Date.now(),data:{event:"play_resume"}}),t.next=4;break;case 3:t.prev=3,u=t.catch(1),console.error(u);case 4:case"end":return t.stop()}}),t,null,[[1,3]])}))),200)}},{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(){this.props.paused?this.showControl("stop"):this.showControl("play"),this.handlePause()}},{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,f=s.countSeek,d=s.showPauseButton,h=s.showPlayButton,p=s.isAnimating,g="webrtc"===r&&"live"===i;return l.a.createElement("div",{className:"playersContainer".concat(n?"":" large").concat("ott"===o?" ott":""),style:{zIndex:h&&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&&l.a.createElement(Et,{frameSeek:this.frameSeek}),this.packPlayers(),this.props.canShowTimeline&&this.props.timeline(this.handlePause.bind(this)),d&&l.a.createElement(Tt,null),h&&l.a.createElement(ht,null),u&&l.a.createElement(Ot,{direction:c,seek:f,isAnimating:p}))}}])}(c.Component);Dt.propTypes={returnData:x.a.func.isRequired,playback_speed:x.a.number,playerType:x.a.string,playingTimeForPlayers:x.a.any,debug:x.a.bool,debugTimers:x.a.bool,autoPlay:x.a.bool,muted:x.a.bool,name:x.a.string,isStalling:x.a.bool,auth_token:x.a.any,streamer_http:x.a.string,paused:x.a.bool,allRanges:x.a.any,noAuth:x.a.any,selected:x.a.string,streamingChannels:x.a.shape({cols:x.a.number,rows:x.a.number,streams:x.a.arrayOf(x.a.any)}),onMediaInfo:x.a.func,panzoom:x.a.bool,customItemWrapper:x.a.func,showPlayButton:x.a.bool,fastSeekingTo:x.a.string,from:x.a.number,volume:x.a.number,onEvent:x.a.func,getStats:x.a.func,seekFrameEnabled:x.a.bool,fixedRange:x.a.bool,ui:x.a.oneOf(["ott","nvr"]),onDoubleClick:x.a.func,newTracks:x.a.array,autoVideoTrack:x.a.bool,isPlaying:x.a.bool,basicApiConfig:x.a.shape({token:x.a.string,tokenName:x.a.string,auth_token:x.a.string,streamer_http:x.a.string}),streamIsLive:x.a.shape({}),logoProperties:x.a.any,browser:x.a.string,playSegmentDurationForPlayers:x.a.any,dvr_enabled:x.a.bool,advert:x.a.array,showSelectedOnly:x.a.bool,fastSeek:x.a.func,onSeek:x.a.func,playerProgressTime:x.a.oneOfType([x.a.string,x.a.number]),live:x.a.bool,token:x.a.string,features:x.a.shape({isScreenshotEditingEnabled:x.a.bool})},Dt.defaultProps={playerType:"mse",showPlayButton:!1};var Lt=l.a.memo(Dt),It=(n(1149),n(1150),gt()({displayName:"DvrTimeMarkers",className:"DvrTimeMarkers",propTypes:{duration:x.a.number.isRequired,from:x.a.number,localTime:x.a.bool,width:x.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(De.pad2)(i),":").concat(Object(De.pad2)(o),":").concat(Object(De.pad2)(a))}var s=function(){return"".concat(Object(De.pad2)(i),":").concat(Object(De.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(De.pad2)(i),"-").concat(Object(De.pad2)(t),"-").concat(Object(De.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 d()(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 l.a.createElement("span",{key:e.utc,style:{left:o},className:"".concat(e.label.length>5?"day":"")},l.a.createElement("span",{className:"marker".concat(e.label.length>5?" day":"")}),this.label(e.utc,i.time))}.bind(this))},render:function(){return l.a.createElement("div",{className:"time-markers","data-cy":"time-markers"},this.timeMarkers())}})),Mt=l.a.memo(It),jt=n(564),Nt=n(565),Ft=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}),[])},Ut={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=Ft(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:Ft};function Bt(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 qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bt(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vt(e,t,n){return t=_()(t),y()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],_()(e).constructor):t.apply(e,n))}var $t=function(e){function t(){var e;return a()(this,t),(e=Vt(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 E()(t,e),i()(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:c}),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}),i("observableRanges",{start:Math.round(u),end:r.end}),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=qt(qt({},r),i)})),n){var i=this.afterResize(this.state);r=qt(qt({},r),i)}this.props.multiTimeline||r.renderRanges&&r.renderRanges[this.props.selected]&&(r.renderRanges=u()({},this.props.selected,r.renderRanges[this.props.selected]));var o=this.utc_change(this.props.now,this.state);r=qt(qt({},r),o),this.setState(r)}},{key:"setPercent",value:function(e,t){this.setState(u()({},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}),d()(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=m()(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]=qt(qt(qt({},o[r]),u),c),i=qt(qt({},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=qt(qt(qt(qt({},i),f),d),l)}return i}}},{key:"refreshMotion",value:function(e,t){return e?{motion_data:e,motion:Ut.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:Ut.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=Object(De.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 l.a.createElement("button",{onMouseDown:t,onTouchStart:t,onMouseUp:n,onTouchEnd:n,type:"button",className:r},l.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=Ge()(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=Ge()(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,f=o.renderRanges,d=o.motion,h=o.visible_offset,p=o.play_progress;return l.a.createElement("div",{ref:this.setWindowRef,className:"timeline__timelineView","data-cy":"timelineView",onDoubleClick:i},c&&l.a.createElement("div",{className:"markers_wrapper",draggable:!1},l.a.createElement(Mt,{ref:this.setTimeMarkersRef,from:a,duration:s,width:u||0,localTime:n})),c&&l.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&&l.a.createElement(jt.DvrNowMarker,{now:p,width:c}),l.a.createElement(Nt.DvrRanges,{allRangeInfo:f,motion:d,debug:r,left:h,width:c,onUtcSeek:this.onMotionSeek,onHandleClick:this.onMouseClick})))}}])}(c.Component);$t.propTypes={utc:x.a.any,onRangesRequested:x.a.func,onSeek:x.a.func,onCalendarToggle:x.a.func,onCallThumbnail:x.a.func,thumbnails_enabled:x.a.bool,locale:x.a.oneOf(["ru","en"]),from:x.a.number,now:x.a.oneOfType([x.a.string,x.a.number]),range_info:x.a.object,zoom:x.a.number,debug:x.a.bool,localTime:x.a.bool,is_mobile:x.a.bool,http_stream_url:x.a.string,auth_token:x.a.string,currentTime:x.a.any,playerUtc:x.a.number,returnData:x.a.func,observableRanges:x.a.shape({start:x.a.number,end:x.a.number}),allRangeInfo:x.a.any,multiTimeline:x.a.bool,selected:x.a.string,downloadModal:x.a.bool,toggleDownload:x.a.func,returnDomSizes:x.a.func,returnVisual:x.a.func,fixedRange:x.a.bool,lockViewLeft:x.a.number,lockViewRight:x.a.number,pointSelectTime:x.a.func,selectionTimeline:x.a.bool,zoomSensivity:x.a.number},$t.defaultProps={};var zt=$t;function Gt(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 Wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ht(e,t,n){return t=_()(t),y()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],_()(e).constructor):t.apply(e,n))}var Kt=function(e){function t(){var e;return a()(this,t),(e=Ht(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 E()(t,e),i()(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(De.substitute)("{year}/{month}/{day}/{hours}/{minutes}/{seconds}",{year:t.getUTCFullYear(),month:Object(De.pad2)(t.getUTCMonth()+1),day:Object(De.pad2)(t.getUTCDate()),hours:Object(De.pad2)(t.getUTCHours()),minutes:Object(De.pad2)(t.getUTCMinutes()),seconds:Object(De.pad2)(t.getUTCSeconds())}),this.path}},{key:"humanify",value:function(e){var t=this.props.localTime;return"".concat(Object(De.humanDate)(e,t)," ").concat(Object(De.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(De.substitute)("{streamUrl}/{path}{postfix}{authToken}",{streamUrl:i,path:this.utcToPath(e),postfix:"video"===t&&!1===o?"-preview.mp4":".jpg",authToken:s||"?".concat(Object(p.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,f=t.utc,d=t.position,h=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:d,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=Wt(Wt({},v),{},{left:-p.width/2})),l.a.createElement("div",{style:a?{left:"8px",right:"8px",bottom:"200px"}:{left:"".concat(d||0,"px"),bottom:"".concat(o?180:100,"px")}||v,className:"timeline__thumbnail".concat(a?" isMobile":"")},l.a.createElement("div",{style:a?{width:"100%"}:y},"video"===h&&!1===i&&l.a.createElement("video",{className:"timeline__thumbnail__image",style:p,id:"thumbnailVideo",src:this.buildSourceUrl(f,h),playsInline:!0,autoPlay:!0,loop:!0,controls:!1,muted:!0},l.a.createElement("track",{kind:"captions"})),"image"===h||!0===i&&l.a.createElement("img",{className:"timeline__thumbnail__image",style:{height:u},src:this.buildSourceUrl(f,h),alt:"timeline thumbnail"}),"canvas"===h&&l.a.createElement("canvas",{className:"timeline__thumbnail__image",ref:this.setThumbnailCapturerRef,style:p}),"canvas"===h&&l.a.createElement("video",{ref:this.setVideoThumbnailRef,onLoadedData:this.captureImageFromVideo,className:"timeline__thumbnail__hidden",style:p,src:this.buildSourceUrl(f,"video"),playsInline:!0,autoPlay:!0,loop:!0,controls:!1,muted:!0},l.a.createElement("track",{kind:"captions"})),l.a.createElement("span",{className:"timeline__thumbnail__caption"},this.humanify(f))))}}])}(c.Component);Kt.propTypes={thumbnail:x.a.shape({type:x.a.oneOf(["image","video","canvas"]).isRequired,utc:x.a.number.isRequired,position:x.a.oneOfType([x.a.number,x.a.string]).isRequired,pageY:x.a.number,timelineLeft:x.a.number,visibleWidth:x.a.number.isRequired}),media:x.a.shape({width:x.a.number,height:x.a.number}).isRequired,streamUrl:x.a.string.isRequired,authToken:x.a.string,thumbnailsEnabled:x.a.bool,frameSeek:x.a.bool,localTime:x.a.bool,isSelector:x.a.bool,selectionTimeline:x.a.bool,isMobile:x.a.bool,basicApiConfig:x.a.shape({token:x.a.string,tokenName:x.a.string,auth_token:x.a.string,streamer_http:x.a.string})};var Yt=Kt,Qt=gt()({displayName:"DvrSnapshotControl",className:"DvrSnapshotControl",propTypes:{onTakeSnapshotClick:x.a.func.isRequired},render:function(){return l.a.createElement("button",{className:"dvrp-button",onClick:this.props.onTakeSnapshotClick,title:this.props.t("dvr_take_screenshot"),"data-cy":"snapshot-button"},l.a.createElement("span",{className:"icon-screen"}))}}),Xt=Object(c.memo)(Object(We.withTranslation)()(Qt)),Jt=n(566),Zt=n.n(Jt),en=(n(1155),function(e){var t=e.isMuted,n=e.onChangeMuted,r=e.volume,i=e.onChangeVolume,o=e.isMobile,a=Object(c.useRef)(null),s=Object(c.useRef)(null),u=r?r/100*40:0;t&&(u=0);var f=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)},d=t||0===r;return l.a.createElement("div",{className:"dvrp-volume-control","data-cy":"dvrp-volume-control"},l.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"},d?l.a.createElement("span",{className:"icon-volume_off"}):l.a.createElement("span",{className:"icon-volume"})),!o&&l.a.createElement("div",{className:"dvrp-volume-panel".concat(d?"":" visible"),"data-cy":"dvrp-volume-panel",ref:a,onPointerDown:function(e){0===e.button&&(s.current=e.pointerId,a.current.setPointerCapture(e.pointerId),f(e))},onPointerMove:function(e){null!==s.current&&f(e)},onPointerUp:function(e){null!==s.current&&0===e.button&&(a.current.releasePointerCapture(s.current),s.current=null)}},l.a.createElement("div",{className:"dvrp-volume-slider"},l.a.createElement("div",{className:"dvrp-volume-slider-handle",style:{left:u}}))))});en.propTypes={isMuted:x.a.bool.isRequired,onChangeMuted:x.a.func.isRequired,volume:x.a.number.isRequired,onChangeVolume:x.a.func.isRequired};var tn=Object(c.memo)(en),nn=gt()({displayName:"FocusBtn",className:"FocusBtn",render:function(){return l.a.createElement("i",{style:{width:"30px",height:"30px"}},l.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"}},l.a.createElement("g",null,l.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"}))))}}),rn=l.a.memo(nn),on=gt()({displayName:"MinusBtn",className:"MinusBtn",render:function(){return l.a.createElement("i",{style:{width:"14px",height:"14px"}},l.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"},l.a.createElement("path",{fill:"#fff",d:"M1 6h11v3H1z"})))}}),an=l.a.memo(on),sn=gt()({displayName:"PlusBtn",className:"PlusBtn",render:function(){return l.a.createElement("i",{style:{width:"14px",height:"14px"}},l.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"},l.a.createElement("path",{fill:"#fff",d:"M1 6h11v3H1z"}),l.a.createElement("path",{fill:"#fff",d:"M5 2h3v11H5z"})))}}),un=l.a.memo(sn),cn=gt()({displayName:"SpeedBtn",className:"SpeedBtn",render:function(){var e={width:"14px",height:"14px",transform:"".concat(this.props.rotate?"rotate(180deg)":"")};return l.a.createElement("i",{style:e},l.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"},l.a.createElement("g",null,l.a.createElement("path",{d:"M 1,1 6,6 1,11"}),l.a.createElement("path",{d:"m 8,1 5,5 -5,5"}))))}}),ln=l.a.memo(cn),fn=gt()({displayName:"SpeedBtnLeft",className:"SpeedBtnLeft",render:function(){return l.a.createElement("i",{style:{width:"14px",height:"14px"}},l.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 3.704 3.704"},l.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)"})))}}),dn=l.a.memo(fn),hn=n(223),pn=(n(1160),n(177));function gn(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 mn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gn(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vn(e,t,n){return t=_()(t),y()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],_()(e).constructor):t.apply(e,n))}var yn=["mp4","ts"],bn=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):""},_n=function(e){function t(e){var n;return a()(this,t),(n=vn(this,t,[e])).form_url=n.form_url.bind(n),n.humanTime=n.humanTime.bind(n),n.handleChange=n.handleChange.bind(n),n.handleSendTime=n.handleSendTime.bind(n),n.linkToEmbed=n.linkToEmbed.bind(n),n.showPopup=n.showPopup.bind(n),n.handleClickOpenDownloadMenu=n.handleClickOpenDownloadMenu.bind(n),n.handleClickOpenDownloadOptionsMenu=n.handleClickOpenDownloadOptionsMenu.bind(n),n.handleClickBackToDropdownMenu=n.handleClickBackToDropdownMenu.bind(n),n.handleClickShareLink=n.handleClickShareLink.bind(n),n.handleClickCopyEmbedURL=n.handleClickCopyEmbedURL.bind(n),n.renderShareLinks=n.renderShareLinks.bind(n),n.renderDownloadDropdownContent=n.renderDownloadDropdownContent.bind(n),n.handleDownload=n.handleDownload.bind(n),n.getDownloadFileName=n.getDownloadFileName.bind(n),n.initialDownloadState={isDownloadOpen:!1,selectedVideoTrackToDownload:n.props.activeVideoTrack,selectedAudioTrackToDownload:n.props.activeAudioTrack,selectedFormatToDownload:yn[0]},n.state=mn({timeStart:{},timeStop:{},inputStart:null,inputStop:null,isMenuOpened:!1,popupEnabled:!1,popupText:"",isFileLoading:!1},n.initialDownloadState),n}return E()(t,e),i()(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.value,n=e.target.dataset,r=n.name,i=n.type;t=Number.parseInt(t,10);var o=new Date;switch(o.setTime(1e3*this.props[i]),t<0&&(t=0),r){case"h":t>23&&(t=23),o.setHours(t);break;case"m":t>59&&(t=59),o.setMinutes(t);break;case"s":t>59&&(t=59),o.setSeconds(t)}var a=Math.round(o.getTime()/1e3);"start"===i?this.setState({inputStart:a,timeStart:this.humanTime(a)}):this.setState({inputStop:a,timeStop:this.humanTime(a)})}},{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]:"mp4",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));return Object.keys(c).length&&Object.keys(c).forEach((function(e){p.searchParams.append([e],c[e])})),e&&t&&p.searchParams.append("filter.tracks",t),p}}},{key:"getDownloadFileName",value:function(){var e=this.props,t=e.name,n=e.form,r=e.streamInfo[t];if(n){var i=n.state,o=i.left_selected,a=i.right_selected,s=this.state.selectedFormatToDownload,u=a-o<=0?5:a-o;return"".concat(r.title||r.name,"_").concat(Math.round(o),"_").concat(Math.round(u),".").concat(s)}}},{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:"handleClickOpenDownloadMenu",value:function(){this.context.sendMetrics(mn(mn({},this.context.getCommonTelemetryFields()),pn.selectionControlTelemetry.openDownloadDropdown())),this.setState((function(e){return{isMenuOpened:!e.isMenuOpened}}))}},{key:"handleClickOpenDownloadOptionsMenu",value:function(){this.context.sendMetrics(mn(mn({},this.context.getCommonTelemetryFields()),pn.selectionControlTelemetry.openDownloadOptions())),this.setState({isDownloadOpen:!0})}},{key:"handleClickBackToDropdownMenu",value:function(){this.context.sendMetrics(mn(mn({},this.context.getCommonTelemetryFields()),pn.selectionControlTelemetry.clickBackToDownloadDropdown())),this.setState(mn({},this.initialDownloadState))}},{key:"handleClickShareLink",value:function(){this.context.sendMetrics(mn(mn({},this.context.getCommonTelemetryFields()),pn.selectionControlTelemetry.clickShareLink())),this.showPopup()}},{key:"handleClickCopyEmbedURL",value:function(){this.context.sendMetrics(mn(mn({},this.context.getCommonTelemetryFields()),pn.selectionControlTelemetry.clickCopyEmbedURL())),this.showPopup()}},{key:"handleDownload",value:(n=Fe()(Ve.a.mark((function e(t,n){var r,i,o,a,s,u=this;return Ve.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({isFileLoading:!0}),r=new URL(t),e.next=1,fetch(r.href,{method:"GET",headers:{"Content-Type":"application/json"}}).then((function(e){if(!e.ok)throw u.setState({isFileLoading:!1}),Error(e.statusText);return e.blob()})).then((function(e){return Object(De.downloadFile)(e,n)})).then((function(){u.setState({isFileLoading:!1})}));case 1:i=this.state,o=i.selectedFormatToDownload,a=i.selectedVideoTrackToDownload,s=i.selectedAudioTrackToDownload,this.context.sendMetrics(mn(mn({},this.context.getCommonTelemetryFields()),pn.selectionControlTelemetry.clickDownload({format:o,videoQuality:a,audioTrack:s}))),this.setState(mn({},this.initialDownloadState));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"renderShareLinks",value:function(){var e=this,t=this.props,n=t.downloadOptions,r=t.start,i=t.stop,o=t.t;return l.a.createElement(l.a.Fragment,null,l.a.createElement(hn.CopyToClipboard,{onCopy:this.handleClickShareLink,text:this.form_url()},l.a.createElement("div",{className:"item"},l.a.createElement("span",{className:"smicon"},l.a.createElement("span",{className:"icon-share_player"})),l.a.createElement("span",{className:"text"},o("dvr_share_selected")))),l.a.createElement(hn.CopyToClipboard,{onCopy:this.handleClickCopyEmbedURL,text:this.linkToEmbed()},l.a.createElement("div",{className:"item"},l.a.createElement("span",{className:"smicon"},l.a.createElement("span",{className:"icon-copy_embed"})),l.a.createElement("span",{className:"text"},o("dvr_copy_embed_url")))),n&&n.map((function(t){return l.a.createElement("div",{className:"item",onClick:function(){return t.callback({url:e.form_url(),duration:i-r})},key:t.title},l.a.createElement("span",{className:"smicon"},l.a.createElement("span",{className:"icon-timelapse"})),l.a.createElement("span",{className:"text"},t.title))})))}},{key:"renderDownloadDropdownContent",value:function(){var e=this,t=this.props,n=t.t,r=t.tracksAudio,i=t.tracksVideo,o=this.state,a=o.selectedAudioTrackToDownload,s=o.selectedVideoTrackToDownload,u=o.selectedFormatToDownload,c=o.isDownloadOpen,f=o.isFileLoading,d=Object($e.a)(i)||Object($e.a)(r)?"":"".concat(bn(s,!1)).concat(bn(a,!0)),h=this.form_url(!0,d,u);if(c){var p=this.getDownloadFileName();return l.a.createElement(l.a.Fragment,null,l.a.createElement("button",{type:"button",className:"item",onClick:this.handleClickBackToDropdownMenu,"data-cy":"back"},l.a.createElement("span",{className:"ddicon downloadOptions_icon"},l.a.createElement("span",{className:"icon-date_two_player"})),n("dvr_back")),!Object($e.a)(i)&&l.a.createElement("div",{className:"downloadOptions"},l.a.createElement("span",{className:"downloadOptions_type"},"".concat(n("dvr_video_quality"),":")),i.map((function(t){return l.a.createElement("button",{key:t.track_id,type:"button",className:"item".concat(s===t.track_id?" active":""),onClick:function(){return e.setState({selectedVideoTrackToDownload:t.track_id})}},null==t?void 0:t.text)}))),!Object($e.a)(r)&&l.a.createElement("div",{className:"downloadOptions"},l.a.createElement("span",{className:"downloadOptions_type"},"".concat(n("dvr_audio_track"),":")),r.map((function(t){return l.a.createElement("button",{key:t.track_id,type:"button",className:"item".concat(a===t.track_id?" active":""),onClick:function(){return e.state({selectedAudioTrackToDownload:t.track_id})}},null==t?void 0:t.text)}))),l.a.createElement("div",{className:"downloadOptions"},l.a.createElement("span",{className:"downloadOptions_type"},"".concat(n("dvr_format"),":")),yn.map((function(t){return l.a.createElement("button",{key:t,type:"button",className:"item".concat(u===t?" active":""),onClick:function(){return e.setState({selectedFormatToDownload:t})}},"".concat(t))}))),l.a.createElement("button",{type:"button",className:"item",onClick:function(){return e.handleDownload(h,p)},"data-cy":"trigger-download-link",title:"trigger-download-link",disabled:f},l.a.createElement("span",{className:"smicon downloadOptions_icon"},l.a.createElement("span",{className:"icon-down"})),n("dvr_dropdown_download")))}return l.a.createElement(l.a.Fragment,null,l.a.createElement("button",{type:"button",className:"item",onClick:this.handleClickOpenDownloadOptionsMenu,"data-cy":"open-download"},l.a.createElement("span",{className:"smicon"},l.a.createElement("span",{className:"icon-down"})),n("dvr_dropdown_download")),this.renderShareLinks())}},{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.t,f=document.getElementById("forClearout"),d=document.getElementById("forClearoutTimeline");return l.a.createElement("div",{className:"control"},o&&Object(me.createPortal)(l.a.createElement("div",{className:"popup".concat(o?" enabled":"")},a),f),l.a.createElement("div",{className:"download-text"},l.a.createElement("button",{className:"bigRoundButton",onClick:u,type:"button","aria-label":c("dvr_close"),title:c("dvr_close")},l.a.createElement("span",{className:"icon-close"})),l.a.createElement("div",{className:"verticalLine"}),l.a.createElement("div",{className:"inputWrapper"},l.a.createElement("div",{className:"inputBlock"},l.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"})),":",l.a.createElement("div",{className:"inputBlock"},l.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"})),":",l.a.createElement("div",{className:"inputBlock"},l.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"}))),l.a.createElement("span",{className:"separator"},"—"),l.a.createElement("div",{className:"inputWrapper"},l.a.createElement("div",{className:"inputBlock"},l.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"})),":",l.a.createElement("div",{className:"inputBlock"},l.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})),":",l.a.createElement("div",{className:"inputBlock"},l.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"}))),l.a.createElement("div",{className:"verticalLine"}),l.a.createElement("button",{className:"bigRoundButton green",onClick:this.handleClickOpenDownloadMenu,type:"button","aria-label":c("dvr_export_menu"),title:c("dvr_export_menu"),"data-cy":"open-download-menu"},l.a.createElement("span",{className:"icon-export_player"})),i&&Object(me.createPortal)(l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"clearDropdown",onClick:function(){return e.setState({isMenuOpened:!1,isDownloadOpen:!1})}}),l.a.createElement("div",{className:"dropDown".concat(i?" visible":""," downloadDropdown"),"data-cy":"download-dropdown-menu"},l.a.createElement("div",{className:"firstRow visible downloadDropdownContent"},this.renderDownloadDropdownContent()))),f)),i&&Object(me.createPortal)(l.a.createElement("div",{className:"clearDropdown",onClick:function(){return e.setState({isMenuOpened:!1,isDownloadOpen:!1})}}),d))}}]);var n}(l.a.Component);_n.propTypes={start:x.a.number.isRequired,stop:x.a.number.isRequired,localTime:x.a.bool,handleChangeSelection:x.a.func,closeExportMenu:x.a.func,basicApiConfig:x.a.shape({token:x.a.string,tokenName:x.a.string,auth_token:x.a.string,streamer_http:x.a.string}),activeAudioTrack:x.a.string,activeVideoTrack:x.a.oneOfType([x.a.string,x.a.number]),playerProgressTime:x.a.oneOfType([x.a.string,x.a.number]),form:x.a.any,downloadOptions:x.a.arrayOf(x.a.shape({title:x.a.string,callback:x.a.func})),streamInfo:x.a.any},_n.contextType=ot.TelemetryContext;var wn=Object(We.withTranslation)()(_n);function En(e,t,n){return t=_()(t),y()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],_()(e).constructor):t.apply(e,n))}var Sn=function(e){function t(){var e;return a()(this,t),(e=En(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 E()(t,e),i()(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=Ge()(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,f=e.is_mobile,d=e.basicApiConfig,h=this.state.moving,p=u<0||u>100?0:1,g=t&&t.getMetadata()||{height:0,width:0},m=document.getElementById("forPopup");return l.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},h&&a&&(f?Object(me.createPortal)(l.a.createElement(Yt,{thumbnail:{utc:a,type:"video",position:0,pageY:-60,timelineLeft:s.window_left,visibleWidth:s.window_width},media:g,streamUrl:n,authToken:r,basicApiConfig:d,thumbnailsEnabled:i,localTime:o,isSelector:!0,isMobile:f}),m):l.a.createElement("div",{className:"selection_thumbnail"},l.a.createElement(Yt,{thumbnail:{utc:a,type:"video",position:0,pageY:-60,timelineLeft:s.window_left,visibleWidth:s.window_width},media:g,streamUrl:n,authToken:r,basicApiConfig:d,thumbnailsEnabled:i,localTime:o,isSelector:!0}))),l.a.createElement("span",{className:"icon-arrow_player"}))}}])}(l.a.Component);Sn.propTypes={position:x.a.number.isRequired,gettingCoordinates:x.a.func.isRequired,onMoveStart:x.a.func.isRequired,onMoveEnd:x.a.func.isRequired,dom:x.a.any,direction:x.a.string.isRequired,playerRef:x.a.any,realUtc:x.a.number.isRequired,streamUrl:x.a.string.isRequired,authToken:x.a.string,thumbnailsEnabled:x.a.bool,localTime:x.a.bool,is_mobile:x.a.bool,basicApiConfig:x.a.shape({token:x.a.string,tokenName:x.a.string,auth_token:x.a.string,streamer_http:x.a.string})},Sn.defaultProps={dom:{},authToken:"",thumbnailsEnabled:!0,localTime:!0};var xn=Sn;var kn=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 Tn(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 On(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tn(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pn(e,t,n){return t=_()(t),y()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],_()(e).constructor):t.apply(e,n))}var Rn=function(e){function t(){var e;return a()(this,t),(e=Pn(this,t)).gettingCoordinates=kn(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 E()(t,e),i()(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=On(On({},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,c=i.window_width,l=this.state,f=l.left,d=l.left_time,h=l.left_selected,p=l.right,g=l.right_time,m=l.right_selected,v=this.preciecePercent(e/(c/100)),y=function(e,t){return"left"===t&&e>p-1?p-1:"right"===t&&e<f+1?f+1:e};v=y(v,t);var b=a-o,_=b/100,w=Math.round(o+v*_),E=u()(u()(u()({},t,v),"".concat(t,"_time"),Object(De.humanTime)(w)),"".concat(t,"_selected"),Math.round(w));if(n){if("left"===t&&v>p){var S=On({},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<f){var x=On({},E);E={right:f,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=On(On({},E),{},{right:Math.round((k-o)/_),right_time:Object(De.humanTime)(k),right_selected:k})}else if(E.right_selected-h>s){var T=E.right_selected-s;E=On(On({},E),{},{left:Math.round((T-o)/_),left_time:Object(De.humanTime)(T),left_selected:T})}}s&&(E=On(On({},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,c=s.left,l=s.left_selected,f=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=u()(u()(u()({},t,v),"".concat(t,"_time"),Object(De.humanTime)(e)),"".concat(t,"_selected"),Math.round(e));if("left"===t&&v>f){var b=d-h;m=b,y={left:Math.round(b/g),left_time:Object(De.humanTime)(b),left_selected:b}}else if("right"===t&&v<c){var _=l+h;m=_,y={right:Math.round(_/g),right_time:Object(De.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=On(On({},y),{},{right:Math.round((w-i)/g),right_time:Object(De.humanTime)(w),right_selected:w})}else if(y.right_selected-l>a){var E=y.right_selected-a;y=On(On({},y),{},{left:Math.round((E-i)/g),left_time:Object(De.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(u()({},"".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,f=s.toggleDownload,d=s.real_from,h=s.real_to,p=s.closeExportMenu,g=s.basicApiConfig,m=s.playerProgressTime,v=s.isTrackSelectAvaible,y=s.tracksAudio,b=s.tracksVideo,_=s.activeAudioTrack,w=s.activeVideoTrack,E=s.form,S=s.is_mobile,x=s.downloadOptions,k=s.streamInfo,T=document.getElementById("forOverlays"),O=t<0?0:t,P=n>100?100:n,R=P-O;return l.a.createElement("div",{className:"selectionControls"},l.a.createElement(xn,{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:S,basicApiConfig:g}),0!==o&&0!==a&&l.a.createElement("div",{className:"selectionLength",style:{left:"".concat(O,"%"),right:"".concat(P,"%"),width:"".concat(R,"%"),opacity:"".concat(t<0&&n<0||t>100&&n>100||n-t<3?0:1)}}),0!==o&&0!==a&&l.a.createElement("div",{className:"selectionLength second",style:{left:"".concat(O,"%"),right:"".concat(P,"%"),width:"".concat(R,"%"),opacity:"".concat(t<0&&n<0||t>100&&n>100||n-t<3?0:1)}}),l.a.createElement(xn,{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:S,basicApiConfig:g}),T&&Object(me.createPortal)(l.a.createElement("div",{className:"downloadBlock","data-cy":"downloadBlock"},l.a.createElement("div",{id:"forDownloadModal"},l.a.createElement(wn,{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:f,downloadActive:t>=0&&n>=0,focusAvailable:o<d||a>h,closeExportMenu:p,basicApiConfig:g,playerProgressTime:m,isTrackSelectAvaible:v,tracksAudio:y,tracksVideo:b,activeAudioTrack:_,activeVideoTrack:w,form:E,downloadOptions:x,streamInfo:k}))),T))}}])}(l.a.Component);Rn.propTypes={real_from:x.a.number,real_to:x.a.number,dom:x.a.any,http_stream_url:x.a.string,auth_token:x.a.string,name:x.a.string,locale:x.a.oneOf(["ru","en"]),toggleDownload:x.a.func,changeSelectors:x.a.func,maxDuration:x.a.number,setFocus:x.a.func,playerRef:x.a.any,media:x.a.shape({width:x.a.number,height:x.a.number}),streamUrl:x.a.string,authToken:x.a.string,thumbnailsEnabled:x.a.bool,localTime:x.a.bool,closeExportMenu:x.a.func,basicApiConfig:x.a.shape({token:x.a.string,tokenName:x.a.string,auth_token:x.a.string,streamer_http:x.a.string}),activeAudioTrack:x.a.string,activeVideoTrack:x.a.oneOfType([x.a.string,x.a.number]),isTrackSelectAvaible:x.a.bool,onMoveStart:x.a.func.isRequired,onMoveEnd:x.a.func.isRequired,playerProgressTime:x.a.oneOfType([x.a.string,x.a.number]),form:x.a.any,is_mobile:x.a.bool,downloadOptions:x.a.arrayOf(x.a.shape({title:x.a.string,callback:x.a.func})),streamInfo:x.a.any},Rn.defaultProps={};var An=Rn,Cn=(n(1162),n(295));function Dn(e,t,n){return t=_()(t),y()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],_()(e).constructor):t.apply(e,n))}var Ln=function(e){function t(){var e;return a()(this,t),(e=Dn(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 E()(t,e),i()(t,[{key:"componentDidMount",value:function(){var e;this.setState({debugData:(e=null==Cn?void 0:Cn.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,f=this.state,d=f.dropdownVisible,h=f.secondRow,p=f.secondRowContent,g=f.popupText,m=f.popupEnabled,v=f.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)}));document.getElementById("forOverlays");var _=document.getElementById("forClearout"),w=document.getElementById("forClearoutTimeline");return l.a.createElement(c.Fragment,null,l.a.createElement("div",{className:"dropDownWrapper"},l.a.createElement("button",{className:"dvrp-button",onClick:this.setDropdownVisible},l.a.createElement("span",{className:"icon-settings_player"}))),d&&Object(me.createPortal)(l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"clearDropdown",onClick:this.setDropdownVisible}),l.a.createElement("div",{className:"dropDown".concat(d?" visible":"")},l.a.createElement("div",{className:"firstRow".concat(h?"":" visible")},this.props.tracksVideo.length>1&&l.a.createElement("div",{className:"item",onClick:function(){e.showSubmenu("tracksVideo")}},l.a.createElement("div",{className:"left"},l.a.createElement("span",{className:"ddicon"},l.a.createElement("span",{className:"icon-hd"})),a("dvr_video_quality")),l.a.createElement("div",{className:"right"},y)),this.props.tracksAudio.length>1&&l.a.createElement("div",{className:"item",onClick:function(){e.showSubmenu("tracksAudio")}},l.a.createElement("div",{className:"left"},l.a.createElement("span",{className:"ddicon"},l.a.createElement("span",{className:"icon-track_player"})),a("dvr_audio_track")),l.a.createElement("div",{className:"right"},b))),l.a.createElement("div",{className:"secondRow".concat(h?" visible":"")},l.a.createElement("div",{className:"item",onClick:this.closeSubmenu},l.a.createElement("span",{className:"ddicon"},l.a.createElement("span",{className:"icon-date_two_player"})),a("tracksVideo"===p?"dvr_video_quality":"dvr_audio_track")),p&&"tracksVideo"===p&&(!o||i)&&l.a.createElement(Mn,{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 l.a.createElement(Mn,{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")}})}))),l.a.createElement(hn.CopyToClipboard,{text:v,onCopy:function(){e.showPopup()}},l.a.createElement("div",{className:"item"},a("copy_debug_data"))),l.a.createElement("div",{className:"popupCopyDebug".concat(m?" enabled":"")},g))),_),d&&Object(me.createPortal)(l.a.createElement("div",{className:"clearDropdown",onClick:this.setDropdownVisible}),w))}}])}(c.Component);Ln.propTypes={returnData:x.a.func,tracksAudio:x.a.array,tracksVideo:x.a.array,activeAudioTrack:x.a.string,activeVideoTrack:x.a.oneOfType([x.a.string,x.a.number]),live:x.a.bool,ott:x.a.bool},Ln.defaultProps={ott:!1};var In=Object(We.withTranslation)()(Ln);function Mn(e){return l.a.createElement("div",{className:"item".concat(e.active?" active":""),"data-value":e.value,onClick:e.handleTrackChange},e.text)}var jn=n(292),Nn=n.n(jn),Fn=function(e){var t=e.isFullscreen,n=e.onChangeFullscreenState;return l.a.createElement("button",{onClick:function(e){n(!t),e.target.blur()},type:"button",className:"dvrp-button","data-cy":"DVR_fullscreen_button"},t?l.a.createElement("span",{className:"icon-screen_player"}):l.a.createElement("span",{className:"icon-full"}))};Fn.propTypes={isFullscreen:x.a.bool.isRequired,onChangeFullscreenState:x.a.func.isRequired};var Un=Object(c.memo)(Fn);function Bn(e,t,n){return t=_()(t),y()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],_()(e).constructor):t.apply(e,n))}var qn=function(e){function t(){var e;return a()(this,t),e=Bn(this,t),u()(e,"formRef",l.a.createRef()),e.onRangesLoaded=e.onRangesLoaded.bind(e),e.onThumbnail=kn(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.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=l.a.createRef(),e.timeoutIdRef=l.a.createRef(),e.preventDefault=function(e){return e.preventDefault()},e}return E()(t,e),i()(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){var t=this.props.playerProgressTime;if(e.playerProgressTime!==t){var n=Object(De.currentUrl)(document.location.href,{from:Math.round(t)});this.setState({timeInfo:{url:n,time:Object(De.humanTime)(t)}})}}},{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){this.props.onPause&&this.props.onPause(),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){var t=this.props.t,n=this.state.range_info,r=e.ranges,i=[],o=!1;e.motion_log&&("episodes"in e.motion_log?(i=e.motion_log.episodes,o=!0):i=e.motion_log);var a="#197f70",s="#2f4858",u="#f0ad4e";i=i.filter((function(e){return o?e:"motion"===e.type&&"range"===e.subtype&&!!e.data})).map((function(e){var n,r={};if(o){var i,c,l="";switch(e.episode_type){case"face":i=t("dvr_episode_type_person"),c=a,l=null===(n=e.matched_persons)||void 0===n?void 0:n.map((function(e){return e.person.name||""})).join(", ");break;case"vehicle":i=t("dvr_episode_type_plate"),c=s,l=e.license_plate_text;break;case"generic":i=t("dvr_episode_type_motion"),c=u}r={from:Math.round(e.opened_at/1e3)||e.at,duration:Math.round((e.closed_at-e.opened_at)/1e3)||10,color:c||u,title:i||"",note:l||""}}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 c=[];Array.prototype.push.apply(c,n.brief_thumbnails),Array.prototype.push.apply(c,e.brief_thumbnails),c.sort();for(var l=0;l<c.length-1;)c[l]===c[l+1]?c.splice(l,1):l++;return{ranges:r,motion:i,brief_thumbnails:c,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 l.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:"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&&this.handlePause(),"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=Ge()(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,f=t.zoom,d=t.debug,h=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,P=t.onToggleMuted,R=t.playerProgressTime,A=t.volume,C=t.live,D=t.playback_speed,L=t.locale,I=t.maxDuration,M=t.enableMp4Download,j=t.downloadOptions,N=t.activeVideoTrack,F=t.activeAudioTrack,U=t.tracksVideo,B=t.tracksAudio,q=t.rangesLoading,V=t.dvr_enabled,$=t.isFullscreen,z=t.noFullscreen,G=t.zoomSensivity,W=t.calendarRanges,H=t.t,K=t.allowExport,Y=t.streamInfo,Q=this.state,X=Q.real_from,J=Q.real_to,Z=Q.thumbnail,ee=Q.range_info,te=Q.allRangeInfo,ne=Q.dom,re=Q.calendarOpened,ie=Q.isFooterVisible,oe=Q.selectionTimeline,ae=Q.timeInfo,se=Z&&Z.position,ue=document.getElementById("videoThumbnail"),ce=document.getElementById("forCalendar");return l.a.createElement(c.Fragment,null,l.a.createElement("div",{id:"forOverlays"}),l.a.createElement("div",{className:"dvrp-top".concat(ie?" _visible":""),"data-cy":"dvrp-top"},l.a.createElement("div",{className:"dvrp-controls"},R&&l.a.createElement("div",{className:"timeStamp","data-cy":"timeStamp"},l.a.createElement("a",{href:ae.url},ae.time)),l.a.createElement(Nn.a,{live:C,seekLiveFunc:this.seekLiveFunc}))),l.a.createElement("div",{className:"dvrp-bottom-gradient".concat(ie?" _visible":"")}),l.a.createElement("div",{className:"dvrp-footer".concat(ie?" _visible":""),"data-cy":"dvrp-footer",onWheel:function(t){V&&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,V&&e.dvrTimelineRef&&e.dvrTimelineRef.onDragEnd()},onMouseLeave:function(){e.touchStarted=!1,V&&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},l.a.createElement("div",{className:"dvr-timeline","data-cy":"dvr-timeline",ref:this.timelineRef},V&&l.a.createElement(zt,{ref:this.setDvrTimelineRef,onSeek:a,from:s,now:u,zoom:f,utc:u,debug:d,thumbnails_enabled:h,onRangesRequested:p,onCallThumbnail:this.onThumbnail,range_info:ee,is_mobile:g,auth_token:r,http_stream_url:m,currentTime:v,returnData:y,observableRanges:b,allRangeInfo:te,multiTimeline:_,selected:n,toggleDownload:this.toggleDownload,returnDomSizes:this.domSizes,returnVisual:this.returnVisual,fixedRange:w,localTime:E,pointSelectTime:this.pointSelectTime,selectionTimeline:oe,zoomSensivity:G}),Z&&Z.utc&&ue&&!g&&Object(me.createPortal)(l.a.createElement(Yt,{thumbnail:Z,media:k(),streamUrl:m,authToken:r,thumbnailsEnabled:h,localTime:E,selectionTimeline:oe,basicApiConfig:i}),ue),se>0&&l.a.createElement("div",{className:"timeLineCursor",style:{left:"".concat(se,"px")}}),oe&&V&&o&&M&&l.a.createElement(An,{ref:this.formRef,dom:ne,real_from:X,real_to:J,name:n,http_stream_url:m,auth_token:r,locale:L,toggleDownload:this.toggleDownload,changeSelectors:this.changeSelectors,maxDuration:I,setFocus:this.setFocus,streamUrl:m,authToken:r,thumbnailsEnabled:h,localTime:E,playerRef:x,closeExportMenu:function(){e.toggleSelectionTimeline(!1)},basicApiConfig:i,tracksAudio:B,tracksVideo:U,activeAudioTrack:F,activeVideoTrack:N,isTrackSelectAvaible:U.length>1||B.length>1,playerProgressTime:R,form:this.formRef.current,onMoveStart:this.handleDvrSelectionMovingStart,onMoveEnd:this.handleDvrSelectionMovingEnd,is_mobile:g,downloadOptions:j,streamInfo:Y})),l.a.createElement("div",{className:"dvrp-controls","data-cy":"dvrp-controls"},l.a.createElement("div",{className:"dvrp-left-controls","data-cy":"dvrp-left-controls"},V&&l.a.createElement("button",{type:"button",className:"dvrp-button","data-cy":"DVR_play_button",onClick:this.handlePause,title:H(T?"dvr_play":"dvr_pause")},T?l.a.createElement("span",{className:"icon-play_player"}):l.a.createElement("span",{className:"icon-pause_player"})),B.length>0&&l.a.createElement(tn,{isMuted:O,volume:A,onChangeMuted:P,onChangeVolume:this.changeVolumeHandler,isMobile:g}),V&&l.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")},l.a.createElement(rn,null)),V&&l.a.createElement("div",{style:{display:"flex"}},this.controlBtn("dvrp-button",(function(t){e.startScale(t,"out",!1)}),this.stopScale,"zoom_out",l.a.createElement(an,null)),this.controlBtn("dvrp-button",(function(t){e.startScale(t,"in",!1)}),this.stopScale,"zoom_in",l.a.createElement(un,null))),V&&!g&&this.controlBtn("dvrp-button",this.startScrollLeft,this.stopScroll,"seek_left",l.a.createElement(vt,null)),V&&!g&&this.controlBtn("dvrp-button",this.startScrollRight,this.stopScroll,"seek_right",l.a.createElement(bt,null)),V&&l.a.createElement("div",{className:"timeline__speedControls".concat(C?" hidden":"")},l.a.createElement("button",{className:"dvrp-button",onClick:this.slower,title:H("dvr_slower"),type:"button","data-cy":"slower","aria-label":H("dvr_slower")},l.a.createElement(dn,null)),l.a.createElement("div",null,"x".concat(D)),l.a.createElement("button",{className:"dvrp-button",onClick:this.faster,title:H("dvr_faster"),type:"button","data-cy":"faster","aria-label":H("dvr_faster")},l.a.createElement(ln,null)))),l.a.createElement("div",{className:"dvrp-right-controls","data-cy":"dvrp-right-controls"},m&&l.a.createElement(c.Fragment,null,l.a.createElement("div",{className:"timeline__snapshotControl"},l.a.createElement(Xt,{onTakeSnapshotClick:this.onTakeSnapshotClick}))),"ott"!==S&&V&&K&&l.a.createElement("button",{className:"dvrp-button",onClick:function(){e.toggleSelectionTimeline(!oe)},title:H("dvr_select_export"),type:"button","data-cy":"select_export","aria-label":H("dvr_select_export")},l.a.createElement("span",{className:"icon-export"})),V&&W.length>0&&l.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")},l.a.createElement("span",{className:"icon-date_player"})),l.a.createElement(In,{tracksAudio:B,tracksVideo:U,activeAudioTrack:F,activeVideoTrack:N,returnData:y,live:C,openExportMenu:function(){e.toggleSelectionTimeline(!0)}}),!z&&l.a.createElement(Un,{isFullscreen:$,onChangeFullscreenState:this.changeFullscreenStateHandler})),re&&Object(me.createPortal)(l.a.createElement("div",{id:"calendarModal",className:"calendar"},l.a.createElement(Zt.a,{now:u||this.now(),onChange:this.calendarDayChanged,locale:L,toggleCalendar:this.toggleCalendar,calendarRanges:W,setTimelineZoom:this.setTimelineZoom,isMobile:g})),ce)),l.a.createElement("div",{id:"forClearoutTimeline"})),d&&l.a.createElement("div",{className:"rangesLoading".concat(q?" visible":"")},l.a.createElement("span",null,"•"),H("dvr_ranges_loading")))}}])}(c.Component);qn.propTypes={playerProgressTime:x.a.oneOfType([x.a.string,x.a.number]),ranges:x.a.shape({brief_thumbnails:x.a.arrayOf(x.a.any),motion_log:x.a.any,ranges:x.a.arrayOf(x.a.shape({opened_at:x.a.number,closed_at:x.a.number})),stream:x.a.string}),observableRanges:x.a.shape({start:x.a.number,end:x.a.number}),calendarRanges:x.a.arrayOf(x.a.shape({from:x.a.number,duration:x.a.number})),returnData:x.a.func,live:x.a.bool,muted:x.a.bool,thumbnails_enabled:x.a.bool,changeSpeed:x.a.func,playback_speed:x.a.number,locale:x.a.oneOf(["ru","en"]),from:x.a.number,now:x.a.oneOfType([x.a.string,x.a.number]),zoom:x.a.number,debug:x.a.bool,localTime:x.a.bool,is_mobile:x.a.bool,http_stream_url:x.a.string,auth_token:x.a.string,onMetadataRequest:x.a.func,onToggleMuted:x.a.func,onTakeSnapshotClick:x.a.func,onSeek:x.a.func,onCalendarToggle:x.a.func,currentTime:x.a.any,dvr_ranges_present:x.a.bool,dvr_enabled:x.a.bool,paused:x.a.bool,multiTimeline:x.a.bool,selected:x.a.string,rangesLoading:x.a.bool,fastSeek:x.a.func,volume:x.a.number,enableMp4Download:x.a.bool,downloadOptions:x.a.arrayOf(x.a.shape({title:x.a.string,callback:x.a.func})),fixedRange:x.a.bool,ui:x.a.oneOf(["ott","nvr"]),playerRef:x.a.any,maxDuration:x.a.number,tracksAudio:x.a.array,tracksVideo:x.a.array,activeAudioTrack:x.a.string,activeVideoTrack:x.a.oneOfType([x.a.string,x.a.number]),basicApiConfig:x.a.shape({token:x.a.string,tokenName:x.a.string,auth_token:x.a.string,streamer_http:x.a.string}),streams:x.a.any,isFullscreen:x.a.bool.isRequired,noFullscreen:x.a.bool.isRequired,zoomSensivity:x.a.number,allowExport:x.a.bool,streamInfo:x.a.any};var Vn=Object(We.withTranslation)()(qn),$n=function(e){var t=e.isPaused,n=e.onChangePlayState;return l.a.createElement("button",{onClick:function(e){n(!t),e.target.blur()},type:"button",className:"dvrp-button","data-cy":"DVR_play_button"},t?l.a.createElement("span",{className:"icon-play_player"}):l.a.createElement("span",{className:"icon-pause_player"}))};$n.propTypes={isPaused:x.a.bool.isRequired,onChangePlayState:x.a.func.isRequired};var zn=Object(c.memo)($n),Gn=n(567),Wn=n(568),Hn=(n(1170),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,f=e.activeVideoTrack,d=e.showPlayButton,h=e.live,p=e.onSeek,g=e.noFullscreen,m=e.video,v=e.from,y=e.to,b=e.playbackDuration,_=e.debug,w=Object(c.useRef)(),E=Object(c.useState)(!0),S=Ge()(E,2),x=S[0],k=S[1],T=Object(c.useState)(!1),O=Ge()(T,2),P=O[0],R=O[1],A=Object(c.useState)(null),C=Ge()(A,2),D=C[0],L=C[1];Object(c.useEffect)((function(){m&&L(m)}),[m]);var I=function(e){n("paused",e)};Object(c.useEffect)((function(){return window.clearTimeout(w.current),P||t?k(!0):w.current=window.setTimeout((function(){k(!1)}),3e3),function(){window.clearTimeout(w.current)}}),[t,P]);var M=Object(c.useCallback)((function(e){"Space"===e.code&&I(!t)}),[I,t]);return Object(c.useEffect)((function(){return document.addEventListener("keydown",M),function(){document.removeEventListener("keydown",M)}}),[t,M]),l.a.createElement(c.Fragment,null,l.a.createElement("div",{id:"forOverlays"}),l.a.createElement("div",{className:"dvrp-top"},l.a.createElement("div",{className:"dvrp-controls"},!(v&&y||v&&b)&&!d&&l.a.createElement(Nn.a,{live:h,seekLiveFunc:function(){return p("live")}}))),l.a.createElement("div",{className:"dvrp-bottom-gradient".concat(x?" _visible":""),"data-cy":"dvrp-bottom-gradient"}),l.a.createElement("div",{className:"dvrp-footer ott".concat(x?" _visible":""),"data-cy":"dvrp-footer",onMouseMove:function(){R(!0)},onMouseLeave:function(){R(!1)},style:{position:"absolute"}},(v&&y||v&&b)&&!d&&D&&l.a.createElement(Gn.Timeline,{video:D,from:v,to:y,playbackDuration:b,returnData:n,debug:_}),l.a.createElement("div",{className:"dvrp-controls","data-cy":"dvrp-controls"},l.a.createElement("div",{className:"dvrp-left-controls","data-cy":"dvrp-left-controls"},!d&&l.a.createElement(c.Fragment,null,l.a.createElement(zn,{isPaused:t,onChangePlayState:I}),a.length>0&&l.a.createElement(tn,{isMuted:r,volume:i,onChangeMuted:function(e){n("muted",e)},onChangeVolume:function(e){n("volume",e)}}),D&&v&&(y||b)&&l.a.createElement(Wn.TimeIndicator,{video:D,from:v,to:y,playbackDuration:b}))),!d&&l.a.createElement("div",{className:"dvrp-right-controls","data-cy":"dvrp-right-controls"},l.a.createElement(In,{tracksAudio:a,tracksVideo:s,activeAudioTrack:u,activeVideoTrack:f,returnData:n,live:!0,ott:!0}),!g&&l.a.createElement(Un,{isFullscreen:o,onChangeFullscreenState:function(e){n("fullscreen",e)}}))),l.a.createElement("div",{id:"forClearoutTimeline"})))});Hn.propTypes={isPaused:x.a.bool.isRequired,returnData:x.a.func.isRequired,isMuted:x.a.bool.isRequired,volume:x.a.number.isRequired,isFullscreen:x.a.bool.isRequired,showPlayButton:x.a.bool,tracksAudio:x.a.array,tracksVideo:x.a.array,activeAudioTrack:x.a.string,activeVideoTrack:x.a.oneOfType([x.a.string,x.a.number]),live:x.a.bool,onSeek:x.a.func,noFullscreen:x.a.bool.isRequired,video:x.a.any,from:x.a.number,to:x.a.number,playbackDuration:x.a.number,debug:x.a.bool},Hn.defaultProps={tracksAudio:[],tracksVideo:[],activeVideoTrack:"v1",activeAudioTrack:"a1",showPlayButton:!1,live:!0};var Kn=Hn,Yn=n(569),Qn=n.n(Yn),Xn=(n(1176),n(1178),n(346));function Jn(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 Zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jn(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function er(e,t,n){return t=_()(t),y()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],_()(e).constructor):t.apply(e,n))}var tr=new ve.QueryClient,nr=function(e){function t(e){var n,r,i;return a()(this,t),(n=er(this,t,[e])).telemetryContext={getCommonTelemetryFields:n.getCommonTelemetryFields.bind(n),getCommonRequestFields:n.getCommonRequestFields.bind(n),getCommonErrorRequestFields:n.getCommonErrorRequestFields.bind(n),sendMetrics:n.sendMetrics.bind(n)},n.preparePlayer=n.preparePlayer.bind(n),n.setStateSafe=n.setStateSafe.bind(n),n.getCommonTelemetryFields=n.getCommonTelemetryFields.bind(n),n.getCommonRequestFields=n.getCommonRequestFields.bind(n),n.getCurrentPlayerName=n.getCurrentPlayerName.bind(n),n.getCommonErrorRequestFields=n.getCommonErrorRequestFields.bind(n),n.sendMetrics=n.sendMetrics.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.getHttpStreamUrl=n.getHttpStreamUrl.bind(n),n.getResultAuth=n.getResultAuth.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=l.a.createRef(),n.logger=new Ae.Logger,n.canShowTimeline=!1,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,currentPlayerName:null,muted:!0,volume:0,playerProgressTime:Object(De.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 E()(t,e),i()(t,[{key:"UNSAFE_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,c=e.autoPlay,l=e.muted,f=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=Zn(Zn({},y),{},{player:"hls"}):this.canShowTimeline=!0),"hls"===i&&(y=Zn(Zn({},y),{},{player:"hls"})),"mse"===i&&(y="undefined"!=typeof window&&"MediaSource"in window?Zn(Zn({},y),{},{player:"mse"}):Zn(Zn({},y),{},{player:"hls"})),"webrtc"===i&&(y="undefined"!=typeof window&&(window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection)?Zn(Zn({},y),{},{player:"webrtc"}):"undefined"!=typeof window&&"MediaSource"in window?Zn(Zn({},y),{},{player:"mse"}):Zn(Zn({},y),{},{player:"hls"})),o&&(y=Zn(Zn({},y),{},{player:"hls"}));var b,_,w=(_=!1,b=navigator.userAgent||navigator.vendor||"undefined"!=typeof window&&window.opera,(Ie.OLDER_MOBILE_DEVICE_REGEXP.test(b)||Ie.MOBILE_DEVICE_REGEXP.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=Zn(Zn({},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=Zn(Zn({},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=Zn(Zn({},y),{},{streamingChannels:T,selected:r&&r[0]||t,selectedAuth:s,playerReady:u()({},t,!1)})}l||(y=Zn(Zn({},y),{},{volume:100})),c?(y=Zn(Zn({},y),{},{paused:!1,playerProgressTime:Object(De.now)()}),f&&(y=Zn(Zn({},y),{},{playerProgressTime:1e3*f,live:!1}))):(y=Zn(Zn({},y),{},{showPlayButton:!0,isStalling:!1,paused:!0,playingStarted:!0}),this.canShowTimeline=!0,f&&(y=Zn(Zn({},y),{},{playerProgressTime:1e3*f,live:!1}))),d&&(y=Zn(Zn({},y),{},{forceStartTrack:!0})),h||(y=Zn(Zn({},y),{},{dvr_enabled:!1,ui:"ott"})),this.enoughBufferTime=g||.1,f&&(y=Zn(Zn({},y),{},{playerProgressTime:f,live:!1})),"boolean"==typeof v&&(y=Zn(Zn({},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.streamer_http,c=this.state,l=c.ui,f=c.selectedUrl;console.log("VERSION:","25.9.4"),void 0!==n&&this.setStateSafe({muted:n}),r&&console.info("DVRPlayer@".concat(i)),this.resetStats(),this.containerRef.current&&this.containerRef.current.addEventListener("fullscreenchange",(function(){!document.fullscreenElement&&e.state.fullscreen&&e.setState({fullscreen:!1})})),document.addEventListener("visibilitychange",this.tabListener),"ott"===l&&o&&this.onClickToPlay();var d=this.getResultAuth();this.setState({basicApiConfig:Object(Re.basicConfig)({token:a,tokenName:s,auth_token:d,streamer_http:u||f})})}},{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,v=r.player,y=r.ui,b=r.dvr_enabled,_=r.shouldStop,w=r.playDurationStopTime,E=r.medianStopTime,S=r.playerRef,x=r.currentAudioTrack,k=r.currentVideoTrack,T=r.activeVideoTrack,O=r.activeAudioTrack,P=r.autoVideoTrack,R=r.newTracks,A=r.advert,C=r.showPlayButton,D=r.playingStarted,L=this.props,I=L.autoPlay,M=L.auth_token,j=L.from,N=L.to,F=L.reportState,U=L.play_duration,B=l.streams,q=B.length>1,V=Object.keys(h);if(!Object.keys(t.info).length&&V.length&&V.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&&(S&&(S.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&&S&&S.props.name===e&&S.setState({noLive:!0})}s&&Object.keys(s).length&&"export"in s&&n.setState({allowExport:s.export})})),t.dvr_enabled===b||b||this.setState({ui:"ott",player:"hls"}),!D&&I&&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}),U){var $=E;$.length<3?($.push(i+U),this.setStateSafe({medianStopTime:$})):3===$.length&&this.setStateSafe({playDurationStopTime:Math.min.apply(Math,m()($))}),this.timeToDurationStop=w-i,U&&w&&i>=w&&this.setStateSafe({shouldStop:!0})}N&&i>=N&&this.stop()}else!t.playerProgressTime&&i&&U&&this.setStateSafe({medianStopTime:[i+U]});if(t.selected!==u&&B.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:M}),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})}}}})),t.paused||!p||t.isPlaying||this.setState({isPlaying:!1}),t.paused&&!p&&null!==t.livePausedAt&&(t.livePausedAt<=Object(De.now)()-30&&this.onTimelineSeek(t.livePausedAt),this.setState({livePausedAt:null})),JSON.stringify(a)!==JSON.stringify(t.progressTimeForPlayers)){var z=this.getProgress(a);if(z){var G=this.state.isStalling,W=this.state,H=W.playerRef;if(!1!==W.playerReady[u]){if(a[u]!==t.progressTimeForPlayers[u]&&H&&"_video"in H){var K=H._video;K&&K.currentTime&&K.currentTime>this.enoughBufferTime&&(G=!1)}q&&(G=!1),s||null!=t.livePausedAt||this.checkProgressTime(),t.isStalling&&!G&&this.onEventCallback(this.state.selected,{key:Date.now(),data:{event:"play_stall_end"}}),this.setState({playerProgressTime:z,isStalling:G})}}}else{var Y=!0,Q=o&&Object.keys(o)||[];0!==Q.length&&Q.forEach((function(e){"stop"!==o[e]&&(Y=!1)})),Q.length===B.length&&Y&&(C||s||U||"ott"===y||j&&N||d||this.onTimelineSeek(Math.round(i)+1))}if(!Object.keys(t.allRanges).length&&Object.keys(c).length&&(j?I?this.onTimelineSeek(j):(this.canShowTimeline=!0,this.setState({playerProgressTime:j})):I&&this.onClickToPlay()),"ott"===!y&&(!t.muted&&this.state.muted?this.setState({volume:0}):t.muted&&!this.state.muted&&this.setState({volume:100})),"function"==typeof F&&F(this.state,this.getPlayerStats,this),g&&!t.fullscreen)if(Object(De.isIOS)()){var X=this.state.selected,J=document.getElementById("video_".concat(X));J&&J.webkitSupportsFullscreen&&(J.webkitEnterFullscreen(),J.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})),!q){if(s!==t.live){if("hls"===v)return;var Z=T,ee=O;"v0"===(Z=T?s?"v".concat(Number(T)+1):P?"-1":"".concat(Number(T.replace(Ie.DIGITS_REGEXP,""))-1):s?"v1":"-1")&&(Z="v1"),ee=O?s?"a".concat(Number(O)+1):"".concat(Number(O.replace(Ie.DIGITS_REGEXP,""))-1):s?"a1":"0",this.setState({tracksVideo:[],tracksAudio:[],activeVideoTrack:Z,activeAudioTrack:ee})}Object.keys(t.info).length!==V.length&&V.forEach((function(e){var t=h[e].stats;t&&("dvr_enabled"in t&&(t.dvr_enabled||n.setState({dvr_enabled:!1})))}))}!O&&x&&this.setState({activeAudioTrack:x}),!T&&k&&this.setState({activeVideoTrack:k}),O&&x&&k&&JSON.stringify([T||"0",O])!==JSON.stringify(R)&&(O===x&&T===k||JSON.stringify([T,O])===JSON.stringify(R)||this.setState({newTracks:[T,O]})),!t.shouldStop&&_&&(this.stop(),this.setState({shouldStop:!1})),t.advert&&t.advert.length&&!A.length&&(this.continueFrom=null,this.onClickToPlay())}},{key:"componentDidCatch",value:function(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=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;this.isUnmounted?(r=console).log.apply(r,["DVRPlayer's setState called for unmounted component with args: "].concat(t)):this.setState.apply(this,t)}},{key:"changeLanguage",value:function(e){this.setState({locale:e}),ge.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=Zn(Zn({},this.state[e]||{}),{},u()({},n,t));this.setState(u()({},e,r))}else this.setState(u()({},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=Zn({},o),u=m()(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]=Zn(Zn({},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((function(n){return{allRanges:Zn(Zn({},n.allRanges),{},u()(u()({},e,m()(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=Zn(Zn({},d),{},{observableRanges:{start:r-300,end:Object(De.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:Object(De.now)()-300,end:Object(De.now)()+300}}),"ott"!==a&&this.checkProgressTime()}else this.canShowTimeline=!0,r?this.setStateSafe({observableRanges:{start:r-300,end:Object(De.now)()+300}}):this.setStateSafe({observableRanges:{start:Object(De.now)()-300,end:Object(De.now)()+300}});if(n&&r){var h=Object(De.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:Object(De.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>=Object(De.now)()||"live"===l)){"live"!==e?this.setState({live:!1}):this.setState({live:!0});var d={},h=Zn({},a),p=Object.keys(h).filter((function(e){return"loaded_at"!==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>=Object(De.now)()||"live"===l)&&(m=Object(De.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||Object(De.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=Zn({},this.state.allRanges),n={},r={},i={},o=Object.keys(t).filter((function(e){return"loaded_at"!==e})),a=!1;if(e>=Object(De.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=Object(De.checkInRange)(e,t[o]);if(n[o]||(n[o]={}),n[o]=s,s)a=!0,r=Zn(Zn({},r),{},u()({},o,e)),i=Zn(Zn({},i),{},u()({},o,s.playbackDuration));else{var c=Object(De.getNearLeftFrom)(e,t[o]);n[o]={nextSection:c},r=Zn(Zn({},r),{},u()({},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,s=t.playback_speed;"number"==typeof i&&Object.keys(r).forEach((function(t){if(n[t]&&Math.round(i)>=Math.round(n[t].sectionEnd-.5*s)&&Math.round(i)<=Math.round(n[t].nextSection-.5*s))e.setState({playingTimeForPlayers:Zn(Zn({},r),{},u()({},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 c=Math.round(i);e.checkSegment(c),e.setState({playingTimeForPlayers:Zn(Zn({},r),{},u()({},t,c))})}}else n[t]&&"live"===n[t].nextSection&&!a&&Math.round(i)>=Object(De.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){return"loaded_at"!==e})).forEach((function(r){var i=Object(De.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(){this.setStateSafe({muted:!this.state.muted})}},{key:"refreshPlaying",value:function(){this.onTimelineSeek(this.state.playerProgressTime)}},{key:"fastSeek",value:function(e,t){var n=Zn({},this.state.allRanges),r=Object.keys(n),i=!0;r.forEach((function(t){n[t]&&Array.isArray(n[t])&&(Object(De.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=ye.a(n);s.data=Zn(Zn({},s.data),{},{event:Object(Oe.getFormattedEventName)("play_init"),event_message:Object(Oe.getFormattedEventMessage)("play_init")}),this.updateLogEventQueue(s,{shouldPlayInitEventLog:!1})}break;case"play_init_mse":var u=ye.a(n);u.data=Zn(Zn({},u.data),{},{event:Object(Oe.getFormattedEventName)("play_init_mse"),event_message:Object(Oe.getFormattedEventMessage)("play_init_mse")}),this.updateLogEventQueue(u);break;case"play_init_hls":var c=ye.a(n);c.data=Zn(Zn({},c.data),{},{event:Object(Oe.getFormattedEventName)("play_init_hls"),event_message:Object(Oe.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=ye.a(n);if(l.data=Zn(Zn({},l.data),{},{event:Object(Oe.getFormattedEventName)("play_started"),event_message:Object(Oe.getFormattedEventMessage)("play_started")}),this.updateLogEventQueue(l),this.corrupted_frag_start){var f=a-this.corrupted_frag_start,d=ye.a(n);d.data=Zn(Zn({},d.data),{},{event:"player_error",error_name:"on_load_error",error_message:"".concat(Object(Oe.getFormattedErrorMessage)("on_load_error"),": ").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=ye.a(n);g.data=Zn(Zn({},g.data),{},{event:Object(Oe.getFormattedEventName)("play_started"),event_message:Object(Oe.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=ye.a(n);v.data=Zn(Zn({},v.data),{},{event:Object(Oe.getFormattedEventName)("play_stall"),event_message:"".concat(Object(Oe.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=ye.a(n);x.data=Zn(Zn({},x.data),{},{event:"player_error",error_name:"long_bufferization_error",error_message:"".concat(Object(Oe.getFormattedErrorMessage)("long_bufferization_error"),": ").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=ye.a(n);k.data=Zn(Zn({},k.data),{},{event:Object(Oe.getFormattedEventName)("play_pause"),event_message:Object(Oe.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 P=O.live_duration;P+=a-this.segmentStart,this.addPlayerStat("live_duration",!1,P),delete this.segmentStart;var R=this.state.vQuality,A=R.corruptedVideoFrames,C=R.droppedVideoFrames,D=R.totalVideoFrames;this.addPlayerStat("total_video_frames",!1,D),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":var L=ye.a(n);L.data=Zn(Zn({},L.data),{},{player_name:this.getCurrentPlayerName()}),this.updateLogEventQueue(L);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 I=i.duration;this.addPlayerStat("advertising_duration",!1,I)}}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 Zn({logEventQueue:[].concat(m()(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:"getHttpStreamUrl",value:function(){var e=this.state,t=e.selected,n=e.selectedUrl,r=this.props.streamer_http;return"".concat(n||r,"/").concat(t)}},{key:"getResultAuth",value:function(){var e=this.state.selectedAuth,t=this.props.auth_token;return e||t}},{key:"getStats",value:function(){return Zn(Zn({},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=Zn(Zn({},i),{},{application:o}),this.playerStatsObject=Zn(Zn(Zn({},this.playerStatsObject),i),{},{id:this.uuid}),this.playerStatsObject}}return this.getStats()}},{key:"getCurrentPlayerName",value:function(){return this.state.currentPlayerName}},{key:"getCommonTelemetryFields",value:function(){var e,t=this.getPlayerStats(),n=this.getCurrentPlayerName(),r=Object(Le.getCurrentPlayerVersion)(n),i=null===(e=Object.values(this.state.info||{}))||void 0===e?void 0:e[0];return Zn(Zn(Zn({app_name:"@flussonic/flussonic-dvr-player",app_version:"25.9.4",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,protocol:(null==t?void 0:t.proto)||"",player_session_id:(null==t?void 0:t.source_id)||"",os_version:(null==t?void 0:t.user_agent)||"",stream:(null==i?void 0:i.name)||"",stream_title:(null==i?void 0:i.title)||"",server_instance_id:(null==i?void 0:i.instance_id)||""},n&&{player_name:n}),r&&{player_version:r}),(null==i?void 0:i.operator_id)&&{operator_id:null==i?void 0:i.operator_id})}},{key:"getCommonRequestFields",value:function(e){var t,n,r,i,o=Object(Ce.getFilteredParams)(null===(t=e.config)||void 0===t?void 0:t.params),a=null!==(n=Object(Ce.getNewURL)(null===(r=e.config)||void 0===r?void 0:r.url,null===(i=e.config)||void 0===i?void 0:i.baseURL))&&void 0!==n?n:"";return{duration:e.duration,status:e.status,url:a.toString(),query_parameters:o}}},{key:"getCommonErrorRequestFields",value:function(e){var t,n,r,i,o=Object(Ce.getFilteredParams)(null===(t=e.config)||void 0===t?void 0:t.params),a=null!==(n=Object(Ce.getNewURL)(null===(r=e.config)||void 0===r?void 0:r.url,null===(i=e.config)||void 0===i?void 0:i.baseURL))&&void 0!==n?n:"";return{duration:e.duration,status:e.status||"",url:a.toString(),query_parameters:o,error_name:null==e?void 0:e.name,error_message:null==e?void 0:e.message}}},{key:"sendMetrics",value:function(e){this.getShouldEventsLog()&&Object(Xn.sendMetrics)(e)}},{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(Zn(Zn({},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){var t=this.state,n=t.rangesLoading,r=t.seekFrameEnabled,i=t.playingTimeForPlayers,o=t.playerProgressTime,a=t.selected,s=t.lockViewLeft,u=t.lockViewRight,c=t.showPlayButton,f=t.tracksAudio,d=t.tracksVideo,h=t.activeAudioTrack,p=t.activeVideoTrack,g=t.browser,m=t.streamingChannels,v=t.fullscreen,y=t.muted,b=t.volume,_=t.paused,w=t.live,E=t.isStalling,S=t.dvr_ranges_present,x=t.dvr_enabled,k=t.ui,T=t.noFullscreen,O=t.forceScrollToPoint,P=t.allMotions,R=t.allRanges,A=t.player,C=t.playback_speed,D=t.is_mobile,L=t.observableRanges,I=t.locale,M=t.playerRef,j=t.basicApiConfig,N=t.calendarRanges,F=t.allowExport,U=t.info,B=this.props,q=B.from,V=B.to,$=B.play_duration,z=B.zoom,G=B.thumbnails_enabled,W=B.noMenu,H=B.debug,K=B.timeLineElement,Y=B.info_url,Q=null;M&&"_video"in M&&(Q=M._video);var X=this.getHttpStreamUrl(),J=this.getResultAuth(),Z=W?null:l.a.createElement(l.a.Fragment,null,"ott"===k&&l.a.createElement(Kn,{isPaused:_,returnData:this.returnData,volume:b,isMuted:y,isFullscreen:v||!1,tracksAudio:f,tracksVideo:d,activeAudioTrack:h,activeVideoTrack:p,showPlayButton:c,live:w,onSeek:this.onTimelineSeek,noFullscreen:T,video:Q,from:q,to:V,playbackDuration:$,debug:H,info_url:Y}),"nvr"===k&&l.a.createElement(Vn,{http_stream_url:X,muted:y,thumbnails_enabled:G,playback_speed:C,locale:I,from:q,zoom:z,player:A,debug:H,is_mobile:D,auth_token:J,changeSpeed:this.changeSpeed,onToggleMuted:this.handleToggleMuted,onMetadataRequest:this.onMetadataRequest,onSeek:this.onTimelineSeek,onTakeSnapshotClick:this.onTakeSnapshotClick,currentTime:i&&a&&a in i?i[a]:{},playerProgressTime:o,now:o,allRanges:R,ranges:R&&R[a]?{ranges:"string"!=typeof R[a]?R[a]:[],motion_log:P&&P[a]?P[a]:[],stream:a}:{ranges:[],stream:a},motion_log:P&&P[a]?P[a]:[],observableRanges:L,calendarRanges:N,returnData:this.returnData,live:w,loading:E,dvr_ranges_present:S,dvr_enabled:x,paused:_,forceScrollToPoint:O,multiTimeline:this.props.multiTimeline,selected:a,rangesLoading:n,fastSeek:this.fastSeek,volume:b,enableMp4Download:this.props.enableMp4Download,downloadOptions:this.props.downloadOptions,seekFrameEnabled:r,fixedRange:this.props.fixedRange,lockViewLeft:s,lockViewRight:u,ui:k,playerRef:M,localTime:this.props.localtime,maxDuration:this.props.export_limit,tracksAudio:f,tracksVideo:d,activeAudioTrack:h,activeVideoTrack:p,basicApiConfig:j,browser:g,streams:m.streams,isFullscreen:v,noFullscreen:T,zoomSensivity:1,allowExport:F,onEvent:this.onEventCallback,onPause:e,streamInfo:U}));return K?Object(me.createPortal)(Z,K):Z}},{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,f=t.networkError,d=t.seekFrameEnabled,h=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,P=t.ui,R=t.volume,A=t.newTracks,C=t.basicApiConfig,D=t.advert,L=t.live,I=t.liveInView,M=t.info,j=t.playerRef,N=t.showSelectedOnly,F=t.resolution,U=this.props,B=U.episodes_url,q=U.statsSendEnable,V=U.statsSendTime,$=U.headers,z=U.from,G=U.to,W=U.play_duration,H=U.autoPlay,K=U.token,Y=U.info_url,Q=U.streamer_http,X=U.streamer_rtmp,J=U.debug,Z=U.debugTimers,ee=U.panzoom,te=U.customItemWrapper,ne=U.fixedRange,re=U.tracks,ie=U.ptz,oe=U.features,ae=U.wb,se=m.start,ue=m.end,ce=this.getResultAuth();j&&"_video"in j&&j._video&&"currentTime"in j._video&&j._video.currentTime>.25&&(this.canShowTimeline=!0);var le=l.a.createElement(Lt,{returnData:this.returnData,playerType:this.state.player,timeline:this.timeline,canShowTimeline:this.canShowTimeline,playingTimeForPlayers:r,name:this.props.name,muted:o,auth_token:ce,tracks:re,streamer_http:Q||h,streamer_rtmp:X,playback_speed:a,ranges:n,debug:J,debugTimers:Z,paused:this.state.paused,isStalling:T,onMediaInfo:this.dvrMediaInfo,streamingChannels:y,allRanges:s,noAuth:p,selected:v,panzoom:ee,customItemWrapper:te,refreshPlaying:this.refreshPlaying,showPlayButton:u,onClickToPlay:this.onClickToPlay,fastSeekingTo:c,from:z,volume:R,getStats:this.getPlayerStats,onEvent:this.onEventCallback,seekFrameEnabled:d,fixedRange:ne,onDoubleClick:function(){e.toggleFullScreen(),e.setState({showSelectedOnly:!N})},showSelectedOnly:N,ui:P,newTracks:A,autoVideoTrack:g,isPlaying:_,basicApiConfig:C,streamIsLive:w,logoProperties:S,browser:x,playSegmentDurationForPlayers:k,dvr_enabled:O,autoPlay:H,features:oe,advert:D,onSeek:this.onTimelineSeek,fastSeek:this.fastSeek,playerProgressTime:i,live:L,token:K});return l.a.createElement(ve.QueryClientProvider,{client:tr},l.a.createElement(ot.TelemetryContext.Provider,{value:this.telemetryContext},l.a.createElement("div",{className:"dvrContainer".concat(O?"":" noDvr"),ref:this.containerRef,"data-cy":"dvrContainer"},(null==ie?void 0:ie.show_ptz_controls)&&L&&l.a.createElement(Qn.a,{headers:$,ptz_url:null==ie?void 0:ie.api_url}),le,this.getShouldEventsLog()&&l.a.createElement(Pe.a,{logger:this.logger,logEventQueue:this.state.logEventQueue,clearLogEventQueue:this.clearLogEventQueue,streamInfo:this.state.info,getPlayerStats:this.getPlayerStats,getCurrentPlayerName:this.getCurrentPlayerName,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}),f&&l.a.createElement("div",{className:"reconnect"},l.a.createElement("p",null,"Trying to reconnect...")),l.a.createElement("div",{id:"videoThumbnail",className:"videoThumbnail"}),l.a.createElement("div",{id:"forCalendar"}),l.a.createElement("div",{id:"forPopup"}),l.a.createElement("div",{id:"forClearout"}),this.canShowTimeline&&_&&l.a.createElement("div",{className:"Loading".concat(T?" visible":""),"data-cy":"loadingIndicator"},l.a.createElement(je,null)),v&&!("ott"===P&&(z&&G||z&&W))&&Object.keys(C).length&&y.streams.map((function(t,n){if(t.subName&&!t.ureachable){var r="".concat(t.subName,"_").concat(n,"_stream_info");return l.a.createElement(Te.a,{name:t.subName,auth_token:t.auth_token||E,address:t.address||"",basicApiConfig:C,returnData:e.returnData,info_url:Y,isLive:L,onEvent:e.onEventCallback,key:r})}})),v&&se&&ue&&"ott"!==P&&!f&&y.streams.map((function(t,n){if(t.subName&&!t.ureachable){var r="".concat(t.subName,"_").concat(n,"_ranges_getter_not_live");return l.a.createElement(_e.a,{name:t.subName,address:t.address||Q,auth_token:t.auth_token||"",start:ae?z: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:r,resolution:F})}})),v&&I&&"ott"!==P&&!f&&Object.keys(M).length&&y.streams.map((function(t,n){if(t.subName===v){var r="".concat(t.subName,"_").concat(n,"_ranges_getter_live");return l.a.createElement(_e.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:r,resolution:F,start:ae?z:se,end:ue,onEvent:e.onEventCallback})}})),Object.keys(C).length&&O&&B&&v&&!f&&"ott"!==P&&l.a.createElement(Ee.a,{name:v,start:se,end:ue,episodes_url:B,headers:$,basicApiConfig:C,setMotions:this.setMotions,onEvent:this.onEventCallback}),q&&!f&&y.streams.map((function(t,n){if(t.subName&&!t.ureachable){var r="".concat(t.subName,"_").concat(n,"_session_save");return l.a.createElement(xe.a,{name:t.subName,stats:e.getPlayerStats,basicApiConfig:C,statsSendTime:V,key:r})}})))))}}])}(c.Component);nr.propTypes={ui:x.a.oneOf(["ott","nvr"]),fixedRange:x.a.bool,proto:x.a.string,from:x.a.number,to:x.a.number,play_duration:x.a.number,streamer_http:x.a.string,streamer_rtmp:x.a.string,thumbnails_enabled:x.a.bool,auth_token:x.a.string,autoPlay:x.a.bool,locale:x.a.oneOf(["ru","en"]),name:x.a.string,zoom:x.a.number,debug:x.a.bool,debugTimers:x.a.bool,tracks:x.a.string,timeLineElement:x.a.element,onMediaInfo:x.a.func,panzoom:x.a.bool,noMenu:x.a.bool,customItemWrapper:x.a.func,centeredSeek:x.a.bool,multiTimeline:x.a.bool,element:x.a.instanceOf(Element),episodes_url:x.a.string,reportState:x.a.func,streams:x.a.array,streamingChannels:x.a.shape({streams:x.a.array}),enableMp4Download:x.a.bool,version:x.a.string,downloadOptions:x.a.arrayOf(x.a.shape({title:x.a.string,callback:x.a.func})),statsSendEnable:x.a.bool,statsSendTime:x.a.number,onEvent:x.a.func,localtime:x.a.bool,allow_export:x.a.bool,export_limit:x.a.number,start_track:x.a.string,tokenName:x.a.string,token:x.a.string,dvr:x.a.bool,headers:x.a.shape({}),enoughBufferTime:x.a.number,ptz:x.a.shape({show_ptz_controls:x.a.bool,api_url:x.a.string}),wb:x.a.bool,features:x.a.shape({isScreenshotEditingEnabled:x.a.bool})},nr.defaultProps={autoPlay:!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,debug:!1,debugTimers:!1,ptz:{show_ptz_controls:!1,api_url:null}};var rr=nr,ir=n(570),or=n(571);function ar(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 sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}ge.use(We.initReactI18next);var ur=function(e){ge.init({lng:e,fallbackLng:"en",keySeparator:!1,interpolation:{escapeValue:!1},resources:{en:{translation:sr({},ir)},ru:{translation:sr({},or)}}})},cr=i()((function e(){var t=this;a()(this,e),u()(this,"subscribe",(function(e,n,r){t.state=e,t.getStats=n,t.main=r})),u()(this,"setRoot",(function(e){t.root=e})),u()(this,"isPlaying",(function(){return!t.state.isStalling&&t.state.isPlaying})),u()(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}})),u()(this,"isDvrInUse",(function(){return!t.state.live})),u()(this,"DvrInstance",(function(){return t.main})),u()(this,"DvrUnmount",(function(){t.root.unmount()}))}));rr.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(p.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,ur(i.locale)):ur((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="true"==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.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),i.wb&&(r.wb="true"===i.wb)}else ur((null==e?void 0:e.locale)||"en"),r.info_url=e.info_url,r.wb=e.wb,r.allow_export=e.allow_export,"string"==typeof e.muted?r.muted="true"==e.muted:r.muted=e.muted;var s=new cr;r.reportState=s.subscribe;var u="";"undefined"!=typeof VERSION&&(u=VERSION),r.version=u;var c=d()(e,{$merge:r});c.thumbnails_enabled||(c.thumbnails_enabled=!1);var f=Object(h.createRoot)(t);return c.close=function(){f.unmount()},f.render(l.a.createElement(rr,c)),s.setRoot(f),s};t.default=rr},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 R})),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 P(e,t){return e<<t|e>>>32-t}var R=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]=P(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=P(g,5)+O(w,m,v,y)+b+t[w]+d[_]>>>0;b=y,y=v,v=P(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(60),o=n.n(i).a.unstable_batchedUpdates;r.a.setBatchNotifyFunction(o)},function(e,t,n){"use strict";var r=n(137),i=console;Object(r.b)(i)}])}));
57
+ */var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,u=a(e),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))i.call(n,l)&&(u[l]=n[l]);if(r){s=r(n);for(var f=0;f<s.length;f++)o.call(n,s[f])&&(u[s[f]]=n[s[f]])}}return u}},function(e,t,n){var r=n(67),i=n(1142);"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(68)(!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(67),i=n(1145);"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(68)(!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,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return(r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.AdvertPlayer=void 0;const s=a(n(0));t.AdvertPlayer=({url:e,link:t,index:n,setActiveIndex:r,setAdvertDuration:i,onEvent:o})=>{const a=(0,s.useRef)(null),[u,c]=(0,s.useState)(!1),[l,f]=(0,s.useState)(!0),[d,h]=(0,s.useState)(),p=()=>{r(n+1)},g=(0,s.useCallback)(()=>{var e;a.current&&a.current.currentTime&&i(n,null===(e=a.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,s.useEffect)(()=>{if(a.current){const{current:t}=a;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=a.current)||void 0===e||e.removeEventListener("play",m,!1),null===(t=a.current)||void 0===t||t.removeEventListener("ended",p,!1),clearInterval(d)}},[e]),s.default.createElement(s.Fragment,null,s.default.createElement("a",{href:t,target:"_blank","aria-label":"advertise-link",rel:"noreferrer"},s.default.createElement("video",{ref:a,className:"advert-player",style:{width:"100%",height:"100%"},autoPlay:!0,playsInline:!0,muted:!0,controls:!1,"data-cy":"videoAdvertElement",key:"advert_player"})),u&&s.default.createElement("div",{className:"muted_placeholder"},s.default.createElement("button",{type:"button",className:"dvrp-button dvrp-volume-button",onClick:()=>{if(a.current){if(0===a.current.currentTime)return;a.current.muted=!a.current.muted,f(!l)}},"data-cy":"DVR_mute_button"},l?s.default.createElement("span",{className:"icon-volume_off"}):s.default.createElement("span",{className:"icon-volume"}))))}},function(e,t,n){var r=n(67),i=n(1148);"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(68)(!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) hsla(0,0%,100%,.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) hsla(0,0%,100%,.5) rgba(0,0,0,0) rgba(0,0,0,0)}@keyframes arrowColorChangeLeft{0%,100%{border-color:rgba(0,0,0,0) hsla(0,0%,100%,.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) hsla(0,0%,100%,.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){e.exports=function(e){throw new TypeError('"'+e+'" is read-only')},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(67),i=n(1151);"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(68)(!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(39),i=n.n(r),o=n(38),a=n.n(o),s=n(46),u=n.n(s),c=n(30),l=n.n(c),f=n(47),d=n.n(f),h=n(0),p=n.n(h),g=n(1),m=n.n(g),v=n(12);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,Object(v.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(67),i=n(1154);"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(68)(!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:hsla(0,0%,100%,.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(67),i=n(1156);"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(68)(!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:hsla(0,0%,100%,.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(1158)),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(1159),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(67),i=n(1161);"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(68)(!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%}.popup{position:absolute;color:#fff;z-index:100;opacity:0;border-radius:8px;padding:0;top:25px;background:rgba(0,0,0,.75);transition:150ms ease-in-out}.popup.enabled{left:50%;transform:translate(-50%, -50%);padding:8px 12px;opacity:1}.downloadDropdownContent{display:flex;flex-direction:column;gap:.5rem}.downloadOptions{display:flex;flex-direction:column}.downloadOptions_type{padding-left:.5rem;padding-bottom:.25rem;color:#fff;font-size:smaller;border-bottom:1px solid gray}.downloadOptions_item{font-size:smaller;line-height:normal}@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(67),i=n(1163);"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(68)(!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:fit-content;opacity:1}.dropDown .item{background-color:#1e1e1f;text-align:left;padding:8px 24px 8px 16px;color:#fff;display:flex;align-items:center;text-decoration:none;border:none;width:100%}.dropDown .item a{text-decoration:none;color:inherit}.dropDown .item.unclickable:hover{cursor:default;background-color:#1e1e1f}.dropDown .item:hover{background-color:#48484d;cursor:pointer}.dropDown .item:disabled{color:gray}.dropDown .item.active{color:#00ff86}.dropDown .item .left{display:flex;align-items:center;user-select:none}.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}.ddicon{font-size:16px;line-height:16px;margin-right:12px}.smicon{font-size:16px;line-height:16px;margin-right:12px}.downloadOptions_icon{font-size:small;line-height:normal;margin-right:8px}",""]),e.exports=t},function(e,t,n){var r=n(67),i=n(1165);"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(68)(!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(67),i=n(1167);"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(68)(!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(67),i=n(1169);"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(68)(!1)).push([e.i,".ott_time{font-size:13px;margin-left:8px}",""]),e.exports=t},function(e,t,n){var r=n(67),i=n(1171);"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(68)(!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,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return(r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.CameraArrow=void 0;const s=a(n(0));t.CameraArrow=({direction:e,Icon:t,onMove:n})=>{const[r,i]=(0,s.useState)(!1),[o,a]=(0,s.useState)(!1);(0,s.useEffect)(()=>{if(r){const t=setInterval(()=>{n(e),a(!0)},500);return()=>clearInterval(t)}},[r,e,n]);const u=()=>{i(!0),a(!1)},c=()=>{i(!1),o&&setTimeout(()=>n(e,!0),0)};return s.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(67),i=n(1174);"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(68)(!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){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ptzTelemetry=void 0,t.ptzTelemetry={getPtzFields:()=>({event:"request_success",event_message:"Get stream info.json",uts_ms:Date.now()}),errorPtzFields:()=>({event:"request_error",error_type:"ptz_request_error",event_message:"Error in get ptz",uts_ms:Date.now()})}},function(e,t,n){var r=n(67),i=n(1177);"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(68)(!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%;height:100%;min-height:100px;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:48px;bottom:97px;left:0;overflow:hidden;position:absolute;z-index:49;user-select:none;pointer-events:none}.dvrContainer .playersContainer .seekContainer .buttonGroup{display:flex;width:100%;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:hsla(0,0%,100%,.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;width:100%}.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{right:0;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;cursor:pointer;position:absolute;left:50%;top:50%;margin-top:-80px;margin-left:-80px}.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;cursor:pointer;z-index:10;position:absolute;left:50%;top:50%;margin-top:-80px;margin-left:-80px}.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 hsla(0,0%,100%,.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:hsla(0,0%,100%,.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 hsla(0,0%,100%,.15)}.dvrContainer .timeline__calendarContent .calendar .day-entries:nth-child(3){border-top:1px solid hsla(0,0%,100%,.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 hsla(0,0%,100%,.15);border-bottom:1px solid hsla(0,0%,100%,.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 hsla(0,0%,100%,.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:calc(100% - 97px);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(67),i=n(1179);"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(68),i=n(1180),o=n(1181),a=n(1182),s=n(1183),u=n(1184);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(38),i=n.n(r),o=n(39),a=n.n(o),s=n(13),u=n.n(s),c=(n(574),n(1067),n(1068),n(0)),l=n.n(c),f=n(148),d=n.n(f),h=n(548),p=n(76),g=n(97),m=n.n(g),v=n(46),y=n.n(v),b=n(30),_=n.n(b),w=n(47),E=n.n(w),S=n(1),x=n.n(S);const k=e=>"string"==typeof e,T=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},O=e=>null==e?"":""+e,P=/###/g,R=e=>e&&e.indexOf("###")>-1?e.replace(P,"."):e,A=e=>!e||k(e),C=(e,t,n)=>{const r=k(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(A(e))return{};const t=R(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return A(e)?{}:{obj:e,k:R(r[i])}},D=(e,t,n)=>{const{obj:r,k:i}=C(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=C(e,a,Object);for(;void 0===s.obj&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=C(e,a,Object),s&&s.obj&&void 0!==s.obj[`${s.k}.${o}`]&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},L=(e,t)=>{const{obj:n,k:r}=C(e,t);if(n)return n[r]},I=(e,t,n)=>{const r=L(e,n);return void 0!==r?r:L(t,n)},M=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?k(e[r])||e[r]instanceof String||k(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):M(e[r],t[r],n):e[r]=t[r]);return e},j=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var N={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const F=e=>k(e)?e.replace(/[&<>"'\/]/g,e=>N[e]):e;const U=[" ",",","?","!",";"],B=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),q=function(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},V=e=>e&&e.replace("_","-"),$={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 z{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||$,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:(k(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new z(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new z(this.logger,e)}}var G=new z;class W{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])})}}}class H extends W{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):k(n)&&i?a.push(...n.split(i)):a.push(n)));const s=L(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),!s&&o&&k(n)?q(this.data&&this.data[e]&&this.data[e][t],n,i):s}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),D(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)(k(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=L(this.data,a)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?M(s,n,i):s={...s,...n},D(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 K={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 Y={};class Q extends W{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=G.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||((e,t,n)=>{t=t||"",n=n||"";const r=U.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;const i=B.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:k(i)?[i]: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{key:e,namespaces:k(i)?[i]: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,v=!k(f)&&"boolean"!=typeof f&&"number"!=typeof f;if(!(m&&f&&v&&["[object Number]","[object Function]","[object RegExp]"].indexOf(p)<0)||k(g)&&Array.isArray(f))if(m&&k(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&&!k(t.count),d=Q.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))}else{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}}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=k(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&&!k(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||r.usedLng,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=this.language||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=k(a)?[a]:a;return null!=e&&s&&s.length&&!1!==n.applyPostProcessor&&(e=K.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 k(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&&!k(a.count),f=l&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==a.context&&(k(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,!Y[`${h[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(Y[`${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&&!k(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}}const X=e=>e.charAt(0).toUpperCase()+e.slice(1);class J{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=G.create("languageUtils")}getScriptPartFromCode(e){if(!(e=V(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=V(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(k(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(e){}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]=X(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]=X(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=X(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)),k(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 k(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))):k(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}}let Z=[{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}],ee={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)};const te=["v1","v2","v3"],ne=["v4"],re={zero:0,one:1,two:2,few:3,many:4,other:5};class ie{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=G.create("pluralResolver"),this.options.compatibilityJSON&&!ne.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=(()=>{const e={};return Z.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:ee[t.fc]}})}),e})(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){const n=V("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(n,{type:r})}catch(n){if(!e.match(/-|_/))return;const r=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(r,t)}return this.pluralRulesCache[i]=o,o}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)=>re[e]-re[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!te.includes(this.options.compatibilityJSON)}}const oe=function(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=I(e,t,n);return!o&&i&&k(n)&&(o=q(e,n,r),void 0===o&&(o=q(t,n,r))),o},ae=e=>e.replace(/\$/g,"$$$$");class se{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=G.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:F,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?j(i):o||"{{",this.suffix=a?j(a):s||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":l||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=f?j(f):d||j("$t("),this.nestingSuffix=h?j(h):p||j(")"),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||{},u=e=>{if(e.indexOf(this.formatSeparator)<0){const i=oe(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(oe(t,s,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:o})};this.resetRegExp();const c=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,l=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>ae(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?ae(this.escape(e)):ae(e)}].forEach(t=>{for(a=0;i=t.regex.exec(e);){const n=i[1].trim();if(o=u(n),void 0===o)if("function"==typeof c){const t=c(e,i,r);o=k(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else{if(l){o=i[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),o=""}else k(o)||this.useRawValueToEscape||(o=O(o));const s=t.safeValue(o);if(e=e.replace(i[0],s),l?(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]:{};const 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&&!k(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&&!k(r))return r;k(r)||(r=O(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}}const ue=e=>{const t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const a=r+JSON.stringify(o);let s=t[a];return s||(s=e(V(r),i),t[a]=s),s(n)}};class ce{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=G.create("formatter"),this.options=e,this.formats={number:ue((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:ue((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:ue((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:ue((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:ue((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=ue(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(e=>e.indexOf(")")>-1)){const e=i.findIndex(e=>e.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{const{formatName:i,formatOptions:o}=(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 le extends W{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=G.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),!t&&n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const a={};this.queue.forEach(n=>{((e,t,n,r)=>{const{obj:i,k:o}=C(e,t,Object);i[o]=i[o]||[],i[o].push(n)})(n.loaded,[i],o),((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();k(e)&&(e=this.languageUtils.toResolveHierarchy(e)),k(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)}}}const fe=()=>({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:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),k(e[1])&&(t.defaultValue=e[1]),k(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}}),de=e=>(k(e.ns)&&(e.ns=[e.ns]),k(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),k(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),he=()=>{};class pe extends W{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=de(e),this.services={},this.logger=G,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&&(k(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=fe();this.options={...r,...this.options,...de(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);const i=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?G.init(i(this.modules.logger),this.options):G.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=ce);const n=new J(this.options);this.store=new H(this.options.resources,this.options);const o=this.services;o.logger=G,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new ie(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 se(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new le(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 Q(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=he),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=T(),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]:he;const n=k(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=T();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=he),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&&K.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=T();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=k(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=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 k(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||0===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=T();return this.options.ns?(k(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=T();k(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 J(fe());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 pe(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]:he;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new pe(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 H(this.store.data,r),i.services.resourceStore=i.store),i.translator=new Q(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 ge=pe.createInstance();ge.createInstance=pe.createInstance;ge.createInstance,ge.dir,ge.init,ge.loadResources,ge.reloadResources,ge.use,ge.changeLanguage,ge.getFixedT,ge.t,ge.exists,ge.setDefaultNamespace,ge.hasLoadedNamespace,ge.loadNamespaces,ge.loadLanguages;var me=n(60),ve=n(173),ye=n(277),be=n(349),_e=n.n(be),we=n(550),Ee=n.n(we),Se=n(551),xe=n.n(Se),ke=n(552),Te=n.n(ke),Oe=n(72),Pe=n.n(Oe),Re=n(553),Ae=n(554),Ce=n(89),De=n(12),Le=n(347),Ie=n(118),Me=function(){return l.a.createElement("div",{className:"spinnerThreeBounce"},l.a.createElement("div",{className:"bounce bounce1"}),l.a.createElement("div",{className:"bounce bounce2"}),l.a.createElement("div",{className:"bounce bounce3"}))},je=l.a.memo(Me),Ne=n(291),Fe=n.n(Ne),Ue=n(222),Be=n.n(Ue),qe=n(201),Ve=n.n(qe),$e=n(344),ze=n(64),Ge=n.n(ze),We=n(69),He=n(555),Ke=n.n(He),Ye=n(348),Qe=n(556),Xe=n(557),Je=n(558),Ze=n(559);var et=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)}},tt=n(560),nt=n.n(tt),rt=n(561),it=n.n(rt),ot=n(87);function at(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 st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ut(e,t,n){return t=_()(t),y()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],_()(e).constructor):t.apply(e,n))}var ct={MSEPlayer:Qe.MSEPlayer,HLSPlayer:Xe.HLSPlayer,WebRTCPlayer:Je.WebRTCPlayer,NativeiOSPlayer:Ze.NativeiOSPlayer},lt=function(){return l.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 8.467 7.753",style:{width:"24px",height:"24px"},fill:"#fff"},l.a.createElement("defs",null),l.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"}))},ft=function(e){function t(){var e;return a()(this,t),(e=ut(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.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=et(e.refreshZoom.bind(e),150),e.setRef=e.setRef.bind(e),e.state={noDvrHere:!1,shouldStartPlay:!1,scale:1,isSelected:!1,shouldChangeTracks:!1,players:[],noLive:!1,noVideo:!1,isSnapshotModalOpen:!1,snapshotDataUrl:null,snapshotNaming:void 0},e.lastTap=0,e}return E()(t,e),i()(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:"UNSAFE_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)),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:"componentDidCatch",value:function(e){e instanceof Error&&this.onHlsEvent({key:Date.now(),data:{event:"player_error",error_name:e.name,error_message:e.message}}),console.error("CATCH AN ERROR!")}},{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:"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,f=r.tracksAudio,d=r.multiStream,h=r.autoVideoTrack,g=r.newTracks,m=r.streamer_http,v=r.auth_token,y=r.returnData,b=r.ui,_=this.state.players,w=this.state.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 E="live"===e;this._video=null,y("playerLink",null);var S={name:i,currentTime:e,onMediaInfo:u,setRef:this.setRef,isSelected:c===i,handleFullScreen:this.handleFullScreen,newTracks:g,debug:o,debugTimers:a},x=this.getPlayListUrl(e,E?void 0:n,E);if(Object(De.isIOS)()&&!("MediaSource"in window)&&"webrtc"!==l)_.push(st(st({type:"NativeiOSPlayer",url:x,setNoLiveError:function(e){t.setState({noLive:e})}},S),{},{key:"ios_player_".concat(e,"_").concat(_.length+1),playerName:Ie.PLAYER_NAME.NATIVE}));else if(E&&"mse"===l)x=this.getMseUrl(),_.push(st(st({type:"MSEPlayer",url:x,onEvent:this.onHlsEvent,tracksAudio:f,multiStream:d,shouldChangeTracks:w,setNoLiveError:function(e){t.setState({noLive:e})},setNoVideoError:function(e){t.setState({noVideo:e})}},S),{},{key:"mse_player_".concat(e,"_").concat(_.length+1),playerName:Ie.PLAYER_NAME.MSE}));else if(E&&"webrtc"===l){var k="".concat(m,"/").concat(i),T=Object(p.decode)(v),O=Object.keys(T),P=Ge()(O,1),R=P[0];_.push(st(st({type:"WebRTCPlayer",url:k,onEvent:this.onHlsEvent,tracksAudio:f,multiStream:d,shouldChangeTracks:w,authTokenName:R,tokenValue:T[R]},S),{},{key:"webrtc_player_".concat(e,"_").concat(_.length+1),playerName:Ie.PLAYER_NAME.WEBRTC}))}else _.push(st(st({type:"HLSPlayer",url:x,onHlsEvent:this.onHlsEvent,autoVideoTrack:h,ottConfig:"ott"===b,setNoLiveError:function(e){t.setState({noLive:e})},setNoVideoError:function(e){t.setState({noVideo:e})}},S),{},{key:"hls_player_".concat(e,"_").concat(_.length+1),playerName:Ie.PLAYER_NAME.HLS}));y("currentPlayerName",(_=[_[_.length-1]])[0].playerName),this.setState({players:_})}}},{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=r.to,l=r.from,f=r.ui,d=s.params,h=t||3600;return"ott"===f&&(h=c-l||3600),this._getPlayListUrl(o,i,e,h,a||Object(p.stringify)(d),n,u)}},{key:"_getPlayListUrl",value:function(e,t,n,r,i,o,a){var s="";return"string"==typeof i&&i.trim().length>0?s="?".concat(i):a&&(s="?token=".concat(a)),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(p.stringify)(o),i].filter((function(e){return e})).join("&"))}},{key:"handleFullScreen",value:function(){this.props.allowFullscreen}},{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,c=this.context,l=c.getCommonTelemetryFields,f=c.sendMetrics,d=l();if(u){var h="snapshot_".concat(n||t,"_").concat(e,".png"),p=s.getContext("2d"),g=u.videoWidth,m=u.videoHeight;if(s.width=g,s.height=m,p.fillRect(0,0,g,m),p.drawImage(u,0,0,g,m),a){o("fullscreen",!1),this.onShotModalOpen(!0);var v=s.toDataURL("image/png");this.setState({snapshotDataUrl:v,snapshotNaming:h})}a||(f(st({event:"image_download",event_message:"Screenshot downloaded",uts_ms:Date.now()},d)),s.toBlob((function(e){e&&Object(Ye.saveAs)(e,h)})))}else f(st({event:"screenshot_click_ignored",event_message:"Click on take snapshot without video",uts_ms:Date.now()},d))}},{key:"setSnapshotRef",value:function(e){!this.snapshotRef&&e&&(this.snapshotRef=e)}},{key:"setRef",value:function(e,t){var n=this,r=this.props,i=r.setPlayersRef,o=r.name,a=r.panzoomEnable;if(this._video&&(this._video=null),e&&(this._video=e,i(o,e,t)),a)try{this.zoomElement=Ke()(e,{maxZoom:10,minZoom:1,smoothScroll:!1,zoomDoubleClickSpeed:1,filterKey:function(){return!0},onDoubleClick:function(){return!1}}),this.zoomElement.on("transform",(function(e){n.calculatePos(e)})),window.addEventListener("resize",this.refreshZoom),this.zoomElement.smoothZoomAbs(0,0,1)}catch(e){console.error(e)}}},{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});var e=this.context,t=e.getCommonTelemetryFields,n=e.sendMetrics,r=t();n(st({event:"open_screenshot_editor_modal",event_message:"Screenshot editor modal opened",uts_ms:Date.now()},r))}},{key:"onShotModalClose",value:function(){this.setState({isSnapshotModalOpen:!1});var e=this.context,t=e.getCommonTelemetryFields,n=e.sendMetrics,r=t();n(st({event:"close_screenshot_editor_modal",event_message:"Screenshot editor modal closed",uts_ms:Date.now()},r))}},{key:"render",value:function(){var e,t,n,r,i,o,a,s,u=this,c=this.state,f=c.scale,d=c.players,h=c.noLive,p=c.isSnapshotModalOpen,g=c.snapshotDataUrl,v=c.snapshotNaming,y=this.onShotModalClose,b=this.props,_=b.currentTime,w=b.name,E=b.t,S=b.returnData,x=b.muted,k=b.paused,T=b.newTracks,O=b.playback_speed,P=b.ui,R=b.features,A=h||this.props.noDVR&&"live"!==_||this.state.noDvrHere&&!this.props.noDVR&&"live"!==_,C=Boolean(null==R?void 0:R.isScreenshotEditingEnabled)||void 0===(null==R?void 0:R.isScreenshotEditingEnabled),D=d.map((function(e){var t=ct[e.type];return l.a.createElement(t,Be()({},e,{muted:x,paused:k,newTracks:T,speed:O,returnData:S}))})),L=l.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!==f?l.a.createElement("button",{type:"button","aria-label":"resetZoom",className:"resetZoomBtn",onMouseDown:this.resetZoom,onTouchEnd:this.resetZoom},l.a.createElement(lt,null)):null,l.a.createElement("div",{className:"no-live-wrapper","data-cy":"playErrorWraper",style:{opacity:"".concat(A?"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(m()(s),[l.a.createElement("p",{key:"forbidden_".concat(w)},E("dvr_mse_forbidden"))]):(n&&(s=[].concat(m()(s),[l.a.createElement("p",{key:"caution_networkError_".concat(w)},E("dvr_mse_network_error"))])),h&&(s=[].concat(m()(s),[l.a.createElement("p",{key:"caution_noLive_".concat(w)},E("dvr_mse_no_live_stream"))])),r&&"ott"!==P&&"live"!==_&&(s=[].concat(m()(s),[l.a.createElement("p",{key:"caution_currentTime_".concat(w)},E("dvr_mse_no_dvr"))])),!o||r||a||(s=[].concat(m()(s),[l.a.createElement("p",{key:"caution_noDvrHere_".concat(w)},E("dvr_mse_no_dvr_recording_here"))])),a&&(s=[].concat(m()(s),[l.a.createElement("p",{key:"caution_noVideo_".concat(w)},E("dvr_error_video_stream"))]))),s)),D,l.a.createElement("canvas",{className:"dvr-player-snapshot",style:{display:"none"},ref:this.setSnapshotRef}));return l.a.createElement(l.a.Fragment,null,"function"==typeof this.props.customItemWrapper?this.props.customItemWrapper(L,this.props.item,this.props.index):L,C&&p&&l.a.createElement(nt.a,{title:E("image_editor"),isOpen:p,onClose:y},g&&l.a.createElement(it.a,{imageName:v,imageUrl:g})))}}])}(c.Component);ft.propTypes={returnData:x.a.func.isRequired,playback_speed:x.a.number,currentTime:x.a.oneOfType([x.a.number,x.a.string]),muted:x.a.bool.isRequired,volume:x.a.number,streamer_http:x.a.string.isRequired,name:x.a.string.isRequired,selected:x.a.string,auth_token:x.a.string,paused:x.a.bool,debug:x.a.bool,debugTimers:x.a.bool,tracks:x.a.string,onPlayingChangeHandler:x.a.func,onProgress:x.a.func,onSpeedChanged:x.a.func,changeUTC:x.a.func,hls:x.a.bool,noDVR:x.a.bool,networkError:x.a.bool,panzoomEnable:x.a.bool,playerType:x.a.string,index:x.a.number,item:x.a.shape({}),multiStream:x.a.bool,fastSeekingTo:x.a.string,from:x.a.number,to:x.a.number,onEvent:x.a.func,setPlayersRef:x.a.func,fixedRange:x.a.bool,ui:x.a.oneOf(["ott","nvr"]),startingUTC:x.a.number,allowFullscreen:x.a.bool,autoVideoTrack:x.a.bool,streamIsLive:x.a.bool,browser:x.a.string,playSegmentDuration:x.a.number,newTracks:x.a.array,basicApiConfig:x.a.shape({token:x.a.string,tokenName:x.a.string,auth_token:x.a.string,streamer_http:x.a.string}),features:x.a.shape({isScreenshotEditingEnabled:x.a.bool})},ft.defaultProps={allowFullscreen:!0,playback_speed:1},ft.contextType=ot.TelemetryContext;var dt=Object(We.withTranslation)()(ft),ht=function(){return l.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"},l.a.createElement("circle",{cx:"30",cy:"30",r:"30",fill:"gray",opacity:"0.7"}),l.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"}),l.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"}))},pt=n(71),gt=n.n(pt),mt=gt()({displayName:"LtBtn",className:"LtBtn",render:function(){return l.a.createElement("i",{style:{width:"14px",height:"14px"}},l.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"},l.a.createElement("path",{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M9 2L4 7l5 5h0"})))}}),vt=l.a.memo(mt),yt=gt()({displayName:"GtBtn",className:"GtBtn",render:function(){return l.a.createElement("i",{style:{width:"14px",height:"14px"}},l.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"},l.a.createElement("path",{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M5 2l5 5-5 5h0"})))}}),bt=l.a.memo(yt);function _t(e,t,n){return t=_()(t),y()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],_()(e).constructor):t.apply(e,n))}var wt=function(e){function t(){return a()(this,t),_t(this,t,arguments)}return E()(t,e),i()(t,[{key:"render",value:function(){var e=this.props.frameSeek;return l.a.createElement("div",{className:"seekContainer"},l.a.createElement("div",{className:"buttonGroup"},l.a.createElement("button",{"data-cy":"btnFiveFramesBack",onTouchEnd:function(t){t.stopPropagation(),e(-5)},onMouseUp:function(t){t.stopPropagation(),e(-5)}},l.a.createElement(vt,null),l.a.createElement("b",null,"5")),l.a.createElement("button",{"data-cy":"btnFrameBack",onTouchEnd:function(t){t.stopPropagation(),e(-1)},onMouseUp:function(t){t.stopPropagation(),e(-1)}},l.a.createElement(vt,null)),l.a.createElement("div",null),l.a.createElement("button",{"data-cy":"btnFrameForward",onTouchEnd:function(t){t.stopPropagation(),e(1)},onMouseUp:function(t){t.stopPropagation(),e(1)}},l.a.createElement(bt,null)),l.a.createElement("button",{"data-cy":"btnFiveFramesForward",onTouchEnd:function(t){t.stopPropagation(),e(5)},onMouseUp:function(t){t.stopPropagation(),e(5)}},l.a.createElement("b",null,"5"),l.a.createElement(bt,null))))}}])}(c.Component);wt.propTypes={frameSeek:x.a.func.isRequired};var Et=wt,St=n(294),xt=n(562),kt=n(563),Tt=function(){return l.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"},l.a.createElement("circle",{cx:"30",cy:"30",r:"30",fill:"gray",opacity:"0.7"}),l.a.createElement("path",{d:"M22 15h6v30h-6zM32 15h6v30h-6z",fill:"#fff"}))},Ot=(n(1147),function(e){var t=e.direction,n=e.seek,r=e.isAnimating;return l.a.createElement("div",{className:"arrow-effect ".concat(t," ").concat(r?"animate":"")},l.a.createElement("div",{className:"arrows"},l.a.createElement("div",{className:"arrow-triangle"}),l.a.createElement("div",{className:"arrow-triangle"}),l.a.createElement("div",{className:"arrow-triangle"})),l.a.createElement("div",{className:"time-label"},"left"===t?"-".concat(n," сек"):"+".concat(n," сек")))}),Pt=n(350),Rt=n.n(Pt);function At(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 Ct(e,t,n){return t=_()(t),y()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],_()(e).constructor):t.apply(e,n))}var Dt=function(e){function t(){var e;return a()(this,t),e=Ct(this,t),u()(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.onEventCb=e.onEventCb.bind(e),e.frameSeek=e.frameSeek.bind(e),e.handleTogglePlayer=e.handleTogglePlayer.bind(e),e.callIfMouseStill=Rt()(e.handleChildClick),e.callIfTouchStill=Rt()(e.handleTogglePlayer),e.state={rows:0,cols:0,autoformat:!1,streamsNum:0,playersRefs:{},showArrow:!1,arrowDirection:""},e.autoPlayChecked=!1,e.pauseTimeoutId=void 0,e}return E()(t,e),i()(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:"UNSAFE_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,n){var r=this.state.playersRefs;r[e]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?At(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({ref:t},n&&{mseInstance:n}),this.setState({playersRefs:r})}},{key:"frameSeek",value:function(e){var t=this.state.playersRefs;Object.keys(t).forEach((function(n){t[n].ref.currentTime+=e/30}))}},{key:"onEventCb",value:function(e){var t=this.props,n=t.onEvent,r=t.name;n&&n(r,e)}},{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,f=i.autoPlay,d=i.token,h=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,P=i.autoVideoTrack,R=i.streamIsLive,A=i.browser,C=i.isPlaying,D=i.logoProperties,L=i.basicApiConfig,I=i.playSegmentDurationForPlayers,M=i.dvr_enabled,j=i.newTracks,N=i.ui,F=i.from,U=i.selected,B=i.advert,q=i.showSelectedOnly,V=i.features,$=i.to,z=v.streams[0],G={name:z.subName,address:z.address||"",auth_token:z.auth_token||"",hidden:!E&&!y,hasPreview:!1,basicApiConfig:L},W=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.a.createElement(ht,null);return l.a.createElement("div",{"data-cy":"clickToPlay",className:t,onClick:e.props.onClickToPlay},n)},H=function(){return B.length>0&&l.a.createElement(kt.Advert,{advert:B,returnData:o,onEvent:k})};if(E)return"ott"===N&&void 0===F?l.a.createElement(c.Fragment,null,H(),W("clickToPlay zIndexMax"),l.a.createElement(St.Preview,G)):"ott"===N?l.a.createElement(c.Fragment,null,H(),W("clickToRestart",l.a.createElement("span",{className:"icon-one"})),l.a.createElement(St.Preview,Be()({},G,{from:F}))):W("clickToPlay");var K=function(t){var n={};switch(t){case"mse":n.tracks=e.props.tracks}return n}(s);return v.streams.map((function(t,i){var c,N,B=U===t.subName;if(!t.subName)return null;if(0===Object.keys(t).length){var z="".concat(t.subName,"_empty_player_").concat(i);return l.a.createElement("div",{className:"PlayerInstance",style:{width:"".concat(100/r,"%"),maxHeight:"".concat(100/n,"%"),order:"".concat(i)},onDoubleClick:O,key:z},"function"==typeof e.props.customItemWrapper?e.props.customItemWrapper(null,null,i):null)}var G="".concat(t.subName,"_player_").concat(i),W="".concat(t.subName,"_DvrPlayerWrapper_").concat(i),H=Object($e.a)(null==b?void 0:b[t.subName]),Y=!H&&(null===(c=e.props.playingTimeForPlayers)||void 0===c?void 0:c[t.subName]),Q="live"===(null===(N=e.props.playingTimeForPlayers)||void 0===N?void 0:N[t.subName]),X="ott"===e.props.ui,J=Y||Q||X?e.props.playingTimeForPlayers[t.subName]:"stop",Z=!H||"string"==typeof b[t.subName]||!M;return l.a.createElement("div",{className:"PlayerInstance".concat(B?" visible":"").concat(q&&!B?" hidden":"").concat(q&&B?" 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:G},v.renderTitles&&t.renderTitle&&l.a.createElement("div",{className:"CameraName"},B&&l.a.createElement("span",null,"• "),t.title||t.subName),(!C||E)&&!f&&l.a.createElement(St.Preview,{name:t.subName,address:t.address||"",auth_token:t.auth_token||"",hidden:!E&&!y,hasPreview:!1,basicApiConfig:L,from:F}),Object.keys(D).length>0&&D[t.subName]&&l.a.createElement(xt.Logo,{name:t.subName,logoProperties:D,basicApiConfig:L}),o&&l.a.createElement(dt,Be()({},K,{key:W,name:t.subName||u,main:t.main,item:t,index:i,noDvr:Z,networkError:"string"==typeof b[t.subName],noAuth:T[t.subName]||!1,streamer_http:t.address||e.props.streamer_http,currentTime:J,playSegmentDuration:I[t.subName],auth_token:t.auth_token||e.props.auth_token,multiStream:e.state.streamsNum>1,fastSeekingTo:e.props.fastSeekingTo,from:F,to:$,fixedRange:e.props.fixedRange,ui:e.props.ui,setPlayersRef:e.setPlayersRef,allowFullscreen:"nvr"===e.props.ui,streamIsLive:R[t.subName],browser:A,returnData:o,playback_speed:a,autoPlay:f,token:d,muted:h,volume:S,debug:g,paused:p,debugTimers:m,selected:e.props.selected,playerType:s,playing:e.props.playingStarted,basicApiConfig:L,isStalling:y,onMediaInfo:_,newTracks:j,panzoomEnable:e.props.panzoom,customItemWrapper:w,onEvent:k,getStats:x,autoVideoTrack:P,features:V,timeline:e.props.timeline,canShowTimeline:e.props.canShowTimeline})))}))}},{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,t=this.props,n=t.returnData,r=t.paused,i=t.live,o=t.seekFrameEnabled,a=this.state.playersRefs;clearTimeout(this.pauseTimeoutId),this.pauseTimeoutId=setTimeout(Fe()(Ve.a.mark((function t(){var s,u;return Ve.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r){t.next=1;break}Object.values(a).forEach((function(e){"mseInstance"in e?e.mseInstance.pause():e.ref.pause()})),n("paused",!r),i||n("seekFrameEnabled",!r),e.onEventCb({key:Date.now(),data:{event:"play_pause"}}),t.next=4;break;case 1:return t.prev=1,s=Object.values(a).filter((function(e){return!("mseInstance"in e)})).map((function(e){return e.ref.play()})),Object.values(a).forEach((function(e){if("mseInstance"in e)try{e.mseInstance.play()}catch(e){console.warn("mseInstance.play() error",e)}})),t.next=2,Promise.allSettled(s);case 2:n("paused",!r),o||i||n("seekFrameEnabled",!0),e.onEventCb({key:Date.now(),data:{event:"play_resume"}}),t.next=4;break;case 3:t.prev=3,u=t.catch(1),console.error(u);case 4:case"end":return t.stop()}}),t,null,[[1,3]])}))),200)}},{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(){this.props.paused?this.showControl("stop"):this.showControl("play"),this.handlePause()}},{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,f=s.countSeek,d=s.showPauseButton,h=s.showPlayButton,p=s.isAnimating,g="webrtc"===r&&"live"===i;return l.a.createElement("div",{className:"playersContainer".concat(n?"":" large").concat("ott"===o?" ott":""),style:{zIndex:h&&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&&l.a.createElement(Et,{frameSeek:this.frameSeek}),this.packPlayers(),this.props.canShowTimeline&&this.props.timeline(this.handlePause.bind(this)),d&&l.a.createElement(Tt,null),h&&l.a.createElement(ht,null),u&&l.a.createElement(Ot,{direction:c,seek:f,isAnimating:p}))}}])}(c.Component);Dt.propTypes={returnData:x.a.func.isRequired,playback_speed:x.a.number,playerType:x.a.string,playingTimeForPlayers:x.a.any,debug:x.a.bool,debugTimers:x.a.bool,autoPlay:x.a.bool,muted:x.a.bool,name:x.a.string,isStalling:x.a.bool,auth_token:x.a.any,streamer_http:x.a.string,paused:x.a.bool,allRanges:x.a.any,noAuth:x.a.any,selected:x.a.string,streamingChannels:x.a.shape({cols:x.a.number,rows:x.a.number,streams:x.a.arrayOf(x.a.any)}),onMediaInfo:x.a.func,panzoom:x.a.bool,customItemWrapper:x.a.func,showPlayButton:x.a.bool,fastSeekingTo:x.a.string,from:x.a.number,to:x.a.number,volume:x.a.number,onEvent:x.a.func,getStats:x.a.func,seekFrameEnabled:x.a.bool,fixedRange:x.a.bool,ui:x.a.oneOf(["ott","nvr"]),onDoubleClick:x.a.func,newTracks:x.a.array,autoVideoTrack:x.a.bool,isPlaying:x.a.bool,basicApiConfig:x.a.shape({token:x.a.string,tokenName:x.a.string,auth_token:x.a.string,streamer_http:x.a.string}),streamIsLive:x.a.shape({}),logoProperties:x.a.any,browser:x.a.string,playSegmentDurationForPlayers:x.a.any,dvr_enabled:x.a.bool,advert:x.a.array,showSelectedOnly:x.a.bool,fastSeek:x.a.func,onSeek:x.a.func,playerProgressTime:x.a.oneOfType([x.a.string,x.a.number]),live:x.a.bool,token:x.a.string,features:x.a.shape({isScreenshotEditingEnabled:x.a.bool})},Dt.defaultProps={playerType:"mse",showPlayButton:!1};var Lt=l.a.memo(Dt),It=(n(1149),n(1150),gt()({displayName:"DvrTimeMarkers",className:"DvrTimeMarkers",propTypes:{duration:x.a.number.isRequired,from:x.a.number,localTime:x.a.bool,width:x.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(De.pad2)(i),":").concat(Object(De.pad2)(o),":").concat(Object(De.pad2)(a))}var s=function(){return"".concat(Object(De.pad2)(i),":").concat(Object(De.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(De.pad2)(i),"-").concat(Object(De.pad2)(t),"-").concat(Object(De.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 d()(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 l.a.createElement("span",{key:e.utc,style:{left:o},className:"".concat(e.label.length>5?"day":"")},l.a.createElement("span",{className:"marker".concat(e.label.length>5?" day":"")}),this.label(e.utc,i.time))}.bind(this))},render:function(){return l.a.createElement("div",{className:"time-markers","data-cy":"time-markers"},this.timeMarkers())}})),Mt=l.a.memo(It),jt=n(564),Nt=n(565),Ft=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}),[])},Ut={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=Ft(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:Ft};function Bt(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 qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bt(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vt(e,t,n){return t=_()(t),y()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],_()(e).constructor):t.apply(e,n))}var $t=function(e){function t(){var e;return a()(this,t),(e=Vt(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 E()(t,e),i()(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:c}),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}),i("observableRanges",{start:Math.round(u),end:r.end}),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=qt(qt({},r),i)})),n){var i=this.afterResize(this.state);r=qt(qt({},r),i)}this.props.multiTimeline||r.renderRanges&&r.renderRanges[this.props.selected]&&(r.renderRanges=u()({},this.props.selected,r.renderRanges[this.props.selected]));var o=this.utc_change(this.props.now,this.state);r=qt(qt({},r),o),this.setState(r)}},{key:"setPercent",value:function(e,t){this.setState(u()({},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}),d()(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=m()(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]=qt(qt(qt({},o[r]),u),c),i=qt(qt({},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=qt(qt(qt(qt({},i),f),d),l)}return i}}},{key:"refreshMotion",value:function(e,t){return e?{motion_data:e,motion:Ut.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:Ut.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=Object(De.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 l.a.createElement("button",{onMouseDown:t,onTouchStart:t,onMouseUp:n,onTouchEnd:n,type:"button",className:r},l.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=Ge()(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=Ge()(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,f=o.renderRanges,d=o.motion,h=o.visible_offset,p=o.play_progress;return l.a.createElement("div",{ref:this.setWindowRef,className:"timeline__timelineView","data-cy":"timelineView",onDoubleClick:i},c&&l.a.createElement("div",{className:"markers_wrapper",draggable:!1},l.a.createElement(Mt,{ref:this.setTimeMarkersRef,from:a,duration:s,width:u||0,localTime:n})),c&&l.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&&l.a.createElement(jt.DvrNowMarker,{now:p,width:c}),l.a.createElement(Nt.DvrRanges,{allRangeInfo:f,motion:d,debug:r,left:h,width:c,onUtcSeek:this.onMotionSeek,onHandleClick:this.onMouseClick})))}}])}(c.Component);$t.propTypes={utc:x.a.any,onRangesRequested:x.a.func,onSeek:x.a.func,onCalendarToggle:x.a.func,onCallThumbnail:x.a.func,thumbnails_enabled:x.a.bool,locale:x.a.oneOf(["ru","en"]),from:x.a.number,now:x.a.oneOfType([x.a.string,x.a.number]),range_info:x.a.object,zoom:x.a.number,debug:x.a.bool,localTime:x.a.bool,is_mobile:x.a.bool,http_stream_url:x.a.string,auth_token:x.a.string,currentTime:x.a.any,playerUtc:x.a.number,returnData:x.a.func,observableRanges:x.a.shape({start:x.a.number,end:x.a.number}),allRangeInfo:x.a.any,multiTimeline:x.a.bool,selected:x.a.string,downloadModal:x.a.bool,toggleDownload:x.a.func,returnDomSizes:x.a.func,returnVisual:x.a.func,fixedRange:x.a.bool,lockViewLeft:x.a.number,lockViewRight:x.a.number,pointSelectTime:x.a.func,selectionTimeline:x.a.bool,zoomSensivity:x.a.number},$t.defaultProps={};var zt=$t;function Gt(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 Wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ht(e,t,n){return t=_()(t),y()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],_()(e).constructor):t.apply(e,n))}var Kt=function(e){function t(){var e;return a()(this,t),(e=Ht(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 E()(t,e),i()(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(De.substitute)("{year}/{month}/{day}/{hours}/{minutes}/{seconds}",{year:t.getUTCFullYear(),month:Object(De.pad2)(t.getUTCMonth()+1),day:Object(De.pad2)(t.getUTCDate()),hours:Object(De.pad2)(t.getUTCHours()),minutes:Object(De.pad2)(t.getUTCMinutes()),seconds:Object(De.pad2)(t.getUTCSeconds())}),this.path}},{key:"humanify",value:function(e){var t=this.props.localTime;return"".concat(Object(De.humanDate)(e,t)," ").concat(Object(De.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(De.substitute)("{streamUrl}/{path}{postfix}{authToken}",{streamUrl:i,path:this.utcToPath(e),postfix:"video"===t&&!1===o?"-preview.mp4":".jpg",authToken:s||"?".concat(Object(p.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,f=t.utc,d=t.position,h=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:d,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=Wt(Wt({},v),{},{left:-p.width/2})),l.a.createElement("div",{style:a?{left:"8px",right:"8px",bottom:"200px"}:{left:"".concat(d||0,"px"),bottom:"".concat(o?180:100,"px")}||v,className:"timeline__thumbnail".concat(a?" isMobile":"")},l.a.createElement("div",{style:a?{width:"100%"}:y},"video"===h&&!1===i&&l.a.createElement("video",{className:"timeline__thumbnail__image",style:p,id:"thumbnailVideo",src:this.buildSourceUrl(f,h),playsInline:!0,autoPlay:!0,loop:!0,controls:!1,muted:!0},l.a.createElement("track",{kind:"captions"})),"image"===h||!0===i&&l.a.createElement("img",{className:"timeline__thumbnail__image",style:{height:u},src:this.buildSourceUrl(f,h),alt:"timeline thumbnail"}),"canvas"===h&&l.a.createElement("canvas",{className:"timeline__thumbnail__image",ref:this.setThumbnailCapturerRef,style:p}),"canvas"===h&&l.a.createElement("video",{ref:this.setVideoThumbnailRef,onLoadedData:this.captureImageFromVideo,className:"timeline__thumbnail__hidden",style:p,src:this.buildSourceUrl(f,"video"),playsInline:!0,autoPlay:!0,loop:!0,controls:!1,muted:!0},l.a.createElement("track",{kind:"captions"})),l.a.createElement("span",{className:"timeline__thumbnail__caption"},this.humanify(f))))}}])}(c.Component);Kt.propTypes={thumbnail:x.a.shape({type:x.a.oneOf(["image","video","canvas"]).isRequired,utc:x.a.number.isRequired,position:x.a.oneOfType([x.a.number,x.a.string]).isRequired,pageY:x.a.number,timelineLeft:x.a.number,visibleWidth:x.a.number.isRequired}),media:x.a.shape({width:x.a.number,height:x.a.number}).isRequired,streamUrl:x.a.string.isRequired,authToken:x.a.string,thumbnailsEnabled:x.a.bool,frameSeek:x.a.bool,localTime:x.a.bool,isSelector:x.a.bool,selectionTimeline:x.a.bool,isMobile:x.a.bool,basicApiConfig:x.a.shape({token:x.a.string,tokenName:x.a.string,auth_token:x.a.string,streamer_http:x.a.string})};var Yt=Kt,Qt=gt()({displayName:"DvrSnapshotControl",className:"DvrSnapshotControl",propTypes:{onTakeSnapshotClick:x.a.func.isRequired},render:function(){return l.a.createElement("button",{className:"dvrp-button",onClick:this.props.onTakeSnapshotClick,title:this.props.t("dvr_take_screenshot"),"data-cy":"snapshot-button"},l.a.createElement("span",{className:"icon-screen"}))}}),Xt=Object(c.memo)(Object(We.withTranslation)()(Qt)),Jt=n(566),Zt=n.n(Jt),en=(n(1155),function(e){var t=e.isMuted,n=e.onChangeMuted,r=e.volume,i=e.onChangeVolume,o=e.isMobile,a=Object(c.useRef)(null),s=Object(c.useRef)(null),u=r?r/100*40:0;t&&(u=0);var f=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)},d=t||0===r;return l.a.createElement("div",{className:"dvrp-volume-control","data-cy":"dvrp-volume-control"},l.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"},d?l.a.createElement("span",{className:"icon-volume_off"}):l.a.createElement("span",{className:"icon-volume"})),!o&&l.a.createElement("div",{className:"dvrp-volume-panel".concat(d?"":" visible"),"data-cy":"dvrp-volume-panel",ref:a,onPointerDown:function(e){0===e.button&&(s.current=e.pointerId,a.current.setPointerCapture(e.pointerId),f(e))},onPointerMove:function(e){null!==s.current&&f(e)},onPointerUp:function(e){null!==s.current&&0===e.button&&(a.current.releasePointerCapture(s.current),s.current=null)}},l.a.createElement("div",{className:"dvrp-volume-slider"},l.a.createElement("div",{className:"dvrp-volume-slider-handle",style:{left:u}}))))});en.propTypes={isMuted:x.a.bool.isRequired,onChangeMuted:x.a.func.isRequired,volume:x.a.number.isRequired,onChangeVolume:x.a.func.isRequired};var tn=Object(c.memo)(en),nn=gt()({displayName:"FocusBtn",className:"FocusBtn",render:function(){return l.a.createElement("i",{style:{width:"30px",height:"30px"}},l.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"}},l.a.createElement("g",null,l.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"}))))}}),rn=l.a.memo(nn),on=gt()({displayName:"MinusBtn",className:"MinusBtn",render:function(){return l.a.createElement("i",{style:{width:"14px",height:"14px"}},l.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"},l.a.createElement("path",{fill:"#fff",d:"M1 6h11v3H1z"})))}}),an=l.a.memo(on),sn=gt()({displayName:"PlusBtn",className:"PlusBtn",render:function(){return l.a.createElement("i",{style:{width:"14px",height:"14px"}},l.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"},l.a.createElement("path",{fill:"#fff",d:"M1 6h11v3H1z"}),l.a.createElement("path",{fill:"#fff",d:"M5 2h3v11H5z"})))}}),un=l.a.memo(sn),cn=gt()({displayName:"SpeedBtn",className:"SpeedBtn",render:function(){var e={width:"14px",height:"14px",transform:"".concat(this.props.rotate?"rotate(180deg)":"")};return l.a.createElement("i",{style:e},l.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"},l.a.createElement("g",null,l.a.createElement("path",{d:"M 1,1 6,6 1,11"}),l.a.createElement("path",{d:"m 8,1 5,5 -5,5"}))))}}),ln=l.a.memo(cn),fn=gt()({displayName:"SpeedBtnLeft",className:"SpeedBtnLeft",render:function(){return l.a.createElement("i",{style:{width:"14px",height:"14px"}},l.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 3.704 3.704"},l.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)"})))}}),dn=l.a.memo(fn),hn=n(223),pn=(n(1160),n(177));function gn(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 mn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gn(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vn(e,t,n){return t=_()(t),y()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],_()(e).constructor):t.apply(e,n))}var yn=["mp4","ts"],bn=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):""},_n=function(e){function t(e){var n;return a()(this,t),(n=vn(this,t,[e])).form_url=n.form_url.bind(n),n.humanTime=n.humanTime.bind(n),n.handleChange=n.handleChange.bind(n),n.handleSendTime=n.handleSendTime.bind(n),n.linkToEmbed=n.linkToEmbed.bind(n),n.showPopup=n.showPopup.bind(n),n.handleClickOpenDownloadMenu=n.handleClickOpenDownloadMenu.bind(n),n.handleClickOpenDownloadOptionsMenu=n.handleClickOpenDownloadOptionsMenu.bind(n),n.handleClickBackToDropdownMenu=n.handleClickBackToDropdownMenu.bind(n),n.handleClickShareLink=n.handleClickShareLink.bind(n),n.handleClickCopyEmbedURL=n.handleClickCopyEmbedURL.bind(n),n.renderShareLinks=n.renderShareLinks.bind(n),n.renderDownloadDropdownContent=n.renderDownloadDropdownContent.bind(n),n.handleDownload=n.handleDownload.bind(n),n.getDownloadFileName=n.getDownloadFileName.bind(n),n.initialDownloadState={isDownloadOpen:!1,selectedVideoTrackToDownload:n.props.activeVideoTrack,selectedAudioTrackToDownload:n.props.activeAudioTrack,selectedFormatToDownload:yn[0]},n.state=mn({timeStart:{},timeStop:{},inputStart:null,inputStop:null,isMenuOpened:!1,popupEnabled:!1,popupText:"",isFileLoading:!1},n.initialDownloadState),n}return E()(t,e),i()(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.value,n=e.target.dataset,r=n.name,i=n.type;t=Number.parseInt(t,10);var o=new Date;switch(o.setTime(1e3*this.props[i]),t<0&&(t=0),r){case"h":t>23&&(t=23),o.setHours(t);break;case"m":t>59&&(t=59),o.setMinutes(t);break;case"s":t>59&&(t=59),o.setSeconds(t)}var a=Math.round(o.getTime()/1e3);"start"===i?this.setState({inputStart:a,timeStart:this.humanTime(a)}):this.setState({inputStop:a,timeStop:this.humanTime(a)})}},{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]:"mp4",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));return Object.keys(c).length&&Object.keys(c).forEach((function(e){p.searchParams.append([e],c[e])})),e&&t&&p.searchParams.append("filter.tracks",t),p}}},{key:"getDownloadFileName",value:function(){var e=this.props,t=e.name,n=e.form,r=e.streamInfo[t];if(n){var i=n.state,o=i.left_selected,a=i.right_selected,s=this.state.selectedFormatToDownload,u=a-o<=0?5:a-o;return"".concat(r.title||r.name,"_").concat(Math.round(o),"_").concat(Math.round(u),".").concat(s)}}},{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:"handleClickOpenDownloadMenu",value:function(){this.context.sendMetrics(mn(mn({},this.context.getCommonTelemetryFields()),pn.selectionControlTelemetry.openDownloadDropdown())),this.setState((function(e){return{isMenuOpened:!e.isMenuOpened}}))}},{key:"handleClickOpenDownloadOptionsMenu",value:function(){this.context.sendMetrics(mn(mn({},this.context.getCommonTelemetryFields()),pn.selectionControlTelemetry.openDownloadOptions())),this.setState({isDownloadOpen:!0})}},{key:"handleClickBackToDropdownMenu",value:function(){this.context.sendMetrics(mn(mn({},this.context.getCommonTelemetryFields()),pn.selectionControlTelemetry.clickBackToDownloadDropdown())),this.setState(mn({},this.initialDownloadState))}},{key:"handleClickShareLink",value:function(){this.context.sendMetrics(mn(mn({},this.context.getCommonTelemetryFields()),pn.selectionControlTelemetry.clickShareLink())),this.showPopup()}},{key:"handleClickCopyEmbedURL",value:function(){this.context.sendMetrics(mn(mn({},this.context.getCommonTelemetryFields()),pn.selectionControlTelemetry.clickCopyEmbedURL())),this.showPopup()}},{key:"handleDownload",value:(n=Fe()(Ve.a.mark((function e(t,n){var r,i,o,a,s,u=this;return Ve.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({isFileLoading:!0}),r=new URL(t),e.next=1,fetch(r.href,{method:"GET",headers:{"Content-Type":"application/json"}}).then((function(e){if(!e.ok)throw u.setState({isFileLoading:!1}),Error(e.statusText);return e.blob()})).then((function(e){return Object(De.downloadFile)(e,n)})).then((function(){u.setState({isFileLoading:!1})}));case 1:i=this.state,o=i.selectedFormatToDownload,a=i.selectedVideoTrackToDownload,s=i.selectedAudioTrackToDownload,this.context.sendMetrics(mn(mn({},this.context.getCommonTelemetryFields()),pn.selectionControlTelemetry.clickDownload({format:o,videoQuality:a,audioTrack:s}))),this.setState(mn({},this.initialDownloadState));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"renderShareLinks",value:function(){var e=this,t=this.props,n=t.downloadOptions,r=t.start,i=t.stop,o=t.t;return l.a.createElement(l.a.Fragment,null,l.a.createElement(hn.CopyToClipboard,{onCopy:this.handleClickShareLink,text:this.form_url()},l.a.createElement("div",{className:"item"},l.a.createElement("span",{className:"smicon"},l.a.createElement("span",{className:"icon-share_player"})),l.a.createElement("span",{className:"text"},o("dvr_share_selected")))),l.a.createElement(hn.CopyToClipboard,{onCopy:this.handleClickCopyEmbedURL,text:this.linkToEmbed()},l.a.createElement("div",{className:"item"},l.a.createElement("span",{className:"smicon"},l.a.createElement("span",{className:"icon-copy_embed"})),l.a.createElement("span",{className:"text"},o("dvr_copy_embed_url")))),n&&n.map((function(t){return l.a.createElement("div",{className:"item",onClick:function(){return t.callback({url:e.form_url(),duration:i-r})},key:t.title},l.a.createElement("span",{className:"smicon"},l.a.createElement("span",{className:"icon-timelapse"})),l.a.createElement("span",{className:"text"},t.title))})))}},{key:"renderDownloadDropdownContent",value:function(){var e=this,t=this.props,n=t.t,r=t.tracksAudio,i=t.tracksVideo,o=this.state,a=o.selectedAudioTrackToDownload,s=o.selectedVideoTrackToDownload,u=o.selectedFormatToDownload,c=o.isDownloadOpen,f=o.isFileLoading,d=Object($e.a)(i)||Object($e.a)(r)?"":"".concat(bn(s,!1)).concat(bn(a,!0)),h=this.form_url(!0,d,u);if(c){var p=this.getDownloadFileName();return l.a.createElement(l.a.Fragment,null,l.a.createElement("button",{type:"button",className:"item",onClick:this.handleClickBackToDropdownMenu,"data-cy":"back"},l.a.createElement("span",{className:"ddicon downloadOptions_icon"},l.a.createElement("span",{className:"icon-date_two_player"})),n("dvr_back")),!Object($e.a)(i)&&l.a.createElement("div",{className:"downloadOptions"},l.a.createElement("span",{className:"downloadOptions_type"},"".concat(n("dvr_video_quality"),":")),i.map((function(t){return l.a.createElement("button",{key:t.track_id,type:"button",className:"item".concat(s===t.track_id?" active":""),onClick:function(){return e.setState({selectedVideoTrackToDownload:t.track_id})}},null==t?void 0:t.text)}))),!Object($e.a)(r)&&l.a.createElement("div",{className:"downloadOptions"},l.a.createElement("span",{className:"downloadOptions_type"},"".concat(n("dvr_audio_track"),":")),r.map((function(t){return l.a.createElement("button",{key:t.track_id,type:"button",className:"item".concat(a===t.track_id?" active":""),onClick:function(){return e.state({selectedAudioTrackToDownload:t.track_id})}},null==t?void 0:t.text)}))),l.a.createElement("div",{className:"downloadOptions"},l.a.createElement("span",{className:"downloadOptions_type"},"".concat(n("dvr_format"),":")),yn.map((function(t){return l.a.createElement("button",{key:t,type:"button",className:"item".concat(u===t?" active":""),onClick:function(){return e.setState({selectedFormatToDownload:t})}},"".concat(t))}))),l.a.createElement("button",{type:"button",className:"item",onClick:function(){return e.handleDownload(h,p)},"data-cy":"trigger-download-link",title:"trigger-download-link",disabled:f},l.a.createElement("span",{className:"smicon downloadOptions_icon"},l.a.createElement("span",{className:"icon-down"})),n("dvr_dropdown_download")))}return l.a.createElement(l.a.Fragment,null,l.a.createElement("button",{type:"button",className:"item",onClick:this.handleClickOpenDownloadOptionsMenu,"data-cy":"open-download"},l.a.createElement("span",{className:"smicon"},l.a.createElement("span",{className:"icon-down"})),n("dvr_dropdown_download")),this.renderShareLinks())}},{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.t,f=document.getElementById("forClearout"),d=document.getElementById("forClearoutTimeline");return l.a.createElement("div",{className:"control"},o&&Object(me.createPortal)(l.a.createElement("div",{className:"popup".concat(o?" enabled":"")},a),f),l.a.createElement("div",{className:"download-text"},l.a.createElement("button",{className:"bigRoundButton",onClick:u,type:"button","aria-label":c("dvr_close"),title:c("dvr_close")},l.a.createElement("span",{className:"icon-close"})),l.a.createElement("div",{className:"verticalLine"}),l.a.createElement("div",{className:"inputWrapper"},l.a.createElement("div",{className:"inputBlock"},l.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"})),":",l.a.createElement("div",{className:"inputBlock"},l.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"})),":",l.a.createElement("div",{className:"inputBlock"},l.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"}))),l.a.createElement("span",{className:"separator"},"—"),l.a.createElement("div",{className:"inputWrapper"},l.a.createElement("div",{className:"inputBlock"},l.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"})),":",l.a.createElement("div",{className:"inputBlock"},l.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})),":",l.a.createElement("div",{className:"inputBlock"},l.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"}))),l.a.createElement("div",{className:"verticalLine"}),l.a.createElement("button",{className:"bigRoundButton green",onClick:this.handleClickOpenDownloadMenu,type:"button","aria-label":c("dvr_export_menu"),title:c("dvr_export_menu"),"data-cy":"open-download-menu"},l.a.createElement("span",{className:"icon-export_player"})),i&&Object(me.createPortal)(l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"clearDropdown",onClick:function(){return e.setState({isMenuOpened:!1,isDownloadOpen:!1})}}),l.a.createElement("div",{className:"dropDown".concat(i?" visible":""," downloadDropdown"),"data-cy":"download-dropdown-menu"},l.a.createElement("div",{className:"firstRow visible downloadDropdownContent"},this.renderDownloadDropdownContent()))),f)),i&&Object(me.createPortal)(l.a.createElement("div",{className:"clearDropdown",onClick:function(){return e.setState({isMenuOpened:!1,isDownloadOpen:!1})}}),d))}}]);var n}(l.a.Component);_n.propTypes={start:x.a.number.isRequired,stop:x.a.number.isRequired,localTime:x.a.bool,handleChangeSelection:x.a.func,closeExportMenu:x.a.func,basicApiConfig:x.a.shape({token:x.a.string,tokenName:x.a.string,auth_token:x.a.string,streamer_http:x.a.string}),activeAudioTrack:x.a.string,activeVideoTrack:x.a.oneOfType([x.a.string,x.a.number]),playerProgressTime:x.a.oneOfType([x.a.string,x.a.number]),form:x.a.any,downloadOptions:x.a.arrayOf(x.a.shape({title:x.a.string,callback:x.a.func})),streamInfo:x.a.any},_n.contextType=ot.TelemetryContext;var wn=Object(We.withTranslation)()(_n);function En(e,t,n){return t=_()(t),y()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],_()(e).constructor):t.apply(e,n))}var Sn=function(e){function t(){var e;return a()(this,t),(e=En(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 E()(t,e),i()(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=Ge()(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,f=e.is_mobile,d=e.basicApiConfig,h=this.state.moving,p=u<0||u>100?0:1,g=t&&t.getMetadata()||{height:0,width:0},m=document.getElementById("forPopup");return l.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},h&&a&&(f?Object(me.createPortal)(l.a.createElement(Yt,{thumbnail:{utc:a,type:"video",position:0,pageY:-60,timelineLeft:s.window_left,visibleWidth:s.window_width},media:g,streamUrl:n,authToken:r,basicApiConfig:d,thumbnailsEnabled:i,localTime:o,isSelector:!0,isMobile:f}),m):l.a.createElement("div",{className:"selection_thumbnail"},l.a.createElement(Yt,{thumbnail:{utc:a,type:"video",position:0,pageY:-60,timelineLeft:s.window_left,visibleWidth:s.window_width},media:g,streamUrl:n,authToken:r,basicApiConfig:d,thumbnailsEnabled:i,localTime:o,isSelector:!0}))),l.a.createElement("span",{className:"icon-arrow_player"}))}}])}(l.a.Component);Sn.propTypes={position:x.a.number.isRequired,gettingCoordinates:x.a.func.isRequired,onMoveStart:x.a.func.isRequired,onMoveEnd:x.a.func.isRequired,dom:x.a.any,direction:x.a.string.isRequired,playerRef:x.a.any,realUtc:x.a.number.isRequired,streamUrl:x.a.string.isRequired,authToken:x.a.string,thumbnailsEnabled:x.a.bool,localTime:x.a.bool,is_mobile:x.a.bool,basicApiConfig:x.a.shape({token:x.a.string,tokenName:x.a.string,auth_token:x.a.string,streamer_http:x.a.string})},Sn.defaultProps={dom:{},authToken:"",thumbnailsEnabled:!0,localTime:!0};var xn=Sn;var kn=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 Tn(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 On(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tn(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pn(e,t,n){return t=_()(t),y()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],_()(e).constructor):t.apply(e,n))}var Rn=function(e){function t(){var e;return a()(this,t),(e=Pn(this,t)).gettingCoordinates=kn(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 E()(t,e),i()(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=On(On({},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,c=i.window_width,l=this.state,f=l.left,d=l.left_time,h=l.left_selected,p=l.right,g=l.right_time,m=l.right_selected,v=this.preciecePercent(e/(c/100)),y=function(e,t){return"left"===t&&e>p-1?p-1:"right"===t&&e<f+1?f+1:e};v=y(v,t);var b=a-o,_=b/100,w=Math.round(o+v*_),E=u()(u()(u()({},t,v),"".concat(t,"_time"),Object(De.humanTime)(w)),"".concat(t,"_selected"),Math.round(w));if(n){if("left"===t&&v>p){var S=On({},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<f){var x=On({},E);E={right:f,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=On(On({},E),{},{right:Math.round((k-o)/_),right_time:Object(De.humanTime)(k),right_selected:k})}else if(E.right_selected-h>s){var T=E.right_selected-s;E=On(On({},E),{},{left:Math.round((T-o)/_),left_time:Object(De.humanTime)(T),left_selected:T})}}s&&(E=On(On({},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,c=s.left,l=s.left_selected,f=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=u()(u()(u()({},t,v),"".concat(t,"_time"),Object(De.humanTime)(e)),"".concat(t,"_selected"),Math.round(e));if("left"===t&&v>f){var b=d-h;m=b,y={left:Math.round(b/g),left_time:Object(De.humanTime)(b),left_selected:b}}else if("right"===t&&v<c){var _=l+h;m=_,y={right:Math.round(_/g),right_time:Object(De.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=On(On({},y),{},{right:Math.round((w-i)/g),right_time:Object(De.humanTime)(w),right_selected:w})}else if(y.right_selected-l>a){var E=y.right_selected-a;y=On(On({},y),{},{left:Math.round((E-i)/g),left_time:Object(De.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(u()({},"".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,f=s.toggleDownload,d=s.real_from,h=s.real_to,p=s.closeExportMenu,g=s.basicApiConfig,m=s.playerProgressTime,v=s.isTrackSelectAvaible,y=s.tracksAudio,b=s.tracksVideo,_=s.activeAudioTrack,w=s.activeVideoTrack,E=s.form,S=s.is_mobile,x=s.downloadOptions,k=s.streamInfo,T=document.getElementById("forOverlays"),O=t<0?0:t,P=n>100?100:n,R=P-O;return l.a.createElement("div",{className:"selectionControls"},l.a.createElement(xn,{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:S,basicApiConfig:g}),0!==o&&0!==a&&l.a.createElement("div",{className:"selectionLength",style:{left:"".concat(O,"%"),right:"".concat(P,"%"),width:"".concat(R,"%"),opacity:"".concat(t<0&&n<0||t>100&&n>100||n-t<3?0:1)}}),0!==o&&0!==a&&l.a.createElement("div",{className:"selectionLength second",style:{left:"".concat(O,"%"),right:"".concat(P,"%"),width:"".concat(R,"%"),opacity:"".concat(t<0&&n<0||t>100&&n>100||n-t<3?0:1)}}),l.a.createElement(xn,{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:S,basicApiConfig:g}),T&&Object(me.createPortal)(l.a.createElement("div",{className:"downloadBlock","data-cy":"downloadBlock"},l.a.createElement("div",{id:"forDownloadModal"},l.a.createElement(wn,{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:f,downloadActive:t>=0&&n>=0,focusAvailable:o<d||a>h,closeExportMenu:p,basicApiConfig:g,playerProgressTime:m,isTrackSelectAvaible:v,tracksAudio:y,tracksVideo:b,activeAudioTrack:_,activeVideoTrack:w,form:E,downloadOptions:x,streamInfo:k}))),T))}}])}(l.a.Component);Rn.propTypes={real_from:x.a.number,real_to:x.a.number,dom:x.a.any,http_stream_url:x.a.string,auth_token:x.a.string,name:x.a.string,locale:x.a.oneOf(["ru","en"]),toggleDownload:x.a.func,changeSelectors:x.a.func,maxDuration:x.a.number,setFocus:x.a.func,playerRef:x.a.any,media:x.a.shape({width:x.a.number,height:x.a.number}),streamUrl:x.a.string,authToken:x.a.string,thumbnailsEnabled:x.a.bool,localTime:x.a.bool,closeExportMenu:x.a.func,basicApiConfig:x.a.shape({token:x.a.string,tokenName:x.a.string,auth_token:x.a.string,streamer_http:x.a.string}),activeAudioTrack:x.a.string,activeVideoTrack:x.a.oneOfType([x.a.string,x.a.number]),isTrackSelectAvaible:x.a.bool,onMoveStart:x.a.func.isRequired,onMoveEnd:x.a.func.isRequired,playerProgressTime:x.a.oneOfType([x.a.string,x.a.number]),form:x.a.any,is_mobile:x.a.bool,downloadOptions:x.a.arrayOf(x.a.shape({title:x.a.string,callback:x.a.func})),streamInfo:x.a.any},Rn.defaultProps={};var An=Rn,Cn=(n(1162),n(295));function Dn(e,t,n){return t=_()(t),y()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],_()(e).constructor):t.apply(e,n))}var Ln=function(e){function t(){var e;return a()(this,t),(e=Dn(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 E()(t,e),i()(t,[{key:"componentDidMount",value:function(){var e;this.setState({debugData:(e=null==Cn?void 0:Cn.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,f=this.state,d=f.dropdownVisible,h=f.secondRow,p=f.secondRowContent,g=f.popupText,m=f.popupEnabled,v=f.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)}));document.getElementById("forOverlays");var _=document.getElementById("forClearout"),w=document.getElementById("forClearoutTimeline");return l.a.createElement(c.Fragment,null,l.a.createElement("div",{className:"dropDownWrapper"},l.a.createElement("button",{className:"dvrp-button",onClick:this.setDropdownVisible},l.a.createElement("span",{className:"icon-settings_player"}))),d&&Object(me.createPortal)(l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"clearDropdown",onClick:this.setDropdownVisible}),l.a.createElement("div",{className:"dropDown".concat(d?" visible":"")},l.a.createElement("div",{className:"firstRow".concat(h?"":" visible")},this.props.tracksVideo.length>1&&l.a.createElement("div",{className:"item",onClick:function(){e.showSubmenu("tracksVideo")}},l.a.createElement("div",{className:"left"},l.a.createElement("span",{className:"ddicon"},l.a.createElement("span",{className:"icon-hd"})),a("dvr_video_quality")),l.a.createElement("div",{className:"right"},y)),this.props.tracksAudio.length>1&&l.a.createElement("div",{className:"item",onClick:function(){e.showSubmenu("tracksAudio")}},l.a.createElement("div",{className:"left"},l.a.createElement("span",{className:"ddicon"},l.a.createElement("span",{className:"icon-track_player"})),a("dvr_audio_track")),l.a.createElement("div",{className:"right"},b))),l.a.createElement("div",{className:"secondRow".concat(h?" visible":"")},l.a.createElement("div",{className:"item",onClick:this.closeSubmenu},l.a.createElement("span",{className:"ddicon"},l.a.createElement("span",{className:"icon-date_two_player"})),a("tracksVideo"===p?"dvr_video_quality":"dvr_audio_track")),p&&"tracksVideo"===p&&(!o||i)&&l.a.createElement(Mn,{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 l.a.createElement(Mn,{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")}})}))),l.a.createElement(hn.CopyToClipboard,{text:v,onCopy:function(){e.showPopup()}},l.a.createElement("div",{className:"item"},a("copy_debug_data"))),l.a.createElement("div",{className:"popupCopyDebug".concat(m?" enabled":"")},g))),_),d&&Object(me.createPortal)(l.a.createElement("div",{className:"clearDropdown",onClick:this.setDropdownVisible}),w))}}])}(c.Component);Ln.propTypes={returnData:x.a.func,tracksAudio:x.a.array,tracksVideo:x.a.array,activeAudioTrack:x.a.string,activeVideoTrack:x.a.oneOfType([x.a.string,x.a.number]),live:x.a.bool,ott:x.a.bool},Ln.defaultProps={ott:!1};var In=Object(We.withTranslation)()(Ln);function Mn(e){return l.a.createElement("div",{className:"item".concat(e.active?" active":""),"data-value":e.value,onClick:e.handleTrackChange},e.text)}var jn=n(292),Nn=n.n(jn),Fn=function(e){var t=e.isFullscreen,n=e.onChangeFullscreenState;return l.a.createElement("button",{onClick:function(e){n(!t),e.target.blur()},type:"button",className:"dvrp-button","data-cy":"DVR_fullscreen_button"},t?l.a.createElement("span",{className:"icon-screen_player"}):l.a.createElement("span",{className:"icon-full"}))};Fn.propTypes={isFullscreen:x.a.bool.isRequired,onChangeFullscreenState:x.a.func.isRequired};var Un=Object(c.memo)(Fn);function Bn(e,t,n){return t=_()(t),y()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],_()(e).constructor):t.apply(e,n))}var qn=function(e){function t(){var e;return a()(this,t),e=Bn(this,t),u()(e,"formRef",l.a.createRef()),e.onRangesLoaded=e.onRangesLoaded.bind(e),e.onThumbnail=kn(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.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=l.a.createRef(),e.timeoutIdRef=l.a.createRef(),e.preventDefault=function(e){return e.preventDefault()},e}return E()(t,e),i()(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){var t=this.props.playerProgressTime;if(e.playerProgressTime!==t){var n=Object(De.currentUrl)(document.location.href,{from:Math.round(t)});this.setState({timeInfo:{url:n,time:Object(De.humanTime)(t)}})}}},{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){this.props.onPause&&this.props.onPause(),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){var t=this.props.t,n=this.state.range_info,r=e.ranges,i=[],o=!1;e.motion_log&&("episodes"in e.motion_log?(i=e.motion_log.episodes,o=!0):i=e.motion_log);var a="#197f70",s="#2f4858",u="#f0ad4e";i=i.filter((function(e){return o?e:"motion"===e.type&&"range"===e.subtype&&!!e.data})).map((function(e){var n,r={};if(o){var i,c,l="";switch(e.episode_type){case"face":i=t("dvr_episode_type_person"),c=a,l=null===(n=e.matched_persons)||void 0===n?void 0:n.map((function(e){return e.person.name||""})).join(", ");break;case"vehicle":i=t("dvr_episode_type_plate"),c=s,l=e.license_plate_text;break;case"generic":i=t("dvr_episode_type_motion"),c=u}r={from:Math.round(e.opened_at/1e3)||e.at,duration:Math.round((e.closed_at-e.opened_at)/1e3)||10,color:c||u,title:i||"",note:l||""}}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 c=[];Array.prototype.push.apply(c,n.brief_thumbnails),Array.prototype.push.apply(c,e.brief_thumbnails),c.sort();for(var l=0;l<c.length-1;)c[l]===c[l+1]?c.splice(l,1):l++;return{ranges:r,motion:i,brief_thumbnails:c,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 l.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:"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&&this.handlePause(),"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=Ge()(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,f=t.zoom,d=t.debug,h=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,P=t.onToggleMuted,R=t.playerProgressTime,A=t.volume,C=t.live,D=t.playback_speed,L=t.locale,I=t.maxDuration,M=t.enableMp4Download,j=t.downloadOptions,N=t.activeVideoTrack,F=t.activeAudioTrack,U=t.tracksVideo,B=t.tracksAudio,q=t.rangesLoading,V=t.dvr_enabled,$=t.isFullscreen,z=t.noFullscreen,G=t.zoomSensivity,W=t.calendarRanges,H=t.t,K=t.allowExport,Y=t.streamInfo,Q=this.state,X=Q.real_from,J=Q.real_to,Z=Q.thumbnail,ee=Q.range_info,te=Q.allRangeInfo,ne=Q.dom,re=Q.calendarOpened,ie=Q.isFooterVisible,oe=Q.selectionTimeline,ae=Q.timeInfo,se=Z&&Z.position,ue=document.getElementById("videoThumbnail"),ce=document.getElementById("forCalendar");return l.a.createElement(c.Fragment,null,l.a.createElement("div",{id:"forOverlays"}),l.a.createElement("div",{className:"dvrp-top".concat(ie?" _visible":""),"data-cy":"dvrp-top"},l.a.createElement("div",{className:"dvrp-controls"},R&&l.a.createElement("div",{className:"timeStamp","data-cy":"timeStamp"},l.a.createElement("a",{href:ae.url},ae.time)),l.a.createElement(Nn.a,{live:C,seekLiveFunc:this.seekLiveFunc}))),l.a.createElement("div",{className:"dvrp-bottom-gradient".concat(ie?" _visible":"")}),l.a.createElement("div",{className:"dvrp-footer".concat(ie?" _visible":""),"data-cy":"dvrp-footer",onWheel:function(t){V&&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,V&&e.dvrTimelineRef&&e.dvrTimelineRef.onDragEnd()},onMouseLeave:function(){e.touchStarted=!1,V&&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},l.a.createElement("div",{className:"dvr-timeline","data-cy":"dvr-timeline",ref:this.timelineRef},V&&l.a.createElement(zt,{ref:this.setDvrTimelineRef,onSeek:a,from:s,now:u,zoom:f,utc:u,debug:d,thumbnails_enabled:h,onRangesRequested:p,onCallThumbnail:this.onThumbnail,range_info:ee,is_mobile:g,auth_token:r,http_stream_url:m,currentTime:v,returnData:y,observableRanges:b,allRangeInfo:te,multiTimeline:_,selected:n,toggleDownload:this.toggleDownload,returnDomSizes:this.domSizes,returnVisual:this.returnVisual,fixedRange:w,localTime:E,pointSelectTime:this.pointSelectTime,selectionTimeline:oe,zoomSensivity:G}),Z&&Z.utc&&ue&&!g&&Object(me.createPortal)(l.a.createElement(Yt,{thumbnail:Z,media:k(),streamUrl:m,authToken:r,thumbnailsEnabled:h,localTime:E,selectionTimeline:oe,basicApiConfig:i}),ue),se>0&&l.a.createElement("div",{className:"timeLineCursor",style:{left:"".concat(se,"px")}}),oe&&V&&o&&M&&l.a.createElement(An,{ref:this.formRef,dom:ne,real_from:X,real_to:J,name:n,http_stream_url:m,auth_token:r,locale:L,toggleDownload:this.toggleDownload,changeSelectors:this.changeSelectors,maxDuration:I,setFocus:this.setFocus,streamUrl:m,authToken:r,thumbnailsEnabled:h,localTime:E,playerRef:x,closeExportMenu:function(){e.toggleSelectionTimeline(!1)},basicApiConfig:i,tracksAudio:B,tracksVideo:U,activeAudioTrack:F,activeVideoTrack:N,isTrackSelectAvaible:U.length>1||B.length>1,playerProgressTime:R,form:this.formRef.current,onMoveStart:this.handleDvrSelectionMovingStart,onMoveEnd:this.handleDvrSelectionMovingEnd,is_mobile:g,downloadOptions:j,streamInfo:Y})),l.a.createElement("div",{className:"dvrp-controls","data-cy":"dvrp-controls"},l.a.createElement("div",{className:"dvrp-left-controls","data-cy":"dvrp-left-controls"},V&&l.a.createElement("button",{type:"button",className:"dvrp-button","data-cy":"DVR_play_button",onClick:this.handlePause,title:H(T?"dvr_play":"dvr_pause")},T?l.a.createElement("span",{className:"icon-play_player"}):l.a.createElement("span",{className:"icon-pause_player"})),B.length>0&&l.a.createElement(tn,{isMuted:O,volume:A,onChangeMuted:P,onChangeVolume:this.changeVolumeHandler,isMobile:g}),V&&l.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")},l.a.createElement(rn,null)),V&&l.a.createElement("div",{style:{display:"flex"}},this.controlBtn("dvrp-button",(function(t){e.startScale(t,"out",!1)}),this.stopScale,"zoom_out",l.a.createElement(an,null)),this.controlBtn("dvrp-button",(function(t){e.startScale(t,"in",!1)}),this.stopScale,"zoom_in",l.a.createElement(un,null))),V&&!g&&this.controlBtn("dvrp-button",this.startScrollLeft,this.stopScroll,"seek_left",l.a.createElement(vt,null)),V&&!g&&this.controlBtn("dvrp-button",this.startScrollRight,this.stopScroll,"seek_right",l.a.createElement(bt,null)),V&&l.a.createElement("div",{className:"timeline__speedControls".concat(C?" hidden":"")},l.a.createElement("button",{className:"dvrp-button",onClick:this.slower,title:H("dvr_slower"),type:"button","data-cy":"slower","aria-label":H("dvr_slower")},l.a.createElement(dn,null)),l.a.createElement("div",null,"x".concat(D)),l.a.createElement("button",{className:"dvrp-button",onClick:this.faster,title:H("dvr_faster"),type:"button","data-cy":"faster","aria-label":H("dvr_faster")},l.a.createElement(ln,null)))),l.a.createElement("div",{className:"dvrp-right-controls","data-cy":"dvrp-right-controls"},m&&l.a.createElement(c.Fragment,null,l.a.createElement("div",{className:"timeline__snapshotControl"},l.a.createElement(Xt,{onTakeSnapshotClick:this.onTakeSnapshotClick}))),"ott"!==S&&V&&K&&l.a.createElement("button",{className:"dvrp-button",onClick:function(){e.toggleSelectionTimeline(!oe)},title:H("dvr_select_export"),type:"button","data-cy":"select_export","aria-label":H("dvr_select_export")},l.a.createElement("span",{className:"icon-export"})),V&&W.length>0&&l.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")},l.a.createElement("span",{className:"icon-date_player"})),l.a.createElement(In,{tracksAudio:B,tracksVideo:U,activeAudioTrack:F,activeVideoTrack:N,returnData:y,live:C,openExportMenu:function(){e.toggleSelectionTimeline(!0)}}),!z&&l.a.createElement(Un,{isFullscreen:$,onChangeFullscreenState:this.changeFullscreenStateHandler})),re&&Object(me.createPortal)(l.a.createElement("div",{id:"calendarModal",className:"calendar"},l.a.createElement(Zt.a,{now:u||this.now(),onChange:this.calendarDayChanged,locale:L,toggleCalendar:this.toggleCalendar,calendarRanges:W,setTimelineZoom:this.setTimelineZoom,isMobile:g})),ce)),l.a.createElement("div",{id:"forClearoutTimeline"})),d&&l.a.createElement("div",{className:"rangesLoading".concat(q?" visible":"")},l.a.createElement("span",null,"•"),H("dvr_ranges_loading")))}}])}(c.Component);qn.propTypes={playerProgressTime:x.a.oneOfType([x.a.string,x.a.number]),ranges:x.a.shape({brief_thumbnails:x.a.arrayOf(x.a.any),motion_log:x.a.any,ranges:x.a.arrayOf(x.a.shape({opened_at:x.a.number,closed_at:x.a.number})),stream:x.a.string}),observableRanges:x.a.shape({start:x.a.number,end:x.a.number}),calendarRanges:x.a.arrayOf(x.a.shape({from:x.a.number,duration:x.a.number})),returnData:x.a.func,live:x.a.bool,muted:x.a.bool,thumbnails_enabled:x.a.bool,changeSpeed:x.a.func,playback_speed:x.a.number,locale:x.a.oneOf(["ru","en"]),from:x.a.number,now:x.a.oneOfType([x.a.string,x.a.number]),zoom:x.a.number,debug:x.a.bool,localTime:x.a.bool,is_mobile:x.a.bool,http_stream_url:x.a.string,auth_token:x.a.string,onMetadataRequest:x.a.func,onToggleMuted:x.a.func,onTakeSnapshotClick:x.a.func,onSeek:x.a.func,onCalendarToggle:x.a.func,currentTime:x.a.any,dvr_ranges_present:x.a.bool,dvr_enabled:x.a.bool,paused:x.a.bool,multiTimeline:x.a.bool,selected:x.a.string,rangesLoading:x.a.bool,fastSeek:x.a.func,volume:x.a.number,enableMp4Download:x.a.bool,downloadOptions:x.a.arrayOf(x.a.shape({title:x.a.string,callback:x.a.func})),fixedRange:x.a.bool,ui:x.a.oneOf(["ott","nvr"]),playerRef:x.a.any,maxDuration:x.a.number,tracksAudio:x.a.array,tracksVideo:x.a.array,activeAudioTrack:x.a.string,activeVideoTrack:x.a.oneOfType([x.a.string,x.a.number]),basicApiConfig:x.a.shape({token:x.a.string,tokenName:x.a.string,auth_token:x.a.string,streamer_http:x.a.string}),streams:x.a.any,isFullscreen:x.a.bool.isRequired,noFullscreen:x.a.bool.isRequired,zoomSensivity:x.a.number,allowExport:x.a.bool,streamInfo:x.a.any};var Vn=Object(We.withTranslation)()(qn),$n=function(e){var t=e.isPaused,n=e.onChangePlayState;return l.a.createElement("button",{onClick:function(e){n(!t),e.target.blur()},type:"button",className:"dvrp-button","data-cy":"DVR_play_button"},t?l.a.createElement("span",{className:"icon-play_player"}):l.a.createElement("span",{className:"icon-pause_player"}))};$n.propTypes={isPaused:x.a.bool.isRequired,onChangePlayState:x.a.func.isRequired};var zn=Object(c.memo)($n),Gn=n(567),Wn=n(568),Hn=(n(1170),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,f=e.activeVideoTrack,d=e.showPlayButton,h=e.live,p=e.onSeek,g=e.noFullscreen,m=e.video,v=e.from,y=e.to,b=e.playbackDuration,_=e.debug,w=Object(c.useRef)(),E=Object(c.useState)(!0),S=Ge()(E,2),x=S[0],k=S[1],T=Object(c.useState)(!1),O=Ge()(T,2),P=O[0],R=O[1],A=Object(c.useState)(null),C=Ge()(A,2),D=C[0],L=C[1];Object(c.useEffect)((function(){m&&L(m)}),[m]);var I=function(e){n("paused",e)};Object(c.useEffect)((function(){return window.clearTimeout(w.current),P||t?k(!0):w.current=window.setTimeout((function(){k(!1)}),3e3),function(){window.clearTimeout(w.current)}}),[t,P]);var M=Object(c.useCallback)((function(e){"Space"===e.code&&I(!t)}),[I,t]);return Object(c.useEffect)((function(){return document.addEventListener("keydown",M),function(){document.removeEventListener("keydown",M)}}),[t,M]),l.a.createElement(c.Fragment,null,l.a.createElement("div",{id:"forOverlays"}),l.a.createElement("div",{className:"dvrp-top"},l.a.createElement("div",{className:"dvrp-controls"},!(v&&y||v&&b)&&!d&&l.a.createElement(Nn.a,{live:h,seekLiveFunc:function(){return p("live")}}))),l.a.createElement("div",{className:"dvrp-bottom-gradient".concat(x?" _visible":""),"data-cy":"dvrp-bottom-gradient"}),l.a.createElement("div",{className:"dvrp-footer ott".concat(x?" _visible":""),"data-cy":"dvrp-footer",onMouseMove:function(){R(!0)},onMouseLeave:function(){R(!1)},style:{position:"absolute"}},(v&&y||v&&b)&&!d&&D&&l.a.createElement(Gn.Timeline,{video:D,from:v,to:y,playbackDuration:b,returnData:n,debug:_}),l.a.createElement("div",{className:"dvrp-controls","data-cy":"dvrp-controls"},l.a.createElement("div",{className:"dvrp-left-controls","data-cy":"dvrp-left-controls"},!d&&l.a.createElement(c.Fragment,null,l.a.createElement(zn,{isPaused:t,onChangePlayState:I}),a.length>0&&l.a.createElement(tn,{isMuted:r,volume:i,onChangeMuted:function(e){n("muted",e)},onChangeVolume:function(e){n("volume",e)}}),D&&v&&(y||b)&&l.a.createElement(Wn.TimeIndicator,{video:D,from:v,to:y,playbackDuration:b}))),!d&&l.a.createElement("div",{className:"dvrp-right-controls","data-cy":"dvrp-right-controls"},l.a.createElement(In,{tracksAudio:a,tracksVideo:s,activeAudioTrack:u,activeVideoTrack:f,returnData:n,live:!0,ott:!0}),!g&&l.a.createElement(Un,{isFullscreen:o,onChangeFullscreenState:function(e){n("fullscreen",e)}}))),l.a.createElement("div",{id:"forClearoutTimeline"})))});Hn.propTypes={isPaused:x.a.bool.isRequired,returnData:x.a.func.isRequired,isMuted:x.a.bool.isRequired,volume:x.a.number.isRequired,isFullscreen:x.a.bool.isRequired,showPlayButton:x.a.bool,tracksAudio:x.a.array,tracksVideo:x.a.array,activeAudioTrack:x.a.string,activeVideoTrack:x.a.oneOfType([x.a.string,x.a.number]),live:x.a.bool,onSeek:x.a.func,noFullscreen:x.a.bool.isRequired,video:x.a.any,from:x.a.number,to:x.a.number,playbackDuration:x.a.number,debug:x.a.bool},Hn.defaultProps={tracksAudio:[],tracksVideo:[],activeVideoTrack:"v1",activeAudioTrack:"a1",showPlayButton:!1,live:!0};var Kn=Hn,Yn=n(569),Qn=n.n(Yn),Xn=(n(1176),n(1178),n(346));function Jn(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 Zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jn(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function er(e,t,n){return t=_()(t),y()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],_()(e).constructor):t.apply(e,n))}var tr=new ve.QueryClient,nr=function(e){function t(e){var n,r,i;return a()(this,t),(n=er(this,t,[e])).telemetryContext={getCommonTelemetryFields:n.getCommonTelemetryFields.bind(n),getCommonRequestFields:n.getCommonRequestFields.bind(n),getCommonErrorRequestFields:n.getCommonErrorRequestFields.bind(n),sendMetrics:n.sendMetrics.bind(n)},n.preparePlayer=n.preparePlayer.bind(n),n.setStateSafe=n.setStateSafe.bind(n),n.getCommonTelemetryFields=n.getCommonTelemetryFields.bind(n),n.getCommonRequestFields=n.getCommonRequestFields.bind(n),n.getCurrentPlayerName=n.getCurrentPlayerName.bind(n),n.getCommonErrorRequestFields=n.getCommonErrorRequestFields.bind(n),n.sendMetrics=n.sendMetrics.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.getHttpStreamUrl=n.getHttpStreamUrl.bind(n),n.getResultAuth=n.getResultAuth.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=l.a.createRef(),n.logger=new Ae.Logger,n.canShowTimeline=!1,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,currentPlayerName:null,muted:!0,volume:0,playerProgressTime:Object(De.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 E()(t,e),i()(t,[{key:"UNSAFE_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,c=e.autoPlay,l=e.muted,f=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=Zn(Zn({},y),{},{player:"hls"}):this.canShowTimeline=!0),"hls"===i&&(y=Zn(Zn({},y),{},{player:"hls"})),"mse"===i&&(y="undefined"!=typeof window&&"MediaSource"in window?Zn(Zn({},y),{},{player:"mse"}):Zn(Zn({},y),{},{player:"hls"})),"webrtc"===i&&(y="undefined"!=typeof window&&(window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection)?Zn(Zn({},y),{},{player:"webrtc"}):"undefined"!=typeof window&&"MediaSource"in window?Zn(Zn({},y),{},{player:"mse"}):Zn(Zn({},y),{},{player:"hls"})),o&&(y=Zn(Zn({},y),{},{player:"hls"}));var b,_,w=(_=!1,b=navigator.userAgent||navigator.vendor||"undefined"!=typeof window&&window.opera,(Ie.OLDER_MOBILE_DEVICE_REGEXP.test(b)||Ie.MOBILE_DEVICE_REGEXP.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=Zn(Zn({},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=Zn(Zn({},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=Zn(Zn({},y),{},{streamingChannels:T,selected:r&&r[0]||t,selectedAuth:s,playerReady:u()({},t,!1)})}l||(y=Zn(Zn({},y),{},{volume:100})),c?(y=Zn(Zn({},y),{},{paused:!1,playerProgressTime:Object(De.now)()}),f&&(y=Zn(Zn({},y),{},{playerProgressTime:1e3*f,live:!1}))):(y=Zn(Zn({},y),{},{showPlayButton:!0,isStalling:!1,paused:!0,playingStarted:!0}),this.canShowTimeline=!0,f&&(y=Zn(Zn({},y),{},{playerProgressTime:1e3*f,live:!1}))),d&&(y=Zn(Zn({},y),{},{forceStartTrack:!0})),h||(y=Zn(Zn({},y),{},{dvr_enabled:!1,ui:"ott"})),this.enoughBufferTime=g||.1,f&&(y=Zn(Zn({},y),{},{playerProgressTime:f,live:!1})),"boolean"==typeof v&&(y=Zn(Zn({},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.streamer_http,c=this.state,l=c.ui,f=c.selectedUrl;console.log("VERSION:","25.9.5"),void 0!==n&&this.setStateSafe({muted:n}),r&&console.info("DVRPlayer@".concat(i)),this.resetStats(),this.containerRef.current&&this.containerRef.current.addEventListener("fullscreenchange",(function(){!document.fullscreenElement&&e.state.fullscreen&&e.setState({fullscreen:!1})})),document.addEventListener("visibilitychange",this.tabListener),"ott"===l&&o&&this.onClickToPlay();var d=this.getResultAuth();this.setState({basicApiConfig:Object(Re.basicConfig)({token:a,tokenName:s,auth_token:d,streamer_http:u||f})})}},{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,v=r.player,y=r.ui,b=r.dvr_enabled,_=r.shouldStop,w=r.playDurationStopTime,E=r.medianStopTime,S=r.playerRef,x=r.currentAudioTrack,k=r.currentVideoTrack,T=r.activeVideoTrack,O=r.activeAudioTrack,P=r.autoVideoTrack,R=r.newTracks,A=r.advert,C=r.showPlayButton,D=r.playingStarted,L=this.props,I=L.autoPlay,M=L.auth_token,j=L.from,N=L.to,F=L.reportState,U=L.play_duration,B=l.streams,q=B.length>1,V=Object.keys(h);if(!Object.keys(t.info).length&&V.length&&V.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&&(S&&(S.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&&S&&S.props.name===e&&S.setState({noLive:!0})}s&&Object.keys(s).length&&"export"in s&&n.setState({allowExport:s.export})})),t.dvr_enabled===b||b||this.setState({ui:"ott",player:"hls"}),!D&&I&&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}),U){var $=E;$.length<3?($.push(i+U),this.setStateSafe({medianStopTime:$})):3===$.length&&this.setStateSafe({playDurationStopTime:Math.min.apply(Math,m()($))}),this.timeToDurationStop=w-i,U&&w&&i>=w&&this.setStateSafe({shouldStop:!0})}N&&i>=N&&this.stop()}else!t.playerProgressTime&&i&&U&&this.setStateSafe({medianStopTime:[i+U]});if(t.selected!==u&&B.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:M}),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})}}}})),t.paused||!p||t.isPlaying||this.setState({isPlaying:!1}),t.paused&&!p&&null!==t.livePausedAt&&(t.livePausedAt<=Object(De.now)()-30&&this.onTimelineSeek(t.livePausedAt),this.setState({livePausedAt:null})),JSON.stringify(a)!==JSON.stringify(t.progressTimeForPlayers)){var z=this.getProgress(a);if(z){var G=this.state.isStalling,W=this.state,H=W.playerRef;if(!1!==W.playerReady[u]){if(a[u]!==t.progressTimeForPlayers[u]&&H&&"_video"in H){var K=H._video;K&&K.currentTime&&K.currentTime>this.enoughBufferTime&&(G=!1)}q&&(G=!1),s||null!=t.livePausedAt||this.checkProgressTime(),t.isStalling&&!G&&this.onEventCallback(this.state.selected,{key:Date.now(),data:{event:"play_stall_end"}}),this.setState({playerProgressTime:z,isStalling:G})}}}else{var Y=!0,Q=o&&Object.keys(o)||[];0!==Q.length&&Q.forEach((function(e){"stop"!==o[e]&&(Y=!1)})),Q.length===B.length&&Y&&(C||s||U||"ott"===y||j&&N||d||this.onTimelineSeek(Math.round(i)+1))}if(!Object.keys(t.allRanges).length&&Object.keys(c).length&&(j?I?this.onTimelineSeek(j):(this.canShowTimeline=!0,this.setState({playerProgressTime:j})):I&&this.onClickToPlay()),"ott"===!y&&(!t.muted&&this.state.muted?this.setState({volume:0}):t.muted&&!this.state.muted&&this.setState({volume:100})),"function"==typeof F&&F(this.state,this.getPlayerStats,this),g&&!t.fullscreen)if(Object(De.isIOS)()){var X=this.state.selected,J=document.getElementById("video_".concat(X));J&&J.webkitSupportsFullscreen&&(J.webkitEnterFullscreen(),J.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})),!q){if(s!==t.live){if("hls"===v)return;var Z=T,ee=O;"v0"===(Z=T?s?"v".concat(Number(T)+1):P?"-1":"".concat(Number(T.replace(Ie.DIGITS_REGEXP,""))-1):s?"v1":"-1")&&(Z="v1"),ee=O?s?"a".concat(Number(O)+1):"".concat(Number(O.replace(Ie.DIGITS_REGEXP,""))-1):s?"a1":"0",this.setState({tracksVideo:[],tracksAudio:[],activeVideoTrack:Z,activeAudioTrack:ee})}Object.keys(t.info).length!==V.length&&V.forEach((function(e){var t=h[e].stats;t&&("dvr_enabled"in t&&(t.dvr_enabled||n.setState({dvr_enabled:!1})))}))}!O&&x&&this.setState({activeAudioTrack:x}),!T&&k&&this.setState({activeVideoTrack:k}),O&&x&&k&&JSON.stringify([T||"0",O])!==JSON.stringify(R)&&(O===x&&T===k||JSON.stringify([T,O])===JSON.stringify(R)||this.setState({newTracks:[T,O]})),!t.shouldStop&&_&&(this.stop(),this.setState({shouldStop:!1})),t.advert&&t.advert.length&&!A.length&&(this.continueFrom=null,this.onClickToPlay())}},{key:"componentDidCatch",value:function(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=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;this.isUnmounted?(r=console).log.apply(r,["DVRPlayer's setState called for unmounted component with args: "].concat(t)):this.setState.apply(this,t)}},{key:"changeLanguage",value:function(e){this.setState({locale:e}),ge.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=Zn(Zn({},this.state[e]||{}),{},u()({},n,t));this.setState(u()({},e,r))}else this.setState(u()({},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=Zn({},o),u=m()(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]=Zn(Zn({},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((function(n){return{allRanges:Zn(Zn({},n.allRanges),{},u()(u()({},e,m()(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=Zn(Zn({},d),{},{observableRanges:{start:r-300,end:Object(De.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:Object(De.now)()-300,end:Object(De.now)()+300}}),"ott"!==a&&this.checkProgressTime()}else this.canShowTimeline=!0,r?this.setStateSafe({observableRanges:{start:r-300,end:Object(De.now)()+300}}):this.setStateSafe({observableRanges:{start:Object(De.now)()-300,end:Object(De.now)()+300}});if(n&&r){var h=Object(De.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:Object(De.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>=Object(De.now)()||"live"===l)){"live"!==e?this.setState({live:!1}):this.setState({live:!0});var d={},h=Zn({},a),p=Object.keys(h).filter((function(e){return"loaded_at"!==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>=Object(De.now)()||"live"===l)&&(m=Object(De.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||Object(De.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=Zn({},this.state.allRanges),n={},r={},i={},o=Object.keys(t).filter((function(e){return"loaded_at"!==e})),a=!1;if(e>=Object(De.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=Object(De.checkInRange)(e,t[o]);if(n[o]||(n[o]={}),n[o]=s,s)a=!0,r=Zn(Zn({},r),{},u()({},o,e)),i=Zn(Zn({},i),{},u()({},o,s.playbackDuration));else{var c=Object(De.getNearLeftFrom)(e,t[o]);n[o]={nextSection:c},r=Zn(Zn({},r),{},u()({},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,s=t.playback_speed;"number"==typeof i&&Object.keys(r).forEach((function(t){if(n[t]&&Math.round(i)>=Math.round(n[t].sectionEnd-.5*s)&&Math.round(i)<=Math.round(n[t].nextSection-.5*s))e.setState({playingTimeForPlayers:Zn(Zn({},r),{},u()({},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 c=Math.round(i);e.checkSegment(c),e.setState({playingTimeForPlayers:Zn(Zn({},r),{},u()({},t,c))})}}else n[t]&&"live"===n[t].nextSection&&!a&&Math.round(i)>=Object(De.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){return"loaded_at"!==e})).forEach((function(r){var i=Object(De.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(){this.setStateSafe({muted:!this.state.muted})}},{key:"refreshPlaying",value:function(){this.onTimelineSeek(this.state.playerProgressTime)}},{key:"fastSeek",value:function(e,t){var n=Zn({},this.state.allRanges),r=Object.keys(n),i=!0;r.forEach((function(t){n[t]&&Array.isArray(n[t])&&(Object(De.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=ye.a(n);s.data=Zn(Zn({},s.data),{},{event:Object(Oe.getFormattedEventName)("play_init"),event_message:Object(Oe.getFormattedEventMessage)("play_init")}),this.updateLogEventQueue(s,{shouldPlayInitEventLog:!1})}break;case"play_init_mse":var u=ye.a(n);u.data=Zn(Zn({},u.data),{},{event:Object(Oe.getFormattedEventName)("play_init_mse"),event_message:Object(Oe.getFormattedEventMessage)("play_init_mse")}),this.updateLogEventQueue(u);break;case"play_init_hls":var c=ye.a(n);c.data=Zn(Zn({},c.data),{},{event:Object(Oe.getFormattedEventName)("play_init_hls"),event_message:Object(Oe.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=ye.a(n);if(l.data=Zn(Zn({},l.data),{},{event:Object(Oe.getFormattedEventName)("play_started"),event_message:Object(Oe.getFormattedEventMessage)("play_started")}),this.updateLogEventQueue(l),this.corrupted_frag_start){var f=a-this.corrupted_frag_start,d=ye.a(n);d.data=Zn(Zn({},d.data),{},{event:"player_error",error_name:"on_load_error",error_message:"".concat(Object(Oe.getFormattedErrorMessage)("on_load_error"),": ").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=ye.a(n);g.data=Zn(Zn({},g.data),{},{event:Object(Oe.getFormattedEventName)("play_started"),event_message:Object(Oe.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=ye.a(n);v.data=Zn(Zn({},v.data),{},{event:Object(Oe.getFormattedEventName)("play_stall"),event_message:"".concat(Object(Oe.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=ye.a(n);x.data=Zn(Zn({},x.data),{},{event:"player_error",error_name:"long_bufferization_error",error_message:"".concat(Object(Oe.getFormattedErrorMessage)("long_bufferization_error"),": ").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=ye.a(n);k.data=Zn(Zn({},k.data),{},{event:Object(Oe.getFormattedEventName)("play_pause"),event_message:Object(Oe.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 P=O.live_duration;P+=a-this.segmentStart,this.addPlayerStat("live_duration",!1,P),delete this.segmentStart;var R=this.state.vQuality,A=R.corruptedVideoFrames,C=R.droppedVideoFrames,D=R.totalVideoFrames;this.addPlayerStat("total_video_frames",!1,D),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":var L=ye.a(n);L.data=Zn(Zn({},L.data),{},{player_name:this.getCurrentPlayerName()}),this.updateLogEventQueue(L);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 I=i.duration;this.addPlayerStat("advertising_duration",!1,I)}}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 Zn({logEventQueue:[].concat(m()(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:"getHttpStreamUrl",value:function(){var e=this.state,t=e.selected,n=e.selectedUrl,r=this.props.streamer_http;return"".concat(n||r,"/").concat(t)}},{key:"getResultAuth",value:function(){var e=this.state.selectedAuth,t=this.props.auth_token;return e||t}},{key:"getStats",value:function(){return Zn(Zn({},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=Zn(Zn({},i),{},{application:o}),this.playerStatsObject=Zn(Zn(Zn({},this.playerStatsObject),i),{},{id:this.uuid}),this.playerStatsObject}}return this.getStats()}},{key:"getCurrentPlayerName",value:function(){return this.state.currentPlayerName}},{key:"getCommonTelemetryFields",value:function(){var e,t=this.getPlayerStats(),n=this.getCurrentPlayerName(),r=Object(Le.getCurrentPlayerVersion)(n),i=null===(e=Object.values(this.state.info||{}))||void 0===e?void 0:e[0];return Zn(Zn(Zn({app_name:"@flussonic/flussonic-dvr-player",app_version:"25.9.5",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,protocol:(null==t?void 0:t.proto)||"",player_session_id:(null==t?void 0:t.source_id)||"",os_version:(null==t?void 0:t.user_agent)||"",stream:(null==i?void 0:i.name)||"",stream_title:(null==i?void 0:i.title)||"",server_instance_id:(null==i?void 0:i.instance_id)||""},n&&{player_name:n}),r&&{player_version:r}),(null==i?void 0:i.operator_id)&&{operator_id:null==i?void 0:i.operator_id})}},{key:"getCommonRequestFields",value:function(e){var t,n,r,i,o=Object(Ce.getFilteredParams)(null===(t=e.config)||void 0===t?void 0:t.params),a=null!==(n=Object(Ce.getNewURL)(null===(r=e.config)||void 0===r?void 0:r.url,null===(i=e.config)||void 0===i?void 0:i.baseURL))&&void 0!==n?n:"";return{duration:e.duration,status:e.status,url:a.toString(),query_parameters:o}}},{key:"getCommonErrorRequestFields",value:function(e){var t,n,r,i,o=Object(Ce.getFilteredParams)(null===(t=e.config)||void 0===t?void 0:t.params),a=null!==(n=Object(Ce.getNewURL)(null===(r=e.config)||void 0===r?void 0:r.url,null===(i=e.config)||void 0===i?void 0:i.baseURL))&&void 0!==n?n:"";return{duration:e.duration,status:e.status||"",url:a.toString(),query_parameters:o,error_name:null==e?void 0:e.name,error_message:null==e?void 0:e.message}}},{key:"sendMetrics",value:function(e){this.getShouldEventsLog()&&Object(Xn.sendMetrics)(e)}},{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(Zn(Zn({},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){var t=this.state,n=t.rangesLoading,r=t.seekFrameEnabled,i=t.playingTimeForPlayers,o=t.playerProgressTime,a=t.selected,s=t.lockViewLeft,u=t.lockViewRight,c=t.showPlayButton,f=t.tracksAudio,d=t.tracksVideo,h=t.activeAudioTrack,p=t.activeVideoTrack,g=t.browser,m=t.streamingChannels,v=t.fullscreen,y=t.muted,b=t.volume,_=t.paused,w=t.live,E=t.isStalling,S=t.dvr_ranges_present,x=t.dvr_enabled,k=t.ui,T=t.noFullscreen,O=t.forceScrollToPoint,P=t.allMotions,R=t.allRanges,A=t.player,C=t.playback_speed,D=t.is_mobile,L=t.observableRanges,I=t.locale,M=t.playerRef,j=t.basicApiConfig,N=t.calendarRanges,F=t.allowExport,U=t.info,B=this.props,q=B.from,V=B.to,$=B.play_duration,z=B.zoom,G=B.thumbnails_enabled,W=B.noMenu,H=B.debug,K=B.timeLineElement,Y=B.info_url,Q=null;M&&"_video"in M&&(Q=M._video);var X=this.getHttpStreamUrl(),J=this.getResultAuth(),Z=W?null:l.a.createElement(l.a.Fragment,null,"ott"===k&&l.a.createElement(Kn,{isPaused:_,returnData:this.returnData,volume:b,isMuted:y,isFullscreen:v||!1,tracksAudio:f,tracksVideo:d,activeAudioTrack:h,activeVideoTrack:p,showPlayButton:c,live:w,onSeek:this.onTimelineSeek,noFullscreen:T,video:Q,from:q,to:V,playbackDuration:$,debug:H,info_url:Y}),"nvr"===k&&l.a.createElement(Vn,{http_stream_url:X,muted:y,thumbnails_enabled:G,playback_speed:C,locale:I,from:q,zoom:z,player:A,debug:H,is_mobile:D,auth_token:J,changeSpeed:this.changeSpeed,onToggleMuted:this.handleToggleMuted,onMetadataRequest:this.onMetadataRequest,onSeek:this.onTimelineSeek,onTakeSnapshotClick:this.onTakeSnapshotClick,currentTime:i&&a&&a in i?i[a]:{},playerProgressTime:o,now:o,allRanges:R,ranges:R&&R[a]?{ranges:"string"!=typeof R[a]?R[a]:[],motion_log:P&&P[a]?P[a]:[],stream:a}:{ranges:[],stream:a},motion_log:P&&P[a]?P[a]:[],observableRanges:L,calendarRanges:N,returnData:this.returnData,live:w,loading:E,dvr_ranges_present:S,dvr_enabled:x,paused:_,forceScrollToPoint:O,multiTimeline:this.props.multiTimeline,selected:a,rangesLoading:n,fastSeek:this.fastSeek,volume:b,enableMp4Download:this.props.enableMp4Download,downloadOptions:this.props.downloadOptions,seekFrameEnabled:r,fixedRange:this.props.fixedRange,lockViewLeft:s,lockViewRight:u,ui:k,playerRef:M,localTime:this.props.localtime,maxDuration:this.props.export_limit,tracksAudio:f,tracksVideo:d,activeAudioTrack:h,activeVideoTrack:p,basicApiConfig:j,browser:g,streams:m.streams,isFullscreen:v,noFullscreen:T,zoomSensivity:1,allowExport:F,onEvent:this.onEventCallback,onPause:e,streamInfo:U}));return K?Object(me.createPortal)(Z,K):Z}},{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,f=t.networkError,d=t.seekFrameEnabled,h=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,P=t.ui,R=t.volume,A=t.newTracks,C=t.basicApiConfig,D=t.advert,L=t.live,I=t.liveInView,M=t.info,j=t.playerRef,N=t.showSelectedOnly,F=t.resolution,U=this.props,B=U.episodes_url,q=U.statsSendEnable,V=U.statsSendTime,$=U.headers,z=U.from,G=U.to,W=U.play_duration,H=U.autoPlay,K=U.token,Y=U.info_url,Q=U.streamer_http,X=U.streamer_rtmp,J=U.debug,Z=U.debugTimers,ee=U.panzoom,te=U.customItemWrapper,ne=U.fixedRange,re=U.tracks,ie=U.ptz,oe=U.features,ae=U.wb,se=m.start,ue=m.end,ce=this.getResultAuth();j&&"_video"in j&&j._video&&"currentTime"in j._video&&j._video.currentTime>.25&&(this.canShowTimeline=!0);var le=l.a.createElement(Lt,{returnData:this.returnData,playerType:this.state.player,timeline:this.timeline,canShowTimeline:this.canShowTimeline,playingTimeForPlayers:r,name:this.props.name,muted:o,auth_token:ce,tracks:re,streamer_http:Q||h,streamer_rtmp:X,playback_speed:a,ranges:n,debug:J,debugTimers:Z,paused:this.state.paused,isStalling:T,onMediaInfo:this.dvrMediaInfo,streamingChannels:y,allRanges:s,noAuth:p,selected:v,panzoom:ee,customItemWrapper:te,refreshPlaying:this.refreshPlaying,showPlayButton:u,onClickToPlay:this.onClickToPlay,fastSeekingTo:c,from:z,to:G,volume:R,getStats:this.getPlayerStats,onEvent:this.onEventCallback,seekFrameEnabled:d,fixedRange:ne,onDoubleClick:function(){e.toggleFullScreen(),e.setState({showSelectedOnly:!N})},showSelectedOnly:N,ui:P,newTracks:A,autoVideoTrack:g,isPlaying:_,basicApiConfig:C,streamIsLive:w,logoProperties:S,browser:x,playSegmentDurationForPlayers:k,dvr_enabled:O,autoPlay:H,features:oe,advert:D,onSeek:this.onTimelineSeek,fastSeek:this.fastSeek,playerProgressTime:i,live:L,token:K});return l.a.createElement(ve.QueryClientProvider,{client:tr},l.a.createElement(ot.TelemetryContext.Provider,{value:this.telemetryContext},l.a.createElement("div",{className:"dvrContainer".concat(O?"":" noDvr"),ref:this.containerRef,"data-cy":"dvrContainer"},(null==ie?void 0:ie.show_ptz_controls)&&L&&l.a.createElement(Qn.a,{headers:$,ptz_url:null==ie?void 0:ie.api_url}),le,this.getShouldEventsLog()&&l.a.createElement(Pe.a,{logger:this.logger,logEventQueue:this.state.logEventQueue,clearLogEventQueue:this.clearLogEventQueue,streamInfo:this.state.info,getPlayerStats:this.getPlayerStats,getCurrentPlayerName:this.getCurrentPlayerName,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}),f&&l.a.createElement("div",{className:"reconnect"},l.a.createElement("p",null,"Trying to reconnect...")),l.a.createElement("div",{id:"videoThumbnail",className:"videoThumbnail"}),l.a.createElement("div",{id:"forCalendar"}),l.a.createElement("div",{id:"forPopup"}),l.a.createElement("div",{id:"forClearout"}),this.canShowTimeline&&_&&l.a.createElement("div",{className:"Loading".concat(T?" visible":""),"data-cy":"loadingIndicator"},l.a.createElement(je,null)),v&&!("ott"===P&&(z&&G||z&&W))&&Object.keys(C).length&&y.streams.map((function(t,n){if(t.subName&&!t.ureachable){var r="".concat(t.subName,"_").concat(n,"_stream_info");return l.a.createElement(Te.a,{name:t.subName,auth_token:t.auth_token||E,address:t.address||"",basicApiConfig:C,returnData:e.returnData,info_url:Y,isLive:L,onEvent:e.onEventCallback,key:r})}})),v&&se&&ue&&"ott"!==P&&!f&&y.streams.map((function(t,n){if(t.subName&&!t.ureachable){var r="".concat(t.subName,"_").concat(n,"_ranges_getter_not_live");return l.a.createElement(_e.a,{name:t.subName,address:t.address||Q,auth_token:t.auth_token||"",start:ae?z: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:r,resolution:F})}})),v&&I&&"ott"!==P&&!f&&Object.keys(M).length&&y.streams.map((function(t,n){if(t.subName===v){var r="".concat(t.subName,"_").concat(n,"_ranges_getter_live");return l.a.createElement(_e.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:r,resolution:F,start:ae?z:se,end:ue,onEvent:e.onEventCallback})}})),Object.keys(C).length&&O&&B&&v&&!f&&"ott"!==P&&l.a.createElement(Ee.a,{name:v,start:se,end:ue,episodes_url:B,headers:$,basicApiConfig:C,setMotions:this.setMotions,onEvent:this.onEventCallback}),q&&!f&&y.streams.map((function(t,n){if(t.subName&&!t.ureachable){var r="".concat(t.subName,"_").concat(n,"_session_save");return l.a.createElement(xe.a,{name:t.subName,stats:e.getPlayerStats,basicApiConfig:C,statsSendTime:V,key:r})}})))))}}])}(c.Component);nr.propTypes={ui:x.a.oneOf(["ott","nvr"]),fixedRange:x.a.bool,proto:x.a.string,from:x.a.number,to:x.a.number,play_duration:x.a.number,streamer_http:x.a.string,streamer_rtmp:x.a.string,thumbnails_enabled:x.a.bool,auth_token:x.a.string,autoPlay:x.a.bool,locale:x.a.oneOf(["ru","en"]),name:x.a.string,zoom:x.a.number,debug:x.a.bool,debugTimers:x.a.bool,tracks:x.a.string,timeLineElement:x.a.element,onMediaInfo:x.a.func,panzoom:x.a.bool,noMenu:x.a.bool,customItemWrapper:x.a.func,centeredSeek:x.a.bool,multiTimeline:x.a.bool,element:x.a.instanceOf(Element),episodes_url:x.a.string,reportState:x.a.func,streams:x.a.array,streamingChannels:x.a.shape({streams:x.a.array}),enableMp4Download:x.a.bool,version:x.a.string,downloadOptions:x.a.arrayOf(x.a.shape({title:x.a.string,callback:x.a.func})),statsSendEnable:x.a.bool,statsSendTime:x.a.number,onEvent:x.a.func,localtime:x.a.bool,allow_export:x.a.bool,export_limit:x.a.number,start_track:x.a.string,tokenName:x.a.string,token:x.a.string,dvr:x.a.bool,headers:x.a.shape({}),enoughBufferTime:x.a.number,ptz:x.a.shape({show_ptz_controls:x.a.bool,api_url:x.a.string}),wb:x.a.bool,features:x.a.shape({isScreenshotEditingEnabled:x.a.bool})},nr.defaultProps={autoPlay:!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,debug:!1,debugTimers:!1,ptz:{show_ptz_controls:!1,api_url:null}};var rr=nr,ir=n(570),or=n(571);function ar(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 sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}ge.use(We.initReactI18next);var ur=function(e){ge.init({lng:e,fallbackLng:"en",keySeparator:!1,interpolation:{escapeValue:!1},resources:{en:{translation:sr({},ir)},ru:{translation:sr({},or)}}})},cr=i()((function e(){var t=this;a()(this,e),u()(this,"subscribe",(function(e,n,r){t.state=e,t.getStats=n,t.main=r})),u()(this,"setRoot",(function(e){t.root=e})),u()(this,"isPlaying",(function(){return!t.state.isStalling&&t.state.isPlaying})),u()(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}})),u()(this,"isDvrInUse",(function(){return!t.state.live})),u()(this,"DvrInstance",(function(){return t.main})),u()(this,"DvrUnmount",(function(){t.root.unmount()}))}));rr.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(p.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,ur(i.locale)):ur((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="true"==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.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),i.wb&&(r.wb="true"===i.wb)}else ur((null==e?void 0:e.locale)||"en"),r.info_url=e.info_url,r.wb=e.wb,r.allow_export=e.allow_export,"string"==typeof e.muted?r.muted="true"==e.muted:r.muted=e.muted;var s=new cr;r.reportState=s.subscribe;var u="";"undefined"!=typeof VERSION&&(u=VERSION),r.version=u;var c=d()(e,{$merge:r});c.thumbnails_enabled||(c.thumbnails_enabled=!1);var f=Object(h.createRoot)(t);return c.close=function(){f.unmount()},f.render(l.a.createElement(rr,c)),s.setRoot(f),s};t.default=rr},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 R})),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 P(e,t){return e<<t|e>>>32-t}var R=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]=P(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=P(g,5)+O(w,m,v,y)+b+t[w]+d[_]>>>0;b=y,y=v,v=P(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(60),o=n.n(i).a.unstable_batchedUpdates;r.a.setBatchNotifyFunction(o)},function(e,t,n){"use strict";var r=n(137),i=console;Object(r.b)(i)}])}));