/*! * File: storyblock.js * Hash: 9c401377dd5764ab9fc1 * Chunkhash: 291560e89cfb7475defa * Release: v20230531.1-hotfix * Commit: b8a27db720a1e43d054366b26bffae7757710acb * Stage: production * Date: 2023-06-01T20:10:28.603Z * */!function(){var t,e,n,r,i={87757:function(t,e,n){t.exports=n(35666)},5220:function(t,e,n){"use strict";n.d(e,{t:function(){return o},u:function(){return i}});var r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=4;++r,i-=4)e=1540483477*(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}},67866:function(t,e){"use strict";e.Z=function(t){var e=Object.create(null);return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}},54880:function(t,e,n){"use strict";n.d(e,{C:function(){return s},E:function(){return _},T:function(){return f},c:function(){return v},h:function(){return u},w:function(){return l}});var r=n(98661),i=n(54697),o=n(70444),a=n(30302),u={}.hasOwnProperty,c=(0,r.createContext)("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null);var s=c.Provider,l=function(t){return(0,r.forwardRef)((function(e,n){var i=(0,r.useContext)(c);return t(e,i,n)}))},f=(0,r.createContext)({});var d=r.useInsertionEffect?r.useInsertionEffect:function(t){t()};var p="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",v=function(t,e){var n={};for(var r in e)u.call(e,r)&&(n[r]=e[r]);return n[p]=t,n},h=function(t){var e=t.cache,n=t.serialized,r=t.isStringTag;(0,o.hC)(e,n,r);d((function(){return(0,o.My)(e,n,r)}));return null},_=l((function(t,e,n){var i=t.css;"string"==typeof i&&void 0!==e.registered[i]&&(i=e.registered[i]);var c=t[p],s=[i],l="";"string"==typeof t.className?l=(0,o.fp)(e.registered,s,t.className):null!=t.className&&(l=t.className+" ");var d=(0,a.O)(s,void 0,(0,r.useContext)(f));l+=e.key+"-"+d.name;var v={};for(var _ in t)u.call(t,_)&&"css"!==_&&_!==p&&(v[_]=t[_]);return v.ref=n,v.className=l,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(h,{cache:e,serialized:d,isStringTag:"string"==typeof c}),(0,r.createElement)(c,v))}))},70917:function(t,e,n){"use strict";n.d(e,{F4:function(){return l},iv:function(){return s},xB:function(){return c}});var r=n(98661),i=(n(54697),n(54880)),o=(n(8679),n(70444)),a=n(30302),u=r.useInsertionEffect?r.useInsertionEffect:r.useLayoutEffect,c=(0,i.w)((function(t,e){var n=t.styles,c=(0,a.O)([n],void 0,(0,r.useContext)(i.T)),s=(0,r.useRef)();return u((function(){var t=e.key+"-global",n=new e.sheet.constructor({key:t,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+t+" "+c.name+'"]');return e.sheet.tags.length&&(n.before=e.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",t),n.hydrate([i])),s.current=[n,r],function(){n.flush()}}),[e]),u((function(){var t=s.current,n=t[0];if(t[1])t[1]=!1;else{if(void 0!==c.next&&(0,o.My)(e,c.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}e.insert("",c,n,!1)}}),[e,c.name]),null}));function s(){for(var t=arguments.length,e=new Array(t),n=0;n96?f:d},v=function(t,e,n){var r;if(e){var i=e.shouldForwardProp;r=t.__emotion_forwardProp&&i?function(e){return t.__emotion_forwardProp(e)&&i(e)}:i}return"function"!=typeof r&&n&&(r=t.__emotion_forwardProp),r},h=i.useInsertionEffect?i.useInsertionEffect:function(t){t()};var _=function(t){var e=t.cache,n=t.serialized,r=t.isStringTag;(0,s.hC)(e,n,r);h((function(){return(0,s.My)(e,n,r)}));return null},y=function t(e,n){var o,a,u=e.__emotion_real===e,f=u&&e.__emotion_base||e;void 0!==n&&(o=n.label,a=n.target);var d=v(e,n,u),h=d||p(f),y=!h("as");return function(){var m=arguments,g=u&&void 0!==e.__emotion_styles?e.__emotion_styles.slice(0):[];if(void 0!==o&&g.push("label:"+o+";"),null==m[0]||void 0===m[0].raw)g.push.apply(g,m);else{0,g.push(m[0][0]);for(var b=m.length,w=1;w=200&&s.status<300?null==s?void 0:s.data:null);case 10:return o.prev=10,o.t0=o.catch(3),(0,u.ji)(null===o.t0||void 0===o.t0?void 0:o.t0.message,{captureContext:{extra:{businessStoreId:t,cartItems:e}}}),o.abrupt("return",null);case 14:case"end":return o.stop()}}),o,null,[[3,10]])})))},getSetupIntent:function(t,e,n){return f(void 0,void 0,void 0,a().mark((function i(){var o,c;return a().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o={},e&&(o.order_token=e),n&&(o.link_persistent_token=n),i.prev=3,i.next=6,r.post("/api/commerce/".concat(t,"/setup_intent"),o);case 6:return c=i.sent,i.abrupt("return",c.status>=200&&c.status<300?null==c?void 0:c.data:null);case 10:return i.prev=10,i.t0=i.catch(3),(0,u.ji)(null===i.t0||void 0===i.t0?void 0:i.t0.message,{captureContext:{extra:{businessStoreId:t}}}),i.abrupt("return",null);case 14:case"end":return i.stop()}}),i,null,[[3,10]])})))},getShippingOptions:function(t,e,n){return f(void 0,void 0,void 0,a().mark((function i(){var o,s,l;return a().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o={order_token:t,shipping_address:e},n&&(o.cart_items=n),i.prev=2,i.next=5,r.post("/api/commerce/shipping_rates",o);case 5:return s=i.sent,i.abrupt("return",s.status>=200&&s.status<300?null==s?void 0:s.data:[]);case 9:return i.prev=9,i.t0=i.catch(2),l=(0,c.a)(t),(0,u.ji)("getShippingOptions API Error: ".concat(null===i.t0||void 0===i.t0?void 0:i.t0.message),{captureContext:{extra:{cartItems:n,paypalOrderId:null==l?void 0:l.paypal_order_id}}}),i.abrupt("return",[]);case 14:case"end":return i.stop()}}),i,null,[[2,9]])})))},updatePaymentIntent:function(t,e,n,i){return f(void 0,void 0,void 0,a().mark((function o(){var c,s;return a().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return c={order_token:t,shipping_address:e},n&&(c.shipping_id=n),i&&(c.discount_code=i),o.prev=3,o.next=6,r.post("/api/commerce/finalize_payment_intent",c);case 6:return s=o.sent,o.abrupt("return",s.status>=200&&s.status<300?null==s?void 0:s.data:null);case 10:return o.prev=10,o.t0=o.catch(3),(0,u.ji)(null===o.t0||void 0===o.t0?void 0:o.t0.message,{captureContext:{extra:{shippingId:n,discountCode:i}}}),o.abrupt("return",null);case 14:case"end":return o.stop()}}),o,null,[[3,10]])})))},calculateOrder:function(t,e,n,i,o){return f(void 0,void 0,void 0,a().mark((function c(){var s,l;return a().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s={cart_items:t,order_token:e,shipping_address:n},i&&(s.shipping_id=i),o&&(s.discount_code=o),a.prev=3,a.next=6,r.post("/api/commerce/calculate_order",s);case 6:return l=a.sent,a.abrupt("return",l.status>=200&&l.status<300?null==l?void 0:l.data:null);case 10:return a.prev=10,a.t0=a.catch(3),(0,u.ji)(null===a.t0||void 0===a.t0?void 0:a.t0.message,{captureContext:{extra:{cartItems:t,shippingId:i,discountCode:o}}}),a.abrupt("return",null);case 14:case"end":return a.stop()}}),c,null,[[3,10]])})))},placeOrder:function(t,e,n,i,o,c,s){return f(void 0,void 0,void 0,a().mark((function l(){var f,d;return a().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return f="/api/commerce/confirm_order?video_id=".concat(t),a.prev=1,a.next=4,r.post(f,{delay:e,email:n,order_token:i,guest_id:o,session_id:c,embed_instance_id:s});case 4:return d=a.sent,a.abrupt("return",d.status>=200&&d.status<300?null==d?void 0:d.data:null);case 8:return a.prev=8,a.t0=a.catch(1),(0,u.ji)(null===a.t0||void 0===a.t0?void 0:a.t0.message,{captureContext:{extra:{videoId:t,guestId:o,sessionId:c}}}),a.abrupt("return",null);case 12:case"end":return a.stop()}}),l,null,[[1,8]])})))},getOrder:function(t){return f(void 0,void 0,void 0,a().mark((function e(){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.get("/api/commerce/retrieve_order?order_token=".concat(t));case 3:return n=e.sent,e.abrupt("return",n.status>=200&&n.status<300?null==n?void 0:n.data:null);case 7:return e.prev=7,e.t0=e.catch(0),(0,u.ji)(null===e.t0||void 0===e.t0?void 0:e.t0.message),e.abrupt("return",null);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})))},deleteOrder:function(t){return f(void 0,void 0,void 0,a().mark((function e(){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.delete("/api/commerce/cancel_order?order_token=".concat(t));case 3:return n=e.sent,e.abrupt("return",n.status>=200&&n.status<300);case 7:return e.prev=7,e.t0=e.catch(0),(0,u.ji)(null===e.t0||void 0===e.t0?void 0:e.t0.message),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})))},paypalInitiateCheckout:function(t,e){return f(void 0,void 0,void 0,a().mark((function n(){var i,o,s,l;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,r.post("api/commerce/".concat(t,"/paypal_initiate_checkout"),e);case 3:return s=n.sent,n.abrupt("return",s.data);case 7:return n.prev=7,n.t0=n.catch(0),l=(0,c.a)(null!==(i=null==e?void 0:e.order_token)&&void 0!==i?i:""),(0,u.ji)("paypalInitiateCheckout API Error: ".concat(null===n.t0||void 0===n.t0?void 0:n.t0.message),{captureContext:{extra:{paypalOrderId:null==l?void 0:l.paypal_order_id,businessStoreId:t,cartItems:e.cart_items,statusCode:null===(o=null===n.t0||void 0===n.t0?void 0:n.t0.response)||void 0===o?void 0:o.status}}}),n.abrupt("return",{order_token:""});case 12:case"end":return n.stop()}}),n,null,[[0,7]])})))},paypalFinalizeOrder:function(t){return f(void 0,void 0,void 0,a().mark((function e(){var n,i,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.post("api/commerce/paypal_finalize_order",t);case 3:return i=e.sent,e.abrupt("return",i.data);case 7:return e.prev=7,e.t0=e.catch(0),o=(0,c.a)(t.order_token),(0,u.ji)("paypalFinalizeOrder API Error: ".concat(null===e.t0||void 0===e.t0?void 0:e.t0.message),{captureContext:{extra:{paypalOrderId:null==o?void 0:o.paypal_order_id,shipping_id:t.shipping_id,statusCode:null===(n=null===e.t0||void 0===e.t0?void 0:e.t0.response)||void 0===n?void 0:n.status}}}),e.abrupt("return",{order_token:""});case 12:case"end":return e.stop()}}),e,null,[[0,7]])})))},paypalConfirmOrder:function(t,e,n){return f(void 0,void 0,void 0,a().mark((function i(){var o,s,l;return a().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,r.post("api/commerce/paypal_confirm_order?video_id=".concat(t,"&delay=").concat(e),n);case 3:return s=i.sent,i.abrupt("return",s.data);case 7:return i.prev=7,i.t0=i.catch(0),l=(0,c.a)(n.order_token),(0,u.ji)("paypalConfirmOrder API Error: ".concat(null===i.t0||void 0===i.t0?void 0:i.t0.message),{captureContext:{extra:{videoId:t,visitorId:n.visitor_id,paypalOrderId:null==l?void 0:l.paypal_order_id,statusCode:null===(o=null===i.t0||void 0===i.t0?void 0:i.t0.response)||void 0===o?void 0:o.status}}}),i.abrupt("return",{order_token:""});case 12:case"end":return i.stop()}}),i,null,[[0,7]])})))},getMicrositeByChannel:function(t,e){return f(void 0,void 0,void 0,a().mark((function n(){var i,o;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i="/microsites/channels/config?username=".concat(encodeURIComponent(t)),e&&Object.keys(e).forEach((function(t){e[t]&&(i+="&".concat(t,"=").concat(e[t]))})),n.next=4,r.get(i);case 4:return o=n.sent,n.abrupt("return",o.data);case 6:case"end":return n.stop()}}),n)})))},getMicrositeByChannelId:function(t,e){return f(void 0,void 0,void 0,a().mark((function n(){var i,o;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i="/microsites/channels/config?id=".concat(encodeURIComponent(t)),e&&Object.keys(e).forEach((function(t){e[t]&&(i+="&".concat(t,"=").concat(e[t]))})),n.next=4,r.get(i);case 4:return o=n.sent,n.abrupt("return",o.data);case 6:case"end":return n.stop()}}),n)})))},getSitemapVideosByChannel:function(t,e){return void 0===e&&(e=10),f(void 0,void 0,void 0,a().mark((function n(){var i;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,r.get("api/channels/".concat(t,"/videos?page_size=").concat(e));case 3:return i=n.sent,n.abrupt("return",i.data);case 7:return n.prev=7,n.t0=n.catch(0),(0,u.H)(n.t0),n.abrupt("return",{videos:[]});case 11:case"end":return n.stop()}}),n,null,[[0,7]])})))},getSitemapPagesByChannelId:function(t){return f(void 0,void 0,void 0,a().mark((function e(){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.get("microsites/channels/".concat(t,"/pages"));case 3:return n=e.sent,e.abrupt("return",n.data);case 7:return e.prev=7,e.t0=e.catch(0),(0,u.H)(e.t0),e.abrupt("return",{data:[]});case 11:case"end":return e.stop()}}),e,null,[[0,7]])})))},getRemindMeEmail:function(t){var e=t.email,n=t.liveStreamId;return f(void 0,void 0,void 0,a().mark((function t(){var i,o,u,c,s,l;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(u=new URL("".concat(r.defaults.baseURL,"/api/live_streams/").concat(n,"/signup"))).searchParams.append("email_address",e),t.prev=2,t.next=5,r.post(u.href);case 5:return c=t.sent,s=c.data,l=Boolean((null===(i=null==s?void 0:s.errors)||void 0===i?void 0:i.email_address)||(null===(o=null==s?void 0:s.errors)||void 0===o?void 0:o.phone_number)),t.abrupt("return",{success:!l});case 11:return t.prev=11,t.t0=t.catch(2),t.abrupt("return",{success:!1});case 14:case"end":return t.stop()}}),t,null,[[2,11]])})))}}};!function(t){t.PREROLL="preroll",t.INTERSTITIAL="interstitial",t.DISPLAY="display",t.OUTSTREAM="outstream",t.RM_INFEED="rm_infeed"}(r||(r={})),function(t){t.QUESTION="question",t.POLL="poll",t.APPOINTMENT="appointment",t.QUIZ="quiz"}(i||(i={}));var p=n(82643),v=n(99202)},82643:function(t,e,n){"use strict";var r,i,o;n.d(e,{WW:function(){return o},Yi:function(){return i},_e:function(){return r}}),function(t){t.AGORA="agora",t.FACEBOOK="facebook",t.INSTAGRAM="instagram",t.IVS="ivs",t.MUX="mux",t.TIKTOK="tiktok",t.TWITCH="twitch",t.YOUTUBE="youtube"}(r||(r={})),function(t){t.IDLE="idle",t.ACTIVE="active",t.PAUSED="paused",t.REPLAY="replay",t.COMPLETED="completed",t.EXPIRED="expired",t.DISABLED="disabled",t.ERRORED="errored"}(i||(i={})),function(t){t.VIEWER="viewer",t.HOST="host",t.MODERATOR="moderator",t.BOT="bot"}(o||(o={}))},99202:function(t,e,n){"use strict";var r,i,o,a,u,c;n.d(e,{WO:function(){return u},ft:function(){return i},jI:function(){return a},nl:function(){return o},zb:function(){return c}}),function(t){t.COLLAB_MIRROR="collab_mirror",t.COLLAB_REACT="collab_react",t.COLLAB_SPLIT="collab_split",t.COLLAB_STITCH="collab_stitch",t.FRAMELESS="frameless",t.LIVESTREAM="live_stream",t.MULTICAM="multicam",t.OPEN_AUCTION_AD="open_auction_ad"}(r||(r={})),function(t){t.DEFAULT_CTA="cta",t.REMIND_ME="reminder"}(i||(i={})),function(t){t.HORIZONTAL="16:9",t.VERTICAL="9:16"}(o||(o={})),function(t){t.ANIMATED="animated",t.STATIC="static"}(a||(a={})),function(t){t.SMALL="small",t.BEST_FIT="large"}(u||(u={})),function(t){t.MULTIPLE_CHOICE="multiple_choice",t.CTA="cta",t.PRODUCT="product",t.QUESTION="question",t.POLL="poll"}(c||(c={}))},15839:function(t,e,n){"use strict";n.d(e,{o:function(){return s}});var r=n(4942),i=n(98661),o=n(33673),a=n(35944);i.default.createElement;function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e3)&&I&&(0,s.x)(S)){e.next=2;break}return e.abrupt("return");case 2:if(e.prev=2,!(!(null==S?void 0:S.next_page)||x||b&&(null==S?void 0:S.feed_items)&&S.feed_items.length>=b)){e.next=5;break}return e.abrupt("return");case 5:if(n=Math.min(10,b?b-((null==S?void 0:S.feed_items)?null==S?void 0:S.feed_items.length:0):1/0),!S){e.next=12;break}return e.next=9,y.getMoreFeedItems(S,n);case 9:e.t0=e.sent,e.next=13;break;case 12:e.t0=null;case 13:i=e.t0,P((function(t){var e,n;return Object.assign(Object.assign({},t),{feed:Object.assign(Object.assign(Object.assign({},S),i),{feed_items:[].concat((0,r.Z)(null!==(e=null==S?void 0:S.feed_items)&&void 0!==e?e:[]),(0,r.Z)(null!==(n=null==i?void 0:i.feed_items)&&void 0!==n?n:[]))})})})),e.next=25;break;case 17:if(e.prev=17,e.t1=e.catch(2),404!==(null===e.t1||void 0===e.t1?void 0:e.t1.status)){e.next=24;break}return e.next=22,j();case 22:e.next=25;break;case 24:P({loading:!1,feed:S,error:e.t1,config:null});case 25:case"end":return e.stop()}}),e,null,[[2,17]])})))}),[I,S,x,b,y,j]),N=(0,a.useMemo)((function(){var t;return(0,s.x)(S)&&null!==(t=function(t,e){return t.map((function(t){return(null==e?void 0:e[t.encoded_id])?Object.assign(Object.assign({},t),e[t.encoded_id]):t}))}(((null==S?void 0:S.feed_items)||[]).filter((function(t){return!!t.video})).map((function(t){return t.video.variant=t.variant,t.video})),g))&&void 0!==t?t:[]}),[S,g]),L=(0,a.useMemo)((function(){return(null==S?void 0:S.playlists)?S.playlists:[]}),[S]);return[{error:T,videos:N,loading:x,playlists:L,feed:S,config:C},{loadMore:R}]}},93538:function(t,e,n){"use strict";n.d(e,{x:function(){return r}});var r=function(t){return Boolean(t&&"feed_items"in t)}},31111:function(t,e,n){"use strict";function r(){if("undefined"!=typeof window){try{if(window.parent&&window.parent._fwn)return window.parent._fwn}catch(t){}return window._fwn}}n.d(e,{m:function(){return r}})},29038:function(t,e,n){"use strict";n.d(e,{s:function(){return i}});var r=n(96950);function i(t,e){return(0,r.Uw)()(t,e)}},78765:function(t,e,n){"use strict";n.d(e,{k:function(){return c}});var r=n(87757),i=n.n(r),o=n(98661),a=n(30087),u=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},c=function(){var t=(0,o.useState)({}),e=t[0],n=t[1];return(0,o.useEffect)((function(){u(void 0,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=n,t.next=3,(0,a.G)();case 3:t.t1=t.sent,(0,t.t0)(t.t1);case 5:case"end":return t.stop()}}),t)})))}),[]),e}},77123:function(t,e,n){"use strict";n.d(e,{y:function(){return i}});var r=n(98661);function i(t){var e=(0,r.useState)(t),n=e[0],i=e[1],o=(0,r.useState)({get current(){return n},set current(t){}})[0];return Object.defineProperty(o,"current",{get:function(){return n},set:function(t){Object.is(n,t)||i(n=t)}}),o}},8221:function(t,e,n){"use strict";n.d(e,{g:function(){return a}});var r=n(98661),i=n(77123),o=n(37371);function a(t){var e=t.externalRef,n=t.onChange,a=t.threshold,u=void 0===a?.7:a,c=(0,r.useRef)(null),s=(0,i.y)(null),l=e||s;return(0,r.useLayoutEffect)((function(){var t;if(l.current)return null===(t=c.current)||void 0===t||t.disconnect(),(0,o.w)().then((function(t){var e=new t((function(t){var e=t[0].intersectionRatio>=u;l.current&&(null==n||n(e,l.current))}),{threshold:[u]});c.current=e,l.current&&c.current.observe(l.current)})),function(){var t;null===(t=c.current)||void 0===t||t.disconnect(),c.current=null}}),[l.current,n,u]),l}},20775:function(t,e,n){"use strict";n.d(e,{kH:function(){return r.kH},Cu:function(){return c},qu:function(){return r.qu}});var r=n(50559),i=n(57557),o=n.n(i),a={set_width:function(t){return this.width=t,this},set_height:function(t){return this.height=t,this},set_format:function(t){return this.format=t,this},set_file_url:function(t){return this.file_url=t,this}},u={set_id:function(t){return this.encoded_id=t,this},cta_type:function(t){return this.action_type=t,this},cta_url:function(t){return this.action_url=t,this},set_caption:function(t){return this.caption=t,this},set_download_url:function(t){return this.download_url=t,this},add_video_file:function(t){this.video_files||(this.video_files=[]);var e=function(t){var e=Object.create(a);return null==t||t(e),o()(e,Object.keys(a))}(t);return this.video_files.push(e),this}},c=function(t){var e=Object.create(u);return null==t||t(e),o()(e,Object.keys(u))}},50559:function(t,e,n){"use strict";n.d(e,{Vt:function(){return o},kH:function(){return u},qu:function(){return a}});var r=n(4942),i="hydration";function o(t){return(0,r.Z)({},i,{hydratedVideos:{},hydrateVideo:function(e){return t((function(t){return e.encoded_id?(0,r.Z)({},i,Object.assign(Object.assign({},t.hydration),{hydratedVideos:Object.assign(Object.assign({},t.hydration.hydratedVideos),(0,r.Z)({},e.encoded_id,e))})):t}))}})}var a=function(t,e){t.getState().hydration.hydrateVideo(e)},u=function(t){return t.hydration.hydratedVideos}},68586:function(t,e,n){"use strict";n.d(e,{O:function(){return i},X:function(){return o}});var r=n(98661),i=(0,r.createContext)(void 0);function o(){var t=(0,r.useContext)(i);if(!t)throw new Error("Translation functions not found in the context");return t}},56551:function(t,e,n){"use strict";n.d(e,{X:function(){return r.X}});var r=n(68586)},72660:function(t,e,n){"use strict";n.d(e,{N:function(){return o}});var r=n(4942),i=n(89062);function o(t){return{heartbeatIntervalSet:function(e){t((function(t){return t.heartbeatInterval?t:{heartbeatInterval:setInterval(e,3e4)}}),!1,"heartbeatIntervalSet")},heartbeatIntervalCleared:function(){return t((function(t){return t.heartbeatInterval?(clearInterval(t.heartbeatInterval),{heartbeatInterval:void 0}):t}),!1,"heartbeatIntervalCleared")},joinedTopicsAdded:function(e,n){return t((function(t){return t.joinedTopics.includes(e)?t:(null==n||n(),{joinedTopics:[].concat((0,i.Z)(t.joinedTopics),[e])})}),!1,"joinedTopicsAdded")},joinedTopicsRemoved:function(e,n){return t((function(t){return e?(null==n||n(),{joinedTopics:t.joinedTopics.filter((function(t){return t!==e}))}):t}),!1,"joinedTopicsRemoved")},inviteReceived:function(e,n){t((function(t){return{invitations:Object.assign(Object.assign({},t.invitations),(0,r.Z)({},n,e))}}),!1,"inviteReceived")},inviteDismissed:function(e,n){t((function(t){return{dismissedInvitations:Object.assign(Object.assign({},t.dismissedInvitations),(0,r.Z)({},n,Object.assign(Object.assign({},t.dismissedInvitations[e]),(0,r.Z)({},e,!0))))}}),!1,"inviteDismissed")},usernameSet:function(e,n){t((function(t){var r,i,o=null!==(i=null!=n?n:null===(r=t.username)||void 0===r?void 0:r.isUserDefined)&&void 0!==i&&i;return{username:{name:e,isUserDefined:o}}}),!1,"usernameSet")},setActiveWatch:function(e){return t((function(t){return{activeWatches:Object.assign(Object.assign({},t.activeWatches),(0,r.Z)({},e,!0))}}),!1,"setActiveWatch")},unsetActiveWatch:function(e){return t((function(t){return{activeWatches:Object.assign(Object.assign({},t.activeWatches),(0,r.Z)({},e,!1))}}),!1,"unsetActiveWatch")},clearActiveWatches:function(){return t({activeWatches:{}},!1,"clearActiveWatches")}}}},64117:function(t,e,n){"use strict";n.d(e,{BE:function(){return r.BE},Ec:function(){return r.Ec},G9:function(){return r.G9},KE:function(){return r.KE},NO:function(){return r.NO},Qi:function(){return i.Q},WR:function(){return r.WR}});var r=n(92869),i=n(64267)},19491:function(t,e,n){"use strict";n.d(e,{Af:function(){return o},TS:function(){return u},hq:function(){return a}});var r=n(4942),i=n(64267);function o(t){var e=t[i.s].username;return(0,r.Z)({},i.s,{username:e})}function a(t){var e=t[i.s].activeWatches;return(0,r.Z)({},i.s,{activeWatches:e})}function u(t,e){return(0,r.Z)({},i.s,Object.assign(Object.assign({},e[i.s]),t[i.s]))}},92869:function(t,e,n){"use strict";n.d(e,{BE:function(){return o},Ec:function(){return s},G9:function(){return l},KE:function(){return i},NO:function(){return a},WR:function(){return u}});var r=n(64267);function i(t){return t[r.s].heartbeatInterval}function o(t){return t[r.s].joinedTopics}function a(t){return t[r.s].actions}function u(t,e){var n;if(e){var i=t[r.s],o=i.invitations,a=i.dismissedInvitations,u=o[e];return u&&!(null===(n=a[e])||void 0===n?void 0:n[u])?u:void 0}}var c={name:"",isUserDefined:!1};function s(t){var e;return(null===(e=t[r.s])||void 0===e?void 0:e.username)||c}function l(t,e){var n;return!!e&&Boolean(null===(n=t[r.s])||void 0===n?void 0:n.activeWatches[e])}},64267:function(t,e,n){"use strict";n.d(e,{Q:function(){return c},s:function(){return u}});var r=n(4942),i=n(93276),o=n(72660),a=n(83717),u="liveStream";function c(){return(0,r.Z)({},u,(0,i.g8)((function(t){return Object.assign(Object.assign({},(0,a.x)()),{actions:(0,o.N)(t)})})))}},83717:function(t,e,n){"use strict";function r(){return{heartbeatInterval:void 0,joinedTopics:[],dismissedInvitations:{},invitations:{},username:{name:"",isUserDefined:!1},activeWatches:{}}}n.d(e,{x:function(){return r}})},50384:function(t,e,n){"use strict";function r(t,e){t.addEventProcessor((function(t){var n,r=e.getClient();return function(t,e){if(function(t,e){if(!e||!e.length)return!1;return function(t){if(t.message)return[t.message];if(t.exception)try{var e=t.exception.values&&t.exception.values[0]||{},n=e.type,r=void 0===n?"":n,i=e.value,o=void 0===i?"":i;return["".concat(o),"".concat(r,": ").concat(o)]}catch(t){return[]}return[]}(t).some((function(t){return e.some((function(e){return a(t,e)}))}))}(t,e.ignoreErrors))return!0;if(function(t,e){if(!e||!e.length)return!1;var n=u(t);return!!n&&e.some((function(t){return a(n,t)}))}(t,e.denyUrls))return!0;if(!function(t,e){if(!e||!e.length)return!0;var n=u(t);return!n||e.some((function(t){return a(n,t)}))}(t,e.allowUrls))return!0;return!1}(t,null!==(n=null==r?void 0:r.getOptions())&&void 0!==n?n:{})?null:t}))}n.d(e,{J:function(){return r}});var i=Object.prototype.toString;function o(t,e){return i.call(t)==="[object ".concat(e,"]")}function a(t,e){return!!o(t,"String")&&(function(t){return o(t,"RegExp")}(e)?e.test(t):"string"==typeof e&&-1!==t.indexOf(e))}function u(t){var e,n;try{return null!==(n=null===(e=t.request)||void 0===e?void 0:e.url)&&void 0!==n?n:null}catch(t){return null}}},12949:function(t,e,n){"use strict";n.d(e,{C:function(){return r}});var r=function(t){(n.g.navigator||n.g.location||n.g.document)&&t.addEventProcessor((function(t){var e,r,i,o=(null===(e=t.request)||void 0===e?void 0:e.url)||(null===(r=n.g.location)||void 0===r?void 0:r.href),a=(n.g.document||{}).referrer,u=(n.g.navigator||{}).userAgent,c=Object.assign(Object.assign(Object.assign({},null===(i=t.request)||void 0===i?void 0:i.headers),a&&{Referer:a}),u&&{"User-Agent":u}),s=Object.assign(Object.assign({},o&&{url:o}),{headers:c});return Object.assign(Object.assign({},t),{request:s})}))}},99456:function(t,e,n){"use strict";n.d(e,{H:function(){return u},KE:function(){return s},PN:function(){return l},fV:function(){return a},ji:function(){return c}});var r=n(77329),i=n(41698),o="\ncolor: black;\npadding: 2px 4px;\nborder-radius: 2px;\nbackground: rgb(255,62,33);\nbackground: linear-gradient(90deg, rgba(255,62,33,1) 35%, rgba(254,209,23,1) 100%);\n",a="\ncolor: white;\npadding: 2px 4px;\nborder-radius: 2px;\nbackground: rgb(2,0,36);\nbackground: linear-gradient(90deg, rgba(164,15,244,1) 35%, rgba(254,23,122,1) 100%);\n",u=function(t,e){(0,i.MD)().captureException(t,e),(0,r.L)()&&console.error(t,e)},c=function(t,e){(0,i.MD)().captureMessage(t,e),l(t)},s=function(){for(var t,e=arguments.length,n=new Array(e),r=0;r0)&&(!function(t){if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(i)?n[r]=i:n[r]=t(i)),n}),{});var n}},25791:function(t,e,n){"use strict";n.d(e,{E:function(){return _},r:function(){return g}});var r=n(92906),i=n(88263),o=n(31111);var a=n(93324),u=n(77329),c=n(99456);var s=n(4942),l=n(7344),f=new Set(["a11y_disable_focus","a11y_disable_previews","ad_id","api_host","api_host_ads","api_host_tracking","api_host_tracking_legacy","auto_apply_coupon_enabled","autoplay","autoplay_keep_thumbnail","branding","captions","channel","channel_id","chat_channel_id","lead_generation","commerce_funnel_tracking_enabled","collapsed","dir","dock","expand_prod_desc_enabled","hashtag","height","hero_flip_order","hero_text_mode","hide_cart_quantity","hide_cart_total","hide_show_detail","homepage_url","horizontal","http_ls","in_sdk_webview","instant_checkout_coupons_enabled","key_moments","fullscreen_pdp_enabled","product_checkout_card_v2","hide_product_price","product_index","lang","light_mode_player_enabled","live_label","livestream_chat","livestream_prompt_username_change","livestream_firstparty","full_height_pdp","loop","lsdesktop","max_videos","minimized","mode","moderator_icon","muted","name","open_in","livestream_update_order_fluid_enabled","page_type","page_url","paginate_by","per_page","persist_cart","pip","pip_navigate","pip_observe","pip_outbound_target","pip_target","placement","player_add_to_calendar","player_captions","player_fullscreen","player_key","player_margin","player_minimize","player_more_menu","player_placement","player_play_pause","player_product_on_click","player_detached","player_tap_to_unmute","playlist","playlist_collection","popup_position","priority","product_card_carousel","reset_transform","share","share_label","share_template","shopping_cart_style","show_ads","show_preroll","size","sold_and_fulfilled_enabled","skus","start_time","tap_to_watch","target","text","title","token","type","ui_border_style","ui_button_color","ui_button_font_color","ui_font_css","ui_full_cta","ui_primary_color","ui_share_sheet","upcoming_label","user_id","vast_attrs","vertical","video","product_image_carousel"]),d=["cohort_"],p=["max_videos","router","show_preroll","title","ui_share_sheet"],v=new Set(["a11y_disable_focus","auto_apply_coupon_enabled","autoplay","autoplay_keep_thumbnail","branding","captions","lead_generation","commerce_funnel_tracking_enabled","cart_revamp","dock","expand_prod_desc_enabled","hero_flip_order","hide_cart_quantity","hide_cart_total","hide_show_detail","http_ls","in_sdk_webview","instant_checkout_coupons_enabled","key_moments","fullscreen_pdp_enabled","light_mode_player_enabled","product_checkout_card_v2","hide_product_price","product_index","livestream_chat","full_height_pdp","loop","lsdesktop","minimized","muted","livestream_update_order_fluid_enabled","livestream_firstparty","persist_cart","pip","pip_navigate","pip_observe","player_add_to_calendar","player_captions","player_fullscreen","player_minimize","player_more_menu","player_play_pause","player_product_on_click","player_detached","player_tap_to_unmute","product_card_carousel","sold_and_fulfilled_enabled","show_ads","show_preroll","tap_to_watch","ui_full_cta","ic_coupon","hide_cart_total","hide_cart_quantity","product_image_carousel"]),h=["max_videos","paginate_by","start_time"],_=function(t){return f.has(t)||d.some((function(e){return t.startsWith(e)}))},y=function(t,e){return void 0===e&&(e={}),Object.entries(t).filter((function(t){var n=(0,a.Z)(t,1)[0];return!(e.skip&&e.skip.includes(n))})).filter((function(t){var e=(0,a.Z)(t,1)[0];return _(e)})).map((function(t){var e=(0,a.Z)(t,2),n=e[0],r=e[1];return h.includes(n)?[n,parseInt(null!=r?r:"0",10)]:[n,r]})).map((function(t){var e=(0,a.Z)(t,2),n=e[0],r=e[1];return v.has(n)?[n,!(0,l.X0)(r)]:[n,r]})).filter((function(t){var e=(0,a.Z)(t,2),n=e[0],r=e[1];return p.includes(n)||""!==r})).reduce((function(t,e){var n=(0,a.Z)(e,2),r=n[0],i=n[1];return Object.assign(Object.assign({},t),(0,s.Z)({},r,i))}),{})},m="fwparam_";function g(t,e){var n,s,l,f,d,p=t.defaultParams,v=null!==(n=null==e?void 0:e.initialParams)&&void 0!==n?n:t.initialParams,h=(null==e?void 0:e.fetchedParams)?y((0,r.E)(e.fetchedParams),{skip:["max_videos"]}):t.fetchedParams,_=(null==e?void 0:e.widgetParams)?y(e.widgetParams):t.widgetParams,g=y((l=(0,i.O5)(),f={},Object.keys(l).forEach((function(t){var e=t.substring(m.length);t.startsWith(m)&&(f[e]=l[t])})),f)),b=y(null!==(s=null==(d=(0,o.m)())?void 0:d.globalConfig)&&void 0!==s?s:{}),w=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p),v),h),b),_),g);return function(t){var e,n,r=t.defaultParams,i=void 0===r?{}:r,o=t.initialParams,s=void 0===o?{}:o,l=t.fetchedParams,f=void 0===l?{}:l,d=t.globalConfigParams,p=void 0===d?{}:d,v=t.widgetParams,h=void 0===v?{}:v,_=t.urlParams,y=void 0===_?{}:_,m=t.params,g=void 0===m?{}:m;if((0,u.L)())try{var b="fw-"+(null===(e=g.type)||void 0===e?void 0:e.replace("_","-")),w=Array.from(document.querySelectorAll(b)).find((function(t){return t.widgetId===g.widget_id}))||s.target;console.groupCollapsed("%cFW-DEBUG <".concat(b,"> (").concat(g.widget_id,")"),c.fV),console.log("Matched elements:",w),console.dir(w),console.log("---");var E=null!==(n=w.computedStyleMap())&&void 0!==n?n:[],O=Array.from(E).filter((function(t){return(0,a.Z)(t,1)[0].startsWith("--fw-")}));console.groupCollapsed("CSS Variables:",O.length),console.table(O.map((function(t){var e=(0,a.Z)(t,2),n=e[0],r=e[1];return[n,"".concat(r)]}))),console.groupEnd(),console.log("---"),[["Default params:",i],["Initial params:",s],["Fetched params:",f],["Global params:",p],["Widget params:",h],["URL params:",y],["= Resolved params:",g]].forEach((function(t){var e=(0,a.Z)(t,2),n=e[0],r=e[1];console.groupCollapsed(n,Object.values(r).length),r&&Object.values(r).length&&console.table(Object.entries(r)),console.groupEnd()})),console.groupEnd()}catch(t){(0,c.H)(t)}}({defaultParams:p,initialParams:v,fetchedParams:h,globalConfigParams:b,widgetParams:_,urlParams:g,params:w}),{params:w,initialParams:v,fetchedParams:h,widgetParams:_,urlParams:g,globalConfigParams:b}}},72039:function(t,e,n){"use strict";n.d(e,{lR:function(){return o},kG:function(){return r},l2:function(){return i},XX:function(){return v},qS:function(){return _}});var r="RENDER_STARTED",i="VIDEOS_STARTED",o="FIRST_VIDEOS_RECEIVED",a=n(93324),u=n(4942),c=n(15671),s=n(23919),l="undefined"!=typeof window&&void 0!==window.performance&&"measure"in window.performance&&"mark"in window.performance;function f(t){var e=Math.pow(10,3),n=Math.round(t)/e,r="".concat(n).split(".");return"".concat(r[0],".").concat((r[1]||"").padEnd(3,"0"))}function d(t){return t.startTime?"".concat(t.name)+" at ".concat(f(t.startTime),"s")+" took ".concat(f(t.duration),"s"):"".concat(t.name)+" at ".concat(f(t.duration),"s")}var p=function t(e){var n=this,r=e.key;(0,c.Z)(this,t),this.prefix=function(t){return"".concat(n.key,"/").concat(t)},this.mark=function(t){try{l&&window.performance.mark(n.prefix(t))}catch(t){(0,s.H)(t)}},this.measure=function(t,e,r){try{if(!l)return;var i=n.prefix(t);r&&e?window.performance.measure(i,n.prefix(e),n.prefix(r)):e?window.performance.measure(i,n.prefix(e)):r?window.performance.measure(i,void 0,n.prefix(r)):window.performance.measure(i),window.performance.getEntriesByName(i,"measure").forEach((function(t){var e,r,i;null===(i=null===(r=null===(e=null===window||void 0===window?void 0:window._fwn)||void 0===e?void 0:e.console)||void 0===r?void 0:r.instance)||void 0===i||i.log({entry:d(t),group:n.key})}))}catch(t){(0,s.PN)(t)}},this.key=r};function v(t){var e,n,r=Object.entries((e={},(0,u.Z)(e,String(t.type),null===(n=t.widget_id)||void 0===n?void 0:n.substring(0,8)),(0,u.Z)(e,"channel",t.channel),(0,u.Z)(e,"channel_id",t.channel_id),(0,u.Z)(e,"hashtag",t.hashtag),(0,u.Z)(e,"playlist",t.playlist),(0,u.Z)(e,"video",t.video),e)).filter((function(t){return!!(0,a.Z)(t,2)[1]})).map((function(t){var e=(0,a.Z)(t,2),n=e[0],r=e[1];return"".concat(n,":").concat(r)})).join("/");return window._fwnPerformance=window._fwnPerformance||{},window._fwnPerformance[r]=window._fwnPerformance[r]||new p({key:r})}var h=n(98661);function _(t){return(0,h.useMemo)((function(){return t?v(t):void 0}),[t])}},10881:function(t,e,n){"use strict";n.d(e,{$v:function(){return o},gb:function(){return r},j:function(){return a},z9:function(){return i}});var r="fwPipIframe",i="_fwnplrstate",o="_blank",a=100},90429:function(t,e,n){"use strict";n.d(e,{pW:function(){return l},JW:function(){return i},mL:function(){return m},IG:function(){return w},Pq:function(){return O}});var r=n(10881);function i(){var t;return"undefined"!=typeof window&&(null===(t=window.frameElement)||void 0===t?void 0:t.getAttribute("id"))===r.gb}var o=n(98661),a=n(77329);function u(t,e,n){var i;void 0===e&&(e=""),void 0===n&&(n=r.$v),t&&(i=null==t?void 0:t.href)&&(i.startsWith("//")||i.startsWith("http")&&!i.includes(e))&&t.setAttribute("target",n)}function c(t,e,n){for(var r,i,o=null===(r=null==t?void 0:t.getElementsByTagName)||void 0===r?void 0:r.call(t,"a"),a=null!==(i=null==o?void 0:o.length)&&void 0!==i?i:0;a--;)u(null==o?void 0:o[a],e,n)}var s=n(35944),l=(o.default.createElement,function(t){var e=t.observeDOM,n=t.onError,i=t.onLoad,l=t.onLocationChange,f=t.outboundTarget,d=t.src,p=t.title,v=(0,o.useRef)(null),h=function(t){var e=(0,o.useState)(null),n=e[0],i=e[1],a=(0,o.useCallback)((function(){t.current&&(t.current.hasAttribute("src")?n||i(!0):i(!1))}),[n,t]),u=(0,o.useMemo)((function(){return new MutationObserver(a)}),[a]);return(0,o.useLayoutEffect)((function(){return t.current&&u.observe(t.current,{attributes:!0}),setTimeout(a,r.j),function(){u.disconnect()}}),[n,a,u,t]),n}(v);(0,o.useLayoutEffect)((function(){!1===h&&n&&n()}),[h,n]);var _=(0,o.useMemo)((function(){return{background:"white",border:(0,a.L)()?"5px solid red":0,height:"100%",width:"100%",left:0,top:0,position:"fixed",scrollbarWidth:"thin",zIndex:2147483645,overscrollBehavior:"none",overflow:"scroll",display:h?"block":"none"}}),[h]);(0,o.useLayoutEffect)((function(){try{var t=(v.current||{}).contentWindow;if(t){var e=t.history.pushState,r=t.history.replaceState;return t.history.pushState=function(){for(var n=arguments.length,r=new Array(n),i=0;i-1)}},37498:function(t,e,n){"use strict";n.r(e),e.default=function(){return function(t){if(!("Event"in self))return!1;try{return new Event("click"),!0}catch(t){return!1}}()}},22213:function(t,e,n){"use strict";n.r(e),e.default=function(){return"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype}},68134:function(t,e,n){"use strict";n.r(e),e.default=function(){return"Map"in self&&function(t){try{var e=new t.Map([[1,1],[2,2]]);return 0===t.Map.length&&2===e.size&&"Symbol"in t&&"iterator"in t.Symbol&&"function"==typeof e[t.Symbol.iterator]&&"toStringTag"in t.Symbol&&void 0!==e[t.Symbol.toStringTag]}catch(t){return!1}}(self)}},41067:function(t,e,n){"use strict";n.r(e),e.default=function(){return"MutationObserver"in self}},50851:function(t,e,n){"use strict";n.r(e),e.default=function(){return"MAX_SAFE_INTEGER"in Number}},75900:function(t,e,n){"use strict";n.r(e),e.default=function(){return"MIN_SAFE_INTEGER"in Number}},42690:function(t,e,n){"use strict";n.r(e),e.default=function(){return"isNaN"in Number}},13327:function(t,e,n){"use strict";n.r(e),e.default=function(){return"assign"in Object}},4224:function(t,e,n){"use strict";n.r(e),e.default=function(){return"entries"in Object}},43201:function(t,e,n){"use strict";n.r(e),e.default=function(){return"freeze"in Object}},20849:function(t,e,n){"use strict";n.r(e),e.default=function(){return"getOwnPropertyDescriptor"in Object&&"function"==typeof Object.getOwnPropertyDescriptor&&function(){try{return"3"===Object.getOwnPropertyDescriptor("13.7",1).value}catch(t){return!1}}()}},18213:function(t,e,n){"use strict";n.r(e),e.default=function(){return"getOwnPropertyDescriptor"in Object&&"function"==typeof Object.getOwnPropertyDescriptor&&function(){try{var t={test:0};return 0===Object.getOwnPropertyDescriptors(t).test.value}catch(t){return!1}}()}},21953:function(t,e,n){"use strict";n.r(e),e.default=function(){return"getOwnPropertyNames"in Object&&function(){try{return Object.getOwnPropertyNames(1),!0}catch(t){return!1}}()}},79319:function(t,e,n){"use strict";n.r(e),e.default=function(){return"isFrozen"in Object}},62202:function(t,e,n){"use strict";n.r(e),e.default=function(){return"keys"in Object&&function(){return 2===Object.keys(arguments).length}(1,2)&&function(){try{return Object.keys(""),!0}catch(t){return!1}}()}},24656:function(t,e,n){"use strict";n.r(e),e.default=function(){return"seal"in Object&&function(){try{return Object.seal("1"),!0}catch(t){return!1}}()}},67935:function(t,e,n){"use strict";n.r(e),e.default=function(){return"setPrototypeOf"in Object}},56269:function(t,e,n){"use strict";n.r(e),e.default=function(){return"values"in Object}},90979:function(t,e,n){"use strict";n.r(e),e.default=function(){return"Promise"in self}},4730:function(t,e,n){"use strict";n.r(e),e.default=function(){return self.Reflect&&"construct"in self.Reflect}},227:function(t,e,n){"use strict";n.r(e),e.default=function(){return"Reflect"in self}},94060:function(t,e,n){"use strict";n.r(e),e.default=function(){return"ResizeObserver"in self}},87275:function(t,e,n){"use strict";n.r(e),e.default=function(){return"Set"in self&&function(){try{var t=new self.Set([1,2]);return 0===self.Set.length&&2===t.size&&"Symbol"in self&&"iterator"in self.Symbol&&"function"==typeof t[self.Symbol.iterator]&&"toStringTag"in self.Symbol&&void 0!==t[self.Symbol.toStringTag]}catch(t){return!1}}()}},3992:function(t,e,n){"use strict";n.r(e),e.default=function(){return"includes"in String.prototype}},41165:function(t,e,n){"use strict";n.r(e),e.default=function(){return"padEnd"in String.prototype}},2222:function(t,e,n){"use strict";n.r(e),e.default=function(){return"startsWith"in String.prototype}},18518:function(t,e,n){"use strict";n.r(e),e.default=function(){return"trim"in String.prototype&&!"\t\n\v\f\r                 \u2028\u2029\ufeff".trim()&&"​…᠎"==="​…᠎".trim()}},9989:function(t,e,n){"use strict";n.r(e),e.default=function(){return"Symbol"in self&&0===self.Symbol.length}},35398:function(t,e,n){"use strict";n.r(e),e.default=function(){return"Symbol"in self&&"iterator"in self.Symbol}},19948:function(t,e,n){"use strict";n.r(e),e.default=function(){return"description"in self.Symbol.prototype}},93010:function(t,e,n){"use strict";n.r(e),e.default=function(){return"Symbol"in self&&"toStringTag"in self.Symbol}},32799:function(t,e,n){"use strict";n.r(e),e.default=function(){return function(t){try{var e=new t.URL("http://example.com");if("href"in e&&"searchParams"in e){var n=new URL("http://example.com");if(n.search="a=1&b=2","http://example.com/?a=1&b=2"===n.href&&(n.search="","http://example.com/"===n.href)){if(!("sort"in t.URLSearchParams.prototype))return!1;var r=new t.URLSearchParams("a=1"),i=new t.URLSearchParams(r);if("a=1"!==String(i))return!1;var o=new t.URLSearchParams({a:"1"});if("a=1"!==String(o))return!1;var a=new t.URLSearchParams([["a","1"]]);return"a=1"===String(a)}}return!1}catch(t){return!1}}(self)}},67157:function(t,e,n){"use strict";n.r(e),e.default=function(){return function(){try{if("WeakMap"in self&&0===self.WeakMap.length){var t={},e=new self.WeakMap([[t,"test"]]);return"test"===e.get(t)&&!1===e.delete(0)&&"toStringTag"in self.Symbol&&void 0!==e[self.Symbol.toStringTag]}return!1}catch(t){return!1}}()}},84071:function(t,e,n){"use strict";n.r(e),e.default=function(){return function(t){try{if(Object.prototype.hasOwnProperty.call(t,"WeakSet")&&0===t.WeakSet.length){var e={},n=new t.WeakSet([e]);return n.has(e)&&!1===n.delete(0)&&"toStringTag"in self.Symbol&&void 0!==n[self.Symbol.toStringTag]}return!1}catch(t){return!1}}(self)}},46634:function(t,e,n){"use strict";n.r(e),e.default=function(){return"console"in self}},46073:function(t,e,n){"use strict";n.r(e),e.default=function(){return"document"in self&&"currentScript"in self.document}},81592:function(t,e,n){"use strict";n.r(e),e.default=function(){return"document"in self&&"hidden"in document&&"visibilityState"in document}},77911:function(t,e,n){"use strict";n.r(e),e.default=function(){return"fetch"in self&&"Request"in self&&function(){try{return"signal"in new Request("")}catch(t){return!1}}()}},5846:function(t,e,n){"use strict";n.r(e),e.default=function(){return"requestAnimationFrame"in self}},37371:function(t,e,n){"use strict";n.d(e,{w:function(){return a},c:function(){return v}});var r=n(87757),i=n.n(r),o=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},a=function(){return o(void 0,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("undefined"!=typeof window){t.next=2;break}throw new Error("No IntersectionObserver in SSR");case 2:if("IntersectionObserver"in window){t.next=5;break}return t.next=5,n.e(6337).then(n.t.bind(n,66337,23));case 5:return t.abrupt("return",window.IntersectionObserver);case 6:case"end":return t.stop()}}),t)})))},u=n(4942),c=n(93324),s=n(89062),l=n(23919),f=n(77329),d=[["AbortController",n(20438)],["Array.from",n(39072)],["Array.isArray",null],["Array.prototype.entries",n(48282)],["Array.prototype.every",null],["Array.prototype.fill",n(16797)],["Array.prototype.filter",null],["Array.prototype.find",n(37284)],["Array.prototype.findIndex",n(23976)],["Array.prototype.flat",n(64467)],["Array.prototype.forEach",null],["Array.prototype.includes",n(57401)],["Array.prototype.indexOf",null],["Array.prototype.keys",n(37743)],["Array.prototype.lastIndexOf",null],["Array.prototype.map",null],["Array.prototype.reduce",null],["Array.prototype.some",null],["Array.prototype.sort",n(66527)],["Array.prototype.values",n(91350)],["ArrayBuffer",n(29739)],["Blob",n(45937)],["console",n(46634)],["CustomEvent",n(95466)],["DataView",n(29739)],["Date.now",null],["Date.prototype.toISOString",null],["document",null],["document.currentScript",n(46073)],["document.visibilityState",n(81592)],["Element",null],["Event",n(37498)],["fetch",n(77911)],["Float32Array",null],["Function.prototype.bind",null],["getComputedStyle",null],["IntersectionObserver",n(22213)],["JSON",null],["localStorage",null],["Map",n(68134)],["modernizr:es5object",null],["MutationObserver",n(41067)],["Number.isNaN",n(42690)],["Number.MAX_SAFE_INTEGER",n(50851)],["Number.MIN_SAFE_INTEGER",n(75900)],["Object.assign",n(13327)],["Object.defineProperties",null],["Object.defineProperty",null],["Object.entries",n(4224)],["Object.freeze",n(43201)],["Object.getOwnPropertyDescriptor",n(20849)],["Object.getOwnPropertyDescriptors",n(18213)],["Object.getOwnPropertyNames",n(21953)],["Object.getOwnPropertySymbols",null],["Object.isFrozen",n(79319)],["Object.keys",n(62202)],["Object.seal",n(24656)],["Object.setPrototypeOf",n(67935)],["Object.values",n(56269)],["Promise",n(90979)],["Reflect",n(227)],["Reflect.construct",n(4730)],["requestAnimationFrame",n(5846)],["ResizeObserver",n(94060)],["Set",n(87275)],["String.prototype.includes",n(3992)],["String.prototype.padEnd",n(41165)],["String.prototype.startsWith",n(2222)],["String.prototype.trim",n(18518)],["Symbol",n(9989)],["Symbol.for",null],["Symbol.iterator",n(35398)],["Symbol.prototype.description",n(19948)],["Symbol.toStringTag",n(93010)],["Uint16Array",null],["Uint8Array",null],["URL",n(32799)],["URLSearchParams",null],["WeakMap",n(67157)],["WeakSet",n(84071)],["XMLHttpRequest",null]];function p(){return(void 0===t&&(t=d),new Promise((function(e,n){var r=!0,i=t.map((function(t){var e=(0,c.Z)(t,2),n=e[0],i=e[1];try{var o=null===i||i&&i.default&&i.default();return r=r&&o,[n,o]}catch(t){return r=!1,[n,!1]}}));!r&&(0,f.L)()&&console.table(i),r?e("No polyfill needed"):n(new Error("Polyfills needed"))}))).catch((function(t){(0,l.PN)("FWN: ".concat(null==t?void 0:t.message));var e=function(t,e){return void 0===t&&(t=d),void 0===e&&(e=document),new Promise((function(n,r){var i="_fwnRender_io";window._fwnRender_io=function(){n("Polyfill served from remote source")};var o=e.createElement("script");o.src="https://polyfill.io/v3/polyfill.min.js?features=".concat(t.map((function(t){return(0,c.Z)(t,1)[0]})).join("%2C"),"&flags=gated&callback=").concat(i),o.async=!0,o.type="text/javascript",o.crossOrigin="anonymous",o.referrerPolicy="no-referrer",o.onerror=function(t){r(t)},e.head.appendChild(o)}))}();return Promise.race([e,new Promise((function(t,e){setTimeout((function(){return e(new Error("Request Timeout"))}),1e3)}))]).then((function(t){(0,l.PN)("FWN: ".concat(t))})).catch((function(t){return(0,l.PN)("FWN: ".concat(null==t?void 0:t.message)),Promise.race([e,(void 0===n&&(n=document),new Promise((function(t,e){window._fwnRender=function(){t("Polyfill served from backup source")};var r=n.createElement("script");r.async=!0,r.src="https://asset.fireworktv.com/js/static-ie11-polyfill.io.js",r.type="text/javascript",r.onerror=function(t){e(t)},n.head.appendChild(r)})))]).then((function(t){(0,l.PN)("FWN: ".concat(t))})).catch((function(t){(0,l.H)(t)}));var n}))}));var t}function v(t){var e;window.fwnPolyfillPromise=null!==(e=window.fwnPolyfillPromise)&&void 0!==e?e:p(),window.fwnPolyfillPromise.finally((function(){t()}))}Object.entries||(Object.entries=function(t){for(var e=Object.keys(t),n=e.length,r=new Array(n);n--;)r[n]=[e[n],t[e[n]]];return r}),Object.fromEntries||(Object.fromEntries=function(t){return Object.assign.apply(Object,[{}].concat((0,s.Z)(Array.from(t,(function(t){var e=(0,c.Z)(t,2),n=e[0],r=e[1];return(0,u.Z)({},n,r)})))))}),void 0===Element.prototype.getAttributeNames&&(Element.prototype.getAttributeNames=function(){for(var t=this.attributes,e=t.length,n=new Array(e),r=0;r[a-zA-Z0-9_]+)"))))||void 0===e?void 0:e.groups)||void 0===n?void 0:n.base64data)||(0,d.O5)(t.location.search)[i];if(r){var o=JSON.parse((0,l.decodeUrl)(r));return o.video_id?o:void 0}}catch(t){return}}(t))&&void 0!==e?e:_(t.location.hash))&&void 0!==n?n:_(t.location.search)}catch(t){(0,f.H)(t)}},m=n(98661);var g=function(t){var e=t.video,n=t.appContext,r=t.params,i=t.startTime,o=t.baseUrl,l=t.paramType,d=(0,m.useState)(null),v=d[0],h=d[1];return(0,m.useEffect)((function(){var t=o||c({params:r});(0,p.X0)(null==r?void 0:r.share)&&!l?h(null):h(function(t,e){var n,r,i;try{var o=Object.fromEntries(Object.entries(Object.assign(Object.assign({playlist:null!==(n=e.playlist_id)&&void 0!==n?n:void 0,start_time:null!==(r=e.start_time)&&void 0!==r?r:void 0,video:null!==(i=e.video_id)&&void 0!==i?i:void 0},e),{playlist_id:null,video_id:null})).map((function(t){var e=(0,s.Z)(t,2),n=e[0],r=e[1];return["fw_".concat(n),r]}))),u=new URL(a(t));return Object.entries(o).forEach((function(t){var e=(0,s.Z)(t,2),n=e[0],r=e[1];r&&u.searchParams.set(n,"".concat(r))})),u.toString()}catch(t){(0,f.H)(t)}return null}(t,function(t,e,n){var r,i,o,a,c;return Object.assign(Object.assign({},(0,u.E)({channel:null===(r=null==t?void 0:t.params)||void 0===r?void 0:r.channel,channel_id:null===(i=null==t?void 0:t.params)||void 0===i?void 0:i.channel_id,hashtag:null===(o=null==t?void 0:t.params)||void 0===o?void 0:o.hashtag,playlist_id:null===(a=null==t?void 0:t.params)||void 0===a?void 0:a.playlist,start_time:n})),{video_id:null!==(c=null==e?void 0:e.encoded_id)&&void 0!==c?c:""})}(n,e,i)))}),[n,r,e,i,o,l]),v}},24767:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(89062),i=n(23919);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,u=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){c=!0,o=t},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0}))}:t}),!1,"updateUnitCartQuantity")},setCartUpdatedCallback:function(e){t({cartUpdatedCallback:c(e,"cartUpdatedCallback")},!1,"setCartUpdatedCallback")},setCartDisplayedCallback:function(e){t({cartDisplayedCallback:c(e,"cartDisplayedCallback")},!1,"setCartDisplayedCallback")},setProductsLoadedCallback:function(e){t({productsLoadedCallback:c(e,"productsLoadedCallback")},!1,"setProductsLoadedCallback")},cartUpdateStarted:function(){t((function(t){return{pendingCartUpdate:t.pendingCartUpdate+1}}),!1,"cartUpdateStarted")},cartUpdateEnded:function(){t((function(t){return{pendingCartUpdate:t.pendingCartUpdate-1,lastCartUpdateTs:Date.now()}}),!1,"cartUpdateEnded")}}}function c(t,e){return function(){for(var n=arguments.length,r=new Array(n),o=0;o0}function v(t){return t[r.n].lastCartUpdateTs}},79304:function(t,e,n){"use strict";n.d(e,{O:function(){return c},n:function(){return u}});var r=n(4942),i=n(93276),o=n(24767),a=n(8277),u="shopping";function c(){return(0,r.Z)({},u,(0,i.g8)((function(t){return Object.assign(Object.assign({},(0,a.g)()),{actions:(0,o.Z)(t)})})))}},8277:function(t,e,n){"use strict";function r(){return{cart:[],cartCurrency:"",cartUrl:"",cartAddToCartText:"",cartItemInCartText:"",productsHydrated:{},pendingCartUpdate:0,lastCartUpdateTs:0}}n.d(e,{g:function(){return r}})},93080:function(t,e,n){"use strict";n.d(e,{$o:function(){return u},G:function(){return c}});var r,i=n(31111),o=n(40647);!function(t){t.LOCAL_STORAGE="localStorage",t.SESSION_STORAGE="sessionStorage",t.MEMORY_STORAGE="memoryStorage"}(r||(r={}));var a=function(t){var e,n,a,u=null!==(n=null===(e=(0,i.m)())||void 0===e?void 0:e.memoryStorage)&&void 0!==n?n:o.N;if("undefined"!=typeof window)try{switch(t){case r.LOCAL_STORAGE:a=window.localStorage;break;case r.SESSION_STORAGE:a=window.sessionStorage;break;case r.MEMORY_STORAGE:a=u}}catch(t){console.log(t)}return a&&!function(t){var e="__TestKey__";try{if(t.setItem(e,e),t.getItem(e)!==e)return t.removeItem(e),!0;t.removeItem(e)}catch(t){return!0}return!1}(a)||(a=u),a},u=function(){return a(r.LOCAL_STORAGE)},c=function(){return a(r.SESSION_STORAGE)}},65042:function(t,e,n){"use strict";n.d(e,{$o:function(){return r.$o},G:function(){return r.G}});var r=n(93080)},40647:function(t,e,n){"use strict";n.d(e,{N:function(){return r}});var r={data:new Map,_length:0,get length(){return this._length},getItem:function(t){return this.data.get(t)},setItem:function(t,e){this.data.set(t,e),this._length=this.data.size},removeItem:function(t){this.data.delete(t),this._length=this.data.size},clear:function(){this.data.clear(),this._length=0},key:function(t){return this.data.keys()[t]}}},16756:function(t,e,n){"use strict";n.d(e,{z:function(){return d}});var r,i=n(93276),o=n(59148),a=n(77329),u=n(31111),c=n(22106),s=n(90503),l=n(3817),f=null===(r=(0,u.m)())||void 0===r?void 0:r.globalStore;var d=function(){if(!f){e=(0,i.TH)(l.e),(0,a.L)()&&(e=(0,c.H)(e)),"undefined"==typeof jest&&(e=(0,s.S)(e)),f=(0,o.Z)(e);var t=(0,u.m)();t&&(t.globalStore=f)}var e;return f}},64642:function(t,e,n){"use strict";n.d(e,{U:function(){return a}});var r,i=n(14671),o=n(16756),a=function(){return r||(r=(0,i.Z)((0,o.z)())),r}},22106:function(t,e,n){"use strict";n.d(e,{H:function(){return i}});var r=n(38597);function i(t){return(0,r.mW)(t,{name:"FWN Global Store"})}},96950:function(t,e,n){"use strict";n.d(e,{UE:function(){return o.U},Uw:function(){return i.U},pT:function(){return o.p},zJ:function(){return r.z}});var r=n(16756),i=n(64642),o=n(44565)},90503:function(t,e,n){"use strict";n.d(e,{S:function(){return f}});var r=n(82492),i=n.n(r),o=n(70530),a=n(19491),u=n(41270),c=n(65042),s=n(20763),l={name:"_fwnglobalstore",getStorage:function(){return{getItem:function(t){var e,n,r=JSON.parse(null!==(e=(0,c.$o)().getItem(t))&&void 0!==e?e:"{}"),o=JSON.parse(null!==(n=(0,c.G)().getItem(t))&&void 0!==n?n:"{}"),a=i()({},r,o);return JSON.stringify(a)},setItem:function(t,e){var n=JSON.parse(e),r=n.state,i=r.local,o=r.session,a=n.version;(0,c.$o)().setItem(t,JSON.stringify({state:i,version:a})),(0,c.G)().setItem(t,JSON.stringify({state:o,version:a}))},removeItem:function(t){(0,c.$o)().removeItem(t),(0,c.G)().removeItem(t)}}},partialize:function(t){return{local:Object.assign(Object.assign(Object.assign({},(0,o.yg)(t)),(0,u.yg)(t)),(0,a.Af)(t)),session:Object.assign({},(0,a.hq)(t))}},merge:function(t,e){return Object.assign(Object.assign(Object.assign(Object.assign({},e),(0,o.TS)(t,e)),(0,u.TS)(t,e)),(0,a.TS)(t,e))}};function f(t){return(0,s.t)(t,l)}},44565:function(t,e,n){"use strict";function r(t){return t.pageLoadId}function i(t){return t.adId}n.d(e,{U:function(){return i},p:function(){return r}})},89158:function(t,e,n){"use strict";n.d(e,{L:function(){return i}});var r=n(7344);function i(){return{pageLoadId:(0,r.k$)(),adId:(0,r.YF)()}}},3817:function(t,e,n){"use strict";n.d(e,{e:function(){return s}});var r=n(70530),i=n(50559),o=n(64117),a=n(83974),u=n(41270),c=n(89158),s=function(t){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,i.Vt)(t)),(0,a.it)()),(0,o.Qi)()),(0,r.a2)()),(0,u.Oj)()),(0,c.L)()),{setState:function(e){return t(e)}})}},39764:function(t,e,n){"use strict";n.d(e,{Cb:function(){return H},Ck:function(){return z},DM:function(){return o},EX:function(){return L},Eb:function(){return M},F$:function(){return C},FA:function(){return N},Ij:function(){return i},Il:function(){return y},Le:function(){return u},M:function(){return S},OC:function(){return Y},OO:function(){return O},R1:function(){return R},Rm:function(){return V},VE:function(){return Z},Vb:function(){return E},YY:function(){return m},Z2:function(){return b},ZE:function(){return T},_8:function(){return c},a9:function(){return W},dO:function(){return P},dT:function(){return D},fv:function(){return x},gP:function(){return h},hX:function(){return U},hs:function(){return G},iQ:function(){return l},it:function(){return w},kE:function(){return k},oj:function(){return v},pF:function(){return f},pT:function(){return s},qP:function(){return F},rI:function(){return B},tY:function(){return r},tb:function(){return g},ut:function(){return a},wo:function(){return p},xg:function(){return A},yB:function(){return $},yz:function(){return I},z_:function(){return d},zd:function(){return _},zt:function(){return j}});var r="--fw-button-color",i="--fw-button-font-color",o="--fw-font-color",a="--fw-font-family",u="--fw-gradient",c="--fw-primary",s="--fw-branding-text-align",l="--fw-thumbnail-border-radius",f="--fw-player-width",d="--fw-player-margin",p="--fw-player-height",v="--fw-player-background",h="--fw-player-border-radius",_="--fw-player-chat-background",y="--fw-player-chat-font-color",m="--fw-player-chat-font-family",g="--fw-player-chat-text-shadow",b="--fw-player-header-font-color",w="--fw-player-header-font-family",E="--fw-player-pinned-font-color",O="--fw-player-pinned-font-family",x="--fw-player-shop-background",S="--fw-player-shop-font-color",T="--fw-player-shop-list-item-hover-background",C="--fw-storyblock-background",P="--fw-storyblock-border-radius",k="--fw-chat-reply-background",j="--fw-chat-reply-border-radius",A="--fw-chat-reply-font-color",I="--fw-chat-reply-font-family",R="--fw-chat-reply-text-shadow",N="--fw-chat-reply-initial-msg-background",L="--fw-chat-reply-initial-msg-font-color",D="--fw-chat-reply-initial-msg-font-family",M="--fw-chat-reply-initial-msg-text-shadow",U="--fw-chat-pin-background",F="--fw-chat-pin-border-radius",Z="--fw-product-name-font-color",H="--fw-product-name-font-family",W="--fw-product-price-font-color",z="--fw-product-price-font-family",B="--fw-product-description-font-color",G="--fw-product-description-font-family",V="--fw-ls-wing-height",Y="--fw-ad-badge-background",$="--fw-ad-badge-font-color"},77172:function(t,e,n){"use strict";n.d(e,{N:function(){return l}});var r=n(4942),i=n(98661),o=n(14742),a=n(35944);i.default.createElement;function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e=0?"IE":t.search("Edg")>=0?"Edge":t.search("Firefox")>=0||t.search("FxiOS")>=0?"Firefox":t.search("Opera")>=0||t.search("OPR")>=0?"Opera":t.search("MicroMessenger")>=0?"WeChat":t.search("Chrome")>=0||t.search("CriOS")>=0?"Chrome":t.search("Safari")>=0&&t.search("Chrome")<0?"Safari":void 0}},o=function(){var t,e=!1;return t=navigator.userAgent||navigator.vendor,(window.innerWidth<=360||/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0),e}},57758:function(t,e,n){"use strict";n.d(e,{a:function(){return r}});var r=10},98739:function(t,e,n){"use strict";n(94471),n(78659)},46997:function(t,e,n){"use strict";n.d(e,{g:function(){return r.g}});n(98739);var r=n(39577)},39577:function(t,e,n){"use strict";n.d(e,{g:function(){return u}});var r=n(98661),i=n(94471),o=n(78659),a=n(51043),u=function(t){var e=t.appContextType,n=t.params,u=t.channel;return(0,r.useMemo)((function(){var t,r,c,s={firstVideoId:n.video,maxVideos:e===o.LV.EMBED_GRID_CONTEXT_TYPE?void 0:n.max_videos};if(n.channel||n.channel_id){if(n.channel_id&&!u)return null;if(!(n.hashtag||n.playlist||n.playlist_collection||n.skus))return[Object.assign(Object.assign({},s),{type:i.u5.USER_TIMELINE,username:null!==(t=n.channel)&&void 0!==t?t:null==u?void 0:u.username})];var l=null!==(c=null===(r=n.priority)||void 0===r?void 0:r.split(",").map((function(t){var e,r,o,a;switch(t.trim()){case"hashtag":return n.hashtag?Object.assign(Object.assign({},s),{type:i.u5.USER_TIMELINE_HASHTAG,username:null!==(e=n.channel)&&void 0!==e?e:null==u?void 0:u.username,hashtagExpression:n.hashtag}):null;case"playlist":return n.playlist?Object.assign(Object.assign({},s),{type:i.u5.PLAYLIST,username:null!==(r=n.channel)&&void 0!==r?r:null==u?void 0:u.username,playlistId:n.playlist}):null;case"playlist_collection":return n.playlist_collection?Object.assign(Object.assign({},s),{type:i.u5.PLAYLIST_COLLECTION,username:null==u?void 0:u.username}):null;case"skus":return n.skus?Object.assign(Object.assign({},s),{type:i.u5.PRODUCT_SKU,username:null!==(o=n.channel)&&void 0!==o?o:null==u?void 0:u.username,skus:n.skus}):null;case"channel":return Object.assign(Object.assign({},s),{type:i.u5.USER_TIMELINE,username:null!==(a=n.channel)&&void 0!==a?a:null==u?void 0:u.username});default:return null}})))&&void 0!==c?c:[];return(0,a.m)(l)}return null}),[e,u,n.video,n.max_videos,n.channel,n.channel_id,n.playlist,n.playlist_collection,n.priority,n.hashtag,n.skus])}},27947:function(t,e,n){"use strict";n.d(e,{$:function(){return r.$}});var r=n(76564)},76564:function(t,e,n){"use strict";n.d(e,{$:function(){return c}});var r=n(87757),i=n.n(r),o=n(70060),a=n(9122),u=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},c=(0,o.B)((function(){return u(void 0,void 0,void 0,i().mark((function t(){var e;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([n.e(181),n.e(1213)]).then(n.bind(n,88901));case 2:return e=t.sent,t.abrupt("return",e.default);case 4:case"end":return t.stop()}}),t)})))}),(function(){return(0,a.oR)((function(t){return t.params.lang}))||"en"}))},55157:function(t,e,n){"use strict";n.d(e,{w:function(){return r.w}});var r=n(53390)},17991:function(t,e,n){"use strict";n.d(e,{d:function(){return v}});var r=n(93324),i=n(98661),o=n(94471),a=n(82071),u=n(57626),c=n(9122),s=n(57734),l=n(32853),f=n(9402),d=n(53733),p=n(35944),v=(i.default.createElement,function(t){var e,n=t.children,v=t.appContextType,h=(0,i.useRef)(!1),_=(0,c.oR)((function(t){return t.actions})),y=(0,c.oR)(s.GF),m=(0,o.I4)(),g=(0,r.Z)(m,1)[0].config,b=(0,d.V)({config:g,appContextType:v}),w=(0,l.t)();return(0,f.j)(),(0,u.g)(null===(e=null==b?void 0:b.channel)||void 0===e?void 0:e.encoded_id),(0,i.useEffect)((function(){var t;(0,a.Pd)(null!==(t=y.page_url)&&void 0!==t?t:"")}),[y.page_url]),(0,i.useEffect)((function(){b&&!h.current&&(w(b),h.current=!0)}),[b,w]),(0,i.useEffect)((function(){b&&_.setContext(b)}),[b,_]),(0,p.tZ)(p.HY,{children:n})})},98173:function(t,e,n){"use strict";n.d(e,{W:function(){return c}});var r=n(98661),i=n(57626),o=n(9122),a=n(57734),u=n(35944),c=(r.default.createElement,function(t){var e=t.children,n=(0,o.oR)(a.GF);return(0,i.U)(Boolean(null==n?void 0:n.commerce_funnel_tracking_enabled)),(0,u.tZ)(u.HY,{children:e})})},98594:function(t,e,n){"use strict";n.d(e,{m:function(){return r}});var r=(0,n(98661).createContext)(null)},76801:function(t,e,n){"use strict";n.d(e,{j:function(){return l}});var r=n(98661),i=n(35039),o=n(46997),a=n(9122),u=n(57734),c=n(17570),s=n(35944),l=(r.default.createElement,function(t){var e=t.appContextType,n=t.children,r=(0,a.oR)(u.GF),l=(0,c.u)({username:r.channel,encodedId:r.channel_id}),f=(0,o.g)({appContextType:e,params:r,channel:l});return(null==f?void 0:f.length)?(0,s.tZ)(i.v,{configs:f,params:r,children:n}):null})},16203:function(t,e,n){"use strict";n.d(e,{F:function(){return u}});var r=n(98661),i=n(9122),o=n(57734),a=n(35944),u=(r.default.createElement,function(t){var e=t.children,n=(0,i.oR)((function(t){return t.actions})),u=((0,i.oR)(o.g2)||{}).channel;return(0,r.useEffect)((function(){(null==u?void 0:u.config)&&n.fetchedParams(u.config)}),[null==u?void 0:u.config,n]),(0,a.tZ)(a.HY,{children:e})})},94717:function(t,e,n){"use strict";n.d(e,{B:function(){return s}});var r=n(98661),i=n(52145),o=n(58368),a=n(60128),u=n(57734),c=n(35944),s=(r.default.createElement,function(t){var e=t.children,n=(0,a.oR)(u.GF),r=(0,o.y)(n);return(0,c.tZ)(i.i.Provider,{value:r,children:e})})},90340:function(t,e,n){"use strict";n.d(e,{C:function(){return c}});var r=n(98661),i=n(25791),o=n(9122),a=n(43918),u=n(35944),c=(r.default.createElement,function(t){var e=t.widgetParams,n=t.initialParams,c=t.children,s=(0,r.useMemo)((function(){return(0,a.L)(n.target),(0,a.L)(e.target),(0,i.r)(o.E3,{initialParams:n,widgetParams:e})}),[n,e]),l=(0,r.useMemo)((function(){var t,r,i=null!==(r=null!==(t=e.name)&&void 0!==t?t:n.widget_id)&&void 0!==r?r:"";return(0,o.MT)(i,(function(){return s}))}),[n.widget_id,s,e.name]);return(0,r.useEffect)((function(){return function(){l.destroy()}}),[l]),(0,u.tZ)(o.zt,{store:l,children:c})})},92285:function(t,e,n){"use strict";n.d(e,{y:function(){return u}});var r=n(98661),i=n(68586),o=n(27947),a=n(35944),u=(r.default.createElement,function(t){var e=t.children;return(0,a.tZ)(i.O.Provider,{value:(0,o.$)(),children:e})})},50411:function(t,e,n){"use strict";n.d(e,{w:function(){return p}});var r=n(98661),i=n(17991),o=n(98173),a=n(98594),u=n(76801),c=n(16203),s=n(94717),l=n(90340),f=n(92285),d=n(35944),p=(r.default.createElement,function(t){var e=t.appContextType,n=t.initialParams,r=t.widgetParams,p=t.children;return(0,d.tZ)(a.m.Provider,{value:{dir:null==r?void 0:r.dir},children:(0,d.tZ)(l.C,{initialParams:n,widgetParams:r,children:(0,d.tZ)(s.B,{children:(0,d.tZ)(u.j,{appContextType:e,children:(0,d.tZ)(i.d,{appContextType:e,children:(0,d.tZ)(c.F,{children:(0,d.tZ)(o.W,{children:(0,d.tZ)(f.y,{children:p})})})})})})})})})},53390:function(t,e,n){"use strict";n.d(e,{w:function(){return r.w}});n(90340);var r=n(50411)},9122:function(t,e,n){"use strict";n.d(e,{AC:function(){return r.AC},E3:function(){return i.E},MT:function(){return r.MT},oR:function(){return r.oR},zt:function(){return r.zt}});var r=n(60128),i=n(4858)},4858:function(t,e,n){"use strict";n.d(e,{E:function(){return c}});var r,i=n(48774),o=n(4518),a=n(57758),u={appContext:null,engagement:{seconds_watched:0,os:(0,o.Ij)(),app_version:"v20230531.1-hotfix",platform:"web",product:"embed.web.naboo"},defaultParams:{pwa_host:"https://fw.tv",a11y_disable_focus:!1,a11y_disable_previews:!1,api_host:"https://fireworkapi1.com",api_host_ads:"https://fireworkadservices1.com",api_host_tracking:"https://p2.fwpixel.com",api_host_tracking_legacy:"https://fireworkanalytics.com",auto_apply_coupon_enabled:!0,branding:!0,in_sdk_webview:"undefined"!=typeof window&&(null===(r=window.origin)||void 0===r?void 0:r.includes("fw-sdk-webview")),captions:!0,lang:"undefined"!=typeof window&&window.navigator?window.navigator.language:void 0,livestream_chat:!0,livestream_prompt_username_change:null,loop:!0,lsdesktop:!0,full_height_pdp:!1,autoplay:!0,autoplay_keep_thumbnail:!1,fullscreen_pdp_enabled:!1,key_moments:!0,product_checkout_card_v2:!0,hide_product_price:!0,http_ls:!1,product_index:!1,minimized:!1,muted:!0,pip:!1,product_card_carousel:!0,player_add_to_calendar:!0,player_captions:!0,player_fullscreen:!0,player_minimize:!0,player_margin:void 0,player_more_menu:!0,player_placement:void 0,player_product_on_click:!1,player_play_pause:!1,player_detached:!1,player_tap_to_unmute:!0,per_page:a.a,persist_cart:!1,reset_transform:i.wl.FULLSCREEN,expand_prod_desc_enabled:!0,share:i.Mu.HASH,shopping_cart_style:i.pl.CART,show_preroll:!0,show_ads:!0,tap_to_watch:!0,hero_flip_order:!1,hero_text_mode:"even",pip_observe:!1,pip_navigate:!0,skus:"",dir:"",priority:"skus,playlist,hashtag,playlist_collection",size:i.o2.LARGE,ui_font_css:"",ui_full_cta:!0,ui_primary_color:"",ui_button_color:"",ui_button_font_color:"",ui_border_style:"default",ui_share_sheet:"facebook,twitter,whatsapp,sms,copy,native",product_image_carousel:!1}},c=Object.assign(Object.assign({},u),{params:{},initialParams:{},fetchedParams:{},widgetParams:{},urlParams:{},session:{},videos:{},liveStreams:{},navigation:[],placeholders:[],loading:!1,loaded:!1,error:null})},57734:function(t,e,n){"use strict";function r(t){return t.appContext}function i(t){return t.params}n.d(e,{GF:function(){return i},g2:function(){return r}})},60128:function(t,e,n){"use strict";n.d(e,{zt:function(){return _},MT:function(){return v},oR:function(){return y},AC:function(){return m}});var r=n(93276),i=n(14671),o=n(77329),a=n(43918),u=n(4942),c=n(7344),s=n(25791),l=function(t,e){return{setContext:function(e){t({appContext:e,engagement:{}},!1,"setContext")},fetchedParams:function(n){var r=e(),i=(0,s.r)(r,{fetchedParams:n}),o=i.params,a=i.fetchedParams;a&&t({params:o,fetchedParams:a},!1,"fetchedParams")},updateParams:function(e){t((function(t){return{params:Object.assign(Object.assign({},t.params),e)}}),!1,"updateParams")},setVideos:function(e){t({videos:e.reduce((function(t,e){return t[e.encoded_id]=e,t}),{}),navigation:e.map((function(t){return t.encoded_id})),placeholders:[]},!1,"setVideos")},updateVideoFromLiveStream:function(e,n){t((function(t){return{videos:Object.assign(Object.assign({},t.videos),(0,u.Z)({},n.video_id,Object.assign(Object.assign({},t.videos[n.video_id]),(0,c.rO)(t.videos[n.video_id],n))))}}),!1,"updateVideoFromLiveStream")}}},f=n(38597);var d=n(4858),p=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i1)e[a]=n.getAll(a)[0];else{var u=n.get(a);u&&(e[a]=u)}}}catch(e){(0,r.ji)("Cant convert querystring to object",{captureContext:{extra:{queryString:t,err:e}},originalException:e})}return e}},43918:function(t,e,n){"use strict";n.d(e,{k:function(){return i},L:function(){return o}});var r=n(98661);function i(){var t=(0,r.createContext)(void 0);return{Provider:function(e){var n=e.store,i=e.children,o=(0,r.useRef)();return o.current||(o.current=n),(0,r.createElement)(t.Provider,{value:o.current},i)},useStore:function(e,n){void 0===n&&(n=Object.is);var i=(0,r.useContext)(t);if(!i)throw new Error("Seems like you have not used zustand provider as an ancestor.");return i(e,n)},useStoreApi:function(){var e=(0,r.useContext)(t);if(!e)throw new Error("Seems like you have not used zustand provider as an ancestor.");return(0,r.useMemo)((function(){return{getState:e.getState,setState:e.setState,subscribe:e.subscribe,destroy:e.destroy}}),[e])}}}function o(t){t&&(t.toJSON=function(){return{hidden:"prevent devtool from crashing"}})}},20763:function(t,e,n){"use strict";n.d(e,{t:function(){return o}});var r=n(65042),i=function t(e){return function(n){try{var r=e(n);return r instanceof Promise?r:{then:function(e){return t(e)(r)},catch:function(){return this}}}catch(e){return{then:function(){return this},catch:function(n){return t(n)(e)}}}}},o=function(t,e){return function(n,o,a){var u=Object.assign({getStorage:r.$o,serialize:JSON.stringify,deserialize:JSON.parse,partialize:function(t){return t},version:0,merge:function(t,e){return Object.assign(Object.assign({},e),t)}},e);(u.blacklist||u.whitelist)&&console.warn("The ".concat(u.blacklist?"blacklist":"whitelist"," option is deprecated and will be removed in the next version. Please use the 'partialize' option instead."));var c,s=!1,l=new Set,f=new Set;try{c=u.getStorage()}catch(t){}if(!c)return t((function(){console.warn("[zustand persist middleware] Unable to update item '".concat(u.name,"', the given storage is currently unavailable.")),n.apply(void 0,arguments)}),o,a);c.removeItem||console.warn("[zustand persist middleware] The given storage for item '".concat(u.name,"' does not contain a 'removeItem' method, which will be required in v4."));var d=i(u.serialize),p=function(){var t,e=u.partialize(Object.assign({},o()));u.whitelist&&Object.keys(e).forEach((function(t){var n;!(null===(n=u.whitelist)||void 0===n?void 0:n.includes(t))&&delete e[t]})),u.blacklist&&u.blacklist.forEach((function(t){return delete e[t]}));var n=d({state:e,version:u.version}).then((function(t){return c.setItem(u.name,t)})).catch((function(e){t=e}));if(t)throw t;return n},v=a.setState;a.setState=function(t,e){v(t,e),p()};var h,_=t((function(){n.apply(void 0,arguments),p()}),o,a),y=function(){var t;if(c){s=!1,l.forEach((function(t){return t(o())}));var e=(null===(t=u.onRehydrateStorage)||void 0===t?void 0:t.call(u,o()))||void 0;return i(c.getItem.bind(c))(u.name).then((function(t){if(t)return u.deserialize(t)})).then((function(t){if(t){if("number"!=typeof t.version||t.version===u.version)return t.state;if(u.migrate)return u.migrate(t.state,t.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((function(t){var e;return h=u.merge(t,null!==(e=o())&&void 0!==e?e:_),n(h,!0),p()})).then((function(){null==e||e(h,void 0),s=!0,f.forEach((function(t){return t(h)}))})).catch((function(t){null==e||e(void 0,t)}))}};return a.persist={setOptions:function(t){u=Object.assign(Object.assign({},u),t),t.getStorage&&(c=t.getStorage())},clearStorage:function(){var t;null===(t=null==c?void 0:c.removeItem)||void 0===t||t.call(c,u.name)},rehydrate:function(){return y()},hasHydrated:function(){return s},onHydrate:function(t){return l.add(t),function(){l.delete(t)}},onFinishHydration:function(t){return f.add(t),function(){f.delete(t)}}},y(),h||_}}},41216:function(t,e,n){"use strict";var r;n.d(e,{A:function(){return r}}),function(t){t.OK="OK",t.EMPTY_VAST="EMPTY_VAST",t.NO_NABOO_ADS="NO_NABOO_ADS",t.BAD_INSERTION_METHOD="BAD_INSERTION_METHOD"}(r||(r={}))},78318:function(t,e,n){"use strict";n.d(e,{e:function(){return f}});var r=n(93324),i=n(87757),o=n.n(i),a=n(98661),u=n(4518),c=n(76330),s=n(88883),l=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},f=function(t,e){var n=!(0,u.og)(),i=function(t,e){switch(!0){case!!t.playlist:return"_fwn_spcfgpl_".concat(t.playlist);case!!t.channel:case!!t.channel_id:return"_fwn_spcfgchnl_".concat(t.channel||t.channel_id);case!!(null==e?void 0:e.oauthClientId):return"_fwn_spcfgoauthcid_".concat(null==e?void 0:e.oauthClientId);default:return""}}(t,e),f=(0,c.ZP)(i,void 0),d=(0,r.Z)(f,2),p=d[0],v=d[1],h=(0,a.useState)(function(t){if(t&&t.expire&&!(Date.now()>t.expire+18e5))return t.config}(p)),_=h[0],y=h[1],m=(null==p?void 0:p.expire)&&Date.now()>(null==p?void 0:p.expire);return(0,a.useEffect)((function(){l(void 0,void 0,void 0,o().mark((function r(){var a,u,c;return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.show_ads){r.next=3;break}return y(null),r.abrupt("return");case 3:if(void 0!==_&&!m||!i){r.next=31;break}return r.prev=4,a={},(null==t?void 0:t.playlist)?a.playlist_id=t.playlist:(null==t?void 0:t.channel)?a.channel=null==t?void 0:t.channel:(null==e?void 0:e.oauthClientId)&&(a.oauth_app_uid=e.oauthClientId),a.ad_target_platform=n?"desktop_web":"mobile_web",r.next=10,(0,s._)({url:"".concat(null==t?void 0:t.api_host_ads,"/api/ad_setting"),query:a});case 10:if(200!==(u=r.sent).status){r.next=17;break}return r.next=14,u.json();case 14:r.t0=r.sent,r.next=18;break;case 17:r.t0=null;case 18:if((c=r.t0)&&!c.error){r.next=21;break}throw new Error("api");case 21:_||y(c),v({expire:(new Date).getTime()+3e5,config:c}),r.next=31;break;case 26:r.prev=26,r.t1=r.catch(4),v({expire:(new Date).getTime()+6e4,config:null}),y(null);case 31:case"end":return r.stop()}}),r,null,[[4,26]])})))}),[t.show_ads,t.channel,t.playlist,t.api_host_ads,null==e?void 0:e.oauthClientId,_,n,m,i,v,y]),_}},68195:function(t,e,n){"use strict";n.d(e,{i:function(){return d}});var r=n(87757),i=n.n(r),o=n(98661),a=n(45578),u=n.n(a),c=n(41216),s=n(65522),l=n(95818),f=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},d=function(t){var e=t.appContext,n=t.params,r=(0,o.useMemo)((function(){var t,n;return null===(n=null===(t=null==e?void 0:e.adConfig)||void 0===t?void 0:t.placements)||void 0===n?void 0:n.find((function(t){return t.placement_type===l.i.RM_INFEED||t.placement_type===l.i.OUTSTREAM}))}),[e]),a=(0,o.useState)({loading:!1,adVideos:[],positions:[]}),d=a[0],p=a[1];(0,o.useEffect)((function(){r&&r.ad_tags.length>0&&p((function(t){return Object.assign(Object.assign({},t),{loading:!0})}))}),[r]);var v=(0,o.useCallback)((function(t){return f(void 0,void 0,void 0,i().mark((function e(){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.sT)(t.ad_tags[0],n);case 2:return(r=e.sent).status===c.A.OK?p((function(e){return{loading:!1,adVideos:u()(e.adVideos.concat(r.ads),(function(t){return t.encoded_id})),positions:t.positions||[0]}})):p((function(t){return Object.assign(Object.assign({},t),{loading:!1})})),e.abrupt("return",r);case 5:case"end":return e.stop()}}),e)})))}),[r,n,p]);(0,o.useEffect)((function(){d.loading&&(r?f(void 0,void 0,void 0,i().mark((function t(){var e;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v(r);case 2:e=t.sent,r.placement_type===l.i.OUTSTREAM&&e.status===c.A.OK&&1===e.ads.length&&setTimeout((function(){return f(void 0,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v(r);case 2:case"end":return t.stop()}}),t)})))}),3e3);case 4:case"end":return t.stop()}}),t)}))):p((function(t){return Object.assign(Object.assign({},t),{loading:!1})})))}),[r,d.loading,n.vast_attrs]);var h=(0,o.useCallback)((function(){r&&r.placement_type===l.i.OUTSTREAM&&v(r)}),[r,v]);return(0,o.useMemo)((function(){return Object.assign(Object.assign({},d),{actions:{loadMore:h}})}),[d,h])}},18659:function(t,e,n){"use strict";n.d(e,{h:function(){return o}});var r=n(98661),i=n(95818),o=function(t){var e=t.appContext;return(0,r.useMemo)((function(){var t,n;return!(!e||!("adConfig"in e))&&!!(null===(n=null===(t=e.adConfig)||void 0===t?void 0:t.placements)||void 0===n?void 0:n.find((function(t){return t.placement_type===i.i.OUTSTREAM})))}),[e])}},65522:function(t,e,n){"use strict";n.d(e,{Tj:function(){return b},sT:function(){return g}});var r=n(87757),i=n.n(r),o=n(41216),a=n(23919),u=n(88883),c=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))};function s(t){var e=t.xml,n=t.params;return c(this,void 0,void 0,i().mark((function t(){var r,o,c;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,u._)({url:"".concat(null==n?void 0:n.api_host_ads,"/api/fwai/ad_videos"),fetchParams:{method:"POST",body:e,headers:{"Content-Type":"application/xml"}}});case 3:return r=t.sent,t.next=6,r.json();case 6:return o=t.sent,c=o.ads,t.abrupt("return",c);case 11:return t.prev=11,t.t0=t.catch(0),(0,a.H)(t.t0),t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[0,11]])})))}function l(t){var e=t.adUnit,n=t.adConfig,r=t.appContext,o=t.params;return c(this,void 0,void 0,i().mark((function t(){var c,s,l,f;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,c=null==n?void 0:n.placements.filter((function(t){var n;return(null===(n=t.ad_tags[0])||void 0===n?void 0:n.id)===e.id})),t.next=4,(0,u._)({url:"".concat(null==o?void 0:o.api_host_ads,"/api/ad_videos"),query:{channel:null==r?void 0:r.username,ad_setting_id:null==n?void 0:n.id,placement_id:null==c?void 0:c[0].id,ad_tag_id:e.id,ad_target_platform:null==n?void 0:n.ad_target_platform,context:null==n?void 0:n.context,presentation_type:null==n?void 0:n.presentation_type,ads_count:1,page_url:(null==o?void 0:o.page_url)||("undefined"!=typeof window?window.location.href:"")}});case 4:return s=t.sent,t.next=7,s.json();case 7:return l=t.sent,f=l.ads,t.abrupt("return",f||[]);case 12:return t.prev=12,t.t0=t.catch(0),(0,a.H)(t.t0),t.abrupt("return",[]);case 16:case"end":return t.stop()}}),t,null,[[0,12]])})))}var f=n(89062),d=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))};function p(t){return t instanceof NodeList?(0,f.Z)(t).find((function(t){return t instanceof CDATASection})):void 0}function v(t,e){return t.getElementsByTagName(e)[0]}function h(t){var e,n,r,i,o,a,u,c=null===(e=v(t,"VASTAdTagURI"))||void 0===e?void 0:e.childNodes[0].textContent;if(c)return c;var s=v(t,"Playlist")?null===(i=null===(r=p(null===(n=v(t,"Ad"))||void 0===n?void 0:n.childNodes))||void 0===r?void 0:r.wholeText)||void 0===i?void 0:i.trim():void 0;if(s)return s;var l=null===(u=null===(a=p(null===(o=v(t,"vmap:AdTagURI"))||void 0===o?void 0:o.childNodes))||void 0===a?void 0:a.wholeText)||void 0===u?void 0:u.trim();return l||void 0}var _=function(t){var e=new URL(t),n=Date.now().toString(),r=location.href||"";return e.hostname.toLowerCase().includes("doubleverify")?function(t,e,n){var r=t.searchParams.get("_vast");if(r){var i=new URL(r);i.searchParams.set("correlator",e),i.searchParams.set("description_url",n),i.searchParams.set("url",n),t.searchParams.set("_vast",i.href)}t.searchParams.set("_api","2"),t.searchParams.set("_ssm","0"),t.searchParams.set("_tsm",e),t.searchParams.set("gdpr","0"),t.searchParams.delete("gdpr_consent"),t.searchParams.delete("_abm"),t.searchParams.set("_pum",n)}(e,n,r):(e.searchParams.set("correlator",n),e.searchParams.set("description_url",r),e.searchParams.set("url",r)),e.href};function y(t,e){return void 0===e&&(e=1),d(this,void 0,void 0,i().mark((function n(){var r,o,a,c,s;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,u._)({url:_(t)});case 2:return r=n.sent,n.next=5,r.text();case 5:if(o=n.sent,a=new DOMParser,c=a.parseFromString(o,"text/xml"),!Boolean(v(c,"VAST")&&v(c,"AdParameters"))){n.next=13;break}return n.abrupt("return",o);case 13:if(!((s=h(c))&&e<5)){n.next=20;break}return n.next=17,y(s,e+1);case 17:n.t0=n.sent,n.next=21;break;case 20:n.t0="";case 21:return n.abrupt("return",n.t0);case 22:case"end":return n.stop()}}),n)})))}var m=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},g=function(t,e){return m(void 0,void 0,void 0,i().mark((function n(){var r,a;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,y((i=t.ad_tag,(u=null==e?void 0:e.vast_attrs)&&!i.includes(u)?i+u:i));case 2:if(r=n.sent){n.next=5;break}return n.abrupt("return",{status:o.A.EMPTY_VAST});case 5:return n.next=7,s({xml:r,params:e});case 7:if(!((a=n.sent).length>0)){n.next=12;break}return n.abrupt("return",{status:o.A.OK,ads:a});case 12:return n.abrupt("return",{status:o.A.NO_NABOO_ADS});case 13:case"end":return n.stop()}var i,u}),n)})))},b=function(t){var e=t.adUnit,n=t.adConfig,r=t.appContext,a=t.params;switch(!0){case"SSAI"===e.ad_insertion_method:return function(t){var e=t.adUnit,n=t.adConfig,r=t.appContext,a=t.params;return m(void 0,void 0,void 0,i().mark((function t(){var u;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l({adUnit:e,adConfig:n,appContext:r,params:a});case 2:if(!((u=t.sent).length>0)){t.next=7;break}return t.abrupt("return",{status:o.A.OK,ads:u});case 7:return t.abrupt("return",{status:o.A.NO_NABOO_ADS});case 8:case"end":return t.stop()}}),t)})))}({adConfig:n,adUnit:e,appContext:r,params:a});case"FWAI"===e.ad_insertion_method:return g(e,a);default:return{status:o.A.BAD_INSERTION_METHOD}}}},98309:function(t,e,n){"use strict";n.d(e,{B:function(){return i}});var r=n(89062);function i(t){var e=t.videos,n=t.adVideos,i=t.positions;if(0===i.length||0===n.length)return e;for(var o=new Set(i),a=(0,r.Z)(e),u=(0,r.Z)(n),c=[];a.length>0;){var s=c.length;o.has(s)&&u.length>0?c.push(u.shift()):c.push(a.shift())}return c}},36263:function(t,e,n){"use strict";n.d(e,{w:function(){return E}});var r=n(4942),i=n(93324),o=n(98661),a=n(64085),u=n(94471),c=n(32532),s=n(9301),l=n(55157),f=n(9122),d=n(49786),p=n(523),v=n(13546),h=n(30791),_=n(68793),y=n(35944);o.default.createElement;function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function g(t){for(var e=1;e0&&r&&(x(r),S({type:a.tw.FW_PROGRAMMATICPLAYER_IMPRESSION}))}),[r,w,x,S]);var k=(0,o.useCallback)((function(t){var e=t.video,n=t.navigationType,r=t.countOfNextVideos;(0,s.vG)(l.widget_id,e.encoded_id,n),P(e),O.loadMore(r)}),[O,l.widget_id]),j=(0,o.useState)(!1),A=j[0],I=j[1],R=(0,o.useCallback)((function(){I(!1)}),[]),N=(0,o.useRef)(!0);return(0,o.useEffect)((function(){if(N.current&&r&&C){var t=(0,v.KH)({params:l,appContext:r,video:C,videos:w,feed:E});I(!t),N.current=!1}}),[r,l,C,w,E]),A&&r?(0,y.tZ)(p.Y,{appContext:r,playerLayout:l.minimized?c.R.MINIMIZED:c.R.FULLSCREEN,playerOpenReason:h.Q.PROGRAMMATIC,muted:e,onClose:R,params:l,pip:n,onNavigateToVideo:k,video:C,videos:w}):null},E=function(t){var e=t.initialParams,n=t.widgetParams,r=t.appContextType,i=b(t,["initialParams","widgetParams","appContextType"]);return(0,y.tZ)(l.w,{appContextType:r,initialParams:e,widgetParams:n,children:(0,y.tZ)(w,g({},i))})}},70783:function(t,e,n){"use strict";n.d(e,{K:function(){return G}});var r=n(93324),i=n(98661),o=n(68195),a=n(18659),u=n(98309),c=n(94471),s=n(8221),l=n(56551),f=n(90429),d=n(32532),p=n(9301),v=n(55157),h=n(9122),_=n(57734),y=n(49786),m=n(90283),g=n(78659),b=n(523),w=n(55883),E=n(30791),O=n(89213),x="fwn:dock:set",S="fwn:dock:disable",T=n(34510),C=n(93886),P=n(52282),k=n(13546),j=n(68793),A=n(20460),I=n(24010),R=n(39764),N=n(21572),L=n(55519);var D=(0,I.Z)("div",{target:"e1a8tha05"})("max-height:100%;height:",(function(t){return t.height}),";position:relative;width:100%;overflow:hidden;"),M=(0,I.Z)("div",{target:"e1a8tha04"})("border-radius:var(\n ",R.dO,",\n ",(function(t){return"hard"===t.borderStyle?"0":N.n_}),"\n );",R.gP,":var(\n ",R.dO,",\n ",(function(t){return"hard"===t.borderStyle?"0":N.n_}),"\n );height:",(function(t){return t.branding?"calc(100% - 20px)":"100%"}),";max-height:",(function(t){return t.branding?"calc(100% - 20px)":"100%"}),";overflow:hidden;position:relative;"),U=(0,I.Z)("div",{target:"e1a8tha03"})("position:absolute;top:0;right:0;bottom:0;left:0;background:var(",R.F$,", transparent);color:white;display:flex;justify-content:center;align-items:center;"),F=(0,I.Z)("div",{target:"e1a8tha02"})({name:"bl687k",styles:"position:absolute;top:0;right:0;bottom:0;left:0;cursor:pointer"}),Z=(0,I.Z)(L.E,{target:"e1a8tha01"})({name:"1cya4es",styles:"border-radius:var(--border-radius, 0);height:100%"}),H=(0,I.Z)("div",{target:"e1a8tha00"})("position:absolute;text-align:center;width:100%;height:100%;font-weight:600;font-size:16px;line-height:22px;background:var(",R.F$,", transparent);backdrop-filter:blur(","20px",");padding:20px;display:flex;align-items:center;justify-content:center;"),W=n(35944);i.default.createElement;var z={name:"zsyu3y",styles:"width:15em"},B=function(t){var e,v,g=t.extraParams,I=t.videos,R=(0,h.oR)(_.g2),N=(0,h.oR)(_.GF),L=(0,i.useMemo)((function(){return Object.assign(Object.assign({},N),g)}),[N,g]),B=(0,y.To)(),G=(0,j.n)(),V=(0,y.gb)(),Y=(0,l.X)().t,$="pinned"===L.mode,X=(0,T.Z)("_fwnpipexit",!1),q=(0,r.Z)(X,1)[0],J=(0,a.h)({appContext:R}),K=(0,o.i)({params:L,appContext:R}),Q=K.adVideos,tt=K.positions,et=K.actions,nt=(0,c.I4)(),rt=(0,r.Z)(nt,2),it=rt[0],ot=it.videos,at=it.loading,ut=it.feed,ct=rt[1],st=(0,i.useMemo)((function(){return J?Q:(0,u.B)({adVideos:Q,videos:I||ot,positions:tt})}),[I,J,Q,ot,tt]),lt=(0,i.useState)(null),ft=lt[0],dt=lt[1],pt=(0,i.useState)(q),vt=pt[0],ht=pt[1],_t=Boolean((0,f.IG)()),yt=function(t){var e=(0,i.useState)(!1),n=e[0],r=e[1],o=(0,i.useState)(!1),a=o[0],u=o[1];(0,i.useEffect)((function(){var e=function(e){n&&e.detail.widget_id!==t.widget_id&&r(!1)},i=function(){u(!0)};return a||(document.addEventListener(x,e),document.addEventListener(S,i)),function(){document.removeEventListener(x,e),document.removeEventListener(S,i)}}),[t.widget_id,n,r,a]);var c=(0,i.useMemo)((function(){return{dock:function(){var e,n=new CustomEvent(x,{detail:{widget_id:null!==(e=t.widget_id)&&void 0!==e?e:""}});document.dispatchEvent(n),r(!0)},undock:function(){r(!1);var t=new CustomEvent(x,{detail:{widget_id:null}});document.dispatchEvent(t)},disableDock:function(){u(!0),document.dispatchEvent(new CustomEvent(S))}}}),[r,u,t.widget_id]);return[n&&!a,c]}(L),mt=(0,r.Z)(yt,2),gt=mt[0],bt=mt[1],wt=(0,i.useCallback)((function(t){t&&bt.disableDock(),ht(!0)}),[bt,ht]),Et=(0,w.F)(R,L),Ot=Et.isPlayingCurrentContent,xt=Et.currentPlayerId,St=Et.currentPlayerLayout,Tt=Et.canClaimPlayer,Ct=(0,f.JW)()||!1===L.autoplay||_t,Pt=!_t&&!(0,f.JW)()&&L.dock&&Tt(E.Q.STORYBLOCK_DOCK),kt=(0,i.useRef)(!_t&&!(0,f.JW)()&&"pinned"===L.mode&&Tt(E.Q.STORYBLOCK_CONFIG)).current,jt=(0,s.g)({onChange:(0,i.useCallback)((function(t,e){if(!Ct&&Pt&&!$){var n=e.getBoundingClientRect().top<0;!t&&n?bt.dock():t&>&&bt.undock()}}),[Ct,Pt,$,gt,bt])});(0,i.useEffect)((function(){gt&&!Pt&&xt!==L.widget_id&&bt.undock()}),[bt,L,gt,Pt,xt]);var At=(0,i.useCallback)((function(t){var e=t.video,n=t.navigationType,r=t.countOfNextVideos;(0,p.vG)(L.widget_id,e.encoded_id,n),dt(e),J?et.loadMore():ct.loadMore(r)}),[et,ct,J,L.widget_id]),It=(0,i.useMemo)((function(){return(0,C.yb)(ft)}),[ft]),Rt=st[0];(0,i.useEffect)((function(){dt(Rt)}),[Rt]);var Nt=(0,i.useState)(!1),Lt=Nt[0],Dt=Nt[1],Mt=(0,i.useCallback)((function(t){t&&Dt(!0)}),[]);(0,i.useEffect)((function(){Lt&&st[0]&&R&&(B(R),G({type:O.t.FW_STORYBLOCK_IMPRESSION,video:st[0]}),V([st[0]],A.Em.PLAYER,R))}),[R,Lt,st,B,G,V]);var Ut=(0,i.useCallback)((function(t){(0,k.KH)({video:ft,appContext:R,params:L,videos:st,feed:ut})&&(null==t||t.preventDefault(),null==t||t.stopPropagation())}),[ft,st,ut,R,L]),Ft=(0,i.useMemo)((function(){return"fullscreen"===L.mode?d.R.FULLSCREEN:gt||$?d.R.MINIMIZED:d.R.DEFAULT}),[L,gt,$]),Zt=(0,i.useMemo)((function(){return"fullscreen"===L.mode||"pinned"===L.mode?E.Q.STORYBLOCK_CONFIG:gt?E.Q.STORYBLOCK_DOCK:E.Q.NOT_OPENED}),[L,gt]),Ht=!Lt||null!==xt&&xt!==L.widget_id&&(Ot||St===d.R.FULLSCREEN),Wt=(0,W.tZ)(b.Y,{autoplay:!Ct,isStoryblock:!0,forcePause:Ht,appContext:R,onClose:wt,params:L,pip:!1,videos:st,video:ft,playerLayout:Ft,playerOpenReason:Zt,muted:null===(e=L.muted)||void 0===e||e,onNavigateToVideo:At,onVisibilityChange:Mt});return(0,W.BX)(W.HY,{children:[(0,W.tZ)(m.e,{params:L}),(0,W.tZ)(D,{dir:L.dir,ref:jt,height:$||!st.length&&!at?"0":null!==(v=L.height)&&void 0!==v?v:"0",className:"cy-storyblock cy-storyblock-".concat(L.name||L.widget_id),onKeyUp:function(t){t.stopPropagation()},children:$?kt&&!vt&&Wt:(0,W.BX)(W.HY,{children:[(0,W.BX)(M,{borderStyle:L.ui_border_style,branding:!!L.branding,children:[Wt,(Ot||gt)&&(0,W.BX)(U,{children:[(0,W.tZ)(Z,{src:It,alt:Y("Video Cover")}),(0,W.tZ)(H,{className:"cy-video-in-pip-message",children:(0,W.BX)("div",{children:[(0,W.tZ)("img",{src:n(84587),alt:Y("Picture in Picture icon"),role:"presentation"}),(0,W.tZ)("div",{css:z,children:Y("Video is playing in picture in picture mode")})]})})]}),(0,f.JW)()&&(0,W.tZ)(F,{onClick:Ut})]}),!!L.branding&&(0,W.tZ)(P.y,{})]})})]})},G=function(t){var e=t.initialParams,n=t.widgetParams;return(0,W.tZ)(v.w,{appContextType:g.LV.EMBED_STORYBLOCK_CONTEXT_TYPE,initialParams:e,widgetParams:n,children:(0,W.tZ)(B,{})})}},90888:function(t,e,n){"use strict";n.d(e,{Dm:function(){return o},FE:function(){return a},Hk:function(){return u},Lu:function(){return i},iC:function(){return r}});var r="fwn:update_player_state_sync",i="fwn:remove_player_state_sync",o="fwn:global_players_state_sync",a=180,u=320},13546:function(t,e,n){"use strict";n.d(e,{KH:function(){return c},TI:function(){return d},Fd:function(){return v},qP:function(){return f}});var r=n(20460),i=n(7344),o=n(64085),a=n(94471),u=n(90429);function c(t){var e=t.appContext,n=t.params,c=t.video,s=t.videos,l=t.feed;if(((0,u.JW)()||document.getElementById(r.lr))&&(0,a.x$)(l)){var f=(0,i.f6)(e,n,c),d=l?Object.assign(Object.assign({},l),{feed_items:s.map((function(t){return(null==l?void 0:l.feed_items.find((function(e){return e.video.encoded_id===t.encoded_id})))||{variant:"ad_insertion",video:t}}))}):null;return(0,o.e5)({action:"play",appContext:f,sentinel:"fwn-internal",video:c,feed:d}),!0}return!1}n(88263),n(89213);var s=n(48774),l=n(90888),f=function(t){var e=t.windowSize,n=t.isHorizontal,r=t.playerMargin,i=n?l.Hk:l.FE,o=n?l.FE:l.Hk;return{xRange:e.width-i-r,yRange:e.height-o-r}},d=function(t){var e=t.windowSize,n=t.translate,r=t.isHorizontal,i=t.initialPlayerPlacement,o=t.playerMargin,a=n.x,u=n.y,c=f({windowSize:e,isHorizontal:r,playerMargin:o}),l=c.xRange,d=c.yRange,p=i.includes("right")?a+l:a,v=i.includes("bottom")?u+d:u,h=d/2;return p=0;e--)r[".".concat(a.W7,"-").concat(t,"-").concat(e)]=0===e?{display:"none"}:{display:"block",flex:"0 0 ".concat(e/24*100,"%"),maxWidth:"".concat(e/24*100,"%")}})),r)},28809:function(t,e,n){"use strict";var r;n.d(e,{Y:function(){return r},d:function(){return i}}),function(t){t.ALL="all",t.RESIZE_URL="resizeurl"}(r||(r={}));var i=function(t){if("undefined"==typeof window)return!1;var e=new URLSearchParams(window.location.search).get("features");if(null===e)return!1;var n=e.split(",");return n.includes(r.ALL)||n.includes(t)}},78659:function(t,e,n){"use strict";n.d(e,{LV:function(){return r},_y:function(){return i},gB:function(){return o.g}});n(28809);var r,i,o=n(18123);!function(t){t.EMBED_GRID_CONTEXT_TYPE="embed_grid",t.EMBED_CONTEXT_TYPE="embed_player",t.EMBED_HERO_CONTEXT_TYPE="embed_hero",t.EMBED_STORYBLOCK_CONTEXT_TYPE="embed_storyblock",t.EMBED_STORYLINK_CONTEXT_TYPE="embed_storylink",t.EMBED_BUTTON_CONTEXT_TYPE="embed_button",t.EMBED_ADD_TO_CALENDAR_CONTEXT_TYPE="embed_add_to_calendar",t.EMBED_SHARE_CONTEXT_TYPE="embed_share",t.EMBED_AGENT_CONTEXT_TYPE="embed_agent",t.VIDEO_DETAIL_CONTEXT_TYPE="video_detail_player",t.DISCOVER_CONTEXT_TYPE="discover_player",t.CHANNEL_CONTEXT_TYPE="channel_player",t.HASHTAG_CONTEXT_TYPE="hashtag_player",t.HEADLESS_FEED="headless_feed"}(r||(r={})),function(t){t.CONTEXT_DISCOVER="discover",t.CONTEXT_CHANNEL="channel",t.CONTEXT_HASHTAG="hashtag",t.CONTEXT_PLAYLIST="playlist",t.CONTEXT_PLAYLIST_COLLECTION="playlist_collection",t.CONTEXT_VIDEO_DETAIL="video_detail",t.CONTEXT_SKUS="skus"}(i||(i={}))},18123:function(t,e,n){"use strict";n.d(e,{g:function(){return f}});var r=n(60136),i=n(89611),o=n(2853),a=n(21572),u=n(93886),c=n(28809);function s(){s=function(t,e){return new n(t,void 0,e)};var t=RegExp.prototype,e=new WeakMap;function n(t,r,o){var a=new RegExp(t,r);return e.set(a,o||e.get(t)),(0,i.Z)(a,n.prototype)}function o(t,n){var r=e.get(n);return Object.keys(r).reduce((function(e,n){return e[n]=t[r[n]],e}),Object.create(null))}return(0,r.Z)(n,RegExp),n.prototype.exec=function(e){var n=t.exec.call(this,e);return n&&(n.groups=o(n,this)),n},n.prototype[Symbol.replace]=function(n,r){if("string"==typeof r){var i=e.get(this);return t[Symbol.replace].call(this,n,r.replace(/\$<([^>]+)>/g,(function(t,e){return"$"+i[e]})))}if("function"==typeof r){var a=this;return t[Symbol.replace].call(this,n,(function(){var t=arguments;return"object"!=typeof t[t.length-1]&&(t=[].slice.call(t)).push(o(t,a)),r.apply(this,t)}))}return t[Symbol.replace].call(this,n,r)},s.apply(this,arguments)}var l=void 0;(0,o.Z)((function(t){l=!!t}));var f=function(t,e,n){var r;if(void 0===e&&(e={}),void 0===n&&(n=u.mC),!t)return"";if(t&&(t.match("default_avatar")||t.match("default_event_trailer")))return t;t.includes("/000")&&(t=t.replace("/000/","/540/"));var i={format:l?"webp":"jpg",quality:62,size:[a.tQ[0],a.tQ[1]]},o=Object.assign(Object.assign({},i),e||{}),f=o.format,d=o.quality,p=o.size,v="";v+=d?".".concat(d):"",v+=f?".".concat(f):"";var h=t.match(s(/\/transcoded\/([0-9]{3,4})\//i,{width:1})),_="";_=p?(null===(r=null==h?void 0:h.groups)||void 0===r?void 0:r.width)?t.replace("/".concat(h.groups.width,"/"),"/".concat(p[0],"/"))+v:t.replace(/\/(original|\d{3,4}[_|x]\d{3,4})\//,"/".concat(p[0],"_").concat(p[1],"/"))+v:t+v;var y=new URL(_),m=n?new URL(n):y;return(0,c.d)(c.Y.RESIZE_URL)&&(y.host=m.host,y.protocol=m.protocol),y.toString()}},20460:function(t,e,n){"use strict";n.d(e,{BV:function(){return u},Em:function(){return r},VI:function(){return o},Xw:function(){return i},lr:function(){return c},mW:function(){return a}});var r,i,o,a,u="https://firework.tv?utm_source=website&utm_content=widget&utm_campaign=madeinfirework";!function(t){t.AUTOPLAY="autoplay",t.PLAYER="player"}(r||(r={})),function(t){t.CONFIRM_PAYMENT_INTENT="commerce:confirm_payment_intent"}(i||(i={})),function(t){t[t.HAVE_NOTHING=0]="HAVE_NOTHING",t[t.HAVE_METADATA=1]="HAVE_METADATA",t[t.HAVE_CURRENT_DATA=2]="HAVE_CURRENT_DATA",t[t.HAVE_FUTURE_DATA=3]="HAVE_FUTURE_DATA",t[t.HAVE_ENOUGH_DATA=4]="HAVE_ENOUGH_DATA"}(o||(o={})),function(t){t.DISCONNECTED="DISCONNECTED",t.CONNECTING="CONNECTING",t.RECONNECTING="RECONNECTING",t.CONNECTED="CONNECTED",t.DISCONNECTING="DISCONNECTING"}(a||(a={}));var c="fw-player"},40848:function(t,e,n){"use strict";n.d(e,{c:function(){return i}});var r=n(54697),i=function(t){return(0,r.Z)(Object.assign({key:"fwn",speedy:!1},t))}},89213:function(t,e,n){"use strict";n.d(e,{V:function(){return s},t:function(){return a.tw}});var r=n(4942),i=n(87757),o=n.n(i),a=n(64085),u=n(30087),c=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},s=function(t){var e=t.type,n=t.params,i=t.data,s=void 0===i?{}:i,l=t.videoElement;return c(void 0,void 0,void 0,o().mark((function t(){var i,c,f,d,p,v,h,_,y,m,g;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n){t.next=2;break}return t.abrupt("return");case 2:return c=n.channel,f=n.hashtag,d=n.name,p=n.playlist,v=n.target,h=n.widget_id,t.next=5,(0,u.G)();case 5:_=t.sent,y=_.session,m=(y=void 0===y?{guest_id:null}:y).guest_id,(null===(i=null==s?void 0:s.video)||void 0===i?void 0:i.encoded_id)&&(g=["action_url","badge","caption","encoded_id","hashtags","live_stream_status","video_type"].reduce((function(t,e){var n;return Object.assign(Object.assign({},t),(0,r.Z)({},e,null===(n=s.video)||void 0===n?void 0:n[e]))}),{}),s.video=g),l&&(s.extra=Object.assign(Object.assign({},s.extra||{}),{duration:l.duration,height:l.height,progress:l.currentTime,width:l.width})),(0,a._H)({target:v,type:e,data:Object.assign({channel:c,guest_id:m,hashtag:f,name:d,playlist:p,widget_id:h},s)});case 12:case"end":return t.stop()}}),t)})))}},57840:function(t,e,n){"use strict";n.d(e,{zM:function(){return s}});var r=n(15671),i=n(60136),o=n(82963),a=n(61120);function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=(0,a.Z)(t);if(e){var i=(0,a.Z)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,o.Z)(this,n)}}var c=function(t){(0,i.Z)(n,t);var e=u(n);function n(t){var i;return(0,r.Z)(this,n),(i=e.call(this,t)).name="AppError",i}return n}((0,n(7112).Z)(Error)),s=function(t){(0,i.Z)(n,t);var e=u(n);function n(t){var i;return(0,r.Z)(this,n),(i=e.call(this,t)).name="SessionError",i}return n}(c)},7344:function(t,e,n){"use strict";n.d(e,{X0:function(){return _},Xf:function(){return m},YF:function(){return p},b1:function(){return v},dm:function(){return f},f6:function(){return l},fQ:function(){return h},k$:function(){return d},rO:function(){return g},vV:function(){return y}});var r=n(51584),i=n.n(r),o=n(81763),a=n.n(o),u=n(47037),c=n.n(u),s=n(23919);n(88263);function l(t,e,n){var r=t.appContextType,o=t.username,u=t.guestId,s=t.embedFeedConfig,l=t.trackingData,f=t.trackingDataPixel;return{params:Object.keys(e).reduce((function(t,n){return(a()(e[n])||c()(e[n])||i()(e[n]))&&(t[n]=e[n]),t}),{}),appContextType:r,username:o,guestId:u,embedFeedConfig:Object.assign(Object.assign({},s),{firstVideoId:null==n?void 0:n.id}),trackingData:l,trackingDataPixel:f}}var f=function(t){var e=Math.log10(t)/3|0;if(0===e)return String(t);var n=["","k","M","G","T","P","E"][e],r=Math.pow(10,3*e),i=String(t/r).match(/^([0-9]+)\.?([0-9]+)?$/);return i?"".concat(i[1],".").concat(i[2]?i[2][0]:"0").replace(/\.0$/,"")+n:""},d=function(){try{return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){return(t^window.crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}catch(t){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}},p=function(){var t;try{return(null===(t=document.currentScript)||void 0===t?void 0:t.getAttribute("data-ad-id"))||void 0}catch(t){(0,s.PN)(t)}},v=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0},h=function(t){return!(!t||"false"===t||"0"===t)},_=function(t){return!!(t&&"false"===t||t&&"0"===t||!1===t)},y=function(t){return!!t&&!!t.match(/(.+)@(.+)\.(.+)/)},m=function(t){return-1!==t.search(/[^ ]+/)},g=function(t,e){var n=function(n){return(null==t?void 0:t["live_stream_".concat(n)])!==(null==e?void 0:e[n])},r=["announcement","chat_enabled","chat_in_replay_enabled","ended_at","playback_url","provider","replay_enabled","replay_url","scheduled_at","started_at","status","viewers_count_enabled","business_privacy_policy_url"];return t&&e&&t.id===e.video_id&&r.some((function(t){return n(t)}))?Object.fromEntries(r.filter((function(t){return n(t)})).map((function(t){return["live_stream_".concat(t),e[t]]}))):null}},17570:function(t,e,n){"use strict";n.d(e,{u:function(){return p}});var r=n(93324),i=n(87757),o=n.n(i),a=n(98661),u=n(58368),c=n(64085),s=n(76330),l=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},f={},d={},p=function(t){var e,n=t.username,i=t.encodedId,p=t.target,v=(0,u.h)(),h=(0,s.ZP)("_fwnchnnl_".concat(n||i),null),_=(0,r.Z)(h,2),y=_[0],m=_[1],g=(0,a.useState)((e=y)&&e.expire&&e.channel?(new Date).getTime()>e.expire+432e5?null:e.channel:null),b=g[0],w=g[1];return(0,a.useEffect)((function(){l(void 0,void 0,void 0,o().mark((function t(){var e,r,a,u;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=new Date,r=(null==y?void 0:y.expire)&&e.getTime()>(null==y?void 0:y.expire),b&&!r){t.next=18;break}if(t.prev=3,n||i){t.next=6;break}throw new Error("Missing channel username or encodedId");case 6:if(n?a=f[n]||(f[n]=v.getChannel(n)):i&&(a=d[i]||(d[i]=v.getChannelById(i))),!a){t.next=13;break}return t.next=10,a;case 10:u=t.sent,w(u.channel),m({expire:(new Date).getTime()+6e5,channel:u.channel});case 13:t.next=18;break;case 15:t.prev=15,t.t0=t.catch(3),(0,c._H)({target:p,type:[c.tw.FW_ERROR,c.tw.FW_EMBEDFEED_ERROR],data:{detail:"error"}});case 18:case"end":return t.stop()}}),t,null,[[3,15]])})))}),[v,n,i,b,null==y?void 0:y.expire,m,w,p]),b}},9402:function(t,e,n){"use strict";n.d(e,{j:function(){return d}});var r=n(93324),i=n(87757),o=n.n(i),a=n(98661),u=n(58368),c=n(23919),s=n(9122),l=n(57734),f=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))};function d(){var t=this,e=(0,u.h)(),n=(0,s.oR)((function(t){return t.actions})),i=(0,s.oR)(l.g2),d=(0,s.oR)(l.GF),p=(0,a.useMemo)((function(){return JSON.stringify(Object.entries(d).filter((function(t){return(0,r.Z)(t,1)[0].startsWith("cohort_")})).sort())}),[d]);(0,a.useEffect)((function(){f(t,void 0,void 0,o().mark((function t(){var r,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,r=JSON.parse(p),!(null==i?void 0:i.channel)||!r.length){t.next=7;break}return t.next=5,e.getPlaylistFromCohorts(i.channel.username,Object.fromEntries(r));case 5:a=t.sent,n.updateParams({playlist:a.playlist_id});case 7:t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),(0,c.KE)("Error when fetching playlist from cohorts: ".concat(t.t0.data.error));case 12:case"end":return t.stop()}}),t,null,[[0,9]])})))}),[p,e,n,null==i?void 0:i.channel])}},68793:function(t,e,n){"use strict";n.d(e,{n:function(){return a}});var r=n(98661),i=n(9122),o=n(89213),a=function(){var t=(0,i.oR)((function(t){return t.params})),e=(0,r.useRef)(!1);return(0,r.useCallback)((function(n){var r=n.type,i=n.video;e.current||(e.current=!0,(0,o.V)({type:r,params:t,data:i?{video:i}:{}}))}),[t])}},49785:function(t,e,n){"use strict";n.d(e,{F:function(){return u}});var r=n(23919),i=n(92906),o=n(35608),a=n(60996);function u(t){var e,n,u=t.appContextType,c=t.channel,s=t.embedFeedConfig,l=t.embedInstanceId,f=t.params,d=t.session,p=t.adConfig;if((f.channel||f.channel_id)&&!c||!d||void 0===p)return null;if(f.playlist&&!f.channel&&!f.channel_id)return(0,r.ji)("Widget with `playlist` is missing `channel`",{data:{playlist:f.playlist}}),null;var v=null!==(e=(0,a.D)(s,c))&&void 0!==e?e:{},h=v.trackingData,_=v.trackingDataPixel;if(!s||!h||!_)return null;var y=(0,o.M)(u,f);return{appContextType:u,params:f,username:(null==c?void 0:c.username)||f.channel||f.channel_id,embedFeedConfig:s,embedInstanceId:l,guestId:d.guest_id,channel:c,adConfig:p,trackingData:Object.assign(Object.assign({app_context_type:u,embed_instance_id:l},h),{presentation:y,ad_id:f.ad_id,guest_id:d.guest_id,page_url:null!==(n=f.page_url)&&void 0!==n?n:"",product:"embed.web.naboo"}),trackingDataPixel:(0,i.E)(Object.assign(Object.assign({app_context_type:u,embed_instance_id:l},_),{presentation:y}))}}},35608:function(t,e,n){"use strict";n.d(e,{M:function(){return o}});var r=n(78659),i=n(30570),o=function(t,e){switch(t){case r.LV.EMBED_ADD_TO_CALENDAR_CONTEXT_TYPE:return i.Y.ADD_TO_CALENDAR;case r.LV.EMBED_SHARE_CONTEXT_TYPE:return i.Y.SHARE;case r.LV.EMBED_HERO_CONTEXT_TYPE:return i.Y.HERO;case r.LV.EMBED_STORYBLOCK_CONTEXT_TYPE:return i.Y.STORYBLOCK;case r.LV.EMBED_BUTTON_CONTEXT_TYPE:return i.Y.FLOATING_BUTTON;case r.LV.EMBED_STORYLINK_CONTEXT_TYPE:return i.Y.STORYLINK;case r.LV.EMBED_AGENT_CONTEXT_TYPE:return i.Y.AGENT;case r.LV.EMBED_CONTEXT_TYPE:case r.LV.EMBED_GRID_CONTEXT_TYPE:return"grid"===e.mode?i.Y.GRID:i.Y.CAROUSEL;case r.LV.HEADLESS_FEED:return i.Y.CAROUSEL;default:throw new Error("Unknown appContexType")}}},53733:function(t,e,n){"use strict";n.d(e,{V:function(){return r.V}});n(30570);var r=n(13219)},60996:function(t,e,n){"use strict";n.d(e,{D:function(){return o}});var r=n(94471),i=n(78659),o=function(t,e){if(!t)return null;switch(!0){case t.type===r.u5.PLAYLIST:return{trackingData:{context:i._y.CONTEXT_PLAYLIST,channel:null==e?void 0:e.username,channel_id:null==e?void 0:e.encoded_id,playlist_id:t.playlistId},trackingDataPixel:{context:i._y.CONTEXT_PLAYLIST,channel:null==e?void 0:e.username,_channel_id:null==e?void 0:e.encoded_id,_playlist_id:t.playlistId}};case t.type===r.u5.PLAYLIST_COLLECTION:return{trackingData:{context:i._y.CONTEXT_PLAYLIST_COLLECTION,channel:null==e?void 0:e.username,channel_id:null==e?void 0:e.encoded_id,playlist_id:t.playlistId},trackingDataPixel:{context:i._y.CONTEXT_PLAYLIST_COLLECTION,channel:null==e?void 0:e.username,_channel_id:null==e?void 0:e.encoded_id,_playlist_id:t.playlistId}};case t.type===r.u5.PRODUCT_SKU:return{trackingData:{context:i._y.CONTEXT_SKUS,channel:null==e?void 0:e.username,channel_id:null==e?void 0:e.encoded_id,skus:t.skus},trackingDataPixel:{context:i._y.CONTEXT_SKUS,channel:null==e?void 0:e.username,_channel_id:null==e?void 0:e.encoded_id,skus:t.skus}};case t.type===r.u5.USER_TIMELINE_HASHTAG:return{trackingData:{context:i._y.CONTEXT_HASHTAG,hashtag:t.hashtagExpression,channel:null==e?void 0:e.username,channel_id:null==e?void 0:e.encoded_id},trackingDataPixel:{context:i._y.CONTEXT_HASHTAG,hashtag:t.hashtagExpression,channel:null==e?void 0:e.username,_channel_id:null==e?void 0:e.encoded_id}};case t.type===r.u5.USER_TIMELINE:return{trackingData:{context:i._y.CONTEXT_CHANNEL,channel:null==e?void 0:e.username,channel_id:null==e?void 0:e.encoded_id},trackingDataPixel:{context:i._y.CONTEXT_CHANNEL,channel:null==e?void 0:e.username,_channel_id:null==e?void 0:e.encoded_id}};default:return null}}},30570:function(t,e,n){"use strict";var r;n.d(e,{Y:function(){return r}}),function(t){t.ADD_TO_CALENDAR="add_to_calendar",t.CAROUSEL="carousel",t.GRID="grid",t.HERO="hero",t.SHARE="share",t.STORYBLOCK="storyblock",t.STORYLINK="storylink",t.FLOATING_BUTTON="floating_button",t.AGENT="agent"}(r||(r={}))},13219:function(t,e,n){"use strict";n.d(e,{V:function(){return f}});var r=n(98661),i=n(78318),o=n(78765),a=n(9122),u=n(57734),c=n(7344),s=n(17570),l=n(49785),f=function(t){var e=t.config,n=t.appContextType,f=t.extraParams,d=(0,a.oR)(u.GF),p=(0,r.useMemo)((function(){return Object.assign(Object.assign({},d),f)}),[f,d]),v=(0,s.u)({username:p.channel,encodedId:p.channel_id}),h=(0,i.e)(p),_=(0,r.useMemo)(c.k$,[]),y=(0,o.k)().session;return(0,r.useMemo)((function(){return e?(0,l.F)({embedFeedConfig:e,appContextType:n,channel:v,embedInstanceId:_,params:p,session:y,adConfig:h}):null}),[e,n,v,_,p,y,h])}},76330:function(t,e,n){"use strict";var r=n(65042),i=n(15742),o=(0,r.$o)(),a={storage:o};(0,i.cW)(o),(0,i.ij)(o),(0,i.Od)(o);e.ZP=function(t,e){return(0,i.ZP)(t,e,a)}},34510:function(t,e,n){"use strict";var r=n(65042),i=n(15742),o={storage:(0,r.G)()};e.Z=function(t,e){return(0,i.ZP)(t,e,o)}},15742:function(t,e,n){"use strict";n.d(e,{Mh:function(){return r},Od:function(){return s},cW:function(){return c},ij:function(){return u}});var r,i=n(98661),o=n(18446),a=n.n(o);!function(t){t.IFRAME_SCROLL_POSITION="_fwnscrll",t.PIP_DELIBERATELY_CLOSED="_fwnpipexit",t.ABLE_TO_IFRAMEIZE="_fwnablemnmze",t.LINK_PERSISTENT_TOKEN="_fwnlinkpersistenttoken",t.CUSTOMER_EMAIL="_fwncustomeremail",t.ORDER_TOKENS="_fwnordertokens"}(r||(r={}));var u=function(t){return function(e){if("undefined"!=typeof window)try{var n=t.getItem(e);if(!n)return;return JSON.parse(n)}catch(t){return}}},c=function(t){return function(e,n){if("undefined"!=typeof window)try{t.setItem(e,JSON.stringify(n))}catch(t){}}},s=function(t){return function(e){if("undefined"!=typeof window)try{t.removeItem(e)}catch(t){}}};e.ZP=function(t,e,n){var r=n.storage,o=(0,i.useCallback)((function(){var n=u(r)(t);return void 0!==n?n:e}),[e,t,r]),l=(0,i.useState)(o),f=l[0],d=l[1];(0,i.useEffect)((function(){d((function(t){var e=o();return a()(e,t)?t:e}))}),[o]);var p=(0,i.useCallback)((function(e,n){var i=(void 0===n?{}:n).skipUpdates,o=void 0!==i&&i;c(r)(t,e),!o&&d(e)}),[t,r]);return[f,p,(0,i.useCallback)((function(){return s(r)(t)}),[t,r])]}},54613:function(t,e,n){"use strict";n.d(e,{U:function(){return h}});var r=n(98661),i=n(78659),o=n(64085),a=n(94471),u=n(23919),c=n(72039),s=n(37371),l=n(48774),f=n(88263),d=n(36263),p=n(2650),v=n(35944),h=(r.default.createElement,function(t){var e=t.appContextType,n=t.widgetId,h=t.widgetParams,_=t.options,y=void 0===_?{}:_,m=t.target,g=t.hydratedFeed,b=h.channel,w=Object.assign({muted:!0,pip:!0},y),E={location:window.location,page_url:(0,f.XW)(),referrer:document.referrer,target:m,type:l._r.PROGRAMMATIC,widget_id:n};(0,c.XX)(Object.assign(Object.assign({},E),h)).measure(c.kG),(0,s.c)((function(){(0,u.MD)().configureScope((function(t){t.setTag("fwn_channel",null!=b?b:""),t.setTag("fwn_context","prog_player")}));try{m&&((0,o._H)({type:o.tw.FW_PROGRAMMATICPLAYER_RENDER,data:{widget_id:E.widget_id},target:m}),(0,r.render)((0,v.tZ)(p.Z,{onError:function(t){return(0,u.H)(t)},children:(0,v.tZ)(a.Ch.Provider,{value:g,children:(0,v.tZ)(d.w,{appContextType:e||i.LV.EMBED_CONTEXT_TYPE,initialParams:E,muted:!!w.muted,pip:!!w.pip,widgetParams:h})})}),m))}catch(t){(0,u.H)(t)}}))})},88883:function(t,e,n){"use strict";n.d(e,{_:function(){return v}});var r=n(87757),i=n.n(r),o=n(82492),a=n.n(o),u=n(23919),c=n(88263),s=n(93886),l=n(30087),f=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},d={cache:"no-cache",credentials:"include",mode:"cors",headers:{"Content-Type":"application/json"}},p=function(t,e){return t.startsWith("/")&&!t.startsWith("//")?e+t:t},v=function(t){var e=t.url,n=t.query,r=t.fetchParams,o=void 0===r?{}:r,v=t.baseUrl,h=void 0===v?s.F$:v;return f(void 0,void 0,void 0,i().mark((function t(){var r,s,f,v;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=Object.assign(Object.assign({},d),o),t.next=3,(0,l.G)();case 3:return r=t.sent,(null==(s=r.session)?void 0:s.token)&&(o=a()(o,{headers:{Authorization:"Bearer ".concat(s.token)}})),f=e.includes("?")?"&":"?",v=p(e,h)+f+(0,c.f0)(n),t.prev=8,t.abrupt("return",fetch(v,o));case 12:throw t.prev=12,t.t0=t.catch(8),(0,u.H)(t.t0,{captureContext:{extra:{fetchUrl:v,fetchParams:o}}}),t.t0;case 16:case"end":return t.stop()}}),t,null,[[8,12]])})))}},32053:function(t,e,n){"use strict";n.d(e,{G:function(){return u}});var r=n(87757),i=n.n(r),o=n(37500),a=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},u=function(){return a(void 0,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,o.Gg)());case 1:case"end":return t.stop()}}),t)})))}},37500:function(t,e,n){"use strict";n.d(e,{Gg:function(){return p}});var r=n(87757),i=n.n(r),o=n(82071),a=n(57840),u=n(7344),c=n(71515),s=n(97981),l=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},f="2020-06-11",d=function(t){var e=t.guestId;return l(void 0,void 0,void 0,i().mark((function t(){var n,r,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(0,u.k$)(),3600,r=new Date,o={expires_in:3600,expires_at:new Date(r.getTime()+36e5),guest_id:e,id:n,referrer:"undefined"!=typeof document&&document.referrer,started_at:r,type:"embed_session",version:f,visitor_id:e,visitor_session_id:"".concat(e).concat(n)},(0,c.KY)(o),t.abrupt("return",{session:o,guestId:e});case 6:case"end":return t.stop()}}),t)})))};"undefined"!=typeof window&&(window._fwnSessionPromise=void 0);var p=function(t,e){void 0===t&&(t=o.Gx),void 0===e&&(e=d);try{var n=void 0,r=(0,c.vL)()||{};try{n=(0,o.lX)()}catch(t){}if(!n||!(0,o.I6)(n))throw new a.zM("Missing guest id");return v(),h(r),{guestId:n,session:r}}catch(n){if(n instanceof a.zM){if(!window)return;return(0,c.Ov)(),window._fwnSessionPromise?window._fwnSessionPromise:(window._fwnSessionPromise=t().then((function(t){return(0,o.f3)(t),e({guestId:t}).then((function(e){var n=e.session;return window._fwnSessionPromise=null,(0,c.ic)(),{guestId:t,session:n}}))})),window._fwnSessionPromise)}throw n}},v=function(){var t=(0,c.PW)();if(t&&new Date-t>18e5)throw new a.zM("Inactivity")},h=function(t){var e=t||{},n=e.expires_at,r=e.version;if(f!==r)throw new a.zM("Invalid session version");if(!n||(0,s.B)(n))throw new a.zM("Expired session token")}},71515:function(t,e,n){"use strict";n.d(e,{KY:function(){return f},Ov:function(){return d},PW:function(){return p},ic:function(){return v},vL:function(){return l}});var r=n(65042),i="_fwnthrdptyfwvs",o="_fwnthrdptyfwvactvt",a={},u={},c=function(t){try{return(0,r.$o)().getItem(t)}catch(t){}},s=function(t,e){try{(0,r.$o)().setItem(t,e)}catch(t){}},l=function(){var t=a;try{t=JSON.parse(c(i))}catch(t){}return t},f=function(t){try{a=t,s(i,JSON.stringify(t))}catch(t){}},d=function(){try{a={},s(i,JSON.stringify(a))}catch(t){}},p=function(){return function(){var t;try{t=c(o),t=JSON.parse(t),t=new Date(t)}catch(e){t=void 0}return t||u}()},v=function(){return function(t){try{u=t,s(o,JSON.stringify(u))}catch(t){}}(new Date)}},97981:function(t,e,n){"use strict";n.d(e,{B:function(){return i},Y:function(){return o}});var r=n(92906),i=function(t){return!t||t&&Date.now()-Date.parse(t)>0},o=function(t){var e,n,i,o,a;if(!t)return{};var u={guest_id:(null===(e=t.session)||void 0===e?void 0:e.guest_id)||(null==t?void 0:t.guest_id),session_id:t.session_id||(null===(n=t.session)||void 0===n?void 0:n.id)||(null==t?void 0:t.id),session_type:t.session_type||(null===(i=t.session)||void 0===i?void 0:i.type)||(null==t?void 0:t.type)};return t._user_id?u._user_id=t._user_id:u.user_id=null===(o=t.session)||void 0===o?void 0:o.user_id,t._visitor_id?u._visitor_id=t._visitor_id:u.visitor_id=null===(a=t.session)||void 0===a?void 0:a.visitor_id,(0,r.E)(u)}},30087:function(t,e,n){"use strict";n.d(e,{G:function(){return r.G},Y:function(){return i.Y}});var r=n(32053),i=n(97981)},60358:function(t,e,n){"use strict";n.d(e,{LU:function(){return i},Nj:function(){return o},Xf:function(){return a}});var r=n(4518),i=function(t){return Math.round(1e3*t)/1e3},o=function(t){return t.filter((function(t){return(null==t?void 0:t.encoded_id)&&((null==t?void 0:t.download_url)||"live_stream"===(null==t?void 0:t.video_type)&&((null==t?void 0:t.live_stream_playback_url)||(null==t?void 0:t.live_stream_replay_url)))}))},a=function(){return"undefined"==typeof window?null:(0,r.og)()?"mobile_web":"web"}},21572:function(t,e,n){"use strict";n.d(e,{n_:function(){return i},s8:function(){return o},tQ:function(){return r}});var r=[240,400],i="10px",o="4px"},53198:function(t,e,n){"use strict";n.d(e,{c:function(){return _}});var r,i,o=n(15671),a=n(43144),u=n(82492),c=n.n(u),s=n(82071),l=n(27026),f=n(81449),d=n(83470),p=n(30087),v=n(47109),h=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},_=function(){function t(){(0,o.Z)(this,t),r.add(this)}return(0,a.Z)(t,[{key:"guest_id",get:function(){return(0,p.G)().then((function(t){var e=t.session;return null==e?void 0:e.guest_id}))}},{key:"session_id",get:function(){return(0,p.G)().then((function(t){var e=t.session;return null==e?void 0:e.id}))}},{key:"session_referrer",get:function(){return(0,p.G)().then((function(t){var e=t.session;return null==e?void 0:e.referrer}))}},{key:"eventQueue",get:function(){return[]}},{key:"isFallback",value:function(){return!1}},{key:"sendEvent",value:function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=l.yN.Essential),(0,s.jl)({endpoint:{url:t,isUserEngagement:n,consent:r},data:e,host:void 0})}},{key:"push",value:function(t){var e=null==t?void 0:t.event;h(this,r,"m",i).call(this,e,{event_properties:{user_data:t}})}},{key:"purchase",value:function(t){var e,n="_fwnuserorder",o=(null===(e=(0,d.ij)(n))||void 0===e?void 0:e.value)||[];t.order_id&&o.includes(t.order_id)||(h(this,r,"m",i).call(this,v.a.PURCHASE,{event_properties:{user_data:t}}),t.order_id&&(o.push(t.order_id),(0,d.cW)(n,o)))}},{key:"setConsent",value:function(t){(0,l.mL)(t)}}]),t}();r=new WeakSet,i=function(t,e){var n=(0,f.nn)();(0,s.jl)({endpoint:{url:"/trk/user:".concat(t),isUserEngagement:!1,consent:l.yN.Essential},data:c()({event_properties:{_last_channel_id:(0,s.IE)(),_last_video_id:(0,s.lR)(),last_engaged_timestamp:(0,f.Tm)(),_business_membership_id:null==n?void 0:n.value,last_business_membership_id_timestamp:null==n?void 0:n.createTime}},e),host:void 0})}},37767:function(t,e,n){"use strict";n.d(e,{u:function(){return f}});var r=n(23919),i=n(82071),o=n(27026),a=n(81331),u=n(16486),c=n(32244),s=n(34445);function l(t){var e=t.shouldSendPageLoadPixelEvent;try{Object.defineProperty(window._fwn,"analytics",{get:s.E,configurable:!1}),(0,a.zu)(),(0,u.lH)(),(0,a.ys)(),(0,c.h)(),(0,i.Pd)(window.location.href),e&&(0,i.jl)({endpoint:{url:"/trk/system:page_load",isUserEngagement:!1,consent:o.yN.Essential},data:{},host:void 0})}catch(t){t instanceof Error&&(0,r.H)(new Error("Failed to attach analytics module"),{captureContext:{extra:{errorMessage:t.message}}})}}function f(t){if("undefined"!=typeof window)if(Object.prototype.hasOwnProperty.call(window._fwn,"analytics")){if(window._fwn.analytics.isFallback()){var e=window._fwn.analytics.eventQueue;l(t),e.forEach((function(t){var e=t.url,n=t.data,r=t.isUserEngagement;(0,i.jl)({endpoint:{url:e,consent:o.yN.Essential,isUserEngagement:!!r},data:n,host:void 0})}))}}else l(t)}},34445:function(t,e,n){"use strict";n.d(e,{E:function(){return o}});var r=n(53198),i=null;function o(){return null!=i?i:i=new r.c}},90333:function(t,e,n){"use strict";n.d(e,{u:function(){return r.u}});var r=n(37767)},47109:function(t,e,n){"use strict";var r;n.d(e,{a:function(){return r}}),function(t){t.PURCHASE="purchase"}(r||(r={}))},83183:function(t,e,n){"use strict";n.d(e,{u:function(){return _},D:function(){return y}});var r,i,o=n(89062),a=n(84506),u=n(43144),c=n(15671),s=n(77329),l=n(65042),f=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},d=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},p=function t(e){var n=this,r=e.css;(0,c.Z)(this,t),this.init=function(){n.element=document.createElement("div"),n.element.style.cssText="\n z-index: 2147483646;\n font-family: Helvetica, Arial, sans-serif;\n font-size: 12px;\n position: fixed;\n top: 0;\n right: 0;\n background: rgb(0 0 0 / 80%);\n color: white;\n padding: 0 0.5em;\n "+n.css,document.body.appendChild(n.element)},this.info=function(){for(var t=arguments.length,e=new Array(t),r=0;r1?n-1:0),i=1;i0)return i.reduce((function(t,e){return t[e.replace("data-","")]=document.currentScript.getAttribute(e),t}),{})}catch(t){}return{}}n.d(e,{g:function(){return r}})},750:function(t,e,n){"use strict";n.d(e,{f:function(){return o}});var r=n(20775),i=n(96950),o={video:function(t){var e=(0,r.Cu)(t);(0,r.qu)((0,i.zJ)(),e)}}},52609:function(t,e,n){"use strict";n.d(e,{u:function(){return i}});var r=n(750);function i(){"undefined"==typeof window||Object.prototype.hasOwnProperty.call(window._fwn,"hydrate")||Object.defineProperty(window._fwn,"hydrate",{value:r.f,writable:!1})}},38901:function(t,e,n){"use strict";n.d(e,{u:function(){return r.u}});var r=n(52609)},57413:function(t,e,n){"use strict";n.d(e,{u:function(){return i}});var r=n(40647);function i(){"undefined"==typeof window||Object.prototype.hasOwnProperty.call(window._fwn,"memoryStorage")||Object.defineProperty(window._fwn,"memoryStorage",{value:r.N,writable:!1})}},54294:function(t,e,n){"use strict";n.d(e,{u:function(){return r.u}});var r=n(57413)},89974:function(t,e,n){"use strict";n.d(e,{u:function(){return i}});var r=n(35204);function i(){"undefined"==typeof window||Object.prototype.hasOwnProperty.call(window._fwn,"play")||Object.defineProperty(window._fwn,"play",{value:r.h,writable:!1})}},73797:function(t,e,n){"use strict";n.d(e,{u:function(){return r.u}});var r=n(89974)},35204:function(t,e,n){"use strict";n.d(e,{h:function(){return s}});var r=n(57557),i=n.n(r),o=n(78659),a=n(7344),u=n(54613),c="fwn-programmatic-player";function s(t,e,n){void 0===e&&(e={});var r=document.getElementById(c);r&&r.remove(),(r=document.createElement("div")).id=c,(window.document.body||window.document.head).appendChild(r),(0,u.U)({appContextType:t.appContextType||o.LV.EMBED_CONTEXT_TYPE,widgetId:(0,a.k$)(),widgetParams:Object.assign({},i()(t,["appContextType","type","widget_id"])),options:e,target:r,hydratedFeed:n})}},5624:function(t,e,n){"use strict";n.d(e,{ub:function(){return E},xR:function(){return b},jA:function(){return d},Rx:function(){return w},kM:function(){return p}});var r=n(31111),i=n(15671),o=n(43144);function a(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n'),t.itemInCartText&&console.warn('itemInCartText is deprecated, please use shopping_cart_style widget param instead. Example: '),(0,(0,r.nX)((0,i.zJ)().getState()).configureCart)(t),window._fwnStoreFront||(window._fwnStoreFront={})},getCart:function(){return(0,r.Gj)((0,i.zJ)().getState())},getCheckoutUrl:function(){return(0,r.A0)((0,i.zJ)().getState())},hydrateCart:function(t){var e=(0,r.nX)((0,i.zJ)().getState()),n=e.updateUnitCartQuantity;(0,e.resetCart)();var o,u=a(t);try{for(u.s();!(o=u.n()).done;){var c=o.value;n({productUnit:c.unit,targetQuantity:c.quantity})}}catch(t){u.e(t)}finally{u.f()}},hydrateProducts:function(t){(0,(0,r.nX)((0,i.zJ)().getState()).hydrateProducts)(t)},onCartUpdated:function(t){(0,(0,r.nX)((0,i.zJ)().getState()).setCartUpdatedCallback)(t)},onCartDisplayed:function(t){(0,(0,r.nX)((0,i.zJ)().getState()).setCartDisplayedCallback)(t)},onProductsLoaded:function(t){(0,(0,r.nX)((0,i.zJ)().getState()).setProductsLoadedCallback)(t)},productFactory:function(t,e){return(0,o.c)(t,e)}}},3499:function(t,e,n){"use strict";n.d(e,{u:function(){return i}});var r=n(8659);function i(){"undefined"==typeof window||Object.prototype.hasOwnProperty.call(window._fwn,"shopping")||Object.defineProperty(window._fwn,"shopping",{value:r.B,writable:!1})}},52744:function(t,e,n){"use strict";n.d(e,{u:function(){return r.u}});var r=n(3499)},23493:function(t,e,n){"use strict";n.d(e,{k:function(){return r.k}});var r=n(7737)},69103:function(t,e,n){"use strict";n.d(e,{S:function(){return i}});var r=n(64085);function i(t){var e;"undefined"==typeof window||window._fwn||(window._fwn={}),window._fwn.version=null!==(e="v20230531.1-hotfix")?e:"unknown",t(),(0,r._H)({target:null,type:r.tw.FW_READY,data:{}})}},10854:function(t,e,n){"use strict";n.d(e,{f:function(){return s}});var r=n(14166),i=n(64117),o=n(23919),a=n(96950),u=n(88263);function c(t){(0,o.H)(new Error("Invalid invitation query string: ".concat(t)))}function s(){if(null===location||void 0===location?void 0:location.search){var t=(0,u.O5)(location.search).fwinvite;if(t)try{var e=JSON.parse((0,r.decodeUrl)(t));if(!e.invitation_token||!e.live_stream_id)return void c(t);(0,(0,i.NO)((0,a.zJ)().getState()).inviteReceived)(e.invitation_token,e.live_stream_id)}catch(e){c(t)}}}},20699:function(t,e,n){"use strict";n.d(e,{S:function(){return d}});var r=n(76750),i=n(23919),o=n(92906),a=n(90429),u=n(57009),c=n(48774),s=n(78659),l=n(7344),f="_fwn_fetchingInitialVideo";function d(){if("undefined"!=typeof window&&!(0,a.JW)()){var t;try{t=(0,u.tl)(window)}catch(t){(0,i.H)(t)}if(t&&!window[f]){window[f]=t;var e=(0,r.g)().channel||t.channel,n=t.playlist_id||t.hashtag?void 0:1;if(window._fwn.play)if(e){var d=Object.assign({appContextType:s.LV.EMBED_CONTEXT_TYPE,type:c._r.PROGRAMMATIC},(0,o.E)({channel:e,hashtag:t.hashtag,max_videos:n,playlist:t.playlist_id,video:t.video_id,widget_id:(0,l.k$)(),start_time:t.start_time}));window._fwn.play(d,{autoplay:!0,muted:!1,pip:!1})}else(0,i.PN)("Could not play shared video without channel")}else(0,a.mL)()}}},74923:function(t,e,n){"use strict";n.d(e,{i:function(){return o}});var r=n(65042),i=n(15742);function o(){var t=(0,r.G)(),e=t.getItem(i.Mh.IFRAME_SCROLL_POSITION);e&&(window.scrollTo(0,+e),t.removeItem(i.Mh.IFRAME_SCROLL_POSITION))}},7737:function(t,e,n){"use strict";n.d(e,{k:function(){return g}});var r=n(90333),i=n(83183),o=n(73686),a=n(73227),u=n(38901),c=n(54294),s=n(73797),l=n(5624),f=n(46816),d=n(82945),p=n(52744),v=n(69103),h=n(10854),_=n(20699),y=n(74923),m=!1;function g(){m||(m=!0,(0,v.S)((function(){(0,a.u)(),(0,o.u)({cookiesEnabled:!!window._fwn.globalConfig.commerce_funnel_tracking_enabled}),(0,r.u)({shouldSendPageLoadPixelEvent:!0}),(0,i.u)(),(0,u.u)(),(0,p.u)(),(0,c.u)(),(0,s.u)(),(0,l.ub)(),(0,d.u)(),(0,f.u)(),(0,y.i)(),(0,h.f)(),(0,_.S)()})))}},2853:function(t,e,n){"use strict";function r(t){if("function"==typeof Image){var e=new Image;e.onload=function(){t(e.width>0&&e.height>0)},e.onerror=function(){t(!1)},e.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA"}else t(!1)}n.d(e,{Z:function(){return r}})},44723:function(t,e,n){"use strict";n.d(e,{T:function(){return w}});var r=n(15671),i=n(43144),o=n(97326),a=n(88301),u=n(60136),c=n(82963),s=n(61120),l=n(56271),f=n(75071),d=n(40391),p=n(23919),v=n(25791),h=n(20460),_=n(7344);function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=(0,s.Z)(t);if(e){var i=(0,s.Z)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,c.Z)(this,n)}}var m,g=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},b=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},w=function(t){(0,u.Z)(n,t);var e=y(n);function n(){var t;return(0,r.Z)(this,n),t=e.call(this),m.set((0,o.Z)(t),void 0),t.__version="v20230531.1-hotfix",t.widgetId=(0,_.k$)(),g((0,o.Z)(t),m,void 0,"f"),t.shadowRoot&&(0,d.F)(t.shadowRoot),t}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){var t=this;(0,a.Z)((0,s.Z)(n.prototype),"connectedCallback",this).call(this),g(this,m,new MutationObserver((function(e){e.map((function(t){return t.attributeName})).some((function(t){return t&&(0,v.E)(t)}))&&t.render()})),"f"),b(this,m,"f").observe(this,{attributes:!0})}},{key:"disconnectedCallback",value:function(){var t;(0,a.Z)((0,s.Z)(n.prototype),"disconnectedCallback",this).call(this),null===(t=b(this,m,"f"))||void 0===t||t.disconnect(),this.shadowRoot&&(document.getElementById(h.lr)?((0,p.PN)("fw-player element found, cache root ".concat(this.widgetId)),(0,f.Ar)(this.shadowRoot,this.widgetId)):((0,p.PN)("Unmounting current component ".concat(this.widgetId)),(0,f.su)(this.shadowRoot,this.widgetId),(0,f.Cg)()))}}]),n}(l.oi);m=new WeakMap},75071:function(t,e,n){"use strict";n.d(e,{Ar:function(){return c},Cg:function(){return s},su:function(){return l}});var r=n(98661),i=n(64085),o=n(23919),a=n(90888);function u(){var t;return window.fwnRootCache=null!==(t=window.fwnRootCache)&&void 0!==t?t:{},window.fwnRootCache}function c(t,e){u()[e]=t}function s(){var t=u();Object.keys(t).forEach((function(e){(0,o.PN)("Unmounting cached component: ".concat(e)),l(t[e],e),delete t[e]}))}function l(t,e){t&&(0,r.unmountComponentAtNode)(t),(0,i.e5)({action:a.Lu,sentinel:"fwn-internal",widgetId:e})}},93886:function(t,e,n){"use strict";var r,i,o,a,u,c,s,l,f;n.d(e,{Dh:function(){return h},F$:function(){return y},Q9:function(){return g},RY:function(){return m},eN:function(){return p},mC:function(){return _},yb:function(){return v}});var d="undefined"!=typeof process&&(null===(r=null===process||void 0===process?void 0:process.env)||void 0===r?void 0:r.NEXT_PUBLIC_IS_NEXTJS)?{IS_NEXTJS:process.env.NEXT_PUBLIC_IS_NEXTJS,API_HOST:process.env.NEXT_PUBLIC_API_HOST,IMG_RESIZING_HOST:process.env.NEXT_PUBLIC_IMG_RESIZING_HOST,API_HOST_ADS:process.env.NEXT_PUBLIC_API_HOST_ADS,PIXEL_HOST:process.env.NEXT_PUBLIC_PIXEL_HOST,PIXEL_NABOO_HOST:process.env.NEXT_PUBLIC_PIXEL_NABOO_HOST,PRODUCT:process.env.NEXT_PUBLIC_PRODUCT,TRACK_VERSION:process.env.NEXT_PUBLIC_TRACK_VERSION,RELEASE_VERSION:process.env.NEXT_PUBLIC_RELEASE_VERSION}:{};function p(t){return d[t]}var v=function(t){if(!t||!Array.isArray(t.video_posters))return"";var e=null==t?void 0:t.video_posters.filter((function(t){return"jpg"===t.format}));return e.length>0?e[0].url:null==t?void 0:t.thumbnail_url},h=function(t){var e;return t&&Array.isArray(t.video_files)&&0!==t.video_files.length&&(null===(e=t.video_files[0])||void 0===e?void 0:e.placeholder_blur_hash)||""},_=null!==(o=null!==(i=p("IMG_RESIZING_HOST"))&&void 0!==i?i:"https://image-resizing-cdn-prod.fireworktv.com")&&void 0!==o?o:"",y=null!==(u=null!==(a=p("API_HOST"))&&void 0!==a?a:"https://fireworkapi1.com")&&void 0!==u?u:"",m=null!==(s=null!==(c=p("STRIPE_PUBLISHABLE_KEY"))&&void 0!==c?c:"pk_live_51IGU4HHvdCSG50mtMO0UQW25Q8GR6m6Wyh7L3oKpff0YHW2HPjULniVkMWk6EAEUOWTanzv4qopogXATuPiJpfjr00ui3gfS9U")&&void 0!==s?s:"pk_test_51IGU4HHvdCSG50mtan9SFMcC0IMks0sGlRsBwc6MgNjmnV6fg8uWjWdqiiRHvWcRm3XsSv8zCfCBW7ULffu3fRIf00pb9LB42y",g=null!==(f=null!==(l=p("PAYPAL_PARTNER_ID"))&&void 0!==l?l:"AR2K6KqsvhK3tox18B72nX6Eo1EEA2AejawGxovkDHXJfjeBjAWCadNvDrxCt96Klu2rr4tDYSXLT6J0")&&void 0!==f?f:"AU7BTByqG6o1YUPzM2NSOOw6wJsuflfRoq1TPqg2qy0ygpakcwdybwt1sc0AYxDHdQmuv2HmMs_3dZuZ"},27762:function(t,e,n){"use strict";n.d(e,{c:function(){return m}});var r=n(89062),i=n(15671),o=n(43144),a=n(85564),u=n.n(a),c=n(44908),s=n.n(c),l=n(7344);function f(){return"__".concat((0,l.k$)())}var d=function(){function t(){(0,i.Z)(this,t),this.image={image_ext_id:f(),image_id:f(),image_position:0,image_src:"",unit_ids:[],unit_ext_ids:[]}}return(0,o.Z)(t,[{key:"ext_id",value:function(t){return console.warn("`ext_id` is deprecated, use `extId` instead."),this.extId(t)}},{key:"extId",value:function(t){return this.image.image_ext_id=String(t),this}},{key:"position",value:function(t){return this.image.image_position=Number(t),this}},{key:"title",value:function(t){return this}},{key:"url",value:function(t){return this.image.image_src="string"==typeof t?t.replace(/^\/\//,"https://"):t,this}},{key:"imageId",value:function(t){return this.image.image_id=t,this}},{key:"unitIds",value:function(t){return this.image.unit_ids=t,this}},{key:"unitExtIds",value:function(t){return this.image.unit_ext_ids=t,this}},{key:"_image_id",value:function(t){return console.warn("`_image_id` is deprecated, use `imageId` instead."),this.image.image_id=t,this}},{key:"_unit_ids",value:function(t){return console.warn("`_unit_ids` is deprecated, use `unitIds` instead."),this.image.unit_ids=t,this}},{key:"_unit_ext_ids",value:function(t){return console.warn("`_unit_ext_ids` is deprecated, use `unitExtIds` instead."),this.image.unit_ext_ids=t,this}},{key:"build",value:function(){return this.validate(),this.image}},{key:"validate",value:function(){var t=[];this.image.image_src||t.push("url"),t.length>0&&console.warn("FW Product Builder: Product image is missing required fields: ".concat(t.join(", ")))}}]),t}(),p=n(4942),v=n(30236),h=n.n(v),_=function(){function t(e){void 0===e&&(e=!1),(0,i.Z)(this,t),this.verifyRequiredFields=e,this.images=[],this.unit={id:f(),available:!0,image_ext_id:"",product_ext_id:"",image_id:"",product_id:"",unit_ext_id:"",unit_id:f(),unit_name:"",unit_options:[],unit_original_price:0,unit_original_price_string:"",unit_position:0,unit_price:0,unit_price_string:"",unit_url:""}}return(0,o.Z)(t,[{key:"getImages",value:function(){return this.images}},{key:"ext_id",value:function(t){return console.warn("`ext_id()` is deprecated. Use `extId()` instead."),this.extId(t)}},{key:"extId",value:function(t){return this.unit.unit_ext_id=String(t),this}},{key:"sku",value:function(t){return this}},{key:"name",value:function(t){return this.unit.unit_name=String(t),this}},{key:"url",value:function(t){return this.unit.unit_url="string"==typeof t?t.replace(/^\/\//,"https://"):t,this}},{key:"price",value:function(t){return this.unit.unit_price=Number(t)||0,this.unit.unit_price_string=String(t),this}},{key:"originalPrice",value:function(t){return this.unit.unit_original_price=Number(t)||0,this.unit.unit_original_price_string=String(t),this}},{key:"isAvailable",value:function(t){return this.unit.available=!!t,this}},{key:"image",value:function(t){var e=new d;t(e);var n=e.build();return n.unit_ids=[this.unit.unit_id],n.unit_ext_ids=[this.unit.unit_ext_id],this.unit.image_id=n.image_id,this.unit.image_ext_id=n.image_ext_id,this.images.push(n),this}},{key:"meta",value:function(t){return this.unit._meta=h()(this.unit._meta||{},t),this}},{key:"option",value:function(t){var e=t.name,n=t.value;return this.unit.unit_options=[Object.assign(Object.assign({},this.unit.unit_options[0]),(0,p.Z)({},e,n))],this}},{key:"build",value:function(){return this.validate(),this.unit}},{key:"validate",value:function(){var t=[];this.unit.unit_ext_id||t.push("extId"),this.verifyRequiredFields&&(this.unit.unit_url||t.push("url"),this.unit.unit_price||t.push("price")),t.length>0&&console.warn("FW Product Builder: Product variant is missing required fields: ".concat(t.join(", ")))}}]),t}(),y=function(){function t(e){void 0===e&&(e=!1),(0,i.Z)(this,t),this.verifyRequiredFields=e,this.product={business_store_id:0,business_store_name:"",business_store_uid:"",id:f(),product_currency:"",product_currency_symbol:"",product_description:"",product_subtitle:"",product_handle:"",product_hide_price:!1,product_id:f(),product_ext_id:"",product_images:[],product_name:"",product_options:[],product_shipping:"",selected_product_unit_id:"",product_units:[],vendor_id:"",vendor_name:"",payment_providers:[],payment_settings:{checkout_features:{coupons:!1}}}}return(0,o.Z)(t,[{key:"ext_id",value:function(t){return console.warn("FW Product Builder: `ext_id` is deprecated. Use `extId` instead."),this.extId(t)}},{key:"extId",value:function(t){return this.product.product_ext_id=String(t),this}},{key:"name",value:function(t){return this.product.product_name=t,this}},{key:"description",value:function(t){return this.product.product_description=t,this}},{key:"subtitle",value:function(t){return this.product.product_subtitle=t,this}},{key:"currency",value:function(t){return this.product.product_currency=t,this}},{key:"variant",value:function(t){var e,n,i=new _(this.verifyRequiredFields);t(i);var o=i.build();(e=this.product.product_images).push.apply(e,(0,r.Z)(i.getImages())),o.product_id=this.product.product_id,o.product_ext_id=this.product.product_ext_id,this.product.product_units=null!==(n=this.product.product_units)&&void 0!==n?n:[];var a=this.product.product_units.findIndex((function(t){return t.unit_ext_id===o.unit_ext_id}));return-1!==a?this.product.product_units[a]=Object.assign(Object.assign({},this.product.product_units[a]),o):this.product.product_units.push(o),this}},{key:"image",value:function(t){var e=new d;return t(e),this.product.product_images.push(e.build()),this}},{key:"build",value:function(){return this.validate(),this.product.product_options=s()(u()(this.product.product_units.map((function(t){return t.unit_options[0]})).filter(Boolean).map((function(t){return Object.keys(t)})))),this.product.product_ext_id||(this.product.product_ext_id=f()),this.product}},{key:"validate",value:function(){var t=[];this.product.product_ext_id||t.push("extId"),this.verifyRequiredFields&&(this.product.product_name||t.push("name"),this.product.product_description||t.push("description"),this.product.product_currency||t.push("currency"),this.product.product_units.length||t.push("variant")),t.length>0&&console.warn("FW Product Builder: Product is missing required fields: ".concat(t.join(", ")))}}]),t}(),m=function(t,e){var n=new y(e);return t(n),n.build()}},21591:function(t,e,n){"use strict";n.d(e,{DO:function(){return E},Fx:function(){return s},Gr:function(){return y},IS:function(){return x},LD:function(){return O},LK:function(){return m},TS:function(){return b},Ue:function(){return c},Z_:function(){return g},_n:function(){return i},aE:function(){return v},cc:function(){return o},dm:function(){return f},jV:function(){return d},lV:function(){return h},mR:function(){return T},mc:function(){return _},rE:function(){return S},sp:function(){return u},v:function(){return p},vR:function(){return l},xg:function(){return w},yw:function(){return a}});var r=n(27026),i={url:"/trk/engagement:click_email_embed",isUserEngagement:!0,consent:r.yN.Essential},o={url:"/trk/engagement:click_cta",isUserEngagement:!0,consent:r.yN.Essential},a={url:"/trk/engagement:create_cta_impression",isUserEngagement:!1,consent:r.yN.Essential},u={url:"/trk/engagement:interactable_engaged_view",isUserEngagement:!1,consent:r.yN.Essential},c={url:"/trk/engagement:submit_poll_response",isUserEngagement:!0,consent:r.yN.Essential},s={url:"/trk/engagement:submit_question_response",isUserEngagement:!0,consent:r.yN.Essential},l={url:"/trk/feed:click_video",isUserEngagement:!1,consent:r.yN.Essential},f={url:"/trk/feed:create_redirect_fullscreen_impression",isUserEngagement:!1,consent:r.yN.Essential},d={url:"/trk/engagement:click_share_video",isUserEngagement:!0,consent:r.yN.Essential},p={url:"/trk/engagement:share_video",isUserEngagement:!0,consent:r.yN.Essential},v={url:"/trk/engagement:click_qrcode_toggle",isUserEngagement:!0,consent:r.yN.Essential},h={url:"/trk/video_player:click_pause",isUserEngagement:!1,consent:r.yN.Essential},_={url:"/trk/video_player:click_resume",isUserEngagement:!1,consent:r.yN.Essential},y={url:"/trk/video_player:dismiss",isUserEngagement:!1,consent:r.yN.Essential},m={url:"/trk/video_player:mute",isUserEngagement:!1,consent:r.yN.Essential},g={url:"/trk/video_player:next_video",isUserEngagement:!1,consent:r.yN.Essential},b={url:"/trk/video_player:prev_video",isUserEngagement:!1,consent:r.yN.Essential},w={url:"/trk/video_player:start_video",isUserEngagement:!1,consent:r.yN.Essential},E={url:"/trk/video_player:unmute",isUserEngagement:!1,consent:r.yN.Essential},O={url:"/trk/video_player:init",isUserEngagement:!1,consent:r.yN.Essential},x={url:"/trk/video_player:pip_enter",isUserEngagement:!1,consent:r.yN.Essential},S={url:"/trk/video_player:pip_exit",isUserEngagement:!1,consent:r.yN.Essential},T={url:"/trk/video_player:pip_failed",isUserEngagement:!1,consent:r.yN.Essential}},50818:function(t,e,n){"use strict";n.d(e,{NO:function(){return i.N},sp:function(){return r.sp},xg:function(){return r.xg}});var r=n(21591),i=n(85604)},85604:function(t,e,n){"use strict";n.d(e,{N:function(){return u}});var r=n(92906),i=n(82071),o=n(89213),a=n(21591),u=function(t){var e=t.params,n=t.getPlayerNestedTrackingPayload,u=function(t){(0,i.jl)(Object.assign(Object.assign({},t),{host:null==e?void 0:e.api_host_tracking}))};return{trackPlayerClose:function(t){var e=t.video,i=t.dismissAction;if(e){var o=e.encoded_id,c=e.variant;u({endpoint:a.Gr,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{dismiss_action:i,variant:c,_video_id:o}))}})}},trackPlayerClickPause:function(t){var e=t.variant,i=t.videoId;u({endpoint:a.lV,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{variant:e,_video_id:i}))}})},trackPlayerClickResume:function(t){var e=t.variant,i=t.videoId;u({endpoint:a.mc,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{variant:e,_video_id:i}))}})},trackPlayerNextVideo:function(t){var e=t.video,i=t.nextAction;if(null!==e){var o=e.encoded_id,c=e.variant;u({endpoint:a.Z_,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{next_action:i,variant:c,_video_id:o}))}})}},trackPlayerPrevVideo:function(t){var e=t.video,i=t.prevAction;if(null!==e){var o=e.encoded_id,c=e.variant;u({endpoint:a.TS,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{prev_action:i,variant:c,_video_id:o}))}})}},trackMute:function(t){var e=t.video,i=null!=e?e:{},o=i.encoded_id,c=i.variant;u({endpoint:a.LK,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{variant:c,_video_id:o}))}})},trackUnmute:function(t){var e=t.video,i=null!=e?e:{},o=i.encoded_id,c=i.variant;u({endpoint:a.DO,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{variant:c,_video_id:o}))}})},trackCTAAction:function(t){var e=t.video,i=t.flowLinkId;u({endpoint:a.cc,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{action_type:null==e?void 0:e.action_type,action_url:null==e?void 0:e.action_url,_video_id:null==e?void 0:e.encoded_id,_flow_link_id:i||void 0}))}})},trackMinimizedPlayerClick:function(t){var i=t.video;return u({endpoint:a.vR,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{ad_id:null==i?void 0:i.ad_id,autoplay:null==e?void 0:e.autoplay,canonical_url:null==i?void 0:i.canonical_url,variant:null==i?void 0:i.variant,_video_id:null==i?void 0:i.encoded_id}))}}),(0,o.V)({type:o.t.FW_VIDEO_CLICK_VIDEO,params:e,data:{video:i}}),{}},trackRedirectFullscreenImpression:function(t){var e=t.video,i=null!=e?e:{},o=i.encoded_id,c=i.variant;u({endpoint:a.dm,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{variant:c,_video_id:o}))}})},trackSubmitPollResponse:function(t){var e=t.video,i=t.interaction,o=t.answer,c=t.flowLinkId,s=null!=e?e:{},l=s.encoded_id,f=s.variant;u({endpoint:a.Ue,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{variant:f,interactive_interaction_response:o,_interactive_interaction_id:null==i?void 0:i.id,_video_id:l,_flow_link_id:c||void 0}))}})},trackSubmitQuestionResponse:function(t,e){void 0===e&&(e=!1);var i=t.video,o=t.interaction,c=t.answer,s=t.flowLinkId,l=null!=i?i:{},f=l.encoded_id,d=l.variant;u({endpoint:a.Fx,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{variant:d,email_supplied:e,email_required:"required"===(null==o?void 0:o.collect_email),interactive_interaction_response:c,_interactive_interaction_id:null==o?void 0:o.id,_video_id:f,_flow_link_id:s||void 0}))}})},trackInteractableEngagement:function(t){var e=t.video,i=null!=e?e:{},o=i.encoded_id,c=i.variant;u({endpoint:a.sp,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{variant:c,_video_id:o}))}})},trackPlayerInit:function(){u({endpoint:a.LD,data:{event_properties:(0,r.E)(Object.assign({},n()))}})},trackInteractiveVideoClick:function(t){var e=t.video,i=t.flowLink;u({endpoint:a.cc,data:{event_properties:(0,r.E)(Object.assign(Object.assign({},n()),{action_type:"flow_interaction",_flow_link_id:i.id,_video_id:null==e?void 0:e.encoded_id}))}})}}}},51043:function(t,e,n){"use strict";function r(t){return!!t}n.d(e,{m:function(){return i}});var i=function(t){return t.filter(r)}},71815:function(t,e,n){"use strict";n.d(e,{a:function(){return r}});var r=function(t){try{var e=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(window.atob(e).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(n)}catch(t){return null}}},55602:function(t){t.exports=function(t){const e=t||"undefined"!=typeof window&&window;return!(!e||!e.navigator.userAgent.match(/Chromatic/)&&!e.location.href.match(/chromatic=true/))}},14166:function(t,e,n){"use strict";t.exports=n(80264)((function(t,e){var n="",r=[];if(/^utf-?(8|16)$/i.test(e)||!e)encodeURIComponent(t).replace(/%([0-9A-F]{2})|./g,(function(t,e){r.push(e?parseInt(e,16):t.charCodeAt(0))}));else if("hex"===e)t.replace(/[0-9A-F]{2}/gi,(function(t){r.push(parseInt(t,16))}));else{if("binary"!==e)throw new Error("Invalid inputEncoding supplied");r=t}return r.forEach((function(t){var e=("00"+t.toString(16)).slice(-2);n+=String.fromCharCode("0x"+e)})),btoa(n)}),(function(t,e){var n=Array.prototype.map.call(atob(t),(function(t){return t.charCodeAt(0)}));if("binary"===e)return n;if("hex"===e)return n.map((function(t){return("00"+t.toString(16)).slice(-2)})).join("");if(/^utf-?(8|16)$/i.test(e)||!e)return decodeURIComponent(n.map((function(t){return"%"+("00"+t.toString(16)).slice(-2)})).join(""));throw new Error("Invalid outputEncoding supplied")}))},80264:function(t){"use strict";var e=/[+/=]/g,n=/[-_]/g,r=function(t){return t.replace(e,(function(t){return"="==t?"":"+"==t?"-":"/"==t?"_":void 0}))},i=function(t){return o(t.replace(n,(function(t){return"-"==t?"+":"_"==t?"/":void 0})))},o=function(t){var e=4-t.length%4;return 4!==e&&(t+="====".slice(0,e)),t};t.exports=function(t,e){var n={};return n.originalToUrl=r,n.urlToOriginal=i,n.encode=t,n.decode=e,n.encodeUrl=function(e,n){return r(t(e,n))},n.decodeUrl=function(t,n){return e(i(t),n)},n}},13882:function(t,e,n){"use strict";function r(t,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}n.d(e,{Z:function(){return r}})},83946:function(t,e,n){"use strict";function r(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}n.d(e,{Z:function(){return r}})},51820:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(83946),i=n(19013),o=n(13882);function a(t,e){(0,o.Z)(2,arguments);var n=(0,i.Z)(t).getTime(),a=(0,r.Z)(e);return new Date(n+a)}},61973:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(83946),i=n(51820),o=n(13882);function a(t,e){(0,o.Z)(2,arguments);var n=(0,r.Z)(e);return(0,i.Z)(t,1e3*n)}},19013:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(13882);function i(t){(0,r.Z)(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"==typeof t&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}},8679:function(t,e,n){"use strict";var r=n(21296),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function c(t){return r.isMemo(t)?a:u[t.$$typeof]||i}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=a;var s=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,v=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(v){var i=p(n);i&&i!==v&&t(e,i,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var u=c(e),h=c(n),_=0;_-1}},1196:function(t){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r0&&o(l)?n>1?t(l,n-1,o,a,u):r(u,l):a||(u[u.length]=l)}return u}},28483:function(t,e,n){var r=n(25063)();t.exports=r},97786:function(t,e,n){var r=n(71811),i=n(40327);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&ni?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r=200){var h=e?null:u(t);if(h)return c(h);d=!1,l=a,v=new r}else v=e?[]:p;t:for(;++s1?n[o-1]:void 0,u=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,u&&i(n[0],n[1],u)&&(a=o<3?void 0:a,o=1),e=Object(e);++rl))return!1;var d=c.get(t),p=c.get(e);if(d&&p)return d==e&&p==t;var v=-1,h=!0,_=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++v-1&&t%1==0&&t-1}},54705:function(t,e,n){var r=n(18470);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},24785:function(t,e,n){var r=n(1989),i=n(38407),o=n(57071);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},11285:function(t,e,n){var r=n(45050);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},96e3:function(t,e,n){var r=n(45050);t.exports=function(t){return r(this,t).get(t)}},49916:function(t,e,n){var r=n(45050);t.exports=function(t){return r(this,t).has(t)}},95265:function(t,e,n){var r=n(45050);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},68776:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},42634:function(t){t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},24523:function(t,e,n){var r=n(88306);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},94536:function(t,e,n){var r=n(10852)(Object,"create");t.exports=r},86916:function(t,e,n){var r=n(5569)(Object.keys,Object);t.exports=r},33498:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},31167:function(t,e,n){t=n.nmd(t);var r=n(31957),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,u=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},45357:function(t,e,n){var r=n(96874),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,u=i(o.length-e,0),c=Array(u);++a0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},37465:function(t,e,n){var r=n(38407);t.exports=function(){this.__data__=new r,this.size=0}},63779:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},67599:function(t){t.exports=function(t){return this.__data__.get(t)}},44758:function(t){t.exports=function(t){return this.__data__.has(t)}},34309:function(t,e,n){var r=n(38407),i=n(57071),o=n(83369);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},42351:function(t){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r-1&&t%1==0&&t<=9007199254740991}},56688:function(t,e,n){var r=n(25588),i=n(7518),o=n(31167),a=o&&o.isMap,u=a?i(a):r;t.exports=u},81763:function(t,e,n){var r=n(44239),i=n(37005);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},13218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},37005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},68630:function(t,e,n){var r=n(44239),i=n(85924),o=n(37005),a=Function.prototype,u=Object.prototype,c=a.toString,s=u.hasOwnProperty,l=c.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=s.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==l}},72928:function(t,e,n){var r=n(29221),i=n(7518),o=n(31167),a=o&&o.isSet,u=a?i(a):r;t.exports=u},47037:function(t,e,n){var r=n(44239),i=n(1469),o=n(37005);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},33448:function(t,e,n){var r=n(44239),i=n(37005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},36719:function(t,e,n){var r=n(38749),i=n(7518),o=n(31167),a=o&&o.isTypedArray,u=a?i(a):r;t.exports=u},3674:function(t,e,n){var r=n(14636),i=n(280),o=n(98612);t.exports=function(t){return o(t)?r(t):i(t)}},81704:function(t,e,n){var r=n(14636),i=n(10313),o=n(98612);t.exports=function(t){return o(t)?r(t,!0):i(t)}},10928:function(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},88306:function(t,e,n){var r=n(83369);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},82492:function(t,e,n){var r=n(42980),i=n(21463)((function(t,e,n){r(t,e,n)}));t.exports=i},30236:function(t,e,n){var r=n(42980),i=n(21463)((function(t,e,n,i){r(t,e,n,i)}));t.exports=i},50308:function(t){t.exports=function(){}},57557:function(t,e,n){var r=n(29932),i=n(85990),o=n(57406),a=n(71811),u=n(98363),c=n(60696),s=n(99021),l=n(46904),f=s((function(t,e){var n={};if(null==t)return n;var s=!1;e=r(e,(function(e){return e=a(e,t),s||(s=e.length>1),e})),u(t,l(t),n),s&&(n=i(n,7,c));for(var f=e.length;f--;)o(n,e[f]);return n}));t.exports=f},39601:function(t,e,n){var r=n(40371),i=n(79152),o=n(15403),a=n(40327);t.exports=function(t){return o(t)?r(a(t)):i(t)}},70479:function(t){t.exports=function(){return[]}},95062:function(t){t.exports=function(){return!1}},59881:function(t,e,n){var r=n(98363),i=n(81704);t.exports=function(t){return r(t,i(t))}},79833:function(t,e,n){var r=n(80531);t.exports=function(t){return null==t?"":r(t)}},44908:function(t,e,n){var r=n(45652);t.exports=function(t){return t&&t.length?r(t):[]}},45578:function(t,e,n){var r=n(67206),i=n(45652);t.exports=function(t,e){return t&&t.length?i(t,r(e,2)):[]}},98661:function(t,e,n){"use strict";n.r(e),n.d(e,{Children:function(){return p},Component:function(){return i.wA},Fragment:function(){return i.HY},PureComponent:function(){return u},StrictMode:function(){return Y},Suspense:function(){return _},SuspenseList:function(){return g},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:function(){return U},cloneElement:function(){return W},createContext:function(){return i.kr},createElement:function(){return i.az},createFactory:function(){return Z},createPortal:function(){return O},createRef:function(){return i.Vf},findDOMNode:function(){return B},flushSync:function(){return V},forwardRef:function(){return f},hydrate:function(){return k},isValidElement:function(){return H},lazy:function(){return m},memo:function(){return c},render:function(){return P},unmountComponentAtNode:function(){return z},unstable_batchedUpdates:function(){return G},useCallback:function(){return r.I4},useContext:function(){return r.qp},useDebugValue:function(){return r.Qb},useEffect:function(){return r.d4},useErrorBoundary:function(){return r.cO},useImperativeHandle:function(){return r.aP},useLayoutEffect:function(){return r.bt},useMemo:function(){return r.Ye},useReducer:function(){return r._Y},useRef:function(){return r.sO},useState:function(){return r.eJ},version:function(){return F}});var r=n(30396),i=n(6400);function o(t,e){for(var n in e)t[n]=e[n];return t}function a(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var r in e)if("__source"!==r&&t[r]!==e[r])return!0;return!1}function u(t){this.props=t}function c(t,e){function n(t){var n=this.props.ref,r=n==t.ref;return!r&&n&&(n.call?n(null):n.current=null),e?!e(this.props,t)||!r:a(this.props,t)}function r(e){return this.shouldComponentUpdate=n,(0,i.az)(t,e)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(u.prototype=new i.wA).isPureReactComponent=!0,u.prototype.shouldComponentUpdate=function(t,e){return a(this.props,t)||a(this.state,e)};var s=i.YM.__b;i.YM.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),s&&s(t)};var l="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function f(t){function e(e){var n=o({},e);return delete n.ref,t(n,e.ref||null)}return e.$$typeof=l,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var d=function(t,e){return null==t?null:(0,i.bR)((0,i.bR)(t).map(e))},p={map:d,forEach:d,count:function(t){return t?(0,i.bR)(t).length:0},only:function(t){var e=(0,i.bR)(t);if(1!==e.length)throw"Children.only";return e[0]},toArray:i.bR},v=i.YM.__e;i.YM.__e=function(t,e,n,r){if(t.then)for(var i,o=e;o=o.__;)if((i=o.__c)&&i.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),i.__c(t,e);v(t,e,n,r)};var h=i.YM.unmount;function _(){this.__u=0,this.t=null,this.__b=null}function y(t){var e=t.__.__c;return e&&e.__e&&e.__e(t)}function m(t){var e,n,r;function o(o){if(e||(e=t()).then((function(t){n=t.default||t}),(function(t){r=t})),r)throw r;if(!n)throw e;return(0,i.az)(n,o)}return o.displayName="Lazy",o.__f=!0,o}function g(){this.u=null,this.o=null}i.YM.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&!0===t.__h&&(t.type=null),h&&h(t)},(_.prototype=new i.wA).__c=function(t,e){var n=e.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=y(r.__v),o=!1,a=function(){o||(o=!0,n.__R=null,i?i(u):u())};n.__R=a;var u=function(){if(!--r.__u){if(r.state.__e){var t=r.state.__e;r.__v.__k[0]=function t(e,n,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return t(e,n,r)})),e.__c&&e.__c.__P===n&&(e.__e&&r.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=r)),e}(t,t.__c.__P,t.__c.__O)}var e;for(r.setState({__e:r.__b=null});e=r.t.pop();)e.forceUpdate()}},c=!0===e.__h;r.__u++||c||r.setState({__e:r.__b=r.__v.__k[0]}),t.then(a,a)},_.prototype.componentWillUnmount=function(){this.t=[]},_.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function t(e,n,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),e.__c.__H=null),null!=(e=o({},e)).__c&&(e.__c.__P===r&&(e.__c.__P=n),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return t(e,n,r)}))),e}(this.__b,n,r.__O=r.__P)}this.__b=null}var a=e.__e&&(0,i.az)(i.HY,null,t.fallback);return a&&(a.__h=null),[(0,i.az)(i.HY,null,e.__e?null:t.children),a]};var b=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),e.i.removeChild(t)}}),(0,i.sY)((0,i.az)(w,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function O(t,e){return(0,i.az)(E,{__v:t,i:e})}(g.prototype=new i.wA).__e=function(t){var e=this,n=y(e.__v),r=e.o.get(t);return r[0]++,function(i){var o=function(){e.props.revealOrder?(r.push(i),b(e,t,r)):i()};n?n(o):o()}},g.prototype.render=function(t){this.u=null,this.o=new Map;var e=(0,i.bR)(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},g.prototype.componentDidUpdate=g.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){b(t,n,e)}))};var x="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,S=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,T="undefined"!=typeof document,C=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(t)};function P(t,e,n){return null==e.__k&&(e.textContent=""),(0,i.sY)(t,e),"function"==typeof n&&n(),t?t.__c:null}function k(t,e,n){return(0,i.ZB)(t,e),"function"==typeof n&&n(),t?t.__c:null}i.wA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(i.wA.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var j=i.YM.event;function A(){}function I(){return this.cancelBubble}function R(){return this.defaultPrevented}i.YM.event=function(t){return j&&(t=j(t)),t.persist=A,t.isPropagationStopped=I,t.isDefaultPrevented=R,t.nativeEvent=t};var N,L={configurable:!0,get:function(){return this.class}},D=i.YM.vnode;i.YM.vnode=function(t){var e=t.type,n=t.props,r=n;if("string"==typeof e){var o=-1===e.indexOf("-");for(var a in r={},n){var u=n[a];T&&"children"===a&&"noscript"===e||"value"===a&&"defaultValue"in n&&null==u||("defaultValue"===a&&"value"in n&&null==n.value?a="value":"download"===a&&!0===u?u="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+e)&&!C(n.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():o&&S.test(a)?a=a.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===u&&(u=void 0),r[a]=u)}"select"==e&&r.multiple&&Array.isArray(r.value)&&(r.value=(0,i.bR)(n.children).forEach((function(t){t.props.selected=-1!=r.value.indexOf(t.props.value)}))),"select"==e&&null!=r.defaultValue&&(r.value=(0,i.bR)(n.children).forEach((function(t){t.props.selected=r.multiple?-1!=r.defaultValue.indexOf(t.props.value):r.defaultValue==t.props.value}))),t.props=r,n.class!=n.className&&(L.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",L))}t.$$typeof=x,D&&D(t)};var M=i.YM.__r;i.YM.__r=function(t){M&&M(t),N=t.__c};var U={ReactCurrentDispatcher:{current:{readContext:function(t){return N.__n[t.__c].props.value}}}},F="17.0.2";function Z(t){return i.az.bind(null,t)}function H(t){return!!t&&t.$$typeof===x}function W(t){return H(t)?i.Tm.apply(null,arguments):t}function z(t){return!!t.__k&&((0,i.sY)(null,t),!0)}function B(t){return t&&(t.base||1===t.nodeType&&t)||null}var G=function(t,e){return t(e)},V=function(t,e){return t(e)},Y=i.HY;e.default={useState:r.eJ,useReducer:r._Y,useEffect:r.d4,useLayoutEffect:r.bt,useRef:r.sO,useImperativeHandle:r.aP,useMemo:r.Ye,useCallback:r.I4,useContext:r.qp,useDebugValue:r.Qb,version:"17.0.2",Children:p,render:P,hydrate:k,unmountComponentAtNode:z,createPortal:O,createElement:i.az,createContext:i.kr,createFactory:Z,cloneElement:W,createRef:i.Vf,Fragment:i.HY,isValidElement:H,findDOMNode:B,Component:i.wA,PureComponent:u,memo:c,forwardRef:f,flushSync:V,unstable_batchedUpdates:G,StrictMode:i.HY,Suspense:_,SuspenseList:g,lazy:m,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:U}},6400:function(t,e,n){"use strict";n.d(e,{HY:function(){return m},Tm:function(){return Z},Vf:function(){return y},YM:function(){return i},ZB:function(){return F},az:function(){return h},bR:function(){return T},kr:function(){return H},sY:function(){return U},wA:function(){return g}});var r,i,o,a,u,c,s,l={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(t,e){for(var n in e)t[n]=e[n];return t}function v(t){var e=t.parentNode;e&&e.removeChild(t)}function h(t,e,n){var i,o,a,u={};for(a in e)"key"==a?i=e[a]:"ref"==a?o=e[a]:u[a]=e[a];if(arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===u[a]&&(u[a]=t.defaultProps[a]);return _(t,u,i,o,null)}function _(t,e,n,r,a){var u={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=i.vnode&&i.vnode(u),u}function y(){return{current:null}}function m(t){return t.children}function g(t,e){this.props=t,this.context=e}function b(t,e){if(null==e)return t.__?b(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e0?_(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(v=E[d])||v&&h.key==v.key&&h.type===v.type)E[d]=void 0;else for(p=0;p2&&(u.children=arguments.length>3?r.call(arguments,2):n),_(t.type,u,i||t.key,o||t.ref,null)}function H(t,e){var n={__c:e="__cC"+s++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some(E)},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}r=f.slice,i={__e:function(t,e,n,r){for(var i,o,a;e=e.__;)if((i=e.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(t)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(t,r||{}),a=i.__d),a)return i.__E=i}catch(e){t=e}throw t}},o=0,g.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof t&&(t=t(p({},n),this.props)),t&&p(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),E(this))},g.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),E(this))},g.prototype.render=m,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,O.__r=0,s=0},30396:function(t,e,n){"use strict";n.d(e,{I4:function(){return E},Qb:function(){return x},Ye:function(){return w},_Y:function(){return _},aP:function(){return b},bt:function(){return m},cO:function(){return S},d4:function(){return y},eJ:function(){return h},qp:function(){return O},sO:function(){return g}});var r,i,o,a=n(6400),u=0,c=[],s=a.YM.__b,l=a.YM.__r,f=a.YM.diffed,d=a.YM.__c,p=a.YM.unmount;function v(t,e){a.YM.__h&&a.YM.__h(i,t,u||e),u=0;var n=i.__H||(i.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function h(t){return u=1,_(A,t)}function _(t,e,n){var o=v(r++,2);return o.t=t,o.__c||(o.__=[n?n(e):A(void 0,e),function(t){var e=o.t(o.__[0],t);o.__[0]!==e&&(o.__=[e,o.__[1]],o.__c.setState({}))}],o.__c=i),o.__}function y(t,e){var n=v(r++,3);!a.YM.__s&&j(n.__H,e)&&(n.__=t,n.__H=e,i.__H.__h.push(n))}function m(t,e){var n=v(r++,4);!a.YM.__s&&j(n.__H,e)&&(n.__=t,n.__H=e,i.__h.push(n))}function g(t){return u=5,w((function(){return{current:t}}),[])}function b(t,e,n){u=6,m((function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0}),null==n?n:n.concat(t))}function w(t,e){var n=v(r++,7);return j(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function E(t,e){return u=8,w((function(){return t}),e)}function O(t){var e=i.context[t.__c],n=v(r++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(i)),e.props.value):t.__}function x(t,e){a.YM.useDebugValue&&a.YM.useDebugValue(e?e(t):t)}function S(t){var e=v(r++,10),n=h();return e.__=t,i.componentDidCatch||(i.componentDidCatch=function(t){e.__&&e.__(t),n[1](t)}),[n[0],function(){n[1](void 0)}]}function T(){for(var t;t=c.shift();)if(t.__P)try{t.__H.__h.forEach(P),t.__H.__h.forEach(k),t.__H.__h=[]}catch(e){t.__H.__h=[],a.YM.__e(e,t.__v)}}a.YM.__b=function(t){i=null,s&&s(t)},a.YM.__r=function(t){l&&l(t),r=0;var e=(i=t.__c).__H;e&&(e.__h.forEach(P),e.__h.forEach(k),e.__h=[])},a.YM.diffed=function(t){f&&f(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(1!==c.push(e)&&o===a.YM.requestAnimationFrame||((o=a.YM.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(r),C&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);C&&(e=requestAnimationFrame(n))})(T)),i=null},a.YM.__c=function(t,e){e.some((function(t){try{t.__h.forEach(P),t.__h=t.__h.filter((function(t){return!t.__||k(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],a.YM.__e(n,t.__v)}})),d&&d(t,e)},a.YM.unmount=function(t){p&&p(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{P(t)}catch(t){e=t}})),e&&a.YM.__e(e,n.__v))};var C="function"==typeof requestAnimationFrame;function P(t){var e=i,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),i=e}function k(t){var e=i;t.__c=t.__(),i=e}function j(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function A(t,e){return"function"==typeof e?e(t):e}},16584:function(t,e,n){"use strict";n.d(e,{BX:function(){return o},HY:function(){return r.HY},tZ:function(){return o}});var r=n(6400),i=0;function o(t,e,n,o,a){var u,c,s={};for(c in e)"ref"==c?u=e[c]:s[c]=e[c];var l={type:t,props:s,key:n,ref:u,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--i,__source:a,__self:o};if("function"==typeof t&&(u=t.defaultProps))for(c in u)void 0===s[c]&&(s[c]=u[c]);return r.YM.vnode&&r.YM.vnode(l),l}},57437:function(t,e){"use strict";e.Z=function t(e){function n(t,e,r){var i,o={};if(Array.isArray(t))return t.concat(e);for(i in t)o[r?i.toLowerCase():i]=t[i];for(i in e){var a=r?i.toLowerCase():i,u=e[i];o[a]=a in o&&"object"==typeof u?n(o[a],u,"headers"===a):u}return o}function r(t,r,i,o){"string"!=typeof t&&(t=(r=t).url);var a={config:r},u=n(e,r),c={},s=o||u.data;(u.transformRequest||[]).map((function(t){s=t(s,u.headers)||s})),s&&"object"==typeof s&&"function"!=typeof s.append&&(s=JSON.stringify(s),c["content-type"]="application/json");var l="undefined"!=typeof document&&document.cookie.match(RegExp("(^|; )"+u.xsrfCookieName+"=([^;]*)"));if(l&&(c[u.xsrfHeaderName]=l[2]),u.auth&&(c.authorization=u.auth),u.baseURL&&(t=t.replace(/^(?!.*\/\/)\/?(.*)$/,u.baseURL+"/$1")),u.params){var f=~t.indexOf("?")?"&":"?";t+=f+(u.paramsSerializer?u.paramsSerializer(u.params):new URLSearchParams(u.params))}return(u.fetch||fetch)(t,{method:i||u.method,body:s,headers:n(u.headers,c,!0),credentials:u.withCredentials?"include":"same-origin"}).then((function(t){for(var e in t)"function"!=typeof t[e]&&(a[e]=t[e]);var n=u.validateStatus?u.validateStatus(t.status):t.ok;return"stream"==u.responseType?(a.data=t.body,a):t[u.responseType||"text"]().then((function(t){a.data=t,a.data=JSON.parse(t)})).catch(Object).then((function(){return n?a:Promise.reject(a)}))}))}return e=e||{},r.request=r,r.get=function(t,e){return r(t,e,"get")},r.delete=function(t,e){return r(t,e,"delete")},r.head=function(t,e){return r(t,e,"head")},r.options=function(t,e){return r(t,e,"options")},r.post=function(t,e,n){return r(t,n,"post",e)},r.put=function(t,e,n){return r(t,n,"put",e)},r.patch=function(t,e,n){return r(t,n,"patch",e)},r.all=Promise.all.bind(Promise),r.spread=function(t){return function(e){return t.apply(this,e)}},r.CancelToken="function"==typeof AbortController?AbortController:Object,r.defaults=e,r.create=t,r}()},35666:function(t){var e=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i=e&&e.prototype instanceof _?e:_,o=Object.create(i.prototype),a=new P(r||[]);return o._invoke=function(t,e,n){var r=f;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===v){if("throw"===i)throw o;return j()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var u=S(a,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=l(t,e,n);if("normal"===c.type){if(r=n.done?v:d,c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=v,n.method="throw",n.arg=c.arg)}}}(t,n,a),o}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f="suspendedStart",d="suspendedYield",p="executing",v="completed",h={};function _(){}function y(){}function m(){}var g={};c(g,o,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(k([])));w&&w!==n&&r.call(w,o)&&(g=w);var E=m.prototype=_.prototype=Object.create(g);function O(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(i,o,a,u){var c=l(t[i],t,o);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function S(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var i=l(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,h;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,h):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function k(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:k(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),h}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},84587:function(t,e,n){t.exports=n.p+"563b322fd44139f009680410be9e7f68.svg"},32349:function(t,e,n){t.exports=n.p+"f523ea6f871361bde5c17a410bc4e61f.svg"},44356:function(t,e,n){t.exports=n.p+"62cd32c0d881290594a02c6a743680c5.svg"},14671:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(98661);function i(t){let e;const n=new Set,r=(t,r)=>{const i="function"==typeof t?t(e):t;if(i!==e){const t=e;e=r?i:Object.assign({},e,i),n.forEach((n=>n(e,t)))}},i=()=>e,o={setState:r,getState:i,subscribe:(t,r,o)=>r||o?((t,r=i,o=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let a=r(e);function u(){const n=r(e);if(!o(a,n)){const e=a;t(a=n,e)}}return n.add(u),()=>n.delete(u)})(t,r,o):(n.add(t),()=>n.delete(t)),destroy:()=>n.clear()};return e=t(r,i,o),o}const o="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?r.useEffect:r.useLayoutEffect;function a(t){const e="function"==typeof t?i(t):t,n=(t=e.getState,n=Object.is)=>{const[,i]=(0,r.useReducer)((t=>t+1),0),a=e.getState(),u=(0,r.useRef)(a),c=(0,r.useRef)(t),s=(0,r.useRef)(n),l=(0,r.useRef)(!1),f=(0,r.useRef)();let d;void 0===f.current&&(f.current=t(a));let p=!1;(u.current!==a||c.current!==t||s.current!==n||l.current)&&(d=t(a),p=!n(f.current,d)),o((()=>{p&&(f.current=d),u.current=a,c.current=t,s.current=n,l.current=!1}));const v=(0,r.useRef)(a);o((()=>{const t=()=>{try{const t=e.getState(),n=c.current(t);s.current(f.current,n)||(u.current=t,f.current=n,i())}catch(t){l.current=!0,i()}},n=e.subscribe(t);return e.getState()!==v.current&&t(),n}),[]);const h=p?d:f.current;return(0,r.useDebugValue)(h),h};return Object.assign(n,e),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const t=[n,e];return{next(){const e=t.length<=0;return{value:t.shift(),done:e}}}},n}},38597:function(t,e,n){"use strict";n.d(e,{mW:function(){return r}});Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function r(t,e){return(n,r,o)=>{var a;let u=!1;"string"!=typeof e||u||(console.warn("[zustand devtools middleware]: passing `name` as directly will be not allowed in next majorpass the `name` in an object `{ name: ... }` instead"),u=!0);const c=void 0===e?{name:void 0,anonymousActionType:void 0}:"string"==typeof e?{name:e}:e;let s;void 0!==(null==(a=null==c?void 0:c.serialize)?void 0:a.options)&&console.warn("[zustand devtools middleware]: `serialize.options` is deprecated, just use `serialize`");try{s=window.__REDUX_DEVTOOLS_EXTENSION__||window.top.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!s)return"undefined"!=typeof window&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),t(n,r,o);let l=Object.create(s.connect(c)),f=!1;Object.defineProperty(o,"devtools",{get:()=>(f||(console.warn("[zustand devtools middleware] `devtools` property on the store is deprecated it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),f=!0),l),set:t=>{f||(console.warn("[zustand devtools middleware] `api.devtools` is deprecated, it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),f=!0),l=t}});let d=!1;Object.defineProperty(l,"prefix",{get:()=>(d||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+c.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),d=!0),""),set:()=>{d||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+c.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),d=!0)}});let p=!0;o.setState=(t,e,i)=>{n(t,e),p&&l.send(void 0===i?{type:c.anonymousActionType||"anonymous"}:"string"==typeof i?{type:i}:i,r())};const v=(...t)=>{const e=p;p=!1,n(...t),p=e},h=t(o.setState,r,o);if(l.init(h),o.dispatchFromDevtools&&"function"==typeof o.dispatch){let t=!1;const e=o.dispatch;o.dispatch=(...n)=>{"__setState"!==n[0].type||t||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),t=!0),e(...n)}}return l.subscribe((t=>{var e;switch(t.type){case"ACTION":return"string"!=typeof t.payload?void console.error("[zustand devtools middleware] Unsupported action format"):i(t.payload,(t=>{"__setState"!==t.type?o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(t):v(t.state)}));case"DISPATCH":switch(t.payload.type){case"RESET":return v(h),l.init(o.getState());case"COMMIT":return l.init(o.getState());case"ROLLBACK":return i(t.state,(t=>{v(t),l.init(o.getState())}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return i(t.state,(t=>{v(t)}));case"IMPORT_STATE":{const{nextLiftedState:n}=t.payload,r=null==(e=n.computedStates.slice(-1)[0])?void 0:e.state;if(!r)return;return v(r),void l.send(null,n)}case"PAUSE_RECORDING":return p=!p}return}})),h}}const i=(t,e)=>{let n;try{n=JSON.parse(t)}catch(t){console.error("[zustand devtools middleware] Could not parse the received json",t)}void 0!==n&&e(n)};Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable},59148:function(t,e,n){"use strict";function r(t){let e;const n=new Set,r=(t,r)=>{const i="function"==typeof t?t(e):t;if(i!==e){const t=e;e=r?i:Object.assign({},e,i),n.forEach((n=>n(e,t)))}},i=()=>e,o={setState:r,getState:i,subscribe:(t,r,o)=>r||o?((t,r=i,o=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let a=r(e);function u(){const n=r(e);if(!o(a,n)){const e=a;t(a=n,e)}}return n.add(u),()=>n.delete(u)})(t,r,o):(n.add(t),()=>n.delete(t)),destroy:()=>n.clear()};return e=t(r,i,o),o}n.d(e,{Z:function(){return r}})},30907:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nnew o(String(t),i)},41747:function(t,e,n){"use strict";n.d(e,{Cb:function(){return i}}); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ const r=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?Object.assign(Object.assign({},e),{finisher(n){n.createProperty(e.key,t)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(n){n.createProperty(e.key,t)}};function i(t){return(e,n)=>void 0!==n?((t,e,n)=>{e.constructor.createProperty(n,t)})(t,e,n):r(t,e)}const o=Element.prototype;o.msMatchesSelector||o.webkitMatchesSelector},54958:function(t,e,n){"use strict";n.d(e,{f4:function(){return c}});var r=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))}; /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */window.JSCompiler_renameProperty=(t,e)=>t;const i={toAttribute(t,e){switch(e){case Boolean:return t?"":null;case Object:case Array:return null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){switch(e){case Boolean:return null!==t;case Number:return null===t?null:Number(t);case Object:case Array:return JSON.parse(t)}return t}},o=(t,e)=>e!==t&&(e==e||t==t),a={attribute:!0,type:String,converter:i,reflect:!1,hasChanged:o},u="finalized";class c extends HTMLElement{constructor(){super(),this.initialize()}static get observedAttributes(){this.finalize();const t=[];return this._classProperties.forEach(((e,n)=>{const r=this._attributeNameForProperty(n,e);void 0!==r&&(this._attributeToPropertyMap.set(r,n),t.push(r))})),t}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const t=Object.getPrototypeOf(this)._classProperties;void 0!==t&&t.forEach(((t,e)=>this._classProperties.set(e,t)))}}static createProperty(t,e=a){if(this._ensureClassProperties(),this._classProperties.set(t,e),e.noAccessor||this.prototype.hasOwnProperty(t))return;const n="symbol"==typeof t?Symbol():`__${t}`,r=this.getPropertyDescriptor(t,n,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}static getPropertyDescriptor(t,e,n){return{get(){return this[e]},set(r){const i=this[t];this[e]=r,this.requestUpdateInternal(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this._classProperties&&this._classProperties.get(t)||a}static finalize(){const t=Object.getPrototypeOf(this);if(t.hasOwnProperty(u)||t.finalize(),this.finalized=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const t=this.properties,e=[...Object.getOwnPropertyNames(t),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]];for(const n of e)this.createProperty(n,t[n])}}static _attributeNameForProperty(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}static _valueHasChanged(t,e,n=o){return n(t,e)}static _propertyValueFromAttribute(t,e){const n=e.type,r=e.converter||i,o="function"==typeof r?r:r.fromAttribute;return o?o(t,n):t}static _propertyValueToAttribute(t,e){if(void 0===e.reflect)return;const n=e.type,r=e.converter;return(r&&r.toAttribute||i.toAttribute)(t,n)}initialize(){this._updateState=0,this._updatePromise=new Promise((t=>this._enableUpdatingResolver=t)),this._changedProperties=new Map,this._saveInstanceProperties(),this.requestUpdateInternal()}_saveInstanceProperties(){this.constructor._classProperties.forEach(((t,e)=>{if(this.hasOwnProperty(e)){const t=this[e];delete this[e],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(e,t)}}))}_applyInstanceProperties(){this._instanceProperties.forEach(((t,e)=>this[e]=t)),this._instanceProperties=void 0}connectedCallback(){this.enableUpdating()}enableUpdating(){void 0!==this._enableUpdatingResolver&&(this._enableUpdatingResolver(),this._enableUpdatingResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(t,e,n){e!==n&&this._attributeToProperty(t,n)}_propertyToAttribute(t,e,n=a){const r=this.constructor,i=r._attributeNameForProperty(t,n);if(void 0!==i){const t=r._propertyValueToAttribute(e,n);if(void 0===t)return;this._updateState=8|this._updateState,null==t?this.removeAttribute(i):this.setAttribute(i,t),this._updateState=-9&this._updateState}}_attributeToProperty(t,e){if(8&this._updateState)return;const n=this.constructor,r=n._attributeToPropertyMap.get(t);if(void 0!==r){const t=n.getPropertyOptions(r);this._updateState=16|this._updateState,this[r]=n._propertyValueFromAttribute(e,t),this._updateState=-17&this._updateState}}requestUpdateInternal(t,e,n){let r=!0;if(void 0!==t){const i=this.constructor;n=n||i.getPropertyOptions(t),i._valueHasChanged(this[t],e,n.hasChanged)?(this._changedProperties.has(t)||this._changedProperties.set(t,e),!0!==n.reflect||16&this._updateState||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(t,n))):r=!1}!this._hasRequestedUpdate&&r&&(this._updatePromise=this._enqueueUpdate())}requestUpdate(t,e){return this.requestUpdateInternal(t,e),this.updateComplete}_enqueueUpdate(){return r(this,void 0,void 0,(function*(){this._updateState=4|this._updateState;try{yield this._updatePromise}catch(t){}const t=this.performUpdate();return null!=t&&(yield t),!this._hasRequestedUpdate}))}get _hasRequestedUpdate(){return 4&this._updateState}get hasUpdated(){return 1&this._updateState}performUpdate(){if(!this._hasRequestedUpdate)return;this._instanceProperties&&this._applyInstanceProperties();let t=!1;const e=this._changedProperties;try{t=this.shouldUpdate(e),t?this.update(e):this._markUpdated()}catch(e){throw t=!1,this._markUpdated(),e}t&&(1&this._updateState||(this._updateState=1|this._updateState,this.firstUpdated(e)),this.updated(e))}_markUpdated(){this._changedProperties=new Map,this._updateState=-5&this._updateState}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._updatePromise}shouldUpdate(t){return!0}update(t){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach(((t,e)=>this._propertyToAttribute(e,this[e],t))),this._reflectingProperties=void 0),this._markUpdated()}updated(t){}firstUpdated(t){}}c.finalized=!0},56271:function(t,e,n){"use strict";n.d(e,{Cb:function(){return o.Cb},oi:function(){return c}});var r=n(81005),i=n(54958),o=n(41747),a=(n(59115),n(48170)); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ (window.litElementVersions||(window.litElementVersions=[])).push("2.5.1");const u={};class c extends i.f4{static getStyles(){return this.styles}static _getUniqueStyles(){if(this.hasOwnProperty(JSCompiler_renameProperty("_styles",this)))return;const t=this.getStyles();if(Array.isArray(t)){const e=(t,n)=>t.reduceRight(((t,n)=>Array.isArray(n)?e(n,t):(t.add(n),t)),n),n=e(t,new Set),r=[];n.forEach((t=>r.unshift(t))),this._styles=r}else this._styles=void 0===t?[]:[t];this._styles=this._styles.map((t=>{if(t instanceof CSSStyleSheet&&!a.FV){const e=Array.prototype.slice.call(t.cssRules).reduce(((t,e)=>t+e.cssText),"");return(0,a.$m)(e)}return t}))}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow(this.constructor.shadowRootOptions)}adoptStyles(){const t=this.constructor._styles;0!==t.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?a.FV?this.renderRoot.adoptedStyleSheets=t.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(t.map((t=>t.cssText)),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(t){const e=this.render();super.update(t),e!==u&&this.constructor.render(e,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach((t=>{const e=document.createElement("style");e.textContent=t.cssText,this.renderRoot.appendChild(e)})))}render(){return u}}c.finalized=!0,c.render=r.sY,c.shadowRootOptions={mode:"open"}},54732:function(t,e,n){"use strict";var r=n(74349); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */new class{handleAttributeExpressions(t,e,n,i){const o=e[0];if("."===o){return new r.m(t,e.slice(1),n).parts}if("@"===o)return[new r.K1(t,e.slice(1),i.eventContext)];if("?"===o)return[new r.JG(t,e.slice(1),n)];return new r.QG(t,e,n).parts}handleTextExpression(t){return new r.nt(t)}}},91556:function(t,e,n){"use strict";n.d(e,{w:function(){return i}}); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ const r=new WeakMap,i=t=>"function"==typeof t&&r.has(t)},80064:function(t,e,n){"use strict";n.d(e,{eC:function(){return r},r4:function(){return i}}); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ const r="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,i=(t,e,n=null)=>{for(;e!==n;){const n=e.nextSibling;t.removeChild(e),e=n}}},11425:function(t,e,n){"use strict";n.d(e,{$:function(){return i},i:function(){return u}});var r=n(86866); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */function i(t,e){const{element:{content:n},parts:r}=t,i=document.createTreeWalker(n,133,null,!1);let o=a(r),u=r[o],c=-1,s=0;const l=[];let f=null;for(;i.nextNode();){c++;const t=i.currentNode;for(t.previousSibling===f&&(f=null),e.has(t)&&(l.push(t),null===f&&(f=t)),null!==f&&s++;void 0!==u&&u.index===c;)u.index=null!==f?-1:u.index-s,o=a(r,o),u=r[o]}l.forEach((t=>t.parentNode.removeChild(t)))}const o=t=>{let e=11===t.nodeType?0:1;const n=document.createTreeWalker(t,133,null,!1);for(;n.nextNode();)e++;return e},a=(t,e=-1)=>{for(let n=e+1;n0){for(;-1!==c;)i[c].index+=s,c=a(i,c);return}c=a(i,c)}}}},14644:function(t,e,n){"use strict";n.d(e,{J:function(){return r},L:function(){return i}}); /** * @license * Copyright (c) 2018 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ const r={},i={}},74349:function(t,e,n){"use strict";n.d(e,{JG:function(){return v},K1:function(){return m},QG:function(){return f},m:function(){return h},nt:function(){return p}});var r=n(91556),i=n(80064),o=n(14644),a=n(64137),u=n(64159),c=n(86866); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ const s=t=>null===t||!("object"==typeof t||"function"==typeof t),l=t=>Array.isArray(t)||!(!t||!t[Symbol.iterator]);class f{constructor(t,e,n){this.dirty=!0,this.element=t,this.name=e,this.strings=n,this.parts=[];for(let t=0;t{try{const t={get capture(){return y=!0,!1}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){}})();class m{constructor(t,e,n){this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=e,this.eventContext=n,this.__boundHandleEvent=t=>this.handleEvent(t)}setValue(t){this.__pendingValue=t}commit(){for(;(0,r.w)(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=o.J,t(this)}if(this.__pendingValue===o.J)return;const t=this.__pendingValue,e=this.value,n=null==t||null!=e&&(t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive),i=null!=t&&(null==e||n);n&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),i&&(this.__options=g(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=o.J}handleEvent(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}const g=t=>t&&(y?{capture:t.capture,passive:t.passive,once:t.once}:t.capture)},55091:function(t,e,n){"use strict";n.d(e,{L:function(){return a},s:function(){return u}});var r=n(80064),i=n(74349),o=n(46057); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ const a=new WeakMap,u=(t,e,n)=>{let u=a.get(e);void 0===u&&((0,r.r4)(e,e.firstChild),a.set(e,u=new i.nt(Object.assign({templateFactory:o.t},n))),u.appendInto(e)),u.setValue(t),u.commit()}},81005:function(t,e,n){"use strict";n.d(e,{sY:function(){return h}});var r=n(80064),i=n(11425),o=n(55091),a=n(46057),u=n(64137),c=n(86866);n(59115); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ const s=(t,e)=>`${t}--${e}`;let l=!0;void 0===window.ShadyCSS?l=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/webcomponentsjs@2.0.2 and @webcomponents/shadycss@1.3.1."),l=!1);const f=t=>e=>{const n=s(e.type,t);let r=a.r.get(n);void 0===r&&(r={stringsArray:new WeakMap,keyString:new Map},a.r.set(n,r));let i=r.stringsArray.get(e.strings);if(void 0!==i)return i;const o=e.strings.join(c.Jw);if(i=r.keyString.get(o),void 0===i){const n=e.getTemplateElement();l&&window.ShadyCSS.prepareTemplateDom(n,t),i=new c.YS(e,n),r.keyString.set(o,i)}return r.stringsArray.set(e.strings,i),i},d=["html","svg"],p=new Set,v=(t,e,n)=>{p.add(t);const r=n?n.element:document.createElement("template"),o=e.querySelectorAll("style"),{length:u}=o;if(0===u)return void window.ShadyCSS.prepareTemplateStyles(r,t);const c=document.createElement("style");for(let t=0;t{d.forEach((e=>{const n=a.r.get(s(e,t));void 0!==n&&n.keyString.forEach((t=>{const{element:{content:e}}=t,n=new Set;Array.from(e.querySelectorAll("style")).forEach((t=>{n.add(t)})),(0,i.$)(t,n)}))}))})(t);const l=r.content;n?(0,i.i)(n,c,l.firstChild):l.insertBefore(c,l.firstChild),window.ShadyCSS.prepareTemplateStyles(r,t);const f=l.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==f)e.insertBefore(f.cloneNode(!0),e.firstChild);else if(n){l.insertBefore(c,l.firstChild);const t=new Set;t.add(c),(0,i.$)(n,t)}},h=(t,e,n)=>{if(!n||"object"!=typeof n||!n.scopeName)throw new Error("The `scopeName` option is required.");const i=n.scopeName,a=o.L.has(e),c=l&&11===e.nodeType&&!!e.host,s=c&&!p.has(i),d=s?document.createDocumentFragment():e;if((0,o.s)(t,d,Object.assign({templateFactory:f(i)},n)),s){const t=o.L.get(d);o.L.delete(d);const n=t.value instanceof u.R?t.value.template:void 0;v(i,d,n),(0,r.r4)(e,e.firstChild),e.appendChild(d),o.L.set(e,t)}!a&&c&&window.ShadyCSS.styleElement(e.host)}},46057:function(t,e,n){"use strict";n.d(e,{r:function(){return o},t:function(){return i}});var r=n(86866); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */function i(t){let e=o.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},o.set(t.type,e));let n=e.stringsArray.get(t.strings);if(void 0!==n)return n;const i=t.strings.join(r.Jw);return n=e.keyString.get(i),void 0===n&&(n=new r.YS(t,t.getTemplateElement()),e.keyString.set(i,n)),e.stringsArray.set(t.strings,n),n}const o=new Map},64137:function(t,e,n){"use strict";n.d(e,{R:function(){return o}});var r=n(80064),i=n(86866); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ class o{constructor(t,e,n){this.__parts=[],this.template=t,this.processor=e,this.options=n}update(t){let e=0;for(const n of this.__parts)void 0!==n&&n.setValue(t[e]),e++;for(const t of this.__parts)void 0!==t&&t.commit()}_clone(){const t=r.eC?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),e=[],n=this.template.parts,o=document.createTreeWalker(t,133,null,!1);let a,u=0,c=0,s=o.nextNode();for(;ut}),o=` ${r.Jw} `;class a{constructor(t,e,n,r){this.strings=t,this.values=e,this.type=n,this.processor=r}getHTML(){const t=this.strings.length-1;let e="",n=!1;for(let i=0;i-1||n)&&-1===t.indexOf("--\x3e",a+1);const u=r.W5.exec(t);e+=null===u?t+(n?o:r.N):t.substr(0,u.index)+u[1]+u[2]+r.$E+u[3]+r.Jw}return e+=this.strings[t],e}getTemplateElement(){const t=document.createElement("template");let e=this.getHTML();return void 0!==i&&(e=i.createHTML(e)),t.innerHTML=e,t}}},86866:function(t,e,n){"use strict";n.d(e,{$E:function(){return a},IW:function(){return l},Jw:function(){return r},N:function(){return i},W5:function(){return f},YS:function(){return u},pC:function(){return s}}); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ const r=`{{lit-${String(Math.random()).slice(2)}}}`,i=`\x3c!--${r}--\x3e`,o=new RegExp(`${r}|${i}`),a="$lit$";class u{constructor(t,e){this.parts=[],this.element=e;const n=[],i=[],u=document.createTreeWalker(e.content,133,null,!1);let s=0,d=-1,p=0;const{strings:v,values:{length:h}}=t;for(;p0;){const e=v[p],n=f.exec(e)[2],r=n.toLowerCase()+a,i=t.getAttribute(r);t.removeAttribute(r);const u=i.split(o);this.parts.push({type:"attribute",index:d,name:n,strings:u}),p+=u.length-1}}"TEMPLATE"===t.tagName&&(i.push(t),u.currentNode=t.content)}else if(3===t.nodeType){const e=t.data;if(e.indexOf(r)>=0){const r=t.parentNode,i=e.split(o),u=i.length-1;for(let e=0;e{const n=t.length-e.length;return n>=0&&t.slice(n)===e},s=t=>-1!==t.index,l=()=>document.createComment(""),f=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/},59115:function(t,e,n){"use strict";n(54732),n(64159),n(91556),n(80064),n(14644),n(74349),n(55091),n(46057),n(64137),n(86866); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ "undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1")},31955:function(t,e,n){"use strict"; /*! js-cookie v3.0.5 | MIT */ function r(t){for(var e=1;e-1&&!t.return)switch(t.type){case r.h5:t.return=(0,u.O)(t.value,t.length);break;case r.lK:return(0,a.q)([(0,o.JG)(t,{value:(0,i.gx)(t.value,"@","@"+r.G$)})],c);case r.Fr:if(t.length)return(0,i.$e)(t.props,(function(e){switch((0,i.EQ)(e,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,a.q)([(0,o.JG)(t,{props:[(0,i.gx)(e,/:(read-\w+)/,":"+r.uj+"$1")]})],c);case"::placeholder":return(0,a.q)([(0,o.JG)(t,{props:[(0,i.gx)(e,/:(plac\w+)/,":"+r.G$+"input-$1")]}),(0,o.JG)(t,{props:[(0,i.gx)(e,/:(plac\w+)/,":"+r.uj+"$1")]}),(0,o.JG)(t,{props:[(0,i.gx)(e,/:(plac\w+)/,r.MS+"input-$1")]})],c)}return""}))}}},92190:function(t,e,n){"use strict";n.d(e,{MY:function(){return a}});var r=n(27563),i=n(26686),o=n(46411);function a(t){return(0,o.cE)(u("",null,null,null,[""],t=(0,o.un)(t),0,[0],t))}function u(t,e,n,r,a,f,d,p,v){for(var h=0,_=0,y=d,m=0,g=0,b=0,w=1,E=1,O=1,x=0,S="",T=a,C=f,P=r,k=S;E;)switch(b=x,x=(0,o.lp)()){case 40:if(108!=b&&58==k.charCodeAt(y-1)){-1!=(0,i.Cw)(k+=(0,i.gx)((0,o.iF)(x),"&","&\f"),"&\f")&&(O=-1);break}case 34:case 39:case 91:k+=(0,o.iF)(x);break;case 9:case 10:case 13:case 32:k+=(0,o.Qb)(b);break;case 92:k+=(0,o.kq)((0,o.Ud)()-1,7);continue;case 47:switch((0,o.fj)()){case 42:case 47:(0,i.R3)(s((0,o.q6)((0,o.lp)(),(0,o.Ud)()),e,n),v);break;default:k+="/"}break;case 123*w:p[h++]=(0,i.to)(k)*O;case 125*w:case 59:case 0:switch(x){case 0:case 125:E=0;case 59+_:g>0&&(0,i.to)(k)-y&&(0,i.R3)(g>32?l(k+";",r,n,y-1):l((0,i.gx)(k," ","")+";",r,n,y-2),v);break;case 59:k+=";";default:if((0,i.R3)(P=c(k,e,n,h,_,a,p,S,T=[],C=[],y),f),123===x)if(0===_)u(k,e,P,P,T,f,y,p,C);else switch(m){case 100:case 109:case 115:u(t,P,P,r&&(0,i.R3)(c(t,P,P,0,0,a,p,S,a,T=[],y),C),a,C,y,p,r?T:C);break;default:u(k,P,P,P,[""],C,0,p,C)}}h=_=g=0,w=O=1,S=k="",y=d;break;case 58:y=1+(0,i.to)(k),g=b;default:if(w<1)if(123==x)--w;else if(125==x&&0==w++&&125==(0,o.mp)())continue;switch(k+=(0,i.Dp)(x),x*w){case 38:O=_>0?1:(k+="\f",-1);break;case 44:p[h++]=((0,i.to)(k)-1)*O,O=1;break;case 64:45===(0,o.fj)()&&(k+=(0,o.iF)((0,o.lp)())),m=(0,o.fj)(),_=y=(0,i.to)(S=k+=(0,o.QU)((0,o.Ud)())),x++;break;case 45:45===b&&2==(0,i.to)(k)&&(w=0)}}return f}function c(t,e,n,a,u,c,s,l,f,d,p){for(var v=u-1,h=0===u?c:[""],_=(0,i.Ei)(h),y=0,m=0,g=0;y0?h[b]+" "+w:(0,i.gx)(w,/&\f/g,h[b])))&&(f[g++]=E);return(0,o.dH)(t,e,n,0===u?r.Fr:l,f,d,p)}function s(t,e,n){return(0,o.dH)(t,e,n,r.Ab,(0,i.Dp)((0,o.Tb)()),(0,i.tb)(t,2,-2),0)}function l(t,e,n,a){return(0,o.dH)(t,e,n,r.h5,(0,i.tb)(t,0,a),(0,i.tb)(t,a+1,-1),a)}},15327:function(t,e,n){"use strict";n.d(e,{O:function(){return o}});var r=n(27563),i=n(26686);function o(t,e){switch((0,i.vp)(t,e)){case 5103:return r.G$+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return r.G$+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return r.G$+t+r.uj+t+r.MS+t+t;case 6828:case 4268:return r.G$+t+r.MS+t+t;case 6165:return r.G$+t+r.MS+"flex-"+t+t;case 5187:return r.G$+t+(0,i.gx)(t,/(\w+).+(:[^]+)/,r.G$+"box-$1$2"+r.MS+"flex-$1$2")+t;case 5443:return r.G$+t+r.MS+"flex-item-"+(0,i.gx)(t,/flex-|-self/,"")+t;case 4675:return r.G$+t+r.MS+"flex-line-pack"+(0,i.gx)(t,/align-content|flex-|-self/,"")+t;case 5548:return r.G$+t+r.MS+(0,i.gx)(t,"shrink","negative")+t;case 5292:return r.G$+t+r.MS+(0,i.gx)(t,"basis","preferred-size")+t;case 6060:return r.G$+"box-"+(0,i.gx)(t,"-grow","")+r.G$+t+r.MS+(0,i.gx)(t,"grow","positive")+t;case 4554:return r.G$+(0,i.gx)(t,/([^-])(transform)/g,"$1"+r.G$+"$2")+t;case 6187:return(0,i.gx)((0,i.gx)((0,i.gx)(t,/(zoom-|grab)/,r.G$+"$1"),/(image-set)/,r.G$+"$1"),t,"")+t;case 5495:case 3959:return(0,i.gx)(t,/(image-set\([^]*)/,r.G$+"$1$`$1");case 4968:return(0,i.gx)((0,i.gx)(t,/(.+:)(flex-)?(.*)/,r.G$+"box-pack:$3"+r.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+r.G$+t+t;case 4095:case 3583:case 4068:case 2532:return(0,i.gx)(t,/(.+)-inline(.+)/,r.G$+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,i.to)(t)-1-e>6)switch((0,i.uO)(t,e+1)){case 109:if(45!==(0,i.uO)(t,e+4))break;case 102:return(0,i.gx)(t,/(.+:)(.+)-([^]+)/,"$1"+r.G$+"$2-$3$1"+r.uj+(108==(0,i.uO)(t,e+3)?"$3":"$2-$3"))+t;case 115:return~(0,i.Cw)(t,"stretch")?o((0,i.gx)(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(115!==(0,i.uO)(t,e+1))break;case 6444:switch((0,i.uO)(t,(0,i.to)(t)-3-(~(0,i.Cw)(t,"!important")&&10))){case 107:return(0,i.gx)(t,":",":"+r.G$)+t;case 101:return(0,i.gx)(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+r.G$+(45===(0,i.uO)(t,14)?"inline-":"")+"box$3$1"+r.G$+"$2$3$1"+r.MS+"$2box$3")+t}break;case 5936:switch((0,i.uO)(t,e+11)){case 114:return r.G$+t+r.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return r.G$+t+r.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return r.G$+t+r.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return r.G$+t+r.MS+t+t}return t}},20211:function(t,e,n){"use strict";n.d(e,{P:function(){return a},q:function(){return o}});var r=n(27563),i=n(26686);function o(t,e){for(var n="",r=(0,i.Ei)(t),o=0;o0?(0,r.uO)(s,--u):0,o--,10===c&&(o=1,i--),c}function v(){return c=u2||m(c)>3?"":" "}function O(t,e){for(;--e&&v()&&!(c<48||c>102||c>57&&c<65||c>70&&c<97););return y(t,_()+(e<6&&32==h()&&32==v()))}function x(t){for(;v();)switch(c){case t:return u;case 34:case 39:34!==t&&39!==t&&x(c);break;case 40:41===t&&x(t);break;case 92:v()}return u}function S(t,e){for(;v()&&t+c!==57&&(t+c!==84||47!==h()););return"/*"+y(e,u-1)+"*"+(0,r.Dp)(47===t?t:v())}function T(t){for(;!m(h());)v();return y(t,u)}},26686:function(t,e,n){"use strict";n.d(e,{$e:function(){return _},Cw:function(){return l},Dp:function(){return i},EQ:function(){return c},Ei:function(){return v},R3:function(){return h},Wn:function(){return r},f0:function(){return o},fy:function(){return u},gx:function(){return s},tb:function(){return d},to:function(){return p},uO:function(){return f},vp:function(){return a}});var r=Math.abs,i=String.fromCharCode,o=Object.assign;function a(t,e){return(((e<<2^f(t,0))<<2^f(t,1))<<2^f(t,2))<<2^f(t,3)}function u(t){return t.trim()}function c(t,e){return(t=e.exec(t))?t[0]:t}function s(t,e,n){return t.replace(e,n)}function l(t,e){return t.indexOf(e)}function f(t,e){return 0|t.charCodeAt(e)}function d(t,e,n){return t.slice(e,n)}function p(t){return t.length}function v(t){return t.length}function h(t,e){return e.push(t),t}function _(t,e){return t.map(e).join("")}}},o={};function a(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={id:t,loaded:!1,exports:{}};return i[t].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=i,a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);a.r(i);var o={};t=t||[null,e({}),e([]),e(e)];for(var u=2&r&&n;"object"==typeof u&&!~t.indexOf(u);u=e(u))Object.getOwnPropertyNames(u).forEach((function(t){o[t]=function(){return n[t]}}));return o.default=function(){return n},a.d(i,o),i},a.d=function(t,e){for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.f={},a.e=function(t){return Promise.all(Object.keys(a.f).reduce((function(e,n){return a.f[n](t,e),e}),[]))},a.u=function(t){return({1213:"i18next",2009:"markdown",3706:"i18next-player",4141:"videoplayer",7631:"sentry-browser"}[t]||t)+"-"+a.h()+".js"},a.h=function(){return"9c401377dd5764ab9fc1"},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.hmd=function(t){return(t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n={},r="zeffo:",a.l=function(t,e,i,o){if(n[t])n[t].push(e);else{var u,c;if(void 0!==i)for(var s=document.getElementsByTagName("script"),l=0;l=0;u--)(i=t[u])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a};(0,g.k)();var O=function(r){(0,n.Z)(a,r);var i=w(a);function a(){var e;return(0,t.Z)(this,a),(e=i.apply(this,arguments)).height="75vh",e}return(0,e.Z)(a,[{key:"render",value:function(){var t,e,n,r,i,a,u,g=this,b=Object.fromEntries(this.getAttributeNames().map((function(t){return[t,g.getAttribute(t)]})));this.style.width="100%",this.shadowRoot&&((0,o.unmountComponentAtNode)(this.shadowRoot),t={target:this.shadowRoot,widgetId:this.widgetId,widgetParams:Object.assign({height:this.height},b)},e=t.target,n=t.widgetId,r=t.widgetParams,i=r.channel,a=n,u={location:window.location,page_url:(0,v.XW)(),referrer:document.referrer,target:e,type:p._r.STORYBLOCK,widget_id:a},(0,f.XX)(Object.assign(Object.assign({},u),r)).measure(f.kG),(0,d.c)((function(){(0,l.MD)().configureScope((function(t){t.setTag("fwn_channel",null!=i?i:""),t.setTag("fwn_context","storyblock")}));try{e&&((0,s._H)({type:s.tw.FW_STORYBLOCK_RENDER,data:{widget_id:a},target:e}),(0,o.render)((0,m.tZ)(_.Z,{onError:function(t){return(0,l.H)(t)},children:(0,m.tZ)(c.C,{value:(0,y.c)({container:e}),children:(0,m.tZ)(h.K,{initialParams:u,widgetParams:r})})}),e))}catch(t){(0,l.H)(t)}})))}}]),a}(b.T);E([(0,u.Cb)({type:String})],O.prototype,"height",void 0),customElements.get("fw-storyblock")||customElements.define("fw-storyblock",O)}()}(); //# sourceMappingURL=storyblock.js.map