@streamlayer/react 1.23.2 → 1.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/app/masters.d.ts +0 -1
- package/lib/cjs/Question.js +1 -1
- package/lib/cjs/advertisement.js +203 -28
- package/lib/cjs/analytics.js +1 -1
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/bet-pack.js +1 -1
- package/lib/cjs/feature.js +1 -1
- package/lib/cjs/gamification-feature.js +1 -1
- package/lib/cjs/gamification-feature2.js +1 -1
- package/lib/cjs/hooks-n9ax4LRT.js +1 -0
- package/lib/cjs/index-ByUNFvMk.js +5 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index10.js +1 -1
- package/lib/cjs/index11.js +1 -3
- package/lib/cjs/index12.js +1 -1
- package/lib/cjs/index13.js +1 -3
- package/lib/cjs/index14.js +4 -1
- package/lib/cjs/index15.js +1 -1
- package/lib/cjs/index16.js +5 -3
- package/lib/cjs/index2.js +1 -1
- package/lib/cjs/index3.js +1 -1
- package/lib/cjs/index4.js +5 -3
- package/lib/cjs/index5.js +1 -1
- package/lib/cjs/index6.js +1 -1
- package/lib/cjs/index7.js +1 -1
- package/lib/cjs/index8.js +1 -1
- package/lib/cjs/index9.js +7 -1
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/masters2.js +8 -1
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/pause-ad.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/polymarket.js +14 -9
- package/lib/cjs/sl-types.js +1 -1
- package/lib/cjs/storage.js +1 -1
- package/lib/cjs/theme.js +1 -1
- package/lib/cjs/useStreamLayerApp.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +17 -3
- package/lib/cjs/utils.js +47 -1
- package/lib/classic/app/masters.d.ts +0 -1
- package/lib/classic/cjs/Question.js +1 -1
- package/lib/classic/cjs/advertisement.js +203 -28
- package/lib/classic/cjs/analytics.js +1 -1
- package/lib/classic/cjs/auth.js +1 -1
- package/lib/classic/cjs/bet-pack.js +5 -3
- package/lib/classic/cjs/feature.js +1 -1
- package/lib/classic/cjs/gamification-feature.js +1 -1
- package/lib/classic/cjs/hooks-n9ax4LRT.js +1 -0
- package/lib/classic/cjs/index-ByUNFvMk.js +5 -0
- package/lib/classic/cjs/index.js +1 -1
- package/lib/classic/cjs/index10.js +1 -1
- package/lib/classic/cjs/index11.js +1 -1
- package/lib/classic/cjs/index12.js +1 -1
- package/lib/classic/cjs/index13.js +4 -3
- package/lib/classic/cjs/index2.js +5 -3
- package/lib/classic/cjs/index3.js +1 -1
- package/lib/classic/cjs/index4.js +1 -1
- package/lib/classic/cjs/index5.js +1 -1
- package/lib/classic/cjs/index6.js +1 -1
- package/lib/classic/cjs/index7.js +7 -1
- package/lib/classic/cjs/index8.js +1 -1
- package/lib/classic/cjs/index9.js +1 -3
- package/lib/classic/cjs/insight.js +1 -1
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/notification2.js +1 -1
- package/lib/classic/cjs/pause-ad.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/polymarket.js +14 -9
- package/lib/classic/cjs/sl-types.js +1 -1
- package/lib/classic/cjs/useStreamLayerApp.js +1 -1
- package/lib/classic/cjs/useStreamLayerApp2.js +17 -3
- package/lib/classic/cjs/utils.js +47 -1
- package/lib/classic/es/Question.js +258 -275
- package/lib/classic/es/advertisement.js +22128 -38694
- package/lib/classic/es/analytics.js +55 -57
- package/lib/classic/es/auth.js +8 -14
- package/lib/classic/es/bet-pack.js +2413 -2455
- package/lib/classic/es/feature.js +46 -95
- package/lib/classic/es/gamification-feature.js +2 -2
- package/lib/classic/es/hooks-n9ax4LRT.js +97 -0
- package/lib/classic/es/index-ByUNFvMk.js +3775 -0
- package/lib/classic/es/index.js +13 -16
- package/lib/classic/es/index10.js +2587 -83
- package/lib/classic/es/index11.js +305 -3087
- package/lib/classic/es/index12.js +121 -124
- package/lib/classic/es/index13.js +559 -589
- package/lib/classic/es/index2.js +1755 -2114
- package/lib/classic/es/index3.js +13 -13
- package/lib/classic/es/index4.js +4 -283
- package/lib/classic/es/index5.js +5 -5
- package/lib/classic/es/index6.js +285 -10
- package/lib/classic/es/index7.js +179 -6
- package/lib/classic/es/index8.js +5 -10
- package/lib/classic/es/index9.js +8 -318
- package/lib/classic/es/insight.js +54 -61
- package/lib/classic/es/notification.js +5 -5
- package/lib/classic/es/notification2.js +730 -787
- package/lib/classic/es/pause-ad.js +168 -191
- package/lib/classic/es/points.js +47 -55
- package/lib/classic/es/polymarket.js +4058 -4289
- package/lib/classic/es/sl-types.js +128 -298
- package/lib/classic/es/useStreamLayerApp.js +2 -2
- package/lib/classic/es/useStreamLayerApp2.js +9090 -11121
- package/lib/classic/es/utils.js +28 -28
- package/lib/classic/index.d.ts +0 -1
- package/lib/classic/source.css +110 -0
- package/lib/dist/cjs/gamification-feature.js +1 -1
- package/lib/dist/cjs/index-ByUNFvMk.js +5 -0
- package/lib/dist/cjs/index.js +1 -1
- package/lib/dist/cjs/masters.js +69 -3
- package/lib/dist/es/gamification-feature.js +2 -2
- package/lib/dist/es/index-ByUNFvMk.js +3775 -0
- package/lib/dist/es/index.js +7 -10
- package/lib/dist/es/masters.js +16944 -19645
- package/lib/dist/index.d.ts +7 -17
- package/lib/dist/source.css +64 -0
- package/lib/es/Question.js +101 -105
- package/lib/es/advertisement.js +22128 -38694
- package/lib/es/analytics.js +55 -57
- package/lib/es/auth.js +8 -14
- package/lib/es/bet-pack.js +18 -29
- package/lib/es/feature.js +46 -95
- package/lib/es/gamification-feature.js +2 -2
- package/lib/es/gamification-feature2.js +2 -2
- package/lib/es/hooks-n9ax4LRT.js +97 -0
- package/lib/es/index-ByUNFvMk.js +3775 -0
- package/lib/es/index.js +13 -17
- package/lib/es/index10.js +8 -274
- package/lib/es/index11.js +172 -837
- package/lib/es/index12.js +2587 -183
- package/lib/es/index13.js +258 -314
- package/lib/es/index14.js +813 -81
- package/lib/es/index15.js +305 -3087
- package/lib/es/index16.js +803 -1005
- package/lib/es/index2.js +980 -1133
- package/lib/es/index3.js +4 -3
- package/lib/es/index4.js +2401 -2431
- package/lib/es/index5.js +13 -13
- package/lib/es/index6.js +5 -285
- package/lib/es/index7.js +7 -10
- package/lib/es/index8.js +283 -5
- package/lib/es/index9.js +180 -10
- package/lib/es/insight.js +54 -61
- package/lib/es/masters.js +5 -7
- package/lib/es/masters2.js +538 -708
- package/lib/es/notification.js +663 -719
- package/lib/es/pause-ad.js +168 -191
- package/lib/es/points.js +48 -56
- package/lib/es/polymarket.js +4058 -4289
- package/lib/es/sl-types.js +128 -317
- package/lib/es/storage.js +74 -75
- package/lib/es/theme.js +3 -190
- package/lib/es/useStreamLayerApp.js +2 -2
- package/lib/es/useStreamLayerApp2.js +9090 -11121
- package/lib/es/utils.js +28 -28
- package/lib/index.d.ts +0 -1
- package/lib/source.css +120 -0
- package/lib/style.css +1 -1
- package/package.json +23 -26
- package/lib/cjs/hooks-WfHlJH12.js +0 -1
- package/lib/cjs/index-eShKGO10.js +0 -1
- package/lib/cjs/style.css +0 -1
- package/lib/classic/cjs/hooks-WfHlJH12.js +0 -1
- package/lib/classic/cjs/index-eShKGO10.js +0 -1
- package/lib/classic/cjs/style.css +0 -1
- package/lib/classic/es/hooks-WfHlJH12.js +0 -98
- package/lib/classic/es/index-eShKGO10.js +0 -3757
- package/lib/classic/style.css +0 -1
- package/lib/dist/cjs/index-eShKGO10.js +0 -1
- package/lib/dist/es/index-eShKGO10.js +0 -3757
- package/lib/dist/style.css +0 -1
- package/lib/es/hooks-WfHlJH12.js +0 -98
- package/lib/es/index-eShKGO10.js +0 -3757
package/lib/cjs/index12.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("core-js/modules/es.symbol.js"),require("core-js/modules/es.symbol.description.js"),require("core-js/modules/es.symbol.iterator.js"),require("core-js/modules/es.symbol.to-primitive.js"),require("core-js/modules/es.array.find.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.array.map.js"),require("core-js/modules/es.date.to-primitive.js"),require("core-js/modules/es.number.constructor.js"),require("core-js/modules/es.object.define-property.js"),require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.regexp.constructor.js"),require("core-js/modules/es.regexp.exec.js"),require("core-js/modules/es.regexp.to-string.js"),require("core-js/modules/es.string.iterator.js"),require("core-js/modules/es.string.replace.js"),require("core-js/modules/es.string.split.js"),require("core-js/modules/web.dom-collections.iterator.js");function e(s){return(e="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})(s)}function s(s,r,t){return(r=function(s){var r=function(s,r){if("object"!=e(s)||!s)return s;var t=s[Symbol.toPrimitive];if(void 0!==t){var i=t.call(s,r||"default");if("object"!=e(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(s)}(s,"string");return"symbol"==e(r)?r:r+""}(r))in s?Object.defineProperty(s,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):s[r]=t,s}var r=require("./sl-types.js"),t=require("./useStreamLayerApp2.js"),i=require("react/jsx-runtime"),o=require("react"),n=require("./index13.js"),l=require("./index6.js"),a=s(s(s(s(s(s(s({},t.QuestionType.TWEET,{label:"Insight",iconName:"icon-insight"}),t.QuestionType.PROMOTION,{label:"Insight",iconName:"icon-insight"}),t.QuestionType.UNSET,void 0),t.QuestionType.FACTOID,{label:"Insight",iconName:"icon-insight"}),t.QuestionType.POLL,{label:"Poll",iconName:"icon-poll"}),t.QuestionType.TRIVIA,{label:"Trivia",iconName:"icon-trivia"}),t.QuestionType.PREDICTION,{label:"Prediction",iconName:"icon-prediction"}),u=s(s(s(s(s(s(s({},t.QuestionType.TWEET,"Learn more"),t.QuestionType.FACTOID,"Learn more"),t.QuestionType.POLL,"Answer"),t.QuestionType.TRIVIA,"Answer"),t.QuestionType.PREDICTION,"Answer"),t.QuestionType.PROMOTION,""),t.QuestionType.UNSET,""),c=r.styled_default("div")({name:"Container",class:"cjq447q",propsAsIs:!1}),d=r.styled_default("div")({name:"ImageContainer",class:"i14egogb",propsAsIs:!1}),m=r.styled_default("img")({name:"Image",class:"i2g9g4l",propsAsIs:!1}),p=r.styled_default(l.B1)({name:"TwitterIcon",class:"t1c454nm",propsAsIs:!0}),j=r.styled_default("div")({name:"Details",class:"d11nigc3",propsAsIs:!1}),y=r.styled_default("div")({name:"Name",class:"nrxa4k8",propsAsIs:!1}),f=r.styled_default("div")({name:"UserNameAndDate",class:"u1p051g3",propsAsIs:!1}),v=function(e){var s=e.image,r=e.name,t=e.userName,o=e.verified,n=e.createdTweet,a=n&&function(e){var s=new Date(e);if(!s)return"";var r=new Date,t=Math.floor(r.getTime()-s.getTime());return t<6e4?"".concat(Math.floor(t/1e3),"s"):t<36e5?"".concat(Math.floor(t/6e4),"m"):t<864e5?"".concat(Math.floor(t/36e5),"h"):s.getFullYear()===r.getFullYear()?"".concat(s.toLocaleDateString("en-US",{month:"short",day:"numeric"})):"".concat(s.toLocaleDateString("en-US",{month:"2-digit",day:"2-digit",year:"2-digit"}))}(n);return i.jsxs(c,{children:[s&&i.jsxs(d,{children:[i.jsx(m,{className:"SL_AccountImage",src:s}),i.jsx(p,{name:"twitter"})]}),i.jsxs(j,{children:[r&&i.jsxs(y,{className:"SL_TweetAccountName",children:[r," ",o&&i.jsx(l.B1,{name:"icon-twitter-verified"})]}),t&&i.jsxs(f,{className:"SL_TweetAccountUserName",children:["@",t," ",a&&"・ ".concat(a)]})]})]})},g=r.styled_default("div")({name:"Container",class:"c1kzqw87",propsAsIs:!1}),x=r.styled_default("div")({name:"Details",class:"d9r1hf9",propsAsIs:!1}),I=r.styled_default("div")({name:"Body",class:"bezygt5",propsAsIs:!1}),h=r.styled_default("div")({name:"ImagesContainer",class:"i1y8f7ym",propsAsIs:!1}),T=r.styled_default("div")({name:"ImagesBlock",class:"i18gwonx",propsAsIs:!1}),b=r.styled_default("img")({name:"Image",class:"i3g0xjd",propsAsIs:!1}),q=r.styled_default(b)({name:"ImageFullSize",class:"io8rt7p",propsAsIs:!0}),A=r.styled_default(b)({name:"ImageHalfSize",class:"i4hn3ox",propsAsIs:!0}),N=new RegExp("\\s?https?://t.co[^\\s]+(\\s+)?$"),S=function(e){return null==e?void 0:e.replace(N,"")},w=o.memo(function(e){var s,r,t,l,a,u=e.image,c=e.body,d=e.muted,m=e.account,p=e.accountVerified,j=e.tweet,y=e.isDetail,f=e.controlVideo,b=null==(r=null==(s=null==j?void 0:j.meta)?void 0:s.extendedEntities)?void 0:r.media,N=null==b?void 0:b.find(function(e){return"photo"===e.type}),w=o.useMemo(function(){var e,s,r,t;return null==(t=null==(r=null==(s=null==(e=null==b?void 0:b[0])?void 0:e.videoInfo)?void 0:s.variants)?void 0:r.findLast(function(e){return"video/mp4"===e.contentType}))?void 0:t.url},[b]);return i.jsxs(g,{children:[i.jsxs(x,{children:[i.jsx(v,{image:u,name:null==(t=null==j?void 0:j.meta)?void 0:t.accountName,userName:m,verified:p,createdTweet:null==j?void 0:j.date}),i.jsx(I,{children:S(c)}),!y&&N&&i.jsx(h,{children:i.jsx(q,{src:null==b?void 0:b[0].mediaUrlHttps})}),y&&N&&i.jsxs(i.Fragment,{children:[1===(null==b?void 0:b.length)&&i.jsx(h,{children:i.jsx(q,{src:b[0].mediaUrlHttps})}),2===(null==b?void 0:b.length)&&i.jsxs(h,{children:[i.jsx(A,{src:b[0].mediaUrlHttps}),i.jsx(A,{src:b[1].mediaUrlHttps})]}),3===(null==b?void 0:b.length)&&i.jsxs(h,{children:[i.jsx(A,{src:b[0].mediaUrlHttps}),i.jsxs(T,{children:[i.jsx(q,{src:b[1].mediaUrlHttps}),i.jsx(q,{src:b[2].mediaUrlHttps})]})]}),4===(null==b?void 0:b.length)&&i.jsxs(h,{children:[i.jsxs(T,{children:[i.jsx(q,{src:b[0].mediaUrlHttps}),i.jsx(q,{src:b[1].mediaUrlHttps})]}),i.jsxs(T,{children:[i.jsx(q,{src:b[2].mediaUrlHttps}),i.jsx(q,{src:b[3].mediaUrlHttps})]})]})]})]}),!N&&("video"===(null==(l=null==b?void 0:b[0])?void 0:l.type)||"animated_gif"===(null==(a=null==b?void 0:b[0])?void 0:a.type))&&w&&i.jsx(n.Et,{muted:d,source:w,poster:b[0].mediaUrlHttps,controlVideo:f})]})});exports.D=v,exports.D$1=S,exports.I=function(e){return e.split(/\s+/).map(function(e){return e[0]}).join("").toUpperCase()},exports.b=w,exports.e=a,exports.o=u,exports.s=function(e){return e?e.toLocaleString("en-US"):"0"};
|
|
1
|
+
"use strict";const wu=require("react");var me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Au(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Tu(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var e=r.default;if(typeof e=="function"){var t=function n(){var a=!1;try{a=this instanceof n}catch{}return a?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var a=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:function(){return r[n]}})}),t}var Ke={exports:{}},Ne,ra;function le(){if(ra)return Ne;ra=1;function r(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}return Ne=r,Ne}var Be,ta;function nu(){if(ta)return Be;ta=1;var r=typeof me=="object"&&me&&me.Object===Object&&me;return Be=r,Be}var je,na;function ie(){if(na)return je;na=1;var r=nu(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=r||e||Function("return this")();return je=t,je}var ke,aa;function xu(){if(aa)return ke;aa=1;var r=ie(),e=function(){return r.Date.now()};return ke=e,ke}var He,ia;function Ou(){if(ia)return He;ia=1;var r=/\s/;function e(t){for(var n=t.length;n--&&r.test(t.charAt(n)););return n}return He=e,He}var Ge,sa;function Su(){if(sa)return Ge;sa=1;var r=Ou(),e=/^\s+/;function t(n){return n&&n.slice(0,r(n)+1).replace(e,"")}return Ge=t,Ge}var Ue,ua;function Fe(){if(ua)return Ue;ua=1;var r=ie(),e=r.Symbol;return Ue=e,Ue}var ze,oa;function Ku(){if(oa)return ze;oa=1;var r=Fe(),e=Object.prototype,t=e.hasOwnProperty,n=e.toString,a=r?r.toStringTag:void 0;function i(s){var o=t.call(s,a),l=s[a];try{s[a]=void 0;var h=!0}catch{}var m=n.call(s);return h&&(o?s[a]=l:delete s[a]),m}return ze=i,ze}var We,ca;function Eu(){if(ca)return We;ca=1;var r=Object.prototype,e=r.toString;function t(n){return e.call(n)}return We=t,We}var $e,fa;function Re(){if(fa)return $e;fa=1;var r=Fe(),e=Ku(),t=Eu(),n="[object Null]",a="[object Undefined]",i=r?r.toStringTag:void 0;function s(o){return o==null?o===void 0?a:n:i&&i in Object(o)?e(o):t(o)}return $e=s,$e}var Ye,la;function he(){if(la)return Ye;la=1;function r(e){return e!=null&&typeof e=="object"}return Ye=r,Ye}var Je,da;function we(){if(da)return Je;da=1;var r=Re(),e=he(),t="[object Symbol]";function n(a){return typeof a=="symbol"||e(a)&&r(a)==t}return Je=n,Je}var Xe,ha;function Pu(){if(ha)return Xe;ha=1;var r=Su(),e=le(),t=we(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt;function l(h){if(typeof h=="number")return h;if(t(h))return n;if(e(h)){var m=typeof h.valueOf=="function"?h.valueOf():h;h=e(m)?m+"":m}if(typeof h!="string")return h===0?h:+h;h=r(h);var _=i.test(h);return _||s.test(h)?o(h.slice(2),_?2:8):a.test(h)?n:+h}return Xe=l,Xe}var Ze,va;function au(){if(va)return Ze;va=1;var r=le(),e=xu(),t=Pu(),n="Expected a function",a=Math.max,i=Math.min;function s(o,l,h){var m,_,S,E,L,K,b=0,d=!1,p=!1,q=!0;if(typeof o!="function")throw new TypeError(n);l=t(l)||0,r(h)&&(d=!!h.leading,p="maxWait"in h,S=p?a(t(h.maxWait)||0,l):S,q="trailing"in h?!!h.trailing:q);function g(A){var U=m,J=_;return m=_=void 0,b=A,E=o.apply(J,U),E}function P(A){return b=A,L=setTimeout(N,l),d?g(A):E}function x(A){var U=A-K,J=A-b,te=l-U;return p?i(te,S-J):te}function F(A){var U=A-K,J=A-b;return K===void 0||U>=l||U<0||p&&J>=S}function N(){var A=e();if(F(A))return R(A);L=setTimeout(N,x(A))}function R(A){return L=void 0,q&&m?g(A):(m=_=void 0,E)}function O(){L!==void 0&&clearTimeout(L),b=0,m=K=_=L=void 0}function M(){return L===void 0?E:R(e())}function H(){var A=e(),U=F(A);if(m=arguments,_=this,K=A,U){if(L===void 0)return P(K);if(p)return clearTimeout(L),L=setTimeout(N,l),g(K)}return L===void 0&&(L=setTimeout(N,l)),E}return H.cancel=O,H.flush=M,H}return Ze=s,Ze}var Qe,pa;function iu(){if(pa)return Qe;pa=1;var r=Re(),e=le(),t="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function s(o){if(!e(o))return!1;var l=r(o);return l==n||l==a||l==t||l==i}return Qe=s,Qe}var Ve,ya;function Mu(){if(ya)return Ve;ya=1;var r=ie(),e=r["__core-js_shared__"];return Ve=e,Ve}var er,ga;function Iu(){if(ga)return er;ga=1;var r=Mu(),e=(function(){var n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function t(n){return!!e&&e in n}return er=t,er}var rr,_a;function su(){if(_a)return rr;_a=1;var r=Function.prototype,e=r.toString;function t(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}return rr=t,rr}var tr,ba;function Du(){if(ba)return tr;ba=1;var r=iu(),e=Iu(),t=le(),n=su(),a=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,s=Function.prototype,o=Object.prototype,l=s.toString,h=o.hasOwnProperty,m=RegExp("^"+l.call(h).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _(S){if(!t(S)||e(S))return!1;var E=r(S)?m:i;return E.test(n(S))}return tr=_,tr}var nr,ma;function Lu(){if(ma)return nr;ma=1;function r(e,t){return e?.[t]}return nr=r,nr}var ar,qa;function de(){if(qa)return ar;qa=1;var r=Du(),e=Lu();function t(n,a){var i=e(n,a);return r(i)?i:void 0}return ar=t,ar}var ir,Ca;function Ee(){if(Ca)return ir;Ca=1;var r=de(),e=r(Object,"create");return ir=e,ir}var sr,Fa;function Nu(){if(Fa)return sr;Fa=1;var r=Ee();function e(){this.__data__=r?r(null):{},this.size=0}return sr=e,sr}var ur,Ra;function Bu(){if(Ra)return ur;Ra=1;function r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}return ur=r,ur}var or,wa;function ju(){if(wa)return or;wa=1;var r=Ee(),e="__lodash_hash_undefined__",t=Object.prototype,n=t.hasOwnProperty;function a(i){var s=this.__data__;if(r){var o=s[i];return o===e?void 0:o}return n.call(s,i)?s[i]:void 0}return or=a,or}var cr,Aa;function ku(){if(Aa)return cr;Aa=1;var r=Ee(),e=Object.prototype,t=e.hasOwnProperty;function n(a){var i=this.__data__;return r?i[a]!==void 0:t.call(i,a)}return cr=n,cr}var fr,Ta;function Hu(){if(Ta)return fr;Ta=1;var r=Ee(),e="__lodash_hash_undefined__";function t(n,a){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=r&&a===void 0?e:a,this}return fr=t,fr}var lr,xa;function Gu(){if(xa)return lr;xa=1;var r=Nu(),e=Bu(),t=ju(),n=ku(),a=Hu();function i(s){var o=-1,l=s==null?0:s.length;for(this.clear();++o<l;){var h=s[o];this.set(h[0],h[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,lr=i,lr}var dr,Oa;function Uu(){if(Oa)return dr;Oa=1;function r(){this.__data__=[],this.size=0}return dr=r,dr}var hr,Sa;function Nn(){if(Sa)return hr;Sa=1;function r(e,t){return e===t||e!==e&&t!==t}return hr=r,hr}var vr,Ka;function Pe(){if(Ka)return vr;Ka=1;var r=Nn();function e(t,n){for(var a=t.length;a--;)if(r(t[a][0],n))return a;return-1}return vr=e,vr}var pr,Ea;function zu(){if(Ea)return pr;Ea=1;var r=Pe(),e=Array.prototype,t=e.splice;function n(a){var i=this.__data__,s=r(i,a);if(s<0)return!1;var o=i.length-1;return s==o?i.pop():t.call(i,s,1),--this.size,!0}return pr=n,pr}var yr,Pa;function Wu(){if(Pa)return yr;Pa=1;var r=Pe();function e(t){var n=this.__data__,a=r(n,t);return a<0?void 0:n[a][1]}return yr=e,yr}var gr,Ma;function $u(){if(Ma)return gr;Ma=1;var r=Pe();function e(t){return r(this.__data__,t)>-1}return gr=e,gr}var _r,Ia;function Yu(){if(Ia)return _r;Ia=1;var r=Pe();function e(t,n){var a=this.__data__,i=r(a,t);return i<0?(++this.size,a.push([t,n])):a[i][1]=n,this}return _r=e,_r}var br,Da;function Me(){if(Da)return br;Da=1;var r=Uu(),e=zu(),t=Wu(),n=$u(),a=Yu();function i(s){var o=-1,l=s==null?0:s.length;for(this.clear();++o<l;){var h=s[o];this.set(h[0],h[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,br=i,br}var mr,La;function Bn(){if(La)return mr;La=1;var r=de(),e=ie(),t=r(e,"Map");return mr=t,mr}var qr,Na;function Ju(){if(Na)return qr;Na=1;var r=Gu(),e=Me(),t=Bn();function n(){this.size=0,this.__data__={hash:new r,map:new(t||e),string:new r}}return qr=n,qr}var Cr,Ba;function Xu(){if(Ba)return Cr;Ba=1;function r(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}return Cr=r,Cr}var Fr,ja;function Ie(){if(ja)return Fr;ja=1;var r=Xu();function e(t,n){var a=t.__data__;return r(n)?a[typeof n=="string"?"string":"hash"]:a.map}return Fr=e,Fr}var Rr,ka;function Zu(){if(ka)return Rr;ka=1;var r=Ie();function e(t){var n=r(this,t).delete(t);return this.size-=n?1:0,n}return Rr=e,Rr}var wr,Ha;function Qu(){if(Ha)return wr;Ha=1;var r=Ie();function e(t){return r(this,t).get(t)}return wr=e,wr}var Ar,Ga;function Vu(){if(Ga)return Ar;Ga=1;var r=Ie();function e(t){return r(this,t).has(t)}return Ar=e,Ar}var Tr,Ua;function eo(){if(Ua)return Tr;Ua=1;var r=Ie();function e(t,n){var a=r(this,t),i=a.size;return a.set(t,n),this.size+=a.size==i?0:1,this}return Tr=e,Tr}var xr,za;function jn(){if(za)return xr;za=1;var r=Ju(),e=Zu(),t=Qu(),n=Vu(),a=eo();function i(s){var o=-1,l=s==null?0:s.length;for(this.clear();++o<l;){var h=s[o];this.set(h[0],h[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,xr=i,xr}var Or,Wa;function ro(){if(Wa)return Or;Wa=1;var r="__lodash_hash_undefined__";function e(t){return this.__data__.set(t,r),this}return Or=e,Or}var Sr,$a;function to(){if($a)return Sr;$a=1;function r(e){return this.__data__.has(e)}return Sr=r,Sr}var Kr,Ya;function uu(){if(Ya)return Kr;Ya=1;var r=jn(),e=ro(),t=to();function n(a){var i=-1,s=a==null?0:a.length;for(this.__data__=new r;++i<s;)this.add(a[i])}return n.prototype.add=n.prototype.push=e,n.prototype.has=t,Kr=n,Kr}var Er,Ja;function no(){if(Ja)return Er;Ja=1;function r(e,t,n,a){for(var i=e.length,s=n+(a?1:-1);a?s--:++s<i;)if(t(e[s],s,e))return s;return-1}return Er=r,Er}var Pr,Xa;function ao(){if(Xa)return Pr;Xa=1;function r(e){return e!==e}return Pr=r,Pr}var Mr,Za;function io(){if(Za)return Mr;Za=1;function r(e,t,n){for(var a=n-1,i=e.length;++a<i;)if(e[a]===t)return a;return-1}return Mr=r,Mr}var Ir,Qa;function so(){if(Qa)return Ir;Qa=1;var r=no(),e=ao(),t=io();function n(a,i,s){return i===i?t(a,i,s):r(a,e,s)}return Ir=n,Ir}var Dr,Va;function uo(){if(Va)return Dr;Va=1;var r=so();function e(t,n){var a=t==null?0:t.length;return!!a&&r(t,n,0)>-1}return Dr=e,Dr}var Lr,ei;function oo(){if(ei)return Lr;ei=1;function r(e,t,n){for(var a=-1,i=e==null?0:e.length;++a<i;)if(n(t,e[a]))return!0;return!1}return Lr=r,Lr}var Nr,ri;function kn(){if(ri)return Nr;ri=1;function r(e,t){for(var n=-1,a=e==null?0:e.length,i=Array(a);++n<a;)i[n]=t(e[n],n,e);return i}return Nr=r,Nr}var Br,ti;function Hn(){if(ti)return Br;ti=1;function r(e){return function(t){return e(t)}}return Br=r,Br}var jr,ni;function ou(){if(ni)return jr;ni=1;function r(e,t){return e.has(t)}return jr=r,jr}var kr,ai;function co(){if(ai)return kr;ai=1;var r=uu(),e=uo(),t=oo(),n=kn(),a=Hn(),i=ou(),s=200;function o(l,h,m,_){var S=-1,E=e,L=!0,K=l.length,b=[],d=h.length;if(!K)return b;m&&(h=n(h,a(m))),_?(E=t,L=!1):h.length>=s&&(E=i,L=!1,h=new r(h));e:for(;++S<K;){var p=l[S],q=m==null?p:m(p);if(p=_||p!==0?p:0,L&&q===q){for(var g=d;g--;)if(h[g]===q)continue e;b.push(p)}else E(h,q,_)||b.push(p)}return b}return kr=o,kr}var Hr,ii;function cu(){if(ii)return Hr;ii=1;function r(e,t){for(var n=-1,a=t.length,i=e.length;++n<a;)e[i+n]=t[n];return e}return Hr=r,Hr}var Gr,si;function fo(){if(si)return Gr;si=1;var r=Re(),e=he(),t="[object Arguments]";function n(a){return e(a)&&r(a)==t}return Gr=n,Gr}var Ur,ui;function Gn(){if(ui)return Ur;ui=1;var r=fo(),e=he(),t=Object.prototype,n=t.hasOwnProperty,a=t.propertyIsEnumerable,i=r((function(){return arguments})())?r:function(s){return e(s)&&n.call(s,"callee")&&!a.call(s,"callee")};return Ur=i,Ur}var zr,oi;function re(){if(oi)return zr;oi=1;var r=Array.isArray;return zr=r,zr}var Wr,ci;function lo(){if(ci)return Wr;ci=1;var r=Fe(),e=Gn(),t=re(),n=r?r.isConcatSpreadable:void 0;function a(i){return t(i)||e(i)||!!(n&&i&&i[n])}return Wr=a,Wr}var $r,fi;function fu(){if(fi)return $r;fi=1;var r=cu(),e=lo();function t(n,a,i,s,o){var l=-1,h=n.length;for(i||(i=e),o||(o=[]);++l<h;){var m=n[l];a>0&&i(m)?a>1?t(m,a-1,i,s,o):r(o,m):s||(o[o.length]=m)}return o}return $r=t,$r}var Yr,li;function Ae(){if(li)return Yr;li=1;function r(e){return e}return Yr=r,Yr}var Jr,di;function ho(){if(di)return Jr;di=1;function r(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)}return Jr=r,Jr}var Xr,hi;function vo(){if(hi)return Xr;hi=1;var r=ho(),e=Math.max;function t(n,a,i){return a=e(a===void 0?n.length-1:a,0),function(){for(var s=arguments,o=-1,l=e(s.length-a,0),h=Array(l);++o<l;)h[o]=s[a+o];o=-1;for(var m=Array(a+1);++o<a;)m[o]=s[o];return m[a]=i(h),r(n,this,m)}}return Xr=t,Xr}var Zr,vi;function po(){if(vi)return Zr;vi=1;function r(e){return function(){return e}}return Zr=r,Zr}var Qr,pi;function yo(){if(pi)return Qr;pi=1;var r=de(),e=(function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch{}})();return Qr=e,Qr}var Vr,yi;function go(){if(yi)return Vr;yi=1;var r=po(),e=yo(),t=Ae(),n=e?function(a,i){return e(a,"toString",{configurable:!0,enumerable:!1,value:r(i),writable:!0})}:t;return Vr=n,Vr}var et,gi;function _o(){if(gi)return et;gi=1;var r=800,e=16,t=Date.now;function n(a){var i=0,s=0;return function(){var o=t(),l=e-(o-s);if(s=o,l>0){if(++i>=r)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return et=n,et}var rt,_i;function bo(){if(_i)return rt;_i=1;var r=go(),e=_o(),t=e(r);return rt=t,rt}var tt,bi;function lu(){if(bi)return tt;bi=1;var r=Ae(),e=vo(),t=bo();function n(a,i){return t(e(a,i,r),a+"")}return tt=n,tt}var nt,mi;function Un(){if(mi)return nt;mi=1;var r=9007199254740991;function e(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=r}return nt=e,nt}var at,qi;function Te(){if(qi)return at;qi=1;var r=iu(),e=Un();function t(n){return n!=null&&e(n.length)&&!r(n)}return at=t,at}var it,Ci;function mo(){if(Ci)return it;Ci=1;var r=Te(),e=he();function t(n){return e(n)&&r(n)}return it=t,it}var st,Fi;function qo(){if(Fi)return st;Fi=1;var r=co(),e=fu(),t=lu(),n=mo(),a=t(function(i,s){return n(i)?r(i,e(s,1,n,!0)):[]});return st=a,st}var ut,Ri;function du(){if(Ri)return ut;Ri=1;function r(e,t){for(var n=-1,a=e==null?0:e.length,i=0,s=[];++n<a;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s}return ut=r,ut}var ot,wi;function Co(){if(wi)return ot;wi=1;function r(e){return function(t,n,a){for(var i=-1,s=Object(t),o=a(t),l=o.length;l--;){var h=o[e?l:++i];if(n(s[h],h,s)===!1)break}return t}}return ot=r,ot}var ct,Ai;function Fo(){if(Ai)return ct;Ai=1;var r=Co(),e=r();return ct=e,ct}var ft,Ti;function Ro(){if(Ti)return ft;Ti=1;function r(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}return ft=r,ft}var qe={exports:{}},lt,xi;function wo(){if(xi)return lt;xi=1;function r(){return!1}return lt=r,lt}qe.exports;var Oi;function hu(){return Oi||(Oi=1,(function(r,e){var t=ie(),n=wo(),a=e&&!e.nodeType&&e,i=a&&!0&&r&&!r.nodeType&&r,s=i&&i.exports===a,o=s?t.Buffer:void 0,l=o?o.isBuffer:void 0,h=l||n;r.exports=h})(qe,qe.exports)),qe.exports}var dt,Si;function zn(){if(Si)return dt;Si=1;var r=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function t(n,a){var i=typeof n;return a=a??r,!!a&&(i=="number"||i!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<a}return dt=t,dt}var ht,Ki;function Ao(){if(Ki)return ht;Ki=1;var r=Re(),e=Un(),t=he(),n="[object Arguments]",a="[object Array]",i="[object Boolean]",s="[object Date]",o="[object Error]",l="[object Function]",h="[object Map]",m="[object Number]",_="[object Object]",S="[object RegExp]",E="[object Set]",L="[object String]",K="[object WeakMap]",b="[object ArrayBuffer]",d="[object DataView]",p="[object Float32Array]",q="[object Float64Array]",g="[object Int8Array]",P="[object Int16Array]",x="[object Int32Array]",F="[object Uint8Array]",N="[object Uint8ClampedArray]",R="[object Uint16Array]",O="[object Uint32Array]",M={};M[p]=M[q]=M[g]=M[P]=M[x]=M[F]=M[N]=M[R]=M[O]=!0,M[n]=M[a]=M[b]=M[i]=M[d]=M[s]=M[o]=M[l]=M[h]=M[m]=M[_]=M[S]=M[E]=M[L]=M[K]=!1;function H(A){return t(A)&&e(A.length)&&!!M[r(A)]}return ht=H,ht}var Ce={exports:{}};Ce.exports;var Ei;function To(){return Ei||(Ei=1,(function(r,e){var t=nu(),n=e&&!e.nodeType&&e,a=n&&!0&&r&&!r.nodeType&&r,i=a&&a.exports===n,s=i&&t.process,o=(function(){try{var l=a&&a.require&&a.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}})();r.exports=o})(Ce,Ce.exports)),Ce.exports}var vt,Pi;function vu(){if(Pi)return vt;Pi=1;var r=Ao(),e=Hn(),t=To(),n=t&&t.isTypedArray,a=n?e(n):r;return vt=a,vt}var pt,Mi;function xo(){if(Mi)return pt;Mi=1;var r=Ro(),e=Gn(),t=re(),n=hu(),a=zn(),i=vu(),s=Object.prototype,o=s.hasOwnProperty;function l(h,m){var _=t(h),S=!_&&e(h),E=!_&&!S&&n(h),L=!_&&!S&&!E&&i(h),K=_||S||E||L,b=K?r(h.length,String):[],d=b.length;for(var p in h)(m||o.call(h,p))&&!(K&&(p=="length"||E&&(p=="offset"||p=="parent")||L&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||a(p,d)))&&b.push(p);return b}return pt=l,pt}var yt,Ii;function Oo(){if(Ii)return yt;Ii=1;var r=Object.prototype;function e(t){var n=t&&t.constructor,a=typeof n=="function"&&n.prototype||r;return t===a}return yt=e,yt}var gt,Di;function So(){if(Di)return gt;Di=1;function r(e,t){return function(n){return e(t(n))}}return gt=r,gt}var _t,Li;function Ko(){if(Li)return _t;Li=1;var r=So(),e=r(Object.keys,Object);return _t=e,_t}var bt,Ni;function Eo(){if(Ni)return bt;Ni=1;var r=Oo(),e=Ko(),t=Object.prototype,n=t.hasOwnProperty;function a(i){if(!r(i))return e(i);var s=[];for(var o in Object(i))n.call(i,o)&&o!="constructor"&&s.push(o);return s}return bt=a,bt}var mt,Bi;function Wn(){if(Bi)return mt;Bi=1;var r=xo(),e=Eo(),t=Te();function n(a){return t(a)?r(a):e(a)}return mt=n,mt}var qt,ji;function $n(){if(ji)return qt;ji=1;var r=Fo(),e=Wn();function t(n,a){return n&&r(n,a,e)}return qt=t,qt}var Ct,ki;function Po(){if(ki)return Ct;ki=1;var r=Te();function e(t,n){return function(a,i){if(a==null)return a;if(!r(a))return t(a,i);for(var s=a.length,o=n?s:-1,l=Object(a);(n?o--:++o<s)&&i(l[o],o,l)!==!1;);return a}}return Ct=e,Ct}var Ft,Hi;function Yn(){if(Hi)return Ft;Hi=1;var r=$n(),e=Po(),t=e(r);return Ft=t,Ft}var Rt,Gi;function Mo(){if(Gi)return Rt;Gi=1;var r=Yn();function e(t,n){var a=[];return r(t,function(i,s,o){n(i,s,o)&&a.push(i)}),a}return Rt=e,Rt}var wt,Ui;function Io(){if(Ui)return wt;Ui=1;var r=Me();function e(){this.__data__=new r,this.size=0}return wt=e,wt}var At,zi;function Do(){if(zi)return At;zi=1;function r(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}return At=r,At}var Tt,Wi;function Lo(){if(Wi)return Tt;Wi=1;function r(e){return this.__data__.get(e)}return Tt=r,Tt}var xt,$i;function No(){if($i)return xt;$i=1;function r(e){return this.__data__.has(e)}return xt=r,xt}var Ot,Yi;function Bo(){if(Yi)return Ot;Yi=1;var r=Me(),e=Bn(),t=jn(),n=200;function a(i,s){var o=this.__data__;if(o instanceof r){var l=o.__data__;if(!e||l.length<n-1)return l.push([i,s]),this.size=++o.size,this;o=this.__data__=new t(l)}return o.set(i,s),this.size=o.size,this}return Ot=a,Ot}var St,Ji;function pu(){if(Ji)return St;Ji=1;var r=Me(),e=Io(),t=Do(),n=Lo(),a=No(),i=Bo();function s(o){var l=this.__data__=new r(o);this.size=l.size}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=a,s.prototype.set=i,St=s,St}var Kt,Xi;function jo(){if(Xi)return Kt;Xi=1;function r(e,t){for(var n=-1,a=e==null?0:e.length;++n<a;)if(t(e[n],n,e))return!0;return!1}return Kt=r,Kt}var Et,Zi;function yu(){if(Zi)return Et;Zi=1;var r=uu(),e=jo(),t=ou(),n=1,a=2;function i(s,o,l,h,m,_){var S=l&n,E=s.length,L=o.length;if(E!=L&&!(S&&L>E))return!1;var K=_.get(s),b=_.get(o);if(K&&b)return K==o&&b==s;var d=-1,p=!0,q=l&a?new r:void 0;for(_.set(s,o),_.set(o,s);++d<E;){var g=s[d],P=o[d];if(h)var x=S?h(P,g,d,o,s,_):h(g,P,d,s,o,_);if(x!==void 0){if(x)continue;p=!1;break}if(q){if(!e(o,function(F,N){if(!t(q,N)&&(g===F||m(g,F,l,h,_)))return q.push(N)})){p=!1;break}}else if(!(g===P||m(g,P,l,h,_))){p=!1;break}}return _.delete(s),_.delete(o),p}return Et=i,Et}var Pt,Qi;function ko(){if(Qi)return Pt;Qi=1;var r=ie(),e=r.Uint8Array;return Pt=e,Pt}var Mt,Vi;function Ho(){if(Vi)return Mt;Vi=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(a,i){n[++t]=[i,a]}),n}return Mt=r,Mt}var It,es;function Go(){if(es)return It;es=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(a){n[++t]=a}),n}return It=r,It}var Dt,rs;function Uo(){if(rs)return Dt;rs=1;var r=Fe(),e=ko(),t=Nn(),n=yu(),a=Ho(),i=Go(),s=1,o=2,l="[object Boolean]",h="[object Date]",m="[object Error]",_="[object Map]",S="[object Number]",E="[object RegExp]",L="[object Set]",K="[object String]",b="[object Symbol]",d="[object ArrayBuffer]",p="[object DataView]",q=r?r.prototype:void 0,g=q?q.valueOf:void 0;function P(x,F,N,R,O,M,H){switch(N){case p:if(x.byteLength!=F.byteLength||x.byteOffset!=F.byteOffset)return!1;x=x.buffer,F=F.buffer;case d:return!(x.byteLength!=F.byteLength||!M(new e(x),new e(F)));case l:case h:case S:return t(+x,+F);case m:return x.name==F.name&&x.message==F.message;case E:case K:return x==F+"";case _:var A=a;case L:var U=R&s;if(A||(A=i),x.size!=F.size&&!U)return!1;var J=H.get(x);if(J)return J==F;R|=o,H.set(x,F);var te=n(A(x),A(F),R,O,M,H);return H.delete(x),te;case b:if(g)return g.call(x)==g.call(F)}return!1}return Dt=P,Dt}var Lt,ts;function zo(){if(ts)return Lt;ts=1;var r=cu(),e=re();function t(n,a,i){var s=a(n);return e(n)?s:r(s,i(n))}return Lt=t,Lt}var Nt,ns;function Wo(){if(ns)return Nt;ns=1;function r(){return[]}return Nt=r,Nt}var Bt,as;function $o(){if(as)return Bt;as=1;var r=du(),e=Wo(),t=Object.prototype,n=t.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(s){return s==null?[]:(s=Object(s),r(a(s),function(o){return n.call(s,o)}))}:e;return Bt=i,Bt}var jt,is;function Yo(){if(is)return jt;is=1;var r=zo(),e=$o(),t=Wn();function n(a){return r(a,t,e)}return jt=n,jt}var kt,ss;function Jo(){if(ss)return kt;ss=1;var r=Yo(),e=1,t=Object.prototype,n=t.hasOwnProperty;function a(i,s,o,l,h,m){var _=o&e,S=r(i),E=S.length,L=r(s),K=L.length;if(E!=K&&!_)return!1;for(var b=E;b--;){var d=S[b];if(!(_?d in s:n.call(s,d)))return!1}var p=m.get(i),q=m.get(s);if(p&&q)return p==s&&q==i;var g=!0;m.set(i,s),m.set(s,i);for(var P=_;++b<E;){d=S[b];var x=i[d],F=s[d];if(l)var N=_?l(F,x,d,s,i,m):l(x,F,d,i,s,m);if(!(N===void 0?x===F||h(x,F,o,l,m):N)){g=!1;break}P||(P=d=="constructor")}if(g&&!P){var R=i.constructor,O=s.constructor;R!=O&&"constructor"in i&&"constructor"in s&&!(typeof R=="function"&&R instanceof R&&typeof O=="function"&&O instanceof O)&&(g=!1)}return m.delete(i),m.delete(s),g}return kt=a,kt}var Ht,us;function Xo(){if(us)return Ht;us=1;var r=de(),e=ie(),t=r(e,"DataView");return Ht=t,Ht}var Gt,os;function Zo(){if(os)return Gt;os=1;var r=de(),e=ie(),t=r(e,"Promise");return Gt=t,Gt}var Ut,cs;function Qo(){if(cs)return Ut;cs=1;var r=de(),e=ie(),t=r(e,"Set");return Ut=t,Ut}var zt,fs;function Vo(){if(fs)return zt;fs=1;var r=de(),e=ie(),t=r(e,"WeakMap");return zt=t,zt}var Wt,ls;function ec(){if(ls)return Wt;ls=1;var r=Xo(),e=Bn(),t=Zo(),n=Qo(),a=Vo(),i=Re(),s=su(),o="[object Map]",l="[object Object]",h="[object Promise]",m="[object Set]",_="[object WeakMap]",S="[object DataView]",E=s(r),L=s(e),K=s(t),b=s(n),d=s(a),p=i;return(r&&p(new r(new ArrayBuffer(1)))!=S||e&&p(new e)!=o||t&&p(t.resolve())!=h||n&&p(new n)!=m||a&&p(new a)!=_)&&(p=function(q){var g=i(q),P=g==l?q.constructor:void 0,x=P?s(P):"";if(x)switch(x){case E:return S;case L:return o;case K:return h;case b:return m;case d:return _}return g}),Wt=p,Wt}var $t,ds;function rc(){if(ds)return $t;ds=1;var r=pu(),e=yu(),t=Uo(),n=Jo(),a=ec(),i=re(),s=hu(),o=vu(),l=1,h="[object Arguments]",m="[object Array]",_="[object Object]",S=Object.prototype,E=S.hasOwnProperty;function L(K,b,d,p,q,g){var P=i(K),x=i(b),F=P?m:a(K),N=x?m:a(b);F=F==h?_:F,N=N==h?_:N;var R=F==_,O=N==_,M=F==N;if(M&&s(K)){if(!s(b))return!1;P=!0,R=!1}if(M&&!R)return g||(g=new r),P||o(K)?e(K,b,d,p,q,g):t(K,b,F,d,p,q,g);if(!(d&l)){var H=R&&E.call(K,"__wrapped__"),A=O&&E.call(b,"__wrapped__");if(H||A){var U=H?K.value():K,J=A?b.value():b;return g||(g=new r),q(U,J,d,p,g)}}return M?(g||(g=new r),n(K,b,d,p,q,g)):!1}return $t=L,$t}var Yt,hs;function gu(){if(hs)return Yt;hs=1;var r=rc(),e=he();function t(n,a,i,s,o){return n===a?!0:n==null||a==null||!e(n)&&!e(a)?n!==n&&a!==a:r(n,a,i,s,t,o)}return Yt=t,Yt}var Jt,vs;function tc(){if(vs)return Jt;vs=1;var r=pu(),e=gu(),t=1,n=2;function a(i,s,o,l){var h=o.length,m=h,_=!l;if(i==null)return!m;for(i=Object(i);h--;){var S=o[h];if(_&&S[2]?S[1]!==i[S[0]]:!(S[0]in i))return!1}for(;++h<m;){S=o[h];var E=S[0],L=i[E],K=S[1];if(_&&S[2]){if(L===void 0&&!(E in i))return!1}else{var b=new r;if(l)var d=l(L,K,E,i,s,b);if(!(d===void 0?e(K,L,t|n,l,b):d))return!1}}return!0}return Jt=a,Jt}var Xt,ps;function _u(){if(ps)return Xt;ps=1;var r=le();function e(t){return t===t&&!r(t)}return Xt=e,Xt}var Zt,ys;function nc(){if(ys)return Zt;ys=1;var r=_u(),e=Wn();function t(n){for(var a=e(n),i=a.length;i--;){var s=a[i],o=n[s];a[i]=[s,o,r(o)]}return a}return Zt=t,Zt}var Qt,gs;function bu(){if(gs)return Qt;gs=1;function r(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}return Qt=r,Qt}var Vt,_s;function ac(){if(_s)return Vt;_s=1;var r=tc(),e=nc(),t=bu();function n(a){var i=e(a);return i.length==1&&i[0][2]?t(i[0][0],i[0][1]):function(s){return s===a||r(s,a,i)}}return Vt=n,Vt}var en,bs;function Jn(){if(bs)return en;bs=1;var r=re(),e=we(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(i,s){if(r(i))return!1;var o=typeof i;return o=="number"||o=="symbol"||o=="boolean"||i==null||e(i)?!0:n.test(i)||!t.test(i)||s!=null&&i in Object(s)}return en=a,en}var rn,ms;function ic(){if(ms)return rn;ms=1;var r=jn(),e="Expected a function";function t(n,a){if(typeof n!="function"||a!=null&&typeof a!="function")throw new TypeError(e);var i=function(){var s=arguments,o=a?a.apply(this,s):s[0],l=i.cache;if(l.has(o))return l.get(o);var h=n.apply(this,s);return i.cache=l.set(o,h)||l,h};return i.cache=new(t.Cache||r),i}return t.Cache=r,rn=t,rn}var tn,qs;function sc(){if(qs)return tn;qs=1;var r=ic(),e=500;function t(n){var a=r(n,function(s){return i.size===e&&i.clear(),s}),i=a.cache;return a}return tn=t,tn}var nn,Cs;function uc(){if(Cs)return nn;Cs=1;var r=sc(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t=/\\(\\)?/g,n=r(function(a){var i=[];return a.charCodeAt(0)===46&&i.push(""),a.replace(e,function(s,o,l,h){i.push(l?h.replace(t,"$1"):o||s)}),i});return nn=n,nn}var an,Fs;function oc(){if(Fs)return an;Fs=1;var r=Fe(),e=kn(),t=re(),n=we(),a=r?r.prototype:void 0,i=a?a.toString:void 0;function s(o){if(typeof o=="string")return o;if(t(o))return e(o,s)+"";if(n(o))return i?i.call(o):"";var l=o+"";return l=="0"&&1/o==-1/0?"-0":l}return an=s,an}var sn,Rs;function mu(){if(Rs)return sn;Rs=1;var r=oc();function e(t){return t==null?"":r(t)}return sn=e,sn}var un,ws;function qu(){if(ws)return un;ws=1;var r=re(),e=Jn(),t=uc(),n=mu();function a(i,s){return r(i)?i:e(i,s)?[i]:t(n(i))}return un=a,un}var on,As;function De(){if(As)return on;As=1;var r=we();function e(t){if(typeof t=="string"||r(t))return t;var n=t+"";return n=="0"&&1/t==-1/0?"-0":n}return on=e,on}var cn,Ts;function Xn(){if(Ts)return cn;Ts=1;var r=qu(),e=De();function t(n,a){a=r(a,n);for(var i=0,s=a.length;n!=null&&i<s;)n=n[e(a[i++])];return i&&i==s?n:void 0}return cn=t,cn}var fn,xs;function cc(){if(xs)return fn;xs=1;var r=Xn();function e(t,n,a){var i=t==null?void 0:r(t,n);return i===void 0?a:i}return fn=e,fn}var ln,Os;function fc(){if(Os)return ln;Os=1;function r(e,t){return e!=null&&t in Object(e)}return ln=r,ln}var dn,Ss;function lc(){if(Ss)return dn;Ss=1;var r=qu(),e=Gn(),t=re(),n=zn(),a=Un(),i=De();function s(o,l,h){l=r(l,o);for(var m=-1,_=l.length,S=!1;++m<_;){var E=i(l[m]);if(!(S=o!=null&&h(o,E)))break;o=o[E]}return S||++m!=_?S:(_=o==null?0:o.length,!!_&&a(_)&&n(E,_)&&(t(o)||e(o)))}return dn=s,dn}var hn,Ks;function dc(){if(Ks)return hn;Ks=1;var r=fc(),e=lc();function t(n,a){return n!=null&&e(n,a,r)}return hn=t,hn}var vn,Es;function hc(){if(Es)return vn;Es=1;var r=gu(),e=cc(),t=dc(),n=Jn(),a=_u(),i=bu(),s=De(),o=1,l=2;function h(m,_){return n(m)&&a(_)?i(s(m),_):function(S){var E=e(S,m);return E===void 0&&E===_?t(S,m):r(_,E,o|l)}}return vn=h,vn}var pn,Ps;function vc(){if(Ps)return pn;Ps=1;function r(e){return function(t){return t?.[e]}}return pn=r,pn}var yn,Ms;function pc(){if(Ms)return yn;Ms=1;var r=Xn();function e(t){return function(n){return r(n,t)}}return yn=e,yn}var gn,Is;function yc(){if(Is)return gn;Is=1;var r=vc(),e=pc(),t=Jn(),n=De();function a(i){return t(i)?r(n(i)):e(i)}return gn=a,gn}var _n,Ds;function Zn(){if(Ds)return _n;Ds=1;var r=ac(),e=hc(),t=Ae(),n=re(),a=yc();function i(s){return typeof s=="function"?s:s==null?t:typeof s=="object"?n(s)?e(s[0],s[1]):r(s):a(s)}return _n=i,_n}var bn,Ls;function gc(){if(Ls)return bn;Ls=1;var r=du(),e=Mo(),t=Zn(),n=re();function a(i,s){var o=n(i)?r:e;return o(i,t(s,3))}return bn=a,bn}var mn,Ns;function _c(){if(Ns)return mn;Ns=1;function r(e,t,n){var a;return n(e,function(i,s,o){if(t(i,s,o))return a=s,!1}),a}return mn=r,mn}var qn,Bs;function bc(){if(Bs)return qn;Bs=1;var r=_c(),e=$n(),t=Zn();function n(a,i){return r(a,t(i,3),e)}return qn=n,qn}var Cn,js;function mc(){if(js)return Cn;js=1;function r(e){return e&&e.length?e[0]:void 0}return Cn=r,Cn}var Fn,ks;function qc(){return ks||(ks=1,Fn=mc()),Fn}var Rn,Hs;function Cc(){if(Hs)return Rn;Hs=1;function r(e,t){for(var n=-1,a=e==null?0:e.length;++n<a&&t(e[n],n,e)!==!1;);return e}return Rn=r,Rn}var wn,Gs;function Cu(){if(Gs)return wn;Gs=1;var r=Ae();function e(t){return typeof t=="function"?t:r}return wn=e,wn}var An,Us;function Fc(){if(Us)return An;Us=1;var r=Cc(),e=Yn(),t=Cu(),n=re();function a(i,s){var o=n(i)?r:e;return o(i,t(s))}return An=a,An}var Tn,zs;function Rc(){if(zs)return Tn;zs=1;var r=$n(),e=Cu();function t(n,a){return n&&r(n,e(a))}return Tn=t,Tn}var xn,Ws;function wc(){if(Ws)return xn;Ws=1;function r(){}return xn=r,xn}var On,$s;function Ac(){if($s)return On;$s=1;var r=Yn(),e=Te();function t(n,a){var i=-1,s=e(n)?Array(n.length):[];return r(n,function(o,l,h){s[++i]=a(o,l,h)}),s}return On=t,On}var Sn,Ys;function Tc(){if(Ys)return Sn;Ys=1;function r(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}return Sn=r,Sn}var Kn,Js;function xc(){if(Js)return Kn;Js=1;var r=we();function e(t,n){if(t!==n){var a=t!==void 0,i=t===null,s=t===t,o=r(t),l=n!==void 0,h=n===null,m=n===n,_=r(n);if(!h&&!_&&!o&&t>n||o&&l&&m&&!h&&!_||i&&l&&m||!a&&m||!s)return 1;if(!i&&!o&&!_&&t<n||_&&a&&s&&!i&&!o||h&&a&&s||!l&&s||!m)return-1}return 0}return Kn=e,Kn}var En,Xs;function Oc(){if(Xs)return En;Xs=1;var r=xc();function e(t,n,a){for(var i=-1,s=t.criteria,o=n.criteria,l=s.length,h=a.length;++i<l;){var m=r(s[i],o[i]);if(m){if(i>=h)return m;var _=a[i];return m*(_=="desc"?-1:1)}}return t.index-n.index}return En=e,En}var Pn,Zs;function Sc(){if(Zs)return Pn;Zs=1;var r=kn(),e=Xn(),t=Zn(),n=Ac(),a=Tc(),i=Hn(),s=Oc(),o=Ae(),l=re();function h(m,_,S){_.length?_=r(_,function(K){return l(K)?function(b){return e(b,K.length===1?K[0]:K)}:K}):_=[o];var E=-1;_=r(_,i(t));var L=n(m,function(K,b,d){var p=r(_,function(q){return q(K)});return{criteria:p,index:++E,value:K}});return a(L,function(K,b){return s(K,b,S)})}return Pn=h,Pn}var Mn,Qs;function Kc(){if(Qs)return Mn;Qs=1;var r=Nn(),e=Te(),t=zn(),n=le();function a(i,s,o){if(!n(o))return!1;var l=typeof s;return(l=="number"?e(o)&&t(s,o.length):l=="string"&&s in o)?r(o[s],i):!1}return Mn=a,Mn}var In,Vs;function Ec(){if(Vs)return In;Vs=1;var r=fu(),e=Sc(),t=lu(),n=Kc(),a=t(function(i,s){if(i==null)return[];var o=s.length;return o>1&&n(i,s[0],s[1])?s=[]:o>2&&n(s[0],s[1],s[2])&&(s=[s[0]]),e(i,r(s,1),[])});return In=a,In}var Dn,eu;function Pc(){if(eu)return Dn;eu=1;var r=au(),e=le(),t="Expected a function";function n(a,i,s){var o=!0,l=!0;if(typeof a!="function")throw new TypeError(t);return e(s)&&(o="leading"in s?!!s.leading:o,l="trailing"in s?!!s.trailing:l),r(a,i,{leading:o,maxWait:i,trailing:l})}return Dn=n,Dn}var Ln,ru;function Mc(){if(ru)return Ln;ru=1;var r=mu(),e=0;function t(n){var a=++e;return r(n)+a}return Ln=t,Ln}var Ic=Ke.exports,tu;function Dc(){return tu||(tu=1,(function(r,e){(function(t,n){r.exports=n(au(),qo(),gc(),bc(),qc(),Fc(),Rc(),wc(),Ec(),Pc(),Mc(),wu)})(Ic,(function(t,n,a,i,s,o,l,h,m,_,S,E){return(function(){var L={654:function(b,d,p){var q,g=this&&this.__assign||function(){return g=Object.assign||function(y){for(var u,c=1,f=arguments.length;c<f;c++)for(var v in u=arguments[c])Object.prototype.hasOwnProperty.call(u,v)&&(y[v]=u[v]);return y},g.apply(this,arguments)},P=this&&this.__createBinding||(Object.create?function(y,u,c,f){f===void 0&&(f=c);var v=Object.getOwnPropertyDescriptor(u,c);v&&!("get"in v?!u.__esModule:v.writable||v.configurable)||(v={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(y,f,v)}:function(y,u,c,f){f===void 0&&(f=c),y[f]=u[c]}),x=this&&this.__setModuleDefault||(Object.create?function(y,u){Object.defineProperty(y,"default",{enumerable:!0,value:u})}:function(y,u){y.default=u}),F=this&&this.__importStar||function(y){if(y&&y.__esModule)return y;var u={};if(y!=null)for(var c in y)c!=="default"&&Object.prototype.hasOwnProperty.call(y,c)&&P(u,y,c);return x(u,y),u},N=this&&this.__spreadArray||function(y,u,c){if(c||arguments.length===2)for(var f,v=0,C=u.length;v<C;v++)!f&&v in u||(f||(f=Array.prototype.slice.call(u,0,v)),f[v]=u[v]);return y.concat(f||Array.prototype.slice.call(u))},R=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(d,"__esModule",{value:!0}),d.updateRtl=d.doesFocusableExist=d.getCurrentFocusKey=d.updateAllLayouts=d.resume=d.pause=d.navigateByDirection=d.setFocus=d.setKeyMap=d.destroy=d.setThrottle=d.init=d.SpatialNavigation=d.ROOT_FOCUS_KEY=void 0;var O=R(p(150)),M=R(p(117)),H=R(p(747)),A=R(p(23)),U=R(p(842)),J=R(p(682)),te=R(p(784)),ve=R(p(432)),Le=R(p(67)),xe=R(p(35)),Q=R(p(119)),pe=F(p(964)),ue="left",oe="right",ce="up",ne="down",ye="enter",ge=((q={}).left=[37,"ArrowLeft"],q.up=[38,"ArrowUp"],q.right=[39,"ArrowRight"],q.down=[40,"ArrowDown"],q.enter=[13,"Enter"],q);d.ROOT_FOCUS_KEY="SN:ROOT";var _e=["#0FF","#FF0","#F0F"],Oe={leading:!0,trailing:!1},Se=(function(){function y(){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=Q.default.LTR,this.pressedKeys={},this.paused=!1,this.keyDownEventListener=null,this.keyUpEventListener=null,this.keyMap=ge,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,O.default)(this.setFocus,300,{leading:!1,trailing:!0}),this.debug=!1,this.visualDebugger=null,this.logIndex=0,this.distanceCalculationMethod="corners"}return y.getCutoffCoordinate=function(u,c,f,v,C){var w=u?v.top:C===Q.default.LTR?v.left:v.right,T=u?v.bottom:C===Q.default.LTR?v.right:v.left;return c?f?w:T:f?T:w},y.getRefCorners=function(u,c,f){var v={a:{x:0,y:0},b:{x:0,y:0}};switch(u){case ce:var C=c?f.bottom:f.top;v.a={x:f.left,y:C},v.b={x:f.right,y:C};break;case ne:C=c?f.top:f.bottom,v.a={x:f.left,y:C},v.b={x:f.right,y:C};break;case ue:var w=c?f.right:f.left;v.a={x:w,y:f.top},v.b={x:w,y:f.bottom};break;case oe:w=c?f.left:f.right,v.a={x:w,y:f.top},v.b={x:w,y:f.bottom}}return v},y.isAdjacentSlice=function(u,c,f){var v=u.a,C=u.b,w=c.a,T=c.b,I=f?"x":"y",G=v[I],k=C[I],j=w[I],B=T[I],D=.2*(k-G);return Math.max(0,Math.min(k,B)-Math.max(G,j))>=D},y.getPrimaryAxisDistance=function(u,c,f){var v=u.a,C=c.a,w=f?"y":"x";return Math.abs(C[w]-v[w])},y.getSecondaryAxisDistance=function(u,c,f,v,C){if(C)return C(u,c,f,v);var w=u.a,T=u.b,I=c.a,G=c.b,k=f?"x":"y",j=w[k],B=T[k],D=I[k],Y=G[k];if(v==="center"){var W=(j+B)/2,X=(D+Y)/2;return Math.abs(W-X)}if(v==="edges"){var se=Math.min(j,B),z=Math.min(D,Y),V=Math.max(j,B),fe=Math.max(D,Y),ae=Math.abs(se-z),ee=Math.abs(V-fe);return Math.min(ae,ee)}var be=[Math.abs(D-j),Math.abs(D-B),Math.abs(Y-j),Math.abs(Y-B)];return Math.min.apply(Math,be)},y.prototype.sortSiblingsByPriority=function(u,c,f,v){var C=this,w=f===ne||f===ce,T=y.getRefCorners(f,!1,c);return(0,ve.default)(u,(function(I){var G=y.getRefCorners(f,!0,I.layout),k=y.isAdjacentSlice(T,G,w),j=k?y.getPrimaryAxisDistance:y.getSecondaryAxisDistance,B=k?y.getSecondaryAxisDistance:y.getPrimaryAxisDistance,D=j(T,G,w,C.distanceCalculationMethod,C.customDistanceCalculationFunction),Y=B(T,G,w,C.distanceCalculationMethod,C.customDistanceCalculationFunction),W=5*D+Y,X=(W+1)/(k?5:1);return C.log("smartNavigate","distance (primary, secondary, total weighted) for ".concat(I.focusKey," relative to ").concat(v," is"),D,Y,W),C.log("smartNavigate","priority for ".concat(I.focusKey," relative to ").concat(v," is"),X),C.visualDebugger&&(C.visualDebugger.drawPoint(G.a.x,G.a.y,"yellow",6),C.visualDebugger.drawPoint(G.b.x,G.b.y,"yellow",6)),X}))},y.prototype.init=function(u){var c=this,f=u===void 0?{}:u,v=f.debug,C=v!==void 0&&v,w=f.visualDebug,T=w!==void 0&&w,I=f.nativeMode,G=I!==void 0&&I,k=f.throttle,j=k===void 0?0:k,B=f.throttleKeypresses,D=B!==void 0&&B,Y=f.useGetBoundingClientRect,W=Y!==void 0&&Y,X=f.shouldFocusDOMNode,se=X!==void 0&&X,z=f.domNodeFocusOptions,V=z===void 0?{}:z,fe=f.shouldUseNativeEvents,ae=fe!==void 0&&fe,ee=f.rtl,be=ee!==void 0&&ee,$=f.distanceCalculationMethod,Z=$===void 0?"corners":$,Qn=f.customDistanceCalculationFunction,Fu=Qn===void 0?void 0:Qn;if(!this.enabled&&(this.domNodeFocusOptions=V,this.enabled=!0,this.nativeMode=G,this.throttleKeypresses=D,this.useGetBoundingClientRect=W,this.shouldFocusDOMNode=se&&!G,this.shouldUseNativeEvents=ae,this.writingDirection=be?Q.default.RTL:Q.default.LTR,this.distanceCalculationMethod=Z,this.customDistanceCalculationFunction=Fu,this.debug=C,!this.nativeMode&&(Number.isInteger(j)&&j>0&&(this.throttle=j),this.bindEventHandlers(),T))){this.visualDebugger=new xe.default(this.writingDirection);var Vn=function(){requestAnimationFrame((function(){c.visualDebugger.clearLayouts(),(0,te.default)(c.focusableComponents,(function(ea,Ru){c.visualDebugger.drawLayout(ea.layout,Ru,ea.parentFocusKey)})),Vn()}))};Vn()}},y.prototype.setThrottle=function(u){var c=u===void 0?{}:u,f=c.throttle,v=f===void 0?0:f,C=c.throttleKeypresses,w=C!==void 0&&C;this.throttleKeypresses=w,this.nativeMode||(this.unbindEventHandlers(),Number.isInteger(v)&&(this.throttle=v),this.bindEventHandlers())},y.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=ge,this.unbindEventHandlers())},y.prototype.getEventType=function(u){return(0,A.default)(this.getKeyMap(),(function(c){return c.includes(u)}))},y.getKeyCode=function(u){return u.keyCode||u.code||u.key},y.prototype.bindEventHandlers=function(){var u=this;typeof window<"u"&&window.addEventListener&&(this.keyDownEventListener=function(c){if(u.paused!==!0){u.debug&&(u.logIndex+=1);var f=y.getKeyCode(c),v=u.getEventType(f);if(v){u.pressedKeys[v]=u.pressedKeys[v]?u.pressedKeys[v]+1:1,u.shouldUseNativeEvents||(c.preventDefault(),c.stopPropagation());var C={pressedKeys:u.pressedKeys};if(v===ye&&u.focusKey)u.onEnterPress(C);else{var w=u.onArrowPress(v,C)===!1;if(u.visualDebugger&&u.visualDebugger.clear(),w)u.log("keyDownEventListener","default navigation prevented");else{var T=(0,A.default)(u.getKeyMap(),(function(I){return I.includes(f)}));u.smartNavigate(T,null,{event:c})}}}}},this.throttle&&(this.keyDownEventListenerThrottled=(0,Le.default)(this.keyDownEventListener.bind(this),this.throttle,Oe)),this.keyUpEventListener=function(c){var f=y.getKeyCode(c),v=u.getEventType(f);delete u.pressedKeys[v],u.throttle&&!u.throttleKeypresses&&u.keyDownEventListenerThrottled.cancel(),v===ye&&u.focusKey&&u.onEnterRelease(),!u.focusKey||v!==ue&&v!==oe&&v!==ce&&v!==ne||u.onArrowRelease(v)},window.addEventListener("keyup",this.keyUpEventListener),window.addEventListener("keydown",this.throttle?this.keyDownEventListenerThrottled:this.keyDownEventListener))},y.prototype.unbindEventHandlers=function(){if(typeof window<"u"&&window.removeEventListener){window.removeEventListener("keyup",this.keyUpEventListener),this.keyUpEventListener=null;var u=this.throttle?this.keyDownEventListenerThrottled:this.keyDownEventListener;window.removeEventListener("keydown",u),this.keyDownEventListener=null}},y.prototype.onEnterPress=function(u){var c=this.focusableComponents[this.focusKey];c?c.focusable?c.onEnterPress&&c.onEnterPress(u):this.log("onEnterPress","componentNotFocusable"):this.log("onEnterPress","noComponent")},y.prototype.onEnterRelease=function(){var u=this.focusableComponents[this.focusKey];u?u.focusable?u.onEnterRelease&&u.onEnterRelease():this.log("onEnterRelease","componentNotFocusable"):this.log("onEnterRelease","noComponent")},y.prototype.onArrowPress=function(u,c){var f=this.focusableComponents[this.focusKey];if(f)return f&&f.onArrowPress&&f.onArrowPress(u,c);this.log("onArrowPress","noComponent")},y.prototype.onArrowRelease=function(u){var c=this.focusableComponents[this.focusKey];c?c.focusable?c.onArrowRelease&&c.onArrowRelease(u):this.log("onArrowRelease","componentNotFocusable"):this.log("onArrowRelease","noComponent")},y.prototype.navigateByDirection=function(u,c){if(this.paused!==!0&&this.enabled&&!this.nativeMode){var f=[ne,ce,ue,oe];f.includes(u)?(this.log("navigateByDirection","direction",u),this.smartNavigate(u,null,c)):this.log("navigateByDirection","Invalid direction. You passed: `".concat(u,"`, but you can use only these: "),f)}},y.prototype.smartNavigate=function(u,c,f){var v=this;if(!this.nativeMode){var C=u===ne||u===ce,w=u===ne||(this.writingDirection===Q.default.LTR?u===oe:u===ue);this.log("smartNavigate","direction",u),this.log("smartNavigate","fromParentFocusKey",c),this.log("smartNavigate","this.focusKey",this.focusKey),c||(0,te.default)(this.focusableComponents,(function(z){z.layoutUpdated=!1}));var T=this.focusableComponents[c||this.focusKey];if(c||T){if(this.log("smartNavigate","currentComponent",T?T.focusKey:void 0,T?T.node:void 0,T),T){this.updateLayout(T.focusKey);var I=T.parentFocusKey,G=T.focusKey,k=T.layout,j=y.getCutoffCoordinate(C,w,!1,k,this.writingDirection),B=(0,H.default)(this.focusableComponents,(function(z){if(z.parentFocusKey===I&&z.focusable){v.updateLayout(z.focusKey);var V=y.getCutoffCoordinate(C,w,!0,z.layout,v.writingDirection);return C||v.writingDirection===Q.default.LTR?w?V>=j:V<=j:w?V<=j:V>=j}return!1}));if(this.debug&&(this.log("smartNavigate","currentCutoffCoordinate",j),this.log("smartNavigate","siblings","".concat(B.length," elements:"),B.map((function(z){return z.focusKey})).join(", "),B.map((function(z){return z.node})),B.map((function(z){return z})))),this.visualDebugger){var D=y.getRefCorners(u,!1,k);this.visualDebugger.drawPoint(D.a.x,D.a.y),this.visualDebugger.drawPoint(D.b.x,D.b.y)}var Y=this.sortSiblingsByPriority(B,k,u,G),W=(0,U.default)(Y);if(this.log("smartNavigate","nextComponent",W?W.focusKey:void 0,W?W.node:void 0,W),W)this.setFocus(W.focusKey,f);else{var X=this.focusableComponents[I],se=X?.isFocusBoundary?X.focusBoundaryDirections||[u]:[];X&&se.includes(u)||this.smartNavigate(u,I,f)}}}else this.setFocus(this.getForcedFocusKey())}},y.prototype.saveLastFocusedChildKey=function(u,c){u&&(this.log("saveLastFocusedChildKey","".concat(u.focusKey," lastFocusedChildKey set"),c),u.lastFocusedChildKey=c)},y.prototype.log=function(u,c){for(var f=[],v=2;v<arguments.length;v++)f[v-2]=arguments[v];this.debug&&console.log.apply(console,N(["%c".concat(u,"%c").concat(c),"background: ".concat(_e[this.logIndex%_e.length],"; color: black; padding: 1px 5px;"),"background: #333; color: #BADA55; padding: 1px 5px;"],f,!1))},y.prototype.getCurrentFocusKey=function(){return this.focusKey},y.prototype.getForcedFocusKey=function(){var u,c=(0,H.default)(this.focusableComponents,(function(v){return v.focusable&&v.forceFocus})),f=this.sortSiblingsByPriority(c,{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0,node:null},"down",d.ROOT_FOCUS_KEY);return(u=(0,U.default)(f))===null||u===void 0?void 0:u.focusKey},y.prototype.getNextFocusKey=function(u){var c=this,f=this.focusableComponents[u];if(!f||this.nativeMode)return u;var v=(0,H.default)(this.focusableComponents,(function(I){return I.parentFocusKey===u&&I.focusable}));if(v.length>0){var C=f.lastFocusedChildKey,w=f.preferredChildFocusKey;if(this.log("getNextFocusKey","lastFocusedChildKey is",C),this.log("getNextFocusKey","preferredChildFocusKey is",w),C&&f.saveLastFocusedChild&&this.isParticipatingFocusableComponent(C))return this.log("getNextFocusKey","lastFocusedChildKey will be focused",C),this.getNextFocusKey(C);if(w&&this.isParticipatingFocusableComponent(w))return this.log("getNextFocusKey","preferredChildFocusKey will be focused",w),this.getNextFocusKey(w);v.forEach((function(I){return c.updateLayout(I.focusKey)}));var T=(function(I,G){var k=G===Q.default.LTR?function(B){var D=B.layout;return Math.abs(D.left)+Math.abs(D.top)}:function(B){var D=B.layout;return Math.abs(window.innerWidth-D.right)+Math.abs(D.top)},j=(0,ve.default)(I,k);return(0,U.default)(j)})(v,this.writingDirection).focusKey;return this.log("getNextFocusKey","childKey will be focused",T),this.getNextFocusKey(T)}return this.log("getNextFocusKey","targetFocusKey",u),u},y.prototype.addFocusable=function(u){var c=u.focusKey,f=u.node,v=u.parentFocusKey,C=u.onEnterPress,w=u.onEnterRelease,T=u.onArrowPress,I=u.onArrowRelease,G=u.onFocus,k=u.onBlur,j=u.saveLastFocusedChild,B=u.trackChildren,D=u.onUpdateFocus,Y=u.onUpdateHasFocusedChild,W=u.preferredChildFocusKey,X=u.autoRestoreFocus,se=u.forceFocus,z=u.focusable,V=u.isFocusBoundary,fe=u.focusBoundaryDirections;if(this.focusableComponents[c]={focusKey:c,node:f,parentFocusKey:v,onEnterPress:C,onEnterRelease:w,onArrowPress:T,onArrowRelease:I,onFocus:G,onBlur:k,onUpdateFocus:D,onUpdateHasFocusedChild:Y,saveLastFocusedChild:j,trackChildren:B,preferredChildFocusKey:W,focusable:z,isFocusBoundary:V,focusBoundaryDirections:fe,autoRestoreFocus:X,forceFocus:se,lastFocusedChildKey:null,layout:{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0,node:f},layoutUpdated:!1},f||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[c]),!this.nativeMode){this.updateLayout(c),this.log("addFocusable","Component added: ",this.focusableComponents[c]),c===this.focusKey&&this.setFocus(W||c);for(var ae=this.focusableComponents[this.focusKey];ae;){if(ae.parentFocusKey===c){this.updateParentsHasFocusedChild(this.focusKey,{}),this.updateParentsLastFocusedChild(this.focusKey);break}ae=this.focusableComponents[ae.parentFocusKey]}}},y.prototype.removeFocusable=function(u){var c=u.focusKey,f=this.focusableComponents[c];if(f){var v=f.parentFocusKey;(0,f.onUpdateFocus)(!1),this.log("removeFocusable","Component removed: ",f),delete this.focusableComponents[c];var C=this.parentsHavingFocusedChild.includes(c);this.parentsHavingFocusedChild=this.parentsHavingFocusedChild.filter((function(I){return I!==c}));var w=this.focusableComponents[v],T=c===this.focusKey;if(w&&w.lastFocusedChildKey===c&&(w.lastFocusedChildKey=null),this.nativeMode)return;(T||C)&&w&&w.autoRestoreFocus&&(this.log("removeFocusable","Component removed: ",T?"Leaf component":"Container component","Auto restoring focus to: ",v),this.setFocusDebounced(v))}},y.prototype.getNodeLayoutByFocusKey=function(u){var c=this.focusableComponents[u];return c?(this.updateLayout(c.focusKey),c.layout):null},y.prototype.setCurrentFocusedKey=function(u,c){var f,v,C,w;if(this.isFocusableComponent(this.focusKey)&&u!==this.focusKey){var T=this.focusableComponents[this.focusKey];T.onUpdateFocus(!1),T.onBlur(this.getNodeLayoutByFocusKey(this.focusKey),c),(v=(f=T.node)===null||f===void 0?void 0:f.removeAttribute)===null||v===void 0||v.call(f,"data-focused"),this.log("setCurrentFocusedKey","onBlur",T)}if(this.focusKey=u,this.isFocusableComponent(this.focusKey)){var I=this.focusableComponents[this.focusKey];this.shouldFocusDOMNode&&I.node&&I.node.focus(this.domNodeFocusOptions),(w=(C=I.node)===null||C===void 0?void 0:C.setAttribute)===null||w===void 0||w.call(C,"data-focused","true"),I.onUpdateFocus(!0),I.onFocus(this.getNodeLayoutByFocusKey(this.focusKey),c),this.log("setCurrentFocusedKey","onFocus",I)}},y.prototype.updateParentsHasFocusedChild=function(u,c){for(var f=this,v=[],C=this.focusableComponents[u];C;){var w=C.parentFocusKey,T=this.focusableComponents[w];if(T){var I=T.focusKey;v.push(I)}C=T}var G=(0,M.default)(this.parentsHavingFocusedChild,v),k=(0,M.default)(v,this.parentsHavingFocusedChild);(0,J.default)(G,(function(j){var B=f.focusableComponents[j];B&&B.trackChildren&&B.onUpdateHasFocusedChild(!1),f.onIntermediateNodeBecameBlurred(j,c)})),(0,J.default)(k,(function(j){var B=f.focusableComponents[j];B&&B.trackChildren&&B.onUpdateHasFocusedChild(!0),f.onIntermediateNodeBecameFocused(j,c)})),this.parentsHavingFocusedChild=v},y.prototype.updateParentsLastFocusedChild=function(u){for(var c=this.focusableComponents[u];c;){var f=c.parentFocusKey,v=this.focusableComponents[f];v&&this.saveLastFocusedChildKey(v,c.focusKey),c=v}},y.prototype.getKeyMap=function(){return this.keyMap},y.prototype.setKeyMap=function(u){this.keyMap=g(g({},this.getKeyMap()),(function(c){var f={};return Object.entries(c).forEach((function(v){var C=v[0],w=v[1];f[C]=Array.isArray(w)?w:[w]})),f})(u))},y.prototype.isFocusableComponent=function(u){return!!this.focusableComponents[u]},y.prototype.isParticipatingFocusableComponent=function(u){return this.isFocusableComponent(u)&&this.focusableComponents[u].focusable},y.prototype.onIntermediateNodeBecameFocused=function(u,c){this.isParticipatingFocusableComponent(u)&&this.focusableComponents[u].onFocus(this.getNodeLayoutByFocusKey(u),c)},y.prototype.onIntermediateNodeBecameBlurred=function(u,c){this.isParticipatingFocusableComponent(u)&&this.focusableComponents[u].onBlur(this.getNodeLayoutByFocusKey(u),c)},y.prototype.pause=function(){this.paused=!0},y.prototype.resume=function(){this.paused=!1},y.prototype.setFocus=function(u,c){if(c===void 0&&(c={}),this.setFocusDebounced.cancel(),this.enabled){this.log("setFocus","focusKey",u),u&&u!==d.ROOT_FOCUS_KEY||(u=this.getForcedFocusKey());var f=this.getNextFocusKey(u);this.log("setFocus","newFocusKey",f),this.setCurrentFocusedKey(f,c),this.updateParentsHasFocusedChild(f,c),this.updateParentsLastFocusedChild(f)}},y.prototype.updateAllLayouts=function(){var u=this;this.enabled&&!this.nativeMode&&(0,te.default)(this.focusableComponents,(function(c,f){u.updateLayout(f)}))},y.prototype.updateLayout=function(u){var c=this.focusableComponents[u];if(c&&!this.nativeMode&&!c.layoutUpdated){var f=c.node,v=this.useGetBoundingClientRect?(0,pe.getBoundingClientRect)(f):(0,pe.default)(f);c.layout=g(g({},v),{node:f})}},y.prototype.updateFocusable=function(u,c){var f=c.node,v=c.preferredChildFocusKey,C=c.focusable,w=c.isFocusBoundary,T=c.focusBoundaryDirections,I=c.onEnterPress,G=c.onEnterRelease,k=c.onArrowPress,j=c.onFocus,B=c.onBlur;if(!this.nativeMode){var D=this.focusableComponents[u];D&&(D.preferredChildFocusKey=v,D.focusable=C,D.isFocusBoundary=w,D.focusBoundaryDirections=T,D.onEnterPress=I,D.onEnterRelease=G,D.onArrowPress=k,D.onFocus=j,D.onBlur=B,f&&(D.node=f))}},y.prototype.isNativeMode=function(){return this.nativeMode},y.prototype.doesFocusableExist=function(u){return!!this.focusableComponents[u]},y.prototype.updateRtl=function(u){this.writingDirection=u?Q.default.RTL:Q.default.LTR},y})();d.SpatialNavigation=new Se,d.init=d.SpatialNavigation.init,d.setThrottle=d.SpatialNavigation.setThrottle,d.destroy=d.SpatialNavigation.destroy,d.setKeyMap=d.SpatialNavigation.setKeyMap,d.setFocus=d.SpatialNavigation.setFocus,d.navigateByDirection=d.SpatialNavigation.navigateByDirection,d.pause=d.SpatialNavigation.pause,d.resume=d.SpatialNavigation.resume,d.updateAllLayouts=d.SpatialNavigation.updateAllLayouts,d.getCurrentFocusKey=d.SpatialNavigation.getCurrentFocusKey,d.doesFocusableExist=d.SpatialNavigation.doesFocusableExist,d.updateRtl=d.SpatialNavigation.updateRtl},35:function(b,d,p){var q=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(d,"__esModule",{value:!0});var g=q(p(119)),P=typeof window<"u"&&window.document,x=P?window.innerWidth:0,F=P?window.innerHeight:0,N=(function(){function R(O){P&&(this.debugCtx=R.createCanvas("sn-debug","1010",O),this.layoutsCtx=R.createCanvas("sn-layouts","1000",O),this.writingDirection=O)}return R.createCanvas=function(O,M,H){var A=document.querySelector("#".concat(O))||document.createElement("canvas");A.setAttribute("id",O),A.setAttribute("dir",H===g.default.LTR?"ltr":"rtl");var U=A.getContext("2d");return A.style.zIndex=M,A.style.position="fixed",A.style.top="0",A.style.left="0",document.body.appendChild(A),A.width=x,A.height=F,U},R.prototype.clear=function(){P&&this.debugCtx.clearRect(0,0,x,F)},R.prototype.clearLayouts=function(){P&&this.layoutsCtx.clearRect(0,0,x,F)},R.prototype.drawLayout=function(O,M,H){if(P){this.layoutsCtx.strokeStyle="green",this.layoutsCtx.strokeRect(O.left,O.top,O.width,O.height),this.layoutsCtx.font="8px monospace",this.layoutsCtx.fillStyle="red";var A=this.writingDirection===g.default.LTR?"left":"right",U=O[A];this.layoutsCtx.fillText(M,U,O.top+10),this.layoutsCtx.fillText(H,U,O.top+25),this.layoutsCtx.fillText("".concat(A,": ").concat(U),U,O.top+40),this.layoutsCtx.fillText("top: ".concat(O.top),U,O.top+55)}},R.prototype.drawPoint=function(O,M,H,A){H===void 0&&(H="blue"),A===void 0&&(A=10),P&&(this.debugCtx.strokeStyle=H,this.debugCtx.lineWidth=3,this.debugCtx.strokeRect(O-A/2,M-A/2,A,A))},R})();d.default=N},119:function(b,d){var p;Object.defineProperty(d,"__esModule",{value:!0}),(function(q){q[q.LTR=0]="LTR",q[q.RTL=1]="RTL"})(p||(p={})),d.default=p},607:function(b,d,p){var q=this&&this.__createBinding||(Object.create?function(P,x,F,N){N===void 0&&(N=F);var R=Object.getOwnPropertyDescriptor(x,F);R&&!("get"in R?!x.__esModule:R.writable||R.configurable)||(R={enumerable:!0,get:function(){return x[F]}}),Object.defineProperty(P,N,R)}:function(P,x,F,N){N===void 0&&(N=F),P[N]=x[F]}),g=this&&this.__exportStar||function(P,x){for(var F in P)F==="default"||Object.prototype.hasOwnProperty.call(x,F)||q(x,P,F)};Object.defineProperty(d,"__esModule",{value:!0}),g(p(79),d),g(p(445),d),g(p(654),d)},964:function(b,d){Object.defineProperty(d,"__esModule",{value:!0}),d.getBoundingClientRect=void 0;var p=function(q){for(var g=q.offsetParent,P=q.offsetHeight,x=q.offsetWidth,F=q.offsetLeft,N=q.offsetTop;g&&g.nodeType===1;)F+=g.offsetLeft-g.scrollLeft,N+=g.offsetTop-g.scrollTop,g=g.offsetParent;return{height:P,left:F,top:N,width:x}};d.default=function(q){var g=q&&q.parentElement;if(q&&g){var P=p(g),x=p(q),F=x.height,N=x.left,R=x.top,O=x.width;return{x:N-P.left,y:R-P.top,width:O,height:F,left:N,top:R,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}},d.getBoundingClientRect=function(q){if(q&&q.getBoundingClientRect){var g=q.getBoundingClientRect();return{x:g.x,y:g.y,width:g.width,height:g.height,left:g.left,top:g.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(b,d,p){Object.defineProperty(d,"__esModule",{value:!0}),d.useFocusContext=d.FocusContext=void 0;var q=p(156),g=p(654);d.FocusContext=(0,q.createContext)(g.ROOT_FOCUS_KEY),d.FocusContext.displayName="FocusContext",d.useFocusContext=function(){return(0,q.useContext)(d.FocusContext)}},79:function(b,d,p){var q=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(d,"__esModule",{value:!0}),d.useFocusable=void 0;var g=p(156),P=q(p(604)),x=q(p(461)),F=p(654),N=p(445);d.useFocusable=function(R){var O=R===void 0?{}:R,M=O.focusable,H=M===void 0||M,A=O.saveLastFocusedChild,U=A===void 0||A,J=O.trackChildren,te=J!==void 0&&J,ve=O.autoRestoreFocus,Le=ve===void 0||ve,xe=O.forceFocus,Q=xe!==void 0&&xe,pe=O.isFocusBoundary,ue=pe!==void 0&&pe,oe=O.focusBoundaryDirections,ce=O.focusKey,ne=O.preferredChildFocusKey,ye=O.onEnterPress,ge=ye===void 0?P.default:ye,_e=O.onEnterRelease,Oe=_e===void 0?P.default:_e,Se=O.onArrowPress,y=Se===void 0?function(){return!0}:Se,u=O.onArrowRelease,c=u===void 0?P.default:u,f=O.onFocus,v=f===void 0?P.default:f,C=O.onBlur,w=C===void 0?P.default:C,T=O.extraProps,I=(0,g.useCallback)((function($){ge(T,$)}),[ge,T]),G=(0,g.useCallback)((function(){Oe(T)}),[Oe,T]),k=(0,g.useCallback)((function($,Z){return y($,T,Z)}),[T,y]),j=(0,g.useCallback)((function($){c($,T)}),[c,T]),B=(0,g.useCallback)((function($,Z){v($,T,Z)}),[T,v]),D=(0,g.useCallback)((function($,Z){w($,T,Z)}),[T,w]),Y=(0,g.useRef)(null),W=(0,g.useState)(!1),X=W[0],se=W[1],z=(0,g.useState)(!1),V=z[0],fe=z[1],ae=(0,N.useFocusContext)(),ee=(0,g.useMemo)((function(){return ce||(0,x.default)("sn:focusable-item-")}),[ce]),be=(0,g.useCallback)((function($){$===void 0&&($={}),F.SpatialNavigation.setFocus(ee,$)}),[ee]);return(0,g.useEffect)((function(){var $=Y.current;return F.SpatialNavigation.addFocusable({focusKey:ee,node:$,parentFocusKey:ae,preferredChildFocusKey:ne,onEnterPress:I,onEnterRelease:G,onArrowPress:k,onArrowRelease:j,onFocus:B,onBlur:D,onUpdateFocus:function(Z){return Z===void 0&&(Z=!1),se(Z)},onUpdateHasFocusedChild:function(Z){return Z===void 0&&(Z=!1),fe(Z)},saveLastFocusedChild:U,trackChildren:te,isFocusBoundary:ue,focusBoundaryDirections:oe,autoRestoreFocus:Le,forceFocus:Q,focusable:H}),function(){F.SpatialNavigation.removeFocusable({focusKey:ee})}}),[]),(0,g.useEffect)((function(){var $=Y.current;F.SpatialNavigation.updateFocusable(ee,{node:$,preferredChildFocusKey:ne,focusable:H,isFocusBoundary:ue,focusBoundaryDirections:oe,onEnterPress:I,onEnterRelease:G,onArrowPress:k,onArrowRelease:j,onFocus:B,onBlur:D})}),[ee,ne,H,ue,oe,I,G,k,j,B,D]),{ref:Y,focusSelf:be,focused:X,hasFocusedChild:V,focusKey:ee}}},150:function(b){b.exports=t},117:function(b){b.exports=n},747:function(b){b.exports=a},23:function(b){b.exports=i},842:function(b){b.exports=s},682:function(b){b.exports=o},784:function(b){b.exports=l},604:function(b){b.exports=h},432:function(b){b.exports=m},67:function(b){b.exports=_},461:function(b){b.exports=S},156:function(b){b.exports=E}},K={};return(function b(d){var p=K[d];if(p!==void 0)return p.exports;var q=K[d]={exports:{}};return L[d].call(q.exports,q,q.exports,b),q.exports})(607)})()}))})(Ke)),Ke.exports}var Lc=Dc();exports.commonjsGlobal=me;exports.distExports=Lc;exports.getAugmentedNamespace=Tu;exports.getDefaultExportFromCjs=Au;
|
package/lib/cjs/index13.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
"use strict";require("core-js/modules/es.symbol.js"),require("core-js/modules/es.symbol.description.js"),require("core-js/modules/es.symbol.iterator.js"),require("core-js/modules/es.array.concat.js"),require("core-js/modules/es.array.from.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.array.slice.js"),require("core-js/modules/es.object.define-property.js"),require("core-js/modules/es.object.get-prototype-of.js"),require("core-js/modules/es.object.set-prototype-of.js"),require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js"),require("core-js/modules/es.regexp.exec.js"),require("core-js/modules/es.regexp.to-string.js"),require("core-js/modules/es.set.js"),require("core-js/modules/es.string.iterator.js"),require("core-js/modules/web.dom-collections.iterator.js"),require("core-js/modules/web.url.js"),require("core-js/modules/web.url.to-json.js"),require("core-js/modules/web.url-search-params.js");function e(){
|
|
2
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
3
|
-
var r,n,o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function u(e,o,s,a){var u=o&&o.prototype instanceof i?o:i,c=Object.create(u.prototype);return t(c,"_invoke",function(e,t,o){var s,a,u,i=0,c=o||[],d=!1,f={p:0,n:0,v:r,a:p,f:p.bind(r,4),d:function(e,t){return s=e,a=0,u=r,f.n=t,l}};function p(e,t){for(a=e,u=t,n=0;!d&&i&&!o&&n<c.length;n++){var o,s=c[n],p=f.p,y=s[2];e>3?(o=y===t)&&(u=s[(a=s[4])?5:(a=3,3)],s[4]=s[5]=r):s[0]<=p&&((o=e<2&&p<s[1])?(a=0,f.v=t,f.n=s[1]):p<y&&(o=e<3||s[0]>t||t>y)&&(s[4]=e,s[5]=t,f.n=y,a=0))}if(o||e>1)return l;throw d=!0,t}return function(o,c,y){if(i>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,y),a=c,u=y;(n=a<2?r:u)||!d;){s||(a?a<3?(a>1&&(f.n=-1),p(a,u)):f.n=u:f.v=u);try{if(i=2,s){if(a||(o="next"),n=s[o]){if(!(n=n.call(s,u)))throw TypeError("iterator result is not an object");if(!n.done)return n;u=n.value,a<2&&(a=0)}else 1===a&&(n=s.return)&&n.call(s),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);s=r}else if((n=(d=f.n<0)?u:e.call(t,f))!==l)break}catch(m){s=r,a=1,u=m}finally{i=1}}return{value:n,done:d}}}(e,s,a),!0),c}var l={};function i(){}function c(){}function d(){}n=Object.getPrototypeOf;var f=[][s]?n(n([][s]())):(t(n={},s,function(){return this}),n),p=d.prototype=i.prototype=Object.create(f);function y(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,t(e,a,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=d,t(p,"constructor",d),t(d,"constructor",c),c.displayName="GeneratorFunction",t(d,a,"GeneratorFunction"),t(p),t(p,a,"Generator"),t(p,s,function(){return this}),t(p,"toString",function(){return"[object Generator]"}),(e=function(){return{w:u,m:y}})()}function t(e,r,n,o){var s=Object.defineProperty;try{s({},"",{})}catch(a){s=0}(t=function(e,r,n,o){function a(r,n){t(e,r,function(e){return this._invoke(r,n,e)})}r?s?s(e,r,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[r]=n:(a("next",0),a("throw",1),a("return",2))})(e,r,n,o)}function r(e,t,r,n,o,s,a){try{var u=e[s](a),l=u.value}catch(i){return void r(i)}u.done?t(l):Promise.resolve(l).then(n,o)}function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){l=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(l)throw a}}}}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,s,a,u=[],l=!0,i=!1;try{if(s=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=s.call(r)).done)&&(u.push(n.value),u.length!==t);l=!0);}catch(c){i=!0,o=c}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(i)throw o}}return u}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var u=require("react/jsx-runtime"),l=require("./sl-types.js"),i=require("react"),c=require("./index6.js"),d=require("./index14.js"),f=require("./useStreamLayerApp2.js"),p=l.styled_default("div")({name:"CloseIconWrap",class:"c3v6bv6",propsAsIs:!1}),y=l.styled_default("div")({name:"TimerWrap",class:"teuhmro",propsAsIs:!1}),m=l.styled_default(c.B1)({name:"Icon",class:"i17rfxv5",propsAsIs:!0}),j=l.styled_default("div")({name:"Container",class:"c1bgb86j",propsAsIs:!1}),v=l.styled_default("video")({name:"Player",class:"p6703cq",propsAsIs:!1}),b=l.styled_default("img")({name:"Poster",class:"p12ow7zo",propsAsIs:!1}),h=l.styled_default("div")({name:"Control",class:"cdpal9o",propsAsIs:!1}),g=l.styled_default("div")({name:"VideoControls",class:"vxo8xch",propsAsIs:!1}),x=l.styled_default("button")({name:"ControlBtn",class:"coyuzu0",propsAsIs:!1}),I=l.styled_default(x)({name:"MuteIcon",class:"musmi9a",propsAsIs:!0}),w=l.styled_default(x)({name:"PauseIcon",class:"p1qe7rum",propsAsIs:!0}),A=l.styled_default(x)({name:"PlayIcon",class:"psevery",propsAsIs:!0}),P=l.styled_default("button")({name:"WebOSIconButton",class:"w1q3u7py",propsAsIs:!1}),S=l.styled_default(P)({name:"WebOSIconButtonAnimation",class:"wdlqvum",propsAsIs:!0}),q=l.styled_default(S)({name:"WebOSIconButtonPlay",class:"w1ylz9ea",propsAsIs:!0}),_=l.styled_default(S)({name:"WebOSIconButtonPause",class:"w1iylt55",propsAsIs:!0}),k=l.styled_default(S)({name:"WebOSIconButtonMute",class:"w8h4h7",propsAsIs:!0}),C=l.styled_default(S)({name:"WebOSIconButtonUnmute",class:"w12l12kt",propsAsIs:!0}),E=new IntersectionObserver(function(e){var t,r=n(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;o.isIntersecting?o.target instanceof HTMLVideoElement&&o.target.autoplay&&o.target.play():o.target instanceof HTMLVideoElement&&!o.target.paused&&o.target.pause()}}catch(s){r.e(s)}finally{r.f()}},{threshold:.5}),O=new Set,M=function(){var e,t=n(O);try{for(t.s();!(e=t.n()).done;){var r=e.value;r instanceof HTMLVideoElement&&!r.paused&&r.pause()}}catch(o){t.e(o)}finally{t.f()}};var T=d.O(j),B=function(e){var t=e.loading,r=e.autoPlay,n=e.played,o=e.playing,s=e.isMuted,a=e.unmute,i=e.mute,d=e.togglePlaying;return t||r||n?n?u.jsxs(g,{children:[o?u.jsx(w,{onClick:d}):u.jsx(A,{onClick:d}),u.jsx(I,{className:l.cx_default(!s&&"muted"),onClick:s?a:i})]}):null:u.jsx(h,{children:o?u.jsx(c.B1,{name:"icon-pause"}):u.jsx(c.B1,{name:"icon-play"})})},N=function(e){var t=e.loading,r=e.autoPlay,n=e.playMuted,o=e.playing,s=e.played,a=e.unmute,l=e.mute,i=e.isMuted,d=e.hasNotPausedVideo,f=e.hasInteractedWithAudio;return u.jsxs(u.Fragment,{children:[!t&&!(r&&n)&&u.jsx(h,{"data-control-btn":"true",children:o?d?null:u.jsx(q,{children:u.jsx(c.B1,{name:"icon-play"})}):s?u.jsx(_,{children:u.jsx(c.B1,{name:"icon-pause"})}):u.jsx(P,{"data-control-icon":"true",children:u.jsx(c.B1,{name:"icon-play"})})}),!t&&r&&n&&f&&u.jsx(h,{children:i?u.jsx(k,{onClick:a,children:u.jsx(c.B1,{name:"iconMute"})}):u.jsx(C,{onClick:l,children:u.jsx(c.B1,{name:"iconUnMute"})})})]})},R=i.forwardRef(function(t,n){var s=t.poster,a=t.source,c=t.aspectRatio,f=t.controlVideo,p=t.onReplay,y=t.onPlay,m=t.onPause,j=t.onEnd,g=t.onRender,x=t.onMute,I=t.onQuartile,w=t.autoPlay,A=t.playMuted,P=t.className,S=t.muted,q=t.webos,_=t.hasNotPausedVideo,k=i.useRef(null),C=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return i.useCallback(function(e){for(var r=0,n=t;r<n.length;r++){var o=n[r];null!==o&&("function"==typeof o?o(e):o&&(o.current=e))}},[].concat(t))}(k,n),R=i.useRef(!1),V=i.useRef(!1),W=i.useRef(new Set),L=o(i.useState(!1),2),G=L[0],U=L[1],F=o(i.useState(!1),2),z=F[0],H=F[1],D=o(i.useState(!1),2),K=D[0],Q=D[1],$=o(i.useState(!0),2),J=$[0],X=$[1],Y=o(i.useState(A),2),Z=Y[0],ee=Y[1],te=o(i.useState(!1),2),re=te[0],ne=te[1];i.useEffect(function(){a&&(ee(A),U(!1))},[a]);var oe=i.useCallback(function(){null==f||f({muted:!1})},[f]),se=i.useCallback(function(){null==f||f({muted:!0})},[f]),ae=i.useCallback(function(e){null==e||e.stopPropagation(),k.current&&(k.current.muted=!0),ee(!0)},[]),ue=i.useCallback(function(e){null==e||e.stopPropagation(),k.current&&(k.current.muted=!1),ee(!1),re||ne(!0)},[re]);i.useEffect(function(){void 0!==S&&(S?ae():ue())},[ae,S,ue]);var le,ie=function(e){var t;null==(t=e.stopPropagation)||t.call(e);var r=null==k?void 0:k.current;if(r)if(z)r.pause();else{var n=null==k?void 0:k.current;if(!n)return;M(),n.play().catch(function(e){return console.log(e)}),X(!1)}};return i.useEffect(function(){return function(){oe()}},[oe]),i.useEffect(function(){var e=k.current;return e?(V.current=e.muted,ee(e.muted),function(e){E.observe(e),O.add(e)}(e),function(){!function(e){E.unobserve(e),O.delete(e)}(e)}):function(){}},[]),i.useEffect(function(){null==g||g()},[g]),i.useEffect(function(){W.current.clear(),R.current=!1},[a]),u.jsxs(T,{webos:q,onClick:w&&A?Z?ue:ae:ie,"data-a":"intr",autoFocus:!0,options:{focusKey:"video-play-btn"},className:l.cx_default(z&&!q&&"t1xke4ml",w&&"h1yzxv57",P),style:c?{aspectRatio:c}:{},children:[u.jsx(v,{ref:C,src:a,autoPlay:w,onPlay:function(){U(!0),R.current&&(null==p||p(),W.current.clear()),H(!0),X(!1),null==y||y(),A?ae():se()},onTimeUpdate:function(e){var t=e.target.duration,r=e.target.currentTime;if(t&&r){var n=Math.floor(r/t*100);n>=25&&n<50&&!W.current.has(25)?(null==I||I(25),W.current.add(25)):n>=50&&n<75&&!W.current.has(50)?(null==I||I(50),W.current.add(50)):n>=75&&!W.current.has(75)&&(null==I||I(75),W.current.add(75))}},onVolumeChange:function(e){var t=e.target.muted;V.current!==t&&(null==x||x(t),V.current=t,(t!==S||void 0===S)&&(t?oe():se()))},onError:(le=function(e){return function(){var t=this,n=arguments;return new Promise(function(o,s){var a=e.apply(t,n);function u(e){r(a,o,s,u,l,"next",e)}function l(e){r(a,o,s,u,l,"throw",e)}u(void 0)})}}(e().m(function t(r){var n,o,s;return e().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,!(r.target instanceof HTMLVideoElement)){e.n=3;break}return Q(!0),e.n=1,fetch(r.target.src);case 1:return e.n=2,e.v.blob();case 2:n=e.v,o=URL.createObjectURL(n),r.target.src=o;case 3:e.n=5;break;case 4:e.p=4,s=e.v,console.error("video fallback fetch failed",s),H(!0),X(!0);case 5:return e.p=5,Q(!1),oe(),e.f(5);case 6:return e.a(2)}},t,null,[[0,4,5,6]])})),function(e){return le.apply(this,arguments)}),onPause:function(){H(!1),null==m||m(),oe()},onEnded:function(){var e;H(!1),R.current=!0,null==(e=null==k?void 0:k.current)||e.load(),X(!0),null==j||j(),oe()},style:{visibility:J?"hidden":"visible"},controls:!1,playsInline:!0}),u.jsx(b,{src:s,style:{visibility:J?"visible":"hidden"}}),!q&&u.jsx(B,{loading:K,autoPlay:w,played:G,playing:z,isMuted:Z,unmute:ue,mute:ae,togglePlaying:ie}),q&&u.jsx(N,{loading:K,autoPlay:w,playMuted:A,playing:z,played:G,unmute:ue,mute:ae,isMuted:Z,hasNotPausedVideo:_,hasInteractedWithAudio:re}),K&&u.jsx(h,{children:u.jsx(d.d,{})})]})});exports.Et=R,exports.wt=M,exports.y=function(e){var t=e.close,r=e.className,n=e.timerClassName,s=e.skipIcon,a=e.isPlaying,l=void 0===a||a,c=e.duration,j=void 0===c?0:c,v=e.autoClose,b=o(i.useState(0===j),2),h=b[0],g=b[1];i.useEffect(function(){g(!j)},[j]);var x=i.useCallback(function(){v===f.CloseTimerAuto.ENABLED?null==t||t():g(!0)},[v,t]);return h?u.jsxs(p,{"data-a":"intr",onClick:t,className:r,style:s?{width:"auto"}:{},children:[s&&u.jsx("span",{"data-a":"intr",children:"Skip"}),u.jsx(m,{"data-a":"intr",name:s?"iconSkip":"icon-cross"})]}):u.jsx(y,{children:u.jsx(d.G,{className:n,isPlaying:l,duration:j,onTimerExpired:x})})};
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),Z=require("./index9.js"),l=require("./sl-types.js"),m=require("./index15.js"),H=require("./index11.js"),d=require("./index8.js"),C=require("./useStreamLayerApp2.js"),r=require("react"),D=l.styled_default("div")({name:"Container",class:"c1vwopgc",propsAsIs:!1}),E=l.styled_default("div")({name:"QuestionTypeWrap",class:"qyktpt0",propsAsIs:!1}),P=()=>d.B1,q=l.styled_default(P())({name:"QuestionTypeIcon",class:"q951jdx",propsAsIs:!0}),N=l.styled_default("span")({name:"QuestionTypeTitle",class:"qss5f0e",propsAsIs:!1}),k=l.styled_default("button")({name:"CloseIconWrap",class:"c1ao1jtv",propsAsIs:!1}),T=()=>d.B1,S=l.styled_default(T())({name:"CloseIcon",class:"cvsl7l3",propsAsIs:!0}),Q=Z.b(k,{}),U=({webos:e,type:a,closeTimer:t,close:o,label:n,mastersApp:c})=>{const i=a?H.e[a]:{label:n,iconName:void 0};return s.jsxs(D,{children:[s.jsxs(E,{children:[i?.iconName&&s.jsx(q,{"data-type-trivia":a===C.QuestionType.TRIVIA,"data-type-poll":a===C.QuestionType.POLL,"data-type-prediction":a===C.QuestionType.PREDICTION,"data-masters-app":!!c,name:i.iconName}),i?.label&&s.jsx(N,{children:i.label})]}),t?.seconds?s.jsx(m.y,{close:o,autoClose:t.auto,duration:t.seconds}):s.jsx(Q,{webos:e,"data-a":"intr",onClick:o,type:"button","data-close-btn":"true",children:s.jsx(S,{"data-a":"intr",name:"icon-cross"})})]})},F="data:image/svg+xml,%3csvg%20width='103'%20height='18'%20viewBox='0%200%20103%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_6919_104497)'%3e%3cpath%20d='M9.89618%203.45801C9.91951%203.45801%209.94451%203.46134%209.96784%203.46134C9.97618%203.46134%209.98284%203.46134%209.99118%203.46467H9.99784C10.0095%203.46467%2010.0212%203.46801%2010.0312%203.46801C10.0412%203.46801%2010.0462%203.46801%2010.0545%203.47134C10.0762%203.47467%2010.0962%203.47467%2010.1178%203.47634C10.1412%203.47967%2010.1662%203.48134%2010.1895%203.48467H10.2012C10.2462%203.48967%2010.2945%203.49634%2010.3395%203.50467C10.4512%203.52467%2010.5595%203.54801%2010.6662%203.57801C10.6928%203.58301%2010.7178%203.59301%2010.7445%203.60134H10.7478C10.7745%203.60967%2010.7995%203.61801%2010.8262%203.62467C10.8528%203.63301%2010.8778%203.64134%2010.9045%203.65134C10.9312%203.65967%2010.9562%203.66801%2010.9795%203.67967C11.0012%203.68801%2011.0212%203.69634%2011.0428%203.70634C11.0495%203.70967%2011.0578%203.71134%2011.0645%203.71467C11.0828%203.72301%2011.1012%203.72967%2011.1195%203.73801C11.1262%203.74134%2011.1312%203.74301%2011.1378%203.74634C11.1562%203.75467%2011.1712%203.76134%2011.1895%203.76967C11.1962%203.77301%2011.2045%203.77467%2011.2128%203.78134C11.2345%203.78967%2011.2528%203.79801%2011.2728%203.80967C11.2762%203.80967%2011.2795%203.81301%2011.2812%203.81301C11.3045%203.82467%2011.3295%203.83634%2011.3512%203.84801C11.3695%203.85634%2011.3878%203.86801%2011.4062%203.87634C11.4212%203.88134%2011.4328%203.89134%2011.4462%203.89967C11.4645%203.91134%2011.4828%203.91967%2011.5012%203.93134C11.5045%203.93467%2011.5078%203.93467%2011.5095%203.93634L11.5728%203.97467H11.5762L15.2178%206.18801L15.4412%206.32467C16.3228%206.90801%2016.9028%207.88467%2016.9028%208.99301C16.9028%2010.1013%2016.3262%2011.0763%2015.4445%2011.6613L15.2095%2011.803L11.5745%2014.0113H11.5712L11.5078%2014.0497C11.5078%2014.0497%2011.5012%2014.053%2011.4995%2014.0547C11.4812%2014.0663%2011.4628%2014.0747%2011.4445%2014.0863C11.4595%2014.078%2011.4745%2014.0697%2011.4895%2014.0597L5.94951%2017.433C5.94951%2017.433%205.94618%2017.433%205.94618%2017.4363L5.74451%2017.558H5.74118C5.19784%2017.863%204.55784%2018.0247%203.87784%2017.993C2.73618%2017.938%201.75784%2017.3463%201.19284%2016.4847C0.837844%2015.9413%200.64451%2015.2913%200.681177%2014.6013C0.71451%2013.983%200.922844%2013.4147%201.26118%2012.9397L1.26951%2012.9247L4.04451%208.99634L6.77784%205.12634C6.81118%205.07967%206.84784%205.03301%206.87784%204.98467C6.87451%204.98967%206.86951%204.99967%206.86284%205.00467C6.87118%204.98967%206.88118%204.97634%206.88951%204.96134C6.88951%204.95801%206.89284%204.95801%206.89284%204.95634C6.89618%204.95301%206.89951%204.94801%206.90118%204.94467C6.90118%204.94467%206.90118%204.94134%206.90451%204.94134C6.91951%204.92134%206.93451%204.90134%206.94618%204.87801C6.96118%204.85801%206.97618%204.83801%206.99118%204.81634C7.00618%204.79634%207.02118%204.77634%207.03618%204.75467C7.03951%204.75134%207.03951%204.74967%207.04284%204.74634C7.04618%204.74301%207.04618%204.74134%207.04951%204.74134C7.06451%204.72134%207.07951%204.70134%207.09784%204.67967C7.10951%204.66467%207.12118%204.65134%207.13451%204.63634C7.16784%204.59801%207.20118%204.56134%207.23784%204.52301C7.25284%204.50801%207.26451%204.49467%207.27951%204.47967C7.30118%204.45634%207.32118%204.43634%207.34618%204.41634C7.36451%204.39967%207.38284%204.38134%207.40118%204.36467C7.41951%204.34801%207.43451%204.33301%207.45284%204.31801C7.45618%204.31467%207.45951%204.31301%207.45951%204.31301C7.47118%204.30134%207.48118%204.29301%207.49284%204.28467C7.50451%204.27301%207.51951%204.26134%207.53284%204.25301C7.53618%204.24967%207.53951%204.24801%207.54118%204.24801C7.55951%204.23301%207.57451%204.21967%207.59284%204.20467C7.60784%204.18967%207.62618%204.17801%207.64118%204.16634C7.65618%204.15467%207.66784%204.14634%207.68284%204.13467C7.70118%204.11967%207.71951%204.10801%207.73784%204.09467C7.75284%204.08634%207.76451%204.07467%207.77951%204.06634C7.78618%204.06134%207.79451%204.05467%207.80284%204.05134C7.81784%204.03967%207.83284%204.03134%207.84784%204.02301C7.85118%204.01967%207.85618%204.01801%207.85951%204.01467C7.87784%204.00301%207.89618%203.99134%207.91118%203.98301C7.91784%203.97801%207.92618%203.97467%207.93284%203.96801C7.94784%203.95967%207.95951%203.95134%207.97451%203.94134C7.98284%203.93634%207.99284%203.92967%208.00118%203.92467C8.01618%203.91634%208.03451%203.90801%208.04951%203.89634C8.05284%203.89301%208.05784%203.89134%208.06451%203.88801C8.08618%203.87634%208.10451%203.86467%208.12451%203.85634C8.12784%203.85301%208.13118%203.85301%208.13618%203.85134C8.15784%203.83967%208.17784%203.82801%208.19951%203.81967C8.19951%203.81967%208.20284%203.81967%208.20284%203.81634C8.22618%203.80467%208.24784%203.79301%208.27284%203.78134C8.27284%203.78134%208.27618%203.78134%208.27618%203.77801C8.29451%203.76967%208.31284%203.76134%208.33284%203.75134C8.34118%203.74801%208.35118%203.74301%208.35951%203.73967C8.37118%203.73467%208.38284%203.72801%208.39618%203.72467C8.41118%203.71967%208.42284%203.71301%208.43784%203.70801C8.46118%203.69967%208.48284%203.69134%208.50784%203.68134C8.52284%203.67634%208.53451%203.66967%208.54951%203.66634C8.57118%203.65801%208.59118%203.65134%208.61284%203.64301C8.63118%203.63801%208.65284%203.63134%208.66951%203.62301C8.75451%203.59634%208.83784%203.57134%208.92284%203.54967C8.94118%203.54467%208.96284%203.54134%208.97951%203.53801C9.08451%203.51467%209.19451%203.49467%209.30284%203.48301C9.32951%203.47967%209.35784%203.47801%209.38451%203.47467C9.42118%203.47134%209.45951%203.46967%209.49618%203.46634C9.51118%203.46634%209.52284%203.46301%209.53784%203.46301H9.55951C9.58951%203.46301%209.61618%203.45967%209.64784%203.45967H9.73784C9.79451%203.45967%209.84284%203.45967%209.89451%203.46301L9.89618%203.45801ZM10.6662%2014.413C10.5612%2014.4413%2010.4512%2014.4647%2010.3395%2014.4863C10.4512%2014.4663%2010.5595%2014.443%2010.6662%2014.413ZM9.56118%2014.5313H9.56951C9.56118%2014.5313%209.54784%2014.5313%209.53951%2014.528C9.54618%2014.528%209.55451%2014.5313%209.56118%2014.5313ZM7.08784%2013.293C7.05451%2013.253%207.02451%2013.2147%206.99451%2013.1747C7.02451%2013.2147%207.05784%2013.253%207.08784%2013.293ZM6.90284%2013.043C6.90284%2013.043%206.90618%2013.0463%206.90618%2013.048C6.90284%2013.0447%206.90284%2013.043%206.89951%2013.0363C6.89618%2013.033%206.89618%2013.0297%206.89284%2013.0247C6.86951%2012.9897%206.84784%2012.953%206.82284%2012.918C6.84451%2012.953%206.86784%2012.9913%206.88951%2013.0247C6.89618%2013.0297%206.89784%2013.0363%206.90118%2013.0413L6.90284%2013.043ZM6.89451%2013.0263C6.85784%2012.968%206.81951%2012.913%206.77618%2012.858L6.89451%2013.0263Z'%20fill='%231652A8'%20style='fill:%231652A8;fill:color(display-p3%200.0863%200.3216%200.6588);fill-opacity:1;'/%3e%3cg%20opacity='0.85'%3e%3cpath%20d='M5.77088%200.453306L5.97588%200.578306L5.97921%200.581639L11.5225%203.94997C11.5075%203.94164%2011.4925%203.93331%2011.4775%203.92331C11.4959%203.93497%2011.5142%203.94331%2011.5325%203.95497C11.5359%203.95831%2011.5392%203.95831%2011.5409%203.95997L11.6042%203.99831H11.6075L15.2492%206.21164L15.4725%206.34831C16.3542%206.93164%2016.9342%207.9083%2016.9342%209.01664C16.9342%2010.125%2016.3575%2011.1%2015.4759%2011.685L15.2409%2011.8266L11.6059%2014.035H11.6025L11.5392%2014.0733C11.5392%2014.0733%2011.5325%2014.0766%2011.5309%2014.0783C11.5125%2014.09%2011.4942%2014.0983%2011.4759%2014.11C11.4642%2014.1183%2011.4492%2014.125%2011.4359%2014.1333C11.4175%2014.145%2011.3992%2014.1533%2011.3809%2014.1616C11.3575%2014.1733%2011.3359%2014.185%2011.3109%2014.1966C11.3075%2014.2%2011.3042%2014.2%2011.3025%2014.2C11.2842%2014.2116%2011.2625%2014.22%2011.2425%2014.2283C11.2359%2014.2316%2011.2275%2014.2333%2011.2192%2014.24C11.2009%2014.2483%2011.1859%2014.255%2011.1675%2014.2633C11.1609%2014.2666%2011.1592%2014.2683%2011.1525%2014.2683C11.1309%2014.2766%2011.1109%2014.285%2011.0859%2014.2966C11.0625%2014.3083%2011.0342%2014.3166%2011.0109%2014.325C10.9875%2014.3333%2010.9592%2014.345%2010.9359%2014.3533C10.9092%2014.3616%2010.8842%2014.37%2010.8575%2014.38C10.8309%2014.3883%2010.8059%2014.3966%2010.7792%2014.4033H10.7759C10.7492%2014.4116%2010.7242%2014.4183%2010.6975%2014.4266C10.5925%2014.455%2010.4825%2014.4783%2010.3709%2014.4983C10.3259%2014.5066%2010.2775%2014.5133%2010.2325%2014.5183C10.2259%2014.5183%2010.2242%2014.5183%2010.2209%2014.5216C10.1975%2014.525%2010.1725%2014.5283%2010.1492%2014.53C10.1009%2014.5366%2010.0525%2014.5383%2010.0042%2014.5416C9.92921%2014.5483%209.85254%2014.5483%209.77754%2014.5483H9.68088C9.65421%2014.5483%209.62921%2014.545%209.60254%2014.545C9.59421%2014.545%209.58088%2014.545%209.57254%2014.5416C9.53254%2014.5383%209.49088%2014.5366%209.45254%2014.5333C9.27421%2014.5166%209.09588%2014.4866%208.92754%2014.4466C8.90421%2014.44%208.87921%2014.435%208.85254%2014.4266C8.81921%2014.4183%208.78588%2014.41%208.74921%2014.3983C8.73088%2014.3933%208.70921%2014.3866%208.69254%2014.3816C8.66588%2014.3733%208.64088%2014.365%208.61421%2014.355C8.58754%2014.3466%208.56254%2014.3383%208.53921%2014.3266C8.51588%2014.3183%208.48754%2014.3066%208.46421%2014.2983C8.44088%2014.29%208.41921%2014.2816%208.39754%2014.27C8.38921%2014.2666%208.38254%2014.265%208.37421%2014.2583C8.35588%2014.25%208.33754%2014.2416%208.31754%2014.2316C8.31754%2014.2316%208.31421%2014.2316%208.31421%2014.2283C8.29088%2014.2166%208.26588%2014.205%208.24254%2014.1933C8.21921%2014.1816%208.19421%2014.17%208.17088%2014.155C8.14754%2014.1433%208.12254%2014.1283%208.10088%2014.1166C8.07754%2014.105%208.05254%2014.09%208.03088%2014.0766C8.00754%2014.0616%207.98588%2014.0483%207.96088%2014.0366C7.93754%2014.0216%207.91588%2014.0083%207.89421%2013.9933C7.87254%2013.9783%207.85254%2013.965%207.83088%2013.95C7.82754%2013.95%207.82754%2013.9466%207.82421%2013.945C7.80588%2013.9333%207.78754%2013.9183%207.76754%2013.905C7.76421%2013.9016%207.76088%2013.9016%207.75921%2013.9C7.74088%2013.885%207.72254%2013.8733%207.70421%2013.86C7.70088%2013.8566%207.69588%2013.855%207.69254%2013.8483C7.67421%2013.8333%207.65588%2013.82%207.63754%2013.805C7.63754%2013.805%207.63421%2013.805%207.63421%2013.8016C7.61588%2013.7866%207.59754%2013.7733%207.57754%2013.755C7.57421%2013.7516%207.57088%2013.7516%207.56921%2013.7483C7.55421%2013.7366%207.53921%2013.7216%207.52421%2013.71C7.51754%2013.705%207.51254%2013.6983%207.50588%2013.695C7.49421%2013.6833%207.47921%2013.6716%207.46588%2013.66C7.43921%2013.6366%207.41421%2013.6133%207.39088%2013.5866C7.37254%2013.57%207.35754%2013.5516%207.33921%2013.535C7.32754%2013.5233%207.31754%2013.5116%207.30588%2013.5C7.29421%2013.4883%207.28421%2013.48%207.27588%2013.4683C7.25754%2013.4516%207.24254%2013.43%207.22421%2013.4133C7.19088%2013.375%207.15754%2013.3383%207.12421%2013.2966C7.09088%2013.2566%207.06088%2013.2183%207.03088%2013.1783C7.01588%2013.1583%207.00088%2013.1383%206.98588%2013.1166C6.97088%2013.0966%206.95588%2013.0766%206.94421%2013.0533C6.94088%2013.05%206.94088%2013.0483%206.93754%2013.0416C6.93421%2013.0383%206.93421%2013.0366%206.93088%2013.03C6.90754%2012.995%206.88588%2012.9583%206.86088%2012.9233C6.88254%2012.9583%206.90588%2012.995%206.92754%2013.03C6.89088%2012.9716%206.85254%2012.9166%206.80921%2012.8616L4.07921%208.99664L1.34088%205.12997L1.23254%204.97664L1.22921%204.97164C0.92421%204.51164%200.737543%203.97497%200.707543%203.39497C0.670877%202.70497%200.86421%202.05164%201.22088%201.50997C1.78588%200.648306%202.76588%200.0566391%203.90421%20-2.75556e-05C4.58421%20-0.0150276%205.22421%200.148306%205.77088%200.453306Z'%20fill='url(%23paint0_linear_6919_104497)'%20style=''/%3e%3c/g%3e%3cpath%20d='M32.4132%2012.862C31.2015%2012.862%2030.4482%2012.0503%2030.4482%2010.7203V8.4453H32.6632V7.02697H30.4482V4.72363L28.8548%205.9053V7.0253H27.9648V8.44363H28.8548V10.7053C28.8548%2012.9953%2030.1982%2014.412%2032.4282%2014.412H32.7682V12.862H32.4132Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M19.9812%2012.5767L21.4028%2011.4651C22.0395%2012.4867%2022.8995%2013.0351%2023.9962%2013.0351C25.1962%2013.0351%2025.9512%2012.2651%2025.9512%2011.3017C25.9512%2010.1901%2024.7662%209.83506%2023.5212%209.43506C22.0545%208.96172%2020.4695%208.36839%2020.4695%206.38339C20.4695%204.73839%2021.9362%203.43506%2023.9362%203.43506C25.5812%203.43506%2026.6028%204.07172%2027.4328%205.03506L26.1145%206.01339C25.6262%205.25839%2024.8995%204.85839%2023.9362%204.85839C22.8395%204.85839%2022.1278%205.51006%2022.1278%206.35506C22.1278%207.39172%2023.2695%207.73339%2024.5128%208.14839C25.9945%208.65172%2027.6095%209.29006%2027.6095%2011.3051C27.6095%2012.9651%2026.2462%2014.5501%2024.0095%2014.5501C22.1578%2014.5501%2020.8978%2013.7651%2019.9795%2012.5801L19.9812%2012.5767Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M38.2695%2010.7367C38.2695%208.56503%2039.9379%206.8667%2042.1095%206.8667C44.2812%206.8667%2045.9062%208.4467%2045.9062%2010.6334V11.2534H39.7912C39.9979%2012.39%2040.8845%2013.1434%2042.1695%2013.1434C43.1745%2013.1434%2043.9429%2012.6117%2044.3262%2011.8134L45.6262%2012.5367C44.9762%2013.7484%2043.8095%2014.545%2042.1695%2014.545C39.8362%2014.545%2038.2695%2012.8767%2038.2695%2010.735V10.7367ZM39.8645%209.91003H44.2962C44.0595%208.8467%2043.2479%208.25503%2042.1095%208.25503C40.9712%208.25503%2040.1595%208.93503%2039.8645%209.91003Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M33.7549%2010.72C33.7549%208.42999%2035.0982%207.02832%2037.3282%207.02832H38.0366V8.56499H37.3132C36.1016%208.56499%2035.3199%209.40665%2035.3349%2010.7367V14.415H33.7549V10.7233V10.72Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M46.6882%2010.7218C46.6882%208.56517%2048.3865%206.88184%2050.5132%206.88184C52.6399%206.88184%2054.3082%208.56517%2054.3082%2010.7218V14.4135H52.7582V13.4535C52.2415%2014.1468%2051.4432%2014.5468%2050.4682%2014.5468C48.3565%2014.5468%2046.6865%2012.8935%2046.6865%2010.7218H46.6882ZM52.7882%2010.7218C52.7882%209.40684%2051.7832%208.3585%2050.5132%208.3585C49.2432%208.3585%2048.2382%209.40684%2048.2382%2010.7218C48.2382%2012.0368%2049.2282%2013.0852%2050.5132%2013.0852C51.7982%2013.0852%2052.7882%2012.0218%2052.7882%2010.7218Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M55.3027%2010.2717C55.3027%208.30667%2056.6461%206.875%2058.6411%206.875C59.7777%206.875%2060.6944%207.33333%2061.2694%208.10167C61.8161%207.33333%2062.7027%206.875%2063.8394%206.875C65.8477%206.875%2067.2511%208.27833%2067.2511%2010.2717V14.4067H65.6711V10.2867C65.6711%209.165%2064.9177%208.38167%2063.8394%208.38167C62.7611%208.38167%2062.0527%209.18%2062.0677%2010.2433V14.4083H60.4877V10.2883C60.4877%209.16667%2059.7194%208.38333%2058.6411%208.38333C57.5627%208.38333%2056.8694%209.18167%2056.8827%2010.245V14.41H55.3027V10.275V10.2717Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M68.2646%203.62695H69.8746V12.872H74.2313V14.4086H68.2646V3.62695Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M89.418%2010.7367C89.418%208.56503%2091.0863%206.8667%2093.258%206.8667C95.4296%206.8667%2097.0546%208.4467%2097.0546%2010.6334V11.2534H90.9396C91.1463%2012.39%2092.033%2013.1434%2093.318%2013.1434C94.323%2013.1434%2095.0913%2012.6117%2095.4746%2011.8134L96.7746%2012.5367C96.1246%2013.7484%2094.958%2014.545%2093.318%2014.545C90.9846%2014.545%2089.418%2012.8767%2089.418%2010.735V10.7367ZM91.013%209.91003H95.4446C95.208%208.8467%2094.3963%208.25503%2093.258%208.25503C92.1196%208.25503%2091.308%208.93503%2091.013%209.91003Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M74.4948%2010.7218C74.4948%208.56517%2076.1932%206.88184%2078.3198%206.88184C80.4465%206.88184%2082.1148%208.56517%2082.1148%2010.7218V14.4135H80.5648V13.4535C80.0482%2014.1468%2079.2498%2014.5468%2078.2748%2014.5468C76.1632%2014.5468%2074.4932%2012.8935%2074.4932%2010.7218H74.4948ZM80.5948%2010.7218C80.5948%209.40684%2079.5898%208.3585%2078.3198%208.3585C77.0498%208.3585%2076.0448%209.40684%2076.0448%2010.7218C76.0448%2012.0368%2077.0348%2013.0852%2078.3198%2013.0852C79.6048%2013.0852%2080.5948%2012.0218%2080.5948%2010.7218Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M85.0381%2014.0498L81.9814%207.0498H83.6798L85.8364%2012.1748L87.8748%207.0498H89.5431L85.0831%2017.8465H83.4581L85.0381%2014.0515V14.0498Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M98.041%2010.7151C98.041%208.4251%2099.3843%207.02344%20101.614%207.02344H102.323V8.5601H101.599C100.388%208.5601%2099.606%209.40177%2099.621%2010.7318V14.4101H98.041V10.7184V10.7151Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_6919_104497'%20x1='4.31754'%20y1='8.70664'%20x2='13.6359'%20y2='3.59497'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.2'%20stop-color='%231589EE'%20style='stop-color:%231589EE;stop-color:color(display-p3%200.0824%200.5373%200.9333);stop-opacity:1;'/%3e%3cstop%20offset='1'%20stop-color='%235EB4FF'%20style='stop-color:%235EB4FF;stop-color:color(display-p3%200.3686%200.7059%201.0000);stop-opacity:1;'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_6919_104497'%3e%3crect%20width='101.648'%20height='18'%20fill='white'%20style='fill:white;fill-opacity:1;'%20transform='translate(0.675781)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",y=l.styled_default("div")({name:"SponsorLogoWrap",class:"s8p5v5z",propsAsIs:!1}),O=()=>d.B1,R=l.styled_default(O())({name:"SponsorLogo",class:"s755yti",propsAsIs:!0}),W=l.styled_default("img")({name:"AdSponsorLogo",class:"a1dflj8e",propsAsIs:!1}),z=({mastersApp:e,sponsorLogo:a})=>e?s.jsx(y,{children:s.jsx(R,{name:"mastersLogo"})}):a?s.jsx(y,{children:s.jsx(W,{src:a,alt:"ad-sponsor-logo"})}):s.jsx(y,{children:s.jsx("img",{src:F,alt:"stream-layer-logo"})}),G=l.styled_default("div")({name:"Container",class:"cq8qxhy",propsAsIs:!1}),J=l.styled_default("div")({name:"VideoWrapper",class:"v18kj6dc",propsAsIs:!1}),K=()=>m.Fe,X=l.styled_default(K())({name:"FocusableVideo",class:"fv2nwib",propsAsIs:!0}),g=l.styled_default("div")({name:"VideoStatus",class:"v8ptucg",propsAsIs:!1}),A="caip8y5",Y=l.styled_default("div")({name:"Content",class:"ccgc65e",propsAsIs:!1}),s2=l.styled_default("h3")({name:"Title",class:"t1q3iml2",propsAsIs:!1}),e2=l.styled_default("div")({name:"Description",class:"d1y2pxs8",propsAsIs:!1}),l2=l.styled_default("img")({name:"Image",class:"ig2j4fc",propsAsIs:!1}),a2=l.styled_default("div")({name:"ImageContainer",class:"i3dd6iy",propsAsIs:!1}),t2=({instantView:e,isDetail:a,notification:t,controlVideo:o,muted:n})=>{const c=r.useRef(null),[i,p]=r.useState(!1),[f,u]=r.useState(void 0),h=e?.playVideoMuted===C.PlayVideoMuted.ENABLED,_=a&&e?.autoPlayVideo===C.AutoPlayVideo.ENABLED,B=h&&_,x=e?.heading,V=e?.body,L=x||V,[j,M]=r.useState(!0),b=t?.title,w=t?.body;return s.jsxs(G,{children:[e?.video?.url&&s.jsxs(J,{children:[s.jsx(X,{className:A,source:e.video.url,poster:e.video.thumbnailUrl,controlVideo:o,muted:n,autoPlay:a&&e.autoPlayVideo===C.AutoPlayVideo.ENABLED,ref:c,onPause:()=>{p?.(!0),M(!1)},onMute:$=>{u($)},onPlay:()=>{p?.(!1)},playMuted:h,hasNotPausedVideo:j,webos:!0}),i&&!j&&s.jsxs(g,{children:[s.jsx(d.B1,{name:"icon-pause"}),"PAUSED"]}),f&&B&&s.jsxs(g,{children:[s.jsx(d.B1,{name:"iconMute"}),"MUTED"]})]}),e?.image&&!e?.video?.url&&s.jsx(a2,{className:A,"data-rounded":e.imageMode===C.QuestionImages.ROUNDED,children:s.jsx(l2,{src:e?.image})}),s.jsxs(Y,{children:[s.jsx(s2,{children:a&&L?x:b}),s.jsx(e2,{children:a&&L?V:w})]})]})},i2=l.styled_default("div")({name:"Container",class:"cgn5uen",propsAsIs:!1}),I="c1px8nt6",C2=l.styled_default("div")({name:"Content",class:"c5et2jt",propsAsIs:!1}),o2=l.styled_default("h3")({name:"Title",class:"t1i2kpk2",propsAsIs:!1}),c2=l.styled_default("div")({name:"Description",class:"dd3lh3p",propsAsIs:!1}),d2=l.styled_default("img")({name:"Image",class:"i1gfjeu5",propsAsIs:!1}),n2=l.styled_default("div")({name:"ImageContainer",class:"i58y999",propsAsIs:!1}),v=({instantView:e,isDetail:a,notification:t,controlVideo:o,muted:n})=>{const c=e?.heading,i=e?.body,p=c||i,f=t?.title,u=t?.body;return s.jsxs(i2,{children:[e?.video?.url&&s.jsx(m.Fe,{className:I,source:e.video.url,poster:e.video.thumbnailUrl,controlVideo:o,muted:n,autoPlay:a&&e.autoPlayVideo===C.AutoPlayVideo.ENABLED}),e?.image&&!e?.video?.url&&s.jsx(n2,{className:I,"data-rounded":e.imageMode===C.QuestionImages.ROUNDED,children:s.jsx(d2,{src:e?.image})}),s.jsxs(C2,{children:[s.jsx(o2,{children:a&&p?c:f}),s.jsx(c2,{children:a&&p?i:u})]})]})},p2=l.styled_default("div")({name:"Container",class:"c1euiow",propsAsIs:!1}),r2=l.styled_default("a")({name:"WebLinkBtn",class:"w19zie3h",propsAsIs:!1}),f2=()=>d.B1,u2=l.styled_default(f2())({name:"WebLinkIcon",class:"wyg5v7z",propsAsIs:!0}),y2=({instantView:e,...a})=>s.jsxs(p2,{children:[a.webos?s.jsx(t2,{instantView:e,...a,isDetail:!0}):s.jsx(v,{instantView:e,...a,isDetail:!0}),e?.webLink&&s.jsxs(r2,{href:e?.webLink.url,target:"_blank","data-a":"web-link",children:[e?.webLink.label,s.jsx(u2,{name:"icon-external-link"})]})]}),m2=l.styled_default("div")({name:"Container",class:"c1dcxmvf",propsAsIs:!1}),h2=l.styled_default("blockquote")({name:"Quote",class:"qb4q22c",propsAsIs:!1}),x2=e=>s.jsxs(m2,{children:[e.title&&s.jsx(h2,{children:e.title}),s.jsx(H.N,{...e,isDetail:!0})]});exports.D=v;exports.O=U;exports.a=x2;exports.d=z;exports.f=y2;
|
package/lib/cjs/index14.js
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
"use strict";require("core-js/modules/es.symbol.js"),require("core-js/modules/es.symbol.description.js"),require("core-js/modules/es.symbol.iterator.js"),require("core-js/modules/es.symbol.to-primitive.js"),require("core-js/modules/es.array.filter.js"),require("core-js/modules/es.array.from.js"),require("core-js/modules/es.array.index-of.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.array.slice.js"),require("core-js/modules/es.date.to-primitive.js"),require("core-js/modules/es.number.constructor.js"),require("core-js/modules/es.object.define-properties.js"),require("core-js/modules/es.object.define-property.js"),require("core-js/modules/es.object.get-own-property-descriptor.js"),require("core-js/modules/es.object.get-own-property-descriptors.js"),require("core-js/modules/es.object.keys.js"),require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.regexp.exec.js"),require("core-js/modules/es.regexp.to-string.js"),require("core-js/modules/es.string.iterator.js"),require("core-js/modules/web.dom-collections.for-each.js"),require("core-js/modules/web.dom-collections.iterator.js");function e(r){return(e="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)}var r=["Component","options","customOptions","autoFocus"],t=["webos","options"];function o(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,n,i,s,u=[],c=!0,l=!1;try{if(i=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;c=!1}else for(;!(c=(o=i.call(t)).done)&&(u.push(o.value),u.length!==r);c=!0);}catch(a){l=!0,n=a}finally{try{if(!c&&null!=t.return&&(s=t.return(),Object(s)!==s))return}finally{if(l)throw n}}return u}}(e,r)||function(e,r){if(e){if("string"==typeof e)return n(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?n(e,r):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,o=Array(r);t<r;t++)o[t]=e[t];return o}function i(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function s(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?i(Object(t),!0).forEach(function(r){u(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function u(r,t,o){return(t=function(r){var t=function(r,t){if("object"!=e(r)||!r)return r;var o=r[Symbol.toPrimitive];if(void 0!==o){var n=o.call(r,t||"default");if("object"!=e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(r)}(r,"string");return"symbol"==e(t)?t:t+""}(t))in r?Object.defineProperty(r,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[t]=o,r}function c(e,r){if(null==e)return{};var t,o,n=function(e,r){if(null==e)return{};var t={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==r.indexOf(o))continue;t[o]=e[o]}return t}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)t=i[o],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}var l=require("react/jsx-runtime"),a=require("./index15.js"),f=require("react"),m=require("./sl-types.js"),d=require("react-countdown-circle-timer"),j=require("./index6.js"),p=function(e){var t=e.Component,o=e.options,n=e.customOptions,i=e.autoFocus,u=c(e,r),m=a.distExports.useFocusable(s(s(s({},o),n),{},{onEnterPress:function(){var r;return null==(r=e.onClick)?void 0:r.call(e,{currentTarget:m.ref.current,stopPropagation:function(){}})}}));return f.useEffect(function(){i&&m.focusSelf()},[]),l.jsx(t,s(s(s({},u),m),{},{"data-is-with-focus":"true"}))};var y=[10,10,1,0],b=m.styled_default("div")({name:"RemainingTimeCircle",class:"r165427",propsAsIs:!1}),v=m.styled_default("div")({name:"RemainingTime",class:"r17garf3",propsAsIs:!1}),g=m.O,O=m.N,h=m.S;exports.G=function(e){var r=e.className,t=e.duration,o=void 0===t?30:t,n=e.onTimerExpired,i=e.isPlaying,s=void 0===i||i;return l.jsx(d.CountdownCircleTimer,{isPlaying:s,strokeWidth:0,duration:o,colors:O,size:24,onComplete:n,children:function(e){var t=e.remainingTime;return l.jsx(v,{className:r,children:0===o?0:t})}})},exports.L=function(e){var r=e.isPlaying,t=void 0===r||r,n=e.duration,i=void 0===n?30:n,s=e.onTimerExpired,u=o(f.useState(i>10?g:O),2),c=u[0],a=u[1],j=o(f.useState(2),2),p=j[0],v=j[1];f.useEffect(function(){0===i&&(v(0),a(h))},[i]);var q=f.useCallback(function(){null==s||s(),a(h)},[s,a]),x=f.useCallback(function(e){10===e&&a(O)},[a]);return l.jsx(d.CountdownCircleTimer,{isPlaying:t,duration:i,colors:m.I,colorsTime:y,size:32,strokeWidth:p,trailStrokeWidth:2,trailColor:c,onComplete:q,onUpdate:x,children:function(e){var r=e.remainingTime;return l.jsx(b,{children:0===i?0:r})}})},exports.O=function(e,r){return function(o){var n=o.webos,i=o.options,u=c(o,t);return n?l.jsx(p,s({Component:e,options:r,customOptions:i},u)):l.jsx(e,s({},u))}},exports.d=function(e){var r=e.height,t=void 0===r?"37px":r,o=e.width,n=void 0===o?"37px":o;return l.jsx("div",{style:{height:t,width:n},children:l.jsx(j.B1,{name:"loader"})})};
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),o=require("react"),s=require("./sl-types.js"),se=require("./index10.js"),v=require("./index8.js"),n=require("./useStreamLayerApp2.js"),me=require("./index9.js"),he=require("./index5.js"),Ne=s.styled_default("div")({name:"SDKContainer",class:"sopqfe6",propsAsIs:!1}),xe=s.styled_default("div")({name:"SDKScrollContainer",class:"s102vcph",propsAsIs:!1}),ne=s.styled_default("div")({name:"SDKContentContainer",class:"s1meqjjv",propsAsIs:!1}),Oe=()=>ne,ae=s.styled_default(Oe())({name:"SDKWhiteContainer",class:"s1burm22",propsAsIs:!0}),Ve=()=>ae,Le=s.styled_default(Ve())({name:"SDKSummaryContainer",class:"sm5r3j5",propsAsIs:!0}),Be=s.styled_default("div")({name:"TabsContainer",class:"tysxwr6",propsAsIs:!1}),Fe=()=>ne,We=s.styled_default(Fe())({name:"LeaderboardContainer",class:"l9er3b1",propsAsIs:!0}),Me=()=>ae,ze=s.styled_default(Me())({name:"TabsNavContainer",class:"t19dtrb3",propsAsIs:!0}),Ye=s.styled_default("div")({name:"UserSummaryContainer",class:"u1552n3j",propsAsIs:!1});let Ue=class{observers=new Set;subscribe(r){this.observers.add(r)}unsubscribe(r){this.observers.delete(r)}notify(r){this.observers.forEach(l=>l(r))}};const Y=new Ue,Ke={hiding:!1,finished:!1},Ie=()=>{const[t,r]=o.useState(Ke),l=o.useRef(null);o.useEffect(()=>{const u=y=>{r(y)};return Y.subscribe(u),()=>{Y.unsubscribe(u)}},[]);const d=o.useCallback(u=>{const y={hiding:!0,finished:!1};l.current&&clearTimeout(l.current),u?.delay?l.current=setTimeout(()=>{Y.notify(y)},u?.delay):Y.notify(y)},[]),a=o.useCallback(()=>{t.hiding&&(l.current=null,Y.notify({hiding:!1,finished:!0}))},[t.hiding]);return{...t,runAnimation:d,onAnimationEnd:a}},He=s.styled_default("div")({name:"Container",class:"c1pgyo67",propsAsIs:!1}),Ze="sx17qu6",Ge="h1692c5m",re=({children:t,style:r,className:l,enabled:d=!0,hiding:a,onAnimationEnd:u})=>e.jsx(He,{style:r,className:s.cx_default(l,d&&Ze,d&&a&&Ge),onAnimationEnd:u,children:t}),Je=()=>re,Xe=s.styled_default(Je())({name:"GrowingContainer",class:"gck55ev",propsAsIs:!0}),je=({children:t,style:r,enabled:l,animate:d,...a})=>{const u=o.useRef(null);return e.jsx(Xe,{...a,enabled:l&&d,style:{...r,...(()=>{const y=u?.current,I=(y&&window.getComputedStyle(y))?.getPropertyValue("height");return l?{height:d?I:0}:{}})()},children:e.jsx("div",{ref:u,children:t})})},es=s.styled_default("div")({name:"Container",class:"c1gcvmcj",propsAsIs:!1}),ss=s.styled_default("div")({name:"Title",class:"tnr592a",propsAsIs:!1}),ts=s.styled_default("div")({name:"Description",class:"d1e8jqpv",propsAsIs:!1}),ns=()=>v.B1,as=s.styled_default(ns())({name:"Icon",class:"i1vs651k",propsAsIs:!0}),rs=({icon:t,title:r,description:l})=>e.jsxs(es,{children:[e.jsx(as,{name:t}),e.jsx(ss,{children:r}),e.jsx(ts,{children:l})]}),is=()=>je,os=s.styled_default(is())({name:"ShowInContainer",class:"s16sbdnm",propsAsIs:!0}),N=s.styled_default("div")({name:"FeedbackContainer",class:"fbhorgl",propsAsIs:!1}),ue="s1g20ja7",ls=s.styled_default("div")({name:"Container",class:"c455ozj",propsAsIs:!1}),ds=()=>v.B1,pe=s.styled_default(ds())({name:"IconPrediction",class:"i1913njx",propsAsIs:!0}),U=s.styled_default("div")({name:"FeedbackIconWrap",class:"fzfk69z",propsAsIs:!1}),H=s.styled_default("div")({name:"FeedbackHeader",class:"fx87qaj",propsAsIs:!1}),cs=s.styled_default("span")({name:"FeedbackTitle",class:"fvek9ew",propsAsIs:!1}),O=s.styled_default("span")({name:"FeedbackDescription",class:"f1kbtp09",propsAsIs:!1}),us=s.styled_default("div")({name:"FeedbackTitleWrap",class:"f4i8rro",propsAsIs:!1}),ps=s.styled_default("div")({name:"FeedbackResultDescriptionWrap",class:"fqyssr",propsAsIs:!1}),fs=()=>O,ys=s.styled_default(fs())({name:"FeedbackDynamicDescription",class:"fyv794i",propsAsIs:!0}),ms=()=>O,hs=s.styled_default(ms())({name:"FeedbackResultDescription",class:"f1jkj9vx",propsAsIs:!0}),te=s.styled_default("div")({name:"FeedbackText",class:"f1pxh3a6",propsAsIs:!1}),xs=s.styled_default("span")({name:"DynamicWrap",class:"d1afvufn",propsAsIs:!1}),Is=s.styled_default("div")({name:"EarlyFeedbackDescription",class:"eq8u24d",propsAsIs:!1}),fe=({feedbackMessages:t,questionVotedCorrectly:r,questionVoted:l,questionType:d,hasCorrectAnswer:a,showExpiredNotification:u,showClosedNotificationTrivia:y,votedInCurrentRender:I,votedAfterQuestionClosed:i,voteErrorMessage:f,enteredAnActiveQuestion:C,marketClosed:g,percentsAnimated:j,votedAnswer:R,isEarlyPrediction:m,correctAnswer:T,onAnimationEnd:_})=>{const b=l&&(d===n.QuestionType.TRIVIA||d===n.QuestionType.PREDICTION),Q=d===n.QuestionType.PREDICTION&&!a,q=g&&d===n.QuestionType.PREDICTION&&!l||d===n.QuestionType.PREDICTION&&i&&I&&C,A=b&&Q,k=b&&a,h=d===n.QuestionType.PREDICTION&&l&&I&&a,V=l&&d===n.QuestionType.POLL&&I,E=r?"correct":"incorrect",S=r?t?.correctFeedback:t?.incorrectFeedback;return u||y||A||k||q||V||h||f?e.jsx(os,{enabled:I,animate:!f&&u?!0:j,onAnimationEnd:_,children:e.jsxs(ls,{"data-prediction":Q,children:[f&&!q&&e.jsxs(N,{children:[!m&&e.jsx(pe,{name:"questionExpired"}),e.jsx(O,{children:f})]}),!f&&u&&e.jsxs(N,{children:[!m&&e.jsx(U,{children:e.jsx(v.B1,{name:"questionExpired"})}),e.jsxs("div",{children:[e.jsx(H,{children:e.jsx(O,{children:"Question Expired"})}),e.jsx(te,{children:"You can still answer to see if you're correct, but no points are awarded for expired questions."})]})]}),!f&&y&&e.jsxs(N,{className:s.cx_default(ue),children:[e.jsx(U,{children:e.jsx(v.B1,{name:"questionExpired"})}),e.jsxs("div",{children:[e.jsx(H,{children:e.jsx(O,{children:"Question Closed"})}),e.jsx(te,{children:"This question was answered after the moderator closed the question. So the points for this answer won’t tally."})]})]}),q&&e.jsxs(N,{children:[!m&&e.jsx(U,{children:e.jsx(v.B1,{name:"questionExpired"})}),e.jsxs("div",{children:[e.jsx(H,{children:e.jsx(O,{children:m?a?"The results are already in!":"Question is Closed":"Question Closed"})}),e.jsx(te,{children:m?e.jsx(Is,{children:a?`Correct: ${T?.text}`:"Event affecting the outcome has occurred."}):"This event has already taken place, so the ability to make a prediction on its outcome is no longer available."})]})]}),!f&&A&&e.jsxs(N,{children:[!m&&e.jsx(pe,{name:"icon-prediction"}),e.jsxs(ys,{children:["Your pick has been recorded. ",e.jsx(xs,{children:"We’ll notify you of the result."})]})]}),!f&&V&&e.jsxs(N,{children:[!m&&e.jsx(U,{"data-feedback-type":"correct",children:e.jsx(v.B1,{name:"correct"})}),e.jsx(O,{children:"Thanks for answering. Please stay tuned for the next question."})]}),!f&&(k||h)&&e.jsxs(N,{className:s.cx_default(y&&ue),children:[!m&&e.jsx(U,{"data-feedback-type":E,children:e.jsx(v.B1,{name:E})}),e.jsx("div",{children:e.jsxs(H,{children:[m?e.jsx(us,{children:E==="incorrect"?e.jsxs(e.Fragment,{children:[e.jsx("div",{children:"So close!"}),e.jsx("div",{children:"Better luck next time"})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{children:"That’s correct!"}),e.jsx("div",{children:"You chose wisely."})]})}):e.jsx(cs,{"data-feedback-type":E,children:S?.title}),m?e.jsxs(ps,{children:[e.jsxs("div",{children:["Your pick: ",R?.text]}),e.jsx("div",{children:E==="incorrect"?`Correct: ${T?.text}`:""})]}):e.jsx(hs,{children:S?.description})]})})]})]})}):null},js=s.styled_default("div")({name:"Container",class:"c1hygj0s",propsAsIs:!1}),Ts=s.styled_default("div")({name:"Title",class:"t1r84tez",propsAsIs:!1}),As=s.styled_default("div")({name:"Description",class:"d1aj1a7k",propsAsIs:!1}),vs=s.styled_default("div")({name:"AdditionalDescription",class:"ax09ezs",propsAsIs:!1}),Cs=()=>v.B1,Es=s.styled_default(Cs())({name:"Icon",class:"inkrac",propsAsIs:!0}),gs=({icon:t,title:r,description:l,additionalDescription:d})=>e.jsxs(js,{children:[t&&e.jsx(Es,{name:t}),e.jsx(Ts,{children:r}),e.jsx(As,{children:l}),d&&e.jsx(vs,{children:d})]}),Te=s.styled_default("div")({name:"Container",class:"c14ielyq",propsAsIs:!1}),bs=()=>xe,$s=s.styled_default(bs())({name:"QuestionScrollContainer",class:"q1tlqx57",propsAsIs:!0}),ws=s.styled_default("div")({name:"TopShadow",class:"t1hq58md",propsAsIs:!1}),_s=s.styled_default("div")({name:"BottomShadow",class:"b1c8nxcx",propsAsIs:!1}),Qs=s.styled_default("div")({name:"SponsorLogo",class:"siozuc3",propsAsIs:!1}),Ae=s.styled_default("div")({name:"Content",class:"cpnc44r",propsAsIs:!1}),Ps=s.styled_default("div")({name:"Title",class:"tq7p3w0",propsAsIs:!1}),Rs=s.styled_default("div")({name:"OptionsWrap",class:"o1jlfj9g",propsAsIs:!1}),ve=s.styled_default("div")({name:"Options",class:"o84pmnd",propsAsIs:!1}),qs=()=>re,ye=s.styled_default(qs())({name:"AlertContainer",class:"a1dybjw9",propsAsIs:!0}),ks=s.styled_default("div")({name:"EarlyPrediction",class:"e1l05ict",propsAsIs:!1}),Ss=()=>v.B1,Ds=s.styled_default(Ss())({name:"EarlyPredictionIcon",class:"ez9juex",propsAsIs:!0}),Ns=()=>v.B1,Os=s.styled_default(Ns())({name:"SponsorIcon",class:"s8p4aob",propsAsIs:!0}),Vs=s.styled_default("button")({name:"ButtonContainer",class:"b1b6dl8t",propsAsIs:!1}),Ls=s.styled_default("div")({name:"ButtonPctWrap",class:"b4iik8i",propsAsIs:!1}),Bs=s.styled_default("div")({name:"ButtonPct",class:"b1gq1lnf",propsAsIs:!1}),Fs=s.styled_default("span")({name:"ButtonBody",class:"b1j65z51",propsAsIs:!1}),Ws=s.styled_default("div")({name:"IconContainer",class:"i19tpfua",propsAsIs:!1}),Ms=s.styled_default("div")({name:"IconWrap",class:"i1tubmma",propsAsIs:!1}),Ce=s.styled_default("img")({name:"Icon",class:"i1grrgwj",propsAsIs:!1}),zs=()=>Ce,Ys=s.styled_default(zs())({name:"IconDefault",class:"ibemyq8",propsAsIs:!0}),Us=()=>Ce,Ks=s.styled_default(Us())({name:"IconCircle",class:"i1dceht",propsAsIs:!0}),Hs=s.styled_default("span")({name:"Title",class:"t116q4vq",propsAsIs:!1}),Zs=s.styled_default("span")({name:"Indicators",class:"i17ajcu2",propsAsIs:!1}),Gs=s.styled_default("div")({name:"PtsWrap",class:"pu9kmlb",propsAsIs:!1}),Js=s.styled_default("span")({name:"Pts",class:"p1j2j0s0",propsAsIs:!1}),Xs=s.styled_default("span")({name:"Percentage",class:"p1mzj1sj",propsAsIs:!1}),et=()=>v.B1,st=s.styled_default(et())({name:"CheckIcon",class:"cichgz8",propsAsIs:!0}),tt={[n.QuestionImages.CENTERED]:t=>e.jsx(Ys,{"data-testid":"vote-icon",alt:"option-icon",src:t}),[n.QuestionImages.TRANSPARENT]:t=>e.jsx(Ws,{"data-testid":"vote-icon",children:e.jsx(Ms,{style:{backgroundImage:`url(${t})`}})}),[n.QuestionImages.ROUNDED]:t=>e.jsx(Ks,{"data-testid":"vote-icon",alt:"option-icon",src:t}),[n.QuestionImages.NONE]:()=>null,[n.QuestionImages.UNSET]:()=>null},nt=({questionType:t,hasCorrectAnswer:r,correct:l,youVoted:d,questionVoted:a})=>{if(t===n.QuestionType.POLL&&d)return"voted";if(t===n.QuestionType.PREDICTION){if(!r&&a)return d?"voted":"unset";if(r&&a)return d?l?"correct":"incorrect":"unset";if(d)return"correct"}return t===n.QuestionType.TRIVIA&&a&&d?l?"correct":"incorrect":"unset"},at=({questionType:t,questionVoted:r,correct:l,hasCorrectAnswer:d,questionStatus:a})=>t===n.QuestionType.TRIVIA?r&&l:t===n.QuestionType.PREDICTION?r&&l&&d||a===n.QuestionStatus.RESOLVED&&l:!1,rt=me.b(Vs),it=t=>{const{id:r,icon:l,text:d,percentageDecimal:a,points:u,onVote:y,markThatVoted:I,firstOption:i,onPercentsAnimated:f,youSelected:C,youVoted:g,questionVoted:j,imageMode:R,answerTimeExpired:m,questionStatus:T,isLoading:_,questionType:b,correct:Q,hasCorrectAnswer:q,marketClosed:A,isEarlyPrediction:k,isAd:h,webos:V}=t,[E,S]=o.useState(0),L=nt(t),M=at({questionType:b,questionVoted:j,correct:Q,hasCorrectAnswer:q,questionStatus:T}),P=A&&b===n.QuestionType.PREDICTION,K=j||P,B=b===n.QuestionType.PREDICTION&&!j&&!A&&!h,z=j&&!C&&L!=="incorrect"&&!g;return o.useLayoutEffect(()=>{S(0),requestAnimationFrame(()=>{S(a)})},[a]),e.jsxs(rt,{value:r,webos:V,autoFocus:i,"data-selected":C,"data-answer-state":L,disabled:j||_||m||P,"data-is-not-checked":z,"data-a":"intr",onClick:Z=>{I(b===n.QuestionType.PREDICTION?A:T===n.QuestionStatus.RESOLVED),y(Z)},"data-is-ad":h,children:[e.jsx(Ls,{children:e.jsx(Bs,{"data-answer-state":L,"data-is-not-checked":z,style:{width:`${K?E:0}%`},onTransitionEnd:()=>{P||f?.()},"data-is-ad":h})}),e.jsxs(Fs,{"data-a":"intr",children:[l&&R&&tt[R]?.(l),e.jsx(Hs,{"data-a":"intr",children:d}),B&&e.jsxs(Gs,{children:[u,e.jsx(Js,{children:"pts"})]}),K&&e.jsxs(Zs,{children:[M&&e.jsx(st,{name:k?"selectedBetPack":"selected"}),e.jsx(Xs,{children:e.jsx(he.p,{value:a,suffix:"%"})})]})]})]})},ot=()=>je,lt=s.styled_default(ot())({name:"ShowInContainer",class:"sie6cqo",propsAsIs:!0}),dt=s.styled_default("div")({name:"WinBarContainer",class:"wgizw4u",propsAsIs:!1}),ct=s.styled_default("div")({name:"Content",class:"c1l3ucjp",propsAsIs:!1}),ut=s.styled_default("div")({name:"Title",class:"tx7j799",propsAsIs:!1}),pt=()=>v.B1,ft=s.styled_default(pt())({name:"WinIcon",class:"w4lwuj0",propsAsIs:!0}),yt=s.styled_default("div")({name:"Points",class:"po9i64o",propsAsIs:!1}),mt=s.styled_default("span")({name:"PointsCount",class:"pe5g05h",propsAsIs:!1}),ht=s.styled_default("span")({name:"PointsUnits",class:"p1hdtpmb",propsAsIs:!1}),xt=({title:t,points:r,isPlayingTimer:l,isTimer:d,animatePoints:a,questionType:u,timerDuration:y,votedInCurrentRender:I,percentsAnimated:i,onTimerExpired:f})=>e.jsx(lt,{enabled:u===n.QuestionType.PREDICTION&&I,animate:i,children:e.jsxs(dt,{style:{justifyContent:u===n.QuestionType.PREDICTION?"center":"space-between"},children:[e.jsxs(ct,{children:[t&&e.jsx(ut,{children:t}),r!==void 0&&u!==n.QuestionType.POLL&&e.jsxs(e.Fragment,{children:[e.jsx(ft,{name:"icon-trophy"}),e.jsxs(yt,{children:[e.jsx(mt,{children:a?e.jsx(he.p,{value:r,delay:.3}):r}),e.jsx(ht,{children:"PTS"})]})]})]}),d&&u!==n.QuestionType.PREDICTION&&e.jsx(me.L,{isPlaying:l,onTimerExpired:f,duration:y})]})}),It=(t,r)=>t==="already_voted"?r===n.QuestionType.POLL?"You’ve already answered this question on another device.":"You’ve already answered this question on another device. So the points for this answer won't tally.":"Something went wrong, please try again",jt=()=>e.jsx(Te,{children:e.jsxs(Ae,{children:[e.jsx(se.i,{loading:!0,style:{height:"40px",borderRadius:"100px"}}),e.jsx(se.i,{loading:!0,style:{height:"24px",margin:"16px 0"}}),e.jsx(ve,{children:Array.from({length:5}).map((t,r)=>e.jsx(se.i,{loading:!0,style:{height:"44px"}},r))})]})}),Tt=({openedQuestion:t,isLoading:r,vote:l,close:d,isEarlyPrediction:a,mastersApp:u,webos:y})=>{const I=t.subject,i=t.type,f=t.status,C=t.options?.options,g=t.marketClosed,j=t.id,R=o.useRef(),m=o.useRef(),T=u?!1:t?.adUnit===n.AdUnit.STANDART,[_,b]=o.useState(!1),[Q,q]=o.useState(!1),[A,k]=o.useState(!0),[h,V]=o.useState(!1),[E,S]=o.useState(!1),[L,M]=o.useState(""),[P,K]=o.useState(""),[B,z]=o.useState(!1),[Z,Ee]=o.useState(!1),[ie,ge]=o.useState(!1),{runAnimation:F,finished:oe}=Ie();o.useEffect(()=>{oe&&d(j)},[d,oe]),o.useEffect(()=>{i===n.QuestionType.PREDICTION?g&&k(!1):f===n.QuestionStatus.RESOLVED&&k(!1)},[]);const be=o.useCallback(p=>{q(p),b(!0)},[]),$e=o.useCallback(()=>{a&&b(!1)},[a]),G=o.useRef(!1),le=o.useCallback(()=>{m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{ge(!0),F({delay:5500})},4e3)},[F]),de=o.useCallback(async p=>{if(!G.current&&(G.current=!0,j)){const w=p.currentTarget.value;M(w);try{await l(j,w),T&&le()}catch(W){K(It(W.message,i)),M(""),console.error("Error while voting",W),G.current=!1}}},[i,j,M,l,T,le]),we=o.useCallback(()=>{V(!0),F({delay:3500})},[F]),_e=o.useCallback(()=>{S(!0),F({delay:3500})},[F]),c=t?.answers.find(p=>p.youVoted===!0),x=o.useMemo(()=>!!t?.answers.find(p=>p.correct===!0),[t]),$=o.useMemo(()=>t?.answers.find(p=>p.correct===!0),[t]);o.useEffect(()=>{c&&_&&!Z&&(R.current=setTimeout(_e,1e4),Ee(!0))},[c]),o.useEffect(()=>()=>{clearTimeout(R.current),clearTimeout(m.current)},[]);const J=o.useMemo(()=>t?t.answers.map(p=>({...p,questionVoted:!!c,youSelected:L===p.id,isLoading:r,hasCorrectAnswer:x,questionType:t.type,answerTimeExpired:h,questionStatus:f,imageMode:t.appearance?.images,onVote:de})):[],[x,h,r,t,c,f,de,L]);o.useEffect(()=>{const p=J.some(({percentageDecimal:W})=>W!==0),w=c&&i===n.QuestionType.PREDICTION;P&&(a||!p||g&&w)&&z(!0)},[J,P,a,g,i,c]);const ce=C&&(C.case==="trivia"||C.case==="prediction")?C.value:void 0,D=f===n.QuestionStatus.RESOLVED&&i===n.QuestionType.TRIVIA&&!c&&!A,X=i===n.QuestionType.TRIVIA&&Q,ee=o.useMemo(()=>T?!1:i===n.QuestionType.PREDICTION?a?!1:!!(c&&!x||c&&x&&$?.youVoted):!0,[i,c,x,$,a,T]),Qe=o.useMemo(()=>{if(i===n.QuestionType.PREDICTION&&c&&(!x||x&&$?.youVoted))return c.points;if(!(D||h))return c?c.correct?c.pointsEarned:0:$?.points},[h,c,$,D,i,x]),Pe=o.useMemo(()=>i===n.QuestionType.PREDICTION&&c?x?x&&$?.youVoted?"You won":"":"To win":D||h?"Time expired":i===n.QuestionType.POLL?"Time remaining":c?"You won":"To win",[h,i,c,D,x,$]),Re=!ee||ee&&i===n.QuestionType.PREDICTION&&_&&!B,qe=(i===n.QuestionType.TRIVIA||i===n.QuestionType.PREDICTION)&&c&&x&&$?.youVoted,ke=c||D||X||i===n.QuestionType.TRIVIA&&f===n.QuestionStatus.RESOLVED&&A,Se=!a&&(h||E)||ie,De=()=>{const p=()=>i===n.QuestionType.TRIVIA?c?.correct?`That's correct!
|
|
2
|
+
You chose wisely.`:`So close!
|
|
3
|
+
Better luck next time.`:i===n.QuestionType.POLL?`Thanks for answering.
|
|
4
|
+
Please stay tuned for the next question.`:i===n.QuestionType.PREDICTION?"Stay tuned to see if your prediction was correct.":"",w=()=>i===n.QuestionType.TRIVIA?`Your Pick: ${$?.text}`:i===n.QuestionType.POLL||i===n.QuestionType.PREDICTION?`Your Pick: ${c?.text}`:"",W=()=>i===n.QuestionType.TRIVIA&&C?.case==="trivia"?C?.value.explanation:i===n.QuestionType.PREDICTION?I:"";return ie?e.jsx(ye,{children:e.jsx(gs,{title:p(),description:w(),...c?.correct||i===n.QuestionType.POLL||i===n.QuestionType.PREDICTION?{icon:"icon-correct"}:{},...i===n.QuestionType.TRIVIA||i===n.QuestionType.PREDICTION?{additionalDescription:W()}:{}})}):!a&&(h||E)?e.jsx(ye,{children:e.jsx(rs,{icon:"icon-check-circle",title:"More to come...",description:E?e.jsxs(e.Fragment,{children:["Stay tuned for more questions ",e.jsx("br",{})," and insights."]}):e.jsxs(e.Fragment,{children:["Watch for additional enhanced stream ",e.jsx("br",{})," interactive experience."]})})}):null};return e.jsxs($s,{children:[a&&e.jsx(ws,{}),e.jsx(Te,{style:a?{marginTop:"-40px"}:{},children:e.jsxs(Ae,{children:[!a&&!T&&e.jsx(fe,{feedbackMessages:ce,questionVoted:!!c,questionVotedCorrectly:c?.correct,questionType:i,hasCorrectAnswer:x,showExpiredNotification:D,showClosedNotificationTrivia:X,votedInCurrentRender:_,votedAfterQuestionClosed:Q,enteredAnActiveQuestion:A,marketClosed:g,percentsAnimated:B,voteErrorMessage:P,votedAnswer:c}),ee&&e.jsx(xt,{title:Pe,points:Qe,onTimerExpired:we,questionType:t.type,isTimer:!r,isPlayingTimer:!c,animatePoints:qe,timerDuration:ke?0:Number(t?.appearance?.autoHideInterval||"30"),votedInCurrentRender:_,percentsAnimated:B}),Se?De():e.jsxs(e.Fragment,{children:[a&&e.jsxs(ks,{children:[e.jsx(Ds,{name:"iconEarlyPrediction"}),"EARLY PREDICTION"]}),e.jsx(Ps,{style:Re?{marginTop:0}:{},children:I}),a&&e.jsx(fe,{feedbackMessages:ce,questionVoted:!!c,questionVotedCorrectly:c?.correct,questionType:i,hasCorrectAnswer:x,showExpiredNotification:D,showClosedNotificationTrivia:X,votedInCurrentRender:_,votedAfterQuestionClosed:Q,enteredAnActiveQuestion:A,marketClosed:g,percentsAnimated:B,voteErrorMessage:P,isEarlyPrediction:a,correctAnswer:$,votedAnswer:c,onAnimationEnd:$e}),e.jsxs(Rs,{children:[e.jsx(ve,{children:J.sort((p,w)=>p.id>w.id?1:-1).map((p,w)=>e.jsx(it,{...p,firstOption:w===0,markThatVoted:be,onPercentsAnimated:()=>z(!0),votedAfterQuestionClosed:Q,enteredAnActiveQuestion:A,marketClosed:g,isEarlyPrediction:a,isAd:T,webos:y},p.id))}),a&&e.jsxs(e.Fragment,{children:[e.jsx(_s,{}),e.jsx(Qs,{children:e.jsx(Os,{name:"mastersLogoWhite"})})]})]})]})]})})]})};exports.C=We;exports.Qe=Tt;exports.S=ze;exports.Ze=jt;exports.a=ae;exports.c=xe;exports.d=Ye;exports.f=re;exports.l=Be;exports.m=Le;exports.n=ne;exports.p=Ne;exports.y=Ie;
|
package/lib/cjs/index15.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("core-js/modules/es.symbol.js"),require("core-js/modules/es.symbol.description.js"),require("core-js/modules/es.symbol.iterator.js"),require("core-js/modules/es.array.concat.js"),require("core-js/modules/es.array.filter.js"),require("core-js/modules/es.array.includes.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.array.map.js"),require("core-js/modules/es.array.slice.js"),require("core-js/modules/es.array.sort.js"),require("core-js/modules/es.array.splice.js"),require("core-js/modules/es.number.is-integer.js"),require("core-js/modules/es.object.assign.js"),require("core-js/modules/es.object.define-property.js"),require("core-js/modules/es.object.entries.js"),require("core-js/modules/es.object.get-own-property-descriptor.js"),require("core-js/modules/es.object.keys.js"),require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.parse-int.js"),require("core-js/modules/es.reflect.construct.js"),require("core-js/modules/es.regexp.constructor.js"),require("core-js/modules/es.regexp.exec.js"),require("core-js/modules/es.regexp.to-string.js"),require("core-js/modules/es.string.includes.js"),require("core-js/modules/es.string.iterator.js"),require("core-js/modules/es.string.replace.js"),require("core-js/modules/esnext.global-this.js"),require("core-js/modules/web.dom-collections.for-each.js"),require("core-js/modules/web.dom-collections.iterator.js");function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var e=require("react"),r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var n,o,i,u,s,a,c,f,l,d,h,p,v,y,g,b,m,F,C,_,j,w,x,K,O,E,M,A,D,P,L={exports:{}};function R(){if(o)return n;return o=1,n=function(e){var r=t(e);return null!=e&&("object"==r||"function"==r)}}function N(){if(u)return i;u=1;var e="object"==t(r)&&r&&r.Object===Object&&r;return i=e}function B(){if(a)return s;a=1;var e=N(),r="object"==("undefined"==typeof self?"undefined":t(self))&&self&&self.Object===Object&&self,n=e||r||Function("return this")();return s=n}function S(){if(p)return h;p=1;var t=function(){if(d)return l;d=1;var t=/\s/;return l=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}}(),e=/^\s+/;return h=function(r){return r?r.slice(0,t(r)+1).replace(e,""):r}}function k(){if(y)return v;y=1;var t=B().Symbol;return v=t}function T(){if(_)return C;_=1;var t=k(),e=function(){if(b)return g;b=1;var t=k(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;return g=function(t){var e=r.call(t,o),i=t[o];try{t[o]=void 0;var u=!0}catch(Su){}var s=n.call(t);return u&&(e?t[o]=i:delete t[o]),s}}(),r=function(){if(F)return m;F=1;var t=Object.prototype.toString;return m=function(e){return t.call(e)}}(),n=t?t.toStringTag:void 0;return C=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":n&&n in Object(t)?e(t):r(t)}}function U(){if(w)return j;return w=1,j=function(e){return null!=e&&"object"==t(e)}}function q(){if(K)return x;K=1;var e=T(),r=U();return x=function(n){return"symbol"==t(n)||r(n)&&"[object Symbol]"==e(n)}}function z(){if(A)return M;A=1;var t=R(),e=function(){if(f)return c;f=1;var t=B();return c=function(){return t.Date.now()}}(),r=function(){if(E)return O;E=1;var t=S(),e=R(),r=q(),n=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,u=parseInt;return O=function(s){if("number"==typeof s)return s;if(r(s))return NaN;if(e(s)){var a="function"==typeof s.valueOf?s.valueOf():s;s=e(a)?a+"":a}if("string"!=typeof s)return 0===s?s:+s;s=t(s);var c=o.test(s);return c||i.test(s)?u(s.slice(2),c?2:8):n.test(s)?NaN:+s}}(),n=Math.max,o=Math.min;return M=function(i,u,s){var a,c,f,l,d,h,p=0,v=!1,y=!1,g=!0;if("function"!=typeof i)throw new TypeError("Expected a function");function b(t){var e=a,r=c;return a=c=void 0,p=t,l=i.apply(r,e)}function m(t){var e=t-h;return void 0===h||e>=u||e<0||y&&t-p>=f}function F(){var t=e();if(m(t))return C(t);d=setTimeout(F,function(t){var e=u-(t-h);return y?o(e,f-(t-p)):e}(t))}function C(t){return d=void 0,g&&a?b(t):(a=c=void 0,l)}function _(){var t=e(),r=m(t);if(a=arguments,c=this,h=t,r){if(void 0===d)return function(t){return p=t,d=setTimeout(F,u),v?b(t):l}(h);if(y)return clearTimeout(d),d=setTimeout(F,u),b(h)}return void 0===d&&(d=setTimeout(F,u)),l}return u=r(u)||0,t(s)&&(v=!!s.leading,f=(y="maxWait"in s)?n(r(s.maxWait)||0,u):f,g="trailing"in s?!!s.trailing:g),_.cancel=function(){void 0!==d&&clearTimeout(d),p=0,a=h=c=d=void 0},_.flush=function(){return void 0===d?l:C(e())},_},M}function H(){if(P)return D;P=1;var t=T(),e=R();return D=function(r){if(!e(r))return!1;var n=t(r);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}}var I,$=B()["__core-js_shared__"],W=(I=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||""))?"Symbol(src)_1."+I:"";var G=function(t){return!!W&&W in t},Y=Function.prototype.toString;var V=function(t){if(null!=t){try{return Y.call(t)}catch(Su){}try{return t+""}catch(Su){}}return""},J=H(),Q=G,X=R(),Z=V,tt=/^\[object .+?Constructor\]$/,et=Function.prototype,rt=Object.prototype,nt=et.toString,ot=rt.hasOwnProperty,it=RegExp("^"+nt.call(ot).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ut=function(t){return!(!X(t)||Q(t))&&(J(t)?it:tt).test(Z(t))},st=function(t,e){return null==t?void 0:t[e]};var at,ct,ft,lt,dt,ht,pt,vt,yt,gt,bt,mt,Ft,Ct,_t=function(t,e){var r=st(t,e);return ut(r)?r:void 0};function jt(){if(ct)return at;ct=1;var t=_t(Object,"create");return at=t}function wt(){if(Ct)return Ft;Ct=1;var t=function(){if(lt)return ft;lt=1;var t=jt();return ft=function(){this.__data__=t?t(null):{},this.size=0}}(),e=ht?dt:(ht=1,dt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}),r=function(){if(vt)return pt;vt=1;var t=jt(),e=Object.prototype.hasOwnProperty;return pt=function(r){var n=this.__data__;if(t){var o=n[r];return"__lodash_hash_undefined__"===o?void 0:o}return e.call(n,r)?n[r]:void 0}}(),n=function(){if(gt)return yt;gt=1;var t=jt(),e=Object.prototype.hasOwnProperty;return yt=function(r){var n=this.__data__;return t?void 0!==n[r]:e.call(n,r)}}(),o=function(){if(mt)return bt;mt=1;var t=jt();return bt=function(e,r){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=t&&void 0===r?"__lodash_hash_undefined__":r,this}}();function i(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Ft=i}var xt,Kt,Ot=function(){this.__data__=[],this.size=0};function Et(){if(Kt)return xt;return Kt=1,xt=function(t,e){return t===e||t!=t&&e!=e}}var Mt=Et();var At=function(t,e){for(var r=t.length;r--;)if(Mt(t[r][0],e))return r;return-1},Dt=At,Pt=Array.prototype.splice;var Lt=At;var Rt=At;var Nt=At;var Bt=Ot,St=function(t){var e=this.__data__,r=Dt(e,t);return!(r<0)&&(r==e.length-1?e.pop():Pt.call(e,r,1),--this.size,!0)},kt=function(t){var e=this.__data__,r=Lt(e,t);return r<0?void 0:e[r][1]},Tt=function(t){return Rt(this.__data__,t)>-1},Ut=function(t,e){var r=this.__data__,n=Nt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function qt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}qt.prototype.clear=Bt,qt.prototype.delete=St,qt.prototype.get=kt,qt.prototype.has=Tt,qt.prototype.set=Ut;var zt,Ht,It,$t,Wt,Gt,Yt,Vt,Jt,Qt,Xt,Zt,te,ee,re,ne,oe,ie,ue,se,ae,ce,fe,le,de,he,pe,ve,ye,ge,be,me,Fe,Ce,_e=qt,je=_t(B(),"Map");function we(){if(Gt)return Wt;Gt=1;var e=$t?It:($t=1,It=function(e){var r=t(e);return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e});return Wt=function(t,r){var n=t.__data__;return e(r)?n["string"==typeof r?"string":"hash"]:n.map}}function xe(){if(ne)return re;ne=1;var t=function(){if(Ht)return zt;Ht=1;var t=wt(),e=_e,r=je;return zt=function(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}}(),e=function(){if(Vt)return Yt;Vt=1;var t=we();return Yt=function(e){var r=t(this,e).delete(e);return this.size-=r?1:0,r}}(),r=function(){if(Qt)return Jt;Qt=1;var t=we();return Jt=function(e){return t(this,e).get(e)}}(),n=function(){if(Zt)return Xt;Zt=1;var t=we();return Xt=function(e){return t(this,e).has(e)}}(),o=function(){if(ee)return te;ee=1;var t=we();return te=function(e,r){var n=t(this,e),o=n.size;return n.set(e,r),this.size+=n.size==o?0:1,this}}();function i(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,re=i}function Ke(){if(ce)return ae;ce=1;var t=xe(),e=ie?oe:(ie=1,oe=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}),r=se?ue:(se=1,ue=function(t){return this.__data__.has(t)});function n(e){var r=-1,n=null==e?0:e.length;for(this.__data__=new t;++r<n;)this.add(e[r])}return n.prototype.add=n.prototype.push=e,n.prototype.has=r,ae=n}function Oe(){if(ge)return ye;ge=1;var t=le?fe:(le=1,fe=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}),e=he?de:(he=1,de=function(t){return t!=t}),r=ve?pe:(ve=1,pe=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1});return ye=function(n,o,i){return o==o?r(n,o,i):t(n,e,i)}}var Ee,Me,Ae,De,Pe,Le,Re,Ne,Be,Se,ke,Te,Ue,qe,ze,He,Ie,$e,We,Ge,Ye,Ve,Je,Qe,Xe,Ze,tr,er,rr,nr,or,ir,ur,sr,ar,cr,fr,lr,dr,hr,pr,vr,yr,gr,br,mr,Fr,Cr,_r,jr,wr,xr,Kr=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o};function Or(){if(Me)return Ee;return Me=1,Ee=function(t){return function(e){return t(e)}}}function Er(){if(De)return Ae;return De=1,Ae=function(t,e){return t.has(e)}}function Mr(){if(Le)return Pe;Le=1;var t=Ke(),e=function(){if(me)return be;me=1;var t=Oe();return be=function(e,r){return!(null==e||!e.length)&&t(e,r,0)>-1}}(),r=Ce?Fe:(Ce=1,Fe=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}),n=Kr,o=Or(),i=Er();return Pe=function(u,s,a,c){var f=-1,l=e,d=!0,h=u.length,p=[],v=s.length;if(!h)return p;a&&(s=n(s,o(a))),c?(l=r,d=!1):s.length>=200&&(l=i,d=!1,s=new t(s));t:for(;++f<h;){var y=u[f],g=null==a?y:a(y);if(y=c||0!==y?y:0,d&&g==g){for(var b=v;b--;)if(s[b]===g)continue t;p.push(y)}else l(s,g,c)||p.push(y)}return p}}function Ar(){if(Ne)return Re;return Ne=1,Re=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}}function Dr(){if(Te)return ke;Te=1;var t=function(){if(Se)return Be;Se=1;var t=T(),e=U();return Be=function(r){return e(r)&&"[object Arguments]"==t(r)}}(),e=U(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,i=t(function(){return arguments}())?t:function(t){return e(t)&&n.call(t,"callee")&&!o.call(t,"callee")};return ke=i}function Pr(){if(qe)return Ue;qe=1;var t=Array.isArray;return Ue=t}function Lr(){if($e)return Ie;$e=1;var t=Ar(),e=function(){if(He)return ze;He=1;var t=k(),e=Dr(),r=Pr(),n=t?t.isConcatSpreadable:void 0;return ze=function(t){return r(t)||e(t)||!!(n&&t&&t[n])}}();return Ie=function r(n,o,i,u,s){var a=-1,c=n.length;for(i||(i=e),s||(s=[]);++a<c;){var f=n[a];o>0&&i(f)?o>1?r(f,o-1,i,u,s):t(s,f):u||(s[s.length]=f)}return s},Ie}function Rr(){if(Ge)return We;return Ge=1,We=function(t){return t}}function Nr(){if(Qe)return Je;Qe=1;var t=Ve?Ye:(Ve=1,Ye=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}),e=Math.max;return Je=function(r,n,o){return n=e(void 0===n?r.length-1:n,0),function(){for(var i=arguments,u=-1,s=e(i.length-n,0),a=Array(s);++u<s;)a[u]=i[n+u];u=-1;for(var c=Array(n+1);++u<n;)c[u]=i[u];return c[n]=o(a),t(r,this,c)}},Je}function Br(){if(nr)return rr;nr=1;var t=Ze?Xe:(Ze=1,Xe=function(t){return function(){return t}}),e=function(){if(er)return tr;er=1;var t=_t,e=function(){try{var e=t(Object,"defineProperty");return e({},"",{}),e}catch(Su){}}();return tr=e}(),r=Rr();return rr=e?function(r,n){return e(r,"toString",{configurable:!0,enumerable:!1,value:t(n),writable:!0})}:r}function Sr(){if(sr)return ur;sr=1;var t=Br(),e=function(){if(ir)return or;ir=1;var t=Date.now;return or=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}},or}(),r=e(t);return ur=r}function kr(){if(cr)return ar;cr=1;var t=Rr(),e=Nr(),r=Sr();return ar=function(n,o){return r(e(n,o,t),n+"")}}function Tr(){if(lr)return fr;lr=1;return fr=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}}function Ur(){if(hr)return dr;hr=1;var t=H(),e=Tr();return dr=function(r){return null!=r&&e(r.length)&&!t(r)}}function qr(){if(gr)return yr;gr=1;var t=Mr(),e=Lr(),r=kr(),n=function(){if(vr)return pr;vr=1;var t=Ur(),e=U();return pr=function(r){return e(r)&&t(r)}}(),o=r(function(r,o){return n(r)?t(r,e(o,1,n,!0)):[]});return yr=o}function zr(){if(mr)return br;return mr=1,br=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var u=t[r];e(u,r,t)&&(i[o++]=u)}return i}}function Hr(){if(jr)return _r;jr=1;var t=(Cr?Fr:(Cr=1,Fr=function(t){return function(e,r,n){for(var o=-1,i=Object(e),u=n(e),s=u.length;s--;){var a=u[t?s:++o];if(!1===r(i[a],a,i))break}return e}}))();return _r=t}var Ir={exports:{}};var $r,Wr,Gr,Yr,Vr,Jr,Qr,Xr,Zr=function(){return!1};$r=Ir,Wr=Ir.exports,Gr=B(),Yr=Zr,Vr=Wr&&!Wr.nodeType&&Wr,Jr=Vr&&$r&&!$r.nodeType&&$r,Qr=Jr&&Jr.exports===Vr?Gr.Buffer:void 0,Xr=(Qr?Qr.isBuffer:void 0)||Yr,$r.exports=Xr;var tn,en,rn,nn,on=Ir.exports;function un(){if(en)return tn;en=1;var e=/^(?:0|[1-9]\d*)$/;return tn=function(r,n){var o=t(r);return!!(n=null==n?9007199254740991:n)&&("number"==o||"symbol"!=o&&e.test(r))&&r>-1&&r%1==0&&r<n}}var sn={exports:{}};!function(t,e){var r=N(),n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n&&r.process,u=function(){try{var t=o&&o.require&&o.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(Su){}}();t.exports=u}(sn,sn.exports);var an,cn,fn,ln,dn=sn.exports;function hn(){if(cn)return an;cn=1;var t=function(){if(nn)return rn;nn=1;var t=T(),e=Tr(),r=U(),n={};return n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1,rn=function(o){return r(o)&&e(o.length)&&!!n[t(o)]}}(),e=Or(),r=dn&&dn.isTypedArray,n=r?e(r):t;return an=n}function pn(){if(ln)return fn;ln=1;var t=xr?wr:(xr=1,wr=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}),e=Dr(),r=Pr(),n=on,o=un(),i=hn(),u=Object.prototype.hasOwnProperty;return fn=function(s,a){var c=r(s),f=!c&&e(s),l=!c&&!f&&n(s),d=!c&&!f&&!l&&i(s),h=c||f||l||d,p=h?t(s.length,String):[],v=p.length;for(var y in s)!a&&!u.call(s,y)||h&&("length"==y||l&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||o(y,v))||p.push(y);return p}}var vn=Object.prototype;var yn=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||vn)};var gn,bn,mn,Fn,Cn,_n,jn,wn,xn,Kn,On,En,Mn,An,Dn=function(t,e){return function(r){return t(e(r))}};function Pn(){if(Fn)return mn;Fn=1;var t=yn,e=function(){if(bn)return gn;bn=1;var t=Dn(Object.keys,Object);return gn=t}(),r=Object.prototype.hasOwnProperty;return mn=function(n){if(!t(n))return e(n);var o=[];for(var i in Object(n))r.call(n,i)&&"constructor"!=i&&o.push(i);return o}}function Ln(){if(_n)return Cn;_n=1;var t=pn(),e=Pn(),r=Ur();return Cn=function(n){return r(n)?t(n):e(n)}}function Rn(){if(wn)return jn;wn=1;var t=Hr(),e=Ln();return jn=function(r,n){return r&&t(r,n,e)}}function Nn(){if(En)return On;En=1;var t=Rn(),e=function(){if(Kn)return xn;Kn=1;var t=Ur();return xn=function(e,r){return function(n,o){if(null==n)return n;if(!t(n))return e(n,o);for(var i=n.length,u=r?i:-1,s=Object(n);(r?u--:++u<i)&&!1!==o(s[u],u,s););return n}}}()(t);return On=e}var Bn=_e;var Sn=function(){this.__data__=new Bn,this.size=0};var kn=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r};var Tn=function(t){return this.__data__.get(t)};var Un=function(t){return this.__data__.has(t)},qn=_e,zn=je,Hn=xe();var In=_e,$n=Sn,Wn=kn,Gn=Tn,Yn=Un,Vn=function(t,e){var r=this.__data__;if(r instanceof qn){var n=r.__data__;if(!zn||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Hn(n)}return r.set(t,e),this.size=r.size,this};function Jn(t){var e=this.__data__=new In(t);this.size=e.size}Jn.prototype.clear=$n,Jn.prototype.delete=Wn,Jn.prototype.get=Gn,Jn.prototype.has=Yn,Jn.prototype.set=Vn;var Qn,Xn,Zn,to,eo=Jn;function ro(){if(to)return Zn;to=1;var t=Ke(),e=Xn?Qn:(Xn=1,Qn=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}),r=Er();return Zn=function(n,o,i,u,s,a){var c=1&i,f=n.length,l=o.length;if(f!=l&&!(c&&l>f))return!1;var d=a.get(n),h=a.get(o);if(d&&h)return d==o&&h==n;var p=-1,v=!0,y=2&i?new t:void 0;for(a.set(n,o),a.set(o,n);++p<f;){var g=n[p],b=o[p];if(u)var m=c?u(b,g,p,o,n,a):u(g,b,p,n,o,a);if(void 0!==m){if(m)continue;v=!1;break}if(y){if(!e(o,function(t,e){if(!r(y,e)&&(g===t||s(g,t,i,u,a)))return y.push(e)})){v=!1;break}}else if(g!==b&&!s(g,b,i,u,a)){v=!1;break}}return a.delete(n),a.delete(o),v}}var no,oo,io=B().Uint8Array;var uo,so,ao=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r};function co(){if(so)return uo;so=1;var t=k(),e=io,r=Et(),n=ro(),o=oo?no:(oo=1,no=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}),i=ao,u=t?t.prototype:void 0,s=u?u.valueOf:void 0;return uo=function(t,u,a,c,f,l,d){switch(a){case"[object DataView]":if(t.byteLength!=u.byteLength||t.byteOffset!=u.byteOffset)return!1;t=t.buffer,u=u.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=u.byteLength||!l(new e(t),new e(u)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+t,+u);case"[object Error]":return t.name==u.name&&t.message==u.message;case"[object RegExp]":case"[object String]":return t==u+"";case"[object Map]":var h=o;case"[object Set]":var p=1&c;if(h||(h=i),t.size!=u.size&&!p)return!1;var v=d.get(t);if(v)return v==u;c|=2,d.set(t,u);var y=n(h(t),h(u),c,f,l,d);return d.delete(t),y;case"[object Symbol]":if(s)return s.call(t)==s.call(u)}return!1}}var fo=Ar(),lo=Pr();var ho=function(t,e,r){var n=e(t);return lo(t)?n:fo(n,r(t))};var po=function(){return[]},vo=zr(),yo=po,go=Object.prototype.propertyIsEnumerable,bo=Object.getOwnPropertySymbols,mo=ho,Fo=bo?function(t){return null==t?[]:(t=Object(t),vo(bo(t),function(e){return go.call(t,e)}))}:yo,Co=Ln();var _o,jo,wo=function(t){return mo(t,Co,Fo)};var xo=_t(B(),"DataView"),Ko=_t(B(),"Promise"),Oo=_t(B(),"Set"),Eo=_t(B(),"WeakMap"),Mo=xo,Ao=je,Do=Ko,Po=Oo,Lo=Eo,Ro=T(),No=V,Bo="[object Map]",So="[object Promise]",ko="[object Set]",To="[object WeakMap]",Uo="[object DataView]",qo=No(Mo),zo=No(Ao),Ho=No(Do),Io=No(Po),$o=No(Lo),Wo=Ro;(Mo&&Wo(new Mo(new ArrayBuffer(1)))!=Uo||Ao&&Wo(new Ao)!=Bo||Do&&Wo(Do.resolve())!=So||Po&&Wo(new Po)!=ko||Lo&&Wo(new Lo)!=To)&&(Wo=function(t){var e=Ro(t),r="[object Object]"==e?t.constructor:void 0,n=r?No(r):"";if(n)switch(n){case qo:return Uo;case zo:return Bo;case Ho:return So;case Io:return ko;case $o:return To}return e});var Go,Yo,Vo,Jo,Qo,Xo,Zo,ti,ei,ri,ni,oi,ii,ui,si,ai,ci=Wo;function fi(){if(Yo)return Go;Yo=1;var t=eo,e=ro(),r=co(),n=function(){if(jo)return _o;jo=1;var t=wo,e=Object.prototype.hasOwnProperty;return _o=function(r,n,o,i,u,s){var a=1&o,c=t(r),f=c.length;if(f!=t(n).length&&!a)return!1;for(var l=f;l--;){var d=c[l];if(!(a?d in n:e.call(n,d)))return!1}var h=s.get(r),p=s.get(n);if(h&&p)return h==n&&p==r;var v=!0;s.set(r,n),s.set(n,r);for(var y=a;++l<f;){var g=r[d=c[l]],b=n[d];if(i)var m=a?i(b,g,d,n,r,s):i(g,b,d,r,n,s);if(!(void 0===m?g===b||u(g,b,o,i,s):m)){v=!1;break}y||(y="constructor"==d)}if(v&&!y){var F=r.constructor,C=n.constructor;F==C||!("constructor"in r)||!("constructor"in n)||"function"==typeof F&&F instanceof F&&"function"==typeof C&&C instanceof C||(v=!1)}return s.delete(r),s.delete(n),v}}(),o=ci,i=Pr(),u=on,s=hn(),a="[object Arguments]",c="[object Array]",f="[object Object]",l=Object.prototype.hasOwnProperty;return Go=function(d,h,p,v,y,g){var b=i(d),m=i(h),F=b?c:o(d),C=m?c:o(h),_=(F=F==a?f:F)==f,j=(C=C==a?f:C)==f,w=F==C;if(w&&u(d)){if(!u(h))return!1;b=!0,_=!1}if(w&&!_)return g||(g=new t),b||s(d)?e(d,h,p,v,y,g):r(d,h,F,p,v,y,g);if(!(1&p)){var x=_&&l.call(d,"__wrapped__"),K=j&&l.call(h,"__wrapped__");if(x||K){var O=x?d.value():d,E=K?h.value():h;return g||(g=new t),y(O,E,p,v,g)}}return!!w&&(g||(g=new t),n(d,h,p,v,y,g))}}function li(){if(Jo)return Vo;Jo=1;var t=fi(),e=U();return Vo=function r(n,o,i,u,s){return n===o||(null==n||null==o||!e(n)&&!e(o)?n!=n&&o!=o:t(n,o,i,u,r,s))},Vo}function di(){if(ti)return Zo;ti=1;var t=R();return Zo=function(e){return e==e&&!t(e)}}function hi(){if(oi)return ni;return oi=1,ni=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}}function pi(){if(ui)return ii;ui=1;var t=function(){if(Xo)return Qo;Xo=1;var t=eo,e=li();return Qo=function(r,n,o,i){var u=o.length,s=u,a=!i;if(null==r)return!s;for(r=Object(r);u--;){var c=o[u];if(a&&c[2]?c[1]!==r[c[0]]:!(c[0]in r))return!1}for(;++u<s;){var f=(c=o[u])[0],l=r[f],d=c[1];if(a&&c[2]){if(void 0===l&&!(f in r))return!1}else{var h=new t;if(i)var p=i(l,d,f,r,n,h);if(!(void 0===p?e(d,l,3,i,h):p))return!1}}return!0}}(),e=function(){if(ri)return ei;ri=1;var t=di(),e=Ln();return ei=function(r){for(var n=e(r),o=n.length;o--;){var i=n[o],u=r[i];n[o]=[i,u,t(u)]}return n}}(),r=hi();return ii=function(n){var o=e(n);return 1==o.length&&o[0][2]?r(o[0][0],o[0][1]):function(e){return e===n||t(e,n,o)}}}function vi(){if(ai)return si;ai=1;var e=Pr(),r=q(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;return si=function(i,u){if(e(i))return!1;var s=t(i);return!("number"!=s&&"symbol"!=s&&"boolean"!=s&&null!=i&&!r(i))||(o.test(i)||!n.test(i)||null!=u&&i in Object(u))}}var yi=xe();function gi(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var u=t.apply(this,n);return r.cache=i.set(o,u)||i,u};return r.cache=new(gi.Cache||yi),r}gi.Cache=yi;var bi=gi;var mi,Fi,Ci,_i,ji=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wi=/\\(\\)?/g,xi=function(t){var e=bi(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ji,function(t,r,n,o){e.push(n?o.replace(wi,"$1"):r||t)}),e});function Ki(){if(_i)return Ci;_i=1;var t=function(){if(Fi)return mi;Fi=1;var t=k(),e=Kr,r=Pr(),n=q(),o=t?t.prototype:void 0,i=o?o.toString:void 0;return mi=function t(o){if("string"==typeof o)return o;if(r(o))return e(o,t)+"";if(n(o))return i?i.call(o):"";var u=o+"";return"0"==u&&1/o==-1/0?"-0":u},mi}();return Ci=function(e){return null==e?"":t(e)}}var Oi=Pr(),Ei=vi(),Mi=xi,Ai=Ki();var Di,Pi,Li,Ri,Ni,Bi,Si,ki,Ti,Ui,qi,zi,Hi,Ii,$i,Wi,Gi,Yi,Vi,Ji,Qi,Xi,Zi,tu,eu,ru,nu,ou,iu,uu,su,au,cu,fu,lu,du,hu,pu,vu,yu,gu,bu,mu,Fu,Cu,_u,ju,wu,xu,Ku,Ou,Eu,Mu,Au,Du,Pu,Lu,Ru,Nu,Bu,Su,ku,Tu,Uu,qu,zu,Hu,Iu,$u,Wu,Gu,Yu,Vu,Ju,Qu=function(t,e){return Oi(t)?t:Ei(t,e)?[t]:Mi(Ai(t))};function Xu(){if(Pi)return Di;Pi=1;var t=q();return Di=function(e){if("string"==typeof e||t(e))return e;var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}}function Zu(){if(Ri)return Li;Ri=1;var t=Qu,e=Xu();return Li=function(r,n){for(var o=0,i=(n=t(n,r)).length;null!=r&&o<i;)r=r[e(n[o++])];return o&&o==i?r:void 0}}function ts(){if(zi)return qi;zi=1;var t=ki?Si:(ki=1,Si=function(t,e){return null!=t&&e in Object(t)}),e=function(){if(Ui)return Ti;Ui=1;var t=Qu,e=Dr(),r=Pr(),n=un(),o=Tr(),i=Xu();return Ti=function(u,s,a){for(var c=-1,f=(s=t(s,u)).length,l=!1;++c<f;){var d=i(s[c]);if(!(l=null!=u&&a(u,d)))break;u=u[d]}return l||++c!=f?l:!!(f=null==u?0:u.length)&&o(f)&&n(d,f)&&(r(u)||e(u))}}();return qi=function(r,n){return null!=r&&e(r,n,t)}}function es(){if(Ii)return Hi;Ii=1;var t=li(),e=function(){if(Bi)return Ni;Bi=1;var t=Zu();return Ni=function(e,r,n){var o=null==e?void 0:t(e,r);return void 0===o?n:o}}(),r=ts(),n=vi(),o=di(),i=hi(),u=Xu();return Hi=function(s,a){return n(s)&&o(a)?i(u(s),a):function(n){var o=e(n,s);return void 0===o&&o===a?r(n,s):t(a,o,3)}}}function rs(){if(Ji)return Vi;Ji=1;var t=Wi?$i:(Wi=1,$i=function(t){return function(e){return null==e?void 0:e[t]}}),e=function(){if(Yi)return Gi;Yi=1;var t=Zu();return Gi=function(e){return function(r){return t(r,e)}}}(),r=vi(),n=Xu();return Vi=function(o){return r(o)?t(n(o)):e(o)}}function ns(){if(Xi)return Qi;Xi=1;var e=pi(),r=es(),n=Rr(),o=Pr(),i=rs();return Qi=function(u){return"function"==typeof u?u:null==u?n:"object"==t(u)?o(u)?r(u[0],u[1]):e(u):i(u)}}function os(){if(tu)return Zi;tu=1;var t=zr(),e=function(){if(An)return Mn;An=1;var t=Nn();return Mn=function(e,r){var n=[];return t(e,function(t,e,o){r(t,e,o)&&n.push(t)}),n}}(),r=ns(),n=Pr();return Zi=function(o,i){return(n(o)?t:e)(o,r(i,3))}}function is(){if(ou)return nu;ou=1;var t=ru?eu:(ru=1,eu=function(t,e,r){var n;return r(t,function(t,r,o){if(e(t,r,o))return n=r,!1}),n}),e=Rn(),r=ns();return nu=function(n,o){return t(n,r(o,3),e)}}function us(){return au?su:(au=1,su=uu?iu:(uu=1,iu=function(t){return t&&t.length?t[0]:void 0}))}function ss(){if(du)return lu;du=1;var t=Rr();return lu=function(e){return"function"==typeof e?e:t}}function as(){if(pu)return hu;pu=1;var t=fu?cu:(fu=1,cu=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}),e=Nn(),r=ss(),n=Pr();return hu=function(o,i){return(n(o)?t:e)(o,r(i))}}function cs(){if(Ku)return xu;Ku=1;var t=function(){if(wu)return ju;wu=1;var t=q();return ju=function(e,r){if(e!==r){var n=void 0!==e,o=null===e,i=e==e,u=t(e),s=void 0!==r,a=null===r,c=r==r,f=t(r);if(!a&&!f&&!u&&e>r||u&&s&&c&&!a&&!f||o&&s&&c||!n&&c||!i)return 1;if(!o&&!u&&!f&&e<r||f&&n&&i&&!o&&!u||a&&n&&i||!s&&i||!c)return-1}return 0}}();return xu=function(e,r,n){for(var o=-1,i=e.criteria,u=r.criteria,s=i.length,a=n.length;++o<s;){var c=t(i[o],u[o]);if(c)return o>=a?c:c*("desc"==n[o]?-1:1)}return e.index-r.index}}function fs(){if(Eu)return Ou;Eu=1;var t=Kr,e=Zu(),r=ns(),n=function(){if(Fu)return mu;Fu=1;var t=Nn(),e=Ur();return mu=function(r,n){var o=-1,i=e(r)?Array(r.length):[];return t(r,function(t,e,r){i[++o]=n(t,e,r)}),i}}(),o=_u?Cu:(_u=1,Cu=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}),i=Or(),u=cs(),s=Rr(),a=Pr();return Ou=function(c,f,l){f=f.length?t(f,function(t){return a(t)?function(r){return e(r,1===t.length?t[0]:t)}:t}):[s];var d=-1;f=t(f,i(r));var h=n(c,function(e,r,n){return{criteria:t(f,function(t){return t(e)}),index:++d,value:e}});return o(h,function(t,e){return u(t,e,l)})}}function ls(){if(Pu)return Du;Pu=1;var e=Lr(),r=fs(),n=kr(),o=function(){if(Au)return Mu;Au=1;var e=Et(),r=Ur(),n=un(),o=R();return Mu=function(i,u,s){if(!o(s))return!1;var a=t(u);return!!("number"==a?r(s)&&n(u,s.length):"string"==a&&u in s)&&e(s[u],i)}}(),i=n(function(t,n){if(null==t)return[];var i=n.length;return i>1&&o(t,n[0],n[1])?n=[]:i>2&&o(n[0],n[1],n[2])&&(n=[n[0]]),r(t,e(n,1),[])});return Du=i}var ds=L.exports=(Su=z(),ku=qr(),Tu=os(),Uu=is(),qu=us(),zu=as(),Hu=function(){if(yu)return vu;yu=1;var t=Rn(),e=ss();return vu=function(r,n){return r&&t(r,e(n))}}(),Iu=bu?gu:(bu=1,gu=function(){}),$u=ls(),Wu=function(){if(Ru)return Lu;Ru=1;var t=z(),e=R();return Lu=function(r,n,o){var i=!0,u=!0;if("function"!=typeof r)throw new TypeError("Expected a function");return e(o)&&(i="leading"in o?!!o.leading:i,u="trailing"in o?!!o.trailing:u),t(r,n,{leading:i,maxWait:n,trailing:u})}}(),Gu=function(){if(Bu)return Nu;Bu=1;var t=Ki(),e=0;return Nu=function(r){var n=++e;return t(r)+n}}(),Yu=e,Vu={654:function(t,e,r){var n,o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},o.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),u=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&i(e,t,r);return u(e,t),e},a=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},c=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.updateRtl=e.doesFocusableExist=e.getCurrentFocusKey=e.updateAllLayouts=e.resume=e.pause=e.navigateByDirection=e.setFocus=e.setKeyMap=e.destroy=e.setThrottle=e.init=e.SpatialNavigation=e.ROOT_FOCUS_KEY=void 0;var f=c(r(150)),l=c(r(117)),d=c(r(747)),h=c(r(23)),p=c(r(842)),v=c(r(682)),y=c(r(784)),g=c(r(432)),b=c(r(67)),m=c(r(35)),F=c(r(119)),C=s(r(964)),_="left",j="right",w="up",x="down",K="enter",O=((n={}).left=[37,"ArrowLeft"],n.up=[38,"ArrowUp"],n.right=[39,"ArrowRight"],n.down=[40,"ArrowDown"],n.enter=[13,"Enter"],n);e.ROOT_FOCUS_KEY="SN:ROOT";var E=["#0FF","#FF0","#F0F"],M={leading:!0,trailing:!1},A=function(){function t(){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=F.default.LTR,this.pressedKeys={},this.paused=!1,this.keyDownEventListener=null,this.keyUpEventListener=null,this.keyMap=O,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,f.default)(this.setFocus,300,{leading:!1,trailing:!0}),this.debug=!1,this.visualDebugger=null,this.logIndex=0,this.distanceCalculationMethod="corners"}return t.getCutoffCoordinate=function(t,e,r,n,o){var i=t?n.top:o===F.default.LTR?n.left:n.right,u=t?n.bottom:o===F.default.LTR?n.right:n.left;return e?r?i:u:r?u:i},t.getRefCorners=function(t,e,r){var n={a:{x:0,y:0},b:{x:0,y:0}};switch(t){case w:var o=e?r.bottom:r.top;n.a={x:r.left,y:o},n.b={x:r.right,y:o};break;case x:o=e?r.top:r.bottom,n.a={x:r.left,y:o},n.b={x:r.right,y:o};break;case _:var i=e?r.right:r.left;n.a={x:i,y:r.top},n.b={x:i,y:r.bottom};break;case j:i=e?r.left:r.right,n.a={x:i,y:r.top},n.b={x:i,y:r.bottom}}return n},t.isAdjacentSlice=function(t,e,r){var n=t.a,o=t.b,i=e.a,u=e.b,s=r?"x":"y",a=n[s],c=o[s],f=i[s],l=u[s],d=.2*(c-a);return Math.max(0,Math.min(c,l)-Math.max(a,f))>=d},t.getPrimaryAxisDistance=function(t,e,r){var n=t.a,o=e.a,i=r?"y":"x";return Math.abs(o[i]-n[i])},t.getSecondaryAxisDistance=function(t,e,r,n,o){if(o)return o(t,e,r,n);var i=t.a,u=t.b,s=e.a,a=e.b,c=r?"x":"y",f=i[c],l=u[c],d=s[c],h=a[c];if("center"===n){var p=(f+l)/2,v=(d+h)/2;return Math.abs(p-v)}if("edges"===n){var y=Math.min(f,l),g=Math.min(d,h),b=Math.max(f,l),m=Math.max(d,h),F=Math.abs(y-g),C=Math.abs(b-m);return Math.min(F,C)}var _=[Math.abs(d-f),Math.abs(d-l),Math.abs(h-f),Math.abs(h-l)];return Math.min.apply(Math,_)},t.prototype.sortSiblingsByPriority=function(e,r,n,o){var i=this,u=n===x||n===w,s=t.getRefCorners(n,!1,r);return(0,g.default)(e,function(e){var r=t.getRefCorners(n,!0,e.layout),a=t.isAdjacentSlice(s,r,u),c=a?t.getPrimaryAxisDistance:t.getSecondaryAxisDistance,f=a?t.getSecondaryAxisDistance:t.getPrimaryAxisDistance,l=c(s,r,u,i.distanceCalculationMethod,i.customDistanceCalculationFunction),d=f(s,r,u,i.distanceCalculationMethod,i.customDistanceCalculationFunction),h=5*l+d,p=(h+1)/(a?5:1);return i.log("smartNavigate","distance (primary, secondary, total weighted) for ".concat(e.focusKey," relative to ").concat(o," is"),l,d,h),i.log("smartNavigate","priority for ".concat(e.focusKey," relative to ").concat(o," is"),p),i.visualDebugger&&(i.visualDebugger.drawPoint(r.a.x,r.a.y,"yellow",6),i.visualDebugger.drawPoint(r.b.x,r.b.y,"yellow",6)),p})},t.prototype.init=function(t){var e=this,r=void 0===t?{}:t,n=r.debug,o=void 0!==n&&n,i=r.visualDebug,u=void 0!==i&&i,s=r.nativeMode,a=void 0!==s&&s,c=r.throttle,f=void 0===c?0:c,l=r.throttleKeypresses,d=void 0!==l&&l,h=r.useGetBoundingClientRect,p=void 0!==h&&h,v=r.shouldFocusDOMNode,g=void 0!==v&&v,b=r.domNodeFocusOptions,C=void 0===b?{}:b,_=r.shouldUseNativeEvents,j=void 0!==_&&_,w=r.rtl,x=void 0!==w&&w,K=r.distanceCalculationMethod,O=void 0===K?"corners":K,E=r.customDistanceCalculationFunction,M=void 0===E?void 0:E;if(!this.enabled&&(this.domNodeFocusOptions=C,this.enabled=!0,this.nativeMode=a,this.throttleKeypresses=d,this.useGetBoundingClientRect=p,this.shouldFocusDOMNode=g&&!a,this.shouldUseNativeEvents=j,this.writingDirection=x?F.default.RTL:F.default.LTR,this.distanceCalculationMethod=O,this.customDistanceCalculationFunction=M,this.debug=o,!this.nativeMode&&(Number.isInteger(f)&&f>0&&(this.throttle=f),this.bindEventHandlers(),u))){this.visualDebugger=new m.default(this.writingDirection);var A=function(){requestAnimationFrame(function(){e.visualDebugger.clearLayouts(),(0,y.default)(e.focusableComponents,function(t,r){e.visualDebugger.drawLayout(t.layout,r,t.parentFocusKey)}),A()})};A()}},t.prototype.setThrottle=function(t){var e=void 0===t?{}:t,r=e.throttle,n=void 0===r?0:r,o=e.throttleKeypresses,i=void 0!==o&&o;this.throttleKeypresses=i,this.nativeMode||(this.unbindEventHandlers(),Number.isInteger(n)&&(this.throttle=n),this.bindEventHandlers())},t.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=O,this.unbindEventHandlers())},t.prototype.getEventType=function(t){return(0,h.default)(this.getKeyMap(),function(e){return e.includes(t)})},t.getKeyCode=function(t){return t.keyCode||t.code||t.key},t.prototype.bindEventHandlers=function(){var e=this;"undefined"!=typeof window&&window.addEventListener&&(this.keyDownEventListener=function(r){if(!0!==e.paused){e.debug&&(e.logIndex+=1);var n=t.getKeyCode(r),o=e.getEventType(n);if(o){e.pressedKeys[o]=e.pressedKeys[o]?e.pressedKeys[o]+1:1,e.shouldUseNativeEvents||(r.preventDefault(),r.stopPropagation());var i={pressedKeys:e.pressedKeys};if(o===K&&e.focusKey)e.onEnterPress(i);else{var u=!1===e.onArrowPress(o,i);if(e.visualDebugger&&e.visualDebugger.clear(),u)e.log("keyDownEventListener","default navigation prevented");else{var s=(0,h.default)(e.getKeyMap(),function(t){return t.includes(n)});e.smartNavigate(s,null,{event:r})}}}}},this.throttle&&(this.keyDownEventListenerThrottled=(0,b.default)(this.keyDownEventListener.bind(this),this.throttle,M)),this.keyUpEventListener=function(r){var n=t.getKeyCode(r),o=e.getEventType(n);delete e.pressedKeys[o],e.throttle&&!e.throttleKeypresses&&e.keyDownEventListenerThrottled.cancel(),o===K&&e.focusKey&&e.onEnterRelease(),!e.focusKey||o!==_&&o!==j&&o!==w&&o!==x||e.onArrowRelease(o)},window.addEventListener("keyup",this.keyUpEventListener),window.addEventListener("keydown",this.throttle?this.keyDownEventListenerThrottled:this.keyDownEventListener))},t.prototype.unbindEventHandlers=function(){if("undefined"!=typeof window&&window.removeEventListener){window.removeEventListener("keyup",this.keyUpEventListener),this.keyUpEventListener=null;var t=this.throttle?this.keyDownEventListenerThrottled:this.keyDownEventListener;window.removeEventListener("keydown",t),this.keyDownEventListener=null}},t.prototype.onEnterPress=function(t){var e=this.focusableComponents[this.focusKey];e?e.focusable?e.onEnterPress&&e.onEnterPress(t):this.log("onEnterPress","componentNotFocusable"):this.log("onEnterPress","noComponent")},t.prototype.onEnterRelease=function(){var t=this.focusableComponents[this.focusKey];t?t.focusable?t.onEnterRelease&&t.onEnterRelease():this.log("onEnterRelease","componentNotFocusable"):this.log("onEnterRelease","noComponent")},t.prototype.onArrowPress=function(t,e){var r=this.focusableComponents[this.focusKey];if(r)return r&&r.onArrowPress&&r.onArrowPress(t,e);this.log("onArrowPress","noComponent")},t.prototype.onArrowRelease=function(t){var e=this.focusableComponents[this.focusKey];e?e.focusable?e.onArrowRelease&&e.onArrowRelease(t):this.log("onArrowRelease","componentNotFocusable"):this.log("onArrowRelease","noComponent")},t.prototype.navigateByDirection=function(t,e){if(!0!==this.paused&&this.enabled&&!this.nativeMode){var r=[x,w,_,j];r.includes(t)?(this.log("navigateByDirection","direction",t),this.smartNavigate(t,null,e)):this.log("navigateByDirection","Invalid direction. You passed: `".concat(t,"`, but you can use only these: "),r)}},t.prototype.smartNavigate=function(e,r,n){var o=this;if(!this.nativeMode){var i=e===x||e===w,u=e===x||(this.writingDirection===F.default.LTR?e===j:e===_);this.log("smartNavigate","direction",e),this.log("smartNavigate","fromParentFocusKey",r),this.log("smartNavigate","this.focusKey",this.focusKey),r||(0,y.default)(this.focusableComponents,function(t){t.layoutUpdated=!1});var s=this.focusableComponents[r||this.focusKey];if(r||s){if(this.log("smartNavigate","currentComponent",s?s.focusKey:void 0,s?s.node:void 0,s),s){this.updateLayout(s.focusKey);var a=s.parentFocusKey,c=s.focusKey,f=s.layout,l=t.getCutoffCoordinate(i,u,!1,f,this.writingDirection),h=(0,d.default)(this.focusableComponents,function(e){if(e.parentFocusKey===a&&e.focusable){o.updateLayout(e.focusKey);var r=t.getCutoffCoordinate(i,u,!0,e.layout,o.writingDirection);return i||o.writingDirection===F.default.LTR?u?r>=l:r<=l:u?r<=l:r>=l}return!1});if(this.debug&&(this.log("smartNavigate","currentCutoffCoordinate",l),this.log("smartNavigate","siblings","".concat(h.length," elements:"),h.map(function(t){return t.focusKey}).join(", "),h.map(function(t){return t.node}),h.map(function(t){return t}))),this.visualDebugger){var v=t.getRefCorners(e,!1,f);this.visualDebugger.drawPoint(v.a.x,v.a.y),this.visualDebugger.drawPoint(v.b.x,v.b.y)}var g=this.sortSiblingsByPriority(h,f,e,c),b=(0,p.default)(g);if(this.log("smartNavigate","nextComponent",b?b.focusKey:void 0,b?b.node:void 0,b),b)this.setFocus(b.focusKey,n);else{var m=this.focusableComponents[a],C=(null==m?void 0:m.isFocusBoundary)?m.focusBoundaryDirections||[e]:[];m&&C.includes(e)||this.smartNavigate(e,a,n)}}}else this.setFocus(this.getForcedFocusKey())}},t.prototype.saveLastFocusedChildKey=function(t,e){t&&(this.log("saveLastFocusedChildKey","".concat(t.focusKey," lastFocusedChildKey set"),e),t.lastFocusedChildKey=e)},t.prototype.log=function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];this.debug&&console.log.apply(console,a(["%c".concat(t,"%c").concat(e),"background: ".concat(E[this.logIndex%E.length],"; color: black; padding: 1px 5px;"),"background: #333; color: #BADA55; padding: 1px 5px;"],r,!1))},t.prototype.getCurrentFocusKey=function(){return this.focusKey},t.prototype.getForcedFocusKey=function(){var t,r=(0,d.default)(this.focusableComponents,function(t){return t.focusable&&t.forceFocus}),n=this.sortSiblingsByPriority(r,{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0,node:null},"down",e.ROOT_FOCUS_KEY);return null===(t=(0,p.default)(n))||void 0===t?void 0:t.focusKey},t.prototype.getNextFocusKey=function(t){var e=this,r=this.focusableComponents[t];if(!r||this.nativeMode)return t;var n,o,i,u,s=(0,d.default)(this.focusableComponents,function(e){return e.parentFocusKey===t&&e.focusable});if(s.length>0){var a=r.lastFocusedChildKey,c=r.preferredChildFocusKey;if(this.log("getNextFocusKey","lastFocusedChildKey is",a),this.log("getNextFocusKey","preferredChildFocusKey is",c),a&&r.saveLastFocusedChild&&this.isParticipatingFocusableComponent(a))return this.log("getNextFocusKey","lastFocusedChildKey will be focused",a),this.getNextFocusKey(a);if(c&&this.isParticipatingFocusableComponent(c))return this.log("getNextFocusKey","preferredChildFocusKey will be focused",c),this.getNextFocusKey(c);s.forEach(function(t){return e.updateLayout(t.focusKey)});var f=(n=s,o=this.writingDirection,i=o===F.default.LTR?function(t){var e=t.layout;return Math.abs(e.left)+Math.abs(e.top)}:function(t){var e=t.layout;return Math.abs(window.innerWidth-e.right)+Math.abs(e.top)},u=(0,g.default)(n,i),(0,p.default)(u)).focusKey;return this.log("getNextFocusKey","childKey will be focused",f),this.getNextFocusKey(f)}return this.log("getNextFocusKey","targetFocusKey",t),t},t.prototype.addFocusable=function(t){var e=t.focusKey,r=t.node,n=t.parentFocusKey,o=t.onEnterPress,i=t.onEnterRelease,u=t.onArrowPress,s=t.onArrowRelease,a=t.onFocus,c=t.onBlur,f=t.saveLastFocusedChild,l=t.trackChildren,d=t.onUpdateFocus,h=t.onUpdateHasFocusedChild,p=t.preferredChildFocusKey,v=t.autoRestoreFocus,y=t.forceFocus,g=t.focusable,b=t.isFocusBoundary,m=t.focusBoundaryDirections;if(this.focusableComponents[e]={focusKey:e,node:r,parentFocusKey:n,onEnterPress:o,onEnterRelease:i,onArrowPress:u,onArrowRelease:s,onFocus:a,onBlur:c,onUpdateFocus:d,onUpdateHasFocusedChild:h,saveLastFocusedChild:f,trackChildren:l,preferredChildFocusKey:p,focusable:g,isFocusBoundary:b,focusBoundaryDirections:m,autoRestoreFocus:v,forceFocus:y,lastFocusedChildKey:null,layout:{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0,node:r},layoutUpdated:!1},r||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[e]),!this.nativeMode){this.updateLayout(e),this.log("addFocusable","Component added: ",this.focusableComponents[e]),e===this.focusKey&&this.setFocus(p||e);for(var F=this.focusableComponents[this.focusKey];F;){if(F.parentFocusKey===e){this.updateParentsHasFocusedChild(this.focusKey,{}),this.updateParentsLastFocusedChild(this.focusKey);break}F=this.focusableComponents[F.parentFocusKey]}}},t.prototype.removeFocusable=function(t){var e=t.focusKey,r=this.focusableComponents[e];if(r){var n=r.parentFocusKey;(0,r.onUpdateFocus)(!1),this.log("removeFocusable","Component removed: ",r),delete this.focusableComponents[e];var o=this.parentsHavingFocusedChild.includes(e);this.parentsHavingFocusedChild=this.parentsHavingFocusedChild.filter(function(t){return t!==e});var i=this.focusableComponents[n],u=e===this.focusKey;if(i&&i.lastFocusedChildKey===e&&(i.lastFocusedChildKey=null),this.nativeMode)return;(u||o)&&i&&i.autoRestoreFocus&&(this.log("removeFocusable","Component removed: ",u?"Leaf component":"Container component","Auto restoring focus to: ",n),this.setFocusDebounced(n))}},t.prototype.getNodeLayoutByFocusKey=function(t){var e=this.focusableComponents[t];return e?(this.updateLayout(e.focusKey),e.layout):null},t.prototype.setCurrentFocusedKey=function(t,e){var r,n,o,i;if(this.isFocusableComponent(this.focusKey)&&t!==this.focusKey){var u=this.focusableComponents[this.focusKey];u.onUpdateFocus(!1),u.onBlur(this.getNodeLayoutByFocusKey(this.focusKey),e),null===(n=null===(r=u.node)||void 0===r?void 0:r.removeAttribute)||void 0===n||n.call(r,"data-focused"),this.log("setCurrentFocusedKey","onBlur",u)}if(this.focusKey=t,this.isFocusableComponent(this.focusKey)){var s=this.focusableComponents[this.focusKey];this.shouldFocusDOMNode&&s.node&&s.node.focus(this.domNodeFocusOptions),null===(i=null===(o=s.node)||void 0===o?void 0:o.setAttribute)||void 0===i||i.call(o,"data-focused","true"),s.onUpdateFocus(!0),s.onFocus(this.getNodeLayoutByFocusKey(this.focusKey),e),this.log("setCurrentFocusedKey","onFocus",s)}},t.prototype.updateParentsHasFocusedChild=function(t,e){for(var r=this,n=[],o=this.focusableComponents[t];o;){var i=o.parentFocusKey,u=this.focusableComponents[i];if(u){var s=u.focusKey;n.push(s)}o=u}var a=(0,l.default)(this.parentsHavingFocusedChild,n),c=(0,l.default)(n,this.parentsHavingFocusedChild);(0,v.default)(a,function(t){var n=r.focusableComponents[t];n&&n.trackChildren&&n.onUpdateHasFocusedChild(!1),r.onIntermediateNodeBecameBlurred(t,e)}),(0,v.default)(c,function(t){var n=r.focusableComponents[t];n&&n.trackChildren&&n.onUpdateHasFocusedChild(!0),r.onIntermediateNodeBecameFocused(t,e)}),this.parentsHavingFocusedChild=n},t.prototype.updateParentsLastFocusedChild=function(t){for(var e=this.focusableComponents[t];e;){var r=e.parentFocusKey,n=this.focusableComponents[r];n&&this.saveLastFocusedChildKey(n,e.focusKey),e=n}},t.prototype.getKeyMap=function(){return this.keyMap},t.prototype.setKeyMap=function(t){var e,r;this.keyMap=o(o({},this.getKeyMap()),(e=t,r={},Object.entries(e).forEach(function(t){var e=t[0],n=t[1];r[e]=Array.isArray(n)?n:[n]}),r))},t.prototype.isFocusableComponent=function(t){return!!this.focusableComponents[t]},t.prototype.isParticipatingFocusableComponent=function(t){return this.isFocusableComponent(t)&&this.focusableComponents[t].focusable},t.prototype.onIntermediateNodeBecameFocused=function(t,e){this.isParticipatingFocusableComponent(t)&&this.focusableComponents[t].onFocus(this.getNodeLayoutByFocusKey(t),e)},t.prototype.onIntermediateNodeBecameBlurred=function(t,e){this.isParticipatingFocusableComponent(t)&&this.focusableComponents[t].onBlur(this.getNodeLayoutByFocusKey(t),e)},t.prototype.pause=function(){this.paused=!0},t.prototype.resume=function(){this.paused=!1},t.prototype.setFocus=function(t,r){if(void 0===r&&(r={}),this.setFocusDebounced.cancel(),this.enabled){this.log("setFocus","focusKey",t),t&&t!==e.ROOT_FOCUS_KEY||(t=this.getForcedFocusKey());var n=this.getNextFocusKey(t);this.log("setFocus","newFocusKey",n),this.setCurrentFocusedKey(n,r),this.updateParentsHasFocusedChild(n,r),this.updateParentsLastFocusedChild(n)}},t.prototype.updateAllLayouts=function(){var t=this;this.enabled&&!this.nativeMode&&(0,y.default)(this.focusableComponents,function(e,r){t.updateLayout(r)})},t.prototype.updateLayout=function(t){var e=this.focusableComponents[t];if(e&&!this.nativeMode&&!e.layoutUpdated){var r=e.node,n=this.useGetBoundingClientRect?(0,C.getBoundingClientRect)(r):(0,C.default)(r);e.layout=o(o({},n),{node:r})}},t.prototype.updateFocusable=function(t,e){var r=e.node,n=e.preferredChildFocusKey,o=e.focusable,i=e.isFocusBoundary,u=e.focusBoundaryDirections,s=e.onEnterPress,a=e.onEnterRelease,c=e.onArrowPress,f=e.onFocus,l=e.onBlur;if(!this.nativeMode){var d=this.focusableComponents[t];d&&(d.preferredChildFocusKey=n,d.focusable=o,d.isFocusBoundary=i,d.focusBoundaryDirections=u,d.onEnterPress=s,d.onEnterRelease=a,d.onArrowPress=c,d.onFocus=f,d.onBlur=l,r&&(d.node=r))}},t.prototype.isNativeMode=function(){return this.nativeMode},t.prototype.doesFocusableExist=function(t){return!!this.focusableComponents[t]},t.prototype.updateRtl=function(t){this.writingDirection=t?F.default.RTL:F.default.LTR},t}();e.SpatialNavigation=new A,e.init=e.SpatialNavigation.init,e.setThrottle=e.SpatialNavigation.setThrottle,e.destroy=e.SpatialNavigation.destroy,e.setKeyMap=e.SpatialNavigation.setKeyMap,e.setFocus=e.SpatialNavigation.setFocus,e.navigateByDirection=e.SpatialNavigation.navigateByDirection,e.pause=e.SpatialNavigation.pause,e.resume=e.SpatialNavigation.resume,e.updateAllLayouts=e.SpatialNavigation.updateAllLayouts,e.getCurrentFocusKey=e.SpatialNavigation.getCurrentFocusKey,e.doesFocusableExist=e.SpatialNavigation.doesFocusableExist,e.updateRtl=e.SpatialNavigation.updateRtl},35:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(119)),i="undefined"!=typeof window&&window.document,u=i?window.innerWidth:0,s=i?window.innerHeight:0,a=function(){function t(e){i&&(this.debugCtx=t.createCanvas("sn-debug","1010",e),this.layoutsCtx=t.createCanvas("sn-layouts","1000",e),this.writingDirection=e)}return t.createCanvas=function(t,e,r){var n=document.querySelector("#".concat(t))||document.createElement("canvas");n.setAttribute("id",t),n.setAttribute("dir",r===o.default.LTR?"ltr":"rtl");var i=n.getContext("2d");return n.style.zIndex=e,n.style.position="fixed",n.style.top="0",n.style.left="0",document.body.appendChild(n),n.width=u,n.height=s,i},t.prototype.clear=function(){i&&this.debugCtx.clearRect(0,0,u,s)},t.prototype.clearLayouts=function(){i&&this.layoutsCtx.clearRect(0,0,u,s)},t.prototype.drawLayout=function(t,e,r){if(i){this.layoutsCtx.strokeStyle="green",this.layoutsCtx.strokeRect(t.left,t.top,t.width,t.height),this.layoutsCtx.font="8px monospace",this.layoutsCtx.fillStyle="red";var n=this.writingDirection===o.default.LTR?"left":"right",u=t[n];this.layoutsCtx.fillText(e,u,t.top+10),this.layoutsCtx.fillText(r,u,t.top+25),this.layoutsCtx.fillText("".concat(n,": ").concat(u),u,t.top+40),this.layoutsCtx.fillText("top: ".concat(t.top),u,t.top+55)}},t.prototype.drawPoint=function(t,e,r,n){void 0===r&&(r="blue"),void 0===n&&(n=10),i&&(this.debugCtx.strokeStyle=r,this.debugCtx.lineWidth=3,this.debugCtx.strokeRect(t-n/2,e-n/2,n,n))},t}();e.default=a},119:function(t,e){var r,n;Object.defineProperty(e,"__esModule",{value:!0}),(n=r||(r={}))[n.LTR=0]="LTR",n[n.RTL=1]="RTL",e.default=r},607:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),o(r(79),e),o(r(445),e),o(r(654),e)},964:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getBoundingClientRect=void 0;var r=function(t){for(var e=t.offsetParent,r=t.offsetHeight,n=t.offsetWidth,o=t.offsetLeft,i=t.offsetTop;e&&1===e.nodeType;)o+=e.offsetLeft-e.scrollLeft,i+=e.offsetTop-e.scrollTop,e=e.offsetParent;return{height:r,left:o,top:i,width:n}};e.default=function(t){var e=t&&t.parentElement;if(t&&e){var n=r(e),o=r(t),i=o.height,u=o.left,s=o.top,a=o.width;return{x:u-n.left,y:s-n.top,width:a,height:i,left:u,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}},e.getBoundingClientRect=function(t){if(t&&t.getBoundingClientRect){var e=t.getBoundingClientRect();return{x:e.x,y:e.y,width:e.width,height:e.height,left:e.left,top:e.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(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.useFocusContext=e.FocusContext=void 0;var n=r(156),o=r(654);e.FocusContext=(0,n.createContext)(o.ROOT_FOCUS_KEY),e.FocusContext.displayName="FocusContext",e.useFocusContext=function(){return(0,n.useContext)(e.FocusContext)}},79:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.useFocusable=void 0;var o=r(156),i=n(r(604)),u=n(r(461)),s=r(654),a=r(445);e.useFocusable=function(t){var e=void 0===t?{}:t,r=e.focusable,n=void 0===r||r,c=e.saveLastFocusedChild,f=void 0===c||c,l=e.trackChildren,d=void 0!==l&&l,h=e.autoRestoreFocus,p=void 0===h||h,v=e.forceFocus,y=void 0!==v&&v,g=e.isFocusBoundary,b=void 0!==g&&g,m=e.focusBoundaryDirections,F=e.focusKey,C=e.preferredChildFocusKey,_=e.onEnterPress,j=void 0===_?i.default:_,w=e.onEnterRelease,x=void 0===w?i.default:w,K=e.onArrowPress,O=void 0===K?function(){return!0}:K,E=e.onArrowRelease,M=void 0===E?i.default:E,A=e.onFocus,D=void 0===A?i.default:A,P=e.onBlur,L=void 0===P?i.default:P,R=e.extraProps,N=(0,o.useCallback)(function(t){j(R,t)},[j,R]),B=(0,o.useCallback)(function(){x(R)},[x,R]),S=(0,o.useCallback)(function(t,e){return O(t,R,e)},[R,O]),k=(0,o.useCallback)(function(t){M(t,R)},[M,R]),T=(0,o.useCallback)(function(t,e){D(t,R,e)},[R,D]),U=(0,o.useCallback)(function(t,e){L(t,R,e)},[R,L]),q=(0,o.useRef)(null),z=(0,o.useState)(!1),H=z[0],I=z[1],$=(0,o.useState)(!1),W=$[0],G=$[1],Y=(0,a.useFocusContext)(),V=(0,o.useMemo)(function(){return F||(0,u.default)("sn:focusable-item-")},[F]),J=(0,o.useCallback)(function(t){void 0===t&&(t={}),s.SpatialNavigation.setFocus(V,t)},[V]);return(0,o.useEffect)(function(){var t=q.current;return s.SpatialNavigation.addFocusable({focusKey:V,node:t,parentFocusKey:Y,preferredChildFocusKey:C,onEnterPress:N,onEnterRelease:B,onArrowPress:S,onArrowRelease:k,onFocus:T,onBlur:U,onUpdateFocus:function(t){return void 0===t&&(t=!1),I(t)},onUpdateHasFocusedChild:function(t){return void 0===t&&(t=!1),G(t)},saveLastFocusedChild:f,trackChildren:d,isFocusBoundary:b,focusBoundaryDirections:m,autoRestoreFocus:p,forceFocus:y,focusable:n}),function(){s.SpatialNavigation.removeFocusable({focusKey:V})}},[]),(0,o.useEffect)(function(){var t=q.current;s.SpatialNavigation.updateFocusable(V,{node:t,preferredChildFocusKey:C,focusable:n,isFocusBoundary:b,focusBoundaryDirections:m,onEnterPress:N,onEnterRelease:B,onArrowPress:S,onArrowRelease:k,onFocus:T,onBlur:U})},[V,C,n,b,m,N,B,S,k,T,U]),{ref:q,focusSelf:J,focused:H,hasFocusedChild:W,focusKey:V}}},150:function(t){t.exports=Su},117:function(t){t.exports=ku},747:function(t){t.exports=Tu},23:function(t){t.exports=Uu},842:function(t){t.exports=qu},682:function(t){t.exports=zu},784:function(t){t.exports=Hu},604:function(t){t.exports=Iu},432:function(t){t.exports=$u},67:function(t){t.exports=Wu},461:function(t){t.exports=Gu},156:function(t){t.exports=Yu}},Ju={},function t(e){var r=Ju[e];if(void 0!==r)return r.exports;var n=Ju[e]={exports:{}};return Vu[e].call(n.exports,n,n.exports,t),n.exports}(607));exports.commonjsGlobal=r,exports.distExports=ds,exports.getAugmentedNamespace=function(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var r=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})}),r},exports.getDefaultExportFromCjs=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t};
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),l=require("./sl-types.js"),t=require("react"),m=require("./index8.js"),O=require("./index9.js"),ae=require("./useStreamLayerApp2.js"),ne=l.styled_default("div")({name:"CloseIconWrap",class:"c3v6bv6",propsAsIs:!1}),le=l.styled_default("div")({name:"TimerWrap",class:"teuhmro",propsAsIs:!1}),oe=()=>m.B1,re=l.styled_default(oe())({name:"Icon",class:"i17rfxv5",propsAsIs:!0}),ue=({close:s,className:a,timerClassName:o,skipIcon:u,isPlaying:d=!0,duration:c=0,autoClose:f})=>{const[p,x]=t.useState(c===0);t.useEffect(()=>{x(!c)},[c]);const b=t.useCallback(()=>{f===ae.CloseTimerAuto.ENABLED?s?.():x(!0)},[f,s]);return p?e.jsxs(ne,{"data-a":"intr",onClick:s,className:a,style:u?{width:"auto"}:{},children:[u&&e.jsx("span",{"data-a":"intr",children:"Skip"}),e.jsx(re,{"data-a":"intr",name:u?"iconSkip":"icon-cross"})]}):e.jsx(le,{children:e.jsx(O.G,{className:o,isPlaying:d,duration:c,onTimerExpired:b})})},ce=l.styled_default("div")({name:"Container",class:"c1bgb86j",propsAsIs:!1}),ie=l.styled_default("video")({name:"Player",class:"p6703cq",propsAsIs:!1}),de=l.styled_default("img")({name:"Poster",class:"p12ow7zo",propsAsIs:!1}),E=l.styled_default("div")({name:"Control",class:"cdpal9o",propsAsIs:!1}),fe="t1xke4ml",pe="h1yzxv57",ye=l.styled_default("div")({name:"VideoControls",class:"vxo8xch",propsAsIs:!1}),L=l.styled_default("button")({name:"ControlBtn",class:"coyuzu0",propsAsIs:!1}),me=()=>L,xe=l.styled_default(me())({name:"MuteIcon",class:"musmi9a",propsAsIs:!0}),ge=()=>L,Ie=l.styled_default(ge())({name:"PauseIcon",class:"p1qe7rum",propsAsIs:!0}),he=()=>L,je=l.styled_default(he())({name:"PlayIcon",class:"psevery",propsAsIs:!0}),K=l.styled_default("button")({name:"WebOSIconButton",class:"w1q3u7py",propsAsIs:!1}),be=()=>K,w=l.styled_default(be())({name:"WebOSIconButtonAnimation",class:"wdlqvum",propsAsIs:!0}),Pe=()=>w,Ae=l.styled_default(Pe())({name:"WebOSIconButtonPlay",class:"w1ylz9ea",propsAsIs:!0}),ve=()=>w,Ce=l.styled_default(ve())({name:"WebOSIconButtonPause",class:"w1iylt55",propsAsIs:!0}),ke=()=>w,Se=l.styled_default(ke())({name:"WebOSIconButtonMute",class:"w8h4h7",propsAsIs:!0}),_e=()=>w,Be=l.styled_default(_e())({name:"WebOSIconButtonUnmute",class:"w12l12kt",propsAsIs:!0}),Me=s=>{for(const a of s)a.isIntersecting?a.target instanceof HTMLVideoElement&&a.target.autoplay&&a.target.play():a.target instanceof HTMLVideoElement&&!a.target.paused&&a.target.pause()},Q=new IntersectionObserver(Me,{threshold:.5}),$=new Set,Ee=s=>{Q.observe(s),$.add(s)},we=s=>{Q.unobserve(s),$.delete(s)},J=()=>{for(const s of $)s instanceof HTMLVideoElement&&!s.paused&&s.pause()};function Re(...s){return t.useCallback(a=>{for(const o of s)o!==null&&(typeof o=="function"?o(a):o&&(o.current=a))},[...s])}const We=O.b(ce),qe=({loading:s,autoPlay:a,played:o,playing:u,isMuted:d,unmute:c,mute:f,togglePlaying:p})=>!s&&!a&&!o?e.jsx(E,{children:u?e.jsx(m.B1,{name:"icon-pause"}):e.jsx(m.B1,{name:"icon-play"})}):o?e.jsxs(ye,{children:[u?e.jsx(Ie,{onClick:p}):e.jsx(je,{onClick:p}),e.jsx(xe,{className:l.cx_default(!d&&"muted"),onClick:d?c:f})]}):null,Ne=({loading:s,autoPlay:a,playMuted:o,playing:u,played:d,unmute:c,mute:f,isMuted:p,hasNotPausedVideo:x,hasInteractedWithAudio:b})=>e.jsxs(e.Fragment,{children:[!s&&!(a&&o)&&e.jsx(E,{"data-control-btn":"true",children:u?x?null:e.jsx(Ae,{children:e.jsx(m.B1,{name:"icon-play"})}):d?e.jsx(Ce,{children:e.jsx(m.B1,{name:"icon-pause"})}):e.jsx(K,{"data-control-icon":"true",children:e.jsx(m.B1,{name:"icon-play"})})}),!s&&a&&o&&b&&e.jsx(E,{children:p?e.jsx(Se,{onClick:c,children:e.jsx(m.B1,{name:"iconMute"})}):e.jsx(Be,{onClick:f,children:e.jsx(m.B1,{name:"iconUnMute"})})})]}),Te=t.forwardRef(({poster:s,source:a,aspectRatio:o,controlVideo:u,onReplay:d,onPlay:c,onPause:f,onEnd:p,onRender:x,onMute:b,onQuartile:R,autoPlay:P,playMuted:A,className:X,muted:v,webos:k,hasNotPausedVideo:Z},Y)=>{const i=t.useRef(null),ee=Re(i,Y),W=t.useRef(!1),q=t.useRef(!1),y=t.useRef(new Set),[z,F]=t.useState(!1),[S,_]=t.useState(!1),[N,U]=t.useState(!1),[H,B]=t.useState(!0),[T,M]=t.useState(A),[V,se]=t.useState(!1);t.useEffect(()=>{a&&(M(A),F(!1))},[a]);const h=t.useCallback(()=>{u?.({muted:!1})},[u]),D=t.useCallback(()=>{u?.({muted:!0})},[u]),j=t.useCallback(n=>{n?.stopPropagation(),i.current&&(i.current.muted=!0),M(!0)},[]),C=t.useCallback(n=>{n?.stopPropagation(),i.current&&(i.current.muted=!1),M(!1),V||se(!0)},[V]);t.useEffect(()=>{v!==void 0&&(v?j():C())},[j,v,C]);const G=n=>{n.stopPropagation?.();const r=i?.current;if(r)if(S)r.pause();else{const g=i?.current;if(!g)return;J(),g.play().catch(I=>console.log(I)),B(!1)}},te=()=>{i?.current?.load(),B(!0)};return t.useEffect(()=>()=>{h()},[h]),t.useEffect(()=>{const n=i.current;return n?(q.current=n.muted,M(n.muted),Ee(n),()=>{we(n)}):()=>{}},[]),t.useEffect(()=>{x?.()},[x]),t.useEffect(()=>{y.current.clear(),W.current=!1},[a]),e.jsxs(We,{webos:k,onClick:P&&A?T?C:j:G,"data-a":"intr",autoFocus:!0,options:{focusKey:"video-play-btn"},className:l.cx_default(S&&!k&&fe,P&&pe,X),style:o?{aspectRatio:o}:{},children:[e.jsx(ie,{ref:ee,src:a,autoPlay:P,onPlay:()=>{F(!0),W.current&&(d?.(),y.current.clear()),_(!0),B(!1),c?.(),A?j():D()},onTimeUpdate:n=>{const r=n.target.duration,g=n.target.currentTime;if(r&&g){const I=Math.floor(g/r*100);I>=25&&I<50&&!y.current.has(25)?(R?.(25),y.current.add(25)):I>=50&&I<75&&!y.current.has(50)?(R?.(50),y.current.add(50)):I>=75&&!y.current.has(75)&&(R?.(75),y.current.add(75))}},onVolumeChange:n=>{const r=n.target.muted;q.current!==r&&(b?.(r),q.current=r,(r!==v||v===void 0)&&(r?h():D()))},onError:async n=>{try{if(n.target instanceof HTMLVideoElement){U(!0);const r=await(await fetch(n.target.src)).blob(),g=URL.createObjectURL(r);n.target.src=g}}catch(r){console.error("video fallback fetch failed",r),_(!0),B(!0)}finally{U(!1),h()}},onPause:()=>{_(!1),f?.(),h()},onEnded:()=>{_(!1),W.current=!0,te(),p?.(),h()},style:{visibility:H?"hidden":"visible"},controls:!1,playsInline:!0}),e.jsx(de,{src:s,style:{visibility:H?"visible":"hidden"}}),!k&&e.jsx(qe,{loading:N,autoPlay:P,played:z,playing:S,isMuted:T,unmute:C,mute:j,togglePlaying:G}),k&&e.jsx(Ne,{loading:N,autoPlay:P,playMuted:A,playing:S,played:z,unmute:C,mute:j,isMuted:T,hasNotPausedVideo:Z,hasInteractedWithAudio:V}),N&&e.jsx(E,{children:e.jsx(O.d,{})})]})});exports.Fe=Te;exports.Ie=J;exports.y=ue;
|