PageSourceSearch

https://www.ardmediathek.de/ardplayer-xray-full.1abd40a2.chunk.1788868624859.js

js ardmediathek.de collected 2026-09-24 09:02:42 UTC 594,004 bytes, 157 lines download raw bytes

vendor: 6,446 bytes, lines 1-2
1/*! For license information please see ardplayer-xray-full.1abd40a2.chunk.1788868624859.js.LICENSE.txt */
2(()=>{"use strict";var e={66927(e,t,n){var r=n(18794),a=n(42272),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(a(e)+" is not a function")}},48831(e,t,n){var r=n(12793).has;e.exports=function(e){return r(e),e}},18924(e,t,n){var r=n(27080),a=n(40475),o=n(29100).f,i=r("unscopables"),s=Array.prototype;void 0===s[i]&&o(s,i,{configurable:!0,value:a(null)}),e.exports=function(e){s[i][e]=!0}},11468(e,t,n){var r=n(21688),a=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new a("Incorrect invocation")}},84464(e,t,n){var r=n(98861),a=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(a(e)+" is not an object")}},35460(e,t,n){var r=n(99630),a=n(98977),o=n(95807),i=function(e){return function(t,n,i){var s=r(t),l=o(s);if(0===l)return!e&&-1;var c,u=a(i,l);if(e&&n!=n){for(;l>u;)if((c=s[u++])!=c)return!0}else for(;l>u;u++)if((e||u in s)&&s[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},69786(e,t,n){var r=n(41175),a=n(82001),o=TypeError,i=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(a(e)&&!i(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},73666(e,t,n){var r=n(84464),a=n(4090);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){a(e,"throw",t)}}},52911(e,t,n){var r=n(63027),a=r({}.toString),o=r("".slice);e.exports=function(e){return o(a(e),8,-1)}},92491(e,t,n){var r=n(71324),a=n(76162),o=n(76150),i=n(29100);e.exports=function(e,t,n){for(var s=a(t),l=i.f,c=o.f,u=0;u<s.length;u++){var d=s[u];r(e,d)||n&&r(n,d)||l(e,d,c(t,d))}}},84678(e,t,n){var r=n(94892);e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},89566(e){e.exports=function(e,t){return{value:e,done:t}}},50298(e,t,n){var r=n(41175),a=n(29100),o=n(41513);e.exports=r?function(e,t,n){return a.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},41513(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},74119(e,t,n){var r=n(41175),a=n(29100),o=n(41513);e.exports=function(e,t,n){r?a.f(e,t,o(0,n)):e[t]=n}},80707(e,t,n){var r=n(98904),a=n(29100);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),a.f(e,t,n)}},7255(e,t,n){var r=n(18794),a=n(29100),o=n(98904),i=n(26564);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(r(n)&&o(n,c,s),s.global)l?e[t]=n:i(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:a.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},98498(e,t,n){var r=n(7255);e.exports=function(e,t,n){for(var a in t)r(e,a,t[a],n);return e}},26564(e,t,n){var r=n(4127),a=Object.defineProperty;e.exports=function(e,t){try{a(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},41175(e,t,n){var r=n(94892);e.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},68752(e,t,n){var r=n(4127),a=n(98861),o=r.document,i=a(o)&&a(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},12504(e){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw new t("Maximum allowed index exceeded");return e}},1976(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},74298(e,t,n){var r=n(4127).navigator,a=r&&r.userAgent;e.exports=a?String(a):""},95422(e,t,n){var r,a,o=n(4127),i=n(74298),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(a=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!a&&i&&(!(r=i.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/))&&(a=+r[1]),e.exports=a},11187(e,t,n){var r=n(4127),a=n(76150).f,o=n(50298),i=n(7255),s=n(26564),l=n(92491),c=n(17191);e.exports=function(e,t){var n,u,d,p,f,h=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[h]||s(h,{}):r[h]&&r[h].prototype)for(u in t){if(p=t[u],d=e.dontCallGetSet?(f=a(n,u))&&f.value:n[u],!c(g?u:h+(m?".":"#")+u,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&o(p,"sham",!0),i(n,u,p,e)}}},94892(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},63160(e,t,n){var r=n(45825),a=Function.prototype,o=a.apply,i=a.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?i.bind(o):function(){return i.apply(o,arguments)})},1079(e,t,n){var r=n(13449),a=n(66927),o=n(45825),i=r(r.bind);e.exports=function(e,t){return a(e),void 0===t?e:o?i(e,t):function(){return e.apply(t,arguments)}}},45825(e,t,n){var r=n(94892);e.exports=!r(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},65418(e,t,n){var r=n(45825),a=Function.prototype.call;e.exports=r?a.bind(a):function(){return a.apply(a,arguments)}},16993(e,t,n){var r=n(41175),a=n(71324),o=Function.prototype,i=r&&Object.getOwnPropertyDescriptor,s=a(o,"name"),l=s&&"something"===function(){}.name,c=s&&(!r||r&&i(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},70079(e,t,n){var r=n(63027),a=n(66927);e.exports=function(e,t,n){try{return r(a(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},13449(e,t,n){var r=n(52911),a=n(63027);e.exports=function(e){if("Function"===r(e))return a(e)}},63027(e,t,n){var r=n(45825),a=Function.prototype,o=a.call,i=r&&a.bind.bind(o,o);e.exports=r?i:function(e){return function(){return o.apply(e,arguments)}}},60878(e,t,n){var r=n(4127),a=n(18794);e.exports=function(e,t){return arguments.length<2?(n=r[e],a(n)?n:void 0):r[e]&&r[e][t];var n}},49060(e){e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},71935(e,t,n){var r=n(65418),a=n(84464),o=n(49060),i=n(54188);e.exports=function(e,t){t&&"string"==typeof e||a(e);var n=i(e);return o(a(void 0!==n?r(n,e):e))}},92248(e,t,n){var r=n(65418),a=n(18794),o=n(84464),i=n(42272),s=n(54188),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(a(n))return o(r(n,e));throw new l(i(e)+" is not iterable")}},54188(e,t,n){var r=n(52911),a=n(53600),o=n(64215),i=n(27080)("iterator"),s=Array.prototype;e.exports=function(e){if(!a(e))return o(e,i)||o(e,"@@iterator")||("Arguments"===r(e)?s[i]:void 0)}}
2,64215(e,t,n){var r=n(66927),a=n(53600);e.exports=function(e,t){var n=e[t];return a(n)?void 0:r(n)}},11052(e,t,n){var r=n(66927),a=n(84464),o=n(65418),i=n(51402),s=n(49060),l="Invalid size",c=RangeError,u=TypeError,d=Math.max,p=function(e,t){this.set=e,this.size=d(t,0),this.has=r(e.has),this.keys=r(e.keys)};p.prototype={getIterator:function(){return s(a(o(this.keys,this.set)))},includes:function(e){return o(this.has,this.set,e)}},e.exports=function(e){a(e);var t=+e.size;if(t!=t)throw new u(l);var n=i(t);if(n<0)throw new c(l);return new p(e,n)}},4127(e){var t=function(e){return e&&e.Math===Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof globalThis&&globalThis)||t("object"==typeof this&&this)||function(){return this}()||Function("return this")()},71324(e,t,n){var r=n(63027),a=n(16674),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(a(e),t)}},45730(e){e.exports={}},60048(e,t,n){var r=n(60878);e.exports=r("document","documentElement")},23696(e,t,n){var r=n(41175),a=n(94892),o=n(68752);e.exports=!r&&!a(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},52466(e,t,n){var r=n(63027),a=n(94892),o=n(52911),i=Object,s=r("".split);e.exports=a(function(){return!i("z").propertyIsEnumerable(0)})?function(e){return"String"===o(e)?s(e,""):i(e)}:i},83335(e,t,n){var r=n(63027),a=n(18794),o=n(352),i=r(Function.toString);a(o.inspectSource)||(o.inspectSource=function(e){return i(e)}),e.exports=o.inspectSource},74852(e,t,n){var r,a,o,i=n(90567),s=n(4127),l=n(98861),c=n(50298),u=n(71324),d=n(352),p=n(99690),f=n(45730),h="Object already initialized",g=s.TypeError,m=s.WeakMap;if(i||d.state){var y=d.state||(d.state=new m);y.get=y.get,y.has=y.has,y.set=y.set,r=function(e,t){if(y.has(e))throw new g(h);return t.facade=e,y.set(e,t),t},a=function(e){return y.get(e)||{}},o=function(e){return y.has(e)}}else{var v=p("state");f[v]=!0,r=function(e,t){if(u(e,v))throw new g(h);return t.facade=e,c(e,v,t),t},a=function(e){return u(e,v)?e[v]:{}},o=function(e){return u(e,v)}}e.exports={set:r,get:a,has:o,enforce:function(e){return o(e)?a(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=a(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return n}}}},64916(e,t,n){var r=n(27080),a=n(30510),o=r("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||i[o]===e)}},82001(e,t,n){var r=n(52911);e.exports=Array.isArray||function(e){return"Array"===r(e)}},18794(e){var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},17191(e,t,n){var r=n(94892),a=n(18794),o=/#|\.prototype\./,i=function(e,t){var n=l[s(e)];return n===u||n!==c&&(a(t)?r(t):!!t)},s=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=i.data={},c=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},53600(e){e.exports=function(e){return null==e}},98861(e,t,n){var r=n(18794);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},64400(e){e.exports=!1},11898(e,t,n){var r=n(60878),a=n(18794),o=n(21688),i=n(70535),s=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return a(t)&&o(t.prototype,s(e))}},87118(e,t,n){var r=n(65418);e.exports=function(e,t,n){for(var a,o,i=n?e:e.iterator,s=e.next;!(a=r(s,i)).done;)if(void 0!==(o=t(a.value)))return o}},2711(e,t,n){var r=n(1079),a=n(65418),o=n(84464),i=n(42272),s=n(64916),l=n(95807),c=n(21688),u=n(92248),d=n(54188),p=n(4090),f=TypeError,h=function(e,t){this.stopped=e,this.result=t},g=h.prototype;e.exports=function(e,t,n){var m,y,v,b,x,S,w,k=n&&n.that,_=!(!n||!n.AS_ENTRIES),C=!(!n||!n.IS_RECORD),P=!(!n||!n.IS_ITERATOR),I=!(!n||!n.INTERRUPTED),E=r(t,k),T=function(e){var t=m;return m=void 0,t&&p(t,"normal"),new h(!0,e)},M=function(e){return _?(o(e),I?E(e[0],e[1],T):E(e[0],e[1])):I?E(e,T):E(e)};if(C)m=e.iterator;else if(P)m=e;else{if(!(y=d(e)))throw new f(i(e)+" is not iterable");if(s(y)){for(v=0,b=l(e);b>v;v++)if((x=M(e[v]))&&c(g,x))return x;return new h(!1)}m=u(e,y)}for(S=C?e.next:m.next;!(w=a(S,m)).done;){var O=w.value;try{x=M(O)}catch(e){if(!m)throw e;p(m,"throw",e)}if("object"==typeof x&&x&&c(g,x))return x}return new h(!1)}},44430(e){e.exports=function(e){e.iterator=e.next=e.nextHandler=e.mapper=e.predicate=e.inner=e.iterables=e.iters=e.openIters=e.padding=e.finishResults=e.buffer=null}},38772(e,t,n){var r=n(4090);e.exports=function(e,t,n){for(var a=e.length-1;a>=0;a--)if(void 0!==e[a])try{n=r(e[a].iterator,t,n)}catch(e){t="throw",n=e}if("throw"===t)throw n;return n}}
2,4090(e,t,n){var r=n(65418),a=n(84464),o=n(64215);e.exports=function(e,t,n){var i,s;a(e);try{if(!(i=o(e,"return"))){if("throw"===t)throw n;return n}i=r(i,e)}catch(e){s=!0,i=e}if("throw"===t)throw n;if(s)throw i;return a(i),n}},95521(e,t,n){var r=n(65418),a=n(40475),o=n(50298),i=n(98498),s=n(27080),l=n(74852),c=n(64215),u=n(22636).IteratorPrototype,d=n(89566),p=n(4090),f=n(38772),h=n(44430),g=s("toStringTag"),m="IteratorHelper",y="WrapForValidIterator",v="normal",b="throw",x=l.set,S=function(e){var t=l.getterFor(e?y:m);return i(a(u),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return d(void 0,!0);try{var r=n.nextHandler();return n.done&&h(n),n.returnHandlerResult?r:d(r,n.done)}catch(e){throw n.done=!0,h(n),e}},return:function(){var n=t(this),a=n.iterator,o=n.inner,i=n.openIters,s=n.done;if(n.done=!0,e){var l=c(a,"return");return l?r(l,a):d(void 0,!0)}if(h(n),s)return d(void 0,!0);if(o)try{p(o.iterator,v)}catch(e){return p(a,b,e)}if(i)try{f(i,v)}catch(e){if(a)return p(a,b,e);throw e}return a&&p(a,v),d(void 0,!0)}})},w=S(!0),k=S(!1);o(k,g,"Iterator Helper"),e.exports=function(e,t,n){var r=function(r,a){a?(a.iterator=r.iterator,a.next=r.next):a=r,a.type=t?y:m,a.returnHandlerResult=!!n,a.nextHandler=e,a.counter=0,a.done=!1,x(this,a)};return r.prototype=t?w:k,r}},40909(e){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}}},47280(e,t,n){var r=n(4127);e.exports=function(e,t){var n=r.Iterator,a=n&&n.prototype,o=a&&a[e],i=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){i=!0}},-1)}catch(e){e instanceof t||(i=!1)}if(!i)return o}},22636(e,t,n){var r,a,o,i=n(94892),s=n(18794),l=n(98861),c=n(40475),u=n(76068),d=n(7255),p=n(27080),f=n(64400),h=p("iterator"),g=!1;[].keys&&("next"in(o=[].keys())?(a=u(u(o)))!==Object.prototype&&(r=a):g=!0),!l(r)||i(function(){var e={};return r[h].call(e)!==e})?r={}:f&&(r=c(r)),s(r[h])||d(r,h,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:g}},30510(e){e.exports=Object.create?Object.create(null):{}},95807(e,t,n){var r=n(82737);e.exports=function(e){return r(e.length)}},98904(e,t,n){var r=n(63027),a=n(94892),o=n(18794),i=n(71324),s=n(41175),l=n(16993).CONFIGURABLE,c=n(83335),u=n(74852),d=u.enforce,p=u.get,f=String,h=Object.defineProperty,g=r("".slice),m=r("".replace),y=r([].join),v=s&&!a(function(){return 8!==h(function(){},"length",{value:8}).length}),b=String(String).split("String"),x=e.exports=function(e,t,n){"Symbol("===g(f(t),0,7)&&(t="["+m(f(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||l&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),v&&n&&i(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=d(e);return i(r,"source")||(r.source=y(b,"string"==typeof t?t:"")),e};Function.prototype.toString=x(function(){return o(this)&&p(this).source||c(this)},"toString")},47352(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},40475(e,t,n){var r,a=n(84464),o=n(56236),i=n(1976),s=n(45730),l=n(60048),c=n(68752),u=n(99690),d="prototype",p="script",f=u("IE_PROTO"),h=function(){},g=function(e){return"<"+p+">"+e+"</"+p+">"},m=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;y="undefined"!=typeof document?document.domain&&r?m(r):(t=c("iframe"),n="java"+p+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F):m(r);for(var a=i.length;a--;)delete y[d][i[a]];return y()};s[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h[d]=a(e),n=new h,h[d]=null,n[f]=e):n=y(),void 0===t?n:o.f(n,t)}},56236(e,t,n){var r=n(41175),a=n(8549),o=n(29100),i=n(84464),s=n(99630),l=n(16251);t.f=r&&!a?Object.defineProperties:function(e,t){i(e);for(var n,r=s(t),a=l(t),c=a.length,u=0;c>u;)o.f(e,n=a[u++],r[n]);return e}},29100(e,t,n){var r=n(41175),a=n(23696),o=n(8549),i=n(84464),s=n(43750),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",f="writable";t.f=r?o?function(e,t,n){if(i(e),t=s(t),i(n),"function"==typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var r=u(e,t);
2r&&r[f]&&(e[t]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:d in n?n[d]:r[d],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(i(e),t=s(t),i(n),a)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},76150(e,t,n){var r=n(41175),a=n(65418),o=n(43214),i=n(41513),s=n(99630),l=n(43750),c=n(71324),u=n(23696),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),u)try{return d(e,t)}catch(e){}if(c(e,t))return i(!a(o.f,e,t),e[t])}},98331(e,t,n){var r=n(20581),a=n(1976).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},80706(e,t){t.f=Object.getOwnPropertySymbols},76068(e,t,n){var r=n(71324),a=n(18794),o=n(16674),i=n(99690),s=n(84678),l=i("IE_PROTO"),c=Object,u=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=o(e);if(r(t,l))return t[l];var n=t.constructor;return a(n)&&t instanceof n?n.prototype:t instanceof c?u:null}},21688(e,t,n){var r=n(63027);e.exports=r({}.isPrototypeOf)},20581(e,t,n){var r=n(63027),a=n(71324),o=n(99630),i=n(35460).indexOf,s=n(45730),l=r([].push);e.exports=function(e,t){var n,r=o(e),c=0,u=[];for(n in r)!a(s,n)&&a(r,n)&&l(u,n);for(;t.length>c;)a(r,n=t[c++])&&(~i(u,n)||l(u,n));return u}},16251(e,t,n){var r=n(20581),a=n(1976);e.exports=Object.keys||function(e){return r(e,a)}},43214(e,t){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,a=r&&!n.call({1:2},1);t.f=a?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},95269(e,t,n){var r=n(65418),a=n(18794),o=n(98861),i=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&a(n=e.toString)&&!o(s=r(n,e)))return s;if(a(n=e.valueOf)&&!o(s=r(n,e)))return s;if("string"!==t&&a(n=e.toString)&&!o(s=r(n,e)))return s;throw new i("Can't convert object to primitive value")}},76162(e,t,n){var r=n(60878),a=n(63027),o=n(98331),i=n(80706),s=n(84464),l=a([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=i.f;return n?l(t,n(e)):t}},7263(e,t,n){var r=n(53600),a=TypeError;e.exports=function(e){if(r(e))throw new a("Can't call method on "+e);return e}},96321(e,t,n){var r=n(12793),a=n(70386),o=r.Set,i=r.add;e.exports=function(e){var t=new o;return a(e,function(e){i(t,e)}),t}},76545(e,t,n){var r=n(48831),a=n(12793),o=n(96321),i=n(67135),s=n(11052),l=n(70386),c=n(87118),u=a.has,d=a.remove;e.exports=function(e){var t=r(this),n=s(e),a=o(t);return i(a)<=n.size?l(a,function(e){n.includes(e)&&d(a,e)}):c(n.getIterator(),function(e){u(a,e)&&d(a,e)}),a}},12793(e,t,n){var r=n(63027),a=Set.prototype;e.exports={Set,add:r(a.add),has:r(a.has),remove:r(a.delete),proto:a}},32179(e,t,n){var r=n(48831),a=n(12793),o=n(67135),i=n(11052),s=n(70386),l=n(87118),c=a.Set,u=a.add,d=a.has;e.exports=function(e){var t=r(this),n=i(e),a=new c;return o(t)>n.size?l(n.getIterator(),function(e){d(t,e)&&u(a,e)}):s(t,function(e){n.includes(e)&&u(a,e)}),a}},73092(e,t,n){var r=n(48831),a=n(12793).has,o=n(67135),i=n(11052),s=n(70386),l=n(87118),c=n(4090);e.exports=function(e){var t=r(this),n=i(e);if(o(t)<=n.size)return!1!==s(t,function(e){if(n.includes(e))return!1},!0);var u=n.getIterator();return!1!==l(u,function(e){if(a(t,e))return c(u.iterator,"normal",!1)})}},86243(e,t,n){var r=n(48831),a=n(67135),o=n(70386),i=n(11052);e.exports=function(e){var t=r(this),n=i(e);return!(a(t)>n.size)&&!1!==o(t,function(e){if(!n.includes(e))return!1},!0)}},25954(e,t,n){var r=n(48831),a=n(12793).has,o=n(67135),i=n(11052),s=n(87118),l=n(4090);e.exports=function(e){var t=r(this),n=i(e);if(o(t)<n.size)return!1;var c=n.getIterator();return!1!==s(c,function(e){if(!a(t,e))return l(c.iterator,"normal",!1)})}},70386(e,t,n){var r=n(63027),a=n(87118),o=n(12793),i=o.Set,s=o.proto,l=r(s.forEach),c=r(s.keys),u=c(new i).next;e.exports=function(e,t,n){return n?a({iterator:c(e),next:u},t):l(e,t)}},42405(e,t,n){var r=n(60878),a=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](a(0));try{return(new n)[e](a(-1)),!1}catch(r){if(!t)return!0;try{return(new n)[e](o(-1/0)),!1}catch(r){return t(new n([1,2])[e](o(1/0)))}}}catch(e){return!1}}},45758(e){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}}},67135(e,t,n){var r=n(70079),a=n(12793);e.exports=r(a.proto,"size","get")||function(e){return e.size}},84851(e,t,n){var r=n(48831),a=n(12793),o=n(96321),i=n(11052),s=n(87118),l=a.add,c=a.has,u=a.remove;e.exports=function(e){var t=r(this),n=i(e).getIterator(),a=o(t);return s(n,function(e){c(t,e)?u(a,e):l(a,e)}),a}},16471(e,t,n){var r=n(48831),a=n(12793).add,o=n(96321),i=n(11052),s=n(87118);e.exports=function(e){var t=r(this),n=i(e).getIterator(),l=o(t);return s(n,function(e){a(l,e)}),l}}
2,99690(e,t,n){var r=n(35384),a=n(33699),o=r("keys");e.exports=function(e){return o[e]||(o[e]=a(e))}},352(e,t,n){var r=n(64400),a=n(4127),o=n(26564),i="__core-js_shared__",s=e.exports=a[i]||o(i,{});(s.versions||(s.versions=[])).push({version:"3.50.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"})},35384(e,t,n){var r=n(352),a=Object.create||Object;e.exports=function(e,t){return r[e]||(r[e]=t||a(null))}},47974(e,t,n){var r=n(95422),a=n(94892),o=n(4127).String;e.exports=!!Object.getOwnPropertySymbols&&!a(function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},98977(e,t,n){var r=n(51402),a=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?a(n+t,0):o(n,t)}},99630(e,t,n){var r=n(52466),a=n(7263);e.exports=function(e){return r(a(e))}},51402(e,t,n){var r=n(47352);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},82737(e,t,n){var r=n(51402),a=Math.min;e.exports=function(e){var t=r(e);return t>0?a(t,9007199254740991):0}},16674(e,t,n){var r=n(7263),a=Object;e.exports=function(e){return a(r(e))}},22732(e,t,n){var r=n(65418),a=n(98861),o=n(11898),i=n(64215),s=n(95269),l=n(27080),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!a(e)||o(e))return e;var n,l=i(e,u);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!a(n)||o(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},43750(e,t,n){var r=n(22732),a=n(11898);e.exports=function(e){var t=r(e,"string");return a(t)?t:t+""}},42272(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},33699(e,t,n){var r=n(63027),a=0,o=Math.random(),i=r(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++a+o,36)}},70535(e,t,n){var r=n(47974);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8549(e,t,n){var r=n(41175),a=n(94892);e.exports=r&&a(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},90567(e,t,n){var r=n(4127),a=n(18794),o=r.WeakMap;e.exports=a(o)&&/native code/.test(String(o))},27080(e,t,n){var r=n(4127),a=n(35384),o=n(71324),i=n(33699),s=n(47974),l=n(70535),c=r.Symbol,u=a("wks"),d=l?c.for||c:c&&c.withoutSetter||i;e.exports=function(e){return o(u,e)||(u[e]=s&&o(c,e)?c[e]:d("Symbol."+e)),u[e]}},97700(e,t,n){var r=n(11187),a=n(35460).includes,o=n(94892),i=n(18924),s=o(function(){return!Array(1).includes()}),l=o(function(){return[,1].includes(void 0,1)});r({target:"Array",proto:!0,forced:s||l},{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},99921(e,t,n){var r=n(11187),a=n(16674),o=n(95807),i=n(69786),s=n(12504);r({target:"Array",proto:!0,arity:1,forced:n(94892)(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=a(this),n=o(t),r=arguments.length;s(n+r);for(var l=0;l<r;l++)t[n]=arguments[l],n++;return i(t,n),n}})},47144(e,t,n){var r=n(11187),a=n(4127),o=n(11468),i=n(84464),s=n(18794),l=n(76068),c=n(80707),u=n(74119),d=n(94892),p=n(71324),f=n(27080),h=n(22636).IteratorPrototype,g=n(41175),m=n(64400),y="constructor",v="Iterator",b=f("toStringTag"),x=TypeError,S=a[v],w=m||!s(S)||S.prototype!==h||!d(function(){S({})}),k=function(){if(o(this,h),l(this)===h)throw new x("Abstract class Iterator not directly constructable")},_=function(e,t){g?c(h,e,{configurable:!0,get:function(){return t},set:function(t){if(i(this),this===h)throw new x("You can't redefine this property");p(this,e)?this[e]=t:u(this,e,t)}}):h[e]=t};p(h,b)||_(b,v),!w&&p(h,y)&&h[y]!==Object||_(y,k),k.prototype=h,r({global:!0,constructor:!0,forced:w},{Iterator:k})},21927(e,t,n){var r=n(11187),a=n(65418),o=n(2711),i=n(66927),s=n(84464),l=n(49060),c=n(4090),u=n(47280)("every",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:u},{every:function(e){s(this);try{i(e)}catch(e){c(this,"throw",e)}if(u)return a(u,this,e);var t=l(this),n=0;return!o(t,function(t,r){if(!e(t,n++))return r()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},25744(e,t,n){var r=n(11187),a=n(65418),o=n(66927),i=n(84464),s=n(49060),l=n(95521),c=n(73666),u=n(64400),d=n(4090),p=n(40909),f=n(47280),h=!u&&!p("filter",function(){}),g=!u&&!h&&f("filter",TypeError),m=u||h||g,y=l(function(){for(var e,t,n=this.iterator,r=this.predicate,o=this.next;;){if(e=i(a(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){i(this);try{o(e)}catch(e){d(this,"throw",e)}return g?a(g,this,e):new y(s(this),{predicate:e})}})},65337(e,t,n){var r=n(11187),a=n(65418),o=n(2711),i=n(66927),s=n(84464),l=n(49060),c=n(4090),u=n(47280)("find",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:u},{find:function(e){s(this);try{i(e)}catch(e){c(this,"throw",e)}if(u)return a(u,this,e);var t=l(this),n=0;return o(t,function(t,r){if(e(t,n++))return r(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},58102(e,t,n){var r=n(11187),a=n(65418),o=n(66927),i=n(84464),s=n(49060),l=n(71935),c=n(95521),u=n(4090),d=n(94892),p=n(64400),f=n(40909),h=n(47280),g=!p&&d(function(){return 1!==[1].values().flatMap(function(){return[1]}).find(function(){return!0})}),m=!p&&!g&&!f("flatMap",function(){}),y=!p&&!g&&!m&&h("flatMap",TypeError),v=p||g||m||y,b=c(function(){for(var e,t,n=this.iterator,r=this.mapper;;){if(t=this.inner)try{if(!(e=i(a(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){u(n,"throw",e)}if(e=i(a(this.next,n)),this.done=!!e.done)return;try{this.inner=l(r(e.value,this.counter++),!1)}catch(e){u(n,"throw",e)}}});r({target:"Iterator",proto:!0,real:!0,forced:v},{flatMap:function(e){i(this);try{o(e)}catch(e){u(this,"throw",e)}return y?a(y,this,e):new b(s(this),{mapper:e,inner:null})}})},8021(e,t,n){var r=n(11187),a=n(65418),o=n(2711),i=n(66927),s=n(84464),l=n(49060),c=n(4090),u=n(47280)("forEac
2h",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:u},{forEach:function(e){s(this);try{i(e)}catch(e){c(this,"throw",e)}if(u)return a(u,this,e);var t=l(this),n=0;o(t,function(t){e(t,n++)},{IS_RECORD:!0})}})},89542(e,t,n){var r=n(11187),a=n(65418),o=n(66927),i=n(84464),s=n(49060),l=n(95521),c=n(73666),u=n(4090),d=n(40909),p=n(47280),f=n(64400),h=!f&&!d("map",function(){}),g=!f&&!h&&p("map",TypeError),m=f||h||g,y=l(function(){var e=this.iterator,t=i(a(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){i(this);try{o(e)}catch(e){u(this,"throw",e)}return g?a(g,this,e):new y(s(this),{mapper:e})}})},61696(e,t,n){var r=n(11187),a=n(2711),o=n(66927),i=n(84464),s=n(49060),l=n(4090),c=n(47280),u=n(63160),d=n(94892),p=TypeError,f=d(function(){[].keys().reduce(function(){},void 0)}),h=!f&&c("reduce",p);r({target:"Iterator",proto:!0,real:!0,forced:f||h},{reduce:function(e){i(this);try{o(e)}catch(e){l(this,"throw",e)}var t=arguments.length<2,n=t?void 0:arguments[1];if(h)return u(h,this,t?[e]:[e,n]);var r=s(this),c=0;if(a(r,function(r){t?(t=!1,n=r):n=e(n,r,c),c++},{IS_RECORD:!0}),t)throw new p("Reduce of empty iterator with no initial value");return n}})},99686(e,t,n){var r=n(11187),a=n(65418),o=n(2711),i=n(66927),s=n(84464),l=n(49060),c=n(4090),u=n(47280)("some",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:u},{some:function(e){s(this);try{i(e)}catch(e){c(this,"throw",e)}if(u)return a(u,this,e);var t=l(this),n=0;return o(t,function(t,r){if(e(t,n++))return r()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})}
2,24791(e,t,n){var r=n(11187),a=n(76545),o=n(94892);r({target:"Set",proto:!0,real:!0,forced:!n(42405)("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:a})},53457(e,t,n){var r=n(11187),a=n(94892),o=n(32179);r({target:"Set",proto:!0,real:!0,forced:!n(42405)("intersection",function(e){return 2===e.size&&e.has(1)&&e.has(2)})||a(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:o})},73532(e,t,n){var r=n(11187),a=n(73092);r({target:"Set",proto:!0,real:!0,forced:!n(42405)("isDisjointFrom",function(e){return!e})},{isDisjointFrom:a})},34737(e,t,n){var r=n(11187),a=n(86243);r({target:"Set",proto:!0,real:!0,forced:!n(42405)("isSubsetOf",function(e){return e})},{isSubsetOf:a})},4666(e,t,n){var r=n(11187),a=n(25954);r({target:"Set",proto:!0,real:!0,forced:!n(42405)("isSupersetOf",function(e){return!e})},{isSupersetOf:a})},77809(e,t,n){var r=n(11187),a=n(84851),o=n(45758);r({target:"Set",proto:!0,real:!0,forced:!n(42405)("symmetricDifference")||!o("symmetricDifference")},{symmetricDifference:a})},92653(e,t,n){var r=n(11187),a=n(16471),o=n(45758);r({target:"Set",proto:!0,real:!0,forced:!n(42405)("union")||!o("union")},{union:a})},88019(e,t,n){n(47144)},92568(e,t,n){n(21927)},1909(e,t,n){n(25744)},67288(e,t,n){n(65337)},41959(e,t,n){n(58102)},75328(e,t,n){n(8021)},32145(e,t,n){n(89542)},65081(e,t,n){n(61696)},80863(e,t,n){n(99686)},41118(e,t,n){n(24791)},51960(e,t,n){n(53457)},75409(e,t,n){n(73532)},11176(e,t,n){n(34737)},91543(e,t,n){n(4666)},85628(e,t,n){n(77809)},19254(e,t,n){n(92653)}};const t={};function n(r){const a=t[r];if(void 0!==a)return a.exports;const o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n(97700),n(99921),n(88019),n(92568),n(1909),n(67288),n(41959),n(75328),n(32145),n(65081),n(80863),n(41118),n(51960),n(75409),n(11176),n(91543),n(85628),n(19254),(globalThis.webpackChunk_ardplayer_bundler||=[]).push([[595],{160(e,t,n){n.d(t,{default:()=>hi});var r,a,o={8458:(e,t,n)=>{n.d(t,{A:()=>m});var r=n(8658),a=n(9241),o=n(1448),i=n(3755),s=n(1758),l=n(8717),c=n(1721),u=function(e,t,n){for(var r=0,o=0;r=o,o=(0,a.se)(),38===r&&12===o&&(t[n]=1),!(0,a.Sh)(o);)(0,a.K2)();return(0,a.di)(e,a.G1)},d=new WeakMap,p=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||d.get(n))&&!r){d.set(e,!0);for(var i=[],s=function(e,t){return(0,a.VF)(function(e,t){var n=-1,r=44;do{switch((0,a.Sh)(r)){case 0:38===r&&12===(0,a.se)()&&(t[n]=1),e[n]+=u(a.G1-1,t,n);break;case 2:e[n]+=(0,a.Tb)(r);break;case 4:if(44===r){e[++n]=58===(0,a.se)()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=(0,o.HT)(r)}}while(r=(0,a.K2)());return e}((0,a.c4)(e),t))}(t,i),l=n.props,c=0,p=0;c<s.length;c++)for(var f=0;f<l.length;f++,p++)e.props[p]=i[c]?s[c].replace(/&\f/g,l[f]):l[f]+" "+s[c]}}},f=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function h(e,t){switch((0,o.tW)(e,t)){case 5103:return i.j+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return i.j+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return i.j+e+i.vd+e+i.MS+e+e;case 6828:case 4268:return i.j+e+i.MS+e+e;case 6165:return i.j+e+i.MS+"flex-"+e+e;case 5187:return i.j+e+(0,o.HC)(e,/(\w+).+(:[^]+)/,i.j+"box-$1$2"+i.MS+"flex-$1$2")+e;case 5443:return i.j+e+i.MS+"flex-item-"+(0,o.HC)(e,/flex-|-self/,"")+e;case 4675:return i.j+e+i.MS+"flex-line-pack"+(0,o.HC)(e,/align-content|flex-|-self/,"")+e;case 5548:return i.j+e+i.MS+(0,o.HC)(e,"shrink","negative")+e;case 5292:return i.j+e+i.MS+(0,o.HC)(e,"basis","preferred-size")+e;case 6060:return i.j+"box-"+(0,o.HC)(e,"-grow","")+i.j+e+i.MS+(0,o.HC)(e,"grow","positive")+e;case 4554:return i.j+(0,o.HC)(e,/([^-])(transform)/g,"$1"+i.j+"$2")+e;case 6187:return(0,o.HC)((0,o.HC)((0,o.HC)(e,/(zoom-|grab)/,i.j+"$1"),/(image-set)/,i.j+"$1"),e,"")+e;case 5495:case 3959:return(0,o.HC)(e,/(image-set\([^]*)/,i.j+"$1$`$1");case 4968:return(0,o.HC)((0,o.HC)(e,/(.+:)(flex-)?(.*)/,i.j+"box-pack:$3"+i.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+i.j+e+e;case 4095:case 3583:case 4068:case 2532:return(0,o.HC)(e,/(.+)-inline(.+)/,i.j+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,o.b2)(e)-1-t>6)switch((0,o.wN)(e,t+1)){case 109:if(45!==(0,o.wN)(e,t+4))break;case 102:return(0,o.HC)(e,/(.+:)(.+)-([^]+)/,"$1"+i.j+"$2-$3$1"+i.vd+(108==(0,o.wN)(e,t+3)?"$3":"$2-$3"))+e;case 115:return~(0,o.K5)(e,"stretch")?h((0,o.HC)(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==(0,o.wN)(e,t+1))break;case 6444:switch((0,o.wN)(e,(0,o.b2)(e)-3-(~(0,o.K5)(e,"!important")&&10))){case 107:return(0,o.HC)(e,":",":"+i.j)+e;case 101:return(0,o.HC)(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+i.j+(45===(0,o.wN)(e,14)?"inline-":"")+"box$3$1"+i.j+"$2$3$1"+i.MS+"$2box$3")+e}break;case 5936:switch((0,o.wN)(e,t+11)){case 114:return i.j+e+i.MS+(0,o.HC)(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return i.j+e+i.MS+(0,o.HC)(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return i.j+e+i.MS+(0,o.HC)(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return i.j+e+i.MS+e+e}return e}var g=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case i.LU:e.return=h(e.value,e.length);break;case i.Sv:return(0,s.l)([(0,a.C)(e,{value:(0,o.HC)(e.value,"@","@"+i.j)})],r);case i.XZ:if(e.length)return(0,o.kg)(e.props,function(t){switch((0,o.YW)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,s.l)([(0,a.C)(e,{props:[(0,o.HC)(t,/:(read-\w+)/,":"+i.vd+"$1")]})],r);case"::placeholder":return(0,s.l)([(0,a.C)(e,{props:[(0,o.HC)(t,/:(plac\w+)/,":"+i.j+"input-$1")]}),(0,a.C)(e,{props:[(0,o.HC)(t,/:(plac\w+)/,":"+i.vd+"$1")]}),(0,a.C)(e,{props:[(0,o.HC)(t,/:(plac\w+)/,i.MS+"input-$1")]})],r)}return""})}}],m=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var a,o,i=e.stylisPlugins||g,u={},d=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)u[t[n]]=!0;d.push(e)});var h,m=[p,f],y=[s.A,(0,l.MY)(function(e){h.insert(e)})],v=(0,l.r1)(m.concat(i,y));o=function(e,t,n,r){var a;h=n,a=e?e+"{"+t.styles+"}":t.styles,(0,s.l)((0,c.wE)(a),v),r&&(b.inserted[t.name]=!0)};var b={key:t,sheet:new r.v({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:u,registered:{},insert:o};return b.sheet.hydrate(d),b}},4556:(e,t,n)=>{function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},805:(e,t,n)=>{n.d(t,{C:()=>g,E:()=>I,T:()=>v,_:()=>m,a:()=>S,b:()=>w,c:()=>C,h:()=>k,i:()=>f,u:()=>b,w:()=>y});var r=n(4041),a=n(8458),o=n(9575),i=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},s=n(5985),l=n.n(s),c=function(e,t){return l()(e,t)},u=n(5780),d=n(5557),p=n(6558),f=!1,h=r.createContext("undefined"!=typeof HTMLElement?(0,a.A)({key:"css"}):null),g=h.Provider,m=function(){return(0,r.useContext)(h)},y=function(e){return(0,r.forwardRef)(function(t,n){var a=(0,r.useContext)(h);return e(t,a,n)})},v=r.createContext({}),b=function(){return r.useContext(v)},x=i(function(e){return i(function(t){return function(e,t){return"function"==typeof t?t(e):(0,o.A)({},e,t)}(e,t)})}),S=function(e){var t=r.useContext(v);return e.theme!==t&&(t=x(t)(e.theme)),r.createElement(v.Provider,{value:t},e.children)};
2function w(e){var t=e.displayName||e.name||"Component",n=r.forwardRef(function(t,n){var a=r.useContext(v);return r.createElement(e,(0,o.A)({theme:a,ref:n},t))});return n.displayName="WithTheme("+t+")",c(n,e)}var k={}.hasOwnProperty,_="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",C=function(e,t){var n={};for(var r in t)k.call(t,r)&&(n[r]=t[r]);return n[_]=e,n},P=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,u.SF)(t,n,r),(0,p.s)(function(){return(0,u.sk)(t,n,r)}),null},I=y(function(e,t,n){var a=e.css;"string"==typeof a&&void 0!==t.registered[a]&&(a=t.registered[a]);var o=e[_],i=[a],s="";"string"==typeof e.className?s=(0,u.Rk)(t.registered,i,e.className):null!=e.className&&(s=e.className+" ");var l=(0,d.J)(i,void 0,r.useContext(v));s+=t.key+"-"+l.name;var c={};for(var p in e)k.call(e,p)&&"css"!==p&&p!==_&&!f&&(c[p]=e[p]);return c.className=s,n&&(c.ref=n),r.createElement(r.Fragment,null,r.createElement(P,{cache:t,serialized:l,isStringTag:"string"==typeof o}),r.createElement(o,c))})},5428:(e,t,n)=>{n.r(t),n.d(t,{CacheProvider:()=>r.C,ClassNames:()=>h,Global:()=>c,ThemeContext:()=>r.T,ThemeProvider:()=>r.a,__unsafe_useEmotionCache:()=>r._,createElement:()=>l,css:()=>u,jsx:()=>l,keyframes:()=>d,useTheme:()=>r.u,withEmotionCache:()=>r.w,withTheme:()=>r.b});var r=n(805),a=n(4041),o=n(5780),i=n(6558),s=n(5557),l=(n(8458),n(5985),function(e,t){var n=arguments;if(null==t||!r.h.call(t,"css"))return a.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=r.E,i[1]=(0,r.c)(e,t);for(var s=2;s<o;s++)i[s]=n[s];return a.createElement.apply(null,i)}),c=(0,r.w)(function(e,t){var n=e.styles,l=(0,s.J)([n],void 0,a.useContext(r.T)),c=a.useRef();return(0,i.i)(function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,a=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(r=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),c.current=[n,r],function(){n.flush()}},[t]),(0,i.i)(function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,o.sk)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",l,n,!1)}},[t,l.name]),null});function u(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.J)(t)}var d=function(){var e=u.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},p=function e(t){for(var n=t.length,r=0,a="";r<n;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var s in i="",o)o[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=o}i&&(a&&(a+=" "),a+=i)}}return a},f=function(e){var t=e.cache,n=e.serializedArr;return(0,i.s)(function(){for(var e=0;e<n.length;e++)(0,o.sk)(t,n[e],!1)}),null},h=(0,r.w)(function(e,t){var n=!1,i=[],l=function(){if(n&&r.i)throw new Error("css can only be used during render");for(var e=arguments.length,a=new Array(e),l=0;l<e;l++)a[l]=arguments[l];var c=(0,s.J)(a,t.registered);return i.push(c),(0,o.SF)(t,c,!1),t.key+"-"+c.name},c={css:l,cx:function(){if(n&&r.i)throw new Error("cx can only be used during render");for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return function(e,t,n){var r=[],a=(0,o.Rk)(e,r,n);return r.length<2?n:a+t(r)}(t.registered,l,p(a))},theme:a.useContext(r.T)},u=e.children(c);return n=!0,a.createElement(a.Fragment,null,a.createElement(f,{cache:t,serializedArr:i}),u)})},5557:(e,t,n)=>{n.d(t,{J:()=>m});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},a=n(4556),o=!1,i=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},u=(0,a.A)(function(e){return l(e)?e:e.replace(i,"-$&").toLowerCase()}),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,function(e,t,n){return h={name:t,styles:n,next:h},t})}return 1===r[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"},p="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function f(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var a=n;if(1===a.anim)return h={name:a.name,styles:a.styles,next:h},a.name;var i=n;
vendor: 2,962 bytes, line 2
2if(void 0!==i.styles){var s=i.next;if(void 0!==s)for(;void 0!==s;)h={name:s.name,styles:s.styles,next:h},s=s.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=f(e,t,n[a])+";";else for(var i in n){var s=n[i];if("object"!=typeof s){var l=s;null!=t&&void 0!==t[l]?r+=i+"{"+t[l]+"}":c(l)&&(r+=u(i)+":"+d(i,l)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&o)throw new Error(p);if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var h=f(e,t,s);switch(i){case"animation":case"animationName":r+=u(i)+":"+h+";";break;default:r+=i+"{"+h+"}"}}else for(var g=0;g<s.length;g++)c(s[g])&&(r+=u(i)+":"+d(i,s[g])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var l=h,g=n(e);return h=l,f(e,t,g)}}var m=n;if(null==t)return m;var y=t[m];return void 0!==y?y:m}var h,g=/label:\s*([^\s;{]+)\s*(;|$)/g;function m(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,a="";h=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,a+=f(n,t,o)):a+=o[0];for(var i=1;i<e.length;i++)a+=f(n,t,e[i]),r&&(a+=o[i]);g.lastIndex=0;for(var s,l="";null!==(s=g.exec(a));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(a)+l;return{name:c,styles:a,next:h}}},8658:(e,t,n)=>{n.d(t,{v:()=>r});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++}
2,t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}()},7516:(e,t,n)=>{n.d(t,{A:()=>y});var r=n(9575),a=n(4041),o=n(4556),i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,o.A)(function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),l=n(805),c=n(5780),u=n(5557),d=n(6558),p=s,f=function(e){return"theme"!==e},h=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?p:f},g=function(e,t,n){var r;if(t){var a=t.shouldForwardProp;r=e.__emotion_forwardProp&&a?function(t){return e.__emotion_forwardProp(t)&&a(t)}:a}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;
2return(0,c.SF)(t,n,r),(0,d.s)(function(){return(0,c.sk)(t,n,r)}),null},y=function e(t,n){var o,i,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==n&&(o=n.label,i=n.target);var p=g(t,n,s),f=p||h(d),y=!f("as");return function(){var v=arguments,b=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&b.push("label:"+o+";"),null==v[0]||void 0===v[0].raw)b.push.apply(b,v);else{b.push(v[0][0]);for(var x=v.length,S=1;S<x;S++)b.push(v[S],v[0][S])}var w=(0,l.w)(function(e,t,n){var r=y&&e.as||d,o="",s=[],g=e;if(null==e.theme){for(var v in g={},e)g[v]=e[v];g.theme=a.useContext(l.T)}"string"==typeof e.className?o=(0,c.Rk)(t.registered,s,e.className):null!=e.className&&(o=e.className+" ");var x=(0,u.J)(b.concat(s),t.registered,g);o+=t.key+"-"+x.name,void 0!==i&&(o+=" "+i);var S=y&&void 0===p?h(r):f,w={};for(var k in e)y&&"as"===k||S(k)&&(w[k]=e[k]);return w.className=o,n&&(w.ref=n),a.createElement(a.Fragment,null,a.createElement(m,{cache:t,serialized:x,isStringTag:"string"==typeof r}),a.createElement(r,w))});return w.displayName=void 0!==o?o:"Styled("+("string"==typeof d?d:d.displayName||d.name||"Component")+")",w.defaultProps=t.defaultProps,w.__emotion_real=w,w.__emotion_base=d,w.__emotion_styles=b,w.__emotion_forwardProp=p,Object.defineProperty(w,"toString",{value:function(){return"."+i}}),w.withComponent=function(t,a){return e(t,(0,r.A)({},n,a,{shouldForwardProp:g(w,a,!0)})).apply(void 0,b)},w}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){y[e]=y(e)})},6558:(e,t,n)=>{var r;n.d(t,{i:()=>s,s:()=>i});var a=n(4041),o=!!(r||(r=n.t(a,2))).useInsertionEffect&&(r||(r=n.t(a,2))).useInsertionEffect,i=o||function(e){return e()},s=o||a.useLayoutEffect},5780:(e,t,n)=>{function r(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}n.d(t,{Rk:()=>r,SF:()=>a,sk:()=>o});var a=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){a(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}},7062:function(e,t,n){var r,a,o,i,s,l,c,u,d,p,f,h,g,m;e.exports=(r=n(2784),a=n(8088),o=n(7581),i=n(7765),s=n(7289),l=n(3657),c=n(7546),u=n(9071),d=n(74),p=n(7331),f=n(8285),h=n(4041),g={654:function(e,t,n){var r,a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},a.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},l=(this&&this.__spreadArray,this&&this.__importDefault||function(e){return e&&e.__esMo
2dule?e:{default:e}});Object.defineProperty(t,"__esModule",{value:!0}),t.updateRtl=t.doesFocusableExist=t.getCurrentFocusKey=t.updateAllLayouts=t.resume=t.pause=t.navigateByDirection=t.setFocus=t.setKeyMap=t.destroy=t.setThrottle=t.init=t.SpatialNavigation=t.ROOT_FOCUS_KEY=void 0;var c=l(n(150)),u=l(n(117)),d=l(n(747)),p=l(n(23)),f=l(n(842)),h=l(n(682)),g=l(n(784)),m=l(n(432)),y=l(n(67)),v=l(n(35)),b=l(n(119)),x=s(n(964)),S="left",w="right",k="up",_="down",C="enter",P=((r={}).left=[37,"ArrowLeft"],r.up=[38,"ArrowUp"],r.right=[39,"ArrowRight"],r.down=[40,"ArrowDown"],r.enter=[13,"Enter"],r);t.ROOT_FOCUS_KEY="SN:ROOT";var I={leading:!0,trailing:!1},E=function(){function e(){this.focusableComponents={},this.focusKey=null,this.parentsHavingFocusedChild=[],this.domNodeFocusOptions={},this.enabled=!1,this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.useGetBoundingClientRect=!1,this.shouldFocusDOMNode=!1,this.shouldUseNativeEvents=!1,this.writingDirection=b.default.LTR,this.pressedKeys={},this.paused=!1,this.keyDownEventListener=null,this.keyUpEventListener=null,this.keyMap=P,this.pause=this.pause.bind(this),this.resume=this.resume.bind(this),this.setFocus=this.setFocus.bind(this),this.updateAllLayouts=this.updateAllLayouts.bind(this),this.navigateByDirection=this.navigateByDirection.bind(this),this.init=this.init.bind(this),this.setThrottle=this.setThrottle.bind(this),this.destroy=this.destroy.bind(this),this.setKeyMap=this.setKeyMap.bind(this),this.getCurrentFocusKey=this.getCurrentFocusKey.bind(this),this.doesFocusableExist=this.doesFocusableExist.bind(this),this.updateRtl=this.updateRtl.bind(this),this.setFocusDebounced=(0,c.default)(this.setFocus,300,{leading:!1,trailing:!0}),this.debug=!1,this.visualDebugger=null,this.logIndex=0,this.distanceCalculationMethod="corners"}return e.getCutoffCoordinate=function(e,t,n,r,a){var o=e?r.top:a===b.default.LTR?r.left:r.right,i=e?r.bottom:a===b.default.LTR?r.right:r.left;return t?n?o:i:n?i:o},e.getRefCorners=function(e,t,n){var r={a:{x:0,y:0},b:{x:0,y:0}};switch(e){case k:var a=t?n.bottom:n.top;r.a={x:n.left,y:a},r.b={x:n.right,y:a};break;case _:a=t?n.top:n.bottom,r.a={x:n.left,y:a},r.b={x:n.right,y:a};break;case S:var o=t?n.right:n.left;r.a={x:o,y:n.top},r.b={x:o,y:n.bottom};break;case w:o=t?n.left:n.right,r.a={x:o,y:n.top},r.b={x:o,y:n.bottom}}return r},e.isAdjacentSlice=function(e,t,n){var r=e.a,a=e.b,o=t.a,i=t.b,s=n?"x":"y",l=r[s],c=a[s],u=o[s],d=i[s],p=.2*(c-l);return Math.max(0,Math.min(c,d)-Math.max(l,u))>=p},e.getPrimaryAxisDistance=function(e,t,n){var r=e.a,a=t.a,o=n?"y":"x";return Math.abs(a[o]-r[o])},e.getSecondaryAxisDistance=function(e,t,n,r,a){if(a)return a(e,t,n,r);var o=e.a,i=e.b,s=t.a,l=t.b,c=n?"x":"y",u=o[c],d=i[c],p=s[c],f=l[c];if("center"===r){var h=(u+d)/2,g=(p+f)/2;return Math.abs(h-g)}
2if("edges"===r){var m=Math.min(u,d),y=Math.min(p,f),v=Math.max(u,d),b=Math.max(p,f),x=Math.abs(m-y),S=Math.abs(v-b);return Math.min(x,S)}var w=[Math.abs(p-u),Math.abs(p-d),Math.abs(f-u),Math.abs(f-d)];return Math.min.apply(Math,w)},e.prototype.sortSiblingsByPriority=function(t,n,r,a){var o=this,i=r===_||r===k,s=e.getRefCorners(r,!1,n);return(0,m.default)(t,function(t){var n=e.getRefCorners(r,!0,t.layout),l=e.isAdjacentSlice(s,n,i),c=l?e.getPrimaryAxisDistance:e.getSecondaryAxisDistance,u=l?e.getSecondaryAxisDistance:e.getPrimaryAxisDistance,d=c(s,n,i,o.distanceCalculationMethod,o.customDistanceCalculationFunction),p=u(s,n,i,o.distanceCalculationMethod,o.customDistanceCalculationFunction),f=5*d+p,h=(f+1)/(l?5:1);return o.log("smartNavigate","distance (primary, secondary, total weighted) for ".concat(t.focusKey," relative to ").concat(a," is"),d,p,f),o.log("smartNavigate","priority for ".concat(t.focusKey," relative to ").concat(a," is"),h),o.visualDebugger&&(o.visualDebugger.drawPoint(n.a.x,n.a.y,"yellow",6),o.visualDebugger.drawPoint(n.b.x,n.b.y,"yellow",6)),h})},e.prototype.init=function(e){var t=this,n=void 0===e?{}:e,r=n.debug,a=void 0!==r&&r,o=n.visualDebug,i=void 0!==o&&o,s=n.nativeMode,l=void 0!==s&&s,c=n.throttle,u=void 0===c?0:c,d=n.throttleKeypresses,p=void 0!==d&&d,f=n.useGetBoundingClientRect,h=void 0!==f&&f,m=n.shouldFocusDOMNode,y=void 0!==m&&m,x=n.domNodeFocusOptions,S=void 0===x?{}:x,w=n.shouldUseNativeEvents,k=void 0!==w&&w,_=n.rtl,C=void 0!==_&&_,P=n.distanceCalculationMethod,I=void 0===P?"corners":P,E=n.customDistanceCalculationFunction,T=void 0===E?void 0:E;if(!this.enabled&&(this.domNodeFocusOptions=S,this.enabled=!0,this.nativeMode=l,this.throttleKeypresses=p,this.useGetBoundingClientRect=h,this.shouldFocusDOMNode=y&&!l,this.shouldUseNativeEvents=k,this.writingDirection=C?b.default.RTL:b.default.LTR,this.distanceCalculationMethod=I,this.customDistanceCalculationFunction=T,this.debug=a,!this.nativeMode&&(Number.isInteger(u)&&u>0&&(this.throttle=u),this.bindEventHandlers(),i))){this.visualDebugger=new v.default(this.writingDirection);var M=function(){requestAnimationFrame(function(){t.visualDebugger.clearLayouts(),(0,g.default)(t.focusableComponents,function(e,n){t.visualDebugger.drawLayout(e.layout,n,e.parentFocusKey)}),M()})};M()}},e.prototype.setThrottle=function(e){var t=void 0===e?{}:e,n=t.throttle,r=void 0===n?0:n,a=t.throttleKeypresses,o=void 0!==a&&a;this.throttleKeypresses=o,this.nativeMode||(this.unbindEventHandlers(),Number.isInteger(r)&&(this.throttle=r),this.bindEventHandlers())},e.prototype.destroy=function(){this.enabled&&(this.enabled=!1,this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.focusKey=null,this.parentsHavingFocusedChild=[],this.focusableComponents={},this.paused=!1,this.keyMap=P,this.unbindEventHandlers())},e.prototype.getEventType=function(e){return(0,p.default)(this.getKeyMap(),function(t){return t.includes(e)})},e.getKeyCode=function(e){return e.keyCode||e.code||e.key},e.prototype.bindEventHandlers=function(){var t=this;"undefined"!=typeof window&&window.addEventListener&&(this.keyDownEventListener=function(n){if(!0!==t.paused){t.debug&&(t.logIndex+=1);var r=e.getKeyCode(n),a=t.getEventType(r);if(a){t.pressedKeys[a]=t.pressedKeys[a]?t.pressedKeys[a]+1:1,t.shouldUseNativeEvents||(n.preventDefault(),n.stopPropagation());var o={pressedKeys:t.pressedKeys};if(a===C&&t.focusKey)t.onEnterPress(o);else{var i=!1===t.onArrowPress(a,o);if(t.visualDebugger&&t.visualDebugger.clear(),i)t.log("keyDownEventListener","default navigation prevented");else{var s=(0,p.default)(t.getKeyMap(),function(e){return e.includes(r)});t.smartNavigate(s,null,{event:n})}}}}},this.throttle&&(this.keyDownEventListenerThrottled=(0,y.default)(this.keyDownEventListener.bind(this),this.throttle,I)),this.keyUpEventListener=function(n){var r=e.getKeyCode(n),a=t.getEventType(r);delete t.pressedKeys[a],t.throttle&&!t.throttleKeypresses&&t.keyDownEventListenerThrottled.cancel(),a===C&&t.focusKey&&t.onEnterRelease(),!t.focusKey||a!==S&&a!==w&&a!==k&&a!==_||t.onArrowRelease(a)},window.addEventListener("keyup",this.keyUpEventListener),window.addEventListener("keydown",this.throttle?this.keyDownEventListenerThrottled:this.keyDownEventListener))},e.prototype.unbindEventHandlers=function(){if("undefined"!=typeof window&&window.removeEventListener){window.removeEventListener("keyup",this.keyUpEventListener),this.keyUpEventListener=null;var e=this.throttle?this.keyDownEventListenerThrottled:this.keyDownEventListener;window.removeEventListener("keydown",e),this.keyDownEventListener=null}},e.prototype.onEnterPress=function(e){var t=this.focusableComponents[this.focusKey];
2t?t.focusable?t.onEnterPress&&t.onEnterPress(e):this.log("onEnterPress","componentNotFocusable"):this.log("onEnterPress","noComponent")},e.prototype.onEnterRelease=function(){var e=this.focusableComponents[this.focusKey];e?e.focusable?e.onEnterRelease&&e.onEnterRelease():this.log("onEnterRelease","componentNotFocusable"):this.log("onEnterRelease","noComponent")},e.prototype.onArrowPress=function(e,t){var n=this.focusableComponents[this.focusKey];if(n)return n&&n.onArrowPress&&n.onArrowPress(e,t);this.log("onArrowPress","noComponent")},e.prototype.onArrowRelease=function(e){var t=this.focusableComponents[this.focusKey];t?t.focusable?t.onArrowRelease&&t.onArrowRelease(e):this.log("onArrowRelease","componentNotFocusable"):this.log("onArrowRelease","noComponent")},e.prototype.navigateByDirection=function(e,t){if(!0!==this.paused&&this.enabled&&!this.nativeMode){var n=[_,k,S,w];n.includes(e)?(this.log("navigateByDirection","direction",e),this.smartNavigate(e,null,t)):this.log("navigateByDirection","Invalid direction. You passed: `".concat(e,"`, but you can use only these: "),n)}},e.prototype.smartNavigate=function(t,n,r){var a=this;if(!this.nativeMode){var o=t===_||t===k,i=t===_||(this.writingDirection===b.default.LTR?t===w:t===S);this.log("smartNavigate","direction",t),this.log("smartNavigate","fromParentFocusKey",n),this.log("smartNavigate","this.focusKey",this.focusKey),n||(0,g.default)(this.focusableComponents,function(e){e.layoutUpdated=!1});var s=this.focusableComponents[n||this.focusKey];if(n||s){if(this.log("smartNavigate","currentComponent",s?s.focusKey:void 0,s?s.node:void 0,s),s){this.updateLayout(s.focusKey);var l=s.parentFocusKey,c=s.focusKey,u=s.layout,p=e.getCutoffCoordinate(o,i,!1,u,this.writingDirection),h=(0,d.default)(this.focusableComponents,function(t){if(t.parentFocusKey===l&&t.focusable){a.updateLayout(t.focusKey);var n=e.getCutoffCoordinate(o,i,!0,t.layout,a.writingDirection);return o||a.writingDirection===b.default.LTR?i?n>=p:n<=p:i?n<=p:n>=p}return!1});if(this.debug&&(this.log("smartNavigate","currentCutoffCoordinate",p),this.log("smartNavigate","siblings","".concat(h.length," elements:"),h.map(function(e){return e.focusKey}).join(", "),h.map(function(e){return e.node}),h.map(function(e){return e}))),this.visualDebugger){var m=e.getRefCorners(t,!1,u);this.visualDebugger.drawPoint(m.a.x,m.a.y),this.visualDebugger.drawPoint(m.b.x,m.b.y)}var y=this.sortSiblingsByPriority(h,u,t,c),v=(0,f.default)(y);if(this.log("smartNavigate","nextComponent",v?v.focusKey:void 0,v?v.node:void 0,v),v)this.setFocus(v.focusKey,r);else{var x=this.focusableComponents[l],C=(null==x?void 0:x.isFocusBoundary)?x.focusBoundaryDirections||[t]:[];x&&C.includes(t)||this.smartNavigate(t,l,r)}}}else this.setFocus(this.getForcedFocusKey())}},e.prototype.saveLastFocusedChildKey=function(e,t){e&&(this.log("saveLastFocusedChildKey","".concat(e.focusKey," lastFocusedChildKey set"),t),e.lastFocusedChildKey=t)},e.prototype.log=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];this.debug},e.prototype.getCurrentFocusKey=function(){return this.focusKey},e.prototype.getForcedFocusKey=function(){var e,n=(0,d.default)(this.focusableComponents,function(e){return e.focusable&&e.forceFocus}),r=this.sortSiblingsByPriority(n,{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0,node:null},"down",t.ROOT_FOCUS_KEY);return null===(e=(0,f.default)(r))||void 0===e?void 0:e.focusKey},e.prototype.getNextFocusKey=function(e){var t=this,n=this.focusableComponents[e];if(!n||this.nativeMode)return e;var r=(0,d.default)(this.focusableComponents,function(t){return t.parentFocusKey===e&&t.focusable});if(r.length>0){var a=n.lastFocusedChildKey,o=n.preferredChildFocusKey;if(this.log("getNextFocusKey","lastFocusedChildKey is",a),this.log("getNextFocusKey","preferredChildFocusKey is",o),a&&n.saveLastFocusedChild&&this.isParticipatingFocusableComponent(a))return this.log("getNextFocusKey","lastFocusedChildKey will be focused",a),this.getNextFocusKey(a);if(o&&this.isParticipatingFocusableComponent(o))return this.log("getNextFocusKey","preferredChildFocusKey will be focused",o),this.getNextFocusKey(o);
2r.forEach(function(e){return t.updateLayout(e.focusKey)});var i=function(e,t){var n=t===b.default.LTR?function(e){var t=e.layout;return Math.abs(t.left)+Math.abs(t.top)}:function(e){var t=e.layout;return Math.abs(window.innerWidth-t.right)+Math.abs(t.top)},r=(0,m.default)(e,n);return(0,f.default)(r)}(r,this.writingDirection).focusKey;return this.log("getNextFocusKey","childKey will be focused",i),this.getNextFocusKey(i)}return this.log("getNextFocusKey","targetFocusKey",e),e},e.prototype.addFocusable=function(e){var t=e.focusKey,n=e.node,r=e.parentFocusKey,a=e.onEnterPress,o=e.onEnterRelease,i=e.onArrowPress,s=e.onArrowRelease,l=e.onFocus,c=e.onBlur,u=e.saveLastFocusedChild,d=e.trackChildren,p=e.onUpdateFocus,f=e.onUpdateHasFocusedChild,h=e.preferredChildFocusKey,g=e.autoRestoreFocus,m=e.forceFocus,y=e.focusable,v=e.isFocusBoundary,b=e.focusBoundaryDirections;if(this.focusableComponents[t]={focusKey:t,node:n,parentFocusKey:r,onEnterPress:a,onEnterRelease:o,onArrowPress:i,onArrowRelease:s,onFocus:l,onBlur:c,onUpdateFocus:p,onUpdateHasFocusedChild:f,saveLastFocusedChild:u,trackChildren:d,preferredChildFocusKey:h,focusable:y,isFocusBoundary:v,focusBoundaryDirections:b,autoRestoreFocus:g,forceFocus:m,lastFocusedChildKey:null,layout:{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0,node:n},layoutUpdated:!1},n||console.warn('Component added without a node reference. This will result in its coordinates being empty and may cause lost focus. Check the "ref" passed to "useFocusable": ',this.focusableComponents[t]),!this.nativeMode){this.updateLayout(t),this.log("addFocusable","Component added: ",this.focusableComponents[t]),t===this.focusKey&&this.setFocus(h||t);for(var x=this.focusableComponents[this.focusKey];x;){if(x.parentFocusKey===t){this.updateParentsHasFocusedChild(this.focusKey,{}),this.updateParentsLastFocusedChild(this.focusKey);break}x=this.focusableComponents[x.parentFocusKey]}}},e.prototype.removeFocusable=function(e){var t=e.focusKey,n=this.focusableComponents[t];if(n){var r=n.parentFocusKey;(0,n.onUpdateFocus)(!1),this.log("removeFocusable","Component removed: ",n),delete this.focusableComponents[t];var a=this.parentsHavingFocusedChild.includes(t);this.parentsHavingFocusedChild=this.parentsHavingFocusedChild.filter(function(e){return e!==t});var o=this.focusableComponents[r],i=t===this.focusKey;if(o&&o.lastFocusedChildKey===t&&(o.lastFocusedChildKey=null),this.nativeMode)return;(i||a)&&o&&o.autoRestoreFocus&&(this.log("removeFocusable","Component removed: ",i?"Leaf component":"Container component","Auto restoring focus to: ",r),this.setFocusDebounced(r))}},e.prototype.getNodeLayoutByFocusKey=function(e){var t=this.focusableComponents[e];return t?(this.updateLayout(t.focusKey),t.layout):null},e.prototype.setCurrentFocusedKey=function(e,t){var n,r,a,o;if(this.isFocusableComponent(this.focusKey)&&e!==this.focusKey){var i=this.focusableComponents[this.focusKey];i.onUpdateFocus(!1),i.onBlur(this.getNodeLayoutByFocusKey(this.focusKey),t),null===(r=null===(n=i.node)||void 0===n?void 0:n.removeAttribute)||void 0===r||r.call(n,"data-focused"),this.log("setCurrentFocusedKey","onBlur",i)}if(this.focusKey=e,this.isFocusableComponent(this.focusKey)){var s=this.focusableComponents[this.focusKey];this.shouldFocusDOMNode&&s.node&&s.node.focus(this.domNodeFocusOptions),null===(o=null===(a=s.node)||void 0===a?void 0:a.setAttribute)||void 0===o||o.call(a,"data-focused","true"),s.onUpdateFocus(!0),s.onFocus(this.getNodeLayoutByFocusKey(this.focusKey),t),this.log("setCurrentFocusedKey","onFocus",s)}},e.prototype.updateParentsHasFocusedChild=function(e,t){for(var n=this,r=[],a=this.focusableComponents[e];a;){var o=a.parentFocusKey,i=this.focusableComponents[o];if(i){var s=i.focusKey;r.push(s)}a=i}var l=(0,u.default)(this.parentsHavingFocusedChild,r),c=(0,u.default)(r,this.parentsHavingFocusedChild);(0,h.default)(l,function(e){var r=n.focusableComponents[e];r&&r.trackChildren&&r.onUpdateHasFocusedChild(!1),n.onIntermediateNodeBecameBlurred(e,t)}),(0,h.default)(c,function(e){var r=n.focusableComponents[e];r&&r.trackChildren&&r.onUpdateHasFocusedChild(!0),n.onIntermediateNodeBecameFocused(e,t)}),this.parentsHavingFocusedChild=r},e.prototype.updateParentsLastFocusedChild=function(e){for(var t=this.focusableComponents[e];t;){var n=t.parentFocusKey,r=this.focusableComponents[n];r&&this.saveLastFocusedChildKey(r,t.focusKey),t=r}},e.prototype.getKeyMap=function(){return this.keyMap},e.prototype.setKeyMap=function(e){this.keyMap=a(a({},this.getKeyMap()),function(e){var t={};return Object.entries(e).forEach(function(e){var n=e[0],r=e[1];t[n]=Array.isArray(r)?r:[r]}),t}(e))},e.prototype.isFocusableComponent=function(e){return!!this.focusableComponents[e]},e.prototype.isParticipatingFocusableComponent=function(e){return this.isFocusableComponent(e)&&this.focusableComponents[e].focusable},e.prototype.onIntermediateNodeBecameFocused=function(e,t){this.isParticipatingFocusableComponent(e)&&this.focusableComponents[e].onFocus(this.getNodeLayoutByFocusKey(e),t)},e.prototype.onIntermediateNodeBecameBlurred=function(e,t){this.isParticipatingFocusableComponent(e)&&this.focusableComponents[e].onBlur(this.getNodeLayoutByFocusKey(e),t)},e.prototype.pause=function(){this.paused=!0},e.prototype.resume=function(){this.paused=!1},e.prototype.setFocus=function(e,n){if(void 0===n&&(n={}),this.setFocusDebounced.cancel(),this.enabled){this.log("setFocus","focusKey",e),e&&e!==t.ROOT_FOCUS_KEY||(e=this.getForcedFocusKey());var r=this.getNextFocusKey(e);this.log("setFocus","newFocusKey",r),this.setCurrentFocusedKey(r,n),this.updateParentsHasFocusedChild(r,n),this.updateParentsLastFocusedChild(r)}},e.prototype.updateAllLayouts=function(){var e=this;this.enabled&&!this.nativeMode&&(0,g.default)(this.focusableComponents,function(t,n){e.updateLayout(n)})},e.prototype.updateLayout=function(e){var t=this.focusableComponents[e];if(t&&!this.nativeMode&&!t.layoutUpdated){var n=t.node,r=this.useGetBoundingClientRect?(0,x.getBoundingClientRect)(n):(0,x.default)(n);t.layout=a(a({},r),{node:n})}},e.prototype.updateFocusable=function(e,t){var n=t.node,r=t.preferredChildFocusKey,a=t.focusable,o=t.isFocusBoundary,i=t.focusBoundaryDirections,s=t.onEnterPress,l=t.onEnterRelease,c=t.onArrowPress,u=t.onFocus,d=t.onBlur;if(!this.nativeMode){var p=this.focusableComponents[e];p&&(p.preferredChildFocusKey=r,p.focusable=a,p.isFocusBoundary=o,p.focusBoundaryDirections=i,p.onEnterPress=s,p.onEnterRelease=l,p.onArrowPress=c,p.onFocus=u,p.onBlur=d,n&&(p.node=n))}},e.prototype.isNativeMode=function(){return this.nativeMode},e.prototype.doesFocusableExist=function(e){return!!this.focusableComponents[e]},e.prototype.updateRtl=function(e){this.writingDirection=e?b.default.RTL:b.default.LTR},e}();t.SpatialNavigation=new E,t.init=t.SpatialNavigation.init,t.setThrottle=t.SpatialNavigation.setThrottle,t.destroy=t.SpatialNavigation.destroy,t.setKeyMap=t.SpatialNavigation.setKeyMap,t.setFocus=t.SpatialNavigation.setFocus,t.navigateByDirection=t.SpatialNavigation.navigateByDirection,t.pause=t.SpatialNavigation.pause,t.resume=t.SpatialNavigation.resume,t.updateAllLayouts=t.SpatialNavigation.updateAllLayouts,t.getCurrentFocusKey=t.SpatialNavigation.getCurrentFocusKey,t.doesFocusableExist=t.SpatialNavigation.doesFocusableExist,t.updateRtl=t.SpatialNavigation.updateRtl},35:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esMo
2dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(119)),o="undefined"!=typeof window&&window.document,i=o?window.innerWidth:0,s=o?window.innerHeight:0,l=function(){function e(t){o&&(this.debugCtx=e.createCanvas("sn-debug","1010",t),this.layoutsCtx=e.createCanvas("sn-layouts","1000",t),this.writingDirection=t)}return e.createCanvas=function(e,t,n){var r=document.querySelector("#".concat(e))||document.createElement("canvas");r.setAttribute("id",e),r.setAttribute("dir",n===a.default.LTR?"ltr":"rtl");var o=r.getContext("2d");return r.style.zIndex=t,r.style.position="fixed",r.style.top="0",r.style.left="0",document.body.appendChild(r),r.width=i,r.height=s,o},e.prototype.clear=function(){o&&this.debugCtx.clearRect(0,0,i,s)},e.prototype.clearLayouts=function(){o&&this.layoutsCtx.clearRect(0,0,i,s)},e.prototype.drawLayout=function(e,t,n){if(o){this.layoutsCtx.strokeStyle="green",this.layoutsCtx.strokeRect(e.left,e.top,e.width,e.height),this.layoutsCtx.font="8px monospace",this.layoutsCtx.fillStyle="red";var r=this.writingDirection===a.default.LTR?"left":"right",i=e[r];this.layoutsCtx.fillText(t,i,e.top+10),this.layoutsCtx.fillText(n,i,e.top+25),this.layoutsCtx.fillText("".concat(r,": ").concat(i),i,e.top+40),this.layoutsCtx.fillText("top: ".concat(e.top),i,e.top+55)}},e.prototype.drawPoint=function(e,t,n,r){void 0===n&&(n="blue"),void 0===r&&(r=10),o&&(this.debugCtx.strokeStyle=n,this.debugCtx.lineWidth=3,this.debugCtx.strokeRect(e-r/2,t-r/2,r,r))},e}();t.default=l},119:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(n||(n={})),t.default=n},607:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(79),t),a(n(445),t),a(n(654),t)},964:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getBoundingClientRect=void 0;var n=function(e){for(var t=e.offsetParent,n=e.offsetHeight,r=e.offsetWidth,a=e.offsetLeft,o=e.offsetTop;t&&1===t.nodeType;)a+=t.offsetLeft-t.scrollLeft,o+=t.offsetTop-t.scrollTop,t=t.offsetParent;return{height:n,left:a,top:o,width:r}};t.default=function(e){var t=e&&e.parentElement;if(e&&t){var r=n(t),a=n(e),o=a.height,i=a.left,s=a.top,l=a.width;return{x:i-r.left,y:s-r.top,width:l,height:o,left:i,top:s,get right(){return this.left+this.width},get bottom(){return this.top+this.height}}}return{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0}},t.getBoundingClientRect=function(e){if(e&&e.getBoundingClientRect){var t=e.getBoundingClientRect();return{x:t.x,y:t.y,width:t.width,height:t.height,left:t.left,top:t.top,get right(){return this.left+this.width},get bottom(){return this.top+this.height}}}return{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0}}},445:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useFocusContext=t.FocusContext=void 0;var r=n(156),a=n(654);t.FocusContext=(0,r.createContext)(a.ROOT_FOCUS_KEY),t.FocusContext.displayName="FocusContext",t.useFocusContext=function(){return(0,r.useContext)(t.FocusContext)}},79:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useFocusable=void 0;var a=n(156),o=r(n(604)),i=r(n(461)),s=n(654),l=n(445);t.useFocusable=function(e){var t=void 0===e?{}:e,n=t.focusable,r=void 0===n||n,c=t.saveLastFocusedChild,u=void 0===c||c,d=t.trackChildren,p=void 0!==d&&d,f=t.autoRestoreFocus,h=void 0===f||f,g=t.forceFocus,m=void 0!==g&&g,y=t.isFocusBoundary,v=void 0!==y&&y,b=t.focusBoundaryDirections,x=t.focusKey,S=t.preferredChildFocusKey,w=t.onEnterPress,k=void 0===w?o.default:w,_=t.onEnterRelease,C=void 0===_?o.default:_,P=t.onArrowPress,I=void 0===P?function(){return!0}:P,E=t.onArrowRelease,T=void 0===E?o.default:E,M=t.onFocus,O=void 0===M?o.default:M,L=t.onBlur,j=void 0===L?o.default:L,A=t.extraProps,N=(0,a.useCallback)(function(e){k(A,e)},[k,A]),R=(0,a.useCallback)(function(){C(A)},[C,A]),F=(0,a.useCallback)(function(e,t){return I(e,A,t)},[A,I]),D=(0,a.useCallback)(function(e){T(e,A)},[T,A]),H=(0,a.useCallback)(function(e,t){O(e,A,t)},[A,O]),B=(0,a.useCallback)(function(e,t){j(e,A,t)},[A,j]),z=(0,a.useRef)(null),W=(0,a.useState)(!1),U=W[0],$=W[1],K=(0,a.useState)(!1),V=K[0],G=K[1],X=(0,l.useFocusContext)(),q=(0,a.useMemo)(function(){return x||(0,i.default)("sn:focusable-item-")},[x]),Y=(0,a.useCallback)(function(e){void 0===e&&(e={}),s.SpatialNavigation.setFocus(q,e)},[q]);return(0,a.useEffect)(function(){var e=z.current;return s.SpatialNavigation.addFocusable({focusKey:q,node:e,parentFocusKey:X,preferredChildFocusKey:S,onEnterPress:N,onEnterRelease:R,onArrowPress:F,onArrowRelease:D,onFocus:H,onBlur:B,onUp
2dateFocus:function(e){return void 0===e&&(e=!1),$(e)},onUpdateHasFocusedChild:function(e){return void 0===e&&(e=!1),G(e)},saveLastFocusedChild:u,trackChildren:p,isFocusBoundary:v,focusBoundaryDirections:b,autoRestoreFocus:h,forceFocus:m,focusable:r}),function(){s.SpatialNavigation.removeFocusable({focusKey:q})}},[]),(0,a.useEffect)(function(){var e=z.current;s.SpatialNavigation.updateFocusable(q,{node:e,preferredChildFocusKey:S,focusable:r,isFocusBoundary:v,focusBoundaryDirections:b,onEnterPress:N,onEnterRelease:R,onArrowPress:F,onArrowRelease:D,onFocus:H,onBlur:B})},[q,S,r,v,b,N,R,F,D,H,B]),{ref:z,focusSelf:Y,focused:U,hasFocusedChild:V,focusKey:q}}},150:function(e){e.exports=r},117:function(e){e.exports=a},747:function(e){e.exports=o},23:function(e){e.exports=i},842:function(e){e.exports=s},682:function(e){e.exports=l},784:function(e){e.exports=c},604:function(e){e.exports=u},432:function(e){e.exports=d},67:function(e){e.exports=p},461:function(e){e.exports=f},156:function(e){e.exports=h}},m={},function e(t){var n=m[t];if(void 0!==n)return n.exports;var r=m[t]={exports:{}};return g[t].call(r.exports,r,r.exports,e),r.exports}(607))},5985:(e,t,n)=>{var r=n(524),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||a}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var a=f(n);a&&a!==h&&e(t,a,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=l(t),g=l(n),m=0;m<i.length;++m){var y=i[m];if(!(o[y]||r&&r[y]||g&&g[y]||s&&s[y])){var v=p(n,y);try{c(t,y,v)}catch(e){}}}}return t}},6079:(e,t,n)=>{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},r(e)}function a(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}function o(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})),r.forEach(function(t){o(e,t,n[t])})}return e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(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 u(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function h(e,t){if("function"!=typeof t&&null!==t)throw new 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&&f(e,t)}n.r(t),n.d(t,{default:()=>W});var g={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console}},m=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this.init(t,n)}return c(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||g,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){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)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,i({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),y=function(){function e(){s(this,e),this.observers={}}return c(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)}),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:"emit",value: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];
2this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(n))})}}]),e}();function v(){var e,t,n=new Promise(function(n,r){e=n,t=r});return n.resolve=e,n.reject=t,n}function b(e){return null==e?"":""+e}function x(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function a(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(a())return{};var i=r(o.shift());!e[i]&&n&&(e[i]=new n),e=Object.prototype.hasOwnProperty.call(e,i)?e[i]:{}}return a()?{}:{obj:e,k:r(o.shift())}}function S(e,t,n){var r=x(e,t,Object);r.obj[r.k]=n}function w(e,t){var n=x(e,t),r=n.obj,a=n.k;if(r)return r[a]}function k(e,t,n){var r=w(e,n);return void 0!==r?r:w(t,n)}function _(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):_(e[r],t[r],n):e[r]=t[r]);return e}function C(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var P={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function I(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return P[e]}):e}var E="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,T=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return s(this,t),n=d(this,p(t).call(this)),E&&y.call(u(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}
vendor: 2,477 bytes, line 2
2return h(t,e),c(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=[e,t];return n&&"string"!=typeof n&&(o=o.concat(n)),n&&"string"==typeof n&&(o=o.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(o=e.split(".")),w(this.data,o)}},{key:"addResource",value:function(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var i=[e,t];n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(r=t,t=(i=e.split("."))[1]),this.addNamespaces(t),S(this.data,i,r),a.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var a in n)"string"!=typeof n[a]&&"[object Array]"!==Object.prototype.toString.apply(n[a])||this.addResource(e,t,a,n[a],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,a){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var l=w(this.data,s)||{};r?_(l,n,a):l=i({},l,n),S(this.data,s,l),o.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?i({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(y),M={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,a){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,n,r,a))}),t}},O={},L=function(e){function t(e){var n,r,a,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(this,t),n=d(this,p(t).call(this)),E&&y.call(u(n)),r=e,a=u(n),["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
2i18nFormat","utils"].forEach(function(e){r[e]&&(a[e]=r[e])}),n.options=o,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=m.create("translator"),n}return h(t,e),c(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var o=e.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:e,namespaces:a};var i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(a=i.shift()),e=i.join(r)}return"string"==typeof a&&(a=[a]),{key:e,namespaces:a}}},{key:"translate",value:function(e,n,a){var o=this;if("object"!==r(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var s=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,l=this.extractFromKey(e[e.length-1],n),c=l.key,u=l.namespaces,d=u[u.length-1],p=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&"cimode"===p.toLowerCase()){if(f){var h=n.nsSeparator||this.options.nsSeparator;return d+h+c}return c}var g=this.resolve(e,n),m=g&&g.res,y=g&&g.usedKey||c,v=g&&g.exactUsedKey||c,b=Object.prototype.toString.apply(m),x=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject;if(S&&m&&"string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m&&["[object Number]","[object Function]","[object RegExp]"].indexOf(b)<0&&("string"!=typeof x||"[object Array]"!==b)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,m,n):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(s){var w="[object Array]"===b,k=w?[]:{},_=w?v:y;for(var C in m)if(Object.prototype.hasOwnProperty.call(m,C)){var P="".concat(_).concat(s).concat(C);k[C]=this.translate(P,i({},n,{joinArrays:!1,ns:u})),k[C]===P&&(k[C]=m[C])}m=k}}else if(S&&"string"==typeof x&&"[object Array]"===b)(m=m.join(x))&&(m=this.extendTranslation(m,e,n,a));else{var I=!1,E=!1,T=void 0!==n.count&&"string"!=typeof n.count,M=t.hasDefaultValue(n),O=T?this.pluralResolver.getSuffix(p,n.count):"",L=n["defaultValue".concat(O)]||n.defaultValue;!this.isValidLookup(m)&&M&&(I=!0,m=L),this.isValidLookup(m)||(E=!0,m=c);var j=M&&L!==m&&this.options.updateMissing;if(E||I||j){if(this.logger.log(j?"updateKey":"missingKey",p,d,c,j?L:m),s){var A=this.resolve(c,i({},n,{keySeparator:!1}));A&&A.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.")}var N=[],R=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&R&&R[0])for(var F=0;F<R.length;F++)N.push(R[F]);else"all"===this.options.saveMissingTo?N=this.languageUtils.toResolveHierarchy(n.lng||this.language):N.push(n.lng||this.language);var D=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,d,t,j?r:m,j,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,d,t,j?r:m,j,n),o.emit("missingKey",e,d,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?N.forEach(function(e){o.pluralResolver.getSuffixes(e).forEach(function(t){D([e],c+t,n["defaultValue".concat(t)]||L)})}):D(N,c,L))}m=this.extendTranslation(m,e,n,g,a),E&&m===c&&this.options.appendNamespaceToMissingKey&&(m="".concat(d,":").concat(c)),E&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(m))}return m}},{key:"extendTranslation",value:function(e,t,n,r,a){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(i({},n,{interpolation:i({},this.options.interpolation,n.interpolation)}));var s,l=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=e.match(this.interpolator.nestingRegexp);s=c&&c.length}var u=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u=i({},this.options.interpolation.defaultVariables,u)),e=this.interpolator.interpolate(e,u,n.lng||this.language,n),l){var d=e.match(this.interpolator.nestingRegexp);s<(d&&d.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return a&&a[0]===r[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):o.translate.apply(o,r.concat([t]))}
2,n)),n.interpolation&&this.interpolator.reset()}var p=n.postProcess||this.options.postProcess,f="string"==typeof p?[p]:p;return null!=e&&f&&f.length&&!1!==n.applyPostProcessor&&(e=M.handle(f,e,t,this.options&&this.options.postProcessPassResolved?i({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,a,o,i=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!i.isValidLookup(t)){var l=i.extractFromKey(e,s),c=l.key;n=c;var u=l.namespaces;i.options.fallbackNS&&(u=u.concat(i.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,p=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,f=s.lngs?s.lngs:i.languageUtils.toResolveHierarchy(s.lng||i.language,s.fallbackLng);u.forEach(function(e){i.isValidLookup(t)||(o=e,!O["".concat(f[0],"-").concat(e)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(o)&&(O["".concat(f[0],"-").concat(e)]=!0,i.logger.warn('key "'.concat(n,'" for languages "').concat(f.join(", "),'" won\'t get resolved as namespace "').concat(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!!!")),f.forEach(function(n){if(!i.isValidLookup(t)){a=n;var o,l,u=c,f=[u];for(i.i18nFormat&&i.i18nFormat.addLookupKeys?i.i18nFormat.addLookupKeys(f,c,n,e,s):(d&&(o=i.pluralResolver.getSuffix(n,s.count)),d&&p&&f.push(u+o),p&&f.push(u+="".concat(i.options.contextSeparator).concat(s.context)),d&&f.push(u+=o));l=f.pop();)i.isValidLookup(t)||(r=l,t=i.getResource(n,e,l,s))}}))})}}),{res:t,usedKey:n,exactUsedKey:r,usedLng:a,usedNS:o}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var 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)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}]),t}(y);function j(e){return e.charAt(0).toUpperCase()+e.slice(1)}var A=function(){function e(t){s(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=m.create("languageUtils")}return c(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=j(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]=j(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=j(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach(function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find(function(e){if(0===e.indexOf(r))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];
vendor: 4,323 bytes, line 2
2return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),a=[],o=function(e){e&&(n.isSupportedCode(e)?a.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach(function(e){a.indexOf(e)<0&&o(n.formatLanguageCode(e))}),a}}]),e}(),N=[{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","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","kk","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}],R={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},F=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this.languageUtils=t,this.options=r,this.logger=m.create("pluralResolver"),this.rules=(n={},N.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:R[e.fc]}})}),n)}return c(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map(function(e){return t+e})}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map(function(n){return t.getSuffix(e,n)}):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);
vendor: 5,081 bytes, line 2
2if(r){var a=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),o=r.numbers[a];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var i=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?i():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),D=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,e),this.logger=m.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return c(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:I,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?C(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?C(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?C(t.nestingPrefix):t.nestingPrefixEscaped||C("$t("),this.nestingSuffix=t.nestingSuffix?C(t.nestingSuffix):t.nestingSuffixEscaped||C(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var a,o,i,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(e.indexOf(s.formatSeparator)<0){var a=k(t,l,e);return s.alwaysFormat?s.format(a,void 0,n):a}var o=e.split(s.formatSeparator),i=o.shift().trim(),c=o.join(s.formatSeparator).trim();return s.format(k(t,l,i),c,n,r)};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach(function(t){for(i=0;a=t.regex.exec(e);){if(void 0===(o=u(a[1].trim())))if("function"==typeof d){var n=d(e,a,r);o="string"==typeof n?n:""}else{if(p){o=a[0];continue}s.logger.warn("missed to pass in variable ".concat(a[1]," for interpolating ").concat(e)),o=""}else"string"==typeof o||s.useRawValueToEscape||(o=b(o));if(e=e.replace(a[0],t.safeValue(o)),t.regex.lastIndex=0,++i>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var n,r,a=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=i({},o);function l(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),a="{".concat(r[1]);e=r[0],a=(a=this.interpolate(a,s)).replace(/'/g,'"');try{s=JSON.parse(a),t&&(s=i({},t,s))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(a)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;n=this.nestingRegexp.exec(e);){var c=[],u=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var d=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=d.shift(),c=d,u=!0}if((r=t(l.call(this,n[1].trim(),s),s))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=b(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),u&&(r=c.reduce(function(e,t){return a.format(e,t,o.lng,o)},r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),H=function(e){function t(e,n,r){var a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return s(this,t),a=d(this,p(t).call(this)),E&&y.call(u(a)),a.backend=e,a.store=n,a.services=r,a.languageUtils=r.languageUtils,a.options=o,a.logger=m.create("backendConnector"),a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(r,o.backend,o),a}
2return h(t,e),c(t,[{key:"queueLoad",value:function(e,t,n,r){var a=this,o=[],i=[],s=[],l=[];return e.forEach(function(e){var r=!0;t.forEach(function(t){var s="".concat(e,"|").concat(t);!n.reload&&a.store.hasResourceBundle(e,t)?a.state[s]=2:a.state[s]<0||(1===a.state[s]?i.indexOf(s)<0&&i.push(s):(a.state[s]=1,r=!1,i.indexOf(s)<0&&i.push(s),o.indexOf(s)<0&&o.push(s),l.indexOf(t)<0&&l.push(t)))}),r||s.push(e)}),(o.length||i.length)&&this.queue.push({pending:i,loaded:{},errors:[],callback:r}),{toLoad:o,pending:i,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),a=r[0],o=r[1];t&&this.emit("failedLoading",a,o,t),n&&this.store.addResourceBundle(a,o,n),this.state[e]=t?-1:2;var i={};this.queue.forEach(function(n){var r,s,l,c,u;r=n.loaded,s=o,(c=(l=x(r,[a],Object)).obj)[u=l.k]=c[u]||[],c[u].push(s),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach(function(e){i[e]||(i[e]=[]),n.loaded[e].length&&n.loaded[e].forEach(function(t){i[e].indexOf(t)<0&&i[e].push(t)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",i),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,i=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,function(s,l){s&&l&&a<5?setTimeout(function(){r.read.call(r,e,t,n,a+1,2*o,i)},o):i(s,l)}):i(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=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."),a&&a();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,r,a);if(!o.toLoad.length)return o.pending.length||a(),null;o.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),a=r[0],o=r[1];this.read(a,o,"read",void 0,void 0,function(r,i){r&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(a," failed"),r),!r&&i&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(a),i),t.loaded(e,r,i)})}},{key:"saveMissing",value:function(e,t,n,r,a){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(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!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,i({},o,{isUpdate:a})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(y);function B(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function z(){}const W=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(s(this,t),e=d(this,p(t).call(this)),E&&y.call(u(e)),e.options=B(n),e.services={},e.logger=m,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),d(e,u(e));setTimeout(function(){e.init(n,r)},0)}return e}
2return h(t,e),c(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function a(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=i({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!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:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===r(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===r(e[2])||"object"===r(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}},this.options,B(t)),this.format=this.options.interpolation.format,n||(n=z),!this.options.isClone){this.modules.logger?m.init(a(this.modules.logger),this.options):m.init(null,this.options);var o=new A(this.options);this.store=new T(this.options.resources,this.options);var s=this.services;s.logger=m,s.resourceStore=this.store,s.languageUtils=o,s.pluralResolver=new F(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new D(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new H(a(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];e.emit.apply(e,[t].concat(r))}),this.modules.languageDetector&&(s.languageDetector=a(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=a(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new L(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];e.emit.apply(e,[t].concat(r))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&"dev"!==l[0]&&(this.options.lng=l[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(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var c=v(),u=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var a=[],o=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){a.indexOf(e)<0&&a.push(e)})};r?o(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return o(e)}
2),this.options.preload&&this.options.preload.forEach(function(e){return o(e)}),this.services.backendConnector.load(a,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=v();return e||(e=this.languages),t||(t=this.options.ns),n||(n=z),this.services.backendConnector.reload(e,t,function(e){r.resolve(),n(e)}),r}},{key:"use",value:function(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&&M.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=v();this.emit("languageChanging",e);var a=function(e){var a="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);a&&(n.language||(n.language=a,n.languages=n.services.languageUtils.toResolveHierarchy(a)),n.translator.language||n.translator.changeLanguage(a),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(a)),n.loadResources(a,function(e){!function(e,a){a?(n.language=a,n.languages=n.services.languageUtils.toResolveHierarchy(a),n.translator.changeLanguage(a),n.isLanguageChangingTo=void 0,n.emit("languageChanged",a),n.logger.log("languageChanged",a)):n.isLanguageChangingTo=void 0,r.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,arguments)})}(e,a)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,a=function e(t,a){var o;if("object"!==r(a)){for(var s=arguments.length,l=new Array(s>2?s-2:0),c=2;c<s;c++)l[c-2]=arguments[c];o=n.options.overloadTranslationOptionHandler([t,a].concat(l))}else o=i({},a);return o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,n.t(t,o)};return"string"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
2if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],a=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var i=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,i);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!i(r,e)||a&&!i(o,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=v();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)}),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=v();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],a=e.filter(function(e){return r.indexOf(e)<0});return a.length?(this.options.preload=r.concat(a),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["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"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z,a=i({},this.options,n,{isClone:!0}),o=new t(a);return["store","services","language"].forEach(function(t){o[t]=e[t]}),o.services=i({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new L(o.services,o.options),o.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];o.emit.apply(o,[e].concat(n))}),o.init(a,r),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}}]),t}(y))},3103:(e,t,n)=>{var r=n(4715)(n(8942),"DataView");e.exports=r},5098:(e,t,n)=>{var r=n(3305),a=n(9361),o=n(1112),i=n(5276),s=n(7452);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=o,l.prototype.has=i,l.prototype.set=s,e.exports=l},1386:(e,t,n)=>{var r=n(2393),a=n(2049),o=n(7144),i=n(5071),s=n(3964);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=o,l.prototype.has=i,l.prototype.set=s,e.exports=l},9770:(e,t,n)=>{var r=n(4715)(n(8942),"Map");e.exports=r},8250:(e,t,n)=>{var r=n(9753),a=n(5681),o=n(88),i=n(4732),s=n(9068);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=o,l.prototype.has=i,l.prototype.set=s,e.exports=l},9413:(e,t,n)=>{var r=n(4715)(n(8942),"Promise");e.exports=r},4512:(e,t,n)=>{var r=n(4715)(n(8942),"Set");e.exports=r},3212:(e,t,n)=>{var r=n(8250),a=n(1877),o=n(8006);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=a,i.prototype.has=o,e.exports=i},1340:(e,t,n)=>{var r=n(1386),a=n(4103),o=n(1779),i=n(4162),s=n(7462),l=n(6638);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=a,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=s,c.prototype.set=l,e.exports=c},5650:(e,t,n)=>{var r=n(8942).Symbol;e.exports=r}
2,1623:(e,t,n)=>{var r=n(8942).Uint8Array;e.exports=r},9270:(e,t,n)=>{var r=n(4715)(n(8942),"WeakMap");e.exports=r},6912:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},9968:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},9847:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,o=[];++n<r;){var i=e[n];t(i,n,e)&&(o[a++]=i)}return o}},9756:(e,t,n)=>{var r=n(2478);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},3316:e=>{e.exports=function(e,t,n){for(var r=-1,a=null==e?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}},358:(e,t,n)=>{var r=n(6137),a=n(3283),o=n(3142),i=n(5853),s=n(9632),l=n(8666),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&a(e),d=!n&&!u&&i(e),p=!n&&!u&&!d&&l(e),f=n||u||d||p,h=f?r(e.length,String):[],g=h.length;for(var m in e)!t&&!c.call(e,m)||f&&("length"==m||d&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||h.push(m);return h}},5111:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}},1129:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}},6465:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},7034:(e,t,n)=>{var r=n(6285);e.exports=function(e,t){for(var n=e.length;n--;
2)if(r(e[n][0],t))return n;return-1}},6576:(e,t,n)=>{var r=n(3212),a=n(9756),o=n(3316),i=n(5111),s=n(9460),l=n(5568);e.exports=function(e,t,n,c){var u=-1,d=a,p=!0,f=e.length,h=[],g=t.length;if(!f)return h;n&&(t=i(t,s(n))),c?(d=o,p=!1):t.length>=200&&(d=l,p=!1,t=new r(t));e:for(;++u<f;){var m=e[u],y=null==n?m:n(m);if(m=c||0!==m?m:0,p&&y==y){for(var v=g;v--;)if(t[v]===y)continue e;h.push(m)}else d(t,y,c)||h.push(m)}return h}},4570:(e,t,n)=>{var r=n(7170),a=n(5770)(r);e.exports=a},4661:(e,t,n)=>{var r=n(4570);e.exports=function(e,t){var n=[];return r(e,function(e,r,a){t(e,r,a)&&n.push(e)}),n}},7250:e=>{e.exports=function(e,t,n,r){for(var a=e.length,o=n+(r?1:-1);r?o--:++o<a;)if(t(e[o],o,e))return o;return-1}},9677:e=>{e.exports=function(e,t,n){var r;return n(e,function(e,n,a){if(t(e,n,a))return r=n,!1}),r}},313:(e,t,n)=>{var r=n(1129),a=n(714);e.exports=function e(t,n,o,i,s){var l=-1,c=t.length;for(o||(o=a),s||(s=[]);++l<c;){var u=t[l];n>0&&o(u)?n>1?e(u,n-1,o,i,s):r(s,u):i||(s[s.length]=u)}return s}},5636:(e,t,n)=>{var r=n(6596)();e.exports=r},7170:(e,t,n)=>{var r=n(5636),a=n(1211);e.exports=function(e,t){return e&&r(e,t,a)}},7923:(e,t,n)=>{var r=n(3526),a=n(6040);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[a(t[n++])];return n&&n==o?e:void 0}},8244:(e,t,n)=>{var r=n(1129),a=n(3142);e.exports=function(e,t,n){var o=t(e);return a(e)?o:r(o,n(e))}},7379:(e,t,n)=>{var r=n(5650),a=n(8870),o=n(9005),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?a(e):o(e)}},3636:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},2478:(e,t,n)=>{var r=n(7250),a=n(9454),o=n(7706);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,a,n)}},6027:(e,t,n)=>{var r=n(7379),a=n(547);e.exports=function(e){return a(e)&&"[object Arguments]"==r(e)}},4687:(e,t,n)=>{var r=n(353),a=n(547);e.exports=function e(t,n,o,i,s){return t===n||(null==t||null==n||!a(t)&&!a(n)?t!=t&&n!=n:r(t,n,o,i,e,s))}},353:(e,t,n)=>{var r=n(1340),a=n(3934),o=n(8861),i=n(1182),s=n(8486),l=n(3142),c=n(5853),u=n(8666),d="[object Arguments]",p="[object Array]",f="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,y){var v=l(e),b=l(t),x=v?p:s(e),S=b?p:s(t),w=(x=x==d?f:x)==f,k=(S=S==d?f:S)==f,_=x==S;if(_&&c(e)){if(!c(t))return!1;v=!0,w=!1}if(_&&!w)return y||(y=new r),v||u(e)?a(e,t,n,g,m,y):o(e,t,x,n,g,m,y);if(!(1&n)){var C=w&&h.call(e,"__wrapped__"),P=k&&h.call(t,"__wrapped__");
vendor: 5,853 bytes, line 2
2if(C||P){var I=C?e.value():e,E=P?t.value():t;return y||(y=new r),m(I,E,n,g,y)}}return!!_&&(y||(y=new r),i(e,t,n,g,m,y))}},8330:(e,t,n)=>{var r=n(1340),a=n(4687);e.exports=function(e,t,n,o){var i=n.length,s=i,l=!o;if(null==e)return!s;for(e=Object(e);i--;){var c=n[i];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<s;){var u=(c=n[i])[0],d=e[u],p=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var f=new r;if(o)var h=o(d,p,u,e,t,f);if(!(void 0===h?a(p,d,3,o,f):h))return!1}}return!0}},9454:e=>{e.exports=function(e){return e!=e}},9624:(e,t,n)=>{var r=n(3655),a=n(4759),o=n(1580),i=n(4066),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||a(e))&&(r(e)?p:s).test(i(e))}},674:(e,t,n)=>{var r=n(7379),a=n(5387),o=n(547),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&a(e.length)&&!!i[r(e)]}},3334:(e,t,n)=>{var r=n(6526),a=n(2343),o=n(2053),i=n(3142),s=n(3282);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?i(e)?a(e[0],e[1]):r(e):s(e)}},195:(e,t,n)=>{var r=n(4882),a=n(8121),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},1393:(e,t,n)=>{var r=n(4570),a=n(6529);e.exports=function(e,t){var n=-1,o=a(e)?Array(e.length):[];return r(e,function(e,r,a){o[++n]=t(e,r,a)}),o}},6526:(e,t,n)=>{var r=n(8330),a=n(4367),o=n(3904);e.exports=function(e){var t=a(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},2343:(e,t,n)=>{var r=n(4687),a=n(6123),o=n(7276),i=n(5187),s=n(7267),l=n(3904),c=n(6040);e.exports=function(e,t){return i(e)&&s(t)?l(c(e),t):function(n){var i=a(n,e);return void 0===i&&i===t?o(n,e):r(t,i,3)}}},310:(e,t,n)=>{var r=n(5111),a=n(7923),o=n(3334),i=n(1393),s=n(642),l=n(9460),c=n(6775),u=n(2053),d=n(3142);e.exports=function(e,t,n){t=t.length?r(t,function(e){return d(e)?function(t){return a(t,1===e.length?e[0]:e)}:e}):[u];var p=-1;t=r(t,l(o));var f=i(e,function(e,n,a){return{criteria:r(t,function(t){return t(e)}),index:++p,value:e}});return s(f,function(e,t){return c(e,t,n)})}},2762:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},8880:(e,t,n)=>{var r=n(7923);e.exports=function(e){return function(t){return r(t,e)}}},3945:(e,t,n)=>{var r=n(2053),a=n(5234),o=n(796);e.exports=function(e,t){return o(a(e,t,r),e+"")}},7403:(e,t,n)=>{var r=n(2619),a=n(2532),o=n(2053),i=a?function(e,t){return a(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=i},642:e=>{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},6137:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},2291:(e,t,n)=>{var r=n(5650),a=n(5111),o=n(3142),i=n(1187),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return a(t,e)+"";if(i(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},6403:(e,t,n)=>{var r=n(2945),a=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(a,""):e}},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},5568:e=>{e.exports=function(e,t){return e.has(t)}},3997:(e,t,n)=>{var r=n(2053);e.exports=function(e){return"function"==typeof e?e:r}},3526:(e,t,n)=>{var r=n(3142),a=n(5187),o=n(6493),i=n(5243);e.exports=function(e,t){return r(e)?e:a(e,t)?[e]:o(i(e))}},3521:(e,t,n)=>{var r=n(1187);e.exports=function(e,t){if(e!==t){var n=void 0!==e,a=null===e,o=e==e,i=r(e),s=void 0!==t,l=null===t,c=t==t,u=r(t);if(!l&&!u&&!i&&e>t||i&&s&&c&&!l&&!u||a&&s&&c||!n&&c||!o)return 1;if(!a&&!i&&!u&&e<t||u&&n&&o&&!a&&!i||l&&n&&o||!s&&o||!c)return-1}return 0}},6775:(e,t,n)=>{var r=n(3521);e.exports=function(e,t,n){for(var a=-1,o=e.criteria,i=t.criteria,s=o.length,l=n.length;++a<s;){var c=r(o[a],i[a]);if(c)return a>=l?c:c*("desc"==n[a]?-1:1)}return e.index-t.index}},1950:(e,t,n)=>{var r=n(8942)["__core-js_shared__"];e.exports=r},5770:(e,t,n)=>{var r=n(6529);e.exports=function(e,t){return function(n,a){if(null==n)return n;if(!r(n))return e(n,a);for(var o=n.length,i=t?o:-1,s=Object(n);(t?i--:++i<o)&&!1!==a(s[i],i,s););return n}}},6596:e=>{e.exports=function(e){return function(t,n,r){for(var a=-1,o=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++a];if(!1===n(o[l],l,o))break}return t}}},2532:(e,t,n)=>{var r=n(4715),a=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=a},3934:(e,t,n)=>{var r=n(3212),a=n(6465),o=n(5568);e.exports=function(e,t,n,i,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var p=l.get(e),f=l.get(t);if(p&&f)return p==t&&f==e;var h=-1,g=!0,m=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h<u;){var y=e[h],v=t[h];if(i)var b=c?i(v,y,h,t,e,l):i(y,v,h,e,t,l);if(void 0!==b){if(b)continue;g=!1;break}if(m){if(!a(t,function(e,t){if(!o(m,t)&&(y===e||s(y,e,n,i,l)))return m.push(t)})){g=!1;break}}else if(y!==v&&!s(y,v,n,i,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},8861:(e,t,n)=>{var r=n(5650),a=n(1623),o=n(6285),i=n(3934),s=n(5894),l=n(9828),c=r?r.prototype:void 0,u=c?c.valueOf
2:void 0;e.exports=function(e,t,n,r,c,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new a(e),new a(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var h=1&r;if(f||(f=l),e.size!=t.size&&!h)return!1;var g=p.get(e);if(g)return g==t;r|=2,p.set(e,t);var m=i(f(e),f(t),r,c,d,p);return p.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},1182:(e,t,n)=>{var r=n(393),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,i,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var p=c[d];if(!(l?p in t:a.call(t,p)))return!1}var f=s.get(e),h=s.get(t);if(f&&h)return f==t&&h==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=l;++d<u;){var y=e[p=c[d]],v=t[p];if(o)var b=l?o(v,y,p,t,e,s):o(y,v,p,e,t,s);if(!(void 0===b?y===v||i(y,v,n,o,s):b)){g=!1;break}m||(m="constructor"==p)}if(g&&!m){var x=e.constructor,S=t.constructor;x==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof S&&S instanceof S||(g=!1)}return s.delete(e),s.delete(t),g}},4967:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},393:(e,t,n)=>{var r=n(8244),a=n(7979),o=n(1211);e.exports=function(e){return r(e,o,a)}},4700:(e,t,n)=>{var r=n(9067);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},4367:(e,t,n)=>{var r=n(7267),a=n(1211);e.exports=function(e){for(var t=a(e),n=t.length;n--;){var o=t[n],i=e[o];t[n]=[o,i,r(i)]}return t}},4715:(e,t,n)=>{var r=n(9624),a=n(155);e.exports=function(e,t){var n=a(e,t);return r(n)?n:void 0}},8870:(e,t,n)=>{var r=n(5650),a=Object.prototype,o=a.hasOwnProperty,i=a.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var a=i.call(e);return r&&(t?e[s]=n:delete e[s]),a}},7979:(e,t,n)=>{var r=n(9847),a=n(9306),o=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),r(i(e),function(t){return o.call(e,t)}))}:a;e.exports=s},8486:(e,t,n)=>{var r=n(3103),a=n(9770),o=n(9413),i=n(4512),s=n(9270),l=n(7379),c=n(4066),u="[object Map]",d="[object Promise]",p="[object Set]",f="[object WeakMap]",h="[object DataView]",g=c(r),m=c(a),y=c(o),v=c(i),b=c(s),x=l;(r&&x(new r(new ArrayBuffer(1)))!=h||a&&x(new a)!=u||o&&x(o.resolve())!=d||i&&x(new i)!=p||s&&x(new s)!=f)&&(x=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case g:return h;case m:return u;case y:return d;case v:return p;case b:return f}return t}),e.exports=x},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},5899:(e,t,n)=>{var r=n(3526),a=n(3283),o=n(3142),i=n(9632),s=n(5387),l=n(6040);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var p=l(t[c]);if(!(d=null!=e&&n(e,p)))break;e=e[p]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&i(p,u)&&(o(e)||a(e))}},3305:(e,t,n)=>{var r=n(4497);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1112:(e,t,n)=>{var r=n(4497),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(t,e)?t[e]:void 0}},5276:(e,t,n)=>{var r=n(4497),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)}},7452:(e,t,n)=>{var r=n(4497);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},714:(e,t,n)=>{var r=n(5650),a=n(3283),o=n(3142),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||a(e)||!!(i&&e&&e[i])}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=n??9007199254740991)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},4535:(e,t,n)=>{var r=n(6285),a=n(6529),o=n(9632),i=n(1580);e.exports=function(e,t,n){if(!i(n))return!1;var s=typeof t;return!!("number"==s?a(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},5187:(e,t,n)=>{var r=n(3142),a=n(1187),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!a(e))||i.test(e)||!o.test(e)||null!=t&&e in Object(t)}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4759:(e,t,n)=>{var r,a=n(1950),o=(r=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(sr
2c)_1."+r:"";e.exports=function(e){return!!o&&o in e}},4882:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},7267:(e,t,n)=>{var r=n(1580);e.exports=function(e){return e==e&&!r(e)}},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2049:(e,t,n)=>{var r=n(7034),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():a.call(t,n,1),--this.size,0))}},7144:(e,t,n)=>{var r=n(7034);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},5071:(e,t,n)=>{var r=n(7034);e.exports=function(e){return r(this.__data__,e)>-1}},3964:(e,t,n)=>{var r=n(7034);e.exports=function(e,t){var n=this.__data__,a=r(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}},9753:(e,t,n)=>{var r=n(5098),a=n(1386),o=n(9770);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||a),string:new r}}},5681:(e,t,n)=>{var r=n(4700);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},88:(e,t,n)=>{var r=n(4700);e.exports=function(e){return r(this,e).get(e)}},4732:(e,t,n)=>{var r=n(4700);e.exports=function(e){return r(this,e).has(e)}},9068:(e,t,n)=>{var r=n(4700);e.exports=function(e,t){var n=r(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}},5894:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},3904:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},6853:(e,t,n)=>{var r=n(9011);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},4497:(e,t,n)=>{var r=n(4715)(Object,"create");e.exports=r},8121:(e,t,n)=>{var r=n(3766)(Object.keys,Object);e.exports=r},2306:(e,t,n)=>{e=n.nmd(e);var r=n(4967),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,i=o&&o.exports===a&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=s},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},5234:(e,t,n)=>{var r=n(6912),a=Math.max;e.exports=function(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){for(var o=arguments,i=-1,s=a(o.length-t,0),l=Array(s);++i<s;)l[i]=o[t+i];i=-1;for(var c=Array(t+1);++i<t;)c[i]=o[i];return c[t]=n(l),r(e,this,c)}}},8942:(e,t,n)=>{var r=n(4967),a="object"==typeof self&&self&&self.Object===Object&&self,o=r||a||Function("return this")();e.exports=o},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},9828:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},796:(e,t,n)=>{var r=n(7403),a=n(935)(r);e.exports=a},935:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var a=t(),o=16-(a-r);if(r=a,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},4103:(e,t,n)=>{var r=n(1386);e.exports=function(){this.__data__=new r,this.size=0}},1779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},6638:(e,t,n)=>{var r=n(1386),a=n(9770),o=n(8250);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!a||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(i)}return n.set(e,t),this.size=n.size,this}},7706:e=>{e.exports=function(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}},6493:(e,t,n)=>{var r=n(6853),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(a,function(e,n,r,a){t.push(r?a.replace(o,"$1"):n||e)}),t});e.exports=i},6040:(e,t,n)=>{var r=n(1187);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},4066:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},2945:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},2619:e=>{e.exports=function(e){return function(){return e}}},2784:(e,t,n)=>{var r=n(1580),a=n(4495),o=n(6131),i=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,p,f,h=0,g=!1,m=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=l,r=c;return l=c=void 0,h=t,d=e.apply(r,n)}function b(e){var n=e-f;return void 0===f||n>=t||n<0||m&&e-h>=u}function x(){var e=a();if(b(e))return S(e);p=setTimeout(x,function(e){var n=t-(e-f);return m?s(n,u-(e-h)):n}(e))}function S(e){return p=void 0,y&&l?v(e):(l=c=void 0,d)}function w(){var e=a(),n=b(e);if(l=arguments,c=this,f=e,n){if(void 0===p)return function(e){return h=e,p=setTimeout(x,t),g?v(e):d}(f);if(m)return clearTimeout(p),p=setTimeout(x,t),v(f)}return void 0===p&&(p=setTimeout(x,t)),d}return t=o(t)||0,r(n)&&(g=!!n.leading,u=(m="maxWait"in n)?i(o(n.maxWait)||0,t):u,y="trailing"in n?!!n.trailing:y),w.cancel=function(){void 0!==p&&clearTimeout(p),h=0,l=f=c=p=void 0},w.flush=function(){return void 0===p?d:S(a())},w}}
2,8088:(e,t,n)=>{var r=n(6576),a=n(313),o=n(3945),i=n(5406),s=o(function(e,t){return i(e)?r(e,a(t,1,i,!0)):[]});e.exports=s},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},7581:(e,t,n)=>{var r=n(9847),a=n(4661),o=n(3334),i=n(3142);e.exports=function(e,t){return(i(e)?r:a)(e,o(t,3))}},7765:(e,t,n)=>{var r=n(9677),a=n(7170),o=n(3334);e.exports=function(e,t){return r(e,o(t,3),a)}},7289:(e,t,n)=>{e.exports=n(3981)},3657:(e,t,n)=>{var r=n(9968),a=n(4570),o=n(3997),i=n(3142);e.exports=function(e,t){return(i(e)?r:a)(e,o(t))}},7546:(e,t,n)=>{var r=n(7170),a=n(3997);e.exports=function(e,t){return e&&r(e,a(t))}},6123:(e,t,n)=>{var r=n(7923);e.exports=function(e,t,n){var a=null==e?void 0:r(e,t);return void 0===a?n:a}},7276:(e,t,n)=>{var r=n(3636),a=n(5899);e.exports=function(e,t){return null!=e&&a(e,t,r)}},3981:e=>{e.exports=function(e){return e&&e.length?e[0]:void 0}},2053:e=>{e.exports=function(e){return e}},3283:(e,t,n)=>{var r=n(6027),a=n(547),o=Object.prototype,i=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return a(e)&&i.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},3142:e=>{var t=Array.isArray;e.exports=t},6529:(e,t,n)=>{var r=n(3655),a=n(5387);e.exports=function(e){return null!=e&&a(e.length)&&!r(e)}},5406:(e,t,n)=>{var r=n(6529),a=n(547);e.exports=function(e){return a(e)&&r(e)}},5853:(e,t,n)=>{e=n.nmd(e);var r=n(8942),a=n(4772),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,s=i&&i.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||a;e.exports=l},3655:(e,t,n)=>{var r=n(7379),a=n(1580);e.exports=function(e){if(!a(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},1187:(e,t,n)=>{var r=n(7379),a=n(547);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==r(e)}},8666:(e,t,n)=>{var r=n(674),a=n(9460),o=n(2306),i=o&&o.isTypedArray,s=i?a(i):r;e.exports=s},1211:(e,t,n)=>{var r=n(358),a=n(195),o=n(6529);e.exports=function(e){return o(e)?r(e):a(e)}},9011:(e,t,n)=>{var r=n(8250);function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);return n.cache=o.set(a,i)||o,i};return n.cache=new(a.Cache||r),n}a.Cache=r,e.exports=a},9071:e=>{e.exports=function(){}},4495:(e,t,n)=>{var r=n(8942);e.exports=function(){return r.Date.now()}},3282:(e,t,n)=>{var r=n(2762),a=n(8880),o=n(5187),i=n(6040);e.exports=function(e){return o(e)?r(i(e)):a(e)}},74:(e,t,n)=>{var r=n(313),a=n(310),o=n(3945),i=n(4535),s=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&i(e,t[0],t[1])?t=[]:n>2&&i(t[0],t[1],t[2])&&(t=[t[0]]),a(e,r(t,1),[])});e.exports=s},9306:e=>{e.exports=function(){return[]}},4772:e=>{e.exports=function(){return!1}},7331:(e,t,n)=>{var r=n(2784),a=n(1580);e.exports=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return a(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),r(e,t,{leading:o,maxWait:t,trailing:i})}},6131:(e,t,n)=>{var r=n(6403),a=n(1580),o=n(1187),i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):i.test(e)?NaN:+e}},5243:(e,t,n)=>{var r=n(2291);e.exports=function(e){return null==e?"":r(e)}},8285:(e,t,n)=>{var r=n(5243),a=0;e.exports=function(e){var t=++a;return r(e)+t}},1513:e=>{var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;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;
vendor: 5,027 bytes, line 2
2if("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,a){for(var o,i,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))n.call(o,c)&&(s[c]=o[c]);if(t){i=t(o);for(var u=0;u<i.length;u++)r.call(o,i[u])&&(s[i[u]]=o[i[u]])}}return s}},7400:(e,t,n)=>{var r=n(4041),a=n(1513),o=n(7967);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(i(227));var s=new Set,l={};function c(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f=Object.prototype.hasOwnProperty,h={},g={};function m(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){y[e]=new m(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];y[t]=new m(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){y[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){y[e]=new m(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){y[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){y[e]=new m(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){y[e]=new m(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){y[e]=new m(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){y[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)});var v=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function x(e,t,n,r){var a=y.hasOwnProperty(t)?y[t]:null;(null!==a?0===a.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!f.call(g,e)||!f.call(h,e)&&(p.test(e)?g[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
2-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(v,b);y[t]=new m(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(v,b);y[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(v,b);y[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){y[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)}),y.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){y[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)});var S=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=60103,k=60106,_=60107,C=60108,P=60114,I=60109,E=60110,T=60112,M=60113,O=60120,L=60115,j=60116,A=60121,N=60128,R=60129,F=60130,D=60131;if("function"==typeof Symbol&&Symbol.for){var H=Symbol.for;w=H("react.element"),k=H("react.portal"),_=H("react.fragment"),C=H("react.strict_mode"),P=H("react.profiler"),I=H("react.provider"),E=H("react.context"),T=H("react.forward_ref"),M=H("react.suspense"),O=H("react.suspense_list"),L=H("react.memo"),j=H("react.lazy"),A=H("react.block"),H("react.scope"),N=H("react.opaque.id"),R=H("react.debug_trace_mode"),F=H("react.offscreen"),D=H("react.legacy_hidden")}var B,z="function"==typeof Symbol&&Symbol.iterator;function W(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=z&&e[z]||e["@@iterator"])?e:null}function U(e){if(void 0===B)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||""}return"\n"+B+e}var $=!1;function K(e,t){if(!e||$)return"";$=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var a=e.stack.split("\n"),o=r.stack.split("\n"),i=a.length-1,s=o.length-1;1<=i&&0<=s&&a[i]!==o[s];)s--;for(;1<=i&&0<=s;i--,s--)if(a[i]!==o[s]){if(1!==i||1!==s)do{if(i--,0>--s||a[i]!==o[s])return"\n"+a[i].replace(" at new "," at ")}while(1<=i&&0<=s);break}}}finally{$=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?U(e):""}function V(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return K(e.type,!1);case 11:return K(e.type.render,!1);case 22:return K(e.type._render,!1);case 1:return K(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case _:return"Fragment";case k:return"Portal";case P:return"Profiler";case C:return"StrictMode";case M:return"Suspense";case O:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case I:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case L:return G(e.type);case A:return G(e._render);case j:t=e._payload,e=e._init;try{return G(e(t))}catch(e){}}return null}function X(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=X(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=X(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ae(e,t.type,n):t.hasOwnProperty("defaultValue")&&ae(e,t.type,X(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ae(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=a({children:void 0},t),(t=function(e){var t="";
vendor: 4,097 bytes, line 2
2return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(t.children))&&(e.children=t),e}function ie(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+X(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:X(n)}}function ce(e,t){var n=X(t.value),r=X(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function fe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var he,ge,me=(ge=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((he=he||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=he.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ge(e,t)})}:ge);function ye(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ve={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function xe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ve.hasOwnProperty(e)&&ve[e]?(""+t).trim():t+"px"}function Se(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=xe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(ve).forEach(function(e){be.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ve[t]=ve[e]})});var we=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ke(e,t){if(t){if(we[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function _e(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ce(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.n
vendor: 3,889 bytes, line 2
2odeType?e.parentNode:e}var Pe=null,Ie=null,Ee=null;function Te(e){if(e=na(e)){if("function"!=typeof Pe)throw Error(i(280));var t=e.stateNode;t&&(t=aa(t),Pe(e.stateNode,e.type,t))}}function Me(e){Ie?Ee?Ee.push(e):Ee=[e]:Ie=e}function Oe(){if(Ie){var e=Ie,t=Ee;if(Ee=Ie=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Le(e,t){return e(t)}function je(e,t,n,r,a){return e(t,n,r,a)}function Ae(){}var Ne=Le,Re=!1,Fe=!1;function De(){null===Ie&&null===Ee||(Ae(),Oe())}function He(e,t){var n=e.stateNode;if(null===n)return null;var r=aa(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Be=!1;if(d)try{var ze={};Object.defineProperty(ze,"passive",{get:function(){Be=!0}}),window.addEventListener("test",ze,ze),window.removeEventListener("test",ze,ze)}catch(ge){Be=!1}function We(e,t,n,r,a,o,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Ue=!1,$e=null,Ke=!1,Ve=null,Ge={onError:function(e){Ue=!0,$e=e}};function Xe(e,t,n,r,a,o,i,s,l){Ue=!1,$e=null,We.apply(Ge,arguments)}function qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ye(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Qe(e){if(qe(e)!==e)throw Error(i(188))}function Je(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var o=a.alternate;if(null===o){if(null!==(r=a.return)){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return Qe(a),e;if(o===r)return Qe(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var s=!1,l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ze(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,at=!1,ot=[],it=null,st=null,lt=null,ct=new Map,ut=new Map,dt=[],pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ft(e,t,n,r,a){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:a,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":it=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ut.delete(t.pointerId)}}function gt(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e=ft(t,n,r,a,o),null!==t&&null!==(t=na(t))&&tt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function mt(e){var t=ta(e.target);if(null!==t){var n=qe(t);
2if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ye(n)))return e.blockedOn=t,void rt(e.lanePriority,function(){o.unstable_runWithPriority(e.priority,function(){nt(n)})})}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function yt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=na(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function vt(e,t,n){yt(e)&&n.delete(t)}function bt(){for(at=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=na(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==it&&yt(it)&&(it=null),null!==st&&yt(st)&&(st=null),null!==lt&&yt(lt)&&(lt=null),ct.forEach(vt),ut.forEach(vt)}function xt(e,t){e.blockedOn===t&&(e.blockedOn=null,at||(at=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,bt)))}function St(e){function t(t){return xt(t,e)}if(0<ot.length){xt(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==it&&xt(it,e),null!==st&&xt(st,e),null!==lt&&xt(lt,e),ct.forEach(t),ut.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)mt(n),null===n.blockedOn&&dt.shift()}function wt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kt={animationend:wt("Animation","AnimationEnd"),animationiteration:wt("Animation","AnimationIteration"),animationstart:wt("Animation","AnimationStart"),transitionend:wt("Transition","TransitionEnd")},_t={},Ct={};function Pt(e){if(_t[e])return _t[e];if(!kt[e])return e;var t,n=kt[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ct)return _t[e]=n[t];return e}d&&(Ct=document.createElement("div").style,"AnimationEvent"in window||(delete kt.animationend.animation,delete kt.animationiteration.animation,delete kt.animationstart.animation),"TransitionEvent"in window||delete kt.transitionend.transition);var It=Pt("animationend"),Et=Pt("animationiteration"),Tt=Pt("animationstart"),Mt=Pt("transitionend"),Ot=new Map,Lt=new Map,jt=["abort","abort",It,"animationEnd",Et,"animationIteration",Tt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Mt,"transitionEnd","waiting","waiting"];function At(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],a=e[n+1];a="on"+(a[0].toUpperCase()+a.slice(1)),Lt.set(r,t),Ot.set(r,a),c(a,[r])}}(0,o.unstable_now)();var Nt=8;function Rt(e){if(1&e)return Nt=15,1;if(2&e)return Nt=14,2;if(4&e)return Nt=13,4;var t=24&e;return 0!==t?(Nt=12,t):32&e?(Nt=11,32):0!=(t=192&e)?(Nt=10,t):256&e?(Nt=9,256):0!=(t=3584&e)?(Nt=8,t):4096&e?(Nt=7,4096):0!=(t=4186112&e)?(Nt=6,t):0!=(t=62914560&e)?(Nt=5,t):67108864&e?(Nt=4,67108864):134217728&e?(Nt=3,134217728):0!=(t=805306368&e)?(Nt=2,t):1073741824&e?(Nt=1,1073741824):(Nt=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return Nt=0;var r=0,a=0,o=e.expiredLanes,i=e.suspendedLanes,s=e.pingedLanes;if(0!==o)r=o,a=Nt=15;else if(0!=(o=134217727&n)){var l=o&~i;0!==l?(r=Rt(l),a=Nt):0!=(s&=o)&&(r=Rt(s),a=Nt)}else 0!=(o=n&~i)?(r=Rt(o),a=Nt):0!==s&&(r=Rt(s),a=Nt);if(0===r)return 0;if(r=n&((0>(r=31-Ut(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&!(t&i)){if(Rt(t),a<=Nt)return t;Nt=a}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-Ut(t)),r|=e[n],t&=~a;return r}function Dt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ht(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Bt(24&~t))?Ht(10,t):e;case 10:return 0===(e=Bt(192&~t))?Ht(8,t):e;case 8:return 0===(e=Bt(3584&~t))&&0===(e=Bt(4186112&~t))&&(e=512),e;case 2:return 0===(t=Bt(805306368&~t))&&(t=268435456),t}throw Error(i(358,e))}function Bt(e){return e&-e}function zt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ut(t)]=n}var Ut=Math.clz32?Math.clz32:function(e){return 0===e?32:31-($t(e)/Kt|0)|0},$t=Math.log,Kt=Math.LN2,Vt=o.unstable_UserBlockingPriority,Gt=o.unstable_runWithPriority,Xt=!0;function qt(e,t,n,r){Re||Ae();var a=Qt,o=Re;Re=!0;try{je(a,e,t,n,r)}finally{(Re=o)||De()}}function Yt(e,t,n,r){Gt(Vt,Qt.bind(null,e,t,n,r))}function Qt(e,t,n,r){var a;if(Xt)if((a=!(4&t))&&0<ot.length&&-1<pt.indexOf(e))e=ft(null,e,t,n,r),ot.push(e);else{var o=Jt(e,t,n,r);
vendor: 14,716 bytes, line 2
2if(null===o)a&&ht(e,r);else{if(a){if(-1<pt.indexOf(e))return e=ft(o,e,t,n,r),void ot.push(e);if(function(e,t,n,r,a){switch(t){case"focusin":return it=gt(it,e,t,n,r,a),!0;case"dragenter":return st=gt(st,e,t,n,r,a),!0;case"mouseover":return lt=gt(lt,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return ct.set(o,gt(ct.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,ut.set(o,gt(ut.get(o)||null,e,t,n,r,a)),!0}return!1}(o,e,t,n,r))return;ht(e,r)}Ar(e,t,r,null,n)}}}function Jt(e,t,n,r){var a=Ce(r);if(null!==(a=ta(a))){var o=qe(a);if(null===o)a=null;else{var i=o.tag;if(13===i){if(null!==(a=Ye(o)))return a;a=null}else if(3===i){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null)}}return Ar(e,t,r,a,n),null}var Zt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,a="value"in Zt?Zt.value:Zt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return tn=a.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function on(){return!1}function sn(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?an:on,this.isPropagationStopped=on,this}return a(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var ln,cn,un,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=sn(dn),fn=a({},dn,{view:0,detail:0}),hn=sn(fn),gn=a({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:In,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(ln=e.screenX-un.screenX,cn=e.screenY-un.screenY):cn=ln=0,un=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),mn=sn(gn),yn=sn(a({},gn,{dataTransfer:0})),vn=sn(a({},fn,{relatedTarget:0})),bn=sn(a({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),xn=a({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Sn=sn(xn),wn=sn(a({},dn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function In(){return Pn}var En=a({},fn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:In,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=sn(En),Mn=sn(a({},gn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),On=sn(a({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:In})),Ln=sn(a({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),jn=a({},gn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),An=sn(jn),Nn=[9,13,27,32],Rn=d&&"CompositionEvent"in window,Fn=null;d&&"documentMode"in document&&(Fn=document.documentMode);var Dn=d&&"TextEvent"in window&&!Fn,Hn=d&&(!Rn||Fn&&8<Fn&&11>=Fn),Bn=String.fromCharCode(32),zn=!1;function Wn(e,t){switch(e){case"keyup":return-1!==Nn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var $n=!1,Kn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Kn[e.type]:"textarea"===t}function Gn(e,t,n,r){Me(r),0<(t=Rr(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Xn=null,qn=null;function Yn(e){Er(e,0)}function Qn(e){if(Q(ra(e)))return e}function Jn(e,t){if("change"===e)return t}var Zn=!1;if(d){var er;if(d){var tr="oninput"in document;if(!tr){var nr=document.createElement("div");nr.setAttribute("oninput","return;"),tr="function"==typeof nr.oninput}er=tr}else er=!1;Zn=er&&(!document.documentMode||9<document.documentMode)}function rr(){Xn&&(Xn.detachEvent("onpropertychange",ar),qn=Xn=null)}function ar(e){if("value"===e.propertyName&&Qn(qn)){var t=[];if(Gn(t,qn,e,Ce(e)),e=Yn,Re)e(t);else{Re=!0;try{Le(e,t)}finally{Re=!1,De()}}}}function or(e,t,n){"focusin"===e?(rr(),qn=n,(Xn=t).attachEvent("onpropertychange",ar)):"focusout"===e&&rr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(qn)}function sr(e,t){if("click"===e)return Qn(t)}function lr(e,t){if("input"===e||"change"===e)return Qn(t)}var cr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ur=Object.prototype.hasOwnProperty;function dr(e,t){if(cr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!ur.call(t,n[r])||!cr(e[n[r]],t[n[r]]))return!1;return!0}function pr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fr(e,t){var n,r=pr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pr(r)}}function hr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function gr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var yr=d&&"documentMode"in document&&11>=document.documentMode,vr=null,br=null,xr=null,Sr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Sr||null==vr||vr!==J(r)||(r="selectionStart"in(r=vr)&&mr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},xr&&dr(xr,r)||(xr=r,0<(r=Rr(br,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}At("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),At("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),At(jt,2);for(var kr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),_r=0;_r<kr.length;_r++)Lt.set(kr[_r],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Pr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Cr));function Ir(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,o,s,l,c){if(Xe.apply(this,arguments),Ue){if(!Ue)throw Error(i(198));var u=$e;Ue=!1,$e=null,Ke||(Ke=!0,Ve=u)}}(r,t,void 0,e),e.currentTarget=null}function Er(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&a.isPropagationStopped())break e;Ir(a,s,c),o=l}else for(i=0;i<r.length;i++){if(l=(s=r[i]).instance,c=s.currentTarget,s=s.listener,l!==o&&a.isPropagationStopped())break e;Ir(a,s,c),o=l}}}if(Ke)throw e=Ve,Ke=!1,Ve=null,e}function Tr(e,t){var n=oa(t),r=e+"__bubble";n.has(r)||(jr(t,e,2,!1),n.add(r))}var Mr="_reactListening"+Math.random().toString(36).slice(2);function Or(e){e[Mr]||(e[Mr]=!0,s.forEach(function(t){Pr.has(t)||Lr(t,!1,e,null),Lr(t,!0,e,null)}))}function Lr(e,t,n,r){var a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&Pr.has(e)){if("scroll"!==e)return;a|=2,o=r}var i=oa(o),s=e+"__"+(t?"capture":"bubble");i.has(s)||(t&&(a|=4),jr(o,e,a,t),i.add(s))}function jr(e,t,n,r){var a=Lt.get(t);switch(void 0===a?2:a){case 0:a=qt;break;case 1:a=Yt;break;default:a=Qt}n=a.bind(null,t,n,e),a=void 0,!Be||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Ar(e,t,n,r,a){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===a||8===s.nodeType&&s.parentNode===a)break;if(4===i)for(i=r.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===a||8===l.nodeType&&l.parentNode===a))return;i=i.return}for(;null!==s;){if(null===(i=ta(s)))return;if(5===(l=i.tag)||6===l){r=o=i;continue e}s=s.parentNode}}r=r.return}!function(e){if(Fe)return e();Fe=!0;try{return Ne(e,void 0,void 0)}finally{Fe=!1,De()}}(function(){var r=o,a=Ce(n),i=[];e:{var s=Ot.get(e);if(void 0!==s){var l=pn,c=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":c="focus",l=vn;break;case"focusout":c="blur",l=vn;break;case"beforeblur":case"afterblur":l=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=On;break;case It:case Et:case Tt:l=bn;break;case Mt:l=Ln;break;case"scroll":l=hn;break;case"wheel":l=An;break;case"copy":case"cut":case"paste":l=Sn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Mn}var u=!!(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var f,h=r;null!==h;){var g=(f=h).stateNode;if(5===f.tag&&null!==g&&(f=g,null!==p&&null!=(g=He(h,p))&&u.push(Nr(h,g,f))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,a),i.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||16&t||!(c=n.relatedTarget||n.fromElement)||!ta(c)&&!c[Zr])&&(l||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?ta(c):null)&&(c!==(d=qe(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=mn,g="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Mn,g="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==l?s:ra(l),f=null==c?s:ra(c),(s=new u(g,h+"leave",l,n,a)).target=d,s.relatedTarget=f,g=null,ta(a)===r&&((u=new u(p,h+"enter",c,n,a)).target=f,u.relatedTarget=d,g=u),d=g,l&&c)e:{for(p=c,h=0,f=u=l;f;f=Fr(f))h++;for(f=0,g=p;g;g=Fr(g))f++;for(;0<h-f;)u=Fr(u),h--;for(;0<f-h;
vendor: 27,616 bytes, line 2
2)p=Fr(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=Fr(u),p=Fr(p)}u=null}else u=null;null!==l&&Dr(i,s,l,u,!1),null!==c&&null!==d&&Dr(i,d,c,u,!0)}if("select"===(l=(s=r?ra(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Jn;else if(Vn(s))if(Zn)m=lr;else{m=ir;var y=or}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=sr);switch(m&&(m=m(e,r))?Gn(i,m,n,a):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ae(s,"number",s.value)),y=r?ra(r):window,e){case"focusin":(Vn(y)||"true"===y.contentEditable)&&(vr=y,br=r,xr=null);break;case"focusout":xr=br=vr=null;break;case"mousedown":Sr=!0;break;case"contextmenu":case"mouseup":case"dragend":Sr=!1,wr(i,n,a);break;case"selectionchange":if(yr)break;case"keydown":case"keyup":wr(i,n,a)}var v;if(Rn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else $n?Wn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Hn&&"ko"!==n.locale&&($n||"onCompositionStart"!==b?"onCompositionEnd"===b&&$n&&(v=nn()):(en="value"in(Zt=a)?Zt.value:Zt.textContent,$n=!0)),0<(y=Rr(r,b)).length&&(b=new wn(b,e,null,n,a),i.push({event:b,listeners:y}),(v||null!==(v=Un(n)))&&(b.data=v))),(v=Dn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(zn=!0,Bn);case"textInput":return(e=t.data)===Bn&&zn?null:e;default:return null}}(e,n):function(e,t){if($n)return"compositionend"===e||!Rn&&Wn(e,t)?(e=nn(),tn=en=Zt=null,$n=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Hn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Rr(r,"onBeforeInput")).length&&(a=new wn("onBeforeInput","beforeinput",null,n,a),i.push({event:a,listeners:r}),a.data=v)}Er(i,t)})}function Nr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Rr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=He(e,n))&&r.unshift(Nr(e,o,a)),null!=(o=He(e,t))&&r.push(Nr(e,o,a))),e=e.return}return r}function Fr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Dr(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,a?null!=(l=He(n,o))&&i.unshift(Nr(n,l,s)):a||null!=(l=He(n,o))&&i.push(Nr(n,l,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}function Hr(){}var Br=null,zr=null;function Wr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Ur(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var $r="function"==typeof setTimeout?setTimeout:void 0,Kr="function"==typeof clearTimeout?clearTimeout:void 0;function Vr(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Gr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Xr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var qr=0,Yr=Math.random().toString(36).slice(2),Qr="__reactFiber$"+Yr,Jr="__reactProps$"+Yr,Zr="__reactContainer$"+Yr,ea="__reactEvents$"+Yr;function ta(e){var t=e[Qr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Zr]||n[Qr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Xr(e);null!==e;){if(n=e[Qr])return n;e=Xr(e)}return t}n=(e=n).parentNode}return null}function na(e){return!(e=e[Qr]||e[Zr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ra(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function aa(e){return e[Jr]||null}function oa(e){var t=e[ea];return void 0===t&&(t=e[ea]=new Set),t}var ia=[],sa=-1;function la(e){return{current:e}}function ca(e){0>sa||(e.current=ia[sa],ia[sa]=null,sa--)}function ua(e,t){sa++,ia[sa]=e.current,e.current=t}var da={},pa=la(da),fa=la(!1),ha=da;function ga(e,t){var n=e.type.contextTypes;if(!n)return da;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ma(e){return null!=e.childContextTypes}function ya(){ca(fa),ca(pa)}function va(e,t,n){if(pa.current!==da)throw Error(i(168));ua(pa,t),ua(fa,n)}function ba(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(i(108,G(t)||"Unknown",o));return a({},n,r)}function xa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||da,ha=pa.current,ua(pa,e),ua(fa,fa.current),!0}function Sa(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=ba(e,t,ha),r.__reactInternalMemoizedMergedChildContext=e,ca(fa),ca(pa),ua(pa,e)):ca(fa),ua(fa,n)}var wa=null,ka=null,_a=o.unstable_runWithPriority,Ca=o.unstable_scheduleCallback,Pa=o.unstable_cancelCallback,Ia=o.unstable_shouldYield,Ea=o.unstable_requestPaint,Ta=o.unstable_now,Ma=o.unstable_getCurrentPriorityLevel,Oa=o.unstable_ImmediatePriority,La=o.unstable_UserBlockingPriority,ja=o.unstable_NormalPriority,Aa=o.unstable_LowPriority,Na=o.unstable_IdlePriority,Ra={},Fa=void 0!==Ea?Ea:function(){},Da=null,Ha=null,Ba=!1,za=Ta(),Wa=1e4>za?Ta:function(){return Ta()-za};function Ua(){switch(Ma()){case Oa:return 99;case La:return 98;case ja:return 97;case Aa:return 96;case Na:return 95;default:throw Error(i(332))}}function $a(e){switch(e){case 99:return Oa;case 98:return La;case 97:return ja;case 96:return Aa;case 95:return Na;default:throw Error(i(332))}}function Ka(e,t){return e=$a(e),_a(e,t)}function Va(e,t,n){return e=$a(e),Ca(e,t,n)}function Ga(){if(null!==Ha){var e=Ha;Ha=null,Pa(e)}Xa()}function Xa(){if(!Ba&&null!==Da){Ba=!0;var e=0;try{var t=Da;Ka(99,function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}}),Da=null}catch(t){throw null!==Da&&(Da=Da.slice(e+1)),Ca(Oa,Ga),t}finally{Ba=!1}}}var qa=S.ReactCurrentBatchConfig;function Ya(e,t){if(e&&e.defaultProps){for(var n in t=a({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Qa=la(null),Ja=null,Za=null,eo=null;function to(){eo=Za=Ja=null}function no(e){var t=Qa.current;ca(Qa),e.type._context._currentValue=t}function ro(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ao(e,t){Ja=e,eo=Za=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(Ri=!0),e.firstContext=null)}function oo(e,t){if(eo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(eo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Za){if(null===Ja)throw Error(i(308));Za=t,Ja.dependencies={lanes:0,firstContext:t,responders:null}}else Za=Za.next=t;return e._currentValue}var io=!1;function so(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function co(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function uo(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function po(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function fo(e,t,n,r){var o=e.updateQueue;io=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var c=l,u=c.next;c.next=null,null===s?i=u:s.next=u,s=c;var d=e.alternate;if(null!==d){var p=(d=d.updateQueue).lastBaseUpdate;p!==s&&(null===p?d.firstBaseUpdate=u:p.next=u,d.lastBaseUpdate=c)}}if(null!==i){for(p=o.baseState,s=0,d=u=c=null;;){l=i.lane;var f=i.eventTime;if((r&l)===l){null!==d&&(d=d.next={eventTime:f,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var h=e,g=i;switch(l=t,f=n,g.tag){case 1:if("function"==typeof(h=g.payload)){p=h.call(f,p,l);break e}p=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(l="function"==typeof(h=g.payload)?h.call(f,p,l):h))break e;p=a({},p,l);break e;case 2:io=!0}}null!==i.callback&&(e.flags|=32,null===(l=o.effects)?o.effects=[i]:l.push(i))}else f={eventTime:f,lane:l,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===d?(u=d=f,c=p):d=d.next=f,s|=l;if(null===(i=i.next)){if(null===(l=o.shared.pending))break;i=l.next,l.next=null,o.lastBaseUpdate=l,o.shared.pending=null}}null===d&&(c=p),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=d,Hs|=s,e.lanes=s,e.memoizedState=p}}function ho(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!=typeof a)throw Error(i(191,a));a.call(r)}}}var go=(new r.Component).refs;function mo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:a({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var yo={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ul(),a=dl(e),o=co(r,a);o.payload=t,null!=n&&(o.callback=n),uo(e,o),pl(e,a,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ul(),a=dl(e),o=co(r,a);o.tag=1,o.payload=t,null!=n&&(o.callback=n),uo(e,o),pl(e,a,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ul(),r=dl(e),a=co(n,r);a.tag=2,null!=t&&(a.callback=t),uo(e,a),pl(e,r,n)}};function vo(e,t,n,r,a,o,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!(t.prototype&&t.prototype.isPureReactComponent&&dr(n,r)&&dr(a,o))}function bo(e,t,n){var r=!1,a=da,o=t.contextType;return"object"==typeof o&&null!==o?o=oo(o):(a=ma(t)?ha:pa.current,o=(r=null!=(r=t.contextTypes))?ga(e,a):da),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function xo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&yo.enqueueReplaceState(t,t.state,null)}function So(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=go,so(e);var o=t.contextType;"object"==typeof o&&null!==o?a.context=oo(o):(o=ma(t)?ha:pa.current,a.context=ga(e,o)),fo(e,n,a,r),a.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(mo(e,t,o,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&yo.enqueueReplaceState(a,a.state,null),fo(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4)}var wo=Array.isArray;function ko(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=r.refs;t===go&&(t=r.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function _o(e,t){if("textarea"!==e.type)throw Error(i(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Co(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=$l(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Xl(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=a(t,n.props)).ref=ko(e,t,n),r.return=e,r):((r=Kl(n.type,n.key,n.props,null,e.mode,r)).ref=ko(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ql(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Vl(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Xl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Kl(t.type,t.key,t.props,null,e.mode,n)).ref=ko(e,null,t),n.return=e,n;case k:return(t=ql(t,e.mode,n)).return=e,t}if(wo(t)||W(t))return(t=Vl(t,e.mode,n,null)).return=e,t;_o(e,t)}return null}function f(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==a?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===a?n.type===_?d(e,t,n.props.children,r,a):c(e,t,n,r):null;case k:return n.key===a?u(e,t,n,r):null}if(wo(n)||W(n))return null!==a?null:d(e,t,n,r,null);_o(e,n)}return null}function h(e,t,n,r,a){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return e=e.get(null===r.key?n:r.key)||null,r.type===_?d(t,e,r.props.children,a,r.key):c(t,e,r,a);case k:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a)}if(wo(r)||W(r))return d(t,e=e.get(n)||null,r,a,null);_o(t,r)}return null}function g(a,i,s,l){for(var c=null,u=null,d=i,g=i=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var y=f(a,d,s[g],l);if(null===y){null===d&&(d=m);break}e&&d&&null===y.alternate&&t(a,d),i=o(y,i,g),null===u?c=y:u.sibling=y,u=y,d=m}if(g===s.length)return n(a,d),c;if(null===d){for(;g<s.length;g++)null!==(d=p(a,s[g],l))&&(i=o(d,i,g),null===u?c=d:u.sibling=d,u=d);return c}for(d=r(a,d);g<s.length;g++)null!==(m=h(d,a,g,s[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),i=o(m,i,g),null===u?c=m:u.sibling=m,u=m);return e&&d.forEach(function(e){return t(a,e)}),c}function m(a,s,l,c){var u=W(l);if("function"!=typeof u)throw Error(i(150));if(null==(l=u.call(l)))throw Error(i(151));for(var d=u=null,g=s,m=s=0,y=null,v=l.next();null!==g&&!v.done;m++,v=l.next()){g.index>m?(y=g,g=null):y=g.sibling;var b=f(a,g,v.value,c);if(null===b){null===g&&(g=y);break}e&&g&&null===b.alternate&&t(a,g),s=o(b,s,m),null===d?u=b:d.sibling=b,d=b,g=y}if(v.done)return n(a,g),u;if(null===g){for(;!v.done;m++,v=l.next())null!==(v=p(a,v.value,c))&&(s=o(v,s,m),null===d?u=v:d.sibling=v,d=v);return u}for(g=r(a,g);!v.done;m++,v=l.next())null!==(v=h(g,a,m,v.value,c))&&(e&&null!==v.alternate&&g.delete(null===v.key?m:v.key),s=o(v,s,m),null===d?u=v:d.sibling=v,d=v);return e&&g.forEach(function(e){return t(a,e)}),u}return function(e,r,o,l){var c="object"==typeof o&&null!==o&&o.type===_&&null===o.key;c&&(o=o.props.children);var u="object"==typeof o&&null!==o;if(u)switch(o.$$typeof){case w:e:{for(u=o.key,c=r;null!==c;){if(c.key===u){if(7===c.tag){if(o.type===_){n(e,c.sibling),(r=a(c,o.props.children)).return=e,e=r;break e}}else if(c.elementType===o.type){n(e,c.sibling),(r=a(c,o.props)).ref=ko(e,c,o),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}o.type===_?((r=Vl(o.props.children,e.mode,l,o.key)).return=e,e=r):((l=Kl(o.type,o.key,o.props,null,e.mode,l)).ref=ko(e,r,o),l.return=e,e=l)}return s(e);case k:e:{for(c=o.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=a(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=ql(o,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=a(r,o)).return=e,e=r):(n(e,r),(r=Xl(o,e.mode,l)).return=e,e=r),s(e);if(wo(o))return g(e,r,o,l);if(W(o))return m(e,r,o,l);if(u&&_o(e,o),void 0===o&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(i(152,G(e.type)||"Component"))}return n(e,r)}}var Po=Co(!0),Io=Co(!1),Eo={},To=la(Eo),Mo=la(Eo),Oo=la(Eo);function Lo(e){if(e===Eo)throw Error(i(174));return e}function jo(e,t){switch(ua(Oo,t),ua(Mo,e),ua(To,Eo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fe(null,"");break;default:t=fe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ca(To),ua(To,t)}function Ao(){ca(To),ca(Mo),ca(Oo)}function No(e){Lo(Oo.current);var t=Lo(To.current),n=fe(t,e.type);t!==n&&(ua(Mo,e),ua(To,n))}function Ro(e){Mo.current===e&&(ca(To),ca(Mo))}var Fo=la(0);function Do(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(64&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ho=null,Bo=null,zo=!1;function Wo(e,t){var n=Wl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Uo(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function $o(e){if(zo){var t=Bo;if(t){var n=t;if(!Uo(e,t)){if(!(t=Gr(n.nextSibling))||!Uo(e,t))return e.flags=-1025&e.flags|2,zo=!1,void(Ho=e);Wo(Ho,n)}Ho=e,Bo=Gr(t.firstChild)}else e.flags=-1025&e.flags|2,zo=!1,Ho=e}}function Ko(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ho=e}function Vo(e){if(e!==Ho)return!1;if(!zo)return Ko(e),zo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Ur(t,e.memoizedProps))for(t=Bo;t;)Wo(e,t),t=Gr(t.nextSibling);if(Ko(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Bo=Gr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Bo=null}}else Bo=Ho?Gr(e.stateNode.nextSibling):null;return!0}function Go(){Bo=Ho=null,zo=!1}var Xo=[];function qo(){for(var e=0;e<Xo.length;e++)Xo[e]._workInProgressVersionPrimary=null;Xo.length=0}var Yo=S.ReactCurrentDispatcher,Qo=S.ReactCurrentBatchConfig,Jo=0,Zo=null,ei=null,ti=null,ni=!1,ri=!1;function ai(){throw Error(i(321))}function oi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!cr(e[n],t[n]))return!1;return!0}function ii(e,t,n,r,a,o){if(Jo=o,Zo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Yo.current=null===e||null===e.memoizedState?Li:ji,e=n(r,a),ri){o=0;do{if(ri=!1,!(25>o))throw Error(i(301));o+=1,ti=ei=null,t.updateQueue=null,Yo.current=Ai,e=n(r,a)}while(ri)}if(Yo.current=Oi,t=null!==ei&&null!==ei.next,Jo=0,ti=ei=Zo=null,ni=!1,t)throw Error(i(300));return e}function si(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ti?Zo.memoizedState=ti=e:ti=ti.next=e,ti}function li(){if(null===ei){var e=Zo.alternate;e=null!==e?e.memoizedState:null}else e=ei.next;var t=null===ti?Zo.memoizedState:ti.next;if(null!==t)ti=t,ei=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ei=e).memoizedState,baseState:ei.baseState,baseQueue:ei.baseQueue,queue:ei.queue,next:null},null===ti?Zo.memoizedState=ti=e:ti=ti.next=e}return ti}function ci(e,t){return"function"==typeof t?t(e):t}function ui(e){var t=li(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ei,a=r.baseQueue,o=n.pending;if(null!==o){if(null!==a){var s=a.next;a.next=o.next,o.next=s}r.baseQueue=a=o,n.pending=null}if(null!==a){a=a.next,r=r.baseState;var l=s=o=null,c=a;do{var u=c.lane;if((Jo&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=d,o=r):l=l.next=d,Zo.lanes|=u,Hs|=u}c=c.next}while(null!==c&&c!==a);null===l?o=r:l.next=s,cr(r,t.memoizedState)||(Ri=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function di(e){var t=li(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(null!==a){n.pending=null;var s=a=a.next;do{o=e(o,s.action),s=s.next}while(s!==a);cr(o,t.memoizedState)||(Ri=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function pi(e,t,n){var r=t._getVersion;r=r(t._source);var a=t._workInProgressVersionPrimary;if(null!==a?e=a===r:(e=e.mutableReadLanes,(e=(Jo&e)===e)&&(t._workInProgressVersionPrimary=r,Xo.push(t))),e)return n(t._source);throw Xo.push(t),Error(i(350))}function fi(e,t,n,r){var a=Os;if(null===a)throw Error(i(349));var o=t._getVersion,s=o(t._source),l=Yo.current,c=l.useState(function(){return pi(a,t,n)}),u=c[1],d=c[0];c=ti;var p=e.memoizedState,f=p.refs,h=f.getSnapshot,g=p.source;p=p.subscribe;var m=Zo;return e.memoizedState={refs:f,source:t,subscribe:r},l.useEffect(function(){f.getSnapshot=n,f.setSnapshot=u;var e=o(t._source);if(!cr(s,e)){e=n(t._source),cr(d,e)||(u(e),e=dl(m),a.mutableReadLanes|=e&a.pendingLanes),e=a.mutableReadLanes,a.entangledLanes|=e;for(var r=a.entanglements,i=e;0<i;){var l=31-Ut(i),c=1<<l;r[l]|=e,i&=~c}}},[n,t,r]),l.useEffect(function(){return r(t._source,function(){var e=f.getSnapshot,n=f.setSnapshot;try{n(e(t._source));var r=dl(m);a.mutableReadLanes|=r&a.pendingLanes}catch(e){n(function(){throw e})}})},[t,r]),cr(h,n)&&cr(g,t)&&cr(p,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ci,lastRenderedState:d}).dispatch=u=Mi.bind(null,Zo,e),c.queue=e,c.baseQueue=null,d=pi(a,t,n),c.memoizedState=c.baseState=d),d}function hi(e,t,n){return fi(li(),e,t,n)}function gi(e){var t=si();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ci,lastRenderedState:e}).dispatch=Mi.bind(null,Zo,e),[t.memoizedState,e]}function mi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Zo.updateQueue)?(t={lastEffect:null},Zo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function yi(e){return e={current:e},si().memoizedState=e}function vi(){return li().memoizedState}function bi(e,t,n,r){var a=si();Zo.flags|=e,a.memoizedState=mi(1|t,n,void 0,void 0===r?null:r)}function xi(e,t,n,r){var a=li();r=void 0===r?null:r;var o=void 0;if(null!==ei){var i=ei.memoizedState;if(o=i.destroy,null!==r&&oi(r,i.deps))return void mi(t,n,o,r)}Zo.flags|=e,a.memoizedState=mi(1|t,n,o,r)}function Si(e,t){return bi(516,4,e,t)}function wi(e,t){return xi(516,4,e,t)}function ki(e,t){return xi(4,2,e,t)}function _i(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ci(e,t,n){return n=null!=n?n.concat([e]):null,xi(4,2,_i.bind(null,t,e),n)}function Pi(){}function Ii(e,t){var n=li();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ei(e,t){var n=li();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ti(e,t){var n=Ua();Ka(98>n?98:n,function(){e(!0)}),Ka(97<n?97:n,function(){var n=Qo.transition;Qo.transition=1;try{e(!1),t()}finally{Qo.transition=n}})}function Mi(e,t,n){var r=ul(),a=dl(e),o={lane:a,action:n,eagerReducer:null,eagerState:null,next:null},i=t.pending;if(null===i?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===Zo||null!==i&&i===Zo)ri=ni=!0;else{if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=i(s,n);if(o.eagerReducer=i,o.eagerState=l,cr(l,s))return}catch(e){}pl(e,a,r)}}var Oi={readContext:oo,useCallback:ai,useContext:ai,useEffect:ai,useImperativeHandle:ai,useLayoutEffect:ai,useMemo:ai,useReducer:ai,useRef:ai,useState:ai,useDebugValue:ai,useDeferredValue:ai,useTransition:ai,useMutableSource:ai,useOpaqueIdentifier:ai,unstable_isNewReconciler:!1},Li={readContext:oo,useCallback:function(e,t){return si().memoizedState=[e,void 0===t?null:t],e},useContext:oo,useEffect:Si,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,bi(4,2,_i.bind(null,t,e),n)},useLayoutEffect:function(e,t){return bi(4,2,e,t)},useMemo:function(e,t){var n=si();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=si();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Mi.bind(null,Zo,e),[r.memoizedState,e]},useRef:yi,useState:gi,useDebugValue:Pi,useDeferredValue:function(e){var t=gi(e),n=t[0],r=t[1];return Si(function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}},[e]),n},useTransition:function(){var e=gi(!1),t=e[0];return yi(e=Ti.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=si();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},fi(r,e,t,n)},useOpaqueIdentifier:function(){if(zo){var e=!1,t=function(e){return{$$typeof:N,toString:e,valueOf:e}}(function(){throw e||(e=!0,n("r:"+(qr++).toString(36))),Error(i(355))}),n=gi(t)[1];return!(2&Zo.mode)&&(Zo.flags|=516,mi(5,function(){n("r:"+(qr++).toString(36))},void 0,null)),t}return gi(t="r:"+(qr++).toString(36)),t},unstable_isNewReconciler:!1},ji={readContext:oo,useCallback:Ii,useContext:oo,useEffect:wi,useImperativeHandle:Ci,useLayoutEffect:ki,useMemo:Ei,useReducer:ui,useRef
2:vi,useState:function(){return ui(ci)},useDebugValue:Pi,useDeferredValue:function(e){var t=ui(ci),n=t[0],r=t[1];return wi(function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}},[e]),n},useTransition:function(){var e=ui(ci)[0];return[vi().current,e]},useMutableSource:hi,useOpaqueIdentifier:function(){return ui(ci)[0]},unstable_isNewReconciler:!1},Ai={readContext:oo,useCallback:Ii,useContext:oo,useEffect:wi,useImperativeHandle:Ci,useLayoutEffect:ki,useMemo:Ei,useReducer:di,useRef:vi,useState:function(){return di(ci)},useDebugValue:Pi,useDeferredValue:function(e){var t=di(ci),n=t[0],r=t[1];return wi(function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}},[e]),n},useTransition:function(){var e=di(ci)[0];return[vi().current,e]},useMutableSource:hi,useOpaqueIdentifier:function(){return di(ci)[0]},unstable_isNewReconciler:!1},Ni=S.ReactCurrentOwner,Ri=!1;function Fi(e,t,n,r){t.child=null===e?Io(t,null,n,r):Po(t,e.child,n,r)}function Di(e,t,n,r,a){n=n.render;var o=t.ref;return ao(t,a),r=ii(e,t,n,r,o,a),null===e||Ri?(t.flags|=1,Fi(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,rs(e,t,a))}function Hi(e,t,n,r,a,o){if(null===e){var i=n.type;return"function"!=typeof i||Ul(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Kl(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Bi(e,t,i,r,a,o))}return i=e.child,a&o||(a=i.memoizedProps,!(n=null!==(n=n.compare)?n:dr)(a,r)||e.ref!==t.ref)?(t.flags|=1,(e=$l(i,r)).ref=t.ref,e.return=t,t.child=e):rs(e,t,o)}function Bi(e,t,n,r,a,o){if(null!==e&&dr(e.memoizedProps,r)&&e.ref===t.ref){if(Ri=!1,!(o&a))return t.lanes=e.lanes,rs(e,t,o);16384&e.flags&&(Ri=!0)}return Ui(e,t,n,r,o)}function zi(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(4&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},xl(0,e),null;t.memoizedState={baseLanes:0},xl(0,null!==o?o.baseLanes:n)}else t.memoizedState={baseLanes:0},xl(0,n);else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,xl(0,r);return Fi(e,t,a,n),t.child}function Wi(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ui(e,t,n,r,a){var o=ma(n)?ha:pa.current;return o=ga(t,o),ao(t,a),n=ii(e,t,n,r,o,a),null===e||Ri?(t.flags|=1,Fi(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,rs(e,t,a))}function $i(e,t,n,r,a){if(ma(n)){var o=!0;xa(t)}else o=!1;if(ao(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),bo(t,n,r),So(t,n,r,a),r=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,c=n.contextType;c="object"==typeof c&&null!==c?oo(c):ga(t,c=ma(n)?ha:pa.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==r||l!==c)&&xo(t,i,r,c),io=!1;var p=t.memoizedState;i.state=p,fo(t,r,i,a),l=t.memoizedState,s!==r||p!==l||fa.current||io?("function"==typeof u&&(mo(t,n,u,r),l=t.memoizedState),(s=io||vo(t,n,s,r,p,l,c))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4)):("function"==typeof i.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=c,r=s):("function"==typeof i.componentDidMount&&(t.flags|=4),r=!1)}else{i=t.stateNode,lo(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Ya(t.type,s),i.props=c,d=t.pendingProps,p=i.context,l="object"==typeof(l=n.contextType)&&null!==l?oo(l):ga(t,l=ma(n)?ha:pa.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||p!==l)&&xo(t,i,r,l),io=!1,p=t.memoizedState,i.state=p,fo(t,r,i,a);var h=t.memoizedState;s!==d||p!==h||fa.current||io?("function"==typeof f&&(mo(t,n,f,r),h=t.memoizedState),(c=io||vo(t,n,c,r,p,h,l))?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=l,r=c):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),r=!1)}return Ki(e,t,n,r,o,a)}function Ki(e,t,n,r,a,o){Wi(e,t);var i=!!(64&t.flags);if(!r&&!i)return a&&Sa(t,n,!1),rs(e,t,o);r=t.stateNode,Ni.current=t;var s=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Po(t,e.child,null,o),t.child=Po(t,null,s,o)):Fi(e,t,s,o),t.memoizedState=r.state,a&&Sa(t,n,!0),t.child}function Vi(e){var t=e.stateNode;t.pendingContext?va(0,t.pendingContext,t.pendingContext!==t.context):t.context&&va(0,t.context,!1),jo(e,t.containerInfo)}var Gi,Xi,qi,Yi,Qi={dehydrated:null,retryLane:0};
2function Ji(e,t,n){var r,a=t.pendingProps,o=Fo.current,i=!1;return(r=!!(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&!!(2&o)),r?(i=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===a.fallback||!0===a.unstable_avoidThisFallback||(o|=1),ua(Fo,1&o),null===e?(void 0!==a.fallback&&$o(t),e=a.children,o=a.fallback,i?(e=Zi(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Qi,e):"number"==typeof a.unstable_expectedLoadTime?(e=Zi(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Qi,t.lanes=33554432,e):((n=Gl({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,i?(a=function(e,t,n,r,a){var o=t.mode,i=e.child;e=i.sibling;var s={mode:"hidden",children:n};return 2&o||t.child===i?n=$l(i,s):((n=t.child).childLanes=0,n.pendingProps=s,null!==(i=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=i,i.nextEffect=null):t.firstEffect=t.lastEffect=null),null!==e?r=$l(e,r):(r=Vl(r,o,a,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,a.children,a.fallback,n),i=t.child,o=e.child.memoizedState,i.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},i.childLanes=e.childLanes&~n,t.memoizedState=Qi,a):(n=function(e,t,n,r){var a=e.child;return e=a.sibling,n=$l(a,{mode:"visible",children:n}),!(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}(e,t,a.children,n),t.memoizedState=null,n))}function Zi(e,t,n,r){var a=e.mode,o=e.child;return t={mode:"hidden",children:t},2&a||null===o?o=Gl(t,a,0,null):(o.childLanes=0,o.pendingProps=t),n=Vl(n,a,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function es(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ro(e.return,t)}function ts(e,t,n,r,a,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,lastEffect:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a,i.lastEffect=o)}function ns(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(Fi(e,t,r.children,n),2&(r=Fo.current))r=1&r|2,t.flags|=64;else{if(null!==e&&64&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&es(e,n);else if(19===e.tag)es(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ua(Fo,r),2&t.mode)switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===Do(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),ts(t,!1,a,n,o,t.lastEffect);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Do(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}ts(t,!0,n,null,o,t.lastEffect);break;case"together":ts(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function rs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Hs|=t.lanes,n&t.childLanes){if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=$l(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=$l(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function as(e,t){if(!zo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function os(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return ma(t.type)&&ya(),null;case 3:return Ao(),ca(fa),ca(pa),qo(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Vo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Xi(t),null;case 5:Ro(t);var o=Lo(Oo.current);if(n=t.type,null!==e&&null!=t.stateNode)qi(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(i(166));return null}if(e=Lo(To.current),Vo(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;
vendor: 4,134 bytes, line 2
2switch(r[Qr]=t,r[Jr]=s,n){case"dialog":Tr("cancel",r),Tr("close",r);break;case"iframe":case"object":case"embed":Tr("load",r);break;case"video":case"audio":for(e=0;e<Cr.length;e++)Tr(Cr[e],r);break;case"source":Tr("error",r);break;case"img":case"image":case"link":Tr("error",r),Tr("load",r);break;case"details":Tr("toggle",r);break;case"input":ee(r,s),Tr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Tr("invalid",r);break;case"textarea":le(r,s),Tr("invalid",r)}for(var c in ke(n,s),e=null,s)s.hasOwnProperty(c)&&(o=s[c],"children"===c?"string"==typeof o?r.textContent!==o&&(e=["children",o]):"number"==typeof o&&r.textContent!==""+o&&(e=["children",""+o]):l.hasOwnProperty(c)&&null!=o&&"onScroll"===c&&Tr("scroll",r));switch(n){case"input":Y(r),re(r,s,!0);break;case"textarea":Y(r),ue(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Hr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(c=9===o.nodeType?o:o.ownerDocument,e===de&&(e=pe(n)),e===de?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[Qr]=t,e[Jr]=r,Gi(e,t,!1,!1),t.stateNode=e,c=_e(n,r),n){case"dialog":Tr("cancel",e),Tr("close",e),o=r;break;case"iframe":case"object":case"embed":Tr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Cr.length;o++)Tr(Cr[o],e);o=r;break;case"source":Tr("error",e),o=r;break;case"img":case"image":case"link":Tr("error",e),Tr("load",e),o=r;break;case"details":Tr("toggle",e),o=r;break;case"input":ee(e,r),o=Z(e,r),Tr("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=a({},r,{value:void 0}),Tr("invalid",e);break;case"textarea":le(e,r),o=se(e,r),Tr("invalid",e);break;default:o=r}ke(n,o);var u=o;for(s in u)if(u.hasOwnProperty(s)){var d=u[s];"style"===s?Se(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&me(e,d):"children"===s?"string"==typeof d?("textarea"!==n||""!==d)&&ye(e,d):"number"==typeof d&&ye(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=d&&"onScroll"===s&&Tr("scroll",e):null!=d&&x(e,s,d,c))}switch(n){case"input":Y(e),re(e,r,!1);break;case"textarea":Y(e),ue(e);break;case"option":null!=r.value&&e.setAttribute("value",""+X(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ie(e,!!r.multiple,s,!1):null!=r.defaultValue&&ie(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Hr)}Wr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Yi(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));n=Lo(Oo.current),Lo(To.current),Vo(t)?(r=t.stateNode,n=t.memoizedProps,r[Qr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Qr]=t,t.stateNode=r)}return null;case 13:return ca(Fo),r=t.memoizedState,64&t.flags?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Vo(t):n=null!==e.memoizedState,r&&!n&&2&t.mode&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||1&Fo.current?0===Rs&&(Rs=3):(0!==Rs&&3!==Rs||(Rs=4),null===Os||!(134217727&Hs)&&!(134217727&Bs)||ml(Os,js))),(r||n)&&(t.flags|=4),null);case 4:return Ao(),Xi(t),null===e&&Or(t.stateNode.containerInfo),null;case 10:return no(t),null;case 19:if(ca(Fo),null===(r=t.memoizedState))return null;if(s=!!(64&t.flags),null===(c=r.rendering))if(s)as(r,!1);else{if(0!==Rs||null!==e&&64&e.flags)for(e=t.child;null!==e;){if(null!==(c=Do(e))){for(t.flags|=64,as(r,!1),null!==(s=c.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,
vendor: 9,690 bytes, line 2
2s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ua(Fo,1&Fo.current|2),t.child}e=e.sibling}null!==r.tail&&Wa()>$s&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Do(c))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),as(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!zo)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Wa()-r.renderingStartTime>$s&&1073741824!==n&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Wa(),n.sibling=null,t=Fo.current,ua(Fo,s?1&t|2:1&t),n):null;case 23:case 24:return Sl(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(i(156,t.tag))}function is(e){switch(e.tag){case 1:ma(e.type)&&ya();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ao(),ca(fa),ca(pa),qo(),64&(t=e.flags))throw Error(i(285));return e.flags=-4097&t|64,e;case 5:return Ro(e),null;case 13:return ca(Fo),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ca(Fo),null;case 4:return Ao(),null;case 10:return no(e),null;case 23:case 24:return Sl(),null;default:return null}}function ss(e,t){try{var n="",r=t;do{n+=V(r),r=r.return}while(r);var a=n}catch(e){a="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:a}}function ls(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}Gi=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Xi=function(){},qi=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Lo(To.current);var i,s=null;switch(n){case"input":o=Z(e,o),r=Z(e,r),s=[];break;case"option":o=oe(e,o),r=oe(e,r),s=[];break;case"select":o=a({},o,{value:void 0}),r=a({},r,{value:void 0}),s=[];break;case"textarea":o=se(e,o),r=se(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Hr)}for(d in ke(n,r),n=null,o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&null!=o[d])if("style"===d){var c=o[d];for(i in c)c.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(l.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var u=r[d];if(c=null!=o?o[d]:void 0,r.hasOwnProperty(d)&&u!==c&&(null!=u||null!=c))if("style"===d)if(c){for(i in c)!c.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&c[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(s||(s=[]),s.push(d,n)),n=u;else"dangerouslySetInnerHTML"===d?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(s=s||[]).push(d,u)):"children"===d?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(d,""+u):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(l.hasOwnProperty(d)?(null!=u&&"onScroll"===d&&Tr("scroll",e),s||c===u||(s=[])):"object"==typeof u&&null!==u&&u.$$typeof===N?u.toString():(s=s||[]).push(d,u))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Yi=function(e,t,n,r){n!==r&&(t.flags|=4)};var cs="function"==typeof WeakMap?WeakMap:Map;function us(e,t,n){(n=co(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Xs||(Xs=!0,qs=r),ls(0,t)},n}function ds(e,t,n){(n=co(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return ls(0,t),r(a)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ys?Ys=new Set([this]):Ys.add(this),ls(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ps="function"==typeof WeakSet?WeakSet:Set;function fs(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Dl(e,t)}else t.current=null}function hs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Ya(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Vr(t.stateNode.containerInfo))}throw Error(i(163))}function gs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(!(3&~e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var a=e;r=a.next,4&(a=a.tag)&&1&a&&(Nl(n,e),Al(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Ya(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&ho(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}ho(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Wr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&St(n)))))}throw Error(i(163))}function ms(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var a=n.memoizedProps.style;a=null!=a&&a.hasOwnProperty("display")?a.display:null,r.style.display=xe("display",a)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function ys(e,t){if(ka&&"function"==typeof ka.onCommitFiberUnmount)try{ka.onCommitFiberUnmount(wa,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,a=r.destroy;if(r=r.tag,void 0!==a)if(4&r)Nl(t,n);else{r=t;try{a()}catch(e){Dl(r,e)}}n=n.next}while(n!==e)}break;case 1:if(fs(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Dl(t,e)}break;case 5:fs(t);break;case 4:ks(e,t)}}function vs(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function bs(e){return 5===e.tag||3===e.tag||4===e.tag}function xs(e){e:{for(var t=e.return;null!==t;){if(bs(t))break e;t=t.return}throw Error(i(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(i(161))}16&n.flags&&(ye(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||bs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?Ss(e,n,t):ws(e,n,t)}function Ss(e,t,n){var r=e.tag,a=5===r||6===r;if(a)e=a?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Hr));else if(4!==r&&null!==(e=e.child))for(Ss(e,t,n),e=e.sibling;null!==e;)Ss(e,t,n),e=e.sibling}function ws(e,t,n){var r=e.tag,a=5===r||6===r;if(a)e=a?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ws(e,t,n),e=e.sibling;null!==e;)ws(e,t,n),e=e.sibling}function ks(e,t){for(var n,r,a=t,o=!1;;){if(!o){o=a.return;e:for(;;){if(null===o)throw Error(i(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===a.tag||6===a.tag){e:for(var s=e,l=a,c=l;;)if(ys(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===l)break e;for(;null===c.sibling;){if(null===c.return||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(s=n,l=a.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(a.stateNode)}else if(4===a.tag){if(null!==a.child){n=a.stateNode.containerInfo,r=!0,a.child.return=a,a=a.child;continue}}else if(ys(e,a),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;4===(a=a.return).tag&&(o=!1)}a.sibling.return=a.return,a=a.sibling}}function _s(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{!(3&~r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}
2while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var a=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Jr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),_e(e,a),t=_e(e,r),a=0;a<o.length;a+=2){var s=o[a],l=o[a+1];"style"===s?Se(n,l):"dangerouslySetInnerHTML"===s?me(n,l):"children"===s?ye(n,l):x(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ie(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ie(n,!!r.multiple,r.defaultValue,!0):ie(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(i(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,St(n.containerInfo)));case 13:return null!==t.memoizedState&&(Us=Wa(),ms(t.child,!0)),void Cs(t);case 19:return void Cs(t);case 23:case 24:return void ms(t,null!==t.memoizedState)}throw Error(i(163))}function Cs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ps),t.forEach(function(t){var r=Bl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Ps(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var Is=Math.ceil,Es=S.ReactCurrentDispatcher,Ts=S.ReactCurrentOwner,Ms=0,Os=null,Ls=null,js=0,As=0,Ns=la(0),Rs=0,Fs=null,Ds=0,Hs=0,Bs=0,zs=0,Ws=null,Us=0,$s=1/0;function Ks(){$s=Wa()+500}var Vs,Gs=null,Xs=!1,qs=null,Ys=null,Qs=!1,Js=null,Zs=90,el=[],tl=[],nl=null,rl=0,al=null,ol=-1,il=0,sl=0,ll=null,cl=!1;function ul(){return 48&Ms?Wa():-1!==ol?ol:ol=Wa()}function dl(e){if(!(2&(e=e.mode)))return 1;if(!(4&e))return 99===Ua()?1:2;if(0===il&&(il=Ds),0!==qa.transition){0!==sl&&(sl=null!==Ws?Ws.pendingLanes:0),e=il;var t=4186112&~sl;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=Ua(),Ht(4&Ms&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),il)}function pl(e,t,n){if(50<rl)throw rl=0,al=null,Error(i(185));if(null===(e=fl(e,t)))return null;Wt(e,t,n),e===Os&&(Bs|=t,4===Rs&&ml(e,js));var r=Ua();1===t?8&Ms&&!(48&Ms)?yl(e):(hl(e,n),0===Ms&&(Ks(),Ga())):(!(4&Ms)||98!==r&&99!==r||(null===nl?nl=new Set([e]):nl.add(e)),hl(e,n)),Ws=e}function fl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function hl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Ut(s),c=1<<l,u=o[l];if(-1===u){if(!(c&r)||c&a){u=t,Rt(c);var d=Nt;o[l]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);s&=~c}if(r=Ft(e,e===Os?js:0),t=Nt,0===r)null!==n&&(n!==Ra&&Pa(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Ra&&Pa(n)}15===t?(n=yl.bind(null,e),null===Da?(Da=[n],Ha=Ca(Oa,Xa)):Da.push(n),n=Ra):14===t?n=Va(99,yl.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(i(358,e))}}(t),n=Va(n,gl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function gl(e){if(ol=-1,sl=il=0,48&Ms)throw Error(i(327));var t=e.callbackNode;if(jl()&&e.callbackNode!==t)return null;var n=Ft(e,e===Os?js:0);if(0===n)return null;var r=n,a=Ms;Ms|=16;var o=_l();for(Os===e&&js===r||(Ks(),wl(e,r));;)try{Il();break}catch(t){kl(e,t)}if(to(),Es.current=o,Ms=a,null!==Ls?r=0:(Os=null,js=0,r=Rs),Ds&Bs)wl(e,0);else if(0!==r){if(2===r&&(Ms|=64,e.hydrate&&(e.hydrate=!1,Vr(e.containerInfo)),0!==(n=Dt(e))&&(r=Cl(e,n))),1===r)throw t=Fs,wl(e,0),ml(e,n),hl(e,Wa()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(i(345));case 2:case 5:Ml(e);break;case 3:if(ml(e,n),(62914560&n)===n&&10<(r=Us+500-Wa())){if(0!==Ft(e,0))break;if(((a=e.suspendedLanes)&n)!==n){ul(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=$r(Ml.bind(null,e),r);break}Ml(e);break;case 4:if(ml(e,n),(4186112&n)===n)break;for(r=e.eventTimes,a=-1;0<n;){var s=31-Ut(n);o=1<<s,(s=r[s])>a&&(a=s),n&=~o}if(n=a,10<(n=(120>(n=Wa()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Is(n/1960))-n)){e.timeoutHandle=$r(Ml.bind(null,e),n);break}Ml(e);break;default:throw Error(i(329))}}return hl(e,Wa()),e.callbackNode===t?gl.bind(null,e):null}function ml(e,t){for(t&=~zs,t&=~Bs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ut(t),r=1<<n;e[n]=-1,t&=~r}}function yl(e){if(48&Ms)throw Error(i(327));if(jl(),e===Os&&e.expiredLanes&js){var t=js,n=Cl(e,t);Ds&Bs&&(n=Cl(e,t=Ft(e,t)))}else n=Cl(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(Ms|=64,e.hydrate&&(e.hydrate=!1,Vr(e.containerInfo)),0!==(t=Dt(e))&&(n=Cl(e,t))),1===n)throw n=Fs,wl(e,0),ml(e,t),hl(e,Wa()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ml(e),hl(e,Wa()),null}function vl(e,t){var n=Ms;Ms|=1;try{return e(t)}finally{0===(Ms=n)&&(Ks(),Ga())}}function bl(e,t){var n=Ms;Ms&=-2,Ms|=8;try{return e(t)}finally{0===(Ms=n)&&(Ks(),Ga())}}function xl(e,t){ua(Ns,As),As|=t,Ds|=t}function Sl(){As=Ns.current,ca(Ns)}function wl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Kr(n)),null!==Ls)for(n=Ls.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&ya();break;case 3:Ao(),ca(fa),ca(pa),qo();break;case 5:Ro(r);break;case 4:Ao();break;case 13:case 19:ca(Fo);break;case 10:no(r);break;case 23:case 24:Sl()}n=n.return}Os=e,Ls=$l(e.current,null),js=As=Ds=t,Rs=0,Fs=null,zs=Bs=Hs=0}function kl(e,t){for(;;){var n=Ls;try{if(to(),Yo.current=Oi,ni){for(var r=Zo.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}ni=!1}if(Jo=0,ti=ei=Zo=null,ri=!1,Ts.current=null,null===n||null===n.return){Rs=1,Fs=t,
vendor: 5,961 bytes, line 2
2Ls=null;break}e:{var o=e,i=n.return,s=n,l=t;if(t=js,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l;if(!(2&s.mode)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=!!(1&Fo.current),p=i;do{var f;if(f=13===p.tag){var h=p.memoizedState;if(null!==h)f=null!==h.dehydrated;else{var g=p.memoizedProps;f=void 0!==g.fallback&&(!0!==g.unstable_avoidThisFallback||!d)}}if(f){var m=p.updateQueue;if(null===m){var y=new Set;y.add(c),p.updateQueue=y}else m.add(c);if(!(2&p.mode)){if(p.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var v=co(-1,1);v.tag=2,uo(s,v)}s.lanes|=1;break e}l=void 0,s=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new cs,l=new Set,b.set(c,l)):void 0===(l=b.get(c))&&(l=new Set,b.set(c,l)),!l.has(s)){l.add(s);var x=Hl.bind(null,o,c,s);c.then(x,x)}p.flags|=4096,p.lanes=t;break e}p=p.return}while(null!==p);l=Error((G(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Rs&&(Rs=2),l=ss(l,s),p=i;do{switch(p.tag){case 3:o=l,p.flags|=4096,t&=-t,p.lanes|=t,po(p,us(0,o,t));break e;case 1:o=l;var S=p.type,w=p.stateNode;if(!(64&p.flags||"function"!=typeof S.getDerivedStateFromError&&(null===w||"function"!=typeof w.componentDidCatch||null!==Ys&&Ys.has(w)))){p.flags|=4096,t&=-t,p.lanes|=t,po(p,ds(p,o,t));break e}}p=p.return}while(null!==p)}Tl(n)}catch(e){t=e,Ls===n&&null!==n&&(Ls=n=n.return);continue}break}}function _l(){var e=Es.current;return Es.current=Oi,null===e?Oi:e}function Cl(e,t){var n=Ms;Ms|=16;var r=_l();for(Os===e&&js===t||wl(e,t);;)try{Pl();break}catch(t){kl(e,t)}if(to(),Ms=n,Es.current=r,null!==Ls)throw Error(i(261));return Os=null,js=0,Rs}function Pl(){for(;null!==Ls;)El(Ls)}function Il(){for(;null!==Ls&&!Ia();)El(Ls)}function El(e){var t=Vs(e.alternate,e,As);e.memoizedProps=e.pendingProps,null===t?Tl(e):Ls=t,Ts.current=null}function Tl(e){var t=e;do{var n=t.alternate;if(e=t.return,2048&t.flags){if(null!==(n=is(t)))return n.flags&=2047,void(Ls=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(null!==(n=os(n,t,As)))return void(Ls=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||1073741824&As||!(4&n.mode)){for(var r=0,a=n.child;null!==a;)r|=a.lanes|a.childLanes,a=a.sibling;n.childLanes=r}null!==e&&!(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}if(null!==(t=t.sibling))return void(Ls=t);Ls=t=e}while(null!==t);0===Rs&&(Rs=5)}function Ml(e){var t=Ua();return Ka(99,Ol.bind(null,e,t)),null}function Ol(e,t){do{jl()}while(null!==Js);if(48&Ms)throw Error(i(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null;var r=n.lanes|n.childLanes,a=r,o=e.pendingLanes&~a;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=a,e.mutableReadLanes&=a,e.entangledLanes&=a,a=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<o;){var c=31-Ut(o),u=1<<c;a[c]=0,s[c]=-1,l[c]=-1,o&=~u}if(null!==nl&&!(24&r)&&nl.has(e)&&nl.delete(e),e===Os&&(Ls=Os=null,js=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(a=Ms,Ms|=32,Ts.current=null,Br=Xt,mr(s=gr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&0!==u.rangeCount){l=u.anchorNode,o=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{l.nodeType,c.nodeType}catch(e){l=null;break e}var d=0,p=-1,f=-1,h=0,g=0,m=s,y=null;t:for(;;){for(var v;m!==l||0!==o&&3!==m.nodeType||(p=d+o),m!==c||0!==u&&3!==m.nodeType||(f=d+u),3===m.nodeType&&(d+=m.nodeValue.length),null!==(v=m.firstChild);)y=m,m=v;for(;;){if(m===s)break t;if(y===l&&++h===o&&(p=d),y===c&&++g===u&&(f=d),null!==(v=m.nextSibling))break;y=(m=y).parentNode}m=v}l=-1===p||-1===f?null:{start:p,end:f}}else l=null;l=l||{start:0,end:0}}else l=null;zr={focusedElem:s,selectionRange:l},Xt=!1,ll=null,cl=!1,Gs=r;do{try{Ll()}catch(e){if(null===Gs)throw Error(i(330));Dl(Gs,e),Gs=Gs.nextEffect}}while(null!==Gs);ll=null,Gs=r;do{try{for(s=e;null!==Gs;){var b=Gs.flags;if(16&b&&ye(Gs.stateNode,""),128&b){var x=Gs.alternate;if(null!==x){var S=x.ref;null!==S&&("function"==typeof S?S(null):S.current=null)}}switch(1038&b){case 2:xs(Gs),Gs.flags&=-3;break;case 6:xs(Gs),Gs.flags&=-3,_s(Gs.alternate,Gs);break;case 1024:Gs.flags&=-1025;break;case 1028:Gs.flags&=-1025,_s(Gs.alternate,Gs);break;case 4:_s(Gs.alternate,Gs);break;case 8:ks(s,l=Gs);var w=l.alternate;vs(l),null!==w&&vs(w)}Gs=Gs.nextEffect}}catch(e){if(null===Gs)throw Error(i(330));Dl(Gs,e),Gs=Gs.nextEffect}}while(null!==Gs);if(S=zr,x=gr(),b=S.focusedElem,s=S.selectionRange,x!==b&&b&&b.ownerDocument&&hr(b.ownerDocument.documentElement,b)){null!==s&&mr(b)&&(x=s.start,void 0===(S=s.end)&&(S=x),"selectionStart"in b?(b.selectionStart=x,b.selectionEnd=Math.min(S,b.value.length)):(S=(x=b.ownerDocument||document)&&x.defaultView||window).getSelection&&(S=S.getSelection(),l=b.textContent.length,w=Math.min(s.start,l),s=void 0===s.end?w:Math.min(s.end,l),!S.extend&&w>s&&(l=s,s=w,w=l),l=fr(b,w),o=fr(b,s),l&&o&&(1!==S.rangeCount||S.anchorNode!==l.node||S.anchorOffset!==l.offset||S.focusNode!==o.node||S.focusOffset!==o.offset)&&((x=x.createRange()).setStart(l.node,l.offset),S.removeAllRanges(),w>s?(S.addRange(x),S.extend(o.node,o.offset)):(x.setEnd(o.node,o.offset),S.addRange(x))))),x=[];for(S=b;S=S.parentNode;)1===S.nodeType&&x.push({element:S,left:S.scrollLeft,top:S.scrollTop});
2for("function"==typeof b.focus&&b.focus(),b=0;b<x.length;b++)(S=x[b]).element.scrollLeft=S.left,S.element.scrollTop=S.top}Xt=!!Br,zr=Br=null,e.current=n,Gs=r;do{try{for(b=e;null!==Gs;){var k=Gs.flags;if(36&k&&gs(b,Gs.alternate,Gs),128&k){x=void 0;var _=Gs.ref;if(null!==_){var C=Gs.stateNode;Gs.tag,x=C,"function"==typeof _?_(x):_.current=x}}Gs=Gs.nextEffect}}catch(e){if(null===Gs)throw Error(i(330));Dl(Gs,e),Gs=Gs.nextEffect}}while(null!==Gs);Gs=null,Fa(),Ms=a}else e.current=n;if(Qs)Qs=!1,Js=e,Zs=t;else for(Gs=r;null!==Gs;)t=Gs.nextEffect,Gs.nextEffect=null,8&Gs.flags&&((k=Gs).sibling=null,k.stateNode=null),Gs=t;if(0===(r=e.pendingLanes)&&(Ys=null),1===r?e===al?rl++:(rl=0,al=e):rl=0,n=n.stateNode,ka&&"function"==typeof ka.onCommitFiberRoot)try{ka.onCommitFiberRoot(wa,n,void 0,!(64&~n.current.flags))}catch(e){}if(hl(e,Wa()),Xs)throw Xs=!1,e=qs,qs=null,e;return 8&Ms||Ga(),null}function Ll(){for(;null!==Gs;){var e=Gs.alternate;cl||null===ll||(8&Gs.flags?Ze(Gs,ll)&&(cl=!0):13===Gs.tag&&Ps(e,Gs)&&Ze(Gs,ll)&&(cl=!0));var t=Gs.flags;256&t&&hs(e,Gs),!(512&t)||Qs||(Qs=!0,Va(97,function(){return jl(),null})),Gs=Gs.nextEffect}}function jl(){if(90!==Zs){var e=97<Zs?97:Zs;return Zs=90,Ka(e,Rl)}return!1}function Al(e,t){el.push(t,e),Qs||(Qs=!0,Va(97,function(){return jl(),null}))}function Nl(e,t){tl.push(t,e),Qs||(Qs=!0,Va(97,function(){return jl(),null}))}function Rl(){if(null===Js)return!1;var e=Js;if(Js=null,48&Ms)throw Error(i(331));var t=Ms;Ms|=32;var n=tl;tl=[];for(var r=0;r<n.length;r+=2){var a=n[r],o=n[r+1],s=a.destroy;if(a.destroy=void 0,"function"==typeof s)try{s()}catch(e){if(null===o)throw Error(i(330));Dl(o,e)}}for(n=el,el=[],r=0;r<n.length;r+=2){a=n[r],o=n[r+1];try{var l=a.create;a.destroy=l()}catch(e){if(null===o)throw Error(i(330));Dl(o,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Ms=t,Ga(),!0}function Fl(e,t,n){uo(e,t=us(0,t=ss(n,t),1)),t=ul(),null!==(e=fl(e,1))&&(Wt(e,1,t),hl(e,t))}function Dl(e,t){if(3===e.tag)Fl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Fl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ys||!Ys.has(r))){var a=ds(n,e=ss(t,e),1);if(uo(n,a),a=ul(),null!==(n=fl(n,1)))Wt(n,1,a),hl(n,a);else if("function"==typeof r.componentDidCatch&&(null===Ys||!Ys.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Hl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ul(),e.pingedLanes|=e.suspendedLanes&n,Os===e&&(js&n)===n&&(4===Rs||3===Rs&&(62914560&js)===js&&500>Wa()-Us?wl(e,0):zs|=n),hl(e,t)}function Bl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(2&(t=e.mode)?4&t?(0===il&&(il=Ds),0===(t=Bt(62914560&~il))&&(t=4194304)):t=99===Ua()?1:2:t=1),n=ul(),null!==(e=fl(e,t))&&(Wt(e,t,n),hl(e,n))}function zl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Wl(e,t,n,r){return new zl(e,t,n,r)}function Ul(e){return!(!(e=e.prototype)||!e.isReactComponent)}function $l(e,t){var n=e.alternate;return null===n?((n=Wl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Kl(e,t,n,r,a,o){var s=2;if(r=e,"function"==typeof e)Ul(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case _:return Vl(n.children,a,o,t);case R:s=8,a|=16;break;case C:s=8,a|=1;break;case P:return(e=Wl(12,n,t,8|a)).elementType=P,e.type=P,e.lanes=o,e;case M:return(e=Wl(13,n,t,a)).type=M,e.elementType=M,e.lanes=o,e;case O:return(e=Wl(19,n,t,a)).elementType=O,e.lanes=o,e;
vendor: 5,716 bytes, line 2
2case F:return Gl(n,a,o,t);case D:return(e=Wl(24,n,t,a)).elementType=D,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case I:s=10;break e;case E:s=9;break e;case T:s=11;break e;case L:s=14;break e;case j:s=16,r=null;break e;case A:s=22;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Wl(s,n,t,a)).elementType=e,t.type=r,t.lanes=o,t}function Vl(e,t,n,r){return(e=Wl(7,e,r,t)).lanes=n,e}function Gl(e,t,n,r){return(e=Wl(23,e,r,t)).elementType=F,e.lanes=n,e}function Xl(e,t,n){return(e=Wl(6,e,null,t)).lanes=n,e}function ql(e,t,n){return(t=Wl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=zt(0),this.expirationTimes=zt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zt(0),this.mutableSourceEagerHydrationData=null}function Ql(e,t,n,r){var a=t.current,o=ul(),s=dl(a);e:if(n){t:{if(qe(n=n._reactInternals)!==n||1!==n.tag)throw Error(i(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(ma(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(i(171))}if(1===n.tag){var c=n.type;if(ma(c)){n=ba(n,c,l);break e}}n=l}else n=da;return null===t.context?t.context=n:t.pendingContext=n,(t=co(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),uo(a,t),pl(a,s,o),s}function Jl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Zl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function ec(e,t){Zl(e,t),(e=e.alternate)&&Zl(e,t)}function tc(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Yl(e,t,null!=n&&!0===n.hydrate),t=Wl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,so(t),e[Zr]=n.current,Or(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var a=(t=r[e])._getVersion;a=a(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,a]:n.mutableSourceEagerHydrationData.push(t,a)}this._internalRoot=n}function nc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function rc(e,t,n,r,a){var o=n._reactRootContainer;if(o){var i=o._internalRoot;if("function"==typeof a){var s=a;a=function(){var e=Jl(i);s.call(e)}}Ql(t,i,e,a)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new tc(e,0,t?{hydrate:!0}:void 0)}(n,r),i=o._internalRoot,"function"==typeof a){var l=a;a=function(){var e=Jl(i);l.call(e)}}bl(function(){Ql(t,i,e,a)})}return Jl(i)}function ac(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!nc(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Vs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||fa.current)Ri=!0;else{if(!(n&r)){switch(Ri=!1,t.tag){case 3:Vi(t),Go();break;case 5:No(t);break;case 1:ma(t.type)&&xa(t);break;case 4:jo(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var a=t.type._context;ua(Qa,a._currentValue),a._currentValue=r;break;case 13:if(null!==t.memoizedState)return n&t.child.childLanes?Ji(e,t,n):(ua(Fo,1&Fo.current),null!==(t=rs(e,t,n))?t.sibling:null);ua(Fo,1&Fo.current);break;case 19:if(r=!!(n&t.childLanes),64&e.flags){if(r)return ns(e,t,n);t.flags|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),ua(Fo,Fo.current),r)break;return null;case 23:case 24:return t.lanes=0,zi(e,t,n)}return rs(e,t,n)}Ri=!!(16384&e.flags)}else Ri=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=ga(t,pa.current),ao(t,n),a=ii(null,t,r,e,a,n),t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ma(r)){var o=!0;xa(t)}else o=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,so(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&mo(t,r,s,e),a.updater=yo,t.stateNode=a,a._reactInternals=t,So(t,r,e,n),t=Ki(null,t,r,!0,o,n)}else t.tag=0,Fi(null,t,a,n),t=t.child;return t;case 16:a=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=(o=a._init)(a._payload),t.type=a,o=t.tag=function(e){if("function"==typeof e)return Ul(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===L)return 14}return 2}(a),e=Ya(a,e),o){case 0:t=Ui(null,t,a,e,n);break e;case 1:t=$i(null,t,a,e,n);break e;case 11:t=Di(null,t,a,e,n);break e;case 14:t=Hi(null,t,a,Ya(a.type,e),r,n);break e}throw Error(i(306,a,""))}return t;case 0:return r=t.type,a=t.pendingProps,Ui(e,t,r,a=t.elementType===r?a:Ya(r,a),n);case 1:return r=t.type,a=t.pendingProps,$i(e,t,r,a=t.elementType===r?a:Ya(r,a),n);case 3:if(Vi(t),r=t.updateQueue,null===e||null===r)throw Error(i(282));if(r=t.pendingProps,a=null!==(a=t.memoizedState)?a.element:null,lo(e,t),fo(t,r,null,n),(r=t.memoizedState.element)===a)Go(),t=rs(e,t,n
vendor: 4,412 bytes, line 2
2);else{if((o=(a=t.stateNode).hydrate)&&(Bo=Gr(t.stateNode.containerInfo.firstChild),Ho=t,o=zo=!0),o){if(null!=(e=a.mutableSourceEagerHydrationData))for(a=0;a<e.length;a+=2)(o=e[a])._workInProgressVersionPrimary=e[a+1],Xo.push(o);for(n=Io(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Fi(e,t,r,n),Go();t=t.child}return t;case 5:return No(t),null===e&&$o(t),r=t.type,a=t.pendingProps,o=null!==e?e.memoizedProps:null,s=a.children,Ur(r,a)?s=null:null!==o&&Ur(r,o)&&(t.flags|=16),Wi(e,t),Fi(e,t,s,n),t.child;case 6:return null===e&&$o(t),null;case 13:return Ji(e,t,n);case 4:return jo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Po(t,null,r,n):Fi(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,Di(e,t,r,a=t.elementType===r?a:Ya(r,a),n);case 7:return Fi(e,t,t.pendingProps,n),t.child;case 8:case 12:return Fi(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,a=t.pendingProps,s=t.memoizedProps,o=a.value;var l=t.type._context;if(ua(Qa,l._currentValue),l._currentValue=o,null!==s)if(l=s.value,0==(o=cr(l,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(s.children===a.children&&!fa.current){t=rs(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&u.observedBits&o){1===l.tag&&((u=co(-1,n&-n)).tag=2,uo(l,u)),l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),ro(l.return,n),c.lanes|=n;break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Fi(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=(o=t.pendingProps).children,ao(t,n),r=r(a=oo(a,o.unstable_observedBits)),t.flags|=1,Fi(e,t,r,n),t.child;case 14:return o=Ya(a=t.type,t.pendingProps),Hi(e,t,a,o=Ya(a.type,o),r,n);case 15:return Bi(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Ya(r,a),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ma(r)?(e=!0,xa(t)):e=!1,ao(t,n),bo(t,r,a),So(t,r,a,n),Ki(null,t,r,!0,e,n);case 19:return ns(e,t,n);case 23:case 24:return zi(e,t,n)}throw Error(i(156,t.tag))},tc.prototype.render=function(e){Ql(e,this._internalRoot,null,null)},tc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ql(null,e,null,function(){t[Zr]=null})},et=function(e){13===e.tag&&(pl(e,4,ul()),ec(e,4))},tt=function(e){13===e.tag&&(pl(e,67108864,ul()),ec(e,67108864))},nt=function(e){if(13===e.tag){var t=ul(),n=dl(e);pl(e,n,t),ec(e,n)}},rt=function(e,t){return t()},Pe=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=aa(r);if(!a)throw Error(i(90));Q(r),ne(r,a)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&ie(e,!!n.multiple,t,!1)}},Le=vl,je=function(e,t,n,r,a){var o=Ms;Ms|=4;try{return Ka(98,e.bind(null,t,n,r,a))}finally{0===(Ms=o)&&(Ks(),Ga())}},Ae=function(){!(49&Ms)&&(function(){if(null!==nl){var e=nl;nl=null,e.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,hl(e,Wa())})}Ga()}(),jl())},Ne=function(e,t){var n=Ms;Ms|=2;try{return e(t)}finally{0===(Ms=n)&&(Ks(),Ga())}};var oc={Events:[na,ra,aa,Me,Oe,jl,{current:!1}]},ic={findFiberByHostInstance:ta,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},sc={bundleType:ic.bundleType,version:ic.version,rendererPackageName:ic.rendererPackageName,rendererConfig:ic.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:S.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:ic.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var lc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lc.isDisabled&&lc.supportsFiber)try{wa=lc.inject(sc),ka=lc}catch(ge){}}
2t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oc,t.createPortal=ac,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw Error(i(268,Object.keys(e)))}return null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Ms;if(48&n)return e(t);Ms|=1;try{if(e)return Ka(99,e.bind(null,t))}finally{Ms=n,Ga()}},t.hydrate=function(e,t,n){if(!nc(t))throw Error(i(200));return rc(null,e,t,!0,n)},t.render=function(e,t,n){if(!nc(t))throw Error(i(200));return rc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!nc(e))throw Error(i(40));return!!e._reactRootContainer&&(bl(function(){rc(null,null,e,!1,function(){e._reactRootContainer=null,e[Zr]=null})}),!0)},t.unstable_batchedUpdates=vl,t.unstable_createPortal=function(e,t){return ac(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!nc(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return rc(e,t,n,!1,r)},t.version="17.0.2"},3144:(e,t,n)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(7400)},320:(e,t)=>{var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case i:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case m:case g:case l:return e;default:return t}}case a:return t}}}function w(e){return S(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=m,t.Memo=g,t.Portal=a,t.Profiler=s,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return w(e)||S(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return S(e)===c},t.isContextProvider=function(e){return S(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===p},t.isFragment=function(e){return S(e)===o},t.isLazy=function(e){return S(e)===m},t.isMemo=function(e){return S(e)===g},t.isPortal=function(e){return S(e)===a},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===i},t.isSuspense=function(e){return S(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===i||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===b||e.$$typeof===x||e.$$typeof===y)},t.typeOf=S},524:(e,t,n)=>{e.exports=n(320)},3335:(e,t,n)=>{n(1513);var r=n(4041),a=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;a=o("react.element"),t.Fragment=o("react.fragment")}var i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:a,type:e,key:c,ref:u,props:o,_owner:i.current}}t.jsx=c,t.jsxs=c}
vendor: 8,460 bytes, line 2
2,4304:(e,t,n)=>{var r=n(1513),a=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var i=60109,s=60110,l=60112;t.Suspense=60113;var c=60115,u=60116;if("function"==typeof Symbol&&Symbol.for){var d=Symbol.for;a=d("react.element"),o=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),i=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),c=d("react.memo"),u=d("react.lazy")}var p="function"==typeof Symbol&&Symbol.iterator;function f(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(f(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var b=v.prototype=new y;b.constructor=v,r(b,m.prototype),b.isPureReactComponent=!0;var x={current:null},S=Object.prototype.hasOwnProperty,w={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,n){var r,o={},i=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)S.call(t,r)&&!w.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:a,type:e,key:i,ref:s,props:o,_owner:x.current}}function _(e){return"object"==typeof e&&null!==e&&e.$$typeof===a}var C=/\/+/g;function P(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function I(e,t,n,r,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case a:case o:l=!0}}if(l)return i=i(l=e),e=""===r?"."+P(l,0):r,Array.isArray(i)?(n="",null!=e&&(n=e.replace(C,"$&/")+"/"),I(i,t,n,"",function(e){return e})):null!=i&&(_(i)&&(i=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,n+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(C,"$&/")+"/")+e)),t.push(i)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=r+P(s=e[c],c);l+=I(s,t,n,u,i)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=I(s=s.value,t,n,u=r+P(s,c++),i);else if("object"===s)throw t=""+e,Error(f(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function E(e,t,n){if(null==e)return e;var r=[],a=0;return I(e,r,"","",function(e){return t.call(n,e,a++)}),r}function T(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)})}if(1===e._status)return e._result;throw e._result}var M={current:null};function O(){var e=M.current;if(null===e)throw Error(f(321));return e}var L={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:E,forEach:function(e,t,n){E(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return E(e,function(){t++}),t},toArray:function(e){return E(e,function(e){return e})||[]},only:function(e){if(!_(e))throw Error(f(143));return e}},t.Component=m,t.PureComponent=v,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.cloneElement=function(e,t,n){if(null==e)throw Error(f(267,e));var o=r({},e.props),i=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=x.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)S.call(t,u)&&!w.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];o.children=c}return{$$typeof:a,type:e.type,key:i,ref:s,props:o,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return O().useCallback(e,t)},t.useContext=function(e,t){return O().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return O().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return O().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return O().useLayoutEffect(e,t)},t.useMemo=function(e,t){return O().useMemo(e,t)},t.useReducer=function(e,t,n){return O().useReducer(e,t,n)},t.useRef=function(e){return O().useRef(e)},t.useState=function(e){return O().useState(e)},t.version="17.0.2"},4041:(e,t,n)=>{e.exports=n(4304)},1085:(e,t,n)=>{e.exports=n(3335)},2568:(e,t)=>{var n,r,a,o;if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,u=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(d,0),e}};n=function(e){null!==c?setTimeout(n,0,e):(c=e,setTimeout(d,0))},r=function(e,t){u=setTimeout(e,t)},a=function(){clearTimeout(u)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,f=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,m=null,y=-1,v=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):v=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,S=x.port2;x.port1.onmessage=function(){if(null!==m){var e=t.unstable_now();b=e+v;try{m(!0,e)?S.postMessage(null):(g=!1,m=null)}catch(e){throw S.postMessage(null),e}}else g=!1},n=function(e){m=e,g||(g=!0,S.postMessage(null))},r=function(e,n){y=p(function(){e(t.unstable_now())},n)},a=function(){f(y),y=-1}}function w(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,a=e[r];if(!(void 0!==a&&0<C(a,t)))break e;e[r]=t,e[n]=a,n=r}}function k(e){return void 0===(e=e[0])?null:e}function _(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length;r<a;){var o=2*(r+1)-1,i=e[o],s=o+1,l=e[s];if(void 0!==i&&0>C(i,n))void 0!==l&&0>C(l,i)?(e[r]=l,e[s]=n,r=s):(e[r]=i,e[o]=n,r=o);else{if(!(void 0!==l&&0>C(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],I=[],E=1,T=null,M=3,O=!1,L=!1,j=!1;function A(e){for(var t=k(I);null!==t;){if(null===t.callback)_(I);else{if(!(t.startTime<=e))break;
2_(I),t.sortIndex=t.expirationTime,w(P,t)}t=k(I)}}function N(e){if(j=!1,A(e),!L)if(null!==k(P))L=!0,n(R);else{var t=k(I);null!==t&&r(N,t.startTime-e)}}function R(e,n){L=!1,j&&(j=!1,a()),O=!0;var o=M;try{for(A(n),T=k(P);null!==T&&(!(T.expirationTime>n)||e&&!t.unstable_shouldYield());){var i=T.callback;if("function"==typeof i){T.callback=null,M=T.priorityLevel;var s=i(T.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?T.callback=s:T===k(P)&&_(P),A(n)}else _(P);T=k(P)}if(null!==T)var l=!0;else{var c=k(I);null!==c&&r(N,c.startTime-n),l=!1}return l}finally{T=null,M=o,O=!1}}var F=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){L||O||(L=!0,n(R))},t.unstable_getCurrentPriorityLevel=function(){return M},t.unstable_getFirstCallbackNode=function(){return k(P)},t.unstable_next=function(e){switch(M){case 1:case 2:case 3:var t=3;break;default:t=M}var n=M;M=t;try{return e()}finally{M=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=M;M=e;try{return t()}finally{M=n}},t.unstable_scheduleCallback=function(e,o,i){var s=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?s+i:s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:E++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>s?(e.sortIndex=i,w(I,e),null===k(P)&&e===k(I)&&(j?a():j=!0,r(N,i-s))):(e.sortIndex=l,w(P,e),L||O||(L=!0,n(R))),e},t.unstable_wrapCallback=function(e){var t=M;return function(){var n=M;M=t;try{return e.apply(this,arguments)}finally{M=n}}}},7967:(e,t,n)=>{e.exports=n(2568)},4026:(e,t,n)=>{var r=n(4041),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,i=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),a=r[0].inst,u=r[1];return s(function(){a.value=n,a.getSnapshot=t,c(a)&&u({inst:a})},[e,n,t]),i(function(){return c(a)&&u({inst:a}),e(function(){c(a)&&u({inst:a})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},4965:(e,t,n)=>{var r=n(4041),a=n(8139),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=a.useSyncExternalStore,s=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,a){var d=s(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c(function(){function e(e){if(!l){if(l=!0,i=e,e=r(e),void 0!==a&&p.hasValue){var t=p.value;if(a(t,e))return s=t}return s=e}if(t=s,o(i,e))return t;var n=r(e);return void 0!==a&&a(t,n)?t:(i=e,s=n)}var i,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,r,a]);var f=i(e,d[0],d[1]);return l(function(){p.hasValue=!0,p.value=f},[f]),u(f),f}},8139:(e,t,n)=>{e.exports=n(4026)},7121:(e,t,n)=>{e.exports=n(4965)},65:(e,t,n)=>{n.r(t),n.d(t,{create:()=>d,createStore:()=>r.y,default:()=>p,useStore:()=>c});var r=n(3132),a=n(4041),o=n(7121);const{useDebugValue:i}=a,{useSyncExternalStoreWithSelector:s}=o,l=e=>e;function c(e,t=l,n){const r=s(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return i(r),r}const u=e=>{const t="function"==typeof e?(0,r.y)(e):e,n=(e,n)=>c(t,e,n);return Object.assign(n,t),n},d=e=>e?u(e):u;var p=e=>d(e)},1693:(e,t,n)=>{n.r(t),n.d(t,{combine:()=>c,createJSONStorage:()=>u,devtools:()=>i,persist:()=>p,redux:()=>r,subscribeWithSelector:()=>l});const r=(e,t)=>(n,r,a)=>(a.dispatch=t=>(n(n=>e(n,t),!1,t),t),a.dispatchFromDevtools=!0,{dispatch:(...e)=>a.dispatch(...e),...t}),a=new Map,o=e=>{const t=a.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([e,t])=>[e,t.getState()])):{}},i=(e,t={})=>(n,r,i)=>{const{enabled:l,anonymousActionType:c,store:u,...d}=t;let p;try{p=null!=l&&l&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(e){}if(!p)return e(n,r,i);const{connection:f,...h}=((e,t,n)=>{if(void 0===e)return{type:"untracked",connection:t.connect(n)};const r=a.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return a.set(n.name,o),{type:"tracked",store:e,...o}})(u,p,d);let g=!0;i.setState=(e,t,a)=>{const s=n(e,t);if(!g)return s;const l=void 0===a?{type:c||"anonymous"}:"string"==typeof a?{type:a}:a;return void 0===u?(null==f||f.send(l,r()),s):(null==f||f.send({...l,type:`${u}/${l.type}`}
2,{...o(d.name),[u]:i.getState()}),s)};const m=(...e)=>{const t=g;g=!1,n(...e),g=t},y=e(i.setState,r,i);if("untracked"===h.type?null==f||f.init(y):(h.stores[h.store]=i,null==f||f.init(Object.fromEntries(Object.entries(h.stores).map(([e,t])=>[e,e===h.store?y:t.getState()])))),i.dispatchFromDevtools&&"function"==typeof i.dispatch){const e=i.dispatch;i.dispatch=(...t)=>{e(...t)}}return f.subscribe(e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):s(e.payload,e=>{if("__setState"!==e.type)i.dispatchFromDevtools&&"function"==typeof i.dispatch&&i.dispatch(e);else{if(void 0===u)return void m(e.state);1!==Object.keys(e.state).length&&console.error('\n                    [zustand devtools middleware] Unsupported __setState action format. \n                    When using \'store\' option in devtools(), the \'state\' should have only one key, which is a value of \'store\' that was passed in devtools(),\n                    and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }\n                    ');const t=e.state[u];
2if(null==t)return;JSON.stringify(i.getState())!==JSON.stringify(t)&&m(t)}});case"DISPATCH":switch(e.payload.type){case"RESET":return m(y),void 0===u?null==f?void 0:f.init(i.getState()):null==f?void 0:f.init(o(d.name));case"COMMIT":return void 0===u?void(null==f||f.init(i.getState())):null==f?void 0:f.init(o(d.name));case"ROLLBACK":return s(e.state,e=>{if(void 0===u)return m(e),void(null==f||f.init(i.getState()));m(e[u]),null==f||f.init(o(d.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return s(e.state,e=>{void 0!==u?JSON.stringify(i.getState())!==JSON.stringify(e[u])&&m(e[u]):m(e)});case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return m(void 0===u?r:r[u]),void(null==f||f.send(null,n))}case"PAUSE_RECORDING":return g=!g}return}}),y},s=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==n&&t(n)},l=e=>(t,n,r)=>{const a=r.subscribe;return r.subscribe=(e,t,n)=>{let o=e;if(t){const a=(null==n?void 0:n.equalityFn)||Object.is;let i=e(r.getState());o=n=>{const r=e(n);if(!a(i,r)){const e=i;t(i=r,e)}},(null==n?void 0:n.fireImmediately)&&t(i,i)}return a(o)},e(t,n,r)},c=(e,t)=>(...n)=>Object.assign({},e,t(...n));function u(e,t){let n;try{n=e()}catch(e){return}return{getItem:e=>{var r;const a=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),o=null!=(r=n.getItem(e))?r:null;return o instanceof Promise?o.then(a):a(o)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,null==t?void 0:t.replacer)),removeItem:e=>n.removeItem(e)}}const d=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>d(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>d(t)(e)}}},p=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((e,t)=>(n,r,a)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},i=!1;const s=new Set,l=new Set;let c;try{c=o.getStorage()}catch(e){}if(!c)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...e)},r,a);const u=d(o.serialize),p=()=>{const e=o.partialize({...r()});let t;const n=u({state:e,version:o.version}).then(e=>c.setItem(o.name,e)).catch(e=>{t=e});if(t)throw t;return n},f=a.setState;a.setState=(e,t)=>{f(e,t),p()};const h=e((...e)=>{n(...e),p()},r,a);let g;const m=()=>{var e;if(!c)return;i=!1,s.forEach(e=>e(r()));const t=(null==(e=o.onRehydrateStorage)?void 0:e.call(o,r()))||void 0;return d(c.getItem.bind(c))(o.name).then(e=>{if(e)return o.deserialize(e)}).then(e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return e.state;if(o.migrate)return o.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return g=o.merge(e,null!=(t=r())?t:h),n(g,!0),p()}).then(()=>{null==t||t(g,void 0),i=!0,l.forEach(e=>e(g))}).catch(e=>{null==t||t(void 0,e)})};return a.persist={setOptions:e=>{o={...o,...e},e.getStorage&&(c=e.getStorage())},clearStorage:()=>{null==c||c.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>m(),hasHydrated:()=>i,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},m(),g||h})(e,t):((e,t)=>(n,r,a)=>{let o={storage:u(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},i=!1;const s=new Set,l=new Set;let c=o.storage;if(!c)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...e)},r,a);const p=()=>{const e=o.partialize({...r()});return c.setItem(o.name,{state:e,version:o.version})},f=a.setState;a.setState=(e,t)=>{f(e,t),p()};const h=e((...e)=>{n(...e),p()},r,a);let g;a.getInitialState=()=>h;const m=()=>{var e,t;if(!c)return;i=!1,s.forEach(e=>{var t;return e(null!=(t=r())?t:h)});const a=(null==(t=o.onRehydrateStorage)?void 0:t.call(o,null!=(e=r())?e:h))||void 0;return d(c.getItem.bind(c))(o.name).then(e=>
2{if(e){if("number"!=typeof e.version||e.version===o.version)return[!1,e.state];if(o.migrate)return[!0,o.migrate(e.state,e.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;const[a,i]=e;if(g=o.merge(i,null!=(t=r())?t:h),n(g,!0),a)return p()}).then(()=>{null==a||a(g,void 0),g=r(),i=!0,l.forEach(e=>e(g))}).catch(e=>{null==a||a(void 0,e)})};return a.persist={setOptions:e=>{o={...o,...e},e.storage&&(c=e.storage)},clearStorage:()=>{null==c||c.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>m(),hasHydrated:()=>i,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},o.skipHydration||m(),g||h})(e,t)},9814:(e,t,n)=>{var r=n(1573),a=n(3102);async function o(e){if(!e)throw new Error("Fetch Data: Invalid URL provided");let t=await fetch(e);if(!t.ok)throw new Error(`Fetch Data: HTTP status ${t.status}`);return await t.json()}function i(){return"live"!==r.TVXCONFIG().appMode&&"liveplusmd"!==r.TVXCONFIG().appMode?r.TVXCONFIG().urlRestApiReplay():r.TVXCONFIG().urlRestApi}var s,l,c=((s=c||{})[s.LEAGUE=0]="LEAGUE",s[s.TOURNAMENT_LEAGUE=1]="TOURNAMENT_LEAGUE",s[s.TOURNAMENT_KNOCK_OUT=2]="TOURNAMENT_KNOCK_OUT",s[s.RELEGATION=3]="RELEGATION",s[s.SINGLE_MATCH=4]="SINGLE_MATCH",s[s.NONE=5]="NONE",s),u=((l=u||{})[l.goals=0]="goals",l[l.own_goals=1]="own_goals",l[l.shots_at_goal_per_match=2]="shots_at_goal_per_match",l[l.assists=3]="assists",l[l.goalkeeper_saves_per_match=4]="goalkeeper_saves_per_match",l[l.touches=5]="touches",l[l.tacklings_ratio=6]="tacklings_ratio",l[l.challenges_won=7]="challenges_won",l[l.fouls=8]="fouls",l[l.passes_ratio=9]="passes_ratio",l[l.passes_completed=10]="passes_completed",l[l.distance_covered_per_match=11]="distance_covered_per_match",l[l.sprints=12]="sprints",l[l.top_speed=13]="top_speed",l[l.shots_at_goal=14]="shots_at_goal",l[l.goalkeeper_saves=15]="goalkeeper_saves",l);t.is=e=>e.map(e=>({competitionId:e.competition_id,competitionName:e.competition_name,competitionLogo:e.logo_url})),t.z6=async function(e){try{return await o(`${i()}/club/${e}`)}catch(e){throw a.Debugger.console(2,"[API Service] Error fetching club data:","red"),e}},t.xX=async function(){try{return await o(`${i()}/competition/competitions`)}catch(e){throw a.Debugger.console(2,"[API Service] Error fetching competitions:","red"),e}},t.FG=async function(e,t){try{let n=t?`${i()}/configData/${e}/${t}`:`${i()}/configData/${e}`;return await o(n)}catch(e){throw a.Debugger.console(2,"[API Service] Error fetching config data:","red"),e}},t.i=async()=>{try{let{takerId:e,urlFeatures:t}=r.TVXCONFIG(),n=await o(`${t}/${e}/features.json`);return r.convertKeysToCamelCase(n)}catch(e){throw a.Debugger.console(2,`[API Service] Error fetching features: ${e}`,"red"),e}},t.iZ=async function(e){try{return await o(`${i()}/matchInformation/${e}?extendedPositions=true`)}catch(e){throw a.Debugger.console(2,"[API Service] Error fetching match information:","red"),e}},t.iV=async function(e,t){try{let n=t?`${i()}/player/${e}/${t}`:`${i()}/player/${e}`;return await o(n)}catch(e){throw a.Debugger.console(2,"[API Service] Error fetching player data:","red"),e}},t.Oo=async function(e,t,n){try{return await o(`${i()}/playerMatchStatistics/${e}/${t}/${n}`)}catch(e){throw a.Debugger.console(2,"[API Service] Error fetching player match statistics:","red"),e}},t.U3=async function(e,t){try{return await o(`${i()}/playerMatchStatistics/${e}/${t}`)}catch(e){throw a.Debugger.console(2,"[API Service] Error fetching team player match statistics:","red"),e}},t.ug=async function(e,t){try{let n=t?`${i()}/seasonStatistics/${e}/${t}`:`${i()}/seasonStatistics/${e}`;return await o(n)}catch(e){throw a.Debugger.console(2,"[API Service] Error fetching player season statistics:","red"),e}},t.Gm=async function(e,t,n){try{let r=n?`${i()}/rankings/${e}/${t}/${n}`:`${i()}/rankings/${e}/${t}`;return await o(r)}catch(e){throw a.Debugger.console(2,"[API Service] Error fetching rankings:","red"),e}},t.jK=async function(e,t){try{let n=t?`${i()}/rankingsAll/${e}/${t}`:`${i()}/rankingsAll/${e}`;return await o(n)}catch(e){throw a.Debugger.console(2,"[API Service] Error fetching all rankings:","red"),e}},t.GK=async function(e,t){try{let n=t?`${i()}/syncData/${e}/${t}`:`${i()}/syncData/${e}`;return await o(n)}catch(e){throw a.Debugger.console(2,"[API Service] Error fetching sync data:","red"),e}},t.VI=async function(e){try{let t=e?`${i()}/table/${e}`:`${i()}/table`;return await o(t)}catch(e){throw a.Debugger.console(2,"[API Service] Error fetching table data:","red"),e}},t.C0=async function(e){try{return await o(`${i()}/teamMatchStatistics/${e}`)}catch(e){throw a.Debugger.console(2,"[API Service] Error fetching team match statistics:","red"),e}},t.pG=async function(e){try{let t=e?`${i()}/tournamentStandings/${e}`:`${i()}/tournamentStandings`;return await o(t)}catch(e){throw a.Debugger.console(2,"[API Service] Error fetching tournament standings:","red"),e}}},1573:(e,t,n)=>{var r=n(65),a=n(1693),o=e=>{},i=(e,t=window.location.href)=>{e=e.replace(/[\[\]]/g,"\\$&");let n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);
2return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},s=()=>{let e=Object.keys(c),t={};return e.forEach(e=>{let n=c[e];if("function"==typeof n||"object"==typeof n&&null!==n&&!Array.isArray(n))return;let r=[e,e.toLowerCase(),e.replace(/([A-Z])/g,"_$1").toLowerCase().replace(/^_/,"")];for(let a of r){let r=i(a);if(null!==r&&""!==r){let a=l(r,n,e);if(null!==a){t[e]=a,o();break}}}}),Object.entries({matchday:"matchDayReplay",langui:"languageUIDefault"}).forEach(([e,n])=>{let r=i(e);if(null!==r&&""!==r){let e=l(r,c[n]);null!==e&&(t[n]=e)}}),Object.keys(t).length>0?t:null};function l(e,t,n){if("matchDayReplay"===n){if(e.includes("/")||e.includes("ts"))return e;let t=Number(e);return isNaN(t)?e:t}if("boolean"==typeof t){let t=e.toLowerCase();return"true"===t||"1"===t||"false"!==t&&"0"!==t&&null}if("number"==typeof t){let t=Number(e);return isNaN(t)?null:t}if(Array.isArray(t))try{let t=JSON.parse(e);return Array.isArray(t)?t:null}catch{return null}return e}var c={appVersion:"2.6.13",takerId:"1",appMode:"live",sdkMode:"default",uiStyle:"tvx",usePip:!0,pipiFrameSettings:{name:"tvx-pip",src:"./pip_embedded_video.html",width:"100%",height:"100%",loading:"eager",allow:"autoplay; encrypted-media; accelerometer; gyroscope;",sandbox:""},debugger:!1,videoControlsSkipButtons:!0,skipForward:30,skipBackwards:30,singleMatchMode:!1,highlightBrowser:!0,showVideoTime:!1,showHighlightCountdown:!1,showScreenSize:!1,showOnboarding:!0,showReliveEntryDialog:!0,showGoLive:!0,showEvents:!0,showTimeline:!0,showVideoControls:!0,showExitButton:!1,showRecordButton:!1,showBackButton:!1,showTurnDevice:!0,urlRestApi:"https://cloudfront.cloud.tvxray.com",urlRestApiReplay:function(){return`https://rest.${this.takerId}.cloud.tvxray.com`},urlWebsocket:"wss://websocket.cloud.tvxray.com",urlWebsocketReplay:function(){return`wss://websocket.${this.takerId}.cloud.tvxray.com`},urlFeatures:"https://asset-cdn.cloud.tvxray.com/static/takerConfigs",urlImagesIcons:"https://sdk-cdn.cloud.tvxray.com/web/icons",urlLocalization:"https://tvxray-cdn.s3.eu-central-1.amazonaws.com/static/localization",trackingUrl:"https://teravolt.matomo.cloud/matomo.php",trackingIdSite:"3",trackingIdSiteStaging:"4",trackingPageUrl:"",matchDayReplay:27,wrapperId:"tvx-wrapper",videoPlayerId:"tvx-player",trackingEnabled:!0,languagesUI:["EN","DE"],languageUIDefault:"EN",overlayAutoHideInMilliseconds:5e3,currentMatchAlertCountdownTime:5e3,defaultCountdownDuration:5e3,matchAlertHoldDuration:5e3,eventsForcedDelay:10,expectedTotalDuration:2e4,menuAlerts:!0,menuMatches:!0,menuStatistics:!0,menuEntryMatchStatistics:!0,menuEntryLineups:!0,menuEntryLineupsAverage:!0,menuEntryLineupsBench:!0,menuEntryLiveTable:!0,menuEntryLiveRankings:!0,menuEntryLiveRankingsEntries:{assists:!1,challengesWon:!0,challengesWonAbsolute:!0,distanceCoveredPerMatch:!0,fouls:!0,goalkeeperSavesPerMatch:!1,goals:!1,passesCompleted:!0,shotAtGoalPerMatch:!1,sprints:!0,topSpeed:!0,touches:!0},menuEntrySeasonRankings:!0,menuEntrySeasonRankingsEntries:{assists:!0,distanceCoveredPerMatch:!0,fouls:!0,goalkeeperSaves:!0,goalkeeperSavesPerMatch:!1,goals:!0,ownGoals:!0,passesRatio:!0,shotAtGoalPerMatch:!0,sprints:!0,tacklingsRatio:!0,topSpeed:!0,touches:!0,shotsAtGoal:!0,shotsAtGoalPerMatch:!0},menuEntryGroupTable:!0,menuEntryKoTree:!0,menuPlayerProfile:!0,menuPlayerProfileEntries:{liveStats:{statsEnabled:!0,assists:!0,challengesWon:!0,challengesWonAbsolute:!0,distanceCovered:!0,fouls:!0,goalkeeperSaves:!0,goals:!0,shotAssists:!0,shots:!0,shotsOnTarget:!0,successfulPasses:!0,topSpeed:!0,touches:!0,xGoals:!0},seasonStats:{statsEnabled:!0,assists:!0,cards:!0,cleanSheets:!0,goals:!0,goalsConceded:!0,matchesPlayed:!0,savePercentage:!0,xGoals:!1}},videoControlsPlayPause:!0,videoControlsFullscreen:!0,enableVolumeControl:!0,videoControlsVolumeMuted:!1,videoControlsVolumeSlider:!0,videoControlsScreencast:!1,videoControlsAirplay:!1,useTimeParamsInfo:!1,useVideoTimeUnix:!1,useVideoTimeSeconds:!1,getTimeParamsInfo:function(){return{rangeEndInUTC:0,rangeStartInUTC:0}},getVideoTimeUnix:function(){return{videoRangeStart:0,videoRangeEnd:0}},getVideoTimeSeconds:function(){return{videoCurrentTime:0,videoEndTime:0}},moreMenu:!0,moreMenuEntries:{moreMenuAudioSettings:!0,moreMenuAudioSettingsOptions:["English","German"],moreMenuAudioSettingsDefault:0,moreMenuVideoSettings:!0,moreMenuVideoSettingsOptions:["720p","540p","360p","270p","144p","auto"],moreMenuVideoSettingsDefault:0,moreMenuOnboarding:!0,moreMenuSpoilers:!0,moreMenuTimelineEvents:!0},invokeMethods:[],canMatchBeChanged:!1,websocketService:{reconnectInterval:1e4,reconnectAttempts:30},syncTimeUpdater:{updateMinutes:3,updateInterval:6e4},alertPreset1:{goals:!0,penalties:!0,bigChance:!1,shotOnGoal:!1,totalShots:!1,var:!1,dismissals:!0},alertPreset2:{goals:!0,penalties:!0,bigChance:!0,shotOnGoal:!0,totalShots:!0,var:!0,dismissals:!0},alertPresetCustom:{goals:!1,penalties:!1,bigChance:!1,shotOnGoal:!1,totalShots:!1,var:!1,dismissals:!1},alertsSaveSettings:"none",defaultPhaseLengthSeconds:{pre:600,firstHalf:3e3,halfTime:900,secondHalf:3e3,post:900,extraFirstHalf:900,extraHalfTime:300,extraSecondHalf:900,prePenaltyShootout:300,penaltyShootout:600,postRegular:900},browsers:{chrome:!0,firefox:!1,safari:!1},matchAvailableBeforeKickOff:-1800,matchAvailableAfterKickOff:10800,dynamicDelays:!0,restPollingIntervals:{lineups:2e4,liveTable:2e4,matchInformation:2e4,matchStatistics:2e4,playerStatistics:2e4},spatialNavigation:{enabled:!0,debug:!1,visualDebug:!1,useEventHandlers:!0,throttle:0}},u={config:c},d=r.create()(a.devtools(e=>({...u,setConfigStore:t=>{e({config:t},!1,"setConfig")},reset:()=>{e({...u},!1,"reset")}}),{name:"CONFIG STORE"}));function p(e){return e.replace(/_([a-z])/g,(e,t)=>t.toUpperCase())}t.TVXCONFIG=()=>{let{config:e}=d.getState();return e},t.TVXCONFIGdefault=c,t.convertKeysToCamelCase=function e(t){if(null===t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(e);let n={};for(let[r,a]of Object.entries(t))n[p(r)]=e(a);return n},t.deepMergeConfig=function e(t,n,r){if(null===t||"object"!=typeof t)return t;if(Array.isArray(t))return void 0!==r?r:void 0!==n?n:t;let a={},o=new Set([...Object.keys(t||{}),...Object.keys(n||{}),...Object.keys(r||{})]);for(let i of o){let o=t?.[i],s=n?.[i],l=r?.[i];"boolean"!=typeof s||!1!==s?"object"!=typeof o||null===o||Array.isArray(o)?a[i]=void 0!==l?"boolean"==typeof s&&!0===s||void 0===s||"boolean"!=typeof s?l:o:void 0!==s?s:o:a[i]=e(o,s,l):a[i]=!1}return a},t.getQueryOptions=s,t.setConfig=async function(e){window.tvx.config=e;let t=s();t&&(window.tvx.config={...e,...t})},t.useConfigStore=d},2569:(e,t,n)=>{var r=n(3102),a=class e{static{this.tvxRoot=null}static setTvxRoot(e){this.tvxRoot=e}static clearTvxRoot(){this.tvxRoot=null}static getTvxRoot(){if(this.tvxRoot)return this.tvxRoot;if(typeof window>"u"||void 0===document)return r.Debugger.console(2,"[EventService] Try to get TVX Root element in not a browser environment"),null;let e=document.getElementById("tvx-root");return e?e instanceof HTMLElement?e:(r.Debugger.console(2,"[EventService] TVX Root element is not an HTMLElement"),null):(r.Debugger.console(2,"[EventService] TVX Root element not found"),null)}static createCustomEvent(e,t){return new CustomEvent(e,{detail:t})}static trigger(t,n){let r=this.getTvxRoot();if(!r)return;let a=e.createCustomEvent(t,n);r.dispatchEvent(a)}static on(e,t){let n=this.getTvxRoot();n&&n.addEventListener(e,t)}static off(e,t){let n=this.getTvxRoot();n&&n.removeEventListener(e,t)}};t.U=a},6808:(e,t,n)=>{var r=n(5428),a=n(4041),o=n(3144),i=n(1085),s={XS:.6400000000000001,SM:.8,MD:1,LG:1.2,XL:1.44};function l(e){return e>=1441?s.XL:e>=851?s.LG:e>=475?s.MD:e>=320?s.SM:s.XS}function c(e){return e>=1441?"XL":e>=851?"LG":e>=475?"MD":e>=320?"SM":"XS"}var u=e=>{let t={ard:'"TheSans C5s", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',whitelabel:'Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'};return t[e]??t.whitelabel},d={width:0,height:0,breakpointRatio:1,breakpoint:"SM"},p=a.createContext(null),f=()=>{let e=a.useContext(p),[t,n]=a.useState(e?e.getSnapshot():d);return a.useLayoutEffect(()=>{if(e)return n(e.getSnapshot()),e.subscribe(()=>n(e.getSnapshot()));n(d)},[e]),t},h={"--colorBlackHigh":"rgba(0, 0, 0, 1)","--colorBlackMedium":"rgba(0, 0, 0, 0.4)","--colorBlackLow":"rgba(0, 0, 0, 0.2)","--colorWhiteHigh":"rgba(255, 255, 255, 1)","--colorWhiteMedium":"rgba(255, 255, 255, 0.8)","--colorWhiteLow":"rgba(255, 255, 255, 0.5)","--colorPrimaryHigh":"rgba(255, 199, 0, 1)","--colorPrimaryMedium":"rgba(255, 199, 0, 0.9)","--colorPrimaryLow":"rgba(255, 199, 0, 0.7)","--colorSecondaryHigh":"rgba(0, 40, 61, 1)","--colorSecondaryMedium":"rgba(0, 40, 61, 0.8)","--colorSecondaryLow":"rgba(0, 40, 61, 0.7)","--colorTertiaryHigh":"rgba(0, 32, 48, 1)","--colorTertiaryMedium":"rgba(0, 32, 48, 0.9)","--colorTertiaryMediumRGBA":"rgba(0, 32, 48, 0)","--colorTertiaryLow":"rgba(0, 32, 48, 0.85)","--colorBackgroun
2dHigh":"rgba(7, 7, 8, 1)","--colorBackgroundMedium":"rgba(7, 7, 8, 0.9)","--colorBackgroundLow":"rgba(7, 7, 8, 0.7)","--colorLightHigh":"rgba(237, 237, 237, 1)","--colorLightMedium":"rgba(237, 237, 237, 0.8)","--colorLightLow":"rgba(237, 237, 237, 0.7)","--colorMatchScoreText":"rgba(0, 0, 0, 1)","--colorMatchMenuScoreText":"rgba(0, 0, 0, 1)","--textOnBackground":"rgba(235, 235, 235, 1)","--textOnBackgroundMedium":"rgba(235, 235, 235, 0.8)","--textOnBackgroundDisabled":"rgba(235, 235, 235, 0.5)","--textOnSurface":"rgba(235, 235, 235, 1)","--textOnSurfaceMedium":"rgba(235, 235, 235, 0.8)","--textOnSurfaceDisabled":"rgba(235, 235, 235, 0.5)","--textOnPrimaryHigh":"rgba(235, 235, 235, 1)","--textOnPrimaryMedium":"rgba(235, 235, 235, 0.8)","--textOnPrimaryDisabled":"rgba(235, 235, 235, 0.5)","--textOnSecondaryHigh":"rgba(255, 255, 255, 1)","--textOnSecondaryMedium":"rgba(255, 255, 255, 0.8)","--textOnSecondaryLow":"rgba(255, 255, 255, 0.5)","--textOnSecondaryDark":"rgba(32, 32, 32, 1)","--textInverse":"rgba(36, 36, 36, 1)","--textInverseMedium":"rgba(36, 36, 36, 0.8)","--textInverseDisabled":"rgba(36, 36, 36, 0.6)","--colorTrendUp":"#3EA505","--colorTrendDown":"#FA2001","--colorTrendNone":"rgba(0, 0, 0, 0.4)"},g={whitelabel:{dark:h,light:h},ard:{dark:{"--colorBlackHigh":"rgb(10, 20, 41)","--colorBlackMedium":"rgba(10, 20, 41, 0.5)","--colorBlackLow":"rgba(10, 20, 41, 0.2)","--colorWhiteHigh":"rgb(255, 255, 255)","--colorWhiteMedium":"rgba(255, 255, 255, 0.8)","--colorWhiteLow":"rgba(255, 255, 255, 0.2)","--colorPrimaryHigh":"rgb(102, 153, 255)","--colorPrimaryMedium":"rgba(102, 153, 255, 0.5)","--colorPrimaryLow":"rgba(102, 153, 255, 0.2)","--colorSecondaryHigh":"rgb(0, 30, 80)","--colorSecondaryMedium":"rgba(0, 30, 80, 0.9)","--colorSecondaryLow":"rgba(0, 30, 80, 0.4)","--colorTertiaryHigh":"rgb(10, 20, 41)","--colorTertiaryMedium":"rgb(10, 20, 41)","--colorTertiaryMediumRGBA":"rgba(10, 20, 41, 0)","--colorTertiaryLow":"rgba(10, 20, 41, 0.2)","--colorBackgroundHigh":"rgba(7, 7, 8, 1)","--colorBackgroundMedium":"rgba(7, 7, 8, 0.9)","--colorBackgroundLow":"rgba(7, 7, 8, 0.7)","--colorLightHigh":"rgba(237, 237, 237, 1)","--colorLightMedium":"rgba(237, 237, 237, 0.8)","--colorLightLow":"rgba(237, 237, 237, 0.7)","--colorMatchScoreText":"#000000","--colorMatchMenuScoreText":"#000000","--textOnBackground":"#FFFFFF","--textOnBackgroundMedium":"rgba(255, 255, 255, 0.5)","--textOnBackgroundDisabled":"rgba(255, 255, 255, 0.2)","--textOnSurface":"#FFFFFF","--textOnSurfaceMedium":"rgba(255, 255, 255, 0.5)","--textOnSurfaceDisabled":"rgba(255, 255, 255, 0.2)","--textOnPrimaryHigh":"rgba(10, 20, 41)","--textOnPrimaryMedium":"rgba(10, 20, 41, 0.5)","--textOnPrimaryDisabled":"rgba(10, 20, 41, 0.2)","--textOnSecondaryHigh":"rgba(255, 255, 255)","--textOnSecondaryMedium":"rgba(255, 255, 255, 0.8)","--textOnSecondaryLow":"rgba(255, 255, 255, 0.2)","--textOnSecondaryDark":"#000000","--textInverse":"#000000","--textInverseMedium":"rgba(0, 0, 0, 0.8)","--textInverseDisabled":"rgba(0, 0, 0, 0.6)","--colorTrendUp":"#3EA505","--colorTrendDown":"#FA2001","--colorTrendNone":"rgba(0, 0, 0, 0.4)"},light:{"--colorBlackHigh":"rgb(0, 0, 0)","--colorBlackMedium":"rgba(0, 0, 0, 0.5)","--colorBlackLow":"rgba(0, 0, 0, 0.2)","--colorWhiteHigh":"rgb(255, 255, 255)","--colorWhiteMedium":"rgba(255, 255, 255, 0.5)","--colorWhiteLow":"rgba(255, 255, 255, 0.2)","--colorPrimaryHigh":"rgb(102, 153, 255)","--colorPrimaryMedium":"rgba(102, 153, 255, 0.5)","--colorPrimaryLow":"rgba(102, 153, 255, 0.2)","--colorSecondaryHigh":"rgb(0, 52, 128)","--colorSecondaryMedium":"rgba(0, 52, 128, 0.9)","--colorSecondaryLow":"rgba(0, 52, 128, 0.9)","--colorTertiaryHigh":"rgb(10, 20, 41)","--colorTertiaryMedium":"rgb(10, 20, 41)","--colorTertiaryMediumRGBA":"rgba(10, 20, 41, 0)","--colorTertiaryLow":"rgba(10, 20, 41, 0.2)","--colorBackgroundHigh":"rgba(7, 7, 8, 1)","--colorBackgroundMedium":"rgba(7, 7, 8, 0.9)","--colorBackgroundLow":"rgba(7, 7, 8, 0.7)","--colorLightHigh":"rgba(237, 237, 237, 1)","--colorLightMedium":"rgba(237, 237, 237, 0.8)","--colorLightLow":"rgba(237, 237, 237, 0.7)","--colorMatchScoreText":"#000000","--colorMatchMenuScoreText":"#000000","--textOnBackgroun
2d":"#FFFFFF","--textOnBackgroundMedium":"rgba(255, 255, 255, 0.5)","--textOnBackgroundDisabled":"rgba(255, 255, 255, 0.2)","--textOnSurface":"#FFFFFF","--textOnSurfaceMedium":"rgba(255, 255, 255, 0.5)","--textOnSurfaceDisabled":"rgba(255, 255, 255, 0.2)","--textOnPrimaryHigh":"rgba(10, 20, 41)","--textOnPrimaryMedium":"rgba(10, 20, 41, 0.5)","--textOnPrimaryDisabled":"rgba(10, 20, 41, 0.2)","--textOnSecondaryHigh":"rgba(255, 255, 255)","--textOnSecondaryMedium":"rgba(255, 255, 255, 0.8)","--textOnSecondaryLow":"rgba(255, 255, 255, 0.2)","--textOnSecondaryDark":"#000000","--textInverse":"#000000","--textInverseMedium":"rgba(0, 0, 0, 0.8)","--textInverseDisabled":"rgba(0, 0, 0, 0.6)","--colorTrendUp":"#3EA505","--colorTrendDown":"#FA2001","--colorTrendNone":"rgba(0, 0, 0, 0.4)"}}},m=(e,t)=>((e,t)=>g[e]?.[t]??h)(e,t),y={ard:e=>({"--borderRadius":"0","--selectedMenuButtonBorderHeight":3*e+"px","--statisticsItemHeaderTextTransform":"none"})},v=(e,t)=>a.useMemo(()=>{let n=s[t],r=(e=>({"--px1":1*e+"px","--px2":2*e+"px","--px3":3*e+"px","--px4":4*e+"px","--px5":5*e+"px","--px6":6*e+"px","--px7":7*e+"px","--px8":8*e+"px","--px9":9*e+"px","--px10":10*e+"px","--px12":12*e+"px","--px14":14*e+"px","--px15":15*e+"px","--px16":16*e+"px","--px18":18*e+"px","--px20":20*e+"px","--px24":24*e+"px","--px25":25*e+"px","--px30":30*e+"px","--px32":32*e+"px","--px35":35*e+"px","--px40":40*e+"px","--px47":47*e+"px","--fontSizeBodySmall":11*e+"px","--fontSizeBody":12*e+"px","--fontSizeSubheading":14*e+"px","--fontSizeTitleMedium":16*e+"px","--fontSizeLarge":20*e+"px","--fontWeightLight":"250","--fontWeightRegular":"400","--fontWeightMedium":"500","--fontWeightSemibold":"600","--fontWeightBold":"700","--fontWeightExtraBold":"800","--marginSmall":2*e+"px","--marginMedium":4*e+"px","--marginLarge":6*e+"px","--marginLarger":8*e+"px","--marginLargest":12*e+"px","--paddingSmall":2*e+"px","--paddingMedium":4*e+"px","--paddingLarge":6*e+"px","--paddingLarger":8*e+"px","--paddingLargest":12*e+"px","--videoPlayerPadding":20*e+"px","--clubLogoSize":35*e+"px","--clubLogoSizeIntrinsic":33*e+"px","--animatedProgressIndicatorHeight":3*e+"px","--widthMedium":15*e+"px","--heightMedium":20*e+"px","--defaultCheckboxWidth":14*e+"px","--defaultCheckboxHeight":14*e+"px","--defaultAlertButtonWidth":18*e+"px","--defaultAlertButtonHeight":18*e+"px","--defaultRadiobuttonWidth":20*e+"px","--defaultRadiobuttonHeight":20*e+"px","--defaultSettingsButtonWidth":24*e+"px","--defaultSettingsButtonHeight":24*e+"px","--controlsButton":50*e+"px","--controlsButtonImage":50*e+"px","--goLiveIconHeight":24*e+"px","--turnGetInteractiveIconSize":30*e+"px","--turnGetInteractiveOffsetTop":21*e+"px","--turnGetInteractiveOffsetRight":24*e+"px","--turnGetInteractivePaddingHorizontal":13*e+"px","--fontSizeTurnGetInteractive":18*e+"px","--goLiveLabelHeight":12*e+"px","--goLiveLabelBorderRadius":3*e+"px","--goLiveDot":8*e+"px","--alertSettingsWidth":499*e+"px","--alertSettingsHeight":311*e+"px","--alertSettingsLabelPadding":"0 0 0 "+13*e+"px","--AlertSettingsPresetRowWithMargin":46*e+"px","--borderRadius":4*e+"px","--emptyMessageContainerHeight":284*e+"px","--menuButtonWidth":48*e+"px","--menuButtonHeight":48*e+"px","--menuButtonWidthLarger":65*e+"px","--menuButtonHeightLarger":61*e+"px","--menuButtonIconSize":26*e+"px","--menuButtonIconAlertsHeight":22*e+"px","--menuButtonIconMatchesHeight":22*e+"px","--menuButtonIconStatisticsHeight":24*e+"px","--menuButtonIconBackWidth":10.6*e+"px","--menuButtonIconBackHeight":18*e+"px","--expandedMenuButtonWidth":108*e+"px","--selectedMenuButtonBorderHeight":2*e+"px","--menuWidth":222*e+"px","--benchRevealHeight":50*e+"px","--matchStatusContainerHeight":22*e+"px","--matchDayContainerHeight":22*e+"px","--matchStatisticsWidth":212*e+"px","--matchStatisticsCollapsibleHeaderDefaultHeight":67*e+"px","--matchStatisticsCollapsibleHeaderCollapsedHeight":28*e+"px","--matchStatisticsItemTitleBoxHeight":28*e+"px","--statisticsItemHeaderTextTransform":"uppercase","--matchStatisticsItemValueBoxHeight":48*e+"px","--matchStatisticsItemLabelPadding":"0 0 0 var(--px20)","--matchStatisticsClubLogoHeight":35*e+"px","--matchStatisticsClubLogoWidth":35*e+"px","--matchStatisticsClubLogoPaddingBottom":7*e+"px","--matchStatisticsHeaderLineHeight":31*e+"px","--matchStatisticsInfoIconHeight":16*e+"px","--matchStatisticsAwsLogoHeight":25*e+"px","--chevronSize":12*e+"px","--matchSelectionChevronHeight":12*e+"px","--matchSelectionPolygonHeight":12*e+"px","--matchItemClubWidthName":74*e+"px","--matchItemHeight":64*e+"px","--highlightItemWidth":48*e+"px","--highlightItemHeight":48*e+"px","--highlightNavigationChevronSize":30*e+"px","--highlightNavigationCloseIconWidth":20*e+"px","--highlightItemPlayerNameWidth":150*e+"px","--highlightItemInfoContainerHeight":24*e+"px","--highlightBrowserMatchItemE
2xpandHeight":18*e+"px","--highlightBrowserMatchMiddleHeight":32*e+"px","--highlightBrowserMatchMiddleWidth":47.22*e+"px","--highlightBrowserMatchItemClubWidth":90*e+"px","--highlightBrowserMatchItemClubHeight":50*e+"px","--matchHighlightScorePadding":"var(--paddingMedium)","--matchHighlightScoreMargin":"var(--px4) 0 0 var(--px4)","--matchHighlightIconHeight":14*e+"px","--matchHighlightPreviewClubLogoSize":46*e+"px","--highlightItemLogoContainerSize":48*e+"px","--highlightNavigationChevronSide":20*e+"px","--highlightNavigationClubLogoSize":35*e+"px","--highlightNavigationChevronImageWidth":15*e+"px","--highlightNavigationChevronImageHeight":8*e+"px","--highlightBrowserMatchItemClubWidthName":74*e+"px","--highlightBrowserMatchItemClubLogoSize":35*e+"px","--highlightBrowserPipHeight":119.5*e+"px","--highlightBrowserPipWidthSportsGuide":228*e+"px","--highlightBrowserPipHeightSportsGuide":127*e+"px","--liveTableDefaultWidth":201*e+"px","--liveTableHeaderHeight":20*e+"px","--liveTableExpandedWidth":314*e+"px","--liveTableExpandButtonWidth":45*e+"px","--liveTableExpandButtonHeight":35*e+"px","--liveTableExpandButtonIconHeight":19*e+"px","--liveTableExpandIconHeight":12*e+"px","--liveTableRowHeight":28*e+"px","--liveTableClubLogoSize":18*e+"px","--liveTableTierBorder":4*e+"px","--liveTablePlayerNameWidth":50*e+"px","--liveTableScoreCellWidth":50*e+"px","--groupTableHeaderHeight":35*e+"px","--groupTableWrapperWidth":240*e+"px","--groupBlockWidth":212*e+"px","--groupBlockExpandedWidth":240*e+"px","--rankingEmptyHeight":298*e+"px","--rankingPanelHeight":44*e+"px","--rankingChevronDownWidth":12*e+"px","--rankingItemWidth":212*e+"px","--rankingItemWidthFocused":240*e+"px","--rankingItemTopLineHeight":22*e+"px","--rankingItemBottomLineHeight":20*e+"px","--rankingItemRankingListContainerWidth":212*e+"px","--rankingListItemContainerWidth":212*e+"px","--rankingListItemContainerWidthFocused":240*e+"px","--rankingItemRankingListHeaderHeight":20*e+"px","--rankingItemRankingListPanelHeight":47*e+"px","--rankingItemRankingListClubLogoWidth":30*e+"px","--rankingItemRankingListClubLogoHeight":30*e+"px","--rankingItemClubNamePadding":5*e+"px","--rankingItemPlayerNamePadding":5*e+"px","--rankingItemPanelPadding":5*e+"px","--fieldWidth":270*e+"px","--fieldHeight":298*e+"px","--playerElementWidth":40*e+"px","--playerElementHeight":40*e+"px","--lineupsTeamSize":35*e+"px","--lineupsImageWidth":25*e+"px","--lineupsImageHeight":25*e+"px","--awsLogoWidth":38*e+"px","--awsLogoHeight":27*e+"px","--awsLogoPadding":"var(--px8) 0 0 var(--px9)","--awsPlayerBorderRadius":15*e,"--indicatorImageMargin":"0 var(--px4) 0 0","--poweredByAwsLogoHeight":25*e+"px","--upperContainerSpanMargin":13*e+"px","--poweredByAWSTop":9*e+"px","--statisticsInfoTopLineHeight":38*e+"px","--statisticsInfoBackButtonWidth":85*e+"px","--infoStatisticsIconWhiteHeight":15*e+"px","--infoStatisticsBackIconHeight":20*e+"px","--playerStatisticsWidth":212*e+"px","--playerStatisticsBarHeight":35*e+"px","--playerStatisticsClubLogo":35*e+"px","--playerStatisticsClubLogoBlockHeight":63*e+"px","--playerStatisticsIndicatorImageHeight":12*e+"px","--playerStatisticsBackHeight":38*e+"px","--playerStatisticsBackIconWidth":31*e+"px","--playerStatisticsBackIconHeight":20*e+"px","--playerStatisticsInfoIconHeight":15*e+"px","--playerStatisticsAwsLogoHeight":22*e+"px","--playerStatisticsBlockCellHeight":60*e+"px","--playerStatisticsBlockCellGap":9*e+"px","--playerStatisticsBlockHeaderHeight":20*e+"px","--playerStatisticsPlayerImageWidth":127*e+"px","--playerStatisticsPlayerImageHeight":107*e+"px","--benchTeamHeaderHeight":35*e+"px","--matchAlertWidth":212*e+"px","--matchAlertAllMatchesItemHeight":35*e+"px","--matchAlertAllMatchesItemPadding":"var(--px5) var(--px10) var(--px5) var(--px10)","--matchAlertItemPadding":"var(--px1) var(--px10) var(--px1) var(--px5)","--matchAlertClubPadding":"var(--px4) 0 var(--px4) 0","--matchAlertClubLogoWidth":25*e+"px","--matchAlertClubLogoHeight":25*e+"px","--matchAlertClubLogoMargin":"0 var(--px4) 0 0","--matchAlertCheckboxContainerWidth":28*e+"px","--matchAlertCheckboxSize":18*e+"px","--matchAlertSettingsButtonWidth":24*e+"px","--matchAlertSettingsIconWidth":19*e+"px","--matchAlertSettingsIconHeight":20*e+"px","--matchAlertAutopilotHeight":35*e+"px","--matchAlertAutopilotPadding":"var(--px12) var(--px10) var(--px10) var(--px10)","--matchAlertGripGap":24*e+"px","--matchAlertBackToPreviousHeight":22*e+"px","--matchAlertBackToPreviousChevronWidth":16*e+"px","--matchAlertTeamRowHeight":43*e+"px","--matchAlertInfoSpanMargin":10*e+"px","--matchAlertInfoImage":12*e+"px","--matchAlertPipMaximizePosRight":10*e+"px","--matchAlertPipMaximizePosBottom":10*e+"px","--matchAlertPipMaximizeWidth":29*e+"px","--matchAlertPipMaximizeHeight":29*e+"px","--matchAlertItemClubNameWidth":78*e+"px","--matchAlertBackToPreviousChevronHeight":9*e+"px","--alertPresetsSettingsColumnsPadding":25*e+"px","--alertPresetsSettingsHeadlinePadding":"0 0 "+26*e+"px 0","--alertsPresetColumnWidth":230*e+"px","--alertsPresetsIconWidth":19*e+"px","--alertsPresetsIconHeight":20*e+"px","--alertsPresetsIconMargin":"0 "+8*e+"px 0 0","--alertsPresetsLabelWidth":95*e+"px","--alertSettingsColumnPadding":"0 0 0 var(--px30)","--alertSettingsGridGap":31*e+"px 0","--alertPresetsSettingsButtonsBarHeight":63*e+"px","--alertPresetsSettingsButtonWidth":78*e+"px","--alertPresetsSettingsButtonWidthLarge":128*e+"px","--alertPresetsSettingsButtonHeight":40*e+"px","--alertPresetsSettingsButtonMargin":"0 var(--px12)","--moreMenuWidth":211*e+"px","--commentarySelectionButtonWidth":78*e+"px","--commentarySelectionButtonHeight":40*e+"px","--commentarySelectionWidth":367*e+"px","--commentarySelectionUpperHeight":127*e+"px","--commentarySelectionLowerHeight":63*e+"px","--videoPlayerControlIconHeight":24*e+"px","--videoPlayerControlIconWidth":24*e+"px","--videoPlayerControlPlayPauseHeight":18*e+"px","--videoPlayerControlFullscreenMinimize":24*e+"px","--videoPlayerControlFullscreenMaximize":24*e+"px","--videoPlayerControlWithTextWidth":90*e+"px","--moreMenuButtonIcon":18*e+"px","--moreMenuTitleIcon":20*e+"px","--timelineTooltipRowFirstWidth":25*e+"px","--timelineTooltipRowlastWidth":30*e+"px","--timelineEventIconWidth":16*e+"px","--timelineEventIconHeight":10*e+"px","--timelineTooltipEventClubLogo":27*e+"px","--timelineTooltipEventHeight":50*e+"px","--timelineTooltipEventWidth":110*e+"px","--timelineTooltipHiddenEventWidth":100*e+"px","--timelineTooltipTriangleSize":3*e+"px","--timelineTooltipTriangleHeight":8*e+"px","--timelineTooltipMinuteTrianglePosition":10*e+"px","--timelineEventIconSize":16*e+"px","--timelineWrapperHeight":20*e+"px","--timelineEventTeamLogoWidth":28*e+"px","--timelineHeight":2*e+"px","--timelineClubLogoSize":30*e+"px","--timelinePreSpace":60*e+"px","--timelineFullscreenButton":30*e+"px","--timelineMinimizeScreenButton":20*e+"px","--timelineUnMuteButton":20*e+"px","--timelineScrubberSize":"15px","--volumeControlsBarWidth":15*e+"px","--volumeControlsBarHeight":80*e+"px","--volumeControlsBarMargin":12*e+"px","--volumeControlsBarTooptipWidth":7*e+"px","--relive-entry-dialog-padding-horizontal":75*e+"px","--relive-entry-dialog-padding-vertical":25*e+"px","--relive-entry-dialog-padding-horizontal-portrait":25*e+"px","--relive-entry-dialog-padding-vertical-portrait":15*e+"px","--relive-entry-dialog-selection-box-width":235*e+"px","--relive-entry-dialog-selection-box-height":240*e+"px","--relive-entry-dialog-selection-box-width-portrait":250*e+"px","--relive-entry-dialog-selection-box-height-portrait":140*e+"px","--relive-entry-dialog-header-size":23*e+"px","--relive-entry-dialog-logo-width":35*e+"px","--relive-entry-dialog-logo-width-portrait":45*e+"px","--relive-entry-dialog-logo-position":20*e+"px","--relive-entry-dialog-logo-position-portrait":30*e+"px","--relive-entry-dialog-timeline-width":194*e+"px","--relive-entry-dialog-header-size-portrait":35*e+"px","--relive-dialog-content-heading-portrait-padding":80*e+"px","--relive-entry-dialog-close-button-size":30*e+"px","--relive-entry-dialog-close-button-position-top":13*e+"px","--relive-entry-dialog-close-button-position-left":16*e+"px","--spoilerDialogButtonWidth":142*e+"px","--spoilerDialogButtonHeight":42*e+"px","--onboardingHeight":325*e+"px","--onboardingWidth":596*e+"px","--onboardingMargin":25*e+"px","--onboardingFirstHeaderSize":23*e+"px","--onboardingFirstSubheaderSize":12*e+"px","--onboardingFirstIconsMarginLeft":42*e+"px","--onboardingFirstIconsMarginRight":31*e+"px","--onboardingFirstAlertWidth":21*e+"px","--onboardingFirstMatchesWidth":34*e+"px","--onboardingFirstEventWidth":31.68*e+"px","--onboardingFirstInfoWidth":22*e+"px","--onboardingFirstStatisticsWidth":23*e+"px","--onboardingFirstIconHeaderWidth":65*e+"px","--onboardingSecondHeaderHeight":32*e+"px","--onboardingSecondHeaderWidth":245*e+"px","--onboardingSecondUpperHeight":90*e+"px","--onboardingSecondUpperFirstTop":24*e+"px","--onboardingSecondUpperFirstLeft":25*e+"px","--onboardingSecondUpperThirdTop":25*e+"px","--onboardingSecondUpperThirdRight":25*e+"px","--onboardingSecondImageContainer":50*e+"px","--onboardingSecondBigImageMarginTop":"0","--onboardingSecondBigImageWidth":503*e+"px","--onboardingSecondBigImageHeight":192*e+"px","--onboardingSecondLowerHeight":235*e+"px","--onboardingCloseWidth":14*e+"px","--onboardingLogoWidth":27*e+"px","--onboardingSecondAlertWidth":17*e+"px","--onboardingSecondMatchesWidth":30*e+"px","--onboardingSecondSubheaderWidth":500*e+"px","--onboardingSecondChevronTop":95*e+"px","--onboardingSecondChevronSideSpace":45*e+"px","--onboardingSecondChevronWidth":12*e+"px","--onboardingSecondThirdBigImageHeight":209*e+"px","--onboardingSecondThirdBigImageWidth":503*e+"px","--onboardingSecondFourthBigImageTop":.4*e+"px","--onboardingSecondFourthBigImageWidth":503*e+"px","--onboardingSecondFourthBigImageHeight":250*e+"px","--onboardingSecondFourthBigImageRight":-500*e+"px","--onboardingSecondFifthBigImageTop":17*e+"px","--onboardingSecondFifthBigImageHeight":209*e+"px","--onboardingSecondFifthBigImageWidth":500*e+"px","--onboardingSecondSixthBigImageTop":17*e+"px","--onboardingSecondSixthBigImageHeight":209*e+"px","--onboardingSecondSixthBigImageWidth":500*e+"px","--onboardingSecondFourthEventsWidth":28.2*e+"px","--onboardingSecondFifthGraphicsWidth":20*e+"px","--onboardingSecondSixthStatisticsWidth":21*e+"px","--onboardingSecondSixthExploreWidth":149*e+"px","--onboardingSecondSixthExploreHeight":40*e+"px","--onboardingSecondSixthExploreTop":165*e+"px","--onboardingSecondSixthExploreRight":230*e+"px","--onboardingFirstThirdAndFourthTop":35*e+"px","--onboardingFirstControlsHeight":40*e+"px","--onboardingFirstControlsWidth":221*e+"px","--onboardingFirstControlsTop":60*e+"px","--onboardingFirstCancelWidth":91*e+"px","--onboardingFirstStartWidth":111*e+"px","--onboardingFirstFirstRowMarginTop":24*e+"px","--onboardingFirstLogoTop":"0","--onboardingFirstLogoLeft":25*e+"px","--onboardingFirstCloseTop":"0","--onboardingFirstCloseRight":25*e+"px","--onboardingScreenIndicatorWrapperWidth":160*e+"px","--onboardingScreenIndicatorWrapperBottom":15*e+"px","--onboardingCardSecondAlertImageHeaderTop":65*e+"px","--onboardingCardSecondAlertImageHeaderLeft":386*e+"px","--onboardingCardSecondAlertImageHeaderWidth":80*e+"px","--onboardingScreenIndicatorButtonWidth":18*e+"px","--onboardingScreenIndicatorButtonHeight":4*e+"px","--onboardingCardLastContentHeight":122*e+"px","--onboardingCardLastContentPaddingTop":82*e+"px","--onboardingCardLastBottomHeight":70*e+"px","--loadingSpinnerSize":35*e+"px","--koTreeWidth":212*e+"px","--koTabMenuHeight":40*e+"px","--koTabMenuGap":24*e+"px","--koTabMenuTabsOffset":-129*e+"px","--koTabMenuMaskPosition":129*e+"px","--koMatchHeaderHeight":20*e+"px","--koTeamBoxWidth":85*e+"px","--koTeamBoxHeight":60*e+"px","--koStatusBoxWidth":42*e+"px","--koLogoSpaceHeight":36*e+"px","--koTeamLogoSize":28*e+"px","--koTeamLogoHeight":20*e+"px"}))(n),a=(e=>y[e]??(()=>({})))(e)(n);return{...r,...a}},[t,e]),b=e=>r.css({fontFamily:u(e),fontStyle:"normal",margin:0,padding:0}),x=r.keyframes`
3    from {
4        max-height: 0;
5        opacity: 0;
6        overflow: hidden;
7    }
8    to {
9        max-height: var(--benchRevealHeight);
10        opacity: 1;
11        overflow: visible;
12    }
13`,S=r.keyframes`
14    from {
15        max-height: var(--benchRevealHeight);
16        opacity: 1;
17        overflow: hidden;
18    }
19    to {
20        max-height: 0;
21        opacity: 0;
22        overflow: hidden;
23    }
24`,w=r.keyframes`
25    from {
26        transform: translateX(100%);
27        opacity: 0;
28    }
29    to {
30        transform: translateX(0);
31        opacity: 1;
32    }
33`,k=(r.keyframes`
34    0% {
35        transform: translateX(120%);
36        opacity: 0;
37    }
38    80% {
39        transform: translateX(-20px);
40        opacity: 1;
41    }
42    100% {
43        transform: translateX(0);
44        opacity: 1;
45    }
46`,r.keyframes`
47    0% {
48        transform: rotate(0deg);
49    }
50    100% {
51        transform: rotate(360deg);
52    }
53`);t.kH=({taker:e="ard",mode:t="dark",rootSelector:n=":root"})=>{let{breakpoint:a}=f(),o={...m(e,t),...v(e,a)};return i.jsx(r.Global,{styles:r.css`
54                div,
55                span,
56                p,
57                a,
58                img,
59                button,
60                h1,
61                h2,
62                h3,
63                h4,
64                h5,
65                h6,
66                ul,
67                ol,
68                li {
69                    all: revert;
70                }
71
72                button {
73                    font-family: inherit;
74                }
75
76                *,
77                *:before,
78                *:after {
79                    scrollbar-width: none;
80                    -ms-overflow-style: none;
81                }
82
83                *::-webkit-scrollbar {
84                    display: none;
85                }
86
87                ${n} {
88                    ${o}
89
90                    -webkit-font-smoothing: antialiased;
91                    -moz-osx-font-smoothing: grayscale;
92                }
93
94                // Typography classes
95                .wl-font-taker {
96                    ${b(e)}
97                }
98                .wl-font-body-small {
99                    ${b(e)}
100                    font-size: var(--fontSizeBodySmall);
101                    font-weight: var(--fontWeightRegular);
102                }
103                .wl-font-body {
104                    ${b(e)}
105                    font-size: var(--fontSizeBody);
106                    font-weight: var(--fontWeightSemibold);
107                }
108                .wl-font-body-extra-bold {
109                    ${b(e)}
110                    font-size: var(--fontSizeBody);
111                    font-weight: var(--fontWeightExtraBold);
112                }
113                .wl-font-body-bold {
114                    ${b(e)}
115                    font-size: var(--fontSizeBody);
116                    font-weight: var(--fontWeightBold);
117                }
118                .wl-font-body-regular {
119                    ${b(e)}
120                    font-size: var(--fontSizeBody);
121                    font-weight: var(--fontWeightRegular);
122                }
123                .wl-font-subheading {
124                    ${b(e)}
125                    font-size: var(--fontSizeSubheading);
126                    font-weight: var(--fontWeightMedium);
127                }
128                .wl-font-title-medium {
129                    ${b(e)}
130                    font-size: var(--fontSizeTitleMedium);
131                    font-weight: var(--fontWeightExtraBold);
132                }
133                .wl-font-large {
134                    ${b(e)}
135                    font-size: var(--fontSizeLarge);
136                    font-weight: var(--fontWeightExtraBold);
137                }
138            `})},t.X=({children:e,rootElement:t})=>{let[n]=a.useState(()=>(()=>{let e={...d},t=new Set,n=e=>{t.delete(e)};return{subscribe:e=>(t.add(e),()=>n(e)),unsubscribe:n,getSnapshot:()=>e,setRect:n=>{let r=(e=>{if(!e)return{...d};let t=e.getBoundingClientRect(),n=t.height,r=t.width,a=t.width/16,o=t.height/9;return a<o?(n=9*a,r=16*a):(n=9*o,r=16*o),{width:Math.ceil(r),height:Math.ceil(n),breakpointRatio:l(Math.ceil(r)),breakpoint:c(Math.ceil(r))}})(n);(r.width!==e.width||r.height!==e.height||r.breakpoint!==e.breakpoint||r.breakpointRatio!==e.breakpointRatio)&&(e=r,o.unstable_batchedUpdates(()=>{t.forEach(t=>t(e))}))}}})());return a.useLayoutEffect(()=>{if(n.setRect(t),"function"==typeof ResizeObserver){let e=null,r=new ResizeObserver(()=>{e=requestAnimationFrame(()=>{n.setRect(t),e=null})});return r.observe(t),()=>{r.disconnect(),e&&cancelAnimationFrame(e)}}let e=()=>{n.setRect(t)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[n,t]),i.jsx(p.Provider,{value:n,children:e})},t.ru=S,t.OI=x,t.Lc=e=>e.startsWith("ard")?{taker:"ard",mode:e.includes("light")?"light":"dark"}:{taker:"whitelabel",mode:"dark"},t.ni=k,t.xA=w,t.xF=f},4427:(e,t,n)=>{var r=n(6079),a=n(3102),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i={loadPath:"/locales/{{lng}}/{{ns}}.json",parse:e=>JSON.parse(e)},s=class{constructor(e,t,n){this.type="backend",this.init(e,t,n)}static{this.type="backend"}init(e,t,n){this.services=e,this.options={...i,...this.options,...t},this.i18nextOptions={...this.i18nextOptions,...n}}read(e,t,n){let r=this.options.loadPath.replace(/\{\{lng\}\}/g,e).replace(/\{\{ns\}\}/g,t);this.loadUrl(r,n)}async loadUrl(e,t){try{let n=await fetch(e,this.options.requestOptions);if(!n.ok)return t(new Error(`Failed loading ${e} (Status: ${n.status})`),!0);let r,a=await n.text();try{r=this.options.parse?this.options.parse(a,e):JSON.parse(a)}catch{return t(new Error(`Failed parsing ${e}`),!1)}t(null,r)}catch(e){t(new Error(e instanceof Error?e.message:"Unknown error"),!0)}}reload(){let{backendConnector:e,languageUtils:t,logger:n}=this.services,r=e.language;if(r&&"cimode"===r.toLowerCase())return;let a=[],o=e=>
138{t.toResolveHierarchy(e).forEach(e=>{a.indexOf(e)<0&&a.push(e)})};o(r),this.i18nextOptions.preload&&this.i18nextOptions.preload.forEach(e=>o(e));let i=Array.isArray(this.i18nextOptions.ns)?this.i18nextOptions.ns:[this.i18nextOptions.ns];a.forEach(t=>{i.forEach(r=>{e.read(t,r,"read",null,null,(a,o)=>{a&&n.warn(`loading namespace ${r} for language ${t} failed`,a),!a&&o&&n.log(`loaded namespace ${r} for language ${t}`,o),e.loaded(`${t}|${r}`,a,o)})})})}},l=null,c=e=>`https://tvxray-cdn.s3.eu-central-1.amazonaws.com/static/localization/localization_${e}.json`;t.W=function(){l&&(l.off("initialized"),l.off("languageChanged"),l.off("loaded"),l.off("failedLoading"),l.off("missingKey"),l.off("added"),l.off("removed"),l.off("changed"),l.removeResourceBundle("enGB","translation"),l.isInitialized=!1,l.store.data={},l=null)},t.S=async function(e,t){if(l)return void a.Debugger.console(0,"[Localization] i18n already initialized");let n=async(r=0)=>{let i=o.default.createInstance();try{await i.use(s).init({debug:t,lng:"enGB",fallbackLng:"enGB",keySeparator:!1,interpolation:{escapeValue:!1},backend:{loadPath:c(e)}}),l=i,a.Debugger.console(0,"[Localization] Translations loaded and initialized")}catch(e){if(r<3)return a.Debugger.console(1,`[Localization] Failed to load translations: ${e}`),a.Debugger.console(0,`[Localization] Retrying to load translations, attempt: ${r+1}`),n(r+1);throw a.Debugger.console(2,`[Localization] Failed to load translations, max attempts reached: ${e}`),i.off("initialized"),i.off("languageChanged"),i.off("loaded"),i.off("failedLoading"),i.off("missingKey"),i.off("added"),i.off("removed"),i.off("changed"),e}};return n()},t.t=function(e){return l?.t(e)||e}},3102:(e,t,n)=>{var r=n(1573),a=class e{static{this.localDateTime=()=>{let e=new Date;return String(e.getFullYear()).padStart(2,"0")+"-"+String(e.getMonth()+1).padStart(2,"0")+"-"+String(e.getDate()).padStart(2,"0")+" "+String(e.getHours()).padStart(2,"0")+":"+String(e.getMinutes()).padStart(2,"0")+":"+String(e.getSeconds()).padStart(2,"0")}}static checkSystemTheme(){return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}static console(t,n,a){if(!r.TVXCONFIG().debugger)return;let o=[`%c${this.localDateTime()}\n%c TVX %c${n}`,"color:silver","background: #696969; color: white; border-radius: 7px; padding: 2px 4px;",a?`color:${a}`:"dark"===e.checkSystemTheme()?"color:#FFFFFF":"color:#555555"];switch(t){case 0:break;case 1:console.warn(...o);break;case 2:console.error(...o)}}static init(...e){this.console(0,`[Init] ${e.map(e=>String(e)).join(" ")}`)}static spoiler(...e){this.console(0,`[Spoiler] ${e.map(e=>String(e)).join(" ")}`)}static api(...e){this.console(0,`[API] ${e.map(e=>String(e)).join(" ")}`)}static error(...e){this.console(2,`[Error] ${e.map(e=>String(e)).join(" ")}`)}};t.Debugger=a},7044:(e,t,n)=>{var r=n(4041),a=n(7062),o=n(1085),i=r.createContext(null),s=()=>{let e=r.useContext(i);if(!e)throw new Error("useSpatialNavigation must be used within a SpatialNavigationProvider");return e},l=()=>{},c=(()=>{let e=0;return(t="")=>(e++,`${t}${e}`)})(),u=({focusable:e=!0,saveLastFocusedChild:t=!0,trackChildren:n=!1,autoRestoreFocus:o=!0,forceFocus:i=!1,isFocusBoundary:u=!1,focusBoundaryDirections:d,focusKey:p,preferredChildFocusKey:f,onEnterPress:h=l,onEnterRelease:g=l,onArrowPress:m=()=>!0,onArrowRelease:y=l,onFocus:v=l,onBlur:b=l,extraProps:x}={})=>{let S=r.useCallback(e=>{h(x,e)},[h,x]),w=r.useCallback(()=>{g(x)},[g,x]),k=r.useCallback((e,t)=>m(e,x,t),[x,m]),_=r.useCallback(e=>{y(e,x)},[y,x]),C=r.useCallback((e,t)=>{v(e,x,t)},[x,v]),P=r.useCallback((e,t)=>{b(e,x,t)},[x,b]),I=r.useRef(null),[E,T]=r.useState(!1),[M,O]=r.useState(!1),L=r.useContext(a.FocusContext),{instance:j}=s(),A=r.useMemo(()=>p||c("sn:focusable-item-"),[p]),N=r.useCallback((e={})=>{j.focus(A,e)},[A,j]);return r.useEffect(()=>{if(!I.current)return;let r=I.current;return j.addFocusable({focusKey:A,node:r,parentFocusKey:L,preferredChildFocusKey:f,onEnterPress:S,onEnterRelease:w,onArrowPress:k,onArrowRelease:_,onFocus:C,onBlur:P,onUpdateFocus:(e=!1)=>T(e),onUpdateHasFocusedChild:(e=!1)=>O(e),saveLastFocusedChild:t,trackChildren:n,isFocusBoundary:u,focu
138sBoundaryDirections:d,autoRestoreFocus:o,forceFocus:i,focusable:e}),()=>{j.removeFocusable(A)}},[j,A]),r.useEffect(()=>{if(!I.current)return;let t=I.current;j.updateFocusable(A,{node:t,preferredChildFocusKey:f,focusable:e,isFocusBoundary:u,focusBoundaryDirections:d,onEnterPress:S,onEnterRelease:w,onArrowPress:k,onArrowRelease:_,onFocus:C,onBlur:P})},[A,f,e,u,d,S,w,k,_,C,P,j]),{ref:I,focusSelf:N,focused:E,hasFocusedChild:M,focusKey:A}},d={Up:"up",Down:"down",Left:"left",Right:"right"},p="enter",f=e=>Object.values(d).includes(e),h={left:[37,"ArrowLeft"],up:[38,"ArrowUp"],right:[39,"ArrowRight"],down:[40,"ArrowDown"],enter:[13,"Enter"],back:[8,"Escape","Backspace","Back","GoBack","XF86Back"]},g=e=>e.keyCode||e.code||e.key,m=a.SpatialNavigation;m.create=function(){return new(0,this.constructor)},Object.defineProperty(t,"w8",{enumerable:!0,get:function(){return a.FocusContext}}),t.kL=d,t.kT=({autoRestoreFocus:e,disabled:t,focusable:n=!0,focusBoundaryDirections:a,focusKey:i,isFocusBoundary:s,preferredChildFocusKey:l,saveLastFocusedChild:c,syncNativeFocus:d=!0,trackChildren:p,onArrowPress:h,onBackPress:g,onBlur:m,onEnterPress:y,onFocus:v,children:b})=>{let x=r.useRef(null),{ref:S,focused:w,focusKey:k,focusSelf:_,hasFocusedChild:C}=u({autoRestoreFocus:e,focusable:n&&!t,focusKey:i,isFocusBoundary:s,focusBoundaryDirections:a,preferredChildFocusKey:l,trackChildren:p,saveLastFocusedChild:c,onEnterPress:y,onArrowPress:e=>{let t=(e=>e.trim().toLowerCase())(e);return(e=>"back"===e)(t)&&g?g():!f(t)||!h||h(t)},onFocus:()=>{t||(v?.(),n&&d&&(x.current=requestAnimationFrame(()=>{S.current?.focus({preventScroll:!0}),S.current?.scrollIntoView({behavior:"smooth",block:"nearest"}),x.current=null})))},onBlur:()=>{t||(x.current&&(cancelAnimationFrame(x.current),x.current=null),m?.())}});return o.jsx(o.Fragment,{children:b({ref:S,focusKey:k,focused:w,focusSelf:_,handleFocus:e=>{e?.defaultPrevented||t||n&&d&&!w&&!C&&_()},hasFocusedChild:C})})},t.pG=class{constructor(){this.debug=!1,this.shouldUseNativeEvents=!1,this.throttle=0,this.throttleKeypresses=!1,this.isInitialized=!1,this.pressedKeys={},this.node=null,this.handleKeyDownThrottled=null,this.spatialNavigationService=m.create(),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this)}init({debug:e=!1,keyMap:t=h,throttle:n=0,throttleKeypresses:r=!1}){this.isInitialized||(this.debug=e,this.shouldUseNativeEvents=!1,this.throttle=n,this.throttleKeypresses=r,this.spatialNavigationService.init({debug:this.debug,shouldUseNativeEvents:this.shouldUseNativeEvents,throttle:this.throttle,throttleKeypresses:this.throttleKeypresses,visualDebug:!1}),this.spatialNavigationService.setKeyMap(t),this.spatialNavigationService.unbindEventHandlers(),this.isInitialized=!0)}destroy(){this.isInitialized&&(this.unbindEventHandlers(),this.spatialNavigationService.destroy(),this.isInitialized=!1,this.debug=!1,this.shouldUseNativeEvents=!1,this.throttle=0,this.throttleKeypresses=!1)}exists(e){return!!this.isInitialized&&this.spatialNavigationService.doesFocusableExist(e)}focus(e,t={}){this.isInitialized&&this.spatialNavigationService.setFocus(e,t)}getFocusedKey(){return this.isInitialized?this.spatialNavigationService.getCurrentFocusKey():null}back(){this.isInitialized&&this.spatialNavigationService.onArrowPress("back",{pressedKeys:{}})}enter(){this.isInitialized&&this.spatialNavigationService.onEnterPress({pressedKeys:{}})}move(e){!this.isInitialized||!1===this.spatialNavigationService.onArrowPress(e,{pressedKeys:{}})||this.spatialNavigationService.smartNavigate(e,null,{pressedKeys:{}})}moveDown(){this.move(d.Down)}moveLeft(){this.move(d.Left)}moveRight(){this.move(d.Right)}moveUp(){this.move(d.Up)}bindEventHandlers(e){this.isInitialized&&(this.node=e,this.throttle>0?(this.handleKeyDownThrottled=function(e,t){let n,r=0,a=null,o=function(...o){let i=Date.now(),s=t-(i-r);return s<=0||s>t?(a&&(clearTimeout(a),a=null),r=i,n=e.apply(this,o)):a||(a=setTimeout(()=>{a=null,r=Date.now(),n=e.apply(this,o)},s)),n};return o.cancel=()=>{a&&clearTimeout(a),a=null,r=0,n=void 0},o}(this.handleKeyDown,this.throttle),this.node.addEventListener("keydown",this.handleKeyDownThrottled)):this.node.addEventListener("keydown",this.handleKeyDown),this.node.addEventListener("keyup",this.handleKeyUp),this.node=e)}unbindEventHandlers(){this.node&&(this.handleKeyDownThrottled&&(this.node.removeEventListener("keydown",this.handleKeyDownThrottled),this.handleKeyDownThrottled.cancel(),this.handleKeyDownThrottled=null),this.node.removeEventListener("keydown",this.handleKeyDown),this.node.removeEventListener("keyup",this.handleKeyUp),this.node=null)}handleKeyDown(e){let t=g(e),n=this.spatialNavigationService.getEventType(t);if(!n)return;this.pressedKeys[n]??=0,this.pressedKeys[n]++,this.shouldUseNativeEvents||(e.preventDefault(),e.stopPropagation());let r={pressedKeys:this.pressedKeys};n===p&&this.getFocusedKey()?this.spatialNavigationService.onEnterPress(r):!1===this.spatialNavigationService.onArrowPress(n,r)?this.debug&&this.spatialNavigationService.log("keyDownEventListener","default navigation prevented"):this.spatialNavigationService.smartNavigate(n,null,{event:e})}handleKeyUp(e){let t=g(e),n=this.spatialNavigationService.getEventType(t);delete this.pressedKeys[n],!this.throttleKeypresses&&this.handleKeyDownThrottled&&this.handleKeyDownThrottled.cancel(),n===p&&this.getFocusedKey()&&this.spatialNavigationService.onEnterRelease(),this.getFocusedKey()&&f(n)&&this.spatialNavigationService.onArrowRelease(n)}addFocusable(e){this.spatialNavigationService.addFocusable(e)}updateFocusable(e,t){this.spatialNavigationService.updateFocusable(e,t)}removeFocusable(e){this.spatialNavigationService.removeFocusable({focusKey:e})}},t.me=({children:e,spatialNavigation:t})=>{let n=r.useMemo(()=>({exists:e=>t.exists(e),focus:e=>t.focus(e),getFocusedKey:()=>t.getFocusedKey(),back:()=>t.back(),enter:()=>t.enter(),move:e=>t.move(e),moveDown:()=>t.moveDown(),moveLeft:()=>t.moveLeft(),moveRight:()=>t.moveRight(),moveUp:()=>t.moveUp()}),[t]);return o.jsx(i.Provider,{value:{instance:t,value:n},children:e})},t.Wc=u,t.UA=()=>s().value},71:(e,t)=>{t.PX=(e,t)=>{let n=e=>e.toString().padStart(2,"0"),r=n(e.getDate()),a=n(e.getMonth()+1),o=e.getFullYear(),i=n(e.getHours()),s=n(e.getMinutes()),l=["sun","mon","tue","wed","thu","fri","sat"][e.getDay()];switch(t){case"date":return`${r}.${a}.`;case"fulldate":return`${r}.${a}.${o}`;case"time":return`${i}:${s}`;case"weekday":return l;case"all":return`${l} ${r}.${a}.${o} - ${i}:${s}`;default:return`${r}.${a}. | ${i}:${s}`}},t.ZE=(e,t)=>(t.getTime()-e.getTime())/1e3},6064:(e,t)=>
138{t.nY=(e,t=1)=>0===e||void 0===e?"0":String(parseFloat((e/1e3).toFixed(t))),t.$4=(e,t)=>{let n=e/t*100;return Number.isNaN(n)?"0":String(Math.round(n))},t.cs=(e,t,n)=>0===e||0===t||void 0===e||void 0===t?0:n?100-Math.round(100*e/(e+t)):Math.round(100*e/(e+t)),t.yD=(e,t)=>(t.length>e?t.substring(0,e-1)+"...":t)||t,t.pe=(e,t)=>0===e||null==e?"0":String(e.toFixed(t))},9575:(e,t,n)=>{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},r.apply(null,arguments)}n.d(t,{A:()=>r})},3755:(e,t,n)=>{n.d(t,{IO:()=>d,LU:()=>l,MS:()=>r,Sv:()=>u,XZ:()=>s,YK:()=>i,j:()=>o,vd:()=>a,yE:()=>c});var r="-ms-",a="-moz-",o="-webkit-",i="comm",s="rule",l="decl",c="@import",u="@keyframes",d="@layer"},8717:(e,t,n)=>{n.d(t,{r1:()=>l,gi:()=>u,MY:()=>c});var r=n(3755),a=n(1448),o=n(9241),i=n(1758);function s(e,t,n){switch((0,a.tW)(e,t)){case 5103:return r.j+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return r.j+e+e;case 4789:return r.vd+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return r.j+e+r.vd+e+r.MS+e+e;case 5936:switch((0,a.wN)(e,t+11)){case 114:return r.j+e+r.MS+(0,a.HC)(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return r.j+e+r.MS+(0,a.HC)(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return r.j+e+r.MS+(0,a.HC)(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return r.j+e+r.MS+e+e;case 6165:return r.j+e+r.MS+"flex-"+e+e;case 5187:return r.j+e+(0,a.HC)(e,/(\w+).+(:[^]+)/,r.j+"box-$1$2"+r.MS+"flex-$1$2")+e;case 5443:return r.j+e+r.MS+"flex-item-"+(0,a.HC)(e,/flex-|-self/g,"")+((0,a.YW)(e,/flex-|baseline/)?"":r.MS+"grid-row-"+(0,a.HC)(e,/flex-|-self/g,""))+e;case 4675:return r.j+e+r.MS+"flex-line-pack"+(0,a.HC)(e,/align-content|flex-|-self/g,"")+e;case 5548:return r.j+e+r.MS+(0,a.HC)(e,"shrink","negative")+e;case 5292:return r.j+e+r.MS+(0,a.HC)(e,"basis","preferred-size")+e;case 6060:return r.j+"box-"+(0,a.HC)(e,"-grow","")+r.j+e+r.MS+(0,a.HC)(e,"grow","positive")+e;case 4554:return r.j+(0,a.HC)(e,/([^-])(transform)/g,"$1"+r.j+"$2")+e;case 6187:return(0,a.HC)((0,a.HC)((0,a.HC)(e,/(zoom-|grab)/,r.j+"$1"),/(image-set)/,r.j+"$1"),e,"")+e;case 5495:case 3959:return(0,a.HC)(e,/(image-set\([^]*)/,r.j+"$1$`$1");case 4968:return(0,a.HC)((0,a.HC)(e,/(.+:)(flex-)?(.*)/,r.j+"box-pack:$3"+r.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+r.j+e+e;case 4200:if(!(0,a.YW)(e,/flex-|baseline/))return r.MS+"grid-column-align"+(0,a.c1)(e,t)+e;break;case 2592:case 3360:return r.MS+(0,a.HC)(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,(0,a.YW)(e.props,/grid-\w+-end/)})?~(0,a.K5)(e+(n=n[t].value),"span")?e:r.MS+(0,a.HC)(e,"-start","")+e+r.MS+"grid-row-span:"+(~(0,a.K5)(n,"span")?(0,a.YW)(n,/\d+/):+(0,a.YW)(n,/\d+/)-+(0,a.YW)(e,/\d+/))+";":r.MS+(0,a.HC)(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return(0,a.YW)(e.props,/grid-\w+-start/)})?e:r.MS+(0,a.HC)((0,a.HC)(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return(0,a.HC)(e,/(.+)-inline(.+)/,r.j+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,a.b2)(e)-1-t>6)switch((0,a.wN)(e,t+1)){case 109:if(45!==(0,a.wN)(e,t+4))break;case 102:return(0,a.HC)(e,/(.+:)(.+)-([^]+)/,"$1"+r.j+"$2-$3$1"+r.vd+(108==(0,a.wN)(e,t+3)?"$3":"$2-$3"))+e;case 115:return~(0,a.K5)(e,"stretch")?s((0,a.HC)(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return(0,a.HC)(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,a,o,i,s,l){return r.MS+n+":"+a+l+(o?r.MS+n+"-span:"+(i?s:+s-+a)+l:"")+e});case 4949:if(121===(0,a.wN)(e,t+6))return(0,a.HC)(e,":",":"+r.j)+e;break;case 6444:switch((0,a.wN)(e,45===(0,a.wN)(e,14)?18:11)){case 120:return(0,a.HC)(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+r.j+(45===(0,a.wN)(e,14)?"inline-":"")+"box$3$1"+r.j+"$2$3$1"+r.MS+"$2box$3")+e;case 100:return(0,a.HC)(e,":",":"+r.MS)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return(0,a.HC)(e,"scroll-","scroll-snap-")+e}return e}function l(e){var t=(0,a.FK)(e);return function(n,r,a,o){for(var i="",s=0;s<t;s++)i+=e[s](n,r,a,o)||"";return i}}function c(e){return function(t){t.root||(t=t.return)&&e(t)}}function u(e,t,n,l){if(e.length>-1&&!e.return)switch(e.type){case r.LU:return void(e.return=s(e.value,e.length,n));case r.Sv:return(0,i.l)([(0,o.C)(e,{value:(0,a.HC)(e.value,"@","@"+r.j)})],l);case r.XZ:if(e.length)return(0,a.kg)(e.props,function(t){switch((0,a.YW)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,i.l)([(0,o.C)(e,{props:[(0,a.HC)(t,/:(read-\w+)/,":"+r.vd+"$1")]})],l);case"::placeholder":return(0,i.l)([(0,o.C)(e,{props:[(0,a.HC)(t,/:(plac\w+)/,":"+r.j+"input-$1")]}),(0,o.C)(e,{props:[(0,a.HC)(t,/:(plac\w+)/,":"+r.vd+"$1")]}),(0,o.C)(e,{props:[(0,a.HC)(t,/:(plac\w+)/,r.MS+"input-$1")]})],l)}return""})}}},1721:(e,t,n)=>{n.d(t,{wE:()=>i});var r=n(3755),a=n(1448),o=n(9241);function i(e){return(0,o.VF)(s("",null,null,null,[""],e=(0,o.c4)(e),0,[0],e))}function s(e,t,n,r,i,d,p,f,h){for(var g=0,m=0,y=p,v=0,b=0,x=0,S=1,w=1,k=1,_=0,C="",P=i,I=d,E=r,T=C;w;)switch(x=_,_=(0,o.K2)()){case 40:if(108!=x&&58==(0,a.wN)(T,y-1)){-1!=(0,a.K5)(T+=(0,a.HC)((0,o.Tb)(_),"&","&\f"),"&\f")&&(k=-1);break}case 34:case 39:case 91:T+=(0,o.Tb)(_);break;case 9:case 10:case 13:case 32:T+=(0,o.mw)(x);break;case 92:T+=(0,o.Nc)((0,o.OW)()-1,7);continue;case 47:switch((0,o.se)()){case 42:case 47:(0,a.BC)(c((0,o.nf)((0,o.K2)(),(0,o.OW)()),t,n),h);break;default:T+="/"}break;case 123*S:f[g++]=(0,a.b2)(T)*k;case 125*S:case 59:case 0:switch(_){case 0:case 125:w=0;case 59+m:-1==k&&(T=(0,a.HC)(T,/\f/g,"")),b>0&&(0,a.b2)(T)-y&&(0,a.BC)(b>32?u(T+";",r,n,y-1):u((0,a.HC)(T," ","")+";",r,n,y-2),h);break;case 59:T+=";";default:if((0,a.BC)(E=l(T,t,n,g,m,i,f,C,P=[],I=[],y),d),123===_)if(0===m)s(T,t,E,E,P,d,y,f,I);else switch(99===v&&110===(0,a.wN)(T,3)?100:v){case 100:case 108:case 109:case 115:s(e,E,E,r&&(0,a.BC)(l(e,E,E,0,0,i,f,C,i,P=[],y),I),i,I,y,f,r?P:I);break;default:s(T,E,E,E,[""],I,0,f,I)}}g=m=b=0,S=k=1,C=T="",y=p;break;case 58:y=1+(0,a.b2)(T),b=x;default:if(S<1)if(123==_)--S;else if(125==_&&0==S++&&125==(0,o.YL)())continue;switch(T+=(0,a.HT)(_),_*S){case 38:k=m>0?1:(T+="\f",-1);break;case 44:f[g++]=((0,a.b2)(T)-1)*k,k=1;break;case 64:45===(0,o.se)()&&(T+=(0,o.Tb)((0,o.K2)())),v=(0,o.se)(),m=y=(0,a.b2)(C=T+=(0,o.Cv)((0,o.OW)())),_++;break;case 45:45===x&&2==(0,a.b2)(T)&&(S=0)}}return d}function l(e,t,n,i,s,l,c,u,d,p,f){for(var h=s-1,g=0===s?l:[""],m=(0,a.FK)(g),y=0,v=0,b=0;y<i;++y)for(var x=0,S=(0,a.c1)(e,h+1,h=(0,a.tn)(v=c[y])),w=e;x<m;++x)(w=(0,a.Bq)(v>0?g[x]+" "+S:(0,a.HC)(S,/&\f/g,g[x])))&&(d[b++]=w);return(0,o.rH)(e,t,n,0===s?r.XZ:u,d,p,f)}
vendor: 3,022 bytes, line 138
138function c(e,t,n){return(0,o.rH)(e,t,n,r.YK,(0,a.HT)((0,o.Tp)()),(0,a.c1)(e,2,-2),0)}function u(e,t,n,i){return(0,o.rH)(e,t,n,r.LU,(0,a.c1)(e,0,i),(0,a.c1)(e,i+1,-1),i)}},1758:(e,t,n)=>{n.d(t,{A:()=>i,l:()=>o});var r=n(3755),a=n(1448);function o(e,t){for(var n="",r=(0,a.FK)(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function i(e,t,n,i){switch(e.type){case r.IO:if(e.children.length)break;case r.yE:case r.LU:return e.return=e.return||e.value;case r.YK:return"";case r.Sv:return e.return=e.value+"{"+o(e.children,i)+"}";case r.XZ:e.value=e.props.join(",")}return(0,a.b2)(n=o(e.children,i))?e.return=e.value+"{"+n+"}":""}},9241:(e,t,n)=>{n.d(t,{C:()=>d,Cv:()=>P,G1:()=>s,K2:()=>h,Nc:()=>k,OW:()=>m,Sh:()=>v,Tb:()=>S,Tp:()=>p,VF:()=>x,YL:()=>f,c4:()=>b,di:()=>y,mw:()=>w,nf:()=>C,rH:()=>u,se:()=>g});var r=n(1448),a=1,o=1,i=0,s=0,l=0,c="";function u(e,t,n,r,i,s,l){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:a,column:o,length:l,return:""}}function d(e,t){return(0,r.kp)(u("",null,null,"",null,null,0),e,{length:-e.length},t)}function p(){return l}function f(){return l=s>0?(0,r.wN)(c,--s):0,o--,10===l&&(o=1,a--),l}function h(){return l=s<i?(0,r.wN)(c,s++):0,o++,10===l&&(o=1,a++),l}function g(){return(0,r.wN)(c,s)}function m(){return s}function y(e,t){return(0,r.c1)(c,e,t)}function v(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function b(e){return a=o=1,i=(0,r.b2)(c=e),s=0,[]}function x(e){return c="",e}function S(e){return(0,r.Bq)(y(s-1,_(91===e?e+2:40===e?e+1:e)))}function w(e){for(;(l=g())&&l<33;)h();return v(e)>2||v(l)>3?"":" "}function k(e,t){for(;--t&&h()&&!(l<48||l>102||l>57&&l<65||l>70&&l<97););return y(e,m()+(t<6&&32==g()&&32==h()))}function _(e){for(;h();)switch(l){case e:return s;case 34:case 39:34!==e&&39!==e&&_(l);break;case 40:41===e&&_(e);break;case 92:h()}return s}function C(e,t){for(;h()&&e+l!==57&&(e+l!==84||47!==g()););return"/*"+y(t,s-1)+"*"+(0,r.HT)(47===e?e:h())}function P(e){for(;!v(g());)h();return y(e,s)}},1448:(e,t,n)=>{n.d(t,{BC:()=>g,Bq:()=>s,FK:()=>h,HC:()=>c,HT:()=>a,K5:()=>u,YW:()=>l,b2:()=>f,c1:()=>p,kg:()=>m,kp:()=>o,tW:()=>i,tn:()=>r,wN:()=>d});var r=Math.abs,a=String.fromCharCode,o=Object.assign;function i(e,t){return 45^d(e,0)?(((t<<2^d(e,0))<<2^d(e,1))<<2^d(e,2))<<2^d(e,3):0}function s(e){return e.trim()}function l(e,t){return(e=t.exec(e))?e[0]:e}function c(e,t,n){return e.replace(t,n)}function u(e,t){return e.indexOf(t)}function d(e,t){return 0|e.charCodeAt(t)}function p(e,t,n){return e.slice(t,n)}function f(e){return e.length}function h(e){return e.length}function g(e,t){return t.push(e),e}function m(e,t){return e.map(t).join("")}},3132:(e,t,n)=>{n.d(t,{y:()=>a});const r=e=>{let t;const n=new Set,r=(e,r)=>{const a="function"==typeof e?e(t):e;if(!Object.is(a,t)){const e=t;t=(null!=r?r:"object"!=typeof a||null===a)?a:Object.assign({}
138,t,a),n.forEach(n=>n(t,e))}},a=()=>t,o={setState:r,getState:a,getInitialState:()=>i,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},i=t=e(r,a,o);return o},a=e=>e?r(e):r}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},a=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var n=Object.create(null);s.r(n);var o={};r=r||[null,a({}),a([]),a(a)];for(var i=2&t&&e;"object"==typeof i&&!~r.indexOf(i);i=a(i))Object.getOwnPropertyNames(i).forEach(t=>o[t]=()=>e[t]);return o.default=()=>e,s.d(n,o),n},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var l={};s.d(l,{A:()=>fi});var c=s(1085),u=s(3144),d=s(3132),p=s(4041),f=s(7121);const{useDebugValue:h}=p,{useSyncExternalStoreWithSelector:g}=f;let m=!1;const y=e=>e,v=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(0,d.y)(e):e,n=(e,n)=>function(e,t=y,n){n&&!m&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),m=!0);const r=g(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return h(r),r}(t,e,n);return Object.assign(n,t),n},b=e=>e?v(e):v,x=new Map,S=e=>{const t=x.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([e,t])=>[e,t.getState()])):{}},w=(e,t={})=>(n,r,a)=>{const{enabled:o,anonymousActionType:i,store:s,...l}=t;let c;try{c=(null==o||o)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(e){}if(!c)return o&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,a);const{connection:u,...d}=((e,t,n)=>{if(void 0===e)return{type:"untracked",connection:t.connect(n)};const r=x.get(n.name);if(r)return{type:"tracked",store:e,...r};const a={connection:t.connect(n),stores:{}};return x.set(n.name,a),{type:"tracked",store:e,...a}})(s,c,l);let p=!0;a.setState=(e,t,o)=>{const c=n(e,t);if(!p)return c;const d=void 0===o?{type:i||"anonymous"}:"string"==typeof o?{type:o}:o;return void 0===s?(null==u||u.send(d,r()),c):(null==u||u.send({...d,type:`${s}/${d.type}`},{...S(l.name),[s]:a.getState()}),c)};const f=(...e)=>{const t=p;p=!1,n(...e),p=t},h=e(a.setState,r,a);if("untracked"===d.type?null==u||u.init(h):(d.stores[d.store]=a,null==u||u.init(Object.fromEntries(Object.entries(d.stores).map(([e,t])=>[e,e===d.store?h:t.getState()])))),a.dispatchFromDevtools&&"function"==typeof a.dispatch){let e=!1;const t=a.dispatch;a.dispatch=(...n)=>{"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...n)}}return u.subscribe(e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):k(e.payload,e=>{if("__setState"!==e.type)a.dispatchFromDevtools&&"function"==typeof a.dispatch&&a.dispatch(e);else{if(void 0===s)return void f(e.state);1!==Object.keys(e.state).length&&console.error('\n                    [zustand devtools middleware] Unsupported __setState action format. \n                    When using \'store\' option in devtools(), the \'state\' should have only one key, which is a value of \'store\' that was passed in devtools(),\n                    and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }\n                    ');const t=e.state[s];if(null==t)return;JSON.stringify(a.getState())!==JSON.stringify(t)&&f(t)}});case"DISPATCH":switch(e.payload.type){case"RESET":return f(h),void 0===s?null==u?void 0:u.init(a.getState()):null==u?void 0:u.init(S(l.name));
138case"COMMIT":return void 0===s?void(null==u||u.init(a.getState())):null==u?void 0:u.init(S(l.name));case"ROLLBACK":return k(e.state,e=>{if(void 0===s)return f(e),void(null==u||u.init(a.getState()));f(e[s]),null==u||u.init(S(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return k(e.state,e=>{void 0!==s?JSON.stringify(a.getState())!==JSON.stringify(e[s])&&f(e[s]):f(e)});case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return f(void 0===s?r:r[s]),void(null==u||u.send(null,n))}case"PAUSE_RECORDING":return p=!p}return}}),h},k=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==n&&t(n)},_="HIDDEN",C="SHOW",P={overlay:C,closeOverlayHandler:void 0},I=b()(w((e,t)=>Object.assign(Object.assign({},P),{setOverlay:t=>{e({overlay:t},!1,"setOverlay")},hideOverlay:()=>{e({overlay:_},!1,"hideOverlay")},showOverlay:()=>{e({overlay:C},!1,"showOverlay")},toggleOverlay:()=>{const{overlay:n}=t();n===_&&e({overlay:C},!1,"toggleOverlay"),n===C&&e({overlay:_},!1,"toggleOverlay")},reset:()=>{e(Object.assign({},P),!1,"reset")}}),{name:"OVERLAY STATE"}));var E=s(1573),T=s(2569),M={configs:[],alertQueue:[],alertPlaying:null,savedAlert:null,leanbackOn:!1,showAlertSettingsOverlay:!1},O=b()(w((e,t)=>({...M,setAlertConfigs:t=>{t.some(e=>e.active)?e({configs:t,leanbackOn:!0},!1,"setAlertConfigs"):e({configs:t,leanbackOn:!1},!1,"setAlertConfigs")},updateMatchAlertConfig:n=>{let r=t().configs.map(e=>e.matchId===n.matchId?{...e,...n}:e);r.some(e=>e.active)?e({configs:r,leanbackOn:!0},!1,"updateMatchAlertConfig"):e({configs:r,leanbackOn:!1},!1,"updateMatchAlertConfig")},updateCompAlertConfig:n=>{let r=t().configs,a=r.filter(e=>e.compId===n.compId),o=r.filter(e=>e.compId!==n.compId),i={goals:n.goals,dismissals:n.dismissals,var:n.var,penalties:n.penalties,bigChance:n.bigChance,preset:n.preset,totalShots:n.totalShots,shotOnGoal:n.shotOnGoal,active:n.active},s=a.map(e=>({...e,...i}));e({configs:[...o,...s]},!1,"updateCompAlertConfig")},updateAllMatchAlertConfigs:n=>{let r=t().configs,a={goals:n.goals,dismissals:n.dismissals,var:n.var,penalties:n.penalties,bigChance:n.bigChance,preset:n.preset,totalShots:n.totalShots,shotOnGoal:n.shotOnGoal,active:n.active},o=r.map(e=>({...e,...a}));e({configs:o},!1,"updateAllMatchAlertConfigs")},toggleActive:n=>{let r=t().configs.map(e=>(e.matchId===n&&(e.active=!e.active),e));r.some(e=>e.active)?e({configs:r,leanbackOn:!0},!1,"toggleActive"):e({configs:r,leanbackOn:!1},!1,"toggleActive")},toggleLeanBackMode:()=>{e({leanbackOn:!t().leanbackOn},!1,"toggleLeanBackMode")},toggleAlertSettingsOverlay:()=>{e({showAlertSettingsOverlay:!t().showAlertSettingsOverlay},!1,"toggleAlertSettingsOverlay")},addAlertToQueue:n=>{e({alertQueue:[...t().alertQueue,n]},!1,"addAlertToQueue")},removeAlertFromQueue:n=>{e({alertQueue:[...t().alertQueue.filter(e=>e.eventId!==n.eventId)]},!1,"removeAlertFromQueue")},setAlertPlaying:t=>{e({alertPlaying:t},!1,"setAlertPlaying")},setSavedAlert:t=>{e({savedAlert:t},!1,"setSavedAlert")},setLeanBackMode:t=>{e({leanbackOn:t},!1,"setLeanBackMode")},removeAllAlerts:()=>{e({alertQueue:M.alertQueue},!1,"removeAllAlerts")},removePlayingAlert:()=>{e({alertPlaying:M.alertPlaying},!1,"removePlayingAlert")},reset:()=>{e({...M},!1,"reset")}}),{name:"ALERT STORE"})),L={clubs:[]},j=b()(w(e=>({...L,setClubs:t=>{e({clubs:[...t]},!1,"setClubs")},addClub:t=>{e(e=>({clubs:[...e.clubs,t]}),!1,"addClub")},updateClub:t=>{let{id:n,formation:r,shirtMainColor:a,shirtSecondaryColor:o,players:i}=t;e(e=>({clubs:e.clubs.map(e=>n===e.id?{...e,formation:r,shirtMainColor:a,shirtSecondaryColor:o,players:i}:e)}),!1,"updateClub")},setActionsOfPlayer:t=>{let{playerId:n,teamId:r,actions:a}=t;e(e=>({clubs:e.clubs.map(e=>{if(e.id===r){let t=e.players.map(e=>e.playerId===n?{...e,actions:a}:e);return{...e,players:t}}return e})}),!1,"setActionsOfPlayer")},reset:()=>{e({...L},!1,"reset")}}),{name:"CLUBS STORE"})),A={competitions:[]},N=b()(w(e=>({...A,setCompetitions:t=>{e({competitions:t},!1,"setCompetitions")},reset:()=>{e({...A},!1,"reset")}}),{name:"COMPETITIONS STORE"})),R={currentHighlight:null,playlist:null,matchHighlights:[]},F=b()(w(e=>({...R,setCurrentHighlight:t=>{e({currentHighlight:t},!1,"setCurrentHighlight")},setHighlightPlaylist:t=>{let n=[...t].sort((e,t)=>
138t.sceneStart-e.sceneStart);e({playlist:n},!1,"setHighlightPlaylist")},clearHighlights:()=>{e({playlist:R.playlist,currentHighlight:R.currentHighlight},!1,"clearHighlights")},reset:()=>{e({...R},!1,"reset")}}),{name:"HIGHLIGHTS STORE"})),D={mainMatchId:"",matches:[],spoilerMode:!0},H=e=>{let t={},n="whistle_end"===e.eventType,r="whistle_start"===e.eventType,a=e.matchPeriod;return r&&1===a||(n&&1===a?t.firstHalf=e.time:r&&2===a?t.halfTime=e.time:n&&2===a?t.secondHalf=e.time:r&&3===a?t.postRegular=e.time:n&&3===a?t.extraFirstHalf=e.time:r&&4===a?t.extraHalfTimeBreak=e.time:n&&4===a?t.extraSecondHalf=e.time:r&&5===a?t.prePenaltyShootout=e.time:n&&5===a&&(t.penaltyShootout=e.time)),t},B=b()(w((e,t)=>({...D,updateAllMatches:t=>{e(e=>({...e,matches:[...t]}),!1,"updateAllMatches")},updateMainMatch:t=>{e({mainMatchId:t},!1,"updateMainMatch")},updateMatchState:n=>{let{match_id:r,status:a,live_status:o}=n,i=t().matches.map(e=>{let{goalsAway:t,goalsHome:n}=e;return e.matchId===r&&(e.matchStatus=a,e.liveMatchStatus="POST_EXTRA_BREAK"===o&&t===n?"PENALTY_SHOOT_OUT":o),e});e({matches:[...i]},!1,"updateMatchState")},updateResultUpdate:n=>{let{match_id:r,goals_away:a,goals_home:o}=n,i=t().matches.map(e=>(e.matchId===r&&(e.goalsAway=a,e.goalsHome=o),e));e({matches:[...i]},!1,"updateResultUpdate")},updateMatchEventPackage:n=>{let{matchId:r,events:a}=n,o=t().matches.map(e=>(e.matchId===r&&(e.events=a,a.forEach(t=>{("whistle_end"===t.eventType||"whistle_start"===t.eventType)&&(e.matchTimesDelta={...e.matchTimesDelta,...H(t)})})),e));e({matches:[...o]},!1,"updateMatchEventPackage")},updateMatchEvent:n=>{let r=t().matches.map(e=>{if(e.matchId===n.matchId){let t=e.events.find(e=>e.eventId===n.eventId);if(!t)return e.events=[...e.events,n],e.events.forEach(t=>{("whistle_end"===t.eventType||"whistle_start"===t.eventType)&&(e.matchTimesDelta={...e.matchTimesDelta,...H(t)})}),e;t&&(e.events=e.events.map(e=>e.eventId===t.eventId?{...e,...n}:e))}return e});e({matches:[...r]},!1,"updateMatchEvent")},updateMatchInformation:n=>{let r=t().matches.map(e=>(e.matchId===n&&(e.hasMatchInformation=!0),e));e({matches:[...r]},!1,"updateMatchInformation")},setSpoilerMode:t=>{e({spoilerMode:t},!1,"toggleSpoilerMode")},toggleSpoilerMode:()=>{e({spoilerMode:!t().spoilerMode},!1,"toggleSpoilerMode")},toggleEventDisplay:n=>{let{matchId:r,eventId:a}=n,o=t().matches.map(e=>(e.matchId===r&&(e.events=e.events.map(e=>(e.eventId===a&&(e.display=!0),e))),e));e({matches:[...o]},!1,"toggleEventDisplay")},displayAllEvents:n=>{let r=t().matches.map(e=>(e.events=e.events.map(e=>(e.display=n,e)),e));e({matches:[...r]},!1,"displayAllEvents")},updateSyncPoint:n=>{let{syncPoint:r,matchId:a}=n,o=t().matches.map(e=>(e.matchId===a&&(e.syncPointTimeCode=r),e));e({matches:[...o]},!1,"updateSyncPoint")},reset:()=>{e({...D},!1,"reset")}}),{name:"MATCH STORE"})),z={matchStatistics:null,isFetching:!1,isRefetching:!1,isError:!1,isRefetchError:!1},W=b()(w(e=>({...z,setStatistics:t=>{e({matchStatistics:t,isFetching:!1,isRefetching:!1,isError:!1,isRefetchError:!1},!1,"setStatistics")},setFetching:t=>{e({isFetching:t,isError:!1},!1,"setFetching")},setRefetching:t=>{e({isRefetching:t,isRefetchError:!1},!1,"setRefetching")},setError:t=>{e({isError:t,isFetching:!1},!1,"setError")},setRefetchError:t=>{e({isRefetchError:t,isRefetching:!1},!1,"setRefetchError")},reset:()=>{e({...z},!1,"reset")}}),{name:"MATCH STATISTICS STORE"})),U={initialized:!1,registeredMatches:[],registeredPlayers:[]},$=b()(w((e,t)=>({...U,registerMatch:n=>{let r=t().registeredMatches.find(e=>e.matchId===n.matchId);r?(r.registeredComponents=[...r.registeredComponents,...n.registeredComponents],e({registeredMatches:[r]},!1,"registerMatch")):e({registeredMatches:[...t().registeredMatches,n]},!1,"registerMatch")},registerPlayer:n=>{t().registeredPlayers.find(e=>e===n)||e({registeredPlayers:[...t().registeredPlayers,n]},!1,"subscribePlayer")},unRegisterMatch:n=>{e({registeredMatches:t().registeredMatches.filter(e=>e.matchId!==n)},!1,"unRegisterMatch")},unRegisterPlayer:n=>{e({registeredPlayers:[...t().registeredPlayers.filter(e=>e!==n)]})},initNetwork:()=>{e({initialized:!0},!1,"initNetwork")},reset:()=>{e({...U},!1,"reset")}}),{name:"NETWORK STORE"})),K={paused:!(!window.tvx||!window.tvx.videoPlayer)&&window.tvx.videoPlayer.paused,muted:!(!window.tvx||!window.tvx.videoPlayer)&&window.tvx.videoPlayer.muted,volumeLevel:window.tvx&&window.tvx.videoPlayer?window.tvx.videoPlayer.volume:0,showEvents:!0,isFullscreen:!1,tvStreamingActive:!1,airplayActive:!1,isLive:!1,videoTime:0,videoDuration:0,videoTimeTemp:null,dragging:!1,rel:null,showVolumeBar:!1,quality:0,commentary:0,showCommentary:!1,segmentDuration:0,reliveTime:null,simulatedVideoTime:0},V=b()(w((e,t)=>({...K,setPaused:t=>{e({paused:t},!1,"setPaused")},toggleEvents:()=>{e({showEvents:!t().showEvents},!1,"toggleEvents")},toggleFullscreen:()=>{null===document.fullscreenElement||null===document.webkitFullscreenElement?e({isFullscreen:!1},!1,"toggleFullscreen"):(null!==document.fullscreenElement||null!==document.webkitFullscreenElement)&&e({isFullscreen:!0},!1,"toggleFullscreen")},toggleTVStreaming:()=>{e({tvStreamingActive:!t().tvStreamingActive}
138,!1,"toggleTVStreaming")},toggleAirplay:()=>{e({airplayActive:!t().airplayActive},!1,"toggleAirplay")},toggleMuted:()=>{e({muted:!t().muted},!1,"toggleMuted")},toggleShowVolumeBar:()=>{e({showVolumeBar:!t().showVolumeBar},!1,"toggleShowVolumeBar")},toggleShowCommentary:()=>{e({showCommentary:!t().showCommentary},!1,"toggleShowCommentary")},updateVideoTime:t=>{e({videoTime:t},!1,"updateVideoTime")},updateVideoDuration:t=>{e({videoDuration:t},!1,"updateVideoDuration")},setLive:t=>{e({isLive:t},!1,"setLive")},setVideotimeTemp:t=>{e({videoTimeTemp:t},!1,"setVideotimeTemp")},setDragging:t=>{e({dragging:t},!1,"setDragging")},setRel:t=>{e({rel:t},!1,"setRel")},setQuality:t=>{e({quality:t},!1,"setQuality")},setCommentary:t=>{e({commentary:t},!1,"setCommentary")},updateReliveTime:t=>{e({reliveTime:t},!1,"updateReliveTime")},updateSimVideoTime:()=>{e({simulatedVideoTime:t().simulatedVideoTime+1},!1,"updateSimVideoTime")},setVolumeLevel:t=>{e({volumeLevel:t},!1,"setVolumeLevel")},setMute:t=>{e({muted:t},!1,"setMute")},setShowVolumeBar:t=>{e({showVolumeBar:t},!1,"setShowVolumeBar")},reset:()=>{e({...K},!1,"reset")}}),{name:"VIDEO CONTROLS STORE"})),G=s(3102),X=s(9814),q=s(71),Y=s(4427),Q=s(6064),J=class e{static initialize(){G.Debugger.console(0,"[Init] SDK service initialized"),window.tvx.tvxAppInitialized=!1,window.tvx.prepareMatch=this.prepareMatch,window.tvx.getCurrentMatch=this.getCurrentMatch,window.tvx.updateMainMatch=this.updateMainMatch}static prepareMatch(t){if(!t)return G.Debugger.console(0,"[Init] Unable to set prepared (main) match with matchId: "+t),T.U.trigger("warning",{code:"300",name:"missingOrEmptyParameter",errorMessage:"Missing or empty parameter passed to method",customMessage:"PrepareMatch matchId missing or not in list of available matches"}),!1;G.Debugger.console(0,"[Init] Set prepared (main) match with matchId: "+t),e.mainMatchId=t}static preInitializeUI(){G.Debugger.console(0,"[Init] Pre-Initializing UI ..."),T.U.trigger("onReady"),this.checkAvailableMatches()}static async checkAvailableMatches(){G.Debugger.console(0,"[Version] App version: "+(0,E.TVXCONFIG)().appVersion),G.Debugger.console(0,"[Init] Checking for available matches ...");let e=(0,E.TVXCONFIG)().takerId,t="live"!==(0,E.TVXCONFIG)().appMode?(0,E.TVXCONFIG)().matchDayReplay:"",n=await(0,X.GK)(e,t);if(!n||n&&0===n.length)return G.Debugger.console(0,"[Init] No matches available"),T.U.trigger("error",{code:"100",name:"backendUnavailable",errorMessage:"We're sorry, we're currently facing a heavy load of viewers. Please try again shortly. Thanks for waiting. [100]",customMessage:"Backend unavailable: Empty configData call"+(n.length>0?" | Additional error code ":"")}),!1;let r=await(0,X.FG)(e,t);if(!n)return G.Debugger.console(0,"[Init] No matches available!"),T.U.trigger("error",{code:"401",name:"noMatchesAvailable",errorMessage:"No matches are available",customMessage:"No matches are available"}),[];{let e=[],t=new Date;if(n.forEach(function(n){let a=r.find(e=>e.match_id===n.match_id),o=new Date(a.planned_kickoff),i=(0,q.ZE)(o,t);n.sync_points.length>0&&a.is_allowed?(i>(0,E.TVXCONFIG)().matchAvailableBeforeKickOff&&i<(0,E.TVXCONFIG)().matchAvailableAfterKickOff&&("live"===(0,E.TVXCONFIG)().appMode||"liveplusmd"===(0,E.TVXCONFIG)().appMode)&&e.push({matchId:n.match_id,customMetadata:n.meta,streamUrl:n.sync_points[0].stream_url,syncPointTimeCode:parseInt(n.sync_points[0].time_code)}),"live"!==(0,E.TVXCONFIG)().appMode&&e.push({matchId:n.match_id,customMetadata:n.meta,streamUrl:n.sync_points[0].stream_url,syncPointTimeCode:parseInt(n.sync_points[0].time_code)})):G.Debugger.console(1,"[Error] Missing stream_url for matchId "+n.match_id)}),e.sort((e,t)=>e.syncPointTimeCode-t.syncPointTimeCode),e?.length>0&&e.forEach(e=>delete e.syncPointTimeCode),e?.length>0)return window.tvx.availableMatches=e,T.U.trigger("onMatchesAvailable",e);if(0===e?.length)return G.Debugger.console(0,"[Init] No matches available!"),T.U.trigger("error",{code:"401",name:"noMatchesAvailable",errorMessage:"No matches are available",customMessage:"No matches are available"}),[]}}static findVideoElement(e){let t="";if("object"==typeof e)return e;if(document.getElementById(e)&&"VIDEO"===document.getElementById(e).nodeName)t=document.getElementById(e),G.Debugger.console(0,"[VideoPlayer] Found video player by ID "+e);else if(document.getElementsByClassName(e)[0]&&"VIDEO"===document.getElementsByClassName(e)[0].nodeName)t=document.getElementsByClassName(e)[0],G.Debugger.console(0,"[VideoPlayer] Found video player by class "+e);else{if(!document.querySelector("#"+e+" video")||"VIDEO"!==document.querySelector("#"+e+" video").nodeName)return T.U.trigger("error",{code:"200",name:"invalidSdkConfig",errorMessage:"No element found with given videoPlayerId",customMessage:"No element found with given videoPlayerId"}),!1;t=document.querySelector("#"+e+" video"),G.Debugger.console(0,"[VideoPlayer] Found video player tag in wrapper by ID "+e)}return t}static getCurrentMatch(){let{matches:e,mainMatchId:t}=B.getState(),n=e.find(e=>
138e.matchId===t);return{matchId:n.matchId,streamUrl:n.streamUrl,customMetadata:n.customMetadata}}static updateMainMatch(e){let{updateMainMatch:t}=B.getState();t(e)}},Z=e=>{switch(e){case"goal":case"woodwork":case"shot_wide":case"shot_saved":case"shot_blocked":case"shot_at_target":case"goal_denied":case"yellow_red_card":case"red_card":case"own_goal":case"chance_missed":case"penalty_missed":case"direct_free_kick":case"var":return!0;default:return!1}},ee=e=>{switch(e){case"goal":case"woodwork":case"goal_denied":case"yellow_red_card":case"red_card":case"own_goal":case"chance_missed":case"penalty_missed":return!0;default:return!1}},te=e=>{switch(e){case"goal":case"own_goal":case"var":case"penalty":case"penalty_missed":case"chance_missed":case"red_card":case"yellow_red_card":case"woodwork":case"shot_saved":case"shot_wide":case"shot_at_target":return!0;default:return!1}},ne=e=>{let{spoilerMode:t}=B.getState();return{eventId:e.event_id,eventType:e.event_type,matchId:e.match_id,matchPeriod:e.match_period,matchMinute:e.match_minute,syncPointId:e.sync_point_id,sceneStart:e.scene_start,sceneEnd:e.scene_end,time:e.time,display:t,attractiveness:e.attractiveness,isTimelineEvent:ee(e.event_type),isHighlightEvent:Z(e.event_type),isAlertEvent:te(e.event_type),playerId:e.player_id||e.shooting_player||e.causing_player||e.scorer_id||e.player,afterFreeKick:e.after_free_kick,afterPenalty:e.after_penalty,reason:e.reason,resultLabel:e.result_label,resultAway:e.result_away,resultHome:e.result_home,startingTeam:e.starting_team,team:e.team,nestedEvent:e.nested_event,decision:e.decision}},re=e=>{switch(e){case"TW":case"goalkeeper":case"Torwart":case"torwart":return 0;case"LV":case"IVL":case"IVZ":case"IVR":case"RV":case"defense":case"Abwehr":case"abwehr":return 1;case"DLM":case"DML":case"DMZ":case"DMR":case"DRM":case"LM":case"HL":case"MZ":case"HR":case"RM":case"OLM":case"OHL":case"ZO":case"OHR":case"ORM":case"midField":case"Mittelfeld":case"mittelfeld":default:return 2;case"HST":case"STL":case"STZ":case"STR":case"LA":case"RA":case"offense":case"Offensive":case"offensive":case"Offensiv":case"offensiv":return 3}},ae=e=>{let t=(0,Y.t)("player_statistics_no_name_available");if(!e)return t;let n=e.trim();return n.length>0?n:t},oe=e=>{if(e){let t=ae(e.first_name),n=ae(e.last_name),r=ae(e.display_name??n??t),a=e.playing_position??"midField";return{playerId:e.player_id,firstName:t,lastName:n,displayName:r,position:re(a),number:e.shirt_number,actions:[],lineupPosition:a,imageUrl:e.image_url,teamId:e.team_id,teamLeader:!1,starting:!1,shirtMainColor:e.default_main_color,shirt
138SecondaryColor:e.default_secondary_color,teamMainColor:ie(e.team_id).teamMainColor,teamSecondaryColor:ie(e.team_id).teamSecondaryColor,teamLogo:ie(e.team_id)?ie(e.team_id).logo:"",teamShortName:ie(e.team_id)?ie(e.team_id).shortName:""}}},ie=e=>{let t=j.getState().clubs.find(t=>t.id===e);if(t)return{id:t.id,threeLetterCode:t.threeLetterCode,shortName:t.shortName,logo:t.logo,teamMainColor:t.teamMainColor,teamSecondaryColor:t.teamSecondaryColor}},se=e=>({category:e.category,categoryPoints:e.categoryPoints,clubName:e.clubName,clubLogo:e.clubLogo,season:e.season,ranking:e.ranking,playerImage:e.playerImage,playerName:e.playerName,shirtMainColor:e.shirtMainColor,shirtSecondaryColor:e.shirtSecondaryColor,rankingListData:e.rankingListData,matchPlayer:e.matchPlayer,isExpanded:!1}),le=(e,t,n=[])=>{let r=new Map(n.map(e=>[e.playerId,e]));return e.map(e=>{let n=ae(e.first_name),a=ae(e.last_name),o=ae(e.display_name??a??n),i=e.playing_position??"midField";return{playerId:e.player_id,firstName:n,lastName:a,displayName:o,position:re(i),lineupPosition:i,number:e.shirt_number,actions:r.get(e.player_id)?.actions||[],imageUrl:e.image_url,teamLeader:e.team_leader,teamId:t.team_id,teamLogo:t.logo_url,teamShortName:t.short_name,starting:e.starting,shirtMainColor:t.shirt_main_color,shirt
138SecondaryColor:t.shirt_secondary_color,teamMainColor:ie(t.team_id).teamMainColor,teamSecondaryColor:ie(t.team_id).teamSecondaryColor}})},ce=null,ue=null,de=()=>{let{initialized:e,reset:t}=$.getState();e&&(ce&&(clearInterval(ce),ce=null),pe(),t(),G.Debugger.console(0,"[Config] Network destroyed"))},pe=()=>{ue?(clearInterval(ue),ue=null,G.Debugger.console(0,"[Sync] Stopped sync match information")):G.Debugger.console(0,"[Sync] No match information interval to stop")},fe=e=>e.length>1?e.sort((e,t)=>e.plannedKickOffTime.getTime()<t.plannedKickOffTime.getTime()?-1:1)[0]:1===e.length?e[0]:null,he=e=>({id:e.team_id,threeLetterCode:e.three_letter_code,shortName:e.short_name,longName:e.long_name,clubName:e.club_name,logo:e.logo_url?e.logo_url.replace(".png",".svg"):e.logo_url,shirtMainColor:"",shirtSecondaryColor:"",teamMainColor:e.team_main_color,teamSecondaryColor:e.team_secondary_color,players:[],formation:""}),ge=async e=>{try{let t=await(0,X.iZ)(e),{updateMatchState:n}=B.getState(),{clubs:r,updateClub:a}=j.getState(),{away_team:o,home_team:i,match_state_information:s}=t,{live_status:l,status:c,time:u}=s,d=r.find(e=>e.id===o.team_id),p=r.find(e=>e.id===i.team_id);n({match_id:e,live_status:l,status:c,time:u}),a({id:o.team_id,formation:o.formation,shirtMainColor:o.shirt_main_color,shirt
138SecondaryColor:o.shirt_secondary_color,players:le(o.players,o,d?.players)}),a({id:i.team_id,formation:i.formation,shirtMainColor:i.shirt_main_color,shirtSecondaryColor:i.shirt_secondary_color,players:le(i.players,i,p?.players)}),G.Debugger.console(0,`[Match Information] Updated match information for match: ${e}`)}catch(e){G.Debugger.console(2,`[Match Information] Error updating match information: ${e}`)}},me=(e,t)=>{let{registerMatch:n}=$.getState(),{matches:r,updateMatchInformation:a}=B.getState(),o=r.find(t=>t.matchId===e);o&&o.hasMatchInformation?(G.Debugger.console(0,"[Init] Registering without prior match information call"),n({matchId:e,registeredComponents:[t]})):(async e=>{let t=await(0,X.iZ)(e),{updateMatchState:n}=B.getState(),{updateClub:r}=j.getState(),{away_team:a,home_team:o,match_state_information:i}=t,{live_status:s,status:l,time:c}=i;n({match_id:e,live_status:s,status:l,time:c}),r({id:a.team_id,formation:a.formation,shirtMainColor:a.shirt_main_color,shirtSecondaryColor:a.shirt_secondary_color,players:le(a.players,a)}),r({id:o.team_id,formation:o.formation,shirtMainColor:o.shirt_main_color,shirt
138SecondaryColor:o.shirt_secondary_color,players:le(o.players,o)})})(e).then(()=>{G.Debugger.console(0,"[Init] Got match information for match "+e),n({matchId:e,registeredComponents:[t]}),a(e)}).catch(e=>{G.Debugger.console(2,"tvxBackendUnreachable "+e)})},ye=()=>{let{registeredMatches:e,unRegisterMatch:t}=$.getState(),{mainMatchId:n}=B.getState();e.forEach(e=>{e.matchId!==n&&!e.registeredComponents.includes("ALERTS")&&t(e.matchId)})},ve=e=>{let t=e??(0,E.TVXCONFIG)().defaultPhaseLengthSeconds.pre,n=(0,E.TVXCONFIG)().defaultPhaseLengthSeconds.firstHalf,r=n+(0,E.TVXCONFIG)().defaultPhaseLengthSeconds.halfTime,a=r+(0,E.TVXCONFIG)().defaultPhaseLengthSeconds.secondHalf,o=a+(0,E.TVXCONFIG)().defaultPhaseLengthSeconds.post,i=o+(0,E.TVXCONFIG)().defaultPhaseLengthSeconds.extraFirstHalf,s=i+(0,E.TVXCONFIG)().defaultPhaseLengthSeconds.extraHalfTime,l=s+(0,E.TVXCONFIG)().defaultPhaseLengthSeconds.extraSecondHalf,c=l+(0,E.TVXCONFIG)().defaultPhaseLengthSeconds.prePenaltyShootout,u=c+(0,E.TVXCONFIG)().defaultPhaseLengthSeconds.penaltyShootout;return{prePhase:t,firstHalf:n,halfTime:r,secondHalf:a,postPhase:o,extraFirstHalf:i,extraHalfTimeBreak:s,extraSecondHalf:l,postRegular:u+(0,E.TVXCONFIG)().defaultPhaseLengthSeconds.postRegular,prePenaltyShootout:c,penaltyShootout:u}},be=class e{static{this.matchId=""}static initialize(){G.Debugger.console(0,"Alerts service initialized"),window.tvx.setAlertSettings=this.setAlertSettings,window.tvx.closeAlertsMenu=this.closeAlertsMenu}static getPreset(e){switch(e){case"preset1":return(0,E.TVXCONFIG)().alertPreset1;case"preset2":return(0,E.TVXCONFIG)().alertPreset2;case"custom":return(0,E.TVXCONFIG)().alertPresetCustom}}static getCustomSettings(e){return{goals:e.goals,penalties:e.penalties,bigChance:e.bigChance,shotOnGoal:e.shotOnGoal,totalShots:e.totalShots,var:e.var,dismissals:e.dismissals}}static setAlertSettings(t){if(!t.hasOwnProperty("matches")||!t.hasOwnProperty("autopilot"))return G.Debugger.console(0,"Invalid alert settings"),T.U.trigger("error",{code:"500",name:"Invalid alert settings",errorMessage:"Invalid alert settings",customMessage:"Invalid alert settings. Settings object details:"+JSON.stringify(t,null,2)}),!1;if(!t.matches.length)return;let{matches:n}=B.getState(),{setLeanBackMode:r}=O.getState();t.matches.forEach(t=>{n.find(e=>t.matchId===e.matchId)&&(e.setMatchAlerts(t),me(t.matchId,"ALERTS"))}),setTimeout(function(){"boolean"==typeof t.autopilot&&(r(t.autopilot),G.Debugger.console(0,"[Alerts] Set autopilot to "+t.autopilot))},400)}static setMatchAlerts(t){if(!t)return;let{preset:n,matchId:r,active:a,customSettings:o}=t,{updateMatchAlertConfig:i}=O.getState();i({matchId:r,active:a,preset:"preset1"===n?"PRESET_1":"preset2"===n?"PRESET_2":"custom"===n?"CUSTOM":"NONE",...o||e.getPreset(n)}),G.Debugger.console(0,"[Alerts] Set alerts configuration for match: "+t.matchId)}static onSaveAlerts(t){let{configs:n,leanbackOn:r}=O.getState(),a=n.find(e=>e.matchId===t),o=n.map(t=>{let{preset:n}=t;return{matchId:t.matchId,active:t.active,preset:"PRESET_1"===n?"preset1":"PRESET_2"===n?"preset2":"CUSTOM"===n?"custom":"none",customSettings:e.getCustomSettings(t)}});if(e.matchId=t,"allMatchSettings"===t)e.presets=a;else{let r=n.find(e=>e.matchId===t);e.presets=e.getCustomSettings(r)}T.U.trigger("onSaveAlerts",{matches:o,autopilot:r})}static closeAlertsMenu(){let{toggleAlertSettingsOverlay:e}=O.getState();e()}static onSaveAlertsCheckBox(t){let{configs:n,leanbackOn:r}=O.getState(),a=n.find(e=>e.matchId===t),o=n.map(t=>{let{preset:n}=t;return{matchId:t.matchId,active:t.active,preset:"PRESET_1"===n?"preset1":"PRESET_2"===n?"preset2":"CUSTOM"===n?"custom":"none",customSettings:e.getCustomSettings(t)}});e.presets=a,e.matchId=t,T.U.trigger("onSaveAlertsCheckBox",{matches:o,autopilot:r})}static onLeanBackModeClick(){let{configs:t,leanbackOn:n}=O.getState(),r=t.map(t=>{let{preset:n}=t;return{matchId:t.matchId,active:t.active,preset:"PRESET_1"===n?"preset1":"PRESET_2"===n?"preset2":"CUSTOM"===n?"custom":"none",customSettings:e.getCustomSettings(t)}});T.U.trigger("onLeanBackModeClick",{matches:r,autopilot:n})}static{this.getClubIdOfMatchEvent=e=>{let{matches:t}=B.getState(),{clubs:n}=j.getState(),r=t.find(t=>
138t.matchId===e.matchId),a=r.homeClub.id,o=r.guestClub.id;if(r&&a&&o){let t=n.find(e=>e.id===a).players,r=n.find(e=>e.id===o).players;if(t.find(t=>t.playerId===e.playerId))return a;if(r.find(t=>t.playerId===e.playerId))return o}}}static isMatchEventSavedAlert(e){switch(e){case"goal":case"own_goal":case"var":case"penalty":case"chance_missed":case"red_card":case"yellow_red_card":case"woodwork":return!0;default:return!1}}static sendAlert(t,n){G.Debugger.console(0,"[Alerts] Processing incoming alert\nalertId: "+t.eventId+"\nalertType: "+t.eventType+"\nalertMinute: "+t.matchMinute+"\nsceneStart: "+t.sceneStart+"\nsceneEnd: "+t.sceneEnd+"\nmatchId: "+t.matchId+"\nmainMatchId: "+n);let r=O.getState().configs.find(e=>e.matchId===t.matchId);r&&r.active?r.bigChance&&"big_chance"===t.eventType||r.goals&&"goal"===t.eventType||r.goals&&"own_goal"===t.eventType||r.penalties&&"penalty_missed"===t.eventType||r.dismissals&&"red_card"===t.eventType||r.totalShots&&("shot_wide"===t.eventType||"shot_saved"===t.eventType||"shot_at_target"===t.eventType||"shot_blocked"===t.eventType)||r.shotOnGoal&&("shot_blocked"===t.eventType||"shot_saved"===t.eventType)||r.var&&"var"===t.eventType||r.penalties&&"penalty"===t.eventType?t.matchId===n?e.isMatchEventSavedAlert(t.eventType)&&(O.getState().setSavedAlert({...t,clubId:e.getClubIdOfMatchEvent(t)}),G.Debugger.console(0,'[Alerts] Saved alert for current match | "'+t.eventType+'" ('+t.eventId+") | MatchId: "+t.matchId,"darkorange")):(O.getState().addAlertToQueue({...t,clubId:e.getClubIdOfMatchEvent(t)}),G.Debugger.console(0,'[Alerts] Added to alert queue | "'+t.eventType+'" ('+t.eventId+") | MatchId: "+t.matchId,"green")):G.Debugger.console(0,'[Alerts] Not added to queue (alert type not set in alert settings): "'+t.eventType+'" ('+t.eventId+") | Alert settings for matchId "+t.matchId+" not including alert type "+t.eventType,"red"):G.Debugger.console(0,'[Alerts] Not added to queue (match not set in alert settings): "'+t.eventType+'" ('+t.eventId+") | MatchId: "+t.matchId,"red")}},xe=class e{static{this.fetchMissingClubs=async e=>{if(!e||0===e.length)return;let{clubs:t,addClub:n}=j.getState(),r=new Set;if(e.forEach(e=>{let n=String(e.home_team_id),a=String(e.away_team_id);t.find(e=>e.id===n)||r.add(n),t.find(e=>e.id===a)||r.add(a)}),0===r.size)return;let a=Array.from(r).map(e=>(0,X.z6)(e));(await Promise.all(a)).forEach(e=>{let t={id:e.team_id,threeLetterCode:e.three_letter_code,shortName:e.short_name,longName:e.long_name,clubName:e.club_name,logo:e.logo_url?e.logo_url.replace(".png",".svg"):e.logo_url,shirtMainColor:"",shirtSecondaryColor:"",teamMainColor:e.team_main_color,teamSecondaryColor:e.team_secondary_color,players:[],formation:""};n(t)})}}static convertResult(e){if(!e||"NOT_FINISHED_YET"===e.extra_time_qualifier)return null;let t="REGULAR",n=e.extra_time_qualifier;return"EXTRA_TIME"===n?t="EXTRA_TIME":"PENALTY"===n&&(t="PENALTY"),{homeScore:e.home_score,awayScore:e.away_score,label:e.label,extraTimeQualifier:t}}static convertMatch(e){let t=String(e.home_team_id),n=String(e.away_team_id),r=ie(t),a=ie(n);(!r||!a)&&G.Debugger.console(2,`[KOTreeService] Failed to convert clubs for match ${e.match_id}`,"red");let o=e.result?this.convertResult(e.result):null;return{matchId:e.match_id,homeTeamId:t,awayTeamId:n,homeTeam:r,awayTeam:a,plannedKickoff:new Date(e.planned_kickoff),result:o}}static async jsonToKOTreeData(t){if(!t.knock_out_data||!Array.isArray(t.knock_out_data)||0===t.knock_out_data.length)return{competitionId:t.competition_id||"",rounds:[]};let n=t.knock_out_data.map(e=>e.match);await e.fetchMissingClubs(n);let r=new Map;t.knock_out_data.forEach(t=>{let n=t.round.index,a=t.round.name;r.has(n)||r.set(n,{index:n,name:a,matches:[]});let o=r.get(n);o&&o.matches.push(e.convertMatch(t.match))});let a=Array.from(r.values()).sort((e,t)=>t.index-e.index);return{competitionId:t.competition_id||"",rounds:a}}static async getKOTree(t){let n=await(0,X.pG)(t||null);return await e.jsonToKOTreeData(n)}static async getKOTreeForCurrentMatch(){let{matches:t,mainMatchId:n}=B.getState(),r=t.find(e=>e.matchId===n)?.competitionId;return r?await e.getKOTree(r):(G.Debugger.console(2,"[KOTreeService] No competition ID found for current match","red"),{competitionId:"",rounds:[]})}},Se=[{lineUpName:"3-1-4-2",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivz",coordinates:{x:.5,y:.83}},{playerPosition:"dmz",coordinates:{x:.5,y:.5}},{playerPosition:"hl",coordinates:{x:.49,y:.34}},{playerPosition:"stl",coordinates:{x:.49,y:.01}},{playerPosition:"hr",coordinates:{x:.51,y:.34}},{playerPosition:"lm",coordinates:{x:.04,y:.18}},{playerPosition:"ivr",coordinates:{x:.96,y:.66}},{playerPosition:"ivl",coordinates:{x:.04,y:.66}},{playerPosition:"str",coordinates:{x:.51,y:.01}},{playerPosition:"rm",coordinates:{x:.96,y:.18}}]},{lineUpName:"3-3-2-2",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivz",coordinates:{x:.5,y:.83}},{playerPosition:"dmz",coordinates:{x:.5,y:.5}},{playerPosition:"dlm",coordinates:{x:.04,y:.34}},{playerPosition:"stl",coordinates:{x:.49,y:.01}},{playerPosition:"drm",coordinates:{x:.96,y:.34}},{playerPosition:"hl",coordinates:{x:.49,y:.18}},{playerPosition:"ivr",coordinates:{x:.96,y:.66}},{playerPosition:"ivl",coordinates:{x:.04,y:.66}},{playerPosition:"str",coordinates:{x:.51,y:.01}},{playerPosition:"hr",coordinates:{x:.51,y:.18}}]},{lineUpName:"3-3-2-2 Double-10",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivz",coordinates:{x:.5,y:.83}},{playerPosition:"dmz",coordinates:{x:.5,y:.5}},{playerPosition:"lm",coordinates:{x:.04,y:.34}},{playerPosition:"stl",coordinates:{x:.49,y:.01}},{playerPosition:"rm",coordinates:{x:.96,y:.34}},{playerPosition:"ohl",coordinates:{x:.49,y:.18}},{playerPosition:"ivr",coordinates:{x:.96,y:.66}},{playerPosition:"ivl",coordinates:{x:.04,y:.66}},{playerPosition:"str",coordinates:{x:.51,y:.01}},{playerPosition:"ohr",coordinates:{x:.51,y:.18}}]},{lineUpName:"3-3-3-1",players:[{playerPosition:"tw",coordinates:{x:.5,y:.98}},{playerPosition:"dmr",coordinates:{x:.96,y:.56}},{playerPosition:"ivz",coordinates:{x:.5,y:.81}},{playerPosition:"IVL",coordinates:{x:.04,y:.81}},{playerPosition:"stz",coordinates:{x:.5,y:0}},{playerPosition:"dml",coordinates:{x:.04,y:.56}},{playerPosition:"ORM",coordinates:{x:.96,y:.3}},{playerPosition:"dmz",coordinates:{x:.5,y:.56}},{playerPosition:"ivr",coordinates:{x:.96,y:.81}},{playerPosition:"zo",coordinates:{x:.5,y:.3}},{playerPosition:"OLM",coordinates:{x:.04,y:.3}}]},{lineUpName:"3-4-1-2",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivz",coordinates:{x:.5,y:.83}},{playerPosition:"dml",coordinates:{x:.49,y:.5}},{playerPosition:"lm",coordinates:{x:.04,y:.34}},{playerPosition:"str",coordinates:{x:.51,y:.01}},{playerPosition:"rm",coordinates:{x:.96,y:.34}},{playerPosition:"zo",coordinates:{x:.5,y:.18}},{playerPosition:"ivr",coordinates:{x:.96,y:.66}},{playerPosition:"ivl",coordinates:{x:.04,y:.66}},{playerPosition:"stl",coordinates:{x:.49,y:.01}},{playerPosition:"dmr",coordinates:{x:.51,y:.5}}]},{lineUpName:"3-4-1-2 defensive Midfielder",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivz",coordinates:{x:.5,y:.83}},{playerPosition:"dml",coordinates:{x:.49,y:.5}},{playerPosition:"dlm",coordinates:{x:.04,y:.34}},{playerPosition:"str",coordinates:{x:.51,y:.01}},{playerPosition:"drm",coordinates:{x:.96,y:.34}},{playerPosition:"zo",coordinates:{x:.5,y:.18}},{playerPosition:"ivr",coordinates:{x:.96,y:.66}},{playerPosition:"ivl",coordinates:{x:.04,y:.66}},{playerPosition:"stl",coordinates:{x:.49,y:.01}},{playerPosition:"dmr",coordinates:{x:.51,y:.5}}]},{lineUpName:"3-4-2-1",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivz",coordinates:{x:.5,y:.83}},{playerPosition:"dml",coordinates:{x:.49,y:.5}},{playerPosition:"lm",coordinates:{x:.04,y:.34}},{playerPosition:"orm",coordinates:{x:.96,y:.17}},{playerPosition:"rm",coordinates:{x:.96,y:.34}},{playerPosition:"olm",coordinates:{x:.04,y:.17}},{playerPosition:"ivr",coordinates:{x:.96,y:.66}},{playerPosition:"ivl",coordinates:{x:.04,y:.66}},{playerPosition:"stz",coordinates:{x:.5,y:.01}},{playerPosition:"dmr",coordinates:{x:.51,y:.5}}]},{lineUpName:"3-4-2-1 defensive Midfielder",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivz",coordinates:{x:.5,y:.83}},{playerPosition:"dml",coordinates:{x:.49,y:.5}},{playerPosition:"dlm",coordinates:{x:.04,y:.34}},{playerPosition:"orm",coordinates:{x:.96,y:.17}},{playerPosition:"drm",coordinates:{x:.96,y:.34}},{playerPosition:"olm",coordinates:{x:.04,y:.17}},{playerPosition:"ivr",coordinates:{x:.96,y:.66}},{playerPosition:"ivl",coordinates:{x:.04,y:.66}},{playerPosition:"stz",coordinates:{x:.5,y:.01}},{playerPosition:"dmr",coordinates:{x:.51,y:.5}}]},{lineUpName:"3-4-2-1 Double-10",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivz",coordinates:{x:.5,y:.83}},{playerPosition:"dml",coordinates:{x:.49,y:.5}},{playerPosition:"dlm",coordinates:{x:.04,y:.34}},{playerPosition:"ohr",coordinates:{x:.51,y:.17}},{playerPosition:"drm",coordinates:{x:.96,y:.34}},{playerPosition:"ohl",coordinates:{x:.49,y:.17}},{playerPosition:"ivr",coordinates:{x:.96,y:.66}},{playerPosition:"ivl",coordinates:{x:.04,y:.66}},{playerPosition:"stz",coordinates:{x:.5,y:.01}},{playerPosition:"dmr",coordinates:{x:.51,y:.5}}]},{lineUpName:"3-4-3",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivz",coordinates:{x:.5,y:.83}},{playerPosition:"dml",coordinates:{x:.49,y:.5}},{playerPosition:"lm",coordinates:{x:.04,y:.34}},{playerPosition:"ra",coordinates:{x:.96,y:.17}},{playerPosition:"rm",coordinates:{x:.96,y:.34}},{playerPosition:"la",coordinates:{x:.04,y:.17}},{playerPosition:"ivr",coordinates:{x:.96,y:.66}},{playerPosition:"ivl",coordinates:{x:.04,y:.66}},{playerPosition:"stz",coordinates:{x:.5,y:.01}},{playerPosition:"dmr",coordinates:{x:.51,y:.5}}]},{lineUpName:"3-4-3 defensive Midfielder",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivz",coordinates:{x:.5,y:.83}},{playerPosition:"dml",coordinates:{x:.49,y:.5}},{playerPosition:"dlm",coordinates:{x:.04,y:.34}},{playerPosition:"ra",coordinates:{x:.96,y:.17}},{playerPosition:"drm",coordinates:{x:.96,y:.34}},{playerPosition:"la",coordinates:{x:.04,y:.17}},{playerPosition:"ivr",coordinates:{x:.96,y:.66}},{playerPosition:"ivl",coordinates:{x:.04,y:.66}},{playerPosition:"stz",coordinates:{x:.5,y:.01}},{playerPosition:"dmr",coordinates:{x:.51,y:.5}}]},{lineUpName:"3-4-3 Diamond",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivz",coordinates:{x:.5,y:.83}},{playerPosition:"lm",coordinates:{x:.04,y:.5}},{playerPosition:"zo",coordinates:{x:.5,y:.34}},{playerPosition:"ra",coordinates:{x:.96,y:.17}},{playerPosition:"dmz",coordinates:{x:.5,y:.66}},{playerPosition:"la",coordinates:{x:.04,y:.17}},{playerPosition:"ivr",coordinates:{x:.96,y:.83}},{playerPosition:"ivl",coordinates:{x:.04,y:.83}},{playerPosition:"stz",coordinates:{x:.5,y:.01}},{playerPosition:"rm",coordinates:{x:.96,y:.5}}]},{lineUpName:"3-5-1-1",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivz",coordinates:{x:.5,y:.83}},{playerPosition:"mz",coordinates:{x:.5,y:.5}},{playerPosition:"lm",coordinates:{x:.04,y:.34}},{playerPosition:"rm",coordinates:{x:.96,y:.34}},{playerPosition:"dml",coordinates:{x:.49,y:.66}},{playerPosition:"hst",coordinates:{x:.5,y:.17}},{playerPosition:"ivr",coordinates:{x:.96,y:.83}},{playerPosition:"ivl",coordinates:{x:.04,y:.83}},{playerPosition:"stz",coordinates:{x:.5,y:.01}},{playerPosition:"dmr",coordinates:{x:.51,y:.66}}]},{lineUpName:"3-5-1-1 defensive Outliner",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivz",coordinates:{x:.5,y:.83}},{playerPosition:"dlm",coordinates:{x:.04,y:.5}},{playerPosition:"mz",coordinates:{x:.5,y:.34}},{playerPosition:"drm",coordinates:{x:.96,y:.5}},{playerPosition:"dml",coordinates:{x:.49,y:.66}},{playerPosition:"hst",coordinates:{x:.5,y:.17}},{playerPosition:"ivr",coordinates:{x:.96,y:.83}},{playerPosition:"ivl",coordinates:{x:.04,y:.83}},{playerPosition:"stz",coordinates:{x:.5,y:.01}},{playerPosition:"dmr",coordinates:{x:.51,y:.66}}]},{lineUpName:"4-1-3-2",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivr",coordinates:{x:.51,y:.83}},{playerPosition:"orm",coordinates:{x:.96,y:.17}},{playerPosition:"zo",coordinates:{x:.5,y:.34}},{playerPosition:"dmz",coordinates:{x:.5,y:.5}},{playerPosition:"ivl",coordinates:{x:.49,y:.83}},{playerPosition:"olm",coordinates:{x:.04,y:.17}},{playerPosition:"rv",coordinates:{x:.96,y:.66}},{playerPosition:"lv",coordinates:{x:.04,y:.66}},{playerPosition:"stl",coordinates:{x:.49,y:.01}},{playerPosition:"str",coordinates:{x:.51,y:.01}}]},{lineUpName:"4-1-4-1",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivr",coordinates:{x:.51,y:.83}},{playerPosition:"rm",coordinates:{x:.96,y:.17}},{playerPosition:"hl",coordinates:{x:.49,y:.34}},{playerPosition:"dmz",coordinates:{x:.5,y:.5}},{playerPosition:"ivl",coordinates:{x:.49,y:.83}},{playerPosition:"lm",coordinates:{x:.04,y:.17}},{playerPosition:"rv",coordinates:{x:.96,y:.66}},{playerPosition:"lv",coordinates:{x:.04,y:.66}},{playerPosition:"stz",coordinates:{x:.5,y:.01}},{playerPosition:"hr",coordinates:{x:.51,y:.34}}]},{lineUpName:"4-1-4-1 central Double-10",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivr",coordinates:{x:.51,y:.83}},{playerPosition:"ohr",coordinates:{x:.51,y:.17}},{playerPosition:"lm",coordinates:{x:.04,y:.34}},{playerPosition:"dmz",coordinates:{x:.5,y:.5}},{playerPosition:"ivl",coordinates:{x:.49,y:.83}},{playerPosition:"ohl",coordinates:{x:.49,y:.17}},{playerPosition:"rv",coordinates:{x:.96,y:.66}},{playerPosition:"lv",coordinates:{x:.04,y:.66}},{playerPosition:"stz",coordinates:{x:.5,y:.01}},{playerPosition:"rm",coordinates:{x:.96,y:.34}}]},{lineUpName:"4-1-4-1 offensive Midfielder",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivr",coordinates:{x:.51,y:.83}},{playerPosition:"orm",coordinates:{x:.96,y:.17}},{playerPosition:"ohl",coordinates:{x:.49,y:.34}},{playerPosition:"dmz",coordinates:{x:.5,y:.5}},{playerPosition:"ivl",coordinates:{x:.49,y:.83}},{playerPosition:"olm",coordinates:{x:.04,y:.17}},{playerPosition:"rv",coordinates:{x:.96,y:.66}},{playerPosition:"lv",coordinates:{x:.04,y:.66}},{playerPosition:"stz",coordinates:{x:.5,y:.01}},{playerPosition:"ohr",coordinates:{x:.51,y:.34}}]},{lineUpName:"4-2-3-1",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivr",coordinates:{x:.51,y:.83}},{playerPosition:"orm",coordinates:{x:.96,y:.17}},{playerPosition:"zo",coordinates:{x:.5,y:.34}},{playerPosition:"dml",coordinates:{x:.49,y:.5}},{playerPosition:"ivl",coordinates:{x:.49,y:.83}},{playerPosition:"olm",coordinates:{x:.04,y:.17}},{playerPosition:"rv",coordinates:{x:.96,y:.66}},{playerPosition:"lv",coordinates:{x:.04,y:.66}},{playerPosition:"stz",coordinates:{x:.5,y:.01}},{playerPosition:"dmr",coordinates:{x:.51,y:.5}}]},{lineUpName:"4-3-1-2",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivr",coordinates:{x:.51,y:.83}},{playerPosition:"dmr",coordinates:{x:.96,y:.34}},{playerPosition:"dml",coordinates:{x:.04,y:.34}},{playerPosition:"dmz",coordinates:{x:.5,y:.5}},{playerPosition:"ivl",coordinates:{x:.49,y:.83}},{playerPosition:"zo",coordinates:{x:.5,y:.17}},{playerPosition:"rv",coordinates:{x:.96,y:.66}},{playerPosition:"lv",coordinates:{x:.04,y:.66}},{playerPosition:"stl",coordinates:{x:.49,y:.01}},{playerPosition:"str",coordinates:{x:.51,y:.01}}]},{lineUpName:"4-3-2-1",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivr",coordinates:{x:.51,y:.83}},{playerPosition:"rm",coordinates:{x:.96,y:.34}},{playerPosition:"lm",coordinates:{x:.04,y:.34}},{playerPosition:"mz",coordinates:{x:.5,y:.5}},{playerPosition:"ivl",coordinates:{x:.49,y:.83}},{playerPosition:"olm",coordinates:{x:.49,y:.17}},{playerPosition:"rv",coordinates:{x:.96,y:.66}},{playerPosition:"lv",coordinates:{x:.04,y:.66}},{playerPosition:"stz",coordinates:{x:.5,y:.01}},{playerPosition:"orm",coordinates:{x:.51,y:.17}}]},{lineUpName:"4-3-3",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivr",coordinates:{x:.51,y:.83}},{playerPosition:"hr",co
138ordinates:{x:.51,y:.34}},{playerPosition:"hl",coordinates:{x:.49,y:.34}},{playerPosition:"mz",coordinates:{x:.5,y:.5}},{playerPosition:"ivl",coordinates:{x:.49,y:.83}},{playerPosition:"la",coordinates:{x:.04,y:.17}},{playerPosition:"rv",coordinates:{x:.96,y:.66}},{playerPosition:"lv",coordinates:{x:.04,y:.66}},{playerPosition:"stz",coordinates:{x:.5,y:.01}},{playerPosition:"ra",coordinates:{x:.96,y:.17}}]},{lineUpName:"4-3-3 Double-6",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivr",coordinates:{x:.51,y:.83}},{playerPosition:"dmr",coordinates:{x:.51,y:.5}},{playerPosition:"zo",coordinates:{x:.5,y:.34}},{playerPosition:"dml",coordinates:{x:.49,y:.5}},{playerPosition:"ivl",coordinates:{x:.49,y:.83}},{playerPosition:"la",coordinates:{x:.04,y:.17}},{playerPosition:"rv",coordinates:{x:.96,y:.66}},{playerPosition:"lv",coordinates:{x:.04,y:.66}},{playerPosition:"stz",coordinates:{x:.5,y:.01}},{playerPosition:"ra",coordinates:{x:.96,y:.17}}]},{lineUpName:"4-3-3 with 6",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivr",coordinates:{x:.51,y:.83}},{playerPosition:"hr",coordinates:{x:.51,y:.34}},{playerPosition:"hl",coordinates:{x:.49,y:.34}},{playerPosition:"dmz",coordinates:{x:.5,y:.5}},{playerPosition:"ivl",coordinates:{x:.49,y:.83}},{playerPosition:"la",coordinates:{x:.04,y:.17}},{playerPosition:"rv",coordinates:{x:.96,y:.66}},{playerPosition:"lv",coordinates:{x:.04,y:.66}},{playerPosition:"stz",coordinates:{x:.5,y:.01}},{playerPosition:"ra",coordinates:{x:.96,y:.17}}]},{lineUpName:"4-4-1-1",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivr",coordinates:{x:.51,y:.83}},{playerPosition:"rm",coordinates:{x:.96,y:.34}},{playerPosition:"lm",coordinates:{x:.04,y:.34}},{playerPosition:"dml",coordinates:{x:.49,y:.5}},{playerPosition:"ivl",coordinates:{x:.49,y:.83}},{playerPosition:"hst",coordinates:{x:.5,y:.17}},{playerPosition:"rv",coordinates:{x:.96,y:.66}},{playerPosition:"lv",coordinates:{x:.04,y:.66}},{playerPosition:"stz",coordinates:{x:.5,y:.01}},{playerPosition:"dmr",coordinates:{x:.51,y:.5}}]},{lineUpName:"4-4-1-1 offensive Outliner",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivr",coordinates:{x:.51,y:.83}},{playerPosition:"orm",coordinates:{x:.96,y:.34}},{playerPosition:"olm",coordinates:{x:.04,y:.34}},{playerPosition:"dml",coordinates:{x:.49,y:.5}},{playerPosition:"ivl",coordinates:{x:.49,y:.83}},{playerPosition:"hst",coordinates:{x:.5,y:.17}},{playerPosition:"rv",coordinates:{x:.96,y:.66}},{playerPosition:"lv",coordinates:{x:.04,y:.66}},{playerPosition:"stz",coordinates:{x:.5,y:.01}},{playerPosition:"dmr",coordinates:{x:.51,y:.5}}]},{lineUpName:"4-4-2 Diamond",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivr",coordinates:{x:.51,y:.83}},{playerPosition:"str",coordinates:{x:.51,y:.01}},{playerPosition:"hl",coordinates:{x:.04,y:.34}},{playerPosition:"dmz",coordinates:{x:.5,y:.5}},{playerPosition:"ivl",coordinates:{x:.49,y:.83}},{playerPosition:"zo",coordinates:{x:.5,y:.18}},{playerPosition:"rv",coordinates:{x:.96,y:.66}},{playerPosition:"lv",coordinates:{x:.04,y:.66}},{playerPosition:"stl",coordinates:{x:.49,y:.01}},{playerPosition:"hr",coordinates:{x:.96,y:.34}}]},{lineUpName:"5-3-1-1",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivz",coordinates:{x:.5,y:.83}},{playerPosition:"ivr",coordinates:{x:.96,y:.83}},{playerPosition:"lm",coordinates:{x:.04,y:.34}},{playerPosition:"mz",coordinates:{x:.5,y:.5}},{playerPosition:"ivl",coordinates:{x:.04,y:.83}},{playerPosition:"hst",coordinates:{x:.5,y:.18}},{playerPosition:"rv",coordinates:{x:.96,y:.66}},{playerPosition:"lv",coordinates:{x:.04,y:.66}},{playerPosition:"stz",coordinates:{x:.5,y:.01}},{playerPosition:"rm",coordinates:{x:.96,y:.34}}]},{lineUpName:"5-3-1-1 with 6",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivz",coordinates:{x:.5,y:.83}},{playerPosition:"ivr",coordinates:{x:.96,y:.83}},{playerPosition:"lm",coordinates:{x:.04,y:.34}},{playerPosition:"dmz",coordinates:{x:.5,y:.5}},{playerPosition:"ivl",coordinates:{x:.04,y:.83}},{playerPosition:"hst",coordinates:{x:.5,y:.18}},{playerPosition:"rv",coordinates:{x:.96,y:.66}},{playerPosition:"lv",coordinates:{x:.04,y:.66}},{playerPosition:"stz",coordinates:{x:.5,y:.01}},{playerPosition:"rm",coordinates:{x:.96,y:.34}}]},{lineUpName:"5-4-1 Diamond",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivz",coordinates:{x:.5,y:.83}},{playerPosition:"ivr",coordinates:{x:.96,y:.83}},{playerPosition:"hl",coordinates:{x:.04,y:.34}},{playerPosition:"dmz",coordinates:{x:.5,y:.5}},{playerPosition:"ivl",coordinates:{x:.04,y:.83}},{playerPosition:"zo",coordinates:{x:.5,y:.18}},{playerPosition:"rv",coordinates:{x:.96,y:.66}},{playerPosition:"lv",coordinates:{x:.04,y:.66}},{playerPosition:"stz",coordinates:{x:.5,y:.01}},{playerPosition:"hr",coordinates:{x:.96,y:.34}}]},{lineUpName:"5-3-2",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivz",coordinates:{x:.5,y:.83}},{playerPosition:"ivr",coordinates:{x:.96,y:.83}},{playerPosition:"rm",coordinates:{x:.96,y:.24}},{playerPosition:"lm",coordinates:{x:.04,y:.24}},{playerPosition:"ivl",coordinates:{x:.04,y:.83}},{playerPosition:"str",coordinates:{x:.51,y:.01}},{playerPosition:"rv",coordinates:{x:.96,y:.66}},{playerPosition:"lv",coordinates:{x:.04,y:.66}},{playerPosition:"stl",coordinates:{x:.49,y:.01}},{playerPosition:"mz",coordinates:{x:.5,y:.44}}]},{lineUpName:"5-3-2 Double-6",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivz",coordinates:{x:.5,y:.83}},{playerPosition:"ivr",coordinates:{x:.96,y:.83}},{playerPosition:"zo",coordinates:{x:.5,y:.24}},{playerPosition:"dmr",coordinates:{x:.51,y:.44}},{playerPosition:"ivl",coordinates:{x:.04,y:.83}},{playerPosition:"str",coordinates:{x:.51,y:.01}},{playerPosition:"rv",coordinates:{x:.96,y:.66}},{playerPosition:"lv",coordinates:{x:.04,y:.66}},{playerPosition:"stl",coordinates:{x:.49,y:.01}},{playerPosition:"dml",coordinates:{x:.49,y:.44}}]},{lineUpName:"5-3-2 with 6",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivz",coordinates:{x:.5,y:.83}},{playerPosition:"ivr",coordinates:{x:.96,y:.83}},{playerPosition:"hl",coordinates:{x:.04,y:.24}},{playerPosition:"hr",coordinates:{x:.96,y:.24}},{playerPosition:"ivl",coordinates:{x:.04,y:.83}},{playerPosition:"str",coordinates:{x:.51,y:.01}},{playerPosition:"rv",coordinates:{x:.96,y:.66}},{playerPosition:"lv",coordinates:{x:.04,y:.66}},{playerPosition:"stl",coordinates:{x:.49,y:.01}},{playerPosition:"dmz",coordinates:{x:.5,y:.44}}]},{lineUpName:"5-4-1",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivz",coordinates:{x:.5,y:.83}},{playerPosition:"ivr",coordinates:{x:.96,y:.83}},{playerPosition:"lm",coordinates:{x:.04,y:.24}},{playerPosition:"rm",coordinates:{x:.96,y:.24}},{playerPosition:"ivl",coordinates:{x:.04,y:.83}},{playerPosition:"dmr",coordinates:{x:.51,y:.44}},{playerPosition:"rv",coordinates:{x:.96,y:.66}},{playerPosition:"lv",coordinates:{x:.04,y:.66}},{playerPosition:"stz",coordinates:{x:.5,y:.01}},{playerPosition:"dml",coordinates:{x:.49,y:.44}}]},{lineUpName:"5-4-1 offensive Outliner",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"ivz",coordinates:{x:.5,y:.83}},{playerPosition:"ivr",coordinates:{x:.96,y:.83}},{playerPosition:"olm",coordinates:{x:.04,y:.24}},{playerPosition:"orm",coordinates:{x:.96,y:.24}},{playerPosition:"ivl",coordinates:{x:.04,y:.83}},{playerPosition:"dmr",coordinates:{x:.51,y:.44}},{playerPosition:"rv",coordinates:{x:.96,y:.66}},{playerPosition:"lv",coordinates:{x:.04,y:.66}},{playerPosition:"stz",coordinates:{x:.5,y:.01}},{playerPosition:"dml",coordinates:{x:.49,y:.44}}]},{lineUpName:"4-4-2 central Double-6",players:[{playerPosition:"tw",coordinates:{x:.5,y:.98}},{playerPosition:"ivr",coordinates:{x:.51,y:.82}},{playerPosition:"dmr",coordinates:{x:.51,y:.4}},{playerPosition:"LV",coordinates:{x:.04,y:.65}},{playerPosition:"stl",coordinates:{x:.49,y:0}},{playerPosition:"ivl",coordinates:{x:.49,y:.82}},{playerPosition:"rv",coordinates:{x:.96,y:.65}},{playerPosition:"str",coordinates:{x:.51,y:0}},{playerPosition:"rm",coordinates:{x:.96,y:.19}},{playerPosition:"dml",coordinates:{x:.49,y:.4}},{playerPosition:"lm",coordinates:{x:.04,y:.19}}]},{lineUpName:"4-4-2 Double-6",players:[{playerPosition:"tw",coordinates:{x:.5,y:.98}},{playerPosition:"ivr",coordinates:{x:.51,y:.82}},{playerPosition:"dmr",coordinates:{x:.51,y:.4}},{playerPosition:"LV",coordinates:{x:.04,y:.65}},{playerPosition:"stl",coordinates:{x:.49,y:0}},{playerPosition:"ivl",coordinates:{x:.49,y:.82}},{playerPosition:"rv",coordinates:{x:.96,y:.65}},{playerPosition:"str",coordinates:{x:.51,y:0}},{playerPosition:"rm",coordinates:{x:.96,y:.19}},{playerPosition:"dml",coordinates:{x:.49,y:.4}},{playerPosition:"lm",coordinates:{x:.04,y:.19}}]},{lineUpName:"4-4-2 Double-6 offensive Outliner",players:[{playerPosition:"tw",coordinates:{x:.5,y:.98}},{playerPosition:"str",coordinates:{x:.51,y:.01}},{playerPosition:"dmr",coordinates:{x:.51,y:.38}},{playerPosition:"ivl",coordinates:{x:.49,y:.81}},{playerPosition:"stl",coordinates:{x:.49,y:.01}},{playerPosition:"olm",coordinates:{x:.04,y:.22}},{playerPosition:"ivr",coordinates:{x:.51,y:.81}},{playerPosition:"orm",coordinates:{x:.96,y:.22}},{playerPosition:"rv",coordinates:{x:.96,y:.63}},{playerPosition:"lv",coordinates:{x:.04,y:.63}},{playerPosition:"dml",coordinates:{x:.49,y:.38}}]},{lineUpName:"4-5-1",players:[{playerPosition:"tw",coordinates:{x:.5,y:.98}},{playerPosition:"mz",coordinates:{x:.5,y:.22}},{playerPosition:"dmr",coordinates:{x:.96,y:.43}},{playerPosition:"ivl",coordinates:{x:.49,y:.81}},{playerPosition:"stz",coordinates:{x:.5,y:.01}},{playerPosition:"lm",coordinates:{x:.04,y:.22}},{playerPosition:"ivr",coordinates:{x:.51,y:.81}},{playerPosition:"rm",coordinates:{x:.96,y:.22}},{playerPosition:"rv",coordinates:{x:.96,y:.63}},{playerPosition:"lv",coordinates:{x:.04,y:.63}},{playerPosition:"dml",coordinates:{x:.04,y:.43}}]},{lineUpName:"4-5-1 offensive Outliner",players:[{playerPosition:"tw",coordinates:{x:.5,y:.98}},{playerPosition:"ivr",coordinates:{x:.51,y:.82}},{playerPosition:"ivl",coordinates:{x:.49,y:.82}},{playerPosition:"rv",coordinates:{x:.96,y:.66}},{playerPosition:"stz",coordinates:{x:.5,y:.01}},{playerPosition:"hl",coordinates:{x:.04,y:.4}},{playerPosition:"orm",coordinates:{x:.96,y:.21}},{playerPosition:"hr",coordinates:{x:.96,y:.4}},{playerPosition:"lv",coordinates:{x:.04,y:.66}},{playerPosition:"olm",coordinates:{x:.04,y:.21}},{playerPosition:"dmz",coordinates:{x:.5,y:.4}}]},{lineUpName:"3-5-2",players:[{playerPosition:"tw",coordinates:{x:.5,y:.98}},{playerPosition:"ivz",coordinates:{x:.5,y:.81}},{playerPosition:"dmr",coordinates:{x:.96,y:.52}},{playerPosition:"ivl",coordinates:{x:.04,y:.81}},{playerPosition:"stl",coordinates:{x:.49,y:0}},{playerPosition:"lm",coordinates:{x:.04,y:.3}},{playerPosition:"ivr",coordinates:{x:.96,y:.81}},{playerPosition:"str",coordinates:{x:.51,y:0}},{playerPosition:"rm",coordinates:{x:.96,y:.3}},{playerPosition:"mz",coordinates:{x:.5,y:.3}},{playerPosition:"dml",coordinates:{x:.04,y:.52}}]},{lineUpName:"3-5-2 attacking wingers",players:[{playerPosition:"tw",coordinates:{x:.5,y:.99}},{playerPosition:"str",coordinates:{x:.51,y:.01}},{playerPosition:"orm",coordinates:{x:.96,y:.17}},{playerPosition:"olm",coordinates:{x:.04,y:.17}},{playerPosition:"hl",coordinates:{x:.49,y:.33}},{playerPosition:"ivz",coordinates:{x:.5,y:.83}},{playerPosition:"hr",coordinates:{x:.51,y:.33}},{playerPosition:"ivr",coordinates:{x:.96,y:.66}},{playerPosition:"ivl",coordinates:{x:.04,y:.66}},{playerPosition:"stl",coordinates:{x:.49,y:.01}},{playerPosition:"dmz",coordinates:{x:.5,y:.5}}]}],we=class e{static{this.intervalId=null}static startSync(t,n,r){if(e.intervalId)return;let a=(0,E.TVXCONFIG)().restPollingIntervals.lineups;G.Debugger.console(0,`[Lineups] Starting sync service with interval: ${a}ms`),e.fetchLineups(t,n,r),e.intervalId=setInterval(()=>{e.fetchLineups(t,n,r)},a)}static async fetchLineups(t,n,r){G.Debugger.console(0,`[Lineups] Fetching player match statistics for match: ${t}`);try{await Promise.all([e.getPlayerMatchStatistics(t,n),e.getPlayerMatchStatistics(t,r)]),G.Debugger.console(0,`[Lineups] Successfully fetched player match statistics for match: ${t}`)}catch(e){let n=e instanceof Error?e.message:String(e);G.Debugger.console(2,`[Lineups] Error fetching player match statistics for match ${t}: ${n}`)}}static stopSync(){e.intervalId&&(G.Debugger.console(0,"[Lineups] Stopping sync service"),clearInterval(e.intervalId),e.intervalId=null)}static{this.convertPlayerStatisticsToActionIndicators=e=>{if(!e)return;let t=[],n=[];
138return e.forEach(e=>{if(n=[],e.card_red&&n.push("RED_CARD"),e.card_yellow&&n.push("YELLOW_CARD"),e.card_yellow_red&&n.push("YELLOW_RED_CARD"),e.substitution_in&&n.push("SUBSTITUTE_IN"),e.substitution_out&&n.push("SUBSTITUTE_OUT"),e.goals)for(let t=0;t<e.goals;t++)n.push("GOAL");n.length>0&&t.push({playerId:e.player_id,actions:[...n]})}),t}}static async getPlayerMatchStatistics(t,n){let r=await(0,X.U3)(t,n),a=e.convertPlayerStatisticsToActionIndicators(r);if(!a)return;let{setActionsOfPlayer:o}=j.getState();a.forEach(e=>{o({teamId:n,playerId:e.playerId,actions:e.actions})})}static lineupJsonToArray(){return Se}static mapToLineup(t,n){if(!n)return[];let r=e.lineupJsonToArray().find(e=>e.lineUpName===t);if(!r)return[];let a=[];for(let e=0;e<r.players.length;e++){let t=n.find(t=>t.lineupPosition===r.players[e].playerPosition.toUpperCase());t&&a.push({player:t,x:r.players[e].coordinates.x,y:r.players[e].coordinates.y,extra:!1})}return a}static calculateXAnchor(e){return e>=.2&&e<.5?-100:e>.5&&e<=.8||e<.2?0:e>.8?-100:-50}static calculateYAnchor(e,t){return-e*t}static selectedLineUp(t){let n=t.formation,r=t.players;return e.mapToLineup(n,r)}},ke=class e{static async convertTableData(t){if(!t||!t[0])return;await e.fetchMissingClubs(t);let n=[];for(let e of t)n.push({position:e.position,subPosition:e.sub_position,tendency:e.tendency,clubId:e.club_id,club:ie(e.club_id),gamesPlayed:e.games_played,goalsScored:e.goals_scored,goalsAgainst:e.goals_against,points:e.points,qualification:e.qualification,draws:e.draws,losses:e.losses,wins:e.wins});return n}static{this.fetchMissingClubs=async e=>{if(!e)return;let{clubs:t,addClub:n}=j.getState(),r=[];e.forEach(e=>{t.find(t=>t.id===String(e.club_id))||r.push(e.club_id)});let a=new Set(r);(await Promise.all(Array.from(a).map(e=>(0,X.z6)(e)))).forEach(e=>{let t={id:e.team_id,threeLetterCode:e.three_letter_code,shortName:e.short_name,longName:e.long_name,clubName:e.club_name,logo:e.logo_url?e.logo_url.replace(".png",".svg"):e.logo_url,shirtMainColor:"",shirtSecondaryColor:"",teamMainColor:e.team_main_color,teamSecondaryColor:e.team_secondary_color,players:[],formation:""};n(t)})}}static async getLiveTable(){let{matches:t,mainMatchId:n}=B.getState(),r=t.find(e=>e.matchId===n)?.competitionId,a=await(0,X.VI)(r||null);return e.convertTableData(a)}static async jsonToTournamentData(t){let n=await Promise.all(t.group_data.map(async t=>({matches:t.matches,table:await e.convertTableData(t.table),name:t.name})));return{...t,group_data:n}}static async getGroupTable(){let{matches:t,mainMatchId:n}=B.getState(),r=t.find(e=>e.matchId===n)?.competitionId,a=await(0,X.pG)(r||null);return await e.jsonToTournamentData(a)}},_e=class e{static{this.intervalId=null}static{this.getLiveTableCallback=null}static initialize(t){e.intervalId&&e.stop(),e.getLiveTableCallback=t;let{restPollingIntervals:n}=(0,E.TVXCONFIG)();t(),e.intervalId=setInterval(()=>{e.poll()},n.liveTable)}static poll(){e.getLiveTableCallback&&e.getLiveTableCallback()}static stop(){e.intervalId&&(clearInterval(e.intervalId),e.intervalId=null,e.getLiveTableCallback=null)}},Ce=["match_event","result_update","match_state_update"],Pe=(class e{static{this.eventQueue=new Map}static initialize(){T.U.on("TVX_WebSocket_Event",t=>{try{e.handleMessage(JSON.parse(t.detail))}catch(e){G.Debugger.console(2,`[MATCH EVENT] Error parsing WebSocket message: ${e}`)}})}static{this.handleMessage=t=>{let{mainMatchId:n}=B.getState(),r=e.getMessageHandler(t.event);if(r)if(t.event.includes("_package"))e.sendEvent(r,t);else{let a=Ce.includes(t.event),o=!("match_id"in t)||t.match_id===n;(0,E.TVXCONFIG)().dynamicDelays&&a&&o?e.queueEvent(r,t):e.delayEvent(r,t)}else G.Debugger.console(0,`[MATCH EVENT] No handler found for event type: ${t.event}`)}}static getMessageHandler(t){return{match_event:e.handleMatchEvent,match_event_package:e.handleMatchEventPackage,match_state_update:e.handleMatchState,match_state_package:e.handleMatchStatePackage,result_update:e.handleResultUpdate,result_update_package:e.handleResultUpdatePackage}[t]||null}static queueEvent(t,n){let{mainMatchId:r,matches:a}=B.getState(),{videoDuration:o,videoTime:i}=V.getState(),s=a.find(e=>
138e.matchId===r)?.syncPointTimeCode??0,l=s+n.time,c=l-o;if(c>600)G.Debugger.console(0,`[MATCH EVENT] Event too far in the future (${c} seconds) - not processed`+JSON.stringify(n,null,2));else if(c>0){e.eventQueue.has(n.event_id)&&clearTimeout(e.eventQueue.get(n.event_id));let r=setTimeout(()=>{e.sendEvent(t,n),e.eventQueue.delete(n.event_id)},1e3*c);e.eventQueue.set(n.event_id,r),e.logEventDelay(n,c,"Queued")}else{if(l>o)return void G.Debugger.console(0,"[MATCH EVENT] Event occurs after video ends - not processed "+JSON.stringify(n,null,2));G.Debugger.console(0,"[MATCH EVENT] Event time has passed - sending immediately"),e.sendEvent(t,n)}}static delayEvent(t,n){G.Debugger.console(0,"[MATCH EVENT] delayEvent called for event "+JSON.stringify(n,null,2));let r=(0,E.TVXCONFIG)().eventsForcedDelay;setTimeout(()=>e.sendEvent(t,n),1e3*r)}static sendEvent(t,n){e.logEventDelay(n,0,"Sent"),t(n)}static logEventDelay(e,t,n){let{mainMatchId:r,matches:a}=B.getState(),{videoTime:o,videoDuration:i}=V.getState(),s=a.find(e=>e.matchId===r)?.syncPointTimeCode??0,l="#333333";l="Queued"===n?"#3F33FF":"Sent"===n&&t>0?"#FF3396":l;let c=`[MATCH EVENT] ${n}${t>0?" dynamic delayed":""} event ${e.event}\neventId: ${e.event_id}\ntype: ${e.event}\nmatchId: ${e.match_id}\nmainMatchId: ${r}\nmatchMinute: ${e.match_minute+"'"}\ncurrentTime: ${o}\nvideoDuration: ${i}\ntime: ${e.time}\nsyncPoint: ${s}\ntime + syncPoint: ${("time"in e?e.time:0)+(s??0)}\nsecondsToDelay: ${t}`;G.Debugger.console(0,c,l)}static{this.handleResultUpdatePackage=e=>{let{updateResultUpdate:t,matches:n}=B.getState(),{result_updates:r}=e;e.result_updates.length>0&&r.forEach(e=>{e.result_updates.length>0&&(e.result_updates.sort((e,t)=>t.time-e.time),n.find(t=>t.matchId===e.match_id)&&t({match_id:e.match_id,goals_away:e.result_updates[0].goals_away,goals_home:e.result_updates[0].goals_home}))})}}static{this.handleMatchEventPackage=e=>{let{updateMatchEventPackage:t,mainMatchId:n,matches:r}=B.getState(),{appMode:a}=(0,E.TVXCONFIG)(),o=(e=>e.map(e=>ne(e)).map(e=>{let t={...e};if(e.isTimelineEvent){let n=(e=>{let t=e.playerId;if(t){let n=((e,t,n)=>{let{matches:r}=B.getState(),{clubs:a}=j.getState(),o=r.find(e=>e.matchId===t);if(!o)return;let{homeClub:i,guestClub:s}=o,l=a.find(e=>e.id===i.id)?.players,c=a.find(e=>e.id===s.id)?.players;if(!l||!c)return;let u=l.find(t=>t.playerId===e)||c.find(t=>t.playerId===e);if(!u)return;let d=l.includes(u),p=d?i:s,f=d;return"own_goal"===n&&(f=!f),{isHome:f,clubLogo:p.logo,playerNumber:u.number,playerName:u.displayName,shirtMainColor:p.shirtMainColor,shirtSecondaryColor:p.shirtSecondaryColor,clubId:p.id}})(t,e.matchId,e.eventType);return{...e,timelineData:n}}})(e);n&&(t={...t,pos:0,timelineData:n.timelineData})}return t}))(e.match_events),i=r.find(e=>e.matchId===n);"liveplusmd"===a&&i&&n===e.match_id&&"FINISHED"===i.matchStatus&&0===o.length&&T.U.trigger("error",{code:"205",name:"noMatchData",errorMessage:"We're sorry, Currently we do have data available for this match",customMessage:`Match data not available for match - ${n}`}),t({matchId:e.match_id,events:o})}}static{this.handleResultUpdate=e=>{let{updateResultUpdate:t}=B.getState(),{match_id:n,goals_away:r,goals_home:a}=e;t({match_id:n,goals_away:r,goals_home:a})}}static{this.isMatchEventNew=e=>{let t=B.getState().matches.find(t=>t.matchId===e.matchId);return!(t&&t.events.find(t=>t.eventId===e.eventId))}}static{this.handleMatchEvent=t=>{let{updateMatchEvent:n,spoilerMode:r,mainMatchId:a}=B.getState(),o=ne(t);(0,E.TVXCONFIG)().menuAlerts&&!(0,E.TVXCONFIG)().singleMatchMode&&r&&e.isMatchEventNew(o)&&!o.afterPenalty&&be.sendAlert(o,a),G.Debugger.console(0,"[MATCH EVENT]\n"+JSON.stringify(o,null,2)+"\nmainMatchId: "+a),n(o)}}static{this.handleMatchStatePackage=t=>{t.states.length>0&&t.states.forEach(t=>{e.handleMatchState(t)})}}static{this.handleMatchState=e=>{let{updateMatchState:t,matches:n}=B.getState(),{match_id:r,status:a,live_status:o,time:i}=e;n.some(e=>e.matchId===r)&&(G.Debugger.console(0,"[MATCH STATE]\nmatchId: "+r+"\nstatus: "+a+"\nlive_status: "+o+"\ntime: "+i),t({match_id:r,status:a,live_status:o,time:i}))}}},class e{static{this.intervalId=null}static initialize(){if(e.intervalId)return;let t=(0,E.TVXCONFIG)().restPollingIntervals.matchStatistics;G.Debugger.console(0,`[Match Statistics] Initializing polling service with interval: ${t}ms`),e.fetchStatistics(),e.intervalId=setInterval(()=>{e.refetchStatistics()},t)}static async fetchStatistics(){let{mainMatchId:t}=B.getState(),{setStatistics:n,setFetching:r,setError:a}=W.getState();G.Debugger.console(0,`[Match Statistics] Fetching statistics for match: ${t}`),r(!0);try{let r=await(0,X.C0)(t);n(e.convertMatchStatistics(r,t)),G.Debugger.console(0,`[Match Statistics] Successfully fetched statistics for match: ${t}`)}catch(e){let r=e instanceof Error?e.message:String(e);G.Debugger.console(2,`[Match Statistics] Error fetching statistics for match ${t}: ${r}`),n(null),a(!0)}}static async refetchStatistics(){let{mainMatchId:t}=B.getState(),{setStatistics:n,setRefetching:r,setRefetchError:a}=W.getState();G.Debugger.console(0,`[Match Statistics] Refetching statistics for match: ${t}`),r(!0);try{let r=await(0,X.C0)(t);n(e.convertMatchStatistics(r,t)),G.Debugger.console(0,`[Match Statistics] Successfully refetched statistics for match: ${t}`)}catch(e){let n=e instanceof Error?e.message:String(e);G.Debugger.console(1,`[Match Statistics] Error refetching statistics for match ${t}: ${n}`),a(!0)}}static stop(){e.intervalId&&(G.Debugger.console(0,"[Match Statistics] Stopping polling service"),clearInterval(e.intervalId),e.intervalId=null)}static{this.isClubOfMatchHomeTeam=(e,t)=>{let n=B.getState().matches.find(e=>
138e.matchId===t);return!!n&&n.homeClub.id===e}}static{this.convertMatchStatistics=(t,n)=>{if(!t||!t[0])return null;let r,a;return e.isClubOfMatchHomeTeam(t[0].team_id?t[0].team_id:t[0].club_id,n)?(r=t[0],a=t[1]):(r=t[1],a=t[0]),{homeTeamID:r.team_id?r.team_id:r.club_id,guestTeamID:a.team_id?a.team_id:a.club_id,statistics:{possession:{translationKey:"match_statistic.possession",home:isNaN(r.possession)?0:r.possession,guest:isNaN(a.possession)?0:a.possession},shotsTotal:{translationKey:"match_statistic.shots_total",home:r.shots,guest:a.shots},shotsOnGoal:{translationKey:"match_statistic.shots_on_goal",home:r.shots_on_target,guest:a.shots_on_target},challenges:{translationKey:"match_statistic.challenges",home:r.tacklings,guest:a.tacklings},challengesWon:{translationKey:"match_statistic.challenges_won",home:r.tacklings_won,guest:a.tacklings_won},passes:{translationKey:"match_statistic.passes",home:r.passes,guest:a.passes},successfulPasses:{translationKey:"match_statistic.successful_passes",home:r.passes_successful,guest:a.passes_successful},distanceCovered:{translationKey:"match_statistic.distance_covered",home:r.distance_covered,guest:a.distance_covered},corners:{translationKey:"match_statistic.corners",home:r.corner_kicks,guest:a.corner_kicks},fouls:{translationKey:"match_statistic.fouls",home:r.fouls,guest:a.fouls},offsides:{translationKey:"match_statistic.offsides",home:r.offsides,guest:a.offsides},successfulCrosses:{translationKey:"match_statistic.successful_crosses",home:r.crosses,guest:a.crosses},yellowCards:{translationKey:"match_statistic.yellow_cards",home:r.cards_yellow,guest:a.cards_yellow},yellowRedCards:{translationKey:"match_statistic.yellow_red_cards",home:r.cards_yellow_red,guest:a.cards_yellow_red},straightRedCards:{translationKey:"match_statistic.straight_red_cards",home:r.cards_red,guest:a.cards_red},dismissals:{translationKey:"match_statistic.dismissals",home:r.cards_yellow_red,guest:a.cards_yellow_red},touches:{translationKey:"match_statistic.touches",home:r.touches,guest:a.touches},xGoals:{translationKey:"match_statistic.x_goals",home:r.x_goals,guest:a.x_goals}}}}}}),Ie=class e{static playerPositionToLocalizedString(e){switch(e){case 0:return(0,Y.t)("player_statistics_goalkeeper");case 1:return(0,Y.t)("player_statistics_defense");case 2:return(0,Y.t)("player_statistics_midfield");case 3:return(0,Y.t)("player_statistics_offense")}}static toMatchPlayerStatistics(e){try{return{id:e.player_id,substitutionsIn:e.substitutions_in,substitutionsOut:e.substitutions_out,cardsYellow:e.cards_yellow,cardsYellowRed:e.cards_yellow_red,cardsRed:e.cards_red,offsides:e.offsides,fouls:e.fouls,goals:e.goals,shots:e.shots,shotsOnTarget:e.shots_on_target,assists:e.assists,shotAssists:e.assists_shots,passesSuccessful:e.passes_successful,passes:e.passes,cornerKicks:e.corner_kicks,possession:e.possession,tacklingsWon:e.tacklings_won,tacklings:e.tacklings,goalkeeperSaves:e.goalkeeper_saves,shotsFaced:e.shots_faced,touches:e.touches,distanceCovered:e.distance_covered,topSpeed:e.maximum_speed,cleanSheets:e.clean_sheets,goalsConceded:e.goals_conceded,savePercentage:e.save_percentage,matchesPlayed:e.matches_played,xGoals:e.x_goals}}catch(t){return void(e?G.Debugger.console(0,"MatchPlayer.toMatchPlayerStatistics error: "+t):G.Debugger.console(0,"MatchPlayer.toMatchPlayerStatistics received undefined instead of object"))}}static getIndicatorList(e){let t=JSON.parse(JSON.stringify(e)),n=0;if(t.forEach(e=>{"GOAL"===e&&n++}),n>1)for(let e=0;e<n-1;e++)t.splice(t.indexOf("GOAL"),1);return t.length>=7&&t.splice(0,t.length-6),{playerActions:[],goalCount:n}}static async getPlayerStatistics(t,n,r,a){let o=null;try{o=await(0,X.ug)(t,r)}catch(e){if(e.message?.includes("404"))try{G.Debugger.console(2,`Retrying to fetch season statistics for player ${t} without competitionId`),o=await(0,X.ug)(t)}catch(e){G.Debugger.console(2,`Fallback fetch for player ${t} season statistics also failed:`,e),o=null}else G.Debugger.console(2,`Error fetching season statistics for player ${t}:`,e),o=null}let i,s,l,c=j.getState().clubs.find(e=>e.id===n);if(i=c.players.find(e=>e.playerId===t),i&&(s=await(0,X.Oo)(a,n,t),l={...i,teamLogo:c.logo,teamShortName:c.shortName,indicatorList:i?e.getIndicatorList(i.actions):{playerActions:[],goalCount:0}}),!i&&(i=oe(await(0,X.iV)(t,r)),i.teamId)){let e=await(0,X.z6)(i.teamId);l={...i,teamLogo:e.logo_url}}return{matchPlayer:l,liveStatistics:s&&e.toMatchPlayerStatistics(s),seasonStatistics:o?e.toMatchPlayerStatistics(o):void 0}}static getLiveStatsForPlayerPosition(e){let t=e.liveStatistics,n=(0,E.TVXCONFIG)().menuPlayerProfileEntries.liveStats;if(!t||!n.statsEnabled)return[];let r=[];switch(t.goals>0&&n.goals&&r.push({label:"player_statistics_goals",value:t.goals}),t.assists>0&&n.assists&&r.push({label:"player_statistics_assists",value:t.assists}),t.shotAssists>0&&n.shotAssists&&r.push({label:"player_statistics_assists_shots",value:t.shotAssists}),e.matchPlayer.position){case 0:return null!==t.goalkeeperSaves&&t.goalkeeperSaves>0&&n.goalkeeperSaves&&r.push({label:"player_statistics_saves",value:t.goalkeeperSaves}),t.passes>0&&t.touches>0&&n.touches&&r.push({label:"player_statistics_touches",value:t.touches}),t.passes>0&&t.passesSuccessful>0&&n.successfulPasses&&r.push({label:"player_statistics_successful_passes",value:(0,Q.$4)(t.passesSuccessful,t.passes)+" %"}),r;case 1:return t.touches>0&&n.touches&&r.push({label:"player_statistics_touches",value:t.touches}),t.tacklings>0&&t.tacklingsWon>0&&n.challengesWon&&r.push({label:"player_statistics_challenges_won",value:(0,Q.$4)(t.tacklingsWon,t.tacklings)+" %"}),t.tacklings>0&&t.tacklingsWon>0&&n.challengesWonAbsolute&&r.push({label:"player_statistics_challenges_won_absolute",value:t.tacklingsWon}),t.passes>0&&t.passesSuccessful>0&&n.successfulPasses&&r.push({label:"player_statistics_successful_passes",value:(0,Q.$4)(t.passesSuccessful,t.passes)+" %"}),t.distanceCovered>0&&n.distanceCovered&&r.push({label:"player_statistics_distance_covered",value:(0,Q.nY)(t.distanceCovered)+" km"}),t.topSpeed&&n.topSpeed&&r.push({label:"player_statistics_top_speed",value:Math.floor(10*t.topSpeed)/10+" km/h"}),t.fouls>0&&n.fouls&&r.push({label:"player_statistics_fouls",value:t.fouls}),r;case 2:return t.touches>0&&n.touches&&r.push({label:"player_statistics_touches",value:t.touches}),t.tacklings>0&&t.tacklingsWon>0&&n.challengesWon&&r.push({label:"player_statistics_challenges_won",value:(0,Q.$4)(t.tacklingsWon,t.tacklings)+" %"}),t.tacklings>0&&t.tacklingsWon>0&&n.challengesWonAbsolute&&r.push({label:"player_statistics_challenges_won_absolute",value:t.tacklingsWon}),t.passes>0&&t.passesSuccessful>0&&n.successfulPasses&&r.push({label:"player_statistics_successful_passes",value:(0,Q.$4)(t.passesSuccessful,t.passes)+" %"}),t.distanceCovered>0&&n.distanceCovered&&r.push({label:"player_statistics_distance_covered",value:(0,Q.nY)(t.distanceCovered)+" km"}),t.topSpeed>0&&n.topSpeed&&r.push({label:"player_statistics_top_speed",value:Math.floor(10*t.topSpeed)/10+" km/h"}),r;case 3:return t.shots>0&&n.shots&&r.push({label:"player_statistics_shots",value:t.shots}),n.shotsOnTarget&&r.push({label:"player_statistics_shots_on_target",value:t.shotsOnTarget}),t.touches>0&&n.touches&&r.push({label:"player_statistics_touches",value:t.touches}),t.distanceCovered>0&&n.distanceCovered&&r.push({label:"player_statistics_distance_covered",value:(0,Q.nY)(t.distanceCovered)+" km"}),t.topSpeed>0&&n.topSpeed&&r.push({label:"player_statistics_top_speed",value:Math.floor(10*t.topSpeed)/10+" km/h"}),r;default:return r}}static getSeasonStatsForPlayerPosition(e){let t=e.seasonStatistics,n=(0,E.TVXCONFIG)().menuPlayerProfileEntries.seasonStats;if(!t||!n.statsEnabled)return[];let r=t.cardsRed+t.cardsYellow+t.cardsYellowRed,a=[];return t.xGoals>=0&&n.xGoals&&a.push({label:"match_statistics_xgoals",value:(0,Q.pe)(t.xGoals,2),aws:!0,awsLabel:!0,large:!0,info:{title:"info_statistics_xgoals_title",headline:"info_statistics_xgoals_headline",body:"info_statistics_xgoals_body"}}),n.matchesPlayed&&a.push({label:"player_statistics_matches_played",value:t.matchesPlayed}),t.goals>0&&n.goals&&a.push({label:"player_statistics_goals",value:t.goals}),t.assists>0&&n.assists&&a.push({label:"player_statistics_assists",value:t.assists}),r>0&&n.cards&&a.push({label:"player_statistics_cards",value:r}),0===e.matchPlayer.position&&(t.savePercentage>0&&n.savePercentage&&a.push({label:"player_statistics_save_percentage_web",value:t.savePercentage}),t.cleanSheets>0&&n.cleanSheets&&a.push({label:"player_statistics_cards_clean_sheets",value:t.cleanSheets}),t.goalsConceded>0&&n.goalsConceded&&a.push({label:"player_statistics_goals_conceded",value:t.goalsConceded})),a}},Ee=class e{static{this.intervalId=null}static{this.callbacks=null}static initialize(t){e.intervalId&&e.stop(),e.callbacks=t;let{restPollingIntervals:n}=(0,E.TVXCONFIG)();e.poll(),e.intervalId=setInterval(()=>{e.poll()},n.playerStatistics)}static poll(){if(!e.callbacks)return;let{updatePlayerLiveStats:t,getPlayerStatistics:n}=e.callbacks,{mainMatchId:r,matches:a}=B.getState(),o=n().matchPlayer,i=a.find(e=>
138e.matchId===r);if(!o||!i||!o.teamId)return;let{teamId:s,playerId:l}=o;(0,X.Oo)(r,s,l).then(e=>{let n={liveStatistics:Ie.toMatchPlayerStatistics(e)};t(n)}).catch(e=>{let t=e instanceof Error?e.message:String(e||"Unknown error");G.Debugger.console(2,`[PlayerStatisticsPollingService] Error fetching player statistics: ${t}`)})}static stop(){e.intervalId&&(clearInterval(e.intervalId),e.intervalId=null,e.callbacks=null)}},Te=class e{static async fetchClubSafely(e){try{let t=await(0,X.z6)(e);return t?.team_id?t:null}catch(t){return G.Debugger.console(2,`Error fetching club with ID ${e}:`,t),null}}static async convertSeasonRankingData(e){if(!e||!Array.isArray(e))return[];let t=["goals","assists","shots_at_goal","goalkeeper_saves","touches","tacklings_ratio","fouls","passes_ratio","distance_covered_per_match","distance_covered","sprints","top_speed","own_goals","shots_at_goal_per_match","goalkeeper_saves_per_match"];e.sort(function(e,n){return t.indexOf(e.rankings_type)-t.indexOf(n.rankings_type)});let n=new Set(e.flatMap(e=>e.player_rankings.map(e=>e.team_id))),r=j.getState().clubs.filter(e=>n.has(e.id)),{mainMatchId:a,matches:o}=B.getState(),i=o.find(e=>e.matchId===a)?.competitionId,s=e.map(e=>e.player_rankings[0]?.player_id).filter(Boolean),l=await Promise.all(s.map(async e=>{if(!e)return null;try{let t;try{t=await(0,X.iV)(e,i)}catch(t){return t.message.includes("404")||G.Debugger.console(2,`Error fetching player with ID ${e}:`,t),null}return t?oe(t):null}catch(t){return G.Debugger.console(2,`Error fetching player with ID ${e}:`,t),null}}));return e.map(e=>{let t=e.player_rankings;if(!Array.isArray(t)||t.length<2)return null;let n=t[0];if(!n)return null;let a=r.find(e=>e.id===n.team_id);if(!a)return null;let o=l.filter(e=>null!==e).find(e=>e?.playerId===n.player_id);return o?se({category:e.rankings_type,categoryPoints:n.absolute,clubName:a.shortName,clubLogo:a.logo,ranking:n.rank,playerName:o.displayName,playerImage:o.imageUrl,shirtMainColor:o.shirtMainColor,shirtSecondaryColor:o.shirtSecondaryColor,matchPlayer:o,rankingListData:[]}):null}).filter(e=>null!==e)}static async getSeasonRankings(){try{let{clubs:t}=j.getState(),{mainMatchId:n,matches:r}=B.getState(),{addClub:a}=j.getState();if(!n||!r.length)return G.Debugger.console(2,"No match data available"),[];let o=r.find(e=>e.matchId===n);if(!o)return G.Debugger.console(2,"Main match not found"),[];let i=o.competitionId,s=await(0,X.jK)(5,i||null);if(!s||!Array.isArray(s))return[];let l=new Set;return s.forEach(e=>{e.player_rankings&&e.player_rankings.slice(0,5).forEach(e=>{e.team_id&&!t.find(t=>t.id===e.team_id)&&l.add(e.team_id)})}),(await Promise.all(Array.from(l).map(async t=>{let n=await e.fetchClubSafely(t);return n?{id:n.team_id,threeLetterCode:n.three_letter_code,shortName:n.short_name,longName:n.long_name,clubName:n.club_name,logo:n.logo_url?n.logo_url.replace(".png",".svg"):null,shirtMainColor:"",shirtSecondaryColor:"",teamMainColor:n.team_main_color,teamSecondaryColor:n.team_secondary_color,players:[],formation:""}:null}))).filter(Boolean).forEach(e=>{e&&a(e)}),await e.convertSeasonRankingData(s)}catch(e){return G.Debugger.console(2,"Error in getSeasonRankings:",e),[]}}static generateLiveRankingItem(e,t,n,r){if(t.length<=0)return null;let a=t.filter(e=>null!=n.find(t=>t.playerId===e.playerId)).filter(e=>e.value>0).sort((e,t)=>t.value-e.value);if(0===a.length)return null;let o=a[0],i=n.find(e=>e.playerId===o.playerId);if(!i)return null;let s=r.find(e=>e.id===i.teamId);if(!s)return null;let l=a.map((e,t)=>{let a=n.find(t=>t.playerId===e.playerId);if(!a)return null;let o=r.find(e=>e.id===a.teamId);return o?{position:t+1,player:a.displayName,club:o.logo,categoryPoints:e.value,matchPlayer:a}:null}).filter(e=>null!==e);return 0===l.length?null:se({category:e,categoryPoints:o.value,clubName:s.shortName,clubLogo:s.logo,season:"",ranking:1,playerName:i.displayName,playerImage:i.imageUrl,shirtMainColor:i.shirtMainColor||"",shirtSecondaryColor:i.shirtSecondaryColor||"",matchPlayer:i,rankingListData:l})}static sortPassesCompleted(e){let t=e.filter(e=>"passes_completed"===e.category),n=j.getState().clubs;return t.length>0&&(t[0].rankingListData.sort((e,t)=>
138{if(e.categoryPoints===t.categoryPoints)return e.player<t.player?-1:e.player>t.player?1:0}).map((e,t)=>{e.position=t+1}),t[0].matchPlayer=t[0].rankingListData[0].matchPlayer,t[0].clubName=n.find(e=>e.id===t[0].matchPlayer.teamId).shortName,t[0].clubLogo=n.find(e=>e.id===t[0].matchPlayer.teamId).logo,t[0].playerName=t[0].matchPlayer.displayName,t[0].playerImage=t[0].matchPlayer.imageUrl,t[0].shirtMainColor=t[0].matchPlayer.shirtMainColor,t[0].shirtSecondaryColor=t[0].matchPlayer.shirtSecondaryColor),e}static async getAddMissingClub(t){let{clubs:n,updateClub:r}=j.getState(),a=n.find(e=>t===e.id);if(!a){let n=await e.fetchClubSafely(t);if(!n)return null;let a={id:n.team_id,threeLetterCode:n.three_letter_code,shortName:n.short_name,longName:n.long_name,clubName:n.club_name,logo:n.logo_url?n.logo_url.replace(".png",".svg"):null,shirtMainColor:"",shirtSecondaryColor:"",teamMainColor:n.team_main_color,teamSecondaryColor:n.team_secondary_color,players:[],formation:""};return r(a),a}return a}static async convertMatchRankingData(){try{let{mainMatchId:t,matches:n}=B.getState(),r=n.find(e=>e.matchId===t);if(!r)return[];let[a,o]=await Promise.all([(0,X.U3)(r.matchId,r.homeClub.id),(0,X.U3)(r.matchId,r.guestClub.id)]);if(!Array.isArray(a)||!Array.isArray(o))return[];let i=a.concat(o),s=new Set,l=new Set([r.homeClub.id,r.guestClub.id]);await Promise.all(Array.from(l).map(async t=>e.getAddMissingClub(t)));let c=j.getState().clubs.filter(e=>l.has(e.id)),u=r.competitionId,d={goals:new Array,assists:new Array,touches:new Array,challenges_won:new Array,challenges_won_absolute:new Array,fouls:new Array,passes_completed:new Array,distance_covered_per_match:new Array,sprints:new Array,shots_at_goal_per_match:new Array,top_speed:new Array,goalkeeper_saves_per_match:new Array};i.forEach(e=>{e?.player_id&&(s.add(e.player_id),"number"==typeof e.goals&&d.goals.push({playerId:e.player_id,value:e.goals}),"number"==typeof e.assists&&d.assists.push({playerId:e.player_id,value:e.assists}),"number"==typeof e.distance_covered&&d.distance_covered_per_match.push({playerId:e.player_id,value:e.distance_covered}),"number"==typeof e.sprints&&d.sprints.push({playerId:e.player_id,value:e.sprints}),"number"==typeof e.shots_on_target&&d.shots_at_goal_per_match.push({playerId:e.player_id,value:e.shots_on_target}),"number"==typeof e.goalkeeper_saves&&d.goalkeeper_saves_per_match.push({playerId:e.player_id,value:e.goalkeeper_saves}),"number"==typeof e.touches&&d.touches.push({playerId:e.player_id,value:e.touches}),void 0!==typeof e.tacklings&&void 0!==typeof e.tacklings_won&&d.challenges_won.push({playerId:e.player_id,value:Number((0,Q.$4)(e.tacklings_won,e.tacklings))}),"number"==typeof e.tacklings_won&&d.challenges_won_absolute.push({playerId:e.player_id,value:e.tacklings_won}),"number"==typeof e.fouls&&d.fouls.push({playerId:e.player_id,value:e.fouls}),"number"==typeof e.maximum_speed&&d.top_speed.push({playerId:e.player_id,value:e.maximum_speed}),e.playing_time_ratio&&e.playing_time_ratio>.6667&&void 0!==typeof e.passes&&void 0!==typeof e.passes_successful&&d.passes_completed.push({playerId:e.player_id,value:Number((0,Q.$4)(e.passes_successful,e.passes))}))});let p=(await Promise.all(Array.from(s).map(async e=>{try{try{let t=await(0,X.iV)(e,u);return t?oe(t):null}catch(t){if(!t.message?.includes("404"))return G.Debugger.console(2,`Error fetching player ${e}:`,t),null;G.Debugger.console(2,`Retrying to fetch player ${e} without competitionId`);try{let t=await(0,X.iV)(e);return t?oe(t):null}catch(t){return G.Debugger.console(2,`Fallback fetch for player ${e} also failed:`,t),null}}}catch(t){return G.Debugger.console(2,`Unexpected error fetching player ${e}:`,t),null}}))).filter(e=>null!==e),f=Object.entries(d).map(([t,n])=>e.generateLiveRankingItem(t,n,p,c)).filter(e=>null!==e);return e.sortPassesCompleted(f)}catch(e){return G.Debugger.console(2,"Error in convertMatchRankingData:",e),[]}}static async convertSeasonRankingItemsData(e){let{mainMatchId:t,matches:n}=B.getState(),r=n.find(e=>e.matchId===t).competitionId,a=new Set(e.player_rankings.map(e=>
138e.team_id)),o=j.getState().clubs.filter(e=>a.has(e.id)),i=e.player_rankings.map(e=>{if(e)return e.player_id}),s=(await Promise.all(Array.from(i).map(async e=>{if(!e)return null;try{try{let t=await(0,X.iV)(e,r);return t?oe(t):null}catch(t){if(!t.message?.includes("404"))return G.Debugger.console(2,`Error fetching player ${e}:`,t),null;G.Debugger.console(2,`Retrying to fetch player ${e} without competitionId`);try{let t=await(0,X.iV)(e);return t?oe(t):null}catch(t){return G.Debugger.console(2,`Fallback fetch for player ${e} also failed:`,t),null}}}catch(t){return G.Debugger.console(2,`Unexpected error fetching player ${e}:`,t),null}}))).filter(e=>null!==e),l=e.player_rankings.map(e=>{let t=s.find(t=>t.playerId===e.player_id);return t?{position:e.rank,player:t.displayName,club:o.find(t=>t.id===e.team_id)?.id,clubLogo:o.find(t=>t.id===e.team_id)?.logo,categoryPoints:e.absolute,matchPlayer:t}:null}).filter(e=>null!==e);return{category:e.rankings_type,rankingListData:l}}static async getSeasonRankingItems(t,n){let r=await(0,X.Gm)(t,5,n);return e.convertSeasonRankingItemsData(r)}};(class e{static{this.timerTickInterval=1e3}static initialize(){e.intervalId=setInterval(()=>{e.timeloop()},this.timerTickInterval)}static timeloop(){let{matches:e,toggleEventDisplay:t,spoilerMode:n,mainMatchId:r}=B.getState(),{updateSimVideoTime:a,simulatedVideoTime:o}=V.getState();a(),n||e.reduce((e,t)=>[...e,...t.events.filter(e=>!1===e.display&&o>e.time)],[]).forEach(e=>{t({eventId:e.eventId,matchId:e.matchId}),be.sendAlert(e,r)})}static stop(){clearInterval(e.intervalId)}});var Me=new class{connect(e){let t=("live"!==(0,E.TVXCONFIG)().appMode&&"liveplusmd"!==(0,E.TVXCONFIG)().appMode?(0,E.TVXCONFIG)().urlWebsocketReplay():(0,E.TVXCONFIG)().urlWebsocket)+"/"+(0,E.TVXCONFIG)().takerId;G.Debugger.console(0,`[WS] New connection: ${t}`),this.ws&&(G.Debugger.console(1,`[WS] Closing existing connection before new connection: ${this.socketUrl}`),this.ws.close(1e3,"New connection requested")),this.socketUrl=t,this.ws=new WebSocket(t),this.ws.onerror=e=>{G.Debugger.console(2,"[WS] Error: "+JSON.stringify(e,null,2))},this.ws.onclose=e=>{if(1e3===e.code)return void G.Debugger.console(0,"[WS] Disconnected - Forced disconnect");let t=(0,E.TVXCONFIG)().websocketService.reconnectInterval;G.Debugger.console(1,"[WS] Disconnected - Try to reconnect in "+t/1e3+" seconds"),setTimeout(function(){!function(){let e=(0,E.TVXCONFIG)().websocketService.reconnectAttempts;if(G.Debugger.console(0,"[WS] Reconnection try attempt "+Oe++),Oe===e)return T.U.trigger("error",{code:"100",name:"backendUnavailable",errorMessage:"We're sorry, we're currently facing a heavy load of viewers. Please try again shortly. Thanks for waiting. [100]",customMessage:"Backend unavailable: Cannot reconnect to websocket service after "+e+" attempts."}),!1;Me.connect(!0)}()},t)},this.ws.onopen=()=>{if(e){let{registeredMatches:e,registeredPlayers:t}=$.getState();e.forEach(e=>{this.unregisterFromMatch(e.matchId),this.registerToMatch(e.matchId)}),t.forEach(e=>{this.unregisterFromPlayer(e),this.registerToPlayer(e)})}G.Debugger.console(0,"[WS] Connected")},this.ws.onmessage=({data:e})=>{T.U.trigger("TVX_WebSocket_Event",e)}}sendMessage(e){this.ws.send(JSON.stringify(e))}closeWs(){G.Debugger.console(0,"[WS] Forced disconnect - Not reconnecting"),this.ws.close(1e3,"Forced disconnect"),this.ws=null,this.socketUrl=null}registerToMatch(e){this.waitForSocketConnection(this.ws,()=>{let t={request_type:"register_to_match",match_id:e};this.ws.send(JSON.stringify(t)),G.Debugger.console(0,"[WS] Registered to Match "+e)})}unregisterFromMatch(e,t){this.waitForSocketConnection(this.ws,()=>{let n={request_type:"unregister_from_match",match_id:e};this.ws.send(JSON.stringify(n)),G.Debugger.console(0,"[WS] Unregistered from Match "+e),t&&this.closeWs()})}registerToPlayer(e){let t={request_type:"register_to_player",player_id:e};this.ws.send(JSON.stringify(t)),G.Debugger.console(0,"[WS] Registered to Player "+e)}unregisterFromPlayer(e){let t={request_type:"unregister_from_player",player_id:e};this.ws.send(JSON.stringify(t)),G.Debugger.console(0,"[WS] Unregistered from Player "+e)}waitForSocketConnection(e,t){setTimeout(function(){1===e.readyState&&null!==t&&t()},300)}},Oe=1,Le=s(7044);const je="CLOSE",Ae="NONE",Ne="NONE",Re="MATCH_STATISTICS",Fe="LINEUPS",De="LINEUPS_BENCH",He="LIVE_TABLE",Be="LIVE_RANKINGS",ze="SEASON_RANKINGS",We="PLAYER_STATISTICS",Ue="GROUP_TABLE",$e="KO_TREE";var Ke,Ve;(Ve=Ke||(Ke={}))[Ve.Football=0]="Football",Ve[Ve.Tennis=1]="Tennis",Ve[Ve.Cricket=2]="Cricket";
138var Ge=function(e,t,n,r){return new(n||(n=Promise))(function(a,o){function i(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,s)}l((r=r.apply(e,t||[])).next())})};const Xe="LINEUPS_HOME",qe="LINEUPS_GUEST",Ye="LOADING",Qe="SUCCESS",Je="NODATA",Ze={entrySectionState:new Map,selectedEntry:Ne,selectedMenu:je,liveTable:[],liveTableCallState:Ye,tournamentStandings:void 0,tournamentStandingsCallState:Ye,liveRankings:[],liveRankingsCallState:Ye,seasonRankings:[],seasonRankingsCallState:Ye,lineUpsSubState:Xe,playerStatistics:null,playerStatisticsCallState:Ye},et=b()(w((e,t)=>Object.assign(Object.assign({},Ze),{setSelectedEntry:t=>{e({selectedEntry:t},!1,"setSelectedEntry")},setEntrySectionState:(n,r)=>{const a=new Map(t().entrySectionState);a.set(n,r),e({entrySectionState:a},!1,"setEntrySectionState")},clearEntrySectionState:n=>{const r=new Map(t().entrySectionState);r.delete(n),e({entrySectionState:r},!1,"clearEntrySectionState")},resetEntrySectionState:()=>{e({entrySectionState:new Map},!1,"resetEntrySectionState")},setLiveRankingExpanded:(n,r)=>{const a=t().liveRankings;e({liveRankings:a.map(e=>e.category===n?Object.assign(Object.assign({},e),{isExpanded:r}):e)},!1,"setLiveRankingExpanded")},resetLiveRankingExpanded:()=>{const n=t().liveRankings;e({liveRankings:n.map(e=>Object.assign(Object.assign({},e),{isExpanded:!1}))},!1,"resetLiveRankingExpanded")},setSeasonRankingExpanded:(n,r)=>{const a=t().seasonRankings;e({seasonRankings:a.map(e=>e.category===n?Object.assign(Object.assign({},e),{isExpanded:r}):e)},!1,"setSeasonRankingExpanded")},resetSeasonRankingExpanded:()=>{const n=t().seasonRankings;e({seasonRankings:n.map(e=>Object.assign(Object.assign({},e),{isExpanded:!1}))},!1,"resetSeasonRankingExpanded")},getLiveTable:()=>Ge(void 0,void 0,void 0,function*(){try{const t=yield ke.getLiveTable();t&&t.length>0&&e({liveTable:t,liveTableCallState:Qe},!1,"getLiveTable"),t&&0===t.length&&e({liveTable:t,liveTableCallState:Je},!1,"getLiveTable")}catch(n){const r=t().liveTableCallState;e({liveTableCallState:r===Ye?Je:r},!1,"getLiveTable")}}),getGroupTable:()=>Ge(void 0,void 0,void 0,function*(){try{const t=yield ke.getGroupTable();e({tournamentStandings:t,tournamentStandingsCallState:t?Qe:Je},!1,"getGroupTable")}catch(n){const r=t().tournamentStandingsCallState;e({tournamentStandingsCallState:r===Ye?Je:r},!1,"getGroupTable")}}),getSeasonRankings:()=>Ge(void 0,void 0,void 0,function*(){try{const n=yield Te.getSeasonRankings();if(n&&n.length>0){const r=t().seasonRankings,a=new Map(r.map(e=>[e.category,e.rankingListData])),o=new Map(r.map(e=>[e.category,e.isExpanded]));e({seasonRankings:n.map(e=>{var t,n;return Object.assign(Object.assign({},e),{rankingListData:null!==(t=a.get(e.category))&&void 0!==t?t:e.rankingListData,isExpanded:null!==(n=o.get(e.category))&&void 0!==n?n:e.isExpanded})}),seasonRankingsCallState:Qe},!1,"getSeasonRankings")}n&&0===n.length&&e({seasonRankings:n,seasonRankingsCallState:Je},!1,"getSeasonRankings")}catch(n){const r=t().seasonRankingsCallState;e({seasonRankingsCallState:r===Ye?Je:r},!1,"getSeasonRankings")}}),getLiveRankings:()=>Ge(void 0,void 0,void 0,function*(){try{const n=yield Te.convertMatchRankingData();if(n&&n.length>0){const r=t().liveRankings,a=new Map(r.map(e=>[e.category,e.isExpanded]));e({liveRankings:n.map(e=>{var t;return Object.assign(Object.assign({},e),{isExpanded:null!==(t=a.get(e.category))&&void 0!==t?t:e.isExpanded})}),liveRankingsCallState:Qe},!1,"getLiveRankings")}n&&0===n.length&&e({liveRankings:n,liveRankingsCallState:Je},!1,"getLiveRankings")}catch(n){const r=t().liveRankingsCallState;e({liveRankingsCallState:r===Ye?Je:r},!1,"getLiveRankings")}}),updateLiveTable:t=>{e({liveTable:t,liveRankingsCallState:"SUCCESS"},!1,"updateLiveTable")},updateSeasonRankingsItem:(n,r)=>Ge(void 0,void 0,void 0,function*(){try{const a=yield Te.getSeasonRankingItems(n,r),o=t().seasonRankings;e({seasonRankings:o.map(e=>e.category===a.category?Object.assign(Object.assign({},e),{rankingListData:a.rankingListData}):e)},!1,"updateSeasonRankingsItem")}catch(e){}}),setLineUpsSubState:t=>{e({lineUpsSubState:t},!1,"setLineUpsSubState")},toggleLineUpsSubState:()=>{const n=t().lineUpsSubState;e({lineUpsSubState:n===Xe?qe:Xe},!1,"toggleLineUpsSubState")},getPlayerStatistics:(n,r,a,o)=>Ge(void 0,void 0,void 0,function*(){try{const t=yield Ie.getPlayerStatistics(n,r,a,o);e({playerStatistics:t,playerStatisticsCallState:Qe},!1,"getPlayerStatistics")}catch(n){const r=t().playerStatisticsCallState;e({playerStatisticsCallState:r===Ye?Je:r},!1,"getPlayerStatistics")}}),updatePlayerLiveStats:t=>{const{liveStatistics:n}=t;e(({playerStatistics:e})=>({playerStatistics:e?Object.assign(Object.assign({},e),{liveStatistics:n}):e}),!1,"updatePlayerLiveStats")},clearPlayerStatistics:()=>{e({playerStatistics:Ze.playerStatistics,playerStatisticsCallState:Ye},!1,"clearPlayerStatistics")},setSelectedMenu:t=>{e({selectedMenu:t},!1,"setSelectedMenu")},reset:()=>{e(Object.assign({},Ze),!1,"reset")}}),{name:"MENU STORE"})),tt=()=>{G.Debugger.console(0,"[Reset App Stores] Resetting app stores"),[O,B,$,j,N,F,W,V,et,I].forEac
138h(e=>{e.getState().reset()}),G.Debugger.console(0,"[Reset App Stores] App stores reset complete")};var nt=function(e,t,n,r){return new(n||(n=Promise))(function(a,o){function i(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,s)}l((r=r.apply(e,t||[])).next())})},rt=s(8658),at=s(9241),ot=s(1448),it=s(3755),st=s(1758),lt=s(8717),ct=s(1721),ut=function(e,t,n){for(var r=0,a=0;r=a,a=(0,at.se)(),38===r&&12===a&&(t[n]=1),!(0,at.Sh)(a);)(0,at.K2)();return(0,at.di)(e,at.G1)},dt=new WeakMap,pt=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||dt.get(n))&&!r){dt.set(e,!0);for(var a=[],o=function(e,t){return(0,at.VF)(function(e,t){var n=-1,r=44;do{switch((0,at.Sh)(r)){case 0:38===r&&12===(0,at.se)()&&(t[n]=1),e[n]+=ut(at.G1-1,t,n);break;case 2:e[n]+=(0,at.Tb)(r);break;case 4:if(44===r){e[++n]=58===(0,at.se)()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=(0,ot.HT)(r)}}while(r=(0,at.K2)());return e}((0,at.c4)(e),t))}(t,a),i=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<i.length;c++,l++)e.props[l]=a[s]?o[s].replace(/&\f/g,i[c]):i[c]+" "+o[s]}}},ft=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ht(e,t){switch((0,ot.tW)(e,t)){case 5103:return it.j+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return it.j+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return it.j+e+it.vd+e+it.MS+e+e;case 6828:case 4268:return it.j+e+it.MS+e+e;case 6165:return it.j+e+it.MS+"flex-"+e+e;case 5187:return it.j+e+(0,ot.HC)(e,/(\w+).+(:[^]+)/,it.j+"box-$1$2"+it.MS+"flex-$1$2")+e;case 5443:return it.j+e+it.MS+"flex-item-"+(0,ot.HC)(e,/flex-|-self/,"")+e;case 4675:return it.j+e+it.MS+"flex-line-pack"+(0,ot.HC)(e,/align-content|flex-|-self/,"")+e;case 5548:return it.j+e+it.MS+(0,ot.HC)(e,"shrink","negative")+e;case 5292:return it.j+e+it.MS+(0,ot.HC)(e,"basis","preferred-size")+e;case 6060:return it.j+"box-"+(0,ot.HC)(e,"-grow","")+it.j+e+it.MS+(0,ot.HC)(e,"grow","positive")+e;case 4554:return it.j+(0,ot.HC)(e,/([^-])(transform)/g,"$1"+it.j+"$2")+e;case 6187:return(0,ot.HC)((0,ot.HC)((0,ot.HC)(e,/(zoom-|grab)/,it.j+"$1"),/(image-set)/,it.j+"$1"),e,"")+e;case 5495:case 3959:return(0,ot.HC)(e,/(image-set\([^]*)/,it.j+"$1$`$1");case 4968:return(0,ot.HC)((0,ot.HC)(e,/(.+:)(flex-)?(.*)/,it.j+"box-pack:$3"+it.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+it.j+e+e;case 4095:case 3583:case 4068:case 2532:return(0,ot.HC)(e,/(.+)-inline(.+)/,it.j+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,ot.b2)(e)-1-t>6)switch((0,ot.wN)(e,t+1)){case 109:if(45!==(0,ot.wN)(e,t+4))break;case 102:return(0,ot.HC)(e,/(.+:)(.+)-([^]+)/,"$1"+it.j+"$2-$3$1"+it.vd+(108==(0,ot.wN)(e,t+3)?"$3":"$2-$3"))+e;case 115:return~(0,ot.K5)(e,"stretch")?ht((0,ot.HC)(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==(0,ot.wN)(e,t+1))break;case 6444:switch((0,ot.wN)(e,(0,ot.b2)(e)-3-(~(0,ot.K5)(e,"!important")&&10))){case 107:return(0,ot.HC)(e,":",":"+it.j)+e;case 101:return(0,ot.HC)(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+it.j+(45===(0,ot.wN)(e,14)?"inline-":"")+"box$3$1"+it.j+"$2$3$1"+it.MS+"$2box$3")+e}break;case 5936:switch((0,ot.wN)(e,t+11)){case 114:return it.j+e+it.MS+(0,ot.HC)(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return it.j+e+it.MS+(0,ot.HC)(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return it.j+e+it.MS+(0,ot.HC)(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return it.j+e+it.MS+e+e}return e}var gt=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case it.LU:e.return=ht(e.value,e.length);break;case it.Sv:return(0,st.l)([(0,at.C)(e,{value:(0,ot.HC)(e.value,"@","@"+it.j)})],r);case it.XZ:if(e.length)return(0,ot.kg)(e.props,function(t){switch((0,ot.YW)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,st.l)([(0,at.C)(e,{props:[(0,ot.HC)(t,/:(read-\w+)/,":"+it.vd+"$1")]})],r);case"::placeholder":return(0,st.l)([(0,at.C)(e,{props:[(0,ot.HC)(t,/:(plac\w+)/,":"+it.j+"input-$1")]}),(0,at.C)(e,{props:[(0,ot.HC)(t,/:(plac\w+)/,":"+it.vd+"$1")]}),(0,at.C)(e,{props:[(0,ot.HC)(t,/:(plac\w+)/,it.MS+"input-$1")]})],r)}return""})}}],mt=s(805),yt=s(6808),vt=s(7516),bt=e=>{switch(e){case"start-only":return"var(--borderRadius) 0 0 var(--borderRadius)";case"end-only":return"0 var(--borderRadius) var(--borderRadius) 0";case"none":return"0";default:return"var(--borderRadius)"}},xt=e=>{switch(e){case"start-only":return"0 0 0 var(--borderRadius)";case"end-only":return"0 0 var(--borderRadius) 0";case"none":return"0";default:return"0 0 var(--borderRadius) var(--borderRadius)"}},St=vt.A.button(({focused:e,selected:t,radius:n})=>({label:"VerticalMenuItemStyled",display:"flex",justifyContent:"center",alignItems:"center",position:"relative",width:"var(--menuButtonWidth)",height:"var(--menuButtonHeight)",minWidth:"var(--menuButtonWidth)",backgroundColor:t?"var(--colorSecondaryMedium)":"var(--colorTertiaryMedium)",border:"none",borderRadius:bt(n),boxSizing:"border-box",cursor:"pointer",outline:"none",overflow:"hidden",transition:"width 200ms ease, background-color 200ms ease",...t&&{"::after":{content:'""',position:"absolute",bottom:"0",left:"0",right:"0",width:"100%",height:"var(--selectedMenuButtonBorderHeight)",backgroundColor:"var(--colorPrimaryHigh)",borderRadius:xt(n)}},"&:focus-visible":{width:"var(--menuButtonWidthLarger)",backgroundColor:"var(--colorSecondaryMedium)"},...e&&{width:"var(--menuButtonWidthLarger)",backgroundColor:"var(--colorSecondaryMedium)"},"&:active":{transform:"scale(0.98)"}})),wt=vt.A.span({label:"VerticalMenuItemIconWrapper",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:"var(--menuButtonIconSize)",height:"var(--menuButtonIconSize)"}),kt=e=>{if(!e)return null;let t=0,n=0,r=0;if(e.match(/^rgb/)){let a=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*\d+(?:\.\d+)?)?\)$/);a&&a.length>=4&&(t=Number(a[1]),n=Number(a[2]),r=Number(a[3]))}else{let a=+("0x"+e.slice(1).replace(e.length<5?/./g:"","$&$&"));t=a>>16,n=a>>8&255,r=255&a}return Math.sqrt(t*t*.299+n*n*.587+r*r*.114)>127.5};function _t(e){return e>=.2&&e<.5?-100:e>.5&&e<=.8||e<.2?0:e>.8?-100:-50}function Ct(e,t){return-e*t}var Pt={TurnMobile:"/turn_mobile.svg",CheckboxIcon:"/checkbox.svg",CheckboxCheckedIcon:"/checkbox_checked.svg",CheckboxDisabledIcon:"/checkbox_disabled.svg",CheckboxDisabledCheckedIcon:"/checkbox_disabled_checked.svg",ChevronDownIcon:"/chevron_down.svg",ChevronDownIconWhite:"/chevron_down_white.svg",ChevronDownIconBlack:"/chevron_down_black.svg",ChevronDownIconDisabled:"/chevron_down_disabled.svg",ChevronLeftIcon:"/chevron_left.svg",ChevronLeftIconBlack:"/chevron_left_black.svg",ChevronRightIcon:"/chevron_right.svg",ChevronRightIconBlack:"/chevron_right_black.svg",ChevronUpIcon:"/chevron_up.svg",ChevronUpIconWhite:"/chevron_up_white.svg",ChevronUpIconBlack:"/chevron_up_black.svg",PolygonRightIconWhite:"/polygon_right_white.svg",CloseLarge:"/close_large.svg",CloseLargeWhite:"/close_large_white.svg",Field:"/field.svg",ExitIcon:"/exit_icon.svg",AlertsDisabledMenuIcon:"/menu_button_alerts_disabled.svg",AlertsDisabledMenuIconWhite:"/menu_button_alerts_disabled_white.svg",AlertsEnabledMenuIcon:"/menu_button_alerts_enabled.svg",AlertsEnabledMenuIconGrey:"/menu_button_alerts_enabled_grey.svg",AlertsEnabledMenuIconWhite:"/menu_button_alerts_enabled_white.svg",MatchMenuIcon:"/menu_button_matches_white.svg",MatchSelectedIndicator:"/match_selected_indicator.svg",StatisticsMenuIcon:"/menu_button_statistics_white.svg",MoreIcon:"/more_icon.svg",PSBack:"/player_statistics_back.svg",PlayerStatisticsBackButton:"/player_statistics_back_button.svg",RadioButtonIcon:"/radio_button.svg",RadioButtonSelectedIcon:"/radio_button_selected.svg",RadioButtonIconWhite:"/radio_button_white.svg",RecordIcon:"/record_icon.svg",SettingsButtonIcon:"/settings_button.svg",SettingsButtonDisabledIcon:"/settings_button_disabled.svg",ToggleButtonWhiteOffIcon:"/toggle_button_white_off.svg",ToggleButtonWhiteOnIcon:"/toggle_button_white_on.svg",SportsGuide:"/sports_guide.svg",SliderOn:"/slider_on_white.svg",SliderOff:"/slider_off_white.svg",MatchStatisticsMenuIcon:"/menu_entry_match_statistics.svg",MatchStatisticsMenuIconSelected:"/menu_entry_match_statistics_selected.svg",LineupMenuIcon:"/menu_entry_lineups.svg",LineupMenuIconSelected:"/menu_entry_lineups_selected.svg",LiveTableMenuIcon:"/menu_entry_live_table.svg",LiveTableMenuIconSelected:"/menu_entry_live_table_selected.svg",LiveRankingsMenuIcon:"/menu_entry_live_rankings.svg",LiveRankingsMenuIconSelected:"/menu_entry_live_rankings_selected.svg",SeasonRankingsMenuIcon:"/menu_entry_season_rankings.svg",SeasonRankingsMenuIconSelected:"/menu_entry_season_rankings_selected.svg",LineupFieldMenuIcon:"/menu_entry_lineups_field.svg",LineupFieldMenuIconSelected:"/menu_entry_lineups_field_selected.svg",LineupBenc
138hMenuIcon:"/menu_entry_lineups_bench.svg",LineupBenchMenuIconSelected:"/menu_entry_lineups_bench_selected.svg",KOTreeMenuIcon:"/menu_entry_knockout_tree_white.svg",KOTreeMenuIconSelected:"/menu_entry_knockout_tree_black.svg",SkipBack:"/skip-back.svg",SkipForward:"/skip-forward.svg",MaximizeVideoIcon:"/player_controls_maximize_video.svg",MinimizeVideoIcon:"/player_controls_minimize_video.svg",Commentary:"/player_controls_commentary_white.svg",Onboarding:"/info.svg",GoLive:"/go-live.svg",LiveDot:"/live-dot.svg",PauseIcon:"/player_controls_pause.svg",PlayIcon:"/player_controls_play.svg",SoundOn:"/sound_on.svg",SoundOff:"/sound_off.svg",ScreenCastInactive:"/screencast_inactive.svg",ScreenCastActive:"/screencast_active.svg",AirplayInactive:"/airplay_inactive.svg",AirplayActive:"/airplay_active.svg",MortVert:"/more_vert.svg",BackToGameIcon:"/player_controls_back_to_game.svg",BackToGameWhite:"/player_controls_back_to_game_white.svg",LogoDFL:"/dfl_logo.svg",Goal:"/goal.svg",OwnGoal:"/own_goal.svg",PenaltyShootout:"/penalty_shootout.svg",MissedPenalty:"/penalty_missed.svg",RedCard:"/red_card.svg",SubstituteIn:"/substitute_in.svg",SubstituteOut:"/substitute_out.svg",YellowCard:"/yellow_card.svg",YellowRedCard:"/yellow_red_card.svg",VARWhistle:"/var_whistle.svg",VARWhistleBlack:"/var_whistle_black.svg",EventsHighlight:"/events_highlight.svg",Football:"/football.svg",RestartImage:"/relive_entry_dialog_restart.svg",WatchLiveImage:"/relive_entry_dialog_watch_live.svg",Hidden:"/hidden.svg",SportsGuideAlertsEnabled:"/sports_guide_button_alerts_enabled.svg",SportsGuideAlertsDisabled:"/sports_guide_button_alerts_disabled.svg",CloseMenuIcon:"/close.svg"},It=(e,t)=>{let n=Pt[e];return n?"https://sdk-cdn.cloud.tvxray.com/web/icons/"+(t||"whitelabel")+n:"Not found"},Et=e=>{switch(e){case"GOAL":return It("Goal","whitelabel");case"OWN_GOAL":return It("OwnGoal","whitelabel");case"YELLOW_CARD":return It("YellowCard","whitelabel");case"RED_CARD":return It("RedCard","whitelabel");case"YELLOW_RED_CARD":return It("YellowRedCard","whitelabel");case"SUBSTITUTE_IN":return It("SubstituteIn","whitelabel");case"SUBSTITUTE_OUT":return It("SubstituteOut","whitelabel")}},Tt=vt.A.button(({focused:e,selected:t})=>({label:"HorizontalMenuItemStyled",paddingLeft:"var(--paddingLargest)",paddingRight:"var(--paddingLargest)",display:"flex",justifyContent:"center",alignItems:"center",position:"relative",height:"var(--menuButtonHeight)",width:"var(--menuButtonWidth)",backgroundColor:"var(--colorTertiaryMedium)",border:"none",borderRadius:"var(--borderRadius)",boxSizing:"border-box",cursor:"pointer",outline:"none",overflow:"hidden",transition:"max-width 200ms ease, width 200ms ease, gap 200ms ease, background-color 200ms ease, margin-right 200ms ease","&:focus-visible":{height:"var(--menuButtonHeightLarger)",backgroundColor:"var(--colorSecondaryMedium)"},...e&&{width:"var(--menuButtonHeightLarger)",marginRight:"calc(var(--menuButtonWidth) - var(--menuButtonHeightLarger))",backgroundColor:"var(--colorSecondaryMedium)"},"&:active":{transform:"scale(0.98)"}})),Mt=vt.A.span({label:"IconWrapper",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:"var(--menuButtonIconSize)",height:"var(--menuButtonIconSize)"}),Ot=vt.A.span(({selected:e})=>({label:"LabelStyled",minWidth:0,maxWidth:e?"var(--expandedMenuButtonWidth)":0,color:"var(--textOnSecondaryHigh)",opacity:e?1:0,overflow:"hidden",pointerEvents:e?"auto":"none",transition:"opacity 200ms ease, max-width 200ms ease",whiteSpace:"nowrap"})),Lt=s(5428),jt=(vt.A.div({backgroundColor:"white",height:"var(--animatedProgressIndicatorHeight)",borderRadius:"0 0 (--borderRadius) var(--borderRadius)"}),Lt.keyframes`
139    0% {
140        width: 0;
141    }
142    100% {
143        width: 100%;
144    }
145`),At=(vt.A.div(e=>({height:"100%",backgroundColor:"var(--colorPrimaryHigh)",animationName:jt,animationTimingFunction:"linear",animationDuration:e.duration?e.duration:"5s",borderRadius:"0 0 var(--borderRadius) var(--borderRadius)"})),vt.A.div({label:"CheckboxWrapper",display:"flex",alignItems:"center",justifyContent:"center"}),vt.A.img({label:"CheckboxImg",width:"var(--matchAlertCheckboxSize)",height:"var(--matchAlertCheckboxSize)"}),vt.A.div(e=>
145({label:"CheckboxContainer",display:"flex",alignItems:"center",cursor:e.disabled?"auto":"pointer"})),vt.A.h1(e=>({label:"CheckboxLabel",padding:"var(--alertSettingsLabelPadding)",color:e.disabled?"var(--colorLightHigh)":"var(--textOnBackgroundDisabled)"})),vt.A.div({display:"grid",grid:"1fr / 1fr 1fr",gap:"var(--marginSmall)",alignItems:"center",justifyItems:"center"})),Nt=vt.A.div(e=>({height:e.collapsed?"var(--matchStatisticsCollapsibleHeaderCollapsedHeight)":"var(--matchStatisticsCollapsibleHeaderDefaultHeight)",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",transition:"200ms all ease",color:"var(--colorWhiteHigh)",backgroundColor:"var(--colorSecondaryMedium)",borderRadius:"var(--borderRadius)"})),Rt=vt.A.img(e=>({display:e.collapsed?"none":"block",height:"var(--matchStatisticsClubLogoHeight)",width:"var(--matchStatisticsClubLogoWidth)",paddingBottom:"var(--matchStatisticsClubLogoPaddingBottom)",WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"})),Ft=vt.A.div(e=>({color:e.textColor?"var(--colorTertiaryLow)":"var(--textOnSurface)"})),Dt=e=>{let{homeClubColor:t,homeClubShortname:n,guestClubColor:r,guestClubShortname:a,collapsed:o,homeClubLogo:i,guestClubLogo:s}=e;return(0,c.jsx)("div",{style:{marginBottom:"var(--marginSmall)"},"data-testid":"wl-collapsibleheader",children:(0,c.jsxs)(At,{children:[(0,c.jsxs)(Nt,{style:{backgroundColor:o?t:"var(--colorTertiaryMedium)"},collapsed:o,children:[(0,c.jsx)(Rt,{src:i,alt:`Logo of ${n}`,draggable:!1,onDragStart:e=>e.preventDefault(),onContextMenu:e=>e.preventDefault(),collapsed:o}),(0,c.jsx)(Ft,{textColor:kt(t)||!1,className:"wl-font-body-extra-bold",children:n})]}),(0,c.jsxs)(Nt,{style:{backgroundColor:o?r:"var(--colorTertiaryMedium)"},collapsed:o,children:[(0,c.jsx)(Rt,{src:s,alt:`Logo of ${a}`,draggable:!1,onDragStart:e=>e.preventDefault(),onContextMenu:e=>e.preventDefault(),collapsed:o}),(0,c.jsx)(Ft,{textColor:kt(r)||!1,className:"wl-font-body-extra-bold",children:a})]})]})})},Ht=vt.A.div({label:"LoadingSpinnerWrapper",border:"var(--px4) solid var(--colorWhiteHigh)",borderTopColor:"var(--colorPrimaryHigh)",borderRadius:"50%",width:"var(--loadingSpinnerSize)",height:"var(--loadingSpinnerSize)",animation:`${yt.ni} 1s linear infinite`}),Bt=()=>(0,c.jsx)(Ht,{}),zt=vt.A.div({height:"var(--emptyMessageContainerHeight)",display:"flex",justifyContent:"center",alignItems:"center",flexWrap:"wrap",backgroundColor:"var(--colorSecondaryMedium)",textAlign:"center",borderRadius:"var(--borderRadius)",padding:"var(--paddingLargest)"}),Wt=vt.A.h1({margin:"var(--marginMedium)",color:"var(--textOnSurface)"}),Ut=vt.A.div({marginBottom:"var(--marginLarge)",color:"var(--textOnSurface)"}),$t=({header:e,message:t,isLoading:n})=>(0,c.jsx)(zt,{"data-testid":"emptymessage",children:(0,c.jsxs)("div",{children:[n&&(0,c.jsx)(Bt,{}),e&&(0,c.jsx)(Wt,{className:"wl-font-body","data-testid":"header",children:e}),t&&(0,c.jsx)(Ut,{className:"wl-font-body","data-testid":"message",children:t})]})}),Kt=vt.A.img({position:"absolute",width:"100%",WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}),Vt=()=>(0,c.jsx)(Kt,{src:It("Field","whitelabel"),alt:"wl-football-field",draggable:!1,onDragStart:e=>e.preventDefault(),onContextMenu:e=>e.preventDefault()}),Gt=({alt:e,icon:t,taker:n="whitelabel",height:r="100%",width:a="100%"})=>{let o="number"==typeof a?`${a}px`:a,i="number"==typeof r?`${r}px`:r,s=It(t,n);return(0,c.jsx)("img",{alt:e,"data-testid":"ImgIcon",draggable:!1,onDragStart:e=>e.preventDefault(),onContextMenu:e=>e.preventDefault(),src:s,style:{width:o,height:i,WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}})},Xt=(vt.A.div(e=>({display:"flex",justifyContent:"center",alignItems:"center",height:"var(--menuButtonHeight)",width:"100%",backgroundColor:e.selected?"var(--dfl-primaryDarkGrey80)":"var(--dfl-primaryWhite)",cursor:"pointer",transition:"200ms all ease",marginRight:"var(--marginSmall)",marginBottom:"var(--marginSmall)"})),vt.A.p(e=>({textTransform:"uppercase",color:e.selected?"var(--dfl-primaryWhite)":""})),p.forwardRef((e,t)=>
145{let{"data-testid":n="lineupsTeamLogo",clubName:r,homeTeam:a,logo:o,shirtMainColor:i,focused:s=!1,role:l="button",selected:u=!1,tabIndex:d=0,onKeyDown:p,...f}=e;return(0,c.jsx)(Yt,{...f,ref:t,"data-testid":n,focused:s,homeTeam:a,role:l,selected:u,shirtMainColor:i,tabIndex:d,onKeyDown:e=>{p?.(e),!e.defaultPrevented&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),e.currentTarget.click())},children:(0,c.jsx)(Qt,{src:o,alt:r,draggable:!1,onDragStart:e=>e.preventDefault(),onContextMenu:e=>e.preventDefault()})})}));Xt.displayName="LineupsTeamLogo";var qt=({homeTeam:e,shirtMainColor:t})=>t||(e?"var(--colorWhiteHigh)":"var(--colorBlackHigh)"),Yt=vt.A.div(e=>({position:"absolute",bottom:"var(--marginSmall)",left:e.homeTeam?"var(--marginSmall)":"",right:e.homeTeam?"":"var(--marginSmall)",width:"var(--lineupsTeamSize)",height:"var(--lineupsTeamSize)",backgroundColor:e.selected?"var(--colorWhiteHigh)":"var(--colorWhiteLow)",cursor:"pointer",transition:"500ms all ease",display:"flex",justifyContent:"center",alignItems:"center",outline:"none","&::after":{content:'""',position:"absolute",left:0,right:0,bottom:0,height:"calc(var(--paddingMedium)/2)",backgroundColor:qt(e)},...e.focused&&{transform:"scale(1.08)",transformOrigin:"bottom "+(e.homeTeam?"left":"right")},"&:focus-visible":{transform:"scale(1.08)",transformOrigin:"bottom "+(e.homeTeam?"left":"right")}})),Qt=vt.A.img({width:"var(--lineupsImageWidth)",height:"var(--lineupsImageHeight)",WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}),Jt=Xt,Zt=(vt.A.div(({shortName:e})=>({display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"var(--highlightBrowserMatchItemClubWidth)",height:"var(--highlightBrowserMatchItemClubHeight)",span:{marginTop:"var(--marginMedium)",color:"var(--textOnSecondaryHigh)",whiteSpace:"nowrap",width:"var(--matchItemClubWidthName)",textAlign:"center",...e.length>10&&{background:"linear-gradient(90deg, var(--colorTertiaryMedium) 80%, var(--colorTertiaryMediumRGBA))",WebkitBackgroundClip:"text",textShadow:"0 0 0 hsla(0,0%,100%,.1)",WebkitTextFillColor:"hsla(0,0%,100%,0)"}},img:{marginTop:"var(--marginMedium)",width:"auto",height:"var(--clubLogoSize)"}})),vt.A.div({label:"MatchItemHeaderWrapper",display:"flex",justifyItems:"center",alignItems:"center",backgroundColor:"var(--colorTertiaryMedium)",height:"var(--matchDayContainerHeight)",color:"var(--textOnSecondaryHigh)",justifyContent:"space-between",borderTopLeftRadius:"var(--borderRadius)",borderTopRightRadius:"var(--borderRadius)",position:"relative",padding:"0 var(--paddingLarge) 0 var(--paddingLarge)",span:{color:"var(--textOnSecondaryMedium)"}}),vt.A.span({label:"TVXLiveRedDot",display:"block",width:"var(--px4)",height:"var(--px4)",backgroundColor:"red",borderRadius:"50%",marginRight:"var(--marginSmall)",border:"0.5px solid var(--colorWhiteHigh)"}),vt.A.span({label:"MatchItemHeaderRight",display:"flex",alignItems:"center",color:"var(--textOnSecondaryHigh)"}),p.forwardRef(({icon:e,label:t,"aria-expanded":n,"aria-haspopup":r,"aria-label":a,"aria-labelledby":o,className:i,"data-testid":s="HorizontalMenuItem",focused:l=!1,selected:u=!1,tabIndex:d,onBlur:p,onClick:f,onFocus:h},g)=>(0,c.jsxs)(Tt,{ref:g,"aria-expanded":n,"aria-haspopup":r,"aria-label":a||t,"aria-labelledby":o,"aria-selected":u,className:i,"data-testid":s,role:"menuitem",focused:l,selected:u,tabIndex:d,type:"button",onBlur:p,onClick:f,onFocus:h,children:[(0,c.jsx)(Mt,{"aria-hidden":"true",children:e}),t?(0,c.jsx)(Ot,{selected:u,className:"wl-font-body",children:t}):null]})));Zt.displayName="HorizontalMenuItem";var en=Zt,tn=p.forwardRef(({icon:e,"aria-controls":t,"aria-label":n,"aria-labelledby":r,className:a,"data-testid":o="VerticalMenuItem",focused:i=!1,radius:s="full",selected:l=!1,tabIndex:u,onBlur:d,onClick:p,onFocus:f},h)=>(0,c.jsx)(St,{ref:h,"aria-controls":t,"aria-label":n,"aria-labelledby":r,"aria-selected":l,className:a,"data-testid":o,focused:i,radius:s,role:"menuitem",selected:l,tabIndex:u,type:"button",onBlur:d,onClick:p,onFocus:f,children:(0,c.jsx)(wt,{"aria-hidden":"true",children:e})}));tn.displayName="VerticalMenuItem";var nn=tn,rn=(vt.A.p({textTransform:"uppercase",color:"var(--textOnSecondaryHigh)"}),vt.A.p({textTransform:"uppercase"}
145),vt.A.div({label:"OverlayBtnWrapper",display:"flex",flexDirection:"column",alignItems:"center",cursor:"pointer",pointerEvents:"all",color:"var(--colorLightHigh)",width:"var(--menuButtonIconSize)",textAlign:"center",margin:"var(--videoPlayerPadding)",span:{marginTop:"var(--marginMedium)"}}),vt.A.div({label:"ImgWrapper",backgroundColor:"var(--colorSecondaryLow)",borderRadius:"50%",height:"calc(1.2*var(--menuButtonIconSize))",width:"calc(1.2*var(--menuButtonIconSize))",display:"flex",alignItems:"center",justifyContent:"center"}),vt.A.img({label:"OverlayImg",margin:"auto"}),vt.A.img({label:"OverlayImg",margin:"auto",height:"calc(1 * var(--menuButtonIconSize))",width:"calc(1 * var(--menuButtonIconSize))"}),p.forwardRef((e,t)=>{let{actions:n,name:r,number:a,shirtMainColor:o,bench:i=!1,focused:s=!1,position:l,role:u="button",tabIndex:d=0,onKeyDown:f}=e,h=(0,p.useMemo)(()=>n.filter(e=>"GOAL"===e).length,[n]),g=(0,p.useMemo)(()=>{if(h<=1)return n.slice(0,6);let e=h-1;return n.filter(t=>!("GOAL"===t&&e>0&&(e--,1))).slice(0,6)},[n,h]),m=(0,p.useMemo)(()=>l?{position:"absolute",left:100*l.x+"%",top:100*l.y+"%",transform:`translate(${_t(l.x)}%,${Ct(l.y,100)}%)`}:void 0,[l]);return(0,c.jsxs)(dn,{...e,ref:t,bench:i,focused:s,hasActions:g.length>0,shirtMainColor:o,role:u,tabIndex:d,style:{...m,...e.style},onKeyDown:e=>{f?.(e),!e.defaultPrevented&&("Enter"===e.key||" "===e.key)&&e.currentTarget.click()},children:[(0,c.jsxs)(pn,{children:[(0,c.jsx)(fn,{className:"wl-font-taker",children:a}),(0,c.jsx)(hn,{className:"wl-font-taker",children:(0,c.jsx)("span",{children:r})})]}),(i||n.length>0)&&(0,c.jsx)(gn,{children:g.map((e,t)=>(0,c.jsxs)(mn,{children:[h>=2&&"GOAL"===e&&(0,c.jsx)(yn,{className:"wl-font-body",children:`${h}x`}),(0,c.jsx)("img",{src:Et(e),alt:"",draggable:!1,onDragStart:e=>e.preventDefault(),onContextMenu:e=>e.preventDefault(),style:{WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}})]},`${e}_${t}`))})]})}));rn.displayName="PlayerDisplay";var an=({focused:e})=>e?"var(--colorWhiteHigh)":"var(--colorTertiaryHigh)",on=({focused:e})=>e?"var(--textOnPrimaryHigh)":"var(--colorWhiteHigh)",sn=({focused:e,bench:t,hasActions:n})=>!e||!t&&n?"var(--colorTertiaryHigh)":"var(--colorWhiteHigh)",ln=({focused:e,bench:t,hasActions:n})=>!e||!t&&n?"var(--textOnSurface)":"var(--textOnPrimaryHigh)",cn=({focused:e})=>e?"var(--colorWhiteHigh)":"var(--colorSecondaryMedium)",un=({focused:e})=>e?"var(--textOnPrimaryHigh)":"var(--textOnSecondaryHigh)",dn=vt.A.div(e=>({label:"PlayerDisplayWrapper",position:"relative",height:"var(--playerElementHeight)",overflow:"hidden",marginBottom:"var(--marginSmall)",marginRight:"var(--marginSmall)",maxWidth:"100%",cursor:"pointer",outline:"none",...e.focused&&{zIndex:1},"--playerNumberBackgroundColor":an(e),"--playerNumberColor":on(e),"--playerNameBackgroundColor":sn(e),"--playerNameColor":ln(e),"--playerIindicatorListBackgroun
145dColor":cn(e),"--playerGoalCountColor":un(e),"&:focus-visible":{zIndex:1,"--playerNumberBackgroundColor":an({...e,focused:!0}),"--playerNumberColor":on({...e,focused:!0}),"--playerNameBackgroundColor":sn({...e,focused:!0}),"--playerNameColor":ln({...e,focused:!0}),"--playerIindicatorListBackgroundColor":cn({...e,focused:!0}),"--playerGoalCountColor":un({...e,focused:!0})}})),pn=vt.A.div({label:"PlayerInfo",display:"flex",height:"50%",width:"100%",transition:"background-color 200ms ease",backgroundColor:"transparent"}),fn=vt.A.div({label:"PlayerNumber",width:"calc(var(--playerElementWidth) / 2)",height:"calc(var(--playerElementHeight) / 2)",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"var(--playerNumberBackgroundColor)",color:"var(--playerNumberColor)",transition:"background-color 200ms ease, color 200ms ease, padding 200ms ease",fontSize:"var(--fontSizeBody)",fontWeight:"var(--fontWeightMedium)"}),hn=vt.A.div({label:"PlayerDisplayName",overflow:"hidden",textOverflow:"ellipsis",display:"flex",flex:1,alignItems:"center",padding:"var(--paddingLarge) var(--paddingMedium)",whiteSpace:"nowrap",width:"auto",backgroundColor:"var(--playerNameBackgroundColor)",color:"var(--playerNameColor)",transition:"background-color 200ms ease, color 200ms ease, padding 200ms ease",fontSize:"var(--fontSizeBody)",fontWeight:"var(--fontWeightMedium)"}),gn=vt.A.div({label:"IndicatorListWrapper",backgroundColor:"var(--playerIindicatorListBackgroun
145dColor)",height:"50%",display:"flex",alignItems:"center",overflow:"hidden",transition:"600ms all ease",textTransform:"lowercase",padding:"0 var(--paddingSmall)",gap:"var(--marginSmall)",boxSizing:"border-box"}),mn=vt.A.span({label:"IndicatorImageWrapper",height:"100%",display:"flex",alignItems:"center",img:{height:"16px"}}),yn=vt.A.span({color:"var(--playerGoalCountColor)"}),vn=rn,bn=(vt.A.div({display:"flex",alignItems:"center",cursor:"pointer"}),vt.A.span({color:"var(--colorLightHigh)",width:"var(--alertsPresetsLabelWidth)"}),vt.A.img({width:"var(--defaultRadiobuttonWidth)",height:"var(--defaultRadiobuttonHeight)"}),vt.A.div(e=>({display:"flex",alignItems:"center",cursor:e.disabled?"default":"pointer"})),vt.A.img({width:"var(--defaultSettingsButtonWidth)",height:"var(--defaultSettingsButtonHeight)"}),vt.A.div({display:"grid",grid:"max-content max-content / 1fr",gridGap:"var(--marginSmall)",marginBottom:"var(--marginSmall)"})),xn=vt.A.div({height:"var(--matchStatisticsItemTitleBoxHeight)",backgroundColor:"var(--colorTertiaryMedium)",color:"var(--textOnSecondaryHigh)",display:"grid",alignItems:"center",justifyItems:"center",lineHeight:"var(--matchStatisticsHeaderLineHeight)",borderRadius:"var(--borderRadius)",textTransform:"var(--statisticsItemHeaderTextTransform)"}),Sn=vt.A.div({display:"grid",grid:"1fr / 1fr 1fr",gridGap:"var(--marginSmall)"}),wn=vt.A.div({height:"var(--matchStatisticsItemValueBoxHeight)",display:"grid",alignItems:"center",justifyItems:"center",backgroundColor:"var(--colorSecondaryMedium)",color:"var(--textOnSecondaryHigh)",borderRadius:"var(--borderRadius)"}),kn=e=>{let{title:t,homeTeamValue:n,awayTeamValue:r}=e;return(0,c.jsxs)(bn,{"data-testid":"wl-StatisticsItem",children:[(0,c.jsx)(xn,{children:(0,c.jsx)("h5",{className:"wl-font-body",children:t})}),(0,c.jsxs)(Sn,{children:[(0,c.jsx)(wn,{children:(0,c.jsx)("h1",{className:"wl-font-large",children:n})}),(0,c.jsx)(wn,{children:(0,c.jsx)("h1",{className:"wl-font-large",children:r})})]})]})},_n=vt.A.div({padding:"var(--matchStatisticsItemLabelPadding)",color:"var(--textOnSecondaryHigh)",backgroundColor:"var(--colorSecondaryMedium)",height:"var(--menuButtonHeight)",alignItems:"center",display:"flex",borderTopLeftRadius:"var(--borderRadius)",borderBottomLeftRadius:"var(--borderRadius)",cursor:"pointer"}),Cn=({label:e,onClick:t})=>(0,c.jsx)(_n,{className:"wl-font-body",onClick:t,"data-testid":"wl-StatisticsMenuItem",children:e});vt.A.div({display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"}),vt.A.img({height:"18px",width:"35px"}),vt.A.div({display:"flex",alignItems:"center",justifyContent:"center"}),vt.A.img({width:"var(--defaultAlertButtonWidth)",height:"var(--defaultAlertButtonWidth)"}),vt.A.div({display:"flex",alignItems:"center",cursor:"pointer"}),vt.A.div({label:"MatchAlertItemContainer",display:"grid",grid:"1fr / 1fr max-content max-content",gap:"var(--matchAlertGripGap)",alignItems:"center",padding:"var(--matchAlertItemPadding)",cursor:"pointer",backgroundColor:"var(--colorSecondaryMedium)",borderRadius:"0 0 var(--borderRadius) var(--borderRadius)"}),vt.A.div({label:"MatchAlertsClubs",flex:1}),vt.A.div({label:"MatchAlertsClub",display:"flex",alignItems:"center",padding:"var(--matchAlertClubPadding)",img:{width:"var(--matchAlertClubLogoWidth)",height:"var(--matchAlertClubLogoHeight)",margin:"var(--matchAlertClubLogoMargin)"},span:{color:"var(--colorLightHigh)",width:"var(--matchAlertItemClubNameWidth)",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}}),vt.A.div(e=>({label:"AllMatchesItem",display:"grid",gridTemplate:"1fr / 1fr max-content max-content",gap:"var(--matchAlertGripGap)",alignItems:"center",backgroundColor:"var(--colorTertiaryMedium)",height:e.showCheckbox?"var(--matchAlertAllMatchesItemHeight)":"var(--menuButtonHeight)",padding:"var(--matchAlertAllMatchesItemPadding)",boxSizing:"border-box",borderRadius:"var(--borderRadius)",marginBottom:"var(--marginSmall)",span:{flex:1,color:"var(--colorLightHigh)"}})),vt.A.div({label:"LeanBackModeItemContainer",display:"flex",alignItems:"center",backgroundColor:"var(--colorTertiaryMedium)",color:"var(--colorLightHigh)",height:"var(--matchAlertAutopilotHeight)",padding:"var(--matchAlertAutopilotPadding)",boxSizing:"border-box",borderRadius:"var(--borderRadius)",h1:{flex:1,color:"var(--colorLightHigh)"}}
145),vt.A.div({label:"HighlightClubLogoContainer",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"var(--colorSecondaryMedium)",width:"var(--highlightItemLogoContainerSize)",height:"var(--highlightItemLogoContainerSize)",borderRadius:"var(--borderRadius)"}),vt.A.img({label:"HighlightClubLogo",height:"var(--highlightBrowserMatchItemClubLogoSize)",width:"var(--highlightBrowserMatchItemClubLogoSize)"}),vt.A.div({label:"HighlightContent",backgroundColor:"var(--colorSecondaryMedium)",flex:"1",display:"flex",flexDirection:"column",borderRadius:"var(--borderRadius)",marginLeft:"var(--marginMedium)"}),vt.A.div({label:"HighlightInfo",display:"flex",justifyContent:"space-between",alignItems:"center",flex:"1",height:"var(--highlightItemInfoContainerHeight)"}),vt.A.div({label:"HighlightType",height:"100%",display:"flex",alignItems:"center"}),vt.A.div(({shirtMainColor:e,shirtSecondaryColor:t})=>({label:"HighlightScore",display:"flex",justifyContent:"center",alignItems:"center",height:"100%",padding:"var(--paddingMedium)",boxSizing:"border-box",backgroundColor:e||"var(--colorPrimaryHigh)",color:t||"var(--textOnSecondaryDark)",borderRadius:"var(--borderRadius)"})),vt.A.div({label:"HighlightMinute",color:"var(--textOnSecondaryMedium)",padding:"0 10px"}),vt.A.div({label:"HighlightTypeText",color:"var(--textOnSecondaryHigh)",padding:"var(--paddingMedium)"}),vt.A.div({label:"HighlightPlayerContainer",display:"flex",justifyContent:"center",alignItems:"center",height:"var(--highlightItemInfoContainerHeight)",position:"relative",borderRadius:"0 0 var(--borderRadius) var(--borderRadius)"}),vt.A.div({label:"HighlightPlayer",color:"var(--textOnSecondaryLow)",padding:"var(--paddingMedium)",flex:"1"}),vt.A.div(({displayMatch:e})=>({label:"MatchItemContainer",display:"flex",width:"100%",alignItems:"stretch",justifyContent:"stretch",height:"var(--matchItemHeight)",backgroundColor:"var(--colorSecondaryMedium)",borderBottomLeftRadius:"var(--borderRadius)",borderBottomRightRadius:"var(--borderRadius)",cursor:e?"pointer":"auto"})),vt.A.div({label:"MatchItemMiddle",display:"flex",flexDirection:"column"}),vt.A.div(({isLive:e,selected:t})=>({label:"MatchItemMiddleScore",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",width:"var(--highlightBrowserMatchMiddleWidth)",height:"var(--highlightBrowserMatchMiddleHeight)",backgroundColor:e?"var(--colorPrimaryHigh)":"var(--colorBlackMedium)",borderBottom:t?"var(--px2) solid var(--colorPrimaryHigh)":"var(--px2) solid var(--colorTertiaryMedium)",color:e?"var(--textOnSecondaryDark)":"var(--textOnSecondaryHigh)"})),vt.A.div(({expanded:e,selected:t,overlay:n})=>({label:"MatchItemExpand",display:"flex",flex:1,justifyContent:"center",alignItems:"center",flexDirection:"row",backgroundColor:"RIGHT"===n?t?e?"var(--colorBlackMedium)":"var(--colorPrimaryHigh)":"var(--colorBlackMedium)":t&&e?"var(--colorBlackMedium)":"var(--colorBlackLow)",borderTop:"RIGHT"===n?void 0:t&&!e?"var(--px2) solid var(--colorPrimaryHigh)":"transparent",width:"var(--highlightBrowserMatchMiddleWidth)",transform:e?"rotate(180deg)":"rotate(0deg)",img:{height:"var(--matchSelectionChevronHeight)"}}));class Pn extends p.Component{constructor(){super(...arguments),this.state={hasError:!1,error:null},this.fallbackContainerRef=null,this.handleBackPress=()=>{var e,t;return null===(t=(e=this.props).onCloseOverlay)||void 0===t||t.call(e),!1}}componentDidMount(){var e;this.state.hasError&&(null===(e=this.fallbackContainerRef)||void 0===e||e.focus())}componentDidUpdate(){var e;this.state.hasError&&(null===(e=this.fallbackContainerRef)||void 0===e||e.focus())}componentDidCatch(e,t){G.Debugger.error("[ErrorBoundary] Caught error:",e,t),this.setState({hasError:!0,error:e})}render(){const{spatialNavigation:e}=(0,E.TVXCONFIG)();return this.state.hasError&&this.state.error?(0,c.jsx)(Le.kT,Object.assign({focusKey:"error-boundary",disabled:!e.enabled,onBackPress:this.handleBackPress},{children:({ref:e,handleFocus:t})=>(0,c.jsx)(In,Object.assign({ref:t=>{e.current=t,this.fallbackContainerRef=t},tabIndex:0,onFocus:t,"data-focus-key":"error-boundary"},{children:(0,c.jsx)($t,{header:"Something went wrong",message:"Please try again later."})}))})):this.props.children}}const In=vt.A.div({label:"WLMenuContainer",bottom:"var(--videoPlayerPadding)",top:"var(--videoPlayerPadding)",right:"var(--videoPlayerPadding)",pointerEvents:"all",position:"absolute",display:"flex",flexDirection:"column",width:"var(--menuWidth)",outline:"none","& > div":{maxHeight:"100%"}}),En=()=>(0,c.jsx)("svg",Object.assign({width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},{children:(0,c.jsx)("path",{d:"M22.5 12C23.3283 12 24 12.6727 24 13.501V22.501C23.9997 23.3291 23.3281 24.001 22.5 24.001L6 24.001C5.17186 24.001 4.50026 23.3291 4.5 22.501L4.5 13.501C4.5 12.6727 5.1717 12.001 6 12.001L21 12H22.5ZM7.5 22.501L21 22.501V13.501L7.5 13.501L7.5 22.501ZM10.5 0C11.3283 0 12 0.672677 12 1.50098L12 10.501H10.5L10.5 3.00098L1.5 3.00098L1.5 16.501H3L3 19.501H1.5C0.671863 19.501 0.000263529 18.8291 0 18.001L0 1.50098C0 0.672677 0.6717 3.22136e-08 1.5 0L10.5 0ZM15 1.50098C18.3084 1.50098 21 4.19258 21 7.50098H23.25L20.25 10.501L17.25 7.50098L19.5 7.50098C19.5 5.01968 17.4813 3.00098 15 3.00098V1.50098Z",fill:"currentColor"})})),Tn=vt.A.div({label:"TurnGetInteractiveContainer",padding:"var(--paddingLarger) var(--turnGetInteractivePaddingHorizontal)",display:"flex",alignItems:"center",color:"var(--colorWhiteHigh)",backgroundColor:"var(--colorSecondaryMedium)",fontSize:"var(--fontSizeTurnGetInteractive)",fontWeight:"var(--fontWeightSemibold)"}),Mn=vt.A.span({label:"TurnMobileIconWrapper",width:"var(--turnGetInteractiveIconSize)",height:"var(--turnGetInteractiveIconSize)",flexShrink:0,marginRight:"var(--px10)",display:"flex",alignItems:"center"}),On=({message:e})=>(0,c.jsxs)(Tn,Object.assign({className:"wl-font-taker","data-testid":"turntogetinteractive"},{children:[(0,c.jsx)(Mn,{children:(0,c.jsx)(En,{})}),e]})),Ln=({children:e})=>{const{width:t,height:n,breakpoint:r,breakpointRatio:a}=(0,yt.xF)(),{showScreenSize:o}=(0,E.TVXCONFIG)(),i=(0,p.useRef)(null),s=(0,p.useRef)(null),l=(0,p.useRef)(0),u=I(e=>e.overlay),d=I(e=>e.hideOverlay),f=I(e=>e.showOverlay);(0,p.useEffect)(()=>{o&&G.Debugger.console(0,"[UI] Viewport/Breakpoint info - width: "+t+" | height: "+n+" | breakpoint: "+r+" | breakpointRatio: "+a)},[r,a,t,n]);const h=(0,p.useCallback)(()=>{const{showTurnDevice:e}=(0,E.TVXCONFIG)();return("XS"===r||"SM"===r)&&u===C&&Boolean(e)},[r,u]),g=h(),m=(0,p.useCallback)(()=>{s.current&&(clearTimeout(s.current),s.current=null)},[]),y=(0,p.useCallback)(()=>{m();const e=g?5e3:(0,E.TVXCONFIG)().overlayAutoHideInMilliseconds;e>0&&(s.current=setTimeout(()=>{d(),s.current=null},e))},[g,d,m]),v=(0,p.useCallback)(()=>{f(),y()},[f,y]),b=(0,p.useCallback)(()=>{const e=Date.now();e-l.current>=100&&(l.current=e,v())},[v]);return(0,p.useEffect)(()=>(u===_?m():u===C&&y(),m),[u,g,y,m]),(0,p.useEffect)(()=>(v(),m),[]),(0,c.jsx)(jn,Object.assign({id:"tvx-video-canvas",onClick:e=>{e.target===i.current&&d()},onKeyDown:v,onKeyUp:v,onMouseMove:b,onWheel:b},{children:(0,c.jsx)(An,Object.assign({ref:i,style:{width:t,height:n}},{children:h()?(0,c.jsx)(Nn,{children:(0,c.jsx)(On,{message:(0,Y.t)("info_portrait_mode_ard")})}):(0,c.jsx)(p.Suspense,Object.assign({fallback:(0,c.jsx)("div",{})},{children:e}))}))}))},jn=vt.A.div({label:"VideoPlayerCanvas",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",height:"100%",overflow:"hidden"}),An=vt.A.div({label:"VideoPlayerOverlay",position:"relative"}),Nn=vt.A.div({label:"TurnGetInteractiveWrapper",position:"absolute",top:"var(--turnGetInteractiveOffsetTop)",right:"var(--turnGetInteractiveOffsetRight)"}),Rn=()=>{const{mainMatchId:e,matches:t,spoilerMode:n}=B(),{clubs:r}=j(),a=t.filter(t=>t.matchId===e)[0],o=r.filter(e=>e.id===a.homeClub.id)[0],i=r.filter(e=>e.id===a.guestClub.id)[0];return{mainMatch:a,homeClub:o,guestClub:i,spoilerMode:n}},Fn=()=>{var e,t,n;const{mainMatch:r,homeClub:a,guestClub:o}=Rn(),i=null!==(e=null==r?void 0:r.matchId)&&void 0!==e?e:null,s=null!==(t=null==a?void 0:a.id)&&void 0!==t?t:null,l=null!==(n=null==o?void 0:o.id)&&void 0!==n?n:null;(0,p.useEffect)(()=>
145{if(null!==i&&null!==s&&null!==l)return(e=>{let{matchInformation:t}=(0,E.TVXCONFIG)().restPollingIntervals;G.Debugger.console(0,`[Sync] Starting sync match information with interval: ${t}ms`),ge(e),ue&&(clearInterval(ue),G.Debugger.console(0,"[Sync] Stopped previous match information interval")),ue=setInterval(()=>ge(e),t)})(i),we.startSync(i,s,l),()=>{pe(),we.stopSync()}},[i,s,l])},Dn=300,Hn=JSON.parse('{"ko_tree_status_live":"Live","ko_tree_status_finished":"Beendet","ko_tree_status_winner":"Sieger","ko_tree_status_match":"Spiel","ko_tree_round_round_of_16":"Sechzehntelfinale","ko_tree_round_eighth_finals":"Achtelfinale","ko_tree_round_quarter_finals":"Viertelfinale","ko_tree_round_semi_finals":"Halbfinale","ko_tree_round_third_place":"Dritter Platz","ko_tree_round_final":"Finale","ko_tree_team_semi_final_1_winner":"Sieger Halbfinale 1","ko_tree_team_semi_final_2_winner":"Sieger Halbfinale 2","ko_tree_team_semi_final_1_loser":"Verlierer Halbfinale 1","ko_tree_team_semi_final_2_loser":"Verlierer Halbfinale 2","ko_tree_team_quarter_final_1_winner":"Sieger Viertelfinale 1","ko_tree_team_quarter_final_2_winner":"Sieger Viertelfinale 2","ko_tree_team_quarter_final_3_winner":"Sieger Viertelfinale 3","ko_tree_team_quarter_final_4_winner":"Sieger Viertelfinale 4","ko_tree_team_round_of_16_1_winner":"Sieger Sechzehntelfinale 1","ko_tree_team_round_of_16_2_winner":"Sieger Sechzehntelfinale 2","ko_tree_team_round_of_16_3_winner":"Sieger Sechzehntelfinale 3","ko_tree_team_round_of_16_4_winner":"Sieger Sechzehntelfinale 4","ko_tree_team_round_of_16_5_winner":"Sieger Sechzehntelfinale 5","ko_tree_team_round_of_16_6_winner":"Sieger Sechzehntelfinale 6","ko_tree_team_round_of_16_7_winner":"Sieger Sechzehntelfinale 7","ko_tree_team_round_of_16_8_winner":"Sieger Sechzehntelfinale 8","ko_tree_team_eighth_final_1_winner":"Sieger Achtelfinale 1","ko_tree_team_eighth_final_2_winner":"Sieger Achtelfinale 2","ko_tree_team_eighth_final_3_winner":"Sieger Achtelfinale 3","ko_tree_team_eighth_final_4_winner":"Sieger Achtelfinale 4","ko_tree_team_eighth_final_5_winner":"Sieger Achtelfinale 5","ko_tree_team_eighth_final_6_winner":"Sieger Achtelfinale 6","ko_tree_team_eighth_final_7_winner":"Sieger Achtelfinale 7","ko_tree_team_eighth_final_8_winner":"Sieger Achtelfinale 8"}');var Bn,zn;(zn=Bn||(Bn={})).RoundOf16="Round of 16",zn.EighthFinals="Eighth-Finals",zn.QuarterFinals="Quarter-Finals",zn.SemiFinals="Semi-Finals",zn.ThirdAndFourthPlace="3rd and 4th Place",zn.Final="Final";const Wn=e=>(e=>{const t=e.trim();if(t.toLowerCase().endsWith("finale")){const e=t.slice(0,-7);if(e.length>0)return(e.charAt(0)+"F").toUpperCase()}const n=t.split(/\s+/);return n.length>1?n.map(e=>e.charAt(0).toUpperCase()).join(""):t.substring(0,2).toUpperCase()})(Hn[e]||""),Un={SF:Wn("ko_tree_round_round_of_16"),AF:Wn("ko_tree_round_eighth_finals"),VF:Wn("ko_tree_round_quarter_finals"),HF:Wn("ko_tree_round_semi_finals"),DP:Wn("ko_tree_round_third_place"),FI:Wn("ko_tree_round_final")},$n={[Bn.RoundOf16]:{abbreviation:Un.SF,translationKey:"ko_tree_round_round_of_16"},[Bn.EighthFinals]:{abbreviation:Un.AF,translationKey:"ko_tree_round_eighth_finals"},[Bn.QuarterFinals]:{abbreviation:Un.VF,translationKey:"ko_tree_round_quarter_finals"},[Bn.SemiFinals]:{abbreviation:Un.HF,translationKey:"ko_tree_round_semi_finals"},[Bn.ThirdAndFourthPlace]:{abbreviation:Un.DP,translationKey:"ko_tree_round_third_place"},[Bn.Final]:{abbreviation:Un.FI,translationKey:"ko_tree_round_final"}},Kn=(e,t)=>{const n={};for(const r in e)n[r]=e[r][t];return n},Vn=Kn($n,"abbreviation"),Gn=Kn($n,"translationKey"),Xn={[Un.SF]:Bn.RoundOf16,[Un.AF]:Bn.EighthFinals,[Un.VF]:Bn.QuarterFinals,[Un.HF]:Bn.SemiFinals,[Un.DP]:Bn.ThirdAndFourthPlace,[Un.FI]:Bn.Final},qn=[{pattern:/round\s+of\s+16|16th|sixteenth/i,normalizedName:Bn.RoundOf16},{pattern:/eighth[\s-]?finals?|8th[\s-]?finals?/i,normalizedName:Bn.EighthFinals},{pattern:/quarter[\s-]?finals?|qf|4th[\s-]?finals?/i,normalizedName:Bn.QuarterFinals},{pattern:/semi[\s-]?finals?|half[\s-]?finals?|sf|2nd[\s-]?finals?/i,normalizedName:Bn.SemiFinals},{pattern:/3rd[\s-]?(and[\s-])?4th[\s-]?place|third[\s-]?place|3rd[\s-]?place/i,normalizedName:Bn.ThirdAndFourthPlace},{pattern:/^final$/i,normalizedName:Bn.Final}],Yn=[{pattern:/semi/i,type:"Semi-Final"},{pattern:/quarter/i,type:"Quarter-Final"},{pattern:/round\s+of\s+16|16th|sixteenth/i,type:"Round of 16"},{pattern:/eighth|8th/i,type:"Eighth-Final"}],Qn=(e,t=new Date)=>e.plannedKickoff<=t&&null===e.result,Jn=e=>e.matches.length>0&&e.matches.every(e=>null!==e.result),Zn=e=>{const t=e.match(/\d+/);return t?parseInt(t[0],10)-1:-1},er=e=>{const t=e.trim();if(n=t,Object.values(Bn).includes(n))return t;var n;const r=qn.find(({pattern:e})=>e.test(t));return r?r.normalizedName:t},tr=(e,t)=>{const n=er(e);return`${"string"==typeof n&&n in Vn?Vn[n]:"KO"}${t+1}`}
145,nr=(e,t,n)=>{if(!e||t<=0)return;const r=e[t-1],a=n?er(n):"",o=er(r.name);return a===Bn.Final&&o===Bn.ThirdAndFourthPlace?e.find(e=>er(e.name)===Bn.SemiFinals):r},rr=(e,t,n)=>{const r=n.find(t=>t.id===e),a=t.toLowerCase();return!r||a.includes("sieger")||a.includes("winner")},ar=(e,t)=>{if(!e||!t)return[];const n=Zn(t);if(n>=0&&n<e.matches.length){const t=e.matches[n];return[{logo:t.homeTeam.logo,shortName:t.homeTeam.shortName},{logo:t.awayTeam.logo,shortName:t.awayTeam.shortName}]}return[]},or=(e,t)=>{const n=(0,Y.t)(e);return n!==e?n:e in Hn?Hn[e]:t},ir=or,sr=e=>{const t=er(e),n=Gn[t];return n?or(n,e):e},lr=e=>{const t=(e=>{const t=e.trim(),n=t.toLowerCase();let r=null,a="1",o=null;for(const{pattern:e,type:t}of Yn)if(e.test(n)){r=t;break}const i=n.match(/\d+/);return i&&(a=i[0]),n.includes("winner")?o="Winner":n.includes("loser")&&(o="Loser"),r&&o?((e,t,n)=>`${e} ${t} ${n}`)(r,a,o):t})(e),n=(e=>{const t=e.match(/^(.+?)\s+(\d+)\s+(Winner|Loser)$/);if(!t)return null;const[,n,r,a]=t;return o=n,Yn.some(e=>e.type===o)&&(e=>"Winner"===e||"Loser"===e)(a)?((e,t,n)=>`ko_tree_team_${e.toLowerCase().replace(/\s+/g,"_").replace("-","_")}_${t}_${n.toLowerCase()}`)(n,parseInt(r,10),a):null;var o})(t);return n?or(n,e):e},cr=(e,t)=>(0,p.useMemo)(()=>e?e.matches.map((n,r)=>{const a=2*r,o=2*r+1,i=t&&a<t.matches.length?tr(t.name,a):void 0,s=t&&o<t.matches.length?tr(t.name,o):void 0;return{match:n,matchReference:tr(e.name,r),previousMatchReferenceForHome:i,previousMatchReferenceForAway:s}}):[],[e,t]),ur=(e,t)=>{const n=t?t.querySelectorAll(e):document.querySelectorAll(e);return Array.from(n)},dr=(e,t=2)=>e.scrollTop<=t,pr=(e,t=2)=>e.scrollHeight-e.scrollTop-e.clientHeight<=t,fr=(e,t,n=1,r=2)=>{const a=t.getBoundingClientRect(),o=e.filter(e=>e.getBoundingClientRect().top<a.top-r);return 0===o.length?null:o[Math.max(0,o.length-n)]},hr=(e,t,n=1,r=2)=>{const a=t.getBoundingClientRect(),o=e.filter(e=>e.getBoundingClientRect().bottom>a.bottom+r);return 0===o.length?null:o[Math.min(n-1,o.length-1)]},gr=(e,t)=>{const n=t.getBoundingClientRect(),r=e.getBoundingClientRect();t.scrollTo({top:t.scrollTop-(n.top-r.top),behavior:"smooth"})},mr=(e,t)=>{const n=t.getBoundingClientRect(),r=e.getBoundingClientRect();t.scrollTo({top:t.scrollTop+(r.bottom-n.bottom),behavior:"smooth"})},yr=vt.A.div(({focused:e})=>{const t={"&::before":{content:'""',position:"absolute",inset:0,border:"var(--px3) solid var(--colorWhiteHigh)",pointerEvents:"none",zIndex:1}};return Object.assign({label:"MatchStatsContainer",width:"var(--matchStatisticsWidth)",maxHeight:"100%",marginRight:"var(--marginMedium)",display:"grid",grid:"max-content 1fr/1fr",outline:"none",position:"relative",":focus-visible":t},e&&t)}),vr=vt.A.div({label:"MatchStatsScrollView",boxSizing:"border-box",overflowY:"scroll",outline:"none"}),br=e=>0===e.length?null:e.reduce((e,t)=>t.y>e.y?t:e,e[0]),xr=e=>`lineups-lineup-player-${e}`,Sr=vt.A.div({label:"LineupsWrapper",width:"var(--fieldWidth)",height:"var(--fieldHeight)",marginRight:"var(--marginMedium)",position:"relative",outline:"none"}),wr=e=>`bench-home-player-${e}`,kr=e=>
145`bench-guest-player-${e}`,_r=vt.A.div({label:"BenchContainer",width:"var(--fieldWidth)",height:"100%",marginRight:"var(--marginSmall)",overflow:"hidden",display:"flex",flexDirection:"column",outline:"none"}),Cr=vt.A.div({label:"BenchHeader",display:"flex",width:"100%"}),Pr=vt.A.div({label:"ClubName",backgroundColor:"var(--colorSecondaryMedium)",flex:1,height:"var(--benchTeamHeaderHeight)",textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",marginRight:"var(--marginSmall)",marginBottom:"var(--marginSmall)",color:"var(--textOnSecondaryHigh)"}),Ir=vt.A.div({label:"BenchTeam",width:"100%",display:"flex",overflowY:"scroll"}),Er=vt.A.div({label:"BenchPlayer",width:"100%"}),Tr=(e,t)=>{const n=+t;if(!Number.isFinite(n)||Number.isNaN(n))return`${t}`;switch(e){case"shots_at_goal_per_match":case"goalkeeper_saves_per_match":return n.toFixed(2);case"distance_covered_per_match":case"distance_covered":return`${(0,Q.nY)(n)} km`;case"top_speed":return`${parseFloat(n.toFixed(2))} km/h`;case"tacklings_ratio":return`${Math.floor(n)} %`;case"challenges_won":return`${n} %`;case"challenges_won_absolute":default:return`${t}`;case"passes_ratio":case"passes_completed":return`${Math.round(n)} %`}},Mr=vt.A.div({label:"RankingItemWrapper",display:"flex",flexDirection:"column",alignItems:"flex-end",width:"100%"}),Or=vt.A.div(({focused:e})=>Object.assign({label:"RankingItemReducedContainer",display:"flex",flexDirection:"column",gap:"var(--marginSmall)",width:"var(--rankingItemWidth)",transition:"width 0.2s ease",outline:"none","&:focus-visible":{width:"var(--rankingItemWidthFocused)"}},e&&{width:"var(--rankingItemWidthFocused)"})),Lr=vt.A.div({label:"RankingItemTopLine",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",padding:"var(--paddingMedium) var(--paddingLarge)",boxSizing:"border-box",color:"var(--colorWhiteMedium)",backgroundColor:"var(--colorTertiaryHigh)",whiteSpace:"nowrap"}),jr=vt.A.div({label:"RankingItemTopLineLeft",display:"flex",alignItems:"center",gap:"var(--marginMedium)"}),Ar=vt.A.span({label:"RankingItemTopLineCategory",whiteSpace:"nowrap",color:"var(--colorWhiteHigh)"}),Nr=vt.A.span({label:"RankingItemTopLinePoints",whiteSpace:"nowrap",color:"var(--colorWhiteHigh)"}),Rr=vt.A.span({label:"RankingItemTopLineLive",whiteSpace:"nowrap",color:"var(--textOnSecondaryHigh)",textAlign:"right",textTransform:"uppercase"}),Fr=vt.A.div({label:"RankingItemMainCardContainer",display:"flex",flexDirection:"row",alignItems:"stretch",minHeight:"calc(100% - var(--rankingItemTopLineHeight) - var(--rankingItemBottomLineHeight) - var(--marginSmall) * 2)",transition:"all 0.2s ease"}),Dr=vt.A.img({width:"100%",height:"100%",objectFit:"cover",objectPosition:"center bottom",WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}),Hr=vt.A.img({maxWidth:"100%",maxHeight:"100%",width:"auto",height:"auto",objectFit:"contain",WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}),Br=vt.A.div({label:"RankingItemFirstColumn",display:"flex",flexDirection:"column",justifyContent:"center",flex:"0 0 15%",gap:"var(--marginSmall)",height:"100%"}),zr=vt.A.div({label:"RankingItemSecondColumn",overflow:"hidden",display:"flex",alignItems:"flex-end",justifyContent:"center",flex:"0 0 35%",cursor:"pointer",backgroundColor:"var(--colorSecondaryMedium)",margin:"0 var(--marginSmall)",height:"100%"}),Wr=vt.A.div({label:"RankingItemThirdColumn",display:"flex",flexDirection:"column",flex:"1 1 auto",gap:"var(--marginSmall)",height:"100%"}),Ur=vt.A.div(e=>{const t=e.logoBox||!e.justify;return Object.assign({label:"RankingItemPanel",cursor:"pointer",display:"flex",color:"var(--textOnSecondaryHigh)",backgroundColor:"var(--colorSecondaryMedium)",alignItems:"center",justifyContent:e.justify?{left:"flex-start",right:"flex-end",center:"center",start:"flex-start",end:"flex-end"}[e.justify]:"center",padding:e.logoBox?"0":"left"===e.justify?"var(--px14) var(--paddingLarge)":"0",flex:"1 1 0",boxSizing:"border-box"},t&&{flex:"0 0 auto",alignSelf:"center",width:"var(--rankingPanelHeight)",height:"var(--rankingPanelHeight)"})}),$r=vt.A.div({label:"RankingItemBottomLine",display:"flex",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",padding:"var(--paddingMedium) var(--paddingLargest)",boxSizing:"border-box",backgroundColor:"var(--colorTertiaryHigh)"}),Kr=vt.A.img(({expanded:e})=>Object.assign(Object.assign({label:"RankingItemChevron",width:"var(--rankingChevronDownWidth)",transition:"transform 0.25s ease-in-out"},e&&{transform:"rotateZ(-180deg)"}),{WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"})),Vr=vt.A.div(({focused:e})=>
145Object.assign({label:"RankingListItemContainer",display:"flex",alignItems:"center",justifyContent:"center",height:"var(--rankingItemRankingListPanelHeight)",width:"100%",boxSizing:"border-box",padding:"calc(var(--paddingLargest) - var(--px1)) var(--paddingLargest)",textAlign:"center",cursor:"pointer",backgroundColor:"var(--colorSecondaryMedium)",transition:"width 0.2s ease, transform 0.2s ease, background-color 0.2s ease",outline:"none","&:focus-visible":{color:"var(--textOnPrimaryHigh)",backgroundColor:"var(--colorWhiteHigh)",width:"var(--rankingListItemContainerWidthFocused)",transform:"translateX(calc(-1 * (var(--rankingListItemContainerWidthFocused) - var(--rankingListItemContainerWidth))))"}},e&&{color:"var(--textOnPrimaryHigh)",backgroundColor:"var(--colorWhiteHigh)",width:"var(--rankingListItemContainerWidthFocused)",transform:"translateX(calc(-1 * (var(--rankingListItemContainerWidthFocused) - var(--rankingListItemContainerWidth))))"})),Gr=vt.A.div(({expanded:e})=>({label:"RankingItemRankingListContainer",position:"relative",display:"flex",flexDirection:"column",width:"var(--rankingItemRankingListContainerWidth)",boxSizing:"border-box",transition:"all 0.25s ease-in",maxHeight:e?"1000px":"0px",visibility:e?"visible":"hidden",gap:"var(--marginSmall)"})),Xr=vt.A.div({label:"RankingItemRankingListHeader",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",backgroundColor:"var(--colorSecondaryMedium)",color:"var(--textOnSecondaryMedium)",height:"var(--rankingItemRankingListHeaderHeight)",minHeight:"var(--rankingItemRankingListHeaderHeight)",boxSizing:"border-box",position:"sticky",marginTop:"var(--marginSmall)",paddingLeft:"var(--paddingLargest)",paddingRight:"var(--paddingLargest)",textTransform:"capitalize","& > div":{display:"flex",justifyContent:"left",alignItems:"left","&:nth-of-type(1)":{width:"19%"},"&:nth-of-type(2)":{width:"41%"},"&:nth-of-type(3)":{width:"25%"},"&:nth-of-type(4)":{width:"15%"}}}),qr=vt.A.div({label:"RankingItemRankingListHeaderScore",display:"flex",justifyContent:"flex-end",alignItems:"center"}),Yr=vt.A.span(({focused:e})=>Object.assign({label:"RankingListItemPosition",display:"flex",justifyContent:"left",alignItems:"center",textAlign:"left",width:"19%",height:"100%",flexShrink:0,color:"var(--textOnSecondaryHigh)","div:focus-visible > &":{color:"var(--textOnPrimaryHigh)"}},e&&{color:"var(--textOnPrimaryHigh)"})),Qr=vt.A.span(({focused:e})=>Object.assign({label:"RankingListItemPlayer",display:"flex",alignItems:"left",width:"40%",flexShrink:0,transition:"margin-right 0.2s ease",color:"var(--textOnSecondaryHigh)","div:focus-visible > &":{color:"var(--textOnPrimaryHigh)"}},e&&{color:"var(--textOnPrimaryHigh)"})),Jr=vt.A.img({label:"RankingListItemClubLogo",width:"var(--rankingItemRankingListClubLogoWidth)",height:"var(--rankingItemRankingListClubLogoHeight)",flexShrink:0,WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}),Zr=vt.A.span(({focused:e})=>Object.assign({label:"RankingListItemCategoryPoints",display:"flex",alignItems:"left",width:"16%",justifyContent:"flex-end",flex:"1 1 auto",color:"var(--textOnSecondaryHigh)","div:focus-visible > &":{color:"var(--textOnPrimaryHigh)"}},e&&{color:"var(--textOnPrimaryHigh)"})),ea=({mode:e,rankingItem:t,onBackPress:n,onArrowPress:r,onPlayerClick:a,onRankingExpand:o})=>{var i;const[s,l]=(0,p.useState)(null!==(i=t.isExpanded)&&void 0!==i&&i),{spatialNavigation:u}=(0,E.TVXCONFIG)(),d=(0,p.useMemo)(()=>t.rankingListData?t.rankingListData.slice(0,5):null,[t.rankingListData]),f=e=>{l(!s),null==o||o(e,!s)},h=(e,t,n)=>{null==a||a(e,t,n)},g=e=>{e.defaultPrevented||u.enabled||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.currentTarget.click())};return(0,c.jsxs)(Mr,Object.assign({className:"wl-font-body"},{children:[(0,c.jsx)(Le.kT,Object.assign({focusKey:`ranking-item-bottom-line-${t.category}`,disabled:!u.enabled,onArrowPress:r,onBackPress:n,onEnterPress:()=>f(t.category)},{children:({ref:n,focused:r,handleFocus:a})=>(0,c.jsxs)(Or,Object.assign({ref:n,focused:r,"data-focus-key":`ranking-item-bottom-line-${t.category}`,tabIndex:0,onClick:()=>f(t.category),onKeyDown:g,onFocus:a},{children:[(0,c.jsxs)(Lr,Object.assign({onClick:e=>e.stopPropagation()},{children:[(0,c.jsxs)(jr,{children:[(0,c.jsx)(Ar,Object.assign({className:"wl-font-body"},{children:(0,Y.t)(`ranking_header_${t.category}`)})),(0,c.jsx)(Nr,Object.assign({className:"wl-font-body"},{children:Tr(t.category,t.categoryPoints)}))]}),"LIVE"===e&&(0,c.jsx)(Rr,Object.assign({className:"wl-font-body"},{children:(0,Y.t)("ranking_live")}))]})),(0,c.jsxs)(Fr,Object.assign({onClick:e=>e.stopPropagation()},{children:[(0,c.jsxs)(Br,{children:[(0,c.jsx)(Ur,Object.assign({logoBox:!0},{children:(0,c.jsx)(Hr,{src:t.clubLogo,alt:"Club Logo",draggable:!1,onDragStart:e=>e.preventDefault(),onContextMenu:e=>e.preventDefault()})})),(0,c.jsxs)(Ur,Object.assign({className:"wl-font-subheading"},{children:[t.ranking,"."]}))]}),(0,c.jsx)(zr,Object.assign({onClick:()=>h(t.matchPlayer,void 0,!1)},{children:(0,c.jsx)(Dr,{src:t.matchPlayer.imageUrl,alt:"Player Image",draggable:!1,onDragStart:e=>e.preventDefault(),onContextMenu:e=>e.preventDefault()})})),(0,c.jsxs)(Wr,{children:[(0,c.jsx)(Ur,Object.assign({className:"wl-font-body",justify:"left"},{children:t.clubName})),(0,c.jsx)(Ur,Object.assign({className:"wl-font-body",justify:"left"},{children:t.playerName}))]})]})),(0,c.jsx)($r,Object.assign({onClick:e=>{e.stopPropagation(),f(t.category)}},{children:(0,c.jsx)(Kr,{src:It("ChevronDownIcon","ard"),alt:"",draggable:!1,onDragStart:e=>e.preventDefault(),onContextMenu:e=>e.preventDefault(),expanded:s})}))]}))})),(0,c.jsxs)(Gr,Object.assign({expanded:s},{children:[(0,c.jsxs)(Xr,Object.assign({className:"wl-font-body-regular"},{children:[(0,c.jsx)("div",{children:(0,Y.t)("ranking_header_position")}),(0,c.jsx)("div",{children:(0,Y.t)("ranking_header_player")}),(0,c.jsx)("div",{children:(0,Y.t)("ranking_header_club")}),(0,c.jsx)(qr,{children:(0,Y.t)("ranking_header_possession")})]})),d?0===d.length?(0,c.jsx)($t,{isLoading:!0}):d.map((e,a)=>{const o=((e,t)=>`ranking-item-ranking-list-item-${e.category.toLowerCase()}-${t}`)(t,a);return(0,c.jsx)(Le.kT,Object.assign({disabled:!u.enabled,focusable:s,focusKey:o,onBackPress:n,onArrowPress:r,onEnterPress:()=>h(e.matchPlayer,o,!0)},{children:({ref:n,focused:r,handleFocus:a})=>(0,c.jsxs)(Vr,Object.assign({ref:n,className:"wl-font-body","data-focus-key":o,focused:r,tabIndex:0,onClick:()=>h(e.matchPlayer,void 0,!1),onFocus:a,onKeyDown:g},{children:[(0,c.jsxs)(Yr,Object.assign({focused:r},{children:[e.position,"."]}
145)),(0,c.jsx)(Qr,Object.assign({focused:r},{children:(0,Q.yD)(11,e.player)})),(0,c.jsx)(Jr,{src:e.clubLogo?e.clubLogo:e.club,alt:"Club Logo",draggable:!1,onDragStart:e=>e.preventDefault(),onContextMenu:e=>e.preventDefault()}),(0,c.jsx)(Zr,Object.assign({focused:r},{children:Tr(t.category,e.categoryPoints)}))]}))}),`${e.matchPlayer}_${a}`)}):null]}))]}))},ta=vt.A.div({label:"LoadingSpinnerWrapper",display:"flex",alignItems:"center",justifyContent:"center",width:"var(--rankingItemWidth)",height:"var(--emptyMessageContainerHeight)",backgroundColor:"var(--colorSecondaryMedium)",marginRight:"var(--marginMedium)"}),na=vt.A.div({width:"var(--rankingItemWidthFocused)",display:"grid",grid:"max-content 1fr / var(--rankingItemWidthFocused)",maxHeight:"100%",marginRight:"var(--marginMedium)",overflowY:"auto",gap:"var(--marginMedium)",outline:"none"}),ra=vt.A.div({label:"StatisticsBlockContainer",width:"100%"}),aa=vt.A.div({label:"BlockHeader",height:"var(--playerStatisticsBlockHeaderHeight)",display:"flex",alignItems:"center",justifyContent:"center",color:"var(--textOnSecondaryHigh)",backgroundColor:"var(--colorTertiaryHigh)",textAlign:"center",marginBottom:"var(--marginSmall)"}),oa=vt.A.div({label:"BlockGrid",display:"flex",flexWrap:"wrap",gap:"var(--marginSmall)",marginBottom:"var(--marginSmall)"}),ia=vt.A.div({label:"BlockCell",padding:"var(--paddingLarge)",textAlign:"center",backgroundColor:"var(--colorSecondaryMedium)",height:"var(--playerStatisticsBlockCellHeight)",width:"40%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",flexGrow:"1",boxSizing:"border-box"}),sa=vt.A.div({label:"BlockCellGap",flex:"1 1 0",minHeight:0,maxHeight:"var(--playerStatisticsBlockCellGap)"}),la=vt.A.div({label:"BlockCellLabel",color:"var(--textOnSecondaryHigh)",width:"100%",minWidth:0,textAlign:"center"}),ca=vt.A.div({label:"BlockCellValue",color:"var(--colorWhiteHigh)",fontSize:"var(--fontSizeLarge)",fontWeight:"var(--fontWeightBold)"}),ua=({header:e,values:t})=>{const n=t.filter(e=>null!==e.value&&void 0!==e.value&&!e.aws);return n.length>0?(0,c.jsxs)(ra,{children:[(0,c.jsx)(aa,Object.assign({className:"wl-font-body"},{children:(0,Y.t)(e)})),(0,c.jsx)(oa,{children:n.map(({label:e,value:t},n)=>(0,c.jsxs)(ia,{children:[(0,c.jsx)(la,Object.assign({className:"wl-font-body-regular"},{children:(0,Y.t)(e)})),(0,c.jsx)(sa,{}),(0,c.jsx)(ca,Object.assign({className:"wl-font-taker"},{children:t.toString()}))]},n))})]}):(0,c.jsx)("div",{})},da=vt.A.div(({focused:e})=>{const t={"&::before":{content:'""',position:"absolute",inset:0,border:"var(--px3) solid var(--colorWhiteHigh)",pointerEvents:"none",zIndex:1}};return Object.assign({label:"PlayerStatisticContainer",width:"var(--playerStatisticsWidth)",display:"flex",flexDirection:"column",maxHeight:"100%",position:"relative",marginRight:"var(--marginMedium)",outline:"none",":focus-visible":t},e&&t)}),pa=vt.A.div({label:"PlayerStatisticContent",maxHeight:"100%",minHeight:"0",flex:1,overflowY:"scroll",color:"var(--textOnSecondaryHigh)",outline:"none"}),fa=vt.A.div({label:"PlayerStatisticProfileGrid",display:"flex",marginBottom:"var(--marginSmall)",overflow:"hidden"}),ha=vt.A.div({label:"PlayerStatisticImage",display:"flex",flex:"0 0 var(--playerStatisticsPlayerImageWidth)",width:"var(--playerStatisticsPlayerImageWidth)",height:"var(--playerStatisticsPlayerImageHeight)",marginRight:"var(--marginSmall)",backgroundColor:"var(--colorSecondaryMedium)",overflow:"hidden",img:{width:"100%",height:"100%",objectFit:"contain",objectPosition:"bottom center",alignSelf:"flex-end"}}),ga=vt.A.div({label:"PlayerStatisticRightSide",flex:1,display:"flex",flexDirection:"column",rowGap:"var(--marginSmall)"}),ma=vt.A.div(({focused:e})=>Object.assign(Object.assign({label:"PlayerStatisticBackButton",flex:1,height:"100%",backgroundColor:"var(--colorTertiaryMedium)",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",cursor:"pointer",outline:"none",":focus-visible":{boxShadow:"0 0 2px 2px var(--colorPrimaryHigh)"}},e&&{boxShadow:"0 0 2px 2px var(--colorPrimaryHigh)"}),{img:{width:"var(--playerStatisticsBackIconWidth)"}})),ya=vt.A.div({label:"PlayerStatisticClubLogo",flex:"0 0 auto",height:"var(--playerStatisticsClubLogoBlockHeight)",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",gridArea:"clublogo",textAlign:"center",img:{width:"var(--playerStatisticsClubLogo)",height:"var(--playerStatisticsClubLogo)"},span:{display:"block"},backgroundColor:"var(--colorSecondaryMedium)"}),va={height:"var(--playerStatisticsBarHeight)",backgroundColor:"var(--colorSecondaryMedium)",display:"flex",alignItems:"center",paddingLeft:"var(--paddingLarge)",marginBottom:"var(--marginSmall)",overflow:"hidden"},ba=vt.A.div(Object.assign(Object.assign({label:"PlayerStatisticNameNumber"},va),{backgroundColor:"var(--colorTertiaryMedium)",padding:0})),xa=vt.A.div({label:"PlayerStatisticNumber",height:"var(--playerStatisticsBarHeight)",width:"var(--playerStatisticsBarHeight)",display:"flex",justifyContent:"center",alignItems:"center"}),Sa=vt.A.div({label:"PlayerStatisticName",paddingLeft:"var(--paddingMedium)"}),wa=vt.A.div(Object.assign(Object.assign({label:"PlayerStatisticPosition"},va),{textTransform:"capitalize"})),ka=vt.A.div(Object.assign({label:"PlayerStatisticActions"},va)),_a=vt.A.span({label:"PlayerStatisticIndicatorImage",marginRight:"var(--marginMedium)",display:"flex",alignItems:"center",gap:"var(--marginSmall)",img:{height:"var(--playerStatisticsIndicatorImageHeight)"}}),Ca=vt.A.div({label:"LiveTableRowWrapper",height:"var(--liveTableRowHeight)",width:"100%",color:"var(--textOnSecondaryHigh)",display:"grid",grid:"1fr / 1fr 3fr 1fr 1fr 1fr",gap:"var(--marginLargest)",padding:"0 var(--px18) 0 var(--paddingLargest)",marginBottom:"var(--marginSmall)",boxSizing:"border-box",backgroundColor:"var(--colorSecondaryMedium)",justifyItems:"left"}),Pa=vt.A.div({label:"LiveTableEntryValue",height:"var(--liveTableRowHeight)",display:"grid",alignItems:"center",justifyItems:"left"}),Ia=vt.A.div({label:"LiveTableEntryValueLeft",height:"var(--liveTableRowHeight)",display:"grid",alignItems:"center",justifyItems:"center"}
145),Ea=vt.A.div({label:"LiveTableRowClub",display:"grid",gridTemplateColumns:"1fr 4fr",gap:"var(--marginMedium)",alignItems:"center",justifyItems:"center"}),Ta=vt.A.div({label:"LiveTableClubLogo",width:"var(--liveTableClubLogoSize)",display:"grid","& img":{height:"var(--liveTableClubLogoSize)",width:"var(--liveTableClubLogoSize)"}}),Ma=vt.A.div({label:"LiveTableClubName",paddingLeft:"var(--paddingMedium)",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}),Oa=({data:e})=>{var t,n;return(0,c.jsxs)(Ca,Object.assign({className:"wl-font-body","data-table-row":"live-table-row"},{children:[(0,c.jsxs)(Ia,{children:[e.position,"."]}),(0,c.jsxs)(Ea,{children:[(0,c.jsx)(Ta,{children:(null===(t=e.club)||void 0===t?void 0:t.logo)&&(0,c.jsx)("img",{src:e.club.logo,alt:`${e.club.shortName} logo`,draggable:!1,onDragStart:e=>e.preventDefault(),onContextMenu:e=>e.preventDefault(),style:{WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}})}),(0,c.jsx)(Ma,{children:null===(n=e.club)||void 0===n?void 0:n.threeLetterCode.toUpperCase()})]}),(0,c.jsx)(Pa,{children:e.gamesPlayed}),(0,c.jsxs)(Pa,{children:[e.goalsScored,":",e.goalsAgainst]}),(0,c.jsx)(Pa,{children:e.points})]}))},La=vt.A.div({label:"LoadingSpinnerWrapper",display:"flex",alignItems:"center",justifyContent:"center",width:"var(--groupBlockWidth)",height:"var(--emptyMessageContainerHeight)",backgroundColor:"var(--colorSecondaryMedium)",marginRight:"var(--marginMedium)"}),ja=vt.A.div({label:"EmptyMessageWrapper",display:"flex",flexDirection:"column",width:"var(--groupBlockWidth)",height:"var(--emptyMessageContainerHeight)",maxHeight:"100%",marginRight:"var(--marginMedium)"}),Aa=vt.A.div(({focused:e})=>{const t={"&::before":{content:'""',position:"absolute",inset:0,border:"var(--px3) solid var(--colorWhiteHigh)",pointerEvents:"none",zIndex:1}};return Object.assign({label:"LiveTableWrapper",maxHeight:"100%",overflowY:"scroll",position:"relative",width:"var(--groupBlockWidth)",display:"flex",flexDirection:"column",alignItems:"stretch",outline:"none",":focus-visible":t},e&&t)}),Na=vt.A.div({label:"LiveTableContainer",height:"100%",display:"flex",marginRight:"var(--marginMedium)"}),Ra=vt.A.div({label:"LiveTableHeader",height:"var(--liveTableHeaderHeight)",backgroundColor:"var(--colorTertiaryHigh)",color:"var(--textOnSurface)",display:"grid",grid:"1fr / 1fr 3fr 1fr 1fr 1fr",gap:"var(--marginLargest)",alignItems:"center",justifyItems:"center",padding:"0 var(--px18) 0 var(--paddingLargest)",boxSizing:"border-box",marginBottom:"var(--marginSmall)"}),Fa=vt.A.span({label:"LiveTableScrollView",display:"grid",grid:"max-content / 1fr",maxHeight:"100%",overflowY:"scroll",boxSizing:"border-box"}),Da=vt.A.div({width:"var(--rankingItemWidthFocused)",display:"grid",grid:"max-content 1fr / var(--rankingItemWidthFocused)",maxHeight:"100%",marginRight:"var(--marginMedium)",overflowY:"scroll",gap:"var(--marginSmall)",outline:"none"}),Ha=(0,p.memo)(({resultLabel:e,homeClub:t,guestClub:n})=>{var r,a;return(0,c.jsxs)(Ba,Object.assign({"data-table-row":"group-match-table-row"},{children:[(0,c.jsxs)(Wa,Object.assign({className:"wl-font-body",home:!0},{children:[(0,c.jsx)(Ua,{src:null==t?void 0:t.logo,draggable:!1,onDragStart:e=>e.preventDefault(),onContextMenu:e=>e.preventDefault(),alt:null!==(r=null==t?void 0:t.shortName)&&void 0!==r?r:"home"}),(0,c.jsx)("span",{children:null==t?void 0:t.threeLetterCode})]})),(0,c.jsx)(za,{children:(0,c.jsx)("span",Object.assign({className:"wl-font-body"},{children:e}))}),(0,c.jsxs)(Wa,Object.assign({className:"wl-font-body",home:!1},{children:[(0,c.jsx)("span",{children:null==n?void 0:n.threeLetterCode}),(0,c.jsx)(Ua,{src:null==n?void 0:n.logo,draggable:!1,onDragStart:e=>e.preventDefault(),onContextMenu:e=>e.preventDefault(),alt:null!==(a=null==n?void 0:n.shortName)&&void 0!==a?a:"away"})]}))]}))});Ha.displayName="MatchRow";const Ba=vt.A.div({label:"MatchRowContainer",height:"var(--liveTableRowHeight)",display:"grid",gridTemplateColumns:"1fr 1fr 1fr",alignItems:"center",padding:"0 var(--paddingLargest)",color:"var(--textOnSecondaryHigh)",backgroundColor:"var(--colorSecondaryMedium)",marginBottom:"var(--marginSmall)",boxSizing:"border-box"}),za=vt.A.div({display:"flex",alignItems:"center",justifyContent:"center"}),Wa=vt.A.div(e=>({display:"flex",alignItems:"center",justifyContent:e.home?"start":"end",gap:"var(--px10)"})),Ua=vt.A.img({height:"var(--liveTableClubLogoSize)",width:"var(--liveTableClubLogoSize)",WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}),$a=Ha,Ka=e=>`group-match-header-${e}`,Va=vt.A.div(e=>({label:"CollapsibleContent",position:"relative",zIndex:-1,overflow:"hidden",maxHeight:e.isExpanded&&e.contentHeight>0?`${e.contentHeight}px`:"0",transition:e.contentHeight>0?"max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s":"none"})),Ga=vt.A.div(e=>({label:"CollapsibleInner",opacity:e.isExpanded?1:0,marginTop:e.isExpanded?"var(--marginSmall)":"0",transition:e.contentHeight>0?"opacity 0.25s ease-out 0.1s, margin-top 0.25s ease-out":"none"})),Xa=vt.A.div(e=>Object.assign(Object.assign({label:"GroupMatchHeader",backgroundColor:"var(--colorTertiaryMedium)",padding:"var(--paddingMedium)",color:"var(--textOnSecondaryHigh)",display:"flex",alignItems:"center",justifyContent:"center",position:"relative",zIndex:1,cursor:"pointer",boxSizing:"border-box",transition:"background-color 0.25s ease-in-out, color 0.25s ease-in-out",outline:"none",span:{textAlign:"center"}},e.focused&&{backgroundColor:"var(--colorWhiteHigh)",color:"var(--colorTertiaryHigh)"}),{"& img":Object.assign({transition:"filter 0.25s ease-in-out"},e.focused&&{filter:"brightness(0) saturate(100%) invert(10%) sepia(21%) saturate(1426%) hue-rotate(181deg) brightness(95%) contrast(95%)"}),"&:focus-visible":{backgroundColor:"var(--colorWhiteHigh)",color:"var(--colorTertiaryHigh)","& img":{filter:"brightness(0) saturate(100%) invert(10%) sepia(21%) saturate(1426%) hue-rotate(181deg) brightness(95%) contrast(95%)"}}})),qa=vt.A.img(e=>({label:"GroupMatchChevron",width:"var(--rankingChevronDownWidth)",position:"absolute",right:"var(--paddingLargest)",transition:"transform 0.3s cubic-bezier(0.22, 1, 0.36, 1)",transform:e.isExpanded?"rotateZ(-180deg)":"rotateZ(0deg)",WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}
145)),Ya=({matches:e,groupName:t,scrollContainerRef:n,onArrowPress:r,onBackPress:a,onFocusChange:o})=>{const[i,s]=(0,p.useState)(!1),[l,u]=(0,p.useState)(0),d=(0,p.useRef)(null),f=(0,p.useRef)(i),h=j(e=>e.clubs),{spatialNavigation:g}=(0,E.TVXCONFIG)(),m=()=>{s(e=>!e)},y=e=>{e.defaultPrevented||g.enabled||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.currentTarget.click())},v=(0,p.useMemo)(()=>new Map(h.map(e=>[e.id,e])),[h]);return(0,p.useLayoutEffect)(()=>{(()=>{const e=d.current;e&&u(e.scrollHeight)})()},[e.length]),(0,p.useEffect)(()=>{const e=null==n?void 0:n.current;e&&0!==l&&f.current!==i&&(f.current=i,e.scrollBy({top:i?l:-l,behavior:"smooth"}))},[i,l,n]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Le.kT,Object.assign({disabled:!g.enabled,focusKey:Ka(t),onEnterPress:m,onArrowPress:r,onBackPress:a,onFocus:()=>null==o?void 0:o(!0),onBlur:()=>{i&&s(!1),null==o||o(!1)}},{children:({ref:e,focused:n,handleFocus:r})=>(0,c.jsxs)(Xa,Object.assign({ref:e,className:"wl-font-body","data-focus-key":Ka(t),"data-group-match-header":t,"data-table-row":"group-match-header",focused:n,tabIndex:0,onClick:m,onFocus:r,onKeyDown:y},{children:[(0,c.jsx)("span",{children:(0,Y.t)("statistics_menu_match_results")}),(0,c.jsx)(qa,{src:It("ChevronDownIcon","ard"),alt:"chevron-up-down",draggable:!1,onDragStart:e=>e.preventDefault(),onContextMenu:e=>e.preventDefault(),isExpanded:i})]}))})),e.length>0&&(0,c.jsx)(Va,Object.assign({isExpanded:i,contentHeight:l},{children:(0,c.jsx)(Ga,Object.assign({ref:d,isExpanded:i,contentHeight:l},{children:e.map(e=>(0,c.jsx)($a,{resultLabel:e.result.label,homeClub:v.get(e.home_team_id),guestClub:v.get(e.away_team_id)},e.match_id))}))}))]})},Qa=vt.A.div({display:"flex",alignItems:"center",justifyContent:"center",width:"var(--groupBlockWidth)",height:"var(--emptyMessageContainerHeight)",backgroundColor:"var(--colorSecondaryMedium)",marginRight:"var(--marginMedium)"}),Ja=vt.A.div({label:"EmptyMessageWrapper",display:"flex",flexDirection:"column",width:"var(--groupBlockWidth)",height:"var(--emptyMessageContainerHeight)",maxHeight:"100%",marginRight:"var(--marginMedium)"}),Za=vt.A.div({label:"GroupTableContainer",height:"100%",display:"flex",marginRight:"var(--marginMedium)",outline:"none"}),eo=vt.A.div({label:"GroupTableWrapper",maxHeight:"100%",overflowY:"scroll",position:"relative",width:"var(--groupTableWrapperWidth)",display:"flex",flexDirection:"column",alignItems:"stretch",gap:"var(--marginSmall)"}),to=vt.A.div(e=>({label:"GroupBlock",marginLeft:"auto",width:e.focused?"var(--groupBlockExpandedWidth)":"var(--groupBlockWidth)",transition:"width 0.25s ease-in-out","&:focus-visible":{width:"var(--groupBlockExpandedWidth)",outline:"none"}})),no=vt.A.div({label:"GroupHeader",display:"flex",alignItems:"center",justifyContent:"flex-start",cursor:"pointer",marginBottom:"var(--marginSmall)",padding:"var(--px18) var(--px10)",height:"var(--groupTableHeaderHeight)",boxSizing:"border-box",color:"var(--textOnSecondaryHigh)",backgroundColor:"var(--colorSecondaryMedium)",whiteSpace:"nowrap"}),ro=vt.A.div({label:"Header",height:"var(--liveTableHeaderHeight)",backgroundColor:"var(--colorTertiaryHigh)",color:"var(--textOnSurface)",display:"grid",grid:"1fr / 1fr 3fr 1fr 1fr 1fr",gap:"var(--marginLargest)",alignItems:"center",justifyItems:"left",padding:"0 var(--px18) 0 var(--paddingLargest)",boxSizing:"border-box",marginBottom:"var(--marginSmall)",fontSize:"var(--fontSizeBodySmall)",fontWeight:"var(--fontWeightSemibold)"}),ao=(e,t,n)=>"prev"===t?e>0?e-1:n-1:e<n-1?e+1:0,oo=(0,p.forwardRef)(({rounds:e,selectedRoundIndex:t,onRoundSelect:n,onFocusRoundSection:r},a)=>{const o=(0,p.useRef)(null),i=(0,p.useRef)([]),[s,l]=(0,p.useState)(null),{spatialNavigation:u}=(0,E.TVXCONFIG)(),d=(0,Le.UA)(),f=et(e=>e.setSelectedEntry);(0,p.useLayoutEffect)(()=>{const t=o.current;if(!t||0===e.length)return;const n=()=>{const n=((e,t,n)=>{if(0===n)return null;const r=t.current[0],a=t.current[n-1];if(!r||!a)return null;const o=e.clientWidth;return{left:Math.max(0,o/2-r.offsetWidth/2),right:Math.max(0,o/2-a.offsetWidth/2)}})(t,i,e.length);n&&l(e=>null!==e&&e.left===n.left&&e.right===n.right?e:n)};n();const r=new ResizeObserver(n);return r.observe(t),()=>r.disconnect()},[e.length]);const h=(0,p.useCallback)(e=>{const t=o.current,n=i.current[e];t&&n&&requestAnimationFrame(()=>{const e=t.clientWidth,r=n.offsetLeft+n.offsetWidth/2,a=Math.max(0,t.scrollWidth-e);t.scrollTo({left:Math.max(0,Math.min(r-e/2,a)),behavior:"smooth"})})},[]),g=(0,p.useCallback)(e=>{const t=i.current[e];t&&(t.focus(),h(e))},[h]);(0,p.useImperativeHandle)(a,()=>({focusTab:g})),(0,p.useEffect)(()=>{h(t)},[t,h,s]);const m=(0,p.useCallback)((t,a)=>{if(!u.enabled&&("ArrowLeft"!==t.key&&"ArrowRight"!==t.key||(t.preventDefault(),((e,t,n,r,a,o)=>{switch(e){case"ArrowLeft":if(t<=0)return;r(ao(t,"prev",n));break;case"ArrowRight":if(t>=n-1)return;r(ao(t,"next",n));break;case"ArrowDown":null==a||a();break;case"Enter":case" ":null==o||o(t)}})(t.key,a,e.length,g,r,n)),"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.currentTarget.click()),"Escape"===t.key||"Backspace"===t.key)){t.preventDefault();const e=document.querySelector('[aria-controls="tvx-ko-tree-section"]');e instanceof HTMLElement&&e.focus(),f(Ne)}},[e.length,g,r,n,u.enabled,f]),y=(0,p.useCallback)(e=>{n(e),g(e)},[n,g]),v=(0,p.useCallback)((t,r)=>{if(t===Le.kL.Left){if(r<=0)return!1;const t=ao(r,"prev",e.length);return t!==r&&(g(t),n(t)),!1}if(t===Le.kL.Right){if(r>=e.length-1)return d.focus("menu-statistics-navigation"),!1;const t=ao(r,"next",e.length);return t!==r&&(g(t),n(t)),!1}return t===Le.kL.Down?(d.focus("ko-tree-widget-content"),!1):(Le.kL.Up,!1)},[e.length,g,n,d]),b=(0,p.useCallback)(()=>(f(Ne),d.focus("menu-statistics-navigation"),d.focus("menu-statistics-ko-tree"),!1),[f,d]);return(0,c.jsx)(io,{children:(0,c.jsx)(so,Object.assign({ref:o},{children:(0,c.jsx)(lo,Object.assign({style:s?{paddingLeft:s.left,paddingRight:s.right}:void 0},{children:e.map((e,n)=>{const r=n===t;return(0,c.jsx)(Le.kT,Object.assign({disabled:!u.enabled,focusKey:`ko-tree-tab-${n}`,onEnterPress:()=>y(n),onArrowPress:e=>v(e,n),onBackPress:b},{children:({ref:t,focused:a,handleFocus:o})=>(0,c.jsx)(uo,Object.assign({ref:e=>{i.current[n]=e,t.current=e},"data-focus-key":`ko-tree-tab-${e.index}`,selected:r,focused:a,tabIndex:0,onClick:()=>y(n),onFocus:o,onKeyDown:e=>m(e,n)},{children:(0,c.jsx)(po,Object.assign({selected:r,focused:a,className:"wl-font-body"},{children:sr(e.name)}
145))}),e.index)}),e.index)})}))}))})});oo.displayName="KOTabMenu";const io=vt.A.div({label:"KOTabMenuContainer",position:"relative",width:"var(--koTreeWidth)",height:"var(--koTabMenuHeight)",backgroundColor:"var(--colorTertiaryMedium)",overflow:"hidden"}),so=vt.A.div({label:"ScrollContainer",width:"100%",height:"100%",overflowX:"auto",overflowY:"hidden",scrollBehavior:"smooth",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},WebkitOverflowScrolling:"touch",maskImage:"linear-gradient(to right, transparent 0%, black 22.92%, black 83.33%, transparent 100%)",WebkitMaskImage:"linear-gradient(to right, transparent 0%, black 22.92%, black 83.33%, transparent 100%)"}),lo=vt.A.div({label:"TabsRow",display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"max-content",gap:"var(--koTabMenuGap)",paddingLeft:"var(--paddingLarge)",paddingRight:"var(--paddingLarge)"}),co={backgroundColor:"var(--colorWhiteHigh)",borderBottom:"3px solid var(--colorPrimaryHigh)"},uo=vt.A.div(({selected:e,focused:t})=>({label:"Tab",display:"flex",alignItems:"center",justifyContent:"center",height:"100%",flexShrink:0,cursor:"pointer",backgroundColor:t?"var(--colorWhiteHigh)":"transparent",borderBottom:e||t?"3px solid var(--colorPrimaryHigh)":"none",padding:"0 var(--px5)",outline:"none",boxSizing:"border-box","&:focus-visible":co})),po=vt.A.span(({selected:e,focused:t})=>({label:"TabText",whiteSpace:"nowrap",color:t?"var(--colorBlackHigh)":"var(--textOnSecondaryHigh)",opacity:e||t?1:.5,"div:focus-visible > &":{color:"var(--colorBlackHigh)",opacity:1}})),fo=oo,ho=vt.A.div({label:"TeamBox",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"var(--koTeamBoxWidth)",height:"var(--koTeamBoxHeight)",backgroundColor:"var(--colorSecondaryMedium)",padding:"0 var(--px10) var(--paddingLarge) var(--px10)",gap:"var(--marginSmall)",overflow:"hidden",boxSizing:"border-box"}),go=vt.A.div({label:"LogoSpace",display:"flex",alignItems:"center",justifyContent:"center",height:"var(--koLogoSpaceHeight)",width:"100%",padding:"0 var(--paddingLarger)",boxSizing:"border-box"}),mo=vt.A.div({label:"TeamLogo",display:"flex",alignItems:"center",justifyContent:"center",img:{width:"auto",height:"var(--koTeamLogoHeight)",maxWidth:"var(--koTeamLogoSize)"}}),yo=vt.A.div({label:"PlaceholderLogos",display:"flex",alignItems:"center",justifyContent:"center",gap:"var(--marginMedium)",width:"100%",height:"100%"}),vo=vt.A.div({label:"PlaceholderLogo",display:"flex",alignItems:"center",justifyContent:"center",padding:"0 var(--paddingMedium)",flexShrink:1,img:{width:"auto",height:"var(--koTeamLogoHeight)",maxWidth:"var(--koTeamLogoSize)"}}),bo=vt.A.span({label:"TeamName",textAlign:"center",color:"var(--colorWhiteHigh)",maxWidth:"100%",display:"block"}),xo=vt.A.div({label:"TextPlaceholder",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"var(--koTeamBoxHeight)",width:"100%",textAlign:"center",color:"var(--colorWhiteHigh)",whiteSpace:"pre-wrap",lineHeight:"var(--font/body/line-height, 18px)",padding:"0"}),So=({isPlaceholder:e,placeholderTeams:t,team:n,previousRound:r,previousMatchReference:a})=>{if(e){if(t.length>0)return(0,c.jsxs)(ho,{children:[(0,c.jsx)(go,{children:(0,c.jsx)(yo,{children:t.map((e,t)=>(0,c.jsx)(vo,{children:(0,c.jsx)("img",{src:e.logo,alt:e.shortName,draggable:!1,onDragStart:e=>e.preventDefault(),onContextMenu:e=>e.preventDefault(),style:{WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}})},t))})}),(0,c.jsx)(bo,Object.assign({className:"wl-font-body"},{children:a?`${ir("ko_tree_status_winner","Sieger")} ${a}`:`${ir("ko_tree_status_winner","Sieger")} ${r?sr(r.name):""}`}))]});const e=((e,t,n)=>{const r=ir("ko_tree_status_winner","Sieger");if(e){const n=e.replace(/\d+$/,"").trim(),a=Zn(e)+1,o=n in Xn?Xn[n]:(null==t?void 0:t.name)||n;return`${r}\n${sr(o)}\n${ir("ko_tree_status_match","Spiel")} ${a}`}return t?`${r}\n${sr(t.name)}`:lr(n)})(a,r,n.shortName);return(0,c.jsx)(ho,{children:(0,c.jsx)(xo,Object.assign({className:"wl-font-body"},{children:e}))})}return(0,c.jsxs)(ho,{children:[(0,c.jsx)(go,{children:(0,c.jsx)(mo,{children:(0,c.jsx)("img",{src:n.logo,alt:n.short
145Name,draggable:!1})})}),(0,c.jsx)(bo,Object.assign({className:"wl-font-body"},{children:lr(n.shortName)}))]})},wo=vt.A.div({label:"KOMatchElementContainer",display:"flex",flexDirection:"column",width:"var(--koTreeWidth)",height:"calc(var(--koMatchHeaderHeight) + var(--koTeamBoxHeight))",overflow:"hidden",cursor:"pointer"}),ko=vt.A.div({label:"KOMatchHeader",display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:"var(--colorTertiaryHigh)",height:"var(--koMatchHeaderHeight)",width:"var(--koTreeWidth)",padding:"var(--paddingSmall) var(--paddingLarge) 0 var(--paddingLarge)",color:"var(--textOnSurface)",boxSizing:"border-box"}),_o=vt.A.span({label:"MatchReference"}),Co=vt.A.span({label:"MatchStatus",display:"flex",alignItems:"center",gap:"var(--marginLarge)"}),Po=vt.A.span({label:"LiveDot",display:"block",width:"var(--px4)",height:"var(--px4)",backgroundColor:"#E70000",borderRadius:"50%",flexShrink:0,border:"0.5px solid var(--colorWhiteHigh)"}),Io=vt.A.div({label:"KOMatchContent",display:"flex",alignItems:"stretch",width:"var(--koTreeWidth)",height:"var(--koTeamBoxHeight)",boxSizing:"border-box",overflow:"hidden"}),Eo=vt.A.div(({selected:e})=>Object.assign({label:"StatusBox",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"var(--koStatusBoxWidth)",height:"var(--koTeamBoxHeight)",backgroundColor:"var(--colorTertiaryMedium)",gap:"var(--marginSmall)",boxSizing:"border-box",position:"relative",overflow:"hidden"},e&&{"&::after":{content:'""',position:"absolute",bottom:0,left:0,right:0,height:"3px",backgroundColor:"var(--colorPrimaryHigh)"}})),To=vt.A.div(({isLive:e})=>({label:"ScoreBox",display:"flex",alignItems:"center",justifyContent:"center",height:"var(--koLogoSpaceHeight)",width:"100%",padding:"var(--px9) var(--paddingLarge)",backgroundColor:e?"var(--colorPrimaryHigh)":"transparent",boxSizing:"border-box"})),Mo=vt.A.span(({isLive:e})=>({label:"Score",textAlign:"center",color:e?"var(--textOnPrimaryHigh)":"var(--textOnSecondaryHigh)",whiteSpace:"nowrap"})),Oo=({match:e,matchReference:t,selected:n,onMatchClick:r,previousRound:a,previousMatchReferenceForHome:o,previousMatchReferenceForAway:i})=>{const{clubs:s}=j(),l=Qn(e),u=rr(e.homeTeamId,e.homeTeam.shortName,s),d=rr(e.awayTeamId,e.awayTeam.shortName,s),p=ar(a,o),f=ar(a,i),h=((e,t)=>t?ir("ko_tree_status_live","Live"):null!==e.result?ir("ko_tree_status_finished","Beendet"):(0,q.PX)(e.plannedKickoff,"datetime"))(e,l),g=e.result?`${e.result.homeScore} : ${e.result.awayScore}`:"- : -";return(0,c.jsxs)(wo,Object.assign({"data-content-row":"ko-match-element",onClick:()=>{r&&r(e.matchId)}},{children:[(0,c.jsxs)(ko,{children:[(0,c.jsx)(_o,Object.assign({className:"wl-font-body-small"},{children:t})),(0,c.jsxs)(Co,Object.assign({className:"wl-font-body-small"},{children:[h,l&&(0,c.jsx)(Po,{})]}))]}),(0,c.jsxs)(Io,{children:[(0,c.jsx)(So,{isPlaceholder:u,placeholderTeams:p,team:e.homeTeam,previousRound:a,previousMatchReference:o}
145),(0,c.jsx)(Eo,Object.assign({selected:n},{children:(0,c.jsx)(To,Object.assign({isLive:l},{children:(0,c.jsx)(Mo,Object.assign({isLive:l,className:"wl-font-title-medium"},{children:g}))}))})),(0,c.jsx)(So,{isPlaceholder:d,placeholderTeams:f,team:e.awayTeam,previousRound:a,previousMatchReference:i})]})]}))},Lo=(0,p.memo)((0,p.forwardRef)(({matches:e,previousRound:t,mainMatchId:n,focused:r=!1,tabIndex:a=-1,onKeyDown:o,onFocus:i,onBlur:s},l)=>(0,c.jsx)(Ao,Object.assign({ref:l,focused:r,tabIndex:a,onKeyDown:o,onFocus:i,onBlur:s},{children:e.map(({match:e,matchReference:r,previousMatchReferenceForHome:a,previousMatchReferenceForAway:o})=>(0,c.jsx)(Oo,{match:e,matchReference:r,selected:n===e.matchId,previousRound:t,previousMatchReferenceForHome:a,previousMatchReferenceForAway:o},e.matchId))}))));Lo.displayName="KORoundSection";const jo={content:'""',position:"absolute",inset:0,border:"var(--px3) solid var(--colorWhiteHigh)",pointerEvents:"none",zIndex:1},Ao=vt.A.div(({focused:e})=>Object.assign(Object.assign({label:"KORoundSection",display:"flex",flexDirection:"column",gap:"var(--marginSmall)",width:"var(--koTreeWidth)",outline:"none",position:"relative",scrollMarginTop:"var(--marginSmall)",boxSizing:"border-box"},e&&{"&::before":jo}),{'[data-focus-key="ko-tree-widget-content"]:focus-visible &::before':jo})),No=(0,p.memo)(({children:e,isOutgoing:t,direction:n})=>(0,c.jsx)(zo,Object.assign({isOutgoing:t,direction:n,duration:300},{children:e})));No.displayName="SlidePanel";const Ro=Lt.keyframes`
146    from { transform: translateX(0); }
147    to { transform: translateX(calc(-100% - var(--marginMedium))); }
148`,Fo=Lt.keyframes`
149    from { transform: translateX(0); }
150    to { transform: translateX(calc(100% + var(--marginMedium))); }
151`,Do=Lt.keyframes`
152    from { transform: translateX(calc(100% + var(--marginMedium))); }
153    to { transform: translateX(0); }
154`,Ho=Lt.keyframes`
155    from { transform: translateX(calc(-100% - var(--marginMedium))); }
156    to { transform: translateX(0); }
157`,Bo=(e,t,n)=>t?e?"left"===t?`${Ro} ${n}ms ease-out forwards`:`${Fo} ${n}ms ease-out forwards`:"left"===t?`${Do} ${n}ms ease-out forwards`:`${Ho} ${n}ms ease-out forwards`:"none",zo=vt.A.div(({isOutgoing:e,direction:t,duration:n})=>({label:"SlidePanel",position:e?"absolute":"relative",top:0,left:0,width:"100%",animation:Bo(e,t,n),willChange:t?"transform":"auto"})),Wo=vt.A.div({label:"KOTreeContainer",display:"flex",flexDirection:"column",width:"var(--koTreeWidth)",marginRight:"var(--marginMedium)",height:"100%"}),Uo=vt.A.div({label:"WidgetContent",flex:1,overflowY:"auto",overflowX:"hidden",position:"relative",paddingRight:"var(--px3)",outline:"none"}),$o=vt.A.div({label:"SlidesContainer",position:"relative",width:"100%",marginTop:"var(--marginSmall)"}),Ko=(e,t,n)=>n?e.icon.focused:t?e.icon.selected:e.icon.base,Vo=({item:e,selected:t,onSelect:n,withLabel:r,onArrowPress:a,onBackPress:o})=>{const{spatialNavigation:i}=(0,E.TVXCONFIG)(),s=(0,p.useRef)(null),l=e=>{e.defaultPrevented||i.enabled&&0===e.detail||n()};return(0,c.jsxs)(Go,{children:[(0,c.jsx)(qo,{children:(0,c.jsx)(Le.kT,Object.assign({focusKey:e.focusKey,onEnterPress:n,onArrowPress:a,onBackPress:o},{children:({ref:n,focused:a,handleFocus:o})=>{var i;return(0,c.jsx)(nn,{ref:e=>{s.current=e,n.current=e},"aria-controls":t?null===(i=e.accessibility)||void 0===i?void 0:i.controls:void 0,"aria-label":(0,Y.t)(e.label),icon:(0,c.jsx)(Gt,{icon:Ko(e,t,a),taker:"ard",alt:""}),selected:t,focused:a,radius:r?"end-only":"full",onClick:l,onFocus:o})}}))}),r&&(0,c.jsx)(Xo,Object.assign({"aria-hidden":!0},{children:(0,c.jsx)(Cn,{label:(0,Y.t)(e.label),onClick:()=>{var e;n(),null===(e=s.current)||void 0===e||e.focus()}})}))]})},Go=vt.A.div({label:"MenuItemContainer",display:"flex",flexDirection:"row-reverse"}),Xo=vt.A.div({label:"MenuItemLabel",width:"calc(var(--menuWidth) - var(--menuButtonWidth))"}),qo=vt.A.div({label:"MenuItemButton",flex:"none",width:"var(--menuButtonWidth)"}),Yo=[{accessibility:{controls:"tvx-match-statistics-section"},focusKey:"menu-statistics-match-statistics",name:Re,label:"statistics_menu_match_statistics",icon:{base:"MatchStatisticsMenuIcon",focused:"MatchStatisticsMenuIcon",selected:"MatchStatisticsMenuIcon"}},{accessibility:{controls:"tvx-lineups-section"},focusKey:"menu-statistics-lineups",name:Fe,label:"statistics_menu_lineups",icon:{base:"LineupMenuIcon",focused:"LineupMenuIcon",selected:"LineupMenuIcon"}},{accessibility:{controls:"tvx-lineups-bench-section"},focusKey:"menu-statistics-lineups-bench",name:De,label:"statistics_menu_bench",icon:{base:"LineupBenc
157hMenuIcon",focused:"LineupBenchMenuIcon",selected:"LineupBenchMenuIcon"}},{accessibility:{controls:"tvx-live-rankings-section"},focusKey:"menu-statistics-live-rankings",name:Be,label:"statistics_menu_live_rankings",icon:{base:"LiveRankingsMenuIcon",focused:"LiveRankingsMenuIcon",selected:"LiveRankingsMenuIcon"}},{accessibility:{controls:"tvx-live-table-section"},focusKey:"menu-statistics-live-table",name:He,label:"statistics_menu_live_table",icon:{base:"LiveTableMenuIcon",focused:"LiveTableMenuIcon",selected:"LiveTableMenuIcon"}},{accessibility:{controls:"tvx-group-table-section"},focusKey:"menu-statistics-group-table",name:Ue,label:"statistics_menu_group_table_ard",icon:{base:"LiveTableMenuIcon",focused:"LiveTableMenuIcon",selected:"LiveTableMenuIcon"}},{accessibility:{controls:"tvx-ko-tree-section"},focusKey:"menu-statistics-ko-tree",name:$e,label:"statistics_menu_ko_tree",icon:{base:"KOTreeMenuIcon",focused:"KOTreeMenuIcon",selected:"KOTreeMenuIcon"}},{accessibility:{controls:"tvx-season-rankings-section"},focusKey:"menu-statistics-season-rankings",name:ze,label:"statistics_menu_season_rankings_ard",icon:{base:"SeasonRankingsMenuIcon",focused:"SeasonRankingsMenuIcon",selected:"SeasonRankingsMenuIcon"}}],Qo={NONE:"div",MATCH_STATISTICS:()=>{const[e,t]=(0,p.useState)(!1),n=(0,p.useRef)(null),r=(0,p.useRef)(!1),a=W(e=>e.matchStatistics),o=W(e=>e.isFetching),i=et(e=>e.setSelectedEntry),{mainMatch:s}=Rn(),{spatialNavigation:l}=(0,E.TVXCONFIG)(),u=(0,Le.UA)();(()=>{const{mainMatch:e}=Rn(),t=W(e=>e.reset),n=null==e?void 0:e.matchId,r=null==e?void 0:e.liveMatchStatus;(0,p.useEffect)(()=>"PRE_MATCH"===r?(Pe.stop(),void t()):(Pe.initialize(),()=>{Pe.stop(),t()}),[r,n])})();const d=()=>{const t=n.current;if(!t)return;if(pr(t))return;if(!e)return void t.scrollTo({top:2,behavior:"smooth"});const r=Array.from(t.children);if(0===r.length)return;const a=hr(r,t);a&&mr(a,t)},f=()=>{const e=n.current;if(!e)return;if(dr(e))return void(e.scrollTop>0&&e.scrollTo({top:0,behavior:"smooth"}));const t=Array.from(e.children);if(0===t.length)return;const r=fr(t,e);r?gr(r,e):e.scrollTop>0&&e.scrollTo({top:0,behavior:"smooth"})},h=e=>{t(e.currentTarget.scrollTop>0)},g=e=>{if(!e.defaultPrevented&&!l.enabled&&("ArrowDown"===e.key&&(e.preventDefault(),d()),"ArrowUp"===e.key&&(e.preventDefault(),f()),"Backspace"===e.key||"Escape"===e.key)){e.preventDefault();const t=document.querySelector('[aria-controls="tvx-match-statistics-section"]');t instanceof HTMLElement&&t.focus(),i(Ne)}};return(0,c.jsx)(Le.kT,Object.assign({disabled:!l.enabled,focusKey:"match-statistics-section",onArrowPress:e=>(e===Le.kL.Down&&d(),e===Le.kL.Up&&f(),e===Le.kL.Right&&u.focus("menu-statistics-navigation"),!1),onBackPress:()=>(u.focus("menu-statistics-navigation"),u.focus("menu-statistics-match-statistics"),i(Ne),!1)},{children:({ref:t,focused:i,handleFocus:l})=>(0,c.jsxs)(yr,Object.assign({ref:t,"aria-live":"polite","data-focus-key":"match-statistics-section",id:"tvx-match-statistics-section",focused:i,tabIndex:0,onMouseDown:()=>{r.current=!0},onMouseUp:()=>{r.current=!1},onFocus:()=>{r.current||l()},onKeyDown:g},{children:[(0,c.jsx)(Dt,{homeClubColor:s.homeClub.shirtMainColor,homeClubShortname:s.homeClub.shortName,homeClubLogo:s.homeClub.logo,guestClubColor:s.guestClub.shirtMainColor,guestClubLogo:s.guestClub.logo,guestClubShortname:s.guestClub.shortName,collapsed:e}),(0,c.jsxs)(vr,Object.assign({ref:n,tabIndex:-1,onFocus:()=>{var e;(e=t).current&&e.current.focus()},onScroll:h},{children:[o&&(0,c.jsx)($t,{isLoading:!0}),!o&&!a&&(0,c.jsx)($t,{header:(0,Y.t)("no_sports_data_fallback_heading"),message:(0,Y.t)("no_sports_data_fallback_text")}),!o&&a&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(kn,{title:(0,Y.t)("match_statistics_possession"),homeTeamValue:String((0,Q.cs)(parseInt(a.statistics.possession.home),parseInt(a.statistics.possession.guest)))+" %",awayTeamValue:String((0,Q.cs)(parseInt(a.statistics.possession.home),parseInt(a.statistics.possession.guest),!0))+" %"}),(0,c.jsx)(kn,{title:(0,Y.t)("match_statistics_shots"),homeTeamValue:a.statistics.shotsTotal.home,awayTeamValue:a.statistics.shotsTotal.guest}),(0,c.jsx)(kn,{title:(0,Y.t)("match_statistics_shots_on_target"),homeTeamValue:a.statistics.shotsOnGoal.home,awayTeamValue:a.statistics.shotsOnGoal.guest}),(0,c.jsx)(kn,{title:(0,Y.t)("match_statistics_tacklings_won"),homeTeamValue:String((0,Q.cs)(parseInt(a.statistics.challengesWon.home),parseInt(a.statistics.challengesWon.guest)))+" %",awayTeamValue:String((0,Q.cs)(parseInt(a.statistics.challengesWon.home),parseInt(a.statistics.challengesWon.guest),!0))+" %"}),(0,c.jsx)(kn,{title:(0,Y.t)("match_statistics_passes_successful"),homeTeamValue:(0,Q.$4)(parseInt(a.statistics.successfulPasses.home),parseInt(a.statistics.passes.home))+" %",awayTeamValue:(0,Q.$4)(parseInt(a.statistics.successfulPasses.guest),parseInt(a.statistics.passes.guest))+" %"}),(0,c.jsx)(kn,{title:(0,Y.t)("match_statistics_corner_kicks"),homeTeamValue:a.statistics.corners.home,awayTeamValue:a.statistics.corners.guest}),(0,c.jsx)(kn,{title:(0,Y.t)("match_statistics_fouls"),homeTeamValue:a.statistics.fouls.home,awayTeamValue:a.statistics.fouls.guest}),(0,c.jsx)(kn,{title:(0,Y.t)("match_statistics_offsides"),homeTeamValue:a.statistics.offsides.home,awayTeamValue:a.statistics.offsides.guest}),(0,c.jsx)(kn,{title:(0,Y.t)("match_statistics_cards_yellow"),homeTeamValue:a.statistics.yellowCards.home,awayTeamValue:a.statistics.yellowCards.guest}),(0,c.jsx)(kn,{title:(0,Y.t)("match_statistics_cards_red"),homeTeamValue:a.statistics.straightRedCards.home,awayTeamValue:a.statistics.straightRedCards.guest}),(0,c.jsx)(kn,{title:(0,Y.t)("match_statistics_cards_yellow_red"),homeTeamValue:a.statistics.yellowRedCards.home,awayTeamValue:a.statistics.yellowRedCards.guest}),(0,c.jsx)(kn,{title:(0,Y.t)("match_statistics_touches"),homeTeamValue:a.statistics.touches.home,awayTeamValue:a.statistics.touches.guest})]})]}))]}))}))},LINEUPS:()=>{const e=(0,p.useRef)(null),{mainMatch:t,homeClub:n,guestClub:r}=Rn(),{spatialNavigation:a}=(0,E.TVXCONFIG)(),o=(0,Le.UA)(),i=et(e=>e.lineUpsSubState),s=et(e=>e.getPlayerStatistics),l=et(e=>e.setLineUpsSubState),u=et(e=>e.setSelectedEntry),d=et(e=>e.entrySectionState.get(Fe)),f=et(e=>e.setEntrySectionState),h=et(e=>e.clearEntrySectionState);Fn();const g=we.selectedLineUp(n),m=we.selectedLineUp(r),y=i===Xe?n:r,v=i===Xe?g:m,b=(e,n,r)=>{const{competitionId:a,matchId:o}=t;s(e,n,a,o),f(Fe,{focusKey:[xr(e)],scrollOffset:0,focusManager:r})},x=()=>(u(Ne),o.focus("menu-statistics-navigation"),!1),S=e=>{if(e===Le.kL.Up){const e=br(v);return e&&o.focus(`lineups-lineup-player-${e.player.playerId}`),!1}return e===Le.kL.Right&&(o.focus("lineups-team-logo-guest"),!1)},w=e=>{if(e===Le.kL.Up){const e=br(v);return e&&o.focus(`lineups-lineup-player-${e.player.playerId}`),!1}return e===Le.kL.Left?(o.focus("lineups-team-logo-home"),!1):e===Le.kL.Right&&(o.focus("menu-statistics-navigation"),!1)},k=e=>{if(!(e.defaultPrevented||a.enabled||"Backspace"!==e.key&&"Escape"!==e.key)){e.preventDefault();const t=document.querySelector('[aria-controls="tvx-lineups-section"]');t instanceof HTMLElement&&t.focus(),u(Ne)}},_=()=>{l(Xe)},C=()=>
157{l(qe)};return(0,p.useEffect)(()=>{d&&(a.enabled&&d.focusKey.forEach(e=>{o.exists(e)&&o.focus(e)}),h(Fe))},[]),n.formation&&r.formation?(0,c.jsx)(Le.kT,Object.assign({disabled:!a.enabled,focusKey:"lineups-section",isFocusBoundary:!0,saveLastFocusedChild:!0,syncNativeFocus:!1,trackChildren:!0,onArrowPress:e=>e===Le.kL.Right&&(o.focus("menu-statistics-navigation"),!1),onBackPress:x},{children:({ref:t,focusKey:s,handleFocus:l})=>(0,c.jsxs)(Sr,Object.assign({ref:n=>{t.current=n,e.current=n},tabIndex:-1,onFocus:l,onKeyDown:k},{children:[(0,c.jsx)(Vt,{}),(0,c.jsxs)(Le.w8.Provider,Object.assign({value:s},{children:[v.map(({player:e,x:t,y:n})=>(0,c.jsx)(Le.kT,Object.assign({disabled:!a.enabled,focusKey:xr(e.playerId),onArrowPress:t=>((e,t)=>{const n=v.find(t=>t.player.playerId===e);if(!n)return!0;const r=t.toLowerCase(),a=((e,t,n)=>{const{x:r,y:a}=e,o=t.filter(t=>{if(t.player.playerId===e.player.playerId)return!1;const{x:o,y:i}=t;switch(n){case"up":return i<a;case"down":return i>a;case"left":return o<r;case"right":return o>r;default:return!1}});return 0===o.length?null:o.reduce((e,t)=>{if(!e)return t;const{x:n,y:o}=t,{x:i,y:s}=e;return Math.abs(o-a)+Math.abs(n-r)<Math.abs(s-a)+Math.abs(i-r)?t:e},null)})(n,v,r);if(a)return o.focus(`lineups-lineup-player-${a.player.playerId}`),!1;if(t===Le.kL.Down){const e=i===Xe?"lineups-team-logo-home":"lineups-team-logo-guest";return o.focus(e),!1}return t===Le.kL.Right&&(o.focus("menu-statistics-navigation"),!1)})(e.playerId,t),onBackPress:x,onEnterPress:()=>b(e.playerId,y.id,!0)},{children:({ref:r,focused:o,handleFocus:i})=>(0,c.jsx)(vn,{ref:r,"data-focus-key":xr(e.playerId),focused:o,shirtMainColor:e.shirtMainColor,number:e.number,name:e.displayName,actions:e.actions,position:{x:t,y:n},onClick:t=>{t.defaultPrevented||a.enabled&&0===t.detail||b(e.playerId,y.id,!1)},onFocus:i})}),e.playerId)),(0,c.jsx)(Le.kT,Object.assign({disabled:!a.enabled,focusKey:"lineups-team-logo-home",onArrowPress:S,onBackPress:x,onEnterPress:_},{children:({ref:e,focused:t,handleFocus:r})=>(0,c.jsx)(Jt,{ref:e,"data-focus-key":"lineups-team-logo-home",focused:t,logo:n.logo,clubName:n.clubName,shirtMainColor:n.shirtMainColor,selected:i===Xe,homeTeam:!0,onClick:e=>{e.defaultPrevented||a.enabled&&0===e.detail||_()},onFocus:r})})),(0,c.jsx)(Le.kT,Object.assign({disabled:!a.enabled,focusKey:"lineups-team-logo-guest",onArrowPress:w,onBackPress:x,onEnterPress:C},{children:({ref:e,focused:t,handleFocus:n})=>(0,c.jsx)(Jt,{ref:e,"data-focus-key":"lineups-team-logo-guest",focused:t,logo:r.logo,clubName:r.clubName,shirtMainColor:r.shirtMainColor,selected:i===qe,homeTeam:!1,onClick:e=>{e.defaultPrevented||a.enabled&&0===e.detail||C()},onFocus:n})}))]}))]}))})):(0,c.jsx)(Sr,{children:(0,c.jsx)($t,{header:(0,Y.t)("no_sports_data_pre_kick_off_heading"),message:(0,Y.t)("no_sports_data_pre_kick_off_text")})})},LINEUPS_BENCH:()=>{const e=(0,p.useRef)(null),{mainMatch:t,homeClub:n,guestClub:r}=Rn(),{competitionId:a,matchId:o}=t,i=et(e=>e.getPlayerStatistics),s=et(e=>e.setSelectedEntry),l=et(e=>e.entrySectionState.get(De)),u=et(e=>e.setEntrySectionState),d=et(e=>e.clearEntrySectionState),{spatialNavigation:f}=(0,E.TVXCONFIG)(),h=(0,Le.UA)();Fn();const g=(0,p.useMemo)(()=>n.players.filter(e=>!e.starting).sort((e,t)=>e.position>=t.position?1:-1),[n.players]),m=(0,p.useMemo)(()=>r.players.filter(e=>!e.starting).sort((e,t)=>e.position>=t.position?1:-1),[r.players]),y=(t,n,r)=>{var s,l;i(t,n,a,o),u(De,{focusKey:[wr(t)],scrollOffset:null!==(l=null===(s=e.current)||void 0===s?void 0:s.scrollTop)&&void 0!==l?l:0,focusManager:r})},v=(t,n,r)=>{var s,l;i(t,n,a,o),u(De,{focusKey:[kr(t)],scrollOffset:null!==(l=null===(s=e.current)||void 0===s?void 0:s.scrollTop)&&void 0!==l?l:0,focusManager:r})},b=()=>(s(Ne),h.focus("menu-statistics-navigation"),h.focus("menu-statistics-lineups"),!1),x=e=>{if(!(e.defaultPrevented||f.enabled||"Backspace"!==e.key&&"Escape"!==e.key)){e.preventDefault();const t=document.querySelector('[aria-controls="tvx-lineups-bench-section"]');t instanceof HTMLElement&&t.focus(),s(Ne)}};return(0,p.useEffect)(()=>{var t;l&&(null===(t=e.current)||void 0===t||t.scrollTo({top:l.scrollOffset,behavior:"auto"}
157),f.enabled&&l.focusKey.forEach(e=>{h.exists(e)&&h.focus(e)}),d(De))},[]),(0,c.jsx)(Le.kT,Object.assign({focusKey:"lineups-bench-section",disabled:!f.enabled,isFocusBoundary:!0,saveLastFocusedChild:!0,syncNativeFocus:!1,trackChildren:!0,onArrowPress:e=>e===Le.kL.Right&&(h.focus("menu-statistics-navigation"),!1),onBackPress:b},{children:({ref:t,focusKey:a,handleFocus:o})=>(0,c.jsx)(_r,Object.assign({ref:t,"aria-live":"polite",id:"tvx-lineups-bench-section",tabIndex:-1,onFocus:o,onKeyDown:x},{children:(0,c.jsxs)(Le.w8.Provider,Object.assign({value:a},{children:[(0,c.jsxs)(Cr,{children:[(0,c.jsx)(Pr,Object.assign({className:"wl-font-body-extra-bold"},{children:n.shortName})),(0,c.jsx)(Pr,Object.assign({className:"wl-font-body-extra-bold"},{children:r.shortName}))]}),(0,c.jsxs)(Ir,Object.assign({ref:e},{children:[(0,c.jsx)(Er,{children:g.map((e,t)=>(0,c.jsx)(Le.kT,Object.assign({disabled:!f.enabled,focusKey:wr(e.playerId),onArrowPress:e=>((e,t)=>{if(t===Le.kL.Right){const t=Math.max(0,Math.min(e,m.length-1));return m.length>0?h.focus(kr(m[t].playerId)):h.focus("menu-statistics-navigation"),!1}return t!==Le.kL.Left&&(t===Le.kL.Down?(e+1<g.length&&h.focus(wr(g[e+1].playerId)),!1):t===Le.kL.Up&&(e-1>=0&&h.focus(wr(g[e-1].playerId)),!1))})(t,e),onBackPress:b,onEnterPress:()=>y(e.playerId,n.id,!0)},{children:({ref:t,focused:r,handleFocus:a})=>(0,c.jsx)(vn,{ref:t,"data-focus-key":wr(e.playerId),focused:r,shirtMainColor:e.shirtMainColor,number:e.number,name:e.displayName,actions:e.actions,bench:!0,onClick:t=>{t.defaultPrevented||f.enabled&&0===t.detail||y(e.playerId,n.id,!1)},onFocus:a})}),e.playerId))}),(0,c.jsx)(Er,{children:m.map((e,t)=>(0,c.jsx)(Le.kT,Object.assign({"data-focus-key":kr(e.playerId),disabled:!f.enabled,focusKey:kr(e.playerId),onArrowPress:e=>((e,t)=>{if(t===Le.kL.Right)return h.focus("menu-statistics-navigation"),!1;if(t===Le.kL.Left){const t=Math.max(0,Math.min(e,g.length-1));return g.length>0&&h.focus(wr(g[t].playerId)),!1}return t===Le.kL.Down?(e+1<m.length&&h.focus(kr(m[e+1].playerId)),!1):t===Le.kL.Up&&(e-1>=0&&h.focus(kr(m[e-1].playerId)),!1)})(t,e),onBackPress:b,onEnterPress:()=>v(e.playerId,r.id,!0)},{children:({ref:t,focused:n,handleFocus:a})=>(0,c.jsx)(vn,{ref:t,"data-focus-key":kr(e.playerId),focused:n,shirtMainColor:e.shirtMainColor,number:e.number,name:e.displayName,actions:e.actions,bench:!0,onClick:t=>{t.defaultPrevented||f.enabled&&0===t.detail||v(e.playerId,r.id,!1)},onFocus:a})}),e.playerId))})]}))]}))}))}))},LIVE_RANKINGS:()=>{const{mainMatch:e}=Rn(),t=et(e=>e.getLiveRankings),n=et(e=>e.liveRankings),r=et(e=>e.liveRankingsCallState),a=et(e=>e.entrySectionState.get(Be)),o=et(e=>e.setLiveRankingExpanded),i=et(e=>e.setEntrySectionState),s=et(e=>e.clearEntrySectionState),l=et(e=>e.getPlayerStatistics),u=et(e=>e.setSelectedEntry),{menuEntryLiveRankingsEntries:d,spatialNavigation:f}=(0,E.TVXCONFIG)(),h=(0,Le.UA)(),g=(0,p.useRef)(null),m=(0,p.useMemo)(()=>{const e=new Set;for(const[t,n]of Object.entries(d))if(!1===n){const n=t.replace(/[\w]([A-Z])/g,function(e){return e[0]+"_"+e[1]}).toUpperCase();e.add(n)}return e},[d]),y=(0,p.useMemo)(()=>n?n.filter(e=>!m.has(e.category.toUpperCase())):[],[n,m]),v=(t,n,r)=>{var a,o;(0,E.TVXCONFIG)().menuPlayerProfile&&(l(t.playerId,t.teamId,e.competitionId,e.matchId),i(Be,{focusKey:n?[n]:[],scrollOffset:null!==(o=null===(a=g.current)||void 0===a?void 0:a.scrollTop)&&void 0!==o?o:0,focusManager:null!=r&&r}))},b=(e,t)=>{o(e,t)},x=e=>e!==Le.kL.Right||(h.focus("menu-statistics-navigation"),!1),S=()=>(h.focus("menu-statistics-navigation"),h.focus("menu-statistics-live-rankings"),u(Ne),!1),w=e=>{if(!e.defaultPrevented&&("Backspace"===e.key||"Escape"===e.key)){if(f.enabled)return;e.preventDefault();const t=document.querySelector('[aria-controls="tvx-live-rankings-section"]');t instanceof HTMLElement&&t.focus(),u(Ne)}};if((0,p.useEffect)(()=>{t();const e=(0,E.TVXCONFIG)().restPollingIntervals.matchStatistics,n=setInterval(t,e);return()=>clearInterval(n)},[]),(0,p.useEffect)(()=>{var e;a&&(null===(e=g.current)||void 0===e||e.scrollTo({top:a.scrollOffset,behavior:"auto"}
157),f.enabled&&a.focusKey.forEach(e=>{h.exists(e)&&h.focus(e)}),s(Be))},[]),r===Ye)return(0,c.jsx)(ta,{children:(0,c.jsx)(Bt,{})});const k=()=>{if(r===Qe)return y.map(e=>(0,c.jsx)(ea,{rankingItem:e,onArrowPress:x,onBackPress:S,onPlayerClick:v,onRankingExpand:b},`${e.playerName}_${e.category}`));const t="PRE_MATCH"===e.liveMatchStatus;return(0,c.jsx)($t,{header:(0,Y.t)(t?"no_sports_data_fallback_heading":"no_sports_data_pre_kick_off_heading"),message:(0,Y.t)(t?"no_sports_data_fallback_text":"no_sports_data_pre_kick_off_text")})};return(0,c.jsx)(Le.kT,Object.assign({disabled:!f.enabled,focusKey:"live-rankings-section",isFocusBoundary:!0,saveLastFocusedChild:!0,syncNativeFocus:!1,trackChildren:!0,onArrowPress:e=>e===Le.kL.Right&&(h.focus("menu-statistics-navigation"),!1),onBackPress:S},{children:({ref:e,focusKey:t,handleFocus:n})=>(0,c.jsx)(na,Object.assign({ref:t=>{g.current=t,e.current=t},className:"season-ranking-container",id:"tvx-live-rankings-section",tabIndex:-1,onFocus:n,onKeyDown:w},{children:(0,c.jsx)(Le.w8.Provider,Object.assign({value:t},{children:k()}))}))}))},SEASON_RANKINGS:()=>{const{mainMatch:e}=Rn(),t=et(e=>e.seasonRankings),n=et(e=>e.getSeasonRankings),r=et(e=>e.seasonRankingsCallState),a=et(e=>e.entrySectionState.get(ze)),o=et(e=>e.setSeasonRankingExpanded),i=et(e=>e.setEntrySectionState),s=et(e=>e.clearEntrySectionState),l=et(e=>e.getPlayerStatistics),u=et(e=>e.updateSeasonRankingsItem),d=et(e=>e.setSelectedEntry),{menuEntrySeasonRankingsEntries:f,spatialNavigation:h}=(0,E.TVXCONFIG)(),g=(0,Le.UA)(),m=(0,p.useRef)(null),y=(0,p.useMemo)(()=>{const e=new Set;for(const[t,n]of Object.entries(f))if(!1===n){const n=t.replace(/[\w]([A-Z])/g,function(e){return e[0]+"_"+e[1]}).toUpperCase();e.add(n)}return e},[f]),v=(0,p.useMemo)(()=>t?t.filter(e=>!y.has(e.category.toUpperCase())):[],[t,y]),b=(t,n,r)=>{var a,o;(0,E.TVXCONFIG)().menuPlayerProfile&&(l(t.playerId,t.teamId,e.competitionId,e.matchId),i(ze,{focusKey:n?[n]:[],scrollOffset:null!==(o=null===(a=m.current)||void 0===a?void 0:a.scrollTop)&&void 0!==o?o:0,focusManager:null!=r&&r}))},x=(t,n)=>{o(t,n),u(t,e.competitionId)},S=e=>e!==Le.kL.Right||(g.focus("menu-statistics-navigation"),!1),w=()=>(g.focus("menu-statistics-navigation"),g.focus("menu-statistics-season-rankings"),d(Ne),!1),k=e=>{if(!e.defaultPrevented&&("Backspace"===e.key||"Escape"===e.key)){if(h.enabled)return;e.preventDefault();const t=document.querySelector('[aria-controls="tvx-season-rankings-section"]');t instanceof HTMLElement&&t.focus(),d(Ne)}};(0,p.useEffect)(()=>{const t=()=>{return r=function*(){yield n(),et.getState().seasonRankings.filter(e=>
157e.isExpanded).forEach(t=>u(t.category,null==e?void 0:e.competitionId))},new((t=void 0)||(t=Promise))(function(e,n){function a(e){try{i(r.next(e))}catch(e){n(e)}}function o(e){try{i(r.throw(e))}catch(e){n(e)}}function i(n){var r;n.done?e(n.value):(r=n.value,r instanceof t?r:new t(function(e){e(r)})).then(a,o)}i((r=r.apply(void 0,[])).next())});var t,r};t();const r=(0,E.TVXCONFIG)().restPollingIntervals.matchStatistics,a=setInterval(t,r);return()=>clearInterval(a)},[]),(0,p.useEffect)(()=>{var e;a&&(null===(e=m.current)||void 0===e||e.scrollTo({top:a.scrollOffset,behavior:"auto"}),h.enabled&&a.focusKey.forEach(e=>{g.exists(e)&&g.focus(e)}),s(ze))},[]);const _=()=>{if(r===Ye)return(0,c.jsx)($t,{isLoading:!0});if(r===Qe)return v.map(e=>(0,c.jsx)(ea,{rankingItem:e,onArrowPress:S,onBackPress:w,onPlayerClick:b,onRankingExpand:x},`${e.playerName}_${e.category}`));const t="PRE_MATCH"===e.liveMatchStatus;return(0,c.jsx)($t,{header:(0,Y.t)(t?"no_sports_data_fallback_heading":"no_sports_data_pre_kick_off_heading"),message:(0,Y.t)(t?"no_sports_data_fallback_text":"no_sports_data_pre_kick_off_text")})};return(0,c.jsx)(Le.kT,Object.assign({disabled:!h.enabled,focusKey:"season-rankings-section",isFocusBoundary:!0,saveLastFocusedChild:!0,syncNativeFocus:!1,trackChildren:!0,onArrowPress:e=>e===Le.kL.Right&&(g.focus("menu-statistics-navigation"),!1),onBackPress:w},{children:({ref:e,focusKey:t,handleFocus:n})=>(0,c.jsx)(Da,Object.assign({ref:t=>{m.current=t,e.current=t},className:"season-ranking-container",id:"tvx-season-rankings-section",tabIndex:-1,onFocus:n,onKeyDown:k},{children:(0,c.jsx)(Le.w8.Provider,Object.assign({value:t},{children:_()}))}))}))},PLAYER_STATISTICS:()=>{const e=Rn().mainMatch.competitionType,t=et(e=>e.playerStatistics),n=et(e=>e.playerStatisticsCallState),r=et(e=>e.clearPlayerStatistics),a=et(e=>e.selectedEntry),o=et(e=>e.entrySectionState.get(a)),{spatialNavigation:i}=(0,E.TVXCONFIG)(),s=(0,Le.UA)(),l=(0,p.useRef)(null),u=(0,p.useRef)(null),d=(0,p.useRef)(!1);(()=>{var e,t,n,r;const a=et(e=>e.updatePlayerLiveStats),o=et(e=>e.playerStatistics),i=null!==(t=null===(e=null==o?void 0:o.matchPlayer)||void 0===e?void 0:e.playerId)&&void 0!==t?t:null,s=null!==(r=null===(n=null==o?void 0:o.matchPlayer)||void 0===n?void 0:n.teamId)&&void 0!==r?r:null,l=null!==o;(0,p.useEffect)(()=>{if(null!==i&&null!==s&&l)return Ee.initialize({updatePlayerLiveStats:a,getPlayerStatistics:()=>o}),()=>{Ee.stop()}},[i,s,l])})();const f=()=>{const e=u.current;if(!e)return;if(pr(e))return;const t=Array.from(e.children);if(0===t.length)return;const n=hr(t,e);n&&mr(n,e)},h=()=>{const e=u.current;if(!e)return;if(dr(e))return void(e.scrollTop>0&&e.scrollTo({top:0,behavior:"smooth"}));const t=Array.from(e.children);if(0===t.length)return;const n=fr(t,e);n?gr(n,e):e.scrollTop>0&&e.scrollTo({top:0,behavior:"smooth"})},g=e=>e===Le.kL.Right?(s.focus("menu-statistics-navigation"),!1):(s.focus("player-statistics-section"),!1),m=()=>(r(),!1),y=()=>{r()},v=e=>{e.defaultPrevented||i.enabled||("ArrowDown"===e.key&&(e.preventDefault(),f()),"ArrowUp"===e.key&&(e.preventDefault(),h()),"Backspace"!==e.key&&"Escape"!==e.key||(e.preventDefault(),r()))},b=e=>{e.defaultPrevented||i.enabled||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.currentTarget.click())};(0,p.useEffect)(()=>{var e;if(!i.enabled)return void(null===(e=l.current)||void 0===e||e.focus());const t=setTimeout(()=>{(null==o?void 0:o.focusManager)&&s.focus("player-statistics-section")},100);return()=>{clearTimeout(t)}},[]);const x=()=>{if(n===Ye)return(0,c.jsx)($t,{isLoading:!0});if(n===Je||!t||!t.matchPlayer)return(0,c.jsx)($t,{header:(0,Y.t)("no_sports_data_fallback_heading"),message:(0,Y.t)("no_sports_data_fallback_text")});const{matchPlayer:a}=t,{actions:o}=a,i=o.filter(e=>"GOAL"===e).length;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(fa,{children:[(0,c.jsx)(ha,{children:(0,c.jsx)("img",{src:a.imageUrl?a.imageUrl:"https://asset-cdn.cloud.tvxray.com/misc/img/default/default_player_280x280.png",alt:"wl-player-image",draggable:!1,onDragStart:e=>e.preventDefault(),onContextMenu:e=>e.preventDefault(),style:{WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}})}),(0,c.jsxs)(ga,{children:[(0,c.jsx)(Le.kT,Object.assign({focusKey:"player-statistics-back-button",onArrowPress:g,onBackPress:m,onEnterPress:y},{children:({ref:e,focused:t,handleFocus:n})=>(0,c.jsx)(ma,Object.assign({ref:e,"data-focus-key":"player-statistics-back-button",focused:t,tabIndex:0,onClick:()=>r(),onFocus:e=>{e.stopPropagation(),n()},onKeyDown:b},{children:(0,c.jsx)("img",{src:It("PlayerStatisticsBackButton","ard"),alt:"Back",draggable:!1,onDragStart:e=>e.preventDefault(),onContextMenu:e=>e.preventDefault(),style:{WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}})}
157))})),(0,c.jsxs)(ya,{children:[(0,c.jsx)("img",{src:a.teamLogo,alt:"Team/Club Logo",draggable:!1,onDragStart:e=>e.preventDefault(),onContextMenu:e=>e.preventDefault(),style:{WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}}),(0,c.jsx)("span",Object.assign({className:"wl-font-body-regular"},{children:a.teamShortName}))]})]})]}),(0,c.jsxs)(ba,{children:[(0,c.jsx)(xa,Object.assign({className:"wl-font-subheading"},{children:a.number})),(0,c.jsx)(Sa,Object.assign({className:"wl-font-subheading"},{children:a.displayName}))]}),(0,c.jsx)(wa,Object.assign({className:"wl-font-body-regular"},{children:Ie.playerPositionToLocalizedString(a.position)})),o.length>0&&(0,c.jsx)(ka,{children:(0,c.jsxs)(_a,{children:[i>=2&&o.length>=2&&(0,c.jsxs)(c.Fragment,{children:[i,"x",(0,c.jsx)("img",{src:Et("GOAL"),alt:"",draggable:!1,onDragStart:e=>e.preventDefault(),onContextMenu:e=>e.preventDefault(),style:{WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}})]}),i<=1&&o.map(e=>(0,c.jsx)("img",{src:Et(e),alt:"",draggable:!1,onDragStart:e=>e.preventDefault(),onContextMenu:e=>e.preventDefault(),style:{WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}},e))]})}),(0,E.TVXCONFIG)().menuEntryLiveRankings&&t.liveStatistics&&(0,c.jsx)(ua,{header:(0,Y.t)("player_statistics_live_stats"),values:Ie.getLiveStatsForPlayerPosition(t)}),(0,E.TVXCONFIG)().menuEntrySeasonRankings&&"RELEGATION"!==e&&"SINGLE_MATCH"!==e&&t.seasonStatistics&&(0,c.jsx)(ua,{header:(0,Y.t)("TOURNAMENT_LEAGUE"===e?"player_statistics_tournament_stats":"player_statistics_season_stats"),values:Ie.getSeasonStatsForPlayerPosition(t)})]})};return(0,c.jsx)(Le.kT,Object.assign({disabled:!i.enabled,focusKey:"player-statistics-section",onArrowPress:e=>(e===Le.kL.Down&&f(),e===Le.kL.Up&&h(),e===Le.kL.Right&&s.focus("menu-statistics-navigation"),!1),onBackPress:()=>(r(),!1)},{children:({ref:e,focused:t,handleFocus:n})=>(0,c.jsx)(da,Object.assign({ref:t=>{e.current=t,l.current=t},"aria-live":"polite","data-focus-key":"player-statistics-section",id:"tvx-player-statistics-section",focused:t,tabIndex:0,onMouseDown:()=>{d.current=!0},onMouseUp:()=>{d.current=!1},onFocus:()=>{d.current||n()},onKeyDown:v,className:"wl-font-body"},{children:(0,c.jsx)(pa,Object.assign({ref:u,tabIndex:-1,onFocus:()=>{var t;null===(t=e.current)||void 0===t||t.focus()}},{children:x()}))}))}))},LIVE_TABLE:()=>{const e=et(e=>e.liveTable),t=et(e=>e.liveTableCallState),n=et(e=>e.setSelectedEntry),{spatialNavigation:r}=(0,E.TVXCONFIG)(),a=(0,Le.UA)(),o=(0,p.useRef)(null);(()=>{const e=et(e=>e.getLiveTable);(0,p.useEffect)(()=>(_e.initialize(e),()=>{_e.stop()}),[])})();const i=()=>{const e=o.current;if(!e)return;if(pr(e))return;const t=ur('[data-table-row="live-table-row"]',e);if(0===t.length)return;const n=hr(t,e,3);n&&mr(n,e)},s=()=>{const e=o.current;if(!e)return;if(dr(e))return void(e.scrollTop>0&&e.scrollTo({top:0,behavior:"smooth"}));const t=ur('[data-table-row="live-table-row"]',e);if(0===t.length)return;const n=fr(t,e,3);n?gr(n,e):e.scrollTop>0&&e.scrollTo({top:0,behavior:"smooth"})},l=e=>{if(!e.defaultPrevented&&!r.enabled&&("ArrowDown"===e.key&&(e.preventDefault(),i()),"ArrowUp"===e.key&&(e.preventDefault(),s()),"Backspace"===e.key||"Escape"===e.key)){e.preventDefault();const t=document.querySelector('[aria-controls="tvx-live-table-section"]');t instanceof HTMLElement&&t.focus(),n(Ne)}};return t===Ye?(0,c.jsx)(La,{children:(0,c.jsx)(Bt,{})}):t!==Je&&e&&0!==e.length?(0,c.jsx)(Na,Object.assign({"aria-live":"polite",id:"tvx-live-table-section"},{children:(0,c.jsx)(Le.kT,Object.assign({disabled:!r.enabled,focusKey:"live-table-section",onArrowPress:e=>!r.enabled||e!==Le.kL.Left&&(e===Le.kL.Down?(i(),!1):e===Le.kL.Up?(s(),!1):e!==Le.kL.Right||(a.focus("menu-statistics-navigation"),!1)),onBackPress:()=>!r.enabled||(a.focus("menu-statistics-navigation"),a.focus("menu-statistics-live-table"),n(Ne),!1)},{children:({ref:t,focused:n,handleFocus:r})=>(0,c.jsxs)(Aa,Object.assign({ref:t,className:"wl-font-body","data-focus-key":"live-table-section",focused:n,tabIndex:0,onFocus:r,onKeyDown:l},{children:[(0,c.jsxs)(Ra,Object.assign({"data-table-row":"live-table-header"},{children:[(0,c.jsx)("span",{children:(0,Y.t)("table_header_position_short")}),(0,c.jsx)("span",{children:(0,Y.t)("table_header_club_short")}),(0,c.jsx)("span",{children:(0,Y.t)("table_header_played_short")}),(0,c.jsx)("span",{children:(0,Y.t)("table_header_goal_difference_short")}),(0,c.jsx)("span",{children:(0,Y.t)("table_header_points_short")})]})),(0,c.jsx)(Fa,Object.assign({ref:o,onFocus:()=>{var e;null===(e=t.current)||void 0===e||e.focus()}},{children:e&&e.map((e,t)=>(0,c.jsx)(p.Fragment,{children:(0,c.jsx)(Oa,{data:e})},`live-table-row_${t}`))}))]}))}))})):(0,c.jsx)(ja,{children:(0,c.jsx)($t,{header:(0,Y.t)("no_sports_data_fallback_heading"),message:(0,Y.t)("no_sports_data_fallback_text")})})},GROUP_TABLE:()=>{const[e,t]=(0,p.useState)(null),n=et(e=>e.tournamentStandings),r=et(e=>e.tournamentStandingsCallState),a=et(e=>e.getGroupTable),o=et(e=>e.setSelectedEntry),{mainMatch:i}=Rn(),{spatialNavigation:s}=(0,E.TVXCONFIG)(),l=(0,Le.UA)(),u=(0,p.useRef)(null),d=(0,p.useRef)(null),f=()=>d.current?ur("[data-group-match-header]",d.current):[],h=(e,t)=>{const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return r.top-n.top>=-2&&r.top-n.bottom<=2&&r.bottom-n.bottom<=2},g=()=>{const e=d.current;if(!e)return;if(pr(e))return;const t=ur("[data-table-row]",e);if(0===t.length)return;const n=hr(t,e,3);n&&mr(n,e)},m=()=>{const e=d.current;if(!e)return;if(dr(e))return void(e.scrollTop>0&&e.scrollTo({top:0,behavior:"smooth"}));const t=ur("[data-table-row]",e);if(0===t.length)return;const n=fr(t,e,3);n?gr(n,e):e.scrollTop>0&&e.scrollTo({top:0,behavior:"smooth"})},y=()=>!s.enabled||(l.focus("menu-statistics-navigation"),l.focus("menu-statistics-group-table"),o(Ne),!1),v=e=>{if(!e.defaultPrevented&&!s.enabled&&("ArrowDown"===e.key&&(e.preventDefault(),g()),"ArrowUp"===e.key&&(e.preventDefault(),m()),"Backspace"===e.key||"Escape"===e.key)){e.preventDefault();const t=document.querySelector('[aria-controls="tvx-group-table-section"]');t instanceof HTMLElement&&t.focus(),o(Ne)}};return(0,p.useEffect)(()=>{a()},[]),(0,p.useEffect)(()=>{r===Qe&&(()=>{const e=null==n?void 0:n.group_data.find(e=>e.matches.find(e=>e.match_id===i.matchId));if(e){const t=d.current,n=document.getElementById(e.name);t&&n&&t.scroll({top:n.offsetTop,behavior:"smooth"})}})()},[r]),r===Ye?(0,c.jsx)(Qa,{children:(0,c.jsx)(Bt,{})}):r!==Je&&n?(0,c.jsx)(Le.kT,Object.assign({disabled:!s.enabled,focusKey:"group-table-section",isFocusBoundary:!0,saveLastFocusedChild:!0,syncNativeFocus:!1,trackChildren:!0,onBackPress:y},{children:({ref:r,focusKey:a,handleFocus:o})=>(0,c.jsx)(Za,Object.assign({ref:e=>{r.current=e},id:"tvx-group-table-section",tabIndex:-1,onFocus:o,onKeyDown:v},{children:(0,c.jsx)(Le.w8.Provider,Object.assign({value:a},{children:(0,c.jsx)(eo,Object.assign({ref:d,className:"wl-font-body"},{children:n.group_data.map(n=>(n.table.sort((e,t)=>
157e.position-t.position),(0,c.jsxs)(to,Object.assign({id:n.name,focused:e===n.name},{children:[(0,c.jsx)(no,Object.assign({className:"wl-font-body-extra-bold","data-table-row":"group-table-header"},{children:n.name})),(0,c.jsxs)(ro,Object.assign({className:"wl-font-taker","data-table-row":"group-table-header-row"},{children:[(0,c.jsx)("span",{children:(0,Y.t)("table_header_position_short_ard")}),(0,c.jsx)("span",{children:(0,Y.t)("table_header_team_short_ard")}),(0,c.jsx)("span",{children:(0,Y.t)("table_header_played_short_ard")}),(0,c.jsx)("span",{children:(0,Y.t)("table_header_goal_difference_short_ard")}),(0,c.jsx)("span",{children:(0,Y.t)("table_header_points_short_ard")})]})),n.table.sort((e,t)=>e.position-t.position).map((e,t)=>(0,c.jsx)(p.Fragment,{children:(0,c.jsx)(Oa,{data:e})},`live-table-row_${t}`)),(0,c.jsx)(Ya,{matches:n.matches,scrollContainerRef:d,groupName:n.name,onArrowPress:e=>((e,t)=>{if(!s.enabled)return!0;if(t===Le.kL.Left)return!1;if(t===Le.kL.Down){const t=(e=>{const t=d.current;if(!t)return null;const n=f();if(0===n.length)return null;const r=n.findIndex(t=>t.getAttribute("data-group-match-header")===e),a=n[r+1];return a&&h(t,a)?a:null})(e);return t?(l.focus(`group-match-header-${t.getAttribute("data-group-match-header")}`),u.current=t.getAttribute("data-group-match-header"),!1):(g(),!1)}if(t===Le.kL.Up){const t=(e=>{const t=d.current;if(!t)return null;const n=f();if(0===n.length)return null;const r=n.findIndex(t=>t.getAttribute("data-group-match-header")===e),a=n[r-1];return a&&h(t,a)?a:null})(e);return t?(l.focus(`group-match-header-${t.getAttribute("data-group-match-header")}`),u.current=t.getAttribute("data-group-match-header"),!1):(m(),!1)}return t!==Le.kL.Right||(l.focus("menu-statistics-navigation"),!1)})(n.name,e),onBackPress:y,onFocusChange:e=>t(e?n.name:null)})]}),n.name)))}))}))}))})):(0,c.jsx)(Ja,{children:(0,c.jsx)($t,{header:(0,Y.t)("no_sports_data_fallback_heading"),message:(0,Y.t)("no_sports_data_fallback_text")})})},KO_TREE:()=>{const e=(0,p.useRef)(null),t=(0,p.useRef)(null),n=(0,p.useRef)(null),r=(0,p.useRef)(!1),{spatialNavigation:a}=(0,E.TVXCONFIG)(),o=et(e=>e.setSelectedEntry),{mainMatchId:i}=B(),{koTreeData:s,loading:l}=(()=>{const[e,t]=(0,p.useState)(null),[n,r]=(0,p.useState)(!0),{mainMatchId:a}=B();return(0,p.useEffect)(()=>{var e,n;n=function*(){try{r(!0);const e=yield xe.getKOTreeForCurrentMatch();t(e)}catch(e){console.error("Failed to fetch KO tree data:",e)}finally{r(!1)}},new((e=void 0)||(e=Promise))(function(t,r){function a(e){try{i(n.next(e))}catch(e){r(e)}}function o(e){try{i(n.throw(e))}catch(e){r(e)}}function i(n){var r;n.done?t(n.value):(r=n.value,r instanceof e?r:new e(function(e){e(r)})).then(a,o)}i((n=n.apply(void 0,[])).next())})},[a]),{koTreeData:e,loading:n}})(),u=(0,Le.UA)(),{selectedRoundIndex:d,previousRoundIndex:f,isAnimating:h,slideDirection:g,selectRound:m,setSelectedRoundIndex:y}=((e={})=>{const{initialIndex:t=0,duration:n=Dn}=e,[r,a]=(0,p.useState)(t),[o,i]=(0,p.useState)(null),[s,l]=(0,p.useState)(!1),[c,u]=(0,p.useState)(null),d=(0,p.useRef)(null);(0,p.useEffect)(()=>()=>{d.current&&clearTimeout(d.current)},[]);const f=(0,p.useCallback)(e=>{if(e===r)return;d.current&&(clearTimeout(d.current),d.current=null);const t=e>r?"left":"right";i(r),u(t),l(!0),a(e),d.current=setTimeout(()=>{l(!1),i(null),u(null),d.current=null},n)},[r,n]);return{selectedRoundIndex:r,previousRoundIndex:o,isAnimating:s,slideDirection:c,selectRound:f,setSelectedRoundIndex:a}})();(0,p.useEffect)(()=>{if(s&&s.rounds.length>0){const e=((e,t)=>{var n;const r=null!==(n=null==e?void 0:e.rounds)&&void 0!==n?n:[];if(0===r.length)return 0;const a=((e,t)=>t?e.findIndex(e=>e.matches.some(e=>e.matchId===t)):-1)(r,t);if(-1!==a){const e=r[a];return Jn(e)&&a>0?a-1:a}const o=new Date,i=r.findIndex(e=>((e,t=new Date)=>e.matches.some(e=>Qn(e,t)))(e,o));if(-1!==i)return i;const s=r.findIndex(e=>!Jn(e));return-1!==s?s:0})(s,i);y(e)}},[s,i,y]);const v=(0,p.useCallback)(()=>{var t;null===(t=e.current)||void 0===t||t.focus()},[]),b=(0,p.useCallback)(e=>{e!==d?(t.current&&(t.current.scrollTop=0),m(e)):t.current&&t.current.scrollTo({top:0,behavior:"smooth"})},[d,m]),x=(0,p.useCallback)(e=>{if(!a.enabled&&("ArrowLeft"!==e.key&&"ArrowRight"!==e.key||e.preventDefault(),"Escape"===e.key||"Backspace"===e.key)){e.preventDefault();const t=document.querySelector('[aria-controls="tvx-ko-tree-section"]');t instanceof HTMLElement&&t.focus(),o(Ne)}},[a.enabled,o]),S=(0,p.useCallback)(()=>
157{if(!t.current)return!1;const e=t.current,n=e.getBoundingClientRect();if(e.scrollTop<2)return e.scrollTop>0&&e.scrollTo({top:0,behavior:"smooth"}),u.focus("ko-tree-tab-menu"),!1;const r=e.querySelectorAll('[data-content-row="ko-match-element"]');if(0===r.length)return u.focus("ko-tree-tab-menu"),!1;for(let t=r.length-1;t>=0;t--){const a=r[t].getBoundingClientRect();if(n.top-a.top>2)return e.scrollTo({top:e.scrollTop-(n.top-a.top),behavior:"smooth"}),!1}return e.scrollTop>0&&e.scrollTo({top:0,behavior:"smooth"}),u.focus("ko-tree-tab-menu"),!1},[u]),w=(0,p.useCallback)(()=>{if(!t.current)return!1;const e=t.current,n=e.getBoundingClientRect();if(e.scrollHeight-e.scrollTop-e.clientHeight<=2)return!1;const r=e.querySelectorAll('[data-content-row="ko-match-element"]');if(0===r.length)return!1;for(let t=0;t<r.length;t++){const a=r[t].getBoundingClientRect();if(a.bottom-n.bottom>2)return e.scrollTo({top:e.scrollTop+(a.bottom-n.bottom),behavior:"smooth"}),!1}return!1},[]),k=(0,p.useCallback)(e=>e!==Le.kL.Left&&(e===Le.kL.Right?(u.focus("menu-statistics-navigation"),!1):e===Le.kL.Up?S():e===Le.kL.Down&&w()),[S,w,u]),_=(0,p.useCallback)(()=>(u.focus("menu-statistics-navigation"),u.focus("menu-statistics-ko-tree"),o(Ne),!1),[o,u]),C=null==s?void 0:s.rounds[d],P=null!==f?null==s?void 0:s.rounds[f]:null,I=s?((e,t)=>{const n=new Date;return e.findIndex(e=>e.matches.some(e=>null!==e.result||e.matchId===t||Qn(e,n)))})(s.rounds,i):-1,T=s?nr(s.rounds,d,null==C?void 0:C.name):void 0,M=s&&null!==f?nr(s.rounds,f,null==P?void 0:P.name):void 0,O=cr(C,T),L=cr(h?P:null,M);return l?(0,c.jsx)(Wo,{children:(0,c.jsx)($t,{header:"",message:"",isLoading:!0})}):s&&0!==s.rounds.length?(0,c.jsx)(Le.kT,Object.assign({disabled:!a.enabled,focusKey:"ko-tree-section",isFocusBoundary:!0,saveLastFocusedChild:!0,syncNativeFocus:!1,trackChildren:!0},{children:({ref:o,focusKey:l,handleFocus:u})=>(0,c.jsx)(Wo,Object.assign({ref:o,"aria-live":"polite",id:"tvx-ko-tree-section",onFocus:u},{children:(0,c.jsxs)(Le.w8.Provider,Object.assign({value:l},{children:[(0,c.jsx)(Le.kT,Object.assign({disabled:!a.enabled,focusKey:"ko-tree-tab-menu",isFocusBoundary:!0,preferredChildFocusKey:`ko-tree-tab-${d}`,saveLastFocusedChild:!0,syncNativeFocus:!1,trackChildren:!0},{children:({ref:e,focusKey:t,handleFocus:r})=>(0,c.jsx)("div",Object.assign({ref:e,"data-focus-key":"ko-tree-tab-menu",onFocus:r},{children:(0,c.jsx)(Le.w8.Provider,Object.assign({value:t},{children:(0,c.jsx)(fo,{ref:n,rounds:s.rounds,selectedRoundIndex:d,onRoundSelect:b,currentRoundIndex:I>=0?I:void 0,onFocusRoundSection:v})}))}))})),(0,c.jsx)(Le.kT,Object.assign({disabled:!a.enabled,focusKey:"ko-tree-widget-content",onArrowPress:k,onBackPress:_},{children:({ref:n,focused:a,handleFocus:o})=>(0,c.jsx)(Uo,Object.assign({"data-focus-key":"ko-tree-widget-content",ref:e=>{t.current=e,n.current=e},tabIndex:0,onKeyDown:x,onMouseDown:()=>{r.current=!0},onFocus:()=>{r.current?r.current=!1:o()}},{children:(0,c.jsxs)($o,{children:[h&&P&&L.length>0&&(0,c.jsx)(No,Object.assign({isOutgoing:!0,direction:g},{children:(0,c.jsx)(Lo,{matches:L,previousRound:M,mainMatchId:i})})),C&&(0,c.jsx)(No,Object.assign({isOutgoing:!1,direction:h?g:null},{children:(0,c.jsx)(Lo,{ref:e,matches:O,previousRound:T,mainMatchId:i,focused:a})}))]})}))}))]}))}))})):(0,c.jsx)(Wo,{children:(0,c.jsx)($t,{header:"Keine Daten verfügbar",message:"Es sind derzeit keine Daten verfügbar",isLoading:!1})})}},Jo=vt.A.div({label:"MenuStatistics",display:"flex",flexDirection:"row-reverse",height:"100%",width:"100%",minHeight:0,justifyContent:"flex-end",opacity:0,animation:`400ms ${yt.xA} 100ms forwards`}),Zo=vt.A.nav({label:"StatisticsMenu",height:"100%",display:"flex",flexDirection:"column",minHeight:0}),ei=vt.A.ul({label:"StatisticsMenuList",margin:0,padding:0,marginRight:"calc(var(--menuButtonWidth) - var(--menuButtonWidthLarger))",paddingRight:"calc(var(--menuButtonWidthLarger) - var(--menuButtonWidth))",display:"flex",flexDirection:"column",gap:"var(--marginSmall)",listStyle:"none",overflowY:"auto",scrollBehavior:"smooth"}),ti=vt.A.div(({benchVisible:e,exiting:t})=>Object.assign({label:"BenchAnimatedWrapper",overflow:"hidden"},e?{animation:t?`${yt.ru} 400ms ease-in forwards`:`${yt.OI} 400ms ease-out forwards`}:{maxHeight:0,opacity:0}
157)),ni=vt.A.div({label:"StatisticsContent",overflowY:"auto"}),ri=()=>{Fn();const e=(0,p.useRef)(null),[t,n]=(0,p.useState)(!1),r=et(e=>e.selectedEntry),a=et(e=>e.setSelectedEntry),o=et(e=>e.setSelectedMenu),i=et(e=>e.playerStatistics),s=et(e=>e.clearPlayerStatistics),l=et(e=>e.resetLiveRankingExpanded),u=et(e=>e.resetSeasonRankingExpanded),d=et(e=>e.entrySectionState.get(r)),f=et(e=>e.setEntrySectionState),h=et(e=>e.resetEntrySectionState),{mainMatch:g}=Rn(),{menuEntryMatchStatistics:m,menuEntryLineups:y,menuEntryLineupsBench:v,menuEntryLiveRankings:b,menuEntryLiveTable:x,menuEntrySeasonRankings:S,menuEntryGroupTable:w,menuEntryKoTree:k,spatialNavigation:_}=(0,E.TVXCONFIG)(),C=(0,Le.UA)(),{ref:P,focused:I,focusKey:T,focusSelf:M,hasFocusedChild:O}=(0,Le.Wc)({focusKey:"menu-statistics-navigation",saveLastFocusedChild:!0,isFocusBoundary:!0,trackChildren:!0}),L=(0,p.useMemo)(()=>Yo.filter(e=>!!(e.name===Re&&m||e.name===Fe&&y||e.name===De&&v||e.name===Be&&b||e.name===He&&x||e.name===ze&&S||e.name===Ue&&w||e.name===$e&&k)),[m,y,v,b,x,S,w,k]),j=r===Fe||r===De||t,A=(0,p.useMemo)(()=>L.filter(e=>!(e.name===De&&!j||!(e.name!==Ue||g&&"TOURNAMENT_LEAGUE"===g.competitionType)||!(e.name!==He||g&&"TOURNAMENT_LEAGUE"!==g.competitionType))),[L,g,j]),N=()=>{if(i){if(d){const e=C.getFocusedKey();f(r,Object.assign(Object.assign({},d),{focusKey:[...d.focusKey,...e?[e]:[]]}))}return s(),!1}return r!==Ne?(h(),a(Ne),r===De&&C.focus("menu-statistics-lineups"),!1):(a(Ne),o(Ae),C.focus("menu"),!1)};return(0,p.useEffect)(()=>{r!==We&&(i&&(s(),h()),e.current===Be&&r!==Be&&l(),e.current===ze&&r!==ze&&u(),e.current!==De&&e.current!==Fe||r===De||r===Fe||n(!0)),e.current=r},[r]),(0,p.useEffect)(()=>()=>a(Ne),[]),(0,c.jsxs)(Jo,{children:[(0,c.jsx)(Le.w8.Provider,Object.assign({value:T},{children:(0,c.jsx)(Zo,Object.assign({ref:P,"aria-live":"polite","aria-orientation":"vertical",id:"tvx-menu-statistics-navigation",onFocus:()=>{_.enabled&&(I||O||M())}},{children:(0,c.jsx)(ei,{children:A.map((e,o)=>{const s=(0,c.jsx)(Vo,{item:e,selected:r===e.name,onSelect:()=>{return t=e.name,void a(t);var t},withLabel:r===Ne,onArrowPress:e=>((e,t,n)=>{if(!_.enabled)return!1;if(n===Le.kL.Up&&0===t)return C.focus("menu"),!1;if(n===Le.kL.Left){if(i)return C.focus("player-statistics-section"),!1;const e={[Re]:"match-statistics-section",[Fe]:"lineups-section",[De]:"lineups-bench-section",[Be]:"live-rankings-section",[He]:"live-table-section",[ze]:"season-rankings-section",[Ue]:"group-table-section",[We]:"player-statistics-section",[$e]:"ko-tree-section"}[r];return e&&C.exists(e)&&C.focus(e),!1}return!0})(0,o,e),onBackPress:N});return(0,c.jsx)("li",{children:e.name===De?(0,c.jsx)(ti,Object.assign({benchVisible:j,exiting:t,onAnimationEnd:()=>t&&n(!1)},{children:s})):s},e.name)})})}))})),r!==Ne&&(0,c.jsx)(ni,{children:(e=>{const t=i?Qo[We]:Qo[e];return(0,c.jsx)(t,{})})(r)})]})},ai=[{accessibility:{controls:"tvx-menu-close-navigation",haspopup:"menu"},focusKey:"menu-close",name:je,label:"",icon:{base:"CloseMenuIcon",focused:"CloseMenuIcon",selected:"CloseMenuIcon"}}],oi=(e,t,n)=>n?e.icon.focused:t?e.icon.selected:e.icon.base,ii=vt.A.div({label:"WLMenuContainer",top:"var(--videoPlayerPadding)",right:"var(--videoPlayerPadding)",bottom:0,pointerEvents:"none",position:"absolute",display:"flex",flexDirection:"column"}),si=vt.A.div({label:"WLHorizontalMenu",height:"var(--menuButtonHeight)",display:"flex",marginBottom:"var(--marginSmall)",justifyContent:"end",alignItems:"end",gap:"var(--marginMedium)",zIndex:0,pointerEvents:"all"}),li=vt.A.div({label:"MenuPage",display:"flex",minHeight:0,justifyContent:"flex-end",zIndex:0,pointerEvents:"all"}),ci=()=>{const e=et(e=>e.selectedMenu),t=et(e=>e.selectedEntry),n=et(e=>e.playerStatistics),r=et(e=>e.setSelectedMenu),a=et(e=>e.setSelectedEntry),o=et(e=>e.clearPlayerStatistics),i=et(e=>e.resetEntrySectionState),s=et(e=>e.entrySectionState.get(t)),l=et(e=>e.setEntrySectionState),u=et(e=>e.reset),d=I(e=>e.hideOverlay),{menuStatistics:f,spatialNavigation:h}=(0,E.TVXCONFIG)(),g=(0,Le.UA)(),{ref:m,focused:y,focusKey:v,hasFocusedChild:b,focusSelf:x}=(0,Le.Wc)({focusKey:"menu",isFocusBoundary:!0,trackChildren:!0}),S=(0,p.useMemo)(()=>ai.filter(e=>!(e.name!==je||!f)),[f]),w=()=>
157{if(n){if(s){const e=g.getFocusedKey();l(t,Object.assign(Object.assign({},s),{focusKey:[...s.focusKey,...e?[e]:[]]}))}return o(),!1}return t!==Ne?(i(),a(Ne),t===De&&g.focus("menu-statistics-lineups"),!1):e!==Ae?(a(Ne),r(Ae),!1):(d(),!1)};return(0,p.useEffect)(()=>()=>u(),[]),(0,c.jsxs)(ii,{children:[(0,c.jsx)(Le.w8.Provider,Object.assign({value:v},{children:(0,c.jsx)(si,Object.assign({ref:m,"aria-live":"polite",id:"tvx-menu",role:"menubar",onFocus:()=>{h.enabled&&(y||b||x())}},{children:S.map((t,n)=>{const r=e===t.name;return(0,c.jsx)(Le.kT,Object.assign({focusKey:t.focusKey,onArrowPress:t=>((t,n,r)=>!(!h.enabled||r===Le.kL.Down&&e===je&&(g.focus("menu-statistics-match-statistics"),1)))(0,0,t),onBackPress:w,onEnterPress:d},{children:({ref:e,focused:n,handleFocus:a})=>{var o,i;return(0,c.jsx)(en,{ref:e,"aria-controls":r?null===(o=t.accessibility)||void 0===o?void 0:o.controls:void 0,"aria-expanded":r,"aria-haspopup":null===(i=t.accessibility)||void 0===i?void 0:i.haspopup,"aria-label":(0,Y.t)(t.label),icon:(0,c.jsx)(Gt,{icon:oi(t,r,n),alt:"",taker:"ard"}),label:t.label?(0,Y.t)(t.label):"",selected:r,focused:n,onClick:d,onFocus:a})}}),t.name)})}))})),e!==Ae&&(0,c.jsx)(li,{children:e===je&&(0,c.jsx)(ri,{})})]})},ui=({onCloseOverlay:e})=>{const t=I(e=>e.overlay),n=(0,p.useRef)(t),r=(0,p.useRef)(e);return r.current=e,(0,p.useEffect)(()=>{var e;n.current!==_&&t===_&&(null===(e=r.current)||void 0===e||e.call(r)),n.current=t},[t]),(0,c.jsx)(Ln,{children:t===C&&(0,c.jsx)(ci,{})})},di=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,a,o=e.stylisPlugins||gt,i={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)});var l,c=[pt,ft],u=[st.A,(0,lt.MY)(function(e){l.insert(e)})],d=(0,lt.r1)(c.concat(o,u));a=function(e,t,n,r){var a;l=n,a=e?e+"{"+t.styles+"}":t.styles,(0,st.l)((0,ct.wE)(a),d),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new rt.v({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return p.sheet.hydrate(s),p}({key:"tvxray",stylisPlugins:[e=>{"rule"===e.type&&!e.root&&Array.isArray(e.props)&&(e.props=e.props.map(e=>e.includes(".tvxray.tvxray-root")?e:`#tvx-app.tvxray.tvxray-root ${e}`))},lt.gi]}),pi=({rootElement:e,spatialNavigation:t,onCloseOverlay:n})=>{const{uiStyle:r}=(0,E.TVXCONFIG)(),{taker:a,mode:o}=(0,yt.Lc)(r);return(0,c.jsx)(Le.me,Object.assign({spatialNavigation:t},{children:(0,c.jsx)(yt.X,Object.assign({rootElement:e},{children:(0,c.jsxs)(mt.C,Object.assign({value:di},{children:[(0,c.jsx)(yt.kH,{mode:o,rootSelector:".tvxray.tvxray-root",taker:a}),(0,c.jsx)("div",Object.assign({className:"tvxray tvxray-root",id:"tvx-app",style:{width:"100%",height:"100%"}},{children:(0,c.jsx)(Pn,Object.assign({onCloseOverlay:n},{children:(0,c.jsx)(ui,{onCloseOverlay:n})}))}))]}))}))}))};class fi{constructor(e,t){this.container=null,this.root=null,this.programId=e,this.options=t,this.spatialNavigation=new Le.pG}init(){return e=this,n=function*(){J.mainMatchId=this.programId;const e={appVersion:"2.6.13",takerId:"w0r3kq",usePip:!0,wrapperId:"tvx-wrapper",languageUIDefault:"DE",singleMatchMode:!1,trackingEnabled:!1,menuStatistics:!0,overlayAutoHideInMilliseconds:0,menuEntryMatchStatistics:!0,menuEntryLineups:!0,menuEntryLineupsAverage:!0,menuEntryLineupsBench:!0,menuEntryLiveTable:!0,menuEntryLiveRankings:!0,showReliveEntryDialog:!1,menuEntrySeasonRankings:!0,menuEntryGroupTable:!0,menuEntryKoTree:!0,debugger:!0,showScreenSize:!1,uiStyle:"ard",spatialNavigation:{enabled:!0,debug:!1,throttle:0,useEventHandlers:!1,visualDebug:!1}};tt(),(e=>{nt(void 0,void 0,void 0,function*(){const t=(0,E.deepMergeConfig)(E.TVXCONFIGdefault,{},e);E.useConfigStore.getState().setConfigStore(t)})})(e),G.Debugger.console(0,`[Init] App version: ${(0,E.TVXCONFIG)().appVersion}`),G.Debugger.console(0,"[Init] Start initializing TVX"),yield(e=>nt(void 0,void 0,void 0,function*(){G.Debugger.console(0,"[Setup Config] Starting setup config");const t=yield nt(void 0,void 0,void 0,function*(){try{const e=yield(0,X.i)();return(0,E.convertKeysToCamelCase)(e||{})}catch(e){return G.Debugger.console(0,`[Load Features] Failed to get features: ${e}
157`),G.Debugger.console(0,"[Load Features] Use empty features config"),{}}}),n=(0,E.deepMergeConfig)(E.TVXCONFIGdefault,t,e);E.useConfigStore.getState().setConfigStore(n),G.Debugger.console(0,"[Setup Config] Config setup complete")}))(e),G.Debugger.console(0,"[Init] TVX config is ready"),T.U.trigger("onReady"),G.Debugger.console(0,"[Init] Preload available matches");try{let e=yield(t=void 0,n=function*(){G.Debugger.console(0,"[Load Available Matches] Starting to load available matches");const e=(0,E.TVXCONFIG)(),t=e.takerId,n="live"!==e.appMode?e.matchDayReplay:"",[r,a]=yield Promise.all([(0,X.GK)(t,n).catch(e=>(G.Debugger.console(2,`[Load Available Matches] Error fetching sync data: ${e}`),[])),(0,X.FG)(t,n).catch(e=>(G.Debugger.console(2,`[Load Available Matches] Error fetching config data: ${e}`),[]))]);if(!r||0===r.length)throw G.Debugger.console(2,`[Load Available Matches] No matches available - takerId: ${t} | matchDay: ${n}`),new Error("No matches are available");const o=new Map(a.map(e=>[e.match_id,e])),i=[],s=new Date;if(r.forEach(t=>{const n=o.get(t.match_id);if(!n)return void G.Debugger.console(1,`[Load Available Matches] Missing config data for matchId: ${t.match_id}`);const r=new Date(n.planned_kickoff),a=(0,q.ZE)(r,s);t.sync_points.length>0&&n.is_allowed?(a>e.matchAvailableBeforeKickOff&&a<e.matchAvailableAfterKickOff&&("live"===e.appMode||"liveplusmd"===e.appMode)&&i.push({matchId:t.match_id,customMetadata:t.meta,streamUrl:t.sync_points[0].stream_url,syncPointTimeCode:parseInt(t.sync_points[0].time_code)}),"live"!==e.appMode&&i.push({matchId:t.match_id,customMetadata:t.meta,streamUrl:t.sync_points[0].stream_url,syncPointTimeCode:parseInt(t.sync_points[0].time_code)})):G.Debugger.console(1,`[Load Available Matches] Missing stream_url for matchId: ${t.match_id}`)}),0===i.length)throw G.Debugger.console(2,`[Load Available Matches] No matches found - takerId: ${t} | matchDay: ${n}`),new Error("No matches are available");i.sort((e,t)=>e.syncPointTimeCode-t.syncPointTimeCode);const l=i.map(e=>({matchId:e.matchId,customMetadata:e.customMetadata,streamUrl:e.streamUrl}));return G.Debugger.console(0,`[Load Available Matches] Matches available: ${l.length}`),l},new(t||(t=Promise))(function(e,r){function a(e){try{i(n.next(e))}catch(e){r(e)}}function o(e){try{i(n.throw(e))}catch(e){r(e)}}function i(n){var r;n.done?e(n.value):(r=n.value,r instanceof t?r:new t(function(e){e(r)})).then(a,o)}i((n=n.apply(void 0,[])).next())}));e=e.filter(e=>e.matchId===this.programId),T.U.trigger("onMatchesAvailable",e)}catch(e){throw G.Debugger.console(2,`[Init] Failed to load available matches: ${e}`),T.U.trigger("error",{code:"401",name:"noMatchesAvailable",errorMessage:"No matches are available",customMessage:"No matches are available"}),e}var t,n;G.Debugger.console(0,"[Init] Initialize localization"),yield(0,Y.S)((0,E.TVXCONFIG)().languageUIDefault,!0);const r=(0,E.TVXCONFIG)().spatialNavigation;r.enabled&&(G.Debugger.console(0,"[Init] Initialize spatial navigation"),this.spatialNavigation.init({debug:r.debug,throttle:r.throttle})),G.Debugger.console(0,"[Init] Configure network services"),yield(async()=>{let{initialized:e,initNetwork:t}=$.getState();if(e)return;let n=(0,E.TVXCONFIG)().takerId,r="live"!==(0,E.TVXCONFIG)().appMode?(0,E.TVXCONFIG)().matchDayReplay:"";G.Debugger.console(0,"[Config] App mode: "+(0,E.TVXCONFIG)().appMode),G.Debugger.console(0,"[Config] takerId: "+n+" | matchDayReplay: "+r);let a=await(0,X.FG)(n,r),o=await(0,X.xX)(),{updateAllMatches:i,updateMainMatch:s}=B.getState(),{setCompetitions:l}=N.getState(),{setClubs:c}=j.getState(),{setAlertConfigs:u}=O.getState();if(a&&a[0]&&o.length>0){let e=[];a.map(t=>{e.push(he(t.away_team),he(t.home_team))}),c(e);let d=await(0,X.GK)(n,r),p=await(async(e,t)=>e.map(e=>{if(e.is_allowed){try{let n=t.filter(t=>t.match_id===e.match_id);if(e.customMetadata=n[0].meta,n[0].sync_points.length>0){let t=n[0].sync_points[0];e.stream_url=t.stream_url,e.sync_id=t.id,e.sync_timecode=t.time_code}}catch(e){console.error("Error occurred while merging match data in mergeStreamSyncWithConfigData()",e)}return e}}))(a,d),f=await(async(e,t)=>e.filter(e=>void 0!==e).map(e=>{let n=t.filter(t=>t.competition_id===e.competition_id)[0];return e.competition_name=n.competition_name,e.competition_logo=n.logo_url,e}))(p,o),h=await(async e=>e.map(e=>
157({matchId:e.match_id,homeClub:{id:e.home_team.team_id,threeLetterCode:e.home_team.three_letter_code,shortName:e.home_team.short_name,longName:e.home_team.long_name,clubName:e.home_team.club_name,logo:e.home_team.logo_url?e.home_team.logo_url.replace(".png",".svg"):e.home_team.logo_url,shirtMainColor:e.home_team.team_main_color,shirtSecondaryColor:e.home_team.team_secondary_color},guestClub:{id:e.away_team.team_id,threeLetterCode:e.away_team.three_letter_code,shortName:e.away_team.short_name,longName:e.away_team.long_name,clubName:e.away_team.club_name,logo:e.away_team.logo_url?e.away_team.logo_url.replace(".png",".svg"):e.away_team.logo_url,shirtMainColor:e.away_team.team_main_color,shirtSecondaryColor:e.away_team.team_secondary_color},plannedKickOffTime:new Date(e.planned_kickoff),competitionId:e.competition_id,competitionType:e.competition_type,competitionLogo:e.competition_logo,competitionName:e.competition_name,streamUrl:e.stream_url?e.stream_url:"",isAllowed:e.is_allowed,customMetadata:e.customMetadata,syncPointId:parseInt(e.sync_id),syncPointTimeCode:parseInt(e.sync_timecode),goalsHome:0,goalsAway:0,hasMatchInformation:!1,events:[],matchStatus:"UPCOMING",liveMatchStatus:"PRE_MATCH",dateQuality:"NORMAL",matchTimesDelta:ve(parseInt(e.sync_timecode))})))(f),g=h.map(e=>({matchId:e.matchId,compId:e.competitionId,active:!1,preset:"PRESET_1",goals:(0,E.TVXCONFIG)().alertPreset1.goals,var:(0,E.TVXCONFIG)().alertPreset1.var,penalties:(0,E.TVXCONFIG)().alertPreset1.penalties,bigChance:(0,E.TVXCONFIG)().alertPreset1.bigChance,totalShots:(0,E.TVXCONFIG)().alertPreset1.totalShots,shotOnGoal:(0,E.TVXCONFIG)().alertPreset1.shotOnGoal,dismissals:(0,E.TVXCONFIG)().alertPreset1.dismissals})),m=J.mainMatchId?J.mainMatchId:fe(h)?.matchId;if(!m)throw G.Debugger.console(2,"[Config] No main match id found"),new Error("No main match id found");return G.Debugger.console(0,"[Config] Current main match id: "+m),J.mainMatchId&&G.Debugger.console(0,"[Config] Prepared match detected: "+m),(0,E.TVXCONFIG)().singleMatchMode&&G.Debugger.console(0,"[Config] Parameter singleMatchMode detected. Single match: "+fe(h)?.matchId),i(h),s(m),u(g),l((0,X.is)(o)),t(),m&&("live"===(0,E.TVXCONFIG)().appMode||"liveplusmd"===(0,E.TVXCONFIG)().appMode)&&(e=>{let{updateMinutes:t,updateInterval:n}=(0,E.TVXCONFIG)().syncTimeUpdater,r=B.getState().matches.find(t=>t.matchId===e);if(!r)return void G.Debugger.console(2,`[Sync] Match with ID ${e} not found`);let a=B.getState().updateSyncPoint,o=r.plannedKickOffTime;ce=setInterval(async function(){try{let e=await(0,X.GK)((0,E.TVXCONFIG)().takerId,"live"!==(0,E.TVXCONFIG)().appMode?(0,E.TVXCONFIG)().matchDayReplay:"");if(!(((new Date).getTime()-o.getTime())/1e3/60<t))return void(ce&&(clearInterval(ce),ce=null));G.Debugger.console(0,"[Sync] Updating syncPointTime(s)"),e.forEach(e=>{a({syncPoint:parseInt(e.sync_points[0].time_code),matchId:e.match_id})})}catch(e){G.Debugger.console(2,`[Sync] Error updating syncPointTime(s): ${e}`)}},n)})(m),m}})(),me(this.programId,"NETWORKCONTROLLER")},new((t=void 0)||(t=Promise))(function(r,a){function o(e){try{s(n.next(e))}catch(e){a(e)}}function i(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,i)}s((n=n.apply(e,[])).next())});var e,t,n}createRootElement(){const e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e.id="tvx-root",e}handleCloseOverlay(){this.options.handler.closeOverlay()}setContainer(e){if(this.options.environment.console.info("SDK setContainer"),this.container)return void G.Debugger.console(0,"[Init] Container is already set");this.container=e;const t=this.createRootElement();e.appendChild(t),this.root=t,T.U.setTvxRoot(t),this.init().then(()=>{G.Debugger.console(0,"[Init] Initializing TVX"),u.render((0,c.jsx)(pi,{rootElement:t,spatialNavigation:this.spatialNavigation,onCloseOverlay:this.handleCloseOverlay.bind(this)}),t),(0,E.TVXCONFIG)().spatialNavigation.enabled&&(0,E.TVXCONFIG)().spatialNavigation.useEventHandlers&&this.spatialNavigation.bindEventHandlers(t),T.U.trigger("onTvxAppMount"),this.options.handler.setXRayAvailable(!0),this.options.handler.setNavigationController(this),G.Debugger.console(0,"[Init] TVX initialized successfully")}).catch(e=>{G.Debugger.console(2,`[Init] Failed to initialize TVX: ${e}`),G.Debugger.console(0,"[Init] Unregistering and destroying services"),ye(),de(),this.spatialNavigation.destroy(),(0,Y.W)(),tt(),T.U.clearTvxRoot(),this.container&&this.root&&this.container.removeChild(this.root),this.container=null,this.root=null,this.options.handler.setXRayAvailable(!1),this.options.handler.setNavigationController(null),G.Debugger.console(0,"[Init] TVX disposed successfully")})}dispose(){var e,t;if(G.Debugger.console(0,"[Dispose] Starting to dispose TVX"),this.container){if(this.root){G.Debugger.console(0,"[Dispose] Unmounting React component");try{u.unmountComponentAtNode(this.root),this.container.removeChild(this.root)}catch(n){G.Debugger.console(2,`[Dispose] Failed to unmount React component: ${n}`),this.root.innerHTML="",null===(t=(e=this.root).remove)||void 0===t||t.call(e)}this.root=null}T.U.clearTvxRoot(),G.Debugger.console(0,"[Dispose] Stopping background services and tasks"),we.stopSync(),_e.stop(),Pe.stop(),Ee.stop(),pe(),ye(),de(),G.Debugger.console(0,"[Dispose] Destroying spatial navigation"),this.spatialNavigation.destroy(),G.Debugger.console(0,"[Dispose] Destroying localization"),(0,Y.W)(),G.Debugger.console(0,"[Dispose] Resetting app stores"),tt(),this.container=null,this.root=null,this.options.handler.setXRayAvailable(!1),this.options.handler.setNavigationController(null),G.Debugger.console(0,"[Dispose] TVX disposed successfully"),E.useConfigStore.getState().reset()}}setBreakpoint(e){this.options.environment.console.info("SDK setBreakpoint")}presentOverlay(){this.root&&(I.getState().setOverlay(C),(0,E.TVXCONFIG)().spatialNavigation.enabled&&(()=>new Promise((e,t)=>
157{const n=Date.now(),r=()=>{this.spatialNavigation.exists("menu-statistics-match-statistics")?e():Date.now()-n>2e3?t():requestAnimationFrame(r)};requestAnimationFrame(r)}))().then(()=>{this.spatialNavigation.focus("menu-statistics-match-statistics")}).catch(()=>{}),G.Debugger.console(0,"[PresentOverlay] Overlay presented"))}concealOverlay(){this.root&&(I.getState().setOverlay(_),G.Debugger.console(0,"[ConcealOverlay] Overlay concealed"))}updateUnixTime(e){this.options.environment.console.info("SDK updateUnixTime")}moveFocus(e){this.spatialNavigation.move(e),G.Debugger.console(0,`[MoveFocus] Focus moved to ${e}`)}enterPressed(){this.spatialNavigation.enter(),G.Debugger.console(0,"[EnterPressed] Enter pressed")}navigateBack(){return this.spatialNavigation.back(),G.Debugger.console(0,"[NavigateBack] Navigated back"),"menu-close"!==this.spatialNavigation.getFocusedKey()}}var hi=l.A}}])})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.