PageSourceSearch

https://www.theopen.com/dist/vendors.app.a32dd8b5b9eb09ea7b04.js

js theopen.com collected 2026-10-01 10:39:00 UTC 1,367,549 bytes, 82 lines download raw bytes

1(window.webpackJsonpDelete=window.webpackJsonpDelete||[]).push([[7],{102:function(t,e,i){t.exports=i(1682)()},134:function(t,e,i){var n;window,n=(()=>(()=>{var t={41:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MetadataKeys=void 0,e.buildLogMetadata=function(t,i,r,s){const a=o.deviceDetector.getDeviceInfo(),l=o.deviceDetector.getOSInfo(),d=(h=a.type)?{mobile:"Phone",tablet:"Tablet"}[h]||h:"Desktop",u=screen.width+"x"+screen.height,c=function(){const t=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return t&&(t.effectiveType||t.type)||"Unknown"}();var h;return Object.assign({[e.MetadataKeys.LOG_IDENTIFIER]:r,[e.MetadataKeys.SESSION_ID]:t,[e.MetadataKeys.ID]:i,[e.MetadataKeys.SDK_TYPE]:"Web",[e.MetadataKeys.SDK_VERSION]:"0.34.5",[e.MetadataKeys.API_KEY]:n.ConfigService.apiKey,[e.MetadataKeys.DEVICE_TYPE]:d,[e.MetadataKeys.DEVICE_BRAND]:a.vendor,[e.MetadataKeys.DEVICE_MODEL]:a.model,[e.MetadataKeys.OPERATING_SYSTEM]:l.name,[e.MetadataKeys.OPERATING_SYSTEM_VERSION]:l.version,[e.MetadataKeys.SCREEN_RESOLUTION]:u,[e.MetadataKeys.CONNECTION_TYPE]:c,[e.MetadataKeys.REPORTING_TIMESTAMP]:(new Date).toISOString()},s)};const n=i(4545),o=i(2914);e.MetadataKeys={SESSION_ID:"session_id",ID:"id",SDK_TYPE:"sdk_type",SDK_VERSION:"sdk_version",API_KEY:"api_key",DEVICE_TYPE:"device_type",DEVICE_BRAND:"device_brand",DEVICE_MODEL:"device_model",OPERATING_SYSTEM:"operating_system",OPERATING_SYSTEM_VERSION:"operating_system_version",SCREEN_RESOLUTION:"screen_resolution",CONNECTION_TYPE:"connection_type",REPORTING_TIMESTAMP:"reporting_timestamp",LOG_IDENTIFIER:"log_identifier"}},51:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetLayout=void 0,i(5127);const o=i(4403),r=i(5785),s=i(6450),a=i(9965),l=i(8921),d=i(4545),u=i(4906),c=i(3574),h=i(9266),p=i(6627),f=i(5266),g=i(6994),v=i(7951);let y=window.innerWidth;e.BlazeWidgetLayout=class extends p.WidgetBaseLayout{get refElement(){var t;return null!==(t=this.shadowRoot)&&void 0!==t?t:this}constructor(){super(),this.widgetHeight=0,this.parentHeight=void 0,this.focusedItemIndex=-1,this.lastFocusedIndex=-1,d.ConfigService.runInShadowDom&&this.attachShadow({mode:"open"}),this.widgetItems=[],this.contents=[],this.heightObserver=new MutationObserver(this.handleHeightChangeMutation.bind(this)),this.onResizeEvent=(0,o.debounce)(this.onResize.bind(this),75),this.onMouseMoveEvent=(0,o.debounce)(t=>{let e=(this.shadowRoot||document).elementFromPoint(t.clientX,t.clientY);const i=(0,h.findParentOfType)(e,f.BlazeWidgetItem,this);if(i&&this.currentlyAnimatedItem!==i){const t=this.currentlyAnimatedItem;this.currentlyAnimatedItem=i,null==t||t.loadNewThumbnail(),this.currentlyAnimatedItem.loadNewThumbnail()}},50),this.onMouseLeaveEvent=(()=>{var t,e;"function"==typeof this.onMouseMoveEvent.cancel&&this.onMouseMoveEvent.cancel();const i=this.currentlyAnimatedItem;this.currentlyAnimatedItem=null!==(t=this.firstVisibleItem)&&void 0!==t?t:this.widgetItems[0],null==i||i.loadNewThumbnail(),null===(e=this.currentlyAnimatedItem)||void 0===e||e.loadNewThumbnail()})}connectedCallback(){var t,e,i;if((0,h.setId)(this,"blaze-layout"),this.setupAccessibility(),super.connectedCallback(),this.parentElement&&new ResizeObserver(()=>{this.render()}).observe(this.parentElement),this.isAnimatedThumbnail()&&o.deviceDetector.isDesktop&&(this.addEventListener("mousemove",this.onMouseMoveEvent),this.addEventListener("mouseleave",this.onMouseLeaveEvent)),null===window||void 0===window||window.addEventListener("resize",this.onResizeEvent),null===window||void 0===window||window.addEventListener(o.DEVICE_EVENTS.SCREEN_ORIENTATION_CHANGE,this.onResizeEventDelay.bind(this)),this.intersectionObserver.observe(this),this.setStyle({display:"grid",gridAutoFlow:"column",width:"auto",height:"100%",direction:d.ConfigService.layoutDirection}),this.parentElement&&(this.parentHeight=this.parentElement.clientHeight,this.heightOb
1server.observe(this.parentElement,{attributes:!0,attributeFilter:["style","class"]})),this.widgetHeight=this.clientHeight,this.innerHTML+="<style>\n      blaze-widget-layout::-webkit-scrollbar,blaze-div::-webkit-scrollbar {display: none;}\n      blaze-widget-layout,blaze-div {-ms-overflow-style: none; scrollbar-width: none;}\n      blaze-widget-layout:focus-visible {outline: 2px solid #007AFF; outline-offset: 2px;}\n    </style>",this.theme.layoutStyle.isSkeleton){const{itemRatio:n,columns:o,rows:s,lines:a,labelStyle:d,horizontalItemsSpacing:u,verticalItemsSpacing:c}=this.theme.layoutStyle,{maxBadgeHeight:h,maxBadgeWidth:p,maxChipHeight:f,maxChipWidth:g}=this.getStatusIndicatorBadgeAndChipSizes(),v=f/2+h/2,y=p/2+g/2;let m=0,b=0;const S=-1!==d.position.indexOf("outside");if(d.isVisible&&S){const t=this.calculateLabelSizes(d,a);m=t.labelAdditionalWidth,b=t.labelAdditionalHeight}const E=this.getParentHeightWithoutPadding()||this.parentHeight||this.clientHeight||this.widgetHeight;let C,w;this.skeletonContainer=l.WidgetsFactory.create("blaze-div"),this.skeletonContainer.style.display="grid",this.skeletonContainer.style.columnGap=u+"px",this.skeletonContainer.style.rowGap=c+"px",this.skeletonContainer.style.overflow="hidden",this.skeletonContainer.style.gridAutoFlow="column";let A=4;1==s&&0==o?(this.skeletonContainer.style.gap=u+"px",C=E-b-v,w=this.calculateWidthForRow(C,n,y,m),this.skeletonContainer.style.overflowX="auto",A=this.clientWidth/w+1,this.skeletonContainer.style.gridTemplateColumns="repeat("+A+", "+w+"px)"):(w=(E-(o-1)*u)/o,(null===(t=this.parentElement)||void 0===t?void 0:t.clientWidth)&&(w=((null===(e=this.parentElement)||void 0===e?void 0:e.clientWidth)-(o-1)*u)/o),C=(w-m-y)/n+v+b,this.skeletonContainer.style.gridTemplateColumns="1fr ".repeat(o),this.skeletonContainer.style.height=2*C+"px");const T=this.getAttribute("max-display-items-count")||this.getAttribute("max-items");1==T&&(A=T);for(let t=0;t<A;t++){const t=new r.BlazeWidgetItemSkeleton(this.theme.layoutStyle,Math.floor(w),Math.floor(C),b);null===(i=this.skeletonContainer)||void 0===i||i.append(t)}this.refElement.append(this.skeletonContainer)}}disconnectedCallback(){var t,e,i;super.disconnectedCallback(),null===window||void 0===window||window.removeEventListener("resize",this.onResizeEvent),null===window||void 0===window||window.removeEventListener(o.DEVICE_EVENTS.SCREEN_ORIENTATION_CHANGE,this.onResizeEventDelay),this.removeEventListener("keydown",this.onKeyDown),this.isAnimatedThumbnail()&&o.deviceDetector.isDesktop&&(this.removeEventListener("mousemove",this.onMouseMoveEvent),this.removeEventListener("mouseleave",this.onMouseLeaveEvent)),null===(t=this.storysModal)||void 0===t||t.remove(),null===(e=this.momentsModal)||void 0===e||e.remove(),null===(i=this.videosModal)||void 0===i||i.remove(),this.heightObserver.disconnect(),o.deviceDetector.removeResizeListener(),v.contentAccessibilityManager.cleanup(),g.accessibilityManager.cleanup()}onResizeEventDelay(){setTimeout(()=>{this.onResize()},s.ONE_SECOND/2)}onResize(){var t,e,i,n,o,r,s,a,l,d,u,c,h,p,f;y!==window.innerWidth&&(y=window.innerWidth,this.storysModal&&(null===(t=this.storysModal)||void 0===t||t.render(),null===(i=null===(e=this.storysModal)||void 0===e?void 0:e.player)||void 0===i||i.render(),null===(o=null===(n=this.storysModal)||void 0===n?void 0:n.player)||void 0===o||o.resetPosition(),null===(a=null===(s=null===(r=this.storysModal)||void 0===r?void 0:r.player)||void 0===s?void 0:s.contentList)||void 0===a||a.forEach(t=>null==t?void 0:t.render())),this.momentsModal&&(null===(l=this.momentsModal)||void 0===l||l.render(),null===(u=null===(d=this.momentsModal)||void 0===d?void 0:d.player)||void 0===u||u.resetPosition(),null===(p=null===(h=null===(c=this.momentsModal)||void 0===c?void 0:c.player)||void 0===h?void 0:h.contentList)||void 0===p||p.forEach(t=>null==t?void 0:t.render())),this.videosModal&&(null===(f=this.videosModal)||void 0===f||f.render()))}handleHeightChangeMutation(t){var e,i,n,o,r;for(const s of t)if("style"===s.attributeName||"class"===s.attributeName){const t=this.getParentHeightWithoutPadding();if(null!=t&&t!==this.parentHeight){this.parentHeight=t;const s=this.contents.length>0;[null===(i=null===(e=this.storysModal)||void 0===e?void 0:e.player)||void 0===i?void 0:i.contentList,null===(o=null===(n=this.momentsModal)||void 0===n?void 0:n.player)||void 0===o?void 0:o.contentList,null===(r=this.videosModal)||void 0===r?void 0:r.player.contentList].some(t=>{var e;return(null!==(e=null==t?void 0:t.length)&&void 0!==e?e:0)>0})&&s&&this.render()}}}handleIntersection(t){const e=t.find(t=>t.target===this);e&&e.isIntersecting&&(this.isWidgetVisible=!0,this.widgetItems.length&&(this.event(s.WidgetAction.Visible,{},this.getAttribute("labels")),this.intersectionObserver.disconnect()))}onContentChange(t){var e,i,n,o;const r="RTL"===d.ConfigService.layoutDirection?-1:1,s=(this.thumbnailWidth||0)*r;switch(t){case"NEXT":this.scrollLeft+=s;break;case"PREV":this.scrollLeft-=s}const a=(null===(e=this.storysModal)||void 0===e?void 0:e.isOpen)||(null===(i=this.momentsModal)||void 0===i?void 0:i.isOpen)||(null===(n=this.videosModal)||void 0===n?void 0:n.isOpen);if(this.isAnimatedThumbnail()&&!a){this.setFirstVisibleItem();const t=this.currentlyAnimatedItem;
1this.currentlyAnimatedItem=this.firstVisibleItem,null==t||t.loadNewThumbnail(),null===(o=this.firstVisibleItem)||void 0===o||o.loadNewThumbnail()}}onPlayerClose(){this.restoreTabIndexOnWidgetItems(),this.lastFocusedIndex>=0&&this.lastFocusedIndex<this.widgetItems.length&&this.navigateToItem(this.lastFocusedIndex),this.shouldReloadWhenPlayerIsClosed&&(this.loadContent(),this.shouldReloadWhenPlayerIsClosed=!1)}onPlayerOpen(){this.lastFocusedIndex=this.focusedItemIndex}setFirstVisibleItem(){const t=this.widgetItems.filter(t=>t.isFullyVisibleInParent()),e=t.reduce((t,e)=>{const i=e.getBoundingClientRect(),n=t.getBoundingClientRect();return i.left<n.left?e:t},t[0]);this.firstVisibleItem=e}getParentHeightWithoutPadding(){var t;if(this.parentElement){const e=window.getComputedStyle(this.parentElement),i=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom);return(this.parentElement.clientHeight||(null!==(t=this.parentHeight)&&void 0!==t?t:0))-i||null}return null}setId(t){this.containerId=t,this.id="widget-layout-"+t}set storyIds(t){this.setAttribute("story-ids",t)}set contentIds(t){this.setAttribute("content-ids",t)}updateWidgetUI(){this.widgetItems.forEach(t=>{t.content.entities&&this.perItemStyleOverrides&&Object.entries(t.content.entities).forEach(([e,i])=>{var n;i&&this.perItemStyleOverrides[e]&&(null===(n=this.perItemStyleOverrides[e])||void 0===n||n.forEach(n=>{n.name===i&&(t.updateWidgetItemStyle(n.theme.layoutStyle),this.updateActiveLayoutThemesPerItemWithEntity(e,i,n.theme))}))})}),this.setMaxPaddingOnWidgetItems(),this.render()}updateOverrideStyles(t){var e;for(const i of Object.keys(t)){const n=i;this.perItemStyleOverrides.hasOwnProperty(n)&&(null===(e=t[n])||void 0===e||e.forEach(t=>{var e,i;const o=null===(e=this.perItemStyleOverrides[n])||void 0===e?void 0:e.findIndex(e=>e.name===t.name);if(-1!==o){const e=this.perItemStyleOverrides[n];e&&void 0!==o&&(e[o]=t)}else null===(i=this.perItemStyleOverrides[n])||void 0===i||i.push(t)}))}}updatePlayerStyle(){const t=(0,h.mergeDeep)(u.ThemeFactory.create("default").playerStyle,d.ConfigService.playerStyleCustomization);(0,h.applyPlayerStyleChanges)(u.ThemeFactory.create("default").playerStyle,t,this.theme.playerStyle,{GLOBAL:[],LOCAL:[]})}setMaxPaddingOnWidgetItems(){const t={top:"0",bottom:"0",left:"0",right:"0"},e={top:!1,bottom:!1,left:!1,right:!1};this.widgetItems.forEach(i=>{const n=i.getPaddingOnContainer();t.top=(0,h.getMaxValue)(t.top,n.top),t.left=(0,h.getMaxValue)(t.left,n.left),t.right=(0,h.getMaxValue)(t.right,n.right),t.bottom=(0,h.getMaxValue)(t.bottom,n.bottom);const o=i.layoutStyle.badgePosition,r=i.layoutStyle.statusIndicatorPosition,s=o.toLocaleLowerCase().includes("top")||r.toLocaleLowerCase().includes("top"),a=o.toLocaleLowerCase().includes("bottom")||r.toLocaleLowerCase().includes("bottom"),l=o.toLocaleLowerCase().includes("right")||r.toLocaleLowerCase().includes("right"),d=o.toLocaleLowerCase().includes("left")||r.toLocaleLowerCase().includes("left"),u=o.toLocaleLowerCase().includes("outside")||r.toLocaleLowerCase().includes("outside"),c=i.layoutStyle.badgeIndicatorStyle.isVisible||i.layoutStyle[i.chipType].isVisible;u&&c&&(s&&(e.top=!0),a&&(e.bottom=!0),l&&(e.right=!0),d&&(e.left=!0))}),t.top=e.top?t.top:"0px",t.bottom=e.bottom?t.bottom:"0px",t.left=e.left?t.left:"0px",t.right=e.right?t.right:"0px",this.widgetItems.forEach(e=>{e.setPaddingOnContainer(t)})}setMaxItemsDisplaySize(t){this.setAttribute("max-display-items-count",t.toString())}setMaxItemsSize(t,e){this.setReloadData(e),this.setAttribute("max-items",(null==t?void 0:t.toString())||"")}setupVideoModalCallbacks(){var t,e,i;this.videosModal&&(this.videosModal.onContentChange=null===(t=this.onContentChange)||void 0===t?void 0:t.bind(this),this.videosModal.onClose=null===(e=this.onPlayerClose)||void 0===e?void 0:e.bind(this),this.videosModal.onOpen=null===(i=this.onPlayerOpen)||void 0===i?void 0:i.bind(this))}setupMomentModalCallbacks(){var t,e,i;this.momentsModal&&(this.momentsModal.onContentChange=null===(t=this.onContentChange)||void 0===t?void 0:t.bind(this),this.momentsModal.onClose=null===(e=this.onPlayerClose)||void 0===e?void 0:e.b
1ind(this),this.momentsModal.onOpen=null===(i=this.onPlayerOpen)||void 0===i?void 0:i.bind(this))}setupStoryModalCallbacks(){var t,e,i;this.storysModal&&(this.storysModal.onContentChange=null===(t=this.onContentChange)||void 0===t?void 0:t.bind(this),this.storysModal.onClose=null===(e=this.onPlayerClose)||void 0===e?void 0:e.bind(this),this.storysModal.onOpen=null===(i=this.onPlayerOpen)||void 0===i?void 0:i.bind(this))}beforeStoryModalCreation(){this.updatePlayerStyle()}removeSkeletonContainer(){return n(this,void 0,void 0,function*(){var t;null===(t=this.skeletonContainer)||void 0===t||t.remove()})}handlePostContentLoad(t,e,i){return n(this,void 0,void 0,function*(){var n;null===(n=this.skeletonContainer)||void 0===n||n.remove();for(const t of this.widgetItems)null==t||t.remove();if(this.widgetItems=[],this.handleWidgetContent(),this.render(),this.reorderWidgets(),t?this.handleStoryContent():e?this.handleMomentContent():i&&this.handleVideoContent(),this.widgetItems.forEach(t=>this.refElement.appendChild(t)),this.initializeRovingTabindex(),this.reorderWidgets(),d.EventService.dispatch(this,a.Delegation.onWidgetDataLoadCompleted,{widgetId:this.id,storyCount:this.contents.length,contentCount:this.contents.length}),this.isWidgetVisible&&this.widgetItems.length&&this.event(s.WidgetAction.Visible,{},this.getAttribute("labels")),this.event(s.WidgetAction.Load,{},this.getAttribute("labels")),this.updateWidgetUI(),this.updateAccessibilityLabel(),this.widgetItems.length>0){this.focusedItemIndex=0,this.widgetItems[0].setAttribute("tabindex","0"),this.widgetItems.slice(1).forEach(t=>t.setAttribute("tabindex","-1"));const t=this.getContentType();this.widgetItems.forEach((e,i)=>{e.updateAccessibilityInfo({position:i+1,total:this.widgetItems.length,contentType:t})})}})}handleAssetsExpiry(t){const e=new Date(Date.parse(t.assetsExpiryTime));clearTimeout(this.reloadTimeout),this.reloadTimeout=setTimeout(()=>{this.loadContent()},e.getTime()-Date.now()-3e5)}onItemClick(t,e){var i,n,r,s;window.visualViewport&&window.visualViewport.scale>1&&d.EventService.dispatch(this,a.Delegation.onErrorThrown,{widgetId:this.id,errorCode:a.ErrorCode.VisualViewportScaled});const l=this.getAttribute("content-type"),u="story"===l||!l,c="moment"===l,h="video"===l;if(this.isAnimatedThumbnail()&&o.deviceDetector.isDesktop){const t=this.currentlyAnimatedItem;this.currentlyAnimatedItem=this.firstVisibleItem,null==t||t.loadNewThumbnail(),null===(i=this.currentlyAnimatedItem)||void 0===i||i.loadNewThumbnail()}h&&this.videosModal?this.playVideo(null===(n=t.content)||void 0===n?void 0:n.id):c&&this.momentsModal?this.playMoment(null===(r=t.content)||void 0===r?void 0:r.id):u&&this.storysModal&&this.playStory(null===(s=t.content)||void 0===s?void 0:s.id)}handleWidgetContent(){var t;let e=this.getTheme();null===(t=this.contents)||void 0===t||t.forEach((t,i)=>{t.entities&&Object.entries(t.entities).forEach(([t,i])=>{var n;i&&this.perItemStyleOverrides&&this.perItemStyleOverrides[t]&&(null===(n=this.perItemStyleOverrides[t])||void 0===n||n.forEach(n=>{n.name===i&&(e=n.theme,this.updateActiveLayoutThemesPerItemWithEntity(t,i,n.theme))}))});const n=new f.BlazeWidgetItem({layout:e.layoutStyle,content:t});n.onClick=(()=>this.onItemClick(n,i)),n.contentType=this.getAttribute("content-type")||"story",this.widgetItems.push(n)})}calculateChipSizes(t){const{chipWidth:e,chipHeight:i}=(0,h.calculateChipSize)("badge",t.layoutStyle.badgePosition,t.layoutStyle),{chipWidth:n,chipHeight:o}=(0,h.calculateChipSize)("chip",t.layoutStyle.statusIndicatorPosition,t.layoutStyle);return{badge:{width:e,height:i},chip:{width:n,height:o}}}getStatusIndicatorBadgeAndChipSizes(){let t=0,e=0,i=0,n=0;if((0,h.isEmpty)(this.activeOverridesLayoutThemes)){const{badge:o,chip:r}=this.calculateChipSizes(this.theme),{badgePosition:s,statusIndicatorPosition:a}=this.theme.layoutStyle,{maxBadgeHeight:l,maxBadgeWidth:d,maxChipHeight:u,maxChipWidth:c}=this.getMaxSizes(o,r,s,a);t=l,e=d,i=u,n=c}else Object.keys(this.activeOverridesLayoutThemes).forEach(o=>{var r;const s=o;null===(r=this.activeOverridesLayoutThemes[s])||void 0===r||r.forEach(o=>{const{badge:r,chip:s}=this.calculateChipSizes(o.theme),{badgePosition:a,statusIndicatorPosition:l}=o.theme.layoutStyle,{maxBadgeHeight:d,maxBadgeWidth:u,maxChipHeight:c,maxChipWidth:h}=this.getMaxSizes(r,s,a,l);t=Math.max(t,d),e=Math.max(e,u),i=Math.max(i,c),n=Math.max(n,h)})});return{maxBadgeHeight:t,maxBadgeWidth:e,maxChipHeight:i,maxChipWidth:n}}isAnimatedThumbnail(){return"AnimatedThumbnailPoster"===(0,c.thumbnailMapping)(this.getTheme().layoutStyle.thumbnailType)}getMaxSizes(t,e,i,n){let o,r,s,a;return i===n?(s=o=Math.max(t.height,e.height),a=r=Math.max(t.width,e.width)):(o=t.height,r=t.width,s=e.he
1ight,a=e.width),{maxBadgeHeight:o,maxBadgeWidth:r,maxChipHeight:s,maxChipWidth:a}}render(){var t;if(this.theme){const{itemRatio:e,columns:i,rows:n,lines:o,labelStyle:r,verticalItemsSpacing:s,horizontalItemsSpacing:a}=this.theme.layoutStyle;this.style.overflowX="",this.style.columnGap=a+"px",this.style.rowGap=s+"px",this.style.gridAutoFlow="row",this.style.overflow="hidden",this.style.color=r.color;const l=this.maxSize(),d=l!==this.contents.length?this.contents.slice(0,l):this.contents,{maxBadgeHeight:u,maxBadgeWidth:c,maxChipHeight:h,maxChipWidth:p}=this.getStatusIndicatorBadgeAndChipSizes(),f=h/2+u/2,g=c/2+p/2;let v,y=0,m=0;const b=-1!==r.position.indexOf("outside");if(r.isVisible&&b){const t=this.calculateLabelSizes(r,o);v=t.labelWidth,y=t.labelAdditionalWidth,m=t.labelAdditionalHeight}let S,E;const C=this.getParentHeightWithoutPadding()||this.parentHeight||this.clientHeight||this.widgetHeight;1==n&&0==i?(S=C-m-f,E=this.calculateWidthForRow(S,e,g,y),this.style.gridTemplateColumns="repeat("+(null!==(t=d.length)&&void 0!==t?t:0)+", "+E+"px)",this.style.overflowX="auto"):(S=((E=(C-(i-1)*a)/i)-y-g)/e+f+m,this.style.gridTemplateColumns="1fr ".repeat(i),this.style.overflow="auto"),this.thumbnailHeight=Math.floor(S),this.thumbnailWidth=Math.floor(E),this.style.height="auto"}}calculateWidthForRow(t,e,i,n){return t*e+i+n}calculateLabelSizes(t,e){let i=t.width,n=0,o=(0,h.convertCssUnitToNumber)(t.height)*e;const{isOutside:r,isInside:s,isLeft:a,isRight:l}=(0,h.calculatePosition)(t.position);return r?a||l||(o+=t.gap+(t.padding?2*parseInt(t.padding,10):0)):s&&(a||l?(n="auto"===i?0:+i,o=0):o+=t.gap),{labelWidth:i,labelAdditionalWidth:n,labelAdditionalHeight:o}}reorderWidgetItems(){for(const t of this.contents){const e=this.widgetItems.findIndex(e=>{var i;return(null===(i=e.content)||void 0===i?void 0:i.id)===t.id}),i=this.contents.indexOf(t);if(e>0){const t=this.widgetItems[e],n=this.widgetItems[i];this.widgetItems[i]=t,this.widgetItems[e]=n}}}updateWidgetDisplay(){let t=this.maxSize();t&&this.widgetItems.forEach((e,i)=>{e.style.display=i<t?"grid":"none"})}maxSize(){var t,e;const i=this.theme.layoutStyle.columns,n=this.theme.layoutStyle.rows,o=this.getAttribute("max-display-items-count");let r=i*n,s=0;return s=null!==(e=null===(t=this.contents)||void 0===t?void 0:t.length)&&void 0!==e?e:0,0==r&&(r=s),o&&(r=o),Math.max(Math.min(s,r),0)}connectWidgets(){if(this.isConnected)for(const t in this.widgetItems){const e=this.widgetItems[t];e.isConnected||this.refElement.appendChild(e)}}get thumbnailShape(){var t;return(null===(t=this.theme)||void 0===t?void 0:t.layoutStyle.thumbnailShape)||this.getAttribute("thumbnail-shape")}widgetType(){return this.theme.layoutStyle.columns>1?"Grid":"Row"}setupAccessibility(){this.setAttribute("role","toolbar"),this.setAttribute("aria-orientation","horizontal"),this.addEventListener("keydown",this.onKeyDown.bind(this)),this.updateAccessibilityLabel(),g.accessibilityManager.setupLiveRegions(this)}updateAccessibilityLabel(){const t=this.getContentType(),e=this.widgetItems.length,{label:i,announcement:n}=(0,h.buildCarouselLabel)(t,e);g.accessibilityManager.announce({message:n,priority:"polite",category:"navigation"}),this.setAttribute("aria-label",i),this.setAttribute("aria-live","polite")}onKeyDown(t){var e,i,n;const o=navigator.platform.toLowerCase().includes("win")||navigator.userAgent.toLowerCase().includes("windows"),r="ArrowUp"===t.key||"ArrowDown"===t.key,s="ArrowRight"===t.key||"ArrowLeft"===t.key,a="Enter"===t.key||" "===t.key,l="Home"===t.key,d="End"===t.key,u=o?r:r||s;(null===(e=this.storysModal)||void 0===e?void 0:e.isOpen)&&s||(null===(i=this.momentsModal)||void 0===i?void 0:i.isOpen)&&s||(null===(n=this.videosModal)||void 0===n?void 0:n.isOpen)&&s||0!==this.widgetItems.length&&((u||a||l||d)&&(t.preventDefault(),t.stopPropagation()),"ArrowDown"===t.key||!o&&"ArrowRight"===t.key?this.navigateToNextItem():"ArrowUp"===t.key||!o&&"ArrowLeft"===t.key?this.navigateToPreviousItem():"Home"===t.key?this.navigateToItem(0):"End"===t.key?this.navigateToItem(this.widgetItems.length-1):"Enter"!==t.key&&" "!==t.key||this.activateCurrentItem())}navigateToNextItem(){this.focusedItemIndex<this.widgetItems.length-1&&this.navigateToItem(this.focusedItemIndex+1)}navigateToPreviousItem(){this.focusedItemIndex>0&&this.navigateToItem(this.focusedItemIndex-1)}navigateToItem(t){if(t<0||t>=this.widgetItems.length)return;const e=this.focusedItemIndex,i=this.widgetItems[t];e>=0&&e<this.widgetItems.length&&this.widgetItems[e].setAttribute("tabindex","-1"),i.setAttribute("tabindex","0"),this.focusedItemIndex=t,i.focus(),i.scrollIntoView({behavior:"smooth",block:"nearest"}),this.announceCurrentItem()}activateCurrentItem(){this.focusedItemIndex>=0&&this.focusedItemIndex<this.widgetItems.length&&this.widgetItems[this.focusedItemIndex].click()}announceCurrentItem(){var t;if(this.focusedItemIndex>=0&&this.focusedItemIndex<this.widgetItems.length){const e=this.widgetItems[this.focusedItemIndex],i=this.getContentType(),n=(0,h.buildContentAriaLabel)({contentType:i,title:(null===(t=e.content)||void 0===t?void 0:t.t
1itle)||"Untitled",content:e.content,position:this.focusedItemIndex+1,total:this.widgetItems.length,elementType:"item"});g.accessibilityManager.announce({message:n,priority:"assertive",category:"navigation"}),this.setAttribute("aria-label",n),setTimeout(()=>{this.updateAccessibilityLabel()},s.ACCESSIBILITY_TIMING.LABEL_CLEAR_DELAY)}}updateFocusedItemIndex(t){t>=0&&t<this.widgetItems.length&&(this.focusedItemIndex=t)}setFocusState(t){this.focusedItemIndex>=0&&(this.widgetItems[this.focusedItemIndex].blur(),this.widgetItems[this.focusedItemIndex].setAttribute("tabindex","-1")),this.focusedItemIndex=t,this.widgetItems[t].setAttribute("tabindex","0")}removeTabIndexFromWidgetItems(){this.widgetItems.forEach((t,e)=>{e===this.focusedItemIndex?t.setAttribute("tabindex","-1"):t.removeAttribute("tabindex")})}restoreTabIndexOnWidgetItems(){this.widgetItems.forEach((t,e)=>{0===e?t.setAttribute("tabindex","0"):t.setAttribute("tabindex","-1")})}initializeRovingTabindex(){this.widgetItems.forEach((t,e)=>{0===e?(t.setAttribute("tabindex","0"),this.focusedItemIndex=0):t.setAttribute("tabindex","-1")})}}},78:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},147:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.INTERACTION_ANALYTICS=e.ANSWER_FEEDBACK_VIBRATE_PATTERNS=void 0,e.ANSWER_FEEDBACK_VIBRATE_PATTERNS={correctAnswerFeedback:[0,100,50,50,0,255,0,255],wrongAnswerFeedback:[0,200,50,200,0,200,0,200],selectionFeedback:[0,80,0,200]},e.INTERACTION_ANALYTICS="INTERACTION_ANALYTICS"},184:t=>{var e={"":1,lr:1,rl:1},i={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function n(t){return"string"==typeof t&&!!i[t.toLowerCase()]&&t.toLowerCase()}function o(t,i,o){this.hasBeenReset=!1;var r="",s=!1,a=t,l=i,d=o,u=null,c="",h=!0,p="auto",f="start",g="auto",v="auto",y=100,m="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return r},set:function(t){r=""+t}},pauseOnExit:{enumerable:!0,get:function(){return s},set:function(t){s=!!t}},startTime:{enumerable:!0,get:function(){return a}
1,set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");a=t,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return l},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");l=t,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return d},set:function(t){d=""+t,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return u},set:function(t){u=t,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return c},set:function(t){var i,n="string"==typeof(i=t)&&!!e[i.toLowerCase()]&&i.toLowerCase();if(!1===n)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");c=n,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return h},set:function(t){h=!!t,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return p},set:function(t){if("number"!=typeof t&&"auto"!==t)throw new SyntaxError("Line: an invalid number or illegal string was specified.");p=t,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return f},set:function(t){var e=n(t);e&&(f=e,this.hasBeenReset=!0)}},position:{enumerable:!0,get:function(){return g},set:function(t){if(t<0||t>100)throw new Error("Position must be between 0 and 100.");g=t,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return v},set:function(t){var e=n(t);e&&(v=e,this.hasBeenReset=!0)}},size:{enumerable:!0,get:function(){return y},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");y=t,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return m},set:function(t){var e=n(t);if(!e)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");m=e,this.hasBeenReset=!0}}}),this.displayState=void 0}o.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.exports=o},200:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.LoggerDatabaseAdapter=void 0;const o=i(4545);e.LoggerDatabaseAdapter=class{storeLog(t){return n(this,void 0,void 0,function*(){return o.DatabaseService.addLog(t)})}getLogBatch(t){return n(this,void 0,void 0,function*(){return o.DatabaseService.getLogs(t)})}removeLogs(t){return n(this,void 0,void 0,function*(){return o.DatabaseService.removeLogs(t)})}clearLogs(){return n(this,void 0,void 0,function*(){return o.DatabaseService.clearLogs()})}getLogCount(){return n(this,void 0,void 0,function*(){return o.DatabaseService.getLogCount()})}}},207:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.VideoService=void 0;const o=i(4545),r=i(4403);e.VideoService=class extends((0,r.Singleton)()){init(){return n(this,void 0,void 0,function*(){yield this.loadHlsScript(3)})}loadHlsScript(t){return new Promise((e,i)=>{if(window.Hls)return e();const n=document.createElement("script");n.type="text/javascript",n.src=o.ConfigService.sdkStorageCDN+"/web-sdk/js/[email protected]",n.onload=(()=>{window.Hls?e():t>1?this.loadHlsScript(t-1).then(e).catch(i):i(new Error("Hls failed to load."))}),n.onerror=(()=>{t>1?this.loadHlsScript(t-1).then(e).catch(i):i(new Error("Failed to load Hls script."))});const r=document.getElementsByTagName("blaze-sdk")[0];r&&r.appendChild(n)})}fetchContent(t){return n(this,void 0,void 0,function*(){const{sourceType:e,labels:i,ids:n,orderType:r,maxItems:s,labelsPriority:a,text:l,recommendations:d}=t;let u,c;if("ids"===e&&n)({data:u,error:c}=yield o.ApiService.getVideosByIds({ids:n,orderType:r}));else if("labels"===e&&i){const t=Array.isArray(i)?i.join():i.toString();({data:u,error:c}=yield o.ApiService.getVideosByLabels({labels:t,orderType:r,maxItems:s,labelsPriority:a,text:l}))}else"text"===e&&l?({data:u,error:c}=yield o.ApiService.getVideosByText({text:l,orderType:r,maxItems:s})):"recommendations"===e&&d&&({data:u,error:c}=yield o.ApiService.getContentByRecommendations({contentType:"video",re
1commendations:d}));return null==u||u.result.map(t=>{t.type="Content"}),u||{assetsExpiryTime:"",totalItems:0,result:[]}})}enrichContent(t){return n(this,void 0,void 0,function*(){for(const e of t)e.hasViewed=Boolean(yield o.DatabaseService.getVideoData(e.id));return t})}getVideoDataById(t){return n(this,void 0,void 0,function*(){return yield o.DatabaseService.getVideoData(t)})}updateVideoDataById(t,e){return n(this,void 0,void 0,function*(){return yield o.DatabaseService.updateVideoData(t,e)})}markVideoAsViewed(t,e){return n(this,void 0,void 0,function*(){return yield o.DatabaseService.updateVideoReadStatus(t,e)})}}.getInstance()},277:function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(1590),e)},332:function(t,e,i){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetModal=void 0;const o=n(i(7168)),r=i(9126),s=i(4403),a=i(6450),l=i(8921),d=i(277),u=i(4545),c=i(9191),h=i(6994),p=i(2204);e.BlazeWidgetModal=class extends s.BaseWidget{constructor(t,e=u.VideoPlayerService){if(super(),this.videoPlayerState=e,this.isOpen=!1,this.exitButtonElement={},this.exitButtonWrapperElement={},this.blazeSdk=document.getElementsByTagName("blaze-sdk")[0],this.hammer=null,this.isMultiTouch=!1,this.contentType=t,this.player=l.WidgetsFactory.create("blaze-widget-"+t+"-player"),this.player.videoPlayerState=this.videoPlayerState,"desktop"===s.deviceDetector.platform){const t=document.createElement("style");t.textContent="\n        .desktop-button:hover{background-color: #333333 !important;}\n        .mute-unmute-button:hover{scale: 1.1;}\n        blaze-widget-modal {\n          outline: none !important;\n          box-shadow: none !important;\n        }\n      ",this.appendChild(t),this.exitButtonWrapperElement=l.WidgetsFactory.create("blaze-div"),this.exitButtonWrapperElement.setAttribute("data-testid","blaze-widget-story-exit-button"),this.exitButtonElement=l.WidgetsFactory.create("blaze-button"),this.exitButtonElement.setAriaLabel("Close"),this.exitButtonElement.setAttribute("tabindex","0")}this.boundOnResizeEvent=(0,s.debounce)(this.onResize.bind(this),2e3),this.boundOnPopStateEvent=this.handlePopState.bind(this),this.boundOnExitButtonClick=this.handleOnExitButtonClick.bind(this),this.player.onContentChange=this.handleOnContentChange.bind(this)}connectedCallback(){window.addEventListener("resize",this.boundOnResizeEvent),window.addEventListener("popstate",this.boundOnPopStateEvent),this.id||(this.id="blaze-"+this.contentType+"-modal-"+Date.now()),h.accessibilityManager.setupModalAccessibility(this,this.contentType),this.setStyle({display:"none",position:"fixed",top:"0%",left:"0%",width:"100%",height:"100%",minHeight:"100%",justifyContent:"center",zIndex:"10000",direction:u.ConfigService.layoutDirection,outline:"none"}),s.deviceDetector.isDesktop&&(this.exitButtonWrapperElement.setStyle({position:"absolute",borderRadius:"40px",background:"#18181899",padding:"8px",top:"20px",right:"20px",zIndex:"99999",display:"block",cursor:"pointer"}),this.exitButtonWrapperElement.classList.add("desktop-button"),this.exitButtonElement.setIconUrl(d.closeIconSvg),this.exitButtonElement.setAttribute("height","30px"),this.exitButtonElement.setAttribute("width","30px"),this.exitButtonWrapperElement.addEventListener("click",this.boundOnExitButtonClick),this.exitButtonWrapperElement.append(this.exitButtonElement)),this.setupHammer(),this.render()}disconnectedCallback(){this.cleanupHammer(),s.deviceDetector.isDesktop&&this.exitButtonWrapperElement&&this.exitButtonWrapperElement.removeEventListener("click",this.boundOnExitButtonClick),window.removeEventListener("resize",this.boundOnResizeEvent),window.removeEventListener("popstate",this.boundOnPopStateEvent)}onResize(){var t,e,i,n;null===(t=this.player)||void 0===t||t.render(),null===(e=this.player)||void 0===e||e.resetPosition(),null===(n=null===(i=this.player)||void 0===i?void 0:i.contentList)||void 0===n||n.forEac
1h(t=>null==t?void 0:t.render()),this.render()}handleOnContentChange(t){var e;null===(e=this.onContentChange)||void 0===e||e.call(this,t)}handleOnExitButtonClick(){const t=this.player.playerContentList[this.player.index];t.exitTrigger="Close Button",t instanceof r.BlazeWidgetStory&&t.close(),t instanceof r.BlazeVideoElement&&t.event(a.VideoAction.VideoEnd,{}),this.close()}handlePopState(){var t,e;this.isOpen&&(s.URLManager.isUpdateLocationByScript||s.URLManager.isBackWasCalled||(this.player.close(),this.close(),this.player instanceof r.BlazeWidgetStoryPlayer&&(null===(e=(t=this.player).dispatchExitStoryEvents)||void 0===e||e.call(t)),s.URLManager.resetLocation(),s.URLManager.isBackWasCalled=!0))}seek(t){this.player.seekContentById(t)}setupHammer(){this.hammer||(this.hammer=new o.default.Manager(this),this.hammer.add(new o.default.Pan({direction:o.default.DIRECTION_ALL})),this.hammer.add(new o.default.Pinch({enable:!0})),this.hammer.on("panstart",this.handlePanStart),this.hammer.on("pan",this.handlePan),this.hammer.on("doubletap",this.handleDoubleTap),this.hammer.on("pinch",this.handlePinchOut),this.style.touchAction="pinch-zoom")}handlePanStart(t){this.isMultiTouch=t.pointers.length>1}handlePan(t){this.isMultiTouch||t.preventDefault()}handleDoubleTap(t){t.preventDefault()}handlePinchOut(t){t.preventDefault()}cleanupHammer(){this.hammer&&(this.hammer.off("panstart",this.handlePanStart),this.hammer.off("pan",this.handlePan),this.hammer.off("doubletap",this.handleDoubleTap),this.hammer.destroy(),this.hammer=null)}open(t){s.URLManager.isBackWasCalled=!1,s.URLManager.appendUrlForPrefetch(u.ConfigService.autoAdvanceUrl),this.videoPlayerState.isPlaying=!0,u.VideoPlayerService.isModalOpen=!0,this.isOpen=!0,this.setAttribute("role","dialog"),this.setAttribute("aria-modal","true"),this.blazeSdk.dataset.scrollX=""+window.scrollX,this.blazeSdk.dataset.scrollY=""+window.scrollY,document.body.style.overflow="hidden",this.style.opacity="0",this.style.display="flex",this.append(this.player),this.appendExitButton(),this.player.resetAnimation(),this.player instanceof c.BlazeWidgetVideoPlayer||this.player.play(t),setTimeout(()=>{this.style.transition="opacity 0.3s ease",this.style.opacity="1",this.transferFocusToModal()},0)}close(){this.isOpen=!1,this.removeAttribute("role"),this.removeAttribute("aria-modal"),u.VideoPlayerService.isModalOpen=!1,this.style.opacity="0",document.body.style.overflow&&document.body.style.removeProperty("overflow"),window.scrollTo(parseInt(this.blazeSdk.dataset.scrollX||"0",10),parseInt(this.blazeSdk.dataset.scrollY||"0",10)),delete this.blazeSdk.dataset.scrollX,delete this.blazeSdk.dataset.scrollY,u.VideoCacheService.isInitialized()&&u.VideoCacheService.clearAllCache(),u.ConfigService.shouldModifyUrlWithStoryId||u.ConfigService.shouldModifyUrlWithContentId?s.URLManager.updateLocationContentHash({}):s.URLManager.resetLocationAfterContentClose(),this.player.remove(),this.videoPlayerState.isPlaying=!1,h.accessibilityManager.closeModal(this.contentType),setTimeout(()=>{this.style.display="none"},a.ONE_SECOND/3)}isAllowExitModal(t){return!!t.shouldDismissPlayer||!["SingleContent","AutoAdvance"].includes(t.playReference)&&(void 0===t.customButtonVisibility||t.customButtonVisibility)}render(){if("desktop"===s.deviceDetector.platform){const t=this.player.playerContentList[this.player.index],e=this.isAllowExitModal({shouldDismissPlayer:u.ConfigService.shouldDismissPlayer,playReference:u.VideoPlayerService.playReference,customButtonVisibility:t instanceof r.BlazeWidgetStory?null==t?void 0:t.isButtonVisible("EXIT_PLAYER"):void 0});this.exitButtonWrapperElement.style.display=e?"block":"none"}}appendExitButton(){s.deviceDetector.isDesktop&&this.exitButtonWrapperElement&&this.append(this.exitButtonWrapperElement)}transferFocusToModal(){var t;const e=this.player.playerContentList[this.player.index];if(e){e.hasAttribute("tabindex")||(e.setAttribute("tabindex","0"),e.setAttribute("role","region"));const i=(0,p.generateModalAriaLabel)({contentType:this.contentType,position:this.player.index+1,total:this.player.contentList.length,title:null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.t
1itle,currentContent:e,includeNavigationContext:!1});e.setAttribute("aria-label",i),e.focus(),setTimeout(()=>{e.setAttribute("aria-label","")},1e3)}}}},356:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getContentScore=void 0,e.formatDuration=function(t){if(!t||isNaN(t.getTime()))return"";const e=new Date,i=Math.abs(e.getTime()-t.getTime()),n=Math.floor(i/864e5),o=Math.floor(i%864e5/36e5),r=Math.floor(i%36e5/6e4);if(n>30){const t=Math.floor(n/30.436875);return t>=12?"1y+":t+"mo"}return n>0?n+"d":o>0?o+"h":r>=2?r+"m":"Now"},e.isCssPropertySupported=function(t){return t in document.body.style},e.pixelsToNumber=function(t){return parseInt(t.replace("px",""))},e.convertCssUnitToNumber=function(t){if("number"==typeof t)return t;if(t.endsWith("px"))return parseFloat(t);if(t.endsWith("rem")){const e=parseFloat(getComputedStyle(document.documentElement).fontSize);return parseFloat(t)*e}if(t.endsWith("em")){const e=parseFloat(getComputedStyle(document.body).fontSize);return parseFloat(t)*e}throw new Error("Unsupported CSS unit: "+t)},e.isObject=r,e.mergeDeep=s,e.mergeArrays=a,e.cloneDeep=function t(e){if(Array.isArray(e))return e.map(e=>t(e));if(r(e)){const i={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=t(e[n]));return i}return e},e.formatDate=function(t){return[t.getFullYear(),l(t.getMonth()+1),l(t.getDate())].join("-")+" "+[l(t.getHours()),l(t.getMinutes()),l(t.getSeconds())].join(":")},e.formatUTCDate=function(t){return[t.getUTCFullYear(),l(t.getUTCMonth()+1),l(t.getUTCDate())].join("-")+" "+[l(t.getUTCHours()),l(t.getUTCMinutes()),l(t.getUTCSeconds())].join(":")},e.calculatePercentage=function(t,e){return Math.floor(t/100*e.clientHeight)+"px"},e.checkAspectRatios=function(t){const e=[{ratio:"16/9",decimalValue:16/9},{ratio:"9/16",decimalValue:9/16},{ratio:"2/3",decimalValue:2/3}];for(const i of e)if(Math.abs(t-i.decimalValue)<.01)return i.ratio;return"Custom Ratio"},e.getRandomId=function(){const t=new Uint8Array(4);return crypto.getRandomValues(t),t.join("-")},e.isEmpty=function(t){for(let e in t)if(t.hasOwnProperty(e)&&Array.isArray(t[e])&&t[e].length>0)return!1;return!0},e.setId=function(t,e="blaze",i=""){var n;t.id||(t.id=(n=i,e+"-"+(d+=1).toString()+(n?"-"+n:"")))},e.flattenObject=function t(e){let i={};for(const n in e)if(e.hasOwnProperty(n))if("object"!=typeof e[n]||Array.isArray(e[n]))i[n]=e[n];else{const o=t(e[n]);i=Object.assign(Object.assign({},i),o)}return i},e.mergeStyles=function(t,e){return Object.assign(t.style,e)},e.getMaxValue=function(t,e){const i=parseInt(t.replace("px",""),10),n=parseInt(e.replace("px",""),10);return isNaN(i)||n>i?e:t},e.isReadByLastUnIgnoredPageStatus=function(t){if(t.pages.every(t=>t.ignoreReadStatusForStory&&t.hasViewed))return!0;for(const e of t.pages.slice().reverse()){if(e.ignoreReadStatusForStory&&!e.hasViewed)return!1;if(!e.ignoreReadStatusForStory)return e.hasViewed}return!1},e.applyPlayerStyleChanges=function(t,e,i,n){u(t,e,"GLOBAL",n),n.GLOBAL=c(n.GLOBAL,n.LOCAL),n.GLOBAL.forEach(t=>{const n=t.split(".");let o=p(e,n);h(i,n,o)})},e.getChangedProperties=u,e.removeDuplicates=c,e.updateStyle=h,e.getNestedValue=p,e.formatLikes=function(t){return t>=1e5?"100K":t>=1e3?(Math.floor(t/100)/10).toFixed(1).replace(/\.0$/,"")+"K":t.toString()},e.isElementInsideTarget=function(t,e){for(const i of e){const e=document.querySelectorAll(i);for(const i of e)if(i.contains(t))return!0}return!1},e.findParentOfType=function(t,e,i){for(;t&&!(t instanceof e)&&t!==i;)t=t.parentElement;return t instanceof e?t:null},e.validateContainer=function(t,e){const i=document.querySelector("#"+t);if(!i)return o.EventService.dispatch(document.body,n.Delegation.onErrorThrown,{errorCode:n.ErrorCode.FailedToFindContainerId}),document.createElement("div");if(e&&i.querySelector(e))throw o.EventService.dispatch(document.body,n.Delegation.onErrorThrown,{errorCode:n.ErrorCode.FailedContainerIdHasWidgetAlready}),new Error("Container "+t+" already has a widget with name "+e);return i};const n=i(9965),o=i(4545);function r(t){return t&&"object"==typeof t&&!Array.isArray(t)}function s(t,...e){if(!e.length)return t;const i=e.shift();if(r(t)&&r(i))for(const e in i)void 0!==i[e]&&(Array.isArray(i[e])?t[e]=a(t[e]||[],i[e]):r(i[e])?(t[e]||Object.assign(t,{[e]:{}}),s(t[e],i[e])):Object.assign(t,{[e]:i[e]}));return s(t,...e)}function a(t,e){const i=t.every(t=>"string"==typeof t),n=e.every(t=>"string"==typeof t);
1if(i&&n)return[...e];{const i=[...t];return e.forEach(t=>{const e=i.findIndex(e=>e.value===t.value);-1===e?i.push(t):i[e]=s(i[e],t)}),i}}function l(t){return t.toString().padStart(2,"0")}let d=0;function u(t,e,i,n,o=""){for(let r of Object.keys(t)){let s=o?o+"."+r:r;Array.isArray(t[r])&&Array.isArray(e[r])?t[r].length!==e[r].length?n[i].push(s):t[r].forEach((t,o)=>{"object"==typeof t&&null!==t?Object.keys(t).forEach(a=>{t[a]!==e[r][o][a]&&n[i].push(s+"["+o+"]."+a)}):t!==e[r][o]&&n[i].push(s+"["+o+"]")}):"object"==typeof t[r]&&null!==t[r]&&null!==e[r]?u(t[r],e[r],i,n,s):t[r]!==e[r]&&n[i].push(s)}}function c(t,e){const i=new Set(e);return t.filter(t=>!i.has(t))}function h(t,e,i){let[n,...o]=e;if(/\[\d+\]/.test(n)){const[e,r]=n.split(/[\[\]]/).filter(Boolean);0===o.length?t[e][parseInt(r)]=i:h(t[e][parseInt(r)],o,i)}else 0===o.length?t[n]=i:h(t[n],o,i)}function p(t,e){return e.reduce((t,e)=>{if(/\[\d+\]/.test(e)){const[i,n]=e.split(/[\[\]]/).filter(Boolean);return t[i][parseInt(n)]}return t[e]},t)}e.getContentScore=(t=>t.hasViewed?2:1)},371:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ThemeFactory=void 0,e.isStoryPlayerStyle=function(t){return"object"==typeof t&&null!==t&&"titleVisible"in t&&"titleFont"in t&&"titleFontSize"in t&&"titleFontSizeEmbedded"in t&&"titleColor"in t&&"publishedDateVisible"in t&&"publishedDateFont"in t&&"publishedDateFontSize"in t&&"publishedDateFontSizeEmbedded"in t&&"publishedDateColor"in t&&"statusLiveStyle"in t&&"ctaButton"in t&&"iconsPosition"in t&&"iconsButton"in t&&"iconsButtonSize"in t&&"iconsButtonEmbeddedSize"in t&&"iconsButtonNavigation"in t&&"iconsButtonPadding"in t&&"iconsButtonOrder"in t&&"contentOrder"in t&&"icons"in t},e.isMomentPlayerStyle=function(t){return"object"==typeof t&&null!==t&&"headingText"in t&&"bodyText"in t&&"likeText"in t&&"buttons"in t&&"icons"in t&&"topIconsButtonOrder"in t&&"bottomIconsButtonOrder"in t},e.isVideoPlayerStyle=function(t){return"object"==typeof t&&null!==t&&"headingText"in t&&"buttons"in t&&"backgroundColor"in t&&"cta"in t&&"seekBar"in t&&"icons"in t};const n=i(9266),o=i(7311);function r(t){return(0,n.cloneDeep)({layoutStyle:o.Presets.Default,playerStyle:s(t)})}function s(t){switch(t){case"moment":return o.Presets.DefaultMomentStyle;case"story":default:return o.Presets.DefaultStoryStyle;case"video":return o.Presets.DefaultVideoStyle}}e.ThemeFactory=class{static create(t="default",e="story"){const i="moment"===e,a="video"===e;switch(i||"story"===e||a||(e="story"),t){case"grid-2-columns":return l=e,(0,n.cloneDeep)({layoutStyle:o.Presets.Grid2Column,playerStyle:s(l)});case"grid-3-columns":return function(t){return(0,n.cloneDeep)({layoutStyle:o.Presets.Grid3Column,playerStyle:s(t)})}(e);case"grid-3-columns-horizontal":return function(t){return(0,n.cloneDeep)({layoutStyle:o.Presets.Grid3ColumnHorizontal,playerStyle:s(t)})}(e);case"grid-2-columns-horizontal":return function(t){return(0,n.cloneDeep)({layoutStyle:o.Presets.Grid2ColumnHorizontal,playerStyle:s(t)})}(e);case"row-circle":return function(t){return(0,n.cloneDeep)({layoutStyle:o.Presets.RowCircle,playerStyle:s(t)})}(e);case"row-rectangle":return function(t){return(0,n.cloneDeep)({layoutStyle:o.Presets.RowRectangle,playerStyle:s(t)})}(e);case"row-rectangle-animated":return i||a?function(t){let e;switch(t){case"moment":e=o.Presets.RowRectangleAnimated;break;case"video":e=o.Presets.RowHorizontalRectangleAnimated}return(0,n.cloneDeep)({layoutStyle:e,playerStyle:s(t)})}(e):r(e);case"row-rectangle-horizontal":return function(t){return(0,n.cloneDeep)({layoutStyle:o.Presets.RowHorizontalRectangle,playerStyle:s(t)})}(e);default:return r(e)}var l}}},373:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CDN_VENDOR_TO_STORAGE_DOMAIN=e.FRONT_DOOR_STORAGE_CDN=e.CLOUDFRONT_STORAGE_CDN=e.CDN_VENDOR_TO_API_DOMAIN=e.BASE_API_PATH=e.FRONT_DOOR_REGION_CDN=e.CLOUDFRONT_REGION_CDN=void 0,e.CLOUDFRONT_REGION_CDN="https://blazesdk-prod-cdn.clipro.tv",e.FRONT_DOOR_REGION_CDN="https://blazesdk-prod-cdn-fd.clipro.tv",e.BASE_API_PATH="api/blazesdk/v1.3",e.CDN_VENDOR_TO_API_DOMAIN={cf:e.CLOUDFRONT_REGION_CDN,fd:e.FRONT_DOOR_REGION_CDN},e.CLOUDFRONT_STORAGE_CDN="https://sdk.mvp.fan",e.FRONT_DOOR_STORAGE_CDN="https://sdk-fd.mvp.fan",e.CDN_VENDOR_TO_STORAGE_DOMAIN={cf:e.CLOUDFRONT_STORAGE_CDN,fd:e.FRONT_DOOR_STORAGE_CDN}},392:(t,e)=>{"use strict";var i;
1Object.defineProperty(e,"__esModule",{value:!0}),e.positionMap=e.ButtonNavigation=void 0,function(t){t[t.PREV_STORY=0]="PREV_STORY",t[t.NEXT_STORY=1]="NEXT_STORY",t[t.PREV_PAGE=2]="PREV_PAGE",t[t.NEXT_PAGE=3]="NEXT_PAGE"}(i||(e.ButtonNavigation=i={})),e.positionMap={LEFT:"flex-start",CENTER:"center",RIGHT:"flex-end"}},432:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},473:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CLOSED_CAPTIONS_LANGUAGE_CHANGE=e.LOCAL_STORAGE_KEY_LAST_SELECTED=e.LOCAL_STORAGE_KEY_RECENT_LANGUAGES=void 0;const n=i(5990);e.LOCAL_STORAGE_KEY_RECENT_LANGUAGES=n.WSC_STORAGE_PREFIX+"cc-recent-languages",e.LOCAL_STORAGE_KEY_LAST_SELECTED=n.WSC_STORAGE_PREFIX+"cc-selected-language",e.CLOSED_CAPTIONS_LANGUAGE_CHANGE="cc-language-change"},541:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.AdService=void 0;const o=i(4403),r=i(9126),s=i(611),a={method:"HEAD",mode:"no-cors"};e.AdService=class extends((0,o.Singleton)()){constructor(){super(...arguments),this.canRunAds=!1}init(){return n(this,void 0,void 0,function*(){try{yield fetch("https://securepubads.g.doubleclick.net/pagead/ppub_config",a),yield fetch("https://imasdk.googleapis.com/js/sdkloader/ima3.js",a),this.canRunAds=!0}catch(t){this.canRunAds=!1}})}pushAdsBetweenStories(t,e,i,n,o,a,l="Full Screen"){var d;if(!this.canRunAds)return;if("EveryXStories"!==(null===(d=null==t?void 0:t.configuration)||void 0===d?void 0:d.adsLocationType)||n>=i.length-1)return;const u=n-o,c=t.configuration.adLocationsIndexes[0];if("Web"===t.type&&t.path){if(n<o)return;if((u+1)%c!=0)return;const i="ad-between-stories-"+(0,s.v4)(),d=new r.BlazeWidgetStory(a,l),h={description:"",isLive:!1,pages:[{id:i+"-page",type:"Ad",duration:5,ignoreReadStatusForStory:!1,hasViewed:!1,createTime:(new Date).toLocaleString(),adInfo:t}],isAd:!0,id:i,title:"",updateTime:"",createTime:"",thumbnails:[],hasViewed:!1,extraInfo:{}};d.setData(h),e.push(d)}else if("IMA"===t.type&&t.tag){if(n<=o)return;if(u%c!=0)return;e[n].shouldShowImaAdOnStart=!0,e[n].adInfo=t}}pushAdsBetweenMoments(t,e,i,n,o){var a,l,d;if(!this.canRunAds)return;const u=null!==(l=null===(a=null==t?void 0:t.configuration)||void 0===a?void 0:a.adLocationsIndexes[0])&&void 0!==l?l:1;if("Moment"!==(null===(d=null==t?void 0:t.configuration)||void 0===d?void 0:d.type)||u>1&&n<=o)return;const c=n-o;if("Web"===t.type&&t.path){if(n>=i.length-1)return;if((c+1)%u!=0)return;const o="ad-between-moments-"+(0,s.v4)(),a=new r.BlazeWidgetMoment;return a.adInfo=t,a.setData({id:o,type:"Ad",adInfo:t,duration:"5",thumbnails:[],likes:0,baseLayer:{type:"Video",content:{renditions:[]}},poster:{rendition:{url:"",aspectRatio:"Vertical",bitRate:0,fileSize:0},type:"Image"},cta:{type:"Web",url:"",text:"",backgroundColor:"",textColor:"",enhancements:null},momentIndexInPlaylist:0,title:"",updateTime:"",createTime:"",hasViewed:!1,isAd:!0,extraInfo:{}}),e.push(a),a}if("IMA"===t.type&&t.tag){if(0===c)return;if(c%u!=0)return;e[n].shouldShowImaAdOnStart=!0,e[n].adInfo=t}}}.getInstance()},542:()=>{},551:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.VideoPlayerCommands=void 0;const o=i(1908);e.VideoPlayerCommands=class{constructor(t,e){this.playbackStrategy=t,this.videoElement=e,this.commands=new Map([["play",new o.PlayCommand(t,this.videoElement.videoPlayerState)],["pause",new o.PauseCommand(t)],["toggleMute",new o.ToggleMuteCommand(t)],["mute",new o.MuteCommand(t,this.videoElement.videoPlayerState)],["unmute",new o.UnmuteCommand(t,this.videoElement.videoPlayerState)],["toggleFullscreen",new o.ToggleFullscreenCommand(t,e)],["seek",new o.SeekCommand(t)],["likeVideo",new o.LikeVideoCommand(e)]])}executeCommand(t,...e){return n(this,void 0,void 0,function*(){const i=this.commands.get(t);if(i)try{return yield i.execute(...e)}catch(t){throw t}})}}},611:(t,e,i)=>{"use strict";var n;i.r(e),i.d(e,{NIL:()=>P,parse:()=>v,stringify:()=>u,v1:()=>g,v3:()=>T,v4:()=>I,v5:()=>x,validate:()=>a,version:()=>O});var o=new Uint8Array(16);function r(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)}const s=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,a=function(t){return"string"==typeof t&&s.test(t)};for(var l=[],d=0;d<256;++d)l.push((d+256).toString(16).substr(1));const u=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(l[t[e+0]]+l[t[e+1]]+l[t[e+2]]+l[t[e+3]]+"-"+l[t[e+4]]+l[t[e+5]]+"-"+l[t[e+6]]+l[t[e+7]]+"-"+l[t[e+8]]+l[t[e+9]]+"-"+l[t[e+10]]+l[t[e+11]]+l[t[e+12]]+l[t[e+13]]+l[t[e+14]]+l[t[e+15]]).toLowerCase();
vendor: 2,937 bytes, line 1
1if(!a(i))throw TypeError("Stringified UUID is invalid");return i};var c,h,p=0,f=0;const g=function(t,e,i){var n=e&&i||0,o=e||new Array(16),s=(t=t||{}).node||c,a=void 0!==t.clockseq?t.clockseq:h;if(null==s||null==a){var l=t.random||(t.rng||r)();null==s&&(s=c=[1|l[0],l[1],l[2],l[3],l[4],l[5]]),null==a&&(a=h=16383&(l[6]<<8|l[7]))}var d=void 0!==t.msecs?t.msecs:Date.now(),g=void 0!==t.nsecs?t.nsecs:f+1,v=d-p+(g-f)/1e4;if(v<0&&void 0===t.clockseq&&(a=a+1&16383),(v<0||d>p)&&void 0===t.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=d,f=g,h=a;var y=(1e4*(268435455&(d+=122192928e5))+g)%4294967296;o[n++]=y>>>24&255,o[n++]=y>>>16&255,o[n++]=y>>>8&255,o[n++]=255&y;var m=d/4294967296*1e4&268435455;o[n++]=m>>>8&255,o[n++]=255&m,o[n++]=m>>>24&15|16,o[n++]=m>>>16&255,o[n++]=a>>>8|128,o[n++]=255&a;for(var b=0;b<6;++b)o[n+b]=s[b];return e||u(o)},v=function(t){if(!a(t))throw TypeError("Invalid UUID");var e,i=new Uint8Array(16);return i[0]=(e=parseInt(t.slice(0,8),16))>>>24,i[1]=e>>>16&255,i[2]=e>>>8&255,i[3]=255&e,i[4]=(e=parseInt(t.slice(9,13),16))>>>8,i[5]=255&e,i[6]=(e=parseInt(t.slice(14,18),16))>>>8,i[7]=255&e,i[8]=(e=parseInt(t.slice(19,23),16))>>>8,i[9]=255&e,i[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,i[11]=e/4294967296&255,i[12]=e>>>24&255,i[13]=e>>>16&255,i[14]=e>>>8&255,i[15]=255&e,i};function y(t,e,i){function n(t,n,o,r){if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));for(var e=[],i=0;i<t.length;++i)e.push(t.charCodeAt(i));return e}(t)),"string"==typeof n&&(n=v(n)),16!==n.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+t.length);if(s.set(n),s.set(t,n.length),(s=i(s))[6]=15&s[6]|e,s[8]=63&s[8]|128,o){r=r||0;for(var a=0;a<16;++a)o[r+a]=s[a];return o}return u(s)}try{n.name=t}catch(t){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}function m(t){return 14+(t+64>>>9<<4)+1}function b(t,e){var i=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(i>>16)<<16|65535&i}function S(t,e,i,n,o,r){return b((s=b(b(e,t),b(n,r)))<<(a=o)|s>>>32-a,i);var s,a}function E(t,e,i,n,o,r,s){return S(e&i|~e&n,t,e,o,r,s)}function C(t,e,i,n,o,r,s){return S(e&n|i&~n,t,e,o,r,s)}function w(t,e,i,n,o,r,s){return S(e^i^n,t,e,o,r,s)}function A(t,e,i,n,o,r,s){return S(i^(e|~n),t,e,o,r,s)}const T=y("v3",48,function(t){if("string"==typeof t){var e=unescape(encodeURIComponent(t));t=new Uint8Array(e.length);for(var i=0;i<e.length;++i)t[i]=e.charCodeAt(i)}return function(t){for(var e=[],i=32*t.length,n="0123456789abcdef",o=0;o<i;o+=8){var r=t[o>>5]>>>o%32&255,s=parseInt(n.charAt(r>>>4&15)+n.charAt(15&r),16);e.push(s)}return e}(function(t,e){t[e>>5]|=128<<e%32,t[m(e)-1]=e;for(var i=1732584193,n=-271733879,o=-1732584194,r=271733878,s=0;s<t.length;s+=16){var a=i,l=n,d=o,u=r;i=E(i,n,o,r,t[s],7,-680876936),r=E(r,i,n,o,t[s+1],12,-389564586),o=E(o,r,i,n,t[
1s+2],17,606105819),n=E(n,o,r,i,t[s+3],22,-1044525330),i=E(i,n,o,r,t[s+4],7,-176418897),r=E(r,i,n,o,t[s+5],12,1200080426),o=E(o,r,i,n,t[s+6],17,-1473231341),n=E(n,o,r,i,t[s+7],22,-45705983),i=E(i,n,o,r,t[s+8],7,1770035416),r=E(r,i,n,o,t[s+9],12,-1958414417),o=E(o,r,i,n,t[s+10],17,-42063),n=E(n,o,r,i,t[s+11],22,-1990404162),i=E(i,n,o,r,t[s+12],7,1804603682),r=E(r,i,n,o,t[s+13],12,-40341101),o=E(o,r,i,n,t[s+14],17,-1502002290),i=C(i,n=E(n,o,r,i,t[s+15],22,1236535329),o,r,t[s+1],5,-165796510),r=C(r,i,n,o,t[s+6],9,-1069501632),o=C(o,r,i,n,t[s+11],14,643717713),n=C(n,o,r,i,t[s],20,-373897302),i=C(i,n,o,r,t[s+5],5,-701558691),r=C(r,i,n,o,t[s+10],9,38016083),o=C(o,r,i,n,t[s+15],14,-660478335),n=C(n,o,r,i,t[s+4],20,-405537848),i=C(i,n,o,r,t[s+9],5,568446438),r=C(r,i,n,o,t[s+14],9,-1019803690),o=C(o,r,i,n,t[s+3],14,-187363961),n=C(n,o,r,i,t[s+8],20,1163531501),i=C(i,n,o,r,t[s+13],5,-1444681467),r=C(r,i,n,o,t[s+2],9,-51403784),o=C(o,r,i,n,t[s+7],14,1735328473),i=w(i,n=C(n,o,r,i,t[s+12],20,-1926607734),o,r,t[s+5],4,-378558),r=w(r,i,n,o,t[s+8],11,-2022574463),o=w(o,r,i,n,t[
vendor: 4,157 bytes, line 1
1s+11],16,1839030562),n=w(n,o,r,i,t[s+14],23,-35309556),i=w(i,n,o,r,t[s+1],4,-1530992060),r=w(r,i,n,o,t[s+4],11,1272893353),o=w(o,r,i,n,t[s+7],16,-155497632),n=w(n,o,r,i,t[s+10],23,-1094730640),i=w(i,n,o,r,t[s+13],4,681279174),r=w(r,i,n,o,t[s],11,-358537222),o=w(o,r,i,n,t[s+3],16,-722521979),n=w(n,o,r,i,t[s+6],23,76029189),i=w(i,n,o,r,t[s+9],4,-640364487),r=w(r,i,n,o,t[s+12],11,-421815835),o=w(o,r,i,n,t[s+15],16,530742520),i=A(i,n=w(n,o,r,i,t[s+2],23,-995338651),o,r,t[s],6,-198630844),r=A(r,i,n,o,t[s+7],10,1126891415),o=A(o,r,i,n,t[s+14],15,-1416354905),n=A(n,o,r,i,t[s+5],21,-57434055),i=A(i,n,o,r,t[s+12],6,1700485571),r=A(r,i,n,o,t[s+3],10,-1894986606),o=A(o,r,i,n,t[s+10],15,-1051523),n=A(n,o,r,i,t[s+1],21,-2054922799),i=A(i,n,o,r,t[s+8],6,1873313359),r=A(r,i,n,o,t[s+15],10,-30611744),o=A(o,r,i,n,t[s+6],15,-1560198380),n=A(n,o,r,i,t[s+13],21,1309151649),i=A(i,n,o,r,t[s+4],6,-145523070),r=A(r,i,n,o,t[s+11],10,-1120210379),o=A(o,r,i,n,t[s+2],15,718787259),n=A(n,o,r,i,t[s+9],21,-343485551),i=b(i,a),n=b(n,l),o=b(o,d),r=b(r,u)}return[i,n,o,r]}(function(t){if(0===t.length)return[];for(var e=8*t.length,i=new Uint32Array(m(e)),n=0;n<e;n+=8)i[n>>5]|=(255&t[n/8])<<n%32;return i}(t),8*t.length))}),I=function(t,e,i){var n=(t=t||{}).random||(t.rng||r)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){i=i||0;for(var o=0;o<16;++o)e[i+o]=n[o];return e}return u(n)};function M(t,e,i,n){switch(t){case 0:return e&i^~e&n;case 1:case 3:return e^i^n;case 2:return e&i^e&n^i&n}}function _(t,e){return t<<e|t>>>32-e}const x=y("v5",80,function(t){var e=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){var n=unescape(encodeURIComponent(t));t=[];for(var o=0;o<n.length;++o)t.push(n.charCodeAt(o))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var r=t.length/4+2,s=Math.ceil(r/16),a=new Array(s),l=0;l<s;++l){for(var d=new Uint32Array(16),u=0;u<16;++u)d[u]=t[64*l+4*u]<<24|t[64*l+4*u+1]<<16|t[64*l+4*u+2]<<8|t[64*l+4*u+3];a[l]=d}a[s-1][14]=8*(t.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(t.length-1)&4294967295;for(var c=0;c<s;++c){for(var h=new Uint32Array(80),p=0;p<16;++p)h[p]=a[c][p];for(var f=16;f<80;++f)h[f]=_(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var g=i[0],v=i[1],y=i[2],m=i[3],b=i[4],S=0;S<80;++S){var E=Math.floor(S/20),C=_(g,5)+M(E,v,y,m)+b+e[E]+h[S]>>>0;b=m,m=y,y=_(v,30)>>>0,v=g,g=C}i[0]=i[0]+g>>>0,i[1]=i[1]+v>>>0,i[2]=i[2]+y>>>0,i[3]=i[3]+m>>>0,i[4]=i[4]+b>>>0}return[i[0]>>24&255,i[0]>>16&255,i[0]>>8&255,255&i[0],i[1]>>24&255,i[1]>>16&255,i[1]>>8&255,255&i[1],i[2]>>24&255,i[2]>>16&255,i[2]>>8&255,255&i[2],i[3]>>24&255,i[3]>>16&255,i[3]>>8&255,255&i[3],i[4]>>24&255,i[4]>>16&255,i[4]>>8&255,255&i[4]]}),P="00000000-0000-0000-0000-000000000000",O=function(t){if(!a(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}},612:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetScrollable=void 0;const n=i(4403);e.BlazeWidgetScrollable=class extends n.BaseWidget{constructor(){super(),this.buttonsState=[],this.totalMovement=0,this.boundOnClickEvent=this.onClick.bind(this),this.boundOnMouseWheelEvent=this.onMouseWheel.bind(this),this.boundOnMouseMoveEvent=this.onMouseMove.bind(this)}connectedCallback(){this.style.userSelect="none",this.addEventListener("click",this.boundOnClickEvent,!0),this.addEventListener("mousemove",this.boundOnMouseMoveEvent),this.addEventListener("wheel",this.boundOnMouseWheelEvent)}disconnectedCallback(){this.removeEventListener("click",this.boundOnClickEvent),this.removeEventListener("mousemove",this.boundOnMouseMoveEvent),this.removeEventListener("wheel",this.boundOnMouseWheelEvent)}onClick(t){this.totalMovement>10&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}onMouseMove(t){1&~t.buttons?this.totalMovement=0:(this.scrollBy({top:-t.movementY,left:-t.movementX}),(t.movementX>0||t.movementX<0)&&(this.totalMovement+=Math.abs(t.movementX)),(t.movementY>0||t.movementY<0)&&(this.totalMovement+=Math.abs(t.movementY)))}onMouseWheel(t){this.scrollBy({top:0,left:t.deltaX})}render(){}}},636:(t,e)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0})},656:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PlaybackStrategyFactory=void 0;const n=i(1908),o=i(6610),r=i(1532);e.PlaybackStrategyFactory=class{static createStrategy(t,e,i,s){switch(e){case"LONG_FORM_HLS":return new n.LongFormHlsStrategy(t,s);case"SHORT_FORM_HLS":return new o.ShortFormHLSStrategy(t,s);case"NATIVE":if(!i)throw new Error("Widget parameter required for NATIVE strategy");return new r.NativeVideoStrategy(t,i,s);default:throw new Error("Unsupported playback strategy type: "+e)}}}},683:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},763:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},817:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.StartupService=void 0;const o=i(4545),r=i(4403);e.StartupService=class extends((0,r.Singleton)()){init(t){return n(this,void 0,void 0,function*(){t.staticContent||(yield o.CDNDetermineService.init()),yield o.ConfigService.init(t),yield o.VideoPlayerService.init(),yield o.ErrorService.init(),yield o.VideoCacheService.init(),yield o.ApiService.init(),yield o.AppConfigurationService.init(t),yield o.UserService.init(),yield o.AnalyticsService.init(),yield o.WidgetsService.init(),yield o.EventService.init(),yield o.DatabaseService.init(),yield o.AdService.init(),yield o.LoggerService.init(),yield o.InteractionService.init(),yield o.MomentService.init(),yield o.StoryService.init(),yield o.VideoService.init()})}}.getInstance()},941:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},961:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ASPECT_RATIO_4_3_STRING=e.ASPECT_RATIO_9_16_STRING=e.ASPECT_RATIO_16_9_STRING=e.ASPECT_RATIO_4_3=e.ASPECT_RATIO_9_16=e.ASPECT_RATIO_16_9=e.DESKTOP_PADDING_BOTTOM=e.TABLET_PADDING_BOTTOM=void 0,e.TABLET_PADDING_BOTTOM="15px",e.DESKTOP_PADDING_BOTTOM="40px",e.ASPECT_RATIO_16_9=16/9,e.ASPECT_RATIO_9_16=9/16,e.ASPECT_RATIO_4_3=4/3,e.ASPECT_RATIO_16_9_STRING="16 / 9",e.ASPECT_RATIO_9_16_STRING="9 / 16",e.ASPECT_RATIO_4_3_STRING="4 / 3"},997:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.DatabaseService=void 0;const o=i(4403),r=i(3612),s=i(4545);e.DatabaseService=class extends((0,o.Singleton)()){constructor(){super(...arguments),this.database={}}init(){return n(this,void 0,void 0,function*(){try{this.database=new r.Database({databaseName:"blaze-store",version:6}),yield this.database.init()}catch(t){s.EventBusService.publish("BlazeDatabaseServiceFailed",{error:t})}})}getUserId(){return n(this,void 0,void 0,function*(){try{return yield this.database.get(r.DB_NAMES.USER,"user_id")}catch(t){throw t}})}updateUserId(t){return n(this,void 0,void 0,function*(){try{return yield this.database.update(r.DB_NAMES.USER,{id:"user_id",value:t})}catch(t){throw t}})}getPageViewed(t){return n(this,void 0,void 0,function*(){try{return yield this.database.get(r.DB_NAMES.STORIES,t)}catch(t){throw t}})}updatePageViewed(t,e){return n(this,void 0,void 0,function*(){try{return yield this.database.update(r.DB_NAMES.STORIES,{id:t,storyId:e})}catch(t){throw t}})}isPageViewed(t){return n(this,void 0,void 0,function*(){try{const{data:e,error:i}=yield this.getPageViewed(t);return!i&&e}catch(t){return!1}})}enrichStories(t){return n(this,void 0,void 0,function*(){try{Object.keys(this.database).length||(yield this.init());for(const e of t)for(const t of e.pages){const e=yield this.isPageViewed(t.id);if(t.hasViewed=e,"Content"===t.type&&t.interaction){const e=yield this.getInteraction(t.interaction.id);(null==e?void 0:e.data)&&!e.error&&(yield this.updateInteraction({id:t.interaction.id,initData:t.interaction.initData,userResponse:e.data.userResponse}))}}return t}catch(e){return t}})}updateInteraction(t){return n(this,void 0,void 0,function*(){try{return yield this.database.update(r.DB_NAMES.INTERACTIONS,t)}catch(t){throw t}})}getInteraction(t){return n(this,void 0,void 0,function*(){try{return yield this.database.get(r.DB_NAMES.INTERACTIONS,t)}catch(t){return null}})}updateMomentLike(t,e){return n(this,void 0,void 0,function*(){try{return yield this.database.update(r.DB_NAMES.MOMENTS,{id:t,liked:e,viewed:!0})}catch(t){return null}})}getMomentLike(t){return n(this,void 0,void 0,function*(){try{return yield this.database.get(r.DB_NAMES.MOMENTS,t)}catch(t){return null}})}updateViewedMoment(t){return n(this,void 0,void 0,function*(){var e,i;try{const n=yield this.getMomentLike(t),o={id:t,viewed:!0,liked:null!==(i=null===(e=null==n?void 0:n.data)||void 0===e?void 0:e.liked)&&void 0!==i&&i};return yield this.database.update(r.DB_NAMES.MOMENTS,o)}catch(t){throw null}})}getViewedMoment(t){return n(this,void 0,void 0,function*(){try{const{data:e}=yield this.database.get(r.DB_NAMES.MOMENTS,t);return!!e}catch(t){return!1}})}enrichMoments(t){return n(this,void 0,void 0,function*(){Object.keys(this.database).length||(yield this.init());for(const e of t)e.hasViewed=yield this.getViewedMoment(e.id);return t})}updateVideoReadStatus(t,e){return n(this,void 0,void 0,function*(){if(!t)throw new Error("videoId is required to update read status.");try{const e=yield this.database.get(r.DB_NAMES.VIDEOS,t);let i;if(e&&e.data)return;i={liked:!1,id:t,currentTime:0,posterCurrentTime:""},yield this.database.update(r.DB_NAMES.VIDEOS,i)}catch(t){throw t}})}getVideoData(t){return n(this,void 0,void 0,function*(){if(!t)return null;try{const e=yield this.database.get(r.DB_NAMES.VIDEOS,t);return e&&e.data?e.data:null}catch(t){return null}})}updateVideoData(t,e){return n(this,void 0,void 0,function*(){if(!t)throw new Error("videoId is required to update video data.");try{const i=yield this.database.get(r.DB_NAMES.VIDEOS,t);let n;n=i&&i.data?Object.assign(Object.assign({},i.data),e):Object.assign({liked:!1,id:t,currentTime:0,posterCurrentTime:""},e),yield this.database.update(r.DB_NAMES.VIDEOS,n)}catch(t){throw t}})}getVideoLike(t){return n(this,void 0,void 0,function*(){try{return yield this.database.get(r.DB_NAMES.VIDEOS,t)}catch(t){return null}})}getVideoPosterById(t){return n(this,void 0,void 0,function*(){if(t)try{const e=yield this.database.get(r.DB_NAMES.VIDEOS,t);return e&&e.data?e.data.posterCurrentTime:void 0}catch(t){return}})}addLog(t){return n(this,void 0,void 0,function*(){try{yield this.database.update(r.DB_NAMES.LOGS,t)}catch(t){throw t}})}getLogs(t){return n(this,void 0,void 0,function*(){try{return(yield this.database.getAll(r.DB_NAMES.LOGS)).sort((t,e)=>e.priority-t.priority||new Date(t.timestamp).getTime()-new Date(e.timestamp).getTime()).slice(0,t)}catch(t){return[]}})}removeLogs(t){return n(this,void 0,void 0,function*(){try{for(const e of t)yield this.database.delete(r.DB_NAMES.LOGS,e)}catch(t){throw t}})}clearLogs(){return n(this,void 0,void 0,function*(){try{const t=(yield this.database.getAll(r.DB_NAMES.LOGS)).map(t=>
1t.id);yield this.removeLogs(t)}catch(t){throw t}})}getLogCount(){return n(this,void 0,void 0,function*(){try{return(yield this.database.getAll(r.DB_NAMES.LOGS)).length}catch(t){return 0}})}}.getInstance()},1006:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasePlaybackStrategy=void 0;const n=i(4545);e.BasePlaybackStrategy=class{constructor(){this.videoPlayerState=n.VideoPlayerService,this.playAttemptStartTime=0}setContentMetadata(t){this.contentId=t.contentId,this.contentTitle=t.contentTitle,this.contentType=t.contentType,this.sessionId=t.sessionId}dispatchPlaybackEvent(t,e){var i,n;if("true"!==new URLSearchParams(window.location.search).get("wsc_e2e_testing_events"))return;const o={eventType:"playback_"+t,timestamp:Date.now(),contentId:this.contentId,contentTitle:this.contentTitle,contentType:this.contentType||"video",videoState:{readyState:this.video.readyState,readyStateText:["HAVE_NOTHING","HAVE_METADATA","HAVE_CURRENT_DATA","HAVE_FUTURE_DATA","HAVE_ENOUGH_DATA"][this.video.readyState],networkState:this.video.networkState,networkStateText:["NETWORK_EMPTY","NETWORK_IDLE","NETWORK_LOADING","NETWORK_NO_SOURCE"][this.video.networkState],paused:this.video.paused,ended:this.video.ended,currentTime:this.video.currentTime,duration:this.video.duration,src:this.video.currentSrc||this.video.src,muted:this.video.muted,volume:this.video.volume},timing:{timeToPlay:e.timeToPlay,timeToFail:e.timeToFail},status:null===(i=e.result)||void 0===i?void 0:i.status,error:(null===(n=e.result)||void 0===n?void 0:n.error)||e.error,previousState:e.previousState,newState:e.newState,playerContext:{sessionId:this.sessionId,globalState:{isPlaying:this.videoPlayerState.isPlaying,isMuted:this.videoPlayerState.isMuted,playerLayout:this.videoPlayerState.playerLayout},actualVideoState:{muted:this.video.muted,paused:this.video.paused,playing:!this.video.paused&&!this.video.ended&&this.video.readyState>2},stateMismatch:{mutedMismatch:this.videoPlayerState.isMuted!==this.video.muted,playingMismatch:this.videoPlayerState.isPlaying!==(!this.video.paused&&!this.video.ended&&this.video.readyState>2)}}};window.dispatchEvent(new CustomEvent("blaze:playback_"+t,{detail:o,bubbles:!0,composed:!0})),window.dispatchEvent(new CustomEvent("blaze:video_lifecycle",{detail:Object.assign(Object.assign({},o),{lifecycleType:"playback_"+t}),bubbles:!0,composed:!0}))}}},1046:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetVideo=void 0;const o=i(9126),r=i(1908),s=i(4403),a=i(6450),l=i(9702),d=i(9965),u=i(8921),c=i(4545),h=i(9266),p=i(3214);e.BlazeWidgetVideo=class extends o.BlazeWidgetVideoBase{static get observedAttributes(){return["is-captions-visible"]}constructor(t){var e;super(),this.contentParent=t,this.interactionElement=u.WidgetsFactory.create("blaze-widget-interaction"),this.captionsElement=u.WidgetsFactory.create("blaze-widget-captions"),this.eventRenderBackgroundPercentageTriggered=[!1,!1],this.lastErrorExecutionTime=0,this.videoFormat="mp4",this.isVideoStartPlaying=!1,this.isError=!0,this.isLoaded=!1,this.isVideoRunning=!1,this.isUnloading=!1,this.maxRetryTimes=5,this.shouldShowImaAd=!1,this.isCurrentlyTryingToRunImaAd=!1,this.hasPoster=!1,this.videoPlayerState=c.VideoPlayerService,this.boundHandleAdStarted=this.handleAdStarted.bind(this),this.boundHandleAdEnded=this.handleAdEnded.bind(this),this.beforeContentPlayService=new c.BeforeContentPlayService,t instanceof o.BlazeWidgetStory&&(this.videoPlayerState=t.videoPlayerState||c.VideoPlayerService),this.widgetVastAd=new o.BlazeWidgetVastAd(this.getContentType(),this.contentParent.getRefferingObject.bind(this),this.videoPlayerState),this.source=document.createElement("source"),this.video=document.createElement("video"),this.loader=u.WidgetsFactory.create("blaze-loader"),this.style.width="100%",this.style.height="100%",this.style.position="absolute",this.style.top="0",this.style.right="0",this.style.bottom="0",this.style.left="0",this.style.display="block",this.loader.style.top="45%",this.loader.style.margin="0 auto",this.video.style.top="0",this.video.style.objectFit="contain",this.video.style.position="absolute",this.video.style.width="100%",this.video.style.maxHeight="100%","Horizontal"===(null===(e=this.contentParent)||void 0===e?void 0:e.aspectRatio)&&(this.video.style.height="100%")}attributeChangedCallback(t,e,i){"is-captions-visible"===t&&e!==i&&this.captionsElement.setAttribute("is-visible",i)}connectedCallback(){var t;this.boundLanguageChangeEvent=this.onLanguageChange.bind(this),this.addEventListener(d.InternalEvent.AD_STARTED,this.boundHandleAdStarted),this.addEventListener(d.InternalEvent.AD_ENDED,this.boundHandleAdEnded),this.setAttribute("data-testid","blaze-widget-story-video-"+(null===(t=this.data)||void 0===t?void 0:t.id)),this.video.onended=this.onended,this.videoFrameCallback=this.requestFrameCallback,this.video.addEventListener("playing",()=>{var t;(null===(t=this.loader)||void 0===t?void 0:t.isConnected)&&this.removeLoader()}),this.video.addEventListener("timeupdate",()=>{var t;const e=this.currentTime/this.duration*100,i=[1,50];for(let n=0;n<i.length;n++)e>
1=i[n]&&!this.eventRenderBackgroundPercentageTriggered[n]&&(null===(t=this.videoFrameCallback)||void 0===t||t.call(this),this.eventRenderBackgroundPercentageTriggered[n]=!0)}),this.appendChild(this.video),h.SharedEventTarget.addEventListener(a.CLOSED_CAPTIONS_LANGUAGE_CHANGE,this.boundLanguageChangeEvent),this.appendChild(this.widgetVastAd),this.render()}disconnectedCallback(){this.removeLoader(),h.SharedEventTarget.removeEventListener(a.CLOSED_CAPTIONS_LANGUAGE_CHANGE,this.boundLanguageChangeEvent),this.removeEventListener(d.InternalEvent.AD_STARTED,this.boundHandleAdStarted),this.removeEventListener(d.InternalEvent.AD_ENDED,this.boundHandleAdEnded)}getContentType(){return this.contentParent instanceof o.BlazeWidgetStory?"story":this.contentParent instanceof o.BlazeWidgetMoment?"moment":"story"}getOriginalVideoUrl(){var t,e,i,n,o,r;if("Content"!==(null===(t=this.data)||void 0===t?void 0:t.type))return;const s=null!==(o=null===(n=null===(i=null===(e=this.data)||void 0===e?void 0:e.baseLayer)||void 0===i?void 0:i.content)||void 0===n?void 0:n.renditions)&&void 0!==o?o:[],a=this.contentParent.aspectRatio,l=s.filter(t=>{var e,i;return"hls"===(null===(e=t.fileType)||void 0===e?void 0:e.toLowerCase())||(null===(i=t.url)||void 0===i?void 0:i.includes(".m3u8"))});if(l.length>0){const t=l.find(t=>t.aspectRatio===a);return t?t.url:l[0].url}const d=s.filter(t=>{var e,i;return"mp4"===(null===(e=t.fileType)||void 0===e?void 0:e.toLowerCase())||(null===(i=t.url)||void 0===i?void 0:i.includes(".mp4"))});if(d.length>0){const t=d.find(t=>t.aspectRatio===a);return t?t.url:d[0].url}const u=null!==(r=s.find(t=>t.aspectRatio===a))&&void 0!==r?r:s[0];return null==u?void 0:u.url}setData(t){this.data=t,this.data&&"Content"===this.data.type&&(this.videoUrl=this.getOriginalVideoUrl(),this.shouldShowImaAd=Boolean(t.shouldShowImaAd))}getGoogleIMA(){var t;return null===(t=window.google)||void 0===t?void 0:t.ima}isEnableInteractions(t){return"Content"===(null==t?void 0:t.type)&&"Vertical"===this.contentParent.aspectRatio}loadClosedCaptions(){return n(this,void 0,void 0,function*(){var t,e,i,n,r,s;if(!c.ConfigService.shouldAllowClosedCaptions)return;if("Content"!==(null===(t=this.data)||void 0===t?void 0:t.type))return;if(!(null===(i=null===(e=this.data)||void 0===e?void 0:e.closedCaptions)||void 0===i?void 0:i.length)||!(null===(r=null===(n=this.data.closedCaptions[0])||void 0===n?void 0:n.files)||void 0===r?void 0:r.length))return;if(this.contentParent instanceof o.BlazeWidgetStory&&"Embedded"===this.contentParent.mode)return;const l=null===(s=this.data.closedCaptions)||void 0===s?void 0:s.find(t=>""+t.language===localStorage.getItem(a.LOCAL_STORAGE_KEY_LAST_SELECTED));l?(this.captionsElement.isConnected||this.append(this.captionsElement),yield this.captionsElement.initialize(this.video,l.files),this.setAttribute("is-captions-visible","true")):(this.setAttribute("is-captions-visible","false"),this.captionsElement.isConnected&&this.captionsElement.remove())})}getVideoDuration(t){return n(this,void 0,void 0,function*(){if(this.playbackStrategy){const t=this.playbackStrategy.getDuration();if(t&&!isNaN(t)&&t>0)return t}const e=t||this.video;return e&&!isNaN(e.duration)&&e.duration>0?e.duration:this.videoUrl?(0,p.getVideoDuration)(e,this.videoUrl):0})}determinePosterUrl(){var t,e,i,n,o,r,s,a,l,d;if("Content"!==(null===(t=this.data)||void 0===t?void 0:t.type))return;const u=null!==(i=null===(e=this.data.thumbnail)||void 0===e?void 0:e.renditions)&&void 0!==i?i:[],c=null===(n=null==u?void 0:u.find(t=>t.aspectRatio===this.contentParent.aspectRatio))||void 0===n?void 0:n.url,h=null===(o=null==u?void 0:u[0])||void 0===o?void 0:o.url,p=(null===(s=null===(r=this.data.thumbnail)||void 0===r?void 0:r.rendition)||void 0===s?void 0:s.url)||(null===(l=null===(a=this.data.poster)||void 0===a?void 0:a.rendition)||void 0===l?void 0:l.url);return null!==(d=null!=c?c:h)&&void 0!==d?d:p}loadPoster(){var t;if("Content"===(null===(t=this.data)||void 0===t?void 0:t.type)){const t=this.determinePosterUrl();t?(this.video.poster=t,(0,h.fetchPosterWithHighPriority)(t),this.hasPoster=!0):(this.video.poster="",this.hasPoster=!1)}}display(){this.style.visibility="visible",this.shouldShowImaAd?this.isCurrentlyTryingToRunImaAd=!0:this.isEnableInteractions(this.data)&&this.interactionElement.showInteraction(this.data.interaction)}hide(){this.isCurrentlyTryingToRunImaAd=!1,this.style.visibility="hidden",this.interactionElement.hideInteraction()}load(){return n(this,arguments,void 0,function*(t="cache"){var e;if(!this.isLoaded&&"Content"===(null===(e=this.data)||void 0===e?void 0:e.type)&&!this.isBeingUnloaded()&&this.data&&this.videoUrl){this.isLoaded=!0,this.loadInteraction();try{"cache"===t?yield Promise.all([this.loadClosedCaptions(),c.VideoCacheService.downloadAndCacheVideo(this.videoUrl).then(()=>n(this,void 0,void 0,function*(){this.isBeingUnloaded()||(yield this.setVideoSource(this.videoUrl))}))]):yield Promise.all([this.loadClosedCaptions(),this.setVideoSource(this.videoUrl)]),this.video.preload="auto"}catch(t){}}})}setVideoSource(t){return n(this,void 0,void 0,function*(){if(!t)return;const e=t.includes(".m3u8"),i=yield this.beforeContentPlayService.getTokenizedUrl(t),n=this.source.getAttribute("src");if(!n||n!==i&&n!==i+"#t=0.01"){if(this.loadPoster(),"hls"===this.videoFormat&&e&&this.playbackStrategy&&this.playbackStrategy.reloadWithNewSource)try{return void(yield this.playbackStrategy.reloadWithNewSource(i,0,0))}catch(t){}this.videoFormat=e?"hls":"mp4",this.playbackStrategy="hls"===this.videoFormat?r.PlaybackStrategyFactory.createStrategy(this.video,"SHORT_FORM_HLS",this,this.videoPlayerState):r.PlaybackStrategyFactory.createStrategy(this.video,"NATIVE",this,this.videoPlayerState),this.playerCommands=new r.VideoPlayerCommands(this.playbackStrategy,this),"hls"===this.videoFormat?yield this.initializeHLSStrategy(i):(this.playbackStrategy.initialize({loaderDelegate:{show:()=>this.tryToAddLoader(),hide:()=>this.removeLoader(),isVisible:()=>{var t;return!!(null===(t=this.loader)||void 0===t?void 0:t.isConnected)}}}),yield this.playbackStrategy.loadSource(i,0,0))}})}reloadHLSWithNewUrl(t){return n(this,void 0,void 0,function*(){if("hls"!==this.videoFormat||!this.playbackStrategy)return;const e=yield this.beforeContentPlayService.getTokenizedUrl(t);this.playbackStrategy.reloadWithNewSource&&(this.loadPoster(),yield this.playbackStrategy.reloadWithNewSource(e,0,0))})}initializeHLSStrategy(t){return n(this,void 0,void 0,function*(){try{if(!this.playbackStrategy)throw new Error("No playback strategy available for HLS initialization");this.video.muted=this.videoPlayerState.isMuted,this.playbackStrategy.initialize({loaderDelegate:{show:()=>this.tryToAddLoader(),hide:()=>this.removeLoader(),isVisible:()=>{var t;return!!(null===(t=this.loader)||void 0===t?void 0:t.isConnected)}}}),yield this.playbackStrategy.loadSource(t,0,0)}catch(e){yield this.fallbackToNativeVideo(t)}})}fallbackToNativeVideo(t){return n(this,void 0,void 0,function*(){this.videoFormat="mp4",this.playbackStrategy&&this.cleanupHLSStrategy(),this.video.muted=this.videoPlayerState.isMuted,this.playbackStrategy=r.PlaybackStrategyFactory.createStrategy(this.video,"NATIVE",this,this.videoPlayerState),this.playerCommands=new r.VideoPlayerCommands(this.playbackStrategy,this),this.playbackStrategy.initialize({loaderDelegate:{show:()=>this.tryToAddLoader(),hide:()=>this.removeLoader(),isVisible:()=>{var t;return!!(null===(t=this.loader)||void 0===t?void 0:t.isConnected)}}}),yield this.playbackStrategy.loadSource(t,0,0)})}
1cleanupHLSStrategy(){if(this.playbackStrategy){try{this.playbackStrategy.destroy()}catch(t){}this.playbackStrategy=void 0,this.playerCommands=void 0}}unload(){return n(this,void 0,void 0,function*(){var t;this.playbackStrategy&&(this.playbackStrategy.unload(),"hls"===this.videoFormat&&this.cleanupHLSStrategy()),this.data&&"Content"===(null===(t=this.data)||void 0===t?void 0:t.type)&&this.data&&(this.interactionElement.unloadInteraction(),this.captionsElement.remove(),"hls"!==this.videoFormat&&this.videoUrl&&this.contentParent instanceof o.BlazeWidgetStory&&(yield c.VideoCacheService.deleteVideoFromCache(this.videoUrl)),this.isVideoStartPlaying=!1,this.isLoaded=!1,this.isVideoRunning=!1,this.videoFormat="",this.playerCommands=void 0,this.playbackStrategy=void 0,this.removeLoader())})}resetVideoState(){this.unload()}removeLoader(){clearTimeout(this.loaderTimeoutRefAppending),this.loader.remove()}tryReloadVideo(t){var e;t<=0||(this.maxRetryTimes=t,null===(e=this.playbackStrategy)||void 0===e||e.reset(),this.play())}tryToAddLoader(){var t;this.ended||this.loader&&!(null===(t=this.loader)||void 0===t?void 0:t.isConnected)&&(this.loaderTimeoutRefAppending=setTimeout(()=>{this.append(this.loader)},250))}play(){return n(this,void 0,void 0,function*(){var t,e;if(this.shouldShowImaAd)return this.shouldShowImaAd=!1,void(yield this.tryToPlayAd(this.contentParent.contentExtraInfo));this.videoPlayerState.isPlaying=!0,this.eventRenderBackgroundPercentageTriggered=[!1,!1],this.isVideoStartPlaying=!0,yield null===(e=null===(t=this.playerCommands)||void 0===t?void 0:t.executeCommand)||void 0===e?void 0:e.call(t,"play")})}pause(){var t,e;this.isVideoStartPlaying=!1,null===(e=null===(t=this.playerCommands)||void 0===t?void 0:t.executeCommand)||void 0===e||e.call(t,"pause")}set currentTime(t){var e,i;if(this.playbackStrategy){const i=this.playbackStrategy.getDuration();if(i>0){const n=t/i;null===(e=this.playerCommands)||void 0===e||e.executeCommand("seek",Math.max(0,Math.min(1,n)))}}else void 0!==(null===(i=this.video)||void 0===i?void 0:i.currentTime)&&(this.video.currentTime=t)}get currentTime(){var t,e;return(null===(t=this.playbackStrategy)||void 0===t?void 0:t.getCurrentTime())||(null===(e=this.video)||void 0===e?void 0:e.currentTime)||0}get duration(){var t,e;return(null===(t=this.playbackStrategy)||void 0===t?void 0:t.getDuration())||(null===(e=this.video)||void 0===e?void 0:e.duration)||0}videoDurationMetrics(){return n(this,void 0,void 0,function*(){try{yield this.getVideoDuration()}catch(t){}})}requestFrameCallback(t){var e,i,n;try{(null===(e=this.video)||void 0===e?void 0:e.requestVideoFrameCallback)?null===(n=null===(i=this.video)||void 0===i?void 0:i.requestVideoFrameCallback)||void 0===n||n.call(i,t):this.videoFrameCallback=t}catch(t){}}mainElement(){return this.video}get paused(){var t,e;return null!==(e=null===(t=this.playbackStrategy)||void 0===t?void 0:t.isPau
1sed())&&void 0!==e?e:!this.isVideoStartPlaying}get ended(){var t,e,i,n;return null!==(n=null!==(e=null===(t=this.playbackStrategy)||void 0===t?void 0:t.isEnded())&&void 0!==e?e:null===(i=this.video)||void 0===i?void 0:i.ended)&&void 0!==n&&n}get muted(){var t;return Boolean(null===(t=this.video)||void 0===t?void 0:t.muted)}set muted(t){var e,i,n,o;t?null===(i=null===(e=this.playerCommands)||void 0===e?void 0:e.executeCommand)||void 0===i||i.call(e,"mute"):null===(o=null===(n=this.playerCommands)||void 0===n?void 0:n.executeCommand)||void 0===o||o.call(n,"unmute")}get isAd(){var t;return this.isCurrentlyTryingToRunImaAd||"Ad"===(null===(t=this.data)||void 0===t?void 0:t.type)}render(){this.video&&(this.video.style.borderRadius="mobile"===s.deviceDetector.platform?"0px":"20px")}handleAdStarted(){this.pause(),this.isCurrentlyTryingToRunImaAd=!0,this.interactionElement.hideInteraction()}handleAdEnded(){var t;document.hidden||this.play(),this.isCurrentlyTryingToRunImaAd=!1,null===(t=this.contentParent)||void 0===t||t.adjustContentView(),this.isEnableInteractions(this.data)&&this.interactionElement.showInteraction(),this.contentParent instanceof o.BlazeWidgetStory&&this.contentParent.event(a.StoryAction.PageStart,{})}loadInteraction(){if(!this.isEnableInteractions(this.data))return;const t=this.data.interaction;t&&(this.interactionElement.addEventListener(l.INTERACTION_ANALYTICS,this.handleInteractionEvent.bind(this)),this.appendChild(this.interactionElement),this.interactionElement.loadInteraction(t))}onLanguageChange(t){return n(this,void 0,void 0,function*(){var e;const i=null===(e=this.data.closedCaptions)||void 0===e?void 0:e.find(e=>""+e.language===t.detail.language);i?(this.captionsElement.isConnected||this.append(this.captionsElement),yield this.captionsElement.initialize(this.video,i.files),this.setAttribute("is-captions-visible","true")):(this.setAttribute("is-captions-visible","false"),this.captionsElement.isConnected&&this.captionsElement.remove())})}handleInteractionEvent(t){var e,i;c.AnalyticsService.pushInteractionEvent(t.detail.action,Object.assign(Object.assign({},t.detail.body),{content_id:this.contentParent.data.id,content_title:this.contentParent.data.title,content_page_id:null===(e=this.data)||void 0===e?void 0:e.id,content_type:"story",content_session_id:c.UserService.sessionId,audio_state:this.videoPlayerState.isMuted?"Mute":"Unmute",content_extra_info:"true"===(null===(i=c.AppConfigurationService.appConfigurations)||void 0===i?void 0:i.configurations.analyticsAddEntitiesInfo)?JSON.stringify(this.contentParent.data.extraInfo):void 0}),void 0,this.contentParent.getRefferingObject())}tryToPlayAd(t){return n(this,void 0,void 0,function*(){var e,i,n,o;if("Content"===(null===(e=this.data)||void 0===e?void 0:e.type)&&"IMA"===(null===(i=this.data.adInfo)||void 0===i?void 0:i.type)){const e=this.data.adInfo;this.contentParent.adIndex++;const i=yield this.getVideoDuration().catch(()=>{});return null!==(o=yield null===(n=this.widgetVastAd)||void 0===n?void 0:n.startAd({videoElement:this.video,adInfo:this.data.adInfo,contentExtraInfo:t,addCustomParams:t=>{var i;null===(i=this.widgetVastAd)||void 0===i||i.setSearchParamIfNotNullOrZero(t,"content_title",this.contentParent.data.title);const n=this.data.index;if(!isNaN(n))if("Aniview"===e.adProvider)t.searchParams.set("page_index",(null==n?void 0:n.toString())||"0");else{let e=t.searchParams.get("cust_params")||"";const i=["page_index="+n];i.length>0&&(e=e?e+"&"+i.join("&"):i.join("&")),e&&t.searchParams.set("cust_params",e)}const o=t.searchParams.get("sz");if(o){const e="Horizontal"===this.contentParent.aspectRatio?a.IMA_RATIOS.vertical:a.IMA_RATIOS.horizontal;t.searchParams.set("sz",o.split("|").filter(t=>t!==e).join("|"))}},addExtraAnalyticsParams:()=>{var t,e;return{session_id:this.contentParent.sessionId,ad_index:this.contentParent.adIndex.toString(),[this.contentParent.contentType+"_id"]:null===(t=this.contentParent.data)||void 0===t?void 0:t.id,[this.contentParent.contentType+"_title"]:null===(e=this.contentParent.data)||void 0===e?void 0:e.title}},videoUrl:this.videoUrl,videoDuration:i}))&&void 0!==o&&o}return!1})}isBeingUnloaded(){return!!this.isUnloading||!!(this.contentParent instanceof o.BlazeWidgetStory&&this.contentParent.isUnloading)}}},1072:(t,e)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.isWidgetTheme=function(t){return"object"==typeof t&&null!==t&&"layoutStyle"in t&&"playerStyle"in t}},1088:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AccessibilityUtils=void 0,e.AccessibilityUtils=class{static setElementsAccessible(t){t.forEach(t=>{if(t){t.setAttribute("tabindex","0"),t.setAttribute("aria-hidden","false"),t.style.pointerEvents="auto",t.focus&&t.focus.toString().includes("{}")&&delete t.focus;const e=t.querySelector("a, button, [tabindex]");e&&(e.setAttribute("tabindex","-1"),e.setAttribute("aria-hidden","false"),e.style.pointerEvents="auto",e.focus&&e.focus.toString().includes("{}")&&delete e.focus)}})}static setElementsInaccessible(t){t.forEach(t=>{if(t){document.activeElement===t&&t.blur(),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true"),t.style.pointerEvents="none",t.focus&&(t.focus=(()=>{}));const e=t.querySelector("a, button, [tabindex]");e&&(e.setAttribute("tabindex","-1"),e.setAttribute("aria-hidden","true"),e.style.pointerEvents="none",e.focus&&(e.focus=(()=>{})))}})}static setElementAccessibilityHidden(t){t&&(t.setAttribute("aria-hidden","true"),t.setAttribute("role","presentation"),t.setAttribute("tabindex","-1"))}static setElementsAccessibilityHidden(t){t.forEach(t=>this.setElementAccessibilityHidden(t))}}},1091:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeAlert=void 0;const n=i(4403);e.BlazeAlert=class extends n.BaseWidget{constructor(){super(),this.titleContainer=document.createElement("div"),this.textContainer=document.createElement("div")}static get observedAttributes(){return["alert-title","alert-text"]}connectedCallback(){this.className="blaze-alert"}disconnectedCallback(){}attributeChangedCallback(t,e,i){switch(t){case"alert-title":this.titleContainer.innerHTML=i,this.appendChild(this.titleContainer);break;case"alert-text":this.textContainer.innerHTML=i,this.appendChild(this.textContainer)}}setAttribute(t,e){super.setAttribute(t,e)}}},1232:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.LoggerTransport=e.BatchRejectedError=void 0;const o=i(4545),r=i(8827);class s extends Error{constructor(t="Server rejected log batch (422)"){super(t),this.name="BatchRejectedError"}}e.BatchRejectedError=s,e.LoggerTransport=class{constructor(){this.MAX_RETRY_ATTEMPTS=3,this.BASE_RETRY_DELAY=1e3,this.MAX_RETRY_DELAY=3e4,this.REQUEST_TIMEOUT=1e4}send(t){return n(this,void 0,void 0,function*(){t.length&&(yield this.sendWithRetry(t))})}sendWithRetry(t){return n(this,void 0,void 0,function*(){let e;for(let i=0;i<=this.MAX_RETRY_ATTEMPTS;i++)try{if(i>0){const t=this.calculateRetryDelay(i);yield this.delay(t)}return void(yield this.attemptSend(t))}catch(t){if(e=t,t instanceof s)throw t}throw e})}attemptSend(t){return n(this,void 0,void 0,function*(){const e=this.preparePayload(t),i=yield(0,r.compressPayload)(e),n=new Promise((t,e)=>{setTimeout(()=>e(new Error("Request timeout")),this.REQUEST_TIMEOUT)});try{yield Promise.race([this.sendToEndpoint(i),n])}catch(t){if(t instanceof Error){if(t.message.includes("422"))throw new s;if(t.message.includes("timeout"))throw new Error("Request timeout");throw new Error("Network request failed: "+t.message)}throw t}})}preparePayload(t){return t.map(t=>({message:t.message,level:t.level,api_key:o.ConfigService.apiKey,api_scheme_version:"1",metadata:JSON.parse(t.metadata)}))}sendToEndpoint(t){return n(this,void 0,void 0,function*(){yield o.ApiService.sendLoggerLogs(t)})}calculateRetryDelay(t){const e=this.BASE_RETRY_DELAY*Math.pow(2,t-1)*(.5+.5*Math.random());return Math.min(e,this.MAX_RETRY_DELAY)}delay(t){return new Promise(e=>setTimeout(e,t))}}},1353:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1356:(t,e,i)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetEmbeddedBase=e.EMBEDDED_ATTRIBUTES=void 0;const n=i(4403),o=i(3524),r=i(5785),s=i(9965),a=i(4545),l=i(4906);e.EMBEDDED_ATTRIBUTES={Labels:"labels",LabelsPriority:"labels-priority",OrderType:"order-type",MaxItems:"max-items",ContentIds:"content-ids"},e.BlazeWidgetEmbeddedBase=class extends n.BaseWidget{get theme(){return this.getTheme()}constructor(){super(),this.isIntersecting=!1,this.shouldReloadData=!0,this.intersectionObserver=new IntersectionObserver(this.handleIntersection.bind(this),{threshold:.5}),this.boundOnPlayerDidAppear=this.onPlayerDidAppear.bind(this),this.boundOnPlayerDismissed=this.onPlayerDismissed.bind(this),this.stateManager=new o.VideoPlayerStateManager}connectedCallback(){this.innerHTML+="\n    <style>\n      @keyframes fadeInAnimation {\n        0% {\n            opacity: 0;\n        }\n        100% {\n            opacity: 1;\n        }\n      }\n\n      "+this.getAnimationTargetSelector()+" { \n        animation: fadeInAnimation ease 0.5s;\n        animation-iteration-count: 1;\n        animation-fill-mode: forwards;\n      }\n    </style>",this.style.direction=a.ConfigService.layoutDirection,this.intersectionObserver.observe(this),document.addEventListener(s.Delegation.onPlayerDidAppear,this.boundOnPlayerDidAppear),document.addEventListener(s.Delegation.onPlayerDismissed,this.boundOnPlayerDismissed),this.reloadLogic()}disconnectedCallback(){document.removeEventListener(s.Delegation.onPlayerDidAppear,this.boundOnPlayerDidAppear),document.removeEventListener(s.Delegation.onPlayerDismissed,this.boundOnPlayerDismissed)}attributeChangedCallback(t,i,n){switch(t){case e.EMBEDDED_ATTRIBUTES.Labels:case e.EMBEDDED_ATTRIBUTES.LabelsPriority:if(!i)break;this.reloadLogic();break;default:this.handleSpecificAttributeChange(t,i,n)}}updateDataSource(t){}getTheme(){const t=this.getThemeContentType();return t?this.preset||l.ThemeFactory.create("default",t):this.preset||l.ThemeFactory.create("default")}setTheme(t){let e;if("string"==typeof t){const i=this.getThemeContentType();e=i?l.ThemeFactory.create(t,i):l.ThemeFactory.create(t)}else e=t;this.preset=e}setLabels(t,i){this.setReloadData(i);let o="";if("string"==typeof t)o=t;else if(Array.isArray(t))o=t.join();else{if(!(t instanceof n.BlazeWidgetLabel))throw new Error("fail to set labels - "+t+", labels must be string, array of strings, or BlazeWidgetLabel...");o=t.toString()}this.setAttribute(e.EMBEDDED_ATTRIBUTES.Labels,o)}setLabelsPriority(t,i){this.setReloadData(i);let o="";if("string"==typeof t)o=t.startsWith("[")&&t.endsWith("]")?t:"["+t+"]";else{if(!Array.isArray(t))throw new Error("Failed to set labels priority - "+t+". Labels priority must be a string, array of strings, or array of BlazeWidgetLabel.");o=t.every(t=>t instanceof n.BlazeWidgetLabel)?"["+t.map(t=>t.toString()).join()+"]":"["+t.join()}this.setAttribute(e.EMBEDDED_ATTRIBUTES.LabelsPriority,o)}reload(){this.shouldReloadData=!0,this.reloadLogic()}setPersonalized(t){}updateWidgetUI(){}setMaxItemsDisplaySize(t){}setDelegations(t){for(const e in t)this.addEventListener(e,t[e])}updateOverrideStyles(t){}setMaxItemsSize(t){this.setAttribute(e.EMBEDDED_ATTRIBUTES.MaxItems,t.toString())}reloadLogic(){this.shouldReloadData&&this.loadContent()}setReloadData(t){this.shouldReloadData="object"!=typeof t||!t.hasOwnProperty("shouldReloadData")||"boolean"!=typeof t.shouldReloadData||t.shouldReloadData}showSkeleton(){var t,e,i,n;this.skeleton||(this.skeleton=new r.BlazeWidgetItemSkeleton(this.theme.layoutStyle,null!==(e=null===(t=this.parentElement)||void 0===t?void 0:t.clientWidth)&&void 0!==e?e:0,null!==(n=null===(i=this.parentElement)||void 0===i?void 0:i.clientHeight)&&void 0!==n?n:0,0),this.appendChild(this.skeleton))}hideSkeleton(){this.skeleton&&(this.removeChild(this.skeleton),this.skeleton=void 0)}onPlayerDidAppear(t){const e=t;e.detail&&this.id!==e.detail.widgetId&&this.onOtherModalOpenedClosed(t,()=>this.pauseContent())}onPlayerDismissed(t){this.onOtherModalOpenedClosed(t,()=>this.playContent())}onOtherModalOpenedClosed(t,e){e()}getAnimationTargetSelector(){return"blaze-video-element, blaze-widget-story"}getThemeContentType(){}handleSpecificAttributeChange(t,e,i){}}},1371:(t,e)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.extractEntryIds=function(t){return t.map(t=>t.id)}},1381:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetInteraction=void 0;const o=i(4403),r=i(6450),s=i(9702),a=i(9965),l=i(4545),d=i(9266);e.BlazeWidgetInteraction=class extends o.BaseWidget{constructor(){super(...arguments),this.iframe=document.createElement("iframe"),this.isIframeLoaded=!1,this.isInitialized=!1,this.isActive=!1,this.shouldForceHide=!1,this.responseHandler=this.onUserResponse.bind(this),this.focusMainWindowHandler=this.focusMainWindow.bind(this),this.orientationChangeHandler=this.orientationChange.bind(this)}connectedCallback(){(0,d.mergeStyles)(this,{position:"relative",display:"block",width:"100%",overflow:"hidden",borderRadius:"mobile"===o.deviceDetector.platform?"0px":"20px"}),d.AccessibilityUtils.setElementAccessibilityHidden(this)}loadInteraction(t){var e,i,n,o,s,a,u,c,h,p,f,g,v,y,m,b,S,E,C,w,A,T;this.interaction=t,this.iframe.id="interaction-"+this.interaction.id,this.iframe.src=this.interaction.htmlUrl,this.iframe.onload=(()=>{this.isIframeLoaded=!0,!this.isInitialized&&this.isActive&&this.initInteraction()}),window.addEventListener("blur",this.focusMainWindowHandler),this.orientationChangeHandler(),window.addEventListener("resize",this.orientationChangeHandler);const I=(0,d.isCssPropertySupported)("aspectRatio");(0,d.mergeStyles)(this.iframe,{position:"absolute",border:"none",zIndex:r.Z_INDEX.interaction}),this.isActive?this.showIframe():this.hideIframe();const{bounds:M}=t;if(M){I&&"Player"===(null===(e=M.position)||void 0===e?void 0:e.yRelativeTo)?this.style.aspectRatio=r.ASPECT_RATIO_9_16_STRING:this.style.height="100%";const t="translateX("+("RTL"===l.ConfigService.layoutDirection?-1:1)*(null!==(n=null===(i=M.position)||void 0===i?void 0:i.xOffset)&&void 0!==n?n:0)+"px) translateY("+(null!==(s=null===(o=M.position)||void 0===o?void 0:o.yOffset)&&void 0!==s?s:"0")+"px)",_={BottomToTop:{},TopToTop:{top:(null!==(u=null===(a=M.position)||void 0===a?void 0:a.yOffset)&&void 0!==u?u:"0")+"px"},BottomToBottom:{bottom:(null!==(h=null===(c=M.position)||void 0===c?void 0:c.yOffset)&&void 0!==h?h:"0")+"px"},TopToBottom:{},CenterToTop:{},CenterToBottom:{},CenterY:{top:"0",bottom:"0",marginTop:"auto",marginBottom:"auto",transform:t}},x={StartToStart:{insetInlineStart:(null!==(f=null===(p=M.position)||void 0===p?void 0:p.xOffset)&&void 0!==f?f:"0")+"px"},EndToEnd:{insetInlineEnd:(null!==(v=null===(g=M.position)||void 0===g?void 0:g.xOffset)&&void 0!==v?v:"0")+"px"},StartToEnd:{},EndToStart:{},CenterToStart:{},CenterToEnd:{},CenterX:{insetInlineStart:"0",insetInlineEnd:"0",marginInline:"auto",transform:t}};(0,d.mergeStyles)(this.iframe,Object.assign(Object.assign(Object.assign({},_[null!==(m=null===(y=M.position)||void 0===y?void 0:y.yPosition)&&void 0!==m?m:"TopToTop"]),x[null!==(S=null===(b=M.position)||void 0===b?void 0:b.xPosition)&&void 0!==S?S:"StartToStart"]),{height:(null===(E=M.size)||void 0===E?void 0:E.absoluteHeight)?M.size.absoluteHeight+"px":100*(null!==(w=null===(C=M.size)||void 0===C?void 0:C.heightRatio)&&void 0!==w?w:0)+"%",width:(null===(A=M.size)||void 0===A?void 0:A.widthRatio)?100*M.size.widthRatio+"%":(null===(T=M.size)||void 0===T?void 0:T.absoluteWidth)+"px"}))}else I?this.style.aspectRatio=r.ASPECT_RATIO_9_16_STRING:this.style.height="100%",(0,d.mergeStyles)(this.iframe,{top:100*this.interaction.topOffset+"%",insetInlineStart:100*this.interaction.leftOffset+"%",height:100*this.interaction.relativeHeight+"%",width:100*this.interaction.relativeWidth+"%"});this.appendChild(this.iframe)}showInteraction(t){this.interaction||(this.interaction=t),this.interaction&&!this.isActive&&(this.pushAnalyticsEvent(r.InteractionAction.VIEW,{client_enrichment_url:this.interaction.clientEnrichmentUrl}),this.isActive=!0,this.isIframeLoaded&&!this.isInitialized&&this.initInteraction(),this.shouldForceHide||this.showIframe(),window.addEventListener("message",this.responseHandler))}shouldResetInitialization(t){var e;return"Enrichment"!==t.type||"true"!==(null===(e=l.AppConfigurationService.appConfigurations)||void 0===e?void 0:e.configurations.avoidEnrichmentReloadOnNavigation)}hideInteraction(){this.interaction&&this.isActive&&(this.isActive=!1,this.shouldResetInitialization(this.interaction)&&(this.isInitialized=!1),this.hideIframe(),window.removeEventListener("message",this.responseHandler))}unloadInteraction(){this.isIframeLoaded=!1,this.iframe.remove(),window.removeEventListener("blur",this.focusMainWindowHandler),window.removeEventListener("message",this.responseHandler),window.removeEventListener("resize",this.orientationChangeHandler)}onUserResponse(t){return n(this,void 0,void 0,function*(){if(this.interaction&&this.isActive&&t.source===this.iframe.contentWindow)switch(t.data.type){case"USER_RESPONSE":l.InteractionService.updateInteraction({id:this.interaction.id,initData:t.data.data.newInitData,userResponse:t.data.data.userResponse}),l.ApiService.sendInteractionResponse({interactionId:this.interaction.id,interactionType:this.interaction.type,responseId:t.data.data.userResponse}
1),this.pushAnalyticsEvent(r.InteractionAction.ANSWER,{interaction_selected_answer:t.data.data.userResponse});break;case"hapticFeedback":case"USER_VIBRATE":const e=t.data.data.type;"vibrate"in navigator&&navigator.vibrate(s.ANSWER_FEEDBACK_VIBRATE_PATTERNS[e]);break;case"play":this.dispatchEvent(new CustomEvent(a.InternalEvent.RESUME,{bubbles:!0}));break;case"pause":this.dispatchEvent(new CustomEvent(a.InternalEvent.PAUSE,{bubbles:!0}));break;case"goToNextPage":this.dispatchEvent(new CustomEvent(a.InternalEvent.NEXT_PAGE,{bubbles:!0}));break;case"goToPreviousPage":this.dispatchEvent(new CustomEvent(a.InternalEvent.PREVIOUS_PAGE,{bubbles:!0}));break;case"setAppContext":l.ConfigService.appContext=t.data.data}})}pushAnalyticsEvent(t,e){if(!this.interaction)return;const i={action:t,body:Object.assign({interaction_id:this.interaction.id,interaction_type:this.interaction.type,interaction_text:this.interaction.initData},e)};this.dispatchEvent(new CustomEvent(s.INTERACTION_ANALYTICS,{detail:i}))}focusMainWindow(){document.activeElement===this.iframe&&setTimeout(()=>{window.focus()},0)}initInteraction(){return n(this,void 0,void 0,function*(){var t;if(!this.interaction)return;let e,i;try{const t=yield l.InteractionService.getInteraction(this.interaction.id);e=null==t?void 0:t.initData,i=null==t?void 0:t.userResponse}catch(t){}e=null!=e?e:this.interaction.initData,null===(t=this.iframe.contentWindow)||void 0===t||t.postMessage({type:"invokeInitInteraction",initData:JSON.parse(e),designOverrides:JSON.parse(this.interaction.designOverridesStr),userAnswer:i,userContext:l.ConfigService.appContext},"*"),this.isInitialized=!0})}orientationChange(){this.shouldForceHide="mobile"===o.deviceDetector.platform&&"landscape"===o.deviceDetector.screenOrientation,this.isActive&&(this.shouldForceHide?this.hideIframe():this.showIframe())}hideIframe(){this.iframe.style.visibility="hidden",this.iframe.style.pointerEvents="none"}showIframe(){this.iframe.style.visibility="visible",this.iframe.style.pointerEvents="auto"}}},1430:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeDiv=void 0;const n=i(4403);e.BlazeDiv=class extends n.BaseWidget{constructor(){super()}}},1518:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetStoryModal=void 0;const n=i(9126),o=i(4403),r=i(6450),s=i(9965),a=i(4545),l=i(9266),d=i(332);e.BlazeWidgetStoryModal=class extends d.BlazeWidgetModal{constructor(t,e,i,n=a.VideoPlayerService){super("story",n),this.parentWidget=t,this.playerLayout=e,this.actionHandlers=i,this.videoPlayerState=n,this.currentState=null,this.player.onClose=this.close.bind(this),this.player.dispatchExitStoryEvents=this.dispatchExitStoryEvents.bind(this),this.boundOnResizeEventDelay=this.onResizeEventDelay.bind(this),this.boundOnKeyDown=this.onKeyDown.bind(this),this.boundOnBeforeUnload=this.onBeforeUnload.bind(this);const o=document.createElement("style");o.textContent="@keyframes shrink{\n        0%{\n            transform:scale(1)\n        }\n        15%{\n            transform:scale(.96)\n        }\n        30%{\n            transform:scale(1)\n        }\n        100%{\n            transform:scale(1)\n        }\n    }\n    @keyframes grow{\n        0%{\n            transform:scale(1)\n        }\n        15%{\n            transform:scale(1.04)\n        }\n        30%{\n            transform:scale(1)\n        }\n        100%{\n            transform:scale(1)\n        }\n    }\n    @keyframes bottomToTop {\n        0% {\n            opacity: 0;\n            transform: translateY(100%);\n        }\n        50% {\n            opacity: 1;\n            transform: translateY(-50%);\n        }\n        100% {\n            opacity: 1;\n            transform: translateY(0%);\n        }\n    }\n    ",this.appendChild(o)}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.boundOnResizeEvent),window.addEventListener(o.DEVICE_EVENTS.SCREEN_ORIENTATION_CHANGE,this.boundOnResizeEventDelay),window.addEventListener("keydown",this.boundOnKeyDown),window.addEventListener("beforeunload",this.boundOnBeforeUnload),(0,l.mergeStyles)(this,{display:"none",boxSizing:"border-box"})}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener(o.DEVICE_EVENTS.SCREEN_ORIENTATION_CHANGE,this.boundOnResizeEventDelay),window.removeEventListener("resize",this.boundOnResizeEvent),window.removeEventListener("keydown",this.boundOnKeyDown),window.removeEventListener("beforeunload",this.boundOnBeforeUnload)}onBeforeUnload(){if(o.deviceDetector.isDesktop)return this.isOpen&&this.dispatchExitStoryEvents(),null}
1setTheme(t){this.player.playerContentList.forEach(e=>{e instanceof n.BlazeWidgetStory&&e.setTheme(t)}),this.playerLayout=t}updateModalContent(){this.currentState&&this.player.updateContentConfig(this.currentState.stories)}setModalContent(t,e,i){this.currentState={stories:t,indexOfContentInWidget:e,defaultAdsInfo:i};const o=[];for(let r=0;r<t.length;r++){const s=new n.BlazeWidgetStory(this.playerLayout,"Full Screen",this.actionHandlers,void 0,this.videoPlayerState);s.setData(t[r]),o.push(s),a.AdService.pushAdsBetweenStories(i,o,t,r,e,this.playerLayout)}this.player.setContent(o)}onKeyDown(t){if(this.isOpen&&"Escape"==t.key){const t=this.player.playerContentList[this.player.index];if(t.currentPage.isAd)return;t.exitTrigger="Escape Button",t.navigationType="",t.navigationDirection="",t.close(),this.close()}}close(){var t,e,i;if(!this.isOpen)return;if("SingleContent"===a.VideoPlayerService.playReference&&!a.ConfigService.shouldDismissPlayer)return;this.dispatchPlayerEvents(),super.close(),null===(t=this.player)||void 0===t||t.playerContentList.forEach(t=>{t.unload(),t instanceof n.BlazeWidgetStory&&(t.currentPage.pause(),t.pages.forEach(t=>{t.paused||t.pause(),t.unload()}))});const o=this.player.playerContentList[this.player.index];null===(e=null==o?void 0:o.currentPage)||void 0===e||e.endExit(),null===(i=this.onClose)||void 0===i||i.call(this,{storyId:o.data.id,pageIndex:o.pageIndex})}dispatchExitStoryEvents(){var t,e,i;const n=this.player.playerContentList[this.player.index];n.event(r.StoryAction.PageExit,{}),n.event(r.StoryAction.Exit,{}),a.AnalyticsService.sendAnalyticsData(),null===(t=n.pause)||void 0===t||t.call(n),null===(i=null===(e=n.widgetParentItem)||void 0===e?void 0:e.updateWidget)||void 0===i||i.call(e),n.updateWidgetStatusReadUnread()}dispatchPlayerEvents(){a.EventService.dispatch(this,s.Delegation.onStoryPlayerDismissed),a.EventService.dispatch(this,s.Delegation.onPlayerDismissed),this.parentWidget&&(a.EventService.dispatch(this.parentWidget,s.Delegation.onWidgetPlayerDismissed,{widgetId:this.parentWidget.id}),a.EventService.dispatch(this.parentWidget,s.Delegation.onWidgetStoryPlayerDismissed,{widgetId:this.parentWidget.id}))}open(t){var e;super.open(t);const i=new CustomEvent("onPlayerReady",{bubbles:!0,composed:!0});this.dispatchEvent(i),null===(e=this.onOpen)||void 0===e||e.call(this),a.EventService.dispatch(this,s.Delegation.onStoryPlayerDidAppear),a.EventService.dispatch(this,s.Delegation.onPlayerDidAppear)}play(){}playToggleCurrentStory(){this.player.playToggleCurrentStory()}onResizeEventDelay(){setTimeout(()=>{this.onResize()},r.ONE_SECOND/2)}}},1532:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.NativeVideoStrategy=void 0;const o=i(1908),r=i(2914),s=i(4545),a=i(1006);e.NativeVideoStrategy=class extends a.BasePlaybackStrategy{constructor(t,e,i){super(),this.video=t,this.videoComponent=e,this.lastErrorExecutionTime=0,this.PLAYBACK_TIMEOUT_MS=7e3,this.boundOnError=this.handleNativeVideoError.bind(this),this.boundOnPlaying=this.handlePlaying.bind(this),this.boundOnPause=this.handlePause.bind(this),this.boundOnCanPlayThrough=this.handleCanPlayThrough.bind(this),this.lastProgressTime=0,this.lastCurrentTime=0,this.boundOnTimeUpdate=this.handleTimeUpdate.bind(this),this.setupErrorHandling(),this.videoPlayerState=i||s.VideoPlayerService}setupErrorHandling(){this.video.addEventListener(o.EVENTS.ERROR,this.boundOnError),this.video.addEventListener(o.EVENTS.PLAYING,this.boundOnPlaying),this.video.addEventListener(o.EVENTS.PAUSE,this.boundOnPause),this.video.addEventListener(o.EVENTS.CAN_PLAY_THROUGH,this.boundOnCanPlayThrough),this.video.addEventListener(o.EVENTS.TIMEUPDATE,this.boundOnTimeUpdate)}handlePlaying(){this.videoComponent.isVideoStartPlaying=!0,this.videoComponent.removeLoader(),this.clearPlaybackTimeout(),this.lastProgressTime=Date.now(),this.lastCurrentTime=this.video.currentTime}handlePause(){this.videoComponent.isVideoStartPlaying=!1,this.videoComponent.removeLoader(),this.stopProgressBasedLoaderCleanup()}handleTimeUpdate(){const t=this.video.currentTime,e=Date.now();t>this.lastCurrentTime&&(this.lastProgressTime=e,this.lastCurrentTime=t,this.video.paused||this.video.ended||this.videoComponent.removeLoader())}handleCanPlayThrough(){return n(this,void 0,void 0,function*(){this.videoComponent.isVideoStartPlaying&&this.video.paused&&(yield this.play())})}startPlaybackTimeout(){this.clearPlaybackTimeout(),this.playbackTimeout=setTimeout(()=>{this.handlePlaybackTimeout()},this.PLAYBACK_TIMEOUT_MS)}clearPlaybackTimeout(){this.playbackTimeout&&(clearTimeout(this.playbackTimeout),this.playbackTimeout=void 0)}handlePlaybackTimeout(){this.videoComponent.isVideoStartPlaying&&this.video.paused&&(this.reset(),setTimeout(()=>{this.play().catch(()=>{})},500))}handleNativeVideoError(t){return n(this,void 0,void 0,function*(){var e;const i=null===(e=null==t?void 0:t.target)||void 0===e?void 0:e.error;if((null==i?void 0:i.code)===MediaError.MEDIA_ERR_DECODE){const t=(new Date).getTime();t-this.lastErrorExecutionTime>=5e3&&(this.lastErrorExecutionTime=t,this.videoComponent.source&&this.videoComponent.videoUrl&&this.video&&0===this.video.currentTime&&(this.video.removeChild(this.videoComponent.source),this.video.preload="none",this.video.load(),this.videoComponent.source.setAttribute("src",this.videoComponent.videoUrl),this.videoComponent.source.setAttribute("type","video/mp4"),this.video.preload="auto",this.video.append(this.videoComponent.source),this.videoComponent.tryReloadVideo(this.videoComponent.maxRetryTimes)))}else if((null==i?void 0:i.code)===MediaError.MEDIA_ERR_NETWORK&&this.videoComponent.source&&this.videoComponent.videoUrl&&this.video&&0===this.video.currentTime){this.video.removeChild(this.videoComponent.source),this.video.preload="none",this.video.load();const t=new URL(this.videoComponent.videoUrl);t.searchParams.set("retry",Date.now().toString()),this.videoComponent.source.setAttribute("src",t.toString()),this.videoComponent.source.setAttribute("type","video/mp4"),this.video.preload="auto",this.video.append(this.videoComponent.source),this.videoComponent.tryReloadVideo(this.videoComponent.maxRetryTimes)}})}play(){return n(this,void 0,void 0,function*(){var t;this.playAttemptStartTime=Date.now();try{this.startPlaybackTimeout(),this.startProgressBasedLoaderCleanup(),yield this.video.play(),this.videoComponent.isError=!1,this.videoComponent.isVideoRunning=!0;const e={status:o.PlayStatus.Success};return this.dispatchPlaybackEvent("success",{result:e,timeToPlay:Date.now()-this.playAttemptStartTime}),e}catch(t){this.clearPlaybackTimeout(),this.stopProgressBasedLoaderCleanup();const e={status:o.PlayStatus.Failed,error:t};return this.dispatchPlaybackEvent("failed",{result:e,timeToFail:Date.now()-this.playAttemptStartTime}),e}finally{null===(t=this.loaderDelegate)||void 0===t||t.hide()}})}playWithRetry(t){return n(this,void 0,void 0,function*(){if(!(t<=0))try{yield this.video.play(),this.videoComponent.isError=!1,this.videoComponent.isVideoRunning=!0}catch(e){throw this.reloadAndRetry(t-1),e}})}reloadAndRetry(t){t>0&&(this.reset(),setTimeout(()=>
1{this.playWithRetry(t).catch(()=>{})},1e3))}pause(){this.video.pause(),this.clearPlaybackTimeout(),this.stopProgressBasedLoaderCleanup()}getCurrentTime(){var t;return(null===(t=this.video)||void 0===t?void 0:t.currentTime)||0}getDuration(){var t;return(null===(t=this.video)||void 0===t?void 0:t.duration)||0}isPaused(){var t;return(null===(t=this.video)||void 0===t?void 0:t.paused)||!1}isEnded(){var t;return(null===(t=this.video)||void 0===t?void 0:t.ended)||!1}isMuted(){var t;return Boolean(null===(t=this.video)||void 0===t?void 0:t.muted)}setMuted(t){if(this.video){const e=this.video.muted;this.video.muted=t,e!==t&&this.dispatchPlaybackEvent("changed",{previousState:{muted:e},newState:{muted:t}})}}mute(){this.setMuted(!0)}unmute(){this.setMuted(!1)}seek(t){if(this.video&&Number.isFinite(this.video.duration)&&this.video.duration>0){const e=t*this.video.duration;Number.isFinite(e)&&e>=0&&e<=this.video.duration&&(this.video.currentTime=e)}}toggleMute(){this.setMuted(!this.isMuted())}toggleFullscreen(){}loadSource(t){return n(this,void 0,void 0,function*(){this.videoComponent.source.hasAttribute("src")||(this.videoComponent.source.setAttribute("type","video/mp4"),"Safari"===r.deviceDetector.browser?this.videoComponent.source.setAttribute("src",t+"#t=0.01"):this.videoComponent.source.setAttribute("src",t)),this.video.querySelector("source")||this.video.append(this.videoComponent.source),this.video.load()})}initialize(t){this.configureVideoElement(),(null==t?void 0:t.loaderDelegate)&&(this.loaderDelegate=t.loaderDelegate)}configureVideoElement(){this.video.preload="none",this.video.muted=this.videoPlayerState.isMuted,this.video.playsInline=!0,this.video.controls=!1,this.video.currentTime=0,this.video.setAttribute("webkit-playsinline","true")}unload(){this.video.pause(),this.video.preload="none",this.video.removeAttribute("poster"),this.video.removeAttribute("src"),this.videoComponent.source.removeAttribute("src"),this.videoComponent.source.remove(),this.video.load()}destroy(){this.clearPlaybackTimeout(),this.stopProgressBasedLoaderCleanup(),this.video.removeEventListener(o.EVENTS.ERROR,this.boundOnError),this.video.removeEventListener(o.EVENTS.PLAYING,this.boundOnPlaying),this.video.removeEventListener(o.EVENTS.PAUSE,this.boundOnPause),this.video.removeEventListener(o.EVENTS.CAN_PLAY_THROUGH,this.boundOnCanPlayThrough),this.video.removeEventListener(o.EVENTS.TIMEUPDATE,this.boundOnTimeUpdate),this.unload()}reset(){this.video.pause(),this.video.currentTime=0,this.video.preload="none",this.video.load(),this.clearPlaybackTimeout()}startProgressBasedLoaderCleanup(){this.stopProgressBasedLoaderCleanup(),this.lastProgressTime=Date.now(),this.lastCurrentTime=this.video.currentTime,this.progressCheckInterval=setInterval(()=>{this.checkVideoProgressAndCleanupLoader()},1e3)}stopProgressBasedLoaderCleanup(){this.progressCheckInterval&&(clearInterval(this.progressCheckInterval),this.progressCheckInterval=void 0)}checkVideoProgressAndCleanupLoader(){const t=Date.now()-this.lastProgressTime,e=this.video.currentTime;!this.video.paused&&!this.video.ended&&e>0&&t<1e3&&this.videoComponent.removeLoader()}}},1556:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Singleton=function(){return class{constructor(){}static getInstance(){return this._instance||(this._instance=new this),this._instance}}}},1590:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}
1),e.plusSvg=e.checkMarkSvg=e.linkIconSvg=e.shareVideosIconSvg=e.closedCaptionsOffIconSvg=e.closedCaptionsOnIconSvg=e.newPageIcon=e.arrowUpMomentIconSvg=e.arrowDownMomentIconSvg=e.fullscreenExitIconSvg=e.fullscreenEnterIconSvg=e.externalLinkIconSvg=e.arrowUpCtaIconSvg=e.pauseResumeIconSvg=e.playResumeIconSvg=e.restartIconSvg=e.prevPageIconSvg=e.nextPageIconSvg=e.prevStoryIconSvg=e.nextStoryIconSvg=e.closeIconSvg=e.shareIconSvg=e.muteIconSvg=e.unmuteIconSvg=e.pauseIconSvg=e.playIconSvg=e.IconGlobe=e.IconLink=e.ShareIconSvg=e.likeIconSvg=e.unlikeIconSvg=void 0,e.unlikeIconSvg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyOCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE0LjAwMDMgMjVMMTIuMDY3IDIzLjI2NjdDOS44MjI1NSAyMS4yNDQ1IDcuOTY2OTkgMTkuNSA2LjUwMDMzIDE4LjAzMzRDNS4wMzM2NiAxNi41NjY3IDMuODY2OTkgMTUuMjUgMy4wMDAzMyAxNC4wODM0QzIuMTMzNjYgMTIuOTE2NyAxLjUyODEgMTEuODQ0NSAxLjE4MzY2IDEwLjg2NjdDMC44MzkyMTQgOS44ODg5MSAwLjY2Njk5MiA4Ljg4ODkxIDAuNjY2OTkyIDcuODY2NjlDMC42NjY5OTIgNS43Nzc4IDEuMzY2OTkgNC4wMzMzNiAyLjc2Njk5IDIuNjMzMzZDNC4xNjY5OSAxLjIzMzM2IDUuOTExNDQgMC41MzMzNTYgOC4wMDAzMyAwLjUzMzM1NkM5LjE1NTg4IDAuNTMzMzU2IDEwLjI1NTkgMC43Nzc4IDExLjMwMDMgMS4yNjY2OUMxMi4zNDQ4IDEuNzU1NTggMTMuMjQ0OCAyLjQ0NDQ3IDE0LjAwMDMgMy4zMzMzNkMxNC43NTU5IDIuNDQ0NDcgMTUuNjU1OSAxLjc1NTU4IDE2LjcwMDMgMS4yNjY2OUMxNy43NDQ4IDAuNzc3OCAxOC44NDQ4IDAuNTMzMzU2IDIwLjAwMDMgMC41MzMzNTZDMjIuMDg5MiAwLjUzMzM1NiAyMy44MzM3IDEuMjMzMzYgMjUuMjMzNyAyLjYzMzM2QzI2LjYzMzcgNC4wMzMzNiAyNy4zMzM3IDUuNzc3OCAyNy4zMzM3IDcuODY2NjlDMjcuMzMzNyA4Ljg4ODkxIDI3LjE2MTQgOS44ODg5MSAyNi44MTcgMTAuODY2N0MyNi40NzI1IDExLjg0NDUgMjUuODY3IDEyLjkxNjcgMjUuMDAwMyAxNC4wODM0QzI0LjEzMzcgMTUuMjUgMjIuOTY3IDE2LjU2NjcgMjEuNTAwMyAxOC4wMzM0QzIwLjAzMzcgMTkuNSAxOC4xNzgxIDIxLjI0NDUgMTUuOTMzNyAyMy4yNjY3TDE0LjAwMDMgMjVaTTE0LjAwMDMgMjEuNEMxNi4xMzM3IDE5LjQ4ODkgMTcuODg5MiAxNy44NSAxOS4yNjcgMTYuNDgzNEMyMC42NDQ4IDE1LjExNjcgMjEuNzMzNyAxMy45Mjc4IDIyLjUzMzcgMTIuOTE2N0MyMy4zMzM3IDExLjkwNTYgMjMuODg5MiAxMS4wMDU2IDI0LjIwMDMgMTAuMjE2N0MyNC41MTE0IDkuNDI3OCAyNC42NjcgOC42NDQ0NyAyNC42NjcgNy44NjY2OUMyNC42NjcgNi41MzMzNiAyNC4yMjI1IDUuNDIyMjQgMjMuMzMzNyA0LjUzMzM2QzIyLjQ0NDggMy42NDQ0NyAyMS4zMzM3IDMuMjAwMDIgMjAuMDAwMyAzLjIwMDAyQzE4Ljk1NTkgMy4yMDAwMiAxNy45ODkyIDMuNDk0NDcgMTcuMTAwMyA0LjA4MzM2QzE2LjIxMTQgNC42NzIyNSAxNS42MDAzIDUuNDIyMjQgMTUuMjY3IDYuMzMzMzZIMTIuNzMzN0MxMi40MDAzIDUuNDIyMjQgMTEuNzg5MiA0LjY3MjI1IDEwLjkwMDMgNC4wODMzNkMxMC4wMTE0IDMuNDk0NDcgOS4wNDQ3NyAzLjIwMDAyIDguMDAwMzMgMy4yMDAwMkM2LjY2Njk5IDMuMjAwMDIgNS41NTU4OCAzLjY0NDQ3IDQuNjY2OTkgNC41MzMzNkMzLjc3ODEgNS40MjIyNCAzLjMzMzY2IDYuNTMzMzYgMy4zMzM2NiA3Ljg2NjY5QzMuMzMzNjYgOC42NDQ0NyAzLjQ4OTIxIDkuNDI3OCAzLjgwMDMzIDEwLjIxNjdDNC4xMTE0NCAxMS4wMDU2IDQuNjY2OTkgMTEuOTA1NiA1LjQ2Njk5IDEyLjkxNjdDNi4yNjY5OSAxMy45Mjc4IDcuMzU1ODggMTUuMTE2NyA4LjczMzY2IDE2LjQ4MzRDMTAuMTExNCAxNy44NSAxMS44NjcgMTkuNDg4OSAxNC4wMDAzIDIxLjRaIiBmaWxsPSIjRjBGMEYwIi8+Cjwvc3ZnPgo=",e.likeIconSvg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwIDE4Ljk5OTlMOC41NSAxNy42OTk5QzYuODY2NjcgMTYuMTgzMiA1LjQ3NSAxNC44NzQ5IDQuMzc1IDEzLjc3NDlDMy4yNzUgMTIuNjc0OSAyLjQgMTEuNjg3NCAxLjc1IDEwLjgxMjRDMS4xIDkuOTM3NCAwLjY0NTgzMyA5LjEzMzI0IDAuMzg3NSA4LjM5OTlDMC4xMjkxNjcgNy42NjY1NyAwIDYuOTE2NTcgMCA2LjE0OTlDMCA0LjU4MzI0IDAuNTI1IDMuMjc0OSAxLjU3NSAyLjIyNDlDMi42MjUgMS4xNzQ5IDMuOTMzMzMgMC42NDk5MDIgNS41IDAuNjQ5OTAyQzYuMzY2NjcgMC42NDk5MDIgNy4xOTE2NyAwLjgzMzIzNiA3Ljk3NSAxLjE5OTlDOC43NTgzMyAxLjU2NjU3IDkuNDMzMzMgMi4wODMyNCAxMCAyLjc0OTlDMTAuNTY2NyAyLjA4MzI0IDExLjI0MTcgMS41NjY1NyAxMi4wMjUgMS4xOTk5QzEyLjgwODMgMC44MzMyMzYgMTMuNjMzMyAwLjY0OTkwMiAxNC41IDAuNjQ5OTAyQzE2LjA2NjcgMC42NDk5MDIgMTcuMzc1IDEuMTc0OSAxOC40MjUgMi4yMjQ5QzE5LjQ3NSAzLjI3NDkgMjAgNC41ODMyNCAyMCA2LjE0OTlDMjAgNi45MTY1NyAxOS44NzA4IDcuNjY2NTcgMTkuNjEyNSA4LjM5OTlDMTkuMzU0MiA5LjEzMzI0IDE4LjkgOS45Mzc0IDE4LjI1IDEwLjgxMjRDMTcuNiAxMS42ODc0IDE2LjcyNSAxMi42NzQ5IDE1LjYyNSAxMy43NzQ5QzE0LjUyNSAxNC44NzQ5IDEzLjEzMzMgMTYuMTgzMiAxMS40NSAxNy42OTk5TDEwIDE4Ljk5OTlaIiBmaWxsPSIjRjBGMEYwIi8+Cjwvc3ZnPgo=",e.ShareIconSvg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMi45NDczIDIzLjM3NDhDMTMuMSAyMy43NTI2IDEzLjQ2NjggMjQgMTMuODc0NCAyNEgxNC4zNzE5QzE0Ljc4OTYgMjQgMTUuMTYzMyAyMy43NDAzIDE1LjMwOSAyMy4zNDg4TDIzLjIzNzUgMi4wNDg1QzIzLjUzNjIgMS4yNDYwNCAyMi43NTM5IDAuNDYzNzg1IDIxLjk1MTUgMC43NjI0OEwwLjY1MTE2IDguNjkwOTNDMC4yNTk2NjUgOC44MzY2NSAwIDkuMjEwMzcgMCA5LjYyODExVjEwLjEyNTZDMCAxMC41MzMyIDAuMjQ3MzQ5IDEwLjkgMC42MjUyMTEgMTEuMDUyN0w5LjQgMTQuNkwxMi45NDczIDIzLjM3NDhaTTE4LjM1MTggNy41MzM4OUwxNC4wNjY3IDE5LjA2NjZMMTIuMDAzNSAxMy44ODIyTDE4LjM1MTggNy41MzM4OVpNMTYuNDY2MyA1LjY0ODEyTDEwLjExNzkgMTEuOTk2NUw0LjkzMzMzIDkuOTMzMzFMMTYuNDY2MyA1LjY0ODEyWiIgZmlsbD0iI0YwRjBGMCIvPgo8L3N2Zz4K",e.IconLink='data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="10" viewB
1ox="0 0 20 10" fill="none"><path d="M9 10H5C3.61667 10 2.4375 9.5125 1.4625 8.5375C0.4875 7.5625 0 6.38333 0 5C0 3.61667 0.4875 2.4375 1.4625 1.4625C2.4375 0.4875 3.61667 0 5 0H9V2H5C4.16667 2 3.45833 2.29167 2.875 2.875C2.29167 3.45833 2 4.16667 2 5C2 5.83333 2.29167 6.54167 2.875 7.125C3.45833 7.70833 4.16667 8 5 8H9V10ZM6 6V4H14V6H6ZM11 10V8H15C15.8333 8 16.5417 7.70833 17.125 7.125C17.7083 6.54167 18 5.83333 18 5C18 4.16667 17.7083 3.45833 17.125 2.875C16.5417 2.29167 15.8333 2 15 2H11V0H15C16.3833 0 17.5625 0.4875 18.5375 1.4625C19.5125 2.4375 20 3.61667 20 5C20 6.38333 19.5125 7.5625 18.5375 8.5375C17.5625 9.5125 16.3833 10 15 10H11Z" fill="white" fill-opacity="0.92"/></svg>',e.IconGlobe='data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M10 20C8.61667 20 7.31667 19.7375 6.1 19.2125C4.88333 18.6875 3.825 17.975 2.925 17.075C2.025 16.175 1.3125 15.1167 0.7875 13.9C0.2625 12.6833 0 11.3833 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.3125 6.1 0.7875C7.31667 0.2625 8.61667 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3833 19.7375 12.6833 19.2125 13.9C18.6875 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20ZM9 17.95V16C8.45 16 7.97917 15.8042 7.5875 15.4125C7.19583 15.0208 7 14.55 7 14V13L2.2 8.2C2.15 8.5 2.10417 8.8 2.0625 9.1C2.02083 9.4 2 9.7 2 10C2 12.0167 2.6625 13.7833 3.9875 15.3C5.3125 16.8167 6.98333 17.7 9 17.95ZM15.9 15.4C16.2333 15.0333 16.5333 14.6375 16.8 14.2125C17.0667 13.7875 17.2875 13.3458 17.4625 12.8875C17.6375 12.4292 17.7708 11.9583 17.8625 11.475C17.9542 10.9917 18 10.5 18 10C18 8.36667 17.5458 6.875 16.6375 5.525C15.7292 4.175 14.5167 3.2 13 2.6V3C13 3.55 12.8042 4.02083 12.4125 4.4125C12.0208 4.80417 11.55 5 11 5H9V7C9 7.28333 8.90417 7.52083 8.7125 7.7125C8.52083 7.90417 8.28333 8 8 8H6V10H12C12.2833 10 12.5208 10.0958 12.7125 10.2875C12.9042 10.4792 13 10.7167 13 11V14H14C14.4333 14 14.825 14.1292 15.175 14.3875C15.525 14.6458 15.7667 14.9833 15.9 15.4Z" fill="%23131313"/></svg>',e.playIconSvg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InBsYXlfYXJyb3dfIGhvbGxvdyI+CjxtYXNrIGlkPSJtYXNrMF8yMTA2Xzk5NCIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMCIgeT0iMCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij4KPHJlY3QgaWQ9IkJvdW5kaW5nIGJveCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSIjRDlEOUQ5Ii8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF8yMTA2Xzk5NCkiPgo8cGF0aCBpZD0icGxheV9hcnJvdyIgZD0iTTggMTlWNUwxOSAxMkw4IDE5Wk0xMCAxNS4zNUwxNS4yNSAxMkwxMCA4LjY1VjE1LjM1WiIgZmlsbD0iI0YwRjBGMCIvPgo8L2c+CjwvZz4KPC9zdmc+Cg==",e.pauseIconSvg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InBhdXNlIj4KPG1hc2sgaWQ9Im1hc2swXzIxMTdfMiIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMCIgeT0iMCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij4KPHJlY3QgaWQ9IkJvdW5kaW5nIGJveCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjkyIi8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF8yMTE3XzIpIj4KPHBhdGggaWQ9InBhdXNlXzIiIGQ9Ik0xNCAxOVY1SDE3VjE5SDE0Wk03IDE5VjVIMTBWMTlIN1oiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOTIiLz4KPC9nPgo8L2c+Cjwvc3ZnPgo=",e.unmuteIconSvg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InZvbHVtZV91cF8yIj4KPG1hc2sgaWQ9Im1hc2swXzIxMDZfOTg3IiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIwIiB5PSIwIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiPgo8cmVjdCBpZD0iQm91bmRpbmcgYm94IiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9IiNEOUQ5RDkiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzIxMDZfOTg3KSI+CjxwYXRoIGlkPSJ2b2x1bWVfdXAiIGQ9Ik0xNCAyMC43MjVWMTguNjc1QzE1LjUgMTguMjQxNiAxNi43MDgzIDE3LjQwODMgMTcuNjI1IDE2LjE3NUMxOC41NDE3IDE0Ljk0MTYgMTkgMTMuNTQxNiAxOSAxMS45NzVDMTkgMTAuN
1DA4MyAxOC41NDE3IDkuMDA4MzEgMTcuNjI1IDcuNzc0OThDMTYuNzA4MyA2LjU0MTY0IDE1LjUgNS43MDgzMSAxNCA1LjI3NDk4VjMuMjI0OThDMTYuMDY2NyAzLjY5MTY0IDE3Ljc1IDQuNzM3NDggMTkuMDUgNi4zNjI0OEMyMC4zNSA3Ljk4NzQ4IDIxIDkuODU4MzEgMjEgMTEuOTc1QzIxIDE0LjA5MTYgMjAuMzUgMTUuOTYyNSAxOS4wNSAxNy41ODc1QzE3Ljc1IDE5LjIxMjUgMTYuMDY2NyAyMC4yNTgzIDE0IDIwLjcyNVpNMyAxNVY4Ljk5OTk4SDdMMTIgMy45OTk5OFYyMEw3IDE1SDNaTTE0IDE2VjcuOTQ5OThDMTQuNzgzMyA4LjMxNjY0IDE1LjM5NTggOC44NjY2NCAxNS44Mzc1IDkuNTk5OThDMTYuMjc5MiAxMC4zMzMzIDE2LjUgMTEuMTMzMyAxNi41IDEyQzE2LjUgMTIuODUgMTYuMjc5MiAxMy42Mzc1IDE1LjgzNzUgMTQuMzYyNUMxNS4zOTU4IDE1LjA4NzUgMTQuNzgzMyAxNS42MzMzIDE0IDE2Wk0xMCA4Ljg0OTk4TDcuODUgMTFINVYxM0g3Ljg1TDEwIDE1LjE1VjguODQ5OThaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjkyIi8+CjwvZz4KPC9nPgo8L3N2Zz4K",e.muteIconSvg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InZvbHVtZV9tdXRlIj4KPHBhdGggaWQ9InZvbHVtZV9vZmYiIGQ9Ik0xOS44IDIyLjZMMTYuNzc1IDE5LjU3NTFDMTYuMzU4NCAxOS44NDE3IDE1LjkxNjcgMjAuMDcwOSAxNS40NSAyMC4yNjI2QzE0Ljk4MzQgMjAuNDU0MiAxNC41IDIwLjYwODQgMTQgMjAuNzI1VjE4LjY3NUMxNC4yMzM0IDE4LjU5MTcgMTQuNDYyNSAxOC41MDg0IDE0LjY4NzUgMTguNDI1QzE0LjkxMjUgMTguMzQxNyAxNS4xMjUgMTguMjQxNyAxNS4zMjUgMTguMTI1MUwxMiAxNC44VjIwTDcuMDAwMDIgMTVIMy4wMDAwMlY5LjAwMDA1SDYuMjAwMDJMMS40MDAwMiA0LjIwMDA1TDIuODAwMDIgMi44MDAwNUwyMS4yIDIxLjIwMDFMMTkuOCAyMi42Wk0xOS42IDE2LjhMMTguMTUgMTUuMzVDMTguNDMzNCAxNC44MzM0IDE4LjY0NTkgMTQuMjkxNyAxOC43ODc1IDEzLjcyNUMxOC45MjkyIDEzLjE1ODQgMTkgMTIuNTc1MSAxOSAxMS45NzVDMTkgMTAuNDA4NCAxOC41NDE3IDkuMDA4MzggMTcuNjI1IDcuNzc1MDVDMTYuNzA4NCA2LjU0MTcyIDE1LjUgNS43MDgzOCAxNCA1LjI3NTA1VjMuMjI1MDVDMTYuMDY2NyAzLjY5MTcyIDE3Ljc1IDQuNzM3NTUgMTkuMDUgNi4zNjI1NUMyMC4zNSA3Ljk4NzU1IDIxIDkuODU4MzggMjEgMTEuOTc1QzIxIDEyLjg1ODQgMjAuODc5MiAxMy43MDg0IDIwLjYzNzUgMTQuNTI1MUMyMC4zOTU5IDE1LjM0MTcgMjAuMDUgMTYuMSAxOS42IDE2LjhaTTE2LjI1IDEzLjQ1TDE0IDExLjJWNy45NTAwNUMxNC43ODM0IDguMzE2NzIgMTUuMzk1OSA4Ljg2NjcyIDE1LjgzNzUgOS42MDAwNUMxNi4yNzkyIDEwLjMzMzQgMTYuNSAxMS4xMzM0IDE2LjUgMTJDMTYuNSAxMi4yNSAxNi40NzkyIDEyLjQ5NTkgMTYuNDM3NSAxMi43Mzc1QzE2LjM5NTkgMTIuOTc5MiAxNi4zMzM0IDEzLjIxNjcgMTYuMjUgMTMuNDVaTTEyIDkuMjAwMDVMOS40MDAwMyA2LjYwMDA1TDEyIDQuMDAwMDVWOS4yMDAwNVpNMTAgMTUuMTUwMVYxMi44TDguMjAwMDMgMTFINS4wMDAwMlYxM0g3Ljg1MDAzTDEwIDE1LjE1MDFaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjkyIi8+CjwvZz4KPC9zdmc+Cg==",e.shareIconSvg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InNoYXJlIj4KPHBhdGggaWQ9IlVuaW9uIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEyLjY0NzMgMjAuMzc0OEMxMi44IDIwLjc1MjcgMTMuMTY2OCAyMSAxMy41NzQ0IDIxSDEzLjYwNTJDMTQuMDIyOSAyMSAxNC4zOTY3IDIwLjc0MDQgMTQuNTQyNCAyMC4zNDg5TDIwLjIzNzUgNS4wNDg1NkMyMC41MzYyIDQuMjQ2MSAxOS43NTM5IDMuNDYzODUgMTguOTUxNSAzLjc2MjU0TDMuNjUxMTYgOS40NTc2NkMzLjI1OTY2IDkuNjAzMzggMyA5Ljk3NzEgMyAxMC4zOTQ4VjEwLjQyNTdDMyAxMC44MzMyIDMuMjQ3MzUgMTEuMiAzLjYyNTIxIDExLjM1MjhMMTAuMDUgMTMuOTVMMTIuNjQ3MyAyMC4zNzQ4Wk0xNi43NjM4IDguNjUwNDdMMTMuNTUgMTcuM0wxMi4wMDI2IDEzLjQxMTdMMTYuNzYzOCA4LjY1MDQ3Wk0xNS4zNDk3IDcuMjM2MTRMMTAuNTg4NCAxMS45OTc1TDYuNyAxMC40NUwxNS4zNDk3IDcuMjM2MTRaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjkyIi8+CjwvZz4KPC9zdmc+Cg==",e.closeIconSvg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9ImNsb3NlIj4KPG1hc2sgaWQ9Im1hc2swXzIwODlfNjUxOCIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMCIgeT0iMCIgd2lkdGg9IjM2IiBoZWlnaHQ9IjM2Ij4KPHJlY3QgaWQ9IkJvdW5kaW5nIGJveCIgd2lkdGg9IjM2IiBoZWlnaHQ9IjM2IiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjkyIi8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF8yMDg5XzY1MTgpIj4KPHBhdGggaWQ9ImNsb3NlXzIiIGQ9Ik05LjYgMjguNUw3LjUgMjYuNEwxNS45IDE4TDcuNSA5LjZMOS42IDcuNUwxOCAxNS45TDI2LjQgNy41TDI4LjUgOS42TDIwLjEgMThMMjguNSAyNi40TDI2LjQgMjguNUwxOCAyMC4xTDkuNiAyOC41WiIgZmlsbD0iI0YwRjBGMCIvPgo8L2c+CjwvZz4KPC9zdmc+Cg==",e.nextStoryIconSvg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InNraXBfbmV4dCI+CjxtY
1XNrIGlkPSJtYXNrMF8yMDM2XzMyMzYiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjAiIHk9IjAiIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiI+CjxyZWN0IGlkPSJCb3VuZGluZyBib3giIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC45MiIvPgo8L21hc2s+CjxnIG1hc2s9InVybCgjbWFzazBfMjAzNl8zMjM2KSI+CjxwYXRoIGlkPSJza2lwX25leHRfMiIgZD0iTTIyIDI0VjhIMjQuNjY2NlYyNEgyMlpNNy4zMzMzMSAyNFY4TDE5LjMzMzMgMTZMNy4zMzMzMSAyNFpNOS45OTk5OCAxOUwxNC41MzMzIDE2TDkuOTk5OTggMTNWMTlaIiBmaWxsPSIjRjBGMEYwIi8+CjwvZz4KPC9nPgo8L3N2Zz4K",e.prevStoryIconSvg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InNraXBfcHJldmlvdXMiPgo8bWFzayBpZD0ibWFzazBfMjAzNl8zMjM4IiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIwIiB5PSIwIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPgo8cmVjdCBpZD0iQm91bmRpbmcgYm94IiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOTIiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzIwMzZfMzIzOCkiPgo8cGF0aCBpZD0ic2tpcF9wcmV2aW91c18yIiBkPSJNNy4zMzMzMyAyNFY4SDkuOTk5OTlWMjRINy4zMzMzM1pNMjQuNjY2NyAyNEwxMi42NjY3IDE2TDI0LjY2NjcgOFYyNFpNMjIgMTlWMTNMMTcuNDY2NyAxNkwyMiAxOVoiIGZpbGw9IiNGMEYwRjAiLz4KPC9nPgo8L2c+Cjwvc3ZnPgo=",e.nextPageIconSvg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOCAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9ImNoZXZyb25fcmlnaHQiPgo8bWFzayBpZD0ibWFzazBfMjAzNl8zMjc3IiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIwIiB5PSIwIiB3aWR0aD0iMjgiIGhlaWdodD0iMjgiPgo8cmVjdCBpZD0iQm91bmRpbmcgYm94IiB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOTIiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzIwMzZfMzI3NykiPgo8cGF0aCBpZD0iY2hldnJvbl9yaWdodF8yIiBkPSJNMTAuOTY2NiAyMUw5LjMzMzMxIDE5LjM2NjdMMTQuNyAxNEw5LjMzMzMxIDguNjMzMzNMMTAuOTY2NiA3TDE3Ljk2NjYgMTRMMTAuOTY2NiAyMVoiIGZpbGw9IiMxMzEzMTMiLz4KPC9nPgo8L2c+Cjwvc3ZnPgo=",e.prevPageIconSvg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOCAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9ImNoZXZyb25fbGVmdCI+CjxtY
1XNrIGlkPSJtYXNrMF8yMDM2XzMyNDAiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjAiIHk9IjAiIHdpZHRoPSIyOCIgaGVpZ2h0PSIyOCI+CjxyZWN0IGlkPSJCb3VuZGluZyBib3giIHdpZHRoPSIyOCIgaGVpZ2h0PSIyOCIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC45MiIvPgo8L21hc2s+CjxnIG1hc2s9InVybCgjbWFzazBfMjAzNl8zMjQwKSI+CjxwYXRoIGlkPSJjaGV2cm9uX2xlZnRfMiIgZD0iTTE2LjMzMzMgMjFMOS4zMzMzMyAxNEwxNi4zMzMzIDdMMTcuOTY2NyA4LjYzMzMzTDEyLjYgMTRMMTcuOTY2NyAxOS4zNjY3TDE2LjMzMzMgMjFaIiBmaWxsPSIjMTMxMzEzIi8+CjwvZz4KPC9nPgo8L3N2Zz4K",e.restartIconSvg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzVfNDg5ODEiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjQiIHk9IjQiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+CjxyZWN0IHg9IjQiIHk9IjQiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC45MiIvPgo8L21hc2s+CjxnIG1hc2s9InVybCgjbWFzazBfNV80ODk4MSkiPgo8cGF0aCBkPSJNMTYgMjRDMTMuNzY2NyAyNCAxMS44NzUgMjMuMjI1IDEwLjMyNSAyMS42NzVDOC43NzUgMjAuMTI1IDggMTguMjMzMyA4IDE2QzggMTMuNzY2NyA4Ljc3NSAxMS44NzUgMTAuMzI1IDEwLjMyNUMxMS44NzUgOC43NzUgMTMuNzY2NyA4IDE2IDhDMTcuMTUgOCAxOC4yNSA4LjIzNzUgMTkuMyA4LjcxMjVDMjAuMzUgOS4xODc1IDIxLjI1I
1DkuODY2NjcgMjIgMTAuNzVWOEgyNFYxNUgxN1YxM0gyMS4yQzIwLjY2NjcgMTIuMDY2NyAxOS45Mzc1IDExLjMzMzMgMTkuMDEyNSAxMC44QzE4LjA4NzUgMTAuMjY2NyAxNy4wODMzIDEwIDE2IDEwQzE0LjMzMzMgMTAgMTIuOTE2NyAxMC41ODMzIDExLjc1IDExLjc1QzEwLjU4MzMgMTIuOTE2NyAxMCAxNC4zMzMzIDEwIDE2QzEwIDE3LjY2NjcgMTAuNTgzMyAxOS4wODMzIDExLjc1IDIwLjI1QzEyLjkxNjcgMjEuNDE2NyAxNC4zMzMzIDIyIDE2IDIyQzE3LjI4MzMgMjIgMTguNDQxNyAyMS42MzMzIDE5LjQ3NSAyMC45QzIwLjUwODMgMjAuMTY2NyAyMS4yMzMzIDE5LjIgMjEuNjUgMThIMjMuNzVDMjMuMjgzMyAxOS43NjY3IDIyLjMzMzMgMjEuMjA4MyAyMC45IDIyLjMyNUMxOS40NjY3IDIzLjQ0MTcgMTcuODMzMyAyNCAxNiAyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuOTIiLz4KPC9nPgo8L3N2Zz4K",e.playResumeIconSvg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InBsYXlfYXJyb3ciPgo8cmVjdCB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHJ4PSIyNCIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC42Ii8+CjxwYXRoIGlkPSJwbGF5X2Fycm93XzIiIGQ9Ik0xOCAzNlYxMkwzNiAyNEwxOCAzNloiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOTIiLz4KPC9nPgo8L3N2Zz4K",e.pauseResumeIconSvg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InBsYXlfYXJyb3ciPgo8cmVjdCB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHJ4PSIyNCIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC42Ii8+CjxwYXRoIGlkPSJwYXVzZSIgZD0iTTI3IDM2VjEySDMzVjM2SDI3Wk0xNSAzNlYxMkgyMVYzNkgxNVoiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOTIiLz4KPC9nPgo8L3N2Zz4K",e.arrowUpCtaIconSvg="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyMCA4IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJtMTggNy43LTAuNy0wLjItNy4zLTQtNy4zIDRjLTAuNyAwLjQtMS42IDAuMi0yLTAuNi0wLjQtMC43LTAuMS0xLjYgMC42LTJsOC00LjRhMiAyIDAgMCAxIDEuNSAwbDggNC40YzAuNyAwLjQgMSAxLjMgMC42IDItMC40IDAuNS0wLjkgMC44LTEuNCAwLjh6Ii8+Cjwvc3ZnPgo=",e.externalLinkIconSvg="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY3Jvc3NvcmlnaW49ImFub255bW91cyI+CjxwYXRoIGQ9Im0xMiAwYzYuNiAwIDEyIDUuNCAxMiAxMnMtNS40IDEyLTEyIDEyLTEyLTUuNC0xMi0xMiA1LjQtMTIgMTItMTJ6IiBmaWxsLW9wYWNpdHk9Ii4xIi8+CjxwYXRoIGQ9Im0xMy44IDE0LjYgMC4yIDAuNS0wLjIgMC41LTEuNSAxLjRjLTAuNyAwLjctMS43IDEuMS0yLjcgMS4xYTQgNCAwIDAgMS0yLjctMS4xIDMuOSAzLjkgMCAwIDEtMS4xLTIuNyA0IDQgMCAwIDEgMS4xLTIuN2wxLjUtMS41IDAuNS0wLjEgMC41IDAuMiAwLjIgMC41LTAuMiAwLjUtMS41IDEuNWMtMC41IDAuNS0wLjcgMS4xLTAuNyAxLjdzMC4zIDEuMyAwLjcgMS43YzAuNSAwLjUgMS4xIDAuNyAxLjcgMC43czEuMy0wLjMgMS43LTAuN2wxLjUtMS41YzAuMy0wLjMgMC43LTAuMyAxIDB6bTMuMi03LjZhMy45IDMuOSAwIDAgMC0yLjctMS4xIDQgNCAwIDAgMC0yLjcgMS4xbC0xLjUgMS41LTAuMSAwLjQgMC4yIDAuNSAwLjUgMC4yIDAuNS0wLjIgMS41LTEuNWMwLjUtMC41IDEuMS0wLjcgMS43LTAuN3MxLjMgMC4zIDEuNyAwLjdjMC41IDAuNSAwLjcgMS4xIDAuNyAxLjdzLTAuMyAxLjMtMC43IDEuN2wtMS41IDEuNS0wLjIgMC41IDAuMiAwLjUgMC41IDAuMiAwLjUtMC4yIDEuNS0xLjVjMC43LTAuNyAxLjEtMS43IDEuMS0yLjctMC4xLTEtMC41LTEuOS0xLjItMi42em0tNy45IDcuMiAwLjIgMC41IDAuNSAwLjIgMC41LTAuMiA0LjUtNC41IDAuMi0wLjUtMC4yLTAuNWMtMC4zLTAuMi0wLjgtMC4yLTEgMC4xbC00LjUgNC41eiIvPgo8L3N2Zz4K",e.fullscreenEnterIconSvg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzkxNTFfNTE4OSIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMCIgeT0iMCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSIjRDlEOUQ5Ii8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF85MTUxXzUxODkpIj4KPHBhdGggZD0iTTUgMjFDNC40NSAyMSAzLjk3OTE3IDIwLjgwNDIgMy41ODc1IDIwLjQxMjVDMy4xOTU4MyAyMC4wMjA4IDMgMTkuNTUgMyAxOVYxNUg1VjE5SDlWMjFINVpNMTUgMjFWMTlIMTlWMTVIMjFWMTlDMjEgMTkuNTUgMjAuODA0MiAyMC4wMjA4IDIwLjQxMjUgMjAuNDEyNUMyMC4wMjA4IDIwLjgwNDIgMTkuNTUgMjEgMTkgMjFIMTVaTTMgOVY1QzMgNC40NSAzLjE5NTgzIDMuOTc5MTcgMy41ODc1IDMuNTg3NUMzLjk3OTE3IDMuMTk1ODMgNC40NSAzIDUgM0g5VjVINVY5SDNaTTE5IDlWNUgxNVYzSDE5QzE5LjU1IDMgMjAuMDIwOCAzLjE5NTgzIDIwLjQxMjUgMy41ODc1QzIwLjgwNDIgMy45NzkxNyAyMSA0LjQ1IDIxIDVWOUgxOVoiIGZpbGw9IiNGMEYwRjAiLz4KPC9nPgo8L3N2Zz4K",e.fullscreenExitIconSvg="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjNWY2MzY4Ij48cGF0aCBkPSJNMjQwLTEyMHYtMTIwSDEyMHYtODBoMjAwdjIwMGgtODBabTQwMCAwdi0yMDBoMjAwdjgwSDcyMHYxMjBoLTgwWk0xMjAtNjQwdi04MGgxMjB2LTEyMGg4MHYyMDBIMTIwWm01MjAgMHYtMjAwaDgwdjEyMGgxMjB2ODBINjQwWiIvP
1jwvc3ZnPg==",e.arrowDownMomentIconSvg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuNjY2NjcgMThWNS43MzMzMkwxLjg2NjY3IDEwLjUzMzNMMCA4LjY2NjY2TDggMC42NjY2NTZMMTYgOC42NjY2NkwxNC4xMzMzIDEwLjUzMzNMOS4zMzMzMyA1LjczMzMyVjE4SDYuNjY2NjdaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjkyIi8+Cjwvc3ZnPgo=",e.arrowUpMomentIconSvg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIKICAgICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxnIHRyYW5zZm9ybT0ic2NhbGUoMSAtMSkgdHJhbnNsYXRlKDAgLTE2KSI+CiAgICA8cGF0aCBkPSJNNi42NjY2NyAxOFY1LjczMzMyTDEuODY2NjcgMTAuNTMzM0wwIDguNjY2NjZMOCAwLjY2NjY1NkwxNiA4LjY2NjY2TDE0LjEzMzMgMTAuNTMzM0w5LjMzMzMzIDUuNzMzMzJWMThINi42NjY2N1oiIAogICAgICAgICAgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC45MiIvPgogIDwvZz4KPC9zdmc+",e.newPageIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzk0NDlfOTc2NyIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMCIgeT0iMCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSIjRDlEOUQ5Ii8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF85NDQ5Xzk3NjcpIj4KPHBhdGggZD0iTTUgMjFDNC40NSAyMSAzLjk3OTE3IDIwLjgwNDIgMy41ODc1IDIwLjQxMjVDMy4xOTU4MyAyMC4wMjA4IDMgMTkuNTUgMyAxOVY1QzMgNC40NSAzLjE5NTgzIDMuOTc5MTcgMy41ODc1IDMuNTg3NUMzLjk3OTE3IDMuMTk1ODMgNC40NSAzIDUgM0gxMlY1SDVWMTlIMTlWMTJIMjFWMTlDMjEgMTkuNTUgMjAuODA0MiAyMC4wMjA4IDIwLjQxMjUgMjAuNDEyNUMyMC4wMjA4IDIwLjgwNDIgMTkuNTUgMjEgMTkgMjFINVpNOS43IDE1LjdMOC4zIDE0LjNMMTcuNiA1SDE0VjNIMjFWMTBIMTlWNi40TDkuNyAxNS43WiIgZmlsbD0iI0YwRjBGMCIvPgo8L2c+Cjwvc3ZnPgo=",e.closedCaptionsOnIconSvg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzIxOF80NzAiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjAiIHk9IjAiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+CjxyZWN0IHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iI0Q5RDlEOSIvPgo8L21hc2s+CjxnIG1hc2s9InVybCgjbWFzazBfMjE4XzQ3MCkiPgo8cGF0aCBkPSJNNSAyMEM0LjQ1IDIwIDMuOTc5MTcgMTkuODA0MiAzLjU4NzUgMTkuNDEyNUMzLjE5NTgzIDE5LjAyMDggMyAxOC41NSAzIDE4VjZDMyA1LjQ1IDMuMTk1ODMgNC45NzkxNyAzLjU4NzUgNC41ODc1QzMuOTc5MTcgNC4xOTU4MyA0LjQ1IDQgNSA0SDE5QzE5LjU1IDQgMjAuMDIwOCA0LjE5NTgzIDIwLjQxMjUgNC41ODc1QzIwLjgwNDIgNC45NzkxNyAyMSA1LjQ1IDIxIDZWMThDMjEgMTguNTUgMjAuODA0MiAxOS4wMjA4IDIwLjQxMjUgMTkuNDEyNUMyMC4wMjA4IDE5LjgwNDIgMTkuNTUgMjAgMTkgMjBINVpNNSAxOEgxOVY2SDVWMThaTTcgMTVIMTBDMTAuMjgzMyAxNSAxMC41MjA4IDE0LjkwNDIgMTAuNzEyNSAxNC43MTI1QzEwLjkwNDIgMTQuNTIwOCAxMSAxNC4yODMzIDExIDE0VjEzSDkuNVYxMy41SDcuNVYxMC41SDkuNVYxMUgxMVYxMEMxMSA5LjcxNjY3IDEwLjkwNDIgOS40NzkxNyAxMC43MTI1IDkuMjg3NUMxMC41MjA4IDkuMDk1ODMgMTAuMjgzMyA5IDEwIDlIN0M2LjcxNjY3IDkgNi40NzkxNyA5LjA5NTgzIDYuMjg3NSA5LjI4NzVDNi4wOTU4MyA5LjQ3OTE3IDYgOS43MTY2NyA2IDEwVjE0QzYgMTQuMjgzMyA2LjA5NTgzIDE0LjUyMDggNi4yODc1IDE0LjcxMjVDNi40NzkxNyAxNC45MDQyIDYuNzE2NjcgMTUgNyAxNVpNMTQgMTVIMTdDMTcuMjgzMyAxNSAxNy41MjA4IDE0LjkwNDIgMTcuNzEyNSAxNC43MTI1QzE3LjkwNDIgMTQuNTIwOCAxOCAxNC4yODMzIDE4IDE0VjEzSDE2LjVWMTMuNUgxNC41VjEwLjVIMTYuNVYxMUgxOFYxMEMxOCA5LjcxNjY3IDE3LjkwNDIgOS40NzkxNyAxNy43MTI1IDkuMjg3NUMxNy41MjA4IDkuMDk1ODMgMTcuMjgzMyA5IDE3IDlIMTRDMTMuNzE2NyA5IDEzLjQ3OTIgOS4wOTU4MyAxMy4yODc1IDkuMjg3NUMxMy4wOTU4IDkuNDc5MTcgMTMgOS43MTY2NyAxMyAxMFYxNEMxMyAxNC4yODMzIDEzLjA5NTggMTQuNTIwOCAxMy4yODc1IDE0LjcxMjVDMTMuNDc5MiAxNC45MDQyIDEzLjcxNjcgMTUgMTQgMTVaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjkyIi8+CjwvZz4KPC9zdmc+Cg==",e.closedCaptionsOffIconSvg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzIxOF80NjQiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjAiIHk9IjAiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+CjxyZWN0IHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iI0Q5RDlEOSIvPgo8L21hc2s+CjxnIG1hc2s9InVybCgjbWFzazBfMjE4XzQ2NCkiPgo8cGF0aCBkPSJNOS4wMjUwNSA5LjAwMDJMMTAuNTI1IDEwLjUwMDJINy41MDAwNVYxMy41MDAySDkuNTAwMDVWMTMuMDAwMkgxMVYxNC4wMDAyQzExIDE0LjI4MzUgMTAuOTA0MiAxNC41MjEgMTAuNzEyNSAxNC43MTI3QzEwLjUyMDkgMTQuOTA0NCAxMC4yODM0IDE1LjAwMDIgMTAgMTUuMDAwMkg3LjAwMDA1QzYuNzE2NzIgMTUuMDAwMiA2LjQ3OTIyIDE0LjkwNDQgNi4yODc1NSAxNC43MTI3QzYuMDk1ODggMTQuNTIxIDYuMDAwMDUgMTQuMjgzNSA2LjAwMDA1IDE0LjAwMDJWMTAuMDAwMkM2LjAwMDA1IDkuNzE2ODYgNi4wOTU4OCA5LjQ3OTM2IDYuMjg3NTUgOS4yODc3QzYuNDc5MjIgOS4wOTYwMyA2LjcxNjcyIDkuMDAwMiA3LjAwMDA1IDkuMDAwMkg5LjAyNTA1Wk02Ljg3NTA1IDQuMDAwMkgxOUMxOS41NSA0LjA
1wMDIgMjAuMDIwOSA0LjE5NjAzIDIwLjQxMjUgNC41ODc3QzIwLjgwNDIgNC45NzkzNiAyMSA1LjQ1MDIgMjEgNi4wMDAyVjE4LjEyNTJMMTkgMTYuMTI1MlY2LjAwMDJIOC44NzUwNUw2Ljg3NTA1IDQuMDAwMlpNMTggMTMuMDAwMlYxNC4wMDAyQzE4IDE0LjE1MDIgMTcuOTcwOSAxNC4yOTYgMTcuOTEyNSAxNC40Mzc3QzE3Ljg1NDIgMTQuNTc5NCAxNy43NjY3IDE0LjY5MTkgMTcuNjUgMTQuNzc1MkwxNi4zNzUgMTMuNTAwMkgxNi41VjEzLjAwMDJIMThaTTE2LjUgMTEuMDAwMlYxMC41MDAySDE0LjVWMTEuNjI1MkwxMyAxMC4xMjUyVjEwLjAwMDJDMTMgOS43MTY4NiAxMy4wOTU5IDkuNDc5MzYgMTMuMjg3NSA5LjI4NzdDMTMuNDc5MiA5LjA5NjAzIDEzLjcxNjcgOS4wMDAyIDE0IDkuMDAwMkgxN0MxNy4yODM0IDkuMDAwMiAxNy41MjA5IDkuMDk2MDMgMTcuNzEyNSA5LjI4NzdDMTcuOTA0MiA5LjQ3OTM2IDE4IDkuNzE2ODYgMTggMTAuMDAwMlYxMS4wMDAySDE2LjVaTTQuMjAwMDUgNC4xNzUyTDYuMDI1MDUgNi4wMDAySDUuMDAwMDVWMTguMDAwMkgxNS4xNzVMMC42NzUwNDkgMy41MDAyTDIuMTAwMDUgMi4wNzUyTDIxLjkgMjEuODc1MkwyMC40NzUgMjMuMzAwMkwxNy4xNzUgMjAuMDAwMkg1LjAwMDA1QzQuNDUwMDUgMjAuMDAwMiAzLjk3OTIyIDE5LjgwNDQgMy41ODc1NSAxOS40MTI3QzMuMTk1ODggMTkuMDIxIDMuMDAwMDUgMTguNTUwMiAzLjAwMDA1IDE4LjAwMDJWNi4wMDAyQzMuMDAwMDUgNS41ODM1MyAzLjExMjU1IDUuMjEyNyAzLjMzNzU1IDQuODg3N0MzLjU2MjU1IDQuNTYyNyAzLjg1MDA1IDQuMzI1MiA0LjIwMDA1IDQuMTc1MloiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOTIiLz4KPC9nPgo8L3N2Zz4K",e.shareVideosIconSvg="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjNWY2MzY4Ij48cGF0aCBkPSJNNjgwLTgwcS01MCAwLTg1LTM1dC0zNS04NXEwLTYgMy0yOEwyODItMzkycS0xNiAxNS0zNyAyMy41dC00NSA4LjVxLTUwIDAtODUtMzV0LTM1LTg1cTAtNTAgMzUtODV0ODUtMzVxMjQgMCA0NSA4LjV0MzcgMjMuNWwyODEtMTY0cS0yLTctMi41LTEzLjVUNTYwLTc2MHEwLTUwIDM1LTg1dDg1LTM1cTUwIDAgODUgMzV0MzUgODVxMCA1MC0zNSA4NXQtODUgMzVxLTI0IDAtNDUtOC41VDU5OC02NzJMMzE3LTUwOHEyIDcgMi41IDEzLjV0LjUgMTQuNXEwIDgtLjUgMTQuNVQzMTctNDUybDI4MSAxNjRxMTYtMTUgMzctMjMuNXQ0NS04LjVxNTAgMCA4NSAzNXQzNSA4NXEwIDUwLTM1IDg1dC04NSAzNVptMC04MHExNyAwIDI4LjUtMTEuNVQ3MjAtMjAwcTAtMTctMTEuNS0yOC41VDY4MC0yNDBxLTE3IDAtMjguNSAxMS41VDY0MC0yMDBxMCAxNyAxMS41IDI4LjVUNjgwLTE2MFpNMjAwLTQ0MHExNyAwIDI4LjUtMTEuNVQyNDAtNDgwcTAtMTctMTEuNS0yOC41VDIwMC01MjBxLTE3IDAtMjguNSAxMS41VDE2MC00ODBxMCAxNyAxMS41IDI4LjVUMjAwLTQ0MFptNDgwLTI4MHExNyAwIDI4LjUtMTEuNVQ3MjAtNzYwcTAtMTctMTEuNS0yOC41VDY4MC04MDBxLTE3IDAtMjguNSAxMS41VDY0MC03NjBxMCAxNyAxMS41IDI4LjVUNjgwLTcyMFptMCA1MjBaTTIwMC00ODBabTQ4MC0yODBaIi8+PC9zdmc+",e.linkIconSvg
1="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjNWY2MzY4Ij48cGF0aCBkPSJNNDQwLTI4MEgyODBxLTgzIDAtMTQxLjUtNTguNVQ4MC00ODBxMC04MyA1OC41LTE0MS41VDI4MC02ODBoMTYwdjgwSDI4MHEtNTAgMC04NSAzNXQtMzUgODVxMCA1MCAzNSA4NXQ4NSAzNWgxNjB2ODBaTTMyMC00NDB2LTgwaDMyMHY4MEgzMjBabTIwMCAxNjB2LTgwaDE2MHE1MCAwIDg1LTM1dDM1LTg1cTAtNTAtMzUtODV0LTg1LTM1SDUyMHYtODBoMTYwcTgzIDAgMTQxLjUgNTguNVQ4ODAtNDgwcTAgODMtNTguNSAxNDEuNVQ2ODAtMjgwSDUyMFoiLz48L3N2Zz4=",e.checkMarkSvg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzUxMl8xMDY4IiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIwIiB5PSIwIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiPgo8cmVjdCB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9IiNEOUQ5RDkiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzUxMl8xMDY4KSI+CjxwYXRoIGQ9Ik05LjU1MDEgMThMMy44NTAxIDEyLjNMNS4yNzUxIDEwLjg3NUw5LjU1MDEgMTUuMTVMMTguNzI1MSA1Ljk3NDk4TDIwLjE1MDEgNy4zOTk5OEw5LjU1MDEgMThaIiBmaWxsPSIjRjBGMEYwIi8+CjwvZz4KPC9zdmc+Cg==",e.plusSvg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgICAgICA8bGluZSB4MT0iNS45NTcxOCIgeTE9IjEyIiB4Mj0iNS45NTcxOCIgeTI9IjMuOTM0MDNlLTA4IiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIxLjgiLz4KICAgICAgICA8bGluZSB5MT0iNS45NTcwNiIgeDI9IjEyIiB5Mj0iNS45NTcwNiIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMS44Ii8+CiAgICAgIDwvc3ZnPg=="},1643:function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(4131),e)},1699:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BANNER_REQUEST_DEBOUNCE_MS=e.BANNER_REFRESH_INTERVAL=e.IMA_RATIOS=void 0,e.IMA_RATIOS={general:"1x1",horizontal:"640x480",vertical:"1080x1920"},e.BANNER_REFRESH_INTERVAL=3e4,e.BANNER_REQUEST_DEBOUNCE_MS=200},1712:function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(6994),e),o(i(7958),e),o(i(7951),e),o(i(8832),e),o(i(2204),e)},1740:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeTimer=void 0;const n=i(8921),o=i(4403),r="00:00";e.BlazeTimer=class extends HTMLElement{constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),this.currentTimeText=n.WidgetsFactory.create("blaze-div"),this.totalTimeText=n.WidgetsFactory.create("blaze-div"),this.totalTimeDivider=n.WidgetsFactory.create("blaze-div")}connectedCallback(){this.attachStyles(),this.createDOM()}disconnectedCallback(){}set hidden(t){t?(this.classList.add("hidden"),this.style.display="none"):(this.style.display="flex",setTimeout(()=>{this.removeAttribute("hidden"),this.classList.remove("hidden")},250))}attachStyles(){const t=o.TextScaleService.getScale(),e=12*t,i=22*t,n=document.createElement("style");n.textContent="\n      :host {\n        display: flex;\n        transition: opacity 0.5s ease, transform 0.5s ease;\n        opacity: 1;\n        transform: translateY(0);\n        font-size: "+e+"px;\n        font-weight: 400;\n        color: #fff;\n        background: rgba(0, 0, 0, 0.34);\n        border-radius: 10px;\n        position: relative;\n        pointer-events: none;\n        z-index: 2;\n        padding: 5px 10px;\n      }\n\n      :host(.seeking-layout) {\n        align-self: center;\n        opacity: 1;\n        transform: translateY(0);\n      }\n\n      :host(.player-layout) {\n        align-self: flex-start;\n        opacity: 1;\n        transform: translateY(0);\n      }\n\n      :host(.hidden) {\n        opacity: 0;\n        transform: translateY(-20px);\n      }
1\n\n      .time-text {\n        width: auto;\n        text-align: center;\n        overflow: hidden;\n        white-space: nowrap;\n        font-size: "+e+"px; \n      }\n\n      .current-time-text-seeking {\n        font-size: "+i+"px;\n        width: auto;\n      }\n\n      .current-time-text-player {\n        font-size: "+e+"px;\n        width: auto;\n      }\n\n      .divider {\n        width: 10px; \n        text-align: center;\n        overflow: hidden;\n        white-space: nowrap;\n      }\n\n      .hidden {\n        display: none;\n      }\n\n      .visible {\n        display: block;\n      }\n\n      blaze-div {\n        display: inline-block;\n      }\n    ",this.shadow.appendChild(n)}createDOM(){this.currentTimeText.classList.add("time-text","current-time-text-player"),this.currentTimeText.textContent=r,this.totalTimeDivider.classList.add("divider","visible"),this.totalTimeDivider.textContent="/",this.totalTimeText.classList.add("time-text","current-time-text-player"),this.totalTimeText.textContent=r,this.shadow.appendChild(this.currentTimeText),this.shadow.appendChild(this.totalTimeDivider),this.shadow.appendChild(this.totalTimeText),this.setLayout("player")}updateCurrentTime(t){this.currentTimeText.textContent=this.formatTime(t)}updateTotalTime(t){this.totalTimeText.textContent=this.formatTime(t),this.hidden=!1}resetTimer(){this.hidden=!0,this.currentTimeText.textContent=r,this.totalTimeText.textContent=r}setLayout(t){"seeking"===t?this.applySeekingLayout():"player"===t&&this.applyPlayerLayout()}applySeekingLayout(){this.totalTimeDivider.classList.add("hidden"),this.totalTimeText.classList.add("hidden"),this.totalTimeDivider.classList.remove("visible"),this.totalTimeText.classList.remove("visible"),this.classList.add("seeking-layout"),this.classList.remove("player-layout"),this.currentTimeText.classList.add("current-time-text-seeking"),this.currentTimeText.classList.remove("current-time-text-player")}applyPlayerLayout(){this.totalTimeDivider.classList.add("visible"),this.totalTimeText.classList.add("visible"),this.totalTimeDivider.classList.remove("hidden"),this.totalTimeText.classList.remove("hidden"),this.classList.add("player-layout"),this.classList.remove("seeking-layout"),this.currentTimeText.classList.add("current-time-text-player"),this.currentTimeText.classList.remove("current-time-text-seeking")}formatTime(t){const e=Math.floor(t/3600),i=Math.floor(t%3600/60),n=Math.floor(t%60);return e>0?this.padZero(e)+":"+this.padZero(i)+":"+this.padZero(n):this.padZero(i)+":"+this.padZero(n)}padZero(t){return t<10?"0"+t:""+t}}},1758:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1841:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetCustomLayout=void 0;const o=i(6450),r=i(9965),s=i(8921),a=i(4545),l=i(9266),d=i(6627);e.BlazeWidgetCustomLayout=class extends d.WidgetBaseLayout{constructor(t){super(),this.customRenderer=t,this.customContainer=s.WidgetsFactory.create("blaze-div"),this.customContainer.className="blaze-custom-widget-container",this.intersectionObserver=new IntersectionObserver(this.handleIntersection.bind(this)),a.ConfigService.runInShadowDom&&this.attachShadow({mode:"open"})}getContainer(){return this.customContainer}getContents(){return(0,l.transformContentsArray)(this.contents)}connectedCallback(){var t;(0,l.setId)(this,"blaze-custom-layout"),super.connectedCallback(),this.setStyle({display:"block",width:"100%",height:"100%",outline:"none",direction:a.ConfigService.layoutDirection}),(null!==(t=this.shadowRoot)&&void 0!==t?t:this).appendChild(this.customContainer),this.intersectionObserver.observe(this),this.shouldReloadData&&this.loadContent()}disconnectedCallback(){var t,e,i,n,o;super.disconnectedCallback(),this.intersectionObserver.disconnect(),null===(e=(t=this.customRenderer).destroy)||void 0===e||e.call(t),null===(i=this.storysModal)||void 0===i||i.remove(),null===(n=this.momentsModal)||void 0===n||n.remove(),null===(o=this.videosModal)||void 0===o||o.remove()}handleIntersection(t){const e=t.find(t=>t.target===this);e&&e.isIntersecting&&(this.isWidgetVisible=!0,this.event(o.WidgetAction.Visible,{},this.getAttribute("labels")),this.intersectionObserver.disconnect())}reload(){this.shouldReloadData=!0,this.loadContent()}updateWidgetUI(){this.reorderWidgets(),this.render()}setMaxItemsDisplaySize(t){this.setAttribute("max-display-items-count",t.toString())}updateOverrideStyles(){}setId(t){this.id="widget-custom-layout-"+t}handlePostContentLoad(t,e,i){return n(this,void 0,void 0,function*(){this.updateWidgetsData(),this.reorderWidgets(),this.setupModalContent(t?"story":e?"moment":"video"),this.render(),t?this.handleStoryContent():e?this.handleMomentContent():i&&this.handleVideoContent(),this.shouldReloadData=!1,a.EventService.dispatch(this,r.Delegation.onWidgetDataLoadCompleted,{widgetId:this.id,storyCount:this.contents.length,contentCount:this.contents.length}),this.isWidgetVisible&&this.contents.length&&this.event(o.WidgetAction.Visible,{},this.getAttribute("labels")),this.event(o.WidgetAction.Load,{},this.getAttribute("labels"))})}reorderWidgetItems(){}updateWidgetDisplay(){}setupModalContent(t){"story"===t&&this.storysModal?this.storysModal.setModalContent(this.contents,0):"moment"===t&&this.momentsModal?this.momentsModal.setModalContent(this.contents,0,this.defaultAdsInfo):"video"===t&&this.videosModal&&this.videosModal.setModalContent(this.contents)}playContentById(t){if(!this.contents.find(e=>e.id===t))return;const e=this.getAttribute("content-type")||"story";a.VideoPlayerService.playReference="Widget","story"===e&&this.storysModal?this.playStory(t):"moment"===e&&this.momentsModal?this.playMoment(t):"video"===e&&this.videosModal&&this.playVideo(t)}render(){this.contents.length&&(this.customContainer.innerHTML="",this.customRenderer.render((0,l.transformContentsArray)(this.contents),this.customContainer,this.playContentById.bind(this)))}setupVideoModalCallbacks(){this.videosModal&&this.videosModal.addEventListener("onPlayerClosed",()=>{this.updateWidgetsData()})}setupMomentModalCallbacks(){this.momentsModal&&this.momentsModal.addEventListener("onPlayerClosed",()=>{this.updateWidgetsData()})}setupStoryModalCallbacks(){this.storysModal&&this.storysModal.addEventListener("onWidgetPlayerDismissed",()=>{this.updateWidgetsData()})}}},1868:(t,e,i)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeCallToActionButton=e.CTA_BUTTON_ATTRIBUTES=void 0;const n=i(4403),o=i(8921),r=i(277),s=i(4906),a=i(3574),l=i(9266);e.CTA_BUTTON_ATTRIBUTES={HiddenBtn:"hidden-btn",Width:"width",Height:"height",Margin:"margin",Text:"text",Href:"href",IconUrl:"icon-url",IconSize:"icon-size",IconColor:"icon-color",ArrowIconDisplay:"arrow-icon-display",ArrowIconColor:"arrow-icon-color",DisplayIcon:"display-icon"},e.BlazeCallToActionButton=class extends n.BaseWidget{constructor(){super(),this.anchorButtonElement=document.createElement("a"),this.iconButtonElement=o.WidgetsFactory.create("blaze-button"),this.iconArrowElement=o.WidgetsFactory.create("blaze-button"),this.ctaTextElement=o.WidgetsFactory.create("blaze-div"),this.isButtonCreated=!1,this.animationTimeouts=[],this.initializeAttributes(),this.initializeStyles()}initializeAttributes(){this.setAttribute("data-testid","cta-button"),this.anchorButtonElement.setAttribute("target","_blank"),this.iconButtonElement.setAttribute(e.CTA_BUTTON_ATTRIBUTES.Width,"24px"),this.iconButtonElement.setAttribute(e.CTA_BUTTON_ATTRIBUTES.Height,"24px"),this.iconButtonElement.setAttribute(e.CTA_BUTTON_ATTRIBUTES.DisplayIcon,"false"),this.iconArrowElement.setAttribute(e.CTA_BUTTON_ATTRIBUTES.Width,"26px"),this.iconArrowElement.setAttribute(e.CTA_BUTTON_ATTRIBUTES.Height,"26px"),this.iconArrowElement.setIconUrl(r.arrowUpCtaIconSvg)}initializeStyles(){(0,l.mergeStyles)(this,{display:"none",cursor:"pointer",outline:"inherit",pointerEvents:"all"}),this.anchorButtonElement.style.position="relative",this.anchorButtonElement.style["-webkit-touch-callout"]="none",this.anchorButtonElement.style["-webkit-user-select"]="none",this.setAnchorButtonStyles({width:"auto",height:"100%",textDecoration:"none",outline:"1px solid",outlineColor:s.Colors.White,fontWeight:"700",fontSize:"16px",borderRadius:"8px",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"row"}),this.iconArrowElement.setStyle({display:"none",position:"absolute",top:"-26px"}),this.setCtaTextStyle({position:"inline-flex",letterSpacing:"0.3px",display:"inline-flex",flex:"1 1 auto",alignSelf:"center",paddingRight:"20px",whiteSpace:"nowrap"})}static get observedAttributes(){return Object.values(e.CTA_BUTTON_ATTRIBUTES)}connectedCallback(){this.createButton()}disconnectedCallback(){}attributeChangedCallback(t,i,n){if(i!==n)switch(t){case e.CTA_BUTTON_ATTRIBUTES.HiddenBtn:this.style.display="true"===n?"none":"flex";break;case e.CTA_BUTTON_ATTRIBUTES.Width:this.anchorButtonElement.style.width=n;break;case e.CTA_BUTTON_ATTRIBUTES.Margin:this.anchorButtonElement.style.margin=n;break;case e.CTA_BUTTON_ATTRIBUTES.Text:this.ctaTextElement.innerText=n;break;case e.CTA_BUTTON_ATTRIBUTES.Href:this.anchorButtonElement.href=n;break;case e.CTA_BUTTON_ATTRIBUTES.IconUrl:this.iconButtonElement.setIconUrl(n);break;case e.CTA_BUTTON_ATTRIBUTES.IconSize:this.iconButtonElement.setAttribute(e.CTA_BUTTON_ATTRIBUTES.Height,n),this.iconButtonElement.setAttribute(e.CTA_BUTTON_ATTRIBUTES.Width,n);break;case e.CTA_BUTTON_ATTRIBUTES.IconColor:this.iconButtonElement.setAttribute(e.CTA_BUTTON_ATTRIBUTES.IconColor,n);break;case e.CTA_BUTTON_ATTRIBUTES.ArrowIconDisplay:this.iconButtonElement.style.display="true"===n?"inline-flex":"none";break;case e.CTA_BUTTON_ATTRIBUTES.ArrowIconColor:this.iconArrowElement.style.display="true"===n?"flex":"none";break;case e.CTA_BUTTON_ATTRIBUTES.DisplayIcon:this.iconArrowElement.setAttribute(e.CTA_BUTTON_ATTRIBUTES.IconColor,n)}}createButton(){this.isButtonCreated||(this.anchorButtonElement.append(this.iconButtonElement),this.anchorButtonElement.append(this.ctaTextElement),this.anchorButtonElement.append(this.iconArrowElement),this.append(this.anchorButtonElement),this.isButtonCreated=!0)}animateElement(t,e,i,n,o){t.style.animation="none",t.offsetWidth;const r=setTimeout(()=>{const n=a.animationCssMapper[e];n&&(t.style.animation=n+" "+i+"s cubic-bezier(0.4, 0, 0, 0.99) "+o+" forwards"),this.animationTimeouts=this.animationTimeouts.filter(t=>t!==r)},n);this.animationTimeouts.push(r)}animateButton(t){this.animateElement(this.anchorButtonElement,t,2,3500,1)}animateIcon(t){this.animateElement(this.iconArrowElement,t,3,1e3,3)}setAnchorButtonStyles(t){(0,l.mergeStyles)(this.anchorButtonElement,t)}setCtaTextStyle(t){(0,l.mergeStyles)(this.ctaTextElement,t)}setCtaIconStyles(t){(0,l.mergeStyles)(this.iconButtonElement,t)}
1clearAllAnimations(){this.animationTimeouts.forEach(t=>clearTimeout(t)),this.animationTimeouts=[]}getIconElement(){return this.iconButtonElement}}},1908:function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(7177),e),o(i(551),e),o(i(1740),e),o(i(2654),e),o(i(7357),e),o(i(4014),e),o(i(6025),e),o(i(2601),e),o(i(9191),e),o(i(656),e),o(i(1006),e),o(i(8772),e),o(i(8252),e),o(i(6610),e),o(i(1532),e),o(i(7195),e),o(i(7792),e),o(i(8261),e)},1948:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sortContentByViewedStatus=function(t,e){let i=t.hasViewed,o=e.hasViewed;return(0,n.isStory)(t)&&(0,n.isStory)(e)&&(i=t.pages.every(t=>t.hasViewed),o=e.pages.every(t=>t.hasViewed)),i&&!o?1:!i&&o?-1:0};const n=i(9266)},1977:(t,e)=>{"use strict";var i,n,o,r,s,a,l;Object.defineProperty(e,"__esModule",{value:!0}),e.exposedFieldsByAction=e.InteractionAction=e.ImaAdAction=e.AdAction=e.WidgetAction=e.VideoAction=e.MomentAction=e.StoryAction=void 0,function(t){t.Start="story_start",t.Exit="story_exit",t.PageStart="story_page_start",t.PageExit="story_page_exit",t.CtaClick="cta_click",t.Audio="audio",t.ShareClick="share_click",t.ShareSelect="share_select",t.ShareSuccess="share_success",t.PlaybackPause="playback_pause",t.PlaybackPlay="playback_play",t.PlaybackInitialStart="playback_initial_start",t.Expand="expand",t.Minimize="minimize",t.ClosedCaptionsOff="cc_off",t.ClosedCaptionsOn="cc_on",t.CustomActionButtonClick="custom_action_button_click"}(i||(e.StoryAction=i={})),function(t){t.MomentsPlaylistStart="moments_playlist_start",t.MomentsPlaylistExit="moments_playlist_exit",t.MomentStart="moment_start",t.MomentExit="moment_exit",t.CtaClick="cta_click",t.Like="like",t.Unlike="unlike",t.Audio="audio",t.ShareClick="share_click",t.ShareSuccess="share_success",t.PlaybackPause="playback_pause",t.PlaybackPlay="playback_play",t.PlaybackInitialStart="playback_initial_start",t.ClosedCaptionsOff="cc_off",t.ClosedCaptionsOn="cc_on",t.CustomActionButtonClick="custom_action_button_click",t.Follow="follow",t.Unfollow="unfollow"}(n||(e.MomentAction=n={})),function(t){t.VideoStart="video_start",t.VideoEnd="video_end",t.PlaybackPause="playback_pause",t.PlaybackPlay="playback_play",t.PlaybackInitialStart="playback_initial_start",t.Seek="seek",t.Like="like",t.Unlike="unlike",t.Share="share",t.Audio="audio",t.CtaVisible="cta_visible",t.CtaClick="cta_click",t.CtaDismissed="cta_dismissed",t.ClosedCaptionsOff="cc_off",t.ClosedCaptionsOn="cc_on",t.ScreenChange="screen_change"}(o||(e.VideoAction=o={})),function(t){t.Load="widget_load",t.Visible="widget_visible",t.Click="widget_click",t.SDKInit="sdk_init"}(r||(e.WidgetAction=r={})),function(t){t.Requested="ad_requested",t.View="ad_view",t.Exit="ad_exit",t.Click="ad_click",t.BannerRequested="banner_ad_requested",t.BannerView="banner_ad_view",t.BannerLoad="banner_ad_load",t.BannerClick="banner_ad_click"}(s||(e.AdAction=s={})),function(t){t.REQUESTED="ima_ad_requested",t.ALL_ADS_COMPLETED="ima_all_ads_completed",t.CLICK="ima_ad_clicked",t.COMPLETED="ima_ad_completed",t.LOADED="ima_ad_loaded",t.PAUSED="ima_ad_paused",t.RESUMED="ima_ad_resumed",t.SKIPPED="ima_ad_skipped",t.STARTED="ima_ad_started",t.FIRST_QUARTILE="ima_ad_first_quartile",t.MIDPOINT="ima_ad_midpoint",t.THIRD_QUARTILE="ima_ad_third_quartile"}(a||(e.ImaAdAction=a={})),function(t){t.VIEW="interaction_view",t.ANSWER="interaction_answer",t.AUDIO="audio",t.ShareClick="share_click",t.ShareSelect="share_select",t.ShareSuccess="share_success",t.PlaybackPause="playback_pause",t.PlaybackPlay="playback_play"}(l||(e.InteractionAction=l={}));const d="labels_expression",u="story_id",c="story_title",h="moment_id",p="moment_title",f="moment_duration_viewed_percent",g="audio_state",v="player_type",y="c
1ontent_type",m="playback_action_method",b="cc_state",S="skip_config",E="video_id",C="video_title",w="video_time_start",A="video_time_end",T="video_end_trigger",I="screen_change",M="follow_state",_="localization_setting",x="localization",P=["timestamp_utc","timestamp_user_tz","sdk_version","sdk_type","event_category","event_action","event_type","generated_user_id","external_user_id","content_extra_info","story_page_content_extra_info"],O=["origin_widget_id","origin_widget_name","origin_widget_type","origin_placement_id","origin_placement_name"],L=["placement_id","placement_name","placement_distance","widget_id","widget_size","widget_type","widget_content_count","widget_content_list","content_index","thumbnail_size","thumbnail_aspect_ratio","thumbnail_type","page_view_id"],D=["content_id",y,"content_name"],k=["story_session_id",u,c,"story_page_id","story_page_index","story_page_count","story_page_duration",_,x],N=["moments_session_id",h,p,"moment_index","loop_number","moment_duration",f,g,b,M,_,x],B=["video_session_id",E,C,"video_duration","video_start_trigger","cta_config",I,"player_orientation","device_orientation",g,b,_,x],R=["session_id","locale","user_type","device_type","device_brand","device_model","network_domain","os","os_version","screen_color","screen_resolution","browser","browser_size","browser_version","app_id","app_version","user_agent","connection_type","page_url","referrer_page_type","referrer_page_url","referrer_page_domain","session_referrer_page_type","session_referrer_url","session_referrer_domain","session_referrer_type","advertiser_id","advertiser_name","campaign_id","campaign_name","ad_server","ad_insertion_logic","ad_index","ad_start_trigger","ad_exit_trigger","ad_duration","ad_duration_viewed_percent",m,S],$=[d,g,v,b],z=[...P,...O,...k,...$],j=[...P,...O,...N,...$],F=[...P,...O,...$,...B],U=[...P,...O,...R,m,g,u,c,h,p,E,C,S,y,v];e.exposedFieldsByAction={[i.Start]:[...z,"story_start_trigger"],[i.Exit]:[...z,"story_exit_trigger","content_duration_viewed"],[i.PageStart]:z,[i.PageExit]:[...z,"story_page_navigation_type","story_page_navigation_direction","story_page_duration_viewed_percent"],[i.CtaClick]:z,[i.Audio]:z,[i.ShareClick]:z,[i.ShareSelect]:z,[i.ShareSuccess]:z,[i.PlaybackPause]:[...z,m],[i.PlaybackPlay]:[...z,m],[i.PlaybackInitialStart]:[...z,m],[i.ClosedCaptionsOff]:z,[i.ClosedCaptionsOn]:z,[n.MomentsPlaylistStart]:[...j,"moment_start_trigger"],[n.MomentsPlaylistExit]:[...j,"moment_exit_trigger"],[n.MomentStart]:j,[n.MomentExit]:[...j,"moment_navigation_type","moment_navigation_direction",f],[n.Like]:j,[n.Unlike]:j,["$"+n.CtaClick]:j,["$"+n.Audio]:j,["$"+n.ShareClick]:j,["$"+n.ShareSuccess]:j,["$"+n.PlaybackPause]:[...j,m],["$"+n.PlaybackPlay]:[...j,m],["$"+n.PlaybackInitialStart]:[...j,m],["$"+n.ClosedCaptionsOn]:[...j,b],["$"+n.ClosedCaptionsOff]:[...j,b],["$"+n.Follow]:[...j,M],["$"+n.Unfollow]:[...j,M],[o.VideoStart]:[...F,w],[o.VideoEnd]:[...F,A,T,"next_video_id"],["#"+o.PlaybackPause]:[...F,m,w,T],["#"+o.PlaybackPlay]:[...F,m,w,T],["#"+o.PlaybackInitialStart]:[...F,m,w,T],[o.Seek]:[...F,w,A,"seek_type","seek_total_time","seek_direction"],["#"+o.Like]:[...F,w],["#"+o.Unlike]:[...F,w],["#"+o.Share]:[...F,w],["#"+o.Audio]:[...F,w],[o.CtaVisible]:[...F,w],["#"+o.CtaClick]:[...F,w],[o.CtaDismissed]:[...F,w],["#"+o.ClosedCaptionsOff]:[...F,w],["#"+o.ClosedCaptionsOn]:[...F,w],[o.ScreenChange]:[...F,w,I],[r.Load]:[...P,...L,d,v],[r.Visible]:[...P,...L,d,v],[r.Click]:[...P,...L,...D,v,d],[s.View]:[...P,...O,...R,m,g,u,c,S,y,v],[s.Exit]:[...P,...O,...R,m,g,u,c,S,y,v],[a.REQUESTED]:U,[a.ALL_ADS_COMPLETED]:U,[a.CLICK]:U,[a.COMPLETED]:U,[a.LOADED]:U,[a.PAUSED]:U,[a.RESUMED]:U,[a.SKIPPED]:U,[a.STARTED]:U,[a.FIRST_QUARTILE]:U,[a.MIDPOINT]:U,[a.THIRD_QUARTILE]:U}},2029:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ACCESSIBILITY_ATTRIBUTES=e.ACCESSIBILITY_TIMING=void 0,e.ACCESSIBILITY_TIMING={FOCUS_DELAY:500,LABEL_CLEAR_DELAY:1e3,CONFIG_SCHEDULE_DELAY:1e3},e.ACCESSIBILITY_ATTRIBUTES={ACTIVE_TABINDEX:"0",INACTIVE_TABINDEX:"-1",REGION_ROLE:"region",ARIA_HIDDEN_FALSE:"false",ARIA_HIDDEN_TRUE:"true"}},2111:(t,e)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0})},2169:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},2171:(t,e)=>{"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.ActionHandlerId=void 0,function(t){t.AddCustomActionButton="addCustomActionButton",t.AddFollowButton="addFollowButton"}(i||(e.ActionHandlerId=i={}))},2203:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeButton=e.BUTTON_ATTRIBUTES=void 0;const n=i(4403),o=i(4545),r=i(9266);e.BUTTON_ATTRIBUTES={Disabled:"disabled",BlazeBtnHidden:"blaze-btn-hidden",BlazeBtnVisible:"blaze-btn-visible",Height:"height",Width:"width",IconColor:"icon-color",Order:"order",ButtonDesktopAnimation:"button-desktop-animation"},e.BlazeButton=class extends n.BaseWidget{get refElement(){var t;return null!==(t=this.shadowRoot)&&void 0!==t?t:this}constructor(){super(),this.buttonElement=document.createElement("button"),this.buttonIcon="",this.isAnimationOnDesktopInitialized=!1,this.onKeyDown=(t=>{if("Enter"===t.key||" "===t.key){if(t.preventDefault(),this.buttonElement.disabled||"true"===this.getAttribute("disabled")||""===this.getAttribute("disabled"))return;this.click()}}),this.onMouseEnter=(()=>{this.buttonElement.style.transform="scale(1.1)"}),this.onMouseLeave=(()=>{this.buttonElement.style.transform="scale(1)"}),this.onClick=(()=>{this.buttonElement.animate([{transform:"scale(1)",offset:0},{transform:"scale(0.95)",offset:.5},{transform:"scale(1)",offset:1}],{duration:100,easing:"ease-out"})}),o.ConfigService.runInShadowDom&&this.attachShadow({mode:"open"})}setupFocusDelegation(){this.addEventListener("keydown",this.onKeyDown)}static get observedAttributes(){return Object.values(e.BUTTON_ATTRIBUTES)}connectedCallback(){(0,r.mergeStyles)(this.buttonElement,{cursor:"pointer",color:"inherit",border:"none",padding:"0",display:"block",outline:"inherit",height:this.height||"24px",width:this.width||"24px",margin:"auto",touchAction:"manipulation",transition:"transform 0.3s ease"}),this.buttonElement.setAttribute("tabindex","-1"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.setAttribute("role","button"),this.style.cursor="pointer",this.refElement.append(this.buttonElement),this.setupFocusDelegation()}disconnectedCallback(){this.buttonElement.removeEventListener("mouseenter",this.onMouseEnter),this.buttonElement.removeEventListener("mouseleave",this.onMouseLeave),this.buttonElement.removeEventListener("click",this.onClick),this.removeEventListener("keydown",this.onKeyDown)}attributeChangedCallback(t,i,n){switch(t){case e.BUTTON_ATTRIBUTES.Disabled:const i="true"===n||""===n;this.setIsDisabled(i);break;case e.BUTTON_ATTRIBUTES.BlazeBtnHidden:this.setIsHidden("true"===n);break;case e.BUTTON_ATTRIBUTES.BlazeBtnVisible:this.setIsVisible("true"===n);break;case e.BUTTON_ATTRIBUTES.Height:this.setHeight(n);break;case e.BUTTON_ATTRIBUTES.Width:this.setWidth(n);break;case e.BUTTON_ATTRIBUTES.IconColor:this.buttonElement.style.background=n;break;case e.BUTTON_ATTRIBUTES.Order:this.style.order=n;break;case e.BUTTON_ATTRIBUTES.ButtonDesktopAnimation:"true"!==n||this.isAnimationOnDesktopInitialized||(this.isAnimationOnDesktopInitialized=!0,this.buttonElement.addEventListener("mouseenter",this.onMouseEnter),this.buttonElement.addEventListener("mouseleave",this.onMouseLeave),this.buttonElement.addEventListener("click",this.onClick))}}get height(){return this.getAttribute("height")}get width(){return this.getAttribute("width")}setIconUrl(t){this.buttonIcon=t,this.applyIconStyles(t)}setIconUrlAnimation(t){this.buttonIcon!==t&&(this.buttonIcon=t,this.buttonElement.animate([{opacity:1},{opacity:0}],{duration:75,easing:"ease-out",fill:"forwards"}).onfinish=(()=>{this.applyIconStyles(t),this.buttonElement.animate([{opacity:0},{opacity:1}],{duration:75,easing:"ease-in",fill:"forwards"})}))}setAriaLabel(t){t?this.buttonElement.setAttribute("aria-label",t):this.buttonElement.removeAttribute("aria-label")}applyIconStyles(t){(0,r.mergeStyles)(this.buttonElement,{"-webkit-mask-image":"url('"+t+"')","mask-image":"url('"+t+"')","-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat","-webkit-mask-size":"contain","mask-size":"contain","-webkit-mask-position":"center","mask-
1position":"center","background-image":"none","-webkit-transform":"translateZ(0)",transform:"translateZ(0)","-webkit-backface-visibility":"hidden","backface-visibility":"hidden"})}setIsHidden(t){this.style.display=t?"none":"block"}setIsVisible(t){this.style.visibility=t?"visible":"hidden"}setIsDisabled(t){t?(this.buttonElement.disabled=!0,this.buttonElement.setAttribute("disabled",""),this.buttonElement.setAttribute("aria-disabled","true"),(0,r.mergeStyles)(this.buttonElement,{cursor:"initial",background:"rgba(239, 239, 239, 0.3)"}),this.style.cursor="initial"):(this.buttonElement.disabled=!1,this.buttonElement.removeAttribute("disabled"),this.buttonElement.removeAttribute("aria-disabled"),this.removeAttribute("disabled"),(0,r.mergeStyles)(this.buttonElement,{opacity:"1",cursor:"pointer",background:this.getAttribute("icon-color")}),this.style.cursor="pointer",this.style.pointerEvents="auto")}setHeight(t){this.buttonElement.style.height=t}setWidth(t){this.buttonElement.style.width=t}setDataTestId(t){this.setAttribute("data-testid",t)}}},2204:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateModalAriaLabel=function(t){const{contentType:e,position:i,total:o,title:r,currentContent:s,includeNavigationContext:a=!1}=t,l=[];if(a&&s){const t=function(t,e){const i=t.navigationType,n=t.navigationDirection;if("Manual"===i&&n){const t="story"===e?"story":"moment";return"Forwards"===n?"Next "+t:"Previous "+t}return"Automatic"===i?"New "+("story"===e?"story":"moment"):""}(s,e);t&&l.push(t)}let d=e+" "+i+" of "+o;if(r&&(d+=": "+r),l.push(d),"story"===e&&s){const t=function(t){var e;const i=(t.pageIndex||0)+1,n=null===(e=t.pages)||void 0===e?void 0:e.length;return i&&n?"page "+i+" of "+n:""}(s);t&&l.push(t)}const u=function(){const t=[];return n.VideoPlayerService.isPlaying&&t.push("playing"),n.VideoPlayerService.isMuted&&t.push("muted"),t.length>0?t.join(" and "):""}();return u&&l.push(u),l.join(", ")};const n=i(4545)},2240:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WidgetAbstractPlayer=void 0;const n=i(4403),o=i(6450),r=i(8921),s=i(4545),a=i(4906),l=i(9266),d=i(8048),u=i(6806),c=["blaze-widget-cc-modal"];e.WidgetAbstractPlayer=class extends n.BaseWidget{constructor(){super(),this.index=0,this.videoPlayerState=s.VideoPlayerService,this.numberOfContentInList=3,this.contentList=[],this.playerContentList=[],this.hammer={},this.gestureActionLimitThreshold=25,this.edgeScreenThreshold=30,this.isEdgeThreshold=!1,this.isNavigationBlocked=!1,this.isCloseAnimationStarted=!1,this.listeners=new n.EventsListener,this.boundHandlePanStart=this.handlePanStart.bind(this),this.boundHandlePanMove=this.handlePanMove.bind(this),this.boundHandlePanEnd=this.handlePanEnd.bind(this),this.container=r.WidgetsFactory.create("blaze-div"),this.srcBackground=document.createElement("canvas"),this.destBackground=document.createElement("canvas"),this.srcBackground.setAttribute("aria-hidden","true"),this.destBackground.setAttribute("aria-hidden","true"),this.playerFullscreenOverlay=r.WidgetsFactory.create("blaze-div"),this.playerFullscreenOverlay.setStyle({position:"fixed",left:"0",top:"0",width:"100%",height:"100%",zIndex:"99999",display:"none"}),this.srcBackground.width=3,this.srcBackground.height=3,this.destBackground.width=3,this.destBackground.height=3,(0,l.mergeStyles)(this.srcBackground,{position:"absolute",width:"100%",height:"100%",top:"0",right:"0",bottom:"0",left:"0"}),(0,l.mergeStyles)(this.destBackground,{position:"absolute",width:"100%",height:"100%",top:"0",right:"0",bottom:"0",left:"0",opacity:"0%"})}seekContentById(t){this.cleanPlayerContentList();const e=this.contentList.findIndex(e=>e.data.id==t);if(this.isBlazeWidgetStory(this.contentList)){const t=Math.max(0,e-Math.floor(this.numberOfContentInList/2)),i=Math.min(this.contentList.length-1,e+Math.floor(this.numberOfContentInList/2));for(let e=t;e<=i;e++){const t=this.contentList[e];t&&(this.playerContentList.push(t),this.container.append(t))}}else if(this.isBlazeWidgetMoment(this.contentList)){let t=e-Math.floor((this.numberOfContentInList-1)/2),i=e+Math.ceil((this.numberOfContentInList-1)/2);t<0&&(i-=t,t=0),i>=this.contentList.length&&(t-=i-this.contentList.length+1,i=this.contentList.length-1);for(let e=t=Math.max(0,t);e<=i;e++){const t=this.contentList[e],i=this.cloneMoment(t);i&&(this.playerContentList.push(i),this.container.append(i))}}else if(this.isBlazeWidgetVideo(this.contentList)){const t=this.contentList[e],i=t.cloneNode(!0);i.videoPlayerState=t.videoPlayerState,t.modal&&i.setModal(t.modal),t.embeddedRef&&i.setEmbeddedRef(t.embeddedRef),i.playerStyle=t.playerStyle,i.setData(t.data),t.widgetParentItem&&i.setWi
1dgetItemParent(t.widgetParentItem),i.refContentModal=t.refContentModal,i.startTrigger=t.startTrigger,i&&(this.playerContentList.push(i),this.container.append(i))}this.index=this.playerContentList.findIndex(e=>e.data.id==t)}cloneMoment(t){const e=t.cloneNode(!0);return e.setModal(t.modal),e.playerStyle=t.playerStyle,e.setData(t.data),e.shouldShowImaAdOnStart=t.shouldShowImaAdOnStart,e.adInfo=t.adInfo,e.setWidgetItemParent(t.widgetParentItem),e.momentIndex=t.momentIndex,e.refContentModal=t.refContentModal,e.startTrigger=t.startTrigger,e.actionHandlers=t.actionHandlers,e.contentExtraInfo=t.contentExtraInfo,e.video&&t.video&&(e.video.requestFrameCallback=t.video.requestFrameCallback),e}cleanPlayerContentList(){for(const t of this.playerContentList)null==t||t.remove();this.playerContentList=[]}muteVideoOnIOSOrMacTablet(){this.isBlazeWidgetMoment(this.contentList)||this.isBlazeWidgetVideo(this.contentList)||n.deviceDetector.isIOSMobileTabletSafari()&&(this.videoPlayerState.isMuted=!0)}setupHammer(t=Hammer.DIRECTION_HORIZONTAL){this.hammer=new Hammer.Manager(this);const e=new Hammer.Pan({direction:t,threshold:5}),i=new Hammer.Swipe({direction:t,threshold:5});this.hammer.add(e),this.hammer.add(i).recognizeWith(e),this.hammer.on("panstart",this.boundHandlePanStart),this.hammer.on("panmove",this.boundHandlePanMove),this.hammer.on("panend",this.boundHandlePanEnd),this.style.touchAction="pinch-zoom"}cleanupHammer(){this.hammer.off("panstart",this.boundHandlePanStart),this.hammer.off("panmove",this.boundHandlePanMove),this.hammer.off("panend",this.boundHandlePanEnd),this.hammer.destroy()}handlePanStart(t){"SingleContent"===s.VideoPlayerService.playReference&&!s.ConfigService.shouldAutoAdvance||(t.preventDefault(),"mobile"===n.deviceDetector.platform&&(this.isEdgeThreshold=this.isTouchOnScreenEdges(t.center.x,this.offsetWidth),this.isEdgeThreshold)||t.maxPointers>1||this.isNavigationBlocked||this.setAnimationContent())}handlePanMove(t){t.preventDefault(),(0,l.isElementInsideTarget)(t.target,c)||"desktop"!==n.deviceDetector.platform&&(this.isNavigationBlocked||this.isEdgeThreshold||(t.maxPointers>1?this.reverseAnimation(t):(t.deltaTime>5*o.ONE_SECOND&&this.isBlazeWidgetStory(this.contentList)&&(this.resetPosition(),s.VideoPlayerService.isNavigating=!1),this.index<0&&(this.index=0),this.handleMoveSwipe(t))))}handlePanEnd(t){t.preventDefault(),(0,l.isElementInsideTarget)(t.target,c)||"desktop"!==n.deviceDetector.platform&&(this.isNavigationBlocked||this.isEdgeThreshold||"SingleContent"===s.VideoPlayerService.playReference&&!s.ConfigService.shouldAutoAdvance||this.handleEndSwipe(t))}reverseAnimation(t){var e,i,n,o;("SingleContent"!==s.VideoPlayerService.playReference||s.ConfigService.shouldAutoAdvance)&&((this.isBlazeWidgetMoment(this.playerContentList)?t.deltaY:t.deltaX)>0?(this.processAnimation(t,this.playerContentList[this.index],this.currentPrevAnimation),null===(e=this.animateContent("PREV"))||void 0===e||e.seek(0),null===(i=this.currentPrevAnimation)||void 0===i||i.seek(0)):(this.processAnimation(t,this.playerContentList[this.index],this.currentNextAnimation),null===(n=this.animateContent("NEXT"))||void 0===n||n.seek(0),null===(o=this.currentNextAnimation)||void 0===o||o.seek(0)),s.VideoPlayerService.isNavigating=!1)}setAnimationContent(){this.currentPrevAnimation=void 0,this.currentNextAnimation=void 0;const t=this.playerContentList[this.index-1];this.playerContentList[this.index+1]&&(this.currentNextAnimation=this.animateContent("NEXT")),t&&(this.currentPrevAnimation=this.animateContent("PREV"))}isTouchOnScreenEdges(t,e){const i=e/12,n=t<=i,o=t<=this.edgeScreenThreshold;if(n||o)return!0;const r=e-t<=i,s=t>e-this.edgeScreenThreshold;return!(!r&&!s)}blockInteractionWithUserInterface(){(()=>{this.playerFullscreenOverlay.style.display="block",setTimeout(()=>{this.playerFullscreenOverlay.style.display="none",this.isNavigationBlocked=!1},o.ONE_SECOND)})()}renderPlayerBackground(t){var e,i,o,r;if("mobile"===n.deviceDetector.platform||"tablet"===n.deviceDetector.platform)return;const s=this.srcBackground.getContext("2d"),l=this.destBackgroun
1d.getContext("2d");if(!s||!l)return;if(t)return null===(e=this.backgroundAnimation)||void 0===e||e.cancel(),s.fillStyle=a.Colors.Black,s.fillRect(0,0,this.srcBackground.width,this.srcBackground.height),l.fillStyle=a.Colors.Black,void l.fillRect(0,0,this.srcBackground.width,this.srcBackground.height);const d=this.playerContentList[this.index];let u;if("pages"in d){const t=d,e=d.pageIndex;u=t.pages[e]}else u=d.video;if("Ad"===(null===(i=null==u?void 0:u.data)||void 0===i?void 0:i.type)||(null==u?void 0:u.isAd))return;const c=null==u?void 0:u.mainElement();null===(o=this.backgroundAnimation)||void 0===o||o.pause(),(null===(r=this.backgroundAnimation)||void 0===r?void 0:r.currentTime)&&(s.globalAlpha=+this.backgroundAnimation.currentTime/3e3),s.drawImage(this.destBackground,0,0,this.srcBackground.width,this.srcBackground.height),s.globalAlpha=1,c&&l.drawImage(c,0,0,this.srcBackground.width,this.srcBackground.height),this.backgroundAnimation=this.destBackground.animate([{opacity:"0"},{opacity:"100"}],{duration:3e3,iterations:1,easing:"ease-in",fill:"both"})}appendToDomBasedOnNavigation(t){switch(t){case"PREV":this.handlePrevDirection();break;case"NEXT":this.handleNextDirection()}}resetAnimation(){this.currentPrevAnimation=void 0,this.currentNextAnimation=void 0,this.resetPosition()}close(){var t;if("SingleContent"!==s.VideoPlayerService.playReference||s.ConfigService.shouldDismissPlayer)try{this.playerContentList.forEach(t=>{t instanceof u.BlazeWidgetStory&&(t.isUnloading=!0)}),this.playerContentList.forEach(t=>{"pages"in t&&t.pages.forEach(t=>{t.paused||t.pause()})}),null===(t=this.onClose)||void 0===t||t.call(this),setTimeout(()=>{this.playerContentList.forEach(t=>{t instanceof u.BlazeWidgetStory&&(t.isUnloading=!1)})},o.ONE_SECOND)}catch(t){}}animateContent(t){let e="NEXT"===t?this.index+1:this.index-1;if(e<0||e>=this.playerContentList.length)return;const i=this.playerContentList[e],n=this.playerContentList[this.index];return n&&i?this.createAnimation(n,t,e):void 0}get directionBackwards(){return"RTL"===s.ConfigService.layoutDirection?Hammer.DIRECTION_LEFT:Hammer.DIRECTION_RIGHT}get directionForwards(){return"RTL"===s.ConfigService.layoutDirection?Hammer.DIRECTION_RIGHT:Hammer.DIRECTION_LEFT}processAnimation(t,e,i){if(!this.isEdgeThreshold&&!this.isNavigationBlocked&&!s.VideoPlayerService.isSeekBarDragging&&i){if(i.completed)return;this.isNavigationBlocked=!0,s.VideoPlayerService.isNavigating=!0;let o=0;"tablet"===n.deviceDetector.platform&&(o="portrait"===n.deviceDetector.screenOrientation?7:12);const r=Math.abs(t.velocityY)>.01;if(i.progress>=this.gestureActionLimitThreshold-o||r){this.blockInteractionWithUserInterface();const n=t.direction===this.directionForwards||t.direction===Hammer.DIRECTION_UP,o=t.direction===this.directionBackwards||t.direction===Hammer.DIRECTION_DOWN;n?e.navigationDirection="Forwards":o&&(e.navigationDirection="Backwards"),i.play(),i.finished.then(()=>{s.VideoPlayerService.isNavigating=!1})}else this.handleSmallGestures(i,this.playerContentList[this.index])}}unloadFromPlayerList(){if(this.isBlazeWidgetMoment(this.contentList))return;let t;this.playerContentList.length>this.numberOfContentInList&&(this.index>1?(t=this.playerContentList.shift(),this.index-=1):t=this.playerContentList.pop(),null==t||t.unload(),null==t||t.remove())}handleAnimationEnd(t){this.appendToDomBasedOnNavigation(t),this.unloadFromPlayerList();for(const t of this.playerContentList)t.resetPosition();this.resetAnimation(),this.muteVideoOnIOSOrMacTablet(),this.loadAndPlayContent()}handleSmallGestures(t,e){t.complete=(()=>{this.isNavigationBlocked=!1}),t.changeComplete=(()=>{this.videoPlayerState.isPlaying&&e.resume()}),t.reverse(),t.play(),t.finished.then(()=>{s.VideoPlayerService.isNavigating=!1,e instanceof u.BlazeWidgetStory?e.currentPage.muted=this.videoPlayerState.isMuted:e instanceof d.BlazeWidgetMoment&&e.video&&(e.video.muted=this.videoPlayerState.isMuted)})}resetPosition(){var t,e,i,n;"SingleContent"===s.VideoPlayerService.playReference&&!s.ConfigService.shouldAutoAdvance||(null===(e=null===(t=this.animateContent("NEXT"))||void 0===t?void 0:t.seek)||void 0===e||e.call(t,0),null===(n=null===(i=this.animateContent("PREV"))||void 0===i?void 0:i.seek)||void 0===n||n.call(i,0),this.resetStyles())}isContentDirectionInPlayerListValid(t){if(!t)return!1;const e="NEXT"===t?1:-1,i=this.playerContentList[this.index],n=this.contentList.findIndex(t=>t.data.id===i.data.id);return!(n+e<0)&&Boolean(this.contentList[n+e])}isBlazeWidgetStory(t){return Array.isArray(t)&&t.every(t=>"story"===t.contentType)}isBlazeWidgetMoment(t){return Array.isArray(t)&&t.every(t=>"moment"===t.contentType)}isBlazeWidgetVideo(t){return Array.isArray(t)&&t.every(t=>"video"===t.contentType)}getContentExtraInfo(t,e){var i,n;const o=e>0?t[e-1]:void 0,r=e<t.length-1?t[e+1]:void 0;return{previous:null===(i=null==o?void 0:o.data)||void 0===i?void 0:i.extraInfo,next:null===(n=null==r?void 0:r.data)||void 0===n?void 0:n.extraInfo}}}}
1,2402:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.LoggerManager=void 0;const o=i(611),r=i(2668),s=i(4403),a=i(9965),l=i(4545),d=i(8827);class u{constructor(t){this.configuration=null,this.pendingConfigUpdate=null,this.isInitialized=!1,this.isDestroyed=!1,this.isSending=!1,this.immediateLogs=[],this.offlineQueue=[],this.immediateTimer=null,this.configUpdateTimer=null,this.isOnline=navigator.onLine,this.onlineStatusListener=null,this.storage=new s.LoggerStorage(t),this.transport=new s.LoggerTransport,this.throttle=new r.LoggerThrottle,this.setupNetworkMonitoring()}init(t){return n(this,void 0,void 0,function*(){if(this.isDestroyed)throw new Error("Cannot initialize destroyed logger instance");if(this.isInitialized||!t)return;const e=(0,d.sanitizeBatchSizeConfiguration)(t);!(0,d.validateLoggerConfigurationDetailed)(e).isValid&&e.isEnabled&&this.setDefaultLoggerConfiguration(e);try{this.configuration=e,this.throttle.updateConfiguration({batchIntervalMs:1e3*e.loggerBatchIntervalInSeconds,maxBatchSize:e.loggerMaxAllowedBatchSize,minBatchSize:e.loggerMinAllowedBatchSize}),this.throttle.onBatchReady(()=>this.processBatch()),this.isInitialized=!0}catch(t){throw t}})}destroy(){return n(this,void 0,void 0,function*(){try{this.isInitialized=!1,this.immediateLogs.length>0&&(yield Promise.race([this.flushImmediateLogs(),new Promise(t=>setTimeout(t,5e3))])),this.isOnline&&this.offlineQueue.length>0&&(yield Promise.race([this.syncOfflineQueue(),new Promise(t=>setTimeout(t,5e3))])),this.throttle.destroy(),this.immediateTimer&&(clearTimeout(this.immediateTimer),this.immediateTimer=null),this.configUpdateTimer&&(clearTimeout(this.configUpdateTimer),this.configUpdateTimer=null),this.onlineStatusListener&&(window.removeEventListener("online",this.onlineStatusListener),window.removeEventListener("offline",this.onlineStatusListener),this.onlineStatusListener=null)}catch(t){}finally{this.isDestroyed=!0}})}updateConfiguration(t){if(this.isDestroyed)return;const e=(0,d.sanitizeBatchSizeConfiguration)(t);!(0,d.validateLoggerConfigurationDetailed)(e).isValid&&e.isEnabled&&this.setDefaultLoggerConfiguration(e),this.pendingConfigUpdate=e,this.scheduleConfigurationUpdate()}log(t,e,i,r){return n(this,void 0,void 0,function*(){var n;const s=""+u.LOG_IDENTIFIER_PREFIX+e;if(!this.isInitialized||!(null===(n=this.configuration)||void 0===n?void 0:n.isEnabled)||!this.shouldLog(t)||(0,d.shouldIgnoreLog)(s,this.configuration.ignoredLogs||[]))return;const a=(0,o.v4)(),c=(0,d.buildLogMetadata)(l.UserService.sessionId,a,s,r),h={id:a,level:t,message:i,logIdentifier:s,metadata:JSON.stringify(c),timestamp:(new Date).toISOString(),priority:(0,d.calculateLogPriority)(t)};try{if(yield this.storage.store(h),!this.isOnline)return void this.addToOfflineQueue(h);this.throttle.incrementLogCount(),this.shouldSendImmediately(t)?this.addToImmediateBatch(h):this.throttle.shouldTriggerBatch()&&(yield this.processBatch())}catch(t){}})}shouldLog(t){if(!this.configuration)return!1;const e=this.configuration.logLevel;return(0,d.isLogLevelAllowed)(t,e)}shouldSendImmediately(t){var e;if(!(null===(e=this.configuration)||void 0===e?void 0:e.immediateLogLevel))return!1;const i=this.configuration.immediateLogLevel;return(0,d.isLogLevelAllowed)(t,i)}addToImmediateBatch(t){this.immediateLogs.push(t),this.immediateLogs.length>=5?this.flushImmediateLogs():this.immediateTimer||(this.immediateTimer=setTimeout(()=>{this.flushImmediateLogs()},100))}flushImmediateLogs(){return n(this,void 0,void 0,function*(){this.immediateTimer&&(clearTimeout(this.immediateTimer),this.immediateTimer=null);const t=[...this.immediateLogs];if(this.immediateLogs=[],t.length>0){if(!this.isOnline)return void t.forEach(t=>this.addToOfflineQueue(t));try{yield this.sendEntriesAndCleanup(t)}catch(e){t.forEach(t=>this.addToOfflineQueue(t))}}})}removeEntriesFromStorage(t){return n(this,void 0,void 0,function*(){const e=(0,d.extractEntryIds)(t);yield this.storage.remove(e)})}sendEntriesAndCleanup(t){return n(this,void 0,void 0,function*(){if(!navigator.onLine)throw new Error("No internet connection - logs not sent");try{yield this.transport.send(t),yield this.removeEntriesFromStorage(t)}
1catch(e){if(e instanceof s.BatchRejectedError)return void(yield this.removeEntriesFromStorage(t));throw e}})}processBatch(){return n(this,void 0,void 0,function*(){if(!this.isSending&&this.isOnline){this.isSending=!0;try{const t=this.throttle.minBatchSize,e=this.throttle.maxBatchSize,i=yield this.storage.getBatch(e);if(i.length<t)return;yield this.sendEntriesAndCleanup(i)}finally{this.isSending=!1}}})}setupNetworkMonitoring(){this.onlineStatusListener=(t=>{const e=this.isOnline;this.isOnline=navigator.onLine,!e&&this.isOnline&&this.handleNetworkReconnection()}),"undefined"!=typeof window&&(window.addEventListener("online",this.onlineStatusListener),window.addEventListener("offline",this.onlineStatusListener))}syncOfflineQueue(){return n(this,void 0,void 0,function*(){var t;if(this.isOnline&&0!==this.offlineQueue.length)try{const e=(null===(t=this.configuration)||void 0===t?void 0:t.loggerMaxAllowedBatchSize)||50;for(;this.offlineQueue.length>0;){const t=this.offlineQueue.splice(0,e);yield this.sendEntriesAndCleanup(t)}}catch(t){}})}addToOfflineQueue(t){this.offlineQueue.push(t);const{prunedQueue:e,removedCount:i}=(0,d.pruneOfflineQueue)(this.offlineQueue,1e3);this.offlineQueue=e}scheduleConfigurationUpdate(){this.configUpdateTimer&&clearTimeout(this.configUpdateTimer),this.isSending?this.configUpdateTimer=setTimeout(()=>{!this.isSending&&this.pendingConfigUpdate?this.applyPendingConfiguration():this.scheduleConfigurationUpdate()},100):this.applyPendingConfiguration()}applyPendingConfiguration(){return n(this,void 0,void 0,function*(){if(!this.pendingConfigUpdate)return;const t=this.configuration,e=this.pendingConfigUpdate;if(this.configuration=e,this.pendingConfigUpdate=null,this.configUpdateTimer&&(clearTimeout(this.configUpdateTimer),this.configUpdateTimer=null),this.resetLoggerState(),(null==t?void 0:t.isEnabled)&&!e.isEnabled)try{yield this.storage.clear()}catch(t){}e.isEnabled&&(this.throttle.updateConfiguration({batchIntervalMs:1e3*e.loggerBatchIntervalInSeconds,maxBatchSize:e.loggerMaxAllowedBatchSize,minBatchSize:e.loggerMinAllowedBatchSize}),this.throttle.onBatchReady(()=>this.processBatch()))})}resetLoggerState(){this.immediateLogs=[],this.offlineQueue=[],this.isSending=!1,this.immediateTimer&&(clearTimeout(this.immediateTimer),this.immediateTimer=null),this.isOnline=navigator.onLine}handleNetworkReconnection(){return n(this,void 0,void 0,function*(){try{yield new Promise(t=>setTimeout(t,1e3)),this.offlineQueue.length>0&&(yield this.syncOfflineQueue()),yield this.processBatch()}catch(t){}})}setDefaultLoggerConfiguration(t){return t.loggerBatchIntervalInSeconds=30,t.loggerMaxAllowedBatchSize=80,t.loggerMinAllowedBatchSize=1,t.logLevel=a.LogLevel.ERROR,t.immediateLogLevel=a.LogLevel.CRITICAL,t.ignoredLogs=[],t}}e.LoggerManager=u,u.LOG_IDENTIFIER_PREFIX="Web_"},2409:(t,e)=>{"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorLoadingCodeMapper=e.ErrorCode=void 0,function(t){t[t.FailedToFindContainerId=1]="FailedToFindContainerId",t[t.FailedContainerIdHasWidgetAlready=2]="FailedContainerIdHasWidgetAlready",t[t.FailedLoadingAppConfigurations=3]="FailedLoadingAppConfigurations",t[t.FailedLoadingStories=100]="FailedLoadingStories",t[t.FailedEnrichStories=101]="FailedEnrichStories",t[t.FailedToHaveLabels=103]="FailedToHaveLabels",t[t.FailedLoadingMoments=110]="FailedLoadingMoments",t[t.FailedEnrichMoments=111]="FailedEnrichMoments",t[t.FailedLoadingVideos=120]="FailedLoadingVideos",t[t.FailedEnrichVideos=121]="FailedEnrichVideos",t[t.VisualViewportScaled=150]="VisualViewportScaled",t[t.VideoError=200]="VideoError",t[t.PreviewStoryNotFound=300]="PreviewStoryNotFound",t[t.PreviewStoryLoadFailed=301]="PreviewStoryLoadFailed",t[t.PreviewMomentNotFound=310]="PreviewMomentNotFound",t[t.PreviewMomentLoadFailed=311]="PreviewMomentLoadFailed"}(i||(e.ErrorCode=i={})),e.ErrorLoadingCodeMapper={story:i.FailedLoadingStories,moment:i.FailedLoadingMoments,video:i.FailedLoadingVideos}},2500:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findOpenModal=r,e.findOpenMomentModal=function(){const t=r();if(t&&t instanceof n.BlazeWidgetMomentModal)return t};const n=i(2740),o=i(332);function r(){const t=document.getElementsByTagName("blaze-sdk")[0];if(t)for(let e=0;e<t.children.length;e++){const i=t.children[e];if(i instanceof o.BlazeWidgetModal&&i.isOpen)return i}}},2506:(t,e)=>{"use strict";var i,n;
1Object.defineProperty(e,"__esModule",{value:!0}),e.InternalEvent=e.Delegation=void 0,function(t){t.onEventTriggered="blaze-event-triggered",t.onErrorThrown="blaze-error-event",t.onPlayerDidAppear="blaze-player-did-appear",t.onPlayerDismissed="blaze-player-dismissed",t.onWidgetDataLoadStarted="blaze-widget-data-load-started",t.onWidgetDataLoadCompleted="blaze-widget-data-load-completed",t.onWidgetPlayerDismissed="blaze-widget-player-dismissed",t.onWidgetTriggerCTA="blaze-widget-trigger-CTA",t.onMomentStart="blaze-moment-start",t.onStoryPlayerDidAppear="blaze-story-player-did-appear",t.onStoryPlayerDismissed="blaze-story-player-dismissed",t.onWidgetStoryPlayerDismissed="blaze-widget-story-player-dismissed"}(i||(e.Delegation=i={})),function(t){t.NEXT_STORY="next_story",t.PREV_STORY="prev_story",t.FULL_SCREEN_CLICK="full_screen_click",t.AD_ENDED="ad_ended",t.AD_RESUMED="ad_resumed",t.AD_STARTED="ad_started",t.BANNER_ANALYTICS="banner_analytics",t.PAUSE="pause",t.RESUME="resume",t.NEXT_PAGE="next_page",t.PREVIOUS_PAGE="previous_page"}(n||(e.InternalEvent=n={}))},2547:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EventBusService=void 0;const n=i(4403);class o extends((0,n.Singleton)()){constructor(){super(...arguments),this.subscribers={}}init(){this.subscribers={}}publish(t,e){const i=this.subscribers[t];
1void 0!==i&&Object.keys(i).forEach(t=>i[t](e))}subscribe(t,e){const i=this.getNextId();return this.subscribers[t]||(this.subscribers[t]={}),this.subscribers[t][i]=e,{unsubscribed:()=>{delete this.subscribers[t][i],0===Object.keys(this.subscribers[t]).length&&delete this.subscribers[t]}}}getNextId(){return o.nextId++}}o.nextId=0,e.EventBusService=o.getInstance()},2588:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.animationCssMapper=void 0,e.animationCssMapper={Growing:"grow",Shrinking:"shrink",BottomToTop:"bottomToTop"}},2601:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetVideoModal=void 0;const o=i(4403),r=i(6450),s=i(9965),a=i(8921),l=i(4545),d=i(332);let u=window.innerWidth;e.BlazeWidgetVideoModal=class extends d.BlazeWidgetModal{constructor(t,e,i=l.VideoPlayerService){super("video",i),this.parentWidget=t,this.playerLayout=e,this.videoPlayerState=i,this.data=[],this.boundOnResizeEventDelay=this.onResizeEventDelay.bind(this),this.boundOnKeyDown=this.onKeyDown.bind(this),this.boundOnBeforeUnload=this.onBeforeUnload.bind(this)}get currentPlayedContent(){return this.player.playerContentList[0]}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.boundOnResizeEvent),window.addEventListener(o.DEVICE_EVENTS.SCREEN_ORIENTATION_CHANGE,this.boundOnResizeEventDelay),o.deviceDetector.isDesktop&&(window.addEventListener("keydown",this.boundOnKeyDown),window.addEventListener("beforeunload",this.boundOnBeforeUnload)),this.render()}disconnectedCallback(){var t;super.disconnectedCallback(),window.removeEventListener("resize",this.boundOnResizeEvent),window.removeEventListener(o.DEVICE_EVENTS.SCREEN_ORIENTATION_CHANGE,this.boundOnResizeEventDelay),o.deviceDetector.isDesktop&&(window.removeEventListener("keydown",this.boundOnKeyDown),window.removeEventListener("beforeunload",this.boundOnBeforeUnload)),null===(t=this.player)||void 0===t||t.destroy()}setTheme(t){var e;this.playerLayout=t,this.style.background=t.backgroundColor,null===(e=this.currentPlayedContent)||void 0===e||e.setTheme(t)}setModalContent(t){this.data=t,this.style.background=this.playerLayout.backgroundColor;const e=[];for(let i=0;i<t.length;i++){const n=a.WidgetsFactory.create("blaze-video-element");n.setTheme(this.playerLayout),n.setData(t[i]),n.setModal(this),e.push(n)}this.player.setContent(e)}onBeforeUnload(){return this.isOpen&&this.dispatchExitEvent(),null}dispatchExitEvent(){var t,e;const i=this.currentPlayedContent;i.event(r.VideoAction.VideoEnd,{video_end_trigger:"Page Unload"}),l.AnalyticsService.sendAnalyticsData(),null===(e=null===(t=i.widgetParentItem)||void 0===t?void 0:t.updateWidget)||void 0===e||e.call(t),i.updateWidgetStatusReadUnread()}close(){const t=Object.create(null,{close:{get:()=>super.close}});return n(this,void 0,void 0,function*(){var e;if(!this.isOpen)return;if(!this.isAllowExitModal({shouldDismissPlayer:l.ConfigService.shouldDismissPlayer,playReference:l.VideoPlayerService.playReference}))return;const i=this.player.playerContentList[0];i.exitTrigger="Escape Button",i.event(r.VideoAction.VideoEnd,{}),l.EventService.dispatch(this,s.Delegation.onPlayerDismissed),this.parentWidget&&l.EventService.dispatch(this.parentWidget,s.Delegation.onWidgetPlayerDismissed,{widgetId:this.parentWidget.id}),yield this.player.tryToCloseFullscreen(),t.close.call(this),null===(e=this.onClose)||void 0===e||e.call(this)})}open(){var t;this.isOpen||l.EventService.dispatch(this,s.Delegation.onPlayerDidAppear),super.open(),this.player.load(),this.player.resume(),null===(t=this.onOpen)||void 0===t||t.call(this)}play(){}onKeyDown(t){this.isOpen&&!document.fullscreenElement&&"Escape"==t.key&&this.close()}onResize(){super.onResize(),u!==window.innerWidth&&(u=window.innerWidth)}onResizeEventDelay(){setTimeout(()=>{this.onResize()},r.ONE_SECOND/2)}}},2654:(t,e,i)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeVideoSeekBar=void 0;const n=i(1908),o=i(4403),r=i(6450),s=i(9965),a=i(8921),l=i(4545),d=i(9266);e.BlazeVideoSeekBar=class extends HTMLElement{constructor(){super(),this.isInit=!1,this.isMouseIn=!1,this.isClicked=!1,this.isSeeking=!1,this.playbackPart=a.WidgetsFactory.create("blaze-div"),this.progressBarState="playing",this.videoState=s.ButtonState.Play,this.seekType="Seek Bar",this.lastProgress=0,this.listeners=new o.EventsListener,this.boundOnTouchMove=this.handleTouchMove.bind(this),this.boundOnMouseMove=this.handleMouseDrag.bind(this),this.boundOnClick=this.handleOnClick.bind(this),this.boundOnMouseOut=this.handleOnMouseOut.bind(this),this.boundOnMouseIn=this.handleOnMouseIn.bind(this),this.boundOnStartDrag=this.handleOnStartDrag.bind(this),this.boundOnEndDrag=this.handleOnEndDrag.bind(this),this.progressBarContainer=a.WidgetsFactory.create("blaze-div"),this.progressBarFill=a.WidgetsFactory.create("blaze-div"),this.progressBarKnob=a.WidgetsFactory.create("blaze-div"),this.progressBarBuffer=a.WidgetsFactory.create("blaze-div"),this.progress=a.WidgetsFactory.create("blaze-div"),this.debouncedSeekBarUpdate=(0,o.debounce)(t=>this.updateVideoSeekBar(t),500),this.progress.classList.add(r.WSC_PREFIX+"progress")}connectedCallback(){if(!this.isInit&&this.seekBarStyle.isVisible){if(this.isInit=!0,this.addTransitionStyle(),this.seekBarStyle){const t=parseFloat(this.seekBarStyle.playingState.height);isNaN(t)&&(this.seekBarStyle.playingState.height="3px");const e=parseFloat(this.seekBarStyle.pausedState.height);isNaN(e)&&(this.seekBarStyle.pausedState.height="5px")}this.setupEventListeners(),this.styleProgressContainer()}}disconnectedCallback(){this.timeoutPlayingStyle&&clearTimeout(this.timeoutPlayingStyle),this.timeoutPauseStyle&&clearTimeout(this.timeoutPauseStyle),this.listeners.removeAll()}addTransitionStyle(){const t=document.createElement("style");t.textContent="\n      ."+r.WSC_PREFIX+"progress {\n        transition: height 0.3s ease;\n      }\n    ",this.appendChild(t)}setTheme(t){this.seekBarStyle=t,this.styleProgressContainer()}createPlaybackPart(){this.progressBarContainer.setStyle({width:"100%",height:"100%",display:"block"}),this.progressBarFill.setStyle({width:"0%",height:"100%",position:"relative",display:"block"}),this.progressBarKnob.setStyle({borderRadius:"100%",position:"absolute",right:"0px",top:"50%",bottom:"0px",transform:"translateX(50%) translateY(-50%)"}),this.progressBarBuffer.setStyle({width:"0%",position:"absolute",display:"block",backgroundColor:"rgba(217, 217, 217, 0.5)",borderRadius:"5px 0px 0px 5px"}),this.progressBarFill.append(this.progressBarKnob),this.playbackPart=this.progressBarFill,this.progressBarContainer.append(this.progressBarBuffer),this.progressBarContainer.append(this.progressBarFill),this.progress.append(this.progressBarContainer)}setupEventListeners(){this.listeners.addAttached(this,"mousedown",this.boundOnStartDrag),this.listeners.addAttached(this,"touchstart",this.boundOnStartDrag),this.listeners.add("mouseup",this.boundOnEndDrag),this.listeners.add("touchend",this.boundOnEndDrag),this.listeners.addAttached(this,"mousemove",this.boundOnMouseMove),this.listeners.addAttached(this,"touchmove",this.boundOnTouchMove),this.listeners.addAttached(this,"click",this.boundOnClick),this.listeners.addAttached(this,"mouseenter",this.boundOnMouseIn),this.listeners.addAttached(this,"mouseleave",this.boundOnMouseOut)}handleOnStartDrag(){var t,e;this.isClicked||(l.VideoPlayerService.isSeekBarDragging=!0,this.isSeeking=!0,clearTimeout(this.timeoutPlay),null===(t=this.onPause)||void 0===t||t.call(this),this.applyPauseSeekBarStyle(),o.deviceDetector.isDesktop&&document.addEventListener("mousemove",this.boundOnMouseMove),(o.deviceDetector.isMobile||o.deviceDetector.isTablet)&&(null===(e=this.onStartSeeking)||void 0===e||e.call(this)))}handleOnEndDrag(){var t;this.isSeeking&&(this.isSeeking=!1,o.deviceDetector.isDesktop&&document.removeEventListener("mousemove",this.boundOnMouseMove),(o.deviceDetector.isMobile||o.deviceDetector.isTablet)&&(null===(t=this.onEndSeeking)||void 0===t||t.call(this)),this.timeoutPlayingStyle=setTimeout(()=>{this.isSeeking||this.applyPlayingSeekBarStyle()},2e3),this.timeoutPlay=setTimeout(()=>{var t;l.VideoPlayerService.isSeekBarDragging=!1,this.isClicked||null===(t=this.onResume)||void 0===t||t.call(this)},1500))}handleOnClick(t){var e;if(null===(e=this.onPause)||void 0===e||e.call(this),t.stopPropagation(),this.isClicked=!0,this.isSeeking)return;let i;if(t instanceof MouseEvent)i=t.clientX;else{if(!(t.touches&&t.touches.length>0))return;i=t.touches[0].clientX}this.handleSeek(i,!0)}handleMouseDrag(t){this.handleSeek(t.clientX,1===t.buttons)}handleTouchMove(t){t.touches.length>0&&(this.handleSeek(t.touches[0].clientX,!0),t.preventDefault(),t.stopImmediatePropagation())}handleSeek(t,e){if(!e)return;const i=this.getBoundingClientRect();let n=(t-i.left)/i.width;const o=Math.min(Math.max(n,0),1);this.updateSeekBar(100*o)}handleOnMouseOut(){this.isSeeking||(this.isMouseIn=!1,this.timeoutPlayingStyle=setTimeout(()=>{this.videoState!==s.ButtonState.Pause&&this.applyPlayingSeekBarStyle()},2e3))}handleOnMouseIn(){this.isMouseIn=!0,this.applyPauseSeekBarStyle()}
1updateVideoSeekBar(t){this.dispatchEvent(new CustomEvent(n.VIDEO_EVENTS.SEEK,{detail:{seekTime:t/100,type:this.seekType},bubbles:!0,composed:!0})),setTimeout(()=>{this.isClicked=!1},1e3)}styleProgressContainer(){const t=parseFloat(this.seekBarStyle.playingState.height),e=parseFloat(this.seekBarStyle.pausedState.height),i=Math.max(t,e);(0,d.mergeStyles)(this,{width:"100%",height:i+"px",padding:this.seekBarStyle.horizontalMargin+" "+this.seekBarStyle.verticalMargin+"  ",cursor:"pointer",boxSizing:"border-box",zIndex:"2"}),this.progress.setStyle({width:"100%",display:"grid",height:this.seekBarStyle.playingState.height,position:"relative"}),this.progressBarBuffer.setStyle({height:this.seekBarStyle.playingState.height}),this.createPlaybackPart(),this.updateProgressBarStyles(this.progressBarState),this.append(this.progress)}updateProgressBarStyles(t){const e=this.seekBarStyle[t+"State"];this.progressBarContainer.setStyle({borderRadius:e.borderRadius,backgroundColor:e.backgroundColor}),this.progressBarFill.setStyle({borderRadius:e.borderRadius,backgroundColor:e.progressColor}),this.progressBarKnob.setStyle({width:e.thumbSize,height:e.thumbSize,backgroundColor:e.thumbColor})}onContentPaused(){this.videoState=s.ButtonState.Pause,this.applyPauseSeekBarStyle()}onContentResumed(){this.videoState=s.ButtonState.Play,this.timeoutPlayingStyle=setTimeout(()=>{this.applyPlayingSeekBarStyle()},2e3)}updateProgressBar(t,e){if(this.isSeeking||this.isClicked||isNaN(e))return;this.playbackPart.style.width="0%";let i=e?t/e:this.lastProgress;Number.isNaN(i)?i=this.lastProgress:this.lastProgress=i,this.playbackPart.style.width=100*i+"%"}updateBuffer(t){this.progressBarBuffer.style.width=t+"%"}updateSeekBar(t){const e=Math.min(Math.max(t,0),100);this.playbackPart.style.width=e+"%",this.lastProgress=e/100,this.dispatchEvent(new CustomEvent(n.VIDEO_EVENTS.DISPLAY_SEEKED_TIME,{detail:{seekTime:e/100},bubbles:!0,composed:!0})),this.debouncedSeekBarUpdate(e)}reset(){this.resetProgressBar(),this.progress.style.height=this.seekBarStyle.playingState.height,this.progressBarBuffer.style.height=this.seekBarStyle.playingState.height,this.progressBarKnob.style.display=this.seekBarStyle.playingState.isThumbVisible?"block":"none",this.updateProgressBarStyles("playing")}resetProgressBar(){this.playbackPart.style.width="0%",this.updateBuffer(0)}applyPlayingSeekBarStyle(){"playing"!==this.progressBarState&&(this.isMouseIn||this.videoState!==s.ButtonState.Pause&&(this.timeoutPauseStyle&&clearTimeout(this.timeoutPauseStyle),this.progress.style.height=this.seekBarStyle.playingState.height,this.progressBarBuffer.style.height=this.seekBarStyle.playingState.height,this.progressBarKnob.style.display=this.seekBarStyle.playingState.isThumbVisible?"block":"none",this.progressBarState="playing",this.updateProgressBarStyles("playing")))}applyPauseSeekBarStyle(){"paused"!==this.progressBarState&&this.videoState!==s.ButtonState.Play&&(this.timeoutPlayingStyle&&clearTimeout(this.timeoutPlayingStyle),this.progress.style.height=this.seekBarStyle.pausedState.height,this.progressBarBuffer.style.height=this.seekBarStyle.pausedState.height,this.progressBarKnob.style.display=this.seekBarStyle.pausedState.isThumbVisible?"block":"none",this.progressBarState="paused",this.updateProgressBarStyles("paused"))}}},2668:function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(2402),e),o(i(4912),e),o(i(1232),e),o(i(6133),e),o(i(200),e)},2740:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};
1Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetMomentModal=void 0;const o=i(4403),r=i(6450),s=i(9965),a=i(8921),l=i(4545),d=i(9266),u=i(6627),c=i(332),h=i(8048),p=i(4248);let f=window.innerWidth;e.BlazeWidgetMomentModal=class extends c.BlazeWidgetModal{constructor(t,e,i){super("moment"),this.parentWidget=t,this.playerLayout=e,this.actionHandlers=i,this.data=[],this.playlistSessionId="",this.navigationButtonsContainerElement=a.WidgetsFactory.create("blaze-div"),this.navigationButtonsContainerElement.setStyle({display:"flex",position:"absolute",right:"36px",flexDirection:"column",justifyContent:"center",alignItems:"normal",height:"100%",gap:"16px"}),"desktop"===o.deviceDetector.platform&&(this.prevContentButtonElement=this.createNavigationButton("PREV"),this.nextContentButtonElement=this.createNavigationButton("NEXT")),this.boundOnKeyDown=this.onKeyDown.bind(this),this.boundOnResizeEventDelay=this.onResizeEventDelay.bind(this),this.boundOnNavigationChange=this.onNavigationChange.bind(this)}connectedCallback(){super.connectedCallback(),"desktop"===o.deviceDetector.platform&&(this.addEventListener(p.UPDATE_NAVIGATION_BUTTONS_EVENT,this.boundOnNavigationChange),window.addEventListener("keydown",this.boundOnKeyDown),this.exitButtonElement.setIconUrl(this.playerLayout.icons.exit)),window.addEventListener("resize",this.boundOnResizeEvent),window.addEventListener(o.DEVICE_EVENTS.SCREEN_ORIENTATION_CHANGE,this.boundOnResizeEventDelay),this.render()}disconnectedCallback(){super.disconnectedCallback(),"desktop"===o.deviceDetector.platform&&(this.removeEventListener(p.UPDATE_NAVIGATION_BUTTONS_EVENT,this.boundOnNavigationChange),window.removeEventListener("keydown",this.boundOnKeyDown))}setTheme(t){this.player.playerContentList.forEach(e=>{e instanceof h.BlazeWidgetMoment&&e.setTheme(t)}),this.playerLayout=t}onNavigationChange(t){var e,i;if("mobile"===o.deviceDetector.platform||"tablet"===o.deviceDetector.platform)return;const{detail:{prevContentButton:n,nextContentButton:r}}=t;null===(e=this.prevContentButtonElement)||void 0===e||e.setAttribute("blaze-btn-visible",!0===n?"true":"false"),null===(i=this.nextContentButtonElement)||void 0===i||i.setAttribute("blaze-btn-visible",!0===r?"true":"false")}navigateContent(t){l.VideoPlayerService.isNavigating||(this.player.contentList[this.player.index].isActive=!1,this.player.changeContent(t))}createNavigationButton(t){const e=a.WidgetsFactory.create("blaze-button");e.setAttribute("data-testid","moment-navigation-"+t.toLowerCase()),e.classList.add("desktop-button"),e.setStyle({display:"inline-flex",zIndex:"9999",padding:"24px",borderRadius:"50%",backgroundColor:"#18181899"});const{nextMoment:i,prevMoment:n}=this.playerLayout.icons.navigation,o="NEXT"===t?i:n;e.setIconUrl(o),e.setAttribute("width","24px"),e.setAttribute("height","24px"),e.setAttribute("icon-color","#F0F0F0");const r="NEXT"===t?"Next moment":"Previous moment";return e.setAttribute("aria-label",r),e.setAttribute("role","button"),e.setAttribute("tabindex","0"),e.addEventListener("click",()=>this.handleClickNavigation(t)),this.navigationButtonsContainerElement.append(e),e}handleClickNavigation(t){var e,i,n;if(this.player.isNavigationBlocked)return;if(null===(i=null===(e=this.player.currentMoment)||void 0===e?void 0:e.video)||void 0===i?void 0:i.isCurrentlyTryingToRunImaAd)return;if(l.VideoPlayerService.isNavigating)return;if(!this.player.isContentDirectionInPlayerListValid(t))return;const o=this.player.playerContentList[this.player.index];null===(n=o.closedCaptionsModal)||void 0===n||n.close(),o.exitTrigger="Skip",this.navigateContent(t)}generateMomentElement(t){const e=a.WidgetsFactory.create("blaze-widget-moment");return this.actionHandlers&&e.setActionHandlers(this.actionHandlers),e.setPlayerStyle(this.playerLayout),e.setData(t),e.setModal(this),e}generateAdMomentElement(t){return t.setModal(this),t.setPlayerStyle(this.playerLayout),this.actionHandlers&&t.setActionHandlers(this.actionHandlers),t}setModalContent(t,e,i){this.data=[...t];const n=[];for(let o=0;o<t.length;o++){const r=this.generateMomentElement(t[o]);n.push(r);const s=l.AdService.pushAdsBetweenMoments(i,n,t,o,e);s&&this.generateAdMomentElement(s)}n.forEach((t,e)=>t.setContentExtraInfo(this.player.getContentExtraInfo(n,e))),this.player.setContent(n)}appendContent(t,e){if(!t||0===t.length)return;const i=t.filter(t=>!this.data.some(e=>e.id===t.id));this.data.push(...i);const n=[];for(let t=0;t<i.length;t++){const o=this.generateMomentElement(i[t]);n.push(o);const r=l.AdService.pushAdsBetweenMoments(e,n,i,t,0);r&&this.generateAdMomentElement(r)}const o=[...this.player.contentList,...n];
1n.forEach((t,e)=>{const i=this.player.contentList.length+e;t.momentIndex=i,t.setContentExtraInfo(this.player.getContentExtraInfo(o,i))}),this.player.appendToContentList(n)}onKeyDown(t){this.isOpen&&"Escape"==t.key&&(this.player.playerContentList[this.player.index].exitTrigger="Escape Button",this.close())}close(){var t,e;if(!this.isOpen)return;const i=this.player.playerContentList[this.player.index];i.event(r.MomentAction.MomentExit,{}),i.event(r.MomentAction.MomentsPlaylistExit,{}),l.EventService.dispatch(this,s.Delegation.onPlayerDismissed),this.parentWidget&&(l.EventService.dispatch(this.parentWidget,s.Delegation.onWidgetPlayerDismissed,{widgetId:this.parentWidget.id}),i.data.hasViewed=!0,this.parentWidget instanceof u.WidgetBaseLayout&&this.parentWidget.widgetItems.forEach(t=>{t.content.id===i.data.id&&(t.setChipStyle(),t.render())})),this.playlistSessionId="",null===(t=this.player)||void 0===t||t.playerContentList.forEach(t=>{t.unload()}),super.close(),null===(e=this.onClose)||void 0===e||e.call(this)}open(){const t=Object.create(null,{open:{get:()=>super.open}});return n(this,void 0,void 0,function*(){var e;this.isOpen||l.EventService.dispatch(this,s.Delegation.onPlayerDidAppear),this.playlistSessionId=(0,d.getRandomId)();const i=this.player;yield i.playerContentList[i.index].load("direct"),i.preloadAdjacentPosters(),i.preloadAdjacentVideos(),t.open.call(this),null===(e=this.onOpen)||void 0===e||e.call(this),"desktop"===o.deviceDetector.platform&&(this.appendChild(this.navigationButtonsContainerElement),this.appendExitButton()),this.player.configurePlayerContentAccessibility()})}play(){this.player.play()}setExitButtonDisplay(){"desktop"===o.deviceDetector.platform&&(this.exitButtonWrapperElement.style.display="block")}render(){var t;this.setExitButtonDisplay(),null===(t=this.player)||void 0===t||t.render()}onResize(){super.onResize(),f!==window.innerWidth&&(f=window.innerWidth)}onResizeEventDelay(){setTimeout(()=>{this.onResize()},r.ONE_SECOND/2)}}},2743:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},2757:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},2776:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>it});var n={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},o={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},r=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],s={CSS:{},springs:{}};function a(t,e,i){return Math.min(Math.max(t,e),i)}function l(t,e){return t.indexOf(e)>-1}function d(t,e){return t.apply(null,e)}var u={arr:function(t){return Array.isArray(t)},obj:function(t){return l(Object.prototype.toString.call(t),"Object")},pth:function(t){return u.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},inp:function(t){return t instanceof HTMLInputElement},dom:function(t){return t.nodeType||u.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},nil:function(t){return u.und(t)||null===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return u.hex(t)||u.rgb(t)||u.hsl(t)},key:function(t){return!n.hasOwnProperty(t)&&!o.hasOwnProperty(t)&&"targets"!==t&&"keyframes"!==t}};function c(t){var e=/\(([^)]+)\)/.exec(t);return e?e[1].split(",").map(function(t){return parseFloat(t)}):[]}function h(t,e){var i=c(t),n=a(u.und(i[0])?1:i[0],.1,100),o=a(u.und(i[1])?100:i[1],.1,100),r=a(u.und(i[2])?10:i[2],.1,100),l=a(u.und(i[3])?0:i[3],.1,100),d=Math.sqrt(o/n),h=r/(2*Math.sqrt(o*n)),p=h<1?d*Math.sqrt(1-h*h):0,f=h<1?(h*d-l)/p:-l+d;function g(t){var i=e?e*t/1e3:t;return i=h<1?Math.exp(-i*h*d)*(1*Math.cos(p*i)+f*Math.sin(p*i)):(1+f*i)*Math.exp(-i*d),0===t||1===t?t:1-i}return e?g:function(){var e=s.springs[t];if(e)return e;for(var i=0,n=0;;)if(1===g(i+=1/6)){if(++n>=16)break}else n=0;var o=i*(1/6)*1e3;return s.springs[t]=o,o}}function p(t){return void 0===t&&(t=10),function(e){return Math.ceil(a(e,1e-6,1)*t)*(1/t)}}var f,g,v=function(){function t(t,e){return 1-3*e+3*t}function e(t,e){return 3*e-6*t}function i(t){return 3*t}function n(n,o,r){return((t(o,r)*n+e(o,r))*n+i(o))*n}function o(n,o,r){return 3*t(o,r)*n*n+2*e(o,r)*n+i(o)}
vendor: 15,063 bytes, line 1
1return function(t,e,i,r){if(0<=t&&t<=1&&0<=i&&i<=1){var s=new Float32Array(11);if(t!==e||i!==r)for(var a=0;a<11;++a)s[a]=n(.1*a,t,i);return function(a){return t===e&&i===r||0===a||1===a?a:n(function(e){for(var r=0,a=1;10!==a&&s[a]<=e;++a)r+=.1;var l=r+(e-s[--a])/(s[a+1]-s[a])*.1,d=o(l,t,i);return d>=.001?function(t,e,i,r){for(var s=0;s<4;++s){var a=o(e,i,r);if(0===a)return e;e-=(n(e,i,r)-t)/a}return e}(e,l,t,i):0===d?l:function(t,e,i,o,r){var s,a,l=0;do{(s=n(a=e+(i-e)/2,o,r)-t)>0?i=a:e=a}while(Math.abs(s)>1e-7&&++l<10);return a}(e,r,r+.1,t,i)}(a),e,r)}}}}(),y=(f={linear:function(){return function(t){return t}}},g={Sine:function(){return function(t){return 1-Math.cos(t*Math.PI/2)}},Circ:function(){return function(t){return 1-Math.sqrt(1-t*t)}},Back:function(){return function(t){return t*t*(3*t-2)}},Bounce:function(){return function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}},Elastic:function(t,e){void 0===t&&(t=1),void 0===e&&(e=.5);var i=a(t,1,10),n=a(e,.1,2);return function(t){return 0===t||1===t?t:-i*Math.pow(2,10*(t-1))*Math.sin((t-1-n/(2*Math.PI)*Math.asin(1/i))*(2*Math.PI)/n)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach(function(t,e){g[t]=function(){return function(t){return Math.pow(t,e+2)}}}),Object.keys(g).forEach(function(t){var e=g[t];f["easeIn"+t]=e,f["easeOut"+t]=function(t,i){return function(n){return 1-e(t,i)(1-n)}},f["easeInOut"+t]=function(t,i){return function(n){return n<.5?e(t,i)(2*n)/2:1-e(t,i)(-2*n+2)/2}},f["easeOutIn"+t]=function(t,i){return function(n){return n<.5?(1-e(t,i)(1-2*n))/2:(e(t,i)(2*n-1)+1)/2}}}),f);function m(t,e){if(u.fnc(t))return t;var i=t.split("(")[0],n=y[i],o=c(t);switch(i){case"spring":return h(t,e);case"cubicBezier":return d(v,o);case"steps":return d(p,o);default:return d(n,o)}}function b(t){try{return document.querySelectorAll(t)}catch(t){return}}function S(t,e){for(var i=t.length,n=arguments.length>=2?arguments[1]:void 0,o=[],r=0;r<i;r++)if(r in t){var s=t[r];e.call(n,s,r,t)&&o.push(s)}return o}function E(t){return t.reduce(function(t,e){return t.concat(u.arr(e)?E(e):e)},[])}function C(t){return u.arr(t)?t:(u.str(t)&&(t=b(t)||t),t instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t])}function w(t,e){return t.some(function(t){return t===e})}function A(t){var e={};for(var i in t)e[i]=t[i];return e}function T(t,e){var i=A(t);for(var n in t)i[n]=e.hasOwnProperty(n)?e[n]:t[n];return i}function I(t,e){var i=A(t);for(var n in e)i[n]=u.und(t[n])?e[n]:t[n];return i}function M(t){var e=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t);if(e)return e[1]}function _(t,e){return u.fnc(t)?t(e.target,e.id,e.total):t}function x(t,e){return t.getAttribute(e)}function P(t,e,i){if(w([i,"deg","rad","turn"],M(e)))return e;var n=s.CSS[e+i];if(!u.und(n))return n;var o=document.createElement(t.tagName),r=t.parentNode&&t.parentNode!==document?t.parentNode:document.body;r.appendChild(o),o.style.position="absolute",o.style.width=100+i;var a=100/o.offsetWidth;r.removeChild(o);var l=a*parseFloat(e);return s.CSS[e+i]=l,l}function O(t,e,i){if(e in t.style){var n=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=t.style[e]||getComputedStyle(t).getPropertyValue(n)||"0";return i?P(t,o,i):o}}function L(t,e){return u.dom(t)&&!u.inp(t)&&(!u.nil(x(t,e))||u.svg(t)&&t[e])?"attribute":u.dom(t)&&w(r,e)?"transform":u.dom(t)&&"transform"!==e&&O(t,e)?"css":null!=t[e]?"object":void 0}function D(t){if(u.dom(t)){for(var e,i=t.style.transform||"",n=/(\w+)\(([^)]*)\)/g,o=new Map;e=n.exec(i);)o.set(e[1],e[2]);return o}}function k(t,e,i,n){switch(L(t,e)){case"transform":return o=t,s=n,a=i,u=l(r=e,"scale")?1:0+(l(d=r,"translate")||"perspective"===d?"px":l(d,"rotate")||l(d,"skew")?"deg":void 0),c=D(o).get(r)||u,s&&(s.transforms.list.set(r,c),s.transforms.last=r),a?P(o,c,a):c;case"css":return O(t,e,i);case"attribute":return x(t,e);default:return t[e]||0}var o,r,s,a,d,u,c}function N(t,e){var i=/^(\*=|\+=|-=)/.exec(t);if(!i)return t;var n=M(t)||0,o=parseFloat(e),r=parseFloat(t.replace(i[0],""));switch(i[0][0]){case"+":return o+r+n;case"-":return o-r+n;case"*":return o*r+n}}function B(t,e){if(u.col(t))return i=t,u.rgb(i)?(s=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(r=i))?"rgba("+s[1]+",1)":r:u.hex(i)?(n=i.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,n){return e+e+i+i+n+n}),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n),"rgba("+parseInt(o[1],16)+","+parseInt(o[2],16)+","+parseInt(o[3],16)+",1)"):u.hsl(i)?function(t){var e,i,n,o=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(t),r=parseInt(o[1],10)/360,s=parseInt(o[2],10)/100,a=parseInt(o[3],10)/100,l=o[4]||1;function d(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}if(0==s)e=i=n=a;else{var u=a<.5?a*(1+s):a+s-a*s,c=2*a-u;e=d(c,u,r+1/3),i=d(c,u,r),n=d(c,u,r-1/3)}return"rgba("+255*e+","+255*i+","+255*n+","+l+")"}(i):void 0;var i,n,o,r,s;if(/\s/g.test(t))return t;var a=M(t),l=a?t.substr(0,t.length-a.length):t;return e?l+e:l}function R(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function $(t){for(var e,i=t.points,n=0,o=0;o<i.numberOfItems;o++){var r=i.getItem(o);o>0&&(n+=R(e,r)),e=r}return n}function z(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return e=t,2*Math.PI*x(e,"r");case"rect":return function(t){return 2*x(t,"width")+2*x(t,"height")}(t);case"line":return function(t){return R({x:x(t,"x1"),y:x(t,"y1")},{x:x(t,"x2"),y:x(t,"y2")})}(t);case"polyline":return $(t);case"polygon":return function(t){var e=t.points;return $(t)+R(e.getItem(e.numberOfItems-1),e.getItem(0))}(t)}var e}function j(t,e){var i=e||{},n=i.el||function(e){for(var i=t.parentNode;u.svg(i)&&u.svg(i.parentNode);)i=i.parentNode;return i}(),o=n.getBoundingClientRect(),r=x(n,"viewBox"),s=o.width,a=o.height,l=i.viewBox||(r?r.split(" "):[0,0,s,a]);return{el:n,viewBox:l,x:l[0]/1,y:l[1]/1,w:s,h:a,vW:l[2],vH:l[3]}}function F(t,e,i){function n(i){void 0===i&&(i=0);var n=e+i>=1?e+i:0;return t.el.getPointAtLength(n)}var o=j(t.el,t.svg),r=n(),s=n(-1),a=n(1),l=i?1:o.w/o.vW,d=i?1:o.h/o.vH;switch(t.property){case"x":return(r.x-o.x)*l;case"y":return(r.y-o.y)*d;case"angle":return 180*Math.atan2(a.y-s.y,a.x-s.x)/Math.PI}}function U(t,e){var i=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,n=B(u.pth(t)?t.totalLength:t,e)+"";return{original:n,numbers:n.match(i)?n.match(i).map(Number):[0],strings:u.str(t)||e?n.split(i):[]}}function V(t){return S(t?E(u.arr(t)?t.map(C):C(t)):[],function(t,e,i){return i.indexOf(t)===e})}function W(t){var e=V(t);return e.map(function(t,i){return{target:t,id:i,total:e.length,transforms:{list:D(t)}}})}function H(t,e){var i=A(e);if(/^spring/.test(i.easing)&&(i.duration=h(i.easing)),u.arr(t)){var n=t.length;2!==n||u.obj(t[0])?u.fnc(e.duration)||(i.duration=e.duration/n):t={value:t}}var o=u.arr(t)?t:[t];return o.map(function(t,i){var n=u.obj(t)&&!u.pth(t)?t:{value:t};return u.und(n.delay)&&(n.delay=i?0:e.delay),u.und(n.endDelay)&&(n.endDelay=i===o.length-1?e.endDelay:0),n}).map(function(t){return I(t,i)})}var G={css:function(t,e,i){return t.style[e]=i},attribute:function(t,e,i){return t.setAttribute(e,i)},object:function(t,e,i){return t[e]=i},transform:function(t,e,i,n,o){if(n.list.set(e,i),e===n.last||o){var r="";n.list.forEach(function(t,e){r+=e+"("+t+") "}),t.style.transform=r}}};function Y(t,e){W(t).forEach(function(t){for(var i in e){var n=_(e[i],t),o=t.target,r=M(n),s=k(o,i,r,t),a=N(B(n,r||M(s)),s),l=L(o,i);G[l](o,i,a,t.transforms,!0)}})}function Q(t,e){var i=t.length,n=function(t){return t.timelineOffset?t.timelineOffset:0},o={};return o.duration=i?Math.max.apply(Math,t.map(function(t){return n(t)+t.duration})):e.duration,o.delay=i?Math.min.apply(Math,t.map(function(t){return n(t)+t.delay})):e.delay,o.endDelay=i?o.duration-Math.max.apply(Math,t.map(function(t){return n(t)+t.duration-t.endDelay})):e.endDelay,o}var Z=0,X=[],q=function(){var t;function e(i){for(var n=X.length,o=0;o<n;){var r=X[o];r.paused?(X.splice(o,1),n--):(r.tick(i),o++)}t=o>0?requestAnimationFrame(e):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",function(){J.suspendWhenDocumentHidden&&(K()?t=cancelAnimationFrame(t):(X.forEach(function(t){return t._onDocumentVisibility()}),q()))}),function(){t||K()&&J.suspendWhenDocumentHidden||!(X.length>0)||(t=requestAnimationFrame(e))}}();function K(){return!!document&&document.hidden}function J(t){void 0===t&&(t={});var e,i=0,r=0,s=0,l=0,d=null;function c(t){var e=window.Promise&&new Promise(function(t){return d=t});return t.finished=e,e}var h=function(t){var e,i=T(n,t),r=T(o,t),s=function(t,e){var i=[],n=e.keyframes;for(var o in n&&(e=I(function(t){for(var e=S(E(t.map(function(t){return Object.keys(t)})),function(t){return u.key(t)}).reduce(function(t,e){return t.indexOf(e)<0&&t.push(e),t},[]),i={},n=function(n){var o=e[n];i[o]=t.map(function(t){var e={};for(var i in t)u.key(i)?i==o&&(e.value=t[i]):e[i]=t[i];return e})},o=0;o<e.length;o++)n(o);return i}(n),e)),e)u.key(o)&&i.push({name:o,tweens:H(e[o],t)});return i}(r,t),a=W(t.targets),l=(e=s,S(E(a.map(function(t){return e.map(function(e){return function(t,e){var i,n,o,r=L(t.target,e.name);if(r){var s=(n=t,(i=e).tweens.map(function(t){var e=function(t,e){var i={};for(var n in t){var o=_(t[n],e);u.arr(o)&&1===(o=o.map(function(t){return _(t,e)})).length&&(o=o[0]),i[n]=o}return i.duration=parseFloat(i.duration),i.delay=parseFloat(i.delay),i}(t,n),r=e.value,s=u.arr(r)?r[1]:r,a=M(s),l=k(n.target,i.name,a,n),d=o?o.to.original:l,c=u.arr(r)?r[0]:d,h=M(c)||M(l),p=a||h;return u.und(s)&&(s=d),e.from=U(c,p),e.to=U(N(s,c),p),e.start=o?o.end:0,e.end=e.start+e.delay+e.duration+e.endDelay,e.easing=m(e.easing,e.duration),e.isPath=u.pth(r),e.isPathTargetInsideSVG=e.isPath&&u.svg(n.target),e.isColor=u.col(e.from.original),e.isColor&&(e.round=1),o=e,e})),a=s[s.length-1];return{type:r,property:e.name,animatable:t,tweens:s,duration:a.end,delay:s[0].delay,endDelay:a.endDelay}}}(t,e)})})),function(t){return!u.und(t)})),d=Q(l,r),c=Z;return Z++,I(i,{id:c,children:[],animatables:a,animations:l,duration:d.duration,delay:d.delay,endDelay:d.endDelay})}(t);function p(){var t=h.direction;"alternate"!==t&&(h.direction="normal"!==t?"normal":"reverse"),h.reversed=!h.reversed,e.forEach(function(t){return t.reversed=h.reversed})}function f(t){return h.reversed?h.duration-t:t}function g(){i=0,r=f(h.currentTime)*(1/J.speed)}function v(t,e){e&&e.seek(t-e.timelineOffset)}function y(t){for(var e=0,i=h.animations,n=i.length;e<n;){var o=i[e],r=o.animatable,s=o.tweens,l=s.length-1,d=s[l];l&&(d=S(s,function(e){return t<e.end})[0]||d);for(var u=a(t-d.start-d.delay,0,d.duration)/d.duration,c=isNaN(u)?1:d.easing(u),p=d.to.strings,f=d.round,g=[],v=d.to.numbers.length,y=void 0,m=0;m<v;m++){var b=void 0,E=d.to.numbers[m],C=d.from.numbers[m]||0;b=d.isPath?F(d.value,c*E,d.isPathTargetInsideSVG):C+c*(E-C),f&&(d.isColor&&m>2||(b=Math.round(b*f)/f)),g.push(b)}var w=p.length;if(w){y=p[0];for(var A=0;A<w;A++){p[A];var T=p[A+1],I=g[A];isNaN(I)||(y+=T?I+T:I+" ")}}else y=g[0];G[o.type](r.target,o.property,y,r.transforms),o.currentValue=y,e++}}function b(t){h[t]&&!h.passThrough&&h[t](h)}function C(t){var n=h.duration,o=h.delay,u=n-h.endDelay,g=f(t);h.progress=a(g/n*100,0,100),h.reversePlayback=g<h.currentTime,e&&function(t){if(h.reversePlayback)for(var i=l;i--;)v(t,e[i]);else for(var n=0;n<l;n++)v(t,e[n])}(g),!h.began&&h.currentTime>0&&(h.began=!0,b("begin")),!h.loopBegan&&h.currentTime>0&&(h.loopBegan=!0,b("loopBegin")),g<=o&&0!==h.currentTime&&y(0),(g>=u&&h.currentTime!==n||!n)&&y(n),g>o&&g<u?(h.changeBegan||(h.changeBegan=!0,h.changeCompleted=!1,b("changeBegin")),b("change"),y(g)):h.changeBegan&&(h.changeCompleted=!0,h.changeBegan=!1,b("changeComplete")),h.currentTime=a(g,0,n),h.began&&b("update"),t>=n&&(r=0,h.remaining&&!0!==h.remaining&&h.remaining--,h.remaining?(i=s,b("loopComplete"),h.loopBegan=!1,"alternate"===h.direction&&p()):(h.paused=!0,h.completed||(h.completed=!0,b("loopComplete"),b("complete"),!h.passThrough&&"Promise"in window&&(d(),c(h)))))}return c(h),h.reset=function(){var t=h.direction;h.passThrough=!1,h.currentTime=0,h.progress=0,h.paused=!0,h.began=!1,h.loopBegan=!1,h.changeBegan=!1,h.completed=!1,h.changeCompleted=!1,h.reversePlayback=!1,h.reversed="reverse"===t,h.remaining=h.loop,e=h.children;for(var i=l=e.length;i--;)h.children[i].reset();(h.reversed&&!0!==h.loop||"alternate"===t&&1===h.loop)&&h.remaining++,y(h.reversed?h.duration:0)},h._onDocumentVisibility=g,h.set=function(t,e){return Y(t,e),h},h.tick=function(t){s=t,i||(i=s),C((s+(r-i))*J.speed)},h.seek=function(t){C(f(t))},h.pause=function(){h.paused=!0,g()},h.play=function(){h.paused&&(h.completed&&h.reset(),h.paused=!1,X.push(h),g(),q())},h.reverse=function(){p(),h.completed=!h.reversed,g()},h.restart=function(){h.reset(),h.play()},h.remove=function(t){et(V(t),h)},h.reset(),h.autoplay&&h.play(),h}function tt(t,e){for(var i=e.length;i--;)w(t,e[i].animatable.target)&&e.splice(i,1)}function et(t,e){var i=e.animations,n=e.children;tt(t,i);for(var o=n.length;o--;){var r=n[o],s=r.animations;tt(t,s),s.length||r.children.length||n.splice(o,1)}i.length||n.length||e.pause()}J.version="3.2.1",J.speed=1,J.suspendWhenDocumentHidden=!0,J.running=X,J.remove=function(t){for(var e=V(t),i=X.length;i--;)et(e,X[i])},J.get=k,J.set=Y,J.convertPx=P,J.path=function(t,e){var i=u.str(t)?b(t)[0]:t,n=e||100;return function(t){return{property:t,el:i,svg:j(i),totalLength:z(i)*(n/100)}}},J.setDashoffset=function(t){var e=z(t);return t.setAttribute("stroke-dasharray",e),e},J.stagger=function(t,e){void 0===e&&(e={});var i=e.direction||"normal",n=e.easing?m(e.easing):null,o=e.grid,r=e.axis,s=e.from||0,a="first"===s,l="center"===s,d="last"===s,c=u.arr(t),h=c?parseFloat(t[0]):parseFloat(t),p=c?parseFloat(t[1]):0,f=M(c?t[1]:t)||0,g=e.start||0+(c?h:0),v=[],y=0;return function(t,e,u){if(a&&(s=0),l&&(s=(u-1)/2),d&&(s=u-1),!v.length){for(var m=0;m<u;m++){if(o){var b=l?(o[0]-1)/2:s%o[0],S=l?(o[1]-1)/2:Math.floor(s/o[0]),E=b-m%o[0],C=S-Math.floor(m/o[0]),w=Math.sqrt(E*E+C*C);"x"===r&&(w=-E),"y"===r&&(w=-C),v.push(w)}else v.push(Math.abs(s-m));y=Math.max.apply(Math,v)}n&&(v=v.map(function(t){return n(t/y)*y})),"reverse"===i&&(v=v.map(function(t){return r?t<0?-1*t:-t:Math.abs(y-t)}))}return g+(c?(p-h)/y:h)*(Math.round(100*v[e])/100)+f}},J.timeline=function(t){void 0===t&&(t={});var e=J(t);return e.duration=0,e.add=function(i,n){var r=X.indexOf(e),s=e.children;function a(t){t.passThrough=!0}r>-1&&X.splice(r,1);for(var l=0;l<s.length;l++)a(s[l]);var d=I(i,T(o,t));d.targets=d.targets||t.targets;var c=e.duration;d.autoplay=!1,d.direction=e.direction,d.timelineOffset=u.und(n)?c:N(n,c),a(e),e.seek(d.timelineOffset);var h=J(d);a(h),s.push(h);var p=Q(s,t);return e.delay=p.delay,e.endDelay=p.endDelay,e.duration=p.duration,e.seek(0),e.reset(),e.autoplay&&e.play(),e},e},J.easing=m,J.penner=y,J.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t};const it=J}
1,2827:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetCtaModal=void 0;const r=o(i(2776)),s=i(4403),a=i(6450),l=i(8921),d=i(277),u=i(4906);class c extends s.BaseWidget{constructor(){var t;super(),this.isOpen=!1,this.ctaContainer=l.WidgetsFactory.create("blaze-div"),this.ctaDrawer=l.WidgetsFactory.create("blaze-modal"),this.ctaUrl=l.WidgetsFactory.create("blaze-typography"),this.iconShare=l.WidgetsFactory.create("blaze-button"),this.iconExternalLink=l.WidgetsFactory.create("blaze-button"),this.textContainer=l.WidgetsFactory.create("blaze-div"),this.labelText=l.WidgetsFactory.create("blaze-typography"),this.progressBar=l.WidgetsFactory.create("blaze-div"),this.fullscreenOverlay=l.WidgetsFactory.create("blaze-div"),this.ctaDrawer.onClose=null===(t=this.onDrawerClose)||void 0===t?void 0:t.bind(this)}connectedCallback(){return n(this,void 0,void 0,function*(){this.ctaContainer.setStyle({display:"flex",flexDirection:"column",height:"2.5rem",fontSize:".8rem",fontFamily:u.Presets.playerFont,color:"#000"}),this.progressBar.id="progress-bar",this.progressBar.setStyle({height:"3px",width:"0",backgroundColor:"#fff",position:"absolute",bottom:"0",left:"0"}),this.fullscreenOverlay.id="fullscreen-overlay",this.fullscreenOverlay.setStyle({position:"fixed",top:"0",left:"0",width:"100%",height:"100%",display:"none",zIndex:"1000"}),this.render()})}disconnectedCallback(){this.removeChild(this.ctaDrawer)}attributeChangedCallback(t,e,i){switch(t){case"cta-url":this.ctaUrl.text=i;break;case"background-color":this.ctaDrawer.setAttribute("background-color",i);break;case"icon-color":this.iconExternalLink.setAttribute("icon-color",i),this.iconShare.setAttribute("icon-color",i);break;case"text-color":this.ctaUrl.setStyle({color:i}),this.labelText.setStyle({color:i});break;case"border-color":this.ctaDrawer.setAttribute("border-color",i);break;case"progress-bar-color":this.progressBar.setStyle({backgroundColor:i})}}animateProgressBar(t){let e={targets:"#progress-bar",width:t?"100%":"0",duration:t?a.ONE_AND_HALF_SECOND:1,easing:"easeInQuad"};(0,r.default)(e)}onDrawerClose(){this.animateProgressBar(!1)}open(){this.ctaDrawer.open(),this.animateProgressBar(!0),this.fullscreenOverlay.setStyle({display:"block"}),this.isOpen=!0}close(){this.ctaDrawer.close(),this.animateProgressBar(!1),this.fullscreenOverlay.setStyle({display:"none"}),this.isOpen=!1}render(){this.ctaDrawer.init({anchor:"bottom",component:this.ctaContainer}),this.append(this.ctaDrawer),this.iconShare.setIconUrl(d.externalLinkIconSvg),this.iconShare.setAttribute("icon-color","#000"),this.textContainer.setStyle({display:"flex",alignSelf:"center",maxWidth:"75%"}),this.labelText=l.WidgetsFactory.create("blaze-typography"),this.labelText.text="Opening",this.labelText.setStyle({fontWeight:"bold",marginRight:"0.5rem"}),this.ctaUrl.setStyle({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"inline-block"}),this.textContainer.append(this.labelText),this.textContainer.append(this.ctaUrl);const t=l.WidgetsFactory.create("blaze-div");t.setStyle({display:"flex",gap:"1rem",padding:"0.5rem",alignItems:"center",justifyContent:"space-between"}),this.iconExternalLink=l.WidgetsFactory.create("blaze-button"),this.iconExternalLink.setIconUrl(d.newPageIcon),this.iconExternalLink.setAttribute("icon-color","#000"),t.append(this.iconShare),t.append(this.textContainer),t.append(this.iconExternalLink),this.ctaContainer.append(t),this.ctaDrawer.setAttribute("border-radius","1rem 1rem 0 0"),this.ctaContainer.append(this.progressBar),this.append(this.fullscreenOverlay)}}e.BlazeWidgetCtaModal=c,c.observedAttributes=["cta-url","background-color","icon-color","text-color","border-color","progress-bar-color"]},2904:(t,e,i)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetContent=void 0;const n=i(9126),o=i(4403),r=i(6450),s=i(4545),a=i(9266);e.BlazeWidgetContent=class extends HTMLElement{constructor(){super(),this.pageIndex=0,this.startTrigger="",this.exitTrigger="",this.navigationType="",this.navigationDirection="",this.listeners=new o.EventsListener,this.isActive=!1,this.isResumeOnFocusExecuted=!1,this.isNavigationPending=!1,this.isPausedManually=!1,this.resumeAfterfocus=!1,this.contentExtraInfo=void 0,this.widgetParentItem={},this.sessionId="",this.adIndex=0,this.detachTimeout=null,this.isScheduledForDetach=!1,this.container=document.createElement("div"),this.container.style.touchAction="manipulation",this.container.style.cssText+="-webkit-user-select: none;"}connectedCallback(){this.detachTimeout&&(clearTimeout(this.detachTimeout),this.detachTimeout=null,this.isScheduledForDetach=!1),this.isScheduledForDetach||this.attachEventListeners()}disconnectedCallback(){this.isScheduledForDetach=!0,this.detachTimeout=setTimeout(()=>{this.isConnected||(this.detachEventListeners(),this.isScheduledForDetach=!1),this.detachTimeout=null},0)}attachEventListeners(){this.isScheduledForDetach||(window.addEventListener("focus",this.boundOnFocusEvent),window.addEventListener("blur",this.boundOnBlurEvent),window.addEventListener("visibilitychange",this.boundOnVisibilityChangeEvent),a.SharedEventTarget.addEventListener(r.CLOSED_CAPTIONS_LANGUAGE_CHANGE,this.boundOnLanguageChangeEvent))}detachEventListeners(){window.removeEventListener("blur",this.boundOnFocusEvent),window.removeEventListener("focus",this.boundOnBlurEvent),window.removeEventListener("visibilitychange",this.boundOnVisibilityChangeEvent),a.SharedEventTarget.removeEventListener(r.CLOSED_CAPTIONS_LANGUAGE_CHANGE,this.boundOnLanguageChangeEvent)}setWidgetItemParent(t){this.widgetParentItem=t}updateWidgetStatusReadUnread(){var t,e,i,n,o,r,s,a;null===(e=null===(t=this.widgetParentItem)||void 0===t?void 0:t.updateWidget)||void 0===e||e.call(t),null===(n=null===(i=this.widgetParentItem)||void 0===i?void 0:i.setChipStyle)||void 0===n||n.call(i),null===(r=null===(o=this.widgetParentItem)||void 0===o?void 0:o.render)||void 0===r||r.call(o),null===(a=null===(s=this.widgetParentItem)||void 0===s?void 0:s.updateWidgetItemPadding)||void 0===a||a.call(s)}getRefferingObject(){var t,e,i;const r=new o.ReferringEventInfo,a=(null===(t=this.widgetParentItem)||void 0===t?void 0:t.parentRef)||(null===(e=this.refContentModal)||void 0===e?void 0:e.parentWidget);if(a&&a instanceof n.BlazeWidgetLayout&&(r.origin_widget_id=a.id,r.origin_widget_type=a.widgetType(),r.labels_expression=a.getAttribute("labels")),(s.ConfigService.staticContent||s.ConfigService.staticContentType)&&(r.story_source="OneBox"),document.referrer){r.referrer_page_url=document.referrer;const t=document.referrer.indexOf("#blaze"),e=-1!==t?document.referrer.slice(0,t):document.referrer;r.referrer_page_type=/^(https?:\/\/[^/]+\/?)$/i.test(e)?"Homepage":"Category/Article",r.referrer_page_domain=document.referrer?null===(i=new URL(document.referrer))||void 0===i?void 0:i.hostname:""}return r}setContentExtraInfo(t){this.contentExtraInfo=t}render(){}}},2914:function(t,e,i){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.deviceDetector=e.DEVICE_EVENTS=e.Platform=void 0;const o=n(i(7232));e.Platform={Console:"console",Mobile:"mobile",Tablet:"tablet",SmartTV:"smarttv",Wearable:"wearable",Embedded:"embedded",Desktop:"desktop"},e.DEVICE_EVENTS={SCREEN_ORIENTATION_CHANGE:"screenOrientationChange"};class r{constructor(){this.boundResizeListener=this.handleResize.bind(this),this.parser=new o.default(navigator.userAgent),this.OS=this.detectOS(),this.platform=this.detectPlatform(),this.browser=this.detectBrowser(),this.screenOrientation=this.getScreenOrientation(),window.addEventListener("resize",this.boundResizeListener)}removeResizeListener(){window.removeEventListener("resize",this.boundResizeListener)}static getInstance(){return r.instance||(r.instance=new r),r.instance}detectOS(){return this.parser.getOS().name}detectBrowser(){return this.parser.getBrowser().name}get getPlatform(){return this.parser.getDevice().type}get isDesktop(){return"desktop"===this.platform}get isMobile(){return"mobile"===this.platform}get isTablet(){return"tablet"===this.platform}detectPlatform(){var t;
1const e=null===(t=this.parser.getDevice())||void 0===t?void 0:t.type,i="mobile"===e,n="tablet"===e,o=window.innerWidth>830||this.isDesktop;if(i)return"mobile";if(n)return"tablet";if(o)return"desktop";if("ontouchstart"in window||navigator.maxTouchPoints>0){if(window.innerWidth<=480)return"mobile";if(window.innerWidth<=830)return"tablet"}return"desktop"}getScreenOrientation(){return window.innerHeight>window.innerWidth?"portrait":"landscape"}handleResize(){this.OS=this.detectOS(),this.platform=this.detectPlatform();const t=this.screenOrientation;if(this.screenOrientation=this.getScreenOrientation(),t!==this.screenOrientation){const t={orientation:this.screenOrientation,changedAt:Date.now()},i=new CustomEvent(e.DEVICE_EVENTS.SCREEN_ORIENTATION_CHANGE,{detail:t,bubbles:!0,cancelable:!0});window.dispatchEvent(i)}}isIOSMobileTabletSafari(){const t="iOS"===e.deviceDetector.OS,i="tablet"===e.deviceDetector.platform&&"Mac OS"===e.deviceDetector.OS,n="Mobile Safari"===e.deviceDetector.browser||"Safari"===e.deviceDetector.browser;return t||n||i}get isFullscreenSupported(){return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.msFullscreenEnabled}getDeviceInfo(){return this.parser.getDevice()}getOSInfo(){return this.parser.getOS()}}e.deviceDetector=r.getInstance()},2954:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},3128:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},3136:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.calculatePosition=function(t){return{isOutside:t.startsWith("outside"),isInside:t.startsWith("inside"),isTop:t.
1includes("Top"),isMiddle:t.includes("Middle"),isBottom:t.includes("Bottom"),isLeft:t.includes("Left"),isRight:t.includes("Right")}}},3166:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeLoader=void 0;const n=i(356);e.BlazeLoader=class extends HTMLElement{constructor(){super();const t=this.attachShadow({mode:"open"}),e=document.createElement("style");e.textContent="\n      :host {\n        display: block;\n        position: relative;\n        width: 40px;\n        height: 40px;\n      } \n    ",t.appendChild(e)}static get observedAttributes(){return["color","size"]}attributeChangedCallback(t,e,i){"color"===t&&e!==i?this.updateLoaderColor(i):"size"===t&&e!==i&&this.updateLoaderSize(i)}connectedCallback(){var t;const e=this.getAttribute("color")||"#fff";this.updateLoaderColor(e),null===(t=this.animate)||void 0===t||t.call(this,[{transform:"rotate(0)"},{transform:"rotate(360deg)"}],{duration:1e3,iterations:Number.POSITIVE_INFINITY,easing:"linear"})}updateLoaderSize(t){(0,n.mergeStyles)(this,{width:t,height:t})}updateLoaderColor(t){(0,n.mergeStyles)(this,{display:"block",border:"solid 3px "+t,borderRadius:"50%",borderRightColor:"transparent",borderBottomColor:"transparent",transition:"transform 1s linear"})}}},3214:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getVideoDuration=function(t,e){return new Promise(i=>{let n=t,o=!1;if(t&&!isNaN(t.duration)&&t.duration>0)return void i(t.duration);if(t)!e||t.src&&!isNaN(t.duration)||(o=!0);else{if(!e)return void i(0);o=!0}if(o&&((n=document.createElement("video")).preload="metadata",n.src=e),!isNaN(n.duration)&&n.duration>0)return void i(n.duration);const r=setTimeout(()=>{l(),i(0)},2e3),s=()=>{const t=n.duration;l(),!isNaN(t)&&t>0?i(t):i(0)},a=()=>{l(),i(0)},l=()=>{clearTimeout(r),n.removeEventListener("loadedmetadata",s),n.removeEventListener("error",a),o&&(n.src="")};n.addEventListener("loadedmetadata",s),n.addEventListener("error",a),!o&&n.readyState>=1&&n.duration>0&&!isNaN(n.duration)&&(l(),i(n.duration))})}},3276:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetEmbeddedStory=void 0;const o=i(9126),r=i(9965),s=i(4545),a=i(4906),l=i(9266),d=i(6806),u=i(1356);e.BlazeWidgetEmbeddedStory=class extends u.BlazeWidgetEmbeddedBase{constructor(){super(),this.contents=[],this.currentStoryPlayerIndex=0,this.stories=[],this.isCurrentPlayerFirstPlay=!0}static get observedAttributes(){return Object.values(u.EMBEDDED_ATTRIBUTES)}connectedCallback(){super.connectedCallback(),this.addEventListener(r.InternalEvent.NEXT_STORY,this.nextStory),this.addEventListener(r.InternalEvent.PREV_STORY,this.prevStory),this.addEventListener(r.InternalEvent.FULL_SCREEN_CLICK,this.onFullScreenClickHandler,!0),this.addEventListener(r.InternalEvent.AD_ENDED,this.onCustomNativeAdEnded),this.addEventListener(r.InternalEvent.AD_RESUMED,this.onVastAdResumedEnded)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(r.InternalEvent.NEXT_STORY,this.nextStory),this.removeEventListener(r.InternalEvent.PREV_STORY,this.prevStory),this.removeEventListener(r.InternalEvent.FULL_SCREEN_CLICK,this.onFullScreenClickHandler,!0),this.removeEventListener(r.InternalEvent.AD_ENDED,this.onCustomNativeAdEnded),this.removeEventListener(r.InternalEvent.AD_RESUMED,this.onVastAdResumedEnded)}setContentIds(t,e){this.setReloadData(e),this.setAttribute(u.EMBEDDED_ATTRIBUTES.ContentIds,t.join())}setSearchText(t,e){}setId(t){this.id="widget-embedded-story-"+t}getThemeContentType(){return"story"}setTheme(t){super.setTheme(t),this.modal=this.createModal()}handleSpecificAttributeChange(t,e,i){t===u.EMBEDDED_ATTRIBUTES.ContentIds&&e&&this.reloadLogic()}handleIntersection(t){const e=t.find(t=>t.target===this);e&&(this.isIntersecting=e.isIntersecting,this.currentStoryPlayer&&(this.isIntersecting?this.playContent():this.pauseContent()))}pauseContent(){var t,e,i,n,o;(null===(t=this.currentStoryPlayer)||void 0===t?void 0:t.currentPage.isCurrentlyTryingToRunImaAd)&&(null===(i=null===(e=this.currentStoryPlayer)||void 0===e?void 0:e.currentPage.widgetVastAd)||void 0===i||i.pause()),(null===(n=this.currentStoryPlayer)||void 0===n?void 0:n.currentPage.paused)||(this.stateManager.isPlaying=!1,null===(o=this.currentStoryPlayer)||void 0===o||o.playToggle({customIsPlaying:!0}))}playContent(){var t,e,i,n,o,r,s,a,l;if(!this.isIntersecting)return;if(!(null===(t=this.currentStoryPlayer)||void 0===t?void 0:t.currentPage.paused))return;const d=(null===(e=this.currentStoryPlayer)||void 0===e?void 0:e.currentPage.isCurrentlyTryingToRunImaAd)||"Ad"===(null===(n=null===(i=this.currentStoryPlayer)||void 0===i?void 0:i.currentPage.data)||void 0===n?void 0:n.type);(null===(o=this.currentStoryPlayer)||void 0===o?void 0:o.currentPage.isCurrentlyTryingToRunImaAd)&&(null===(s=null===(r=this.currentStoryPlayer)||void 0===r?void 0:r.currentPage.widgetVastAd)||void 0===s||s.resume()),d||(this.stateManager.isPlaying=!0,this.isCurrentPlayerFirstPlay?(this.isCurrentPlayerFirstPlay=!1,null===(a=this.currentStoryPlayer)||void 0===a||a.play()):null===(l=this.currentStoryPlayer)||void 0===l||l.playToggle({customIsPlaying:!1}))}get currentStoryPlayer(){return this.contents[this.currentStoryPlayerIndex]}loadContent(){return n(this,void 0,void 0,function*(){var t,e;s.EventService.dispatch(this,r.Delegation.onWidgetDataLoadStarted,{widgetId:this.id}),this.removeCurrentStoryPlayer(),this.showSkeleton(),this.contents=[];const i=this.getAttribute(u.EMBEDDED_ATTRIBUTES.MaxItems),n=this.getAttribute(u.EMBEDDED_ATTRIBUTES.Labels),o=this.getAttribute(u.EMBEDDED_ATTRIBUTES.OrderType),a=this.getAttribute(u.EMBEDDED_ATTRIBUTES.ContentIds),c=null==a?void 0:a.split(","),h=this.getAttribute(u.EMBEDDED_ATTRIBUTES.LabelsPriority),{data:p}=(null==c?void 0:c.length)&&!n?yield s.ApiService.getStoriesByIds({ids:c,orderType:o}):yield s.ApiService.getStoriesByLabels({labels:n,orderType:o,maxItems:i,labelsPriority:h});this.defaultAdsInfo=null==p?void 0:p.defaultAdsInfo;let f=null!==(t=null==p?void 0:p.result)&&void 0!==t?t:[];const g=Object.assign(Object.assign({},this.theme.playerStyle),{iconsPosition:"VERTICAL",iconsButtonPadding:"7px"});
1try{(f=yield s.DatabaseService.enrichStories(f)).forEach(t=>{t.hasViewed=(0,l.isReadByLastUnIgnoredPageStatus)(t)})}catch(t){s.EventService.dispatch(this,r.Delegation.onErrorThrown,{widgetId:this.id,errorCode:r.ErrorCode.FailedEnrichStories})}this.getAttribute("should-order-widget-by-read-status")&&"Manual"!==o&&f.sort((t,e)=>{const i=t.hasViewed?1:2;return(e.hasViewed?1:2)-i}),f.forEach((t,e)=>{var i,n,o,r;const a=new d.BlazeWidgetStory(g,"Embedded",void 0,(null===(i=this.parentElement)||void 0===i?void 0:i.clientWidth)&&(null===(n=this.parentElement)||void 0===n?void 0:n.clientHeight)&&(null===(o=this.parentElement)||void 0===o?void 0:o.clientWidth)>=(null===(r=this.parentElement)||void 0===r?void 0:r.clientHeight)?"Horizontal":"Vertical",this.stateManager);a.startTrigger="Embedded Player in Viewport",a.setData(t),a.resetStoryLocationIndexToLastUnseen(),this.contents.push(a),s.AdService.pushAdsBetweenStories(this.defaultAdsInfo,this.contents,f,e,0,g,"Embedded")}),this.contents.forEach(t=>{t.refWidget=this.contents});const v=this.contents[0];v&&(v.shouldShowImaAdOnStart=!1),this.setCurrentStoryPlayer(0),null===(e=this.currentStoryPlayer)||void 0===e||e.currentPage.startEnter(),s.EventService.dispatch(this,r.Delegation.onWidgetDataLoadCompleted,{widgetId:this.id,storyCount:f.length}),this.hideSkeleton(),this.stories=f})}setCurrentStoryPlayer(t,e){var i;null===(i=this.currentStoryPlayer)||void 0===i||i.currentPage.endExit(),this.removeCurrentStoryPlayer(),this.isCurrentPlayerFirstPlay=!0;const n=t<0,o=t>=this.contents.length;n||o?(this.currentStoryPlayerIndex=0,o&&this.contents.forEach(t=>t.resetStoryLocationIndexToLastUnseen())):this.currentStoryPlayerIndex=t,this.currentStoryPlayer&&(isNaN(Number(e))||(this.currentStoryPlayer.pageIndex=null!=e?e:0),this.appendChild(this.currentStoryPlayer),this.currentStoryPlayer.load(),this.isIntersecting&&(this.isCurrentPlayerFirstPlay?(this.isCurrentPlayerFirstPlay=!1,this.currentStoryPlayer.play()):this.currentStoryPlayer.playToggle({customIsPlaying:!1})),this.currentStoryPlayer.currentPage.startEnter(),this.currentStoryPlayer.currentPage.endEnter())}nextStory(){var t,e,i;const n=null!==(e=null===(t=this.currentStoryPlayer)||void 0===t?void 0:t.pages.length)&&void 0!==e?e:0;this.currentStoryPlayer&&n&&(null===(i=this.currentStoryPlayer.pages[n-1])||void 0===i||i.pause()),this.setCurrentStoryPlayer(this.currentStoryPlayerIndex+1)}prevStory(){var t,e,i;null===(i=null===(e=null===(t=this.currentStoryPlayer)||void 0===t?void 0:t.pages)||void 0===e?void 0:e[0])||void 0===i||i.pause(),this.setCurrentStoryPlayer(this.currentStoryPlayerIndex-1)}removeCurrentStoryPlayer(){var t;null===(t=this.currentStoryPlayer)||void 0===t||t.remove()}createModal(){this.updatePlayerStyle();const t=this.modal?this.modal:new o.BlazeWidgetStoryModal(this,this.theme.playerStyle,void 0,this.stateManager);return this.modal&&this.modal.setTheme(this.theme.playerStyle),t.setModalContent(this.stories,0,this.defaultAdsInfo),t.onClose=this.handleModalClose.bind(this),t}handleModalClose(t){if(this.stateManager.isPlaying=!0,null==t?void 0:t.storyId){const e=this.contents.findIndex(e=>e.data.id===t.storyId);if(-1===e)return;const i=this.contents[e].shouldShowImaAdOnStart;this.contents[e].shouldShowImaAdOnStart=!1,this.setCurrentStoryPlayer(e,null==t?void 0:t.pageIndex),this.contents[e].shouldShowImaAdOnStart=i}}updatePlayerStyle(){const t=(0,l.mergeDeep)(a.ThemeFactory.create("default").playerStyle,s.ConfigService.playerStyleCustomization);(0,l.applyPlayerStyleChanges)(a.ThemeFactory.create("default").playerStyle,t,this.theme.playerStyle,{GLOBAL:[],LOCAL:[]})}openFullscreen(){this.currentStoryPlayer&&(this.pauseContent(),this.modal=this.createModal(),this.appendModalToBlazeSDK(this.modal),this.modal.seek(this.currentStoryPlayer.data.id),this.modal.open({pageIndex:this.currentStoryPlayer.pageIndex}))}appendModalToBlazeSDK(t){const e=document.getElementsByTagName("blaze-sdk")[0];e&&e.append(t)}onFullScreenClickHandler(t){t.stopPropagation(),this.openFullscreen()}onCustomNativeAdEnded(){var t;this.isIntersecting||null===(t=this.currentStoryPlayer)||void 0===t||t.pause()}onVastAdResumedEnded(){var t,e;this.isIntersecting||null===(e=null===(t=this.currentStoryPlayer)||void 0===t?void 0:t.currentPage.widgetVastAd)||void 0===e||e.pause()}getAnimationTargetSelector(){return"blaze-widget-story"}}},3311:(t,e)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.PseudoFullscreenManager=void 0,e.PseudoFullscreenManager=class{constructor(t){this.isActive=!1,this.state=null,this.PSEUDO_FULLSCREEN_CLASS="pseudo-fullscreen",this.element=t,this.boundPreventPullToRefresh=this.preventPullToRefresh.bind(this),this.boundHandleVisualViewportResize=this.handleVisualViewportResize.bind(this)}toggle(){this.isActive?this.exit():this.enter()}enter(){var t;this.isActive||(this.captureCurrentState(),this.applyPseudoFullscreenStyles(),this.preventPageScrolling(),this.setupTouchEventListeners(),this.setupVisualViewportListener(),this.isActive=!0,this.element.classList.add(this.PSEUDO_FULLSCREEN_CLASS),null===(t=this.onStateChange)||void 0===t||t.call(this,!0))}exit(){var t;this.isActive&&(this.restoreOriginalState(),this.restorePageScrolling(),this.removeTouchEventListeners(),this.removeVisualViewportListener(),this.isActive=!1,this.element.classList.remove(this.PSEUDO_FULLSCREEN_CLASS),this.state=null,null===(t=this.onStateChange)||void 0===t||t.call(this,!1))}isInPseudoFullscreen(){return this.isActive}forceExit(){this.isActive&&this.exit()}destroy(){this.forceExit()}captureCurrentState(){const t=this.element,e={x:window.scrollX,y:window.scrollY},i={position:t.style.position,top:t.style.top,left:t.style.left,width:t.style.width,height:t.style.height,transform:t.style.transform,zIndex:t.style.zIndex,backgroundColor:t.style.backgroundColor,borderRadius:t.style.borderRadius,touchAction:t.style.touchAction},n={overflow:document.body.style.overflow,position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,width:document.body.style.width,overscrollBehavior:document.body.style.overscrollBehavior};this.state={originalStyles:i,originalBodyStyles:n,savedScrollPosition:e}}applyPseudoFullscreenStyles(){var t,e;if(!this.state)return;const i=(null===(t=window.visualViewport)||void 0===t?void 0:t.height)||window.innerHeight,n={position:"fixed",top:"0",left:"0",width:((null===(e=window.visualViewport)||void 0===e?void 0:e.width)||window.innerWidth)+"px",height:i+"px",backgroundColor:"black",zIndex:"9999",transform:"none",borderRadius:"0",touchAction:"manipulation"};Object.assign(this.element.style,n)}preventPageScrolling(){if(!this.state)return;const{savedScrollPosition:t}=this.state;document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.top="-"+t.y+"px",document.body.style.left="-"+t.x+"px",document.body.style.width="100%",document.body.style.overscrollBehavior="none",document.documentElement.style.overscrollBehavior="none"}setupTouchEventListeners(){document.addEventListener("touchstart",this.boundPreventPullToRefresh,{passive:!1}),document.addEventListener("touchmove",this.boundPreventPullToRefresh,{passive:!1})}setupVisualViewportListener(){"visualViewport"in window&&window.visualViewport&&window.visualViewport.addEventListener("resize",this.boundHandleVisualViewportResize)}restoreOriginalState(){if(!this.state)return;const{originalStyles:t}=this.state;Object.assign(this.element.style,t)}restorePageScrolling(){if(!this.state)return;const{originalBodyStyles:t,savedScrollPosition:e}=this.state;Object.assign(document.body.style,t),document.body.style.overscrollBehavior="",document.documentElement.style.overscrollBehavior="",window.scrollTo({top:e.y,left:e.x,behavior:"instant"})}removeTouchEventListeners(){document.removeEventListener("touchstart",this.boundPreventPullToRefresh),document.removeEventListener("touchmove",this.boundPreventPullToRefresh)}removeVisualViewportListener(){"visualViewport"in window&&window.visualViewport&&window.visualViewport.removeEventListener("resize",this.boundHandleVisualViewportResize)}preventPullToRefresh(t){this.element.contains(t.target)||(t.preventDefault(),t.stopPropagation())}handleVisualViewportResize(){if(!this.isActive||!window.visualViewport)return;const t=this.element,e=window.visualViewport.height,i=window.visualViewport.width;t.style.width=i+"px",t.style.height=e+"px"}}},3320:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},3324:(t,e)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0})},3334:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CUSTOM_SCROLLBAR_TEMPLATE=void 0,e.CUSTOM_SCROLLBAR_TEMPLATE="\n    ::-webkit-scrollbar {\n      width: 4px; /* Width of the scrollbar */\n    }\n\n    ::-webkit-scrollbar-thumb {\n      background-color: #404040; /* Scrollbar thumb color */\n      border-radius: 8px; /* Rounded corners */\n    }\n\n    ::-webkit-scrollbar-track {\n      background: transparent; /* Optional: scrollbar track background */\n    }\n\n    :host {\n      scrollbar-width: thin; /* Thin scrollbar for Firefox */\n      scrollbar-color: #404040 transparent; /* Thumb color and track color for Firefox */\n    }\n  "},3380:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.ApiService=void 0;const o=i(4545),r=i(1643),s=i(4403),a=i(9266),l="UserManagement";e.ApiService=class extends((0,s.Singleton)()){constructor(){super(...arguments),this.api={}}init(){return n(this,void 0,void 0,function*(){this.api=new r.API({baseUrl:o.ConfigService.apiUrl,analyticsBaseUrl:o.ConfigService.analyticsApiUrl}),this.analyticsUrlRotator=new s.UrlRotator({fallbackUrl:o.ConfigService.analyticsApiUrl,apiVersion:"v1"})})}setAdsOnStories(t,e){var i;return"EveryXStories"===(null===(i=null==e?void 0:e.configuration)||void 0===i?void 0:i.adsLocationType)?t:o.AdService.canRunAds?t.map(t=>{var i,n,o;const r=null!==(i=null==e?void 0:e.configuration)&&void 0!==i?i:null===(n=t.adInfo)||void 0===n?void 0:n.configuration,s=null!==(o=t.adInfo)&&void 0!==o?o:e,a=null==r?void 0:r.adLocationsIndexes.sort((t,e)=>t-e);switch(null==s?void 0:s.type){case"Web":const e=t.pages.length;let i=0;null==a||a.forEach(n=>{e>n&&(t.pages.splice(n+i,0,{id:"ad-"+t.id+"-"+n,duration:5,ignoreReadStatusForStory:!1,hasViewed:!1,type:"Ad",createTime:(new Date).toLocaleString(),adInfo:s}),i++)});break;case"IMA":null==a||a.forEach(e=>{const i=t.pages[e];"Content"===(null==i?void 0:i.type)&&(i.adInfo=s,i.shouldShowImaAd=!0)})}return t}):t}getStoriesByIds(t){return n(this,void 0,void 0,function*(){var e,i,n;const{showLiveFirst:o}=t,r=Object.assign(Object.assign(Object.assign({},this.getContentParamsByIds(t)),o&&{showLiveFirst:o}),(0,a.getPersonalizedParamsForRequest)(t.personalized)),s=yield this.api.get("stories/ids",{urlSearchParams:r});return Object.assign(Object.assign({},s),{result:this.setAdsOnStories(null!==(i=null===(e=s.data)||void 0===e?void 0:e.result)&&void 0!==i?i:[],null===(n=s.data)||void 0===n?void 0:n.defaultAdsInfo)})})}getStoriesByLabels(t){return n(this,void 0,void 0,function*(){var e,i,n;const{showLiveFirst:o,personalized:r}=t,s=Object.assign(Object.assign(Object.assign({},this.getContentParamsByLabels(t)),o&&{showLiveFirst:o}),(0,a.getPersonalizedParamsForRequest)(r)),l=yield this.api.get("stories",{urlSearchParams:s}),d=this.setAdsOnStories(null!==(i=null===(e=l.data)||void 0===e?void 0:e.result)&&void 0!==i?i:[],null===(n=l.data)||void 0===n?void 0:n.defaultAdsInfo);return Object.assign(Object.assign({},l),{result:d})})}getStoriesByText(t){return n(this,void 0,void 0,function*(){var e,i,n;const{showLiveFirst:o,personalized:r}=t,s=Object.assign(Object.assign(Object.assign({},this.getContentParamsByText(t)),o&&{showLiveFirst:o}),(0,a.getPersonalizedParamsForRequest)(r)),l=yield this.api.get("stories",{urlSearchParams:s}),d=this.setAdsOnStories(null!==(i=null===(e=l.data)||void 0===e?void 0:e.result)&&void 0!==i?i:[],null===(n=l.data)||void 0===n?void 0:n.defaultAdsInfo);return Object.assign(Object.assign({},l),{result:d})})}getMomentByIds(t){return n(this,void 0,void 0,function*(){const e=yield this.api.get("moments/ids",{urlSearchParams:this.getContentParamsByIds(t)});return Object.assign({},e)})}getMomentsByLabels(t){return n(this,void 0,void 0,function*(){return yield this.api.get("moments",{urlSearchParams:this.getContentParam
1sByLabels(t)})})}getMomentsByText(t){return n(this,void 0,void 0,function*(){return yield this.api.get("moments",{urlSearchParams:this.getContentParamsByText(t)})})}getContentByRecommendations(t){return n(this,void 0,void 0,function*(){const{forYou:e,trending:i}=t.recommendations;if(!e&&!i)throw new Error("Invalid recommendation options: must specify either forYou or trending");const n=i?"trending":"forYou";return yield this.api.get("recommendations/"+n,{urlSearchParams:this.getContentParamsByRecommendations(t),auth:!0})})}updateMomentLikeStatus(t){return n(this,void 0,void 0,function*(){yield this.api.put("Moments/like",{urlSearchParams:t,auth:!0})})}getStaticStories(){return n(this,void 0,void 0,function*(){var t;for(let e=1;e<=3;e++){const i=null===(t=null===document||void 0===document?void 0:document.getElementById("wsc-response"))||void 0===t?void 0:t.textContent;if(!i)return null;try{const t=JSON.parse(i),n=this.setAdsOnStories([t]);return n.length>0?n[0]:null}catch(t){if(!(e<3))return null;yield new Promise(t=>setTimeout(t,500))}}return null})}getVideosByIds(t){return n(this,void 0,void 0,function*(){const e=yield this.api.get("videos/ids",{urlSearchParams:this.getContentParamsByIds(t)});return Object.assign({},e)})}getVideosByLabels(t){return n(this,void 0,void 0,function*(){const e=yield this.api.get("videos",{urlSearchParams:this.getContentParamsByLabels(t)});return Object.assign({},e)})}getVideosByText(t){return n(this,void 0,void 0,function*(){const e=yield this.api.get("videos",{urlSearchParams:this.getContentParamsByText(t)});return Object.assign({},e)})}updateVideosLikeStatus(t){return n(this,void 0,void 0,function*(){yield this.api.put("Videos/like",{urlSearchParams:t,auth:!0})})}sendAnaltyicsEvents(t){return n(this,void 0,void 0,function*(){let e="events";o.ConfigService.doNotTrack&&(e+="_do_not_track");const i=this.getAnalyticsEndpoint()+"/"+e,n={api_key:o.ConfigService.apiKey?o.ConfigService.apiKey:""};return yield this.api.post("",{urlSearchParams:n,baseUrl:i,init:{body:JSON.stringify(t),keepalive:!0}})})}sendLoggerLogs(t){return n(this,void 0,void 0,function*(){return yield this.api.post("",{urlSearchParams:{api_key:o.ConfigService.apiKey},baseUrl:o.ConfigService.loggerApiUrl,init:{body:t,keepalive:!0,headers:{"Content-Type":"application/json","Content-Encoding":"gzip"}}})})}sendInteractionResponse(t){return n(this,void 0,void 0,function*(){yield this.api.put("Interactions/Response/"+t.interactionType+"/"+t.interactionId,{init:{body:JSON.stringify(t.responseId)},auth:!0})})}getUserToken(t){return this.api.post(l,{init:{body:JSON.stringify(t)},urlSearchParams:{clientPlatform:"Web"}})}refreshUserToken(t){return this.api.put(l,{urlSearchParams:{clientPlatform:"Web"},init:{body:JSON.stringify(t)}})}getAppConfigurations(){return this.api.get("AppConfigurations",{urlSearchParams:{clientPlatform:"Web"}})}getContentDefaultParams(t){return Object.assign(Object.assign(Object.assign({clientPlatform:"Web"},o.ConfigService.geoLocation&&{geo:o.ConfigService.geoLocation}),t.orderType&&{orderType:t.orderType}),o.ConfigService.preferredLanguage&&{PreferredLanguage:o.ConfigService.preferredLanguage})}getContentParamsByLabels(t){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.getContentDefaultParams(t)),{labelsFilterExpression:t.labels}),t.maxItems&&{maxItems:t.maxItems.toString()}),t.labelsPriority&&{labelsPriority:t.labelsPriority}),t.text&&{text:t.text})}getContentParamsByIds(t){return Object.assign(Object.assign({},this.getContentDefaultParams(t)),{ids:t.ids.join(",")})}getContentParamsByRecommendations(t){var e,i;const n=Object.assign({},this.getContentDefaultParams(t)),{forYou:o,trending:r}=t.recommendations,s=o||r;return n.contentType=t.contentType,(null===(e=null==s?void 0:s.anyLabelFilter)||void 0===e?void 0:e.length)&&(n.Labels=s.anyLabelFilter.join(",")),(null===(i=null==o?void 0:o.promotedLabels)||void 0===i?void 0:i.length)&&(n.promotedLabels=o.promotedLabels.join(",")),n}getContentParamsByText(t){return Object.assign(Object.assign(Object.assign({},this.getContentDefaultParams(t)),{text:t.text}),t.maxItems&&{maxItems:t.maxItems.toString()})}initializeAnalyticsUrlRotator(t){var e;null===(e=this.analyticsUrlRotator)||void 0===e||e.initialize(t)}getAnalyticsEndpoint(){var t,e;return null!==(e=null===(t=this.analyticsUrlRotator)||void 0===t?void 0:t.getNext())&&void 0!==e?e:o.ConfigService.analyticsApiUrl}}.getInstance()}
1,3390:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorService=void 0;const o=i(4403);e.ErrorService=class extends((0,o.Singleton)()){init(){return n(this,void 0,void 0,function*(){})}}.getInstance()},3524:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VideoPlayerStateManager=void 0,e.VideoPlayerStateManager=class{constructor(){this._isMuted=!0,this._isPlaying=!0,this._playerLayoutDisplay="normal"}get isMuted(){return this._isMuted}set isMuted(t){this._isMuted=t}get isPlaying(){return this._isPlaying}set isPlaying(t){this._isPlaying=t}get playerLayout(){return this._playerLayoutDisplay}set playerLayout(t){this._playerLayoutDisplay=t}}},3554:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},3574:function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(2588),e),o(i(7449),e),o(i(4804),e),o(i(392),e),o(i(7143),e),o(i(2757),e),o(i(9690),e),o(i(5135),e),o(i(3128),e),o(i(9641),e),o(i(78),e),o(i(1353),e),o(i(7787),e),o(i(941),e),o(i(636),e),o(i(8542),e),o(i(8878),e),o(i(8046),e),o(i(4026),e),o(i(8105),e),o(i(3698),e),o(i(3324),e),o(i(8073),e),o(i(2169),e),o(i(4243),e),o(i(5185),e),o(i(8187),e),o(i(9369),e),o(i(7534),e),o(i(3554),e),o(i(9777),e),o(i(8459),e),o(i(9340),e),o(i(7143),e),o(i(2169),e),o(i(3554),e),o(i(7787),e),o(i(9690),e),o(i(4243),e),o(i(2588),e),o(i(3320),e),o(i(4437),e),o(i(2111),e),o(i(9321),e),o(i(4221),e),o(i(4195),e),o(i(7014),e),o(i(4358),e),o(i(5566),e),o(i(9903),e),o(i(3736),e)},3612:function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(7315),e)},3634:(t,e)=>{"use strict";function i(t){return Array.isArray(t)&&t.length>0&&t.every(n)}function n(t){return"string"==typeof t&&t.trim().length>0&&!t.includes(" ")}Object.defineProperty(e,"__esModule",{value:!0}),e.isValidIds=i,e.hasValidIds=function(...t){return t.some(t=>void 0!==t&&i(t))}},3698:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PlayTypeArray=void 0,e.PlayTypeArray=["Widget","Share","SingleContent","AutoAdvance"]},3736:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},3751:(t,e)=>{"use strict";function i(){return navigator.connection||navigator.mozConnection||navigator.webkitConnection}function n(t){return t<5?"slow":t<15?"medium":"fast"}Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_NETWORK_SPEED=e.NETWORK_CONFIGS=void 0,e.getNavigatorConnection=i,e.getNetworkSpeed=n,e.getPosterLimits=function(){var t,o;const r=i(),s=n(null==r?void 0:r.downlink);return null!==(o=null===(t=e.NETWORK_CONFIGS[s])||void 0===t?void 0:t.posterLimits)&&void 0!==o?o:e.NETWORK_CONFIGS[e.DEFAULT_NETWORK_SPEED].posterLimits},e.getVideoPreloadLimits=function(){var t,o;const r=i(),s=n(null==r?void 0:r.downlink);return null!==(o=null===(t=e.NETWORK_CONFIGS[s])||void 0===t?void 0:t.videoPreloadLimits)&&void 0!==o?o:e.NETWORK_CONFIGS[e.DEFAULT_NETWORK_SPEED].videoPreloadLimits},e.NETWORK_CONFIGS={slow:{posterLimits:{previous:0,next:1},videoPreloadLimits:{next:0}},medium:{posterLimits:{previous:1,next:2},videoPreloadLimits:{next:1}},fast:{posterLimits:{previous:1,next:3},videoPreloadLimits:{next:2}}},e.DEFAULT_NETWORK_SPEED="medium"},3811:function(t,e){"use strict";
1var i=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.fetchWithTimeout=function(t){return i(this,arguments,void 0,function*(t,e=2e3,i={}){const n=new AbortController,o=setTimeout(()=>n.abort(),e);try{return yield fetch(t,Object.assign(Object.assign({},i),{signal:n.signal}))}finally{clearTimeout(o)}})}},3835:(t,e)=>{"use strict";function i(t){return n(t)||(e=t,Array.isArray(e)&&e.length>0&&e.every(n))||"object"==typeof(i=t)&&null!==i&&"BlazeWidgetLabel"===i._type&&"string"==typeof i.value&&i.value.trim().length>0;var e,i}function n(t){return"string"==typeof t&&t.trim().length>0}Object.defineProperty(e,"__esModule",{value:!0}),e.isValidLabels=i,e.hasValidLabels=function(...t){return t.some(t=>void 0!==t&&i(t))}},3913:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetSDK=void 0;const o=i(9126),r=i(4403),s=i(6450),a=i(9965),l=i(4545),d=i(4403),u=i(4906),c=i(9266),h=i(1908);let p=window.innerWidth;class f extends r.BaseWidget{static isSdkConnected(){return f._isSdkConnected}static get observedAttributes(){return["should-allow-horizontal-stories","preferred-language"]}constructor(){super(),this.boundOnResizeEvent=(0,r.debounce)(this.onResize.bind(this),75),this.boundOnResizeEventDelay=this.onResizeEventDelay.bind(this)}connectedCallback(){return n(this,void 0,void 0,function*(){d.TextScaleService.initialize(),window.addEventListener("resize",this.boundOnResizeEvent),window.addEventListener(r.DEVICE_EVENTS.SCREEN_ORIENTATION_CHANGE,this.boundOnResizeEventDelay);const t=this.getConfigAttributes();yield this.initialize(t);const e=new CustomEvent("onBlazeSDKConnect",{bubbles:!0,composed:!0});f._isSdkConnected=!0,this.dispatchEvent(e),this.pushInitEvent(),l.ConfigService.disableAutoLoadingContent||this.handleLoadingContent()})}disconnectedCallback(){window.removeEventListener("resize",this.boundOnResizeEvent),window.removeEventListener(r.DEVICE_EVENTS.SCREEN_ORIENTATION_CHANGE,this.boundOnResizeEventDelay),d.TextScaleService.cleanup()}onResizeEventDelay(){setTimeout(()=>{this.onResize()},500)}onResize(){var t,e,i,n,r,s;p!==window.innerWidth&&(p=window.innerWidth,this.modal&&(null===(t=this.modal)||void 0===t||t.render(),this.modal instanceof o.BlazeWidgetStoryModal&&(null===(i=null===(e=this.modal)||void 0===e?void 0:e.player)||void 0===i||i.render(),null===(s=null===(r=null===(n=this.modal)||void 0===n?void 0:n.player)||void 0===r?void 0:r.contentList)||void 0===s||s.forEach(t=>null==t?void 0:t.render()))))}handleLoadingContent(){const{isStoryMatch:t,storyId:e,storyPageId:i,isMomentMatch:n,momentId:o,isVideoMatch:r,videoId:s}=this.extractContentIdsFromUrl();t&&e?this.handleContentLoad("story","Share",e,{pageId:i}):n&&o?this.handleContentLoad("moment","Share",o):r&&s?this.handleContentLoad("video","Share",s):l.ConfigService.staticContent&&this.handleStaticContentLoad("SingleContent")}extractContentIdsFromUrl(){var t,e,i,n,o,r,s;const a=location.href.match(c.RegexStoryHash),l=location.href.match(c.RegexMomentHash),d=location.href.match(c.RegexVideoHash),u=a&&null!==(e=null===(t=a[1])||void 0===t?void 0:t.split("/"))&&void 0!==e?e:[],h=null!==(i=null==u?void 0:u[2])&&void 0!==i?i:null,p=u.findIndex(t=>"page"===t);return{isStoryMatch:!!a,storyId:h,storyPageId:p>-1&&(null==u?void 0:u[p+1])?u[p+1]:null,isMomentMatch:!!l,momentId:l?null===(o=null===(n=l[1])||void 0===n?void 0:n.split("/"))||void 0===o?void 0:o[2]:null,isVideoMatch:!!d,videoId:d?null===(s=null===(r=d[1])||void 0===r?void 0:r.split("/"))||void 0===s?void 0:s[2]:null}}setPlayerStyleCustomization(t){l.ConfigService.playerStyleCustomization=t}handleContentLoad(t,e,i,o){return n(this,void 0,void 0,function*(){var n,r,s;if((null===document||void 0===document?void 0:document.querySelector("#blaze-standalone-player"))||!(null==i?void 0:i.length))return;const d=i.split(",");if(null===(n=this.modal)||void 0===n||n.remove(),null==d?void 0:d.length){const i={sourceType:"ids",ids:d};let n;switch(t){case"story":n=yield l.StoryService.fetchContent(i);break;case"moment":n=yield l.MomentService.fetchContent(i);break;case"video":n=yield l.VideoService.fetchContent(i)}null==n||n.result.map(t=>{t.type="Content"}),0===(null===(r=null==n?void 0:n.result)||void 0===r?void 0:r.length)?l.EventService.dispatch(this,a.Delegation.onErrorThrown,{id:d[0],errorCode:a.ErrorLoadingCodeMapper[t]}):this.setupModalAndLoadContent(t,e,null===(s=null==n?void 0:n.result)||void 0===s?void 0:s[0],o)}})}handleStaticContentLoad(t){return n(this,void 0,void 0,function*(){const e=yield l.ApiService.getStaticStories();e&&this.setupModalAndLoadContent("story",t,e)})}setupModalAndLoadContent(t,e,i,r){return n(this,void 0,void 0,function*(){var n;let s;switch(t){case"moment":s=u.ThemeFactory.create("default","moment"),this.modal=new o.BlazeWidgetMomentModal(this,s.playerStyle);break;case"video":(s=u.ThemeFactory.create("default","video")).playerStyle.buttons.prev_next.desktop.isVisible=!1,s.playerStyle.buttons.prev_next.mobile.isVisible=!1,s.playerStyle.buttons.prev_next.tablet.isVisible=!1,this.modal=new h.BlazeWidgetVideoModal(this,s.playerStyle);break;default:s=u.ThemeFactory.create("default","story");const e=(0,c.mergeDeep)(s.playerStyle,l.ConfigService.playerStyleCustomization)||s.playerStyle;this.modal=new o.BlazeWidgetStoryModal(this,e)}this.modal.id="blaze-standalone-player",l.VideoPlayerService.playReference=e,this.append(this.modal);const a=new o.BlazeWidgetItem({layout:s.layoutStyle,content:i});if(this.modal instanceof o.BlazeWidgetStoryModal){const t=yield l.StoryService.enrichContent([i]);this.modal.setModalContent(t,0)}else if(this.modal instanceof o.BlazeWidgetMomentModal){const t=yield l.MomentService.enrichContent([i]);this.modal.setModalContent(t,0)}else if(this.modal instanceof h.BlazeWidgetVideoModal){const t=yield l.VideoService.enrichContent([i]);this.modal.setModalContent(t)}const d="story"===t&&!!(null==r?void 0:r.pageId),p="story"===t?i.id:null;this.modal.player.contentList.forEach((t,i)=>{t.startTrigger=e,t.refContentModal=this.modal,t.widgetParentItem=a,t instanceof o.BlazeWidgetStory&&(d&&p===t.data.id?t.setInitialPageById(null==r?void 0:r.pageId):t.resetStoryLocationIndexToLastUnseen()),t instanceof o.BlazeWidgetMoment&&(t.momentIndex=i),t.setWidgetItemParent(a)});const f=this.modal.player.contentList[0];f&&(f instanceof o.BlazeWidgetStory||f instanceof o.BlazeWidgetMoment)&&(yield f.load("direct")),this.modal.seek(null!==(n=i.id)&&void 0!==n?n:""),this.modal.open(),this.modal.onClose=(()=>{var t;null===(t=this.modal)||void 0===t||t.remove()})})}attributeChangedCallback(t,e,i){switch(t){case"should-allow-horizontal-stories":e!==i&&(l.ConfigService.shouldAllowHorizontalStories="true"===i,this.modal instanceof o.BlazeWidgetStoryModal&&this.modal.updateModalContent());break;case"preferred-language":if(e!==i){const t=null==i?void 0:i.trim();i&&t&&t.length>0?l.ConfigService.preferredLanguage=t:l.ConfigService.preferredLanguage=void 0}}}getConfigAttributes(){const t=this.getAttribute("api-key"),e=this.getAttribute("environment")||"prod",i=this.getAttribute("send-analytics"),n=this.getAttribute("disable-analytics"),o=this.getAttribute("run-in-shadow-dom"),r=this.getAttribute("preview-url"),s=this.getAttribute("preview-moment-url"),a=this.getAttribute("do-not-track"),l=this.getAttribute("external-user-id"),d=this.getAttribute("geo-location"),u=this.getAttribute("static-content"),c=this.getAttribute("static-content-type"),h=this.getAttribute("modifiy-url-with-story-id"),p=this.getAttribute("modifiy-url-with-content-id"),f=this.getAttribute("should-dismiss-player"),g=this.getAttribute("should-create-user"),v=this.getAttribute("prefetching-policy")||"default",y=this.getAttribute("should-allow-horizontal-stories"),m=this.getAttribute("should-auto-advance"),b=this.getAttribute("auto-advance-url"),S=this.getAttribute("layout-direction"),E=this.getAttribute("should-allow-closed-captions"),C=this.getAttribute("disable-auto-loading-content"),w=this.getAttribute("preferred-language");if(!t&&!r&&!s)throw new Error("Please provide API Key");return{apiKey:t,environment:e,sendAnalytics:i,disableAnalytics:n,previewMomentUrl:s,previewUrl:r,doNotTrack:a,externalUserId:l,geoLocation:d,staticContent:u,staticContentType:c,runInShadowDom:o,shouldModifyUrlWithStoryId:h,shouldModifyUrlWithContentId:p,shouldDismissPlayer:f,shouldCreateUser:g,prefetchingPolicy:v,shouldAllowHorizontalStories:y,shouldAutoAdvance:m,autoAdvanceUrl:b,layoutDirection:S,shouldAllowClosedCaptions:E,disableAutoLoadingContent:C,preferredLanguage:w}}initialize(t){return n(this,void 0,void 0,function*(){yield l.StartupService.init(t),yield this.injectFontResource(),yield this.injectGoogleTag(
1),yield this.injectIma()})}injectToHead(t,e){return n(this,void 0,void 0,function*(){document.querySelectorAll(t).length||(yield new Promise((t,i)=>{e.addEventListener("load",()=>{t()}),e.addEventListener("error",()=>{i("Failed to load element: "+e.outerHTML)}),document.head.append(e)}))})}injectFontResource(){return n(this,void 0,void 0,function*(){const t=l.ConfigService.sdkStorageCDN+"/web-sdk/assets/fonts.css",e=document.createElement("link");e.setAttribute("rel","preload"),e.setAttribute("href",t),e.setAttribute("as","style"),e.setAttribute("onload","this.onload=null;this.rel='stylesheet'"),yield this.injectToHead('[href*="'+t+'"]',e);const i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href","https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"),yield this.injectToHead('[href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"]',i)})}injectGoogleTag(){return n(this,void 0,void 0,function*(){if(!l.AdService.canRunAds)return;const t=document.createElement("script");t.setAttribute("src","https://securepubads.g.doubleclick.net/tag/js/gpt.js"),t.setAttribute("async",""),this.injectToHead('[src*="securepubads.g.doubleclick.net/tag/js/gpt.js"]',t)})}injectIma(){return n(this,void 0,void 0,function*(){if(!l.AdService.canRunAds)return;const t=document.createElement("script");t.setAttribute("src","//imasdk.googleapis.com/js/sdkloader/ima3.js"),t.setAttribute("async",""),this.injectToHead('[src*="imasdk.googleapis.com/js/sdkloader/ima3.js"]',t)})}pushInitEvent(){const t=new r.ReferringEventInfo;document.referrer&&(t.referrer_page_url=document.referrer),l.AnalyticsService.pushWidgetEvent(s.WidgetAction.SDKInit,{},void 0,t)}}e.BlazeWidgetSDK=f,f._isSdkConnected=!1},3972:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UrlRotator=void 0,e.UrlRotator=class{constructor(t){this.baseUrls=[],this.currentIndex=0,this.protocol="https://",this.fallbackUrl=t.fallbackUrl,this.apiVersion=t.apiVersion||""}initialize(t){this.baseUrls=this.parseBaseUrls(null==t?void 0:t.hosts),this.currentIndex=this.baseUrls.length>0?Math.floor(Math.random()*this.baseUrls.length):0}getNext(){if(0===this.baseUrls.length)return this.fallbackUrl;const t=this.baseUrls[this.currentIndex];return this.currentIndex=(this.currentIndex+1)%this.baseUrls.length,Boolean(this.apiVersion)?t+"/"+this.apiVersion:t}parseBaseUrls(t){if(!(null==t?void 0:t.length))return[];const e=[];for(const i of t){const t=i.trim();if(!t)continue;const n=t.replace(/\/$/,"");e.push(this.protocol+n)}return e}}},4014:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeVideoNavigationOverlay=e.NAVIGATION_OVERLAY_ATTRIBUTES=void 0;const n=i(1908),o=i(4403),r=i(5785),s=i(8921),a=i(9266);e.NAVIGATION_OVERLAY_ATTRIBUTES={Hidden:"hidden",Layout:"layout",HasPrev:"has-prev",HasNext:"has-next"},e.BlazeVideoNavigationOverlay=class extends HTMLElement{constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),this.nextButton=s.WidgetsFactory.create("blaze-button"),this.prevButton=s.WidgetsFactory.create("blaze-button"),this.playPauseButton=s.WidgetsFactory.create("blaze-button"),this.replayButton=s.WidgetsFactory.create("blaze-button"),this.isPlaying=!1,this.boundOnPrevClick=this.onPrevClick.bind(this),this.boundOnNextClick=this.onNextClick.bind(this),this.boundOnPlayStopClick=this.onPlayStopClick.bind(this),this.boundOnReplayClick=this.onReplayClick.bind(this),this.boundOnPlay=this.setPlaying.bind(this,!0),this.loader=s.WidgetsFactory.create("blaze-loader")}static get observedAttributes(){return Object.values(e.NAVIGATION_OVERLAY_ATTRIBUTES)}attributeChangedCallback(t,e,i){e!==i&&this.applyAttribute(t,i)}applyAttribute(t,i){switch(t){case e.NAVIGATION_OVERLAY_ATTRIBUTES.Hidden:"true"===i?this.hideOverlay():this.showOverlay();break;case e.NAVIGATION_OVERLAY_ATTRIBUTES.HasPrev:this.setButtonDisabled(this.prevButton,"true"!==i?"true":"false");break;case e.NAVIGATION_OVERLAY_ATTRIBUTES.HasNext:this.setButtonDisabled(this.nextButton,"true"!==i?"true":"false")}}connectedCallback(){this.initializeStyles(),this.setStyle(),this.createDom(),this.attachEventListeners()}disconnectedCallback(){this.removeEventListeners()}initializeStyles(){const t=document.createElement("style");t.textContent="\n      :host {\n        z-index: 5;\n        display: flex;\n        align-items: center;\n        pointer-events: auto;\n        opacity: 1;\n        transition: opacity 0.3s ease, visibility 0.3s ease;\n      }\n\n      :host(.hidden) {\n        opacity: 0;\n        display: none;\n      }\n\n      .middle-container {\n        display: flex;\n        align-items: center;\n        justify-content: center;\n      }\n\n      blaze-button {\n        border: none;\n        cursor: pointer;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n      }\n\n      blaze-loader {\n        display: none;\n      }\n    ",this.shadow.appendChild(t)}setStyle(){switch(this.platform){case"mobile":case"tablet":(0,a.mergeStyles)(this,{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",gap:"20px"});break;
1case"desktop":(0,a.mergeStyles)(this,{position:"relative",gap:"5px"})}}setTheme(t){this.navigationStyle=t}get platform(){return this._platform||(this._platform=this.getAttribute("layout")),this._platform}set platform(t){this._platform=t,this.setAttribute("layout",t)}setButtonStyle(t,e,i){var n,s,a,l;t.setAttribute(r.BUTTON_ATTRIBUTES.Width,e.width),t.setAttribute(r.BUTTON_ATTRIBUTES.Height,e.height),t.setIconUrl(i),o.deviceDetector.isDesktop&&t.setAttribute(r.BUTTON_ATTRIBUTES.ButtonDesktopAnimation,"true"),t.setStyle({padding:null!==(n=e.padding)&&void 0!==n?n:null,color:null!==(s=e.color)&&void 0!==s?s:null,borderRadius:null!==(a=e.borderRadius)&&void 0!==a?a:null,backgroundColor:null!==(l=e.backgroundColor)&&void 0!==l?l:null})}createDom(){if(!this.navigationStyle)return;this.setButtonStyle(this.prevButton,this.navigationStyle.prev_next[this.platform],this.navigationStyle.navigation.prevVideo),this.setButtonStyle(this.nextButton,this.navigationStyle.prev_next[this.platform],this.navigationStyle.navigation.nextVideo),this.setButtonStyle(this.playPauseButton,this.navigationStyle.play_pause[this.platform],this.navigationStyle.play),this.setButtonStyle(this.replayButton,this.navigationStyle.replay[this.platform],this.navigationStyle.replayIcon),this.playPauseButton.setDataTestId("play-pause-button"),this.prevButton.setDataTestId("prev-button"),this.nextButton.setDataTestId("next-button");const t=s.WidgetsFactory.create("blaze-div");t.id="middle-container-play-pause",t.classList.add("middle-container"),t.appendChild(this.playPauseButton);const e=this.navigationStyle.prev_next[this.platform].isVisible;if(e&&this.shadow.appendChild(this.prevButton),this.shadow.appendChild(t),e&&this.shadow.appendChild(this.nextButton),this.loader.setAttribute("color","#FFD325"),["mobile","tablet"].includes(this.platform)){const e=t.getBoundingClientRect().width;t.style.width=e+"px"}}attachEventListeners(){this.prevButton.addEventListener(n.EVENTS.CLICK,this.boundOnPrevClick),this.nextButton.addEventListener(n.EVENTS.CLICK,this.boundOnNextClick),this.playPauseButton.addEventListener(n.EVENTS.CLICK,this.boundOnPlayStopClick),this.replayButton.addEventListener(n.EVENTS.CLICK,this.boundOnReplayClick),document.addEventListener(n.VIDEO_EVENTS.PLAY,this.boundOnPlay)}removeEventListeners(){this.prevButton.removeEventListener(n.EVENTS.CLICK,this.boundOnPrevClick),this.nextButton.removeEventListener(n.EVENTS.CLICK,this.boundOnNextClick),this.playPauseButton.removeEventListener(n.EVENTS.CLICK,this.boundOnPlayStopClick),document.removeEventListener(n.VIDEO_EVENTS.PLAY,this.boundOnPlay)}setButtonDisabled(t,e){t.setAttribute(r.BUTTON_ATTRIBUTES.Disabled,e)}onPrevClick(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent(n.VIDEO_EVENTS.NAVIGATION_PREV,{bubbles:!0,composed:!0}))}onNextClick(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent(n.VIDEO_EVENTS.NAVIGATION_NEXT,{bubbles:!0,composed:!0}))}onPlayStopClick(t){t.stopPropagation(),this.setPlaying(!this.isPlaying);const e=this.isPlaying?n.VIDEO_EVENTS.PLAY:n.VIDEO_EVENTS.PAUSE;this.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0}))}onReplayClick(t){t.stopPropagation(),this.setPlaying(!0),this.dispatchEvent(new CustomEvent(n.VIDEO_EVENTS.REPLAY,{bubbles:!0,composed:!0}))}setPlaying(t){if(this.isPlaying=t,!this.navigationStyle)return;const{play:e,pause:i}=this.navigationStyle;this.playPauseButton.setIconUrlAnimation(t?i:e)}showReplayButton(){this.replayButton.isConnected||(this.playPauseButton.animate([{opacity:1},{opacity:0}],{duration:75,easing:"ease-out",fill:"forwards"}),this.playPauseButton.replaceWith(this.replayButton),this.replayButton.animate([{opacity:0},{opacity:1}],{duration:75,easing:"ease-in",fill:"forwards"}))}hideReplayButton(){this.replayButton.isConnected&&(this.replayButton.animate([{opacity:1},{opacity:0}],{duration:75,easing:"ease-out",fill:"forwards"}),this.replayButton.replaceWith(this.playPauseButton),this.playPauseButton.animate([{opacity:0},{opacity:1}],{duration:75,easing:"ease-in",fill:"forwards"}))}showLoader(){this.playPauseButton.replaceWith(this.loader),this.loader.style.display="block"}hideLoader(){this.loader.replaceWith(this.playPauseButton),this.loader.style.display="none"}hideOverlay(){this.classList.add("hidden")}showOverlay(){this.classList.remove("hidden")}}},4026:(t,e)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0})},4047:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EventsListener=void 0,e.EventsListener=class{constructor(){this.listeners=[]}add(t,e,i){this.listeners.find(e=>e.node==document&&e.type==t)||(this.listeners.push({node:document,type:t,callback:e}),document.addEventListener(t,e,i))}addAttached(t,e,i,n){this.listeners.find(i=>i.node==t&&i.type==e)||(this.listeners.push({node:t,type:e,callback:i}),t.addEventListener(e,i,n))}removeAll(){for(const t of this.listeners)try{t.node.removeEventListener(t.type,t.callback)}catch(t){}this.listeners=[]}}},4071:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.LikeService=void 0;const o=i(4545),r=i(4403);e.LikeService=class extends((0,r.Singleton)()){constructor(){super()}init(){return n(this,void 0,void 0,function*(){})}updateMomentLike(t,e){return n(this,void 0,void 0,function*(){try{yield o.DatabaseService.updateMomentLike(e,t),yield o.ApiService.updateMomentLikeStatus({momentId:e,setLiked:t})}catch(t){}})}isMomentLiked(t){return n(this,void 0,void 0,function*(){try{const e=yield o.DatabaseService.getMomentLike(t);return!(!e||!e.data)&&e.data.liked}catch(t){return!1}})}updateVideoLike(t,e){return n(this,void 0,void 0,function*(){try{yield o.DatabaseService.updateVideoData(e,{liked:t}),yield o.ApiService.updateVideosLikeStatus({videoId:e,setLiked:t})}catch(t){}})}isVideoLiked(t){return n(this,void 0,void 0,function*(){try{const e=yield o.DatabaseService.getVideoLike(t);return!(!e||!e.data)&&e.data.liked}catch(t){return!1}})}}.getInstance()},4131:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})},o=this&&this.__rest||function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i};Object.defineProperty(e,"__esModule",{value:!0}),e.API=void 0;const r=i(9965),s=i(4545);e.API=class{constructor(t){this.options=t}get baseUrl(){return this.options.baseUrl}get(t,e){const i=null!=e?e:{},{init:n}=i,r=o(i,["init"]);return this.request(t,Object.assign({init:Object.assign(Object.assign({},n),{method:"GET"})},r))}post(t,e){const i=null!=e?e:{},{init:n}=i,r=o(i,["init"]);return this.request(t,Object.assign({init:Object.assign(Object.assign({},n),{method:"POST"})},r))}put(t,e){const i=null!=e?e:{},{init:n}=i,r=o(i,["init"]);return this.request(t,Object.assign({init:Object.assign(Object.assign({},n),{method:"PUT"})},r))}request(t,e){return n(this,void 0,void 0,function*(){var i,n,a;const l=null!==(i=null==e?void 0:e.init)&&void 0!==i?i:{},{headers:d}=l,u=o(l,["headers"]),c=Object.assign({headers:Object.assign(Object.assign(Object.assign({},(null==e?void 0:e.auth)&&{Authorization:"Bearer "+(null===(n=s.UserService.getUserTokenDataFromStorage())||void 0===n?void 0:n.accessToken)}),{"Content-Type":"application/json",Accept:"application/json"}),d)},u);try{let i;if((null==e?void 0:e.baseUrl)?i=new URL(e.baseUrl):(i=new URL(this.baseUrl+"/"+t)).searchParams.set("ApiKey",s.ConfigService.apiKey),null==e?void 0:e.urlSearchParams){const t=Object.entries(e.urlSearchParams).reduce((t,[e,i])=>(null!=i&&(t[e]=i),t),{});for(const[e,n]of Object.entries(t))i.searchParams.set(e,n)}let n,o=yield fetch(i,c);return s.ConfigService.shouldCreateUser&&o.status===r.HttpStatus.Unauthorized&&(null==e?void 0:e.auth)&&(yield s.UserService.refreshUserToken(),c.headers.Authorization="Bearer "+(null===(a=s.UserService.getUserTokenDataFromStorage())||void 0===a?void 0:a.accessToken),o=yield fetch(i,c)),o.ok&&(n=yield o.json()),{data:n,httpStatus:o.ok?r.HttpStatus.Ok:o.status}}catch(t){return s.CDNDetermineService.reset(),{error:t}}})}}},4180:(t,e)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.Z_INDEX=e.MIN_PADDING_BOTTOM=e.DEFAULT_CTA_HEIGHT=void 0,e.DEFAULT_CTA_HEIGHT=40,e.MIN_PADDING_BOTTOM=10,e.Z_INDEX={base:"0",player:"1",interaction:"2",onTopOfPlayer:"3",menuBackdrop:"99",menu:"100"}},4195:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},4205:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getChipSize=s,e.createChip=a,e.getMaxChipSize=l,e.calculateChipSize=function(t,e,i){const{isOutside:o}=(0,n.calculatePosition)(e);let r,s=0,a=0;if((r="chip"===t?i.statusLiveStyle.isVisible||i.statusLiveUnreadStyle.isVisible||i.statusUnreadStyle.isVisible||i.statusReadStyle.isVisible:i.badgeIndicatorStyle.isVisible)&&o){const n=l(t,i);"outsideTop"!==e&&"outsideBottom"!==e||(s=Math.floor(n.height)),"outsideLeft"!==e&&"outsideRight"!==e||(a=Math.floor(n.width))}return{chipHeight:s,chipWidth:a}};const n=i(9266),o=i(8921),r=i(4403);function s(t){const{statusLiveStyle:e,statusLiveUnreadStyle:i,statusReadStyle:n,statusUnreadStyle:o}=t,r=a(e),s=a(i),l=a(n),d=a(o),u=Math.max(r.width,s.width,l.width,d.width),c=Math.max(r.height,s.height,l.height,d.height);return new DOMRect(0,0,u,c)}function a(t){const e=o.WidgetsFactory.create("blaze-chip");document.body.append(e),e.style.opacity="0",e.innerText=t.text,e.style.fontSize=r.TextScaleService.scaleFontSize(t.textSize),e.style.fontFamily=t.font,e.style.backgroundColor=t.backgroundColor,e.style.backgroundImage=t.backgroundImage,e.style.borderColor=t.borderColor,e.style.borderWidth=t.borderWidth+"px",e.style.borderRadius=t.borderRadius,e.style.color=t.textColor,e.style.letterSpacing=t.letterSpacing,e.style.padding=t.padding,t.width&&t.height&&(e.style.width=t.width+"px",e.style.height=t.height+"px");const i=e.getBoundingClientRect();return e.remove(),i}function l(t,e){if("chip"===t){const{statusLiveStyle:t,statusLiveUnreadStyle:i,statusReadStyle:n,statusUnreadStyle:o}=e;return s({statusLiveStyle:t,statusLiveUnreadStyle:i,statusReadStyle:n,statusUnreadStyle:o})}return a(e.badgeIndicatorStyle)}},4221:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},4243:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},4248:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetMomentPlayer=e.UPDATE_NAVIGATION_BUTTONS_EVENT=e.MUTE_UNMUTE_EVENT=void 0;const r=o(i(2776)),s=i(9126),a=i(4403),l=i(7951),d=i(6450),u=i(4545),c=i(4906);e.MUTE_UNMUTE_EVENT="muteButtonClicked",e.UPDATE_NAVIGATION_BUTTONS_EVENT="updateNavigationButtons",e.BlazeWidgetMomentPlayer=class extends s.WidgetAbstractPlayer{constructor(){super(),this.isWheelEventHandling=!1,this.boundHandleMuteClicked=this.handleMuteClicked.bind(this),this.fetchedPosterUrls=new Set,this.preloadTimer=null,this.accessibilityConfigTimeout=null,this.focusTimeout=null,this.numberOfContentInList=5,this.playerFullscreenOverlay.setStyle({backgroundColor:"#010101"})}get currentMoment(){return this.playerContentList[this.index]}connectedCallback(){this.append(this.srcBackground),this.append(this.destBackground),this.append(this.container),this.applyStyles(),this.setupContainer(),this.setupEventListeners()}disconnectedCallback(){this.listeners.removeAll(),this.fetchedPosterUrls.clear(),this.preloadTimer&&clearTimeout(this.preloadTimer),this.cancelAccessibilityConfig(),this.cancelFocus(),document.removeEventListener(e.MUTE_UNMUTE_EVENT,this.boundHandleMuteClicked)}setupEventListeners(){this.setupHammer(Hammer.DIRECTION_VERTICAL),this.listeners.add("wheel",(0,a.debounce)(this.handleWheel.bind(this),0)),this.listeners.add("keydown",(0,a.debounce)(this.handleNavigationKeyPress.bind(this),0)),document.addEventListener(e.MUTE_UNMUTE_EVENT,this.boundHandleMuteClicked)}setupContainer(){this.container.setStyle({display:"grid",overflow:"hidden",position:"relative",gridTemplateColumns:"100%"}),this.adjustContainerStyle(),this.adjustPlayerContentStyle()}updateNavigationButtons(){const t=this.isContentDirectionInPlayerListValid("PREV"),i=this.isContentDirectionInPlayerListValid("NEXT");this.dispatchEvent(new CustomEvent(e.UPDATE_NAVIGATION_BUTTONS_EVENT,{bubbles:!0,detail:{nextContentButton:i,prevContentButton:t}}))}adjustContainerStyle(){const t=this.getBoundingClientRect().height;let e,i,n=40,o=.004;"mobile"===a.deviceDetector.platform?(this.style.background=c.Colors.Black,o=1-2*o,n=0,e=0,i=t):(e=t*o+n/2,i=t*(1-2*o)-2*n);const r="repeat(10, "+i+"px)";this.container.setStyle({gap:n+"px",marginTop:e+"px",gridTemplateRows:r})}adjustPlayerContentStyle(){"mobile"===a.deviceDetector.platform&&this.playerContentList.forEach(t=>{t.style.width=this.clientWidth+"px"})}applyStyles(){this.setStyle({display:"block",overflow:"hidden",height:"100%",width:"100%",position:"relative",background:c.Colors.Black})}attributeChangedCallback(t,e,i){}handleMoveSwipe(t){var e,i,n,o;if(!u.VideoPlayerService.isSeekBarDragging&&this.playerContentList.findIndex(t=>{var e;return t.id===(null===(e=this.playerContentList[this.index])||void 0===e?void 0:e.id)})>-1){const r=t.distance/((null===window||void 0===window?void 0:window.screen.height)/.85)*1e3;switch(t.offsetDirection){case Hammer.DIRECTION_UP:null===(e=this.currentNextAnimation)||void 0===e||e.seek(r);break;case Hammer.DIRECTION_DOWN:null===(i=this.currentPrevAnimation)||void 0===i||i.seek(r);break;default:null===(n=this.currentNextAnimation)||void 0===n||n.seek(0),null===(o=this.currentPrevAnimation)||void 0===o||o.seek(0)}}}handleEndSwipe(t){const e=this.playerContentList[this.index+1],i=this.playerContentList[this.index-1];switch(t.offsetDirection){case Hammer.DIRECTION_UP:if(!e)return;this.playerContentList[this.index].exitTrigger="Swipe",this.processAnimation(t,e,this.currentNextAnimation),a.URLManager.updateLocationContentHash({contentType:"moment",contentId:null==e?void 0:e.data.id,isAd:null==e?void 0:e.data.isAd});break;case Hammer.DIRECTION_DOWN:if(!i)return;this.playerContentList[this.index].exitTrigger="Swipe",this.processAnimation(t,i,this.currentPrevAnimation),a.URLManager.updateLocationContentHash({contentType:"moment",contentId:null==i?void 0:i.data.id,isAd:null==i?void 0:i.data.isAd});break;default:this.reverseAnimation(t)}}handlePrevDirection(){if(Math.floor(this.numberOfContentInList/2-1)===this.index){const t=this.playerContentList[0].data.id,e=this.contentList.findIndex(e=>e.data.id===t),i=this.contentList[e-1];if(!i)return;const n=this.playerContentList[this.playerContentList.length-1];this.releaseMomentFromMemory(n),i instanceof s.BlazeWidgetMoment&&this.updateItemData(n,i),this.container.insertBefore(n,this.container.firstChild),this.playerContentList.pop(),this.playerContentList.unshift(n),this.index+=1}}handleNextDirection(){if(Math.floor(this.numberOfContentInList/2+1)===this.index){const t=this.playerContentList[this.playerContentList.length-1].data.id,e=this.contentList.findIndex(e=>e.data.id===t),i=this.contentList[e+1];if(!i)return;const n=this.playerContentList[0];this.releaseMomentFromMemory(n),i instanceof s.BlazeWidgetMoment&&this.updateItemData(n,i),this.container.insertBefore(n,null),this.playerContentList.shift(),this.playerContentList.push(n),this.index-=1}}releaseMomentFromMemory(t){const e=t.video;e instanceof s.BlazeWidgetVideo&&e.resetVideoState()}updateItemData(t,e){var i,n;const o=t,r=e;r.actionHandlers&&(o.actionHandlers=r.actionHandlers),o.refContentModal=r.refContentModal,o.playerStyle=r.playerStyle,o.updateData({data:r.data,shouldShowImaAdOnStart:r.shouldShowImaAdOnStart,adInfo:r.adInfo,contentExtraInfo:r.contentExtraInfo,momentIndex:r.momentIndex});const a=null===(i=o.refContentModal)||void 0===i?void 0:i.parentWidget;
1if(a instanceof s.BlazeWidgetLayout){const t=null===(n=a.widgetItems)||void 0===n?void 0:n.find(t=>t.content.id===r.data.id);t&&o.setWidgetItemParent(t)}}createAnimation(t,e,i){var n,o;return r.default.timeline({complete:()=>{var n,o,r;null===(n=t.video)||void 0===n||n.endExit(),null===(r=null===(o=this.playerContentList[i])||void 0===o?void 0:o.video)||void 0===r||r.startEnter(),this.handleAnimationCompletion(t,e)},changeBegin:()=>{this.handleAnimationStart(t,e)},easing:"easeInOutQuad",autoplay:!1}).add({targets:[this.container],keyframes:[{translateY:-this.playerContentList[this.index].offsetTop,duration:0},{translateY:-(null!==(o=null===(n=this.playerContentList[i])||void 0===n?void 0:n.offsetTop)&&void 0!==o?o:this.playerContentList[this.index].offsetTop)}]})}handleAnimationStart(t,e){var i,n,o,r,s;this.cancelFocus(),(null===(i=t.shareModal)||void 0===i?void 0:i.isOpen)&&(null===(n=t.shareModal)||void 0===n||n.close()),(null===(o=t.closedCaptionsModal)||void 0===o?void 0:o.isOpen)&&(null===(r=t.closedCaptionsModal)||void 0===r||r.close()),null===(s=this.onContentChange)||void 0===s||s.call(this,e)}calculateTruePosition(t){const e=this.contentList.findIndex(e=>e.data.id===t.data.id);return e>=0?e+1:this.index+1}handleAnimationCompletion(t,e){return n(this,void 0,void 0,function*(){var i,n,o,r,s;t.navigationType="Manual",t.navigationDirection="NEXT"===e?"Forwards":"Backwards",t.isActive=!1,t.pause(),this.index+="NEXT"===e?1:-1,this.scheduleAccessibilityConfig(),t.event(d.MomentAction.MomentExit,{}),(null===(n=null===(i=this.currentMoment)||void 0===i?void 0:i.data)||void 0===n?void 0:n.id)&&l.contentAccessibilityManager.updateButtonLabels(this.currentMoment.data.id,{isPlaying:!(null===(o=this.currentMoment.video)||void 0===o?void 0:o.paused),isMuted:null===(r=this.currentMoment.video)||void 0===r?void 0:r.muted,isLiked:this.currentMoment.isLiked});const a=this.playerContentList[this.index];a&&l.contentAccessibilityManager.announceNavigation(this.calculateTruePosition(a),this.contentList.length,"moment-list",null===(s=a.data)||void 0===s?void 0:s.title,{trigger:"navigation",navigationType:a.navigationType||"",previousPosition:this.calculateTruePosition(this.playerContentList[0===this.index?0:this.index-1])}),yield this.handleAnimationEnd(e),this.preloadAdjacentPosters(),this.preloadAdjacentVideos()})}loadAndPlayContent(){return n(this,void 0,void 0,function*(){this.isNavigationBlocked=!0,u.VideoPlayerService.isPlaying=!0;const t=this.playerContentList[this.index];t&&(yield t.load("direct"),yield t.play(),this.playerContentList.forEach(e=>{var i;e.data.id!==t.data.id&&(e.isActive=!1,null===(i=e.seekBar)||void 0===i||i.setAttribute("is-active","false"),e.removeResumeButtonFromScreen())}),t.isActive=!0,this.isNavigationBlocked=!1,u.VideoPlayerService.isNavigating=!1,u.VideoPlayerService.isPlaying=!0),this.configurePlayerContentAccessibility()})}setContent(t){for(const t of this.playerContentList)t.remove();this.playerContentList=[],this.contentList=[...t],this.container.style.transform="translateY(0px)"}appendToContentList(t){if(this.contentList.push(...t),this.playerContentList.length>=this.numberOfContentInList){const e=Math.min(Math.floor(this.numberOfContentInList/2),t.length);for(let t=0;t<e;t++)if(Math.floor(this.numberOfContentInList/2)<this.index){const t=this.playerContentList[this.playerContentList.length-1].data.id,e=this.contentList.findIndex(e=>e.data.id===t),i=this.contentList[e+1];if(!i)break;const n=this.playerContentList[0];this.releaseMomentFromMemory(n),i instanceof s.BlazeWidgetMoment&&this.updateItemData(n,i),this.container.insertBefore(n,null),this.playerContentList.shift(),this.playerContentList.push(n),this.index-=1;const o=this.playerContentList[this.index].offsetTop;this.container.style.transform="translateY(-"+o+"px)"}}else{const e=this.numberOfContentInList-this.playerContentList.length,i=Math.min(e,t.length);for(let e=0;e<i;e++){const i=t[e],n=this.cloneMoment(i);this.playerContentList.push(n),this.container.append(n)}this.adjustPlayerContentStyle()}this.updateNavigationButtons(),this.preloadAdjacentPosters(),this.preloadAdjacentVideos()}preloadAdjacentVideos(){this.preloadTimer&&clearTimeout(this.preloadTimer),this.preloadTimer=setTimeout(()=>n(this,void 0,void 0,function*(){const t=this.playerContentList[this.index+1];t&&(yield t.load("direct"))}),1e3)}preloadAdjacentPosters(){this.playerContentList.forEach(t=>{var e;return null===(e=t.video)||void 0===e?void 0:e.loadPoster()});const{previous:t,next:e}=(0,d.getPosterLimits)();if(0===t&&0===e)return;const i=this.getCurrentContentIndex();
1-1!==i&&[...this.getIndicesRange(i-t,i-1),...this.getIndicesRange(i+1,i+e)].forEach(t=>this.fetchPosterAtIndex(t))}getCurrentContentIndex(){return this.contentList.findIndex(t=>t.data.id===this.playerContentList[this.index].data.id)}getIndicesRange(t,e){return Array.from({length:Math.max(0,e-t+1)},(e,i)=>t+i).filter(t=>t>=0&&t<this.contentList.length)}fetchPosterAtIndex(t){return n(this,void 0,void 0,function*(){var e,i,n,o;const r=null===(o=null===(n=null===(i=null===(e=this.contentList[t])||void 0===e?void 0:e.data)||void 0===i?void 0:i.poster)||void 0===n?void 0:n.rendition)||void 0===o?void 0:o.url;if(r&&!this.fetchedPosterUrls.has(r)){this.fetchedPosterUrls.add(r);try{yield fetch(r,{priority:"high",cache:"force-cache"})}catch(t){}}})}play(){const t=this.playerContentList[this.index];t.event(d.MomentAction.MomentsPlaylistStart,{}),t.play(),a.URLManager.updateLocationContentHash({contentType:"moment",contentId:t.data.id,isAd:t.data.isAd}),this.updateNavigationButtons(),this.preloadAdjacentVideos()}pause(){this.playerContentList[this.index].pause()}onAnimationEnd(){}handleWheel(t){var e;if(Math.abs(t.deltaY)<=15)return;if(this.isNavigationBlocked||this.isWheelEventHandling)return;if(null===(e=this.currentMoment.video)||void 0===e?void 0:e.isCurrentlyTryingToRunImaAd)return;this.isWheelEventHandling=!0;const i=t.deltaY>0?"NEXT":"PREV";this.isContentDirectionInPlayerListValid(i)?(this.cancelAccessibilityConfig(),this.isNavigationBlocked=!0,this.changeContent(i),setTimeout(()=>{this.isWheelEventHandling=!1},d.ONE_SECOND)):this.isWheelEventHandling=!1}handleNavigationKeyPress(t){var e;if(this.isNavigationBlocked)return;if(null===(e=this.currentMoment.video)||void 0===e?void 0:e.isCurrentlyTryingToRunImaAd)return;let i=null;switch(t.code){case"ArrowUp":case"Up":case"PageUp":i="PREV";break;case"ArrowDown":case"Down":case"PageDown":i="NEXT";break;case"Space":return void this.currentMoment.handlePlayPauseButtonClick()}this.isContentDirectionInPlayerListValid(i)&&i&&(this.cancelAccessibilityConfig(),this.changeContent(i))}changeContent(t){this.isNavigationBlocked=!0,u.VideoPlayerService.isNavigating=!0;const e=this.animateContent(t);e&&(e.play(),e.finished.then(()=>{var t;this.updateNavigationButtons(),a.URLManager.updateLocationContentHash({contentType:"moment",contentId:null===(t=this.playerContentList[this.index])||void 0===t?void 0:t.data.id,isAd:this.playerContentList[this.index].data.isAd})}))}handleMuteClicked(){this.playerContentList.forEach(t=>t.updatePlayerButtonIcons()),this.playerContentList.forEach(t=>t.onMuteUnmuteChange())}loadContentBatch(){}resetStyles(){}render(){this.adjustContainerStyle(),this.adjustPlayerContentStyle()}configurePlayerContentAccessibility(){this.playerContentList.forEach((t,e)=>{t instanceof s.BlazeWidgetMoment&&(e===this.index?this.setCurrentMomentAccessibility(t,e):this.setInactiveMomentAccessibility(t))})}setCurrentMomentAccessibility(t,e){var i;t.setAttribute("tabindex",d.ACCESSIBILITY_ATTRIBUTES.ACTIVE_TABINDEX),t.setAttribute("aria-hidden",d.ACCESSIBILITY_ATTRIBUTES.ARIA_HIDDEN_FALSE),t.setAttribute("role",d.ACCESSIBILITY_ATTRIBUTES.REGION_ROLE),t.setAttribute("aria-label","Moment content");const n=((null===(i=t.data)||void 0===i?void 0:i.title)||"Moment "+(e+1))+", moment "+this.calculateTruePosition(t)+" of "+this.contentList.length;t.setAttribute("aria-label",n),t.enableAllButtons(),this.scheduleFocus(t),setTimeout(()=>{t.setAttribute("aria-label","")},d.ACCESSIBILITY_TIMING.LABEL_CLEAR_DELAY)}setInactiveMomentAccessibility(t){document.activeElement===t&&t.blur(),t.setAttribute("tabindex",d.ACCESSIBILITY_ATTRIBUTES.INACTIVE_TABINDEX),t.setAttribute("aria-hidden",d.ACCESSIBILITY_ATTRIBUTES.ARIA_HIDDEN_TRUE),t.disableAllButtons()}scheduleAccessibilityConfig(){this.cancelAccessibilityConfig(),this.accessibilityConfigTimeout=setTimeout(()=>{var t,e;this.configurePlayerContentAccessibility();const i=this.playerContentList[this.index];null===(e=null===(t=null==i?void 0:i.refContentModal)||void 0===t?void 0:t.updateContentAriaLabelForNavigation)||void 0===e||e.call(t),this.accessibilityConfigTimeout=null},d.ACCESSIBILITY_TIMING.CONFIG_SCHEDULE_DELAY)}cancelAccessibilityConfig(){this.accessibilityConfigTimeout&&(clearTimeout(this.accessibilityConfigTimeout),this.accessibilityConfigTimeout=null)}scheduleFocus(t){this.cancelFocus(),this.focusTimeout=setTimeout(()=>{t.focus(),this.focusTimeout=null},d.ACCESSIBILITY_TIMING.FOCUS_DELAY)}cancelFocus(){this.focusTimeout&&(clearTimeout(this.focusTimeout),this.focusTimeout=null)}}},4314:(t,e,i)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeCtaButton=void 0;const n=i(4403),o=i(6450),r=i(8921),s=i(277),a=i(4906),l=i(3574),d=i(9266);class u extends n.BaseWidget{constructor(){super(),this.isButtonCreated=!1,this.animationTimeouts=[],this.setAttribute("data-testid","cta-button"),this.anchorButtonElement=document.createElement("a"),this.iconButtonElement=r.WidgetsFactory.create("blaze-button"),this.iconArrowElement=r.WidgetsFactory.create("blaze-button"),this.ctaTextElement=r.WidgetsFactory.create("blaze-div"),(0,d.mergeStyles)(this,{display:"none",width:"100%",cursor:"pointer",outline:"inherit",pointerEvents:"all"}),this.anchorButtonElement.style.position="relative",this.anchorButtonElement.style["-webkit-touch-callout"]="none",this.anchorButtonElement.style["-webkit-user-select"]="none",this.anchorButtonElement.setAttribute("target","_blank"),this.setAnchorButtonStyles({width:"100%",height:"100%",textDecoration:"none",outline:"1px solid",outlineColor:a.Colors.White,fontWeight:"700",fontSize:"16px",borderRadius:"8px",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}),this.iconButtonElement.setAttribute("width","24px"),this.iconButtonElement.setAttribute("height","24px"),this.iconButtonElement.setStyle({display:"none",alignSelf:"flex-start"}),this.iconArrowElement.setAttribute("width","26px"),this.iconArrowElement.setAttribute("height","26px"),this.iconArrowElement.setStyle({display:"none",position:"absolute",top:"-26px"}),this.iconArrowElement.setIconUrl(s.arrowUpCtaIconSvg),this.setCtaTextStyle({position:"absolute",letterSpacing:"0.3px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"75%",textAlign:"center"})}connectedCallback(){this.createButton()}disconnectedCallback(){}attributeChangedCallback(t,e,i){switch(t){case"hidden-btn":this.style.display="true"===i?"none":"flex";break;case"width":this.setWidth(i);break;case"margin":this.setMargin(i);break;case"text":this.setCtaText(i);break;case"href":this.anchorButtonElement.href=i;break;case"icon-url":this.iconButtonElement.setIconUrl(i);break;case"icon-size":this.iconButtonElement.setAttribute("height",i),this.iconButtonElement.setAttribute("width",i);break;case"icon-color":this.iconButtonElement.setAttribute("icon-color",i);break;case"display-icon":this.iconButtonElement.style.display="true"===i?"flex":"none";break;case"arrow-icon-display":this.iconArrowElement.style.display="true"===i?"flex":"none";break;case"arrow-icon-color":this.iconArrowElement.setAttribute("icon-color",i)}}createButton(){this.isButtonCreated||(this.anchorButtonElement.append(this.iconButtonElement),this.anchorButtonElement.append(this.ctaTextElement),this.anchorButtonElement.append(this.iconArrowElement),this.append(this.anchorButtonElement),this.isButtonCreated=!0)}animateButton(t){this.animateElement(this.anchorButtonElement,t,2,3.5*o.ONE_SECOND,1)}animateIcon(t){this.animateElement(this.iconArrowElement,t,3,o.ONE_SECOND,3)}animateElement(t,e,i,n,o){t.style.animation="none",t.offsetWidth;const r=setTimeout(()=>{const n=l.animationCssMapper[e];n&&(t.style.animation=n+" "+i+"s cubic-bezier(0.4, 0, 0, 0.99) "+o+" forwards"),this.animationTimeouts=this.animationTimeouts.filter(t=>t!==r)},n);this.animationTimeouts.push(r)}setCtaText(t){this.ctaTextElement.innerText=t}setWidth(t){this.anchorButtonElement.style.width=t}setMargin(t){this.anchorButtonElement.style.margin=t}setAnchorButtonStyles(t){(0,d.mergeStyles)(this.anchorButtonElement,t)}setCtaTextStyle(t){(0,d.mergeStyles)(this.ctaTextElement,t)}setCtaIconStyles(t){(0,d.mergeStyles)(this.iconButtonElement,t)}setAriaLabel(t){t?this.anchorButtonElement.setAttribute("aria-label",t):this.anchorButtonElement.removeAttribute("aria-label")}clearAllAnimations(){this.animationTimeouts.forEach(t=>clearTimeout(t)),this.animationTimeouts=[]}}e.BlazeCtaButton=u,u.observedAttributes=["hidden-btn","height","width","margin","text","href","icon-url","icon-size","icon-color","arrow-icon-display","arrow-icon-color","display-icon"]},4358:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})}
1,4403:function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(6121),e),o(i(5029),e),o(i(8831),e),o(i(7784),e),o(i(2914),e),o(i(4047),e),o(i(8398),e),o(i(3311),e),o(i(7133),e),o(i(3972),e),o(i(2402),e),o(i(4912),e),o(i(1232),e),o(i(6133),e),o(i(9565),e),o(i(1556),e),o(i(5923),e),o(i(5486),e),o(i(9598),e),o(i(1712),e),o(i(5495),e),o(i(9205),e)},4437:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},4458:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDataSourceStringRep=function(t){var e;if("labels"===t.sourceType){if("string"==typeof t.labels)return t.labels;if(Array.isArray(t.labels))return t.labels.join();if(t.labels instanceof n.BlazeWidgetLabel)return t.labels.toString()}else if("ids"===t.sourceType)return null===(e=t.ids)||void 0===e?void 0:e.join()};const n=i(4403)},4545:function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(541),e),o(i(7924),e),o(i(3380),e),o(i(7708),e),o(i(5096),e),o(i(8094),e),o(i(997),e),o(i(3390),e),o(i(2547),e),o(i(6308),e),o(i(4748),e),o(i(4071),e),o(i(6248),e),o(i(7416),e),o(i(817),e),o(i(7341),e),o(i(5943),e),o(i(7452),e),o(i(9983),e),o(i(207),e),o(i(9917),e),o(i(7416),e),o(i(7341),e),o(i(6859),e),o(i(4903),e)},4578:function(t,e){"use strict";var i=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.delay=function(t){return i(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(()=>{e()},t))})}},4710:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},4748:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.InteractionService=void 0;const o=i(4545),r=i(4403);e.InteractionService=class extends((0,r.Singleton)()){constructor(){super()}init(){return n(this,void 0,void 0,function*(){})}updateInteraction(t){return n(this,void 0,void 0,function*(){try{yield o.DatabaseService.updateInteraction(t)}catch(t){}})}getInteraction(t){return n(this,void 0,void 0,function*(){var e;try{return null===(e=yield o.DatabaseService.getInteraction(t))||void 0===e?void 0:e.data}catch(t){return null}})}}.getInstance()},4765:(t,e)=>{"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.LogLevel=void 0,function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARN="WARN",t.ERROR="ERROR",t.CRITICAL="CRITICAL"}(i||(e.LogLevel=i={}))},4784:(t,e,i)=>{var n=i(9840),o=t.exports={WebVTT:i(6311),VTTCue:i(184),VTTRegion:i(5891)};n.vttjs=o,n.WebVTT=o.WebVTT;var r=o.VTTCue,s=o.VTTRegion,a=n.VTTCue,l=n.VTTRegion;o.shim=function(){n.VTTCue=r,n.VTTRegion=s},o.restore=function(){n.VTTCue=a,n.VTTRegion=l},n.VTTCue||o.shim()},4804:(t,e)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeParser=function(t){return class extends t{getIntAttribute(t,e){const i=this.getAttribute(t);let n=Number.NaN;return i&&(n=parseInt(i)),isNaN(n)?e:n}getFloatAttribute(t,e){const i=this.getAttribute(t);let n=Number.NaN;return i&&(n=parseFloat(i)),isNaN(n)?e:n}getStringAttribute(t,e){return this.getAttribute(t)||e}getBooleanAttribute(t,e){const i=this.getAttribute(t);return i?"true"==i:e}}}},4858:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},4903:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.CDNDetermineService=void 0;const o=i(4403),r=i(373),s=i(3811),a=i(9266);class l extends((0,o.Singleton)()){constructor(){super(...arguments),this._cdnVendor=l.GLOBAL_CDN_VENDOR_TYPE,this._isInitInProgress=!1,this._cdnVendorTypes=["cf","fd"]}init(){return n(this,void 0,void 0,function*(){if(!this._isInitInProgress){this._isInitInProgress=!0;try{const t=this.getCachedCDNVendor();if(t&&(this._cdnVendor=t,!this.isCachedExpired()))return;const e=this.updateCDNVendor();t||(yield e)}catch(t){}finally{this._isInitInProgress=!1}}})}get cdnVendor(){return this._cdnVendor}updateCDNVendor(){return n(this,void 0,void 0,function*(){this._cdnVendor=yield this.determineCDNVendor(),this.cacheCDNVendor()})}isCachedExpired(){const t=(0,a.tryGetLocalStorageItem)(l.CDN_VENDOR_CACHE_EXPIRY_KEY,"Failed to get cached CDN vendor expiry");return null===t||Date.now()>=Number(t)}getCachedCDNVendor(){const t=(0,a.tryGetLocalStorageItem)(l.CDN_VENDOR_CACHE_KEY,"Failed to get cached CDN vendor");return this._cdnVendorTypes.includes(t)?t:null}cacheCDNVendor(){this._cdnVendor&&((0,a.trySetLocalStorageItem)(l.CDN_VENDOR_CACHE_KEY,this._cdnVendor,"Failed to cache CDN vendor"),(0,a.trySetLocalStorageItem)(l.CDN_VENDOR_CACHE_EXPIRY_KEY,(Date.now()+l.CDN_VENDOR_UPDATE_INTERVAL_MS).toString(),"Failed to cache CDN vendor expiry"),(Date.now()+l.CDN_VENDOR_UPDATE_INTERVAL_MS).toString())}isGlobalVendor(t){return t===l.GLOBAL_CDN_VENDOR_TYPE}determineCDNVendor(){return n(this,void 0,void 0,function*(){const t=this._cdnVendorTypes.map(t=>(0,s.fetchWithTimeout)(r.CDN_VENDOR_TO_API_DOMAIN[t]+"/"+r.BASE_API_PATH,l.API_TIMEOUT_MS).then(e=>({vendor:e.ok?t:null})).catch(()=>({vendor:null}))),e=yield Promise.race(t);return e.vendor&&this.isGlobalVendor(e.vendor)?e.vendor:yield Promise.allSettled(t).then(t=>{var e;const i=t.filter(t=>{var e;return"fulfilled"===t.status&&Boolean(null===(e=t.value)||void 0===e?void 0:e.vendor)});return 1===i.length?null===(e=i[0])||void 0===e?void 0:e.value.vendor:l.GLOBAL_CDN_VENDOR_TYPE})})}reset(){(0,a.tryRemoveLocalStorageItem)(l.CDN_VENDOR_CACHE_KEY,"Failed to remove cached CDN vendor"),(0,a.tryRemoveLocalStorageItem)(l.CDN_VENDOR_CACHE_EXPIRY_KEY,"Failed to remove cached CDN vendor expiry"),this._cdnVendor=l.GLOBAL_CDN_VENDOR_TYPE,this._isInitInProgress=!1}}l.CDN_VENDOR_CACHE_KEY="cdnVendorType",l.CDN_VENDOR_CACHE_EXPIRY_KEY="cdnVendorExpiry",l.C
1DN_VENDOR_UPDATE_INTERVAL_MS=6e5,l.API_TIMEOUT_MS=2e3,l.GLOBAL_CDN_VENDOR_TYPE="cf",e.CDNDetermineService=l.getInstance()},4906:function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(7311),e),o(i(371),e),o(i(5686),e)},4912:function(t,e){"use strict";var i=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.LoggerStorage=void 0,e.LoggerStorage=class{constructor(t){this.database=t}store(t){return i(this,void 0,void 0,function*(){return this.database.storeLog(t)})}getBatch(t){return i(this,void 0,void 0,function*(){return this.database.getLogBatch(t)})}remove(t){return i(this,void 0,void 0,function*(){if(t.length)return this.database.removeLogs(t)})}clear(){return i(this,void 0,void 0,function*(){return this.database.clearLogs()})}getLogCount(){return i(this,void 0,void 0,function*(){return this.database.getLogCount()})}}},4933:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetMomentSeekBar=void 0;const n=i(9126),o=i(4403),r=i(6450),s=i(8921),a=i(4545),l=i(9266),d=i(1908),u={isActive:"is-active"};e.BlazeWidgetMomentSeekBar=class extends HTMLElement{constructor(t,e){super(),this.video=t,this.seekBarStyle=e,this.playbackParts=[],this.isProgressBarPaused=!1,this.isActive=!1,this.isInit=!1,this.animationFrameId=null,this.lastProgress=0,this.progressBarContainer=s.WidgetsFactory.create("blaze-div"),this.progressBarFill=s.WidgetsFactory.create("blaze-div"),this.progressBarKnob=s.WidgetsFactory.create("blaze-div"),this.isMouseIn=!1,this.SEEKING_DEBOUNCE_MS=250,this.progress=s.WidgetsFactory.create("blaze-div"),this.listeners=new o.EventsListener,this.boundOnTouchMove=this.onTouchMove.bind(this),this.boundOnMouseMove=this.onMouseMove.bind(this),this.boundOnClick=this.handleOnClick.bind(this),this.boundOnStartDrag=this.handleOnStartDrag.bind(this),this.boundOnEndDrag=this.handleOnEndDrag.bind(this),this.boundOnMouseIn=this.handleOnMouseIn.bind(this),this.boundOnMouseOut=this.handleOnMouseOut.bind(this),this.progress.classList.add(r.WSC_PREFIX+"progress"),this.setupVideoEventListeners()}static get observedAttributes(){return Object.values(u)}attributeChangedCallback(t,e,i){var n,o;t===u.isActive&&(this.isActive="true"===i.toLowerCase(),this.isActive?this.setupProgressUpdate():this.stopProgressUpdate(),null===(o=null===(n=this.playbackParts)||void 0===n?void 0:n.forEach)||void 0===o||o.call(n,t=>t.style.width="0%"))}connectedCallback(){if(!this.isInit&&this.seekBarStyle.isVisible){if(this.isInit=!0,this.addTransitionStyle(),this.seekBarStyle){const t=parseFloat(this.seekBarStyle.playingState.height);isNaN(t)&&(this.seekBarStyle.playingState.height="3px");const e=parseFloat(this.seekBarStyle.pausedState.height);isNaN(e)&&(this.seekBarStyle.pausedState.height="5px")}this.initialize(),this.styleProgressContainer()}}addTransitionStyle(){const t=document.createElement("style");t.textContent="\n      ."+r.WSC_PREFIX+"progress {\n        transition: height 0.3s ease;\n      }\n    ",this.appendChild(t)}onContentPaused(){this.applyPauseSeekBarStyle()}onContentResumed(t=!1){t?this.applyPlayingSeekBarStyle():setTimeout(()=>{this.applyPlayingSeekBarStyle()},2*r.ONE_SECOND)}disconnectedCallback(){this.stopProgressUpdate()}initialize(){this.setupEventListeners(),this.render()}setVideo(t){this.video=t,this.stopProgressUpdate(),this.setupProgressUpdate(),this.reset()}setupProgressUpdate(){var t;const e=()=>{var t;
1this.playbackParts.forEach(t=>t.style.width="0%");let i=this.video.progress;Number.isNaN(i)?i=this.lastProgress:this.lastProgress=i;const n=this.playbackParts[0];n&&(n.style.width=100*i+"%"),this.animationFrameId=null===(t=window.requestAnimationFrame)||void 0===t?void 0:t.call(window,e)};this.animationFrameId=null===(t=window.requestAnimationFrame)||void 0===t?void 0:t.call(window,e)}stopProgressUpdate(){var t;null!==this.animationFrameId&&(null===(t=window.cancelAnimationFrame)||void 0===t||t.call(window,this.animationFrameId),this.animationFrameId=null)}setupEventListeners(){this.listeners.addAttached(this,"mousedown",this.boundOnStartDrag),this.listeners.addAttached(this,"touchstart",this.boundOnStartDrag),this.listeners.add("mouseup",this.boundOnEndDrag),this.listeners.add("touchend",this.boundOnEndDrag),this.listeners.addAttached(this,"mousemove",this.boundOnMouseMove),this.listeners.addAttached(this,"touchmove",this.boundOnTouchMove),this.listeners.addAttached(this,"click",this.boundOnClick),this.listeners.addAttached(this,"mouseenter",this.boundOnMouseIn),this.listeners.addAttached(this,"mouseleave",this.boundOnMouseOut)}handleOnStartDrag(){var t;this.isActive&&(a.VideoPlayerService.isSeekBarDragging=!0,null===(t=this.onPause)||void 0===t||t.call(this),this.applyPauseSeekBarStyle())}handleOnEndDrag(){var t;this.isActive&&a.VideoPlayerService.isSeekBarDragging&&this.isConnected&&(a.VideoPlayerService.isSeekBarDragging=!1,null===(t=this.onResume)||void 0===t||t.call(this),setTimeout(()=>{a.VideoPlayerService.isSeekBarDragging||this.applyPlayingSeekBarStyle()},2*r.ONE_SECOND))}handleOnClick(t){if(!this.isActive||a.VideoPlayerService.isSeekBarDragging)return;let e;if(t instanceof MouseEvent)e=t.clientX;else{if(!(t.touches&&t.touches.length>0))return;e=t.touches[0].clientX}this.handleSeek(e,!0)}onMouseMove(t){this.handleSeek(t.clientX,1===t.buttons)}onTouchMove(t){t.touches.length>0&&(this.handleSeek(t.touches[0].clientX,!0),t.preventDefault(),t.stopImmediatePropagation())}handleOnMouseOut(){this.isActive&&(a.VideoPlayerService.isSeekBarDragging||(this.isMouseIn=!1,setTimeout(()=>{this.applyPlayingSeekBarStyle()},2*r.ONE_SECOND)))}handleOnMouseIn(){this.isActive&&(this.isMouseIn=!0,this.applyPauseSeekBarStyle())}applyPlayingSeekBarStyle(){this.video.paused&&!a.VideoPlayerService.isPlaying||this.isProgressBarPaused&&(this.isMouseIn||(this.progress.style.height=this.seekBarStyle.playingState.height,this.progressBarKnob.style.display=this.seekBarStyle.playingState.isThumbVisible?"block":"none",this.isProgressBarPaused=!1,this.updateProgressBarStyles()))}applyPauseSeekBarStyle(){this.isProgressBarPaused||(this.progress.style.height=this.seekBarStyle.pausedState.height,this.progressBarKnob.style.display=this.seekBarStyle.pausedState.isThumbVisible?"block":"none",this.isProgressBarPaused=!0,this.updateProgressBarStyles())}reset(){this.progress.style.height=this.seekBarStyle.playingState.height,this.progressBarKnob.style.display=this.seekBarStyle.playingState.isThumbVisible?"block":"none",this.updateProgressBarStyles()}handleSeek(t,e){if(!e)return;const i=this.getBoundingClientRect();let n=(t-i.left)/i.width;"RTL"===a.ConfigService.layoutDirection&&(n=1-n);const o=Math.min(Math.max(n,0),1);this.video.currentTime=this.video.duration*o}styleProgressContainer(){const t=parseFloat(this.seekBarStyle.playingState.height),e=parseFloat(this.seekBarStyle.pausedState.height),i=Math.max(t,e);(0,l.mergeStyles)(this,{height:i+"px",padding:"20px "+this.seekBarStyle.horizontalSpacing+" "+this.seekBarStyle.verticalSpacing+" "+this.seekBarStyle.horizontalSpacing,cursor:"pointer",boxSizing:"content-box",zIndex:"2"}),this.progress.setStyle({width:"100%",display:"grid",height:this.seekBarStyle.playingState.height}),this.createPlaybackPart(),this.updateProgressBarStyles(),this.append(this.progress)}createPlaybackPart(){this.progressBarContainer.setStyle({width:"100%",height:"100%",display:"block"}),this.progressBarFill.setStyle({width:"0%",height:"100%",position:"relative",display:"block"}),this.progressBarKnob.setStyle({borderRadius:"100%",position:"absolute",right:"0px",top:"50%",bottom:"0px",transform:"translateX(50%) translateY(-50%)"}),this.progressBarFill.append(this.progressBarKnob),this.playbackParts.push(this.progressBarFill),this.progressBarContainer.appendChild(this.progressBarFill),this.progress.append(this.progressBarContainer)}updateProgressBarStyles(){this.progressBarContainer.setStyle({borderRadius:this.isProgressBarPaused?this.seekBarStyle.pausedState.borderRadius:this.seekBarStyle.playingState.borderRadius,backgroundColor:this.isProgressBarPaused?this.seekBarStyle.pausedState.backgroundColor:this.seekBarStyle.playingState.backgroundColor}),this.progressBarFill.setStyle({borderRadius:this.isProgressBarPaused?this.seekBarStyle.pausedState.borderRadius:this.seekBarStyle.playingState.borderRadius,backgroundColor:this.isProgressBarPaused?this.seekBarStyle.pausedState.progressColor:this.seekBarStyle.playingState.progressColor}),this.progressBarKnob.setStyle({width:this.isProgressBarPaused?this.seekBarStyle.pausedState.thumbSize:this.seekBarStyle.playingState.thumbSize,height:this.isProgressBarPaused?this.seekBarStyle.pausedState.thumbSize:this.seekBarStyle.playingState.thumbSize,backgroundColor:this.isProgressBarPaused?this.seekBarStyle.pausedState.thumbColor:this.seekBarStyle.playingState.thumbColor})}render(){}setupVideoEventListeners(){this.video instanceof n.BlazeWidgetVideo&&(this.video.video.addEventListener(d.EVENTS.SEEKING,()=>{this.startSeekingLoader()}),this.video.video.addEventListener(d.EVENTS.SEEKED,()=>{this.stopSeekingLoader()}),this.video.video.addEventListener(d.EVENTS.PLAYING,()=>{this.stopSeekingLoader()}))}
1startSeekingLoader(){if(!(this.video instanceof n.BlazeWidgetVideo))return;const t=this.video.video;!t.paused&&t.readyState>=3||(this.seekingTimeout&&clearTimeout(this.seekingTimeout),this.seekingTimeout=setTimeout(()=>{t.paused&&(t.readyState>=3||this.video.tryToAddLoader())},this.SEEKING_DEBOUNCE_MS))}stopSeekingLoader(){this.seekingTimeout&&(clearTimeout(this.seekingTimeout),this.seekingTimeout=void 0),this.video instanceof n.BlazeWidgetVideo&&this.video.removeLoader()}}},5029:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BaseWidget=void 0,e.BaseWidget=class extends HTMLElement{constructor(){super(),this._animationDuration=300}getAttribute(t){var e;const i=null===(e=super.getAttribute(t))||void 0===e?void 0:e.toLocaleLowerCase();return"true"===i||"false"===i?JSON.parse(i):super.getAttribute(t)}setStyle(t){for(const e in t){let i=e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase());this.style.setProperty(i,t[e])}}setAttributes(t){Object.entries(t).forEach(([t,e])=>{this.setAttribute(t,e)})}removeElement(){this.parentNode&&this.parentNode.removeChild(this)}}},5094:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.transformContent=o,e.transformStory=r,e.transformVideo=a,e.transformMoment=l,e.transformContentItem=d,e.transformContentsArray=function(t){return t.map(d)};const n=i(8243);function o(t){return{id:t.id,title:t.title,updateTime:t.updateTime,createTime:t.createTime,thumbnails:t.thumbnails,hasViewed:t.hasViewed,type:t.type,entities:t.entities}}function r(t){return Object.assign(Object.assign({},o(t)),{pages:t.pages.map(s),isLive:t.isLive})}function s(t){const e={id:t.id,duration:t.duration,hasViewed:t.hasViewed,createTime:t.createTime};return"Content"===t.type?Object.assign(Object.assign({},e),{index:t.index,thumbnail:t.thumbnail,poster:t.poster}):e}function a(t){return Object.assign(Object.assign({},o(t)),{duration:t.duration.toString(),likes:t.likes,isLive:t.isLive})}function l(t){return Object.assign(Object.assign({},o(t)),{duration:t.duration,likes:t.likes})}function d(t){return(0,n.isStory)(t)?r(t):(0,n.isVideo)(t)?a(t):(0,n.isMoment)(t)?l(t):o(t)}},5096:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.BeforeContentPlayService=void 0;const o=i(8094),r=i(7708);e.BeforeContentPlayService=class{getTokenizedUrl(t){return n(this,void 0,void 0,function*(){var e;const i=o.ConfigService.beforeContentPlayCallback;if(!i||"true"!==(null===(e=r.AppConfigurationService.appConfigurations)||void 0===e?void 0:e.configurations.enableClientPlaybackModification))return t;const n={originalUrl:t};try{return(yield i(n)).resultUrl||t}catch(e){return t}})}}},5127:()=>{!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(){for(var t=window.document,e=o(t);e;)e=o(t=e.ownerDocument);return t}(),e=[],i=null,n=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return i||(i=function(t,i){n=t&&i?h(t,i):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach(function(t){t._checkForIntersections()})}),i},s._resetCrossOriginUpdater=function(){i=null,n=null},s.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];
vendor: 6,893 bytes, line 1
1return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,i){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==i[e-1]})},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},s.prototype._monitorIntersections=function(e){var i=e.defaultView;if(i&&-1==this._monitoringDocuments.indexOf(e)){var n=this._checkForIntersections,r=null,s=null;this.POLL_INTERVAL?r=i.setInterval(n,this.POLL_INTERVAL):(a(i,"resize",n,!0),a(e,"scroll",n,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in i&&(s=new i.MutationObserver(n)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push(function(){var t=e.defaultView;t&&(r&&t.clearInterval(r),l(t,"resize",n,!0)),l(e,"scroll",n,!0),s&&s.disconnect()});var d=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=d){var u=o(e);u&&this._monitorIntersections(u.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var i=this._monitoringDocuments.indexOf(e);if(-1!=i){var n=this.root&&(this.root.ownerDocument||this.root)||t;if(!this._observationTargets.some(function(t){var i=t.element.ownerDocument;if(i==e)return!0;for(;i&&i!=n;){var r=o(i);if((i=r&&r.ownerDocument)==e)return!0}return!1})){var r=this._monitoringUnsubscribes[i];if(this._monitoringDocuments.splice(i,1),this._monitoringUnsubscribes.splice(i,1),r(),e!=n){var s=o(e);s&&this._unmonitorIntersections(s.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},s.prototype._checkForIntersections=function(){if(this.root||!i||n){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(n){var o=n.element,s=u(o),a=this._rootContainsTarget(o),l=n.entry,d=t&&a&&this._computeTargetAndRootIntersection(o,s,e),c=null;this._rootContainsTarget(o)?i&&!this.root||(c=e):c={top:0,bottom:0,left:0,right:0,width:0,height:0};var h=n.entry=new r({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:s,rootBounds:c,intersectionRect:d});l?t&&a?this._hasCrossedThreshold(l,h)&&this._queuedEntries.push(h):l&&l.isIntersecting&&this._queuedEntries.push(h):this._queuedEntries.push(h)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(e,o,r){if("none"!=window.getComputedStyle(e).display){for(var s=o,a=f(e),l=!1;!l&&a;){var c=null,p=1==a.nodeType?window.getComputedStyle(a):{};if("none"==p.display)return null;if(a==this.root||9==a.nodeType)if(l=!0,a==this.root||a==t)i&&!this.root?!n||0==n.width&&0==n.height?(a=null,c=null,s=null):c=n:c=r;else{var g=f(a),v=g&&u(g),y=g&&this._computeTargetAndRootIntersection(g,v,r);v&&y?(a=g,c=h(v,y)):(a=null,s=null)}else{var m=a.ownerDocument;a!=m.body&&a!=m.documentElement&&"visible"!=p.overflow&&(c=u(a))}if(c&&(s=d(c,s)),!s)break;a=a&&f(a)}return s}},s.prototype._getRootRect=function(){var e;if(this.root&&!g(this.root))e=u(this.root);else{var i=g(this.root)?this.root:t,n=i.documentElement,o=i.body;e={top:0,left:0,right:n.clientWidth||o.clientWidth,width:n.clientWidth||o.clientWidth,bottom:n.clientHeight||o.clientHeight,height:n.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,i){return"px"==e.unit?e.value:e.value*(i%2?t.width:t.height)/100}),i={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return i.width=i.right-i.left,i.height=i.bottom-i.top,i},s.prototype._hasCrossedThreshold=function(t,e){var i=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(i!==n)for(var o=0;o<this.thresholds.length;o++){var r=this.thresholds[o];if(r==i||r==n||r<i!=r<n)return!0}},s.prototype._rootIsInDom=function(){return!this.root||p(t,this.root)},s.prototype._rootContainsTarget=function(e){var i=this.root&&(this.root.ownerDocument||this.root)||t;return p(i,e)&&(!this.root||i==e.ownerDocument)},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=r}function o(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function r(t){this.time=t.time,this.target=t.target,this.rootBounds=c(t.rootBounds),this.boundingClientRect=c(t.boundingClientRect),this.intersectionRect=c(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,i=e.width*e.height,n=this.intersectionRect,o=n.width*n.height;this.intersectionRatio=i?Number((o/i).toFixed(4)):this.isIntersecting?1:0}function s(t,e){var i,n,o,r=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType&&9!=r.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(i=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout(function(){i(),o=null},n))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function a(t,e,i,n){"function"==typeof t.addEventListener?t.addEventListener(e,i,n||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,i)}function l(t,e,i,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,i,n||!1):"function"==typeof t.detachEvent&&t.detachEvent("on"+e,i)}function d(t,e){var i=Math.max(t.top,e.top),n=Math.min(t.bottom,e.bottom),o=Math.max(t.left,e.left),r=Math.min(t.right,e.right),s=r-o,a=n-i;return s>=0&&a>=0&&{top:i,bottom:n,left:o,right:r,width:s,height:a}||null}function u(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function c(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function h(t,e){var i=e.top-t.top,n=e.left-t.left;
1return{top:i,left:n,height:e.height,width:e.width,bottom:i+e.height,right:n+e.width}}function p(t,e){for(var i=e;i;){if(i==t)return!0;i=f(i)}return!1}function f(e){var i=e.parentNode;return 9==e.nodeType&&e!=t?o(e):(i&&i.assignedSlot&&(i=i.assignedSlot.parentNode),i&&11==i.nodeType&&i.host?i.host:i)}function g(t){return t&&9===t.nodeType}}()},5135:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},5182:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isBot=function(){return"undefined"==typeof navigator||!navigator.userAgent||"undefined"==typeof navigator||!0===navigator.webdriver||!!function(){if("undefined"==typeof navigator||!navigator.userAgent)return!0;const t=navigator.userAgent.toLowerCase();return i.some(e=>t.includes(e))}()};const i=["googlebot","adsbot-google","mediapartners-google","google web preview","google-inspectiontool","googleother","bingbot","slurp","duckduckbot","baiduspider","yandexbot","sogou","exabot","ia_archiver","facebookexternalhit","facebot","twitterbot","linkedinbot","pinterest","whatsapp","telegrambot","slackbot","discordbot","bot/","bot;","bot)","crawler","spider","scraper","archiver","headlesschrome","phantomjs","puppeteer","selenium","prerender","rendertron","googleweblight","uptimerobot","pingdom","gtmetrix","semrushbot","ahrefsbot","mj12bot","dotbot"]},5185:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},5207:function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(8897),e),o(i(2203),e),o(i(4314),e),o(i(1868),e),o(i(8103),e)},5266:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetItem=void 0;const n=i(4403),o=i(6450),r=i(8921),s=i(4545),a=i(4403),l=i(6994),d=i(3574),u=i(9266);e.BlazeWidgetItem=class extends n.BaseWidget{get parentRef(){let t=this.parentElement;const e=this.getRootNode();return e instanceof ShadowRoot&&(t=e.host),t}constructor(t){super(),this.options=t,this.thumbnailString="",this.analyticsCalls={},this.chipType="statusReadStyle",this.position=1,this.total=1,this.statusIndicatorSettings={backgroundColor:"#ffffff",backgroundImage:"none",textColor:"#fffff",font:"initial",textSize:"10px",letterSpacing:"initial",borderRadius:"initial",borderColor:"#ffffff",thumbnailBorderColor:"#ffffff",text:"",borderWidth:2,isVisible:!1,padding:"3px 9px"},this.paddingItem={top:"0",left:"0",right:"0",bottom:"0"},this.debouncedIntersectionAction=(0,n.debounce)(()=>{var t,e,i,n,o,r;(null===(e=null===(t=this.parentRef)||void 0===t?void 0:t.momentsModal)||void 0===e?void 0:e.isOpen)||(null===(n=null===(i=this.parentRef)||void 0===i?void 0:i.storysModal)||void 0===n?void 0:n.isOpen)||(null===(r=null===(o=this.parentRef)||void 0===o?void 0:o.videosModal)||void 0===r?void 0:r.isOpen)||(this.parentRef.setFirstVisibleItem(),this.parentRef.currentlyAnimatedItem=this.parentRef.firstVisibleItem,this.parentRef.widgetItems.forEach(t=>{null==t||t.loadNewThumbnail()}))},1e3);const{layout:e,content:i}=t;this.content=i,this.layoutStyle=e,this.statusIndicatorSettings.borderRadius="Circle"===this.layoutStyle.thumbnailShape?"50%":"0",this.statusIndicatorSettings.borderWidth=this.layoutStyle.borderWidth,this.thumbnailType=this.layoutStyle.thumbnailType,this.setAttribute("title",i.title),this.wrapper=r.WidgetsFactory.create("blaze-div"),this.container=r.WidgetsFactory.create("blaze-div"),this.label=r.WidgetsFactory.create("blaze-div"),this.labelBackground=r.WidgetsFactory.create("blaze-div"),this.labelContainer=r.WidgetsFactory.create("blaze-div"),this.thumbnail=r.WidgetsFactory.create("blaze-image"),this.chip=r.WidgetsFactory.create("blaze-chip"),this.badge=r.WidgetsFactory.create("blaze-chip"),this.intersectionObserver=new IntersectionObserver(this.handleIntersection.bind(this),{root:this.parentRef,threshold:[0,.01,.99,1]}),this.boundOnWidgetClick=this.handleWidgetClick.bind(this),this.boundOnFocus=this.onFocus.bind(this),this.boundOnBlur=this.onBlur.bind(this)}initializeWidget(){this.thumbnailType=(0,d.thumbnailMapping)(this.layoutStyle.thumbnailType),this.setupDOMElements(),this.setData(this.content),this.setupEventListeners(),this.intersectionObserver.observe(this)}connectedCallback(){(0,u.setId)(this,"blaze-widget-item"),this.setAttribute("data-testid","blaze-widget-item-"+this.content.id),this.setAttribute("role","button"),this.setAttribute("tabindex","0"),this.setAttribute("aria-keyshortcuts","Enter"),this.setAttribute("aria-roledescription","Widget item"),this.setAttribute("aria-haspopup","dialog"),this.setAttribute("aria-expanded","fal
1se"),this.initializeWidget(),this.updateLabel(),this.setChipStyle(),this.render()}updateAriaLabel(){var t;const e=(null===(t=this.content)||void 0===t?void 0:t.title)||"Untitled",i=this.contentType||"story",n=(0,u.buildContentAriaLabel)({contentType:i,title:e,content:this.content,position:this.position,total:this.total,badgeStyle:this.layoutStyle.badgeIndicatorStyle,elementType:"button"});this.setAttribute("aria-label",n)}updateWidget(){var t;null===(t=this.parentRef)||void 0===t||t.updateWidgetsData(),this.updateAriaLabel()}updateWidgetItemPadding(){var t;null===(t=this.parentRef)||void 0===t||t.setMaxPaddingOnWidgetItems()}updateWidgetItemStyle(t){this.resetWidgetItemStyles(),this.setTheme(t)}setupDOMElements(){this.setStyle({display:"grid",position:"relative",cursor:"pointer"}),this.wrapper.setStyle({position:"relative",display:"grid"}),this.container.setStyle({background:"transparent",position:"relative",display:"grid"}),this.labelBackground.setStyle({position:"absolute",top:"0",right:"0",bottom:"0",left:"0",height:"33.34%",borderRadius:"inherit",display:"none"}),this.thumbnail.setStyle({lineHeight:"0"}),this.label.setStyle({margin:"0px",justifySelf:"center",justifyContent:"center",textAlign:"center",overflow:"hidden",boxSizing:"border-box",fontWeight:this.layoutStyle.labelStyle.fontWeight,width:"100%",color:"transparent",borderRadius:"4px",maxWidth:"max(50%, 48px)",maxHeight:"24px"}),this.labelContainer.setStyle({display:"inline-block"}),(0,u.mergeStyles)(this.chip,{display:this.isLive?"inline":"none",transform:"unset",fontWeight:"bold",inset:"unset"}),(0,u.mergeStyles)(this.badge,{justifyContent:"center",alignItems:"center",inset:"unset"}),this.append(this.wrapper),this.container.append(this.labelBackground),this.container.append(this.thumbnail),this.wrapper.append(this.container),this.labelContainer.append(this.label),this.container.append(this.chip),this.container.append(this.badge)}setupEventListeners(){this.addEventListener("click",this.boundOnWidgetClick),this.addEventListener("focus",this.boundOnFocus),this.addEventListener("blur",this.boundOnBlur)}onFocus(t){const e=this.parentRef;if(e&&e.widgetItems){const t=e.widgetItems.indexOf(this);-1!==t&&e.updateFocusedItemIndex(t)}this.matches(":focus-visible")&&(this.style.transform="scale(0.98)",this.style.outline="2px solid #007AFF",this.style.outlineOffset="2px")}onBlur(){this.style.transform="",this.style.outline=""}handleWidgetClick(){var t;if(this.event(o.WidgetAction.Click,{}),l.accessibilityManager.storeModalFocusReturnTarget(this),s.ConfigService.onItemClick){const t=this.parentRef.containerId||"",e=this.getItemIndex(),i=this.contentType||"story",n={containerId:t,item:this.content,itemIndexInContainer:e,contentType:i};if(s.ConfigService.onItemClick(n).shouldPreventOpen)return}null===(t=this.onClick)||void 0===t||t.call(this)}disconnectedCallback(){this.removeEventListener("click",this.boundOnWidgetClick),this.removeEventListener("focus",this.boundOnFocus),this.removeEventListener("blur",this.boundOnBlur),this.intersectionObserver.disconnect()}handleIntersection(){this.parentRef.isAnimatedThumbnail()&&this.debouncedIntersectionAction()}setData(t){this.content=t,this.content&&this.label&&(this.label.textContent=this.content.title),"isLive"in this.content&&(this.isLive=this.content.isLive),this.parentRef.isAnimatedThumbnail()&&this.parentRef.widgetItems[0]===this&&(this.parentRef.currentlyAnimatedItem=this),this.thumbnailString=this.getThumbnailUrl(),this.setupChildElementsAccessibility(),this.updateAriaLabel(),this.thumbnail.load(this.thumbnailString)}setupChildElementsAccessibility(){this.chip.setAttribute("aria-hidden","true"),this.chip.setAttribute("tabindex","-1"),this.chip.style.pointerEvents="none",this.badge.setAttribute("aria-hidden","true"),this.badge.setAttribute("tabindex","-1"),this.badge.style.pointerEvents="none",this.label.setAttribute("aria-hidden","true"),this.label.setAttribute("tabindex","-1"),this.labelContainer.setAttribute("aria-hidden","true"),this.labelContainer.setAttribute("tabindex","-1"),this.labelBackground.setAttribute("aria-hidden","true"),this.labelBackgroun
1d.setAttribute("tabindex","-1"),this.labelBackground.style.pointerEvents="none",this.thumbnail.setAttribute("aria-hidden","true"),this.thumbnail.setAttribute("tabindex","-1"),this.thumbnail.style.pointerEvents="none",this.thumbnail.thumbnailElement&&(this.thumbnail.thumbnailElement.setAttribute("alt",""),this.thumbnail.thumbnailElement.setAttribute("tabindex","-1"),this.thumbnail.thumbnailElement.style.pointerEvents="none")}isFullyVisibleInParent(){const t=this.getBoundingClientRect(),e=this.parentRef.getBoundingClientRect();return t.top>=e.top&&t.bottom<=e.bottom&&t.left>=e.left&&t.right<=e.right}loadNewThumbnail(){const t=this.getThumbnailUrl();if(this.thumbnailString===t)return;const e=new Image;e.src=t,e.onload=(()=>{this.thumbnail.load(t),this.thumbnailString=t})}getThumbnailUrl(){var t,e,i,n,o,r,s,a;let l,d=null===(i=null===(e=null===(t=this.content)||void 0===t?void 0:t.thumbnails[0])||void 0===e?void 0:e.rendition)||void 0===i?void 0:i.url;return l="AnimatedThumbnailPoster"===this.thumbnailType?this.parentRef.currentlyAnimatedItem===this?"Gif":"AnimatedThumbnailPoster":this.thumbnailType,(d=null!==(a=null===(s=null===(r=null===(o=null===(n=this.content)||void 0===n?void 0:n.thumbnails)||void 0===o?void 0:o.find(t=>t.type==l))||void 0===r?void 0:r.rendition)||void 0===s?void 0:s.url)&&void 0!==a?a:d)||""}setThumbnailBorderColor(t){this.container.setStyle({borderColor:t})}updateLabel(){this.label.setStyle({color:this.layoutStyle.labelStyle.color,background:"initial",borderRadius:"initial",maxWidth:"initial",maxHeight:"initial"}),this.labelBackground.setStyle({display:"block"})}resetWidgetItemStyles(){this.paddingItem={top:"0",left:"0",right:"0",bottom:"0"},this.chip.setStyle({top:"initial",bottom:"initial",left:"initial",right:"initial",transform:"initial",alignSelf:"initial",display:"none"}),this.badge.setStyle({top:"initial",bottom:"initial",left:"initial",right:"initial",transform:"initial",alignSelf:"initial",display:"none",padding:"0"}),this.wrapper.setStyle({padding:"0"})}updateContainerStyles(){const{borderWidth:t,borderRadius:e,borderPadding:i}=this.layoutStyle,{thumbnailBorderColor:n,backgroundColor:o}=this.statusIndicatorSettings,r=t!==this.statusIndicatorSettings.borderWidth?this.statusIndicatorSettings.borderWidth:t;this.container.style.borderWidth=r+"px",this.container.style.borderStyle="solid",this.container.style.borderRadius=e,this.container.style.padding=i+"px";const s=n||o;this.setThumbnailBorderColor(s)}updateLabelStyles(){const t=this.layoutStyle.labelStyle,e=t.position.startsWith("inside"),i=t.position.startsWith("outside");this.label.setStyle({fontFamily:t.font,fontDisplay:"swap",fontSize:a.TextScaleService.scaleFontSize(t.fontSize),lineHeight:a.TextScaleService.scaleLineHeight(t.height+"px")}),this.labelContainer.setStyle({padding:t.padding}),1===this.layoutStyle.lines?this.label.setStyle({display:"block",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:this.layoutStyle.wordBreak,maxWidth:this.clientWidth+"px"}):(this.label.setStyle({textOverflow:"initial",whiteSpace:"initial"}),this.label.style.display="-webkit-box",this.label.style.webkitLineClamp=this.layoutStyle.lines.toString(),this.label.style.webkitBoxOrient="vertical",this.label.style.wordBreak=this.layoutStyle.wordBreak),t.isVisible||(this.label.style.display="none",this.labelBackground.style.display="none"),i&&this.updateOutsideLabelStyles(t),e&&this.updateInsideLabelStyles(t)}updateInsideLabelStyles(t){const{isInside:e,isTop:i,isMiddle:n,isBottom:o,isLeft:r,isRight:s}=(0,u.calculatePosition)(t.position);switch(this.style.gap="0px",this.container.appendChild(this.labelContainer),this.labelContainer.setStyle({position:"absolute",gridRow:"unset",width:"-webkit-fill-available"}),this.labelBackground.setStyle({background:"#000"}),!0){case e&&i:this.labelContainer.setStyle({alignSelf:"start"}),this.labelBackground.style.top="0",this.labelBackground.style.background="linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0))",this.labelBackground.style.background="-webkit-linear-gradient(top, rgba(0,0,0,1), rgba(0,0,0,0))";break;case e&&n:this.labelContainer.setStyle({alignSelf:"center"}
1),this.labelBackground.style.top="33.34%",this.labelBackground.style.background="linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,1), rgba(0,0,0,0))",this.labelBackground.style.background="-webkit-linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,1), rgba(0,0,0,0))";break;case e&&o:this.labelContainer.setStyle({alignSelf:"end"}),this.labelBackground.style.top="66.67%",this.labelBackground.style.background="linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,1))",this.labelBackground.style.background="-webkit-linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,1), rgba(0,0,0,0));"}switch(t.backgroundColor&&(this.labelBackground.style.background=t.backgroundColor),!0){case e&&r:this.label.setStyle({textAlign:t.textAlign||"start"});break;case e&&s:this.label.setStyle({textAlign:t.textAlign||"end"});break;default:this.label.setStyle({textAlign:t.textAlign||"center"})}}updateOutsideLabelStyles(t){const e="outsideBottom"===t.position,i="outsideTop"===t.position;switch(this.appendChild(this.labelContainer),this.labelContainer.setStyle({position:"initial"}),this.labelBackground.setStyle({display:"none"}),this.style.gap=(t.isVisible?t.gap:0)+"px",!0){case e:this.labelContainer.setStyle({gridRow:"2"}),this.setStyle({gridTemplateRows:"min-content min-content",gridTemplateColumns:"initial"}),this.container.setStyle({alignContent:"flex-start"});break;case i:this.labelContainer.setStyle({gridRow:"1"}),this.setStyle({gridTemplateRows:"min-content min-content",gridTemplateColumns:"initial",alignContent:"space-between"}),this.container.setStyle({alignSelf:"flex-end"})}t.textAlign&&this.label.setStyle({textAlign:t.textAlign})}updateThumbnailStyles(){if(this.layoutStyle&&this.thumbnail){const t=(0,u.checkAspectRatios)(this.layoutStyle.itemRatio);"16/9"===t?this.thumbnail.setHeight("-webkit-fill-available"):"9/16"===t&&this.thumbnail.setHeight("100%"),this.thumbnail.setStyle({aspectRatio:this.layoutStyle.itemRatio.toString(),borderRadius:this.layoutStyle.borderRadius})}}updateStatusIndicatorStyle(t){const e="chip"===t?this.statusIndicatorSettings:this.layoutStyle.badgeIndicatorStyle,i="chip"===t?this.layoutStyle.statusIndicatorPosition:this.layoutStyle.badgePosition,n="chip"===t?this.chip:this.badge;if(!e.isVisible)return void(n.style.display="none");"badge"===t&&this.layoutStyle.badgeIndicatorStyle.padding&&(n.style.padding=this.layoutStyle.badgeIndicatorStyle.padding,n.style.zIndex="1");const{isOutside:o,isInside:r,isTop:s,isMiddle:a,isBottom:l,isLeft:d,isRight:c}=(0,u.calculatePosition)(i);let h=0,p=0;if("badge"===t)e.width&&(p=Math.floor(e.width/2)),e.height&&(h=Math.floor(e.height/2));else{const t=(0,u.createChip)(this.statusIndicatorSettings);p=Math.floor(t.width/2),h=Math.floor(t.height/2)}const f="Circle"===this.layoutStyle.thumbnailShape,g=this.statusIndicatorSettings.borderWidth,v="badge"===t?e.borderWidth:this.statusIndicatorSettings.borderWidth;o?this.handleOutsidePosition({isTop:s,isBottom:l,isLeft:d,isRight:c,height:h,width:p,isCircleThumbnail:f,borderWidthElement:v,borderWidthThumbnail:g},n):r&&this.handleInsidePosition({isTop:s,isMiddle:a,isBottom:l,isLeft:d,isRight:c,height:h,isCircleThumbnail:f,borderWidthElement:v,borderWidthThumbnail:g},n),this.applyCommonStyles(t)}handleOutsidePosition(t,e){const{isTop:i,isBottom:n,isLeft:o,isRight:r,height:s,width:a,isCircleThumbnail:l,borderWidthElement:d,borderWidthThumbnail:u}=t;if(i?(e.style.top="-"+s+"px",r||o||(this.wrapper.style.paddingTop=s-u+"px",this.paddingItem.top=s-u+"px")):n&&(e.style.bottom="-"+s+"px",r||o||(this.wrapper.style.paddingBottom=s-u+"px",this.paddingItem.bottom=s-u+"px")),o||r){const t=o?"left":"right",r=n||i,d=l&&r?"0":"-"+a+"px",u=o?"paddingLeft":"paddingRight";e.setStyle({[t]:d,alignSelf:"center"});const c=l&&r?"0":a+"px";if(this.wrapper.setStyle({[u]:c}),this.paddingItem[t]=c,n||i){const t=n?"bottom":"top";e.setStyle({[t]:l?"0":"-"+s+"px"});const i=n?"paddingBottom":"paddingTop";this.wrapper.setStyle({[i]:l?"0":s+"px"}),this.paddingItem[t]=c}}}handleInsidePosition(t,e){const{isTop:i,isMiddle:n,isBottom:o,isLeft:r,isRight:s,isCircleThumbnail:a}=t,l={},d=(0,u.calculatePercentage)(5,this.container),c=(0,u.calculatePercentage)(15,this.container);(i||o)&&(l.top=i?a?n?d:c:"4px":"",l.bottom=o?a?n?d:c:"4px":""),n&&(l.alignSelf="center"),(r||s)&&(l.left=r?a?n?d:c:"4px":"",l.right=s?a?n?d:c:"4px":""),r||s||i||o||(l.textAlign="center"),e.setStyle(l)}
1applyCommonStyles(t){var e,i,n,o;const r="chip"===t?this.statusIndicatorSettings:this.layoutStyle.badgeIndicatorStyle,s="chip"===t?this.chip:this.badge,l={fontSize:a.TextScaleService.scaleFontSize(r.textSize),backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:r.borderWidth+"px",borderRadius:r.borderRadius,color:r.textColor,letterSpacing:r.letterSpacing,fontFamily:r.font,fontDisplay:"swap",padding:r.padding};if("badge"===t&&(l.height=r.height+"px",l.width=r.width+"px"),"none"!==r.backgroundImage&&((new Image).src=r.backgroundImage,l.backgroundImage="url('"+r.backgroundImage+"')",l.backgroundSize="cover",l.backgroundRepeat="no-repeat",l.backgroundPosition="center"),r.positionOffset&&(l.marginLeft=null!==(e=r.positionOffset.left)&&void 0!==e?e:null,l.marginTop=null!==(i=r.positionOffset.top)&&void 0!==i?i:null,l.marginRight=null!==(n=r.positionOffset.right)&&void 0!==n?n:null,l.marginBottom=null!==(o=r.positionOffset.bottom)&&void 0!==o?o:null),"chip"===t){const t=r.thumbnailBorderColor||r.borderColor;this.setThumbnailBorderColor(t)}s.setStyle(l),s.innerText=r.text;const d=0!==s.innerText.length;s.style.display=r.isVisible&&(d||"none"!==r.backgroundImage)?"flex":"none"}setTheme(t){this.layoutStyle=t,this.initializeAndRenderWidget()}initializeAndRenderWidget(){this.initializeWidget(),this.updateLabel(),this.setChipStyle(),this.render()}getPaddingOnContainer(){return this.paddingItem}setPaddingOnContainer(t){this.paddingItem=t,this.wrapper.setStyle({paddingTop:t.top,paddingBottom:t.bottom,paddingLeft:t.left,paddingRight:t.right})}setChipStyle(){var t;const e=null===(t=this.content)||void 0===t?void 0:t.hasViewed;this.isLive?e?(this.statusIndicatorSettings=this.layoutStyle.statusLiveStyle,this.chipType="statusLiveStyle"):(this.statusIndicatorSettings=this.layoutStyle.statusLiveUnreadStyle,this.chipType="statusLiveUnreadStyle"):e?(this.statusIndicatorSettings=this.layoutStyle.statusReadStyle,this.chipType="statusReadStyle"):(this.statusIndicatorSettings=this.layoutStyle.statusUnreadStyle,this.chipType="statusUnreadStyle")}getItemIndex(){var t,e;return Array.from(null!==(e=null===(t=null==this?void 0:this.parentNode)||void 0===t?void 0:t.children)&&void 0!==e?e:[]).indexOf(this)}event(t,e,i){var r,a,l,d,u,c,h,p;if(t==o.WidgetAction.Load||t==o.WidgetAction.Visible){if(this.analyticsCalls[t])return;this.analyticsCalls[t]=!0}try{const o=this.parentRef,f=o.getBoundingClientRect();e.widget_id=o.id,e.widget_name=o.id,e.widget_size=Math.round(null==f?void 0:f.width)+"x"+Math.round(null==f?void 0:f.height),e.widget_type=null===(r=o.widgetType)||void 0===r?void 0:r.call(o),e.widget_content_count=null===(a=null==o?void 0:o.contents)||void 0===a?void 0:a.length,e.widget_content_list=null===(l=null==o?void 0:o.contents)||void 0===l?void 0:l.map(t=>t.id).join(),e.content_id=null===(d=this.content)||void 0===d?void 0:d.id,e.content_index=this.getItemIndex(),e.content_name=null===(u=this.content)||void 0===u?void 0:u.title,e.content_type=this.contentType?this.contentType.charAt(0).toUpperCase()+this.contentType.slice(1):"",e.placement_distance=Math.round((null==f?void 0:f.top)||0).toString(),e.thumbnail_aspect_ratio=null===(c=this.layoutStyle)||void 0===c?void 0:c.itemRatio.toString(),e.thumbnail_type=null===(h=this.layoutStyle)||void 0===h?void 0:h.thumbnailShape,e.thumbnail_size=(null==o?void 0:o.thumbnailWidth)+"x"+(null==o?void 0:o.thumbnailHeight);const g=new n.ReferringEventInfo;g.origin_widget_id=o.id,g.origin_widget_name=o.id,g.origin_widget_type=null===(p=o.widgetType)||void 0===p?void 0:p.call(o),g.labels_expression=o.getAttribute("labels"),document.referrer&&(g.referrer_page_url=document.referrer),s.AnalyticsService.pushWidgetEvent(t,Object.assign({},e),i,g)}catch(t){}}render(){this.updateContainerStyles(),this.updateLabelStyles(),this.updateThumbnailStyles(),this.updateStatusIndicatorStyle("chip"),this.updateStatusIndicatorStyle("badge")}updateAccessibilityInfo(t){this.position=t.position,this.total=t.total,t.contentType&&(this.contentType=t.contentType),this.updateAriaLabel(),this.setupChildElementsAccessibility()}}}
1,5346:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BlazePlayerMenu=e.PLAYER_MENU_ATTRIBUTES=e.PLAYER_MENU_EVENTS=void 0;const r=o(i(2776)),s=i(4403),a=i(8921),l=i(4906),d=i(9266),u=i(277),c=i(8381),h=i(6450);e.PLAYER_MENU_EVENTS={OPEN:"player-menu-open",CLOSE:"player-menu-close",EXPAND:"player-menu-expand",COLLAPSE:"player-menu-collapse"},e.PLAYER_MENU_ATTRIBUTES={OPEN:"open",EXPANDED:"expanded"},e.BlazePlayerMenu=class extends s.BaseWidget{constructor(){super(),this.header=a.WidgetsFactory.create("blaze-div"),this.expander=a.WidgetsFactory.create("blaze-div"),this.backdropContainer=a.WidgetsFactory.create("blaze-div"),this.titleElement=a.WidgetsFactory.create("blaze-typography"),this.closeButton=a.WidgetsFactory.create("blaze-button"),this.menuContainer=a.WidgetsFactory.create("blaze-div"),this.boundPreventScrollBubbling=this.preventScrollBubbling.bind(this),this.boundOnKeyDown=this.onKeyDown.bind(this),this.attachShadow({mode:"open"})}connectedCallback(){this.append(this.backdropContainer),this.append(this.menuContainer),this.setupEventListeners()}disconnectedCallback(){var t;null===(t=this.detachTouchEventListeners)||void 0===t||t.call(this),this.detachEventListeners()}setAttribute(t,e){super.setAttribute(t,e)}setupEventListeners(){this.addEventListener(e.PLAYER_MENU_EVENTS.OPEN,this.onOpenChange),this.addEventListener(e.PLAYER_MENU_EVENTS.CLOSE,this.onOpenChange),this.addEventListener(e.PLAYER_MENU_EVENTS.EXPAND,this.onExpandedChange),this.addEventListener(e.PLAYER_MENU_EVENTS.COLLAPSE,this.onExpandedChange),this.menuContainer.addEventListener("wheel",this.boundPreventScrollBubbling,{passive:!1}),this.menuContainer.addEventListener("touchmove",this.boundPreventScrollBubbling,{passive:!1}),this.menuContainer.addEventListener("keydown",this.boundOnKeyDown)}detachEventListeners(){this.removeEventListener(e.PLAYER_MENU_EVENTS.OPEN,this.onOpenChange),this.removeEventListener(e.PLAYER_MENU_EVENTS.CLOSE,this.onOpenChange),this.removeEventListener(e.PLAYER_MENU_EVENTS.EXPAND,this.onExpandedChange),this.removeEventListener(e.PLAYER_MENU_EVENTS.COLLAPSE,this.onExpandedChange),this.menuContainer.removeEventListener("wheel",this.boundPreventScrollBubbling),this.menuContainer.removeEventListener("touchmove",this.boundPreventScrollBubbling),this.menuContainer.removeEventListener("keydown",this.boundOnKeyDown)}onKeyDown(t){if("true"===this.getAttribute(e.PLAYER_MENU_ATTRIBUTES.OPEN))switch(t.key){case"ArrowDown":t.preventDefault(),this.focusNextOption(1);break;case"ArrowUp":t.preventDefault(),this.focusNextOption(-1)}}focusNextOption(t){var e,i,n;const o=null===(e=this.menuComponent)||void 0===e?void 0:e.querySelectorAll('[tabindex="0"]');if(!o||0===o.length)return;const r=null===(i=this.menuComponent)||void 0===i?void 0:i.querySelector(":focus"),s=Array.from(o);let a=(r?s.indexOf(r):-1)+t;a<0&&(a=s.length-1),a>=s.length&&(a=0),null===(n=s[a])||void 0===n||n.focus()}focusFirstOption(){requestAnimationFrame(()=>{var t;const e=null===(t=this.menuComponent)||void 0===t?void 0:t.querySelector('[tabindex="0"]');null==e||e.focus()})}preventScrollBubbling(t){t.stopPropagation()}init(t){const{component:i,title:n}=t;this.menuOptions=t,this.menuComponent=i,this.titleElement.innerText=n,this.setAttribute(e.PLAYER_MENU_ATTRIBUTES.OPEN,"false"),this.setAttribute(e.PLAYER_MENU_ATTRIBUTES.EXPANDED,"false"),this.onclick=(t=>{t.stopPropagation()}),this.buildHeader(),this.buildBackdrop(),this.buildModal()}buildHeader(){if(this.expander.setStyle({width:"9.5%",height:"4px",backgroundColor:"#404040",borderRadius:"1rem",margin:"0.5rem auto 0.8125rem auto",display:s.deviceDetector.isMobile?"flex":"none"}),this.titleElement.setStyle({fontFamily:l.Presets.playerFont,color:s.deviceDetector.isMobile?l.Colors.White:"#bababa",fontSize:s.deviceDetector.isMobile?"1rem":"0.75rem",fontWeight:s.deviceDetector.isMobile?"600":"400"}),this.header.setStyle({width:"100%",position:"relative",display:"flex",flexDirection:"column",justifyContent:s.deviceDetector.isMobile?"flex-start":"center",alignItems:s.deviceDetector.isMobile?"center":"flex-start",height:(s.deviceDetector.isMobile?72:56)+"px",padding:"0 1rem",boxSizing:"border-box"}),this.closeButton.setStyle({position:"absolute",right:"1.5rem",top:"1.5rem",cursor:"pointer",display:s.deviceDetector.isMobile?"block":"none"}),this.closeButton.setIconUrl(u.closeIconSvg),this.closeButton.setAriaLabel("Close closed captions menu"),this.closeButton.setAttribute("tabindex","0"),this.closeButton.onclick=(()=>{this.collapse(),this.close()}),s.deviceDetector.isMobile){let t=0,e=0;const i=e=>{t=e.touches[0].clientY},n=t=>{e=t.touches[0].clientY},o=()=>{const i=t-e;i>50?this.expand():i<-50&&this.collapse()};s.deviceDetector.isMobile&&(this.header.addEventListener("touchstart",i),this.header.addEventListener("touchmove",n),this.header.addEventListener("touchend",o),this.detachTouchEventListeners=(()=>{this.header.removeEventListener("touchstart",i),this.header.removeEventListener("touchmove",n),this.header.removeEventListener("touchend",o)}))}this.header.append(this.closeButton),this.header.append(this.expander),this.header.append(this.titleElement)}buildBackdrop(){this.backdropContainer.onclick=this.onBackdropClick.bind(this),this.backdropContainer.setStyle({display:"none",position:"absolute",backgroundColor:"#131313",opacity:".5",top:"0",bottom:"0",left:"0",right:"0",zIndex:h.Z_INDEX.menuBackdrop,borderRadius:"desktop"===s.deviceDetector.platform||"tablet"===s.deviceDetector.platform?"20px":"0"})}buildModal(){var t,e;
1this.menuContainer.id="blaze-player-menu-container";const i=document.createElement("style");i.textContent=c.CUSTOM_SCROLLBAR_TEMPLATE,null===(t=this.shadowRoot)||void 0===t||t.appendChild(i);const n=document.createElement("slot");null===(e=this.shadowRoot)||void 0===e||e.appendChild(n),(0,d.mergeStyles)(this.menuComponent,{borderRadius:"0 0 .5rem .5rem",height:"calc(100% - "+(s.deviceDetector.isDesktop?56:72)+"px)"}),this.menuContainer.setStyle({display:"none",position:"absolute",backgroundColor:"#282828",bottom:s.deviceDetector.isMobile?"-100%":"auto",top:s.deviceDetector.isMobile?"auto":"50%",transform:s.deviceDetector.isMobile?"none":"translateY(-50%)",maxWidth:"360px",left:"1rem",right:"1rem",margin:s.deviceDetector.isMobile?"4.2rem auto 1.5rem auto":"0 auto",borderRadius:".5rem",boxShadow:"0 -8px 10px 2px rgba(0, 0, 0, 0.35)",zIndex:h.Z_INDEX.menu}),this.menuContainer.append(this.header),this.menuContainer.append(this.menuComponent)}open(){this.dispatchEvent(new CustomEvent(e.PLAYER_MENU_EVENTS.OPEN,{bubbles:!0,composed:!0,detail:{open:!0}}))}close(){this.dispatchEvent(new CustomEvent(e.PLAYER_MENU_EVENTS.CLOSE,{bubbles:!0,composed:!0,detail:{open:!1}}))}expand(){this.dispatchEvent(new CustomEvent(e.PLAYER_MENU_EVENTS.EXPAND,{bubbles:!0,composed:!0,detail:{expanded:!0}}))}collapse(){this.dispatchEvent(new CustomEvent(e.PLAYER_MENU_EVENTS.COLLAPSE,{bubbles:!0,composed:!0,detail:{expanded:!1}}))}onBackdropClick(){this.close()}onOpenChange(t){return n(this,void 0,void 0,function*(){t.detail.open?(this.setAttribute(e.PLAYER_MENU_ATTRIBUTES.OPEN,"true"),this.backdropContainer.setStyle({display:"block"}),this.menuContainer.setStyle({display:"block"}),s.deviceDetector.isMobile&&(yield this.animateMenu(this.menuOptions)),this.focusFirstOption()):(this.setAttribute(e.PLAYER_MENU_ATTRIBUTES.OPEN,"false"),s.deviceDetector.isMobile&&(yield this.animateMenu(this.menuOptions)),this.backdropContainer.setStyle({display:"none"}),this.menuContainer.setStyle({display:"none"}))})}onExpandedChange(t){return n(this,void 0,void 0,function*(){this.setAttribute(e.PLAYER_MENU_ATTRIBUTES.EXPANDED,t.detail.expanded.toString()),yield this.animateMenu(this.menuOptions)})}animateMenu(t){return n(this,void 0,void 0,function*(){return new Promise(i=>{const n=this.querySelector("#blaze-player-menu-container");if(!n)return;const o=(null==t?void 0:t.component.offsetHeight)||0;let s={targets:n,duration:200,easing:"easeInQuad",complete:()=>i(),bottom:!0===this.getAttribute(e.PLAYER_MENU_ATTRIBUTES.OPEN)?"0":"-100%",height:!0===this.getAttribute(e.PLAYER_MENU_ATTRIBUTES.EXPANDED)?window.innerHeight-56+"px":o+72+"px"};(0,r.default)(s)})})}}},5417:function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(8370),e),o(i(9090),e),o(i(6576),e),o(i(7525),e)},5486:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.URLManager=e.URL_PARAMS=void 0;const o=i(6450),r=i(4545),s=i(9266);e.URL_PARAMS={SESSION_ID:"wsc_session_id",USER_ID:"wsc_user_id",EXCLUDE_CONTENT_ID:"wsc_exclude_content_id"};class a{static resetLocationAfterContentClose(){const t=this.getHashMatch(),e=this.getHash();if(t)if(e)location.hash=e;else{const t=""+location.origin+location.pathname+location.search;history.replaceState(window.history.state,document.title,""+t)}}static get shouldModifyUrlWithId(){return r.ConfigService.shouldModifyUrlWithStoryId||r.ConfigService.shouldModifyUrlWithContentId}static resetLocation(){if(!this.shouldModifyUrlWithId)return;const t=""+location.origin+location.pathname+location.search;history.replaceState(window.history.state,document.title,""+t)}static updateLocationContentHash(t){const{contentType:e="",contentId:i="",isAd:n=!1,pageId:o}=t;if("SingleContent"===r.VideoPlayerService.playReference)return;if(!r.ConfigService.shouldModifyUrlWithStoryId||!r.ConfigService.shouldModifyUrlWithContentId)return;if(n)return;this.isUpdateLocationByScript=!0;const s=this.getHashMatch(),a=this.getHash(),l=i&&e?this.buildContentHash(e,i,{pageId:o}):"";l&&i&&!s&&e?this.updateContentInHash(l):!i&&s?a?location.hash=a:this.resetLocation():l&&i&&s&&e&&(location.hash=(null==a?void 0:a.length)>1?a+"&"+l:l),this.isUpdateLocationByScript=!1}static buildContentHash(t,e,i){if(!t||!e)return"";const{pageId:n}=i||{};return"story"===t?"blaze/"+t+"/"+e+(n?"/page/"+n:""):"blaze/"+t+"/"+e}static getHashMatch(){return s.RegexStoryHash.test(document.location.hash)||s.RegexMomentHash.test(document.location.hash)||s.RegexVideoHash.test(document.location.hash)}static getHash(){return document.location.hash.replace(s.RegexStoryHash,"").replace(s.RegexMomentHash,"").replace(s.RegexVideoHash,"")}static updateContentInHash(t){t&&(location.hash=location.hash?location.hash+"&"+t:t)}static buildShareUrl(t,e,i){const n=this.buildContentHash(t,e,{pageId:i});if(!n)return window.location.href;const o=new URL(window.location.href),r=o.hash.replace(s.RegexStoryHash,"").replace(s.RegexMomentHash,"").replace(s.RegexVideoHash,"").replace(/^#/,"");return o.hash=r?r+"&"+n:n,o.toString()}static appendUrlForPrefetch(t,e=o.ONE_SECOND){t&&(document.head.querySelector('link[rel="prefetch"][href="'+t+'"]')||setTimeout(()=>{const e=document.createElement("link");e.rel="prefetch",e.href=t,document.head.appendChild(e)},e))}static navigateToLink(t){window.location.href=t}static removeUrlParamFromSearchParams(t,e){return e.delete(t),e}static removeStringParamsFromCurrentUrl(t){const e=new URL(window.location.href),i=new URLSearchParams(e.search);"string"==typeof t?i.delete(t):t.forEach(t=>i.delete(t)),e.search=i.toString(),window.history.replaceState(window.history.state,"",e.toString())}static updateParamInUrl(t,e){if(window.location.search.includes(t)){const i=new URLSearchParams(window.location.search);i.set(t,e),this.updateCurrentUrlWithParams(i)}}static updateCurrentUrlWithParams(t){window.history.replaceState(window.history.state,"",window.location.href.split("?")[0]+"?"+t.toString())}static navigateTo(t){return n(this,void 0,void 0,function*(){if("AUTO_ADVANCE"===t){const t=new URLSearchParams({[e.URL_PARAMS.SESSION_ID]:r.UserService.sessionId,[e.URL_PARAMS.USER_ID]:r.UserService.userId,[e.URL_PARAMS.EXCLUDE_CONTENT_ID]:r.VideoPlayerService.currentlyPlayedContentId});if(!r.ConfigService.autoAdvanceUrl)return;const i=new URL(r.ConfigService.autoAdvanceUrl);i.search=t.toString();const n=i.toString();r.ConfigService.staticContentType&&t.delete(e.URL_PARAMS.EXCLUDE_CONTENT_ID),this.updateCurrentUrlWithParams(t),this.navigateToLink(n)}})}}e.URLManager=a,a.isUpdateLocationByScript=!1,a.isBackWasCalled=!1,a.isAutoAdvancingEnabled=!1},5495:(t,e)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.FollowingsManager=void 0;class i{static isFollowing(t){return this.followedEntities.has(t)}static initialize(t){this.followedEntities=new Set(t)}static follow(t){this.followedEntities.add(t)}static unfollow(t){this.followedEntities.delete(t)}}e.FollowingsManager=i,i.followedEntities=new Set},5538:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetVideoBase=void 0,e.BlazeWidgetVideoBase=class extends HTMLElement{constructor(){super(),this._lastProgress=0}setData(t){this.data=t}loadPoster(){throw new Error("Method not implemented.")}play(){throw new Error("unimplemented")}restartVideo(){this.currentTime=0,this.paused&&(this.load("direct"),this.play())}pause(){throw new Error("unimplemented")}get paused(){throw new Error("unimplemented")}get currentTime(){throw new Error("unimplemented")}set currentTime(t){throw new Error("unimplemented")}get muted(){throw new Error("unimplemented")}get isAd(){return this._isAd}set isAd(t){this._isAd=t}removeLoader(){throw new Error("Method not implemented.")}load(t){}unload(){}display(t){}hide(){}set muted(t){throw new Error("unimplemented")}get duration(){throw new Error("unimplemented")}get progress(){let t=0;const e=this.duration,i=this.currentTime;return t=e&&i?i/e:NaN,Number.isFinite(t)&&!Number.isNaN(t)?(t>1?t=1:t<0&&(t=0),this._lastProgress=t,t):this._lastProgress||0}mainElement(){throw new Error("unimplemented")}requestFrameCallback(t){throw new Error("unimplemented")}connectedCallback(){throw new Error("unimplemented")}disconnectedCallback(){throw new Error("unimplemented")}render(){throw new Error("unimplemented")}startEnter(){}endEnter(){}endExit(){}}},5566:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},5573:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FOLLOW_BUTTON_STATE_CHANGE=void 0,e.FOLLOW_BUTTON_STATE_CHANGE="follow-button-state-change"},5686:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Colors=void 0,e.Colors={DarkPrimary:"#0D0F14",DarkSecondary:"#232935",DarkTertiary:"#929CB3",LightPrimary:"#F8F9FB",LightSeconday:"#DFE1E4",Accent:"#5AA3FF",LiveChip:"#FF364E",ReadGray:"#9C9C9C",TimeColor:"#B6B7B8",White:"#FFFFFF",Black:"#000000",Gray:"#B6B7B8",Yellow:"#FFD325"}},5785:function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(1091),e),o(i(5207),e),o(i(8639),e),o(i(1430),e),o(i(9696),e),o(i(8672),e),o(i(3166),e),o(i(9114),e),o(i(6656),e),o(i(5346),e)},5891:t=>{var e={"":!0,up:!0};function i(t){return"number"==typeof t&&t>=0&&t<=100}t.exports=function(){var t=100,n=3,o=0,r=100,s=0,a=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!i(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return n},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");n=t}},regionAnchorY:{enumerable:!0,get:function(){return r},set:function(t){if(!i(t))throw new Error("RegionAnchorX must be between 0 and 100.");r=t}},regionAnchorX:{enumerable:!0,get:function(){return o},set:function(t){if(!i(t))throw new Error("RegionAnchorY must be between 0 and 100.");o=t}},viewportAnchorY:{enumerable:!0,get:function(){return a}
1,set:function(t){if(!i(t))throw new Error("ViewportAnchorY must be between 0 and 100.");a=t}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(t){if(!i(t))throw new Error("ViewportAnchorX must be between 0 and 100.");s=t}},scroll:{enumerable:!0,get:function(){return l},set:function(t){var i,n="string"==typeof(i=t)&&!!e[i.toLowerCase()]&&i.toLowerCase();!1===n||(l=n)}}})}},5923:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.throttle=function(t,e){let i=!1;return function(...r){return n(this,void 0,void 0,function*(){i||(t(...r),i=!0,yield(0,o.delay)(e),i=!1)})}};const o=i(9266)},5925:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},5929:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Stopwatch=void 0,e.Stopwatch=class{constructor(){this.isRunning=!1,this.extraTime=0,this.startTime=0}start(){this.isRunning||(this.isRunning=!0,this.startTime=Date.now())}pause(){this.isRunning&&(this.isRunning=!1,this.extraTime+=Date.now()-this.startTime)}durationMS(){return this.isRunning?Date.now()-this.startTime+this.extraTime:this.extraTime}reset(){this.isRunning=!1,this.extraTime=0,this.startTime=0}}},5943:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.UserService=void 0;const o=i(4545),r=i(4403),s=i(9965),a=i(9266),l=i(6450),d="accessToken",u="refreshToken",c="userId";e.UserService=class extends((0,r.Singleton)()){constructor(){super(),this._userId="",this._sessionId="",this._abTest=null,o.EventBusService.subscribe("BlazeDatabaseServiceOpen",this.onBlazeDatabaseServiceOpen.bind(this)),o.EventBusService.subscribe("BlazeDatabaseServiceFailed",this.onBlazeDatabaseServiceFailed.bind(this))}get userId(){return this._userId}get sessionId(){return this._sessionId}get abTest(){return this._abTest}set abTest(t){this._abTest=t}init(){return n(this,void 0,void 0,function*(){this._sessionId=(0,a.getRandomId)(),o.ConfigService.shouldCreateUser&&(yield this.makeSureCurrentExternalUserTokenExists());const t=new URLSearchParams(window.location.search).get(r.URL_PARAMS.SESSION_ID);t&&(this._sessionId=t,r.URLManager.removeStringParamsFromCurrentUrl(r.URL_PARAMS.SESSION_ID))})}assignUserId(){return n(this,void 0,void 0,function*(){this._userId=yield this.getUserId()})}onBlazeDatabaseServiceOpen(){return n(this,void 0,void 0,function*(){try{yield this.assignUserId()}catch(t){}})}onBlazeDatabaseServiceFailed(){this._userId||(this._userId=(0,a.getRandomId)())}getUserId(){return n(this,void 0,void 0,function*(){if(this.userId)return this.userId;let t=yield this.fetchUserIdFromDatabase();return t||(t=yield this.handleMissingUserId()),yield o.DatabaseService.updateUserId(t),r.URLManager.removeStringParamsFromCurrentUrl(r.URL_PARAMS.USER_ID),t})}fetchUserIdFromDatabase(){return n(this,void 0,void 0,function*(){try{const t=(yield o.DatabaseService.getUserId()).data;return t?t.value:null}catch(t){return null}})}handleMissingUserId(){return n(this,void 0,void 0,function*(){return new URLSearchParams(window.location.search).get(r.URL_PARAMS.USER_ID)||(0,a.getRandomId)()})}makeSureCurrentExternalUserTokenExists(){return n(this,void 0,void 0,function*(){const t=this.getUserTokenDataFromStorage(),e=this.getStorageItem("externalId"),i=o.ConfigService.externalUserId;t&&e===i||(yield this.getAndStoreNewUserToken())})}getAndStoreNewUserToken(){return n(this,void 0,void 0,function*(){const t={externalId:o.ConfigService.externalUserId},{data:e,error:i,httpStatus:n}=yield o.ApiService.getUserToken(t);!i&&n===s.HttpStatus.Ok&&e&&this.storeUserTokenData(e,t.externalId)})}refreshUserToken(){return n(this,void 0,void 0,function*(){const t=this.getUserTokenDataFromStorage();let e=!1;if(t){const i={externalId:o.ConfigService.externalUserId,tokenData:t};let n=0;for(;!e&&n<3;){const{data:t,error:r,httpStatus:l}=yield o.ApiService.refreshUserToken(i);!r&&l===s.HttpStatus.Ok&&t?(this.storeUserTokenData(t,i.externalId),e=!0):(yield(0,a.delay)(200),n++)}}e||(yield this.getAndStoreNewUserToken())})}storeUserTokenData(t,e){this.setStorageItem(d,t.accessToken),this.setStorageItem(u,t.refreshToken),this.setStorageItem(c,t.userId),this.setStorageItem("externalId",e)}getUserTokenDataFromStorage(){const t=this.getStorageItem(d),e=this.getStorageItem(u),i=this.getStorageItem(c);if(t&&e&&i)return{accessToken:t,refreshToken:e,userId:i}}setStorageItem(t,e){const i=l.WSC_STORAGE_PREFIX+t;e?localStorage.setItem(i,e):localStorage.removeItem(i)}getStorageItem(t){return localStorage.getItem(l.WSC_STORAGE_PREFIX+t)}}.getInstance()},5990:(t,e)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.WSC_STORAGE_PREFIX=void 0,e.WSC_STORAGE_PREFIX="wsc_ias_"},6025:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeVideoElement=void 0;const o=i(1908),r=i(4403),s=i(6450),a=i(9965),l=i(8921),d=i(4545),u=i(4906),c=i(9266),h=i(9126);e.BlazeVideoElement=class extends h.BlazeWidgetVideoBase{constructor(t=d.VideoPlayerService){super(),this.videoPlayerState=t,this.shadow=this.attachShadow({mode:"open"}),this.video=document.createElement("video"),this.captionsElement=l.WidgetsFactory.create("blaze-widget-captions"),this.shareModal=l.WidgetsFactory.create("blaze-widget-share-modal"),this.widgetVastAd=new h.BlazeWidgetVastAd("video",this.getRefferingObject.bind(this)),this.adPercentageShownPlaces=new Map,this.adIndex=0,this.forceSkipPreroll=!1,this.lastSavedTime=0,this.shouldSaveAfterSeek=!1,this.inactivityEvents=["mousemove","keydown","scroll","touchstart"],this.contentType="video",this.data={},this.isActionBlocked=!1,this.isInitializing=!1,this.isLoaded=!1,this.isPausedManually=!1,this.videoSessionId=(0,c.getRandomId)(),this.startTrigger="",this.exitTrigger="",this.navigationType="",this.boundHandleLoaderDisplay=this.handleLoaderDisplay.bind(this),this.boundHandleLoaderHide=this.handleLoaderHide.bind(this),this.boundHandleTimeUpdate=this.handleVideoTimeUpdate.bind(this),this.boundHandleLoadedMetadata=this.handleLoadedMetadata.bind(this),this.boundHandleVideoEnded=this.handleVideoEnded.bind(this),this.boundHandleSeekDebounce=(0,r.debounce)(this.handleSeekRequest.bind(this),1e3),this.boundHandleMouseIn=this.handleMouseIn.bind(this),this.boundHandleMouseOut=this.handleMouseOut.bind(this),this.boundHandleMouseMove=this.handleMouseMove.bind(this),this.boundHandleOverlayEvents=this.handleOverlayEvents.bind(this),this.boundHandleAdStarted=this.handleAdStarted.bind(this),this.boundHandleAdEnded=this.handleAdEnded.bind(this),this.boundHandleLanguageChange=this.handleLanguageChange.bind(this),this.startOverlayAutoHideTimer=(()=>{this.clearOverlayTimer(),this.inactivityTimeout=setTimeout(()=>{this.hidePlayerOverlay()},5e3)}),r.deviceDetector.isMobile||r.deviceDetector.isTablet?this.boundHandleClick=(0,r.debounce)(this.handleClick.bind(this),250):this.boundHandleClick=this.handleClick.bind(this)}connectedCallback(){this.initialize(),this.setupEventListeners()}disconnectedCallback(){this.destroy()}attributeChangedCallback(t,e,i){e!==i&&this.applyAttribute(t,i)}setTheme(t){var e;this.playerStyle=t,null===(e=this.videoOverlay)||void 0===e||e.setTheme(t)}setWidgetItemParent(t){this.widgetParentItem=t}setData(t){this.data=t,this.adPercentageShownPlaces.clear()}setModal(t){this.modal=t}setEmbeddedRef(t){this.embeddedRef=t}setIsPlaying(t){this.videoOverlay.videoNavigationOverlay.setPlaying(t)}load(){return n(this,void 0,void 0,function*(){var t;if(this.isLoaded)return;this.isLoaded=!0,this.isActionBlocked=!0,this.videoOverlay.setMuteState(this.videoPlayerState.isMuted);const{title:e,id:i}=this.data;this.title=e,this.videoId=i;const[n,o]=yield Promise.all([d.VideoService.getVideoDataById(i),d.LikeService.isVideoLiked(i),this.setupClosedCaptions()]),s=(null==n?void 0:n.posterCurrentTime)||this.data.poster.rendition.url;this.video.poster=s,r.deviceDetector.isIOSMobileTabletSafari()&&(null===(t=this.posterOverlayElement)||void 0===t||t.setStyle({backgroundImage:"url("+s+")"})),this.isLiked=o,this.lastSavedTime=(null==n?void 0:n.currentTime)||0,this.data.cta&&this.setCta(this.data.cta),this.playbackStrategy.initialize({overlay:this.videoOverlay});const{url:a,bitRate:l,aspectRatio:u}=this.data.baseLayer.content.renditions[0];this.aspectRatio=u,this.playbackStrategy.loadSource(a,l,this.lastSavedTime)})}setupClosedCaptions(){return n(this,void 0,void 0,function*(){var t,e;const i=null===(t=this.data.closedCaptions)||void 0===t?void 0:t.find(t=>""+t.language===localStorage.getItem(s.LOCAL_STORAGE_KEY_LAST_SELECTED));this.videoOverlay.setClosedCaptionState((null===(e=this.data.closedCaptions)||void 0===e?void 0:e.length)?"enabled":"disabled"),this.videoOverlay.updateClosedCaptionButtonIcon(!!i),i&&(yield this.setClosedCaptions(i.files))})}setClosedCaptions(t){return n(this,void 0,void 0,function*(){var e,i;this.captionsElement.setAttribute("is-visible",t&&t.length?"true":"false"),"Content"===(null===(e=this.data)||void 0===e?void 0:e.type)&&(this.captionsElement.isConnected||null===(i=this.shadowRoot)||void 0===i||i.append(this.captionsElement),yield this.captionsElement.initialize(this.video,t))})}setCta(t){var e,i;!1!==(null===(i=null===(e=this.playerStyle)||void 0===e?void 0:e.cta)||void 0===i?void 0:i.isVisible)?this.videoOverlay.setCta(t):this.videoOverlay.removeCta()}setTitle(t){this.videoOverlay.setAttribute("video-title",t)}setLiked(t){this.videoOverlay.setLikedState(t)}setVideoId(t){this.video.setAttribute("data-video-id",t)}createSnapshot(){return n(this,void 0,void 0,function*(){yield new Promise(t=>setTimeout(t,100));const t=document.createElement("canvas"),e=this.video.videoWidth,i=this.video.videoHeight;t.width=e,t.height=i;const n=t.getContext("2d");let o="",r=0;return n&&(r=this.video.currentTime,n.drawImage(this.video,0,0,e,i),o=0===t.toDataURL("image/webp").indexOf("data:image/webp")?t.toDataURL("image/webp",.5):t.toDataURL("image/jpeg",.5)),{currentTime:r,snapshotDataUrl:o}})}unload(){var t;this.isLoaded&&(this.isLoaded=!1,this.videoOverlay.removeCta(),this.videoOverlay.videoSeekBar.reset(),this.videoOverlay.videoTimer.resetTimer(),this.playbackStrategy.unload(),r.deviceDetector.isIOSMobileTabletSafari()&&(null===(t=this.posterOverlayElement)||void 0===t||t.setStyle({backgroundImage:""})),this.lastMarkedVideoIdAsViewed=void 0)}initialize(){var t;this.isInitializing||(this.isInitializing=!0,this.playbackStrategy=o.PlaybackStrategyFactory.createStrategy(this.video,"LONG_FORM_HLS",void 0,this.videoPlayerState),this.playerCommands=new o.VideoPlayerCommands(this.playbackStrategy,this),this.videoOverlay=new o.BlazeLongFormControlsOverlay(this),this.videoOverlay.setTheme(this.playerStyle),this.videoOverlay.videoTimer.resetTimer(),this.videoOverlay.videoSeekBar.onPause=(0,r.debounce)(()=>{this.pause()},100),this.videoOverlay.videoSeekBar.onResume=(()=>n(this,void 0,void 0,function*(){yield this.play()})),this.setAttribute("mute",this.videoPlayerState.isMuted?"true":"false"),this.videoOverlay.setMuteState(this.videoPlayerState.isMuted),this.captionsElement.setAttribute("hidden","true"),this.setupStyles(),this.setupVideoElement(),this.setupOverlay(),this.setupShareModal(),d.ConfigService.shouldAllowClosedCaptions&&this.configureClosedCaptionsModal(),r.deviceDetector.isIOSMobileTabletSafari()&&this.createPosterOverlay(),null===(t=this.shadowRoot)||void 0===t||t.appendChild(this.widgetVastAd))}setupStyles(){const t=document.createElement("style");t.textContent="\n      :host {\n        display: block;\n        width: 100%;\n        height: 100%;\n        overflow: hidden;\n        min-height: 100%;\n      }\n      video {\n        width: 100%;\n        height: 100%;\n        display: block;\n      }\n    ",this.shadow.appendChild(t)}setupVideoElement(){this.video.setAttribute("preload","none"),this.video.setAttribute("playsinline","true"),this.video.setAttribute("webkit-playsinline","true"),this.video.controls=!1,this.shadow.appendChild(this.video)}setupOverlay(){this.shadow.appendChild(this.videoOverlay)}setupShareModal(){this.shareModal.setStyle({zIndex:"5",display:"block",position:"relative",pointerEvents:"auto"}),this.shareModal.onOpen=(()=>{this.pause()}),this.shadow.appendChild(this.shareModal)}configureClosedCaptionsModal(){this.closedCaptionsModal=new h.BlazeWidgetClosedCaptionsModal(this.data.closedCaptions,"video"),this.closedCaptionsModal.onClose=(()=>{this.isPausedManually||(this.videoPlayerState.isPlaying=!0,this.setIsPlaying(!0),this.play())}),this.closedCaptionsModal.onOpen=(()=>{this.videoPlayerState.isPlaying&&(this.videoPlayerState.isPlaying=!1,this.setIsPlaying(!1),this.pause())}),this.closedCaptionsModal.onClosedCaptionsEnable=(t=>{this.toggleClosedCaptions(t)}),this.closedCaptionsModal.onClosedCaptionsDisable=(()=>{this.toggleClosedCaptions()}),this.shadow.appendChild(this.closedCaptionsModal)}toggleClosedCaptions(t){var e,i;this.setClosedCaptions((null===(i=null===(e=this.data.closedCaptions)||void 0===e?void 0:e.find(e=>""+e.language===t))||void 0===i?void 0:i.files)||[]);const n=(0,c.convertCcLanguageToState)(this.data.closedCaptions,t);this.event("Off"!==n?s.VideoAction.ClosedCaptionsOn:s.VideoAction.ClosedCaptionsOff,{})}setupEventListeners(){this.video.addEventListener(o.EVENTS.TIMEUPDATE,this.boundHandleTimeUpdate),this.video.addEventListener(o.EVENTS.LOADED_METADATA,this.boundHandleLoadedMetadata),this.video.addEventListener(o.EVENTS.ENDED,this.boundHandleVideoEnded),document.addEventListener(o.VIDEO_EVENTS.LOADER_DISPLAY,this.boundHandleLoaderDisplay),document.addEventListener(o.VIDEO_EVENTS.LOADER_HIDE,this.boundHandleLoaderHide),Object.values(o.VIDEO_EVENTS).forEac
1h(t=>{this.videoOverlay.addEventListener(t,this.boundHandleOverlayEvents)}),r.deviceDetector.isDesktop&&(this.addEventListener(o.EVENTS.MOUSEENTER,this.boundHandleMouseIn),this.addEventListener(o.EVENTS.MOUSELEAVE,this.boundHandleMouseOut),this.addEventListener(o.EVENTS.MOUSEMOVE,this.boundHandleMouseMove)),this.addEventListener(o.EVENTS.CLICK,this.boundHandleClick),this.addEventListener(a.InternalEvent.AD_STARTED,this.boundHandleAdStarted),this.addEventListener(a.InternalEvent.AD_ENDED,this.boundHandleAdEnded),c.SharedEventTarget.addEventListener(s.CLOSED_CAPTIONS_LANGUAGE_CHANGE,this.boundHandleLanguageChange),this.inactivityEvents.forEach(t=>{document.addEventListener(t,this.startOverlayAutoHideTimer)})}destroy(){this.playbackStrategy.destroy(),this.video.removeEventListener(o.EVENTS.TIMEUPDATE,this.boundHandleTimeUpdate),this.video.removeEventListener(o.EVENTS.LOADED_METADATA,this.boundHandleLoadedMetadata),this.video.removeEventListener(o.EVENTS.ENDED,this.boundHandleVideoEnded),document.removeEventListener(o.VIDEO_EVENTS.LOADER_DISPLAY,this.boundHandleLoaderDisplay),document.removeEventListener(o.VIDEO_EVENTS.LOADER_HIDE,this.boundHandleLoaderHide),Object.values(o.VIDEO_EVENTS).forEach(t=>{this.videoOverlay.removeEventListener(t,this.boundHandleOverlayEvents)}),r.deviceDetector.isDesktop&&(this.removeEventListener(o.EVENTS.MOUSEENTER,this.boundHandleMouseIn),this.removeEventListener(o.EVENTS.MOUSELEAVE,this.boundHandleMouseOut),this.removeEventListener(o.EVENTS.MOUSEMOVE,this.boundHandleMouseMove)),this.removeEventListener(o.EVENTS.CLICK,this.boundHandleClick),this.removeEventListener(a.InternalEvent.AD_STARTED,this.boundHandleAdStarted),this.removeEventListener(a.InternalEvent.AD_ENDED,this.boundHandleAdEnded),c.SharedEventTarget.removeEventListener(s.CLOSED_CAPTIONS_LANGUAGE_CHANGE,this.boundHandleLanguageChange),this.inactivityEvents.forEach(t=>{document.removeEventListener(t,this.startOverlayAutoHideTimer)}),this.clearOverlayTimer()}clearOverlayTimer(){this.inactivityTimeout&&(clearTimeout(this.inactivityTimeout),this.inactivityTimeout=void 0)}handleMouseIn(){this.clearOverlayTimer(),this.showPlayerOverlay()}handleMouseOut(){this.startOverlayAutoHideTimer()}handleMouseMove(){this.clearOverlayTimer(),this.showPlayerOverlay(),this.startOverlayAutoHideTimer()}handleClick(t){var e,i;if(d.VideoPlayerService.isSeekBarDragging||this.isActionBlocked)return;(null===(e=this.shareModal)||void 0===e?void 0:e.isOpen)&&(null===(i=this.shareModal)||void 0===i||i.close());const n="true"===this.videoOverlay.getAttribute("hidden");if(this.video.paused){if(r.deviceDetector.isMobile||r.deviceDetector.isTablet)return void(n?this.showPlayerOverlay():this.hidePlayerOverlay(!0));this.play(),this.isPausedManually=!1,this.showPlayerOverlay(),this.event(s.VideoAction.PlaybackPlay,{video_end_trigger:"user_play"})}else{if(r.deviceDetector.isMobile||r.deviceDetector.isTablet)return void(n?this.showPlayerOverlay():this.hidePlayerOverlay(!0));this.pause(),this.isPausedManually=!0,this.showPlayerOverlay(),this.event(s.VideoAction.PlaybackPause,{video_end_trigger:"user_pause"})}this.videoOverlay.videoNavigationOverlay.setPlaying(!this.video.paused)}showPlayerOverlay(){this.videoOverlay.setAttribute("hidden","false")}hidePlayerOverlay(t){t?this.videoOverlay.setAttribute("hidden","true"):this.video.paused||d.VideoPlayerService.isSeekBarDragging||this.video.readyState<2||!navigator.onLine?this.startOverlayAutoHideTimer():this.videoOverlay.setAttribute("hidden","true")}createPosterOverlay(){var t,e,i,n;!this.posterOverlayElement&&(null===(i=null===(e=null===(t=this.data)||void 0===t?void 0:t.poster)||void 0===e?void 0:e.rendition)||void 0===i?void 0:i.url)&&(this.posterOverlayElement=l.WidgetsFactory.create("blaze-image"),this.posterOverlayElement.setStyle({position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:"2",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"}),null===(n=this.shadowRoot)||void 0===n||n.appendChild(this.posterOverlayElement),this.updatePosterOverlay())}updatePosterOverlay(){var t,e,i;if(!this.posterOverlayElement||!(null===(i=null===(e=null===(t=this.data)||void 0===t?void 0:t.poster)||void 0===e?void 0:e.rendition)||void 0===i?void 0:i.url))return;let n=16/9;this.video.videoWidth&&this.video.videoHeight&&(n=this.video.videoWidth/this.video.videoHeight);const o=n<1;this.posterOverlayElement.setStyle({backgroundImage:"url("+this.data.poster.rendition.url+")",backgroundSize:"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundColor:o?"#000000":"transparent"})}handleVideoEnded(){return n(this,void 0,void 0,function*(){this.event(s.
1VideoAction.VideoEnd,{}),this.navigationType="Automatic",this.exitTrigger="Video End";try{yield d.VideoService.updateVideoDataById(this.videoId,{posterCurrentTime:this.data.poster.rendition.url,currentTime:0})}catch(t){}this.dispatchEvent(new CustomEvent(o.VIDEO_EVENTS.NAVIGATION_NEXT,{bubbles:!0,composed:!0})),this.showPlayerOverlay(),this.startOverlayAutoHideTimer()})}showLoaderWithDelay(){this.loaderTimeoutId&&clearTimeout(this.loaderTimeoutId),this.loaderTimeoutId=setTimeout(()=>{this.handleLoaderDisplay()},1e3)}hideLoader(){this.loaderTimeoutId&&(clearTimeout(this.loaderTimeoutId),this.loaderTimeoutId=void 0),this.handleLoaderHide()}handleLoaderDisplay(){!this.video.paused&&this.video.readyState>=3||this.videoOverlay.showLoader()}handleLoaderHide(){this.videoOverlay.hideLoader()}handleOverlayEvents(t){var e,i;switch(t.type){case o.VIDEO_EVENTS.MUTE:this.playerCommands.executeCommand("mute"),this.startOverlayAutoHideTimer(),this.event(s.VideoAction.Audio,{});break;case o.VIDEO_EVENTS.UNMUTE:this.playerCommands.executeCommand("unmute"),this.startOverlayAutoHideTimer(),this.event(s.VideoAction.Audio,{});break;case o.VIDEO_EVENTS.SEEK:const{seekTime:n,type:r}=t.detail;this.handleSeek(n,r);break;case o.VIDEO_EVENTS.DISPLAY_SEEKED_TIME:const{seekTime:a}=t.detail;this.videoOverlay.videoTimer.setLayout("seeking"),this.videoOverlay.setCurrentTime(a*this.video.duration);break;case o.VIDEO_EVENTS.FULLSCREEN:this.event(s.VideoAction.ScreenChange,{screen_state:{current_state:"normal"===this.videoPlayerState.playerLayout?"default_view":"full_screen",next_state:"normal"===this.videoPlayerState.playerLayout?"full_screen":"default_view"}}),this.playerCommands.executeCommand("toggleFullscreen"),this.startOverlayAutoHideTimer();break;case o.VIDEO_EVENTS.SHARE:this.handleShareClick(),this.startOverlayAutoHideTimer();break;case o.VIDEO_EVENTS.LIKE:this.playerCommands.executeCommand("likeVideo"),this.startOverlayAutoHideTimer(),this.event(this.isLiked?s.VideoAction.Like:s.VideoAction.Unlike,{});break;case o.VIDEO_EVENTS.CTA_CLICKED:this.handleCtaClick(t),this.showPlayerOverlay();break;case o.VIDEO_EVENTS.CTA_DISMISS:this.event(s.VideoAction.CtaDismissed,{});break;case o.VIDEO_EVENTS.CTA_VISIBILE:this.event(s.VideoAction.CtaVisible,{});break;case o.VIDEO_EVENTS.PLAY:this.isPausedManually=!1,this.event(s.VideoAction.PlaybackPlay,{video_end_trigger:"user_play"}),this.play();break;case o.VIDEO_EVENTS.PAUSE:this.isPausedManually=!0,this.event(s.VideoAction.PlaybackPause,{video_end_trigger:"user_pause"}),this.pause();break;case o.VIDEO_EVENTS.NAVIGATION_PREV:case o.VIDEO_EVENTS.NAVIGATION_NEXT:this.event(s.VideoAction.VideoEnd,{}),this.exitTrigger="Skip";break;case o.VIDEO_EVENTS.CLOSE_PLAYER:const{exitTrigger:l}=t.detail;this.exitTrigger=l,this.event(s.VideoAction.VideoEnd,{}),null===(e=this.modal)||void 0===e||e.close();break;case o.VIDEO_EVENTS.CLOSED_CAPTIONS_OPEN_MODAL:null===(i=this.closedCaptionsModal)||void 0===i||i.open();break;case o.VIDEO_EVENTS.DISPLAY_HIDE_OVERLAY_FROM_CTA:this.handleClick(t);break;case o.VIDEO_EVENTS.UPDATE_CLOSED_CAPTIONS_LOCATION:const{top:d,left:u}=t.detail;this.captionsElement.setAbsolutePosition({top:d,left:u})}}handleCtaClick(t){var e,i,n,o,r,l,u,c;const h=t,{url:p}=h.detail;return this.event(s.VideoAction.CtaClick,{}),(null===(i=null===(e=this.refContentModal)||void 0===e?void 0:e.parentWidget)||void 0===i?void 0:i.id)&&d.EventService.dispatch(null===(n=this.refContentModal)||void 0===n?void 0:n.parentWidget,a.Delegation.onWidgetTriggerCTA,{widgetId:null===(r=null===(o=this.refContentModal)||void 0===o?void 0:o.parentWidget)||void 0===r?void 0:r.id,actionType:"URL",actionParam:p}),null===(l=this.shareModal)||void 0===l||l.close(),this.exitTrigger="CTA Click",this.event(s.VideoAction.VideoEnd,{}),(null===(u=this.video)||void 0===u?void 0:u.paused)||((null===(c=this.modal)||void 0===c?void 0:c.player).resumeAfterFocus=!0,this.pause()),!0}setPlayerLayoutToNormal(){this.videoOverlay.setFullscreenState(!1)}handleSeekRequest(t,e){return n(this,void 0,void 0,function*(){const i=this.video.currentTime;let n=t;(t>.99||t*this.video.duration>this.video.duration-5)&&(n=Math.max(0,this.video.duration-5)/this.video.duration);const o=n*this.video.duration,r={seek_total_time:Math.abs(t*this.video.duration-this.video.currentTime),seek_direction:o>i?"Forward":"Backward",seek_type:e};this.lastSeekAction={action:e,currentTime:i,seekedTime:o}
1,this.event(s.VideoAction.Seek,r),yield this.playerCommands.executeCommand("seek",n);const a=this.video.currentTime;Math.abs(a-i)<=5&&(this.shouldSaveAfterSeek=!0),d.VideoPlayerService.isSeekBarDragging?this.hideLoader():this.play()})}handleSeek(t,e){this.video.paused||this.pause(),this.showLoaderWithDelay(),this.videoOverlay.videoTimer.setLayout("seeking"),this.videoOverlay.setCurrentTime(t*this.video.duration),this.boundHandleSeekDebounce(t,e)}handleShareClick(){var t;let e;this.videoPlayerState.isPlaying&&this.pause(),e=location.href.includes("blaze/video")||"SingleContent"===d.VideoPlayerService.playReference?null===window||void 0===window?void 0:window.location.href:location.href.includes("#")?location.href+"&blaze/video/"+this.videoId:location.href+"#blaze/video/"+this.videoId,(null===navigator||void 0===navigator?void 0:navigator.share)?navigator.share({text:this.data.title,url:e}).then(()=>{}).catch(t=>{var i;"AbortError"!==t.name&&(null===(i=this.shareModal)||void 0===i||i.open(e))}).finally(()=>{this.hideLoader(),this.videoPlayerState.isPlaying&&this.play()}):null===(t=this.shareModal)||void 0===t||t.open(e),this.event(s.VideoAction.Share,{})}pause(){this.playerCommands.executeCommand("pause"),this.videoOverlay.videoSeekBar.onContentPaused(),this.captionsElement.setAttribute("text-color","#7E7E7E")}play(){return n(this,void 0,void 0,function*(){var t;if(this.clearOverlayTimer(),yield this.tryToPlayAd({current:this.data.extraInfo}))return;const e=this.data.poster.rendition.url;this.videoId&&e&&this.videoId!==this.lastMarkedVideoIdAsViewed&&(yield d.VideoService.markVideoAsViewed(this.videoId,e),this.lastMarkedVideoIdAsViewed=this.videoId,!d.ConfigService.shouldModifyUrlWithContentId||this.embeddedRef instanceof h.BlazeWidgetEmbeddedVideo||r.URLManager.updateLocationContentHash({contentType:"video",contentId:this.videoId})),this.showLoaderWithDelay(),(yield this.playerCommands.executeCommand("play")).status===o.PlayStatus.Success?(this.videoOverlay.videoSeekBar.onContentResumed(),this.videoOverlay.videoTimer.setLayout("player"),this.videoOverlay.videoNavigationOverlay.hideReplayButton(),this.captionsElement.setAttribute("text-color",u.Colors.White),this.setIsPlaying(!0),this.videoPlayerState.isPlaying=!0,this.data.hasViewed||(this.data.hasViewed=!0,this.updateWidgetStatusReadUnread()),this.shouldSaveAfterSeek&&(this.saveCurrentTime(!0),this.shouldSaveAfterSeek=!1)):(this.setIsPlaying(!1),this.videoPlayerState.isPlaying=!1),this.hideLoader(),this.isActionBlocked=!1,this.startOverlayAutoHideTimer(),null===(t=this.posterOverlayElement)||void 0===t||t.setStyle({backgroundImage:""})})}updateMuteButtonState(t){this.videoOverlay.setMuteState(t)}handleLoadedMetadata(){return n(this,void 0,void 0,function*(){this.videoOverlay.setVideoDuration(this.video.duration)})}updateWidgetStatusReadUnread(){this.widgetParentItem&&(this.widgetParentItem.updateWidget(),this.widgetParentItem.setChipStyle(),this.widgetParentItem.render(),this.widgetParentItem.updateWidgetItemPadding())}handleVideoTimeUpdate(){return n(this,void 0,void 0,function*(){this.video.duration&&!this.video.paused&&this.videoOverlay.setCurrentTime(this.video.currentTime),this.videoOverlay.videoSeekBar.updateProgressBar(this.video.currentTime,this.video.duration),yield this.saveCurrentTime()})}saveCurrentTime(){return n(this,arguments,void 0,function*(t=!1){if(!(this.video.currentTime-this.lastSavedTime>=5||t))return;const e=this.video.currentTime;this.lastSavedTime=t?e:this.video.currentTime;try{const{currentTime:t,snapshotDataUrl:e}=yield this.createSnapshot();yield d.VideoService.updateVideoDataById(this.data.id,{posterCurrentTime:e,currentTime:t})}catch(t){}})}handleLanguageChange(t){var e;const i=null===(e=this.data.closedCaptions)||void 0===e?void 0:e.find(e=>""+e.language===t.detail.language);this.videoOverlay.updateClosedCaptionButtonIcon(!!i)}handleAdStarted(){this.adIndex++,this.isPlayingAd=!0,this.pause()}handleAdEnded(){this.isPlayingAd=!1,this.play()}static get observedAttributes(){return["mute","video-id","video-title","poster","is-liked","loading"]}get mute(){return this.video.muted}set muted(t){this.setAttribute("mute",!0===t?"true":"false")}get videoId(){return this.getAttribute("video-id")||""}set videoId(t){this.setAttribute("video-id",t)}get title(){return this.getAttribute("video-title")||""}set title(t){this.setAttribute("video-title",t)}get isLiked(){return"true"===this.getAttribute("is-liked")}set isLiked(t){this.setAttribute("is-liked",!0===t?"true":"false")}get isPlayingAd(){return"true"===this.getAttribute("is-playing-ad")}set isPlayingAd(t){this.setAttribute("is-playing-ad",!0===t?"true":"false")}applyAttribute(t,e){switch(t){case"mute":this.playbackStrategy.setMuted("true"===e),this.updateMuteButtonState("true"===e);break;case"video-id":this.setVideoId(e);break;case"video-title":this.setTitle(e);break;case"is-liked":this.setLiked("true"===e)}}updatePlayerButtonIcons(){}resetPosition(){}render(){}getRefferingObject(){var t,e,i;const n=new r.ReferringEventInfo,o=(null===(t=this.widgetParentItem)||void 0===t?void 0:t.parentRef)||(null===(e=this.refContentModal)||void 0===e?void 0:e.parentWidget);
1if(o&&o instanceof h.BlazeWidgetLayout&&(n.origin_widget_id=o.id,n.origin_widget_type=o.widgetType(),n.labels_expression=o.getAttribute("labels")),d.ConfigService.staticContentType&&(n.story_source="OneBox"),document.referrer){n.referrer_page_url=document.referrer;const t=document.referrer.indexOf("#blaze"),e=-1!==t?document.referrer.slice(0,t):document.referrer;n.referrer_page_type=/^(https?:\/\/[^/]+\/?)$/i.test(e)?"Homepage":"Category/Article",n.referrer_page_domain=document.referrer?null===(i=new URL(document.referrer))||void 0===i?void 0:i.hostname:""}return n}event(t,e){return n(this,arguments,void 0,function*(t,e,i){var n,o,a,l;try{const u=this.getRefferingObject();if("Content"===this.data.type){e.video_id=this.data.id,e.video_title=this.data.title,e.cc_state=(0,c.convertCcLanguageToState)(this.data.closedCaptions,localStorage.getItem(s.LOCAL_STORAGE_KEY_LAST_SELECTED)),e.video_session_id=this.videoSessionId;const h=r.deviceDetector.screenOrientation;if(e.player_orientation=h.toString().charAt(0).toUpperCase()+h.toString().slice(1).toLowerCase(),e.device_orientation="Horizontal"===this.aspectRatio?"Landscape":"Portrait",e.screen_state=e.screen_state||{current_state:"normal"===this.videoPlayerState.playerLayout?"default_view":"full_screen"},null===(n=this.data.cta)||void 0===n?void 0:n.url){const{duration:t,behavior:i}=this.playerStyle.cta.visibility;e.cta_config={visibile_duration:t||0,type:i||""}}else e.cta_config="";switch(e.audio_state=this.videoPlayerState.isMuted?"Mute":"Unmute",e.video_start_trigger=this.startTrigger,e.video_time_start=this.video.currentTime,e.video_duration=this.video.duration,"true"===(null===(a=null===(o=d.AppConfigurationService.appConfigurations)||void 0===o?void 0:o.configurations)||void 0===a?void 0:a.analyticsAddEntitiesInfo)&&(e.content_extra_info=JSON.stringify(this.data.extraInfo)),t){case s.VideoAction.VideoEnd:e.video_end_trigger=this.exitTrigger,e.video_time_end=this.video.currentTime,e.video_time_start=void 0;break;case s.VideoAction.Seek:e.video_time_end=this.lastSeekAction.seekedTime,e.video_time_start=null===(l=this.lastSeekAction)||void 0===l?void 0:l.currentTime}e.localization=this.data.retrievedLanguages||{},d.AnalyticsService.pushVideoEvent(t,e,i,u)}}catch(t){}})}tryToPlayAd(t){return n(this,void 0,void 0,function*(){var e;if(this.forceSkipPreroll)return this.forceSkipPreroll=!1,this.adPercentageShownPlaces.set(0,!0),!1;if(this.data.adInfo&&(0,c.isImaAdInfo)(this.data.adInfo)&&!this.adPercentageShownPlaces.get(0)){let i;this.adPercentageShownPlaces.set(0,!0);try{(!(i=null===(e=this.playbackStrategy)||void 0===e?void 0:e.getDuration())||isNaN(i)||i<=0)&&(i=void 0)}catch(t){i=void 0}return yield this.widgetVastAd.startAd({videoElement:this.video,adInfo:this.data.adInfo,contentExtraInfo:t,addCustomParams:void 0,addExtraAnalyticsParams:()=>({ad_index:this.adIndex.toString(),session_id:this.videoSessionId,video_id:this.data.id,video_title:this.data.title}),videoUrl:this.data.baseLayer.content.renditions[0].url,videoDuration:i})}return!1})}markPrerollAsPlayed(){this.adPercentageShownPlaces.set(0,!0)}skipNextPrerollOnce(){this.forceSkipPreroll=!0}}},6121:(t,e)=>{"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.ConsentEvent=e.InteractionEvent=e.ImaAdEvent=e.AdEvent=e.VideoEvent=e.WidgetEvent=e.MomentEvent=e.StoryEvent=e.AnalyticsEvent=e.ReferringEventInfo=e.Category=void 0,function(t){t.Story="story",t.Moment="moment",t.Widget="widget",t.Video="video",t.Ad="ad",t.Interaction="interaction",t.Consent="consent"}(i||(e.Category=i={}));class n{}class o{}class r{}class s{}e.ReferringEventInfo=s,e.AnalyticsEvent=class{constructor(){this.event_label="",this.session_id="",this.user=new n,this.tech=new o,this.geo=new r,this.wsc_internal={customer_name:"",customer_id:""},this.page={page_url:""},this.referring=new s}},e.StoryEvent=class{},e.MomentEvent=class{},e.WidgetEvent=class{},e.VideoEvent=class{},e.AdEvent=class{},e.ImaAdEvent=class{},e.InteractionEvent=class{},e.ConsentEvent=class{}},6133:function(t,e){"use strict";var i=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Prom
1ise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.LoggerThrottle=void 0,e.LoggerThrottle=class{constructor(){this.batchIntervalMs=0,this.logCount=0,this.batchInterval=null,this.batchCallback=null,this._maxBatchSize=0,this._minBatchSize=0}get minBatchSize(){return this._minBatchSize}get maxBatchSize(){return this._maxBatchSize}updateConfiguration(t){this.batchIntervalMs=t.batchIntervalMs,this._maxBatchSize=t.maxBatchSize,this._minBatchSize=t.minBatchSize,this.setupBatchInterval()}onBatchReady(t){this.batchCallback=t,this.batchIntervalMs>0&&this.setupBatchInterval()}destroy(){this.batchInterval&&(clearInterval(this.batchInterval),this.batchInterval=null),this.logCount=0,this.batchCallback=null}setupBatchInterval(){this.batchInterval&&clearInterval(this.batchInterval),this.batchInterval=setInterval(()=>i(this,void 0,void 0,function*(){var t;try{yield null===(t=this.batchCallback)||void 0===t?void 0:t.call(this)}catch(t){}}),this.batchIntervalMs)}incrementLogCount(){this.logCount++}shouldTriggerBatch(){return this.logCount>=this._maxBatchSize&&(this.logCount=0,!0)}}},6206:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetShareModal=void 0;const o=i(4403),r=i(8921),s=i(277),a=i(4906);e.BlazeWidgetShareModal=class extends o.BaseWidget{constructor(){var t,e;super(),this.shareUrl="",this.shareContainer=r.WidgetsFactory.create("blaze-div"),this.shareDrawer=r.WidgetsFactory.create("blaze-modal"),this.shareDrawer.onOpen=null===(t=this.onDarwerOpen)||void 0===t?void 0:t.bind(this),this.shareDrawer.onClose=null===(e=this.onDrawerClose)||void 0===e?void 0:e.bind(this)}connectedCallback(){return n(this,void 0,void 0,function*(){this.shareContainer.setStyle({display:"flex",flexDirection:"column",height:"12rem",fontSize:".8rem",fontFamily:a.Presets.playerFont,color:"#000"}),this.render()})}disconnectedCallback(){this.removeChild(this.shareDrawer)}attributeChangedCallback(t,e,i){}onDarwerOpen(){var t;null===(t=this.onOpen)||void 0===t||t.call(this)}onDrawerClose(){var t;null===(t=this.onClose)||void 0===t||t.call(this)}open(t){this.shareUrl=t,this.shareDrawer.open()}close(){this.shareDrawer.close()}get isOpen(){return!0===this.shareDrawer.getAttribute("open")}renderButtons(){const t=r.WidgetsFactory.create("blaze-div");t.setStyle({display:"flex",gap:"1rem",padding:"1rem 1.5rem",alignItems:"center"}),[{type:"copy-link",onClick:()=>{(null===navigator||void 0===navigator?void 0:navigator.clipboard)&&navigator.clipboard.writeText(this.shareUrl),this.close()}}].forEach(e=>{const i=r.WidgetsFactory.create("blaze-share-button");i.type=e.type,i.onClick=(t=>{var n;e.onClick(t),null===(n=this.onClick)||void 0===n||n.call(this,i)}),t.append(i)}),this.shareContainer.append(t),this.shareDrawer.init({anchor:"bottom",component:this.shareContainer}),this.append(this.shareDrawer)}renderTitle(){const t=r.WidgetsFactory.create("blaze-div");t.setStyle({display:"flex",gap:"1rem",borderBottom:"solid 1px #d1d1d1",padding:"1rem 1.5rem",alignItems:"center"});const e=r.WidgetsFactory.create("blaze-div");e.setStyle({display:"flex",alignItems:"center",justifyContent:"center",width:"3rem",height:"3rem",borderRadius:".3rem",border:"solid 1px #d1d1d1"});const i=r.WidgetsFactory.create("blaze-div");i.setStyle({display:"block",width:"1.5rem",height:"1.5rem",cursor:"pointer",flexShrink:"0",background:"center center url('"+s.IconGlobe+"') no-repeat",backgroundSize:"contain"});const n=r.WidgetsFactory.create("blaze-typography");n.text=location.origin,e.append(i),t.append(e),t.append(n),this.shareContainer.append(t)}render(){this.renderTitle(),this.renderButtons()}}}
1,6248:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.LoggerService=void 0;const o=i(4545),r=i(4403),s=i(2668),a=i(9965);e.LoggerService=class extends((0,r.Singleton)()){constructor(){super(),this.loggerManager=new r.LoggerManager(new s.LoggerDatabaseAdapter)}init(){return n(this,void 0,void 0,function*(){var t;return yield this.loggerManager.init(null===(t=o.AppConfigurationService.appConfigurations)||void 0===t?void 0:t.sdkLoggerConfigurations)})}destroy(){return n(this,void 0,void 0,function*(){return this.loggerManager.destroy()})}updateConfiguration(t){this.loggerManager.updateConfiguration(t)}log(t,e,i){return n(this,arguments,void 0,function*(t,e,i,n={}){switch(t){case a.LogLevel.DEBUG:return this.loggerManager.log(a.LogLevel.DEBUG,e,i,n);case a.LogLevel.INFO:return this.loggerManager.log(a.LogLevel.INFO,e,i,n);case a.LogLevel.WARN:return this.loggerManager.log(a.LogLevel.WARN,e,i,n);case a.LogLevel.ERROR:return this.loggerManager.log(a.LogLevel.ERROR,e,i,n);case a.LogLevel.CRITICAL:return this.loggerManager.log(a.LogLevel.CRITICAL,e,i,n)}})}}.getInstance()},6308:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.EventService=void 0;const o=i(4403),r=i(9965);e.EventService=class extends((0,o.Singleton)()){constructor(){super()}init(){return n(this,void 0,void 0,function*(){this.rootElement=document.querySelector("blaze-sdk")})}dispatch(t,e,i={}){var n;const o=new CustomEvent(e.toString(),{bubbles:!0,detail:i,cancelable:!0});return null===(n=t.dispatchEvent)||void 0===n||n.call(t,o),{mainEvent:o}}dispatchAnaltyicsEvents(t,e){var i,n;const o=new CustomEvent(r.Delegation.onEventTriggered,{bubbles:!0,detail:{eventType:t,eventData:e},cancelable:!0});return null===(n=null===(i=this.rootElement)||void 0===i?void 0:i.dispatchEvent)||void 0===n||n.call(i,o),{mainEvent:o}}}.getInstance()},6311:(t,e,i)=>{var n=i(9697),o=Object.create||function(){function t(){}return function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();function r(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function s(t){function e(t,e,i,n){return 3600*(0|t)+60*(0|e)+(0|i)+(0|n)/1e3}var i=t.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return i?i[3]?e(i[1],i[2],i[3].replace(":",""),i[4]):i[1]>59?e(i[1],i[2],0,i[4]):e(0,i[1],i[2],i[4]):null}function a(){this.values=o(null)}function l(t,e,i,n){var o=n?t.split(n):[t];for(var r in o)if("string"==typeof o[r]){var s=o[r].split(i);2===s.length&&e(s[0].trim(),s[1].trim())}}function d(t,e,i){var n=t;function o(){var e=s(t);if(null===e)throw new r(r.Errors.BadTimeStamp,"Malformed timestamp: "+n);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function d(){t=t.replace(/^\s+/,"")}if(d(),e.startTime=o(),d(),"--\x3e"!==t.substr(0,3))throw new r(r.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);t=t.substr(3),d(),e.endTime=o(),d(),function(t,e){var n=new a;l(t,function(t,e){switch(t){case"region":for(var o=i.length-1;o>=0;o--)if(i[o].id===e){n.set(t,i[o].region);break}break;case"vertical":n.alt(t,e,["rl","lr"]);break;case"line":var r=e.split(","),s=r[0];n.integer(t,s),n.percent(t,s)&&n.set("snapToLines",!1),n.alt(t,s,["auto"]),2===r.length&&n.alt("lineAlign",r[1],["start","center","end"]);break;case"position":r=e.split(","),n.percent(t,r[0]),2===r.length&&n.alt("positionAlign",r[1],["start","center","end"]);break;case"size":n.percent(t,e);break;case"align":n.alt(t,e,["start","center","end","left","right"])}}
vendor: 4,234 bytes, line 1
1,/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical","");try{e.line=n.get("line","auto")}catch(t){}e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100);try{e.align=n.get("align","center")}catch(t){e.align=n.get("align","middle")}try{e.position=n.get("position","auto")}catch(t){e.position=n.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},e.align)}e.positionAlign=n.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},e.align)}(t,e)}r.prototype=o(Error.prototype),r.prototype.constructor=r,r.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},a.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,i){return i?this.has(t)?this.values[t]:e[i]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,i){for(var n=0;n<i.length;++n)if(e===i[n]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){return!!(e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(e=parseFloat(e))>=0&&e<=100)&&(this.set(t,e),!0)}};var u=n.createElement&&n.createElement("textarea"),c={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},h={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},p={v:"title",lang:"lang"},f={rt:"ruby"};function g(t,e){function i(){if(!e)return null;var t,i=e.match(/^([^<]*)(<[^>]*>?)?/);return t=i[1]?i[1]:i[2],e=e.substr(t.length),t}function n(t,e){return!f[e.localName]||f[e.localName]===t.localName}function o(e,i){var n=c[e];if(!n)return null;var o=t.document.createElement(n),r=p[e];return r&&i&&(o[r]=i.trim()),o}for(var r,a=t.document.createElement("div"),l=a,d=[];null!==(r=i());)if("<"!==r[0])l.appendChild(t.document.createTextNode((b=r,u.innerHTML=b,b=u.textContent,u.textContent="",b)));else{if("/"===r[1]){d.length&&d[d.length-1]===r.substr(2).replace(">","")&&(d.pop(),l=l.parentNode);continue}var g,v=s(r.substr(1,r.length-2));if(v){g=t.document.createProcessingInstruction("timestamp",v),l.appendChild(g);continue}var y=r.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(!(g=o(y[1],y[3])))continue;if(!n(l,g))continue;if(y[2]){var m=y[2].split(".");m.forEach(function(t){var e=/^bg_/.test(t),i=e?t.slice(3):t;if(h.hasOwnProperty(i)){var n=e?"background-color":"color",o=h[i];g.style[n]=o}}),g.className=m.join(" ")}d.push(y[1]),l.appendChild(g),l=g}var b;return a}var v=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function y(t){for(var e=0;e<v.length;e++){var i=v[e];
vendor: 5,539 bytes, line 1
1if(t>=i[0]&&t<=i[1])return!0}return!1}function m(t){var e=[],i="";if(!t||!t.childNodes)return"ltr";function n(t,e){for(var i=e.childNodes.length-1;i>=0;i--)t.push(e.childNodes[i])}function o(t){if(!t||!t.length)return null;var e=t.pop(),i=e.textContent||e.innerText;if(i){var r=i.match(/^.*(\n|\r)/);return r?(t.length=0,r[0]):i}return"ruby"===e.tagName?o(t):e.childNodes?(n(t,e),o(t)):void 0}for(n(e,t);i=o(e);)for(var r=0;r<i.length;r++)if(y(i.charCodeAt(r)))return"rtl";return"ltr"}function b(){}function S(t,e,i){b.call(this),this.cue=e,this.cueDiv=g(t,e.text);var n={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(n,this.cueDiv),this.div=t.document.createElement("div"),n={direction:m(this.cueDiv),writingMode:""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===e.align?"center":e.align,font:i.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(n),this.div.appendChild(this.cueDiv);var o=0;switch(e.positionAlign){case"start":case"line-left":o=e.position;break;case"center":o=e.position-e.size/2;break;case"end":case"line-right":o=e.position-e.size}""===e.vertical?this.applyStyles({left:this.formatStyle(o,"%"),width:this.formatStyle(e.size,"%")}):this.applyStyles({top:this.formatStyle(o,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(t){this.applyStyles({top:this.formatStyle(t.top,"px"),bottom:this.formatStyle(t.bottom,"px"),left:this.formatStyle(t.left,"px"),right:this.formatStyle(t.right,"px"),height:this.formatStyle(t.height,"px"),width:this.formatStyle(t.width,"px")})}}function E(t){var e,i,n,o;if(t.div){i=t.div.offsetHeight,n=t.div.offsetWidth,o=t.div.offsetTop;var r=(r=t.div.childNodes)&&(r=r[0])&&r.getClientRects&&r.getClientRects();t=t.div.getBoundingClientRect(),e=r?Math.max(r[0]&&r[0].height||0,t.height/r.length):0}this.left=t.left,this.right=t.right,this.top=t.top||o,this.height=t.height||i,this.bottom=t.bottom||o+(t.height||i),this.width=t.width||n,this.lineHeight=void 0!==e?e:t.lineHeight}function C(t,e,i,n){var o=new E(e),r=e.cue,s=function(t){if("number"==typeof t.line&&(t.snapToLines||t.line>=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,i=e.textTrackList,n=0,o=0;o<i.length&&i[o]!==e;o++)"showing"===i[o].mode&&n++;return-1*++n}(r),a=[];if(r.snapToLines){var l;switch(r.vertical){case"":a=["+y","-y"],l="height";break;case"rl":a=["+x","-x"],l="width";break;case"lr":a=["-x","+x"],l="width"}var d=o.lineHeight,u=d*Math.round(s),c=i[l]+d,h=a[0];Math.abs(u)>c&&(u=u<0?-1:1,u*=Math.ceil(c/d)*d),s<0&&(u+=""===r.vertical?i.height:i.width,a=a.reverse()),o.move(h,u)}else{var p=o.lineHeight/i.height*100;switch(r.lineAlign){case"center":s-=p/2;break;case"end":s-=p}switch(r.vertical){case"":e.applyStyles({top:e.formatStyle(s,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(s,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(s,"%")})}a=["+y","-x","+x","-y"],o=new E(e)}var f=function(t,e){for(var o,r=new E(t),s=1,a=0;a<e.length;a++){for(;t.overlapsOppositeAxis(i,e[a])||t.within(i)&&t.overlapsAny(n);)t.move(e[a]);if(t.within(i))return t;var l=t.intersectPercentage(i);s>l&&(o=new E(t),s=l),t=new E(r)}return o||r}(o,a);e.move(f.toCSSCompatValues(i))}function w(){}b.prototype.applyStyles=function(t,e){for(var i in e=e||this.div,t)t.hasOwnProperty(i)&&(e.style[i]=t[i])},b.prototype.formatStyle=function(t,e){return 0===t?0:t+e},S.prototype=o(b.prototype),S.prototype.constructor=S,E.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},E.prototype.overlaps=function(t){return this.left<t.right&&this.right>t.left&&this.top<t.bottom&&this.bottom>t.top},E.prototype.overlapsAny=function(t){for(var e=0;e<t.length;e++)if(this.overlaps(t[e]))return!0;return!1},E.prototype.within=function(t){return this.top>=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},E.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.left<t.left;case"-x":return this.right>t.right;case"+y":return this.top<t.top;case"-y":return this.bottom>t.bottom}},E.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},E.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},E.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,i=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,n=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||n,height:t.height||e,bottom:t.bottom||n+(t.height||e),width:t.width||i}},w.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},w.convertCueToDOMTree=function(t,e){return t&&e?g(t,e):null}
vendor: 4,145 bytes, line 1
1,w.processCues=function(t,e,i){if(!t||!e||!i)return null;for(;i.firstChild;)i.removeChild(i.firstChild);var n=t.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",i.appendChild(n),function(t){for(var e=0;e<t.length;e++)if(t[e].hasBeenReset||!t[e].displayState)return!0;return!1}(e)){var o=[],r=E.getSimpleBoxPosition(n),s={font:Math.round(.05*r.height*100)/100+"px sans-serif"};!function(){for(var i,a,l=0;l<e.length;l++)a=e[l],i=new S(t,a,s),n.appendChild(i.div),C(0,i,r,o),a.displayState=i.div,o.push(E.getSimpleBoxPosition(i))}()}else for(var a=0;a<e.length;a++)n.appendChild(e[a].displayState)},w.Parser=function(t,e,i){i||(i=e,e={}),e||(e={}),this.window=t,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=i||new TextDecoder("utf8"),this.regionList=[]},w.Parser.prototype={reportOrThrowError:function(t){if(!(t instanceof r))throw t;this.onparsingerror&&this.onparsingerror(t)},parse:function(t){var e,i=this;function n(){for(var t=i.buffer,e=0;e<t.length&&"\r"!==t[e]&&"\n"!==t[e];)++e;var n=t.substr(0,e);return"\r"===t[e]&&++e,"\n"===t[e]&&++e,i.buffer=t.substr(e),n}t&&(i.buffer+=i.decoder.decode(t,{stream:!0}));try{var o;if("INITIAL"===i.state){if(!/\r\n|\n/.test(i.buffer))return this;var u=(o=n()).match(/^WEBVTT([ \t].*)?$/);if(!u||!u[0])throw new r(r.Errors.BadSignature);i.state="HEADER"}for(var c=!1;i.buffer;){if(!/\r\n|\n/.test(i.buffer))return this;switch(c?c=!1:o=n(),i.state){case"HEADER":/:/.test(o)?(e=o).match(/X-TIMESTAMP-MAP/)?l(e,function(t,e){var n,o;"X-TIMESTAMP-MAP"===t&&(n=e,o=new a,l(n,function(t,e){switch(t){case"MPEGT":o.integer(t+"S",e);break;case"LOCA":o.set(t+"L",s(e))}},/[^\d]:/,/,/),i.ontimestampmap&&i.ontimestampmap({MPEGTS:o.get("MPEGTS"),LOCAL:o.get("LOCAL")}))},/=/):l(e,function(t,e){"Region"===t&&function(t){var e=new a;if(l(t,function(t,i){switch(t){case"id":e.set(t,i);break;case"width":e.percent(t,i);break;case"lines":e.integer(t,i);break;case"regionanchor":case"viewportanchor":var n=i.split(",");if(2!==n.length)break;var o=new a;if(o.percent("x",n[0]),o.percent("y",n[1]),!o.has("x")||!o.has("y"))break;e.set(t+"X",o.get("x")),e.set(t+"Y",o.get("y"));break;case"scroll":e.alt(t,i,["up"])}},/=/,/\s/),e.has("id")){var n=new(i.vttjs.VTTRegion||i.window.VTTRegion);n.width=e.get("width",100),n.lines=e.get("lines",3),n.regionAnchorX=e.get("regionanchorX",0),n.regionAnchorY=e.get("regionanchorY",100),n.viewportAnchorX=e.get("viewportanchorX",0),n.viewportAnchorY=e.get("viewportanchorY",100),n.scroll=e.get("scroll",""),i.onregion&&i.onregion(n),i.regionList.push({id:e.get("id"),region:n})}}(e)},/:/):o||(i.state="ID");continue;case"NOTE":o||(i.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(o)){i.state="NOTE";break}if(!o)continue;i.cue=new(i.vttjs.VTTCue||i.window.VTTCue)(0,0,"");try{i.cue.align="center"}catch(e){i.cue.align="middle"}if(i.state="CUE",-1===o.indexOf("--\x3e")){i.cue.id=o;continue}case"CUE":try{d(o,i.cue,i.regionList)}catch(t){i.reportOrThrowError(t),i.cue=null,i.state="BADCUE";continue}i.state="CUETEXT";continue;case"CUETEXT":var h=-1!==o.indexOf("--\x3e");if(!o||h&&(c=!0)){i.oncue&&i.oncue(i.cue),i.cue=null,i.state="ID";continue}i.cue.text&&(i.cue.text+="\n"),i.cue.text+=o.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":o||(i.state="ID");continue}}}catch(t){i.reportOrThrowError(t),"CUETEXT"===i.state&&i.cue&&i.oncue&&i.oncue(i.cue),i.cue=null,i.state="INITIAL"===i.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),(t.cue||"HEADER"===t.state)&&(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new r(r.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}},t.exports=w},6426:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},6433:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tryGetLocalStorageItem=function(t,e,i="warn"){try{return localStorage.getItem(t)}catch(t){return null}},e.trySetLocalStorageItem=function(t,e,i,n="warn"){try{localStorage.setItem(t,e)}catch(t){}}
1,e.tryRemoveLocalStorageItem=function(t,e,i="warn"){try{localStorage.removeItem(t)}catch(t){}}},6450:function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(2029),e),o(i(1699),e),o(i(1977),e),o(i(961),e),o(i(9456),e),o(i(4180),e),o(i(9142),e),o(i(8530),e),o(i(9100),e),o(i(473),e),o(i(5990),e),o(i(3751),e)},6569:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetVastAd=void 0;const o=i(5785),r=i(6450),s=i(9965),a=i(4545),l=i(9266),d=i(3214);let u=window.innerWidth;e.BlazeWidgetVastAd=class extends HTMLElement{get googleIMA(){var t;return null===(t=window.google)||void 0===t?void 0:t.ima}constructor(t,e,i=a.VideoPlayerService){super(),this.contentType=t,this.getReferringObject=e,this.videoPlayerState=i,this.isInitialized=!1,this.adContainer=document.createElement("div"),this.adLoaderContainer=new o.BlazeLoader,this.currentAdTag="",this.boundedOnBlur=this.onBlur.bind(this),this.boundedOnFocus=this.onFocus.bind(this),this.boundedOnVisibilityChange=this.onVisibilityChange.bind(this),this.boundedOnWindowResize=this.onWindowResize.bind(this),this.initializeGoogleIma()}initializeGoogleIma(){this.googleIMA&&!this.isInitialized&&(this.isInitialized=!0,this.googleIMA.settings.setDisableCustomPlaybackForIOS10Plus(!0),(0,l.mergeStyles)(this.adContainer,{position:"absolute",width:"100%",background:"black",height:"100%",top:"0",left:"0",display:"none",justifyContent:"center",zIndex:"100000"}),(0,l.mergeStyles)(this.adLoaderContainer,{margin:"auto",position:"absolute",top:"50%",left:"calc(50% - 20px)",transform:"translate(-50%, -50%)",zIndex:"100001"}))}buildImaUrl(t,e,i,o){return n(this,void 0,void 0,function*(){var n,r;if("IMA"!==t.type)return"";const s=(null===(r=null===(n=a.ConfigService.imaAdHandler)||void 0===n?void 0:n.provideAdExtraParams)||void 0===r?void 0:r.call(n,e))||{},l=new URL(t.tag);l.searchParams.set("url",document.location.href),l.searchParams.set("vpmute",this.videoPlayerState.isMuted?"1":"0"),l.searchParams.set("plcmt","1"),l.searchParams.set("vpos","midroll"),l.searchParams.set("vpa","click");const u=null!=o?o:yield(0,d.getVideoDuration)(this.videoElement,this.videoUrl).catch(()=>0);this.setSearchParamIfNotNullOrZero(l,"content_len",u),l.searchParams.set("language",navigator.language);for(const t in s)l.searchParams.set(t,s[t]);switch(this.buildAndSetCustParams(t,l),null==i||i(l),t.adProvider){case"Aniview":this.addAniviewMacrosToUrl(l);break;case"GoogleAds":this.addGoogleAdsMacrosToUrl(l)}return l.toString()})}cleanupAdSession(){var t;this.adsManager&&(this.adsManager.destroy(),this.adsManager=void 0),this.adsLoader&&(this.adsLoader.contentComplete(),this.adsLoader=void 0),this.adDisplayContainer=void 0,this.adContainer&&(this.adContainer.innerHTML="",this.adContainer.style.display="none"),null===(t=this.adContainer)||void 0===t||t.removeEventListener("click",this.onAdClick),window.removeEventListener("blur",this.boundedOnBlur),window.removeEventListener("focus",this.boundedOnFocus),document.removeEventListener("visibilitychange",this.boundedOnVisibilityChange),window.removeEventListener("resize",this.boundedOnWindowResize)}startAd(t){return n(this,void 0,void 0,function*(){var e,i,n,o,s;const{videoElement:a,adInfo:l,contentExtraInfo:d,addCustomParams:c,addExtraAnalyticsParams:h,videoUrl:p,videoDuration:f}=t;if(this.initializeGoogleIma(),this.currentAddExtraAnalyticsParams=h,this.currentAdInfo=l,!this.googleIMA)return!1;this.appendChild(this.adLoaderContainer),this.appendChild(this.adContainer),u=window.innerWidth,this.adContainer.style.display="flex",this.videoElement=a,this.videoUrl=p,this.adDisplayContainer=new this.googleIMA.AdDisplayContainer(this.adContainer,this.videoElement),this.adsLoader=new this.googleIMA.AdsLoader(this.adDisplayContainer),null===(e=this.adsLoader)||void 0===e||e.addEventListener(this.googleIMA.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,t=>this.onAdsManagerLoaded(t),!1),null===(i=this.adsLoader)||void 0===i||i.addEventListener(this.googleIMA.AdErrorEvent.Type.AD_ERROR,this.onAdError.bind(this),!1),null===(n=this.adsLoader)||void 0===n||n.getSettings().setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.INSECURE);const g=yield this.buildImaUrl(l,d,c,f),v=new this.googleIMA.AdsRequest;return v.adTagUrl=g,this.currentAdTag=g,v.linearAdSlotWidth=this.videoElement.clientWidth,v.linearAdSlotHeight=this.videoElement.clientHeight,v.nonLinearAdSlotWidth=this.videoElement.clientWidth,v.nonLinearAdSlotHeight=(null!==(o=this.videoElement.clientHeight)&&void 0!==o?o:0)/3,null===(s=this.adsLoader)||void 0===s||s.requestAds(v),this.onAdEvent({type:r.ImaAdAction.REQUESTED}),!0})}onAdsManagerLoaded(t){const e=new this.googleIMA.AdsRenderingSettings;if(e.restoreCustomPlaybackStateOnAdBreakComplete=!0,this.adsManager=t.getAdsManager(this.videoElement,e),!this.adsManager)return;this.adsManager.addEventListener(this.googleIMA.AdErrorEvent.Type.AD_ERROR,this.onAdError.bind(this)),this.adsManager.addEventListener(this.googleIMA.AdEvent.Type.CONTENT_PAUSE_REQUESTED,this.onContentPauseRequested.bind(this)),this.adsManager.addEventListener(this.googleIMA.AdEvent.Type.CONTENT_RESUME_REQUESTED,this.onContentResumeRequested.bind(this));const i=this.onAdEvent.bind(this);for(const t of[this.googleIMA.AdEvent.Type.ALL_ADS_COMPLETED,this.googleIMA.AdEvent.Type.CLICK,this.googleIMA.AdEvent.Type.COMPLETE,this.googleIMA.AdEvent.Type.LOADED,this.googleIMA.AdEvent.Type.PAUSED,this.googleIMA.AdEvent.Type.RESUMED,this.googleIMA.AdEvent.Type.SKIPPED,this.googleIMA.AdEvent.Type.STARTED,this.googleIMA.AdEvent.Type.FIRST_QUARTILE,this.googleIMA.AdEvent.Type.MIDPOINT,this.googleIMA.AdEvent.Type.THIRD_QUARTILE])this.adsManager.addEventListener(t,i);this.loadAds()}loadAds(){if(!this.adsManager||!this.adDisplayContainer||!this.videoElement)return;this.adDisplayContainer.initialize();const t=this.videoElement.getBoundingClientRect(),e=t.width,i=t.height;try{this.adsManager.init(e,i,this.googleIMA.ViewMode.NORMAL),this.adsManager.start()}catch(t){this.onContentResumeRequested()}}onAdEvent(t){var e,i,n,o;const s={[this.googleIMA.AdEvent.Type.ALL_ADS_COMPLETED]:r.ImaAdAction.ALL_ADS_COMPLETED,[this.googleIMA.AdEvent.Type.CLICK]:r.ImaAdAction.CLICK,[this.googleIMA.AdEvent.Type.COMPLETE]:r.ImaAdAction.COMPLETED,[this.googleIMA.AdEvent.Type.LOADED]:r.ImaAdAction.LOADED,[this.googleIMA.AdEvent.Type.PAUSED]:r.ImaAdAction.PAUSED,[this.googleIMA.AdEvent.Type.RESUMED]:r.ImaAdAction.RESUMED,[this.googleIMA.AdEvent.Type.SKIPPED]:r.ImaAdAction.SKIPPED,[this.googleIMA.AdEvent.Type.STARTED]:r.ImaAdAction.STARTED,[this.googleIMA.AdEvent.Type.FIRST_QUARTILE]:r.ImaAdAction.FIRST_QUARTILE,[this.googleIMA.AdEvent.Type.MIDPOINT]:r.ImaAdAction.MIDPOINT,[this.googleIMA.AdEvent.Type.THIRD_QUARTILE]:r.ImaAdAction.THIRD_QUARTILE,[r.ImaAdAction.REQUESTED]:r.ImaAdAction.REQUESTED};let l={};if("object"==typeof t&&t&&"getAd"in t&&"function"==typeof t.getAd&&(l=t.getAd().data),"object"==typeof t&&t&&"type"in t){const r=s[t.type];a.AnalyticsService.pushImaAdEvent(r,Object.assign({ad_id:l.adId,ad_title:l.title,ad_description:l.description,ad_system:l.adSystem,ad_duration:l.duration,skippable:l.skippable,skip_time_offset:l.skipTimeOffset,advertiser_name:l.advertiserName,ima_url:this.currentAdTag,audio_state:this.videoPlayerState.isMuted?"muted":"unmuted",content_type:this.contentType,ima_ad_provider:null===(e=this.currentAdInfo)||void 0===e?void 0:e.adProvi
1der,backoffice_campaign_data:(null===(i=this.currentAdInfo)||void 0===i?void 0:i.backofficeCampaignData)||""},null===(n=this.currentAddExtraAnalyticsParams)||void 0===n?void 0:n.call(this)),void 0,null===(o=this.getReferringObject)||void 0===o?void 0:o.call(this))}}onAdError(){this.onContentResumeRequested()}onAdClick(){setTimeout(()=>{window.focus()},1e3)}onContentPauseRequested(){this.adLoaderContainer.remove(),this.dispatchEvent(new CustomEvent(s.InternalEvent.AD_STARTED,{bubbles:!0,composed:!0})),this.adContainer.addEventListener("click",this.onAdClick),window.addEventListener("blur",this.boundedOnBlur),window.addEventListener("focus",this.boundedOnFocus),document.addEventListener("visibilitychange",this.boundedOnVisibilityChange),window.addEventListener("resize",this.boundedOnWindowResize)}onContentResumeRequested(){this.adLoaderContainer.remove(),this.dispatchEvent(new CustomEvent(s.InternalEvent.AD_ENDED,{bubbles:!0,composed:!0})),this.cleanupAdSession()}onBlur(){var t;null===(t=this.adsManager)||void 0===t||t.pause()}onFocus(){var t;null===(t=this.adsManager)||void 0===t||t.resume()}onVisibilityChange(){var t,e;"visible"===document.visibilityState?null===(t=this.adsManager)||void 0===t||t.resume():null===(e=this.adsManager)||void 0===e||e.pause()}onWindowResize(){u!==window.innerWidth&&(u=window.innerWidth,this.resizeToVideoElement())}setSearchParamIfNotNullOrZero(t,e,i){"number"==typeof i&&(i=i.toString()),i&&t.searchParams.set(e,i)}addAniviewMacrosToUrl(t){var e,i;this.setSearchParamIfNotNullOrZero(t,"AV_WIDTH",null===(e=this.videoElement)||void 0===e?void 0:e.clientWidth),this.setSearchParamIfNotNullOrZero(t,"AV_HEIGHT",null===(i=this.videoElement)||void 0===i?void 0:i.clientHeight)}addGoogleAdsMacrosToUrl(t){var e,i;this.setSearchParamIfNotNullOrZero(t,"width",null===(e=this.videoElement)||void 0===e?void 0:e.clientWidth),this.setSearchParamIfNotNullOrZero(t,"height",null===(i=this.videoElement)||void 0===i?void 0:i.clientHeight)}buildAndSetCustParams(t,e){const i=Object.entries(t.context||{}).reduce((t,[e,i])=>(null!=i&&(t[e]=String(i)),t),{});let n=e.searchParams.get("cust_params")||"";const o=Object.entries(i).map(([t,e])=>t+"="+e);if(o.length>0&&(n=n?n+"&"+o.join("&"):o.join("&")),n&&e.searchParams.set("cust_params",n),"Aniview"===t.adProvider)for(const t in i)e.searchParams.set(t,i[t])}pause(){var t;null===(t=this.adsManager)||void 0===t||t.pause()}resume(){var t;null===(t=this.adsManager)||void 0===t||t.resume()}handleFullscreenChange(){this.resizeToVideoElement()}resizeToVideoElement(){this.adsManager&&this.videoElement&&setTimeout(()=>{var t,e;const i=null===(t=this.videoElement)||void 0===t?void 0:t.getBoundingClientRect(),n=null==i?void 0:i.width,o=null==i?void 0:i.height;n&&o&&(null===(e=this.adsManager)||void 0===e||e.resize(n,o,this.googleIMA.ViewMode.NORMAL))},250)}}},6576:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VideoModalTemplate=void 0;const n=i(5417),o=i(9965),r=i(4545),s=i(2601);e.VideoModalTemplate=class extends n.BaseModalTemplate{createModal(t,e){const i=new s.BlazeWidgetVideoModal(t,e);return i.id="blaze-video-modal-"+Math.random().toString(36),i.playerLayout=e,i}configureModal(t,e){var i;t.setModalContent(e),t.seek(null!==(i=e[0].id)&&void 0!==i?i:"")}getService(){return r.VideoService}getErrorCode(){return o.ErrorCode.FailedLoadingVideos}}},6610:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.ShortFormHLSStrategy=void 0;const o=i(1908),r=i(8252);e.ShortFormHLSStrategy=class extends r.BaseHLSStrategy{constructor(){super(...arguments),this.isPrefetchMode=!1,this.fragmentsLoaded=0,this.maxPrefetchFragments=2,this.isBufferLoaderActive=!1,this.lastProgressTime=0,this.lastCurrentTime=0,this.boundOnTimeUpdate=this.handleTimeUpdate.bind(this),this.MIN_BUFFER_BEFORE_RECOVERY=.5,this.lastRecoveryAttempt=0,this.RECOVERY_COOLDOWN=3e3}initialize(t){this.loaderDelegate=null==t?void 0:t.loaderDelegate,this.setupEventListeners()}setupEventListeners(){super.setupEventListeners(),this.video.addEventListener(o.EVENTS.TIMEUPDATE,this.boundOnTimeUpdate)}setupHLSInstance(t,e){super.setupHLSInstance(t,e,r.HLS_CONFIGS.SHORT_FORM),this.video.setAttribute("webkit-playsinline","true"),this.video.playsInl
1ine=!0,this.video.controls=!1,this.video.muted=this.videoPlayerState.isMuted,this.hls&&this.hls.on(Hls.Events.MANIFEST_PARSED,this.handleManifestParsedForPrefetch.bind(this))}handleManifestParsedForPrefetch(){this.isPrefetchMode?this.startPrefetchLoading():this.hls&&"function"==typeof this.hls.startLoad&&this.hls.startLoad()}startPrefetchLoading(){if(!this.hls||"function"!=typeof this.hls.startLoad)return;this.fragmentsLoaded=0;const t=()=>{var e,i;this.fragmentsLoaded++,this.fragmentsLoaded>=this.maxPrefetchFragments&&(null===(e=this.hls)||void 0===e||e.stopLoad(),null===(i=this.hls)||void 0===i||i.off(Hls.Events.FRAG_LOADED,t))};this.hls.on(Hls.Events.FRAG_LOADED,t),this.hls.startLoad()}enablePrefetchMode(){this.isPrefetchMode=!0}disablePrefetchMode(){this.isPrefetchMode=!1}onLoadingState(){var t,e;null===(e=null===(t=this.loaderDelegate)||void 0===t?void 0:t.show)||void 0===e||e.call(t)}onBufferUpdate(t){}handlePlaying(){var t,e;this.isBufferLoaderActive&&(this.isBufferLoaderActive=!1),null===(e=null===(t=this.loaderDelegate)||void 0===t?void 0:t.hide)||void 0===e||e.call(t),this.lastProgressTime=Date.now(),this.lastCurrentTime=this.video.currentTime}handlePause(){var t,e;this.isBufferLoaderActive&&(this.isBufferLoaderActive=!1),null===(e=null===(t=this.loaderDelegate)||void 0===t?void 0:t.hide)||void 0===e||e.call(t)}handlePlaybackTimeout(){var t,e,i,n,o,r;"visible"!==document.visibilityState||document.hidden||(this.onLoadingState(),this.isSlowConnection()||this.getBufferAhead()>0?this.hls&&(this.hls.levels&&this.hls.levels.length>1&&(this.hls.currentLevel=0),this.hls.startLoad()):this.hls&&(this.video.error?null===(e=(t=this.hls).recoverMediaError)||void 0===e||e.call(t):(this.pause(),null===(n=(i=this.hls).detachMedia)||void 0===n||n.call(i),null===(r=(o=this.hls).attachMedia)||void 0===r||r.call(o,this.video),this.video.play().catch(t=>{this.reloadStream()}))))}onError(t,e){e.fatal||e.details}handleError(t,e){var i,n;if(this.isBufferLoaderActive=!0,null===(n=null===(i=this.loaderDelegate)||void 0===i?void 0:i.show)||void 0===n||n.call(i),e.fatal||this.canAttemptRecovery())if(e.fatal)super.handleError(t,e);else switch(e.details){case"bufferStalledError":case"bufferNudgeOnStall":if(!this.shouldTriggerRecovery())return;if(this.tryForceLowestQuality())return;break;case"fragLoadTimeOut":if(!this.shouldTriggerRecovery())return;this.tryForceLowestQuality();break;case"manifestLoadError":case"manifestLoadTimeOut":case"fragLoadError":break;default:super.handleError(t,e)}}handleSeekRecovery(t){this.video.paused||super.handleSeekRecovery(t)}seek(t){var e;0!==t||this.video.paused||(this.video.pause(),null===(e=this.hls)||void 0===e||e.stopLoad()),super.seek(t)}play(){const t=Object.create(null,{play:{get:()=>super.play}});return n(this,void 0,void 0,function*(){const e=yield t.play.call(this);return this.startProgressBasedLoaderCleanup(),e})}pause(){super.pause(),this.stopProgressBasedLoaderCleanup()}unload(){var t,e;this.hls&&"undefined"!=typeof Hls&&Hls.isSupported()&&(null===(e=(t=this.hls).stopLoad)||void 0===e||e.call(t)),this.video.removeEventListener(o.EVENTS.TIMEUPDATE,this.boundOnTimeUpdate),this.stopProgressBasedLoaderCleanup(),super.unload()}handleTimeUpdate(){var t,e;const i=this.video.currentTime,n=Date.now();i>this.lastCurrentTime&&(this.lastProgressTime=n,this.lastCurrentTime=i,this.video.paused||this.video.ended||null===(e=null===(t=this.loaderDelegate)||void 0===t?void 0:t.hide)||void 0===e||e.call(t))}startProgressBasedLoaderCleanup(){this.stopProgressBasedLoaderCleanup(),this.lastProgressTime=Date.now(),this.lastCurrentTime=this.video.currentTime,this.progressCheckInterval=setInterval(()=>{this.checkVideoProgressAndCleanupLoader()},1e3)}stopProgressBasedLoaderCleanup(){this.progressCheckInterval&&(clearInterval(this.progressCheckInterval),this.progressCheckInterval=void 0)}checkVideoProgressAndCleanupLoader(){var t,e;const i=Date.now()-this.lastProgressTime,n=this.video.currentTime;!this.video.paused&&!this.video.ended&&n>0&&i<1e3&&(null===(e=null===(t=this.loaderDelegate)||void 0===t?void 0:t.hide)||void 0===e||e.call(t))}getBufferAhead(){const t=this.video.buffered,e=this.video.currentTime;for(let i=0;i<t.length;i++)if(t.start(i)<=e&&e<=t.end(i))return t.end(i)-e;return 0}shouldTriggerRecovery(){return!(this.getBufferAhead()>this.MIN_BUFFER_BEFORE_RECOVERY)}tryForceLowestQuality(){return!(!this.hls||!this.hls.levels||this.hls.levels.length<=1||0===this.hls.currentLevel||(this.hls.currentLevel=0,this.hls.startLoad(),0
1))}canAttemptRecovery(){const t=Date.now();return!(t-this.lastRecoveryAttempt<this.RECOVERY_COOLDOWN||(this.lastRecoveryAttempt=t,0))}}},6614:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},6627:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.WidgetBaseLayout=void 0;const o=i(4403),r=i(6450),s=i(9965),a=i(8921),l=i(8243),d=i(4545),u=i(4906),c=i(9266),h=i(2601),p=i(2740),f=i(1518),g=i(612);e.WidgetBaseLayout=class extends g.BlazeWidgetScrollable{constructor(){super(),this.isWidgetVisible=!1,this.widgetItems=[],this.analyticsStack={},this.shouldReloadData=!0,this.shouldReloadWhenPlayerIsClosed=!1,this.contents=[],this.actionHandlers=[],this.perItemStyleOverrides={playerId:[],teamId:[],gameId:[],roundId:[]},this.activeOverridesLayoutThemes={playerId:[],teamId:[],gameId:[],roundId:[]},this.intersectionObserver=new IntersectionObserver(this.handleIntersection.bind(this))}widgetType(){return this.getTheme().layoutStyle.columns>1?"Grid":"Row"}get thumbnailShape(){var t;return(null===(t=this.getTheme())||void 0===t?void 0:t.layoutStyle.thumbnailShape)||this.getAttribute("thumbnail-shape")}get theme(){return this.getTheme()}updateActiveLayoutThemesPerItemWithEntity(t,e,i){const n=this.activeOverridesLayoutThemes[t];if(n){const t=n.findIndex(t=>t.name===e);-1!==t&&n.splice(t,1),n.push({name:e,theme:i})}else this.activeOverridesLayoutThemes[t]=[{name:e,theme:i}]}setReloadData(t){this.shouldReloadData="object"!=typeof t||!t.hasOwnProperty("shouldReloadData")||"boolean"!=typeof t.shouldReloadData||t.shouldReloadData}set contentIds(t){this.setAttribute("content-ids",t)}set storyIds(t){this.setAttribute("story-ids",t)}addDelegateListener(t,e,i){a.WidgetsFactory.whenDefined("blaze-widget-story-modal").then(()=>{var n;null===(n=this.storysModal)||void 0===n||n.addEventListener(t,e,i)})}event(t,e,i){var n,s,a,l;if(t==r.WidgetAction.Load||t==r.WidgetAction.Visible){if(this.analyticsStack[t])return;this.analyticsStack[t]=!0}try{const r=this.getBoundingClientRect();e.widget_id=this.id,e.widget_content_count=null===(n=this.widgetItems)||void 0===n?void 0:n.length,e.widget_content_list=(null===(s=this.contents)||void 0===s?void 0:s.length)?JSON.stringify(this.contents.map(t=>t.id)):"",e.widget_size=r.width&&r.height?Math.round(r.width)+"x"+Math.round(r.height):"",e.widget_type=null===(a=this.widgetType)||void 0===a?void 0:a.call(this),e.placement_distance=Math.round(r.top).toString(),e.content_type=null===(l=this.getAttribute("content-type"))||void 0===l?void 0:l.replace(/^\w/,t=>t.toUpperCase()),e.thumbnail_aspect_ratio=this.getTheme().layoutStyle.itemRatio.toString(),e.thumbnail_type=this.thumbnailShape,e.thumbnail_size=this.thumbnailWidth&&this.thumbnailHeight?this.thumbnailWidth+"x"+this.thumbnailHeight:"";const u=new o.ReferringEventInfo;u.labels_expression=this.getAttribute("labels"),document.referrer&&(u.referrer_page_url=document.referrer),d.AnalyticsService.pushWidgetEvent(t,Object.assign({},e),i,u)}catch(t){}}getTheme(){switch(this.getAttribute("content-type")){case"moment":return this.preset||u.ThemeFactory.create("default","moment");case"story":return this.preset||u.ThemeFactory.create("default","story");case"video":return this.preset||u.ThemeFactory.create("default","video");default:return this.preset||u.ThemeFactory.create("default")}}setTheme(t){var e,i,n,o;const r=this.getAttribute("content-type");let s;if("string"==typeof t){if("moment"!==r&&"story"!==r&&"video"!==r&&r)throw new Error("Invalid content type");s="moment"===r?u.ThemeFactory.create(t,"moment"):"story"===r?u.ThemeFactory.create(t,"story"):u.ThemeFactory.create(t,"video")}else{if(!(0,l.isWidgetTheme)(t))throw new Error("Invalid theme type");if((0,u.isStoryPlayerStyle)(t.playerStyle)&&"story"!==r)throw new Error("Invalid theme type - story player style for "+r+" content type");if((0,u.isMomentPlayerStyle)(t.playerStyle)&&"moment"!==r)throw new Error("Invalid theme type - moment player style for "+r+" content type");if((0,u.isVideoPlayerStyle)(t.playerStyle)&&"video"!==r)throw new Error("Invalid theme type - video player style for "+r+" content type");s=t}this.preset=s,null===(e=this.widgetItems)||void 0===e||e.forEach(t=>t.setTheme(s.layoutStyle)),null===(i=this.storysModal)||void 0===i||i.setTheme(s.playerStyle),null===(n=this.momentsModal)||void 0===n||n.setTheme(s.playerStyle),null===(o=this.videosModal)||void 0===o||o.setTheme(s.playerStyle),this.contents.length&&this.render()}reload(){this.storysModal&&this.storysModal.isOpen||this.momentsModal&&this.momentsModal.isOpen||this.videosModal&&this.videosModal.isOpen?this.shouldReloadWhenPlayerIsClosed=!0:(this.shouldReloadData=!0,this.loadContent())}setMaxItemsDisplaySize(t){this.setAttribute("max-display-items-count",t.toString())}setDelegations(t){for(const e in t)this.addEventListener(e,t[e])}setOrderType(t){this.setAttribute("order-type",t||"")}updateDataSource(t){if(!t)return;const{sourceType:e,ids:i,labels:n,text:o,recommendations:r,orderType:s,maxItems:a,labelsPriority:l,personalized:d,advancedOrdering:u}=t,c={shouldReloadData:!1};(n||i||o||r)&&(this.setOrderType(s),this.setMaxItemsSize(a,c),this.setPersonalized(d),this.setAdvancedOrdering(u),"ids"===e&&i?(this.setContentIds(i,c),this.setLabelsPriority("",c),this.setLabels("",c),this.setRecommendations(void 0,c),this.setSearchText("",c)):"labels"===e&&n?(this.setLabels(n,c),this.setLabelsPriority((null==l?void 0:l.toString())||"",c),this.setContentIds([],c),this.setRecommendations(void 0,c),this.setSearchText("",c)):"text"===e&&o?(this.setSearchText(o,c),this.setLabels("",c),this.setLabelsPriority("",c),this.setContentIds([],c),this.setRecommendations(void 0,c)):"recommendations"===e&&r&&(this.setRecommendations(r,c),this.setLabels("",c),this.setLabelsPriority("",c),this.setContentIds([],c),this.setSearchText("",c)))}setPersonalized(t){this.personalized=t}setAdvancedOrdering(t){this.setAttribute("advanced-ordering",t||"")}setLabels(t,e){this.setReloadData(e);let i="";if("string"==typeof t)i=t;else if(Array.isArray(t))i=t.join();
1else{if(!(t instanceof o.BlazeWidgetLabel))throw new Error("fail to set labels - "+t+", labels must be string, array of strings, or BlazeWidgetLabel...");i=t.toString()}this.setAttribute("labels",i)}setLabelsPriority(t,e){if(!t)return void this.setAttribute("labels-priority","");this.setReloadData(e);let i="";if("string"==typeof t)i=t.startsWith("[")&&t.endsWith("]")?t:"["+t+"]";else{if(!Array.isArray(t))throw new Error("Failed to set labels priority - "+t+". Labels priority must be a string, array of strings, or array of BlazeWidgetLabel.");i=t.every(t=>t instanceof o.BlazeWidgetLabel)?"["+t.map(t=>t.toString()).join()+"]":"["+t.join()+"]"}this.setAttribute("labels-priority",i)}setSearchText(t,e){this.setReloadData(e),this.setAttribute("text",t)}setContentIds(t,e){var i;this.setReloadData(e),((null===(i=this.getAttribute("story-ids"))||void 0===i?void 0:i.split(","))||[]).length>0?this.storyIds=t.join():this.contentIds=t.join()}setMaxItemsSize(t,e){this.setReloadData(e),this.setAttribute("max-items",(null==t?void 0:t.toString())||"")}setActionHandlers(t){this.actionHandlers=t}setRecommendations(t,e){this.setReloadData(e),this.setAttribute("recommendations",t?JSON.stringify(t):"")}appendModalToBlazeSDK(t){const e=document.getElementsByTagName("blaze-sdk")[0];e&&e.append(t)}updateWidgetsData(){const t=this.getAttribute("content-type");if("story"===t||!t)for(const t of this.contents)t.hasViewed=(0,c.isReadByLastUnIgnoredPageStatus)(t)}sortContent(){const t=this.getAttribute("advanced-ordering");if("story"===this.getContentType()){const e="LiveFirst"===t,i=t=>{let i=0;return e&&(i+=t.isLive?0:1),i+(0,c.getContentScore)(t)};this.contents.sort((t,e)=>i(t)-i(e))}else this.contents.sort((t,e)=>(0,c.getContentScore)(t)-(0,c.getContentScore)(e))}reorderWidgets(){this.updateWidgetsData(),this.getAttribute("should-order-widget-by-read-status")&&("Manual"!=this.getAttribute("order-type")&&this.sortContent(),this.reorderWidgetItems()),this.updateWidgetDisplay()}getContentType(){return this.getAttribute("content-type")||"story"}static get observedAttributes(){return["story-ids","content-ids","content-type","max-display-items-count","max-items","labels-priority","labels","order-type","preset","recommendations","text"]}createModal(t){"video"===t?customElements.whenDefined("blaze-video-modal").then(()=>{this.videosModal||(this.videosModal=new h.BlazeWidgetVideoModal(this,this.getTheme().playerStyle),this.appendModalToBlazeSDK(this.videosModal),this.setupVideoModalCallbacks())}):"moment"===t?customElements.whenDefined("blaze-widget-moment-modal").then(()=>{this.momentsModal||(this.momentsModal=new p.BlazeWidgetMomentModal(this,this.getTheme().playerStyle,this.actionHandlers),this.appendModalToBlazeSDK(this.momentsModal),this.setupMomentModalCallbacks())}):"story"!==t&&""!==t||customElements.whenDefined("blaze-widget-story-modal").then(()=>{this.storysModal||(this.beforeStoryModalCreation(),this.storysModal=new f.BlazeWidgetStoryModal(this,this.getTheme().playerStyle,this.actionHandlers),this.appendModalToBlazeSDK(this.storysModal),this.setupStoryModalCallbacks())})}beforeStoryModalCreation(){}loadContent(){return n(this,void 0,void 0,function*(){const t=this.getAttribute("content-type"),e="story"===t||!t,i="moment"===t,n="video"===t;if(this.createModal(t),!this.shouldReloadData)return;const o=this.getAttribute("max-items"),r=this.getAttribute("labels"),a=this.getAttribute("labels-priority"),l=this.getAttribute("order-type"),u=this.getAttribute("advanced-ordering"),c=this.personalized,h=this.getAttribute("text"),p=this.getAttribute("recommendations")?JSON.parse(this.getAttribute("recommendations")):void 0,f=this.getAttribute("story-ids"),g=null==f?void 0:f.split(","),v=this.getAttribute("content-ids"),y=null==v?void 0:v.split(",");let m=[];try{let t;d.EventService.dispatch(this,s.Delegation.onWidgetDataLoadStarted,{widgetId:this.id});let f="labels";if((null==r?void 0:r.length)?f="labels":(null==v?void 0:v.length)?f="ids":((null==p?void 0:p.forYou)||(null==p?void 0:p.trending))&&(f="recommendations"),e){const e=(null==g?void 0:g.length)||(null==y?void 0:y.length)?"ids":(null==r?void 0:r.length)?"labels":(null==h?void 0:h.length)?"text":"labels";t=yield d.StoryService.fetchContent({sourceType:e,ids:g||y,labels:r,text:h,orderType:l,maxItems:o,labelsPriority:a,advancedOrdering:u,personalized:c,recommendations:p})}else if(i){let e="labels";(null==v?void 0:v.length)?e="ids":(null==r?void 0:r.length)?e="labels":(null==p?void 0:p.forYou)||(null==p?void 0:p.trending)?e="recommendations":(null==h?void 0:h.length)&&(e="text"),t=yield d.MomentService.fetchContent({sourceType:e,ids:y,labels:r,text:h,orderType:l,maxItems:o,labelsPriority:a,recommendations:p})}else if(n){const e=(null==v?void 0:v.length)?"ids":(null==r?void 0:r.length)?"labels":(null==h?void 0:h.length)?"text":"labels";t=yield d.VideoService.fetchContent({sourceType:e,ids:y,labels:r,text:h,orderType:l,maxItems:o,labelsPriority:a,recommendations:p})}if(t&&(m=t.result,this.defaultAdsInfo=null==t?void 0:t.defaultAdsInfo),!m.length)throw new Error(s.ErrorCode.FailedLoadingStories.toString());t&&t.assetsExpiryTime&&this.handleAssetsExpiry(t)}catch(t){return void(yield this.handleContentLoadError(t))}try{e?this.contents=yield d.StoryService.enrichContent(m):i?this.contents=yield d.MomentService.enrichContent(m):n&&(this.contents=yield d.VideoService.enrichContent(m))}catch(t){this.contents=m,d.EventService.dispatch(this,s.Delegation.onErrorThrown,{widgetId:this.id,errorCode:s.ErrorCode.FailedEnrichStories})}yield this.handlePostContentLoad(e,i,n)})}handleContentLoadError(t){return n(this,void 0,void 0,function*(){var t;yield null===(t=this.removeSkeletonContainer)||void 0===t?void 0:t.call(this),d.EventService.dispatch(this,s.Delegation.onWidgetDataLoadCompleted,{widgetId:this.id,storyCount:0,contentCount:0}),d.EventService.dispatch(this,s.Delegation.onErrorThrown,{widgetId:this.id,errorCode:s.ErrorCode.FailedLoadingStories})})}handleStoryContent(){var t,e,i;if(null===(t=this.storysModal)||void 0===t||t.setModalContent(this.contents,0),!(0,u.isStoryPlayerStyle)(this.theme.playerStyle))throw new Error("Invalid player style for story content");null===(e=this.storysModal)||void 0===e||e.setTheme(this.theme.playerStyle),"default"===d.ConfigService.prefetchingPolicy&&(null===(i=this.storysModal)||void 0===i||i.player.contentList[0].load())}handleVideoContent(){var t,e;if(null===(t=this.videosModal)||void 0===t||t.setModalContent(this.contents),!(0,u.isVideoPlayerStyle)(this.theme.playerStyle))throw new Error("Invalid player style for video content");null===(e=this.videosModal)||void 0===e||e.setTheme(this.theme.playerStyle)}handleMomentContent(){var t,e,i;if(!(0,u.isMomentPlayerStyle)(this.theme.playerStyle))throw new Error("Invalid player style for moment content");null===(t=this.momentsModal)||void 0===t||t.setModalContent(this.contents,0,this.defaultAdsInfo),null===(e=this.momentsModal)||void 0===e||e.setTheme(this.theme.playerStyle),"default"===d.ConfigService.prefetchingPolicy&&(null===(i=this.momentsModal)||void 0===i||i.player.contentList[0].load("direct"))}attributeChangedCallback(t,e,i){if(i)switch(t){case"labels":case"labels-priority":this.hasAttribute("labels")&&this.loadContent();break;case"story-ids":case"content-ids":this.hasAttribute("labels")||this.loadContent();break;case"text":case"recommendations":this.loadContent();break;case"preset":this.setTheme(i);break;case"max-display-items-count":if(isNaN(Number(i)))break;const e=Number(i);
1this.widgetItems.length&&this.widgetItems.forEach((t,i)=>{t.style.display=i<e?"grid":"none"}),this.updateWidgetDisplay();break;case"max-items":(this.hasAttribute("labels")||this.hasAttribute("content-ids")||this.hasAttribute("story-ids")||this.hasAttribute("text")||this.hasAttribute("recommendations"))&&this.loadContent()}else"labels"===t&&d.EventService.dispatch(this,s.Delegation.onErrorThrown,{widgetId:this.id,errorCode:s.ErrorCode.FailedToHaveLabels})}playVideo(t){if(!this.videosModal)return;this.videosModal.setModalContent(this.contents),d.VideoPlayerService.playReference="Widget",this.videosModal.player.contentList.forEach((t,e)=>{t.startTrigger="Widget",t.refContentModal=this.videosModal,t.widgetParentItem=this.widgetItems.length?this.widgetItems[e]:{},t.playerStyle=this.theme.playerStyle});const e=this.videosModal.player.contentList.findIndex(e=>e.data.id===t),i=this.widgetItems[e];i&&this.videosModal.id&&i.setAttribute("aria-controls",this.videosModal.id),this.videosModal.seek(null!=t?t:""),this.videosModal.open()}playMoment(t){if(!this.momentsModal)return;const e=this.momentsModal.player.contentList.findIndex(e=>e.data.id===t);this.momentsModal.setModalContent(this.contents,e,this.defaultAdsInfo),this.momentsModal.player.contentList.forEach((t,e)=>{t.momentIndex=e}),d.VideoPlayerService.playReference="Widget",this.momentsModal.player.contentList.forEach((e,i)=>{e.startTrigger="Widget",e.refContentModal=this.momentsModal,e.widgetParentItem=this.widgetItems.length?this.widgetItems[i]:{},e.playerStyle=this.theme.playerStyle,e.data.id===t&&e.load("direct")});const i=this.widgetItems[e];i&&this.momentsModal.id&&i.setAttribute("aria-controls",this.momentsModal.id),this.momentsModal.seek(null!=t?t:""),this.momentsModal.open()}playStory(t){if(!this.storysModal)return;const e=this.storysModal.player.contentList.findIndex(e=>e.data.id===t);this.storysModal.setModalContent(this.contents,e,this.defaultAdsInfo),d.VideoPlayerService.playReference="Widget",this.storysModal.parentWidget=this,this.storysModal.player.contentList.forEach((e,i)=>{e.startTrigger="Widget",e.refContentModal=this.storysModal,e.widgetParentItem=this.widgetItems.length?this.widgetItems[i]:{},e.resetStoryLocationIndexToLastUnseen(),e.data.id===t&&e.load()});const i=this.widgetItems[e];i&&this.storysModal.id&&i.setAttribute("aria-controls",this.storysModal.id),this.storysModal.seek(t),this.storysModal.open()}handleAssetsExpiry(t){}}},6656:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeTypography=void 0;const n=i(4403);e.BlazeTypography=class extends n.BaseWidget{constructor(){super()}static get observedAttributes(){return["size","text"]}get size(){return this.getAttribute("size")}set size(t){this.setAttribute("size",t)}get text(){return this.getAttribute("size")}set text(t){this.setAttribute("text",t)}connectedCallback(){}disconnectedCallback(){}attributeChangedCallback(t,e,i){switch(t){case"size":this.onSizeChange(i);break;case"text":this.onTextChange(i)}}onSizeChange(t){this.setStyle({fontSize:this.fontSize})}onTextChange(t){this.innerHTML=t}get fontSize(){switch(this.size){case"small":return".5rem";default:case"medium":return".8rem";case"large":return"1rem"}}}},6806:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetStory=void 0;const o=i(9126),r=i(2904),s=i(5785),a=i(4403),l=i(6450),d=i(9965),u=i(8921),c=i(277),h=i(4545),p=i(4906),f=i(3574),g=i(9266);e.BlazeWidgetStory=class extends r.BlazeWidgetContent{get currentPageIndexWithoutCustomAds(){return this.pageIndex-this.pages.slice(0,this.pageIndex).filter(t=>{var e;return"Ad"===(null===(e=t.data)||void 0===e?void 0:e.type)}).length}getShareablePageId(){var t,e;if(this.currentPage&&!this.currentPage.isAd)return(null===(t=this.currentPage.data)||void 0===t?void 0:t.id)||null;for(let t=this.pageIndex-1;t>=0;t--){const i=this.pages[t];if(!(null==i?void 0:i.isAd))return(null===(e=i.data)||void 0===e?void 0:e.id)||null}return null}constructor(t,e,i=[],n,r=h.VideoPlayerService){var c;super(),this.playerStyle=t,this.mode=e,this.actionHandlers=i,this.aspectRatio=n,this.videoPlayerState=r,this.pages=[],this.data={},this.isStoryLoadCompletedTriggered=!1,this.isStoryActive=!1,this.isResumeOnFocusExecuted=!1,this.isUnloading=!1,this.isCtaWasClickedOrSwiped=!1,this.pageIndex=0,this.contentType="story",this.resumeAfterfocus=!1,this.totalPlayStopwatch=new g.Stopwatch,this.navigationTimeout=null,this.prefetchTimeout=null,this.lastPageIndexToResume=0,this.elementsToHideOnWebAds=[],this.elementsToHideOnImaAds=[],this.requestAnimationId=null,this.shouldShowImaAdOnStart=!1,this.lastBannerRefreshInWatchTimeMS=0,this.boundOnResumeEvent=this.onResumeEvent.bind(this),this.boundOnPauseEvent=this.onPauseEvent.bind(this),this.boundOnNextPageEvent=this.onNextPageEvent.bind(this),this.boundOnPrevPageEvent=this.onPrevPageEvent.bind(this),this.playbackParts=[],(0,g.mergeStyles)(this.container,{position:"relative",width:"100%",height:"100%",minHeight:"100%",background:"#000000"}),this.shadowTopElement=document.createElement("div"),this.shadowTopElement.style.background="linear-gradient(rgba(0, 0, 0, 0.7), transparent)",this.shadowTopElement.style.background="-webkit-linear-gradient(rgba(0, 0, 0, 0.7), transparent)",this.shadowTopElement.style.position="absolute",this.shadowTopElement.style.width="100%",this.shadowTopElement.style.height="30%",this.shadowTopElement.style.top="0px",this.shadowTopElement.style.borderRadius=this.getContainerBorderRadius(),this.shadowTopElement.style.zIndex=l.Z_INDEX.onTopOfPlayer,this.shadowTopElement.style.pointerEvents="none",this.container.appendChild(this.shadowTopElement);const p=u.WidgetsFactory.create("blaze-div");if((0,g.mergeStyles)(p,{position:"absolute",top:"0%",left:"0%",right:"0%",height:"3px",opacity:"80%",margin:"16px",zIndex:l.Z_INDEX.onTopOfPlayer}),this.progressElement=document.createElement("div"),(0,g.mergeStyles)(this.progressElement,{width:"100%",height:"100%",display:"grid"}),p.append(this.progressElement),this.container.append(p),"mobile"===a.deviceDetector.platform||"tablet"===a.deviceDetector.platform){const t=()=>{this.videoPlayerState.isPlaying&&!h.VideoPlayerService.isNavigating&&(this.event(l.StoryAction.PlaybackPause,{playback_action_method:"Press"}),this.pause())},i=()=>{this.videoPlayerState.isPlaying&&!h.VideoPlayerService.isNavigating&&(this.event(l.StoryAction.PlaybackPlay,{playback_action_method:"Release"}),this.resume())};if("Embedded"!==e){const e=new a.LongPressHandler({onStart:t,onEnd:i});e.attach(this.container),this.longPressHandler=e}}const v=()=>{var t,e,i;null===(t=this.shareModal)||void 0===t||t.close(),null===(e=this.closedCaptionsModal)||void 0===e||e.close(),this.exitTrigger="Skip",this.navigationType="Manual",this.navigationDirection="Backwards","SingleContent"!==h.VideoPlayerService.playReference||0!==this.pageIndex?("SingleContent"===h.VideoPlayerService.playReference&&this.revertNextPageButtonToPreviousAction(),null===(i=this.resumeAfterBlurButton)||void 0===i||i.setAttribute("blaze-btn-hidden","true"),this.videoPlayerState.isPlaying=!0,this.goPrevPage()):this.currentPage.currentTime=0},y=()=>{var t,e,i,n,o,r,s;null===(t=this.shareModal)||void 0===t||t.close(),null===(e=this.closedCaptionsModal)||void 0===e||e.close(),this.exitTrigger="Skip",this.navigationType="Manual",this.navigationDirection="Forwards","SingleContent"===h.VideoPlayerService.playReference&&this.hasNoMorePagesToPlay()?h.ConfigService.shouldAutoAdvance&&(null===(n=null===(i=this.refContentModal)||void 0===i?void 0:i.player)||void 0===n||n.renderPlayerBackgroun
1d(!0),null===(r=null===(o=this.refContentModal)||void 0===o?void 0:o.player)||void 0===r||r.animateCloseWithDirection({direction:"HorizontalForwards",callback:()=>a.URLManager.navigateTo("AUTO_ADVANCE")})):(null===(s=this.resumeAfterBlurButton)||void 0===s||s.setAttribute("blaze-btn-hidden","true"),this.videoPlayerState.isPlaying=!0,this.goNextPage(this.navigationType))},m=u.WidgetsFactory.create("blaze-button");m.setAttribute("aria-hidden","true"),m.setAttribute("role","presentation"),m.setAttribute("tabindex","-1"),m.setAttribute("data-testid","blaze-widget-story-prev-page-button"),m.setStyle({position:"absolute",top:"0",right:"0",bottom:"15%",left:"0",width:"30%",height:"85%",opacity:"0","-webkit-tap-highlight-color":"transparent",zIndex:l.Z_INDEX.player});const b=u.WidgetsFactory.create("blaze-button");b.setAttribute("aria-hidden","true"),b.setAttribute("role","presentation"),b.setAttribute("tabindex","-1"),b.setAttribute("data-testid","blaze-widget-story-next-page-button"),b.setStyle({position:"absolute",top:"0",right:"RTL"===h.ConfigService.layoutDirection?"30%":"0",bottom:"15%",left:"RTL"===h.ConfigService.layoutDirection?"0":"30%",width:"70%",height:"85%",opacity:"0","-webkit-tap-highlight-color":"transparent",zIndex:l.Z_INDEX.player}),m.addEventListener("click",(0,a.throttle)(v,100)),b.addEventListener("click",(0,a.throttle)(y,100)),this.container.append(m),this.container.append(b),this.topContainer=u.WidgetsFactory.create("blaze-div"),this.topContainer.setStyle({position:"absolute",top:"40px",width:"100%",paddingLeft:"16px",paddingRight:"16px",display:"flex",justifyContent:"space-between",boxSizing:"border-box",columnGap:"10px",zIndex:l.Z_INDEX.onTopOfPlayer}),this.contentWrapper=u.WidgetsFactory.create("blaze-div"),this.contentWrapper.setStyle({minWidth:"0",display:"flex",flex:"3",gap:"8px",alignItems:"baseline"}),this.contentChip=u.WidgetsFactory.create("blaze-div"),g.AccessibilityUtils.setElementAccessibilityHidden(this.contentChip),this.contentChip.setStyle({display:"flex",alignItems:"center",height:"17px",boxSizing:"border-box",fontWeight:"600",alignSelf:"flex-start",borderRadius:this.playerStyle.statusLiveStyle.borderRadius,padding:this.playerStyle.statusLiveStyle.padding,fontFamily:this.playerStyle.statusLiveStyle.font,color:this.playerStyle.statusLiveStyle.textColor,borderWidth:this.playerStyle.statusLiveStyle.borderWidth+"px"}),this.contentTitle=u.WidgetsFactory.create("blaze-div"),g.AccessibilityUtils.setElementAccessibilityHidden(this.contentTitle),this.contentTitle.innerText="",this.contentTitle.setStyle({margin:"0px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"600",color:this.playerStyle.titleColor,display:this.playerStyle.titleVisible?"inline":"none",fontFamily:this.playerStyle.titleFont}),this.contentPublishedDate=u.WidgetsFactory.create("blaze-div"),g.AccessibilityUtils.setElementAccessibilityHidden(this.contentPublishedDate),this.contentPublishedDate.innerText="",this.contentPublishedDate.setStyle({fontWeight:"600",color:this.playerStyle.publishedDateColor,display:this.playerStyle.publishedDateVisible?"inline":"none",fontFamily:this.playerStyle.publishedDateFont}),this.contentWrapper.append(this.contentTitle),this.contentWrapper.append(this.contentChip),this.contentWrapper.append(this.contentPublishedDate),this.topContainer.append(this.contentWrapper),this.container.append(this.topContainer),this.buttonsContainer=u.WidgetsFactory.create("blaze-div"),this.buttonsContainer.setStyle({display:"flex",height:"30px",gap:"1rem",zIndex:l.Z_INDEX.onTopOfPlayer});const S="iOS"===a.deviceDetector.OS,E="Mobile Safari"===a.deviceDetector.browser,C="tablet"===a.deviceDetector.platform&&"Mac OS"===a.deviceDetector.OS,w=S&&("Safari"===a.deviceDetector.browser||"Chrome"===a.deviceDetector.browser),A=null===(c=this.actionHandlers)||void 0===c?void 0:c.filter(t=>t.actionId===d.ActionHandlerId.AddCustomActionButton).slice(0,2),T=!(!A[0]||!this.playerStyle.icons.customActionButtonOne),I=!(!A[1]||!this.playerStyle.icons.customActionButtonTwo);(S||E||w||C)&&"Embedded"!==this.mode&&this.createResumeAfterBlurButton(),"desktop"===a.deviceDetector.platform&&this.isButtonVisible("PLAY_PAUSE")&&(this.playButtonElement=this.createPlayerButtonsAndAppendToButtonsContainer({iconUrl:this.playerStyle.icons.play,eventType:"click",clickHandler:()=>
1this.playToggle(),dataTestId:"blaze-widget-story-play-button"})),T&&this.isButtonVisible("CUSTOM_ACTION_BUTTON_ONE")&&(this.customActionButtonOneElement=this.createPlayerButtonsAndAppendToButtonsContainer({iconUrl:this.playerStyle.icons.customActionButtonOne,eventType:"click",clickHandler:t=>this.onCustomActionButtonClick(t,A[0].options),dataTestId:"blaze-widget-story-custom-action-button-one"})),I&&this.isButtonVisible("CUSTOM_ACTION_BUTTON_TWO")&&(this.customActionButtonTwoElement=this.createPlayerButtonsAndAppendToButtonsContainer({iconUrl:this.playerStyle.icons.customActionButtonTwo,eventType:"click",clickHandler:t=>this.onCustomActionButtonClick(t,A[1].options),dataTestId:"blaze-widget-story-custom-action-button-two"})),this.isButtonVisible("MUTE_UNMUTE")&&(this.muteButtonElement=this.createPlayerButtonsAndAppendToButtonsContainer({iconUrl:this.playerStyle.icons.mute,eventType:"click",clickHandler:this.muteToggle.bind(this),dataTestId:"blaze-widget-story-mute-button"})),this.isButtonVisible("SHARE")&&(this.shareButtonElement=this.createPlayerButtonsAndAppendToButtonsContainer({iconUrl:this.playerStyle.icons.share,eventType:"click",clickHandler:this.onShareClick.bind(this),dataTestId:"blaze-widget-story-share-button"})),this.isButtonVisible("EXIT_PLAYER")&&(this.exitMobileTabletButtonElement=this.createPlayerButtonsAndAppendToButtonsContainer({iconUrl:this.playerStyle.icons.exitMobileTablet,eventType:"click",clickHandler:t=>{null==t||t.stopPropagation(),this.exitTrigger="Close Button",this.navigationDirection="",this.navigationType="",this.close(!0)},dataTestId:"blaze-widget-story-exit-button"})),this.isButtonVisible("FULLSCREEN")&&(this.fullScreenElement=this.createPlayerButtonsAndAppendToButtonsContainer({iconUrl:this.playerStyle.icons.fullscreen,eventType:"click",clickHandler:this.onExpandClick.bind(this)})),this.isButtonVisible("CLOSED_CAPTIONS")&&h.ConfigService.shouldAllowClosedCaptions&&(this.closedCaptionsButtonElement=this.createPlayerButtonsAndAppendToButtonsContainer({iconUrl:this.playerStyle.icons.closedCaptionsOff,eventType:"click",clickHandler:this.onClosedCaptionClick.bind(this),dataTestId:"blaze-widget-story-closed-captions-button"})),this.topContainer.append(this.buttonsContainer),this.bottomContainer=u.WidgetsFactory.create("blaze-div"),this.bottomContainer.setStyle({position:"absolute",bottom:"desktop"===a.deviceDetector.platform&&"Full Screen"===e?"-100px":"0",width:"100%",height:"auto",padding:"0px 25px "+("Embedded"===e?this.getEmbeddedBottomContainerPaddingBottom():"40px"),display:"flex",flexFlow:"column",boxSizing:"border-box",zIndex:l.Z_INDEX.onTopOfPlayer}),this.bottomButtonsWrapper=u.WidgetsFactory.create("blaze-div"),this.bottomButtonsWrapper.setStyle({display:"flex",flexDirection:"column",width:"100%",alignItems:"center",gap:"8px"}),this.bottomContainer.append(this.bottomButtonsWrapper),this.ctaButtonElement=new s.BlazeCtaButton,this.ctaButtonElement.setStyle({justifyContent:f.positionMap.CENTER}),this.ctaButtonElement.setAnchorButtonStyles({width:"tablet"===a.deviceDetector.platform?"60%":"100%",fontFamily:this.playerStyle.ctaButton.font}),this.ctaButtonElement.setAttribute("hidden-btn","true"),this.ctaButtonElement.addEventListener("click",t=>this.handleCtaAction(t,"CTA Click")),this.updateCtaButtonLayout(),this.bottomButtonsWrapper.append(this.ctaButtonElement),this.bannerAdElement=new o.BlazeWidgetBannerAd(this),"mobile"===a.deviceDetector.platform&&"Embedded"!==e?this.bottomButtonsWrapper.append(this.bannerAdElement):"Embedded"!==e&&(this.bannerAdElement.style.position="absolute",this.bannerAdElement.style.bottom="10px",this.container.append(this.bannerAdElement)),this.container.append(this.bottomContainer),("desktop"===a.deviceDetector.platform&&"Full Screen"===this.mode||"desktop"===a.deviceDetector.platform&&"Embedded"===this.mode&&"Horizontal"===this.aspectRatio)&&(this.nextPageButton=this.createNavigationButtonsAndAppendToWidgetStoryContainer({iconUrl:this.playerStyle.icons.navigation.nextPage,position:"Embedded"===this.mode?"right":"left",margin:"Embedded"===this.mode?"73px":"32px",clickHandler:y,buttonType:"NEXT_PAGE"}),"SingleContent"===h.VideoPlayerService.playReference&&(this.originalNextPageDesktopClickListener=y,this.restartStoryOnClickEvent=(()=>{this.playPage(0),this.revertNextPageButtonToPreviousAction()})),this.prevPageButton=this.createNavigationButtonsAndAppendToWidgetStoryContainer({iconUrl:this.playerStyle.icons.navigation.prevPage,position:"Embedded"===this.mode?"left"
1:"right",margin:"Embedded"===this.mode?"73px":"32px",clickHandler:v,buttonType:"PREV_PAGE"}),this.nextStoryButton=this.createNavigationButtonsAndAppendToWidgetStoryContainer({iconUrl:this.playerStyle.icons.navigation.nextStory,position:"Embedded"===this.mode?"right":"left",margin:"Embedded"===this.mode?"24px":"100px",clickHandler:(0,a.throttle)(()=>{var t,e,i,n,o,r,s,l;if(this.exitTrigger="Skip","SingleContent"===h.VideoPlayerService.playReference&&h.ConfigService.shouldAutoAdvance)return null===(e=null===(t=this.refContentModal)||void 0===t?void 0:t.player)||void 0===e||e.renderPlayerBackground(!0),void(null===(n=null===(i=this.refContentModal)||void 0===i?void 0:i.player)||void 0===n||n.animateCloseWithDirection({direction:"HorizontalForwards",callback:()=>a.URLManager.navigateTo("AUTO_ADVANCE")}));null===(o=this.nextStoryButton)||void 0===o||o.blur(),null===(r=this.onNextStory)||void 0===r||r.call(this,"Manual"),this.dispatchEvent(new CustomEvent(d.InternalEvent.NEXT_STORY,{bubbles:!0,cancelable:!1})),null===(s=this.shareModal)||void 0===s||s.close(),null===(l=this.closedCaptionsModal)||void 0===l||l.close(),this.currentPage.muted=this.videoPlayerState.isMuted},l.ONE_SECOND/4),buttonType:"NEXT_STORY"}),this.prevStoryButton=this.createNavigationButtonsAndAppendToWidgetStoryContainer({iconUrl:this.playerStyle.icons.navigation.prevStory,position:"Embedded"===this.mode?"left":"right",margin:"Embedded"===this.mode?"24px":"100px",clickHandler:(0,a.throttle)(()=>{var t,e,i,n;this.exitTrigger="Skip",null===(t=this.prevStoryButton)||void 0===t||t.blur(),null===(e=this.onPrevStory)||void 0===e||e.call(this,"Manual"),this.dispatchEvent(new CustomEvent(d.InternalEvent.PREV_STORY,{bubbles:!0,cancelable:!1})),null===(i=this.shareModal)||void 0===i||i.close(),null===(n=this.closedCaptionsModal)||void 0===n||n.close(),this.currentPage.muted=this.videoPlayerState.isMuted},l.ONE_SECOND/4),buttonType:"PREV_STORY"})),this.elementsToHideOnWebAds.push(this.bottomContainer,this.contentTitle,this.contentPublishedDate,this.contentChip,this.fullScreenElement,this.closedCaptionsButtonElement,p,this.shadowTopElement,this.buttonsContainer,this.bannerAdElement),this.elementsToHideOnImaAds.push(this.bottomContainer,this.contentTitle,this.contentPublishedDate,this.contentChip,p,this.shadowTopElement,this.buttonsContainer,this.muteButtonElement,this.fullScreenElement,this.closedCaptionsButtonElement,this.shareModal,m,b,this.topContainer,this.bannerAdElement),"Embedded"===this.mode&&(this.elementsToHideOnWebAds.push(this.nextPageButton,this.prevPageButton,this.nextStoryButton,this.prevStoryButton),this.elementsToHideOnImaAds.push(this.nextPageButton,this.prevPageButton,this.nextStoryButton,this.prevStoryButton)),this.addEventListener(d.InternalEvent.BANNER_ANALYTICS,t=>{const e=t.detail;this.bannerAdEvent(e)})}isButtonVisible(t){let e;return e=["MUTE_UNMUTE","EXIT_PLAYER","PLAY_PAUSE","SHARE","FULLSCREEN","CLOSED_CAPTIONS","CUSTOM_ACTION_BUTTON_ONE","CUSTOM_ACTION_BUTTON_TWO"].includes(t)?this.playerStyle.iconsButton.find(e=>e.value===t):this.playerStyle.iconsButtonNavigation.find(e=>e.value===t),"Embedded"===this.mode&&(null==e?void 0:e.isEmbeddedVisible)||"Full Screen"===this.mode&&(null==e?void 0:e.isVisible)}createPlayerButtonsAndAppendToButtonsContainer(t){const{iconUrl:e,eventType:i,clickHandler:n}=t,o=u.WidgetsFactory.create("blaze-button");return o.addEventListener(i,n),o.setIconUrl(e),t.dataTestId&&o.setAttribute("data-testid",t.dataTestId),this.buttonsContainer.append(o),o}createNavigationButtonsAndAppendToWidgetStoryContainer(t){const{buttonType:e,iconUrl:i,position:n,margin:o,clickHandler:r}=t,s=this.playerStyle.iconsButtonNavigation.find(t=>t.value===e),a="RTL"===h.ConfigService.layoutDirection?"left"===n?"right":"left":n,d=u.WidgetsFactory.create("blaze-button");return d.setStyle({position:"absolute",[a]:"Embedded"===this.mode?"0":"100%",top:"50%",transform:"RTL"===h.ConfigService.layoutDirection?"rotate(180deg) translateY(50%)":"translateY(-50%)",["left"===a?"marginLeft":"marginRight"]:o,zIndex:"Embedded"===this.mode?l.Z_INDEX.onTopOfPlayer:"auto"}),s&&this.applyIconStyle(d,s,i),d.addEventListener("click",r),d.setAttribute("data-testid","blaze-widget-story-"+e+"-button"),this.container.append(d),d}createResumeAfterBlurButton(){this.resumeAfterBlurButton=u.WidgetsFactory.create("blaze-button"),this.resumeAfterBlurButton.setIconUrl(c.playResumeIconSvg),this.resumeAfterBlurButton.setAttribute("height","96px"),this.resumeAfterBlurButton.setAttribute("width","96px"),this.resumeAfterBlurButton.setStyle({display:"none",position:"fixed",borderRadius:"50%",zIndex:"99999",top:"20%",padding:"40%",margin:"auto"}),this.resumeAfterBlurButton.addEventListener("click",()=>{var t,e;if(this.resume(),0===this.querySelectorAll("style").length){const t=document.createElement("style");t.innerHTML="\n          @keyframes fadeOut {\n            from {\n              opacity: 1;\n            }\n            to {\n              opacity: 0;\n            }\n          }\n        ",this.append(t)}null===(t=this.resumeAfterBlurButton)||void 0===t||t.setIconUrl(c.pauseResumeIconSvg),null===(e=this.resumeAfterBlurButton)||void 0===e||e.setStyle({opacity:"0",pointerEvents:"none",animation:"fadeOut 0.5s forwards"}),setTimeout(()=>{var t,e;null===(t=this.resumeAfterBlurButton)||void 0===t||t.setIconUrl(c.playResumeIconSvg),null===(e=this.resumeAfterBlurButton)||void 0===e||e.setStyle({opacity:"1",pointerEvents:"auto",animation:"unset",display:"none"})},l.ONE_SECOND)}),this.container.append(this.resumeAfterBlurButton)}applyIconStyle(t,e,i){t.setIconUrl(i),t.style.display=e.isVisible?"block":"none",(null==e?void 0:e.padding)&&"Embedded"!==this.mode?t.style.padding=e.padding:"Embedded"===this.mode&&(t.style.padding="5px"),(null==e?void 0:e.borderRadius)&&(t.style.borderRadius=e.borderRadius),(null==e?void 0:e.backgroundColor)&&(t.style.backgroundColor=e.backgroundColor),(null==e?void 0:e.size)&&"Embedded"!==this.mode?(t.setAttribute("width",e.size),t.setAttribute("height",e.size)):(null==e?void 0:e.embeddedSize)&&"Embedded"===this.mode&&(t.setAttribute("width",e.embeddedSize),t.setAttribute("height",e.embeddedSize)),(null==e?void 0:e.color)&&t.setAttribute("icon-color",e.color)}onCustomActionButtonClick(t,e){e.onClick(t,this.data.entities),this.event(l.StoryAction.CustomActionButtonClick,{custom_action_button_name:e.buttonName})}onLanguageChange(t){var e,i,n,o;const r=(null===(e=this.currentContentPage.closedCaptions)||void 0===e?void 0:e.find(e=>""+e.language===t.detail.language))?null===(i=this.playerStyle)||void 0===i?void 0:i.icons.closedCaptionsOn:null===(n=this.playerStyle)||void 0===n?void 0:n.icons.closedCaptionsOff;null===(o=this.closedCaptionsButtonElement)||void 0===o||o.setIconUrl(r||"")}onShareClick(){return n(this,void 0,void 0,function*(){var t;this.event(l.StoryAction.ShareClick,{}),this.videoPlayerState.isPlaying&&this.pause();const e=this.getShareablePageId(),i=a.URLManager.buildShareUrl("story",this.data.id,e||void 0);(null===navigator||void 0===navigator?void 0:navigator.share)?navigator.share({text:this.data.title,url:i}).then(()=>{this.event(l.StoryAction.ShareSuccess,{})}).catch(t=>{var e;"AbortError"!==t.name&&(null===(e=this.shareModal)||void 0===e||e.open(i))}).finally(()=>{this.videoPlayerState.isPlaying&&this.resume()}):null===(t=this.shareModal)||void 0===t||t.open(i)})}onClosedCaptionClick(){var t;null===(t=this.closedCaptionsModal)||void 0===t||t.open()}updateCtaButtonLayout(){var t;this.ctaButtonElement.setStyle({height:"Embedded"===this.mode?this.getEmbeddedCtaButtonHeight():null!==(t=this.playerStyle.ctaButton.height)&&void 0!==t?t:l.DEFAULT_CTA_HEIGHT+"px"}),"Horizontal"===this.aspectRatio&&this.ctaButtonElement.setStyle({width:this.playerStyle.ctaButton.width===p.Presets.CtaButtonStyle.width?"50%":this.playerStyle.ctaButton.width}),"Embedded"===this.mode&&("mobile"===a.deviceDetector.platform?this.ctaButtonElement.setStyle({maxWidth:"Horizontal"===this.aspectRatio?"150px":"100%"}):"tablet"===a.deviceDetector.platform?this.ctaButtonElement.setStyle({maxWidth:"200px"}):this.ctaButtonElement.setStyle({maxWidth:"320px"})),this.bottomContainer.setStyle({paddingLeft:"CENTER"!==this.playerStyle.ctaButton.position?"10px":"25px",paddingRight:"CENTER"!==this.playerStyle.ctaButton.position?"10px":"25px"}),this.bottomButtonsWrapper.setStyle({alignItems:f.positionMap[this.playerStyle.ctaButton.position]}),this.ctaButtonElement.setStyle({justifyContent:f.positionMap[this.playerStyle.ctaButton.position]}),this.ctaButtonElement.setAnchorButtonStyles({fontSize:a.TextScaleService.scaleFontSize("Embedded"===this.mode?"14px":this.playerStyle.ctaButton.fontSize),fontFamily:this.playerStyle.ctaButton.font,fontWeight:this.playerStyle.ctaButton.fontWeight,textTransform:this.playerStyle.ctaButton.textTransform,borderRadius:this.playerStyle.ctaButton.borderRadius,border:this.playerStyle.ctaButton.border}),this.ctaButtonElement.setCtaIconStyles({display:this.playerStyle.ctaButton.icon.isVisible?"inline-flex":"none",padding:this.playerStyle.ctaButton.padding}),this.ctaButtonElement.setAttribute("icon-url",this.playerStyle.ctaButton.icon.url),this.ctaButtonElement.setAttribute("icon-size",this.playerStyle.ctaButton.icon.size)}updateChip(){this.playerStyle.statusLiveStyle.isVisible&&this.data.isLive?(this.contentChip.style.display="flex",this.contentChip.style.backgroundColor=this.playerStyle.statusLiveStyle.backgroundColor,this.contentChip.textContent=this.playerStyle.statusLiveStyle.text):this.contentChip.style.display="none"}setTheme(t){this.playerStyle=t,this.render()}disableStoriesNavigationButtons(){this.nextStoryButton&&this.prevStoryButton&&(this.updateNavButton("DISABLED",this.nextStoryButton),this.updateNavButton("DISABLED",this.prevStoryButton))}disablePageNavigationButtons(){this.prevPageButton&&this.nextPageButton&&(this.updateNavButton("DISABLED",this.nextPageButton),this.updateNavButton("DISABLED",this.prevPageButton))}setButtonNavigationAsDisabled(t){"ALL"===t?(this.disableStoriesNavigationButtons(),this.disablePageNavigationButtons()):"STORIES_NAVIGATION_ONLY"===t&&this.disableStoriesNavigationButtons()}shouldShowBannerAd(){var t;return Boolean(this.bannerAdElement)&&!1!==this.currentContentPage.shouldShowBannerAd&&!("Ad"===(null===(t=this.currentPage.data)||void 0===t?void 0:t.type)||this.data.isAd)}adjustContentView(){var t,e,i,n,o,r,s,d,u,c,p,f,g,v;if([...this.elementsToHideOnWebAds,...this.elementsToHideOnImaAds].forEac
1h(t=>{t&&t!==this.bannerAdElement&&(t.style.visibility="visible")}),h.ConfigService.shouldAllowClosedCaptions){const e=null===(t=this.currentPage.data.closedCaptions)||void 0===t?void 0:t.find(t=>""+t.language===localStorage.getItem(l.LOCAL_STORAGE_KEY_LAST_SELECTED));this.currentPage.setAttribute("is-captions-visible",Boolean(e).toString())}const y="desktop"===a.deviceDetector.platform;return"Ad"===(null===(e=this.currentPage.data)||void 0===e?void 0:e.type)||this.data.isAd?(this.elementsToHideOnWebAds.forEach(t=>{t&&(t.style.visibility="hidden")}),y&&(null===(o=null===(n=null===(i=this.refContentModal)||void 0===i?void 0:i.player)||void 0===n?void 0:n.renderPlayerBackground)||void 0===o||o.call(n,!0),h.ConfigService.shouldDismissPlayer&&(null===(r=this.refContentModal)||void 0===r||r.exitButtonWrapperElement.setStyle({display:"none"}))),h.VideoPlayerService.muteStateBeforeAd=this.videoPlayerState.isMuted?"mute":"unmute",this.setPlayerButtonPosition("AD"),this.setButtonNavigationAsDisabled("STORIES_NAVIGATION_ONLY"),"unmute"===h.VideoPlayerService.muteStateBeforeAd&&this.muteToggle(),void this.currentPage.setAttribute("is-captions-visible","false")):this.currentPage.shouldShowImaAd?(this.elementsToHideOnImaAds.forEach(t=>{t&&(t.style.visibility="hidden")}),null===(s=this.longPressHandler)||void 0===s||s.detach(this.container),y&&(null===(c=null===(u=null===(d=this.refContentModal)||void 0===d?void 0:d.player)||void 0===u?void 0:u.renderPlayerBackground)||void 0===c||c.call(u,!0),h.ConfigService.shouldDismissPlayer&&(null===(p=this.refContentModal)||void 0===p||p.exitButtonWrapperElement.setStyle({display:"none"}))),this.setButtonNavigationAsDisabled("ALL"),void this.currentPage.setAttribute("is-captions-visible","false")):("no-ad"!==h.VideoPlayerService.muteStateBeforeAd&&(Boolean(this.bannerAdElement)&&!1!==this.currentContentPage.shouldShowBannerAd&&(null===(f=this.bannerAdElement)||void 0===f||f.show(this.data.bannerAdInfo,!1)),"iOS"===a.deviceDetector.OS||"tablet"===a.deviceDetector.platform&&"Mac OS"===a.deviceDetector.OS?this.videoPlayerState.isMuted||this.muteToggle():"mute"!==h.VideoPlayerService.muteStateBeforeAd||this.videoPlayerState.isMuted?"unmute"===h.VideoPlayerService.muteStateBeforeAd&&this.videoPlayerState.isMuted&&this.muteToggle():this.muteToggle(),h.VideoPlayerService.muteStateBeforeAd="no-ad"),null===(g=this.longPressHandler)||void 0===g||g.attach(this.container),this.setPlayerButtonPosition("NO_AD"),h.ConfigService.shouldDismissPlayer&&(null===(v=this.refContentModal)||void 0===v||v.render()),void this.updatePlayerButtonsState(!0))}setPlayerButtonPosition(t){var e,i,n,o,r;if("AD"===t)"HORIZONTAL"===this.playerStyle.iconsPosition?"LTR"===h.ConfigService.layoutDirection?(this.buttonsContainer.style.flexDirection="row-reverse",null===(e=this.muteButtonElement)||void 0===e||e.setAttribute("order","-1")):(this.topContainer.style.flexDirection="row",this.buttonsContainer.style.flexDirection="row-reverse",null===(i=this.muteButtonElement)||void 0===i||i.setAttribute("order","-1")):"LTR"===h.ConfigService.layoutDirection?null===(n=this.muteButtonElement)||void 0===n||n.setAttribute("order","-1"):(null===(o=this.muteButtonElement)||void 0===o||o.setAttribute("order","-1"),this.topContainer.style.flexDirection="row");else{const t=this.playerStyle.iconsButtonOrder.indexOf("MUTE_UNMUTE");null===(r=this.muteButtonElement)||void 0===r||r.setAttribute("order",String(t)),"HORIZONTAL"===this.playerStyle.iconsPosition?"LTR"===h.ConfigService.layoutDirection?(this.buttonsContainer.style.flexDirection="row",this.topContainer.style.flexDirection="row"):(this.topContainer.style.flexDirection="row",this.buttonsContainer.style.flexDirection="row"):"LTR"===h.ConfigService.layoutDirection||(this.topContainer.style.flexDirection="row")}}updatePlayerButtonIcons(){var t,e,i,n,o;const r=this.videoPlayerState.isPlaying?this.playerStyle.icons.pause:this.playerStyle.icons.play,s=this.videoPlayerState.isMuted?this.playerStyle.icons.mute:this.playerStyle.icons.unmute;if(this.playButtonElement&&this.playButtonElement.setIconUrl(r),this.muteButtonElement&&this.muteButtonElement.setIconUrl(s),this.closedCaptionsButtonElement)if((null===(t=this.currentContentPage.closedCaptions)||void 0===t?void 0:t.length)>0){const t=localStorage.getItem(l.LOCAL_STORAGE_KEY_LAST_SELECTED),r=(null===(e=this.currentContentPage.closedCaptions)||void 0===e?void 0:e.find(e=>""+e.language===t))?null===(i=this.playerStyle)||void 0===i?void 0:i.icons.closedCaptionsOn:null===(n=this.playerStyle)||void 0===n?void 0:n.icons.closedCaptionsOff;null===(o=this.closedCaptionsButtonElement)||void 0===o||o.setAttribute("disabled","false"),this.closedCaptionsButtonElement.setIconUrl(r)}else this.closedCaptionsButtonElement.setAttribute("disabled","true"),this.closedCaptionsButtonElement.setIconUrl(this.playerStyle.icons.closedCaptionsOff)}handleCtaAction(t,e){var i,n,o,r,s,u,c,p;return this.event(l.StoryAction.CtaClick,{gesture_type:e}),(null===(i=this.shareModal)||void 0===i?void 0:i.isOpen)&&(null===(n=this.shareModal)||void 0===n||n.close()),this.playerStyle.ctaButton.isDisplayCtaModal&&(a.deviceDetector.isMobile||a.deviceDetector.isTablet)&&(null===(o=this.ctaModal)||void 0===o||o.open()),t.preventDefault(),t.stopImmediatePropagation(),(0,g.delay)(l.ONE_AND_HALF_SECOND).then(()=>{var t,e;const i=this.ctaButtonElement.querySelector("a");"iOS"===a.deviceDetector.OS||"Safari"===a.deviceDetector.browser?i&&(window.location.href=i.href):(null==i||i.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:window})),(null===(t=this.ctaModal)||void 0===t?void 0:t.isOpen)&&(null===(e=this.ctaModal)||void 0===e||e.close())),this.isCtaWasClickedOrSwiped=!1}),(null===(s=null===(r=this.refContentModal)||void 0===r?void 0:r.parentWidget)||void 0===s?void 0:s.id)&&h.EventService.dispatch(null===(u=this.refContentModal)||void 0===u?void 0:u.parentWidget,d.Delegation.onWidgetTriggerCTA,{widgetId:null===(p=null===(c=this.refContentModal)||void 0===c?void 0:c.parentWidget)||void 0===p?void 0:p.id,actionType:"URL",actionParam:this.ctaButtonElement.getAttribute("href")}),this.exitTrigger=e,this.event(l.StoryAction.PageExit,{}),this.event(l.StoryAction.Exit,{}),this.pause(),this.resumeAfterfocus=!0,!0}playToggle(t){var e;const i=null!==(e=null==t?void 0:t.customIsPlaying)&&void 0!==e?e:this.videoPlayerState.isPlaying;this.event(i?l.StoryAction.PlaybackPause:l.StoryAction.PlaybackPlay,{playback_action_method:"Click"}),i?(this.pause(),this.isPausedManually=!0):(this.resume(),this.isPausedManually=!1),"boolean"!=typeof(null==t?void 0:t.customIsPlaying)&&(this.videoPlayerState.isPlaying=!i),this.updatePlayerButtonIcons(),this.updateStoryAccessibilityLabels()}muteToggle(){this.event(l.StoryAction.Audio,{}),this.videoPlayerState.isMuted=!this.videoPlayerState.isMuted;const t=this.pages[this.pageIndex];return t.muted=this.videoPlayerState.isMuted,this.updatePlayerButtonIcons(),this.updateStoryAccessibilityLabels(),t.muted}resetStoryLocationIndexToLastUnseen(){let t=0;for(let e=this.data.pages.length-1;e>=0;e--){const i=this.data.pages[e],n=this.data.pages[e-1];if(i&&n&&!i.hasViewed&&n.hasViewed){t=e;break}}this.setInitialPageIndex(t)}setInitialPageIndex(t){if(!this.pages.length)return void(this.pageIndex=0);const e=Math.min(Math.max(t,0),this.pages.length-1);this.pageIndex=e,this.pages[this.pageIndex].shouldShowImaAd=!1}setInitialPageById(t){if(!t)return void this.resetStoryLocationIndexToLastUnseen();const e=this.data.pages.findIndex(e=>(null==e?void 0:e.id)===t);e>-1?this.setInitialPageIndex(e):this.resetStoryLocationIndexToLastUnseen()}determineAspectRatio(t){var e,i;const n=null===(i=null===(e=t.pages[0])||void 0===e?void 0:e.base
1Layer)||void 0===i?void 0:i.content.renditions.find(t=>"Horizontal"===t.aspectRatio);return h.ConfigService.shouldAllowHorizontalStories&&("Full Screen"===this.mode&&"desktop"===a.deviceDetector.platform||"Embedded"===this.mode&&"Horizontal"===this.aspectRatio)&&n?"Horizontal":"Vertical"}clearExistingContent(){var t,e;null===(t=this.pages)||void 0===t||t.forEach(t=>{var e;return null===(e=null==t?void 0:t.remove)||void 0===e?void 0:e.call(t)}),this.pages=[],null===(e=this.playbackParts)||void 0===e||e.forEach(t=>{(null==t?void 0:t.parentNode)instanceof Element&&t.parentNode.remove()}),this.playbackParts=[]}createPageElement(t){const e="Ad"===t.type?new o.BlazeWidgetAd(this):new o.BlazeWidgetVideo(this);return e instanceof o.BlazeWidgetVideo&&(e.muted=this.videoPlayerState.isMuted),e.setData(t),this.setupPageEndedHandler(e),e}setupPageEndedHandler(t){t.onended=(()=>{this.pageIndex===this.pages.length-1&&(this.exitTrigger="Story Completed"),this.navigationType="Automatic",this.navigationDirection="Forwards",this.videoPlayerState.isPlaying=!0,this.goNextPage(this.navigationType)})}createProgressElements(t){const e=t.filter(t=>"Ad"!==t.type).length;this.progressElement.style.gridTemplateColumns="repeat("+e+", 1fr)",this.progressElement.style.gap="4px",t.forEach(t=>{const{part:e,filler:i}=this.createProgressPart();"Ad"===t.type&&(e.style.display="none"),this.playbackParts.push(i),this.progressElement.append(e)})}createProgressPart(){const t=document.createElement("div");(0,g.mergeStyles)(t,{width:"100%",height:"100%",backgroundColor:"gray",borderRadius:"5px"});const e=document.createElement("div");return(0,g.mergeStyles)(e,{width:"100%",height:"100%",backgroundColor:p.Colors.White,borderRadius:"5px"}),t.appendChild(e),{part:t,filler:e}}setData(t){this.data=t,this.aspectRatio=this.determineAspectRatio(t),this.setAttribute("name",t.title),this.clearExistingContent(),this.contentTitle.innerText=t.title,this.contentPublishedDate.innerText=(0,g.formatDuration)(new Date(t.createTime)),this.pages=t.pages.map(t=>this.createPageElement(t)),this.createProgressElements(t.pages),this.pages.forEach(t=>this.container.prepend(t)),this.updateChip(),this.adjustContentView()}get currentContentPage(){return this.data.pages[this.pageIndex]}get nextContentPage(){return this.data.pages[this.pageIndex+1]||null}get prevContentPage(){return this.data.pages[this.pageIndex-1]||null}get currentPage(){return this.pages[this.pageIndex]}get nextPage(){return this.pages[this.pageIndex+1]}get prevPage(){return this.pages[this.pageIndex-1]}prefetchAdjacentPages(){var t,e,i;if(this.isUnloading)return;const n=t=>Math.abs(t-this.pageIndex)<=2;switch(h.ConfigService.prefetchingPolicy){case"low":null===(t=this.nextPage)||void 0===t||t.load();break;case"default":null===(e=this.nextPage)||void 0===e||e.load(),null===(i=this.pages[this.pageIndex+2])||void 0===i||i.load()}this.pages.forEach((t,e)=>{n(e)||null==t||t.unload()}),this.prefetchTimeout&&clearTimeout(this.prefetchTimeout),this.prefetchTimeout=setTimeout(()=>{var t,e,i;if(!this.isUnloading){switch(h.ConfigService.prefetchingPolicy){case"low":null===(t=this.pages[this.pageIndex+1])||void 0===t||t.load();break;case"default":null===(e=this.pages[this.pageIndex+1])||void 0===e||e.load(),null===(i=this.pages[this.pageIndex+2])||void 0===i||i.load()}this.prefetchTimeout=null}},2e3)}loadStoryPostersByDistance(t){var e;if(this.isUnloading)return;const i=Math.max(0,this.pageIndex-t),n=Math.min(this.pages.length-1,this.pageIndex+t);for(let t=i;t<=n;t++)null===(e=this.pages[t])||void 0===e||e.loadPoster()}revertNextPageButtonToPreviousAction(){this.originalNextPageDesktopClickListener&&this.nextPageButton&&this.restartStoryOnClickEvent&&(this.nextPageButton.removeEventListener("click",this.restartStoryOnClickEvent),this.nextPageButton.addEventListener("click",this.originalNextPageDesktopClickListener),this.nextPageButton.setIconUrl(this.playerStyle.icons.navigation.nextPage))}displayRestartStoryButton(){this.nextPageButton&&this.originalNextPageDesktopClickListener&&this.restartStoryOnClickEvent&&(this.nextPageButton.setIconUrl(c.restartIconSvg),this.nextPageButton.removeEventListener("click",this.originalNextPageDesktopClickListener),this.nextPageButton.addEventListener("click",this.restartStoryOnClickEvent))}playPage(t){var e,i,n,o,r;if(this.loadStoryPostersByDistance(4),this.navigationTimeout&&clearTimeout(this.navigationTimeout),this.prefetchTimeout&&(clearTimeout(this.prefetchTimeout),this.prefetchTimeout=null),t<0){if("SingleContent"===h.VideoPlayerService.playReference||"Share"===h.VideoPlayerService.playReference)return this.currentPage.restartVideo(),void this.updateCta(0);null===(e=this.onPrevStory)||void 0===e||e.call(this,this.navigationType),null===(i=this.prevPageButton)||void 0===i||i.blur(),this.dispatchEvent(new CustomEvent(d.InternalEvent.PREV_STORY,{bubbles:!0,cancelable:!1}))}else if(t>this.pages.length-1){if("SingleContent"===h.VideoPlayerService.playReference)return void this.updateCta(this.pages.length-1);null===(n=this.onNextStory)||void 0===n||n.call(this,this.navigationType),null===(o=this.nextPageButton)||void 0===o||o.blur(),this.dispatchEvent(new CustomEvent(d.InternalEvent.NEXT_STORY,{bubbles:!0,cancelable:!1}))}else this.isActive=!0,null===(r=this.closedCaptionsModal)||void 0===r||r.reloadData(this.pages[t].data.closedCaptions),this.switchToPage(t),"Automatic"===this.navigationType?this.startPage(t):this.navigationTimeout=setTimeout(()=>{this.videoPlayerState.isPlaying&&this.startPage(t)},250)}updatePublishedDate(t){const e=void 0===t?this.pageIndex:t,i=new Date(Date.parse(this.data.pages[e].createTime));this.contentPublishedDate.innerText=(0,g.formatDuration)(i)}switchToPage(t){var e,i,n,r,s,d,u;if(this.updatePublishedDate(t),this.updateCTAButtonPosition(),t===this.pageIndex)this.updateCTAButtonPosition();else{(null===(n=null===(i=null===(e=this.refContentModal)||void 0===e?void 0:e.player)||void 0===i?void 0:i.playerContentList)||void 0===n?void 0:n[this.refContentModal.player.index])===this&&a.contentAccessibilityManager.announceNavigation(t+1,this.pages.length,"story-p
1age",null===(r=this.data)||void 0===r?void 0:r.title,{trigger:"navigation",navigationType:this.navigationType,previousPosition:this.pageIndex+1}),this.ctaButtonElement.clearAllAnimations(),this.updateCta(t),this.pages[this.pageIndex].hide(),this.pages[this.pageIndex].pause(),this.pages[this.pageIndex].removeLoader();const o=this.pageIndex;setTimeout(()=>{this.pages[o].currentTime=0},250,this)}t!==this.pageIndex&&this.currentPage.endExit();const c=t-this.pageIndex;this.pageIndex=t,this.markAsRead(),this.currentPage.muted=this.videoPlayerState.isMuted,"scale(1)"!==this.style.transform&&(this.style.transform="scale(1)"),this.updatePlayerButtonIcons(),"Ad"!==(null===(s=this.currentPage.data)||void 0===s?void 0:s.type)&&this.adjustContentView();const h=this.currentPage instanceof o.BlazeWidgetAd;(this.currentPage.shouldShowImaAd&&!this.shouldShowImaAdOnStart||h&&!this.data.isAd)&&this.setContentExtraInfo(this.getPagesContentExtraInfo(h)),null===(d=this.currentPage)||void 0===d||d.display(()=>{c>=0?this.goNextPage():this.goPrevPage()}),this.currentPage.endEnter(),"Ad"!==(null===(u=this.currentPage.data)||void 0===u?void 0:u.type)&&this.event(l.StoryAction.PageStart,{}),this.event(l.StoryAction.PlaybackInitialStart,{})}startPage(t){return n(this,void 0,void 0,function*(){var e,i,n,r,s,a,l,d,u;if(this.isUnloading)return;if(this.pageIndex=t,this.currentPage instanceof o.BlazeWidgetAd&&this.adIndex++,this.currentPage instanceof o.BlazeWidgetVideo&&t>=0&&(null===(i=(e=this.currentPage).tryToAddLoader)||void 0===i||i.call(e)),this.isUnloading)return;if(yield null===(n=this.currentPage)||void 0===n?void 0:n.load(),this.isUnloading)return;null===(r=this.currentPage)||void 0===r||r.play(),"Embedded"===this.mode&&this.currentPage.setAttribute("is-captions-visible","false"),this.updatePlayerButtonIcons(),this.updateStoryAccessibilityLabels();const c=this.totalPlayStopwatch.durationMS();if(this.shouldShowBannerAd()){const t=!(null===(s=this.bannerAdElement)||void 0===s?void 0:s.hasAttemptedLoad);this.shouldGetNewBannerAd(c)||t?(null===(a=this.bannerAdElement)||void 0===a||a.show(this.data.bannerAdInfo),this.lastBannerRefreshInWatchTimeMS=c):((null===(l=this.bannerAdElement)||void 0===l?void 0:l.isHidden())&&(null===(d=this.bannerAdElement)||void 0===d||d.unhide()),null===(u=this.bannerAdElement)||void 0===u||u.raiseAnalyticsViewBannerAd())}this.totalPlayStopwatch.start(),this.prefetchAdjacentPages()})}shouldGetNewBannerAd(t){return 0===t||t-this.lastBannerRefreshInWatchTimeMS>l.BANNER_REFRESH_INTERVAL}unload(){this.pages.forEach(t=>t.unload()),this.prefetchTimeout&&(clearTimeout(this.prefetchTimeout),this.prefetchTimeout=null)}displayCurrentStoryPageAndHideTheRest(){var t;this.currentPage.display(()=>{this.goNextPage()});const e=null===(t=this.currentPage.data)||void 0===t?void 0:t.id;this.pages.forEach(t=>{var i;(null===(i=t.data)||void 0===i?void 0:i.id)!==e&&t.hide(),("iOS"===a.deviceDetector.OS||"tablet"===a.deviceDetector.platform&&"Mac OS"===a.deviceDetector.OS)&&(t.muted=!0)})}load(t="direct"){this.loadStoryPostersByDistance(2),this.currentPage.load(t),this.displayCurrentStoryPageAndHideTheRest()}play(){var t,e;if(this.sessionId=(0,g.getRandomId)(),this.totalPlayStopwatch.reset(),this.lastBannerRefreshInWatchTimeMS=0,this.event(l.StoryAction.Start,{}),this.startTrigger="",this.exitTrigger="",this.shouldShowImaAdOnStart){const e=this.pages[this.pageIndex];if("Content"===(null===(t=e.data)||void 0===t?void 0:t.type)){const t=e.data;e.shouldShowImaAd=!0,t.adInfo=this.adInfo}}else"Ad"===(null===(e=this.currentPage.data)||void 0===e?void 0:e.type)&&this.currentPage.startEnter();h.VideoPlayerService.currentlyPlayedContentId=this.data.id,this.playPage(this.pageIndex)}bannerAdEvent(t){var e,i;const n=this.getRefferingObject(),o=new a.AdEvent;o.session_id=this.sessionId,o.story_id=this.data.id,o.story_title=this.data.title,o.content_type="story","Content"===(null===(e=this.currentPage.data)||void 0===e?void 0:e.type)&&(o.story_page_id=this.currentPage.data.id,o.story_page_index=this.currentPageIndexWithoutCustomAds),o.ad_unit_id=t.adUnitId,o.backoffice_campaign_data=(null===(i=this.data.bannerAdInfo)||void 0===i?void 0:i.backofficeCampaignData)||"",h.AnalyticsService.pushAdEvent(t.type,o,void 0,n)}event(t,e){return n(this,arguments,void 0,function*(t,e,i){var n,o;try{const r=this.data.pages[this.pageIndex],s=this.pages[this.pageIndex],a=this.getRefferingObject();if("Content"===r.type){e.player_type=this.mode,e.story_page_count=this.pages.length,e.story_page_duration=yield s.getVideoDuration(),e.story_page_duration_viewed_percent=Number((100*(s.progress||0)).toFixed(3)),e.story_page_id=r.id,e.player_orientation=this.aspectRatio;const i=null===window||void 0===window?void 0:window.location.href.indexOf("#blaze"),a=-1!==i?null===window||void 0===window?void 0:window.location.href.slice(0,i):null===window||void 0===window?void 0:window.location.href;switch(e.story_page_type=/^(https?:\/\/[^/]+\/?)$/i.test(a)?"Homepage":"Category/Article",e.story_page_index=this.currentPageIndexWithoutCustomAds,e.is_last_page=this.pageIndex==this.pages.length-1,e.audio_state=this.videoPlayerState.isMuted?"Mute":"Unmute",e.story_session_id=this.sessionId,e.content_duration_viewed=this.totalPlayStopwatch.durationMS(),e.cc_state=(0,g.convertCcLanguageToState)(r.closedCaptions,localStorage.getItem(l.LOCAL_STORAGE_KEY_LAST_SELECTED)),e.story_page_parent_id=r.parentStoryId,e.story_composition_type=this.data.compositionType,"Enrichment"===(null===(n=r.interaction)||void 0===n?void 0:n.type)&&(e.enrichment_layer_id=r.interaction.id,e.enrichment_layer_url=r.interaction.htmlUrl),"true"===(null===(o=h.AppConfigurationService.appConfigurations)||void 0===o?void 0:o.configurations.analyticsAddEntitiesInfo)&&(e.content_extra_info=JSON.stringify(this.data.extraInfo),e.story_page_content_extra_info=JSON.stringify(r.extraInfo)),e.localization=void 0,t){case l.StoryAction.Start:e.story_start_id=this.data.id,e.story_start_trigger=this.startTrigger,e.localization=this.data.retrievedLanguages;break;case l.StoryAction.PageStart:e.localization=Object.assign(Object.assign({},this.data.retrievedLanguages),r.retrievedLanguages);break;case l.StoryAction.Exit:e.story_exit_trigger=this.exitTrigger;break;case l.StoryAction.PageExit:e.story_page_navigation_direction=this.navigationDirection,e.story_page_navigation_type=this.navigationType}}if("Content"===r.type){if(t===l.StoryAction.PageStart&&this.currentPage.shouldShowImaAd)return;if(h.AnalyticsService.pushStoryEvent(t,Object.assign({story_id:this.data.id,story_title:this.data.title},e),i,a),r.interaction){const e=t;Object.values(l.InteractionAction).includes(e)&&h.AnalyticsService.pushInteractionEvent(e,{interaction_id:r.interaction.id,interaction_type:r.interaction.type,content_id:this.data.id,content_title:this.data.title,content_page_id:r.id,content_type:"story",content_session_id:h.UserService.sessionId,audio_state:this.videoPlayerState.isMuted?"Mute":"Unmute"})}}}catch(t){}})}updateContainerLayout(){var t,e,i,n,o,r,s,d;if(this.style.aspectRatio="Horizontal"===this.aspectRatio?String(l.ASPECT_RATIO_16_9):String(l.ASPECT_RATIO_9_16),this.style.boxSizing="content-box",this.container.style.borderRadius=this.getContainerBorderRadius(),"mobile"===a.deviceDetector.platform)this.container.style.background="#000",this.style.width="100%",this.style.height="100%",this.style.minHeight="100%";else{const u=(0,g.isCssPropertySupported)("aspectRatio");if("Horizontal"===this.aspectRatio){const a=(null===(t=this.nextStoryButton)||void 0===t?void 0:t.style.marginLeft)||"0px",l=(null===(e=this.nextStoryButton)||void 0===e?void 0:e.style.marginRight)||"0px",c=(null===(i=this.prevStoryButton)||void 0===i?void 0:i.style.marginRight)||"0px",h=(null===(n=this.prevStoryButton)||void 0===n?void 0:n.style.marginLeft)||"0px",p=null!==(r=null===(o=this.nextStoryButton)||void 0===o?void 0:o.clientWidth)&&void 0!==r?r:0,f=null!==(d=null===(s=this.prevStoryButton)||void 0===s?void 0:s.clientWidth)&&void 0!==d?d:0;this.style.width="calc(75% - "+a+" - "+l+" - "+p+"px - "+c+" - "+h+" - "+f+"px)",this.style.maxHeight="80vh",u?this.style.aspectRatio="16 / 9":this.style.height="auto"}else this.style.width="auto",this.style.height="87%";this.style.minHeight="tablet"===a.deviceDetector.platform?"90%":"unset",this.style.paddingBottom="tablet"===a.deviceDetector.platform?"0":"40px",u||(this.style.width="100%",this.style.height="100%",this.style.borderRadius="0px"),!u||"tablet"!==a.deviceDetector.platform&&"desktop"!==a.deviceDetector.platform||setTimeout(()=>{if("Firefox"===a.deviceDetector.browser&&"Vertical"===this.aspectRatio)this.style.height="87vh";else{const{width:t}=this.getBoundingClientRect(),e=("Horizontal"===this.aspectRatio?l.ASPECT_RATIO_9_16:l.ASPECT_RATIO_16_9)*t;this.style.height=Math.round(e)+"px",this.style.width=Math.round(t)+"px"}},0)}}addOrRemoveEventListeners(t){[{event:d.InternalEvent.RESUME,handler:this.boundOnResumeEvent},{event:d.InternalEvent.PAUSE,handler:this.boundOnPauseEvent},{event:d.InternalEvent.NEXT_PAGE,handler:this.boundOnNextPageEvent},{event:d.InternalEvent.PREVIOUS_PAGE,handler:this.boundOnPrevPageEvent}
1].forEach(({event:e,handler:i})=>{"add"===t?this.addEventListener(e,i):this.removeEventListener(e,i)})}connectedCallback(){(0,g.setId)(this,"blaze-story"),this.addOrRemoveEventListeners("add"),this.style.borderRadius=this.getContainerBorderRadius(),this.style.margin="auto",this.style.outline="none",this.style.width="auto",this.style.minHeight="100%",this.updateContainerLayout(),this.shareModal=u.WidgetsFactory.create("blaze-widget-share-modal"),this.shareModal.onClose=this.onShareModalClose.bind(this),this.shareModal.onClick=this.onShareModalButtonClick.bind(this),h.ConfigService.shouldAllowClosedCaptions&&this.isButtonVisible("CLOSED_CAPTIONS")&&this.configureClosedCaptionsModal(),this.ctaModal=u.WidgetsFactory.create("blaze-widget-cta-modal"),this.container.append(this.shareModal),this.container.append(this.ctaModal),this.append(this.container);const t=()=>{if(this.pages.length<=0)return void(null===window||void 0===window||window.requestAnimationFrame(t));for(let t=0;t<this.playbackParts.length;t++)this.playbackParts[t].style.width="0%";for(let t=0;t<this.pageIndex;t++)this.playbackParts[t].style.width="100%";const e=this.pages[this.pageIndex].progress;this.playbackParts[this.pageIndex].style.width=100*e+"%",null===window||void 0===window||window.requestAnimationFrame(t)};null===window||void 0===window||window.requestAnimationFrame(t),this.render(),this.boundOnBlurEvent=this.onBlur.bind(this),this.boundOnFocusEvent=this.onFocus.bind(this),this.boundOnVisibilityChangeEvent=this.onVisibilityChange.bind(this),this.boundOnLanguageChangeEvent=this.onLanguageChange.bind(this),this.registerStoryAccessibility(),super.connectedCallback()}onShareModalClose(){this.videoPlayerState.isPlaying&&this.resume()}configureClosedCaptionsModal(){this.closedCaptionsModal=new o.BlazeWidgetClosedCaptionsModal(this.currentPage.data.closedCaptions,"story"),this.closedCaptionsModal.onClose=(()=>{this.isPausedManually||(this.videoPlayerState.isPlaying=!0,this.updatePlayerButtonIcons(),this.resume())}),this.closedCaptionsModal.onOpen=(()=>{this.videoPlayerState.isPlaying&&(this.videoPlayerState.isPlaying=!1,this.updatePlayerButtonIcons(),this.pause())}),this.closedCaptionsModal.onClosedCaptionsEnable=(t=>{this.toggleClosedCaptions(t)}),this.closedCaptionsModal.onClosedCaptionsDisable=(()=>{this.toggleClosedCaptions()}),this.container.append(this.closedCaptionsModal)}toggleClosedCaptions(t){const e=(0,g.convertCcLanguageToState)(this.data.pages[this.pageIndex].closedCaptions,t);this.event("Off"!==e?l.StoryAction.ClosedCaptionsOn:l.StoryAction.ClosedCaptionsOff,{}),this.updateStoryAccessibilityLabels()}updateStoryProgress(){if(this.pages.length<=0)return void(this.requestAnimationId=null===window||void 0===window?void 0:window.requestAnimationFrame(this.updateStoryProgress.bind(this)));for(let t=0;t<this.playbackParts.length;t++)this.playbackParts[t].style.width="0%";for(let t=0;t<this.pageIndex;t++)this.playbackParts[t].style.width="100%";const t=this.pages[this.pageIndex].progress;this.playbackParts[this.pageIndex].style.width=100*t+"%",this.isActive&&(this.requestAnimationId=null===window||void 0===window?void 0:window.requestAnimationFrame(this.updateStoryProgress.bind(this)))}onShareModalButtonClick(t){return n(this,void 0,void 0,function*(){this.event(l.StoryAction.ShareSelect,{});try{yield navigator.clipboard.readText().then(t=>{t===document.location.href&&this.event(l.StoryAction.ShareSuccess,{})})}catch(t){}})}onVisibilityChange(){this.isActive&&this.isConnected&&(this.lastPageIndexToResume=this.pageIndex,document.hidden||this.onFocus(),document.hidden&&this.onBlur())}onBlur(){var t;this.isActive&&this.isConnected&&(document.hidden||"desktop"!==a.deviceDetector.platform||"visible"!==document.visibilityState)&&((null===(t=document.activeElement)||void 0===t?void 0:t.id.includes("interaction"))||(this.lastPageIndexToResume=this.pageIndex,this.currentPage.paused||(this.resumeAfterfocus=!0,this.pause(),this.videoPlayerState.isPlaying=!1,this.updatePlayerButtonIcons(),this.event(l.StoryAction.PageExit,{}),this.event(l.StoryAction.Exit,{}))))}onFocus(){var t,e,i,n,o;if(this.isActive&&this.isConnected&&(this.lastPageIndexToResume=this.pageIndex,(this.currentPage.paused||"Ad"===(null===(t=this.currentPage.data)||void 0===t?void 0:t.type))&&this.resumeAfterfocus)){this.resumeAfterfocus=!1,(null===(e=this.ctaModal)||void 0===e?void 0:e.isOpen)&&(null===(i=this.ctaModal)||void 0===i||i.close());const t="iOS"===a.deviceDetector.OS,r="Mobile Safari"===a.deviceDetector.browser,s="tablet"===a.deviceDetector.platform&&"Mac OS"===a.deviceDetector.OS,l=t&&("Safari"===a.deviceDetector.browser||"Chrome"===a.deviceDetector.browser);if(t||r||l||s)return void("Ad"===(null===(n=this.currentPage.data)||void 0===n?void 0:n.type)?this.resume():null===(o=this.resumeAfterBlurButton)||void 0===o||o.setAttribute("blaze-btn-hidden","false"));this.resume(),this.videoPlayerState.isPlaying=!0,this.updatePlayerButtonIcons()}}close(t){return n(this,void 0,void 0,function*(){var e,i,n,o;this.resumeAfterfocus=!1,"SingleContent"===h.VideoPlayerService.playReference||(this.event(l.StoryAction.PageExit,{}),this.event(l.StoryAction.Exit,{}),null===(e=this.pause)||void 0===e||e.call(this),null===(n=null===(i=this.widgetParentItem)||void 0===i?void 0:i.updateWidget)||void 0===n||n.call(i),yield this.updateWidgetStatusReadUnread()),(h.ConfigService.shouldDismissPlayer||h.ConfigService.shouldAutoAdvance)&&(this.event(l.StoryAction.PageExit,{}),this.event(l.StoryAction.Exit,{}),h.AnalyticsService.sendAnalyticsData()),t&&(null===(o=this.onClose)||void 0===o||o.call(this))})}pause(){this.currentPage.pause(),this.totalPlayStopwatch.pause()}resume(){this.currentPage.play(),this.totalPlayStopwatch.start()}resetPosition(){this.pages[this.pageIndex].currentTime=0}updateWidgetStatusReadUnread(){var t,e,i,n,o,r,s,a;null===(e=null===(t=this.widgetParentItem)||void 0===t?void 0:t.updateWidget)||void 0===e||e.call(t),null===(n=null===(i=this.widgetParentItem)||void 0===i?void 0:i.setChipStyle)||void 0===n||n.call(i),null===(r=null===(o=this.widgetParentItem)||void 0===o?void 0:o.render)||void 0===r||r.call(o),null===(a=null===(s=this.widgetParentItem)||void 0===s?void 0:s.updateWidgetItemPadding)||void 0===a||a.call(s)}markAsRead(){return n(this,void 0,void 0,function*(){const t=this.pages[this.pageIndex];if(t.data){t.data.hasViewed=!0;const{data:e,error:i}=yield h.DatabaseService.updatePageViewed(t.data.id,this.data.id);return!i&&e}})}hasNoMorePagesToPlay(){return this.pageIndex+1>this.pages.length-1}isLastPage(){return this.pageIndex===this.pages.length-1}isAutomaticNavigation(t){return"Automatic"===t}handleLastPageAutomaticNavigation(){var t,e,i,n;h.ConfigService.shouldAutoAdvance?(null===(e=null===(t=this.refContentModal)||void 0===t?void 0:t.player)||void 0===e||e.renderPlayerBackgroun
1d(!0),null===(n=null===(i=this.refContentModal)||void 0===i?void 0:i.player)||void 0===n||n.animateCloseWithDirection({direction:"HorizontalForwards",callback:()=>a.URLManager.navigateTo("AUTO_ADVANCE")})):this.displayRestartStoryButton()}goNextPage(t){var e,i;h.VideoPlayerService.isNavigating||this.currentPage.isCurrentlyTryingToRunImaAd||("SingleContent"===h.VideoPlayerService.playReference&&this.isLastPage()&&this.isAutomaticNavigation(t)?this.handleLastPageAutomaticNavigation():(this.pageIndex+1<this.pages.length&&(!1===(null===(e=this.nextContentPage)||void 0===e?void 0:e.shouldShowBannerAd)&&(null===(i=this.bannerAdElement)||void 0===i||i.hide()),this.event(l.StoryAction.PageExit,{}),this.nextPage.startEnter()),this.playPage(this.pageIndex+1)))}goPrevPage(){var t,e;h.VideoPlayerService.isNavigating||this.currentPage.isCurrentlyTryingToRunImaAd||("SingleContent"!==h.VideoPlayerService.playReference||0!==this.pageIndex?(this.pageIndex>0&&(!1===(null===(t=this.prevContentPage)||void 0===t?void 0:t.shouldShowBannerAd)&&(null===(e=this.bannerAdElement)||void 0===e||e.hide()),this.event(l.StoryAction.PageExit,{}),this.prevPage.startEnter()),this.playPage(this.pageIndex-1)):this.currentPage.currentTime=0)}disconnectedCallback(){var t,e;this.addOrRemoveEventListeners("remove"),this.removeChild(this.container),null===(t=this.shareModal)||void 0===t||t.remove(),null===(e=this.ctaModal)||void 0===e||e.remove(),this.ctaButtonElement.setAttribute("hidden-btn","true"),this.data.id&&a.contentAccessibilityManager.unregisterContentWidget(this.data.id),super.disconnectedCallback()}updateCTAButtonPosition(){const t=this.pages[this.pageIndex];if(!t)return;const e=t.getBoundingClientRect();if(e.width){const t=e.width*l.ASPECT_RATIO_16_9,i=(Math.round(e.height-t)-(this.playerStyle.ctaButton.height?parseInt(this.playerStyle.ctaButton.height):l.DEFAULT_CTA_HEIGHT))/2;let n;switch(a.deviceDetector.platform){case"tablet":n="Embedded"===this.mode?this.getEmbeddedBottomContainerPaddingBottom():"15px";break;case"desktop":n="Embedded"===this.mode?this.getEmbeddedBottomContainerPaddingBottom():"40px";break;default:n="Embedded"===this.mode?this.getEmbeddedBottomContainerPaddingBottom():Math.max(i,l.MIN_PADDING_BOTTOM)+"px"}this.bottomContainer.style.paddingBottom=n}}updateCta(t){var e,i,n,o,r;if(null==t)return;const s=this.pages[t];if("Content"===(null===(e=null==s?void 0:s.data)||void 0===e?void 0:e.type)&&(null===(n=null===(i=null==s?void 0:s.data)||void 0===i?void 0:i.cta)||void 0===n?void 0:n.type)){if(!1===(null===(o=this.playerStyle.ctaButton)||void 0===o?void 0:o.isVisible))return void this.ctaButtonElement.setAttribute("hidden-btn","true");this.updateCTAButtonPosition();const{color:t,backgroundColor:e,isDisplayCtaModal:i,isAnimated:n,icon:l}=this.playerStyle.ctaButton,{textColor:d,backgroundColor:u,enhancements:c,text:h,url:p}=s.data.cta;this.ctaButtonElement.setAttributes({text:h,href:p});const f=t||d,g=e||u;this.ctaButtonElement.setAnchorButtonStyles({color:f,background:g}),i&&(a.deviceDetector.isMobile||a.deviceDetector.isTablet)&&(null===(r=this.ctaModal)||void 0===r||r.setAttributes({"border-color":"#fff","background-color":g,"text-color":f,"icon-color":f,"progress-bar-color":f,"cta-url":s.data.cta.url})),this.updateCtaButtonWidth(),this.setCtaButtonAttributes(l.isVisible,g,f),this.handleCtaButtonAnimation(c,n),this.ctaButtonElement.setAttribute("hidden-btn","false")}else this.ctaButtonElement.setAttribute("hidden-btn","true")}updateCtaButtonWidth(){this.ctaButtonElement.anchorButtonElement.clientWidth>0&&this.ctaButtonElement.setCtaTextStyle({width:.75*this.ctaButtonElement.anchorButtonElement.clientWidth+"px"})}animateCtaButton(t,e){this.ctaButtonElement.animateIcon(t),this.ctaButtonElement.animateButton(e)}handleCtaButtonAnimation(t,e){if(a.deviceDetector.isMobile||a.deviceDetector.isTablet)switch(!0){case null==t?void 0:t.hasSwipeUp:this.animateCtaButton("BottomToTop",t.animationType),this.setCtaIconVisibility(!0);break;case e:this.animateCtaButton("BottomToTop","Shrinking")}}setCtaButtonAttributes(t,e,i){this.ctaButtonElement.setAttribute("arrow-icon-color",e),this.ctaButtonElement.setAttribute("icon-color",i),this.setCtaIconVisibility(t)}setCtaIconVisibility(t){(a.deviceDetector.isMobile||a.deviceDetector.isTablet)&&this.ctaButtonElement.setAttribute("arrow-icon-display",!0===t?"true":"false")}updatePlayerButtonsState(t){"desktop"!==a.deviceDetector.platform||this.currentPage.isAd||(this.updateButtonState(f.ButtonNavigation.PREV_STORY,this.prevStoryButton),this.updateButtonState(f.ButtonNavigation.NEXT_STORY,this.nextStoryButton),t&&(this.updateButtonState(f.ButtonNavigation.PREV_PAGE,this.prevPageButton),this.updateButtonState(f.ButtonNavigation.NEXT_PAGE,this.nextPageButton)))}updateButtonState(t,e){if(!e)return;const i=this.isNavigationButtonActive(t)?"ACTIVE":"DISABLED";this.updateNavButton(i,e)}isSingleContentWithAutoAdvance(t){return"SingleContent"===h.VideoPlayerService.playReference&&h.ConfigService.shouldAutoAdvance&&t===f.ButtonNavigation.NEXT_STORY}isStoryPagesNavigation(t){return t===f.ButtonNavigation.NEXT_PAGE||t===f.ButtonNavigation.PREV_PAGE}isNavigationButtonActive(t){var e,i;if(this.isSingleContentWithAutoAdvance(t))return!0;
1if(this.isStoryPagesNavigation(t))return!0;if(this.refWidget){const n=null===(e=this.refWidget)||void 0===e?void 0:e.indexOf(this);if(-1!==n){if(t===f.ButtonNavigation.NEXT_STORY)return n<(null===(i=this.refWidget)||void 0===i?void 0:i.length)-1;if(t===f.ButtonNavigation.PREV_STORY)return n>0}}return!1}updateNavButton(t,e){"ACTIVE"===t?e.setAttribute("disabled","false"):e.setAttribute("disabled","true")}updatePlayerButtonsStyleAttributes(){var t,e;let i=0;const n=Math.round(100*window.devicePixelRatio)/100,o=window.innerWidth,r=window.innerHeight,s=o<500||r<750,l={smallScreen:{range1:{sizeReduce:2,gap:"0.3rem"},range2:{sizeReduce:3,gap:"0.15rem"}},largeScreen:{1.1:{sizeReduce:0,gap:"0.8rem"},1.25:{sizeReduce:1,gap:"0.6rem"},1.5:{sizeReduce:2,gap:"0.4rem"},1.75:{sizeReduce:3,gap:"0.1rem"}}};if("desktop"===a.deviceDetector.platform&&"HORIZONTAL"===this.playerStyle.iconsPosition){let t;i=(t=s?n>=1.5?l.smallScreen.range2:l.smallScreen.range1:l.largeScreen[String(n)]||{sizeReduce:0,gap:"1rem"}).sizeReduce,this.buttonsContainer.style.gap=t.gap}if("HORIZONTAL"===this.playerStyle.iconsPosition?this.buttonsContainer.setStyle({justifyContent:"end",alignSelf:"end",alignItems:"baseline",flexDirection:"Ad"===(null===(e=null===(t=this.currentPage)||void 0===t?void 0:t.data)||void 0===e?void 0:e.type)?"row-reverse":"row"}):this.buttonsContainer.setStyle({alignItems:"flex-end",flexDirection:"column"}),"mobile"!==a.deviceDetector.platform&&"tablet"!==a.deviceDetector.platform||(i=0),"Embedded"===this.mode)this.contentTitle.style.fontSize=a.TextScaleService.scaleFontSize(this.playerStyle.titleFontSizeEmbedded),this.contentPublishedDate.style.fontSize=a.TextScaleService.scaleFontSize(this.playerStyle.publishedDateFontSizeEmbedded);else{const t=(0,g.convertCssUnitToNumber)(this.playerStyle.titleFontSize),e=(0,g.convertCssUnitToNumber)(this.playerStyle.publishedDateFontSize),n="mobile"===a.deviceDetector.platform?t-i+"px":t+2-i+"px",o="mobile"===a.deviceDetector.platform?e-i+"px":e+2-i+"px";this.contentTitle.style.fontSize=a.TextScaleService.scaleFontSize(n),this.contentPublishedDate.style.fontSize=a.TextScaleService.scaleFontSize(o)}if(this.contentChip.style.borderRadius=this.playerStyle.statusLiveStyle.borderRadius,this.contentChip.style.padding=this.playerStyle.statusLiveStyle.padding,this.contentChip.style.color=this.playerStyle.statusLiveStyle.textColor,this.contentChip.style.borderWidth=this.playerStyle.statusLiveStyle.borderWidth+"px",this.contentChip.style.fontFamily=this.playerStyle.statusLiveStyle.font,this.contentChip.style.fontSize=a.TextScaleService.scaleFontSize(this.playerStyle.statusLiveStyle.textSize),this.contentTitle.style.fontFamily=this.playerStyle.titleFont,this.contentTitle.style.color=this.playerStyle.titleColor,this.contentTitle.style.display=this.playerStyle.titleVisible?"inline":"none",this.contentPublishedDate.style.fontFamily=this.playerStyle.publishedDateFont,this.contentPublishedDate.style.color=this.playerStyle.publishedDateColor,this.contentPublishedDate.style.display=this.playerStyle.publishedDateVisible?"inline":"none",this.isButtonVisible("MUTE_UNMUTE")&&this.muteButtonElement&&(this.setPlayerButtonSize(this.muteButtonElement,"MUTE_UNMUTE"),this.setPlayerButtonColors(this.muteButtonElement,"MUTE_UNMUTE"),this.setPlayerButtonPaddings(this.muteButtonElement)),this.isButtonVisible("SHARE")&&this.shareButtonElement&&(this.setPlayerButtonSize(this.shareButtonElement,"SHARE"),this.setPlayerButtonColors(this.shareButtonElement,"SHARE"),this.setPlayerButtonPaddings(this.shareButtonElement)),this.isButtonVisible("PLAY_PAUSE")&&this.playButtonElement&&(this.setPlayerButtonSize(this.playButtonElement,"PLAY_PAUSE"),this.setPlayerButtonColors(this.playButtonElement,"PLAY_PAUSE"),this.setPlayerButtonPaddings(this.playButtonElement)),this.isButtonVisible("FULLSCREEN")&&this.fullScreenElement&&(this.setPlayerButtonSize(this.fullScreenElement,"FULLSCREEN"),this.setPlayerButtonColors(this.fullScreenElement,"FULLSCREEN"),this.setPlayerButtonPaddings(this.fullScreenElement)),this.isButtonVisible("EXIT_PLAYER")&&this.exitMobileTabletButtonElement&&(this.setPlayerButtonSize(this.exitMobileTabletButtonElement,"EXIT_PLAYER"),this.setPlayerButtonColors(this.exitMobileTabletButtonElement,"EXIT_PLAYER"),this.setPlayerButtonPaddings(this.exitMobileTabletButtonElement)),this.isButtonVisible("CLOSED_CAPTIONS")&&this.closedCaptionsButtonElement&&(this.setPlayerButtonSize(this.closedCaptionsButtonElement,"CLOSED_CAPTIONS"),this.setPlayerButtonColors(this.closedCaptionsButtonElement,"CLOSED_CAPTIONS"),this.setPlayerButtonPaddings(this.closedCaptionsButtonElement)),this.isButtonVisible("CUSTOM_ACTION_BUTTON_ONE")&&this.customActionButtonOneElement&&(this.setPlayerButtonSize(this.customActionButtonOneElement,"CUSTOM_ACTION_BUTTON_ONE"),this.setPlayerButtonColors(this.customActionButtonOneElement,"CUSTOM_ACTION_BUTTON_ONE"),this.setPlayerButtonPaddings(this.customActionButtonOneElement)),this.isButtonVisible("CUSTOM_ACTION_BUTTON_TWO")&&this.customActionButtonTwoElement&&(this.setPlayerButtonSize(this.customActionButtonTwoElement,"CUSTOM_ACTION_BUTTON_TWO"),this.setPlayerButtonColors(this.customActionButtonTwoElement,"CUSTOM_ACTION_BUTTON_TWO"),this.setPlayerButtonPaddings(this.customActionButtonTwoElement)),this.isButtonVisible("NEXT_PAGE")&&this.nextPageButton){const t=this.playerStyle.iconsButtonNavigation.find(t=>"NEXT_PAGE"===t.value);t&&this.applyIconStyle(this.nextPageButton,t,this.playerStyle.icons.navigation.nextPage)}if(this.isButtonVisible("PREV_PAGE")&&this.prevPageButton){const t=this.playerStyle.iconsButtonNavigation.find(t=>"PREV_PAGE"===t.value);t&&this.applyIconStyle(this.prevPageButton,t,this.playerStyle.icons.navigation.prevPage)}if(this.isButtonVisible("NEXT_STORY")&&this.nextStoryButton){const t=this.playerStyle.iconsButtonNavigation.find(t=>"NEXT_STORY"===t.value);t&&this.applyIconStyle(this.nextStoryButton,t,this.playerStyle.icons.navigation.nextStory)}if(this.isButtonVisible("PREV_STORY")&&this.prevStoryButton){const t=this.playerStyle.iconsButtonNavigation.find(t=>"PREV_STORY"===t.value);t&&this.applyIconStyle(this.prevStoryButton,t,this.playerStyle.icons.navigation.prevStory)}}setPlayerButtonPaddings(t){this.playerStyle.iconsButtonPadding&&(t.style.padding=this.playerStyle.iconsButtonPadding,t.style.margin=this.playerStyle.iconsButtonPadding.split(" ").map(t=>"-"+t).join(" "))}setPlayerButtonColors(t,e){const i=this.playerStyle.iconsButton.find(t=>t.value===e);(null==i?void 0:i.color)&&t.setAttribute("icon-color",null==i?void 0:i.color),(null==i?void 0:i.backgroundColor)&&"transparent"!==i.backgroundColor&&(null==i?void 0:i.borderRadius)&&(t.style.backgroundColor=i.backgroundColor,t.style.borderRadius=i.borderRadius)}setPlayerButtonSize(t,e){const i=this.playerStyle.iconsButton.find(t=>t.value===e);if(t&&i&&this.playerStyle.iconsButtonSize&&this.playerStyle.iconsButtonEmbeddedSize){let e="Embedded"===this.mode?this.playerStyle.iconsButtonEmbeddedSize:this.playerStyle.iconsButtonSize;"Full Screen"===this.mode&&"mobile"===a.deviceDetector.platform&&(e=(0,g.convertCssUnitToNumber)(e)-4+"px"),t.setAttribute("width",e),t.setAttribute("height",e)}}getEmbeddedCtaButtonHeight(){return"desktop"===a.deviceDetector.platform?"38px":"tablet"===a.deviceDetector.platform||"Horizontal"===this.aspectRatio?"34px":"43px"}getEmbeddedBottomContainerPaddingBottom(){return"desktop"===a.deviceDetector.platform?"40px":"Horizontal"===this.aspectRatio?"8px":"32px"}getContainerBorderRadius(){return"desktop"===a.deviceDetector.platform?"Embedded"===this.mode&&"Horizontal"===this.aspectRatio?"8px":"20px":"tablet"===a.deviceDetector.platform?"Embedded"===this.mode&&"Horizontal"===this.aspectRatio?"4px":"20px":"Embedded"===this.mode?"8px":"0px"}updatePlayerButtonsOrder(){const t={MUTE_UNMUTE:this.muteButtonElement,EXIT_PLAYER:this.exitMobileTabletButtonElement,PLAY_PAUSE:this.playButtonElement,SHARE:this.shareButtonElement,FULLSCREEN:this.fullScreenElement,CLOSED_CAPTIONS:this.closedCaptionsButtonElement,CUSTOM_ACTION_BUTTON_ONE:this.customActionButtonOneElement,CUSTOM_ACTION_BUTTON_TWO:this.customActionButtonTwoElement};this.playerStyle.iconsButtonOrder.forEach((e,i)=>{const n=t[e];n&&n.setAttribute("order",i.toString())})}updatePlayerContentOrder(){const t={LIVE_CHIP:this.contentChip,STORY_TITLE:this.contentTitle,PUBLISHED_DATE:this.contentPublishedDate};this.playerStyle.contentOrder.forEach((e,i)=>{const n=t[e];n&&(n.style.order=i.toString())})}displayExitButtonOnMobileTablet(){if(!this.exitMobileTabletButtonElement)return;if(!["mobile","tablet"].includes(a.deviceDetector.platform))return void(this.exitMobileTabletButtonElement.style.display="none");const t=["SingleContent","AutoAdvance"].includes(h.VideoPlayerService.playReference)&&!h.ConfigService.shouldDismissPlayer||!this.isButtonVisible("EXIT_PLAYER");this.exitMobileTabletButtonElement.style.display=t?"none":"block"}resetLayout(){}render(){var t;this.updateContainerLayout(),this.updatePlayerContentOrder(),this.updatePlayerButtonsOrder(),this.updatePlayerButtonIcons(),this.updatePlayerButtonsState(!0),this.updatePlayerButtonsStyleAttributes(),this.updateCtaButtonLayout(),this.updateCta(this.pageIndex),this.displayExitButtonOnMobileTablet(),this.shadowTopElement.style.borderRadius=this.getContainerBorderRadius(),this.style.borderRadius=this.getContainerBorderRadius(),null===(t=this.pages)||void 0===t||t.forEach(t=>null==t?void 0:t.render())}onExpandClick(){this.dispatchEvent(new CustomEvent(d.InternalEvent.FULL_SCREEN_CLICK,{bubbles:!0,cancelable:!1})),this.event(l.StoryAction.Expand,{})}onResumeEvent(){this.resume(),this.videoPlayerState.isPlaying=!0,this.updatePlayerButtonIcons()}onPauseEvent(){this.pause(),this.videoPlayerState.isPlaying=!1,this.updatePlayerButtonIcons()}onNextPageEvent(){this.goNextPage()}onPrevPageEvent(){this.goPrevPage()}getPagesContentExtraInfo(t){var e,i;const n=t?this.pageIndex+1:this.pageIndex,o=this.pageIndex>0?this.prevPage:void 0,r=n<this.pages.length?this.pages[n]:void 0;return{previous:null===(e=null==o?void 0:o.data)||void 0===e?void 0:e.extraInfo,current:this.data.extraInfo,next:null===(i=null==r?void 0:r.data)||void 0===i?void 0:i.extraInfo}}getAllFocusableButtons(){return[this.playButtonElement,this.muteButtonElement,this.shareButtonElement,this.exitMobileTabletButtonElement,this.fullScreenElement,this.closedCaptionsButtonElement,this.customActionButtonOneElement,this.customActionButtonTwoElement,this.resumeAfterBlurButton,this.nextPageButton,this.prevPageButton,this.nextStoryButton,this.prevStoryButton,this.ctaButtonElement].filter(
1Boolean)}enableAllButtons(){const t=this.getAllFocusableButtons();this.setButtonsAccessibilityState(t,!0)}disableAllButtons(){const t=this.getAllFocusableButtons();this.setButtonsAccessibilityState(t,!1)}setButtonsAccessibilityState(t,e){e?g.AccessibilityUtils.setElementsAccessible(t):g.AccessibilityUtils.setElementsInaccessible(t)}registerStoryAccessibility(){if(!this.data.id)return;const t=this.buildStoryRegistrationData();a.contentAccessibilityManager.registerContentWidget(this.data.id,t,"story")}buildStoryRegistrationData(){return{widget:this,buttons:this.getStoryButtonsForAccessibility(),data:this.getStoryDataForAccessibility()}}getStoryButtonsForAccessibility(){return{play:this.playButtonElement,mute:this.muteButtonElement,share:this.shareButtonElement,close:this.exitMobileTabletButtonElement,captions:this.closedCaptionsButtonElement,custom1:this.customActionButtonOneElement,custom2:this.customActionButtonTwoElement,nextStoryPage:this.nextPageButton,prevStoryPage:this.prevPageButton,nextStory:this.nextStoryButton,prevStory:this.prevStoryButton}}getStoryDataForAccessibility(){return{id:this.data.id,title:this.data.title,description:this.data.description,isPlaying:this.videoPlayerState.isPlaying,isMuted:this.videoPlayerState.isMuted}}updateStoryAccessibilityLabels(){if(!this.data.id)return;const t=this.getCurrentAccessibilityState();a.contentAccessibilityManager.updateButtonLabels(this.data.id,t)}getCurrentAccessibilityState(){return{isPlaying:this.videoPlayerState.isPlaying,isMuted:this.videoPlayerState.isMuted}}updateAccessibilityLabels(){if(!this.data.id)return;const t=this.buildStoryAccessibilityState();a.contentAccessibilityManager.updateButtonLabels(this.data.id,t)}buildStoryAccessibilityState(){return{id:this.data.id,title:this.data.title,description:this.data.description,isPlaying:!!this.currentPage&&!this.currentPage.paused,isMuted:!!this.currentPage&&this.currentPage.muted}}}},6859:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.AnnouncementService=void 0;const o=i(7449);e.AnnouncementService=class{constructor(t){this.config=t,this.containerRegions=new Map,this.announcementQueue=[],this.isProcessingAnnouncement=!1,this.lastAnnouncementTime=0,this.liveRegionsSetup=!1}setupLiveRegions(t){try{if(!t)return;const e=new Map,i=t.getAttribute("id")||t.tagName.toLowerCase()+"-"+Date.now().toString();[{id:o.ANNOUNCEMENT_CONSTANTS.LIVE_REGIONS.POLITE_ID+"-"+i,priority:"polite"},{id:o.ANNOUNCEMENT_CONSTANTS.LIVE_REGIONS.ASSERTIVE_ID+"-"+i,priority:"assertive"}].forEach(({id:i,priority:n})=>{let r=t.querySelector("#"+i);r||((r=document.createElement("div")).id=i,r.setAttribute(o.ANNOUNCEMENT_CONSTANTS.ATTRIBUTES.ARIA_LIVE,n),r.setAttribute(o.ANNOUNCEMENT_CONSTANTS.ATTRIBUTES.ARIA_ATOMIC,o.ANNOUNCEMENT_CONSTANTS.ATTRIBUTES.ATOMIC_VALUE),r.style.position=o.ANNOUNCEMENT_CONSTANTS.LIVE_REGIONS.STYLES.POSITION,r.style.left=o.ANNOUNCEMENT_CONSTANTS.LIVE_REGIONS.STYLES.LEFT,r.style.width=o.ANNOUNCEMENT_CONSTANTS.LIVE_REGIONS.STYLES.WIDTH,r.style.height=o.ANNOUNCEMENT_CONSTANTS.LIVE_REGIONS.STYLES.HEIGHT,r.style.overflow=o.ANNOUNCEMENT_CONSTANTS.LIVE_REGIONS.STYLES.OVERFLOW,t.appendChild(r)),e.set(n,r)}),this.containerRegions.set(t,e),this.liveRegionsSetup=!0}catch(t){}}announce(t,e="polite",i){if(!t.trim())return;const n={message:t,priority:e,category:i,delay:this.config.delay};this.queueAnnouncement(n)}queueAnnouncement(t){if(this.liveRegionsSetup)return Date.now()-this.lastAnnouncementTime<this.config.delay?(this.announcementQueue.length<this.config.queueSize&&this.announcementQueue.push(t),void(this.isProcessingAnnouncement||this.processAnnouncementQueue())):void this.performAnnouncement(t)}clearQueue(){this.announcementQueue=[]}isProcessing(){return this.isProcessingAnnouncement}processAnnouncementQueue(){return n(this,void 0,void 0,function*(){if(!this.isProcessingAnnouncement&&0!==this.announcementQueue.length){for(this.isProcessingAnnouncement=!0;this.announcementQueue.length>0;){const t=this.announcementQueue.shift();yield this.performAnnouncement(t),yield new Promise(e=>setTimeout(e,t.delay||this.config.delay))}this.isProcessingAnnouncement=!1}})}performAnnouncement(t){return n(this,void 0,void 0,function*(){const e=document.querySelector('[role="dialog"][aria-modal="true"]');if(!e)return;const i=this.containerRegions.get(e),n=null==i?void 0:i.get(t.priority);
1n&&(n.textContent=t.message,this.lastAnnouncementTime=Date.now())})}cleanup(){this.containerRegions.forEach(t=>{t.forEach(t=>{t.parentNode&&t.parentNode.removeChild(t)})}),this.containerRegions.clear(),this.announcementQueue=[],this.liveRegionsSetup=!1,this.isProcessingAnnouncement=!1}}},6925:function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(8926),e)},6945:(t,e)=>{"use strict";function i(t,e){if(t.length<=e)return{prunedQueue:t,removedCount:0};const i=t.length-e;return{prunedQueue:t.slice(i),removedCount:i}}Object.defineProperty(e,"__esModule",{value:!0}),e.pruneOfflineQueue=i,e.addToOfflineQueueWithPruning=function(t,e,n){const o=[...t,e],{prunedQueue:r,removedCount:s}=i(o,n);return{updatedQueue:r,removedCount:s}}},6994:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.accessibilityManager=e.AccessibilityManager=void 0;const n=i(6859),o=i(7958);class r{constructor(t){this.contentButtons=new Map,this.modalFocusReturnTarget=null;const e=o.DEFAULT_ACCESSIBILITY_CONFIG,i=Object.assign(Object.assign({},e),t);this.announcementService=new n.AnnouncementService(i.announcements)}setupLiveRegions(t){this.announcementService.setupLiveRegions(t)}announce(t){this.announcementService.queueAnnouncement(t)}getContentTypeLabel(t){switch(t){case"story":default:return"Story";case"moment":return"Moment"}}manageFocus(t){try{t.focus()}catch(t){}}storeModalFocusReturnTarget(t){this.modalFocusReturnTarget=t,t.hasAttribute("aria-expanded")&&t.setAttribute("aria-expanded","true")}returnFocusFromModal(){if(!this.modalFocusReturnTarget)return!1;try{return this.modalFocusReturnTarget.hasAttribute("aria-expanded")&&this.modalFocusReturnTarget.setAttribute("aria-expanded","false"),document.contains(this.modalFocusReturnTarget)?(this.modalFocusReturnTarget.focus(),this.modalFocusReturnTarget=null,!0):(this.modalFocusReturnTarget=null,!1)}catch(t){return this.modalFocusReturnTarget=null,!1}}setupModalAccessibility(t,e){const i=this.getContentTypeLabel(e);t.setAttribute("role","dialog"),t.setAttribute("aria-modal","true"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-label",i+" modal"),this.storeModalFocusReturnTarget(document.activeElement),this.setupLiveRegions(t)}announceModalStatus(t,e,i){const n=this.getContentTypeLabel(e);let o;switch(t){case"opened":case"closed":o=n+" player "+t;break;default:o=n+" "+t}this.announce({message:o,priority:"polite",category:"status"})}closeModal(t){this.returnFocusFromModal(),this.announceModalStatus("closed",t)}clearModalFocusReturnTarget(){this.modalFocusReturnTarget=null}cleanup(){this.announcementService.cleanup(),this.contentButtons.clear(),this.clearModalFocusReturnTarget()}clearAnnouncementQueue(){this.announcementService.clearQueue()}}e.AccessibilityManager=r,e.accessibilityManager=new r},7014:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},7133:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetLabel=void 0;class i{constructor(t){this._type="BlazeWidgetLabel",this.value=t}static singleLabel(t){return new i(t)}static mustInclude(...t){const e=i.createLabel("and",t);return i.validateAndProceed(e,"mustInclude"),new i(e)}static atLeastOneOf(...t){const e=i.createLabel("or",t);return i.validateAndProceed(e,"atLeastOneOf"),new i(e)}mustInclude(...t){return i.mustInclude(this,...t)}atLeastOneOf(...t){return i.atLeastOneOf(this,...t)}toString(){return this.value}static createLabel(t,e){return"["+t+", "+e.map(t=>t instanceof i?t.toString():t).join(", ")+"]"}static validateAndProceed(t,e){if(!i.isValidLabelFormat(t,e))throw new Error("Invalid label format for "+e)}static isValidLabelFormat(t,e){return("mustInclude"===e?/^\[and, .+, .+\]$/:/^\[or, .+, .+\]$/).test(t)}}
vendor: 11,696 bytes, line 1
1e.BlazeWidgetLabel=i},7143:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},7168:(t,e,i)=>{var n;!function(o,r,s,a){"use strict";var l,d=["","webkit","Moz","MS","ms","o"],u=r.createElement("div"),c=Math.round,h=Math.abs,p=Date.now;function f(t,e,i){return setTimeout(E(t,i),e)}function g(t,e,i){return!!Array.isArray(t)&&(v(t,i[e],i),!0)}function v(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==a)for(n=0;n<t.length;)e.call(i,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function y(t,e,i){var n="DEPRECATED METHOD: "+e+"\n"+i+" AT \n";return function(){var e=new Error("get-stack-trace"),i=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=o.console&&(o.console.warn||o.console.log);return r&&r.call(o.console,n,i),t.apply(this,arguments)}}l="function"!=typeof Object.assign?function(t){if(t===a||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(n!==a&&null!==n)for(var o in n)n.hasOwnProperty(o)&&(e[o]=n[o])}return e}:Object.assign;var m=y(function(t,e,i){for(var n=Object.keys(e),o=0;o<n.length;)(!i||i&&t[n[o]]===a)&&(t[n[o]]=e[n[o]]),o++;return t},"extend","Use `assign`."),b=y(function(t,e){return m(t,e,!0)},"merge","Use `assign`.");function S(t,e,i){var n,o=e.prototype;(n=t.prototype=Object.create(o)).constructor=t,n._super=o,i&&l(n,i)}function E(t,e){return function(){return t.apply(e,arguments)}}function C(t,e){return"function"==typeof t?t.apply(e&&e[0]||a,e):t}function w(t,e){return t===a?e:t}function A(t,e,i){v(_(e),function(e){t.addEventListener(e,i,!1)})}function T(t,e,i){v(_(e),function(e){t.removeEventListener(e,i,!1)})}function I(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function M(t,e){return t.indexOf(e)>-1}function _(t){return t.trim().split(/\s+/g)}function x(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}function P(t){return Array.prototype.slice.call(t,0)}function O(t,e,i){for(var n=[],o=[],r=0;r<t.length;){var s=e?t[r][e]:t[r];x(o,s)<0&&n.push(t[r]),o[r]=s,r++}return i&&(n=e?n.sort(function(t,i){return t[e]>i[e]}):n.sort()),n}function L(t,e){for(var i,n,o=e[0].toUpperCase()+e.slice(1),r=0;r<d.length;){if((n=(i=d[r])?i+o:e)in t)return n;r++}return a}var D=1;function k(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||o}var N="ontouchstart"in o,B=L(o,"PointerEvent")!==a,R=N&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),$="touch",z="mouse",j=["x","y"],F=["clientX","clientY"];function U(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){C(t.options.enable,[t])&&i.handler(e)},this.init()}function V(t,e,i){var n=i.pointers.length,o=i.changedPointers.length,r=1&e&&n-o==0,s=12&e&&n-o==0;i.isFirst=!!r,i.isFinal=!!s,r&&(t.session={}),i.eventType=e,function(t,e){var i=t.session,n=e.pointers,o=n.length;i.firstInput||(i.firstInput=W(e)),o>1&&!i.firstMultiple?i.firstMultiple=W(e):1===o&&(i.firstMultiple=!1);var r,s,l,d,u,c,f=i.firstInput,g=i.firstMultiple,v=g?g.center:f.center,y=e.center=H(n);e.timeStamp=p(),e.deltaTime=e.timeStamp-f.timeStamp,e.angle=Z(v,y),e.distance=Q(v,y),r=i,l=(s=e).center,d=r.offsetDelta||{},u=r.prevDelta||{},c=r.prevInput||{},1!==s.eventType&&4!==c.eventType||(u=r.prevDelta={x:c.deltaX||0,y:c.deltaY||0},d=r.offsetDelta={x:l.x,y:l.y}),s.deltaX=u.x+(l.x-d.x),s.deltaY=u.y+(l.y-d.y),e.offsetDirection=Y(e.deltaX,e.deltaY);var m,b,S=G(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=S.x,e.overallVelocityY=S.y,e.overallVelocity=h(S.x)>h(S.y)?S.x:S.y,e.scale=g?(m=g.pointers,Q((b=n)[0],b[1],F)/Q(m[0],m[1],F)):1,e.rotation=g?function(t,e){return Z(e[1],e[0],F)+Z(t[1],t[0],F)}(g.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,n,o,r,s=t.lastInterval||e,l=e.timeStamp-s.timeStamp;if(8!=e.eventType&&(l>25||s.velocity===a)){var d=e.deltaX-s.deltaX,u=e.deltaY-s.deltaY,c=G(l,d,u);n=c.x,o=c.y,i=h(c.x)>h(c.y)?c.x:c.y,r=Y(d,u),t.lastInterval=e}else i=s.velocity,n=s.velocityX,o=s.velocityY,r=s.direction;e.velocity=i,e.velocityX=n,e.velocityY=o,e.direction=r}(i,e);var E=t.element;I(e.srcEvent.target,E)&&(E=e.srcEvent.target),e.target=E}(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function W(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:c(t.pointers[i].clientX),clientY:c(t.pointers[i].clientY)},i++;return{timeStamp:p(),pointers:e,center:H(e),deltaX:t.deltaX,deltaY:t.deltaY}}function H(t){var e=t.length;if(1===e)return{x:c(t[0].clientX),y:c(t[0].clientY)};for(var i=0,n=0,o=0;o<e;)i+=t[o].clientX,n+=t[o].clientY,o++;return{x:c(i/e),y:c(n/e)}}function G(t,e,i){return{x:e/t||0,y:i/t||0}}function Y(t,e){return t===e?1:h(t)>=h(e)?t<0?2:4:e<0?8:16}function Q(t,e,i){i||(i=j);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return Math.sqrt(n*n+o*o)}function Z(t,e,i){i||(i=j);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return 180*Math.atan2(o,n)/Math.PI}U.prototype={handler:function(){},init:function(){this.evEl&&A(this.element,this.evEl,this.domHandler),this.evTarget&&A(this.target,this.evTarget,this.domHandler),this.evWin&&A(k(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&T(this.element,this.evEl,this.domHandler),this.evTarget&&T(this.target,this.evTarget,this.domHandler),this.evWin&&T(k(this.element),this.evWin,this.domHandler)}};var X={mousedown:1,mousemove:2,mouseup:4};function q(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,U.apply(this,arguments)}S(q,U,{handler:function(t){var e=X[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:z,srcEvent:t}))}});var K={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},J={2:$,3:"pen",4:z,5:"kinect"},tt="pointerdown",et="pointermove pointerup pointercancel";function it(){this.evEl=tt,this.evWin=et,U.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&(tt="MSPointerDown",et="MSPointerMove MSPointerUp MSPointerCancel"),S(it,U,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),o=K[n],r=J[t.pointerType]||t.pointerType,s=r==$,a=x(e,t.pointerId,"pointerId");1&o&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):12&o&&(i=!0),a<0||(e[a]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:r,srcEvent:t}),i&&e.splice(a,1))}});var nt={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ot(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,U.apply(this,arguments)}S(ot,U,{handler:function(t){var e=nt[t.type];if(1===e&&(this.started=!0),this.started){var i=function(t,e){var i=P(t.touches),n=P(t.changedTouches);return 12&e&&(i=O(i.concat(n),"identifier",!0)),[i,n]}.call(this,t,e);12&e&&i[0].length-i[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:$,srcEvent:t})}}});var rt={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function st(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},U.apply(this,arguments)}function at(){U.apply(this,arguments);var t=E(this.handler,this);this.touch=new st(this.manager,t),this.mouse=new q(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function lt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY};this.lastTouches.push(i);var n=this.lastTouches;setTimeout(function(){var t=n.indexOf(i);t>-1&&n.splice(t,1)},2500)}}S(st,U,{handler:function(t){var e=rt[t.type],i=function(t,e){var i=P(t.touches),n=this.targetIds;if(3&e&&1===i.length)return n[i[0].identifier]=!0,[i,i];var o,r,s=P(t.changedTouches),a=[],l=this.target;if(r=i.filter(function(t){return I(t.target,l)}),1===e)for(o=0;o<r.length;)n[r[o].identifier]=!0,o++;for(o=0;o<s.length;)n[s[o].identifier]&&a.push(s[o]),12&e&&delete n[s[o].identifier],o++;return a.length?[O(r.concat(a),"identifier",!0),a]:void 0}.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:$,srcEvent:t})}}),S(at,U,{handler:function(t,e,i){var n=i.pointerType==$,o=i.pointerType==z;if(!(o&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(n)(function(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,lt.call(this,e)):12&t&&lt.call(this,e)}).call(this,e,i);else if(o&&function(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var o=this.lastTouches[n],r=Math.abs(e-o.x),s=Math.abs(i-o.y);if(r<=25&&s<=25)return!0}return!1}.call(this,i))return;this.callback(t,e,i)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var dt=L(u.style,"touchAction"),ut=dt!==a,ct="compute",ht="manipulation",pt="none",ft="pan-x",gt="pan-y",vt=function(){if(!ut)return!1;var t={},e=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(i){t[i]=!e||o.CSS.supports("touch-action",i)}),t}();function yt(t,e){this.manager=t,this.set(e)}function mt(t){this.options=l({},this.defaults,t||{}),this.id=D++,this.manager=null,this.options.enable=w(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function bt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function St(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function Et(t,e){var i=e.manager;return i?i.get(t):t}function Ct(){mt.apply(this,arguments)}function wt(){Ct.apply(this,arguments),this.pX=null,this.pY=null}function At(){Ct.apply(this,arguments)}function Tt(){mt.apply(this,arguments),this._timer=null,this._input=null}function It(){Ct.apply(this,arguments)}function Mt(){Ct.apply(this,arguments)}function _t(){mt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function xt(t,e){return(e=e||{}).recognizers=w(e.recognizers,xt.defaults.preset),new Pt(t,e)}function Pt(t,e){this.options=l({},xt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new(this.options.inputClass||(B?it:R?st:N?at:q))(this,V),this.touchAction=new yt(this,this.options.touchAction),Ot(this,!0),v(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function Ot(t,e){var i,n=t.element;n.style&&(v(t.options.cssProps,function(o,r){i=L(n.style,r),e?(t.oldCssProps[i]=n.style[i],n.style[i]=o):n.style[i]=t.oldCssProps[i]||""}),e||(t.oldCssProps={}))}yt.prototype={set:function(t){t==ct&&(t=this.compute()),ut&&this.manager.element.style&&vt[t]&&(this.manager.element.style[dt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return v(this.manager.recognizers,function(e){C(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(M(t,pt))return pt;var e=M(t,ft),i=M(t,gt);return e&&i?pt:e||i?e?ft:gt:M(t,ht)?ht:"auto"}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,o=M(n,pt)&&!vt[pt],r=M(n,gt)&&!vt[gt],s=M(n,ft)&&!vt[ft];if(o){var a=1===t.pointers.length,l=t.distance<2,d=t.deltaTime<250;
vendor: 7,074 bytes, line 1
1if(a&&l&&d)return}if(!s||!r)return o||r&&6&i||s&&24&i?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}},mt.prototype={defaults:{},set:function(t){return l(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(g(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Et(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return g(t,"dropRecognizeWith",this)||(t=Et(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(g(t,"requireFailure",this))return this;var e=this.requireFail;return-1===x(e,t=Et(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(g(t,"dropRequireFailure",this))return this;t=Et(t,this);var e=x(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,i=this.state;function n(i){e.manager.emit(i,t)}i<8&&n(e.options.event+bt(i)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),i>=8&&n(e.options.event+bt(i))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=l({},t);if(!C(this.options.enable,[this,e]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},S(Ct,mt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,i=t.eventType,n=6&e,o=this.attrTest(t);return n&&(8&i||!o)?16|e:n||o?4&i?8|e:2&e?4|e:2:32}}),S(wt,Ct,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push(gt),24&t&&e.push(ft),e},directionTest:function(t){var e=this.options,i=!0,n=t.distance,o=t.direction,r=t.deltaX,s=t.deltaY;return o&e.direction||(6&e.direction?(o=0===r?1:r<0?2:4,i=r!=this.pX,n=Math.abs(t.deltaX)):(o=0===s?1:s<0?8:16,i=s!=this.pY,n=Math.abs(t.deltaY))),t.direction=o,i&&n>e.threshold&&o&e.direction},attrTest:function(t){return Ct.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=St(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),S(At,Ct,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[pt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),S(Tt,mt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,o=t.deltaTime>e.time;if(this._input=t,!n||!i||12&t.eventType&&!o)this.reset();else if(1&t.eventType)this.reset(),this._timer=f(function(){this.state=8,this.tryEmit()},e.time,this);else if(4&t.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),S(It,Ct,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[pt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),S(Mt,Ct,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return wt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return 30&i?e=t.overallVelocity:6&i?e=t.overallVelocityX:24&i&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&h(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=St(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),S(_t,mt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ht]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,o=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(n&&o&&i){if(4!=t.eventType)return this.failTimeout();var r=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||Q(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&r?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=f(function(){this.state=8,this.tryEmit()},e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=f(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),xt.VERSION="2.0.7",xt.defaults={domEvents:!1,touchAction:ct,enable:!0,inputTarget:null,inputClass:null,preset:[[It,{enable:!1}],[At,{enable:!1},["rotate"]],[Mt,{direction:6}],[wt,{direction:6},["swipe"]],[_t],[_t,{event:"doubletap",taps:2},["tap"]],[Tt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Pt.prototype={set:function(t){return l(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var i;this.touchAction.preventDefaults(t);var n=this.recognizers,o=e.curRecognizer;(!o||o&&8&o.state)&&(o=e.curRecognizer=null);for(var r=0;r<n.length;)i=n[r],2===e.stopped||o&&i!=o&&!i.canRecognizeWith(o)?i.reset():i.recognize(t),!o&&14&i.state&&(o=e.curRecognizer=i),r++}},get:function(t){if(t instanceof mt)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event==t)return e[i];return null},add:function(t){if(g(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(g(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,i=x(e,t);-1!==i&&(e.splice(i,1),this.touchAction.update())}return this},on:function(t,e){if(t!==a&&e!==a){var i=this.handlers;return v(_(t),function(t){i[t]=i[t]||[],i[t].push(e)}),this}},off:function(t,e){if(t!==a){var i=this.handlers;
1return v(_(t),function(t){e?i[t]&&i[t].splice(x(i[t],e),1):delete i[t]}),this}},emit:function(t,e){var i,n,o;this.options.domEvents&&(i=t,n=e,(o=r.createEvent("Event")).initEvent(i,!0,!0),o.gesture=n,n.target.dispatchEvent(o));var s=this.handlers[t]&&this.handlers[t].slice();if(s&&s.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var a=0;a<s.length;)s[a](e),a++}},destroy:function(){this.element&&Ot(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(xt,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Pt,Input:U,TouchAction:yt,TouchInput:st,MouseInput:q,PointerEventInput:it,TouchMouseInput:at,SingleTouchInput:ot,Recognizer:mt,AttrRecognizer:Ct,Tap:_t,Pan:wt,Swipe:Mt,Pinch:At,Rotate:It,Press:Tt,on:A,off:T,each:v,merge:b,extend:m,assign:l,inherit:S,bindFn:E,prefixed:L}),(void 0!==o?o:"undefined"!=typeof self?self:{}).Hammer=xt,(n=function(){return xt}.call(e,i,e,t))===a||(t.exports=n)}(window,document)},7177:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.LikeVideoCommand=e.SeekCommand=e.ToggleFullscreenCommand=e.UnmuteCommand=e.MuteCommand=e.ToggleMuteCommand=e.PauseCommand=e.PlayCommand=void 0;const o=i(1908),r=i(4545);e.PlayCommand=class{constructor(t,e=r.VideoPlayerService){this.playbackStrategy=t,this.videoPlayerState=e}execute(...t){return this.playbackStrategy.play().then(t=>(this.videoPlayerState.isPlaying=!0,t)).catch(t=>({status:o.PlayStatus.Failed,error:t}))}},e.PauseCommand=class{constructor(t){this.playbackStrategy=t}execute(...t){this.playbackStrategy.pause()}},e.ToggleMuteCommand=class{constructor(t){this.playbackStrategy=t}execute(...t){const e=this.playbackStrategy.isMuted();this.playbackStrategy.setMuted(!e)}},e.MuteCommand=class{constructor(t,e=r.VideoPlayerService){this.playbackStrategy=t,this.videoPlayerState=e}execute(){this.playbackStrategy.setMuted(!0),this.videoPlayerState.isMuted=!0}},e.UnmuteCommand=class{constructor(t,e=r.VideoPlayerService){this.playbackStrategy=t,this.videoPlayerState=e}execute(){this.playbackStrategy.setMuted(!1),this.videoPlayerState.isMuted=!1}},e.ToggleFullscreenCommand=class{constructor(t,e){this.playbackStrategy=t,this.videoElement=e}execute(...t){return n(this,void 0,void 0,function*(){var t,e;this.playbackStrategy.toggleFullscreen(),(null===(t=this.videoElement.embeddedRef)||void 0===t?void 0:t.player)instanceof o.BlazeWidgetVideoPlayer?yield this.videoElement.embeddedRef.player.toggleFullscreen():yield(null===(e=this.videoElement.modal)||void 0===e?void 0:e.player).toggleFullscreen()})}},e.SeekCommand=class{constructor(t){this.playbackStrategy=t}execute(t){"number"==typeof t&&this.playbackStrategy.seek(t)}},e.LikeVideoCommand=class{constructor(t){this.videoElement=t}execute(...t){return n(this,void 0,void 0,function*(){const t=this.videoElement.getAttribute("video-id");if(t){const e=!("true"===this.videoElement.getAttribute("is-liked"));this.videoElement.setAttribute("is-liked",e.toString()),yield r.LikeService.updateVideoLike(e,t)}})}}},7188:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GuardNullOrEmpty=function(t,e){if(!e)throw new Error(t+" cannot be empty")},e.isStory=function(t){return"pages"in t}},7195:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HLSQualityManager=void 0;class i{static remember(t){this.memory={level:t,lastUpdate:Date.now()}}static recall(){return this.memory.level>=0&&Date.now()-this.memory.lastUpdate<this.DURATION?this.memory.level:-1}static shouldUseMemory(){return this.recall()>=0}static clear(){this.memory={level:-1,lastUpdate:0}}}e.HLSQualityManager=i,i.DURATION=3e5,i.memory={level:-1,lastUpdate:0}}
vendor: 8,744 bytes, line 1
1,7232:function(t,e,i){var n;!function(o,r){"use strict";var s="function",a="undefined",l="object",d="string",u="model",c="name",h="type",p="vendor",f="version",g="architecture",v="console",y="mobile",m="tablet",b="smarttv",S="wearable",E="embedded",C="Amazon",w="Apple",A="BlackBerry",T="Browser",I="Chrome",M="Firefox",_="Google",x="Microsoft",P="Motorola",O="Nvidia",L="OnePlus",D="Opera",k="OPPO",N="Samsung",B="Sony",R="Xiaomi",$="Zebra",z="Facebook",j="Chromium OS",F=" Browser",U=function(t){for(var e={},i=0;i<t.length;i++)e[t[i].toUpperCase()]=t[i];return e},V=function(t,e){return typeof t===d&&-1!==W(e).indexOf(W(t))},W=function(t){return t.toLowerCase()},H=function(t,e){if(typeof t===d)return t=t.replace(/^\s\s*/,""),typeof e===a?t:t.substring(0,500)},G=function(t,e){for(var i,n,o,a,d,u,c=0;c<e.length&&!d;){var h=e[c],p=e[c+1];for(i=n=0;i<h.length&&!d&&h[i];)if(d=h[i++].exec(t))for(o=0;o<p.length;o++)u=d[++n],typeof(a=p[o])===l&&a.length>0?2===a.length?typeof a[1]==s?this[a[0]]=a[1].call(this,u):this[a[0]]=a[1]:3===a.length?typeof a[1]!==s||a[1].exec&&a[1].test?this[a[0]]=u?u.replace(a[1],a[2]):r:this[a[0]]=u?a[1].call(this,u,a[2]):r:4===a.length&&(this[a[0]]=u?a[3].call(this,u.replace(a[1],a[2])):r):this[a]=u||r;c+=2}},Y=function(t,e){for(var i in e)if(typeof e[i]===l&&e[i].length>0){for(var n=0;n<e[i].length;n++)if(V(e[i][n],t))return"?"===i?r:i}else if(V(e[i],t))return"?"===i?r:i;return e.hasOwnProperty("*")?e["*"]:t},Q={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2000:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Z={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[f,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[f,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,f],[/opios[\/ ]+([\w\.]+)/i],[f,[c,D+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[f,[c,D+" GX"]],[/\bopr\/([\w\.]+)/i],[f,[c,D]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[f,[c,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[f,[c,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[c,f],[/quark(?:pc)?\/([-\w\.]+)/i],[f,[c,"Quark"]],[/\bddg\/([\w\.]+)/i],[f,[c,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[f,[c,"UC"+T]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[f,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[f,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[f,[c,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[f,[c,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[f,[c,"Smart Lenovo "+T]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure "+T],f],[/\bfocus\/([\w\.]+)/i],[f,[c,M+" Focus"]],[/\bopt\/([\w\.]+)/i],[f,[c,D+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[f,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[f,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[f,[c,D+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[f,[c,"MIUI"+F]],[/fxios\/([\w\.-]+)/i],[f,[c,M]],[/\bqihoobrowser\/?([\w\.]*)/i],[f,[c,"360"]],[/\b(qq)\/([\w\.]+)/i],[[c,/(.+)/,"$1Browser"],f],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1"+F],f],[/samsungbrowser\/([\w\.]+)/i],[f,[c,N+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[f,[c,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[c,"Sogou Mobile"],f],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[c,f],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[c],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[f,c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,z],f],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[c,f],[/\bgsa\/([\w\.]+) .*safari\//i],[f,[c,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[f,[c,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[f,[c,I+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,I+" WebView"],f],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[f,[c,"Android "+T]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,f],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[f,[c,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[f,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[f,Y,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[c,f],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],f],[/(wolvic|librewolf)\/([\w\.]+)/i],[c,f],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[f,[c,M+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[c,[f,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[c,[f,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[g,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[g,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[g,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[g,/ower/,"",W]],[/ sun4\w[;\)]/i],[[g,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[g,W]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[p,N],[h,m]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[u,[p,N],[h,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[p,w],[h,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[p,w],[h,m]],[/(macintosh);/i],[u,[p,w]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[p,"Sharp"],[h,y]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[u,[p,"Honor"],[h,m]],[/honor([-\w ]+)[;\)]/i],[u,[p,"Honor"],[h,y]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[u,[p,"Huawei"],[h,m]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[p,"Huawei"],[h,y]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[u,/_/g," "],[p,R],[h,m]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[u,/_/g," "],[p,R],[h,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[p,k],[h,y]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[u,[p,Y,{OnePlus:["304","403","203"],"*":k}],[h,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[p,"Vivo"],[h,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[p,"Realme"],[h,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[p,P],[h,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[p,P],[h,m]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[p,"LG"],[h,m]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[p,"LG"],[h,y]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
vendor: 5,528 bytes, line 1
1(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[u,[p,"Lenovo"],[h,m]],[/(nokia) (t[12][01])/i],[p,u,[h,m]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[u,/_/g," "],[h,y],[p,"Nokia"]],[/(pixel (c|tablet))\b/i],[u,[p,_],[h,m]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[p,_],[h,y]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[p,B],[h,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[p,B],[h,m]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[p,L],[h,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[p,C],[h,m]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[p,C],[h,y]],[/(playbook);[-\w\),; ]+(rim)/i],[u,p,[h,m]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[p,A],[h,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[p,"ASUS"],[h,m]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[p,"ASUS"],[h,y]],[/(nexus 9)/i],[u,[p,"HTC"],[h,m]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[u,/_/g," "],[h,y]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[u,[p,"TCL"],[h,m]],[/(itel) ((\w+))/i],[[p,W],u,[h,Y,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[p,"Acer"],[h,m]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[p,"Meizu"],[h,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[p,"Ulefone"],[h,y]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[u,[p,"Energizer"],[h,y]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[u,[p,"Cat"],[h,y]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[u,[p,"Smartfren"],[h,y]],[/droid.+; (a(?:015|06[35]|142p?))/i],[u,[p,"Nothing"],[h,y]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[u,[p,"Archos"],[h,m]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[u,[p,"Archos"],[h,y]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[p,u,[h,m]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[p,u,[h,y]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[p,u,[h,m]],[/(surface duo)/i],[u,[p,x],[h,m]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[p,"Fairphone"],[h,y]],[/(u304aa)/i],[u,[p,"AT&T"],[h,y]],[/\bsie-(\w*)/i],[u,[p,"Siemens"],[h,y]],[/\b(rct\w+) b/i],[u,[p,"RCA"],[h,m]],[/\b(venue[\d ]{2,7}) b/i],[u,[p,"Dell"],[h,m]],[/\b(q(?:mv|ta)\w+) b/i],[u,[p,"Verizon"],[h,m]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[p,"Barnes & Noble"],[h,m]],[/\b(tm\d{3}\w+) b/i],[u,[p,"NuVision"],[h,m]],[/\b(k88) b/i],[u,[p,"ZTE"],[h,m]],[/\b(nx\d{3}j) b/i],[u,[p,"ZTE"],[h,y]],[/\b(gen\d{3}) b.+49h/i],[u,[p,"Swiss"],[h,y]],[/\b(zur\d{3}) b/i],[u,[p,"Swiss"],[h,m]],[/\b((zeki)?tb.*\b) b/i],[u,[p,"Zeki"],[h,m]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],u,[h,m]],[/\b(ns-?\w{0,9}) b/i],[u,[p,"Insignia"],[h,m]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[p,"NextBook"],[h,m]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],u,[h,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],u,[h,y]],[/\b(ph-1) /i],[u,[p,"Essential"],[h,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[p,"Envizen"],[h,m]],[/\b(trio[-\w\. ]+) b/i],[u,[p,"MachSpeed"],[h,m]],[/\btu_(1491) b/i],[u,[p,"Rotor"],[h,m]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[u,[p,O],[h,m]],[/(sprint) (\w+)/i],[p,u,[h,y]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[p,x],[h,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[p,$],[h,m]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[p,$],[h,y]],[/smart-tv.+(samsung)/i],[p,[h,b]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[p,N],[h,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,"LG"],[h,b]],[/(apple) ?tv/i],[p,[u,w+" TV"],[h,b]],[/crkey/i],[[u,I+"cast"],[p,_],[h,b]],[/droid.+aft(\w+)( bui|\))/i],[u,[p,C],[h,b]],[/(shield \w+ tv)/i],[u,[p,O],[h,b]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[p,"Sharp"],[h,b]],[/(bravia[\w ]+)( bui|\))/i],[u,[p,B],[h,b]],[/(mi(tv|box)-?\w+) bui/i],[u,[p,R],[h,b]],[/Hbbtv.*(technisat) (.*);/i],[p,u,[h,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,H],[u,H],[h,b]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[u,[h,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,u,[h,v]],[/droid.+; (shield)( bui|\))/i],[u,[p,O],[h,v]],[/(playstation \w+)/i],[u,[p,B],[h,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[p,x],[h,v]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[u,[p,N],[h,S]],[/((pebble))app/i,/(asu
vendor: 5,476 bytes, line 1
1s|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[p,u,[h,S]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[u,[p,k],[h,S]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[p,w],[h,S]],[/(opwwe\d{3})/i],[u,[p,L],[h,S]],[/(moto 360)/i],[u,[p,P],[h,S]],[/(smartwatch 3)/i],[u,[p,B],[h,S]],[/(g watch r)/i],[u,[p,"LG"],[h,S]],[/droid.+; (wt63?0{2,3})\)/i],[u,[p,$],[h,S]],[/droid.+; (glass) \d/i],[u,[p,_],[h,S]],[/(pico) (4|neo3(?: link|pro)?)/i],[p,u,[h,S]],[/; (quest( \d| pro)?)/i],[u,[p,z],[h,S]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[h,E]],[/(aeobc)\b/i],[u,[p,C],[h,E]],[/(homepod).+mac os/i],[u,[p,w],[h,E]],[/windows iot/i],[[h,E]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[h,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[h,m]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,m]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,y]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[u,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[f,[c,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[c,f],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[c,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[c,f],[/ladybird\//i],[[c,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[f,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,f],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[c,[f,Y,Q]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[f,Y,Q],[c,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[f,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,"Mac OS"],[f,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[f,c],[/(ubuntu) ([\w\.]+) like android/i],[[c,/(.+)/,"$1 Touch"],f],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[c,f],[/\(bb(10);/i],[f,[c,A]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[f,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[f,[c,M+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[f,[c,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[f,[c,"watchOS"]],[/crkey\/([\d\.]+)/i],[f,[c,I+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[c,j],f],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[c,f],[/(sunos) ?([\w\.\d]*)/i],[[c,"Solaris"],f],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[c,f]]},X=function(t,e){if(typeof t===l&&(e=t,t=r),!(this instanceof X))return new X(t,e).getResult();var i=typeof o!==a&&o.navigator?o.navigator:r,n=t||(i&&i.userAgent?i.userAgent:""),v=i&&i.userAgentData?i.userAgentData:r,b=e?function(t,e){var i={};for(var n in t)e[n]&&e[n].length%2==0?i[n]=e[n].concat(t[n]):i[n]=t[n];return i}(Z,e):Z,S=i&&i.userAgent==n;return this.getBrowser=function(){var t,e={};return e[c]=r,e[f]=r,G.call(e,n,b.browser),e.major=typeof(t=e[f])===d?t.replace(/[^\d\.]/g,"").split(".")[0]:r,S&&i&&i.brave&&typeof i.brave.isBrave==s&&(e[c]="Brave"),e},this.getCPU=function(){var t={};return t[g]=r,G.call(t,n,b.cpu),t},this.getDevice=function(){var t={};return t[p]=r,t[u]=r,t[h]=r,G.call(t,n,b.device),S&&!t[h]&&v&&v.mobile&&(t[h]=y),S&&"Macintosh"==t[u]&&i&&typeof i.standalone!==a&&i.maxTouchPoints&&i.maxTouchPoints>2&&(t[u]="iPad",t[h]=m),t},this.getEngine=function(){var t={};return t[c]=r,t[f]=r,G.call(t,n,b.engine),t},this.getOS=function(){var t={};return t[c]=r,t[f]=r,G.call(t,n,b.os),S&&!t[c]&&v&&v.platform&&"Unknown"!=v.platform&&(t[c]=v.platform.replace(/chrome os/i,j).replace(/macos/i,"Mac OS")),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(t){return n=typeof t===d&&t.length>500?H(t,500):t,this},this.setUA(n),this};X.VERSION="1.0.41",X.BROWSER=U([c,f,"major"]),X.CPU=U([g]),X.DEVICE=U([u,p,h,v,y,b,m,S,E]),X.ENGINE=X.OS=U([c,f]),typeof e!==a?(t.exports&&(e=t.exports=X),e.UAParser=X):i.amdO?(n=function(){return X}.call(e,i,e,t))===r||(t.exports=n):typeof o!==a&&(o.UAParser=X);var q=typeof o!==a&&(o.jQuery||o.Zepto);if(q&&!q.ua){var K=new X;q.ua=K.getResult(),q.ua.get=function(){return K.getUA()},q.ua.set=function(t){K.setUA(t);var e=K.getResult();for(var i in e)q.ua[i]=e[i]}}}("object"==typeof window?window:this)},7311:(t,e,i)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.Presets=void 0;const n=i(6450),o=i(277),r=i(5686);class s{}e.Presets=s,s.widgetFont="'WSC Open Sans'",s.playerFont="'WSC Open Sans'",s.iconDefaultStyle={isVisible:!1,url:o.externalLinkIconSvg,size:"24px",color:"inherit"},s.CtaButtonStyle={color:"",backgroundColor:"",borderRadius:"8px",padding:"0",border:"",fontSize:"16px",font:s.playerFont,fontWeight:"700",textTransform:"uppercase",isAnimated:!1,isDisplayCtaModal:!0,width:"100%",height:"40px",position:"CENTER",isVisible:!0,icon:s.iconDefaultStyle},s.StatusLiveStyle={backgroundColor:r.Colors.ReadGray,backgroundImage:"none",textColor:r.Colors.LightPrimary,font:s.widgetFont,textSize:"10px",letterSpacing:"initial",borderRadius:"14px",borderWidth:2,borderColor:r.Colors.LightPrimary,thumbnailBorderColor:r.Colors.ReadGray,text:"LIVE",isVisible:!0,padding:"3px 9px"},s.StatusLiveUnreadStyle={backgroundColor:r.Colors.LiveChip,backgroundImage:"none",textColor:r.Colors.LightPrimary,font:s.widgetFont,textSize:"10px",letterSpacing:"initial",borderRadius:"14px",borderWidth:2,borderColor:r.Colors.LightPrimary,thumbnailBorderColor:r.Colors.LiveChip,text:"LIVE",isVisible:!0,padding:"3px 9px"},s.StatusReadStyle={backgroundColor:r.Colors.ReadGray,backgroundImage:"none",textColor:r.Colors.LightPrimary,font:s.widgetFont,textSize:"10px",letterSpacing:"initial",borderRadius:"14px",borderWidth:2,borderColor:r.Colors.LightPrimary,thumbnailBorderColor:r.Colors.ReadGray,text:"",isVisible:!0,padding:"3px 9px"},s.StatusUnreadStyle={backgroundColor:r.Colors.Accent,backgroundImage:"none",textColor:r.Colors.LightPrimary,font:s.widgetFont,textSize:"10px",letterSpacing:"initial",borderRadius:"14px",borderWidth:2,borderColor:r.Colors.LightPrimary,thumbnailBorderColor:r.Colors.Accent,text:"NEW",isVisible:!0,padding:"3px 9px"},s.BadgeStyle={backgroundColor:"",backgroundImage:"",textColor:r.Colors.LightPrimary,font:s.widgetFont,textSize:"10px",letterSpacing:"initial",borderRadius:"50%",borderWidth:2,borderColor:r.Colors.LightPrimary,thumbnailBorderColor:"",padding:"0",text:"",isVisible:!1,width:24,height:24},s.LabelStyle={isVisible:!0,gap:8,width:"auto",color:r.Colors.LightPrimary,padding:"0px",position:"outsideBottom",height:"20px",font:s.widgetFont,fontSize:"14px",fontWeight:"bold"},s.Grid2Column={thumbnailType:"VERTICAL_TWO_BY_THREE",thumbnailShape:"Rectangle",columns:2,rows:0,itemRatio:2/3,lines:2,wordBreak:"break-word",labelStyle:Object.assign(Object.assign({},s.LabelStyle),{padding:"8px",position:"insideBottomLeft"}),horizontalItemsSpacing:8,verticalItemsSpacing:8,borderWidth:0,borderRadius:"10px",borderPadding:0,statusLiveStyle:Object.assign(Object.assign({},s.StatusLiveStyle),{borderWidth:0}),statusLiveUnreadStyle:Object.assign(Object.assign({},s.StatusLiveUnreadStyle),{borderWidth:0}),statusReadStyle:Object.assign(Object.assign({},s.StatusReadStyle),{borderWidth:0}),statusUnreadStyle:Object.assign(Object.assign({},s.StatusUnreadStyle),{borderWidth:0}),statusIndicatorPosition:"insideTopLeft",badgeIndicatorStyle:Object.assign({},s.BadgeStyle),badgePosition:"outsideTopRight",isSkeleton:!1},s.Grid3Column=Object.assign(Object.assign({},s.Grid2Column),{columns:3}),s.Grid2ColumnHorizontal=Object.assign(Object.assign({},s.Grid2Column),{columns:2,thumbnailType:"CUSTOM",itemRatio:n.ASPECT_RATIO_16_9}),s.Grid3ColumnHorizontal=Object.assign(Object.assign({},s.Grid2Column),{columns:3,thumbnailType:"CUSTOM",itemRatio:n.ASPECT_RATIO_16_9}),s.RowCircle=Object.assign(Object.assign({},s.Grid2Column),{columns:0,rows:1,thumbnailShape:"Circle",thumbnailType:"SQUARE_ICON",borderWidth:2,borderPadding:4,borderRadius:"50%",itemRatio:1,labelStyle:Object.assign(Object.assign({},s.LabelStyle),{position:"outsideBottom",color:r.Colors.Black}),statusLiveStyle:Object.assign({},s.StatusLiveStyle),statusLiveUnreadStyle:Object.assign({},s.StatusLiveUnreadStyle),statusReadStyle:Object.assign({},s.StatusReadStyle),statusUnreadStyle:Object.assign(Object.assign({},s.StatusUnreadStyle),{isVisible:!1}),statusIndicatorPosition:"outsideBottom",badgeIndicatorStyle:Object.assign({},s.BadgeStyle),badgePosition:"outsideTopRight",horizontalItemsSpacing:12,verticalItemsSpacing:12}),s.RowRectangle=Object.assign(Object.assign({},s.Grid2Column),{columns:0,rows:1}),s.RowRectangleAnimated=Object.assign(Object.assign({},s.RowRectangle),{thumbnailType:"ANIMATED_THUMBNAIL_POSTER",itemRatio:n.ASPECT_RATIO_9_16}),s.RowHorizontalRectangle=Object.assign(Object.assign({},s.Grid2Column),{columns:0,rows:1,thumbnailType:"CUSTOM",itemRatio:n.ASPECT_RATIO_16_9}),s.RowHorizontalRectangleAnimated=Object.assign(Object.assign({},s.RowHorizontalRectangle),{thumbnailType:"ANIMATED_THUMBNAIL_POSTER"}),s.Default=Object.assign({},s.RowCircle),s.DefaultStoryStyle={titleVisible:!0,titleFont:s.playerFont,titleFontSize:"12px",titleFontSizeEmbedded:"11px",titleColor:r.Colors.LightPrimary,publishedDateVisible:!0,publishedDateFont:s.playerFont,publishedDateFontSize:"12px",publishedDateFontSizeEmbedded:"11px",publishedDateColor:r.Colors.TimeColor,statusLiveStyle:s.StatusLiveUnreadStyle,ctaButton:s.CtaButtonStyle,iconsPosition:"VERTICAL",iconsButtonPadding:"5px",iconsButtonSize:"28px",iconsButtonEmbeddedSize:"20px",iconsButton:[{value:"MUTE_UNMUTE",
1isEmbeddedVisible:!0,isVisible:!0,color:r.Colors.White,backgroundColor:n.TRANSPARENT,borderRadius:"50%"},{value:"PLAY_PAUSE",isEmbeddedVisible:!0,embeddedSize:"20px",isVisible:!0,color:r.Colors.White,backgroundColor:n.TRANSPARENT,borderRadius:"50%"},{value:"SHARE",isEmbeddedVisible:!1,isVisible:!0,color:r.Colors.White,backgroundColor:n.TRANSPARENT,borderRadius:"50%"},{value:"EXIT_PLAYER",isEmbeddedVisible:!1,isVisible:!0,color:r.Colors.White,backgroundColor:n.TRANSPARENT,borderRadius:"50%"},{value:"FULLSCREEN",isEmbeddedVisible:!0,isVisible:!1,color:r.Colors.White,backgroundColor:n.TRANSPARENT,borderRadius:"50%"},{value:"CLOSED_CAPTIONS",isEmbeddedVisible:!1,isVisible:!1,color:r.Colors.White,backgroundColor:n.TRANSPARENT,borderRadius:"50%"},{value:"CUSTOM_ACTION_BUTTON_ONE",isEmbeddedVisible:!1,isVisible:!1,color:r.Colors.White,backgroundColor:n.TRANSPARENT,borderRadius:"50%"},{value:"CUSTOM_ACTION_BUTTON_TWO",isEmbeddedVisible:!1,isVisible:!1,color:r.Colors.White,backgroundColor:n.TRANSPARENT,borderRadius:"50%"}],iconsButtonNavigation:[{value:"NEXT_PAGE",size:"28px",isVisible:!0,color:r.Colors.Black,backgroundColor:r.Colors.White,borderRadius:"50%",padding:"10px"},{value:"PREV_PAGE",size:"28px",isVisible:!0,color:r.Colors.Black,backgroundColor:r.Colors.White,borderRadius:"50%",padding:"10px"},{value:"NEXT_STORY",size:"28px",isVisible:!0,color:r.Colors.White,backgroundColor:n.TRANSPARENT,borderRadius:"50%",padding:"0"},{value:"PREV_STORY",size:"28px",isVisible:!0,color:r.Colors.White,backgroundColor:n.TRANSPARENT,borderRadius:"50%",padding:"0"}],iconsButtonOrder:["EXIT_PLAYER","MUTE_UNMUTE","PLAY_PAUSE","SHARE","CLOSED_CAPTIONS","CUSTOM_ACTION_BUTTON_ONE","CUSTOM_ACTION_BUTTON_TWO"],contentOrder:["LIVE_CHIP","STORY_TITLE","PUBLISHED_DATE"],icons:{play:o.playIconSvg,pause:o.pauseIconSvg,mute:o.muteIconSvg,unmute:o.unmuteIconSvg,share:o.shareIconSvg,fullscreen:o.fullscreenEnterIconSvg,closedCaptionsOn:o.closedCaptionsOnIconSvg,closedCaptionsOff:o.closedCaptionsOffIconSvg,exitMobileTablet:o.closeIconSvg,exitDesktop:o.closeIconSvg,navigation:{nextPage:o.nextPageIconSvg,prevPage:o.prevPageIconSvg,nextStory:o.nextStoryIconSvg,prevStory:o.prevStoryIconSvg}}},s.DefaultMomentStyle={headingText:{font:s.playerFont,textSizeMobile:"16px",textSizeTablet:"17px",textSizeDesktop:"18px",textColor:"#F0F0F0",isVisible:!1,contentSource:"TITLE",lineHeight:"1.5",textTransform:"none",fontWeight:"600"},bodyText:{font:s.playerFont,textSizeMobile:"14px",textSizeTablet:"15px",textSizeDesktop:"16px",textColor:"#F0F0F0",isVisible:!0,contentSource:"TITLE",lineHeight:"1.5",textTransform:"none",fontWeight:"400"},likeText:{font:s.playerFont,textSizeMobile:"14px",textSizeTablet:"15px",textSizeDesktop:"16px",textColor:r.Colors.White,fontWeight:"700",textTransform:"none",isVisible:!0,lineHeight:"1",likeCountThreshold:0},icons:{play:o.playIconSvg,pause:o.pauseIconSvg,mute:o.muteIconSvg,unmute:o.unmuteIconSvg,share:o.shareIconSvg,exit:o.closeIconSvg,unlike:o.unlikeIconSvg,like:o.likeIconSvg,closedCaptionsOn:o.closedCaptionsOnIconSvg,closedCaptionsOff:o.closedCaptionsOffIconSvg,navigation:{nextMoment:o.arrowUpMomentIconSvg,prevMoment:o.arrowDownMomentIconSvg}},buttons:{mute_unmute:{mobile:{isVisible:!0,width:"22px",height:"22px",color:"",padding:"10px",borderRadius:"",backgroundColor:""},tablet:{isVisible:!0,width:"22px",height:"22px",color:"",padding:"10px",borderRadius:"",backgroundColor:""},desktop:{isVisible:!0,width:"25px",height:"25px",color:"",padding:"10px",borderRadius:"",backgroundColor:""}},exit:{mobile:{isVisible:!0,width:"22px",height:"22px",color:"",padding:"10px",borderRadius:"",backgroundColor:""},tablet:{isVisible:!0,width:"22px",height:"22px",color:"",padding:"10px",borderRadius:"",backgroundColor:""},desktop:{isVisible:!1,width:"25px",height:"25px",color:"",padding:"10px",borderRadius:"",backgroundColor:""}},share:{mobile:{isVisible:!0,width:"20px",height:"20px",color:"",padding:"10px",borderRadius:"50%",backgroundColor:"#18181899"},tablet:{isVisible:!0,width:"20px",height:"20px",color:"",padding:"10px",borderRadius:"50%",backgroundColor:"#18181899"},desktop:{isVisible:!0,width:"25px",height:"25px",color:"",padding:"10px",borderRadius:"50%",backgroundColor:"#18181899"}},like_unlike:{mobile:{isVisible:!0,width:"20px",height:"20px",color:"",padding:"10px",borderRadius:"50%",backgroundColor:"#18181899"},tablet:{isVisible:!0,width:"20px",height:"20px",color:"",padding:"10px",borderRadius:"50%",backgroundColor:"#18181899"},desktop:{isVisible:!0,width:"25px",height:"25px",color:"",padding:"10px",borderRadius:"50%",backgroundColor:"#18181899"}},closed_captions:{mobile:{isVisible:!1,width:"20px",height:"20px",color:"",padding:"10px",borderRadius:"50%",backgroundColor:"#18181899"},tablet:{isVisible:!1,width:"20px",height:"20px",color:"",padding:"10px",borderRadius:"50%",backgroundColor:"#18181899"},desktop:{isVisible:!1,width:"25px",height:"25px",color:"",padding:"10px",borderRadius:"50%",backgroundColor:"#18181899"}},custom_action_button_one:{mobile:{isVisible:!1,width:"20px",height:"20px",color:"",padding:"10px",borderRadius:"50%",backgroundColor:"#18181899"},tablet:{isVisible:!1,width:"20px",height:"20px",color:"",padding:"10px",borderRadius:"50%",backgroundColor:"#18181899"},desktop:{isVisible:!1,width:"25px",height:"25px",color:"",padding:"10px",borderRadius:"50%",backgroundColor:"#18181899"}},custom_action_button_two:{mobile:{isVisible:!1,width:"20px",height:"20px",color:"",padding:"10px",borderRadius:"50%",backgroundColor:"#18181899"},tablet:{isVisible:!1,width:"20px",height:"20px",color:"",padding:"10px",borderRadius:"50%",backgroundColor:"#18181899"},desktop:{isVisible:!1,width:"25px",height:"25px",color:"",padding:"10px",borderRadius:"50%",backgroundColor:"#18181899"}}},topIconsButtonOrder:["EXIT_PLAYER","MUTE_UNMUTE"],bottomIconsButtonOrder:["CUSTOM_ACTION_BUTTON_ONE","CUSTOM_ACTION_BUTTON_TWO","LIKE_UNLIKE","SHARE","CLOSED_CAPTIONS"],contentBoxHorizontalSpacing:"15px",seekBar:{isVisible:!0,verticalSpacing:"20px",horizontalSpacing:"15px",playingState:{isVisible:!0,isThumbVisible:!1,backgroundColor:r.Colors.Gray,progressColor:r.Colors.White,height:"3px",borderRadius:"5px",thumbColor:"",thumbSize:"0px"},pausedState:{isVisible:!0,isThumbVisible:!0,backgroundColor:r.Colors.Gray,progressColor:r.Colors.White,height:"5
1px",borderRadius:"5px",thumbColor:r.Colors.White,thumbSize:"15px"}},followButton:{isVisible:!0,variant:"text",avatar:{borderWidth:"3px",followedBorderColor:r.Colors.White,unfollowedBorderColor:r.Colors.White},chip:{followedBackgroundColor:r.Colors.White,unfollowedBackgroundColor:r.Colors.White,color:r.Colors.Black}},ctaButton:{borderRadius:"8px",textSize:"16px",font:s.playerFont,height:"40px",layoutPositioning:"CTA_BELLOW_BOTTOM_BUTTONS_BOX",horizontalAlignment:"FULL_AVAILABLE_WIDTH",fontWeight:"700",fontFamily:s.playerFont,backgroundColor:r.Colors.Accent,borderColor:r.Colors.Accent,isVisible:!0,icon:{position:"START",color:r.Colors.Black,url:o.externalLinkIconSvg,size:"24px",isVisible:!1}}},s.DefaultVideoStyle={headingText:{font:s.playerFont,textColor:"#F0F0F0",isVisible:!0,contentSource:"TITLE",textStyle:{mobile:{fontSize:"16px",fontWeight:"600",lineHeight:"1.5",letterSpacing:void 0,textTransform:"none"},tablet:{fontSize:"17px",fontWeight:"600",lineHeight:"1.5",letterSpacing:void 0,textTransform:"none"},desktop:{fontSize:"18px",fontWeight:"600",lineHeight:"1.5",letterSpacing:void 0,textTransform:"none"}}},buttons:{mute_unmute:{mobile:{width:"24px",height:"24px",color:"",padding:"7px",isVisible:!0,borderRadius:"",backgroundColor:""},tablet:{width:"26px",height:"26px",color:"",padding:"7px",isVisible:!0,borderRadius:"",backgroundColor:""},desktop:{width:"28px",height:"28px",color:"",padding:"7px",isVisible:!0,borderRadius:"",backgroundColor:""}},exit:{mobile:{width:"24px",height:"24px",color:"",padding:"7px",isVisible:!0,borderRadius:"",backgroundColor:""},tablet:{width:"26px",height:"26px",color:"",padding:"7px",isVisible:!0,borderRadius:"",backgroundColor:""},desktop:{width:"28px",height:"28px",color:"",padding:"7px",isVisible:!1,borderRadius:"",backgroundColor:""}},share:{mobile:{width:"24px",height:"24px",color:"",padding:"7px",isVisible:!0,borderRadius:"",backgroundColor:""},tablet:{width:"26px",height:"26px",color:"",padding:"7px",isVisible:!0,borderRadius:"",backgroundColor:""},desktop:{width:"28px",height:"28px",color:"",padding:"7px",isVisible:!0,borderRadius:"",backgroundColor:""}},like_unlike:{mobile:{width:"24px",height:"24px",color:"#ffd325",padding:"7px",isVisible:!0,borderRadius:"",backgroundColor:""},tablet:{width:"26px",height:"26px",color:"#ffd325",padding:"7px",isVisible:!0,borderRadius:"",backgroundColor:""},desktop:{width:"28px",height:"28px",color:"#ffd325",padding:"7px",isVisible:!0,borderRadius:"",backgroundColor:""}},play_pause:{mobile:{width:"38px",height:"38px",color:"",padding:"12px",isVisible:!0,borderRadius:"50%",backgroundColor:"rgba(51, 51, 51, 0.9)"},tablet:{width:"42px",height:"42px",color:"",padding:"12px",isVisible:!0,borderRadius:"50%",backgroundColor:"rgba(51, 51, 51, 0.9)"},desktop:{width:"28px",height:"28px",color:"",padding:"7px",isVisible:!0,borderRadius:"",backgroundColor:""}},replay:{mobile:{width:"38px",height:"38px",color:"",padding:"12px",isVisible:!0,borderRadius:"50%",backgroundColor:"rgba(51, 51, 51, 0.9)"},tablet:{width:"42px",height:"42px",color:"",padding:"12px",isVisible:!0,borderRadius:"50%",backgroundColor:"rgba(51, 51, 51, 0.9)"},desktop:{width:"28px",height:"28px",color:"",padding:"7px",isVisible:!0,borderRadius:"",backgroundColor:""}},prev_next:{mobile:{width:"36px",height:"36px",color:"",padding:"10px",isVisible:!0,borderRadius:"50%",backgroundColor:"rgba(51, 51, 51, 0.9)"},tablet:{width:"40px",height:"40px",color:"",padding:"10px",isVisible:!0,borderRadius:"50%",backgroundColor:"rgba(51, 51, 51, 0.9)"},desktop:{width:"28px",height:"28px",color:"",padding:"7px",isVisible:!0,borderRadius:"0",backgroundColor:""}},closed_captions:{mobile:{width:"24px",height:"24px",color:"",padding:"7px",isVisible:!0,isEmbeddedVisible:!0,borderRadius:"",backgroundColor:""},tablet:{width:"26px",height:"26px",color:"",padding:"7px",isVisible:!0,isEmbeddedVisible:!0,borderRadius:"",backgroundColor:""},desktop:{width:"28px",height:"28px",color:"",padding:"7px",isVisible:!0,isEmbeddedVisible:!0,borderRadius:"",backgroundColor:""}},fullscreen:{mobile:{width:"24px",height:"24px",color:"",padding:"7px",isVisible:!0,borderRadius:"",backgroundColor:""},tablet:{width:"26px",height:"26px",color:"",padding:"7px",isVisible:!0,borderRadius:"",backgroundColor:""},desktop:{width:"28px",height:"28px",color:"",padding:"7px",isVisible:!0,borderRadius:"",backgroundColor:""}}},backgroundColor:r.Colors.Black,cta:{text:{mobile:{fontSize:"16px",fontWeight:"700",lineHeight:"17px",letterSpacing:""},tablet:{fontSize:"16px",fontWeight:"700",lineHeight:"17px",letterSpacing:""},desktop:{fontSize:"16px",fontWeight:"700",lineHeight:"17px",letterSpacing:""}}
1,height:"40px",visibility:{duration:5e3,behavior:"VisibleAfterOverlayHidden"},fontFamily:s.playerFont,isVisible:!0,icon:{position:"START",color:"",size:"24px",isVisible:!0,url:o.linkIconSvg},borderColor:"",borderRadius:"20px",horizontalAlignment:"LEFT"},seekBar:{isVisible:!0,horizontalMargin:"15px",verticalMargin:"0px",playingState:{isVisible:!0,isThumbVisible:!1,backgroundColor:"#FFFFFF66",progressColor:"rgba(255, 255, 0, 1)",height:"5px",borderRadius:"5px",thumbColor:"",thumbSize:"",bufferProgressColor:"#D9D9D955"},pausedState:{isVisible:!0,isThumbVisible:!0,backgroundColor:"#FFFFFF66",progressColor:"rgba(255, 255, 0, 1)",height:"7px",borderRadius:"5px",thumbColor:"rgba(255, 255, 0, 1)",thumbSize:"15px",bufferProgressColor:"#D9D9D955"}},icons:{play:o.playIconSvg,replay:o.restartIconSvg,pause:o.pauseIconSvg,mute:o.muteIconSvg,unmute:o.unmuteIconSvg,share:o.shareIconSvg,fullscreenEnter:o.fullscreenEnterIconSvg,fullscreenExit:o.fullscreenExitIconSvg,like:o.likeIconSvg,unlike:o.unlikeIconSvg,exit:o.closeIconSvg,closedCaptionsOn:o.closedCaptionsOnIconSvg,closedCaptionsOff:o.closedCaptionsOffIconSvg,navigation:{prevVideo:o.prevStoryIconSvg,nextVideo:o.nextStoryIconSvg}}}},7315:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Database=e.DB_NAMES=void 0;const o=i(4545),r={user:{keyPath:"id"},moments:{keyPath:"id"},stories:{keyPath:"id",indexes:[{name:"story_index",keyPath:"storyId"}]},videos:{keyPath:"id"},interactions:{keyPath:"id"},logs:{keyPath:"id",indexes:[{name:"level_index",keyPath:"level"},{name:"timestamp_index",keyPath:"timestamp"},{name:"priority_index",keyPath:"priority"}]}};e.DB_NAMES={MOMENTS:"moments",INTERACTIONS:"interactions",USER:"user",STORIES:"stories",VIDEOS:"videos",LOGS:"logs"};let s=null,a=null;e.Database=class{constructor(t){this.options=t}init(){return n(this,void 0,void 0,function*(){if(!s){s=setTimeout(()=>{s=null},3e3);try{this.dbInstance=yield this.openDatabase()}catch(t){throw t}
1finally{s&&(clearTimeout(s),s=null)}}})}openDatabase(){return n(this,void 0,void 0,function*(){return new Promise((t,e)=>{const i=indexedDB.open(this.options.databaseName,this.options.version);i.addEventListener("success",()=>n(this,void 0,void 0,function*(){const o=i.result;t(o),yield new Promise(t=>{setTimeout(()=>n(this,void 0,void 0,function*(){try{yield this.onOpen(),t()}catch(t){e(t)}}),150)})})),i.addEventListener("upgradeneeded",o=>n(this,void 0,void 0,function*(){const n=i.result;try{yield this.onUpgradeNeeded(n),t(n)}catch(t){e(t)}})),i.addEventListener("error",t=>n(this,void 0,void 0,function*(){e(t),yield this.onError(t)}))})})}onUpgradeNeeded(t){return n(this,void 0,void 0,function*(){var e;try{Array.from(t.objectStoreNames).forEach(e=>{t.deleteObjectStore(e)});for(const i in r){const n=t.createObjectStore(i,{keyPath:r[i].keyPath});null===(e=r[i].indexes)||void 0===e||e.forEach(t=>{n.createIndex(t.name,t.keyPath,t.options)})}}catch(t){throw t}})}onOpen(){return n(this,void 0,void 0,function*(){try{o.EventBusService.publish("BlazeDatabaseServiceOpen")}catch(t){throw t}})}onError(t){return n(this,void 0,void 0,function*(){yield this.deleteDatabase()})}deleteDatabase(){return n(this,void 0,void 0,function*(){return new Promise((t,e)=>{const i=indexedDB.deleteDatabase(this.options.databaseName);i.onsuccess=(()=>t()),i.onerror=(t=>e(t)),i.onblocked=(()=>{this.dbInstance&&this.dbInstance.close(),t()})})})}createTransaction(t,e){try{if(!this.dbInstance)throw new Error("Database is not initialized.");return this.dbInstance.transaction([t],e).objectStore(t)}catch(t){return this.throttledReinit(),null}}get(t,e){return n(this,void 0,void 0,function*(){try{const i=this.createTransaction(t,"readonly");if(!i)return{data:{},error:new Error("Transaction not created.")};const n=i.get(e);return yield new Promise((t,e)=>{n.onerror=(()=>{e(new Error("Failed get"))}),n.onsuccess=(()=>{t({data:n.result})})})}catch(t){throw t}})}getAll(t){return n(this,void 0,void 0,function*(){try{const e=this.createTransaction(t,"readonly");if(!e)return[];const i=e.getAll();return yield new Promise((t,e)=>{i.onerror=(()=>{e(new Error("Failed getAll"))}),i.onsuccess=(()=>{t(i.result)})})}catch(t){throw t}})}update(t,e){return n(this,void 0,void 0,function*(){try{const i={},n=this.createTransaction(t,"readwrite");if(!n)return{data:{},error:new Error("Transaction not created.")};const o=n.put(e);return yield new Promise((t,e)=>{o.onerror=(()=>{e(new Error("Failed update"))}),o.onsuccess=(()=>{const e=o.result;t(Object.assign(Object.assign({},i),{data:e}))})})}catch(t){throw t}})}delete(t,e){return n(this,void 0,void 0,function*(){try{const i=this.createTransaction(t,"readwrite");if(!i)return{data:void 0,error:new Error("Transaction not created.")};const n=i.delete(e);return yield new Promise((t,e)=>{n.onerror=(()=>{e(new Error("Failed delete"))}),n.onsuccess=(()=>{t({data:void 0})})})}catch(t){throw t}})}throttledReinit(){a||(a=setTimeout(()=>n(this,void 0,void 0,function*(){a=null,yield this.init()}),5e3))}}},7341:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.StoryService=void 0;const o=i(4545),r=i(4403);e.StoryService=class extends((0,r.Singleton)()){init(){}fetchContent(t){return n(this,void 0,void 0,function*(){const{sourceType:e,labels:i,labelsPriority:n,ids:r,orderType:s,maxItems:a,advancedOrdering:l,personalized:d,text:u,recommendations:c}=t;let h,p;if("ids"===e&&r)({data:h,error:p}=yield o.ApiService.getStoriesByIds({ids:r,orderType:s,showLiveFirst:"LiveFirst"===l,personalized:d}));else if("labels"===e&&i){const t=Array.isArray(i)?i.join():i.toString();({data:h,error:p}=yield o.ApiService.getStoriesByLabels({labels:t,orderType:s,maxItems:a,labelsPriority:n,showLiveFirst:"LiveFirst"===l,personalized:d,text:u}))}else"text"===e&&u?({data:h,error:p}=yield o.ApiService.getStoriesByText({text:u,orderType:s,maxItems:a,showLiveFirst:"LiveFirst"===l,personalized:d})):"recommendations"===e&&c&&({data:h,error:p}=yield o.ApiService.getContentByRecommendations({contentType:"story",recommendations:c}));return h||{assetsExpiryTime:"",totalItems:0,result:[]}})}enrichContent(t){return n(this,void 0,void 0,function*(){try{return yield o.DatabaseService.enrichStories(t)}catch(t){throw t}})}}.getInstance()}
1,7357:function(t,e,i){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeLongFormControlsOverlay=void 0;const o=n(i(2776)),r=i(1908),s=i(4403),a=i(5785),l=i(9965),d=i(8921),u=i(4545),c=i(4906),h=i(9266),p=i(9126);e.BlazeLongFormControlsOverlay=class extends HTMLElement{constructor(t){super(),this.videoRef=t,this.shadow=this.attachShadow({mode:"open"}),this.isInitialize=!1,this.videoInfoText=d.WidgetsFactory.create("blaze-div"),this.bottomContainerCta=d.WidgetsFactory.create("blaze-div"),this.closeButton=d.WidgetsFactory.create("blaze-button"),this.shareButton=d.WidgetsFactory.create("blaze-button"),this.likeButton=d.WidgetsFactory.create("blaze-button"),this.fullscreenButton=d.WidgetsFactory.create("blaze-button"),this.muteButton=d.WidgetsFactory.create("blaze-button"),this.closedCaptionButton=d.WidgetsFactory.create("blaze-button"),this.ctaButton=new a.BlazeCallToActionButton,this.currentMuteState=l.ButtonState.Unmute,this.videoSeekBar=d.WidgetsFactory.create("blaze-video-seek-bar"),this.videoTimer=d.WidgetsFactory.create("blaze-timer"),this.videoNavigationOverlay=d.WidgetsFactory.create("blaze-video-navigation-overlay"),this.gradientOverlayBottom=d.WidgetsFactory.create("blaze-div"),this.gradientOverlayTop=d.WidgetsFactory.create("blaze-div"),this.loader=d.WidgetsFactory.create("blaze-loader"),this.boundOnFullscreenClick=this.handleFullscreenClick.bind(this),this.boundOnShareClick=this.handleShareClick.bind(this),this.boundOnLikeClick=this.handleLikeClick.bind(this),this.boundOnMuteClick=this.handleMuteClick.bind(this),this.boundOnCtaClick=this.handleCtaClick.bind(this),this.boundOnCloseClick=this.handleCloseClick.bind(this),this.boundOnClosedCaptionClick=this.handleClosedCaptionClick.bind(this),this.boundOnScreenOrientationChange=this.handleScreenOrientationChange.bind(this),this.boundOnCtaContainerClick=this.handleCtaContainerClick.bind(this),this.isOverlayChangesBlocked=!1}connectedCallback(){this.initialize(),this.attachEventListeners()}disconnectedCallback(){this.detachEventListeners()}initialize(){this.isInitialize||(this.isInitialize=!0,this.attachStyles(),this.createDOM(),this.videoSeekBar.onStartSeeking=(()=>{this.hidePlayerOverlayWhileSeeking()}),this.videoSeekBar.onEndSeeking=(()=>{this.showPlayerOverlayAfterSeeking()}),this.updateVideoInfoText(this.title),this.setAttribute("hidden","false"))}hidePlayerOverlayWhileSeeking(){this.videoNavigationOverlay.setAttribute(r.NAVIGATION_OVERLAY_ATTRIBUTES.Hidden,"true"),this.muteButton.setAttribute(a.BUTTON_ATTRIBUTES.BlazeBtnVisible,"false"),this.closedCaptionButton.setAttribute(a.BUTTON_ATTRIBUTES.BlazeBtnVisible,"false"),this.fullscreenButton.setAttribute(a.BUTTON_ATTRIBUTES.BlazeBtnVisible,"false"),this.closeButton.setAttribute(a.BUTTON_ATTRIBUTES.BlazeBtnVisible,"false"),this.shareButton.setAttribute(a.BUTTON_ATTRIBUTES.BlazeBtnVisible,"false"),this.likeButton.setAttribute(a.BUTTON_ATTRIBUTES.BlazeBtnVisible,"false")}showPlayerOverlayAfterSeeking(){setTimeout(()=>{this.videoNavigationOverlay.setAttribute(r.NAVIGATION_OVERLAY_ATTRIBUTES.Hidden,"false"),this.muteButton.setAttribute(a.BUTTON_ATTRIBUTES.BlazeBtnVisible,"true"),this.closedCaptionButton.setAttribute(a.BUTTON_ATTRIBUTES.BlazeBtnVisible,"true"),this.fullscreenButton.setAttribute(a.BUTTON_ATTRIBUTES.BlazeBtnVisible,"true"),this.closeButton.setAttribute(a.BUTTON_ATTRIBUTES.BlazeBtnVisible,"true"),this.shareButton.setAttribute(a.BUTTON_ATTRIBUTES.BlazeBtnVisible,"true"),this.likeButton.setAttribute(a.BUTTON_ATTRIBUTES.BlazeBtnVisible,"true")},1e3)}setTheme(t){this.playerLayout=t,this.videoSeekBar.setTheme(t.seekBar);const{navigation:e,play:i,pause:n,replay:o}=t.icons,{prev_next:r,play_pause:s,replay:a}=t.buttons;this.videoNavigationOverlay.setTheme({play:i,pause:n,navigation:e,prev_next:r,play_pause:s,replay:a,replayIcon:o}),this.ctaVisiblity=t.cta.visibility,this.setCtaButtonStyles(t.cta),this.setHeadingStyle(this.videoInfoText,t.headingText),this.setButtonStyle(this.closeButton,this.getButtonStyle("exit"),t.icons.exit),this.setButtonStyle(this.shareButton,this.getButtonStyle("share"),t.icons.share),this.setButtonStyle(this.likeButton,this.getButtonStyle("like_unlike"),t.icons.like),this.setButtonStyle(this.fullscreenButton,this.getButtonStyle("fullscreen"),t.icons.fullscreenEnter),this.setButtonStyle(this.muteButton,this.getButtonStyle("mute_unmute"),t.icons.mute),this.setButtonStyle(this.closedCaptionButton,this.getButtonStyle("closed_captions"),t.icons.closedCaptionsOff)}static get observedAttributes(){return["video-title","hidden"]}attributeChangedCallback(t,e,i){switch(t){case"video-title":i!==e&&this.updateVideoInfoText(i);break;case"hidden":i!==e&&("true"===i?this.hidePlayerOverlay():this.showPlayerOverlay())}}showLoader(){s.deviceDetector.isMobile||s.deviceDetector.isTablet?this.videoNavigationOverlay.showLoader():s.deviceDetector.isDesktop&&(this.loader.style.display="block")}hideLoader(){s.deviceDetector.isMobile||s.deviceDetector.isTablet?this.videoNavigationOverlay.hideLoader():s.deviceDetector.isDesktop&&(this.loader.style.display="none")}hidePlayerOverlay(){const t=this.shadow.querySelector("#bottom-container-control
1s");t&&this.animateOverlayVisibility(t,!1,"down");const e=this.shadow.querySelector("#top-container");if(e&&this.animateOverlayVisibility(e,!1,"up"),this.ctaVisiblity){const t=this.shadow.querySelector("#bottom-container-cta");"VisibleAfterOverlayHidden"===this.ctaVisiblity.behavior&&(this.ctaTimeout=setTimeout(()=>{null==t||t.classList.add("hidden"),this.isCtaRendered&&this.dispatchEvent(new CustomEvent(r.VIDEO_EVENTS.CTA_DISMISS,{bubbles:!0,composed:!0}))},this.ctaVisiblity.duration))}}showPlayerOverlay(){const t=this.shadow.querySelector("#top-container");t&&this.animateOverlayVisibility(t,!0,"down");const e=this.shadow.querySelector("#bottom-container-controls");e&&this.animateOverlayVisibility(e,!0,"up");const i=this.shadow.querySelector("#bottom-container-cta");i&&(i.classList.contains("hidden")&&this.isCtaRendered&&this.dispatchEvent(new CustomEvent(r.VIDEO_EVENTS.CTA_VISIBILE,{bubbles:!0,composed:!0})),i.classList.remove("hidden")),clearTimeout(this.ctaTimeout)}animateOverlayVisibility(t,e,i="down"){o.default.remove(t),e?(t.classList.remove("hidden"),(0,o.default)({targets:t,opacity:[0,1],translateY:["up"===i?20:-20,0],duration:250,easing:"easeOutQuad",begin:()=>{this.dispatchEvent(new CustomEvent(r.VIDEO_EVENTS.UPDATE_CLOSED_CAPTIONS_LOCATION,{detail:{top:"70px",left:"10px"},bubbles:!0,composed:!0})),this.gradientOverlayBottom.classList.remove("hidden"),this.gradientOverlayTop.classList.remove("hidden"),this.videoNavigationOverlay.classList.remove("hidden")}})):(0,o.default)({targets:t,opacity:[1,0],translateY:[0,"up"===i?-20:20],duration:250,easing:"easeInQuad",complete:()=>{t.classList.add("hidden"),t.style.transform="",this.gradientOverlayBottom.classList.add("hidden"),this.gradientOverlayTop.classList.add("hidden"),this.videoNavigationOverlay.classList.add("hidden"),this.dispatchEvent(new CustomEvent(r.VIDEO_EVENTS.UPDATE_CLOSED_CAPTIONS_LOCATION,{detail:{top:"10px",left:"10px"},bubbles:!0,composed:!0}))}})}handleScreenOrientationChange(t){s.deviceDetector.isDesktop||this.playerLayout&&this.setCtaButtonStyles(this.playerLayout.cta)}setClosedCaptionState(t){"enabled"===t?(this.closedCaptionButton.setAttribute("disabled","false"),this.updateClosedCaptionButtonIcon()):(this.closedCaptionButton.setAttribute("disabled","true"),this.closedCaptionButton.setIconUrlAnimation(this.playerLayout.icons.closedCaptionsOn))}get title(){return this.getAttribute("video-title")||""}set title(t){this.setAttribute("video-title",t)}get isCtaRendered(){return"true"===this.getAttribute("is-cta-rendered")}set isCtaRendered(t){this.setAttribute("is-cta-rendered",t.toString())}setCta(t){if(t&&t.url&&t.text&&t.backgroundColor&&t.textColor){this.ctaButton.setAttribute(a.CTA_BUTTON_ATTRIBUTES.Href,t.url),this.ctaButton.setAttribute(a.CTA_BUTTON_ATTRIBUTES.Text,t.text),this.ctaButton.setAnchorButtonStyles({color:t.textColor,background:t.backgroundColor}),this.ctaButton.setAttribute(a.CTA_BUTTON_ATTRIBUTES.IconColor,t.textColor),this.isCtaRendered=!0;const e=this.shadow.querySelector("#bottom-container-cta");e&&!e.classList.contains("hidden")&&setTimeout(()=>{this.dispatchEvent(new CustomEvent(r.VIDEO_EVENTS.CTA_VISIBILE,{bubbles:!0,composed:!0})),this.ctaButton.setAttribute(a.CTA_BUTTON_ATTRIBUTES.HiddenBtn,"false")},250)}else this.ctaButton.setAttribute(a.CTA_BUTTON_ATTRIBUTES.HiddenBtn,"true"),this.isCtaRendered=!1}removeCta(){this.ctaButton.setAttribute(a.CTA_BUTTON_ATTRIBUTES.HiddenBtn,"true"),this.isCtaRendered=!1}setCtaButtonStyles(t){var e;const i=s.deviceDetector.isMobile,n=s.deviceDetector.screenOrientation,o=!!(null===(e=this.videoRef.modal)||void 0===e?void 0:e.isOpen),r="fullscreen"===this.videoRef.videoPlayerState.playerLayout,l=i&&(o&&"portrait"===n||r),d=l?"100%":"auto";this.ctaButton.setStyle({height:t.height,width:d});const u=this.getDeviceStyle(t.text);if(this.ctaButton.setAnchorButtonStyles({fontFamily:t.fontFamily,borderRadius:t.borderRadius,outline:t.borderColor?"1px solid "+t.borderColor:"",width:d,justifyContent:l?"center":"unset"}),this.ctaButton.setCtaTextStyle({fontSize:s.TextScaleService.scaleFontSize(u.fontSize),fontWeight:u.fontWeight,lineHeight:s.TextScaleService.scaleLineHeight(u.lineHeight),letterSpacing:u.letterSpacing,paddingRight:l?"unset":"20px",justifyContent:l?"center":"unset",width:d}),t.icon.isVisible){if(this.ctaButton.setAttribute(a.CTA_BUTTON_ATTRIBUTES.IconUrl,t.icon.url),this.ctaButton.setAttribute(a.CTA_BUTTON_ATTRIBUTES.IconSize,t.icon.size),this.ctaButton.setCtaIconStyles({padding:"10px"}),s.deviceDetector.isMobile){const e=(0,h.convertCssUnitToNumber)(t.icon.size)+20;this.ctaButton.setCtaTextStyle({marginRight:e+"px"})}this.ctaButton.setAttribute(a.CTA_BUTTON_ATTRIBUTES.DisplayIcon,"true")}else this.ctaButton.setAttribute(a.CTA_BUTTON_ATTRIBUTES.DisplayIcon,"false")}handleCtaClick(t){t.target===this.ctaButton&&"landscape"===s.deviceDetector.screenOrientation&&s.deviceDetector.isMobile?this.dispatchEvent(new CustomEvent(r.VIDEO_EVENTS.DISPLAY_HIDE_OVERLAY_FROM_CTA,{bubbles:!0,composed:!0})):(t.stopPropagation(),this.dispatchEvent(new CustomEvent(r.VIDEO_EVENTS.CTA_CLICKED,{detail:{url:this.ctaButton.getAttribute("href")},bubbles:!0,composed:!0})))}attachStyles(){const t=document.createElement("style");t.textContent='\n      :host {\n        position: absolute;\n        top: 0;\n        left: 0;\n        width: 100%;\n        height: 100%;\n        display: flex;\n        flex-direction: column;\n        padding: 10px;\n        box-sizing: border-box;\n        justify-content: space-between;\n        font-family: "Inter", serif;\n        pointer-events: all;\n        z-index: 3;\n      }\n\n      .hidden {\n        display: none;\n        visibility: hidden;\n        opacity: 0;\n        transition: opacity 0.5s ease; /* Optional: if you want a fade-out */\n      }\n\n      .gradient-overlay-bottom,\n      .gradient-overlay-top {\n        position: absolute;\n        left: 0;\n        width: 100%;\n      }\n      .gradient-overlay-bottom {\n        height: 30%;\n        bottom: 0;\n        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 105.77%);\n      }\n      .gradient-overlay-top {\n        height: 30%;\n        top: 0;\n        background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 105.77%);\n      }\n      .top-container {\n        display: flex;\n        justify-content: space-between;\n        column-gap: 25%;\n        z-index: 1;\n        padding: 10px 10px 0px 10px;\n        margin: -10px -10px 0 -10px;\n      }\n      .bottom-container {\n        display: flex;\n        flex-direction: column;\n        gap: 10px;\n        z-index: 3;\n        padding: 10px;\n        margin: -10px;\n      }\n      .bottom-container-cta {\n        display: flex;\n      }\n      .bottom-left-icons,\n      .bottom-right-icons {\n        display: flex;\n        gap: 10px;\n      }\n      .bottom-icons-container {\n        display: flex;\n        justify-content: space-between;\n        align-items: center;\n      }\n      .video-info {\n        pointer-events: none;\n      }\n      .top-right-icons {\n        display: flex;\n        gap: 10px;\n        flex-direction: column;\n        justify-content: flex-start;\n        pointer-events: all;\n      }\n      .controls {\n        display: flex;\n        align-items: center;\n        flex-direction: column;\n        pointer-events: all;\n      }\n      blaze-button {\n        pointer-events: all;\n      }\n      blaze-loader {\n        position: absolute;\n        top: 40%;\n        left: 50%;\n      }\n    ',this.shadow.appendChild(t)}createDOM(){this.gradientOverlayBottom.classList.add("gradient-overlay-bottom"),this.gradientOverlayTop.classList.add("gradient-overlay-top"),this.shadow.appendChild(this.gradientOverlayTop),this.shadow.appendChild(this.gradientOverlayBottom),s.deviceDetector.isDesktop&&(this.loader.setAttribute("color",c.Colors.White),this.shadow.appendChild(this.loader)),this.playerLayout&&(this.videoInfoText.classList.add("video-info"),this.createTopContainer(),this.createBottomContainer())}getDeviceStyle(t){switch(!0){case s.deviceDetector.isMobile:return t.mobile;case s.deviceDetector.isTablet:return t.tablet;case s.deviceDetector.isDesktop:default:return t.desktop}}getButtonStyle(t){return this.getDeviceStyle(this.playerLayout.buttons[t])}getLikeButtonStyle(t){return this.getDeviceStyle(t)}getHeadingTextStyle(t){return this.getDeviceStyle(t)}setHeadingStyle(t,e){const{font:i,textColor:n,isVisible:o}=e,{fontWeight:r,fontSize:s,textTransform:a,lineHeight:l}=this.getHeadingTextStyle(e.textStyle);t.setStyle({fontFamily:i,fontWeight:r,fontSize:s,color:n,textTransform:a||"none",lineHeight:l||"normal",visibility:o?"visible":"hidden"})}setButtonStyle(t,e,i,n){t.setAttribute(a.BUTTON_ATTRIBUTES.Width,e.width),t.setAttribute(a.BUTTON_ATTRIBUTES.Height,e.height),t.setIconUrl(i),t.setAttribute(a.BUTTON_ATTRIBUTES.IconColor,(null==n?void 0:n.iconColor)||e.color),s.deviceDetector.isDesktop&&t.setAttribute(a.BUTTON_ATTRIBUTES.ButtonDesktopAnimation,"true"),t.setStyle({display:"inline-flex",padding:e.padding,borderRadius:e.borderRadius,backgroundColor:e.backgroundColor})}createTopContainer(){const t=d.WidgetsFactory.create("blaze-div");t.classList.add("top-container"),t.id="top-container",this.setHeadingStyle(this.videoInfoText,this.playerLayout.headingText),t.appendChild(this.videoInfoText);const e=d.WidgetsFactory.create("blaze-div");if(e.classList.add("top-right-icons"),!u.ConfigService.staticContentType&&(!(this.videoRef.embeddedRef instanceof p.BlazeWidgetEmbeddedVideo)||this.videoRef.modal)){const t=this.getButtonStyle("exit");this.setButtonStyle(this.closeButton,t,this.playerLayout.icons.exit),t.isVisible&&e.appendChild(this.closeButton),this.closeButton.setDataTestId("close-button")}const i=this.getButtonStyle("share");this.setButtonStyle(this.shareButton,i,this.playerLayout.icons.share),i.isVisible&&e.appendChild(this.shareButton),this.shareButton.setDataTestId("share-button");const n=this.getButtonStyle("like_unlike");this.setButtonStyle(this.likeButton,n,this.playerLayout.icons.unlike,{iconColor:c.Colors.White}),n.isVisible&&e.appendChild(this.likeButton),this.likeButton.setDataTestId("like-button"),e.addEventListener("click",t=>{t.target===e&&t.stopPropagation()}),t.appendChild(e),this.shadow.appendChild(t)}createBottomContainer(){const t=d.WidgetsFactory.create("blaze-div");t.classList.add("bottom-container"),this.bottomContainerCta.id="bottom-container-cta",this.bottomContainerCta.classList.add("bottom-container-cta");const e=d.WidgetsFactory.create("blaze-div");
1e.id="bottom-container-controls",this.bottomContainerCta.appendChild(this.ctaButton);const i=this.createControls();e.appendChild(i);const n=d.WidgetsFactory.create("blaze-div");n.classList.add("bottom-icons-container");const o=this.createBottomLeftIcons();n.appendChild(o);const r=this.createBottomRightIcons();n.appendChild(r),e.appendChild(n),t.appendChild(this.bottomContainerCta),t.appendChild(e),t.addEventListener("click",t=>t.stopPropagation()),this.shadow.appendChild(t)}createControls(){const t=d.WidgetsFactory.create("blaze-div");return t.classList.add("controls"),t.appendChild(this.videoTimer),t.appendChild(this.videoSeekBar),t}createBottomRightIcons(){const t=d.WidgetsFactory.create("blaze-div");t.classList.add("bottom-left-icons");const e=this.getButtonStyle("fullscreen");this.setButtonStyle(this.fullscreenButton,e,this.playerLayout.icons.fullscreenEnter),this.fullscreenButton.setDataTestId("fullscreen-button");const i=this.getButtonStyle("mute_unmute");this.setButtonStyle(this.muteButton,i,this.playerLayout.icons.mute),i.isVisible&&t.appendChild(this.muteButton),this.muteButton.setDataTestId("mute-button");const n=this.getButtonStyle("closed_captions");this.setButtonStyle(this.closedCaptionButton,n,this.playerLayout.icons.closedCaptionsOn);const o=this.videoRef.embeddedRef instanceof p.BlazeWidgetEmbeddedVideo&&!this.videoRef.modal;return(o?n.isEmbeddedVisible&&n.isVisible:n.isVisible)&&t.appendChild(this.closedCaptionButton),this.closedCaptionButton.setDataTestId("closed-caption-button"),(s.deviceDetector.isFullscreenSupported||o)&&e.isVisible&&t.appendChild(this.fullscreenButton),t}createBottomLeftIcons(){const t=d.WidgetsFactory.create("blaze-div");return t.classList.add("bottom-right-icons"),s.deviceDetector.isDesktop?(this.videoNavigationOverlay.platform="desktop",t.appendChild(this.videoNavigationOverlay)):s.deviceDetector.isTablet?(this.videoNavigationOverlay.platform="tablet",this.shadow.appendChild(this.videoNavigationOverlay)):s.deviceDetector.isMobile&&(this.videoNavigationOverlay.platform="mobile",this.shadow.appendChild(this.videoNavigationOverlay)),t}attachEventListeners(){this.fullscreenButton.addEventListener(r.EVENTS.CLICK,this.boundOnFullscreenClick),this.shareButton.addEventListener(r.EVENTS.CLICK,this.boundOnShareClick),this.likeButton.addEventListener(r.EVENTS.CLICK,this.boundOnLikeClick),this.muteButton.addEventListener(r.EVENTS.CLICK,this.boundOnMuteClick),this.ctaButton.addEventListener(r.EVENTS.CLICK,this.boundOnCtaClick),this.closedCaptionButton.addEventListener(r.EVENTS.CLICK,this.boundOnClosedCaptionClick),(s.deviceDetector.isMobile||s.deviceDetector.isTablet)&&this.closeButton.addEventListener(r.EVENTS.CLICK,this.boundOnCloseClick),this.bottomContainerCta.addEventListener(r.EVENTS.CLICK,this.boundOnCtaContainerClick),window.addEventListener(s.DEVICE_EVENTS.SCREEN_ORIENTATION_CHANGE,this.boundOnScreenOrientationChange)}detachEventListeners(){this.fullscreenButton.removeEventListener(r.EVENTS.CLICK,this.boundOnFullscreenClick),this.shareButton.removeEventListener(r.EVENTS.CLICK,this.boundOnShareClick),this.likeButton.removeEventListener(r.EVENTS.CLICK,this.boundOnLikeClick),this.muteButton.removeEventListener(r.EVENTS.CLICK,this.boundOnMuteClick),this.ctaButton.removeEventListener(r.EVENTS.CLICK,this.boundOnCtaClick),this.closedCaptionButton.removeEventListener(r.EVENTS.CLICK,this.boundOnClosedCaptionClick),(s.deviceDetector.isMobile||s.deviceDetector.isTablet)&&this.closeButton.removeEventListener(r.EVENTS.CLICK,this.boundOnCloseClick),this.bottomContainerCta.removeEventListener(r.EVENTS.CLICK,this.boundOnCtaContainerClick),window.removeEventListener(s.DEVICE_EVENTS.SCREEN_ORIENTATION_CHANGE,this.boundOnScreenOrientationChange)}handleCtaContainerClick(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent(r.VIDEO_EVENTS.DISPLAY_HIDE_OVERLAY_FROM_CTA,{bubbles:!0,composed:!0}))}handleFullscreenClick(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent(r.VIDEO_EVENTS.FULLSCREEN,{bubbles:!0,composed:!0}))}handleShareClick(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent(r.VIDEO_EVENTS.SHARE,{bubbles:!0,composed:!0}))}handleLikeClick(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent(r.VIDEO_EVENTS.LIKE,{bubbles:!0,composed:!0}))}handleCloseClick(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent(r.VIDEO_EVENTS.CLOSE_PLAYER,{detail:{exitTrigger:"Close Button"},bubbles:!0,composed:!0}))}handleClosedCaptionClick(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent(r.VIDEO_EVENTS.CLOSED_CAPTIONS_OPEN_MODAL,{bubbles:!0,composed:!0}))}handleMuteClick(t){t.stopPropagation(),this.currentMuteState===l.ButtonState.Unmute?(this.currentMuteState=l.ButtonState.Mute,this.updateMuteButtonIcon(),this.dispatchEvent(new CustomEvent(r.VIDEO_EVENTS.MUTE,{bubbles:!0,composed:!0}))):(this.currentMuteState=l.ButtonState.Unmute,this.updateMuteButtonIcon(),this.dispatchEvent(new CustomEvent(r.VIDEO_EVENTS.UNMUTE,{bubbles:!0,composed:!0})))}updateClosedCaptionButtonIcon(t){const{closedCaptionsOn:e,closedCaptionsOff:i}=this.playerLayout.icons;this.closedCaptionButton.setIconUrlAnimation(t?e:i)}setMuteState(t){this.currentMuteState=t?l.ButtonState.Mute:l.ButtonState.Unmute,this.updateMuteButtonIcon()}updateMuteButtonIcon(){const{mute:t,unmute:e}=this.playerLayout.icons;this.muteButton.setIconUrlAnimation(this.currentMuteState===l.ButtonState.Unmute?e:t)}toggleMute(t){this.currentMuteState=t?l.ButtonState.Mute:l.ButtonState.Unmute,this.updateMuteButtonIcon()}updateMute(t){this.toggleMute(t)}setFullscreenState(t){const e=void 0!==t?t:"fullscreen"===this.videoRef.videoPlayerState.playerLayout,{fullscreenEnter:i,fullscreenExit:n}=this.playerLayout.icons;(s.deviceDetector.isFullscreenSupported||this.videoRef.embeddedRef)&&this.fullscreenButton.setIconUrlAnimation(e?n:i),this.playerLayout&&this.setCtaButtonStyles(this.playerLayout.cta)}setVideoDuration(t){this.videoTimer.updateTotalTime(t)}setCurrentTime(t){this.videoTimer.updateCurrentTime(t)}updateVideoInfoText(t){this.videoInfoText.textContent=t}setLikedState(t){const{like:e,unlike:i}=this.playerLayout.icons;this.likeButton.setIconUrlAnimation(t?e:i),this.likeButton.setAttribute(a.BUTTON_ATTRIBUTES.IconColor,t?this.getLikeButtonStyle(this.playerLayout.buttons.like_unlike).color:c.Colors.White)}refreshCtaLayout(){this.playerLayout&&this.setCtaButtonStyles(this.playerLayout.cta)}}},7366:(t,e,i)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.convertCcLanguageToState=void 0;const n=i(6450);e.convertCcLanguageToState=((t,e)=>{const i=null==t?void 0:t.find(t=>""+t.language===e),o=n.CcSupportedLanguages.filter(t=>"null"!==t.code).find(t=>t.code===e);return e&&(null==t?void 0:t.length)?i?o?e:"Unknown":"Unavailable":"Off"})},7416:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MomentService=void 0;const o=i(4545),r=i(4403);e.MomentService=class extends((0,r.Singleton)()){init(){}fetchContent(t){return n(this,void 0,void 0,function*(){const{sourceType:e,labels:i,ids:n,orderType:r,maxItems:s,labelsPriority:a,recommendations:l,text:d}=t;let u,c;if("ids"===e&&n)({data:u,error:c}=yield o.ApiService.getMomentByIds({ids:n,orderType:r}));else if("labels"===e&&i){const t=Array.isArray(i)?i.join():i.toString();({data:u,error:c}=yield o.ApiService.getMomentsByLabels({labels:t,orderType:r,maxItems:s,labelsPriority:a,text:d}))}else"text"===e&&d?({data:u,error:c}=yield o.ApiService.getMomentsByText({text:d,orderType:r,maxItems:s})):"recommendations"===e&&l&&({data:u,error:c}=yield o.ApiService.getContentByRecommendations({contentType:"moment",recommendations:l}));return null==u||u.result.map(t=>{t.type="Content"}),u||{assetsExpiryTime:"",totalItems:0,result:[]}})}updateMomentReadStatusById(t){return n(this,void 0,void 0,function*(){return yield o.DatabaseService.updateViewedMoment(t)})}enrichContent(t){return n(this,void 0,void 0,function*(){return yield o.DatabaseService.enrichMoments(t)})}}.getInstance()},7446:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetStoryPlayer=void 0;const r=o(i(2776)),s=i(9126),a=i(4403),l=i(7951),d=i(6450),u=i(4545),c=i(4906),h=i(9266),p=i(2240);e.BlazeWidgetStoryPlayer=class extends p.WidgetAbstractPlayer{constructor(){super(),this.boundOnKeyDown=(0,a.throttle)(this.handleNavigationKeyPress.bind(this),d.ONE_SECOND/4),this.accessibilityConfigTimeout=null,this.focusTimeout=null}connectedCallback(){this.isBlazeWidgetStory(this.playerContentList)&&(this.append(this.srcBackground),this.append(this.destBackground)),this.append(this.playerFullscreenOverlay),this.append(this.container),this.applyStyles(),this.muteVideoOnIOSOrMacTablet(),this.setupEventListeners(),this.render()}disconnectedCallback(){this.listeners.removeAll(),null===window||void 0===window||window.removeEventListener("focus",this.onFocus),this.cleanupHammer(),this.cancelAccessibilityConfig(),this.cancelFocus()}setupEventListeners(){this.listeners.add("keydown",this.boundOnKeyDown),null===window||void 0===window||window.addEventListener("focus",this.onFocus.bind(this)),this.setupHammer(Hammer.DIRECTION_HORIZONTAL)}applyStyles(){(0,h.mergeStyles)(this,{display:"block",overflow:"hidden",height:"100%",width:"100%",position:"relative",background:c.Colors.Black,boxSizing:"border-box"}),this.container.setStyle({display:"grid",position:"relative",height:"100%"})}updateContentConfig(t){(null==t?void 0:t.length)&&t.length===this.playerContentList.length&&t.forEach((t,e)=>{const i=this.playerContentList[e];if(i.data.id===t.id)try{i.setData(t),i.render(),i.load(),i.play()}catch(t){}})}attributeChangedCallback(t,e,i){}setContent(t){this.playerContentList=[];for(const t of this.contentList)t.remove();t.forEach(t=>{t.pages.forEach(t=>
1t.requestFrameCallback=this.renderPlayerBackground.bind(this))}),this.contentList=[...t],this.contentList.forEach((t,e)=>{t.onNextStory=(e=>{t.navigationType=e,t.navigationDirection="Forwards",this.navigateContent("NEXT")}),t.onPrevStory=(e=>{t.navigationType=e,t.navigationDirection="Backwards",this.navigateContent("PREV")}),t.onClose=(()=>{t.exitTrigger="Close Button",t.navigationType="",t.navigationDirection="",this.close()}),t.setContentExtraInfo(this.getContentExtraInfo(this.contentList,e))}),t.forEach(t=>t.refWidget=this.contentList)}navigateContent(t){var e,i;if(this.isNavigationBlocked)return;let n;switch(t){case"PREV":n=this.index-1;break;case"NEXT":n=this.index+1;break;default:return}const o=this.playerContentList[this.index];if(n<0||n===this.playerContentList.length)return void("PREV"===t?(o.resetPosition(),o.play()):"NEXT"===t&&(o.exitTrigger="Stories Completed",null===(e=o.refContentModal)||void 0===e||e.dispatchExitStoryEvents(),this.close()));this.isNavigationBlocked=!0,u.VideoPlayerService.isNavigating=!1;const r=this.playerContentList[n];a.URLManager.updateLocationContentHash({contentType:"story",contentId:null==r?void 0:r.data.id,isAd:null==r?void 0:r.data.isAd}),null==r||r.updatePlayerButtonIcons(),this.blockInteractionWithUserInterface(),null===(i=this.animateContent(t))||void 0===i||i.play(),u.VideoPlayerService.isNavigating=!1,this.cancelFocus(),this.scheduleAccessibilityConfig(r)}onFocus(){this.resetPosition()}handleMoveSwipe(t){var e,i,n,o,r,l,c,p,f;const g=this.contentList.findIndex(t=>{var e;return t.id===(null===(e=this.playerContentList[this.index])||void 0===e?void 0:e.id)});if(!(null===(e=this.playerContentList[this.index])||void 0===e?void 0:e.currentPage.isCurrentlyTryingToRunImaAd)&&g>-1){const e=t.distance/((null===window||void 0===window?void 0:window.screen.width)/.75)*this._animationDuration;switch(t.offsetDirection){case this.directionForwards:if("SingleContent"===u.VideoPlayerService.playReference)return void(u.ConfigService.autoAdvanceUrl&&!a.URLManager.isAutoAdvancingEnabled&&(a.URLManager.isAutoAdvancingEnabled=!0,this.animateCloseWithDirection({direction:"HorizontalForwards",callback:()=>a.URLManager.navigateTo("AUTO_ADVANCE")})));if(g===this.contentList.length-1)return void(Math.abs(t.deltaX)>=50&&this.animateCloseWithDirection({direction:"VerticalForwards"}));null===(i=this.playerContentList[this.playerContentList.length-1])||void 0===i||i.load(),null===(n=this.currentNextAnimation)||void 0===n||n.seek(e);break;case this.directionBackwards:if("SingleContent"===u.VideoPlayerService.playReference)return;if(0===g)return void(Math.abs(t.deltaX)>=50&&this.animateCloseWithDirection({direction:"HorizontalBackwards"}));null===(o=this.playerContentList[0])||void 0===o||o.load(),null===(r=this.currentPrevAnimation)||void 0===r||r.seek(e);break;case Hammer.DIRECTION_UP:if(Math.abs(t.deltaY)>=15){const t=this.playerContentList[this.index];if(t.isCtaWasClickedOrSwiped)return;if(t.currentPage.isAd)return;const e="none"!==t.ctaButtonElement.style.display,i=null===(c=null===(l=t.currentPage.data.cta)||void 0===l?void 0:l.enhancements)||void 0===c?void 0:c.hasSwipeUp,n=t.currentPage instanceof s.BlazeWidgetVideo,o=t.currentPage instanceof s.BlazeWidgetAd;if(n&&e&&i){t.isCtaWasClickedOrSwiped=!0;const e=new Event("swipeup");t.handleCtaAction(e,"Swipe Up")}else o&&(t.isCtaWasClickedOrSwiped=!0,t.currentPage.handleCtaSwipeUp(),(0,h.delay)(d.ONE_SECOND).then(()=>t.isCtaWasClickedOrSwiped=!1))}return;default:null===(p=this.currentNextAnimation)||void 0===p||p.seek(0),null===(f=this.currentPrevAnimation)||void 0===f||f.seek(0)}}}handleEndSwipe(t){var e;const i=this.playerContentList[this.index+1],n=this.playerContentList[this.index-1],o=this.contentList.findIndex(t=>{var e;return t.id===(null===(e=this.playerContentList[this.index])||void 0===e?void 0:e.id)});if(!(null===(e=this.playerContentList[this.index])||void 0===e?void 0:e.currentPage.isCurrentlyTryingToRunImaAd))switch(t.offsetDirection){case this.directionForwards:if(o===this.contentList.length-1)return;this.playerContentList[this.index].exitTrigger="Swipe",this.playerContentList[this.index].navigationType="Manual",this.processAnimation(t,i,this.currentNextAnimation),a.URLManager.updateLocationContentHash({contentType:"story",contentId:null==i?void 0:i.data.id,isAd:null==i?void 0:i.data.isAd});break;case this.directionBackwards:this.playerContentList[this.index].exitTrigger="Swipe",this.playerContentList[this.index].navigationType="Manual",this.processAnimation(t,n,this.currentPrevAnimation),a.URLManager.updateLocationContentHash({contentType:"story",contentId:null==n?void 0:n.data.id,isAd:null==n?void 0:n.data.isAd});break;case Hammer.DIRECTION_DOWN:if("mobile"===a.deviceDetector.platform&&t.deltaY>30&&Math.abs(t.deltaX)<=70){if("SingleContent"===u.VideoPlayerService.playReference)return;this.playerContentList[this.index].exitTrigger="Swipe Down",this.animateCloseWithDirection({direction:"VerticalForwards"})}return;case Hammer.DIRECTION_UP:return;default:this.reverseAnimation(t)}}handlePrevDirection(){const t=this.playerContentList[0],e=this.contentList[this.contentList.indexOf(t)-1];e&&!this.container.contains(e)&&(e.updatePlayerButtonIcons(),e.updateCTAButtonPosition(),e.currentPage.loadPoster(),this.container.prepend(e),this.playerContentList.splice(0,0,e),this.index+=1)}handleNextDirection(){const t=this.contentList[this.contentList.indexOf(this.playerContentList[this.playerContentList.length-1])+1];t&&!this.container.contains(t)&&(t.updatePlayerButtonIcons(),t.updateCTAButtonPosition(),t.currentPage.loadPoster(),this.container.append(t),this.playerContentList.push(t))}resetStyles(){this.style.background="#000",this.style.transform="translate(0, 0)",this.style.opacity="",this.container.style.opacity=""}play(t){var e,i,n;const o=this.playerContentList[this.index];if(t&&!isNaN(null!==(e=null==t?void 0:t.pageIndex)&&void 0!==e?e:0)&&(o.pageIndex=null!==(i=null==t?void 0:t.pageIndex)&&void 0!==i?i:0),a.URLManager.updateLocationContentHash({contentType:"story",contentId:null==o?void 0:o.data.id,isAd:null==o?void 0:o.data.isAd}),o){o.load();const t=o.shouldShowImaAdOnStart;o.shouldShowImaAdOnStart=!1,o.play(),o.shouldShowImaAdOnStart=t,this.playerContentList.forEach(t=>
1{o.data.id!==t.data.id&&(t.displayCurrentStoryPageAndHideTheRest(),t.updateCTAButtonPosition())}),setTimeout(()=>{var t;switch(u.ConfigService.prefetchingPolicy){case"low":null===(t=this.playerContentList[this.playerContentList.length-1])||void 0===t||t.load();break;case"default":this.playerContentList.forEach(t=>{o.data.id!==t.data.id&&t.load()})}},3*d.ONE_SECOND),this.manageElementsAccessible(null===(n=null==o?void 0:o.data)||void 0===n?void 0:n.id)}}loadAndPlayContent(){return n(this,void 0,void 0,function*(){var t;this.isNavigationBlocked=!0,this.videoPlayerState.isPlaying=!0;const e=this.playerContentList[this.index];e&&(yield e.load("direct"),e.play(),this.playerContentList.forEach(t=>{t.data.id!==e.data.id&&(t.isActive=!1)}),e.isActive=!0,this.isNavigationBlocked=!1,u.VideoPlayerService.isNavigating=!1,this.videoPlayerState.isPlaying=!0,this.manageElementsAccessible(null===(t=e.data)||void 0===t?void 0:t.id))})}handleAnimationCompletion(t,e){var i,n;t&&(t.navigationDirection="NEXT"===e?"Forwards":"Backwards",t.event(d.StoryAction.PageExit,{}),t.event(d.StoryAction.Exit,{}),t.isActive=!1,t.updateWidgetStatusReadUnread(),t.currentPage.muted=this.videoPlayerState.isMuted,t.pause()),null===(i=this.onContentChange)||void 0===i||i.call(this,e),this.index+="NEXT"===e?1:-1,this.handleAnimationEnd(e),t.currentPage.endExit();const o=this.playerContentList[this.index];o&&l.contentAccessibilityManager.announceNavigation(this.calculateTruePosition(o),this.contentList.length,"story-list",null===(n=o.data)||void 0===n?void 0:n.title,{trigger:"navigation",navigationType:o.navigationType,previousPosition:this.calculateTruePosition(this.playerContentList[0===this.index?0:this.index-1])})}createAnimation(t,e,i){const n=this.playerContentList[i],o=this.offsetWidth*("RTL"===u.ConfigService.layoutDirection?-1:1);return r.default.timeline({complete:()=>{u.VideoPlayerService.isModalOpen&&this.handleAnimationCompletion(t,e)},changeBegin:()=>{this.handleAnimationStart(t,n)},easing:"easeOutQuad",autoplay:!1}).add({targets:[this.container],keyframes:[{translateX:-this.index*o,duration:0},{translateX:-i*o,duration:this._animationDuration}]},0).add({targets:[t],keyframes:[{scale:.8,duration:.15*this._animationDuration},{scale:1,duration:.85*this._animationDuration,delay:.15*this._animationDuration},{transform:"translate(calc("+o+"px - 100%), 0)"}]},0).add({targets:[n],keyframes:[{scale:.8,duration:.15*this._animationDuration},{scale:1,duration:.85*this._animationDuration,delay:.15*this._animationDuration},{transform:"translate(calc("+o+"px - 100%), 0)"}]},0)}handleAnimationStart(t,e){var i,n;e.currentPage.loadPoster(),e.updatePublishedDate(),e.updatePlayerButtonIcons(),null==t||t.pause(),t.currentPage.muted=this.videoPlayerState.isMuted,e.currentPage.muted=this.videoPlayerState.isMuted,(null===(i=t.shareModal)||void 0===i?void 0:i.isOpen)&&(null===(n=t.shareModal)||void 0===n||n.close()),e.currentPage.startEnter()}animateCloseWithDirection(t){const{direction:e,callback:i,exitTrigger:n="Swipe",navigationType:o="Manual"}=t;let s;switch(e){case"HorizontalForwards":case"VerticalForwards":s="Forwards";break;case"HorizontalBackwards":case"VerticalBackwards":s="Backwards"}if(this.isCloseAnimationStarted)return;this.isCloseAnimationStarted=!0;const a=r.default.timeline({complete:()=>{this.isCloseAnimationStarted=!1,this.close()},changeBegin:()=>{const t=this.playerContentList[this.index];t&&(t.pause(),t.currentPage.muted=this.videoPlayerState.isMuted),t.exitTrigger=n,t.navigationType=o,t.navigationDirection=s,t.event(d.StoryAction.Exit,{}),t.event(d.StoryAction.PageExit,{}),u.AnalyticsService.sendAnalyticsData()},easing:"easeOutQuad"});a.add(Object.assign(Object.assign(Object.assign(Object.assign({targets:[this.container]},"HorizontalBackwards"===e&&{translateX:"RTL"===u.ConfigService.layoutDirection?"-100%":"100%"}),u.ConfigService.shouldAutoAdvance&&"SingleContent"===u.VideoPlayerService.playReference&&"HorizontalForwards"===e&&{translateX:"-100%"}),"VerticalForwards"===e&&{translateY:"100%"}),{opacity:0,duration:500})),this.resetPosition(),this.style.background="",a.play(),a.finished.then(()=>{null==i||i()})}handleNavigationKeyPress(t){const e=this.playerContentList[this.index],i="SingleContent"===u.VideoPlayerService.playReference,n=e.isLastPage();if(!i||!n)return u.VideoPlayerService.isNavigating=!1,!!this.focus&&("ArrowLeft"==t.key||"Left"==t.key?(this.videoPlayerState.isPlaying=!0,"RTL"===u.ConfigService.layoutDirection?e.goNextPage():e.goPrevPage()):"ArrowRight"!=t.key&&"Right"!=t.key||(this.videoPlayerState.isPlaying=!0,"RTL"===u.ConfigService.layoutDirection?e.goPrevPage():e.goNextPage()),!1);
1u.ConfigService.shouldAutoAdvance&&(this.renderPlayerBackground(!0),this.animateCloseWithDirection({direction:"HorizontalForwards",callback:()=>a.URLManager.navigateTo("AUTO_ADVANCE")}))}render(){const t=this.getBoundingClientRect().width;this.container.style.gridTemplateColumns="repeat(10, "+t+"px)",this.container.style.transform=""}loadContentBatch(){}playToggleCurrentStory(){this.playerContentList[this.index].playToggle()}manageElementsAccessible(t){this.playerContentList&&0!==this.playerContentList.length&&t&&this.playerContentList.forEach(e=>{var i;const n=e;(null===(i=n.data)||void 0===i?void 0:i.id)===t?n.enableAllButtons():n.disableAllButtons()})}calculateTruePosition(t){const e=this.contentList.findIndex(e=>e.data.id===t.data.id);return e>=0?e+1:this.index+1}configurePlayerContentAccessibility(){this.playerContentList.forEach((t,e)=>{t instanceof s.BlazeWidgetStory&&(e===this.index?this.setCurrentStoryAccessibility(t,e):this.setInactiveStoryAccessibility(t))})}setCurrentStoryAccessibility(t,e){var i;t.setAttribute("tabindex",d.ACCESSIBILITY_ATTRIBUTES.ACTIVE_TABINDEX),t.setAttribute("aria-hidden",d.ACCESSIBILITY_ATTRIBUTES.ARIA_HIDDEN_FALSE),t.setAttribute("role",d.ACCESSIBILITY_ATTRIBUTES.REGION_ROLE);const n=((null===(i=t.data)||void 0===i?void 0:i.title)||"Story "+(e+1))+", story "+this.calculateTruePosition(t)+" of "+this.contentList.length;t.setAttribute("aria-label",n),this.scheduleFocus(t),setTimeout(()=>{t.setAttribute("aria-label","")},d.ACCESSIBILITY_TIMING.LABEL_CLEAR_DELAY)}setInactiveStoryAccessibility(t){t.setAttribute("tabindex",d.ACCESSIBILITY_ATTRIBUTES.INACTIVE_TABINDEX),t.setAttribute("aria-hidden",d.ACCESSIBILITY_ATTRIBUTES.ARIA_HIDDEN_TRUE),t.setAttribute("aria-label",""),t.hasAttribute("role")||t.setAttribute("role",d.ACCESSIBILITY_ATTRIBUTES.REGION_ROLE)}scheduleAccessibilityConfig(t){this.cancelAccessibilityConfig(),this.accessibilityConfigTimeout=setTimeout(()=>{var e,i,n;this.manageElementsAccessible(null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.id),this.configurePlayerContentAccessibility(),null===(n=null===(i=null==t?void 0:t.refContentModal)||void 0===i?void 0:i.updateContentAriaLabelForNavigation)||void 0===n||n.call(i),this.accessibilityConfigTimeout=null},d.ACCESSIBILITY_TIMING.CONFIG_SCHEDULE_DELAY)}cancelAccessibilityConfig(){this.accessibilityConfigTimeout&&(clearTimeout(this.accessibilityConfigTimeout),this.accessibilityConfigTimeout=null)}scheduleFocus(t){this.cancelFocus(),this.focusTimeout=setTimeout(()=>{t.focus(),this.focusTimeout=null},d.ACCESSIBILITY_TIMING.FOCUS_DELAY)}cancelFocus(){this.focusTimeout&&(clearTimeout(this.focusTimeout),this.focusTimeout=null)}}},7449:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ANNOUNCEMENT_CONSTANTS=void 0,e.ANNOUNCEMENT_CONSTANTS={LIVE_REGIONS:{POLITE_ID:"blaze-aria-live-polite",ASSERTIVE_ID:"blaze-aria-live-assertive",STYLES:{POSITION:"absolute",LEFT:"-10000px",WIDTH:"1px",HEIGHT:"1px",OVERFLOW:"hidden"}},ATTRIBUTES:{ARIA_LIVE:"aria-live",ARIA_ATOMIC:"aria-atomic",ATOMIC_VALUE:"true"},TIMING:{REGION_SETUP_DELAY:10}}},7452:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.VideoCacheService=void 0;const o=i(4403),r=i(9142);e.VideoCacheService=class extends((0,o.Singleton)()){constructor(){super(),this.cache=null,this.cacheName="blaze-video-cache",this.downloadControllers=new Map,this.cacheList=new Map,this.cacheInitialized=!1,this.cacheSupported=!1,this.sizeLimit=367001600,this.cacheSupported=this.isCacheSupported()}isCacheSupported(){return"undefined"!=typeof caches&&"open"in caches}init(){return n(this,void 0,void 0,function*(){this.cacheSupported&&this.retryCacheInitialization(3)})}retryCacheInitialization(t){return n(this,void 0,void 0,function*(){for(;t>0;)try{return this.cache=yield caches.open(this.cacheName),yield this.clearAllCache(),this.cacheInitialized=!0,void this.checkCacheSize()}catch(e){--t>0&&(yield new Promise(t=>setTimeout(t,r.ONE_SECOND)))}})}checkCacheSize(){return n(this,void 0,void 0,function*(){if("storage"in navigator&&"estimate"in navigator.storage){const{usage:t,quota:e}=yield navigator.storage.estimate();if(t&&e&&t/1048576>this.sizeLimit){let t="",e=new Date;this.cacheList.forEach((i,n)=>{i<e&&(e=i,t=n)}
1),this.deleteCacheVideoByUrl(t)}}})}isVideoDownloading(t){return this.downloadControllers.has(t)}isInitialized(){return this.cacheInitialized}fetchAndCache(t){return n(this,void 0,void 0,function*(){if(this.cacheInitialized&&this.cache)try{const{abort:e,ready:i,signal:o}=yield function(t,e){return n(this,void 0,void 0,function*(){const i=new AbortController,n=i.signal,o=()=>i.abort();try{return{abort:o,ready:yield fetch(t,Object.assign(Object.assign({},e),{signal:n})),signal:n}}catch(t){throw t}})}(t,{mode:"no-cors",priority:"high"});this.downloadControllers.set(t,{abort:e,ready:i,signal:o});const r=yield i;if(o.aborted)return r;const s=r.clone();return yield this.cacheResponse(t,s),s}catch(t){}finally{this.downloadControllers.delete(t)}})}cacheResponse(t,e){return n(this,void 0,void 0,function*(){if(this.cache)try{this.cacheList.set(t,new Date),yield this.cache.put(t,e)}catch(t){}finally{this.checkCacheSize()}})}addCacheVideoByUrl(t){return n(this,void 0,void 0,function*(){if(this.cacheInitialized&&this.cache)try{return(yield this.cache.match(t))||(yield this.fetchAndCache(t))}catch(t){return}})}isVideoCached(t){return n(this,void 0,void 0,function*(){if(!this.cacheInitialized||!this.cache)return!1;try{return!!(yield this.cache.match(t))}catch(t){return!1}})}abortDownload(t){return n(this,void 0,void 0,function*(){const e=this.downloadControllers.get(t);e&&(e.abort(),this.downloadControllers.delete(t))})}deleteCacheVideoByUrl(t){return n(this,void 0,void 0,function*(){return!!this.cache&&(yield this.cache.delete(t).then(()=>!0).catch(t=>!1))})}clearAllCache(){return n(this,void 0,void 0,function*(){if(this.cache)try{const t=(yield this.cache.keys()).map(t=>
1this.deleteCacheVideoByUrl(t.url));yield Promise.all(t)}catch(t){}})}downloadAndCacheVideo(t){return n(this,void 0,void 0,function*(){this.cacheInitialized&&this.cache&&(this.downloadControllers.has(t)||(yield this.addCacheVideoByUrl(t)))})}deleteVideoFromCache(t){return n(this,void 0,void 0,function*(){this.cacheInitialized&&this.cache&&(this.abortDownload(t),(yield this.isVideoCached(t))&&(yield this.deleteCacheVideoByUrl(t)))})}}.getInstance()},7471:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetClosedCaptionsModal=void 0;const o=i(4403),r=i(5785),s=i(6450),a=i(8921),l=i(277),d=i(4906),u=i(9266);e.BlazeWidgetClosedCaptionsModal=class extends o.BaseWidget{constructor(t,e){super(),this.data=t,this.contentType=e,this.closedCaptionsContainer=a.WidgetsFactory.create("blaze-div"),this.closedCaptionsMenu=a.WidgetsFactory.create("blaze-player-menu"),this.shadow=this.attachShadow({mode:"open"})}connectedCallback(){return n(this,void 0,void 0,function*(){this.boundLanguageChangeEvent=this.onLanguageChange.bind(this),this.boundOnMenuOpen=this.onMenuOpen.bind(this),this.boundOnMenuClose=this.onMenuClose.bind(this),this.boundOnMenuExpand=this.onMenuExpand.bind(this),this.boundOnMenuCollapse=this.onMenuCollapse.bind(this),this.setupEventListeners(),this.render()})}disconnectedCallback(){this.detachEventListeners()}setupEventListeners(){this.addEventListener(r.PLAYER_MENU_EVENTS.OPEN,this.boundOnMenuOpen),this.addEventListener(r.PLAYER_MENU_EVENTS.CLOSE,this.boundOnMenuClose),this.addEventListener(r.PLAYER_MENU_EVENTS.EXPAND,this.boundOnMenuExpand,!0),this.addEventListener(r.PLAYER_MENU_EVENTS.COLLAPSE,this.boundOnMenuCollapse,!0),u.SharedEventTarget.addEventListener(s.CLOSED_CAPTIONS_LANGUAGE_CHANGE,this.boundLanguageChangeEvent)}detachEventListeners(){this.removeEventListener(r.PLAYER_MENU_EVENTS.OPEN,this.boundOnMenuOpen),this.removeEventListener(r.PLAYER_MENU_EVENTS.CLOSE,this.boundOnMenuClose),this.removeEventListener(r.PLAYER_MENU_EVENTS.EXPAND,this.boundOnMenuExpand),this.removeEventListener(r.PLAYER_MENU_EVENTS.COLLAPSE,this.boundOnMenuCollapse),u.SharedEventTarget.removeEventListener(s.CLOSED_CAPTIONS_LANGUAGE_CHANGE,this.boundLanguageChangeEvent)}onLanguageChange(){this.closedCaptionsContainer.innerHTML="",this.fillContainerWithOptions()}onMenuOpen(){var t;null===(t=this.onOpen)||void 0===t||t.call(this)}onMenuClose(){var t;null===(t=this.onClose)||void 0===t||t.call(this),(0,u.mergeStyles)(this.closedCaptionsContainer,{height:"fit-content",maxHeight:3*(o.deviceDetector.isMobile?74:56)+"px"})}onMenuExpand(){(0,u.mergeStyles)(this.closedCaptionsContainer,{maxHeight:"initial"})}onMenuCollapse(){(0,u.mergeStyles)(this.closedCaptionsContainer,{height:"fit-content",maxHeight:3*(o.deviceDetector.isMobile?74:56)+"px"})}open(){this.isOpen()||this.closedCaptionsMenu.open()}close(){this.isOpen()&&this.closedCaptionsMenu.close()}isOpen(){return!0===this.closedCaptionsMenu.getAttribute(r.PLAYER_MENU_ATTRIBUTES.OPEN)}reloadData(t){this.data=t,this.closedCaptionsContainer.innerHTML="",this.fillContainerWithOptions()}handleCcOptionClick(t,e,i){var n,o;if(this.closedCaptionsContainer.querySelectorAll(".selected").forEach(t=>{t.classList.remove("selected")}),e.classList.add("selected"),i){const t=JSON.parse(localStorage.getItem(s.LOCAL_STORAGE_KEY_RECENT_LANGUAGES)||"[]"),e=t.findIndex(t=>t===i.code);-1!==e&&t.splice(e,1),t.unshift(i.code),localStorage.setItem(s.LOCAL_STORAGE_KEY_RECENT_LANGUAGES,JSON.stringify(t.slice(0,1))),localStorage.setItem(s.LOCAL_STORAGE_KEY_LAST_SELECTED,i.code||"null")}else localStorage.removeItem(s.LOCAL_STORAGE_KEY_LAST_SELECTED);u.SharedEventTarget.dispatchEvent(new CustomEvent(s.CLOSED_CAPTIONS_LANGUAGE_CHANGE,{detail:{language:null==i?void 0:i.code},bubbles:!0,composed:!0})),i?null===(n=this.onClosedCaptionsEnable)||void 0===n||n.call(this,i.code):null===(o=this.onClosedCaptionsDisable)||void 0===o||o.call(this),this.close()}buildCcOption(t,e){const i=a.WidgetsFactory.create("blaze-div"),n=a.WidgetsFactory.create("blaze-div"),r=a.WidgetsFactory.create("blaze-div"),s=a.WidgetsFactory.create("blaze-image"),u=a.WidgetsFactory.create("blaze-div"),c=(null==t?void 0:t.name)||"Off";if(i.setAttribute("role","menuitemradio"),i.setAttribute("aria-checked",(null==e?void 0:e.isSelected)?"true":"false"),i.setAttribute("aria-label",(null==e?void 0:e.isNotAvailable)?c+", not available":c),(null==e?void 0:e.isNotAvailable)?i.setAttribute("aria-disabled","true"):i.setAttribute("tabindex","0"),n.setStyle({display:"flex",flexDirection:"row",alignItems:"center",gap:"8px",flex:"1",overflow:"hidden"}),t&&"null"!==t.code){const e=a.WidgetsFactory.create("blaze-div");e.classList.add("country-code"),e.setStyle({backgroundColor:"#bababa",borderRadius:"2px",fontFamily:d.Presets.playerFont,fontSize:o.TextScaleService.scaleFontSize("10px"),fontWeight:"900",color:"#333333",lettersSpacing:"1px",display:"flex",alignItems:"center",justifyContent:"center",height:"16px",width:"23px"}),e.innerText=t.code.toUpperCase(),n.append(e)}if(n.append(u),r.setStyle({display:"flex",flexDirection:"row",alignItems:"center",gap:"16px",flexShrink:"0"}),null==e?void 0:e.isNotAvailable){const t=a.WidgetsFactory.create("blaze-typography");t.innerText="Not available",i.classList.add("not-available"),r.append(t)}return r.append(s),s.classList.add("check-mark"),s.load(l.checkMarkSvg),u.setStyle({whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:"1"}),u.innerText=c,i.classList.add("cc-option"),(null==e?void 0:e.isSelected)&&i.classList.add("selected"),i.setStyle({display:"flex",flexDirection:"row",justifyContent:"space-between",height:(o.deviceDetector.isMobile?74:56)+"px",padding:"0 16px",gap:"18px",alignItems:"center",color:d.Colors.White,flexShrink:"0",flexGrow:"0",borderTop:(null==e?void 0:e.isFirstRecentlySelected)?"1px solid #404040":"none",borderBottom:(null==e?void 0:e.isLastRecentlySelected)?"1px solid #404040":"none",cursor:(null==e?void 0:e.isNotAvailable)?"not-allowed":"pointer",outline:"none"}),i.append(n),i.append(r),(null==e?void 0:e.isNotAvailable)||(i.onclick=(e=>this.handleCcOptionClick(e,i,t)),i.onkeydown=(e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.handleCcOptionClick(e,i,t))})),i}fillContainerWithOptions(){const t=localStorage.getItem(s.LOCAL_STORAGE_KEY_LAST_SELECTED),e=JSON.parse(localStorage.getItem(s.LOCAL_STORAGE_KEY_RECENT_LANGUAGES)||"[]"),i=s.CcSupportedLanguages.filter(t=>{var i;return(null===(i=this.data)||void 0===i?void 0:i.find(e=>""+e.language===t.code))&&!e.find(e=>e===t.code)}),n=e.map(t=>s.CcSupportedLanguages.find(e=>e.code===t));this.closedCaptionsContainer.innerHTML="",this.closedCaptionsContainer.append(this.buildCcOption(null,{isSelected:!t}
1)),n.forEach((e,o)=>{var r;const s={isFirstRecentlySelected:0===o,isLastRecentlySelected:o===n.length-1&&!!i.length,isNotAvailable:!(null===(r=this.data)||void 0===r?void 0:r.find(t=>""+t.language===e.code)),isSelected:t===e.code},a=this.buildCcOption(e,s);this.closedCaptionsContainer.append(a)}),i.forEach(t=>{const e=this.buildCcOption(t);this.closedCaptionsContainer.append(e)}),this.closedCaptionsContainer.setStyle({height:"fit-content"})}render(){const t=document.createElement("style");t.textContent="\n      .cc-option .check-mark {\n        display: none;\n      }\n\n      .cc-option.selected {\n        font-weight: 700;\n      }\n\n      .cc-option.not-available {\n        color: #5d5d5d !important;\n      } \n\n      .cc-option.not-available .country-code {\n        background-color: #5d5d5d !important;\n      } \n\n      .cc-option.selected .check-mark {\n        display: block;\n      }\n\n      .cc-option:focus-visible {\n        outline: 2px solid #007AFF;\n        outline-offset: -2px;\n        background-color: rgba(255, 255, 255, 0.1);\n      }\n\n      .cc-option:hover:not(.not-available) {\n        background-color: rgba(255, 255, 255, 0.05);\n      }\n    ",this.shadow.append(t),this.shadow.append(this.closedCaptionsMenu),this.closedCaptionsContainer.setAttribute("role","menu"),this.closedCaptionsContainer.setAttribute("aria-label","Closed captions language options"),this.closedCaptionsContainer.setStyle({display:"flex",overflowY:"scroll",flexDirection:"column",fontSize:".875rem",fontFamily:d.Presets.playerFont,color:"#000",maxHeight:3*(o.deviceDetector.isMobile?74:56)+"px"}),this.fillContainerWithOptions(),this.closedCaptionsMenu.init({title:"Closed captions",component:this.closedCaptionsContainer}),"video"===this.contentType&&o.deviceDetector.isDesktop&&(0,u.mergeStyles)(this.closedCaptionsMenu.menuContainer,{width:"320px",top:"auto",bottom:"80px",margin:"initial",right:"1rem",left:"initial",transform:"none"})}}},7497:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},7525:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MomentModalTemplate=void 0;const n=i(5417),o=i(9965),r=i(4545),s=i(9126);e.MomentModalTemplate=class extends n.BaseModalTemplate{createModal(t,e,i){const n=new s.BlazeWidgetMomentModal(t,e,i);return n.id="blaze-moment-modal-"+Math.random().toString(36),n.playerLayout=e,n}configureModal(t,e){var i;t.setModalContent(e,0,void 0),t.seek(null!==(i=e[0].id)&&void 0!==i?i:"")}getService(){return r.MomentService}getErrorCode(){return o.ErrorCode.FailedLoadingMoments}}},7534:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.thumbnailMapping=function(t){return i[t]};const i={SQUARE_ICON:"SquareIcon",VERTICAL_TWO_BY_THREE:"VerticalTwoByThree",GIF:"Gif",ANIMATED_THUMBNAIL_POSTER:"AnimatedThumbnailPoster",CUSTOM:"MainThumbnail"}},7705:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HttpStatus=void 0,e.HttpStatus={Ok:200,Created:201,NoContent:204,BadRequest:400,Unauthorized:401,Forbidden:403,NotFound:404,InternalServerError:500}},7708:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.AppConfigurationService=void 0;const o=i(4545),r=i(4403),s=i(9965),a=i(9266);e.AppConfigurationService=class extends((0,r.Singleton)()){constructor(){super(),this._refetchInterval=null}get appConfigurations(){return this._appConfigurations}init(t){return n(this,void 0,void 0,function*(){var e,i,n,r,l;if(t.staticContent||t.staticContentType)return;let d=3,u=!1;for(;d>0&&!u;)try{const s=yield o.ApiService.getAppConfigurations();if(s.error){if((null===(e=s.error.message)||void 0===e?void 0:e.includes("JSON"))||(null===(i=s.error.message)||void 0===i?void 0:i.includes("parse")))break;const t=500*(3- --d);yield(0,a.delay)(t);continue}u=!0,this._appConfigurations=s.data,o.ApiService.initializeAnalyticsUrlRotator(null===(n=this._appConfigurations)||void 0===n?void 0:n.analyticsLoadBalancerConfiguration),(null===(r=this._appConfigurations)||void 0===r?void 0:r.sdkLoggerConfigurations)&&o.LoggerService.updateConfiguration(this._appConfigurations.sdkLoggerConfigurations),(null===(l=this._appConfigurations)||void 0===l?void 0:l.configurations.configRefetchIntervalInMinutes)&&this.setupRefetchInterval(t)}catch(t){if(--d>0){const t=500*(3-d);yield(0,a.delay)(t)}}u||o.EventService.dispatch(document.body,s.Delegation.onErrorThrown,{errorCode:s.ErrorCode.FailedLoadingAppConfigurations})})}setupRefetchInterval(t){this.clearRefetchInterval();const e=this._appConfigurations.configurations;if(!e.configRefetchIntervalInMinutes)return;const i=60*e.configRefetchIntervalInMinutes*1e3;this._refetchInterval=setInterval(()=>n(this,void 0,void 0,function*(){navigator.onLine&&(yield this.init(t))}),i)}clearRefetchInterval(){this._refetchInterval&&(clearInterval(this._refetchInterval),this._refetchInterval=null)}destroy(){this.clearRefetchInterval()}}.getInstance()},7784:(t,e)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.debounce=function(t,e){let i=null;function n(...n){i&&clearTimeout(i),i=setTimeout(()=>{t(...n)},e)}return n.cancel=(()=>{i&&(clearTimeout(i),i=null)}),n}},7787:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},7792:(t,e)=>{"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.PlayStatus=void 0,function(t){t.Success="SUCCESS",t.Failed="FAILED"}(i||(e.PlayStatus=i={}))},7924:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.AnalyticsService=void 0;const r=i(7232),s=i(4545),a=o(i(8330)),l=i(4403),d=i(6450),u=i(356),c=i(611),h=i(9266);e.AnalyticsService=class extends((0,l.Singleton)()){constructor(){super(...arguments),this.events=[],this.eventSessionCounter=1,this.mightBeABot=!1}init(){return n(this,void 0,void 0,function*(){const t=new r.UAParser(navigator.userAgent);this.uaParsed=t.getResult(),this.mightBeABot=(0,h.isBot)(),s.ConfigService.sendAnalytics&&setInterval(()=>{this.sendAnalyticsData()},d.ONE_SECOND)})}sendAnalyticsData(){return n(this,void 0,void 0,function*(){if(s.UserService.userId){if(s.UserService.sessionId&&this.events.length)try{const t=this.events.map(t=>{var e,i,n,o,r;return t.user.generated_user_id=s.ConfigService.doNotTrack?"do_not_track":s.UserService.userId,t.user.external_user_id=null!==(e=s.ConfigService.externalUserId)&&void 0!==e?e:"",t.user.ab_test_id=null!==(n=null===(i=s.UserService.abTest)||void 0===i?void 0:i.id)&&void 0!==n?n:"",t.user.ab_test_variant=null!==(r=null===(o=s.UserService.abTest)||void 0===o?void 0:o.variant)&&void 0!==r?r:"",t.session_id=s.UserService.sessionId,t.widget&&(t.widget.page_view_id=s.UserService.sessionId),t});this.events=[],yield this.bulkEvent(t)}catch(t){}}else s.UserService.assignUserId()})}bulkEvent(t){return n(this,void 0,void 0,function*(){return t.forEach(t=>{var e;let i=null!==(e=t.event_action)&&void 0!==e?e:"Unknown Action",n=!1;["cta_click","audio","cc_off","cc_on","share_click","share_success","playback_pause","playback_play"].includes(i)&&("moment"===t.event_category&&t.moment?(i="$"+i,n=!0):"video"===t.event_category&&t.video&&(i="#"+i,n=!0));const o=d.exposedFieldsByAction[i];n&&(i=i.substring(1));const r={},a=(0,u.flattenObject)(t);if(o)for(const t of o)a.hasOwnProperty(t)&&(r[t]=a[t]);s.EventService.dispatchAnaltyicsEvents(i,r)}),s.ConfigService.disableAnalytics?Promise.resolve():s.ApiService.sendAnaltyicsEvents(t)})}pushStoryEvent(t,e,i,n){this.events.push(this.setupEvent(l.Category.Story,t.toString(),e,i,n))}pushMomentEvent(t,e,i,n){this.events.push(this.setupEvent(l.Category.Moment,t.toString(),e,i,n))}pushVideoEvent(t,e,i,n){this.events.push(this.setupEvent(l.Category.Video,t.toString(),e,i,n))}pushAdEvent(t,e,i,n){this.events.push(this.setupEvent(l.Category.Ad,t.toString(),e,i,n))}pushConsentEvent(t,i){e.AnalyticsService.events.push(e.AnalyticsService.setupEvent(l.Category.Consent,t.toString(),i,void 0,void 0))}pushImaAdEvent(t,e,i,n){this.events.push(this.setupEvent(l.Category.Ad,t.toString(),e,i,n))}pushInteractionEvent(t,e,i,n){this.events.push(this.setupEvent(l.Category.Interaction,t.toString(),e,i,n))}pushWidgetEvent(t,e,i,n){this.events.push(this.setupEvent(l.Category.Widget,t.toString(),e,i,n))}setupEvent(t,e,i,n,o){var r,d,h,p,f,g,v,y,m,b,S,E,C,w;const A=new l.AnalyticsEvent;if(A[t]=i,A.api_scheme_version="2",A.sdk_event_session_counter=this.eventSessionCounter++,A.sdk_event_id=(0,c.v4)(),A.timestamp_utc=(0,u.formatUTCDate)(new Date),A.timestamp_user_tz=(0,u.formatDate)(new Date),A.sdk_type="web",A.sdk_version=a.default.version,A.sdk_id="web",A.event_action=e,A.user.locale=null===navigator||void 0===navigator?void 0:navigator.language,A.tech.user_agent=null===navigator||void 0===navigator?void 0:navigator.userAgent,A.tech.localization_setting=s.ConfigService.preferredLanguage||"",A.session_id=s.UserService.sessionId,A.page.page_url=null===location||void 0===location?void 0:location.href,this.uaParsed){A.tech.browser=null===(r=this.uaParsed.browser)||void 0===r?void 0:r.name,A.tech.browser_version=null===(d=this.uaParsed.browser)||void 0===d?void 0:d.version,A.tech.os=null===(h=this.uaParsed.os)||void 0===h?void 0:h.name,A.tech.os_version=null===(p=this.uaParsed.os)||void 0===p?void 0:p.version,A.tech.device_model=null===(f=this.uaParsed.device)||void 0===f?void 0:f.model,A.tech.device_brand=null===(g=this.uaParsed.device)||void 0===g?void 0:g.vendor;const t={mobile:"Phone",tablet:"Tablet",undefined:"Desktop"}[null===(v=this.uaParsed.device)||void 0===v?void 0:v.type]||(null===(y=this.uaParsed.device)||void 0===y?void 0:y.type);A.tech.device_type=t}A.tech.screen_resolution=(null===(m=null===window||void 0===window?void 0:window.screen)||void 0===m?void 0:m.availWidth)+"x"+(null===(b=null===window||void 0===window?void 0:window.screen)||void 0===b?void 0:b.availHeight),A.tech.screen_color=null===(E=null===(S=null===window||void 0===window?void 0:window.screen)||void 0===S?void 0:S.colorDepth)||void 0===E?void 0:E.toString();const T=(null===window||void 0===window?void 0:window.innerWidth)||document.documentElement.clientWidth||document.body.clientWidth,I=(null===window||void 0===window?void 0:window.innerHeight)||document.documentElement.clientHeight||document.body.clientHeight;if(A.tech.browser_size=T+"x"+I,(null===(C=navigator.connection)||void 0===C?void 0:C.effectiveType)&&(A.tech.connection_type=null===(w=navigator.connection)||void 0===w?void 0:w.effectiveType),A.tech.might_be_a_bot=this.mightBeABot,o&&(A.referring=o),n&&(A.event_label=n,A.referring.labels_expression=n),A.event_category=t.toString(),t==l.Category.Widget&&A.widget){A.widget.page_view_id=s.UserService.sessionId,A.widget.page_size=A.tech.browser_size;const t=null===window||void 0===window?void 0:window.location.href.indexOf("#blaze"),e=-1!==t?null===window||void 0===window?void 0:window.location.href.slice(0,t):null===window||void 0===window?void 0:window.location.href;A.widget.page_type=/^(https?:\/\/[^/]+\/?)$/i.test(e)?"Homepage":"Category/Article"}return A}}.getInstance()},7951:(t,e,i)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.contentAccessibilityManager=e.ContentAccessibilityManager=void 0;const n=i(7958),o=i(6994),r=i(8832);class s{constructor(t=n.DEFAULT_CONTENT_ACCESSIBILITY_CONFIG){this.config=t,this.contentStrategies=new Map,this.registeredWidgets=new Map,this.lastUserActionTime=new Map,this.userActionThrottleMs=300,this.initializeStrategies()}initializeStrategies(){this.contentStrategies.set("story",new r.StoryAccessibilityStrategy(this.config.buttonLabels.story)),this.contentStrategies.set("moment",new r.MomentAccessibilityStrategy(this.config.buttonLabels.moment))}registerContentWidget(t,e,i){const n=this.contentStrategies.get(i);if(!n)return;const o=Object.assign(Object.assign({},e),{contentType:i});this.registeredWidgets.set(t,o),n.setupAccessibility(t,e)}updateButtonLabels(t,e){const i=this.registeredWidgets.get(t);if(!i||!i.contentType)return;const n=Object.assign(Object.assign({},i.data),e),o=this.contentStrategies.get(i.contentType);o&&o.updateLabels(t,n)}getContentTypeLabel(t){switch(t){case"story":return"Story";case"story-pages":return"Story page";case"moment":return"Moment";default:return"Content"}}unregisterContentWidget(t){const e=this.registeredWidgets.get(t);if(!e||!e.contentType)return;const i=this.contentStrategies.get(e.contentType);i&&i.cleanup(t),this.registeredWidgets.delete(t)}announceUserAction(t,e,i){if("user"!==i.trigger)return;const n=t+"-"+e,r=Date.now();if(r-(this.lastUserActionTime.get(n)||0)<this.userActionThrottleMs)return;this.lastUserActionTime.set(n,r);const s=this.getContentTypeLabel(t);o.accessibilityManager.announce({message:s+" "+e,priority:"assertive",category:"status"})}announceModalOpening(t,e){let i=this.getContentTypeLabel(t)+" player opened";e.title&&(i+=": "+e.title),e.pagePosition&&e.totalPages&&(i+=", page "+e.pagePosition+" of "+e.totalPages);const n=[];e.isPlaying&&n.push("playing"),e.isMuted&&n.push("muted"),e.hasClosedCaptions&&n.push("captions available"),n.length>0&&(i+=", "+n.join(" and ")),o.accessibilityManager.announce({message:i,priority:"assertive",category:"navigation"})}announceNavigation(t,e,i,n,r){if(!("number"==typeof t&&"number"==typeof e&&t>0&&e>0&&t<=e))return;const s=this.generateMeaningfulAnnouncement(t,e,i,n,r);o.accessibilityManager.clearAnnouncementQueue(),o.accessibilityManager.announce({message:s,priority:"assertive",category:"navigation"})}generateMeaningfulAnnouncement(t,e,i,n,o){return"story-page"===i||i.includes("page")?this.buildPageNavigationAnnouncement(t,e,n,o):"story-list"===i||i.includes("story")?this.buildStoryNavigationAnnouncement(t,e,n,o):"moment-list"===i||i.includes("moment")?this.buildMomentNavigationAnnouncement(t,e,n,o):this.buildGenericNavigationAnnouncement(t,e,i,n)}buildPageNavigationAnnouncement(t,e,i,n){const o=(null==n?void 0:n.navigationType)||"",r="Automatic"===o;if("Manual"===o){const o=t>((null==n?void 0:n.previousPosition)||0)?"Next page":"Previous page";return this.formatAnnouncementMessage(o,i,t,e,"page")}return r?this.formatAnnouncementMessage("Continuing story",i,t,e,"page"):this.formatAnnouncementMessage("Page",i,t,e,"page",!0)}buildStoryNavigationAnnouncement(t,e,i,n){const o=(null==n?void 0:n.navigationType)||"",r="Automatic"===o;if("Manual"===o){const o=t>((null==n?void 0:n.previousPosition)||0)?"Next story":"Previous story";return this.formatAnnouncementMessage(o,i,t,e,"story")}return r?this.formatAnnouncementMessage("New story",i,t,e,"story"):this.formatAnnouncementMessage("Story",i,t,e,"story",!0)}buildMomentNavigationAnnouncement(t,e,i,n){const o=(null==n?void 0:n.navigationType)||"",r="Automatic"===o;if("Manual"===o){const o=t>((null==n?void 0:n.previousPosition)||0)?"Next moment":"Previous moment";return this.formatAnnouncementMessage(o,i,t,e,"moment")}return r?this.formatAnnouncementMessage("New moment",i,t,e,"moment"):this.formatAnnouncementMessage("Moment",i,t,e,"moment",!0)}buildGenericNavigationAnnouncement(t,e,i,n){const o=this.getContentTypeLabel(i);return this.formatAnnouncementMessage(o,n,t,e,o.toLowerCase(),!0)}formatAnnouncementMessage(t,e,i,n,o,r=!1){const s=o+" "+i+" of "+n;return r?e?t+" "+i+" of "+n+": "+e:t+" "+i+" of "+n:e?t+": "+e+", "+s:t+": "+s}
1cleanup(){this.registeredWidgets.forEach((t,e)=>{if(t.contentType){const i=this.contentStrategies.get(t.contentType);i&&i.cleanup(e)}}),this.registeredWidgets.clear(),this.lastUserActionTime.clear()}}e.ContentAccessibilityManager=s,e.contentAccessibilityManager=new s},7958:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_CONTENT_ACCESSIBILITY_CONFIG=e.DEFAULT_ACCESSIBILITY_CONFIG=void 0,e.DEFAULT_ACCESSIBILITY_CONFIG={announcements:{delay:800,queueSize:10,enableAutoRetry:!0,retryDelay:500}},e.DEFAULT_CONTENT_ACCESSIBILITY_CONFIG={buttonLabels:{story:{play:"Play story",pause:"Pause story",mute:"Mute story",unmute:"Unmute story",share:"Share story",close:"Close story player",captions:"Toggle closed captions",cta:"Call to action",nextStoryPage:"Next page of stories",prevStoryPage:"Previous page of stories",nextStory:"Next story",prevStory:"Previous story"},moment:{play:"Play moment",pause:"Pause moment",mute:"Mute moment",unmute:"Unmute moment",like:"Like moment",unlike:"Unlike moment",share:"Share moment",close:"Close moment player",captions:"Toggle closed captions",cta:"Call to action",nextMoment:"Next moment",prevMoment:"Previous moment",follow:"Follow",unfollow:"Unfollow"}}}},8016:function(t,e){"use strict";var i=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.fetchPosterWithHighPriority=function(t){return i(this,arguments,void 0,function*(t,e=2e3){if(t)return new Promise(i=>{const n=new Image;let o=!1;const r=()=>{o||(o=!0,i())};n.onload=(()=>{r()}),n.onerror=(()=>{r()}),"fetchPriority"in n&&(n.fetchPriority="high"),n.src=t,setTimeout(()=>{r()},e)})})}},8046:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},8048:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetMoment=void 0;const o=i(9126),r=i(4403),s=i(5785),a=i(6450),l=i(9965),d=i(8921),u=i(1590),c=i(4545),h=i(4906),p=i(9266),f=i(9381),g=i(356),v=i(2904),y=i(1046),m="(rgba(0, 0, 0, 0.8), transparent)",b="(top, transparent, transparent, transparent, rgba(0, 0, 0, 1))",S="linear-gradient(180deg, transparent, #000 0%, #000 95%, transparent 100%)";e.BlazeWidgetMoment=class extends v.BlazeWidgetContent{constructor(t){super(),this.playerStyle=t,this.modal={},this.seekBar=d.WidgetsFactory.create("blaze-widget-moment-seek-bar"),this.data={},this.contentType="moment",this.momentIndex=0,this.loopNumber=0,this.isLiked=!1,this.actionHandlers=[],this.topContainer=d.WidgetsFactory.create("blaze-div"),this.bottomContainer=d.WidgetsFactory.create("blaze-div"),this.bottomContentContainer=d.WidgetsFactory.create("blaze-div"),this.buttonsContainer=d.WidgetsFactory.create("blaze-div"),this.bottomContainerCtaAndContent=d.WidgetsFactory.create("blaze-div"),this.bottomContainerCtaContentButtons=d.WidgetsFactory.create("blaze-div"),this.shadowBottomElement=d.WidgetsFactory.create("blaze-div"),this.shadowTopElement=d.WidgetsFactory.create("blaze-div"),this.topButtonsContainer=d.WidgetsFactory.create("blaze-div"),this.bottomButtonsContainer=d.WidgetsFactory.create("blaze-div"),this.likeWrapperElement=d.WidgetsFactory.create("blaze-div"),this.likeCountElement=d.WidgetsFactory.create("blaze-div"),this.closeButtonElement=d.WidgetsFactory.create("blaze-button"),this.muteButtonElement=d.WidgetsFactory.create("blaze-button"),this.likeButtonElement=d.WidgetsFactory.create("blaze-button"),this.shareButtonElement=d.WidgetsFactory.create("blaze-button"),this.playPauseButtonElement=d.WidgetsFactory.create("blaze-button"),this.closedCaptionButtonElement=d.WidgetsFactory.create("blaze-button"),this.customActionButtonOneElement=d.WidgetsFactory.create("blaze-button"),this.customActionButtonTwoElement=d.WidgetsFactory.create("blaze-button"),this.headBodyContainer=d.WidgetsFactory.create("blaze-div"),this.headElement=d.WidgetsFactory.create("blaze-div"),this.bodyElement=d.WidgetsFactory.create("blaze-div"),this.ctaButtonElement=new s.BlazeCtaButton,this.isInit=!1,this.isActive=!1,this.isMomentPausedByPlayPauseButton=!1,this.shouldShowImaAdOnStart=!1,this.elementsToHideOnImaAds=[],this.elementsToHideOnCustomAds=[]}setPlayerStyle(t){this.playerStyle=t}setActionHandlers(t){this.actionHandlers=t}connectedCallback(){this.isInit||(this.isInit=!0,this.style.outline="none",this.initializeElements(),this.initializeStyles(),this.setAttribute("tabindex","0"),this.setAttribute("aria-hidden","false"),this.append(this.container),this.boundOnBlurEvent=this.onBlur.bind(this),this.boundOnFocusEvent=this.onFocus.bind(this),this.boundOnVisibilityChangeEvent=this.onVisibilityChange.bind(this),this.boundOnCtaCl
1icked=this.onCtaClick.bind(this),this.boundOnLanguageChangeEvent=this.onLanguageChange.bind(this),this.ctaButtonElement.addEventListener("click",t=>this.boundOnCtaClicked(t)),super.connectedCallback(),this.render())}disconnectedCallback(){this.listeners.removeAll(),this.ctaButtonElement.removeEventListener("click",this.boundOnCtaClicked),this.data.id&&r.contentAccessibilityManager.unregisterContentWidget(this.data.id),super.disconnectedCallback()}setTheme(t){this.playerStyle=t,this.render()}initializeStyles(){this.playerStyle&&(this.styleMainContainer(),this.styleShadowElements(),this.styleButtonsContainer(),this.styleTopContainer(),this.styleBottomContainer(),this.styleBottomContentContainer(),this.styleHeadBodyContainer())}styleMainContainer(){(0,g.mergeStyles)(this,{display:"grid",width:"auto",height:"100%",aspectRatio:a.ASPECT_RATIO_9_16.toString(),margin:"auto",maxHeight:"100%",background:h.Colors.Black}),(0,g.mergeStyles)(this.container,{position:"relative",width:"100%",height:"100%"})}styleBottomContentContainer(){this.bottomContentContainer.setStyle({display:"flex",justifyContent:"space-between",height:"100%",alignItems:"flex-end",gap:"16px"})}styleShadowElements(){this.styleShadowTopElement(),this.styleShadowBottomElement()}styleShadowTopElement(){this.shadowTopElement.setStyle({background:"linear-gradient"+m,position:"absolute",width:"100%",height:"100px",top:"0px",borderRadius:"mobile"===r.deviceDetector.platform?"0px":"20px",right:"0",left:"0"}),this.shadowTopElement.style.background="linear-gradient"+m,this.shadowTopElement.style.background="-webkit-linear-gradient"+m}styleShadowBottomElement(){this.shadowBottomElement.setStyle({background:"linear-gradient"+b,position:"absolute",width:"100%",height:"75%",bottom:"0px",borderRadius:"mobile"===r.deviceDetector.platform?"0px":"20px",right:"0",left:"0"}),this.shadowBottomElement.style.background="linear-gradient"+b,this.shadowBottomElement.style.background="-webkit-linear-gradient"+b}styleButtonsContainer(){this.topButtonsContainer.setStyle({display:"inline-flex",gap:"10px",position:"relative",flexDirection:"column",zIndex:"4",visibility:"visible",margin:"5px 5px 0px 0px",float:"right"});const t="desktop"===r.deviceDetector.platform;this.bottomButtonsContainer.setStyle({display:"flex",gap:t?"32px":"16px",position:t?"absolute":"unset",bottom:t?"0px":"unset",right:t?"-80px":"unset",flexDirection:"column",alignItems:"center",width:"fit-content"})}styleTopContainer(){this.topContainer.setStyle({position:"absolute",top:"40px",width:"100%",paddingLeft:"16px",paddingRight:"16px",display:"flex",justifyContent:"space-between",boxSizing:"border-box",columnGap:"10px"})}styleBottomContainer(){this.bottomContainer.setStyle({position:"absolute",bottom:"0px",left:"0px",width:"100%",display:"flex",flexDirection:"column-reverse",gap:"8px",boxSizing:"border-box",zIndex:"4"})}styleHeadBodyContainer(){this.headBodyContainer.setStyle({display:"flex",flexDirection:"column",gap:"0.5rem",width:"100%"})}styleContent(t,e,i){if(!this.playerStyle)return;let n,o;if("HEADING_CONTENT"===i?n=h.Presets.DefaultMomentStyle.headingText:"BODY_CONTENT"===i&&(n=h.Presets.DefaultMomentStyle.bodyText),!n||!e)throw new Error("Default Text style and custom style not found");switch(r.deviceDetector.platform){case"desktop":o=e.textSizeDesktop||n.textSizeDesktop;break;case"tablet":o=e.textSizeTablet||n.textSizeTablet;break;default:o=e.textSizeMobile||n.textSizeMobile}t.setStyle({display:e.isVisible?"-webkit-box":"none",fontSize:r.TextScaleService.scaleFontSize(o),fontFamily:e.font,fontWeight:e.fontWeight,color:e.textColor||n.textColor,textTransform:e.textTransform,lineHeight:r.TextScaleService.scaleLineHeight(e.lineHeight),overflow:"hidden",textOverflow:"ellipsis",WebkitBoxOrient:"vertical",WebkitLineClamp:"2",lineClamp:"2",boxOrient:"vertical",width:"desktop"===r.deviceDetector.platform?"75%":"100%"})}applyLikeStyle(){var t,e,i,n,o,s,a,l,d,u,c,p,f,g,v,y,m,b,S,E,C,w;if(!this.playerStyle)return;let A,T,I,M,_;switch(this.likeWrapperElement.setStyle({fontFamily:this.playerStyle.likeText.font,display:"flex",flexDirection:"column",alignItems:"center",gap:"6px"}),"desktop"===r.deviceDetector.platform&&this.likeButtonElement.classList.add("desktop-button"),r.deviceDetector.platform){case"de
1sktop":A=null===(t=this.playerStyle)||void 0===t?void 0:t.buttons.like_unlike.desktop.padding,T=null===(e=this.playerStyle)||void 0===e?void 0:e.buttons.like_unlike.desktop.borderRadius,I=null===(i=this.playerStyle)||void 0===i?void 0:i.buttons.like_unlike.desktop.backgroundColor,M=null===(n=this.playerStyle)||void 0===n?void 0:n.likeText.font,_=null===(o=this.playerStyle)||void 0===o?void 0:o.likeText.textSizeDesktop;break;case"tablet":A=null===(s=this.playerStyle)||void 0===s?void 0:s.buttons.like_unlike.tablet.padding,T=null===(a=this.playerStyle)||void 0===a?void 0:a.buttons.like_unlike.tablet.borderRadius,I=null===(l=this.playerStyle)||void 0===l?void 0:l.buttons.like_unlike.tablet.backgroundColor,M=null===(d=this.playerStyle)||void 0===d?void 0:d.likeText.font,_=null===(u=this.playerStyle)||void 0===u?void 0:u.likeText.textSizeTablet;break;case"mobile":A=null===(c=this.playerStyle)||void 0===c?void 0:c.buttons.like_unlike.mobile.padding,T=null===(p=this.playerStyle)||void 0===p?void 0:p.buttons.like_unlike.mobile.borderRadius,I=null===(f=this.playerStyle)||void 0===f?void 0:f.buttons.like_unlike.mobile.backgroundColor,M=null===(g=this.playerStyle)||void 0===g?void 0:g.likeText.font,_=null===(v=this.playerStyle)||void 0===v?void 0:v.likeText.textSizeMobile;break;default:A=null===(y=this.playerStyle)||void 0===y?void 0:y.buttons.like_unlike.mobile.padding,T=null===(m=this.playerStyle)||void 0===m?void 0:m.buttons.like_unlike.mobile.borderRadius,I=null===(b=this.playerStyle)||void 0===b?void 0:b.buttons.like_unlike.mobile.backgroundColor,M=null===(S=this.playerStyle)||void 0===S?void 0:S.likeText.font,_=null===(E=this.playerStyle)||void 0===E?void 0:E.likeText.textSizeMobile}this.likeButtonElement.setStyle({padding:null!=A?A:"10px",borderRadius:null!=T?T:"50%",backgroundColor:null!=I?I:"#18181899"});const x=null===(C=this.playerStyle)||void 0===C?void 0:C.likeText.textColor,P=null===(w=this.playerStyle)||void 0===w?void 0:w.likeText.fontWeight;this.likeCountElement.setStyle({fontSize:r.TextScaleService.scaleFontSize(null!=_?_:"14px"),color:null!=x?x:h.Colors.White,fontWeight:null!=P?P:"normal",fontFamily:null!=M?M:h.Presets.playerFont}),this.likeButtonElement.setIconUrl(this.isLiked?this.playerStyle.icons.like:this.playerStyle.icons.unlike)}applyShareStyle(){var t,e,i,n,o,s,a,l,d,u,c,h;if(!this.playerStyle)return;let p,f,g,v;switch(r.deviceDetector.platform){case"desktop":p=null===(t=this.playerStyle)||void 0===t?void 0:t.buttons.share.desktop.padding,f=null===(e=this.playerStyle)||void 0===e?void 0:e.buttons.share.desktop.borderRadius,g=null===(i=this.playerStyle)||void 0===i?void 0:i.buttons.share.desktop.backgroundColor,v=null===(n=this.playerStyle)||void 0===n?void 0:n.buttons.share.desktop.color;break;case"tablet":p=null===(o=this.playerStyle)||void 0===o?void 0:o.buttons.share.tablet.padding,f=null===(s=this.playerStyle)||void 0===s?void 0:s.buttons.share.tablet.borderRadius,g=null===(a=this.playerStyle)||void 0===a?void 0:a.buttons.share.tablet.backgroundColor,v=null===(l=this.playerStyle)||void 0===l?void 0:l.buttons.share.tablet.color;break;case"mobile":p=null===(d=this.playerStyle)||void 0===d?void 0:d.buttons.share.mobile.padding,f=null===(u=this.playerStyle)||void 0===u?void 0:u.buttons.share.mobile.borderRadius,g=null===(c=this.playerStyle)||void 0===c?void 0:c.buttons.share.mobile.backgroundColor,v=null===(h=this.playerStyle)||void 0===h?void 0:h.buttons.share.mobile.color}this.shareButtonElement.setStyle({padding:null!=p?p:"10px",borderRadius:null!=f?f:"50%",backgroundColor:null!=g?g:"#18181899"}),v&&this.shareButtonElement.setAttribute("icon-color",v),"desktop"===r.deviceDetector.platform&&this.shareButtonElement.classList.add("desktop-button"),this.shareButtonElement.setIconUrl(this.playerStyle.icons.share)}applyCtaButtonStyles(){var t;if(!(null===(t=this.playerStyle)||void 0===t?void 0:t.ctaButton))throw new Error("CTA button style not found");const{ctaButton:e,contentBoxHorizontalSpacing:i}=this.playerStyle;if(!1===e.isVisible)return this.ctaButtonElement.setAttribute("hidden-btn","true"),void this.bottomContainer.setStyle({justifyContent:"center"});this.setAnchorButtonStyles(e),this.setIconAttributes(e),this.setLayoutPositioning(e),this.setCtaButtonAlignment(e),this.setLayoutSpacing(e,i)}setAnchorButtonStyles(t){this.ctaButtonElement.setAnchorButtonStyles({fontFamily:t.font,fontWeight:t.fontWeight,borderRadius:t.borderRadius,fontSize:r.TextScaleService.scaleFontSize(t.textSize)})}setIconAttributes(t){t.icon.isVisible?(this.ctaButtonElement.setCtaIconStyles({padding:"5px"}),this.ctaButtonElement.setAttribute("icon-color",t.icon.color),this.ctaButtonElement.setAttribute("icon-url",t.icon.url),this.ctaButtonElement.setAttribute("icon-size",t.icon.size),this.ctaButtonElement.setCtaIconStyles({padding:"5px"}),this.ctaButtonElement.setAttribute("display-icon","true")):this.ctaButtonElement.setAttribute("display-icon","false")}setLayoutPositioning(t){var e,i,n;"CTA_NEXT_TO_BOTTOM_BUTTONS_BOX"===t.layoutPositioning?(this.bottomContainerCtaAndContent.setStyle({display:"flex",flexDirection:"column",height:"100%",gap:"16px",alignSelf:"end",flex:"1"}),this.bottomContainerCtaContentButtons.setStyle({display:"flex",gap:"16px",justifyContent:"space-between",margin:"0px "+(null===(e=this.playerStyle)||void 0===e?void 0:e.contentBoxHorizontalSpacing)}),this.ctaButtonElement.style.padding="0px "+(null===(i=this.playerStyle)||void 0===i?void 0:i.contentBoxHorizontalSpacing)):"CTA_BELLOW_BOTTOM_BUTTONS_BOX"===t.layoutPositioning&&(this.bottomContentContainer.style.margin="0px "+(null===(n=this.playerStyle)||void 0===n?void 0:n.contentBoxHorizontalSpacing))}setCtaButtonAlignment(t){this.ctaButtonElement.setStyle({height:t.height,alignSelf:{START:"flex-start",CENT
1ER:"center",FULL_AVAILABLE_WIDTH:"center",END:"flex-end"}[t.horizontalAlignment]}),this.ctaButtonElement.setCtaTextStyle({width:"100%"})}setLayoutSpacing(t,e){const i="FULL_AVAILABLE_WIDTH"===t.horizontalAlignment,n="mobile"===r.deviceDetector.platform?"50%":"33.4%";if("CTA_NEXT_TO_BOTTOM_BUTTONS_BOX"===t.layoutPositioning)this.ctaButtonElement.style.width=i?"100%":n,this.ctaButtonElement.style.padding="0";else if("CTA_BELLOW_BOTTOM_BUTTONS_BOX"===t.layoutPositioning){const t=i?"calc(100% - "+2*(0,g.convertCssUnitToNumber)(e)+"px)":n;this.ctaButtonElement.style.width=t,this.ctaButtonElement.style.margin="0px "+e}}initializeElements(){this.configureButtons(),this.configureContentBody(),this.configureShareModal(),this.appendButtonsContainer(),this.appendBottomContainer(),this.appendShadowElements(),this.handleMobileSpecificFeatures()}appendShadowElements(){this.container.append(this.shadowTopElement),this.container.append(this.shadowBottomElement),this.elementsToHideOnImaAds.push(this.shadowTopElement,this.shadowBottomElement),this.elementsToHideOnCustomAds.push(this.shadowTopElement,this.shadowBottomElement)}createButtonElement(t,e){const{testId:i,iconUrl:n,width:o,height:r,color:s,padding:a,borderRadius:l,backgroundColor:d,onClick:u}=t;e.setIconUrl(n),e.setAttribute("height",o),e.setAttribute("width",r),e.setAttribute("data-testid",i),s&&e.setAttribute("icon-color",s);const c={padding:a,borderRadius:l,backgroundColor:d,flexShrink:"0",flexGrow:"0"};Object.entries(c).forEach(([t,i])=>{i&&e.setStyle({[t]:i})}),u&&e.addEventListener("click",u)}configureShareModal(){this.shareModal=d.WidgetsFactory.create("blaze-widget-share-modal"),this.shareModal.onClose=(()=>{this.playPauseButtonElement.setStyle({display:"flex"}),this.resume()}),this.shareModal.onOpen=(()=>this.playPauseButtonElement.setStyle({display:"none"})),this.container.append(this.shareModal)}configureClosedCaptionsModal(){this.closedCaptionsModal=new o.BlazeWidgetClosedCaptionsModal(this.data.closedCaptions,"moment"),this.closedCaptionsModal.onClose=(()=>{this.isPausedManually||(c.VideoPlayerService.isPlaying=!0,this.playPauseButtonElement.setIconUrl(""),this.resume())}),this.closedCaptionsModal.onOpen=(()=>{c.VideoPlayerService.isPlaying&&(c.VideoPlayerService.isPlaying=!1,this.playPauseButtonElement.setIconUrl(u.playResumeIconSvg),this.pause())}),this.closedCaptionsModal.onClosedCaptionsEnable=(t=>{this.toggleClosedCaptions(t)}),this.closedCaptionsModal.onClosedCaptionsDisable=(()=>{this.toggleClosedCaptions()}),this.container.append(this.closedCaptionsModal)}configureButtons(){return n(this,void 0,void 0,function*(){var t,e,i,n,o;if(!(null===(t=this.playerStyle)||void 0===t?void 0:t.buttons))return;const s=this.playerStyle.buttons,d=this.playerStyle.icons,u=null===(e=this.actionHandlers)||void 0===e?void 0:e.filter(t=>t.actionId===l.ActionHandlerId.AddCustomActionButton).slice(0,2);let h,f,g,v,y,m,b;switch(r.deviceDetector.platform){case"mobile":default:h=s.mute_unmute.mobile,f=s.exit.mobile,g=s.share.mobile,v=s.like_unlike.mobile,y=s.closed_captions.mobile,m=s.custom_action_button_one.mobile,b=s.custom_action_button_two.mobile;break;case"tablet":h=s.mute_unmute.tablet,f=s.exit.tablet,g=s.share.tablet,v=s.like_unlike.tablet,y=s.closed_captions.tablet,m=s.custom_action_button_one.tablet,b=s.custom_action_button_two.tablet;break;case"desktop":h=s.mute_unmute.desktop,f=s.exit.desktop,g=s.share.desktop,v=s.like_unlike.desktop,y=s.closed_captions.desktop,m=s.custom_action_button_one.desktop,b=s.custom_action_button_two.desktop}const S=!!(u[0]&&d.customActionButtonOne&&m.isVisible),E=!!(u[1]&&d.customActionButtonTwo&&b.isVisible);if(S&&this.createButtonElement({testId:"custom-action-button-one",iconUrl:d.customActionButtonOne,onClick:t=>this.handleOnCustomActionButtonClick(t,u[0].options),width:m.width,height:m.height,color:m.color,padding:m.padding,borderRadius:m.borderRadius,backgroundColor:m.backgroundColor},this.customActionButtonOneElement),E&&this.createButtonElement({testId:"custom-action-button-two",iconUrl:d.customActionButtonTwo,onClick:t=>
1this.handleOnCustomActionButtonClick(t,u[1].options),width:b.width,height:b.height,color:b.color,padding:b.padding,borderRadius:b.borderRadius,backgroundColor:b.backgroundColor},this.customActionButtonTwoElement),f&&f.isVisible&&(this.createButtonElement({testId:"exit-button",iconUrl:d.exit,onClick:this.handleOnClose.bind(this),width:f.width,height:f.height,color:f.color,padding:f.padding,borderRadius:f.borderRadius,backgroundColor:f.backgroundColor},this.closeButtonElement),this.elementsToHideOnCustomAds.push(this.closeButtonElement)),h&&h.isVisible){const t=c.VideoPlayerService.isMuted?this.playerStyle.icons.mute:this.playerStyle.icons.unmute;this.createButtonElement({testId:"mute-unmute-button",iconUrl:t,onClick:this.handleOnMuteUnmuteToggle.bind(this),width:h.width,height:h.height,color:h.color,padding:h.padding,borderRadius:h.borderRadius,backgroundColor:h.backgroundColor},this.muteButtonElement),"desktop"===r.deviceDetector.platform&&this.muteButtonElement.classList.add("mute-unmute-button"),this.elementsToHideOnImaAds.push(this.topButtonsContainer)}if(this.playerStyle.topIconsButtonOrder.forEach((t,e)=>{switch(t){case"MUTE_UNMUTE":h.isVisible&&(this.muteButtonElement.style.order=e.toString(),this.topButtonsContainer.append(this.muteButtonElement));break;case"EXIT_PLAYER":(null==f?void 0:f.isVisible)&&(this.closeButtonElement.style.order=e.toString(),this.topButtonsContainer.append(this.closeButtonElement));break;case"CUSTOM_ACTION_BUTTON_ONE":S&&(this.customActionButtonOneElement.style.order=e.toString(),this.topButtonsContainer.append(this.customActionButtonOneElement));break;case"CUSTOM_ACTION_BUTTON_TWO":E&&(this.customActionButtonTwoElement.style.order=e.toString(),this.topButtonsContainer.append(this.customActionButtonTwoElement))}}),v&&v.isVisible){this.isLiked=yield c.LikeService.isMomentLiked(this.data.id);const t=this.isLiked?this.playerStyle.icons.like:this.playerStyle.icons.unlike;this.createButtonElement({testId:"like-unlike-button",iconUrl:t,onClick:this.handleOnLikeClick.bind(this),width:v.width,height:v.height,color:v.color,padding:v.padding,borderRadius:v.borderRadius,backgroundColor:v.backgroundColor},this.likeButtonElement),p.AccessibilityUtils.setElementAccessibilityHidden(this.likeCountElement),this.likeWrapperElement.append(this.likeButtonElement,this.likeCountElement)}if(g&&g.isVisible&&this.createButtonElement({testId:"share-button",iconUrl:this.playerStyle.icons.share,onClick:this.handleOnShareClick.bind(this),width:g.width,height:g.height,color:g.color,padding:g.padding,borderRadius:g.borderRadius,backgroundColor:g.backgroundColor},this.shareButtonElement),y&&y.isVisible&&c.ConfigService.shouldAllowClosedCaptions){const t=null===(i=this.data.closedCaptions)||void 0===i?void 0:i.find(t=>""+t.language===localStorage.getItem(a.LOCAL_STORAGE_KEY_LAST_SELECTED));this.createButtonElement({testId:"closed-captions-button",iconUrl:t?this.playerStyle.icons.closedCaptionsOn:this.playerStyle.icons.closedCaptionsOff,onClick:this.handleOnClosedCaptionClick.bind(this),width:y.width,height:y.height,color:y.color,padding:y.padding,borderRadius:y.borderRadius,backgroundColor:y.backgroundColor},this.closedCaptionButtonElement),(null===(n=this.data.closedCaptions)||void 0===n?void 0:n.length)?this.closedCaptionButtonElement.setAttribute("disabled","false"):this.closedCaptionButtonElement.setAttribute("disabled","true"),this.configureClosedCaptionsModal(),"desktop"===r.deviceDetector.platform&&this.closedCaptionButtonElement.classList.add("desktop-button")}else null===(o=this.video)||void 0===o||o.setAttribute("is-captions-visible","false");this.playerStyle.bottomIconsButtonOrder.forEach((t,e)=>{switch(t){case"LIKE_UNLIKE":v.isVisible&&(this.likeWrapperElement.style.order=e.toString(),this.bottomButtonsContainer.append(this.likeWrapperElement));break;case"SHARE":g.isVisible&&(this.shareButtonElement.style.order=e.toString(),this.bottomButtonsContainer.append(this.shareButtonElement));break;case"CLOSED_CAPTIONS":y.isVisible&&(this.closedCaptionButtonElement.style.order=e.toString(),this.bottomButtonsContainer.append(this.closedCaptionButtonElement));break;case"CUSTOM_ACTION_BUTTON_ONE":S&&(this.customActionButtonOneElement.style.order=e.toString(),this.bottomButtonsContainer.append(this.customActionButtonOneElement));break;case"CUSTOM_ACTION_BUTTON_TWO":E&&(this.customActionButtonTwoElement.style.order=e.toString(),this.bottomButtonsContainer.append(this.customActionButtonTwoElement))}}),this.playerStyle.followButton.isVisible&&this.configureFollowButton()})}appendButtonsContainer(){this.container.append(this.topButtonsContainer)}handleMobileSpecificFeatures(){this.createPlayPauseButton()}configureFollowButton(){var t,e;const i=null===(t=this.actionHandlers)||void 0===t?void 0:t.find(t=>t.actionId===l.ActionHandlerId.AddFollowButton);if(!i)return;const n=i.options,o=(0,f.getFollowEntityByPriority)(null===(e=this.playerStyle)||void 0===e?void 0:e.followButton.followEntityTypePriority,this.data.followEntities);o&&(this.followButtonElement=new s.BlazeFollowButton(this.playerStyle),this.followButtonElement.setSource(this.data.id,"moment"),this.followButtonElement.setEntity(o.entityId,o.entityType),this.followButtonElement.setAvatar(o.storageFile.url),this.followButtonElement.onToggle=((t,e)=>{n.onClick&&n.onClick(t,e),this.handleFollowAnalytics(e),this.updateAccessibilityLabels()}),this.bottomButtonsContainer.prepend(this.followButtonElement))}configureContentBody(){this.bodyElement.onclick=this.onContentClick.bind(this),this.bodyElement.onscroll=(()=>{const t=this.bodyElement.scrollTop,e=this.bodyElement.scrollHeight,i=this.bodyElement.clientHeight;0===t?this.bodyElement.setStyle({maskImage:S}):t+i>=e?this.bodyElement.setStyle({maskImage:"linear-gradient(0deg, transparent, #000 0%, #000 90%, transparent 100%)"}):this.bodyElement.setStyle({maskImage:"linear-gradient(transparent, rgb(0, 0, 0) 5%, rgb(0, 0, 0) 95%, transparent 100%), linear-gradient(0deg, transparent, rgb(0, 0, 0) 5%, rgb(0, 0, 0) 95%, transparent 100%)"})})}appendBottomContainer(){this.headBodyContainer.append(this.headElement),this.headBodyContainer.append(this.bodyElement),this.bottomContentContainer.append(this.headBodyContainer),this.updateLayoutPositioning(),this.elementsToHideOnImaAds.push(this.bottomContainer),this.elementsToHideOnCustomAds.push(this.bottomContainer)}updateLayoutPositioning(){var t;switch(this.bottomContainer.innerHTML="",null===(t=this.playerStyle)||void 0===t?void 0:t.ctaButton.layoutPositioning){case"CTA_BELLOW_BOTTOM_BUTTONS_BOX":default:this.bottomContentContainer.append(this.bottomButtonsContainer),this.bottomContainer.append(this.seekBar),this.bottomContainer.append(this.ctaButtonElement),this.bottomContainer.append(this.bottomContentContainer);break;case"CTA_NEXT_TO_BOTTOM_BUTTONS_BOX":this.bottomContainerCtaAndContent.append(this.bottomContentContainer),this.bottomContainerCtaAndContent.append(this.ctaButtonElement),this.bottomContainerCtaContentButtons.append(this.bottomContainerCtaAndContent),this.bottomContainerCtaContentButtons.append(this.bottomButtonsContainer),this.bottomContainer.append(this.seekBar),this.bottomContainer.append(this.bottomContainerCtaContentButtons)}this.container.append(this.bottomContainer)}createPlayPauseButton(){this.playPauseButtonElement.setAttribute("height","55px"),this.playPauseButtonElement.setAttribute("width","55px"),this.playPauseButtonElement.setIconUrl(""),this.playPauseButtonElement.setStyle({display:"flex",position:"absolute",zIndex:"3",margin:"auto",width:"100%",height:"85%",top:"0"}),this.boundPlayPauseButtonClick=this.handlePlayPauseButtonClick.bind(this),this.playPauseButtonElement.addEventListener("click",this.boundPlayPauseButtonClick),this.elementsToHideOnImaAds.push(this.playPauseButtonElement),this.container.append(this.playPauseButtonElement)}handlePlayPauseButtonClick(){var t;if("Ad"===this.data.type)return;const e=null===(t=this.video)||void 0===t?void 0:t.paused;this.playPauseButtonElement.setIconUrl(e?"":u.playResumeIconSvg),this.isMomentPausedByPlayPauseButton=!e,this.playToggle(
1)}setModal(t){this.modal=t}onLanguageChange(t){var e,i,n,o;const r=(null===(e=this.data.closedCaptions)||void 0===e?void 0:e.find(e=>""+e.language===t.detail.language))?null===(i=this.playerStyle)||void 0===i?void 0:i.icons.closedCaptionsOn:null===(n=this.playerStyle)||void 0===n?void 0:n.icons.closedCaptionsOff;null===(o=this.closedCaptionButtonElement)||void 0===o||o.setIconUrl(r||"")}onVisibilityChange(){this.isActive&&this.isConnected&&(document.hidden||this.onFocus(),document.hidden&&this.onBlur())}onBlur(){var t;this.isActive&&this.isConnected&&this.video&&(document.hidden||"desktop"!==r.deviceDetector.platform||"visible"!==document.visibilityState)&&((null===(t=document.activeElement)||void 0===t?void 0:t.closest("iframe"))||(this.playPauseButtonElement.setIconUrl(u.playResumeIconSvg),this.video.paused||(this.resumeAfterfocus=!0,this.pause(),c.VideoPlayerService.isPlaying=!1,this.updatePlayerButtonIcons(),this.event(a.MomentAction.MomentsPlaylistExit,{}),this.event(a.MomentAction.MomentExit,{}))))}onFocus(){var t;if(!this.isActive||!this.isConnected||!this.video)return;const e="Ad"===(null===(t=this.video.data)||void 0===t?void 0:t.type);if((this.video.paused||e)&&this.resumeAfterfocus){this.resumeAfterfocus=!1;const t="iOS"===r.deviceDetector.OS,i="Mobile Safari"===r.deviceDetector.browser,n="tablet"===r.deviceDetector.platform&&"Mac OS"===r.deviceDetector.OS,o=t&&("Safari"===r.deviceDetector.browser||"Chrome"===r.deviceDetector.browser);if(!e&&(t||i||o||n))return void this.playPauseButtonElement.setIconUrl(u.playResumeIconSvg);this.resume(),c.VideoPlayerService.isPlaying=!0,this.updatePlayerButtonIcons()}}onContentClick(){"2"===this.bodyElement.style.webkitLineClamp?this.expandBodyText("10"):this.collapseBodyText("2")}expandBodyText(t){const e=this.bodyElement.clientHeight;this.bodyElement.style.webkitLineClamp=t;const i=this.bodyElement.clientHeight;this.bodyElement.scrollHeight>this.bodyElement.clientHeight&&(this.bodyElement.style.overflow="auto",this.bodyElement.setStyle({maskImage:S})),e<i&&this.bottomContainer.setStyle({backgroundImage:"linear-gradient(0deg, rgb(0 0 0) 0%, rgb(0 0 0 / 0%) 100%)"})}collapseBodyText(t){this.bodyElement.style.webkitLineClamp=t,this.bodyElement.style.overflow="hidden",this.bodyElement.setStyle({backgroundImage:""}),this.bottomContainer.setStyle({backgroundImage:""})}onMuteUnmuteChange(){this.video&&(this.video.muted=c.VideoPlayerService.isMuted)}updatePlayerButtonIcons(){var t,e;this.video&&this.playerStyle&&(this.muteButtonElement.setIconUrl(c.VideoPlayerService.isMuted?null===(t=this.playerStyle)||void 0===t?void 0:t.icons.mute:null===(e=this.playerStyle)||void 0===e?void 0:e.icons.unmute),this.closeButtonElement.setIconUrl(this.playerStyle.icons.exit))}handleOnClosedCaptionClick(){var t;null===(t=this.closedCaptionsModal)||void 0===t||t.open()}toggleClosedCaptions(t){const e=(0,p.convertCcLanguageToState)(this.data.closedCaptions,t);this.event("Off"!==e?a.MomentAction.ClosedCaptionsOn:a.MomentAction.ClosedCaptionsOff,{})}handleOnShareClick(){return n(this,void 0,void 0,function*(){var t;if(!this.isActive)return;let e;this.event(a.MomentAction.ShareClick,{}),this.pause(),e=location.href.includes("blaze/moment")?null===window||void 0===window?void 0:window.location.href:location.href.includes("#")?location.href+"&blaze/moment/"+this.data.id:location.href+"#blaze/moment/"+this.data.id,(null===navigator||void 0===navigator?void 0:navigator.share)?navigator.share({text:this.data.title,url:e}).then(()=>{this.event(a.MomentAction.ShareSuccess,{})}).catch(t=>{var i;"AbortError"!==t.name&&(null===(i=this.shareModal)||void 0===i||i.open(e))}).finally(()=>{this.resume()}):null===(t=this.shareModal)||void 0===t||t.open(e)})}load(){return n(this,arguments,void 0,function*(t="direct"){var e;yield null===(e=this.video)||void 0===e?void 0:e.load(t)})}unload(){return n(this,void 0,void 0,function*(){var t;yield null===(t=this.video)||void 0===t?void 0:t.unload()})}playToggle(){if(!this.isActive||!this.video)return;const t=!this.video.paused;this.event(this.video.paused?a.MomentAction.PlaybackPlay:a.MomentAction.PlaybackPause,{playback_action_method:"Click"}),this.video.paused?(this.resume(),this.isPausedManually=!1):(this.pause(),this.isPausedManually=!0,r.contentAccessibilityManager.announceUserAction("moment",t?"playing":"paused",{trigger:"user",action:t?"playing":"paused"}))}handleOnMuteUnmuteToggle(){if(!this.isActive)return;const t=!c.VideoPlayerService.isMuted;c.VideoPlayerService.isMuted=t,this.event(a.MomentAction.Audio,{}),this.video&&(this.video.muted=c.VideoPlayerService.isMuted),document.dispatchEvent(new Event(o.MUTE_UNMUTE_EVENT)),r.contentAccessibilityManager.announceUserAction("moment",c.VideoPlayerService.isMuted?"muted":"unmuted",{trigger:"user",action:c.VideoPlayerService.isMuted?"muted":"unmuted"}),this.updateButtonAccessibilityLabels()}setData(t){var e,i,s,l;
1t&&(this.data=t,this.updateContent({title:t.title,description:(null==t?void 0:t.description)||"",subtitle:(null==t?void 0:t.subtitle)||""}),this.updateCta(this.data.cta),this.updateLikeCount(this.data.likes),this.momentIndex=t.momentIndexInPlaylist,this.originalVideoRef||(this.originalVideoRef=new y.BlazeWidgetVideo(this),this.originalVideoRef.setData(this.data),this.originalVideoRef.onended=this.restartVideo.bind(this)),"Ad"===this.data.type?(this.video=new o.BlazeWidgetAd(this),this.video.setData(Object.assign({id:this.data.id,type:"Ad",duration:0,hasViewed:!1,ignoreReadStatusForStory:!1,createTime:(new Date).toLocaleString()},"Web"===(null===(e=this.data.adInfo)||void 0===e?void 0:e.type)&&{adInfo:this.data.adInfo})),this.video.onended=this.restartVideo.bind(this)):"Video"===this.data.baseLayer.type&&(this.video=this.originalVideoRef),this.video&&this.container.prepend(this.video),this.video&&(this.seekBar.remove(),this.seekBar=new o.BlazeWidgetMomentSeekBar(this.video,(null===(i=this.playerStyle)||void 0===i?void 0:i.seekBar)||h.Presets.DefaultMomentStyle.seekBar),this.bottomContainer.prepend(this.seekBar)),this.seekBar.onResume=(0,r.debounce)(()=>n(this,void 0,void 0,function*(){this.isMomentPausedByPlayPauseButton&&this.event(a.MomentAction.PlaybackPlay,{}),this.resume()}),100),this.seekBar.onPause=(0,r.debounce)(()=>n(this,void 0,void 0,function*(){this.pause()}),100),this.adjustContentView(),(null===(l=null===(s=this.playerStyle)||void 0===s?void 0:s.followButton)||void 0===l?void 0:l.isVisible)&&(this.followButtonElement&&(this.followButtonElement.remove(),this.followButtonElement=void 0),this.configureFollowButton()),this.render(),this.updateContentAccessibilityAfterDataChange(),this.registerMomentAccessibility(),this.updateButtonAccessibilityLabels())}updateData(t){return n(this,void 0,void 0,function*(){var e,i,n,o,r,s,l,d,u,c,h;const{data:p,shouldShowImaAdOnStart:f,adInfo:g,contentExtraInfo:v,momentIndex:y}=t,m=null===(e=p.closedCaptions)||void 0===e?void 0:e.find(t=>""+t.language===localStorage.getItem(a.LOCAL_STORAGE_KEY_LAST_SELECTED));this.isLiked=!1,this.playerStyle&&this.likeButtonElement.setIconUrl(null===(i=this.playerStyle)||void 0===i?void 0:i.icons.unlike),null===(n=this.video)||void 0===n||n.remove(),this.setData(p),this.momentIndex=y,null===(o=this.video)||void 0===o||o.setAttribute("is-captions-visible",m?"true":"false"),null===(r=this.closedCaptionsModal)||void 0===r||r.reloadData(p.closedCaptions),this.closedCaptionButtonElement.setIconUrl((m?null===(s=this.playerStyle)||void 0===s?void 0:s.icons.closedCaptionsOn:null===(l=this.playerStyle)||void 0===l?void 0:l.icons.closedCaptionsOff)||""),this.closedCaptionButtonElement.setAttribute("disabled",(null===(d=this.data.closedCaptions)||void 0===d?void 0:d.length)?"false":"true"),this.data=p,this.shouldShowImaAdOnStart=f,this.adInfo=g,this.contentExtraInfo=v,null===(u=this.video)||void 0===u||u.setData(p),this.video&&this.seekBar.setVideo(this.video),this.pause(),(null===(h=null===(c=this.playerStyle)||void 0===c?void 0:c.followButton)||void 0===h?void 0:h.isVisible)&&(this.followButtonElement&&(this.followButtonElement.remove(),this.followButtonElement=void 0),this.configureFollowButton()),this.registerMomentAccessibility(),this.updateButtonAccessibilityLabels()})}updateContent(t){if(this.playerStyle){switch(this.playerStyle.headingText.contentSource){case"TITLE":this.headElement.innerHTML=t.title;break;case"SUBTITLE":this.headElement.innerHTML=t.subtitle}switch(this.playerStyle.bodyText.contentSource){case"TITLE":this.bodyElement.innerHTML=t.title;break;case"SUBTITLE":this.bodyElement.innerHTML=t.subtitle;break;case"DESCRIPTION":this.bodyElement.innerHTML=t.description}}}updateLikeCount(t){return n(this,void 0,void 0,function*(){var e,i,n,o;const{id:r,likes:s}=this.data;this.isLiked=yield c.LikeService.isMomentLiked(r);let a=null!=t?t:s;if(a=this.isLiked?a+1:a,this.likeCountElement){const t=this.isLiked?null===(e=this.playerStyle)||void 0===e?void 0:e.icons.like:null===(i=this.playerStyle)||void 0===i?void 0:i.icons.unlike,r=null===(o=null===(n=this.playerStyle)||void 0===n?void 0:n.likeText)||void 0===o?void 0:o.likeCountThreshold,s=0===a||r&&a<r?"hidden":"visible";t&&this.likeButtonElement.setIconUrl(t),this.likeCountElement.innerText=(0,g.formatLikes)(a),this.likeCountElement.style.opacity="hidden"===s?"0":"1"}})}updateCta(t){t&&t.url&&t.text&&t.backgroundColor&&t.textColor?(this.ctaButtonElement.setAttribute("href",t.url),this.ctaButtonElement.setAttribute("text",t.text),this.ctaButtonElement.setAnchorButtonStyles({color:t.textColor,background:t.backgroundColor}),this.ctaButtonElement.setAttribute("hidden-btn","false"),this.bottomContainer.setStyle({justifyContent:"flex-start"})):(this.ctaButtonElement.setAttribute("hidden-btn","true"),this.bottomContainer.setStyle({justifyContent:"center"}))}onCtaClick(t){var e,i,n,o,r,s,d;return this.event(a.MomentAction.CtaClick,{}),(null===(i=null===(e=this.refContentModal)||void 0===e?void 0:e.parentWidget)||void 0===i?void 0:i.id)&&c.EventService.dispatch(null===(n=this.refContentModal)||void 0===n?void 0:n.parentWidget,l.Delegation.onWidgetTriggerCTA,{widgetId:null===(r=null===(o=this.refContentModal)||void 0===o?void 0:o.parentWidget)||void 0===r?void 0:r.id,actionType:"URL",actionParam:this.ctaButtonElement.getAttribute("href")}),null===(s=this.shareModal)||void 0===s||s.close(),this.exitTrigger="CTA Click",this.event(a.MomentAction.MomentExit,{}),this.event(a.MomentAction.MomentsPlaylistExit,{}),(null===(d=this.video)||void 0===d?void 0:d.paused)||(this.resumeAfterfocus=!0,this.pause()),!0}play(){var t,e,i;this.isConnected&&(this.sessionId=(0,g.getRandomId)(),this.video&&(this.video.shouldShowImaAd=this.shouldShowImaAdOnStart,"Content"===(null===(t=this.video.data)||void 0===t?void 0:t.type)&&(this.event(a.MomentAction.MomentStart,{}),c.EventService.dispatch(this,l.Delegation.onMomentStart,{momentIndex:this.momentIndex,totalMomentsCount:this.modal.data.length}),this.video.data.adInfo=this.adInfo),this.event(a.MomentAction.PlaybackInitialStart,{}),this.adjustContentView(),this.updatePlayerButtonIcons(),this.video.muted=c.VideoPlayerService.isMuted,this.video.display(()=>{this.modal.handleClickNavigation("NEXT")}),this.video instanceof y.BlazeWidgetVideo&&(null===(i=(e=this.video).tryToAddLoader)||void 0===i||i.call(e)),this.video.play(),c.VideoPlayerService.isPlaying=!0,this.isActive=!0,this.seekBar.setAttribute("is-active","true"),this.seekBar.onContentResumed(!0),c.MomentService.updateMomentReadStatusById(this.data.id),this.data.hasViewed=!0,this.updateWidgetStatusReadUnread(),this.updateButtonAccessibilityLabels()))}handleOnCustomActionButtonClick(t,e){e.onClick(t,this.data.entities),this.event(a.MomentAction.CustomActionButtonClick,{custom_action_button_name:e.buttonName})}handleOnClose(){this.pause(),this.modal.close()}handleOnLikeClick(){var t,e;this.isLiked=!this.isLiked,this.event(this.isLiked?a.MomentAction.Like:a.MomentAction.Unlike,{}),c.LikeService.updateMomentLike(this.isLiked,this.data.id);const i=this.isLiked?null===(t=this.playerStyle)||void 0===t?void 0:t.icons.like:null===(e=this.playerStyle)||void 0===e?void 0:e.icons.unlike;i&&this.likeButtonElement.setIconUrl(i),this.updateLikeCount(),r.contentAccessibilityManager.announceUserAction("moment",this.isLiked?"liked":"unliked",{trigger:"user",action:this.isLiked?"liked":"unliked"}),this.updateButtonAccessibilityLabels()}handleFollowAnalytics(t){var e,i;const n=(0,f.generateFollowStateForAnalytics)(null===(e=this.followButtonElement)||void 0===e?void 0:e.entityId,null===(i=this.followButtonElement)||void 0===i?void 0:i.entityType,r.FollowingsManager),o=t.newFollowingState?a.MomentAction.Follow:a.MomentAction.Unfollow;this.event(o,{follow_state:n})}pause(){var t;null===(t=this.video)||void 0===t||t.pause(),c.VideoPlayerService.isPlaying=!1,this.updatePlayerButtonIcons(),this.isActive&&this.seekBar.onContentPaused(),this.updateButtonAccessibilityLabels()}resume(){var t;this.video&&("Content"!==this.data.type||(null===(t=this.video)||void 0===t?void 0:t.paused))&&(this.video.play(),c.VideoPlayerService.isPlaying=!0,this.updatePlayerButtonIcons(),this.removeResumeButtonFromScreen(),this.seekBar.onContentResumed(!1),this.updateButtonAccessibilityLabels())}removeResumeButtonFromScreen(){this.playPauseButtonElement.setIconUrl(""),this.isMomentPausedByPlayPauseButton=!1}resetPosition(){this.video&&this.video.currentTime>=.2&&(this.video.currentTime=0)}restartVideo(){this.video&&(this.resetPosition(),this.video.muted=c.VideoPlayerService.isMuted,c.VideoPlayerService.isPlaying&&this.video.play(),this.loopNumber++)}adjustContentView(){var t,e,i,n,r,s,a;return(null===(t=this.video)||void 0===t?void 0:t.shouldShowImaAd)?(this.elementsToHideOnImaAds.forEach(t=>{t&&(t.style.visibility="hidden")}),null===(e=this.modal.nextContentButtonElement)||void 0===e||e.setAttribute("disabled","true"),null===(i=this.modal.prevContentButtonElement)||void 0===i||i.setAttribute("disabled","true"),this.topButtonsContainer.style.marginTop="30px",this.topButtonsContainer.querySelectorAll("blaze-button").forEach(t=>{t.style.display=t===this.muteButtonElement?"flex":"none"}),void this.video.setAttribute("is-captions-visible","false")):"Ad"===(null===(r=null===(n=this.video)||void 0===n?void 0:n.data)||void 0===r?void 0:r.type)?(this.elementsToHideOnCustomAds.forEach(t=>{t&&(t.style.visibility="hidden")}),"no-ad"===c.VideoPlayerService.muteStateBeforeAd&&(c.VideoPlayerService.muteStateBeforeAd=c.VideoPlayerService.isMuted?"mute":"unmute"),"unmute"===c.VideoPlayerService.muteStateBeforeAd&&(c.VideoPlayerService.isMuted=!0,this.updatePlayerButtonIcons()),this.topButtonsContainer.style.marginTop="30px",this.topButtonsContainer.querySelectorAll("blaze-button").forEach(t=>{t.style.display=t===this.muteButtonElement?"flex":"none"}),void this.video.setAttribute("is-captions-visible","false")):([...this.elementsToHideOnCustomAds,...this.elementsToHideOnImaAds].forEac
1h(t=>{t&&(t.style.visibility="visible")}),null===(s=this.modal.nextContentButtonElement)||void 0===s||s.setAttribute("disabled","false"),null===(a=this.modal.prevContentButtonElement)||void 0===a||a.setAttribute("disabled","false"),"no-ad"!==c.VideoPlayerService.muteStateBeforeAd&&(c.VideoPlayerService.isMuted="mute"===c.VideoPlayerService.muteStateBeforeAd,c.VideoPlayerService.muteStateBeforeAd="no-ad",document.dispatchEvent(new Event(o.MUTE_UNMUTE_EVENT))),this.topButtonsContainer.style.marginTop="5px",void this.topButtonsContainer.querySelectorAll("blaze-button").forEach(t=>{t.style.display="flex"}))}event(t,e){return n(this,arguments,void 0,function*(t,e,i){var n,o,s,l;try{const d=this.getRefferingObject();if("Content"===this.data.type){switch(e.moment_id=this.data.id,e.moment_title=this.data.title,e.moment_index=this.momentIndex,e.audio_state=c.VideoPlayerService.isMuted?"Mute":"Unmute",e.cc_state=(0,p.convertCcLanguageToState)(this.data.closedCaptions,localStorage.getItem(a.LOCAL_STORAGE_KEY_LAST_SELECTED)),e.loop_number=this.loopNumber.toString(),e.moments_session_id=this.modal.playlistSessionId,e.follow_state=(0,f.generateFollowStateForAnalytics)(null===(n=this.followButtonElement)||void 0===n?void 0:n.entityId,null===(o=this.followButtonElement)||void 0===o?void 0:o.entityType,r.FollowingsManager),e.moment_duration=yield this.video.getVideoDuration(),"true"===(null===(s=c.AppConfigurationService.appConfigurations)||void 0===s?void 0:s.configurations.analyticsAddEntitiesInfo)&&(e.content_extra_info=JSON.stringify(this.data.extraInfo)),t){case a.MomentAction.MomentsPlaylistStart:e.moment_start_trigger=this.startTrigger;break;case a.MomentAction.MomentsPlaylistExit:e.moment_exit_trigger=this.exitTrigger;break;case a.MomentAction.MomentExit:e.moment_navigation_type=this.navigationType,e.moment_navigation_direction=this.navigationDirection,e.moment_duration_viewed_percent=Math.round(1e4*((null===(l=this.video)||void 0===l?void 0:l.progress)||0))/100}e.localization=this.data.retrievedLanguages||{},c.AnalyticsService.pushMomentEvent(t,e,i,d)}}catch(t){}})}registerMomentAccessibility(){var t,e,i,n;this.data.id&&r.contentAccessibilityManager.registerContentWidget(this.data.id,{widget:this,buttons:{play:this.playPauseButtonElement,mute:this.muteButtonElement,like:this.likeButtonElement,share:this.shareButtonElement,close:this.closeButtonElement,captions:this.closedCaptionButtonElement,cta:this.ctaButtonElement,custom1:this.customActionButtonOneElement,custom2:this.customActionButtonTwoElement,nextMoment:this.modal.nextContentButtonElement,prevMoment:this.modal.prevContentButtonElement,follow:this.followButtonElement},data:{id:this.data.id,title:this.data.title,isPlaying:!!this.video&&!this.video.paused,isMuted:null===(t=this.video)||void 0===t?void 0:t.muted,isLiked:this.isLiked,ctaText:null===(e=this.data.cta)||void 0===e?void 0:e.text,isFollowed:null!==(n=null===(i=this.followButtonElement)||void 0===i?void 0:i.isFollowed)&&void 0!==n&&n}},"moment")}updateAccessibilityLabels(){if(!this.data.id)return;const t=this.buildMomentAccessibilityState();r.contentAccessibilityManager.updateButtonLabels(this.data.id,t)}buildMomentAccessibilityState(){var t,e,i,n,o,r;return{id:this.data.id,title:this.data.title,description:this.data.description,ctaText:null===(t=this.data.cta)||void 0===t?void 0:t.text,isPlaying:!!this.video&&!this.video.paused,isMuted:null!==(i=null===(e=this.video)||void 0===e?void 0:e.muted)&&void 0!==i&&i,isLiked:this.isLiked,duration:null===(n=this.video)||void 0===n?void 0:n.duration,isFollowed:null!==(r=null===(o=this.followButtonElement)||void 0===o?void 0:o.isFollowed)&&void 0!==r&&r}}updateContentAccessibilityAfterDataChange(){var t;this.data.id&&r.contentAccessibilityManager.updateButtonLabels(this.data.id,{title:this.data.title,ctaText:null===(t=this.data.cta)||void 0===t?void 0:t.text})}updateButtonAccessibilityLabels(){var t;this.data.id&&r.contentAccessibilityManager.updateButtonLabels(this.data.id,{isPlaying:!!this.video&&!this.video.paused,isMuted:null===(t=this.video)||void 0===t?void 0:t.muted,isLiked:this.isLiked})}enableAllButtons(){const t=this.getAllFocusableButtons();this.setButtonsAccessibilityState(t,!0)}disableAllButtons(){const t=this.getAllFocusableButtons();this.setButtonsAccessibilityState(t,!1)}setButtonsAccessibilityState(t,e){e?(p.AccessibilityUtils.setElementsAccessible(t),this.enableAnchorElements()):(p.AccessibilityUtils.setElementsInaccessible(t),this.disableAnchorElements())}enableAnchorElements(){const t=this.querySelector("a");t&&t.setAttribute("tabindex","0")}disableAnchorElements(){const t=this.querySelector("a");t&&t.setAttribute("tabindex","-1")}getAllFocusableButtons(){return this.getMomentButtonsForAccessibility()}getMomentButtonsForAccessibility(){return[this.playPauseButtonElement,this.muteButtonElement,this.shareButtonElement,this.closeButtonElement,this.closedCaptionButtonElement,this.customActionButtonOneElement,this.customActionButtonTwoElement,this.likeButtonElement,this.ctaButtonElement,this.followButtonElement,this.bodyElement,this.headElement,this.bottomContainer].filter(
1Boolean)}render(){this.data&&this.video&&this.playerStyle&&(this.updatePlayerButtonIcons(),this.updateLayoutPositioning(),this.styleContent(this.headElement,this.playerStyle.headingText,"HEADING_CONTENT"),this.styleContent(this.bodyElement,this.playerStyle.bodyText,"BODY_CONTENT"),this.applyLikeStyle(),this.applyShareStyle(),this.applyCtaButtonStyles())}}},8073:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},8094:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigService=void 0;const o=i(1556),r=i(4545),s=i(373);e.ConfigService=class extends((0,o.Singleton)()){constructor(){super(),this._sendAnalytics=!0,this._disableAnalytics=!1,this._doNotTrack=!1,this._staticContent=!1,this._runInShadowDom=!0,this._shouldModifyUrlWithStoryId=!0,this._shouldModifyUrlWithContentId=!0,this._shouldDismissPlayer=!1,this._shouldAutoAdvance=!1,this._shouldCreateUser=!0,this._shouldAllowHorizontalStories=!1,this._preferredLanguage=void 0,this._appContext={},this._urls={prod_cf:s.CDN_VENDOR_TO_API_DOMAIN.cf,prod_fd:s.CDN_VENDOR_TO_API_DOMAIN.fd,prod:s.CDN_VENDOR_TO_API_DOMAIN.cf,uat:"https://blazesdk-uat-cdn.clipro.tv",local:"https://localhost.clipro.tv:5001"},this._sdkStorageCDNs={prod_cf:s.CDN_VENDOR_TO_STORAGE_DOMAIN.cf,prod_fd:s.CDN_VENDOR_TO_STORAGE_DOMAIN.fd,prod:s.CDN_VENDOR_TO_STORAGE_DOMAIN.cf,uat:s.CDN_VENDOR_TO_STORAGE_DOMAIN.cf,local:s.CDN_VENDOR_TO_STORAGE_DOMAIN.cf},this._analyticsUrls={prod:"https://blaze-audit.clipro.tv/api/eventaudit/v1",uat:"https://blaze-audit-uat.clipro.tv/api/eventaudit/v1",local:"https://blaze-audit-uat.clipro.tv/api/eventaudit/v1"},this._loggerUrls={prod:"https://blazelogger.clipro.tv/api/blazelogger/v1/logs",uat:"https://blazelogger-uat.clipro.tv/api/blazelogger/v1/logs",local:"https://blazelogger-uat.clipro.tv/api/blazelogger/v1/logs"}}init(t){return n(this,void 0,void 0,function*(){const{apiKey:e,environment:i,sendAnalytics:n,disableAnalytics:o,previewMomentUrl:r,previewUrl:s,doNotTrack:a,externalUserId:l,geoLocation:d,staticContent:u,staticContentType:c,runInShadowDom:h,shouldModifyUrlWithStoryId:p,shouldModifyUrlWithContentId:f,shouldDismissPlayer:g,shouldCreateUser:v,prefetchingPolicy:y,shouldAllowHorizontalStories:m,shouldAutoAdvance:b,autoAdvanceUrl:S,layoutDirection:E,shouldAllowClosedCaptions:C,disableAutoLoadingContent:w,preferredLanguage:A}=t;this.environment=i||"prod",this.prefetchingPolicy=y||"default",this._apiKey=e,this._previewUrl=s,this._previewMomentUrl=r,this._externalUserId=l||"",this._geoLocation=d||"",this._prefetchingPolicy=y,this._autoAdvanceUrl=S||"",this._layoutDirection=E,this._shouldAllowClosedCaptions=C,this._disableAutoLoadingContent=w,A&&(this._preferredLanguage=A),!0===u&&(this._staticContent=!0),c&&(this._staticContentType=c),!0===a&&(this._doNotTrack=!0),!0===m&&(this._shouldAllowHorizontalStories=!0),!1===n&&(this._sendAnalytics=!1),!0===o&&(this._disableAnalytics=!0),!1===h&&(this._runInShadowDom=!1),!1===p&&(this._shouldModifyUrlWithStoryId=!1),!1===f&&(this._shouldModifyUrlWithContentId=!1),!0===g&&(this._shouldDismissPlayer=!0),!0===b&&(this._shouldAutoAdvance=!0),!1===v&&(this._shouldCreateUser=!1)})}getEnvUrl(t,e){var i;return null!==(i=t[e+"_"+r.CDNDetermineService.cdnVendor])&&void 0!==i?i:t[e]}getServiceUrl(t){return this.getEnvUrl(this._urls,t)}getAnalyticsUrl(t){return this.getEnvUrl(this._analyticsUrls,t)}throwOrLog(t){if("undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname||window.location.hostname.includes("blob.core.windows.net")))throw new Error(t)}get environment(){if(!this._environment)throw new Error("Environment not set");return this._environment}set environment(t){this._environment=t;const e=this.getServiceUrl(t),i=s.BASE_API_PATH;this._apiUrl=e+"/"+i,this._analyticsApiUrl=this.getAnalyticsUrl(t),this._sdkStorageCDN=this.getEnvUrl(this._sdkStorageCDNs,t)}get sendAnalytics(){return this._sendAnalytics}get disableAnalytics(){return this._disableAnalytics}set disableAnalytics(t){this._disableAnalytics=t}get shouldCreateUser(){return this._shouldCreateUser}get analyticsApiUrl(){return this._analyticsUrls[this.environment]}get loggerApiUrl(){return this._loggerUrls[this.environment]}get externalUserId(){return this._externalUserId?this._externalUserId:null}set externalUserId(t){this._externalUserId=t}get doNotTrack(){return this._doNotTrack}set doNotTrack(t){this._doNotTrack=t}get shouldAllowHorizontalStories(){return this._shouldAllowHorizontalStories}set shouldAllowHorizontalStories(t){this._shouldAllowHorizontalStories=t}get geoLocation(){return this._geoLocation}set geoLocation(t){this._geoLocation=t}get staticContent(){return this._staticContent}set staticContent(t){this._staticContent=t}get staticContentType(){return this._staticContentType}set staticContentType(t){this._staticContentType=t}get apiUrl(){if(!this._apiUrl)throw new Error("API url not set");return this._apiUrl}get sdkStorageCDN(){var t;return this._sdkStorageCDN||this.throwOrLog("SDK Storage CDN not set"),null!==(t=this._sdkStorageCDN)&&void 0!==t?t:this._sdkStorageCDNs.prod_cf}get apiKey(){if(!this._apiKey)throw new Error("API key not set");return this._apiKey}get previewUrl(){if(!this._previewUrl)throw new Error("Preview url not set");return this._previewUrl}get previewMomentsUrl(){if(!this._previewMomentUrl)throw new Error("Preview moments url not set");return this._previewMomentUrl}get runInShadowDom(){return this._runInShadowDom}get playerStyleCustomization(){return this._playerStyleCustomization}set playerStyleCustomization(t){this._playerStyleCustomization=t}get shouldModifyUrlWithStoryId(){return this._shouldModifyUrlWithStoryId}get shouldModifyUrlWithContentId(){return this._shouldModifyUrlWithContentId}get shouldDismissPlayer(){return this._shouldDismissPlayer}get shouldAutoAdvance(){return this._shouldAutoAdvance}get autoAdvanceUrl(){return this._autoAdvanceUrl}get googleCustomNativeAdHandler(){return this._googleCustomNativeAdHandler}set googleCustomNativeAdHandler(t){this._googleCustomNativeAdHandler=t}get imaAdHandler(){return this._imaAdHandler}set imaAdHandler(t){this._imaAdHandler=t}get prefetchingPolicy(){if(!this._prefetchingPolicy)throw new Error("Prefetching policy not set");return this._prefetchingPolicy}set prefetchingPolicy(t){this._prefetchingPolicy=t}get excludeContentId(){return this._excludeContentId}set excludeContentId(t){this._excludeContentId=t}get layoutDirection(){return this._layoutDirection}set layoutDirection(t){this._layoutDirection=t}get shouldAllowClosedCaptions(){return this._shouldAllowClosedCaptions}get appContext(){return this._appContext}set appContext(t){this._appContext=t}get disableAutoLoadingContent(){return this._disableAutoLoadingContent}set disableAutoLoadingContent(t){this._disableAutoLoadingContent=t}get onItemClick(){return this._onItemClick}set onItemClick(t){this._onItemClick=t}get beforeContentPlayCallback(){return this._beforeContentPlayCallback}set beforeContentPlayCallback(t){this._beforeContentPlayCallback=t}get preferredLanguage(){return this._preferredLanguage}set preferredLanguage(t){this._preferredLanguage=t}}.getInstance()},8103:(t,e,i)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeFollowButton=void 0;const n=i(4403),o=i(8921),r=i(9266),s=i(4906),a=i(5573),l=i(277),d={text:{chip:{followed:{width:"24px",height:"24px"},unfollowed:{width:"54px",height:"24px"}}},icon:{chip:{followed:{width:"28px",height:"28px"},unfollowed:{width:"28px",height:"28px"}}}};e.BlazeFollowButton=class extends n.BaseWidget{constructor(t){super(),this.playerStyle=t,this._isFollowing=!1,this.handleClick=(t=>{const e=!this._isFollowing;r.SharedEventTarget.dispatchEvent(new CustomEvent(a.FOLLOW_BUTTON_STATE_CHANGE,{detail:{isFollowing:e,entityId:this._entityId,entityType:this._entityType}})),e?n.FollowingsManager.follow(this._entityId):n.FollowingsManager.unfollow(this._entityId),this.onToggle&&this.onToggle(t,{sourceId:this._sourceId,sourceContentType:this._sourceContentType,newFollowingState:e,followEntity:{entityId:this._entityId,entityType:this._entityType}})}),this.handleStateChange=(t=>{const e=t.detail;e.entityId===this._entityId&&e.entityType===this._entityType&&(this._isFollowing=e.isFollowing,this.applyStateToUi(),this.updateAriaLabel())}),this.onMouseEnter=(()=>{this.containerEl.style.transform="scale(1.1)"}),this.onMouseLeave=(()=>{this.containerEl.style.transform="scale(1)"}),this.handlePressKeyboard=(t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.handleClick(t))}),this.setAttribute("data-testid","follow-button"),this.containerEl=o.WidgetsFactory.create("blaze-div"),this.avatarEl=o.WidgetsFactory.create("blaze-div"),this.chipEl=o.WidgetsFactory.create("blaze-div"),this.chipContentWrapperEl=o.WidgetsFactory.create("blaze-div"),this.checkMarkIconEl=o.WidgetsFactory.create("blaze-div"),this.plusIconEl=o.WidgetsFactory.create("blaze-div"),this.textEl=o.WidgetsFactory.create("blaze-div"),(0,r.mergeStyles)(this,{display:"inline-flex",cursor:"pointer",userSelect:"none",outline:"none",WebkitTapHighlightColor:"transparent",flexShrink:"0",flexGrow:"0",paddingBottom:"12px"}),this.setupContainer(),this.setupAvatar(),this.setupChip()}connectedCallback(){this._entityId&&this._entityType&&this._avatarUrl&&(this._isFollowing=n.FollowingsManager.isFollowing(this._entityId),this.contains(this.containerEl)||(this.containerEl.append(this.avatarEl,this.chipEl),this.append(this.containerEl)),this.addEventListener("click",this.handleClick),this.addEventListener("mouseenter",this.onMouseEnter),this.addEventListener("mouseleave",this.onMouseLeave),this.addEventListener("keydown",this.handlePressKeyboard),r.SharedEventTarget.addEventListener(a.FOLLOW_BUTTON_STATE_CHANGE,this.handleStateChange),this.setAttribute("role","button"),this.setAttribute("tabindex","0"),this.applyStateToUi(),this.updateAvatarBackground(),this.updateAriaLabel())}disconnectedCallback(){this.removeEventListener("click",this.handleClick),this.removeEventListener("mouseenter",this.onMouseEnter),this.removeEventListener("mouseleave",this.onMouseLeave),this.removeEventListener("keydown",this.handlePressKeyboard),r.SharedEventTarget.removeEventListener(a.FOLLOW_BUTTON_STATE_CHANGE,this.handleStateChange)}setEntity(t,e){this._entityId=t,this._entityType=e}setAvatar(t){this._avatarUrl=t,this.updateAvatarBackground()}setSource(t,e){this._sourceId=t,this._sourceContentType=e}get entityId(){return this._entityId}get entityType(){return this._entityType}get isFollowed(){return this._isFollowing}updateAriaLabel(){const t=this._isFollowing?"Unfollow":"Follow";this.setAriaLabel(t)}setupContainer(){(0,r.mergeStyles)(this.containerEl,{display:"inline-flex",flexDirection:"column",alignItems:"center",position:"relative",transition:"transform 0.2s ease-in-out"})}setupAvatar(){var t,e;const i=null===(e=null===(t=this.playerStyle)||void 0===t?void 0:t.followButton)||void 0===e?void 0:e.avatar;(0,r.mergeStyles)(this.avatarEl,{width:"50px",height:"50px",borderRadius:"50%",backgroundSize:"cover",backgroundPosition:"center",flexShrink:"0",boxSizing:"border-box",border:((null==i?void 0:i.borderWidth)||"3px")+" solid "+((this._isFollowing?null==i?void 0:i.followedBorderColor:null==i?void 0:i.unfollowedBorderColor)||s.Colors.White),transition:"border-color 0.3s ease-in-out"})}setupChip(){var t,e,i,o;const a=null===(e=null===(t=this.playerStyle)||void 0===t?void 0:t.followButton)||void 0===e?void 0:e.chip,l=(this._isFollowing?null==a?void 0:a.followedBackgroun
1dColor:null==a?void 0:a.unfollowedBackgroundColor)||s.Colors.White;(0,r.mergeStyles)(this.chipEl,Object.assign({display:"flex",justifyContent:"center",alignItems:"center",fontWeight:"bold",position:"absolute",bottom:"-12px",whiteSpace:"nowrap",borderRadius:"14px",fontFamily:s.Presets.playerFont,fontSize:n.TextScaleService.scaleFontSize("12px"),background:l,color:(null==a?void 0:a.color)||s.Colors.Black,transition:"width 0.3s ease-in-out, background-color 0.2s ease-in-out",overflow:"hidden"},d[(null===(o=null===(i=this.playerStyle)||void 0===i?void 0:i.followButton)||void 0===o?void 0:o.variant)||"text"].chip[this._isFollowing?"followed":"unfollowed"])),(0,r.mergeStyles)(this.chipContentWrapperEl,{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"}),this.setupIcons(),this.chipEl.appendChild(this.chipContentWrapperEl)}setupIcons(){var t,e;const i=null===(e=null===(t=this.playerStyle)||void 0===t?void 0:t.followButton)||void 0===e?void 0:e.chip,o=(null==i?void 0:i.color)||s.Colors.Black,a={maskRepeat:"no-repeat",webkitMaskRepeat:"no-repeat",maskPosition:"center",webkitMaskPosition:"center",maskSize:"contain",webkitMaskSize:"contain"};(0,r.mergeStyles)(this.checkMarkIconEl,Object.assign(Object.assign({width:"20px",height:"20px",backgroundColor:o,maskImage:'url("'+l.checkMarkSvg+'")',webkitMaskImage:'url("'+l.checkMarkSvg+'")'},a),{display:"none"})),(0,r.mergeStyles)(this.plusIconEl,Object.assign(Object.assign({width:"12px",height:"12px",backgroundColor:o,maskImage:'url("'+l.plusSvg+'")',webkitMaskImage:'url("'+l.plusSvg+'")'},a),{display:"none"})),(0,r.mergeStyles)(this.textEl,{fontFamily:s.Presets.playerFont,fontSize:n.TextScaleService.scaleFontSize("12px"),fontWeight:"bold",color:o,display:"none"}),this.textEl.textContent="Follow",this.chipContentWrapperEl.appendChild(this.checkMarkIconEl),this.chipContentWrapperEl.appendChild(this.plusIconEl),this.chipContentWrapperEl.appendChild(this.textEl)}updateIconVisibility(){var t,e;this.checkMarkIconEl.style.display="none",this.plusIconEl.style.display="none",this.textEl.style.display="none",this._isFollowing?this.checkMarkIconEl.style.display="block":"text"===(null===(e=null===(t=this.playerStyle)||void 0===t?void 0:t.followButton)||void 0===e?void 0:e.variant)?this.textEl.style.display="block":this.plusIconEl.style.display="block"}updateIconColors(){var t,e;const i=null===(e=null===(t=this.playerStyle)||void 0===t?void 0:t.followButton)||void 0===e?void 0:e.chip,n=(null==i?void 0:i.color)||s.Colors.Black;this.checkMarkIconEl.style.backgroundColor=n,this.plusIconEl.style.backgroundColor=n,this.textEl.style.color=n}applyStateToUi(){var t,e,i,n,o,a;const l=null===(e=null===(t=this.playerStyle)||void 0===t?void 0:t.followButton)||void 0===e?void 0:e.chip,u=null===(n=null===(i=this.playerStyle)||void 0===i?void 0:i.followButton)||void 0===n?void 0:n.avatar,c=d[(null===(a=null===(o=this.playerStyle)||void 0===o?void 0:o.followButton)||void 0===a?void 0:a.variant)||"text"].chip;(0,r.mergeStyles)(this.chipEl,Object.assign({background:(this._isFollowing?null==l?void 0:l.followedBackgroundColor:null==l?void 0:l.unfollowedBackgroundColor)||s.Colors.White},c[this._isFollowing?"followed":"unfollowed"])),(0,r.mergeStyles)(this.avatarEl,{border:((null==u?void 0:u.borderWidth)||"3px")+" solid "+((this._isFollowing?null==u?void 0:u.followedBorderColor:null==u?void 0:u.unfollowedBorderColor)||s.Colors.White)}),this.updateIconColors(),this.chipContentWrapperEl.animate([{opacity:1,transform:"scale(1)"},{opacity:0,transform:"scale(0.8)"}],{duration:150,easing:"ease-in-out",fill:"forwards"}).addEventListener("finish",()=>{this.updateIconVisibility(),this.chipContentWrapperEl.animate([{opacity:0,transform:"scale(0.8)"},{opacity:1,transform:"scale(1)"}],{duration:150,easing:"ease-in-out",fill:"forwards"}),this.updateAriaLabel()})}setAriaLabel(t){t?this.setAttribute("aria-label",t):this.removeAttribute("aria-label")}updateAvatarBackground(){this._avatarUrl?this.avatarEl.style.backgroundImage="url('"+this._avatarUrl+"')":this.avatarEl.style.backgroundImage="none"}}},8105:(t,e)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0})},8154:(t,e)=>{"use strict";function i(t,e,i="button"){const n=e||"Untitled";switch(t){case"story":return"Story "+i+": "+n;case"moment":return"Moment "+i+": "+n;case"video":return"Video "+i+": "+n;default:return t+" "+i+": "+n}}function n(t){switch(t){case"story":return". Click to view story";case"moment":return". Click to play moment";case"video":return". Click to watch video";default:return". Click to open "+t}}function o(t,e){const i=[];return"isLive"in t&&t.isLive&&i.push("live"),(null==t?void 0:t.hasViewed)?i.push("viewed"):i.push("new"),(null==e?void 0:e.isVisible)&&e.text&&i.push(e.text.toLowerCase()),i.join(", ")}Object.defineProperty(e,"__esModule",{value:!0}),e.buildContentTypeLabel=i,e.getContentTypeAction=n,e.buildStatusInfo=o,e.buildContentAriaLabel=function(t){const{contentType:e,title:r,content:s,position:a,total:l,badgeStyle:d,elementType:u="button"}=t;let c=i(e,r,u);const h=o(s,d);return h&&(c+=", "+h),c+=n(e),l&&l>1&&a&&(c+=". "+a+" of "+l),c},e.buildCarouselLabel=function(t,e,i=!0){const n=t+" carousel with "+e+" "+(1!==e?t+"s":t);let o=n;return i&&e>1&&(o+=". Use arrow keys to navigate between "+t+"s, Enter or Space to select"),{label:o,announcement:n+"."}},e.generateThumbnailAltText=function(t,e,i){let n="Thumbnail for "+t+": "+(e||"Untitled");return"isLive"in i&&i.isLive&&(n+=" (live)"),n}},8156:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.isInitialized=e.pushConsentEvent=e.Delegations=void 0,e.setDoNotTrack=v,e.setGeoLocation=y,e.setPreferredLanguage=m,e.setExternalUserId=b,e.setOnItemClick=S,e.Initialize=C,e.WidgetRowView=T,e.WidgetGridView=I,e.WidgetEmbeddedStory=M,e.WidgetEmbeddedVideo=_,e.WidgetCustomView=x,e.Theme=P,e.addDelegateListener=O,e.LabelBuilder=L,e.DataSourceBuilder=D,e.pauseCurrentPlayer=N,e.resumeCurrentPlayer=B,e.setGoogleCustomNativeAdsHandler=R,e.setImaHandler=$,e.playStory=z,e.playStories=j,e.playContent=F,e.setAbTestParams=V,e.getAppContextManager=W,e.setBeforeContentPlayCallback=Y,e.appendContentToPlayer=Q,e.setDisableAnalytics=Z;const o=i(9965),r=i(8243),s=i(4545),a=i(4906),l=i(9266),d=i(2500),u=i(9126),c=i(4403),h=i(8921),p=i(6925),f=i(5495);h.WidgetsFactory.define("blaze-sdk",u.BlazeWidgetSDK);const g={environment:"prod",sendAnalytics:!0,disableAnalytics:!1,doNotTrack:!1,externalUserId:"",geoLocation:"",runInShadowDom:!0,shouldModifyUrlWithStoryId:!0,shouldModifyUrlWithContentId:!0,shouldDismissPlayer:!1,shouldCreateUser:!0,prefetchingPolicy:"default",shouldAllowHorizontalStories:!1,layoutDirection:"LTR",shouldAllowClosedCaptions:!1};function v(t){s.ConfigService.doNotTrack=t}function y(t){s.ConfigService.geoLocation=(0,l.isValidCountryCode)(t)?t:""}function m(t){const e=document.getElementsByTagName("blaze-sdk")[0];e&&e.setAttribute("preferred-language",t||"")}function b(t){return n(this,void 0,void 0,function*(){s.ConfigService.externalUserId=t,yield s.UserService.refreshUserToken()})}function S(t){s.ConfigService.onItemClick=t}let E=!1;function C(t,e={}){if(E)return Promise.resolve();E=!0;const i=(0,l.mergeDeep)({},g,e,{apiKey:t});return new Promise(e=>{document.getElementsByTagName("blaze-sdk")[0]?e():h.WidgetsFactory.whenDefined("blaze-sdk").then(()=>{const{environment:n,sendAnalytics:o,disableAnalytics:r,previewMomentUrl:s,previewUrl:a,doNotTrack:d,externalUserId:u,geoLocation:c,preferredLanguage:h,runInShadowDom:p,shouldModifyUrlWithStoryId:g,
1shouldModifyUrlWithContentId:v,shouldDismissPlayer:y,playerStyleCustomization:m,shouldCreateUser:b,prefetchingPolicy:S,shouldAllowHorizontalStories:E,shouldAutoAdvance:C,layoutDirection:w,shouldAllowClosedCaptions:A,disableAutoLoadingContent:T,staticContentType:I,followedEntities:M,autoAdvanceUrl:_}=i,x=document.createElement("blaze-sdk");x.setAttribute("api-key",t),M&&f.FollowingsManager.initialize(M),_&&x.setAttribute("auto-advance-url",_),I&&x.setAttribute("static-content-type",I),"boolean"==typeof b&&x.setAttribute("should-create-user",b.toString()),"boolean"==typeof A&&x.setAttribute("should-allow-closed-captions",A.toString()),"boolean"==typeof T&&x.setAttribute("disable-auto-loading-content",T.toString()),w&&x.setAttribute("layout-direction",w),n&&x.setAttribute("environment",n),"boolean"==typeof o&&x.setAttribute("send-analytics",o.toString()),"boolean"==typeof r&&x.setAttribute("disable-analytics",r.toString()),"boolean"==typeof p&&x.setAttribute("run-in-shadow-dom",p.toString()),"boolean"==typeof g&&x.setAttribute("modifiy-url-with-story-id",g.toString()),"boolean"==typeof v&&x.setAttribute("modifiy-url-with-content-id",v.toString()),a&&x.setAttribute("preview-url",a),s&&x.setAttribute("preview-moment-url",s),d&&x.setAttribute("do-not-track",d.toString()),E&&x.setAttribute("should-allow-horizontal-stories",E.toString()),u&&x.setAttribute("external-user-id",u),c&&x.setAttribute("geo-location",(0,l.isValidCountryCode)(c)?c:""),h&&x.setAttribute("preferred-language",h),m&&x.setPlayerStyleCustomization(m),y&&x.setAttribute("should-dismiss-player",y.toString()),C&&x.setAttribute("should-auto-advance",C.toString()),S&&x.setAttribute("prefetching-policy",S);const P=document.querySelector("body");P?(P.appendChild(x),e()):document.addEventListener("DOMContentLoaded",()=>{const t=document.querySelector("body");null==t||t.appendChild(x),e()})})})}function w(t,e,i,n){const{orderType:o,storyIds:r,contentIds:s,maxItemsCount:a,maxDisplayItemsCount:d,labels:u,theme:h,delegates:p,labelsPriority:f,perItemStyleOverrides:g,shouldOrderWidgetByReadStatus:v,contentType:y="story",dataSource:m,actionHandlers:b}=i;try{const i=u&&("string"==typeof u?u.trim():u),S=r&&r.length>0||s&&s.length>0;if(!m&&!i&&!S)throw new Error("valid labels, IDs, or dataSource were not found in widget options");m&&c.BlazeDataSourceValidations.validate(m,y);const E=document.createElement(t);"function"==typeof E.setId?E.setId(e):E.id="widget-layout-"+e;const C=(0,l.validateContainer)(e,t);return H(E,{delegates:p,contentType:y,theme:h,actionHandlers:b},n),g&&E.updateOverrideStyles(g),G(E,{dataSource:m,labels:u,storyIds:r,contentIds:s,maxItemsCount:a,maxDisplayItemsCount:d,orderType:o,labelsPriority:f,shouldOrderWidgetByReadStatus:v}),C.appendChild(E),E}catch(t){return document.createElement("div")}}function A(t,e){switch(t){case"video":return"row"===e?a.ThemeFactory.create("row-rectangle-horizontal","video"):a.ThemeFactory.create("grid-2-columns-horizontal","video");case"moment":return"row"===e?a.ThemeFactory.create("row-circle","moment"):a.ThemeFactory.create("grid-2-columns","moment");default:return"row"===e?a.ThemeFactory.create("row-circle","story"):a.ThemeFactory.create("grid-2-columns","story")}}function T(t,e){return w("blaze-widget-layout",t,e,A(e.contentType||"story","row"))}function I(t,e){return w("blaze-widget-layout",t,e,A(e.contentType||"story","grid"))}function M(t,e){return w("blaze-widget-embedded-story",t,e,a.ThemeFactory.create("grid-2-columns"))}function _(t,e){return w("blaze-widget-embedded-video",t,e,a.ThemeFactory.create("grid-2-columns","video"))}function x(t,e){const{customRenderer:i,dataSource:n,maxItemsCount:r,maxDisplayItemsCount:s,orderType:a,labelsPriority:d,shouldOrderWidgetByReadStatus:h,contentIds:p,contentType:f="story",theme:g,delegates:v,actionHandlers:y}=e;try{c.BlazeDataSourceValidations.validate(n,f);const e=(0,l.validateContainer)(t,"blaze-widget-custom-layout"),m=new u.BlazeWidgetCustomLayout(i);return"function"==typeof m.setId?m.setId(t):m.id="widget-custom-layout-"+t,H(m,{delegates:v,contentType:f,theme:g,actionHandlers:y}),G(m,{dataSource:n,maxItemsCount:r,maxDisplayItemsCount:s,orderType:a,labelsPriority:d,shouldOrderWidgetByReadStatus:h,contentIds:p}),e.appendChild(m),m.addEventListener(o.Delegation.onWidgetPlayerDismissed,()=>{m.updateWidgetsData()}),m}catch(t){return document.createElement("div")}}function P(t,e="story"){if("video"===e)return a.ThemeFactory.create(t,"video");if("moment"===e)return a.ThemeFactory.create(t,"moment");
1if("story"!==e&&e)throw new Error("Invalid content type");return a.ThemeFactory.create(t,"story")}function O(t,e,i){document.addEventListener(t,e,i)}function L(){return{singleLabel:t=>c.BlazeWidgetLabel.singleLabel(t),mustInclude:(...t)=>c.BlazeWidgetLabel.mustInclude(...t),atLeastOneOf:(...t)=>c.BlazeWidgetLabel.atLeastOneOf(...t)}}function D(){return{labels:t=>c.BlazeDataSourceFactory.createLabelsDataSource(t),ids:t=>c.BlazeDataSourceFactory.createIdsDataSource(t),recommendations:t=>c.BlazeDataSourceFactory.createRecommendationsDataSource(t),text:t=>c.BlazeDataSourceFactory.createTextDataSource(t)}}function k(t){const e=document.getElementsByTagName("blaze-sdk")[0];e&&s.VideoPlayerService.isPlaying===t&&e instanceof u.BlazeWidgetSDK&&e.modal.playToggleCurrentStory()}function N(){k(!0)}function B(){k(!1)}function R(t){s.ConfigService.googleCustomNativeAdHandler=t}function $(t){s.ConfigService.imaAdHandler=t}function z(t,e,i){return n(this,void 0,void 0,function*(){yield F("story",{dataSource:D().ids({ids:[t]}),style:e,actionHandlers:i})})}function j(t,e,i){return n(this,void 0,void 0,function*(){yield F("story",{dataSource:t,style:e,actionHandlers:i})})}function F(t,e){return n(this,void 0,void 0,function*(){var i,n;try{c.BlazeDataSourceValidations.validate(e.dataSource,t),s.ConfigService.staticContentType&&(s.VideoPlayerService.playReference="SingleContent"),yield p.PlayerViewTemplate.display(t,e.dataSource,{actionHandlers:e.actionHandlers,style:null!==(i=null==e?void 0:e.style)&&void 0!==i?i:U(t),orderByReadStatus:null===(n=null==e?void 0:e.shouldOrderContentByReadStatus)||void 0===n||n})}catch(t){}})}function U(t){switch(t){case"video":return a.Presets.DefaultVideoStyle;case"moment":return a.Presets.DefaultMomentStyle;case"story":return a.Presets.DefaultStoryStyle}}function V(t){s.UserService._abTest=t}function W(){return s.ConfigService.appContext}function H(t,e,i){const{delegates:n,contentType:o,theme:s,actionHandlers:l}=e;n&&t.setDelegations&&t.setDelegations(n),o&&t.setAttribute("content-type",o),s?"string"==typeof s&&o?"video"===o?t.setTheme(a.ThemeFactory.create(s,"video")):"moment"===o?t.setTheme(a.ThemeFactory.create(s,"moment")):"story"===o&&t.setTheme(a.ThemeFactory.create(s,"story")):(0,r.isWidgetTheme)(s)&&t.setTheme(s):i&&t.setTheme(i),l&&t.setActionHandlers&&t.setActionHandlers(l)}function G(t,e){var i;const{dataSource:n,labels:o,storyIds:r,contentIds:s,maxItemsCount:a,maxDisplayItemsCount:l,orderType:d,labelsPriority:u,shouldOrderWidgetByReadStatus:c}=e;a&&t.setMaxItemsSize?t.setMaxItemsSize(a):(null==n?void 0:n.maxItems)&&t.setMaxItemsSize&&t.setMaxItemsSize(n.maxItems),l&&t.setMaxItemsDisplaySize&&t.setMaxItemsDisplaySize(l),d&&t.setAttribute?t.setAttribute("order-type",d):(null==n?void 0:n.orderType)&&t.setAttribute&&t.setAttribute("order-type",n.orderType),(null==n?void 0:n.advancedOrdering)&&t.setAttribute&&t.setAttribute("advanced-ordering",n.advancedOrdering),(null==n?void 0:n.personalized)&&t.setPersonalized&&t.setPersonalized(n.personalized),u&&t.setLabelsPriority?t.setLabelsPriority(u):(null==n?void 0:n.labelsPriority)&&t.setLabelsPriority&&t.setLabelsPriority(n.labelsPriority),o&&t.setLabels?t.setLabels(o):"labels"===(null==n?void 0:n.sourceType)&&(null==n?void 0:n.labels)&&t.setLabels&&t.setLabels(n.labels),"text"!==(null==n?void 0:n.sourceType)&&"labels"!==(null==n?void 0:n.sourceType)||!(null==n?void 0:n.text)||t.setAttribute("text",n.text),"recommendations"===(null==n?void 0:n.sourceType)&&(null==n?void 0:n.recommendations)&&t.setAttribute&&t.setAttribute("recommendations",JSON.stringify(n.recommendations)),(null==r?void 0:r.length)&&t.setAttribute?t.setAttribute("story-ids",r.join()):(null==s?void 0:s.length)&&t.setAttribute?t.setAttribute("content-ids",s.join()):"ids"===(null==n?void 0:n.sourceType)&&(null===(i=null==n?void 0:n.ids)||void 0===i?void 0:i.length)&&t.setAttribute&&t.setAttribute("content-ids",n.ids.join());const h=Boolean(null==c||c).toString();t.setAttribute("should-order-widget-by-read-status",h)}function Y(t){s.ConfigService.beforeContentPlayCallback=t}function Q(t,e,i){return n(this,void 0,void 0,function*(){const{shouldOrderContentByReadStatus:n=!0}=null!=i?i:{};try{if("moment"!==t)throw new Error("Currently only 'moment' content type is supported for appendContentToPlayer");c.BlazeDataSourceValidations.validate(e,t);const i=(0,d.findOpenMomentModal)();if(!i)throw new Error("No moment player is currently open");const o=yield s.MomentService.fetchContent(e);
1if(!o.result||0===o.result.length)throw new Error("No content found from data source");let r=o.result;n||(r=yield s.MomentService.enrichContent(o.result)),i.appendContent(r,o.defaultAdsInfo)}catch(t){}})}function Z(t){s.ConfigService.disableAnalytics=t}e.Delegations=o.Delegation,e.pushConsentEvent=s.AnalyticsService.pushConsentEvent,e.isInitialized=(()=>u.BlazeWidgetSDK.isSdkConnected()),e.default={Initialize:C,WidgetGridView:I,WidgetRowView:T,WidgetEmbeddedStory:M,WidgetEmbeddedVideo:_,WidgetCustomView:x,Theme:P,addDelegateListener:O,setDoNotTrack:v,setDisableAnalytics:Z,setGeoLocation:y,setPreferredLanguage:m,setOnItemClick:S,LabelBuilder:L,DataSourceBuilder:D,Delegations:o.Delegation,setGoogleCustomNativeAdsHandler:R,setImaHandler:$,pauseCurrentPlayer:N,resumeCurrentPlayer:B,setExternalUserId:b,playStory:z,playStories:j,playContent:F,setAbTestParams:V,getAppContextManager:W,pushConsentEvent:e.pushConsentEvent,isInitialized:e.isInitialized,setBeforeContentPlayCallback:Y,appendContentToPlayer:Q}},8187:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},8198:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},8214:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isStory=function(t){return"story"===t.type||void 0===t.type},e.isVideo=function(t){return"video"===t.type},e.isMoment=function(t){return"moment"===t.type}},8243:function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(1072),e),o(i(3835),e),o(i(3634),e),o(i(8214),e)},8252:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseHLSStrategy=e.HLS_CONFIGS=void 0;const o=i(1908),r=i(4545),s=i(8261),a=i(1006),l=i(7195),d={fragLoadingMaxRetry:3,fragLoadingRetryDelay:100},u={abrEwmaFastLive:2,abrEwmaSlowLive:3,abrEwmaFastVoD:2,abrEwmaSlowVoD:3,abrBandWidthFactor:.95,abrBandWidthUpFactor:.9};e.HLS_CONFIGS={LONG_FORM:Object.assign(Object.assign({maxBufferLength:15,maxMaxBufferLength:20,maxBufferSize:1e7,maxBufferHole:4,autoStartLoad:!0},d),u),SHORT_FORM:Object.assign(Object.assign({maxBufferLength:5,maxMaxBufferLength:8,maxBufferSize:1e6,maxBufferHole:.5,autoStartLoad:!1},d),u)},e.BaseHLSStrategy=class extends a.BasePlaybackStrategy{constructor(t,e){super(),this.hls=window.Hls,this.retryCount=0,this.maxRetries=3,this.lastTime=0,this.boundOnBufferAppended=this.handleBufferAppended.bind(this),this.boundOnFragParsed=this.handleFragParsed.bind(this),this.boundOnLoadedMetadata=this.handleLoadedMetadata.bind(this),this.boundOnPlaying=this.handlePlaying.bind(this),this.boundOnCanPlay=this.hideLoader.bind(this),this.boundOnError=this.handleError.bind(this),this.boundOnLevelSwitched=this.handleLevelSwitched.bind(this),this.boundOnNativeError=this.handleNativeError.bind(this),this.handleOnlineNetworkRecovery=(()=>{this.retryCount=0,"undefined"!=typeof Hls&&Hls.isSupported()&&this.hls&&"function"==typeof this.hls.startLoad?this.hls.startLoad():this.video.canPlayType("application/vnd.apple.mpegurl")&&this.recoverNativeHls()}),this.video=t,this.videoPlayerState=e||r.VideoPlayerService}setupEventListeners(){this.video.addEventListener(s.EVENTS.PLAYING,this.boundOnPlaying),this.video.addEventListener(s.EVENTS.CAN_PLAY_THROUGH,this.boundOnCanPlay)}loadSource(t,e){return n(this,arguments,void 0,function*(t,e,i=0){this.initialBitrateBps=1e3*e,this.lastTime=i,this.isSlowConnection()&&l.HLSQualityManager.clear();const n=this.video.getAttribute("data-original-src");if(this.hls&&Hls.isSupported()&&n&&n!==t){try{"function"==typeof this.hls.destroy&&this.hls.destroy()}catch(t){}this.hls=void 0}this.video.setAttribute("data-original-src",t),Hls.isSupported()?this.setupHLSInstance(t,i):this.video.canPlayType("application/vnd.apple.mpegurl")?this.setupNativeHLS(t,i):this.video.dispatchEvent(new CustomEvent(s.VIDEO_EVENTS.ERROR,{detail:"HLS not supported",bubbles:!0,composed:!0}))})}setupHLSInstance(t,i,n=e.HLS_CONFIGS.LONG_FORM){let o=l.HLSQualityManager.shouldUseMemory()?l.HLSQualityManager.recall():-1;
1this.hls=new Hls({enableWorker:!0,enableSoftwareAES:!0,debug:!1,maxBufferLength:n.maxBufferLength,maxMaxBufferLength:n.maxMaxBufferLength,maxBufferSize:n.maxBufferSize,maxBufferHole:n.maxBufferHole,fragLoadingMaxRetry:n.fragLoadingMaxRetry,fragLoadingRetryDelay:n.fragLoadingRetryDelay,abrMaxWithRealBitrate:!0,abrEwmaFastLive:n.abrEwmaFastLive,abrEwmaSlowLive:n.abrEwmaSlowLive,abrEwmaFastVoD:n.abrEwmaFastVoD,abrEwmaSlowVoD:n.abrEwmaSlowVoD,abrBandWidthFactor:n.abrBandWidthFactor,abrBandWidthUpFactor:n.abrBandWidthUpFactor,capLevelToPlayerSize:!1,startPosition:i,startLevel:o}),this.hls.loadSource(t),this.hls.attachMedia(this.video),this.hls.on(Hls.Events.BUFFER_APPENDED,this.boundOnBufferAppended),this.hls.on(Hls.Events.FRAG_PARSED,this.boundOnFragParsed),this.hls.on(Hls.Events.ERROR,this.boundOnError),this.hls.on(Hls.Events.LEVEL_SWITCHED,this.boundOnLevelSwitched)}setupNativeHLS(t,e){this.video.src=t,this.video.currentTime=e,this.video.setAttribute("type","application/x-mpegURL"),this.video.addEventListener(s.EVENTS.ERROR,this.boundOnNativeError),this.video.addEventListener(s.EVENTS.LOADED_METADATA,this.boundOnLoadedMetadata)}unload(){var t,e,i,n,o,r,a,l,d,u,c,h;this.hls&&"undefined"!=typeof Hls&&Hls.isSupported()&&(null===(e=(t=this.hls).stopLoad)||void 0===e||e.call(t),null===(n=(i=this.hls).off)||void 0===n||n.call(i,Hls.Events.BUFFER_APPENDED,this.boundOnBufferAppended),null===(r=(o=this.hls).off)||void 0===r||r.call(o,Hls.Events.FRAG_PARSED,this.boundOnFragParsed),null===(l=(a=this.hls).off)||void 0===l||l.call(a,Hls.Events.ERROR,this.boundOnError),null===(u=(d=this.hls).off)||void 0===u||u.call(d,Hls.Events.LEVEL_SWITCHED,this.boundOnLevelSwitched),null===(h=(c=this.hls).destroy)||void 0===h||h.call(c),this.hls=void 0),this.video.removeEventListener(s.EVENTS.ERROR,this.boundOnNativeError),this.video.removeEventListener(s.EVENTS.PLAYING,this.boundOnPlaying),this.video.removeEventListener(s.EVENTS.CAN_PLAY_THROUGH,this.boundOnCanPlay),this.video.removeEventListener(s.EVENTS.LOADED_METADATA,this.boundOnLoadedMetadata),this.video.pause(),this.video.preload="none",this.video.removeAttribute("src"),this.video.removeAttribute("data-original-src"),this.video.poster="",this.video.load(),clearTimeout(this.playbackWatchdogTimeout),clearTimeout(this.loaderTimeout),clearTimeout(this.recoveryTimeout)}destroy(){this.unload()}play(){return n(this,void 0,void 0,function*(){var t,e;this.playAttemptStartTime=Date.now();try{null===(e=null===(t=this.hls)||void 0===t?void 0:t.startLoad)||void 0===e||e.call(t),this.startPlaybackWatchdog(),yield this.waitForVideoCondition(()=>this.video.readyState>=3,"canplay",3e3);const i=this.video.play();i&&"function"==typeof i.then?yield i:yield this.waitForVideoCondition(()=>!this.video.paused,"playing",2e3);const n={status:o.PlayStatus.Success};return this.dispatchPlaybackEvent("success",{result:n,timeToPlay:Date.now()-this.playAttemptStartTime}),n}catch(t){const e={status:o.PlayStatus.Failed,error:t};return this.dispatchPlaybackEvent("failed",{result:e,timeToFail:Date.now()-this.playAttemptStartTime}),e}finally{this.hideLoader()}})}pause(){var t,e;this.video.pause(),null===(e=null===(t=this.hls)||void 0===t?void 0:t.stopLoad)||void 0===e||e.call(t),clearTimeout(this.playbackWatchdogTimeout),clearTimeout(this.loaderTimeout),clearTimeout(this.recoveryTimeout)}isPaused(){return this.video.paused}isEnded(){return this.video.ended}getCurrentTime(){return this.video.currentTime}reset(){this.pause(),this.unload(),this.video.preload="none",this.video.removeAttribute("poster"),this.video.load()}getDuration(){return this.video.duration}isMuted(){return this.video.muted}seek(t){if(t<0||t>1)return;if(!Number.isFinite(this.video.duration)||this.video.duration<=0)return;const e=t*this.video.duration;Number.isFinite(e)&&e>=0&&e<=this.video.duration&&(this.video.currentTime=e,this.hls&&this.hls.levels&&this.hls.levels.length>0&&this.hls.currentLevel>0&&void 0!==this.hls.nextLoadLevel&&(this.hls.nextLoadLevel=0),this.hls&&!this.video.paused&&"function"==typeof this.hls.startLoad&&this.hls.startLoad(),this.video.paused||this.handleSeekRecovery(e))}setMuted(t){const e=this.video.muted;this.video.muted=t,e!==t&&this.dispatchPlaybackEvent("changed",{previousState:{muted:e},newState:{muted:t}})}toggleMute(){this.setMuted(!this.video.muted)}mute(){this.setMuted(!0)}unmute(){this.setMuted(!1)}toggleFullscreen(){}
1waitForVideoCondition(t,e,i=3e3){return new Promise((n,o)=>{if(t())return void n();const r=setTimeout(()=>{l(),n()},i),s=t=>{l(),n(t)},a=t=>{l(),o(t)},l=()=>{clearTimeout(r),this.video.removeEventListener(e,s),this.video.removeEventListener("error",a)};this.video.addEventListener(e,s,{once:!0}),this.video.addEventListener("error",a,{once:!0})})}startPlaybackWatchdog(){this.playbackWatchdogTimeout&&clearTimeout(this.playbackWatchdogTimeout),this.lastTime=this.video.currentTime,this.playbackWatchdogTimeout=setTimeout(()=>{this.isSlowConnection()||(this.video.paused||this.video.readyState<3||this.video.currentTime-this.lastTime<.1)&&!this.video.ended&&this.handlePlaybackTimeout()},3e4)}handlePlaybackTimeout(){var t,e,i,n,o,r;"visible"!==document.visibilityState||document.hidden||"function"==typeof document.hasFocus&&!document.hasFocus()||(this.onLoadingState(),this.hls?this.video.error?null===(e=(t=this.hls).recoverMediaError)||void 0===e||e.call(t):(this.pause(),null===(n=(i=this.hls).detachMedia)||void 0===n||n.call(i),null===(r=(o=this.hls).attachMedia)||void 0===r||r.call(o,this.video),this.video.play().catch(t=>{this.reloadStream()})):(this.pause(),this.video.load(),this.video.play().catch(t=>{})))}handleSeekRecovery(t){clearTimeout(this.recoveryTimeout),clearTimeout(this.loaderTimeout),this.loaderTimeout=setTimeout(()=>{navigator.onLine&&this.onLoadingState()},1e3),this.recoveryTimeout=setTimeout(()=>{var e,i;this.video.paused&&(this.hls&&(null===(i=(e=this.hls).recoverMediaError)||void 0===i||i.call(e)),this.video.currentTime=t,this.video.play().catch(()=>{this.reloadStream()}))},5e3),this.seekRecoveryListener&&(this.video.removeEventListener(s.EVENTS.PLAYING,this.seekRecoveryListener),this.seekRecoveryListener=void 0),this.seekRecoveryListener=(()=>{clearTimeout(this.recoveryTimeout),clearTimeout(this.loaderTimeout),this.seekRecoveryListener=void 0}),this.video.addEventListener(s.EVENTS.PLAYING,this.seekRecoveryListener,{once:!0})}isSlowConnection(){const t=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(t){const{effectiveType:e,downlink:i,rtt:n,saveData:o}=t;if(o)return!0;if("2g"===e||"slow-2g"===e)return!0;if("3g"===e&&(i&&i<1.5||n&&n>400))return!0}return!1}handleBufferAppended(){this.onBufferUpdate(this.getBufferProgress())}handleFragParsed(){this.onBufferUpdate(this.getBufferProgress())}handleError(t,e){if(this.onError(t,e),e.fatal)"networkError"===e.type?this.handleNetworkError():this.handleMediaError();else switch(e.details){case"bufferNudgeOnStall":if(this.onLoadingState(),this.isSlowConnection())return;this.nudgePlayback();break;case"bufferStalledError":this.onLoadingState(),this.isSlowConnection()}}handlePlaying(){this.hideLoader()}handleLevelSwitched(t,e){this.hls&&this.hls.levels&&e.level>=0&&this.hls.levels[e.level]&&l.HLSQualityManager.remember(e.level)}handleNativeError(t){navigator.onLine,this.handleNetworkError(),this.video.dispatchEvent(new CustomEvent(s.VIDEO_EVENTS.ERROR,{detail:t,bubbles:!0,composed:!0}))}handleLoadedMetadata(){this.hideLoader()}getBufferProgress(){if(0===this.video.duration)return 0;const{buffered:t,currentTime:e,duration:i}=this.video;for(let n=0;n<t.length;n++)if(t.start(n)<=e&&t.end(n)>=e)return t.end(n)/i*100;return 0}showLoader(){this.video.dispatchEvent(new CustomEvent(s.VIDEO_EVENTS.LOADER_DISPLAY,{bubbles:!0,composed:!0}))}hideLoader(){this.video.dispatchEvent(new CustomEvent(s.VIDEO_EVENTS.LOADER_HIDE,{bubbles:!0,composed:!0}))}nudgePlayback(){var t;const e=this.video.currentTime;null===(t=this.hls)||void 0===t||t.recoverMediaError(),setTimeout(()=>{const t=e+.1;this.video.currentTime=t,this.video.play().catch(t=>{})},250)}handleNetworkError(){if(navigator.onLine)if(this.retryCount<this.maxRetries){this.retryCount++;const t=1e3*Math.pow(2,this.retryCount);setTimeout(()=>{this.hls&&"function"==typeof this.hls.startLoad?this.hls.startLoad():this.recoverNativeHls()},t)}else this.reloadStream(),this.retryCount=0;else window.addEventListener("online",this.handleOnlineNetworkRecovery,{once:!0}),this.onLoadingState()}handleMediaError(){var t,e;this.lastTime=this.video.currentTime,"undefined"!=typeof Hls&&Hls.isSupported()&&this.hls?(null===(e=(t=this.hls).recoverMediaError)||void 0===e||e.call(t),setTimeout(()=>{this.video.currentTime=this.lastTime,this.video.play().catch(t=>{this.reloadStream()})},500)):this.video.canPlayType("application/vnd.apple.mpegurl")&&(this.reloadStream(),setTimeout(()=>{this.video.play().catch(t=>{})},1e3))}recoverNativeHls(){const t=this.video.getAttribute("data-original-src")||this.video.src,e=this.video.currentTime;this.video.pause(),this.video.removeAttribute("src"),this.video.load(),setTimeout(()=>{this.video.src=t,this.video.currentTime=e,this.video.load(),this.video.play().catch(t=>{})},100)}reloadStream(){if(this.retryCount=0,"undefined"!=typeof Hls&&Hls.isSupported()&&this.hls){const t=this.video.getAttribute("data-original-src")||this.video.src;this.hls.detachMedia(),this.hls.attachMedia(this.video),this.hls.loadSource(t),this.hls.startLoad()}else if(this.video.canPlayType("application/vnd.apple.mpegurl")){const t=this.video.getAttribute("data-original-src")||this.video.src,e=this.video.currentTime;this.video.pause(),this.video.removeAttribute("src"),this.video.load(),setTimeout(()=>{this.video.src=t,this.video.currentTime=e,this.video.load()},100)}}reloadWithNewSource(t){return n(this,arguments,void 0,function*(t,e=0,i=0){var n,o,r,s,a,l;if(this.initialBitrateBps=1e3*e,this.lastTime=i,this.video.setAttribute("data-original-src",t),"undefined"!=typeof Hls&&Hls.isSupported()&&this.hls)null===(o=(n=this.hls).stopLoad)||void 0===o||o.call(n),null===(s=(r=this.hls).detachMedia)||void 0===s||s.call(r),this.hls.loadSource(t),null===(l=(a=this.hls).attachMedia)||void 0===l||l.call(a,this.video),i>0&&(this.video.currentTime=i);else{if(!this.video.canPlayType("application/vnd.apple.mpegurl"))throw new Error("HLS not supported");this.video.pause(),this.video.src=t,this.video.currentTime=i,this.video.load()}})}}},8261:(t,e)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.VIDEO_EVENTS=e.EVENTS=e.KEY_CODES=void 0,e.KEY_CODES={ARROW_UP:"ArrowUp",UP:"Up",PAGE_UP:"PageUp",ARROW_DOWN:"ArrowDown",DOWN:"Down",PAGE_DOWN:"PageDown",SPACE:"Space",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ESCAPE:"Escape"},e.EVENTS={KEYDOWN:"keydown",CLICK:"click",MOUSEENTER:"mouseenter",MOUSELEAVE:"mouseleave",MOUSEMOVE:"mousemove",BLUR:"blur",FOCUS:"focus",VISIBILITY_CHANGE:"visibilitychange",CAN_PLAY_THROUGH:"canplaythrough",PLAY:"play",PLAYING:"playing",PAUSE:"pause",PAUSED:"paused",SEEKING:"seeking",SEEKED:"seeked",LOADED_METADATA:"loadedmetadata",RESIZE:"resize",TIMEUPDATE:"timeupdate",ERROR:"error",ENDED:"ended",FULLSCREEN_CHANGE:"fullscreenchange",FULLSCREEN_CHANGE_WEBKIT:"webkitfullscreenchange",FULLSCREEN_CHANGE_MOZ:"mozfullscreenchange",CUE_CHANGE:"cuechange",DRAGSTART:"dragstart",DRAG:"drag",DROP:"drop",BEFOREUNLOAD:"beforeunload",UNLOAD:"unload",RESIZE_WINDOW:"resize"},e.VIDEO_EVENTS={PLAY:"play-video",REPLAY:"replay-video",PAUSE:"pause-video",MUTE:"mute-video",UNMUTE:"unmute-video",SEEK:"seek-video",FULLSCREEN:"fullscreen-video",SHARE:"share-video",LIKE:"like-video",TIME_UPDATE:"time-update",NAVIGATION_PREV:"navigate-prev",NAVIGATION_NEXT:"navigate-next",LOADER_DISPLAY:"loader-display",LOADER_HIDE:"loader-hide",ERROR:"video-error",UPDATE_NAVIGATION:"update-navigation",CTA_CLICKED:"cta-clicked",CTA_VISIBILE:"cta-visible",CTA_DISMISS:"cta-dismiss",RESET_INACTIVITY_TIMER:"reset-inactivity-timer",CLOSE_PLAYER:"close-player",CLOSED_CAPTIONS_OPEN_MODAL:"closed-captions-open-modal",DISPLAY_HIDE_OVERLAY_FROM_CTA:"display-hide-overlay-from-cta",DISPLAY_SEEKED_TIME:"display-seeked-time",UPDATE_CLOSED_CAPTIONS_LOCATION:"update-closed-captions-location"}},8305:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isValidCountryCode=function(t){return n.CountryCodes.includes(t)};const n=i(6450)},8330:t=>{"use strict";t.exports=JSON.parse('{"name":"@wscsports/blaze-web-sdk","version":"0.34.5","main":"publish/index","types":"publish/index","files":["publish/*"],"scripts":{"start:dev":"webpack-dev-server --config webpack/webpack.config.dev","start:dev-docker":"docker compose up --build","build:types":"dts-bundle-generator --config ./dts-bundle.config.js","build:qa-prod":"webpack --config webpack/webpack.config.qa-prod.js && npm run build:types","build:qa-dev":"webpack --config webpack/webpack.config.qa-dev.js","build:prod":"webpack --config webpack/webpack.config.prod.js && npm run build:types","build:prod-debug":"webpack --config webpack/webpack.config.prod-debug.js && npm run build:types","pack:prod":"npm run build:prod && npm pack","pack:prod-debug":"npm run build:prod-debug && npm pack","publish:latest":"npm run build:prod && npm publish --access public --tag latest","publish:beta":"npm run build:prod && npm publish --access public --tag beta","test:unit":"jest","test:unit:watch":"jest --watch","test:unit:coverage":"jest --coverage","test":"node ./node_modules/@playwright/test/cli.js test --project=\'Desktop Chrome\'","test:desktop":"node ./node_modules/@playwright/test/cli.js test --project=\'Desktop Chrome\' --project=\'Desktop Firefox\' --project=\'Desktop Safari\'","test:desktop:stories":"node ./node_modules/@playwright/test/cli.js test --project=\'Desktop Chrome\' --project=\'Desktop Safari\' e2e-tests/tests/stories","test:desktop:stories:vast-ad":"node ./node_modules/@playwright/test/cli.js test --project=\'Desktop Chrome\' --project=\'Desktop Firefox\' --project=\'Desktop Safari\' tests/stories/playback/story-playback-ad-vast.spec.ts --workers=1","test:desktop:stories:cta-nav":"node ./node_modules/@playwright/test/cli.js test --config=e2e-tests/playwright.config.ts --project=\'Desktop Chrome\' --project=\'Desktop Safari\' e2e-tests/tests/stories/navigation/story-cta-navigation.spec.ts","test:desktop:moments":"node ./node_modules/@playwright/test/cli.js test --project=\'Desktop Chrome\' --project=\'Desktop Safari\' e2e-tests/tests/moments","test:desktop:long-form":"node ./node_modules/@playwright/test/cli.js test --project=\'Desktop Chrome\' --project=\'De
1sktop Safari\' e2e-tests/tests/video-longform","test:mobile":"node ./node_modules/@playwright/test/cli.js test --project=\'iOS Safari 13\' --project=\'Android Chrome\'","test:mobile:stories":"node ./node_modules/@playwright/test/cli.js test --project=\'iOS Safari 13\' --project=\'Android Chrome\' e2e-tests/tests/stories","test:mobile:moments":"node ./node_modules/@playwright/test/cli.js test --project=\'iOS Safari 13\' e2e-tests/tests/moments","test:mobile:long-form":"node ./node_modules/@playwright/test/cli.js test --project=\'iOS Safari 13\' e2e-tests/tests/video-longform","test:android:stories":"export USE_PHYSICAL_DEVICE=true && export $(cat .env.physical-device 2>/dev/null | xargs) && node ./node_modules/@playwright/test/cli.js test --config=playwright.config.physical-device.ts --project=\'Android Mobile Chrome\' e2e-tests/tests/stories","test:android:moments":"export USE_PHYSICAL_DEVICE=true && export $(cat .env.physical-device 2>/dev/null | xargs) && node ./node_modules/@playwright/test/cli.js test --config=playwright.config.physical-device.ts --project=\'Android Mobile Chrome\' e2e-tests/tests/moments","test:accessibility":"node ./node_modules/@playwright/test/cli.js test --config=e2e-tests/playwright.config.ts --project=\'Desktop Chrome\' --project=\'Desktop Firefox\' --project=\'Desktop Safari\' e2e-tests/tests/accessibility"},"devDependencies":{"@axe-core/playwright":"^4.11.0","@playwright/test":"^1.56.0","@types/animejs":"^3.1.7","@types/google_interactive_media_ads_types":"^1.20241219.0","@types/hammerjs":"^2.0.45","@types/jest":"^30.0.0","@types/node":"^24.7.0","@types/ua-parser-js":"^0.7.36","@types/uuid":"^10.0.0","@types/videojs-vtt.js":"^0.15.3","css-loader":"^6.8.1","dts-bundle-generator":"^9.5.1","fs-extra":"^11.1.1","glob-promise":"^6.0.5","html-webpack-plugin":"^5.5.3","intersection-observer":"^0.12.2","javascript-obfuscator":"^4.0.2","jest":"^30.2.0","jest-environment-jsdom":"^30.2.0","jest-junit":"^16.0.0","media-captions":"^0.0.18","npm-registry-fetch":"^16.0.0","playwright-chromium":"^1.56.0","playwright-webkit":"^1.56.0","style-loader":"^3.3.3","ts-jest":"^29.4.6","ts-loader":"^9.4.4","typescript":"^5.4.2","videojs-vtt.js":"^0.15.5","webpack":"^5.88.1","webpack-cli":"^5.1.4","webpack-dev-server":"^4.15.1","webpack-obfuscator":"^3.5.1"},"dependencies":{"animejs":"^3.2.1","hammerjs":"^2.0.8","ua-parser-js":"^1.0.36","uuid":"^8.3.2"}}')},8370:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseModalTemplate=void 0;const o=i(9965),r=i(4545),s=i(9331);e.BaseModalTemplate=class{render(t,e,i){return n(this,void 0,void 0,function*(){let n;try{if(!(n=this.validateRequirements(t)).isValid||!n.blazeSdk||!n.dataSourceStringRep)return;const{blazeSdk:o,dataSourceStringRep:r}=n,a=yield this.fetchContent(t);if(!this.validateContentResponse(a,o,r))return;const l=this.createModal(document.body,e.style,e.actionHandlers),d=this.getService();let u=this.filterContent(a.result);d.enrichContent&&(u=yield d.enrichContent(u)),i&&(u=u.sort(s.sortContentByViewedStatus)),this.configureModal(l,u),this.openModal(l,o)}catch(t){(null==n?void 0:n.blazeSdk)&&n.dataSourceStringRep&&this.handleError(t,n.blazeSdk,n.dataSourceStringRep)}})}validateRequirements(t){if(!t)return{isValid:!1,blazeSdk:null,dataSourceStringRep:void 0};const e=document.getElementsByTagName("blaze-sdk")[0];if(!e)return{isValid:!1,blazeSdk:null,dataSourceStringRep:void 0};const i=(0,s.getDataSourceStringRep)(t);return i?{isValid:!0,blazeSdk:e,dataSourceStringRep:i}:{isValid:!1,blazeSdk:e,dataSourceStringRep:void 0}}filterContent(t){var e;return(null===(e=r.ConfigService.excludeContentId)||void 0===e?void 0:e.length)?t.filter(t=>!r.ConfigService.excludeContentId.includes(t.id)):t}validateContentResponse(t,e,i){var n;return!!(null===(n=null==t?void 0:t.result)||void 0===n?void 0:n.length)||(r.EventService.dispatch(e,o.Delegation.onErrorThrown,{id:i,errorCode:this.getErrorCode()}),!1)}openModal(t,e){try{e.appendChild(t),t.open(),t.onClose=(()=>t.remove())}catch(t){throw t}}handleError(t,e,i){i&&r.EventService.dispatch(e,o.Delegation.onErrorThrown,{id:i,errorCode:this.getErrorCode(),error:t instanceof Error?t.message:String(t)})}fetchContent(t){return n(this,void 0,void 0,function*(){return this.get
1Service().fetchContent(t)})}}},8381:function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(3334),e)},8398:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.FullscreenManager=void 0;const o=i(4403),r=i(1908);e.FullscreenManager=class{constructor(t){this.isFullscreen=!1,this.isProgrammaticChange=!1,this.boundOnFullscreenChange=this.handleFullscreenChange.bind(this),this.container=t,o.deviceDetector.isFullscreenSupported&&this.attachEventListeners()}toggleFullscreen(){return n(this,void 0,void 0,function*(){try{this.isProgrammaticChange=!0;const t=this.isFullscreen?this.exitFullscreen():this.enterFullscreen();this.isFullscreen=!this.isFullscreen,yield t}catch(t){this.isFullscreen=!this.isFullscreen,this.isProgrammaticChange=!1}})}waitForFullscreenExit(){return new Promise(t=>{const e=()=>{this.isFullscreenMode()||(this.container.removeEventListener(r.EVENTS.FULLSCREEN_CHANGE,e),this.container.removeEventListener(r.EVENTS.FULLSCREEN_CHANGE_WEBKIT,e),this.container.removeEventListener(r.EVENTS.FULLSCREEN_CHANGE_MOZ,e),t())};this.container.addEventListener(r.EVENTS.FULLSCREEN_CHANGE,e),this.container.addEventListener(r.EVENTS.FULLSCREEN_CHANGE_WEBKIT,e),this.container.addEventListener(r.EVENTS.FULLSCREEN_CHANGE_MOZ,e)})}enterFullscreen(){return n(this,void 0,void 0,function*(){try{this.container.requestFullscreen?yield this.container.requestFullscreen():this.container.webkitRequestFullscreen?yield this.container.webkitRequestFullscreen():this.container.msRequestFullscreen?yield this.container.msRequestFullscreen():this.container instanceof HTMLVideoElement&&this.container.webkitEnterFullscreen?this.container.webkitEnterFullscreen():this.isProgrammaticChange=!1}catch(t){this.isProgrammaticChange=!1}})}exitFullscreen(){return n(this,void 0,void 0,function*(){try{document.exitFullscreen?yield document.exitFullscreen():document.webkitExitFullscreen?yield document.webkitExitFullscreen():document.msExitFullscreen?yield document.msExitFullscreen():this.isProgrammaticChange=!1}catch(t){this.isProgrammaticChange=!1}})}handleFullscreenChange(){var t;const e=this.isFullscreen;if(this.isFullscreen=this.isFullscreenMode(),this.isProgrammaticChange)return void(this.isProgrammaticChange=!1);const i=document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement;(i===this.container||e&&!i)&&(null===(t=this.onFullscreenChangeByBrowser)||void 0===t||t.call(this))}isFullscreenMode(){return Boolean(document.fullscreenElement===this.container||document.webkitFullscreenElement===this.container||document.msFullscreenElement===this.container)}attachEventListeners(){document.addEventListener(r.EVENTS.FULLSCREEN_CHANGE,this.boundOnFullscreenChange),document.addEventListener(r.EVENTS.FULLSCREEN_CHANGE_MOZ,this.boundOnFullscreenChange),document.addEventListener(r.EVENTS.FULLSCREEN_CHANGE_WEBKIT,this.boundOnFullscreenChange)}destroy(){document.removeEventListener(r.EVENTS.FULLSCREEN_CHANGE,this.boundOnFullscreenChange),document.removeEventListener(r.EVENTS.FULLSCREEN_CHANGE_MOZ,this.boundOnFullscreenChange),document.removeEventListener(r.EVENTS.FULLSCREEN_CHANGE_WEBKIT,this.boundOnFullscreenChange)}}},8459:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},8480:function(t,e,i){"use strict";
1var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetAd=void 0;const o=i(9126),r=i(4403),s=i(6450),a=i(9965),l=i(8921),d=i(4545),u=i(4906),c=i(9266);e.BlazeWidgetAd=class extends o.BlazeWidgetVideoBase{constructor(t){super(),this.contentParent=t,this.isCurrentlyDisplay=!1,this.isAdFailed=!1,this.isPlaying=!1,this.adContainer=l.WidgetsFactory.create("blaze-div"),this.placeholderContainer=l.WidgetsFactory.create("blaze-div"),this.boundMessageEvent=this.handleMessageEvent.bind(this),this.ctaModal=l.WidgetsFactory.create("blaze-widget-cta-modal"),this.initStyles()}connectedCallback(){this.append(this.ctaModal),this.render()}disconnectedCallback(){}render(){}handleMessageEvent(t){switch(t.data){case"BLAZE_CTA_CLICK":this.event(s.AdAction.Click,{gesture_type:"CTA Click"});break;case"BLAZE_END_AD":this.contentParent instanceof o.BlazeWidgetStory?(this.contentParent.navigationType="Automatic",this.contentParent.goNextPage()):this.contentParent instanceof o.BlazeWidgetMoment&&this.contentParent.modal.handleClickNavigation("NEXT"),this.dispatchEvent(new CustomEvent(a.InternalEvent.AD_ENDED,{bubbles:!0,cancelable:!1}))}}get currentTime(){return 0}set currentTime(t){}get duration(){return 0}get progress(){return 0}set muted(t){this.changeAdMutedState(t)}getGoogletag(){return window.googletag||{cmd:{push:()=>{}}}}getAdIframeRef(){var t;return document.querySelector('iframe[id*="'+(null===(t=this.data.adInfo)||void 0===t?void 0:t.path)+'"]')}changeAdMutedState(t){if(!this.isCurrentlyDisplay)return;if(!this.data)return;const e=this.getAdIframeRef();(null==e?void 0:e.contentWindow)&&(t?e.contentWindow.postMessage("BLAZE_AD_MUTED","*"):e.contentWindow.postMessage("BLAZE_AD_UNMUTED","*"))}setData(t){this.data=t;let e="moment";this.contentParent instanceof o.BlazeWidgetStory&&(e=this.contentParent.mode.split(" ").join("-")),this.adContainer.id=t.id+"-"+e,this.appendChild(this.adContainer)}startEnter(){return n(this,void 0,void 0,function*(){const t=this.data.adInfo;t&&(yield this.isAdContainerConnectedToDOM())&&(this.isCurrentlyDisplay||(window.addEventListener("message",this.boundMessageEvent),this.placeholderContainer.style.display="flex",this.style.display="block",this.style.height="100%",this.isCurrentlyDisplay=!0,this.contentParent.adjustContentView(),this.failToLoadTimeout=setTimeout(()=>{var t;this.isCurrentlyDisplay&&(this.isAdFailed=!0,this.isPlaying&&(null===(t=this.onFail)||void 0===t||t.call(this)))},s.FAIL_TO_LOAD_TIMEOUT_MS),this.event(s.AdAction.Requested),this.getGoogletag().cmd.push(()=>{var e,i;const n=this.findOwnSlot();n&&this.getGoogletag().destroySlots([n]);const r=t.path,a=t=>{var e;if(t.slot.getSlotElementId()===this.adContainer.id){if(clearTimeout(this.failToLoadTimeout),this.failToLoadTimeout=void 0,t.isEmpty)this.isCurrentlyDisplay&&(this.isAdFailed=!0,this.isPlaying&&(null===(e=this.onFail)||void 0===e||e.call(this)));else{this.placeholderContainer.style.display="none",this.isAdFailed=!1,this.event(s.AdAction.View);const t=this.getAdIframeRef(),e=null==t?void 0:t.contentWindow,i=null==e?void 0:e.document.body;i&&(i.style.direction=d.ConfigService.layoutDirection)}this.getGoogletag().pubads().removeEventListener("slotRenderEnded",a)}};this.getGoogletag().pubads().addEventListener("slotRenderEnded",a),this.getGoogletag().pubads().display(r,["fluid",[1,1]],this.adContainer.id);const l=this.findOwnSlot();if(l){const n=(null===(i=null===(e=d.ConfigService.googleCustomNativeAdHandler)||void 0===e?void 0:e.provideAdExtraParams)||void 0===i?void 0:i.call(e,{path:r},this.contentParent.contentExtraInfo))||{};if(this.contentParent instanceof o.BlazeWidgetStory){const t=this.contentParent.currentPageIndexWithoutCustomAds;t&&(n.page_index=t.toString())}
1(0,c.addContextToCustomTargeting)(t,n),Object.entries(n).forEach(([t,e])=>{l.setTargeting(t,e)})}this.getGoogletag().enableServices(),l&&this.getGoogletag().pubads().refresh([l])})))})}endExit(){this.destroyAd()}getIframeVideoElement(){const t=this.getAdIframeRef(),e=null==t?void 0:t.contentWindow,i=null==e?void 0:e.document.body,n=null==i?void 0:i.getElementsByTagName("video");return null==n?void 0:n[0]}play(){var t;this.isPlaying=!0,this.isAdFailed&&(null===(t=this.onFail)||void 0===t||t.call(this));try{const t=this.getIframeVideoElement();t&&"function"==typeof t.play&&t.getAttribute("src")&&t.play()}catch(t){}}get paused(){return!1}pause(){this.isCurrentlyDisplay=!1,this.isPlaying=!1;try{const t=this.getAdIframeRef(),e=null==t?void 0:t.contentWindow,i=null==e?void 0:e.document.body,n=null==i?void 0:i.getElementsByTagName("video"),o=null==n?void 0:n[0];o&&"function"==typeof o.pause&&o.getAttribute("src")&&o.pause()}catch(t){}}removeLoader(){}loadPoster(){}hide(){this.placeholderContainer.style.display="none",this.changeAdMutedState(!0),this.style.display="none",this.isCurrentlyDisplay=!1}display(t){return n(this,void 0,void 0,function*(){this.onFail=t})}mainElement(){return this.adContainer}initStyles(){this.innerHTML+="\n      <style>\n        blaze-widget-ad iframe {\n          height: 100%;\n          width: 100%;\n          border-radius: "+("mobile"===r.deviceDetector.platform?"0px":"20px")+";\n        }\n\n        blaze-widget-ad blaze-div div {\n          height: 100%;\n        }\n      </style>\n    ",this.style.borderRadius="mobile"===r.deviceDetector.platform?"0px":"20px",this.style.position="absolute",this.style.top="0",this.style.left="0",this.style.right="0",this.style.bottom="0",this.placeholderContainer.style.display="none",this.placeholderContainer.style.top="0",this.placeholderContainer.style.position="absolute",this.placeholderContainer.style.background="black",this.placeholderContainer.style.height="100%",this.placeholderContainer.style.width="100%",this.placeholderContainer.style.justifyContent="center",this.placeholderContainer.style.alignItems="center",this.placeholderContainer.style.borderRadius="mobile"===r.deviceDetector.platform?"0px":"20px";const t=document.createElement("blaze-loader");this.placeholderContainer.appendChild(t),this.appendChild(this.placeholderContainer)}isAdContainerConnectedToDOM(){return new Promise(t=>{var e;(null===(e=this.contentParent.querySelector("#"+this.adContainer.id))||void 0===e?void 0:e.isConnected)?t(!0):new MutationObserver((e,i)=>{for(let n of e)if("childList"===n.type){const e=this.contentParent.querySelector("#"+this.adContainer.id);e&&e.isConnected&&(i.disconnect(),t(!0))}}).observe(document.body,{childList:!0,subtree:!0})})}findOwnSlot(){return this.getGoogletag().pubads().getSlots().find(t=>t.getSlotElementId()===this.adContainer.id)}destroyAd(){this.getGoogletag().cmd.push(()=>{const t=this.findOwnSlot();t&&this.getGoogletag().destroySlots([t])}),window.removeEventListener("message",this.boundMessageEvent)}handleCtaSwipeUp(){const t=this.getAdIframeRef(),e=null==t?void 0:t.contentWindow,i=null==e?void 0:e.document.body,n=null==i?void 0:i.querySelectorAll("a.cta"),a=null==n?void 0:n[0];if(!a)return;this.contentParent instanceof o.BlazeWidgetStory&&this.event(s.AdAction.Click,{gesture_type:"Swipe Up"});const l=a.href,d=a.style.color||u.Colors.Black,c=a.style.backgroundColor||u.Colors.White;this.ctaModal.setAttributes({"border-color":"#fff","background-color":c,"text-color":d,"icon-color":d,"progress-bar-color":d,"cta-url":l}),this.ctaModal.open(),null==e||e.postMessage("BLAZE_CTA_SWIPE_UP","*"),setTimeout(()=>{r.deviceDetector.isIOSMobileTabletSafari()?window.location.href=a.href:window.open(a.href,"_blank"),this.ctaModal.close()},2*s.ONE_SECOND)}event(t,e){var i,n;const a=this.data.adInfo;if(!a)return;const l=this.contentParent.getRefferingObject(),u=new r.AdEvent;switch(t){case s.AdAction.View:u.ad_start_trigger=this.contentParent.startTrigger;break;case s.AdAction.Exit:u.ad_exit_trigger=this.contentParent.exitTrigger;break;case s.AdAction.Click:e&&(u.gesture_type=e.gesture_type)}this.contentParent instanceof o.BlazeWidgetStory?(u.story_id=this.contentParent.data.id,u.story_title=this.contentParent.data.title,u.ad_insertion_logic="AFTER PAGE INDEX 2,7"):this.contentParent instanceof o.BlazeWidgetMoment&&(u.ad_insertion_logic="MOMENT"),u.ad_server="google_ad_manager",u.ad_path=a.path,"true"===(null===(i=d.AppConfigurationService.appConfigurations)||void 0===i?void 0:i.configurations.analyticsAddEntitiesInfo)&&(u.content_extra_info=JSON.stringify(this.contentParent.data.extraInfo)),u.backoffice_campaign_data=(null===(n=this.data.adInfo)||void 0===n?void 0:n.backofficeCampaignData)||"",u.session_id=this.contentParent.sessionId,u.ad_index=this.contentParent.adIndex.toString();const c=this.getIframeVideoElement();c&&(u.ad_duration=c.duration.toString(),u.ad_duration_viewed_percent=(c.currentTime/c.duration*100).toFixed(0)),d.AnalyticsService.pushAdEvent(t,u,void 0,l)}}},8529:(t,e,i)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetBannerAd=void 0;const n=i(6450),o=i(9965),r=i(4545),s=i(9266);e.BlazeWidgetBannerAd=class extends HTMLElement{isHidden(){return"block"!==this.style.display||"hidden"===this.style.visibility}constructor(t){super(),this.adContainer=document.createElement("div"),this.isActive=!1,this.gptSlot=null,this.currentAdUnitId=null,this.showDebounceTimer=null,this.pendingSlotRenderEndedHandler=null,this.hasAttemptedLoad=!1,this.parentContnet=t}get googletag(){return window.googletag||{cmd:[]}}connectedCallback(){this.setInitialStyles(),this.setAdContainer()}disconnectedCallback(){if(this.cancelPendingShow(),this.removePendingSlotRenderEndedListener(),this.gptSlot){const t=this.gptSlot;this.gptSlot=null,this.currentAdUnitId=null,this.googletag.cmd.push(()=>{this.googletag.destroySlots([t])})}this.isActive=!1,this.hasAttemptedLoad=!1}cancelPendingShow(){null!==this.showDebounceTimer&&(clearTimeout(this.showDebounceTimer),this.showDebounceTimer=null)}removePendingSlotRenderEndedListener(){if(this.pendingSlotRenderEndedHandler){const t=this.pendingSlotRenderEndedHandler;this.pendingSlotRenderEndedHandler=null,this.googletag.cmd.push(()=>{this.googletag.pubads().removeEventListener("slotRenderEnded",t)})}}show(t,e=!0){r.AdService.canRunAds&&t&&(this.bannerAdInfo=t,this.cancelPendingShow(),this.showDebounceTimer=setTimeout(()=>{this.showDebounceTimer=null,this.executeShow(t,e)},n.BANNER_REQUEST_DEBOUNCE_MS))}executeShow(t,e){this.googletag.cmd.push(()=>{var i,o,a,l;this.isActive=!1;const d=t.adUnitId;this.raiseAnalyticsEventToParent({type:n.AdAction.BannerRequested,adUnitId:d});const u=t=>{t.slot.getSlotElementId()===this.adContainer.id&&(t.isEmpty||(this.hasAttemptedLoad=!0,this.style.display="block",this.style.visibility="visible",this.isActive=!0,e&&(this.raiseAnalyticsEventToParent({type:n.AdAction.BannerLoad,adUnitId:d}),this.raiseAnalyticsViewBannerAd())),this.pendingSlotRenderEndedHandler=null,this.googletag.pubads().removeEventListener("slotRenderEnded",u))};this.pendingSlotRenderEndedHandler=u,this.googletag.pubads().addEventListener("slotRenderEnded",u);const c=(null===(o=null===(i=r.ConfigService.googleCustomNativeAdHandler)||void 0===i?void 0:i.provideAdExtraParams)||void 0===o?void 0:o.call(i,{path:d},this.parentContnet.contentExtraInfo))||{};(0,s.addContextToCustomTargeting)(t,c);const h=this.googletag.pubads().getSlots().filter(t=>t.getSlotElementId().startsWith("ad-banner-")&&t.getSlotElementId()!==this.adContainer.id);if(h.length>0&&this.googletag.destroySlots(h),this.gptSlot&&!this.googletag.pubads().getSlots().some(t=>t.getSlotElementId()===this.adContainer.id)&&(this.gptSlot=null,this.currentAdUnitId=null),this.gptSlot&&this.currentAdUnitId!==d&&(this.googletag.destroySlots([this.gptSlot]),this.gptSlot=null,this.currentAdUnitId=null),this.gptSlot){const t=this.gptSlot;Object.entries(c).forEach(([e,i])=>{t.setTargeting(e,i)}),this.googletag.pubads().refresh([t])}else{this.googletag.pubads().setCentering(!0),this.googletag.enableServices(),this.gptSlot=null!==(l=null===(a=this.googletag.defineSlot(d,[[320,50]],this.adContainer.id))||void 0===a?void 0:a.addService(this.googletag.pubads()))&&void 0!==l?l:null;const t=this.gptSlot;t&&(this.currentAdUnitId=d,Object.entries(c).forEach(([e,i])=>{t.setTargeting(e,i)}),this.googletag.display(this.adContainer.id),this.googletag.pubads().refresh([t]))}})}hide(){this.cancelPendingShow(),this.style.visibility="hidden"}unhide(){this.style.visibility="visible"}setInitialStyles(){(0,s.mergeStyles)(this,{width:"100%",height:"50px",display:"none",overflow:"hidden"})}setAdContainer(){this.adContainer.id="ad-banner-"+Date.now(),this.appendChild(this.adContainer)}raiseAnalyticsEventToParent(t){this.dispatchEvent(new CustomEvent(o.InternalEvent.BANNER_ANALYTICS,{bubbles:!0,detail:t}))}raiseAnalyticsViewBannerAd(){var t;r.AdService.canRunAds&&this.bannerAdInfo&&this.isActive&&!this.isHidden()&&this.raiseAnalyticsEventToParent({type:n.AdAction.BannerView,adUnitId:null===(t=this.bannerAdInfo)||void 0===t?void 0:t.adUnitId})}}},8530:(t,e)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.WSC_PREFIX=e.TRANSPARENT=void 0,e.TRANSPARENT="transparent",e.WSC_PREFIX="wsc_"},8542:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},8624:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WidgetsFactory=void 0,e.WidgetsFactory=class{static create(t,e){return document.createElement(t,e)}static define(t,e,i){customElements.get(t)||customElements.define(t,e,i)}static whenDefined(t){return customElements.whenDefined(t)}}},8639:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeChip=void 0;const n=i(4403),o=i(4906);e.BlazeChip=class extends n.BaseWidget{constructor(){super()}connectedCallback(){this.style.position="absolute",this.style.backgroundColor="",this.style.justifySelf="center",this.style.borderColor=o.Colors.White,this.style.borderStyle="solid",this.style.lineHeight="1",this.innerText=""}}},8643:(t,e)=>{"use strict";function i(t){return 2*t.message.length+2*t.metadata.length+2*t.logIdentifier.length+100}Object.defineProperty(e,"__esModule",{value:!0}),e.estimateEntrySize=i,e.calculateTotalMemoryUsage=function(t){return t.reduce((t,e)=>t+i(e),0)}},8672:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeImage=void 0;const n=i(4403);e.BlazeImage=class extends n.BaseWidget{constructor(){super(),this.onError=(()=>{this.thumbnailElement.style.display="none"}),this.thumbnailElement=document.createElement("img"),this.thumbnailElement.style.width="100%",this.thumbnailElement.style.objectFit="cover",this.thumbnailElement.style.backgroundPosition="center",this.thumbnailElement.style.backgroundRepeat="no-repeat",this.thumbnailElement.style.background="transparent",this.thumbnailElement.style.borderRadius="inherit",this.thumbnailElement.style.pointerEvents="none",this.thumbnailElement.setAttribute("loading","lazy"),this.thumbnailElement.onerror=this.onError}load(t){this.thumbnailElement.src=t,this.append(this.thumbnailElement)}setHeight(t){this.thumbnailElement.style.height=t}setAccessibility(t){this.thumbnailElement.alt=t,this.thumbnailElement.ariaLabel=t}}},8772:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LongFormHlsStrategy=void 0;const n=i(8252);e.LongFormHlsStrategy=class extends n.BaseHLSStrategy{initialize(t){this.videoOverlay=null==t?void 0:t.overlay,this.configureVideoElement(),this.setupEventListeners()}configureVideoElement(){this.video.muted=this.videoPlayerState.isMuted,this.video.playsInline=!0,this.video.controls=!1,this.video.setAttribute("webkit-playsinline","true")}setupHLSInstance(t,e){super.setupHLSInstance(t,e,n.HLS_CONFIGS.LONG_FORM)}onLoadingState(){var t;null===(t=this.videoOverlay)||void 0===t||t.showPlayerOverlay(),this.showLoader()}onBufferUpdate(t){if(!this.videoOverlay||0===this.video.duration)return;const{buffered:e,currentTime:i,duration:n}=this.video;for(let t=0;t<e.length;t++)if(e.start(t)<=i&&e.end(t)>=i){const i=e.end(t)/n*100;this.videoOverlay.videoSeekBar.updateBuffer(i);break}}onError(t,e){var i,n;if(e.fatal)null===(i=this.videoOverlay)||void 0===i||i.showPlayerOverlay();else switch(e.details){case"bufferNudgeOnStall":case"bufferStalledError":null===(n=this.videoOverlay)||void 0===n||n.showPlayerOverlay()}}toggleFullscreen(){var t;null===(t=this.videoOverlay)||void 0===t||t.setFullscreenState()}}},8785:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPersonalizedParamsForRequest=function(t){if(!t||"object"!=typeof t)return{};switch(t.type){case"ids":return{PersonalPlayers:t.players,PersonalTeams:t.teams};case"labels":return{PersonalLabelFilterExpression:t.labelsFilterExpression,PersonalLabelPriority:t.labelsPriority};default:return{}}}},8827:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addToOfflineQueueWithPruning=e.pruneOfflineQueue=e.extractEntryIds=e.sanitizeBatchSizeConfiguration=e.shouldIgnoreLog=e.validateLoggerConfigurationDetailed=e.calculateTotalMemoryUsage=e.estimateEntrySize=e.compressPayload=e.MetadataKeys=e.buildLogMetadata=e.calculateLogPriority=e.isLogLevelAllowed=e.LOG_LEVEL_VALUES=void 0;var n=i(9164);Object.defineProperty(e,"LOG_LEVEL_VALUES",{enumerable:!0,get:function(){return n.LOG_LEVEL_VALUES}}),Object.defineProperty(e,"isLogLevelAllowed",{enumerable:!0,get:function(){return n.isLogLevelAllowed}}),Object.defineProperty(e,"calculateLogPriority",{enumerable:!0,get:function(){return n.calculateLogPriority}});var o=i(41);Object.defineProperty(e,"buildLogMetadata",{enumerable:!0,get:function(){return o.buildLogMetadata}}),Object.defineProperty(e,"MetadataKeys",{enumerable:!0,get:function(){return o.MetadataKeys}});var r=i(9527);Object.defineProperty(e,"compressPayload",{enumerable:!0,get:function(){return r.compressPayload}});var s=i(8643);Object.defineProperty(e,"estimateEntrySize",{enumerable:!0,get:function(){return s.estimateEntrySize}}),Object.defineProperty(e,"calculateTotalMemoryUsage",{enumerable:!0,get:function(){return s.calculateTotalMemoryUsage}});var a=i(9535);Object.defineProperty(e,"validateLoggerConfigurationDetailed",{enumerable:!0,get:function(){return a.validateLoggerConfigurationDetailed}}),Object.defineProperty(e,"shouldIgnoreLog",{enumerable:!0,get:function(){return a.shouldIgnoreLog}}),Object.defineProperty(e,"sanitizeBatchSizeConfiguration",{enumerable:!0,get:function(){return a.sanitizeBatchSizeConfiguration}});var l=i(1371);Object.defineProperty(e,"extractEntryIds",{enumerable:!0,get:function(){return l.extractEntryIds}
1});var d=i(6945);Object.defineProperty(e,"pruneOfflineQueue",{enumerable:!0,get:function(){return d.pruneOfflineQueue}}),Object.defineProperty(e,"addToOfflineQueueWithPruning",{enumerable:!0,get:function(){return d.addToOfflineQueueWithPruning}})},8831:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeDataSourceValidations=e.BlazeDataSourceFactory=e.BlazeInternalError=void 0;const n=i(7133),o=i(4545);e.BlazeInternalError={LabelExpressionMustNotBeEmpty:"labelExpressionMustNotBeEmpty",InvalidNumberOfMaxItems:"invalidNumberOfMaxItems",IdsMustNotBeEmpty:"idsMustNotBeEmpty",MissingLabelsProperty:"missingLabelsProperty",IdsMustNotHaveSpaces:"idsMustNotHaveSpaces",SearchTextMustNotBeEmpty:"searchTextMustNotBeEmpty",ForYouNotSupported:'the "Recommendations - For You" feature is currently not supported on widgets. Please contact support to discuss upgrade options.',TrendingNotSupported:'the "Recommendations - Trending" feature is currently not supported on widgets. Please contact support to discuss upgrade options.',RecommendationTypeMustBeProvided:"At least one recommendation type (forYou or trending) must be provided",ForYouAnyLabelFilterMustBeArray:"For You anyLabelFilter must be an array",ForYouPromotedLabelsMustBeArray:"For You promotedLabels must be an array",TrendingAnyLabelFilterMustBeArray:"Trending anyLabelFilter must be an array",TrendingPromotedLabelsMustBeArray:"Trending promotedLabels must be an array",RecommendationsNotSupportedForVideo:"Recommendations are not supported for video content type",ForYouContentPreparationNotEnabled:"For You content preparation is not enabled for player",TrendingContentPreparationNotEnabled:"Trending content preparation is not enabled for player"};class r{static createLabelsDataSource(t){const{labels:e,text:i,labelsPriority:n,orderType:o,maxItems:a,advancedOrdering:l,personalized:d}=t;try{s.validate({sourceType:"labels",labels:e,text:i,labelsPriority:n,orderType:o,maxItems:a,advancedOrdering:l,personalized:d})}catch(t){}finally{return{sourceType:"labels",labels:e,text:i,labelsPriority:r.setLabelsPriority(n),orderType:o,maxItems:a,advancedOrdering:l,personalized:d}}}static createIdsDataSource(t){const{ids:e,orderType:i,advancedOrdering:n}=t;try{s.validate({sourceType:"ids",ids:e,orderType:i,advancedOrdering:n})}catch(t){}finally{return{sourceType:"ids",ids:e,orderType:i,advancedOrdering:n}}}static createRecommendationsDataSource(t){const{recommendations:e}=t;try{return s.validate({sourceType:"recommendations",recommendations:e}),{sourceType:"recommendations",recommendations:e}}catch(t){return{sourceType:"recommendations"}}}static createTextDataSource(t){const{text:e,orderType:i,maxItems:n,advancedOrdering:o,personalized:r}=t;try{s.validate({sourceType:"text",text:e,orderType:i,maxItems:n,advancedOrdering:o,personalized:r})}catch(t){}finally{return{sourceType:"text",text:e,orderType:i,maxItems:n,advancedOrdering:o,personalized:r}}}static setLabelsPriority(t){return"string"==typeof t?t.startsWith("[")&&t.endsWith("]")?t:"["+t+"]":Array.isArray(t)?t.every(t=>t instanceof n.BlazeWidgetLabel)?"["+t.map(t=>t.toString()).join()+"]":"["+t.join()+"]":""}}e.BlazeDataSourceFactory=r;class s{static validate(t,e){this.validateFormat(t),e&&"recommendations"===t.sourceType&&this.validateRecommendationsForContentType(t,e)}static validateFormat(t){var i,n,o;switch(t.sourceType){case"labels":if(void 0===t.labels||null===t.labels)throw new Error(e.BlazeInternalError.MissingLabelsProperty);if(!(null===(i=t.labels)||void 0===i?void 0:i.toString().trim().length))throw new Error(e.BlazeInternalError.LabelExpressionMustNotBeEmpty);if(void 0!==t.maxItems&&t.maxItems<=0)throw new Error(e.BlazeInternalError.InvalidNumberOfMaxItems);break;case"ids":if(!t.ids||!t.ids.length)throw new Error(e.BlazeInternalError.IdsMustNotBeEmpty);if(t.ids.some(t=>/\s/.test(t)))throw new Error(e.BlazeInternalError.IdsMustNotHaveSpaces);break;case"text":if(!t.text||!t.text.trim().length)throw new Error(e.BlazeInternalError.SearchTextMustNotBeEmpty);if(void 0!==t.maxItems&&t.maxItems<=0)throw new Error(e.BlazeInternalError.InvalidNumberOfMaxItems);break;
1case"recommendations":const r=null===(n=t.recommendations)||void 0===n?void 0:n.forYou,s=null===(o=t.recommendations)||void 0===o?void 0:o.trending;if(!r&&!s)throw new Error(e.BlazeInternalError.RecommendationTypeMustBeProvided);if(r){if(r.anyLabelFilter){if(!Array.isArray(r.anyLabelFilter))throw new Error(e.BlazeInternalError.ForYouAnyLabelFilterMustBeArray);if(!r.anyLabelFilter.every(t=>"string"==typeof t&&!/\s/.test(t)))throw new Error(e.BlazeInternalError.ForYouAnyLabelFilterMustBeArray)}if(r.promotedLabels){if(!Array.isArray(r.promotedLabels))throw new Error(e.BlazeInternalError.ForYouPromotedLabelsMustBeArray);if(!r.promotedLabels.every(t=>"string"==typeof t&&!/\s/.test(t)))throw new Error(e.BlazeInternalError.ForYouPromotedLabelsMustBeArray)}}if(s&&s.anyLabelFilter){if(!Array.isArray(s.anyLabelFilter))throw new Error(e.BlazeInternalError.TrendingAnyLabelFilterMustBeArray);if(!s.anyLabelFilter.every(t=>"string"==typeof t&&!/\s/.test(t)))throw new Error(e.BlazeInternalError.TrendingAnyLabelFilterMustBeArray)}}}static validateRecommendationsForContentType(t,i){var n,r,s;if("recommendations"===t.sourceType){const a=null===(n=o.AppConfigurationService.appConfigurations)||void 0===n?void 0:n.recommendationsConfigurations;if(a){const n=null===(r=t.recommendations)||void 0===r?void 0:r.forYou,o=null===(s=t.recommendations)||void 0===s?void 0:s.trending,{supportForYou:l,supportTrending:d,supportStoriesForYou:u,supportStoriesTrending:c,enableForYouContentPreparation:h,enableTrendingContentPreparation:p}=a;if("video"===i)throw new Error(e.BlazeInternalError.RecommendationsNotSupportedForVideo);if(n){if(!("story"===i?u:l))throw new Error(e.BlazeInternalError.ForYouNotSupported);if(!h)throw new Error(e.BlazeInternalError.ForYouContentPreparationNotEnabled)}if(o){if(!("story"===i?c:d))throw new Error(e.BlazeInternalError.TrendingNotSupported);if(!p)throw new Error(e.BlazeInternalError.TrendingContentPreparationNotEnabled)}}}}}e.BlazeDataSourceValidations=s},8832:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MomentAccessibilityStrategy=e.StoryAccessibilityStrategy=void 0;class i{constructor(t,e){this.contentType=t,this.buttonLabels=e,this.registeredWidgets=new Map}setupAccessibility(t,e){this.registeredWidgets.set(t,e),this.updateLabels(t,e.data)}updateLabels(t,e){const i=this.registeredWidgets.get(t);if(!i)return;const{buttons:n}=i;if(n.play){const t=e.isPlaying?this.buttonLabels.pause:this.buttonLabels.play;n.play.setAriaLabel(""+t)}if(n.mute){const t=e.isMuted?this.buttonLabels.unmute:this.buttonLabels.mute;n.mute.setAriaLabel(""+t)}n.share&&n.share.setAriaLabel(""+this.buttonLabels.share),n.close&&n.close.setAriaLabel(this.buttonLabels.close),n.captions&&n.captions.setAriaLabel(""+this.buttonLabels.captions),n.cta&&e.ctaText?n.cta.setAriaLabel(e.ctaText+" - opens in a new tab"):n.cta&&n.cta.setAriaLabel("Call to action - opens in a new tab")}cleanup(t){this.registeredWidgets.delete(t)}}e.StoryAccessibilityStrategy=class extends i{constructor(t){super("story",t),this.storyButtonLabels=t}updateLabels(t,e){super.updateLabels(t,e);const i=this.registeredWidgets.get(t);if(!i)return;const{buttons:n}=i;n.nextStoryPage&&n.nextStoryPage.setAriaLabel(this.storyButtonLabels.nextStoryPage),n.prevStoryPage&&n.prevStoryPage.setAriaLabel(this.storyButtonLabels.prevStoryPage),n.nextStory&&n.nextStory.setAriaLabel(this.storyButtonLabels.nextStory),n.prevStory&&n.prevStory.setAriaLabel(this.storyButtonLabels.prevStory)}},e.MomentAccessibilityStrategy=class extends i{constructor(t){super("moment",t),this.momentButtonLabels=t}updateLabels(t,e){super.updateLabels(t,e);const i=this.registeredWidgets.get(t);if(!i)return;const{buttons:n}=i;if(n.like){const t=e.isLiked?this.momentButtonLabels.unlike:this.momentButtonLabels.like;n.like.setAriaLabel(""+t)}if(n.follow){const t=e.isFollowed?this.momentButtonLabels.unfollow:this.momentButtonLabels.follow;n.follow.setAriaLabel(""+t)}n.nextMoment&&n.nextMoment.setAriaLabel(this.momentButtonLabels.nextMoment),n.prevMoment&&n.prevMoment.setAriaLabel(this.momentButtonLabels.prevMoment)}}},8878:(t,e)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0})},8897:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeShareButton=void 0;const n=i(4403),o=i(8921),r=i(277);e.BlazeShareButton=class extends n.BaseWidget{constructor(){super()}static get observedAttributes(){return["size","button-type"]}get size(){return this.getAttribute("size")}set size(t){this.setAttribute("size",t)}set type(t){this.setAttribute("button-type",t)}get fontSize(){switch(this.size){case"small":return".5rem";default:case"medium":return".8rem";case"large":return"1rem"}}connectedCallback(){this.onClick&&this.addEventListener("click",this.onClick.bind(this)),this.setStyle({display:"flex",gap:".3rem",flexDirection:"column",alignItems:"center",maxWidth:"3.5rem"})}disconnectedCallback(){this.onClick&&this.removeEventListener("click",this.onClick.bind(this))}attributeChangedCallback(t,e,i){switch(t){case"size":this.onSizeChange(this.getAttribute(t));break;case"button-type":this.onTypeChange(this.getAttribute(t))}}onSizeChange(t="medium"){this.style.fontSize=this.fontSize}onTypeChange(t){"copy-link"===t&&this.createButton("Copy Link",r.IconLink)}createButton(t,e){const i=o.WidgetsFactory.create("blaze-div");i.setStyle({display:"flex",alignItems:"center",justifyContent:"center",width:"3rem",height:"3rem",borderRadius:".3rem",backgroundColor:"#b1b1b1"});const n=o.WidgetsFactory.create("blaze-div");n.setStyle({display:"block",width:"1.5rem",height:"1.5rem",cursor:"pointer",flexShrink:"0",background:"center center url('"+e+"') no-repeat",backgroundSize:"contain"});const r=o.WidgetsFactory.create("blaze-typography");r.text=t,r.setStyle({textAlign:"center"}),i.append(n),this.append(i),this.append(r)}}},8921:function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(8624),e)},8926:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.PlayerViewTemplate=void 0;const o=i(4906),r=i(9090),s=i(6576),a=i(7525);class l{static display(t,e,i){return n(this,void 0,void 0,function*(){const n=this.templates[t];if(n&&this.validateStyleType(t,i.style))switch(t){case"story":case"video":case"moment":return n.render(e,{style:i.style,actionHandlers:i.actionHandlers},i.orderByReadStatus)}})}static validateStyleType(t,e){switch(t){case"story":if(!(0,o.isStoryPlayerStyle)(e))return!1;break;case"video":if(!(0,o.isVideoPlayerStyle)(e))return!1;break;case"moment":if(!(0,o.isMomentPlayerStyle)(e))return!1}return!0}}e.PlayerViewTemplate=l,l.templates={story:new r.StoryModalTemplate,video:new s.VideoModalTemplate,moment:new a.MomentModalTemplate}},9090:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StoryModalTemplate=void 0;const n=i(5417),o=i(4545),r=i(9126),s=i(9965);e.StoryModalTemplate=class extends n.BaseModalTemplate{createModal(t,e,i){const n=new r.BlazeWidgetStoryModal(t,e,i);return n.id="blaze-story-modal-"+Math.random().toString(36),n.playerLayout=e,n}configureModal(t,e){var i;t.setModalContent(e,0,void 0),t.player.contentList.forEach(e=>{e.startTrigger="UI Button",e.refContentModal=t,e.resetStoryLocationIndexToLastUnseen()}),t.seek(null!==(i=e[0].id)&&void 0!==i?i:"")}getService(){return o.StoryService}getErrorCode(){return s.ErrorCode.FailedLoadingStories}}},9100:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CcSupportedLanguages=void 0,e.CcSupportedLanguages=[{code:"en",name:"English"},{code:"es",name:"Spanish"},{code:"fr",name:"French"},{code:"de",name:"German"},{code:"nl",name:"Dutch"},{code:"ja",name:"Japanese"},{code:"null",name:"Default"}]},9114:(t,e,i)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetItemSkeleton=void 0;const n=i(4403);class o extends n.BaseWidget{constructor(t,e,i,n){super(),this.width=e,this.thumbnailHeight=i,this.labelHeight=n,this.style.width=e+"px",this.layoutStyle=t}connectedCallback(){var t;if(this.shadowRoot)return;const e=this.attachShadow({mode:"open"}),i=document.createElement("style");i.textContent="\n      :host {\n        display: inline-block;\n        position: relative;\n        width: 100%;\n        height: 100%;\n        overflow: hidden; /* Ensure the skeleton stays within the element */\n      }\n\n      .thumbnail-loader {\n        position: absolute;\n        left: 0;\n        width: 100%;\n        background-image: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);\n        background-size: 400% 100%;\n        border-radius: "+(null===(t=this.layoutStyle)||void 0===t?void 0:t.borderRadius)+";\n        animation: loading 1.5s ease infinite;\n        z-index: 0;\n      }\n\n      .label-loader {\n        position: absolute;\n        left: 0;\n        width: 100%;\n        background-image: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);\n        background-size: 400% 100%;\n        border-radius: 5px;\n        animation: loading 1.5s ease infinite;\n        z-index: 0;\n      }\n\n      .thumbnail-loader {\n        height: "+this.thumbnailHeight+"px;\n        top: 0;\n      }\n\n      .label-loader {\n        height: "+(this.labelHeight-(0===this.layoutStyle.labelStyle.gap?4:this.layoutStyle.labelStyle.gap))+"px;\n        bottom: 0;\n      }\n\n      @keyframes loading {\n        0% {\n          background-position: 100% 0;\n        }\n        100% {\n          background-position: -100% 0;\n        }\n      }\n    ",e.appendChild(i);const n=document.createElement("div");n.classList.add("thumbnail-loader");const o=document.createElement("div");this.layoutStyle.labelStyle.isVisible&&o.classList.add("label-loader"),e.appendChild(n),this.layoutStyle.labelStyle.isVisible&&e.appendChild(o)}}e.BlazeWidgetItemSkeleton=o,customElements.get("blaze-widget-item-skeleton")||customElements.define("blaze-widget-item-skeleton",o)},9126:function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(5538),e),o(i(2240),e),o(i(1841),e),o(i(8480),e),o(i(8529),e),o(i(6569),e),o(i(1356),e),o(i(3276),e),o(i(9290),e),o(i(1381),e),o(i(5266),e),o(i(51),e),o(i(332),e),o(i(8048),e),o(i(2740),e),o(i(4248),e),o(i(612),e),o(i(3913),e),o(i(6206),e),o(i(6806),e),o(i(1518),e),o(i(7446),e),o(i(1046),e),o(i(4933),e),o(i(2827),e),o(i(9209),e),o(i(6025),e),o(i(7471),e)},9142:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FAIL_TO_LOAD_TIMEOUT_MS=e.ONE_AND_HALF_SECOND=e.ONE_SECOND=void 0,e.ONE_SECOND=1e3,e.ONE_AND_HALF_SECOND=1500,e.FAIL_TO_LOAD_TIMEOUT_MS=3e3},9164:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LOG_LEVEL_VALUES=void 0,e.isLogLevelAllowed=function(t,i){return(e.LOG_LEVEL_VALUES[t]||1)>=(e.LOG_LEVEL_VALUES[i]||1)},e.calculateLogPriority=function(t){return e.LOG_LEVEL_VALUES[t]||1};const n=i(9965);e.LOG_LEVEL_VALUES={[n.LogLevel.DEBUG]:1,[n.LogLevel.INFO]:2,[n.LogLevel.WARN]:3,[n.LogLevel.ERROR]:4,[n.LogLevel.CRITICAL]:5}},9191:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetVideoPlayer=void 0;const r=o(i(2776)),s=i(1908),a=i(4403),l=i(6450),d=i(4545),u=i(9126);e.BlazeWidgetVideoPlayer=class extends u.WidgetAbstractPlayer{constructor(t="Full Screen",e=d.VideoPlayerService){super(),this.mode=t,this.videoPlayerState=e,this.boundOnNavigationPrev=this.handlePrevDirection.bind(this),this.boundOnNavigationNext=this.handleNextDirection.bind(this),this.boundOnResize=this.calculateDesktopStyles.bind(this),this.boundOnScreenChangeByBrowser=this.handleScreenChangeByBrowser.bind(this),this.boundOnKeyDown=this.handleNavigationKeyPress.bind(this),this.boundOnReplayClick=this.handleReplayClick.bind(this),this.visibilityManager=new a.VisibilityManager(this),this.fullscreenManager=new a.FullscreenManager(this),this.pseudoFullscreenManager=new a.PseudoFullscreenManager(this),this.resumeAfterFocus=!1,this.numberOfContentInList=1}connectedCallback(){this.append(this.srcBackground),this.append(this.destBackground),this.append(this.container),this.applyStyles(),this.setupContainer(),this.setupEventListeners()}disconnectedCallback(){this.detachEventListeners()}destroy(){this.visibilityManager.detach(),this.fullscreenManager.destroy(),this.pseudoFullscreenManager.destroy()}get currentVideoItem(){return this.playerContentList[0]}setupEventListeners(){a.deviceDetector.isDesktop&&(window.addEventListener(s.EVENTS.KEYDOWN,this.boundOnKeyDown),window.addEventListener(s.EVENTS.RESIZE,this.boundOnResize)),this.addEventListener(s.VIDEO_EVENTS.NAVIGATION_PREV,this.boundOnNavigationPrev),this.addEventListener(s.VIDEO_EVENTS.NAVIGATION_NEXT,this.boundOnNavigationNext),this.addEventListener(s.VIDEO_EVENTS.REPLAY,this.boundOnReplayClick),this.fullscreenManager.onFullscreenChangeByBrowser=this.boundOnScreenChangeByBrowser}detachEventListeners(){a.deviceDetector.isDesktop&&(window.removeEventListener(s.EVENTS.KEYDOWN,this.boundOnKeyDown),window.removeEventListener(s.EVENTS.RESIZE,this.boundOnResize)),this.removeEventListener(s.VIDEO_EVENTS.NAVIGATION_PREV,this.boundOnNavigationPrev),this.removeEventListener(s.VIDEO_EVENTS.NAVIGATION_NEXT,this.boundOnNavigationNext)}tryToCloseFullscreen(){return n(this,void 0,void 0,function*(){this.fullscreenManager&&this.fullscreenManager.isFullscreenMode()?(yield this.fullscreenManager.exitFullscreen(),yield this.fullscreenManager.waitForFullscreenExit()):this.pseudoFullscreenManager.isInPseudoFullscreen()&&this.pseudoFullscreenManager.exit()})}isInPseudoFullscreen(){return this.pseudoFullscreenManager.isInPseudoFullscreen()}isCurrentlyInFullscreen(){return this.fullscreenManager.isFullscreenMode()||this.pseudoFullscreenManager.isInPseudoFullscreen()}updateFullscreenState(){var t,e;const i=this.isCurrentlyInFullscreen();this.videoPlayerState.playerLayout=i?"fullscreen":"normal",this.updateContainerStyles(),null===(e=null===(t=this.currentVideoItem)||void 0===t?void 0:t.videoOverlay)||void 0===e||e.setFullscreenState(i)}toggleFullscreen(){return n(this,void 0,void 0,function*(){var t,e;const i=this.isCurrentlyInFullscreen();this.videoPlayerState.playerLayout=i?"normal":"fullscreen",this.updateContainerStyles(),"Embedded"!==this.mode||a.deviceDetector.isFullscreenSupported?yield this.fullscreenManager.toggleFullscreen():this.pseudoFullscreenManager.toggle(
1),null===(e=null===(t=this.currentVideoItem)||void 0===t?void 0:t.widgetVastAd)||void 0===e||e.handleFullscreenChange(),this.updateFullscreenState()})}handleScreenChangeByBrowser(){var t,e,i;this.isCurrentlyInFullscreen()||null===(t=this.currentVideoItem)||void 0===t||t.setPlayerLayoutToNormal(),null===(i=null===(e=this.currentVideoItem)||void 0===e?void 0:e.widgetVastAd)||void 0===i||i.handleFullscreenChange(),this.updateFullscreenState()}applyStyles(){this.setStyle({display:"block",overflow:"hidden",height:"100%",width:"100%",minHeight:"100%",position:"relative"})}setupContainer(){return n(this,void 0,void 0,function*(){this.updateContainerStyles()})}updateContainerStyles(){if(this.pseudoFullscreenManager.isInPseudoFullscreen())return;const t=this.calculateDesktopStyles();this.container.style.cssText="",Object.assign(this.container.style,{overflow:"hidden",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",display:"flex",justifyContent:"center",alignItems:"center"}),"fullscreen"===this.videoPlayerState.playerLayout?Object.assign(this.container.style,{width:"100%",height:"100%",top:"0",left:"0",transform:"none",borderRadius:"0"}):a.deviceDetector.isMobile||a.deviceDetector.isTablet?Object.assign(this.container.style,{width:"100%",height:"100%",borderRadius:"8px"}):Object.assign(this.container.style,t),"Embedded"===this.mode&&Object.assign(this.container.style,{width:"100%",height:"100%",borderRadius:"8px",background:"black"})}calculateDesktopStyles(){const t=.9*window.innerWidth,e=.8*window.innerHeight;let i=t,n=i/(16/9);return n>e&&(i=(n=e)*(16/9)),{width:i+"px",height:n+"px",objectFit:"contain",borderRadius:"24px"}}handleDirection(t){return n(this,void 0,void 0,function*(){var e,i,n,o;if(!navigator.onLine)return;const r=this.contentList.findIndex(t=>t.data.id===this.currentVideoItem.data.id),s=this.contentList["Backwards"===t?r-1:r+1];if(!s)return this.currentVideoItem.videoOverlay.videoNavigationOverlay.showReplayButton(),void this.pause();if(null===(e=this.onContentChange)||void 0===e||e.call(this,"Backwards"===t?"PREV":"NEXT"),this.currentVideoItem.unload(),d.ConfigService.shouldAllowClosedCaptions){const t=null===(i=s.data.closedCaptions)||void 0===i?void 0:i.find(t=>""+t.language===localStorage.getItem(l.LOCAL_STORAGE_KEY_LAST_SELECTED));this.currentVideoItem.setClosedCaptions(null!==(n=null==t?void 0:t.files)&&void 0!==n?n:[]),null===(o=this.currentVideoItem.closedCaptionsModal)||void 0===o||o.reloadData(s.data.closedCaptions),this.currentVideoItem.videoOverlay.updateClosedCaptionButtonIcon(!!t)}yield this.currentVideoItem.setData(s.data),s.widgetParentItem&&this.currentVideoItem.setWidgetItemParent(s.widgetParentItem),yield this.play()})}handlePrevDirection(){this.handleDirection("Backwards")}handleNextDirection(){this.handleDirection("Forwards")}setContent(t){for(const t of this.playerContentList)t.remove();this.playerContentList=[],this.contentList=t}load(){return n(this,void 0,void 0,function*(){yield this.currentVideoItem.load()})}play(){return n(this,void 0,void 0,function*(){this.updateOverlayNavigationButtons(),yield this.load(),yield this.currentVideoItem.play(),this.currentVideoItem.event(l.VideoAction.VideoStart,{}),this.currentVideoItem.event(l.VideoAction.PlaybackInitialStart,{}),this.videoPlayerState.isPlaying=!0,this.updateOverlayNavigationPlayingState(!0)})}resume(){return n(this,void 0,void 0,function*(){yield this.currentVideoItem.play(),this.currentVideoItem.event(l.VideoAction.VideoStart,{}),this.videoPlayerState.isPlaying=!0,this.updateOverlayNavigationPlayingState(!0)})}pause(){this.currentVideoItem.pause(),this.currentVideoItem.event(l.VideoAction.VideoEnd,{}),this.videoPlayerState.isPlaying=!1,this.updateOverlayNavigationPlayingState(!1)}restart(){this.currentVideoItem.video.currentTime=0,this.currentVideoItem.videoOverlay.videoTimer.updateCurrentTime(0)}updateOverlayNavigationPlayingState(t){this.currentVideoItem.setIsPlaying(t)}updateOverlayNavigationButtons(){const t=this.currentVideoItem.data.id,e=this.contentList.findIndex(e=>e.data.id===t),i=e<this.contentList.length-1,n=e>0;this.currentVideoItem.videoOverlay.videoNavigationOverlay.setAttribute("has-next",i.toString()),this.currentVideoItem.videoOverlay.videoNavigationOverlay.setAttribute("has-prev",n.toString())}handleNavigationKeyPress(t){if(this.isNavigationBlocked||this.currentVideoItem.isPlayingAd||"video"===d.ConfigService.staticContentType)return;let e=null;switch(t.code){case s.KEY_CODES.ARROW_LEFT:e="Backwards";break;case s.KEY_CODES.ARROW_RIGHT:e="Forwards"}e&&this.handleDirection(e)}handleReplayClick(t){this.restart(),this.play()}
1createAnimation(t,e,i){return r.default.timeline()}handleAnimationStart(t,e){}handleAnimationCompletion(t,e){return n(this,void 0,void 0,function*(){})}loadAndPlayContent(){return n(this,void 0,void 0,function*(){})}preloadAdjacentContent(t){return n(this,void 0,void 0,function*(){})}prefetchPosters(){return n(this,void 0,void 0,function*(){})}onAnimationEnd(){}handleMoveSwipe(t){}handleEndSwipe(t){}resetStyles(){}render(){this.setupContainer()}}},9205:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextScaleService=void 0;class i{static initialize(){this.initialized||(this.initialized=!0,this.updateScale(),this.focusHandler=(()=>this.updateScale()),window.addEventListener("focus",this.focusHandler),this.intervalId=setInterval(()=>this.updateScale(),5e3))}static updateScale(){try{const t=parseFloat(getComputedStyle(document.documentElement).fontSize);this.scale=Math.max(1,t/this.DEFAULT_FONT_SIZE)}catch(t){this.scale=1}}static getScale(){return this.scale}static isScalingNeeded(){return this.scale>1}static scaleFontSize(t){if(null==t)return"";if(1===this.scale)return String(t);const e=String(t),i=e.match(/^([\d.]+)(.*)$/);if(!i)return e;const n=parseFloat(i[1]),o=i[2]||"px",r=n*this.scale;return""+Math.round(100*r)/100+o}static scaleLineHeight(t){if(null==t)return"";const e=String(t);return/^[\d.]+$/.test(e)?e:this.scaleFontSize(t)}static cleanup(){this.focusHandler&&(window.removeEventListener("focus",this.focusHandler),this.focusHandler=null),this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null),this.initialized=!1,this.scale=1}}e.TextScaleService=i,i.DEFAULT_FONT_SIZE=16,i.scale=1,i.initialized=!1,i.focusHandler=null,i.intervalId=null},9209:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetCaptions=void 0;const o=i(4784),r=i(4403),s=i(4906);e.BlazeWidgetCaptions=class extends HTMLElement{constructor(){super(),this.parser=new o.WebVTT.Parser(window,o.WebVTT.StringDecoder()),this.container=document.createElement("div"),this.observer=new MutationObserver(this.checkContainerContent.bind(this)),this.captions=null,this.video=null,this.startTime=0,this.cues=[];const t=this.attachShadow({mode:"open"});this.container.className="captions-container",t.appendChild(this.container),this.boundTimeUpdate=this.handleTimeUpdate.bind(this),this.boundSeekUpdate=this.handleSeekUpdate.bind(this)}static get observedAttributes(){return["is-visible","text-color"]}connectedCallback(){this.setupStyles()}disconnectedCallback(){this.cleanup()}attributeChangedCallback(t,e,i){if("is-visible"===t&&e!==i){const t="false"!==i;this.updateVisibility(t)}else"text-color"===t&&e!==i&&(this.container.style.color=i)}checkContainerContent(){var t;const e=(null!==(t=this.container.textContent)&&void 0!==t?t:"").trim().length>0;this.container.style.display=e?"block":"none"}handleTimeUpdate(t){this.video&&this.updateCaptions(this.video.currentTime-this.startTime)}handleSeekUpdate(t){this.video&&this.updateCaptions(this.video.currentTime-this.startTime)}setupTimeUpdateHandling(){var t,e;null===(t=this.video)||void 0===t||t.addEventListener("timeupdate",this.boundTimeUpdate),null===(e=this.video)||void 0===e||e.addEventListener("seeked",this.boundSeekUpdate)}cleanup(){var t,e;null===(t=this.video)||void 0===t||t.removeEventListener("timeupdate",this.boundTimeUpdate),null===(e=this.video)||void 0===e||e.removeEventListener("seeked",this.boundSeekUpdate),this.observer.disconnect()}updateVisibility(t){const e=null!=t?t:"false"!==this.getAttribute("is-visible");this.style.display=e?"block":"none"}setupStyles(){var t,e;const i=r.TextScaleService.getScale(),n=14*i,o=22.4*i,a=document.createElement("style");a.textContent="\n      .captions-container {\n        position: absolute;\n        top: 70px;\n        left: 10px;\n        background: rgba(51, 51, 51, 0.5);\n        color: "+(null!==(t=this.getAttribute("text-color"))&&void 0!==t?t:s.Colors.White)+';\n        padding: 10px;\n        z-index: 3;\n        display: block;\n        max-width: 75%;\n        unicode-bidi: plaintext;\n        white-space: pre-wrap;\n        word-break: break-word;\n        border-radius: 5px;\n        font-family: "Inter", sans-serif;\n        font-optical-sizing: auto;\n        font-style: normal;\n        font-size: '+n+"px;\n        font-weight: 700;\n        line-height: "+o+"px;\n        text-align: left;\n      }\n    ",null===(e=this.shadowRoot)||void 0===e||e.appendChild(a)}initialize(t,e){return n(this,void 0,void 0,function*(){this.video=t,this.captions=e,this.observer.observe(this.container,{childList:!0,subtree:!0,characterData:!0}
1),yield this.setupCaptions()})}setupCaptions(){return n(this,void 0,void 0,function*(){var t;if(this.video&&(null===(t=this.captions)||void 0===t?void 0:t.length))try{const t=this.captions.find(t=>t.url.endsWith(".vtt"));if(!t)return;const e=yield fetch(t.url);if(!e.ok)throw new Error("HTTP error! status: "+e.status);const i=yield e.text();this.cues=[],this.parser.oncue=(t=>{this.cues.push(new VTTCue(t.startTime+this.startTime,t.endTime+this.startTime,t.text))}),this.parser.onflush=(()=>{this.updateCaptions(0),this.setupTimeUpdateHandling()}),this.parser.parse(i),this.parser.flush()}catch(t){this.updateVisibility(!1)}})}updateCaptions(t){this.video&&(this.container.innerHTML="",this.cues.forEach(e=>{e.startTime<=t&&e.endTime>=t&&(this.container.innerHTML=e.text)}),this.checkContainerContent())}setAbsolutePosition(t){const{top:e,left:i,right:n,bottom:o}=t;this.container.style.top=null!=e?e:"unset",this.container.style.left=null!=i?i:"unset",this.container.style.right=null!=n?n:"unset",this.container.style.bottom=null!=o?o:"unset"}}},9266:function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(8154),e),o(i(9561),e),o(i(7366),e),o(i(4205),e),o(i(4578),e),o(i(5094),e),o(i(8305),e),o(i(7188),e),o(i(356),e),o(i(8016),e),o(i(8785),e),o(i(3136),e),o(i(9462),e),o(i(9843),e),o(i(1088),e),o(i(5929),e),o(i(6433),e),o(i(5182),e)},9290:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeWidgetEmbeddedVideo=void 0;const o=i(4545),r=i(1908),s=i(1356);e.BlazeWidgetEmbeddedVideo=class extends s.BlazeWidgetEmbeddedBase{constructor(){super(),this.contents=[],this.player=new r.BlazeWidgetVideoPlayer("Embedded",this.stateManager)}static get observedAttributes(){return Object.values(s.EMBEDDED_ATTRIBUTES)}setContentIds(t,e){this.setReloadData(e),this.setAttribute(s.EMBEDDED_ATTRIBUTES.ContentIds,t.join())}setId(t){this.id="widget-embedded-video-"+t}getThemeContentType(){return"video"}handleSpecificAttributeChange(t,e,i){t===s.EMBEDDED_ATTRIBUTES.ContentIds&&e&&this.reloadLogic()}handleIntersection(t){if(!this.player.currentVideoItem)return;const e=t.find(t=>t.target===this);e&&(this.isIntersecting=e.isIntersecting,"fullscreen"!==this.player.videoPlayerState.playerLayout&&(this.isIntersecting?this.playContent():this.pauseContent()))}pauseContent(){var t,e;if(!this.player.currentVideoItem)return;const i=this.player.currentVideoItem.isPlayingAd||"Ad"===(null===(t=this.player.currentVideoItem.data)||void 0===t?void 0:t.type);this.player.currentVideoItem.isPlayingAd&&(null===(e=this.player.currentVideoItem.widgetVastAd)||void 0===e||e.pause()),i||(this.stateManager.isPlaying=!1,this.player.pause())}playContent(){var t,e;if(!this.player.currentVideoItem||!this.isIntersecting)return;const i=this.player.currentVideoItem.isPlayingAd||"Ad"===(null===(t=this.player.currentVideoItem.data)||void 0===t?void 0:t.type);this.player.currentVideoItem.isPlayingAd&&(null===(e=this.player.currentVideoItem.widgetVastAd)||void 0===e||e.resume()),i||(this.stateManager.isPlaying=!0,this.player.resume())}loadContent(){return n(this,void 0,void 0,function*(){var t;this.contents=[],this.showSkeleton();const e=this.getAttribute(s.EMBEDDED_ATTRIBUTES.MaxItems),i=this.getAttribute(s.EMBEDDED_ATTRIBUTES.Labels),n=this.getAttribute(s.EMBEDDED_ATTRIBUTES.OrderType),a=this.getAttribute(s.EMBEDDED_ATTRIBUTES.ContentIds),l=this.getAttribute(s.EMBEDDED_ATTRIBUTES.LabelsPriority),d=yield o.VideoService.fetchContent({sourceType:(null==i?void 0:i.length)?"labels":(null==a?void 0:a.length)?"ids":"labels",ids:null==a?void 0:a.split(","),labels:i,orderType:n,maxItems:e,labelsPriority:l});this.defaultAdsInfo=null==d?void 0:d.defaultAdsInfo;let u=null!==(t=null==d?void 0:d.result)&&void 0!==t?t:[];this.getAttribute("should-order-widget-by-read-status")&&"Manual"!==n&&u.length&&u.sort((t,e)=>{const i=t.hasViewed?1:2;return(e.hasViewed?1:2)-i}),u.length&&(this.append(this.player),u.forEach((t,e)=>{const i=new r.BlazeVideoElement(this.stateManager);i.setTheme(this.theme.playerStyle),i.setData(t),i.setEmbeddedRef(this),i.startTrigger="Embedded Player in Viewport",this.contents.push(i)}),this.player.setContent(this.contents),this.player.seekContentById(u[0].id),this.player.play(),this.stateManager.isPlaying=!0),this.hideSkeleton()})}getAnimationTargetSelector(){return"blaze-video-element"}}},9321:(t,e)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0})},9331:function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(4458),e),o(i(1948),e)},9340:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},9369:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},9381:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateFollowStateForAnalytics=e.getFollowEntityByPriority=void 0,e.getFollowEntityByPriority=((t,e)=>{if(!e||0===(null==e?void 0:e.length))return null;if(!t||0===(null==t?void 0:t.length))return e[0];for(const i of t){if("FirstAvailable"===i)return e[0];const t=null==e?void 0:e.find(t=>t.entityType===i);if(t)return t}return null}),e.generateFollowStateForAnalytics=((t,e,i)=>{if(!t||!e||!i)return null;if(!i.isFollowing(t))return null;let n;switch(e){case"Player":n="player_id";break;case"Team":n="team_id";break;case"Property":n="property_id";break;default:return null}return JSON.stringify({[n]:t})})},9456:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CountryCodes=void 0,e.CountryCodes=["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},9462:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RegexVideoHash=e.RegexMomentHash=e.RegexStoryHash=void 0,e.RegexStoryHash=/\/?[&|?|#](blaze\/story\/[^?|&|#]*)/,e.RegexMomentHash=/\/?[&|?|#](blaze\/moment\/[^?|&|#]*)/,e.RegexVideoHash=/\/?[&|?|#](blaze\/video\/[^?|&|#]*)/},9492:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},9527:function(t,e){"use strict";var i=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.compressPayload=function(t){return i(this,void 0,void 0,function*(){try{const e="string"==typeof t?t:JSON.stringify(t),i=(new TextEncoder).encode(e),n=new CompressionStream("gzip"),o=n.writable.getWriter(),r=n.readable.getReader();o.write(i),o.close();const s=[];let a=!1;for(;!a;){const{value:t,done:e}=yield r.read();a=e,t&&s.push(t)}const l=s.reduce((t,e)=>t+e.length,0),d=new Uint8Array(l);let u=0;for(const t of s)d.set(t,u),u+=t.length;return d.buffer}catch(t){throw new Error("Payload compression failed")}})}},9535:(t,e)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.validateLoggerConfigurationDetailed=function(t){const e=[];return!!((i=t).isEnabled&&i.loggerBatchIntervalInSeconds&&i.loggerMaxAllowedBatchSize&&i.loggerMinAllowedBatchSize&&i.logLevel)||e.push("Basic configuration validation failed"),{isValid:0===e.length,errors:e};var i},e.sanitizeBatchSizeConfiguration=function(t){const e=Object.assign({},t);return e.loggerMaxAllowedBatchSize<0?(e.loggerMaxAllowedBatchSize=10,e.loggerMinAllowedBatchSize=1,e):(e.loggerMinAllowedBatchSize<0&&(e.loggerMinAllowedBatchSize=1),e.loggerMinAllowedBatchSize>e.loggerMaxAllowedBatchSize&&(e.loggerMinAllowedBatchSize=e.loggerMaxAllowedBatchSize),e)},e.shouldIgnoreLog=function(t,e){return e.some(e=>{const i=e.logIdentifier;if(!i.includes("*"))return i===t;const n=i.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*");return new RegExp("^"+n+"$").test(t)})}},9561:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isImaAdInfo=function(t){return"IMA"===t.type},e.addContextToCustomTargeting=function(t,e){for(const i in t.context){const n=t.context[i];e[i]=n}}},9565:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LongPressHandler=void 0,e.LongPressHandler=class{constructor(t){this.options=t,this.startPress=(()=>{this.pressTimer=setTimeout(()=>{this.isDuringPress=!0,this.options.onStart()},200)}),this.endPress=(t=>{clearTimeout(this.pressTimer),this.isDuringPress&&(this.options.onEnd(),this.isDuringPress=!1,t.preventDefault())}),this.isDuringPress=!1,this.isAttached=!1}attach(t){this.isAttached||(t.addEventListener("touchstart",this.startPress),t.addEventListener("touchend",this.endPress),t.addEventListener("touchcancel",this.endPress),this.isAttached=!0)}detach(t){this.isAttached&&(t.removeEventListener("touchstart",this.startPress),t.removeEventListener("touchend",this.endPress),t.removeEventListener("touchcancel",this.endPress),this.isAttached=!1)}}},9598:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VisibilityManager=void 0;const n=i(4403),o=i(1908);e.VisibilityManager=class{constructor(t){this.controller=t,this.boundHandleVisibilityChange=this.handleVisibilityChange.bind(this),this.boundHandleFocus=this.handleFocus.bind(this),this.BoundHandleBlur=this.handleBlur.bind(this),this.attachEventListeners()}attachEventListeners(){document.addEventListener(o.EVENTS.VISIBILITY_CHANGE,this.boundHandleVisibilityChange),window.addEventListener(o.EVENTS.BLUR,this.BoundHandleBlur),window.addEventListener(o.EVENTS.FOCUS,this.boundHandleFocus)}handleVisibilityChange(){this.controller.isConnected&&(document.hidden?this.handleBlur():this.handleFocus())}handleBlur(){this.controller.isConnected&&(n.deviceDetector.isDesktop&&!document.hidden&&"visible"===document.visibilityState||(!n.deviceDetector.isTablet&&!n.deviceDetector.isMobile||"visible"!==document.visibilityState||document.hidden)&&(this.controller.currentVideoItem.video.paused||(this.controller.resumeAfterFocus=!0,this.controller.pause())))}handleFocus(){if(this.controller.isConnected&&this.controller.resumeAfterFocus){this.controller.resumeAfterFocus=!1;const t="iOS"===n.deviceDetector.OS,e="Mobile Safari"===n.deviceDetector.browser,i="tablet"===n.deviceDetector.platform&&"Mac OS"===n.deviceDetector.OS,o=t&&("Safari"===n.deviceDetector.browser||"Chrome"===n.deviceDetector.browser);if(t||e||o||i)return void this.controller.pause();this.controller.resume()}}detach(){document.removeEventListener(o.EVENTS.VISIBILITY_CHANGE,this.boundHandleVisibilityChange),window.removeEventListener(o.EVENTS.BLUR,this.BoundHandleBlur),window.removeEventListener(o.EVENTS.FOCUS,this.boundHandleFocus)}}},9605:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},9641:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},9690:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},9696:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1Object.defineProperty(e,"__esModule",{value:!0}),e.BlazeDrawer=void 0;const r=o(i(2776)),s=i(4403),a=i(8921);e.BlazeDrawer=class extends s.BaseWidget{constructor(){super(),this.backdropContainer=a.WidgetsFactory.create("blaze-div"),this.drawerContainer=a.WidgetsFactory.create("blaze-div")}get drawerContainerHeight(){var t,e;return(null===(t=this.drawerOptions)||void 0===t?void 0:t.height)||(null===(e=this.drawerComponent)||void 0===e?void 0:e.style.height)||"1rem"}static get observedAttributes(){return["open","background-color","border-color","border-radius"]}connectedCallback(){this.append(this.backdropContainer),this.append(this.drawerContainer)}disconnectedCallback(){}attributeChangedCallback(t,e,i){switch(t){case"open":this.onOpenChange(this.getAttribute(t));break;case"background-color":this.drawerContainer.setStyle({backgroundColor:i});break;case"border-color":this.drawerContainer.setStyle({border:"1px solid "+i});break;case"border-radius":this.drawerContainer.setStyle({borderRadius:i})}}onOpenChange(t){return n(this,void 0,void 0,function*(){t?(this.backdropContainer.setStyle({display:"block"}),this.drawerContainer.setStyle({display:"block"}),yield this.animateDrawer(!0,this.drawerOptions)):(yield this.animateDrawer(!1,this.drawerOptions),this.backdropContainer.setStyle({display:"none"}),this.drawerContainer.setStyle({display:"none"}))})}setAttribute(t,e){super.setAttribute(t,e)}onBackdropClick(){this.close()}init(t){const{component:e}=t;this.drawerOptions=t,this.drawerComponent=e,this.drawerContainer.append(e),this.buildBackdrop(),this.buildModal()}buildBackdrop(){this.backdropContainer.onclick=this.onBackdropClick.bind(this),this.backdropContainer.setStyle({display:"none",position:"absolute",backgroundColor:"#000",opacity:".5",top:"0",bottom:"0",left:"0",right:"0",zIndex:"1",borderRadius:"desktop"===s.deviceDetector.platform||"tablet"===s.deviceDetector.platform?"20px":"0"})}buildModal(){this.drawerContainer.id="blaze-modal",this.drawerContainer.setStyle({display:"none",position:"absolute",backgroundColor:"#FFF",bottom:"-"+this.drawerContainerHeight,left:"0",right:"0",borderTopRightRadius:".5rem",borderTopLeftRadius:".5rem",height:this.drawerContainerHeight,zIndex:"5"})}open(){var t;this.setAttribute("open","true"),null===(t=this.onOpen)||void 0===t||t.call(this)}close(){var t;this.setAttribute("open","false"),null===(t=this.onClose)||void 0===t||t.call(this)}animateDrawer(t,e){return n(this,void 0,void 0,function*(){if(e)return new Promise(i=>{const n=this.querySelector("#blaze-modal");if(!n)return;let o={targets:n,duration:200,easing:"easeInQuad",complete:()=>i()};if(e){switch(e.anchor){case"top":case"right":case"left":break;case"bottom":o=Object.assign(Object.assign({},o),{bottom:t?"0":"-"+this.drawerContainerHeight})}(0,r.default)(o)}})})}}},9697:(t,e,i)=>{var n,o=void 0!==i.g?i.g:"undefined"!=typeof window?window:{},r=i(542);"undefined"!=typeof document?n=document:(n=o["__GLOBAL_DOCUMENT_CACHE@4"])||(n=o["__GLOBAL_DOCUMENT_CACHE@4"]=r),t.exports=n},9702:function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(683),e),o(i(2954),e),o(i(5925),e),o(i(147),e),o(i(8198),e),o(i(1758),e),o(i(9492),e),o(i(7497),e),o(i(6614),e),o(i(763),e),o(i(4858),e),o(i(2743),e),o(i(432),e),o(i(6426),e),o(i(4710),e),o(i(9605),e)},9777:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},9840:(t,e,i)=>{var n;n="undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{},t.exports=n},9843:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SharedEventTarget=void 0,"undefined"!=typeof window&&(()=>{if(void 0===window.EventTarget)return!0;try{return new window.EventTarget,!1}catch(t){return!0}})()&&(window.EventTarget=class{constructor(){this._listeners={}}addEventListener(t,e){e&&(this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].includes(e)||this._listeners[t].push(e))}removeEventListener(t,e){if(!e)return;const i=this._listeners[t];i&&(this._listeners[t]=i.filter(t=>t!==e),0===this._listeners[t].length&&delete this._listeners[t])}dispatchEvent(t){if(!t||"string"!=typeof t.type)return!1;const e=this._listeners[t.type];if(!e||0===e.length)return!0;const i=[...e];for(const e of i)try{"function"==typeof e?e.call(this,t):e&&"function"==typeof e.handleEvent&&e.handleEvent.call(this,t)}catch(t){}return!0}}),e.SharedEventTarget=new EventTarget},9862:(t,e)=>{"use strict";var i;
1Object.defineProperty(e,"__esModule",{value:!0}),e.ButtonState=void 0,function(t){t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Mute=2]="Mute",t[t.Unmute=3]="Unmute"}(i||(e.ButtonState=i={}))},9903:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},9917:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.WidgetsService=void 0;const o=i(4403),r=i(5785),s=i(8921),a=i(1908),l=i(9126);e.WidgetsService=class extends((0,o.Singleton)()){init(){return n(this,void 0,void 0,function*(){s.WidgetsFactory.define("blaze-widget-vast-ad",l.BlazeWidgetVastAd),s.WidgetsFactory.define("blaze-widget-ad",l.BlazeWidgetAd),s.WidgetsFactory.define("blaze-widget-embedded-story",l.BlazeWidgetEmbeddedStory),s.WidgetsFactory.define("blaze-widget-embedded-video",l.BlazeWidgetEmbeddedVideo),s.WidgetsFactory.define("blaze-widget-modal",l.BlazeWidgetModal),s.WidgetsFactory.define("blaze-widget-item",l.BlazeWidgetItem),s.WidgetsFactory.define("blaze-widget-layout",l.BlazeWidgetLayout),s.WidgetsFactory.define("blaze-widget-custom-layout",l.BlazeWidgetCustomLayout),s.WidgetsFactory.define("blaze-widget-story",l.BlazeWidgetStory),s.WidgetsFactory.define("blaze-widget-story-player",l.BlazeWidgetStoryPlayer),s.WidgetsFactory.define("blaze-widget-story-modal",l.BlazeWidgetStoryModal),s.WidgetsFactory.define("blaze-widget-moment",l.BlazeWidgetMoment),s.WidgetsFactory.define("blaze-widget-moment-player",l.BlazeWidgetMomentPlayer),s.WidgetsFactory.define("blaze-widget-moment-modal",l.BlazeWidgetMomentModal),s.WidgetsFactory.define("blaze-widget-moment-seek-bar",l.BlazeWidgetMomentSeekBar),s.WidgetsFactory.define("blaze-widget-video",l.BlazeWidgetVideo),s.WidgetsFactory.define("blaze-widget-share-modal",l.BlazeWidgetShareModal),s.WidgetsFactory.define("blaze-widget-cc-modal",l.BlazeWidgetClosedCaptionsModal),s.WidgetsFactory.define("blaze-widget-cta-modal",l.BlazeWidgetCtaModal),s.WidgetsFactory.define("blaze-widget-interaction",l.BlazeWidgetInteraction),s.WidgetsFactory.define("blaze-widget-banner-ad",l.BlazeWidgetBannerAd),s.WidgetsFactory.define("blaze-widget-captions",l.BlazeWidgetCaptions),s.WidgetsFactory.define("blaze-video-element",l.BlazeVideoElement),s.WidgetsFactory.define("blaze-video-long-form-overlay",a.BlazeLongFormControlsOverlay),s.WidgetsFactory.define("blaze-widget-video-player",a.BlazeWidgetVideoPlayer),s.WidgetsFactory.define("blaze-video-modal",a.BlazeWidgetVideoModal),s.WidgetsFactory.define("blaze-video-navigation-overlay",a.BlazeVideoNavigationOverlay),s.WidgetsFactory.define("blaze-video-seek-bar",a.BlazeVideoSeekBar),s.WidgetsFactory.define("blaze-loader",r.BlazeLoader),s.WidgetsFactory.define("blaze-chip",r.BlazeChip),s.WidgetsFactory.define("blaze-image",r.BlazeImage),s.WidgetsFactory.define("blaze-alert",r.BlazeAlert),s.WidgetsFactory.define("blaze-modal",r.BlazeDrawer),s.WidgetsFactory.define("blaze-player-menu",r.BlazePlayerMenu),s.WidgetsFactory.define("blaze-div",r.BlazeDiv),s.WidgetsFactory.define("blaze-share-button",r.BlazeShareButton),s.WidgetsFactory.define("blaze-button",r.BlazeButton),s.WidgetsFactory.define("blaze-button-cta",r.BlazeCtaButton),s.WidgetsFactory.define("blaze-call-to-action-button",r.BlazeCallToActionButton),s.WidgetsFactory.define("blaze-follow-button",r.BlazeFollowButton),s.WidgetsFactory.define("blaze-typography",r.BlazeTypography),s.WidgetsFactory.define("blaze-timer",a.BlazeTimer)})}}.getInstance()},9965:function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};
1Object.defineProperty(e,"__esModule",{value:!0}),o(i(2409),e),o(i(2506),e),o(i(7705),e),o(i(9862),e),o(i(2171),e),o(i(4765),e)},9983:function(t,e,i){"use strict";var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.VideoPlayerService=void 0;const o=i(4545),r=i(4403);e.VideoPlayerService=class extends((0,r.Singleton)()){constructor(){super(),this._isMuted=!0,this._isPlaying=!0,this._isNavigating=!1,this._isModalOpen=!1,this._isSeekBarDragging=!1,this._currentPlayedContentId="",this._playerLayoutDisplay="normal",this.muteStateBeforeAd="no-ad",this._playReference="Widget",this.updateExcludeContentIdFromURL()}init(){return n(this,void 0,void 0,function*(){})}get isMuted(){return this._isMuted}set isMuted(t){this._isMuted=t}updateExcludeContentIdFromURL(){const t=new URLSearchParams(window.location.search).get(r.URL_PARAMS.EXCLUDE_CONTENT_ID);t&&(o.ConfigService.excludeContentId=t,r.URLManager.removeStringParamsFromCurrentUrl(r.URL_PARAMS.EXCLUDE_CONTENT_ID))}get currentlyPlayedContentId(){return this._currentPlayedContentId}set currentlyPlayedContentId(t){this._currentPlayedContentId=t}get isPlaying(){return this._isPlaying}set isPlaying(t){this._isPlaying=t}get isNavigating(){return this._isNavigating}set isNavigating(t){this._isNavigating=t}get playReference(){return this._playReference}set playReference(t){this._playReference=t}get isModalOpen(){return this._isModalOpen}set isModalOpen(t){this._isModalOpen=t}get isSeekBarDragging(){return this._isSeekBarDragging}set isSeekBarDragging(t){this._isSeekBarDragging=t}get playerLayout(){return this._playerLayoutDisplay}set playerLayout(t){this._playerLayoutDisplay=t}}.getInstance()}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var r=e[n]={exports:{}};return t[n].call(r.exports,r,r.exports,i),r.exports}return i.amdO={},i.d=((t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}),i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=((t,e)=>Object.prototype.hasOwnProperty.call(t,e)),i.r=(t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}),i(8156)})()),t.exports=n()},1387:function(t,e,i){var n=i(104);n(n.S,"Reflect",{ownKeys:i(1388)})},1388:function(t,e,i){var n=i(389),o=i(436),r=i(146),s=i(124).Reflect;t.exports=s&&s.ownKeys||function(t){var e=n.f(r(t)),i=o.f;return i?e.concat(i(t)):e}},1395:function(t,e){!function(t,e){"use strict";if("IntersectionObserver"in t&&"IntersectionObserverEntry"in t&&"intersectionRatio"in t.IntersectionObserverEntry.prototype)"isIntersecting"in t.IntersectionObserverEntry.prototype||Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var i=[];o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},o.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},o.prototype._initThresholds=function(t){var e=t||[0];
1return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,i){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==i[e-1]})},o.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},o.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(r(t,"resize",this._checkForIntersections,!0),r(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},o.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(t,"resize",this._checkForIntersections,!0),s(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},o.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),i=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(o){var r=o.element,s=a(r),l=this._rootContainsTarget(r),d=o.entry,u=e&&l&&this._computeTargetAndRootIntersection(r,i),c=o.entry=new n({time:t.performance&&performance.now&&performance.now(),target:r,boundingClientRect:s,rootBounds:i,intersectionRect:u});d?e&&l?this._hasCrossedThreshold(d,c)&&this._queuedEntries.push(c):d&&d.isIntersecting&&this._queuedEntries.push(c):this._queuedEntries.push(c)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},o.prototype._computeTargetAndRootIntersection=function(i,n){if("none"!=t.getComputedStyle(i).display){for(var o,r,s,l,u,c,h,p,f=a(i),g=d(i),v=!1;!v;){var y=null,m=1==g.nodeType?t.getComputedStyle(g):{};if("none"==m.display)return;if(g==this.root||g==e?(v=!0,y=n):g!=e.body&&g!=e.documentElement&&"visible"!=m.overflow&&(y=a(g)),y&&(o=y,r=f,s=Math.max(o.top,r.top),l=Math.min(o.bottom,r.bottom),u=Math.max(o.left,r.left),p=l-s,!(f=(h=(c=Math.min(o.right,r.right))-u)>=0&&p>=0&&{top:s,bottom:l,left:u,right:c,width:h,height:p})))break;g=d(g)}return f}},o.prototype._getRootRect=function(){var t;if(this.root)t=a(this.root);else{var i=e.documentElement,n=e.body;t={top:0,left:0,right:i.clientWidth||n.clientWidth,width:i.clientWidth||n.clientWidth,bottom:i.clientHeight||n.clientHeight,height:i.clientHeight||n.clientHeight}}return this._expandRectByRootMargin(t)},o.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,i){return"px"==e.unit?e.value:e.value*(i%2?t.width:t.height)/100}),i={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return i.width=i.right-i.left,i.height=i.bottom-i.top,i},o.prototype._hasCrossedThreshold=function(t,e){var i=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(i!==n)for(var o=0;o<this.thresholds.length;o++){var r=this.thresholds[o];if(r==i||r==n||r<i!=r<n)return!0}},o.prototype._rootIsInDom=function(){return!this.root||l(e,this.root)},o.prototype._rootContainsTarget=function(t){return l(this.root||e,t)},o.prototype._registerInstance=function(){i.indexOf(this)<0&&i.push(this)},o.prototype._unregisterInstance=function(){var t=i.indexOf(this);-1!=t&&i.splice(t,1)},t.IntersectionObserver=o,t.IntersectionObserverEntry=n}function n(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,i=e.width*e.height,n=this.intersectionRect,o=n.width*n.height;this.intersectionRatio=i?o/i:this.isIntersecting?1:0}function o(t,e){var i,n,o,r=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(i=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout(function(){i(),o=null},n))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" ")}function r(t,e,i,n){"function"==typeof t.addEventListener?t.addEventListener(e,i,n||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,i)}function s(t,e,i,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,i,n||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,i)}function a(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function l(t,e){for(var i=e;i;){if(i==t)return!0;
1i=d(i)}return!1}function d(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e}}(window,document)},1396:function(t,e,i){(function(t){!function(){var e;function i(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}var n="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,i){t!=Array.prototype&&t!=Object.prototype&&(t[e]=i.value)},o="undefined"!=typeof window&&window===this?this:void 0!==t&&null!=t?t:this;function r(){r=function(){},o.Symbol||(o.Symbol=l)}var s,a,l=(s=0,function(t){return"jscomp_symbol_"+(t||"")+s++});function d(){r();var t=o.Symbol.iterator;t||(t=o.Symbol.iterator=o.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&n(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return t=i(this),d(),(t={next:t})[o.Symbol.iterator]=function(){return this},t;var t}}),d=function(){}}function u(t){var e="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):{next:i(t)}}if("function"==typeof Object.setPrototypeOf)a=Object.setPrototypeOf;else{var c;t:{var h={};try{h.__proto__={s:!0},c=h.s;break t}catch(s){}c=!1}a=c?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var p=a;function f(){this.h=!1,this.c=null,this.o=void 0,this.b=1,this.m=this.u=0,this.g=null}function g(t){if(t.h)throw new TypeError("Generator is already running");t.h=!0}function v(t,e,i){return t.b=i,{value:e}}function y(t){for(var e in this.A=t,this.l=[],t)this.l.push(e);this.l.reverse()}function m(t){this.a=new f,this.B=t}function b(t,e,i,n){try{var o=e.call(t.a.c,i);if(!(o instanceof Object))throw new TypeError("Iterator result "+o+" is not an object");if(!o.done)return t.a.h=!1,o;var r=o.value}catch(e){return t.a.c=null,t.a.j(e),S(t)}return t.a.c=null,n.call(t.a,r),S(t)}function S(t){for(;t.a.b;)try{var e=t.B(t.a);if(e)return t.a.h=!1,{value:e.value,done:!1}}catch(e){t.a.o=void 0,t.a.j(e)}if(t.a.h=!1,t.a.g){if(e=t.a.g,t.a.g=null,e.w)throw e.v;return{value:e.return,done:!0}}return{value:void 0,done:!0}}function E(t){this.next=function(e){return t.i(e)},this.throw=function(e){return t.j(e)},this.return=function(e){return function(t,e){g(t.a);var i=t.a.c;return i?b(t,"return"in i?i.return:function(t){return{value:t,done:!0}},e,t.a.return):(t.a.return(e),S(t))}(t,e)},d(),this[Symbol.iterator]=function(){return this}}function C(t,e){var i=new E(new m(e));return p&&p(i,t.prototype),i}if(f.prototype.i=function(t){this.o=t},f.prototype.j=function(t){this.g={v:t,w:!0},this.b=this.u||this.m},f.prototype.return=function(t){this.g={return:t},this.b=this.m},m.prototype.i=function(t){return g(this.a),this.a.c?b(this,this.a.c.next,t,this.a.i):(this.a.i(t),S(this))},m.prototype.j=function(t){return g(this.a),this.a.c?b(this,this.a.c.throw,t,this.a.i):(this.a.j(t),S(this))},"function"==typeof Blob&&("undefined"==typeof FormData||!FormData.prototype.keys)){var w=function(t,e){for(var i=0;i<t.length;i++)e(t[i])},A=function(t,e,i){return e instanceof Blob?[String(t),e,void 0!==i?i+"":"string"==typeof e.name?e.name:"blob"]:[String(t),String(e)]},T=function(t,e){if(t.length<e)throw new TypeError(e+" argument required, but only "+t.length+" present.")},I=function(t){var e=u(t);return t=e.next().value,e=e.next().value,t instanceof Blob&&(t=new File([t],e,{type:t.type,lastModified:t.lastModified})),t},M="object"==typeof window?window:"object"==typeof self?self:this,_=M.FormData,x=M.XMLHttpRequest&&M.XMLHttpRequest.prototype.send,P=M.Request&&M.fetch,O=M.navigator&&M.navigator.sendBeacon;r();var L=M.Symbol&&Symbol.toStringTag;L&&(Blob.prototype[L]||(Blob.prototype[L]="Blob"),"File"in M&&!File.prototype[L]&&(File.prototype[L]="File"));try{new File([],"")}catch(s){M.File=function(t,e,i){return t=new Blob(t,i),i=i&&void 0!==i.lastModified?new Date(i.lastModified):new Date,Object.defineProperties(t,{name:{value:e},lastModifiedDate:{value:i},lastModified:{value:+i},toString:{value:function(){return"[object File]"}}}),L&&Object.defineProperty(t,L,{value:"File"}),t}}r(),d();var D=function(t){if(this.f=Object.create(null),!t)return this;var e=this;w(t.elements,function(t){if(t.name&&!t.disabled&&"submit"!==t.type&&"button"!==t.type)if("file"===t.type){var i=t.files&&t.files.length?t.files:[new File([],"",{type:"application/octet-stream"})];w(i,function(i){e.append(t.name,i)})}else"select-multiple"===t.type||"select-one"===t.type?w(t.options,function(i){!i.disabled&&i.selected&&e.append(t.name,i.value)}
1):"checkbox"===t.type||"radio"===t.type?t.checked&&e.append(t.name,t.value):(i="textarea"===t.type?t.value.replace(/\r\n/g,"\n").replace(/\n/g,"\r\n"):t.value,e.append(t.name,i))})};if((e=D.prototype).append=function(t,e,i){T(arguments,2);var n=u(A.apply(null,arguments));t=n.next().value,e=n.next().value,i=n.next().value,(n=this.f)[t]||(n[t]=[]),n[t].push([e,i])},e.delete=function(t){T(arguments,1),delete this.f[String(t)]},e.entries=function t(){var e,i,n,o,r,s,a=this;return C(t,function(t){switch(t.b){case 1:e=a.f,n=new y(e);case 2:var l;t:{for(l=n;0<l.l.length;){var d=l.l.pop();if(d in l.A){l=d;break t}}l=null}if(null==(i=l)){t.b=0;break}o=u(e[i]),r=o.next();case 5:if(r.done){t.b=2;break}return s=r.value,v(t,[i,I(s)],6);case 6:r=o.next(),t.b=5}})},e.forEach=function(t,e){T(arguments,1);for(var i=u(this),n=i.next();!n.done;n=i.next()){var o=u(n.value);n=o.next().value,o=o.next().value,t.call(e,o,n,this)}},e.get=function(t){T(arguments,1);var e=this.f;return e[t=String(t)]?I(e[t][0]):null},e.getAll=function(t){return T(arguments,1),(this.f[String(t)]||[]).map(I)},e.has=function(t){return T(arguments,1),String(t)in this.f},e.keys=function t(){var e,i,n=this;return C(t,function(t){if(1==t.b&&(e=u(n),i=e.next()),3!=t.b)return i.done?void(t.b=0):v(t,u(i.value).next().value,3);i=e.next(),t.b=2})},e.set=function(t,e,i){T(arguments,2);var n=A.apply(null,arguments);this.f[n[0]]=[[n[1],n[2]]]},e.values=function t(){var e,i,n,o,r=this;return C(t,function(t){if(1==t.b&&(e=u(r),i=e.next()),3!=t.b)return i.done?void(t.b=0):(n=i.value,(o=u(n)).next(),v(t,o.next().value,3));i=e.next(),t.b=2})},D.prototype._asNative=function(){for(var t=new _,e=u(this),i=e.next();!i.done;i=e.next()){var n=u(i.value);i=n.next().value,n=n.next().value,t.append(i,n)}return t},D.prototype._blob=function(){for(var t="----formdata-polyfill-"+Math.random(),e=[],i=u(this),n=i.next();!n.done;n=i.next()){var o=u(n.value);n=o.next().value,o=o.next().value,e.push("--"+t+"\r\n"),o instanceof Blob?e.push('Content-Disposition: form-data; name="'+n+'"; filename="'+o.name+'"\r\n',"Content-Type: "+(o.type||"application/octet-stream")+"\r\n\r\n",o,"\r\n"):e.push('Content-Disposition: form-data; name="'+n+'"\r\n\r\n'+o+"\r\n")}return e.push("--"+t+"--"),new Blob(e,{type:"multipart/form-data; boundary="+t})},D.prototype[Symbol.iterator]=function(){return this.entries()},D.prototype.toString=function(){return"[object FormData]"},L&&(D.prototype[L]="FormData"),x&&(M.XMLHttpRequest.prototype.send=function(t){t instanceof D?(t=t._blob(),this.setRequestHeader("Content-Type",t.type),x.call(this,t)):x.call(this,t)}),P){var k=M.fetch;M.fetch=function(t,e){return e&&e.body&&e.body instanceof D&&(e.body=e.body._blob()),k.call(this,t,e)}}O&&(M.navigator.sendBeacon=function(t,e){return e instanceof D&&(e=e._asNative()),O.call(this,t,e)}),M.FormData=D}}()}).call(this,i(101))},1397:function(t,e,i){"use strict";var n={searchParams:"URLSearchParams"in self,iterable:"Symbol"in self&&"iterator"in Symbol,blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self};if(n.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&o.indexOf(Object.prototype.toString.call(t))>-1};function s(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function l(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n.iterable&&(e[Symbol.iterator]=function(){return e}),e}function d(t){this.map={},t instanceof d?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function u(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function c(t){return new Promise(function(e,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}})}function h(t){var e=new FileReader,i=c(e);return e.readAsArrayBuffer(t),i}function p(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:n.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:n.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():n.arrayBuffer&&n.blob&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=p(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=p(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var t=u(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?u(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t,e,i,n=u(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,i=c(e=new FileReader),e.readAsText(t),i;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),n=0;n<e.length;n++)i[n]=String.fromCharCode(e[n]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(t,e){t=s(t),e=a(e);var i=this.map[t];this.map[t]=i?i+", "+e:e},d.prototype.delete=function(t){delete this.map[s(t)]},d.prototype.get=function(t){return t=s(t),this.has(t)?this.map[t]:null},d.prototype.has=function(t){return this.map.hasOwnProperty(s(t))},d.prototype.set=function(t,e){this.map[s(t)]=a(e)},d.prototype.forEach=function(t,e){for(var i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},d.prototype.keys=function(){var t=[];return this.forEach(function(e,i){t.push(i)}),l(t)},d.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),l(t)}
vendor: 4,582 bytes, lines 1-8
1,d.prototype.entries=function(){var t=[];return this.forEach(function(e,i){t.push([i,e])}),l(t)},n.iterable&&(d.prototype[Symbol.iterator]=d.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(t,e){var i,n,o=(e=e||{}).body;if(t instanceof v){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new d(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new d(e.headers)),this.method=(n=(i=e.method||this.method||"GET").toUpperCase(),g.indexOf(n)>-1?n:i),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function y(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var i=t.split("="),n=i.shift().replace(/\+/g," "),o=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}}),e}function m(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new d(e.headers),this.url=e.url||"",this._initBody(t)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},f.call(v.prototype),f.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},m.error=function(){var t=new m(null,{status:0,statusText:""});return t.type="error",t};var b=[301,302,303,307,308];m.redirect=function(t,e){if(-1===b.indexOf(e))throw new RangeError("Invalid status code");return new m(null,{status:e,headers:{location:t}})};var S=self.DOMException;try{new S}catch(t){(S=function(t,e){this.message=t,this.name=e;var i=Error(t);this.stack=i.stack}).prototype=Object.create(Error.prototype),S.prototype.constructor=S}function E(t,e){return new Promise(function(i,o){var r=new v(t,e);if(r.signal&&r.signal.aborted)return o(new S("Aborted","AbortError"));var s=new XMLHttpRequest;function a(){s.abort()}s.onload=function(){var t,e,n={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new d,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var i=t.split(":"),n=i.shift().trim();if(n){var o=i.join(":").trim();e.append(n,o)}}),e)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;i(new m(o,n))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new S("Aborted","AbortError"))},s.open(r.method,r.url,!0),"include"===r.credentials?s.withCredentials=!0:"omit"===r.credentials&&(s.withCredentials=!1),"responseType"in s&&n.blob&&(s.responseType="blob"),r.headers.forEach(function(t,e){s.setRequestHeader(e,t)}),r.signal&&(r.signal.addEventListener("abort",a),s.onreadystatechange=function(){4===s.readyState&&r.signal.removeEventListener("abort",a)}),s.send(void 0===r._bodyInit?null:r._bodyInit)})}E.polyfill=!0,self.fetch||(self.fetch=E,self.Headers=d,self.Request=v,self.Response=m)},1398:function(t,e,i){
2/**
3 * what-input - A global utility for tracking the current input method (mouse, keyboard or touch).
4 * @version v5.2.1
5 * @link https://github.com/ten1seven/what-input
6 * @license MIT
7 */
8var n;n=function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var o=e[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}return i.m=t,i.c=e,i.p="",i(0)}([function(t,e){"use strict";t.exports=function(){if("undefined"==typeof document||"undefined"==typeof window)return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var t=document.documentElement,e=null,i="initial",n=i,o=Date.now();try{window.sessionStorage.getItem("what-input")&&(i=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(n=window.sessionStorage.getItem("what-intent"))}catch(t){}var r=["button","input","select","textarea"],s=[],a=[16,17,18,91,93],l=[],d={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mou
8se",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},u=!1,c={x:null,y:null},h={2:"touch",3:"touch",4:"mouse"},p=!1;try{var f=Object.defineProperty({},"passive",{get:function(){p=!0}});window.addEventListener("test",null,f)}catch(t){}var g,v=function(t){var e=t.which,o=d[t.type];"pointer"===o&&(o=S(t));var s=!l.length&&-1===a.indexOf(e),u=l.length&&-1!==l.indexOf(e),c="keyboard"===o&&e&&(s||u)||"mouse"===o||"touch"===o;if(E(o)&&(c=!1),c&&i!==o){i=o;try{window.sessionStorage.setItem("what-input",i)}catch(t){}y("input")}if(c&&n!==o){var h=document.activeElement;if(h&&h.nodeName&&-1===r.indexOf(h.nodeName.toLowerCase())||"button"===h.nodeName.toLowerCase()&&!T(h,"form")){n=o;try{window.sessionStorage.setItem("what-intent",n)}catch(t){}y("intent")}}},y=function(e){t.setAttribute("data-what"+e,"input"===e?i:n),w(e)},m=function(t){var e=d[t.type];if("pointer"===e&&(e=S(t)),A(t),!u&&!E(e)&&n!==e){n=e;try{window.sessionStorage.setItem("what-intent",n)}catch(t){}y("intent")}},b=function(){e=null,t.removeAttribute("data-whatelement"),t.removeAttribute("data-whatclasses")},S=function(t){return"number"==typeof t.pointerType?h[t.pointerType]:"pen"===t.pointerType?"touch":t.pointerType},E=function(t){var e=Date.now(),n="mouse"===t&&"touch"===i&&e-o<200;return o=e,n},C=function(){return"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll"},w=function(t){for(var e=0,o=s.length;e<o;e++)s[e].type===t&&s[e].fn.call(void 0,"input"===t?i:n)},A=function(t){c.x!==t.screenX||c.y!==t.screenY?(u=!1,c.x=t.screenX,c.y=t.screenY):u=!0},T=function(t,e){var i=window.Element.prototype;if(i.matches||(i.matches=i.msMatchesSelector||i.webkitMatchesSelector),i.closest)return t.closest(e);do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null};return"addEventListener"in window&&Array.prototype.indexOf&&(d[C()]="mouse",g=!!p&&{passive:!0},window.PointerEvent?(window.addEventListener("pointerdown",v),window.addEventListener("pointermove",m)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",v),window.addEventListener("MSPointerMove",m)):(window.addEventListener("mousedown",v),window.addEventListener("mousemove",m),"ontouchstart"in window&&(window.addEventListener("touchstart",v,g),window.addEventListener("touchend",v))),window.addEventListener(C(),m,g),window.addEventListener("keydown",v),window.addEventListener("keyup",v),window.addEventListener("focusin",function(i){i.target.nodeName?(e=i.target.nodeName.toLowerCase(),t.setAttribute("data-whatelement",e),i.target.classList&&i.target.classList.length&&t.setAttribute("data-whatclasses",i.target.classList.toString().replace(" ",","))):b()}),window.addEventListener("focusout",b),y("input"),y("intent")),{ask:function(t){return"intent"===t?n:i},element:function(){return e},ignoreKeys:function(t){a=t},specificKeys:function(t){l=t},registerOnChange:function(t,e){s.push({fn:t,type:e||"input"})},unRegisterOnChange:function(t){var e=function(t){for(var e=0,i=s.length;e<i;e++)if(s[e].fn===t)return e}(t);(e||0===e)&&s.splice(e,1)}}}()}])},t.exports=n()},1401:function(t,e){(function(e){t.exports=e}).call(this,{})},1462:function(t,e,i){var n=i(0),o=i(819),r=i(820),s=r.setStyleProp;function a(t){return r.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===t.type&&r.isCustomComponent(t.name,t.attribs)}t.exports=function t(e,i){for(var r,l,d,u,c=(i=i||{}).library||n,h=c.cloneElement,p=c.createElement,f=c.isValidElement,g=[],v="function"==typeof i.replace,y=i.trim,m=0,b=e.length;m<b;m++)if(r=e[m],v&&f(l=i.replace(r)))b>1&&(l=h(l,{key:l.key||m})),g.push(l);else if("text"!==r.type){switch(d=r.attribs,a(r)?s(d.style,d):d&&(d=o(d)),u=null,r.type){case"script":case"style":r.children[0]&&(d.dangerouslySetInnerHTML={__html:r.children[0].data});break;case"tag":"textarea"===r.name&&r.children[0]?d.defaultValue=r.children[0].data:r.children&&r.children.length&&(u=t(r.children,i));break;default:continue}b>1&&(d.key=m),g.push(p(r.name,d,u))}else y?r.data.trim()&&g.push(r.data):g.push(r.data);return 1===g.length?g[0]:g}}
8,1463:function(t,e,i){var n=i(1464),o=i(1465),r=i(1466),s=r.MUST_USE_PROPERTY,a=r.HAS_BOOLEAN_VALUE,l=r.HAS_NUMERIC_VALUE,d=r.HAS_POSITIVE_NUMERIC_VALUE,u=r.HAS_OVERLOADED_BOOLEAN_VALUE;function c(t,e){return(t&e)===e}function h(t,e,i){var n,o,r,h=t.Properties,p=t.DOMAttributeNames;for(o in h)n=p[o]||(i?o:o.toLowerCase()),r=h[o],e[n]={attributeName:n,propertyName:o,mustUseProperty:c(r,s),hasBooleanValue:c(r,a),hasNumericValue:c(r,l),hasPositiveNumericValue:c(r,d),hasOverloadedBooleanValue:c(r,u)}}var p={};h(n,p);var f={};h(o,f,!0);var g={};h(n,g),h(o,g,!0),t.exports={html:p,svg:f,properties:g,isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"))}},1464:function(t,e){t.exports={Properties:{autoFocus:4,accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:4,allowTransparency:0,alt:0,as:0,async:4,autoComplete:0,autoPlay:4,capture:4,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:5,cite:0,classID:0,className:0,cols:24,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:4,controlsList:0,coords:0,crossOrigin:0,data:0,dateTime:0,default:4,defer:4,dir:0,disabled:4,download:32,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:4,formTarget:0,frameBorder:0,headers:0,height:0,hidden:4,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:4,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:5,muted:5,name:0,nonce:0,noValidate:4,open:4,optimum:0,pattern:0,placeholder:0,playsInline:4,poster:0,preload:0,profile:0,radioGroup:0,readOnly:4,referrerPolicy:0,rel:0,required:4,reversed:4,role:0,rows:24,rowSpan:8,sandbox:0,scope:0,scoped:4,scrolling:0,seamless:4,selected:5,shape:0,size:24,sizes:0,span:24,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:8,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:4,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"}}},1465:function(t,e){t.exports={Properties:{accentHeight:0,accumulate:0,additive:0,alignmentBaseline:0,allowReorder:0,alphabetic:0,amplitude:0,arabicForm:0,ascent:0,attributeName:0,attributeType:0,autoReverse:0,azimuth:0,baseFrequency:0,baseProfile:0,baselineShift:0,bbox:0,begin:0,bias:0,by:0,calcMode:0,capHeight:0,clip:0,clipPath:0,clipRule:0,clipPathUnits:0,colorInterpolation:0,colorInterpolationFilters:0,colorProfile:0,colorRendering:0,contentScriptType:0,contentStyleType:0,cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:0,direction:0,display:0,divisor:0,dominantBaseline:0,dur:0,dx:0,dy:0,edgeMode:0,elevation:0,enableBackground:0,end:0,exponent:0,externalResourcesRequired:0,fill:0,fillOpacity:0,fillRule:0,filter:0,filterRes:0,filterUnits:0,floodColor:0,floodOpacity:0,focusable:0,fontFamily:0,fontSize:0,fontSizeAdjust:0,fontStretch:0,fontStyle:0,fontVariant:0,fontWeight:0,format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:0,glyphOrientationHorizontal:0,glyphOrientationVertical:0,glyphRef:0,gradientTransform:0,gradientUnits:0,hanging:0,horizAdvX:0,horizOriginX:0,ideographic:0,imageRendering:0,in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:0,kernelUnitLength:0,kerning:0,keyPoints:0,keySplines:0,keyTimes:0,lengthAdjust:0,letterSpacing:0,lightingColor:0,limitingConeAngle:0,local:0,markerEnd:0,markerMid:0,markerStart:0,markerHeight:0,markerUnits:0,markerWidth:0,mask:0,maskContentUnits:0,maskUnits:0,mathematical:0,mode:0,numOctaves:0,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:0,overlineThickness:0,paintOrder:0,panose1:0,pathLength:0,patternContentUnits:0,patternTransform:0,patternUnits:0,pointerEvents:0,points:0,pointsAtX:0,pointsAtY:0,pointsAtZ:0,preserveAlpha:0,preserveAspectRatio:0,primitiveUnits:0,r:0,radius:0,refX:0,refY:0,renderingIntent:0,repeatCount:0,repeatDur:0,requiredExtensions:0,requiredFeatures:0,restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:0,slope:0,spacing:0,specularConstant:0,specularExponent:0,speed:0,spreadMethod:0,startOffset:0,stdDeviation:0,stemh:0,stemv:0,stitchTiles:0,stopColor:0,stopOpacity:0,strikethroughPosition:0,strikethroughThickness:0,string:0,stroke:0,strokeDasharray:0,strokeDashoffset:0,strokeLinecap:0,strokeLinejoin:0,strokeMiterlimit:0,strokeOpacity:0,strokeWidth:0,surfaceScale:0,systemLanguage:0,tableValues:0,targetX:0,targetY:0,textAnchor:0,textDecoration:0,textRendering:0,textLength:0,to:0,transform:0,u1:0,u2:0,underlinePosition:0,underlineThickness:0,unicode:0,unicodeBidi:0,unicodeRange:0,unitsPerEm:0,vAlphabetic:0,vHanging:0,vIdeographic:0,vMathematical:0,values:0,vectorEffect:0,version:0,vertAdvY:0,vertOriginX:0,vertOriginY:0,viewBox:0,viewTarget:0,visibility:0,widths:0,wordSpacing:0,writingMode:0,x:0,xHeight:0,x1:0,x2:0,xChannelSelector:0,xl
8inkActuate:0,xlinkArcrole:0,xlinkHref:0,xlinkRole:0,xlinkShow:0,xlinkTitle:0,xlinkType:0,xmlBase:0,xmlns:0,xmlnsXlink:0,xmlLang:0,xmlSpace:0,y:0,y1:0,y2:0,yChannelSelector:0,z:0,zoomAndPan:0},DOMAttributeNames:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space"}}},1466:function(t,e){t.exports={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32}},1467:function(t,e,i){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
vendor: 4,444 bytes, line 8
8e.__esModule=!0;var o=n(i(1468)),r=i(1470);e.default=function(t,e){var i={};return t&&"string"==typeof t?(o.default(t,function(t,n){t&&n&&(i[r.camelCase(t,e)]=n)}),i):i}},1468:function(t,e,i){var n=i(1469);t.exports=function(t,e){var i,o=null;if(!t||"string"!=typeof t)return o;for(var r,s,a=n(t),l="function"==typeof e,d=0,u=a.length;d<u;d++)r=(i=a[d]).property,s=i.value,l?e(r,s,i):s&&(o||(o={}),o[r]=s);return o}},1469:function(t,e){var i=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,o=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,d=/^\s+|\s+$/g,u="\n",c="/",h="*",p="",f="comment",g="declaration";function v(t){return t?t.replace(d,p):p}t.exports=function(t,e){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var d=1,y=1;function m(t){var e=t.match(n);e&&(d+=e.length);var i=t.lastIndexOf(u);y=~i?t.length-i:y+t.length}function b(){var t={line:d,column:y};return function(e){return e.position=new S(t),A(),e}}function S(t){this.start=t,this.end={line:d,column:y},this.source=e.source}S.prototype.content=t;var E=[];function C(i){var n=new Error(e.source+":"+d+":"+y+": "+i);if(n.reason=i,n.filename=e.source,n.line=d,n.column=y,n.source=t,!e.silent)throw n;E.push(n)}function w(e){var i=e.exec(t);if(i){var n=i[0];return m(n),t=t.slice(n.length),i}}function A(){w(o)}function T(t){var e;for(t=t||[];e=I();)!1!==e&&t.push(e);return t}function I(){var e=b();if(c==t.charAt(0)&&h==t.charAt(1)){for(var i=2;p!=t.charAt(i)&&(h!=t.charAt(i)||c!=t.charAt(i+1));)++i;if(i+=2,p===t.charAt(i-1))return C("End of comment missing");var n=t.slice(2,i-2);return y+=2,m(n),t=t.slice(i),y+=2,e({type:f,comment:n})}}function M(){var t=b(),e=w(r);if(e){if(I(),!w(s))return C("property missing ':'");var n=w(a),o=t({type:g,property:v(e[0].replace(i,p)),value:n?v(n[0].replace(i,p)):p});return w(l),o}}return A(),function(){var t,e=[];for(T(e);t=M();)!1!==t&&(e.push(t),T(e));return e}()}},1470:function(t,e,i){"use strict";e.__esModule=!0,e.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,o=/-([a-z])/g,r=/^[^-]+$/,s=/^-(webkit|moz|ms|o|khtml)-/,a=function(t,e){return e.toUpperCase()},l=function(t,e){return e+"-"};e.camelCase=function(t,e){return void 0===e&&(e={}),function(t){return!t||r.test(t)||n.test(t)}(t)?t:(t=t.toLowerCase(),e.reactCompat||(t=t.replace(s,l)),t.replace(o,a))}},1471:function(t,e,i){var n=i(1472),o=i(821).formatDOM,r=/<(![a-zA-Z\s]+)>/;t.exports=function(t){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(""===t)return[];var e,i=t.match(r);return i&&i[1]&&(e=i[1]),o(n(t),null,e)}},1472:function(t,e,i){var n=/<([a-zA-Z]+[0-9]?)/,o=/<head.*>/i,r=/<body.*>/i,s=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},a=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var l=new window.DOMParser;s=a=function(t,e){return e&&(t="<"+e+">"+t+"</"+e+">"),l.parseFromString(t,"text/html")}}if(document.implementation){var d=i(821).isIE,u=document.implementation.createHTMLDocument(d()?"html-dom-parser":void 0);s=function(t,e){return e?(u.documentElement.getElementsByTagName(e)[0].innerHTML=t,u):(u.documentElement.innerHTML=t,u)}}var c,h=document.createElement("template");h.content&&(c=function(t){return h.innerHTML=t,h.content.childNodes}),t.exports=function(t){var e,i,l,d,u=t.match(n);switch(u&&u[1]&&(e=u[1].toLowerCase()),e){case"html":return i=a(t),o.test(t)||(l=i.getElementsByTagName("head")[0])&&l.parentNode.removeChild(l),r.test(t)||(l=i.getElementsByTagName("body")[0])&&l.parentNode.removeChild(l),i.getElementsByTagName("html");case"head":case"body":return d=s(t).getElementsByTagName(e),r.test(t)&&o.test(t)?d[0].parentNode.childNodes:d;default:return c?c(t):s(t,"body").getElementsByTagName("body")[0].childNodes}}},1473:function(t,e){t.exports={CASE_SENSITIVE_TAG_NAMES:["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]}}
8,1474:function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.cloneNode=e.Element=e.Document=e.NodeWithChildren=e.ProcessingInstruction=e.Comment=e.Text=e.DataNode=e.Node=void 0;var s=new Map([["tag",1],["script",1],["style",1],["directive",1],["text",3],["cdata",4],["comment",8],["root",9]]),a=function(){function t(t){this.type=t,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(t.prototype,"nodeType",{get:function(){var t;return null!==(t=s.get(this.type))&&void 0!==t?t:1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),t.prototype.cloneNode=function(t){return void 0===t&&(t=!1),g(this,t)},t}();e.Node=a;var l=function(t){function e(e,i){var n=t.call(this,e)||this;return n.data=i,n}return o(e,t),Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(t){this.data=t},enumerable:!1,configurable:!0}),e}(a);e.DataNode=l;var d=function(t){function e(e){return t.call(this,"text",e)||this}return o(e,t),e}(l);e.Text=d;var u=function(t){function e(e){return t.call(this,"comment",e)||this}return o(e,t),e}(l);e.Comment=u;var c=function(t){function e(e,i){var n=t.call(this,"directive",i)||this;return n.name=e,n}return o(e,t),e}(l);e.ProcessingInstruction=c;var h=function(t){function e(e,i){var n=t.call(this,e)||this;return n.children=i,n}return o(e,t),Object.defineProperty(e.prototype,"firstChild",{get:function(){var t;return null!==(t=this.children[0])&&void 0!==t?t:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(t){this.children=t},enumerable:!1,configurable:!0}),e}(a);e.NodeWithChildren=h;var p=function(t){function e(e){return t.call(this,"root",e)||this}return o(e,t),e}(h);e.Document=p;var f=function(t){function e(e,i,n){void 0===n&&(n=[]);var o=t.call(this,"script"===e?"script":"style"===e?"style":"tag",n)||this;return o.name=e,o.attribs=i,o.attribs=i,o}return o(e,t),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(t){this.name=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var t=this;return Object.keys(this.attribs).map(function(e){var i,n;return{name:e,value:t.attribs[e],namespace:null===(i=t["x-attribsNamespace"])||void 0===i?void 0:i[e],prefix:null===(n=t["x-attribsPrefix"])||void 0===n?void 0:n[e]}})},enumerable:!1,configurable:!0}),e}(h);function g(t,e){var i;switch(void 0===e&&(e=!1),t.type){case"text":i=new d(t.data);break;case"directive":var n=t;i=new c(n.name,n.data),null!=n["x-name"]&&(i["x-name"]=n["x-name"],i["x-publicId"]=n["x-publicId"],i["x-systemId"]=n["x-systemId"]);break;case"comment":i=new u(t.data);break;case"tag":case"script":case"style":var o=t,s=e?v(o.children):[],a=new f(o.name,r({},o.attribs),s);s.forEach(function(t){return t.parent=a}),o["x-attribsNamespace"]&&(a["x-attribsNamespace"]=r({},o["x-attribsNamespace"])),o["x-attribsPrefix"]&&(a["x-attribsPrefix"]=r({},o["x-attribsPrefix"])),i=a;break;case"cdata":s=e?v(t.children):[];var l=new h(t.type,s);
vendor: 4,104 bytes, line 8
8s.forEach(function(t){return t.parent=l}),i=l;break;case"root":var g=t,y=(s=e?v(g.children):[],new p(s));s.forEach(function(t){return t.parent=y}),g["x-mode"]&&(y["x-mode"]=g["x-mode"]),i=y;break;case"doctype":throw new Error("Not implemented yet: ElementType.Doctype case")}return i.startIndex=t.startIndex,i.endIndex=t.endIndex,i}function v(t){for(var e=t.map(function(t){return g(t,!0)}),i=1;i<e.length;i++)e[i].prev=e[i-1],e[i-1].next=e[i];return e}e.Element=f,e.cloneNode=g},1530:function(t,e,i){"use strict";var n=i(1531),o=i(829);t.exports=i(1532)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(o(this,"Set"),t=0===t?0:t,t)}},n)},1531:function(t,e,i){"use strict";var n=i(179).f,o=i(435),r=i(567),s=i(247),a=i(564),l=i(565),d=i(545),u=i(671),c=i(568),h=i(180),p=i(437).fastKey,f=i(829),g=h?"_s":"size",v=function(t,e){var i,n=p(e);if("F"!==n)return t._i[n];for(i=t._f;i;i=i.n)if(i.k==e)return i};t.exports={getConstructor:function(t,e,i,d){var u=t(function(t,n){a(t,u,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[g]=0,null!=n&&l(n,i,t[d],t)});return r(u.prototype,{clear:function(){for(var t=f(this,e),i=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete i[n.i];t._f=t._l=void 0,t[g]=0},delete:function(t){var i=f(this,e),n=v(i,t);if(n){var o=n.n,r=n.p;delete i._i[n.i],n.r=!0,r&&(r.n=o),o&&(o.p=r),i._f==n&&(i._f=o),i._l==n&&(i._l=r),i[g]--}return!!n},forEach:function(t){f(this,e);for(var i,n=s(t,arguments.length>1?arguments[1]:void 0,3);i=i?i.n:this._f;)for(n(i.v,i.k,this);i&&i.r;)i=i.p},has:function(t){return!!v(f(this,e),t)}}),h&&n(u.prototype,"size",{get:function(){return f(this,e)[g]}}),u},def:function(t,e,i){var n,o,r=v(t,e);return r?r.v=i:(t._l=r={i:o=p(e,!0),k:e,v:i,p:n=t._l,n:void 0,r:!1},t._f||(t._f=r),n&&(n.n=r),t[g]++,"F"!==o&&(t._i[o]=r)),t},getEntry:v,setStrong:function(t,e,i){d(t,e,function(t,i){this._t=f(t,e),this._k=i,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?u(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,u(1))},i?"entries":"values",!i,!0),c(e)}}},1532:function(t,e,i){"use strict";var n=i(124),o=i(104),r=i(208),s=i(567),a=i(437),l=i(565),d=i(564),u=i(162),c=i(157),h=i(569),p=i(380),f=i(582);t.exports=function(t,e,i,g,v,y){var m=n[t],b=m,S=v?"set":"add",E=b&&b.prototype,C={},w=function(t){var e=E[t];r(E,t,"delete"==t?function(t){return!(y&&!u(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(y&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!u(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,i){return e.call(this,0===t?0:t,i),this})};if("function"==typeof b&&(y||E.forEach&&!c(function(){(new b).entries().next()}))){var A=new b,T=A[S](y?{}:-0,1)!=A,I=c(function(){A.has(1)}),M=h(function(t){new b(t)}),_=!y&&c(function(){for(var t=new b,e=5;e--;)t[S](e,e);return!t.has(-0)});M||((b=e(function(e,i){d(e,b,t);var n=f(new m,e,b);return null!=i&&l(i,v,n[S],n),n})).prototype=E,E.constructor=b),(I||_)&&(w("delete"),w("has"),v&&w("get")),(_||T)&&w(S),y&&E.clear&&delete E.clear}else b=g.getConstructor(e,t,v,S),s(b.prototype,i),a.NEED=!0;return p(b,t),C[t]=b,o(o.G+o.W+o.F*(b!=m),C),y||g.setStrong(b,t,v),b}},1551:function(t,e,i){var n=i(124).parseInt,o=i(794).trim,r=i(795),s=/^[-+]?0[xX]/;t.exports=8!==n(r+"08")||22!==n(r+"0x16")?function(t,e){var i=o(String(t),3);return n(i,e>>>0||(s.test(i)?16:10))}:n},1555:function(t,e){var i=self.crypto||self.msCrypto;t.exports=function(t){return i.getRandomValues(new Uint8Array(t))}},1556:function(t,e){t.exports=function(t,e,i){for(var n=(2<<Math.log(e.length-1)/Math.LN2)-1,o=Math.ceil(1.6*n*i/e.length),r="";;)for(var s=t(o),a=0;a<o;a++){var l=s[a]&n;if(e[l]&&(r+=e[l]).length===i)return r}}},1559:function(t,e,i){"use strict";var n=i(104),o=i(1560),r=i(721);n(n.P+n.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(r),"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},1560:function(t,e,i){var n=i(225),o=i(1561),r=i(223);
vendor: 4,153 bytes, lines 8-35
8t.exports=function(t,e,i,s){var a=String(r(t)),l=a.length,d=void 0===i?" ":String(i),u=n(e);if(u<=l||""==d)return a;var c=u-l,h=o.call(d,Math.ceil(c/d.length));return h.length>c&&(h=h.slice(0,c)),s?h+a:a+h}},1561:function(t,e,i){"use strict";var n=i(379),o=i(223);t.exports=function(t){var e=String(o(this)),i="",r=n(t);if(r<0||r==1/0)throw RangeError("Count can't be negative");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(i+=e);return i}},1573:function(t,e,i){var n;
9/*!
10 * jQuery JavaScript Library v3.6.0
11 * https://jquery.com/
12 *
13 * Includes Sizzle.js
14 * https://sizzlejs.com/
15 *
16 * Copyright OpenJS Foundation and other contributors
17 * Released under the MIT license
18 * https://jquery.org/license
19 *
20 * Date: 2021-03-02T17:08Z
21 */
22/*!
23 * jQuery JavaScript Library v3.6.0
24 * https://jquery.com/
25 *
26 * Includes Sizzle.js
27 * https://sizzlejs.com/
28 *
29 * Copyright OpenJS Foundation and other contributors
30 * Released under the MIT license
31 * https://jquery.org/license
32 *
33 * Date: 2021-03-02T17:08Z
34 */
35!function(e,i){"use strict";"object"==typeof t.exports?t.exports=e.document?i(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return i(t)}:i(e)}("undefined"!=typeof window?window:this,function(i,o){"use strict";var r=[],s=Object.getPrototypeOf,a=r.slice,l=r.flat?function(t){return r.flat.call(t)}:function(t){return r.concat.apply([],t)},d=r.push,u=r.indexOf,c={},h=c.toString,p=c.hasOwnProperty,f=p.toString,g=f.call(Object),v={},y=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},m=function(t){return null!=t&&t===t.window},b=i.document,S={type:!0,src:!0,nonce:!0,noModule:!0};function E(t,e,i){var n,o,r=(i=i||b).createElement("script");if(r.text=t,e)for(n in S)(o=e[n]||e.getAttribute&&e.getAttribute(n))&&r.setAttribute(n,o);i.head.appendChild(r).parentNode.removeChild(r)}function C(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?c[h.call(t)]||"object":typeof t}var w=function(t,e){return new w.fn.init(t,e)};function A(t){var e=!!t&&"length"in t&&t.length,i=C(t);return!y(t)&&!m(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}w.fn=w.prototype={jquery:"3.6.0",constructor:w,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=w.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return w.each(this,t)},map:function(t){return this.pushStack(w.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(w.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:d,sort:r.sort,splice:r.splice},w.extend=w.fn.extend=function(){var t,e,i,n,o,r,s=arguments[0]||{},a=1,l=arguments.length,d=!1;for("boolean"==typeof s&&(d=s,s=arguments[a]||{},a++),"object"==typeof s||y(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)n=t[e],"__proto__"!==e&&s!==n&&(d&&n&&(w.isPlainObject(n)||(o=Array.isArray(n)))?(i=s[e],r=o&&!Array.isArray(i)?[]:o||w.isPlainObject(i)?i:{},o=!1,s[e]=w.extend(d,r,n)):void 0!==n&&(s[e]=n));return s},w.extend({expando:"jQuery"+("3.6.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==h.call(t)||(e=s(t))&&("function"!=typeof(i=p.call(e,"constructor")&&e.constructor)||f.call(i)!==g))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,i){E(t,{nonce:e&&e.nonce},i)},each:function(t,e){var i,n=0;if(A(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},makeArray:function(t,e){var i=e||[];return null!=t&&(A(Object(t))?w.merge(i,"string"==typeof t?[t]:t):d.call(i,t)),i}
vendor: 8,784 bytes, lines 35-46
35,inArray:function(t,e,i){return null==e?-1:u.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,o=t.length;n<i;n++)t[o++]=e[n];return t.length=o,t},grep:function(t,e,i){for(var n=[],o=0,r=t.length,s=!i;o<r;o++)!e(t[o],o)!==s&&n.push(t[o]);return n},map:function(t,e,i){var n,o,r=0,s=[];if(A(t))for(n=t.length;r<n;r++)null!=(o=e(t[r],r,i))&&s.push(o);else for(r in t)null!=(o=e(t[r],r,i))&&s.push(o);return l(s)},guid:1,support:v}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=r[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){c["[object "+e+"]"]=e.toLowerCase()});var T=
36/*!
37 * Sizzle CSS Selector Engine v2.3.6
38 * https://sizzlejs.com/
39 *
40 * Copyright JS Foundation and other contributors
41 * Released under the MIT license
42 * https://js.foundation/
43 *
44 * Date: 2021-02-16
45 */
46function(t){var e,i,n,o,r,s,a,l,d,u,c,h,p,f,g,v,y,m,b,S="sizzle"+1*new Date,E=t.document,C=0,w=0,A=lt(),T=lt(),I=lt(),M=lt(),_=function(t,e){return t===e&&(c=!0),0},x={}.hasOwnProperty,P=[],O=P.pop,L=P.push,D=P.push,k=P.slice,N=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",$="(?:\\\\[\\da-fA-F]{1,6}"+R+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",z="\\["+R+"*("+$+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+$+"))|)"+R+"*\\]",j=":("+$+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",F=new RegExp(R+"+","g"),U=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),V=new RegExp("^"+R+"*,"+R+"*"),W=new RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),H=new RegExp(R+"|>"),G=new RegExp(j),Y=new RegExp("^"+$+"$"),Q={ID:new RegExp("^#("+$+")"),CLASS:new RegExp("^\\.("+$+")"),TAG:new RegExp("^("+$+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+j),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+B+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},Z=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+R+"?|\\\\([^\\r\\n\\f])","g"),it=function(t,e){var i="0x"+t.slice(1)-65536;return e||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},nt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ot=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},rt=function(){h()},st=St(function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{D.apply(P=k.call(E.childNodes),E.childNodes),P[E.childNodes.length].nodeType}catch(t){D={apply:P.length?function(t,e){L.apply(t,k.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function at(t,e,n,o){var r,a,d,u,c,f,y,m=e&&e.ownerDocument,E=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==E&&9!==E&&11!==E)return n;if(!o&&(h(e),e=e||p,g)){if(11!==E&&(c=J.exec(t)))if(r=c[1]){if(9===E){if(!(d=e.getElementById(r)))return n;if(d.id===r)return n.push(d),n}else if(m&&(d=m.getElementById(r))&&b(e,d)&&d.id===r)return n.push(d),n}else{if(c[2])return D.apply(n,e.getElementsByTagName(t)),n;if((r=c[3])&&i.getElementsByClassName&&e.getElementsByClassName)return D.apply(n,e.getElementsByClassName(r)),n}if(i.qsa&&!M[t+" "]&&(!v||!v.test(t))&&(1!==E||"object"!==e.nodeName.toLowerCase())){if(y=t,m=e,1===E&&(H.test(t)||W.test(t))){for((m=tt.test(t)&&yt(e.parentNode)||e)===e&&i.scope||((u=e.getAttribute("id"))?u=u.replace(nt,ot):e.setAttribute("id",u=S)),a=(f=s(t)).length;a--;)f[a]=(u?"#"+u:":scope")+" "+bt(f[a]);y=f.join(",")}try{return D.apply(n,m.querySelectorAll(y)),n}catch(e){M(t,!0)}finally{u===S&&e.removeAttribute("id")}}}return l(t.replace(U,"$1"),e,n,o)}function lt(){var t=[];return function e(i,o){return t.push(i+" ")>n.cacheLength&&delete e[t.shift()],e[i+" "]=o}}function dt(t){return t[S]=!0,t}function ut(t){var e=p.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ct(t,e){for(var i=t.split("|"),o=i.length;o--;)n.attrHandle[i[o]]=e}function ht(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function pt(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ft(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function gt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&st(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function vt(t){return dt(function(e){return e=+e,dt(function(i,n){for(var o,r=t([],i.length,e),s=r.length;s--;)i[o=r[s]]&&(i[o]=!(n[o]=i[o]))})})}function yt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in i=at.support={},r=at.isXML=function(t){var e=t&&t.namespaceURI,i=t&&(t.ownerDocument||t).documentElement;return!Z.test(e||i&&i.nodeName||"HTML")},h=at.setDocument=function(t){var e,o,s=t?t.ownerDocument||t:E;return s!=p&&9===s.nodeType&&s.documentElement?(f=(p=s).documentElement,g=!r(p),E!=p&&(o=p.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",rt,!1):o.attachEvent&&o.attachEvent("onunload",rt)),i.scope=ut(function(t){return f.appendChild(t).appendChild(p.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length}),i.attributes=ut(function(t){return t.className="i",!t.getAttribute("className")}),i.getElementsByTagName=ut(function(t){return t.appendChild(p.createComment("")),!t.getElementsByTagName("*").length}),i.getElementsByClassName=K.test(p.getElementsByClassName),i.getById=ut(function(t){return f.appendChild(t).id=S,!p.getElementsByName||!p.getElementsByName(S).length}),i.getById?(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){return t.getAttribute("id")===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var i=e.getElementById(t);return i?[i]:[]}}):(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var i,n,o,r=e.getElementById(t);if(r){if((i=r.getAttributeNode("id"))&&i.value===t)return[r];for(o=e.getElementsByName(t),n=0;r=o[n++];)if((i=r.getAttributeNode("id"))&&i.value===t)return[r]}return[]}}),n.find.TAG=i.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):i.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],o=0,r=e.getElementsByTagName(t);if("*"===t){for(;i=r[o++];)1===i.nodeType&&n.push(i);return n}return r},n.find.CLASS=i.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&g)return e.getElementsByClassName(t)},y=[],v=[],(i.qsa=K.test(p.querySelectorAll))&&(ut(function(t){var e;f.appendChild(t).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+R+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||v.push("\\["+R+"*(?:value|"+B+")"),t.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(e=p.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||v.push("\\["+R+"*name"+R+"*="+R+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||v.push(":checked"),t.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),t.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ut(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=p.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&v.push("name"+R+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),f.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),v.push(",.*:")})),(i.matchesSelector=K.test(m=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ut(function(t){i.disconnectedMatch=m.call(t,"*"),m.call(t,"[s!='']:x"),y.push("!=",j)}
vendor: 4,182 bytes, line 46
46),v=v.length&&new RegExp(v.join("|")),y=y.length&&new RegExp(y.join("|")),e=K.test(f.compareDocumentPosition),b=e||K.test(f.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},_=e?function(t,e){if(t===e)return c=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!i.sortDetached&&e.compareDocumentPosition(t)===n?t==p||t.ownerDocument==E&&b(E,t)?-1:e==p||e.ownerDocument==E&&b(E,e)?1:u?N(u,t)-N(u,e):0:4&n?-1:1)}:function(t,e){if(t===e)return c=!0,0;var i,n=0,o=t.parentNode,r=e.parentNode,s=[t],a=[e];if(!o||!r)return t==p?-1:e==p?1:o?-1:r?1:u?N(u,t)-N(u,e):0;if(o===r)return ht(t,e);for(i=t;i=i.parentNode;)s.unshift(i);for(i=e;i=i.parentNode;)a.unshift(i);for(;s[n]===a[n];)n++;return n?ht(s[n],a[n]):s[n]==E?-1:a[n]==E?1:0},p):p},at.matches=function(t,e){return at(t,null,null,e)},at.matchesSelector=function(t,e){if(h(t),i.matchesSelector&&g&&!M[e+" "]&&(!y||!y.test(e))&&(!v||!v.test(e)))try{var n=m.call(t,e);if(n||i.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){M(e,!0)}return at(e,p,null,[t]).length>0},at.contains=function(t,e){return(t.ownerDocument||t)!=p&&h(t),b(t,e)},at.attr=function(t,e){(t.ownerDocument||t)!=p&&h(t);var o=n.attrHandle[e.toLowerCase()],r=o&&x.call(n.attrHandle,e.toLowerCase())?o(t,e,!g):void 0;return void 0!==r?r:i.attributes||!g?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},at.escape=function(t){return(t+"").replace(nt,ot)},at.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},at.uniqueSort=function(t){var e,n=[],o=0,r=0;if(c=!i.detectDuplicates,u=!i.sortStable&&t.slice(0),t.sort(_),c){for(;e=t[r++];)e===t[r]&&(o=n.push(r));for(;o--;)t.splice(n[o],1)}return u=null,t},o=at.getText=function(t){var e,i="",n=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=o(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[n++];)i+=o(e);return i},(n=at.selectors={cacheLength:50,createPseudo:dt,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,it),t[3]=(t[3]||t[4]||t[5]||"").replace(et,it),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||at.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&at.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return Q.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&G.test(i)&&(e=s(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,it).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=A[t+" "];return e||(e=new RegExp("(^|"+R+")"+t+"("+R+"|$)"))&&A(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,i){return function(n){var o=at.attr(n,t);return null==o?"!="===e:!e||(o+="","="===e?o===i:"!="===e?o!==i:"^="===e?i&&0===o.indexOf(i):"*="===e?i&&o.indexOf(i)>-1:"$="===e?i&&o.slice(-i.length)===i:"~="===e?(" "+o.replace(F," ")+" ").indexOf(i)>-1:"|="===e&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,n,o){var r="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===o?function(t){return!!t.parentNode}:function(e,i,l){var d,u,c,h,p,f,g=r!==s?"nextSibling":"previousSibling",v=e.parentNode,y=a&&e.nodeName.toLowerCase(),m=!l&&!a,b=!1;if(v){if(r){for(;g;){for(h=e;h=h[g];)if(a?h.nodeName.toLowerCase()===y:1===h.nodeType)return!1;f=g="only"===t&&!f&&"nextSibling"}return!0}
vendor: 9,264 bytes, line 46
46if(f=[s?v.firstChild:v.lastChild],s&&m){for(b=(p=(d=(u=(c=(h=v)[S]||(h[S]={}))[h.uniqueID]||(c[h.uniqueID]={}))[t]||[])[0]===C&&d[1])&&d[2],h=p&&v.childNodes[p];h=++p&&h&&h[g]||(b=p=0)||f.pop();)if(1===h.nodeType&&++b&&h===e){u[t]=[C,p,b];break}}else if(m&&(b=p=(d=(u=(c=(h=e)[S]||(h[S]={}))[h.uniqueID]||(c[h.uniqueID]={}))[t]||[])[0]===C&&d[1]),!1===b)for(;(h=++p&&h&&h[g]||(b=p=0)||f.pop())&&((a?h.nodeName.toLowerCase()!==y:1!==h.nodeType)||!++b||(m&&((u=(c=h[S]||(h[S]={}))[h.uniqueID]||(c[h.uniqueID]={}))[t]=[C,b]),h!==e)););return(b-=o)===n||b%n==0&&b/n>=0}}},PSEUDO:function(t,e){var i,o=n.pseudos[t]||n.setFilters[t.toLowerCase()]||at.error("unsupported pseudo: "+t);return o[S]?o(e):o.length>1?(i=[t,t,"",e],n.setFilters.hasOwnProperty(t.toLowerCase())?dt(function(t,i){for(var n,r=o(t,e),s=r.length;s--;)t[n=N(t,r[s])]=!(i[n]=r[s])}):function(t){return o(t,0,i)}):o}},pseudos:{not:dt(function(t){var e=[],i=[],n=a(t.replace(U,"$1"));return n[S]?dt(function(t,e,i,o){for(var r,s=n(t,null,o,[]),a=t.length;a--;)(r=s[a])&&(t[a]=!(e[a]=r))}):function(t,o,r){return e[0]=t,n(e,null,r,i),e[0]=null,!i.pop()}}),has:dt(function(t){return function(e){return at(t,e).length>0}}),contains:dt(function(t){return t=t.replace(et,it),function(e){return(e.textContent||o(e)).indexOf(t)>-1}}),lang:dt(function(t){return Y.test(t||"")||at.error("unsupported lang: "+t),t=t.replace(et,it).toLowerCase(),function(e){var i;do{if(i=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===f},focus:function(t){return t===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:gt(!1),disabled:gt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!n.pseudos.empty(t)},header:function(t){return q.test(t.nodeName)},input:function(t){return X.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:vt(function(){return[0]}),last:vt(function(t,e){return[e-1]}),eq:vt(function(t,e,i){return[i<0?i+e:i]}),even:vt(function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t}),odd:vt(function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t}),lt:vt(function(t,e,i){for(var n=i<0?i+e:i>e?e:i;--n>=0;)t.push(n);return t}),gt:vt(function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t})}}).pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[e]=pt(e);for(e in{submit:!0,reset:!0})n.pseudos[e]=ft(e);function mt(){}function bt(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function St(t,e,i){var n=e.dir,o=e.next,r=o||n,s=i&&"parentNode"===r,a=w++;return e.first?function(e,i,o){for(;e=e[n];)if(1===e.nodeType||s)return t(e,i,o);return!1}:function(e,i,l){var d,u,c,h=[C,a];if(l){for(;e=e[n];)if((1===e.nodeType||s)&&t(e,i,l))return!0}else for(;e=e[n];)if(1===e.nodeType||s)if(u=(c=e[S]||(e[S]={}))[e.uniqueID]||(c[e.uniqueID]={}),o&&o===e.nodeName.toLowerCase())e=e[n]||e;else{if((d=u[r])&&d[0]===C&&d[1]===a)return h[2]=d[2];if(u[r]=h,h[2]=t(e,i,l))return!0}return!1}}function Et(t){return t.length>1?function(e,i,n){for(var o=t.length;o--;)if(!t[o](e,i,n))return!1;return!0}:t[0]}function Ct(t,e,i,n,o){for(var r,s=[],a=0,l=t.length,d=null!=e;a<l;a++)(r=t[a])&&(i&&!i(r,n,o)||(s.push(r),d&&e.push(a)));return s}function wt(t,e,i,n,o,r){return n&&!n[S]&&(n=wt(n)),o&&!o[S]&&(o=wt(o,r)),dt(function(r,s,a,l){var d,u,c,h=[],p=[],f=s.length,g=r||function(t,e,i){for(var n=0,o=e.length;n<o;n++)at(t,e[n],i);return i}(e||"*",a.nodeType?[a]:a,[]),v=!t||!r&&e?g:Ct(g,h,t,a,l),y=i?o||(r?t:f||n)?[]:s:v;if(i&&i(v,y,a,l),n)for(d=Ct(y,p),n(d,[],a,l),u=d.length;u--;)(c=d[u])&&(y[p[u]]=!(v[p[u]]=c));if(r){if(o||t){if(o){for(d=[],u=y.length;u--;)(c=y[u])&&d.push(v[u]=c);o(null,y=[],d,l)}for(u=y.length;u--;)(c=y[u])&&(d=o?N(r,c):h[u])>-1&&(r[d]=!(s[d]=c))}}else y=Ct(y===s?y.splice(f,y.length):y),o?o(null,s,y,l):D.apply(s,y)})}function At(t){for(var e,i,o,r=t.length,s=n.relative[t[0].type],a=s||n.relative[" "],l=s?1:0,u=St(function(t){return t===e},a,!0),c=St(function(t){return N(e,t)>-1},a,!0),h=[function(t,i,n){var o=!s&&(n||i!==d)||((e=i).nodeType?u(t,i,n):c(t,i,n));return e=null,o}];l<r;l++)if(i=n.relative[t[l].type])h=[St(Et(h),i)];else{if((i=n.filter[t[l].type].apply(null,t[l].matches))[S]){for(o=++l;o<r&&!n.relative[t[o].type];o++);return wt(l>1&&Et(h),l>1&&bt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(U,"$1"),i,l<o&&At(t.slice(l,o)),o<r&&At(t=t.slice(o)),o<r&&bt(t))}h.push(i)}return Et(h)}return mt.prototype=n.filters=n.pseudos,n.setFilters=new mt,s=at.tokenize=function(t,e){var i,o,r,s,a,l,d,u=T[t+" "];if(u)return e?0:u.slice(0);for(a=t,l=[],d=n.preFilter;a;){for(s in i&&!(o=V.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(r=[])),i=!1,(o=W.exec(a))&&(i=o.shift(),r.push({value:i,type:o[0].replace(U," ")}),a=a.slice(i.length)),n.filter)!(o=Q[s].exec(a))||d[s]&&!(o=d[s](o))||(i=o.shift(),r.push({value:i,type:s,matches:o}),a=a.slice(i.length));if(!i)break}return e?a.length:a?at.error(t):T(t,l).slice(0)},a=at.compile=function(t,e){var i,o=[],r=[],a=I[t+" "];if(!a){for(e||(e=s(t)),i=e.length;i--;)(a=At(e[i]))[S]?o.push(a):r.push(a);(a=I(t,function(t,e){var i=e.length>0,o=t.length>0,r=function(r,s,a,l,u){var c,f,v,y=0,m="0",b=r&&[],S=[],E=d,w=r||o&&n.find.TAG("*",u),A=C+=null==E?1:Math.random()||.1,T=w.length;for(u&&(d=s==p||s||u);m!==T&&null!=(c=w[m]);m++){if(o&&c){for(f=0,s||c.ownerDocument==p||(h(c),a=!g);v=t[f++];)if(v(c,s||p,a)){l.push(c);break}u&&(C=A)}i&&((c=!v&&c)&&y--,r&&b.push(c))}if(y+=m,i&&m!==y){for(f=0;v=e[f++];)v(b,S,s,a);if(r){if(y>0)for(;m--;)b[m]||S[m]||(S[m]=O.call(l));S=Ct(S)}D.apply(l,S),u&&!r&&S.length>0&&y+e.length>1&&at.uniqueSort(l)}return u&&(C=A,d=E),b};return i?dt(r):r}(r,o))).selector=t}return a},l=at.select=function(t,e,i,o){var r,l,d,u,c,h="function"==typeof t&&t,p=!o&&s(t=h.selector||t);if(i=i||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(d=l[0]).type&&9===e.nodeType&&g&&n.relative[l[1].type]){if(!(e=(n.find.ID(d.matches[0].replace(et,it),e)||[])[0]))return i;h&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(r=Q.needsContext.test(t)?0:l.length;r--&&(d=l[r],!n.relative[u=d.type]);)if((c=n.find[u])&&(o=c(d.matches[0].replace(et,it),tt.test(l[0].type)&&yt(e.parentNode)||e))){if(l.splice(r,1),!(t=o.length&&bt(l)))return D.apply(i,o),i;break}}return(h||a(t,p))(o,e,!g,i,!e||tt.test(t)&&yt(e.parentNode)||e),i},i.sortStable=S.split("").sort(_).join("")===S,i.detectDuplicates=!!c,h(),i.sortDetached=ut(function(t){return 1&t.compareDocumentPosition(p.createElement("fieldset"))}),ut(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||ct("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),i.attributes&&ut(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ct("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),ut(function(t){return null==t.getAttribute("disabled")})||ct(B,function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),at}(i);w.find=T,w.expr=T.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=T.uniqueSort,w.text=T.getText,w.isXMLDoc=T.isXML,w.contains=T.contains,w.escapeSelector=T.escape;var I=function(t,e,i){for(var n=[],o=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&w(t).is(i))break;n.push(t)}return n},M=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},_=w.expr.match.needsContext;function x(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var P=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(t,e,i){return y(e)?w.grep(t,function(t,n){return!!e.call(t,n,t)!==i}):e.nodeType?w.grep(t,function(t){return t===e!==i}):"string"!=typeof e?w.grep(t,function(t){return u.call(e,t)>-1!==i}):w.filter(e,t,i)}w.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?w.find.matchesSelector(n,t)?[n]:[]:w.find.matches(t,w.grep(e,function(t){return 1===t.nodeType}))},w.fn.extend({find:function(t){var e,i,n=this.length,o=this;if("string"!=typeof t)return this.pushStack(w(t).filter(function(){for(e=0;e<n;e++)if(w.contains(o[e],this))return!0}));for(i=this.pushStack([]),e=0;e<n;e++)w.find(t,o[e],i);return n>1?w.uniqueSort(i):i},filter:function(t){return this.pushStack(O(this,t||[],!1))},not:function(t){return this.pushStack(O(this,t||[],!0))},is:function(t){return!!O(this,"string"==typeof t&&_.test(t)?w(t):t||[],!1).length}});var L,D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;
vendor: 4,766 bytes, line 46
46(w.fn.init=function(t,e,i){var n,o;if(!t)return this;if(i=i||L,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:D.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof w?e[0]:e,w.merge(this,w.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:b,!0)),P.test(n[1])&&w.isPlainObject(e))for(n in e)y(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(o=b.getElementById(n[2]))&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==i.ready?i.ready(t):t(w):w.makeArray(t,this)}).prototype=w.fn,L=w(b);var k=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function B(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}w.fn.extend({has:function(t){var e=w(t,this),i=e.length;return this.filter(function(){for(var t=0;t<i;t++)if(w.contains(this,e[t]))return!0})},closest:function(t,e){var i,n=0,o=this.length,r=[],s="string"!=typeof t&&w(t);if(!_.test(t))for(;n<o;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(s?s.index(i)>-1:1===i.nodeType&&w.find.matchesSelector(i,t))){r.push(i);break}return this.pushStack(r.length>1?w.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?u.call(w(t),this[0]):u.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),w.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return I(t,"parentNode")},parentsUntil:function(t,e,i){return I(t,"parentNode",i)},next:function(t){return B(t,"nextSibling")},prev:function(t){return B(t,"previousSibling")},nextAll:function(t){return I(t,"nextSibling")},prevAll:function(t){return I(t,"previousSibling")},nextUntil:function(t,e,i){return I(t,"nextSibling",i)},prevUntil:function(t,e,i){return I(t,"previousSibling",i)},siblings:function(t){return M((t.parentNode||{}).firstChild,t)},children:function(t){return M(t.firstChild)},contents:function(t){return null!=t.contentDocument&&s(t.contentDocument)?t.contentDocument:(x(t,"template")&&(t=t.content||t),w.merge([],t.childNodes))}},function(t,e){w.fn[t]=function(i,n){var o=w.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(o=w.filter(n,o)),this.length>1&&(N[t]||w.uniqueSort(o),k.test(t)&&o.reverse()),this.pushStack(o)}});var R=/[^\x20\t\r\n\f]+/g;function $(t){return t}function z(t){throw t}function j(t,e,i,n){var o;try{t&&y(o=t.promise)?o.call(t).done(e).fail(i):t&&y(o=t.then)?o.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}w.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return w.each(t.match(R)||[],function(t,i){e[i]=!0}),e}(t):w.extend({},t);var e,i,n,o,r=[],s=[],a=-1,l=function(){for(o=o||t.once,n=e=!0;s.length;a=-1)for(i=s.shift();++a<r.length;)!1===r[a].apply(i[0],i[1])&&t.stopOnFalse&&(a=r.length,i=!1);t.memory||(i=!1),e=!1,o&&(r=i?[]:"")},d={add:function(){return r&&(i&&!e&&(a=r.length-1,s.push(i)),function e(i){w.each(i,function(i,n){y(n)?t.unique&&d.has(n)||r.push(n):n&&n.length&&"string"!==C(n)&&e(n)})}(arguments),i&&!e&&l()),this},remove:function(){return w.each(arguments,function(t,e){for(var i;(i=w.inArray(e,r,i))>-1;)r.splice(i,1),i<=a&&a--}),this},has:function(t){return t?w.inArray(t,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return o=s=[],r=i="",this},disabled:function(){return!r},lock:function(){return o=s=[],i||e||(r=i=""),this},locked:function(){return!!o},fireWith:function(t,i){return o||(i=[t,(i=i||[]).slice?i.slice():i],s.push(i),e||l()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!n}};return d},w.extend({Deferred:function(t){var e=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],n="pending",o={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},catch:function(t){return o.then(null,t)},pipe:function(){var t=arguments;return w.Deferred(function(i){w.each(e,function(e,n){var o=y(t[n[4]])&&t[n[4]];r[n[1]](function(){var t=o&&o.apply(this,arguments);t&&y(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"With"](this,o?[t]:arguments)})}),t=null}).promise()},then:function(t,n,o){var r=0;function s(t,e,n,o){return function(){var a=this,l=arguments,d=function(){var i,d;if(!(t<r)){if((i=n.apply(a,l))===e.promise())throw new TypeError("Thenable self
46-resolution");d=i&&("object"==typeof i||"function"==typeof i)&&i.then,y(d)?o?d.call(i,s(r,e,$,o),s(r,e,z,o)):(r++,d.call(i,s(r,e,$,o),s(r,e,z,o),s(r,e,$,e.notifyWith))):(n!==$&&(a=void 0,l=[i]),(o||e.resolveWith)(a,l))}},u=o?d:function(){try{d()}catch(i){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(i,u.stackTrace),t+1>=r&&(n!==z&&(a=void 0,l=[i]),e.rejectWith(a,l))}};t?u():(w.Deferred.getStackHook&&(u.stackTrace=w.Deferred.getStackHook()),i.setTimeout(u))}}return w.Deferred(function(i){e[0][3].add(s(0,i,y(o)?o:$,i.notifyWith)),e[1][3].add(s(0,i,y(t)?t:$)),e[2][3].add(s(0,i,y(n)?n:z))}).promise()},promise:function(t){return null!=t?w.extend(t,o):o}},r={};return w.each(e,function(t,i){var s=i[2],a=i[5];o[i[1]]=s.add,a&&s.add(function(){n=a},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),s.add(i[3].fire),r[i[0]]=function(){return r[i[0]+"With"](this===r?void 0:this,arguments),this},r[i[0]+"With"]=s.fireWith}),o.promise(r),t&&t.call(r,r),r},when:function(t){var e=arguments.length,i=e,n=Array(i),o=a.call(arguments),r=w.Deferred(),s=function(t){return function(i){n[t]=this,o[t]=arguments.length>1?a.call(arguments):i,--e||r.resolveWith(n,o)}};if(e<=1&&(j(t,r.done(s(i)).resolve,r.reject,!e),"pending"===r.state()||y(o[i]&&o[i].then)))return r.then();for(;i--;)j(o[i],s(i),r.reject);return r.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&F.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},w.readyException=function(t){i.setTimeout(function(){throw t})};var U=w.Deferred();function V(){b.removeEventListener("DOMContentLoaded",V),i.removeEventListener("load",V),w.ready()}w.fn.ready=function(t){return U.then(t).catch(function(t){w.readyException(t)}),this},w.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==t&&--w.readyWait>0||U.resolveWith(b,[w]))}}),w.ready.then=U.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?i.setTimeout(w.ready):(b.addEventListener("DOMContentLoaded",V),i.addEventListener("load",V));var W=function(t,e,i,n,o,r,s){var a=0,l=t.length,d=null==i;if("object"===C(i))for(a in o=!0,i)W(t,e,a,i[a],!0,r,s);else if(void 0!==n&&(o=!0,y(n)||(s=!0),d&&(s?(e.call(t,n),e=null):(d=e,e=function(t,e,i){return d.call(w(t),i)})),e))for(;a<l;a++)e(t[a],i,s?n:n.call(t[a],a,e(t[a],i)));return o?t:d?e.call(t):l?e(t[0],i):r},H=/^-ms-/,G=/-([a-z])/g;function Y(t,e){return e.toUpperCase()}function Q(t){return t.replace(H,"ms-").replace(G,Y)}var Z=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function X(){this.expando=w.expando+X.uid++}X.uid=1,X.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Z(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,o=this.cache(t);if("string"==typeof e)o[Q(e)]=i;else for(n in e)o[Q(n)]=e[n];return o},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][Q(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){i=(e=Array.isArray(e)?e.map(Q):(e=Q(e))in n?[e]:e.match(R)||[]).length;for(;i--;)delete n[e[i]]}
vendor: 4,538 bytes, line 46
46(void 0===e||w.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!w.isEmptyObject(e)}};var q=new X,K=new X,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,tt=/[A-Z]/g;function et(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(tt,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:J.test(t)?JSON.parse(t):t)}(i)}catch(t){}K.set(t,e,i)}else i=void 0;return i}w.extend({hasData:function(t){return K.hasData(t)||q.hasData(t)},data:function(t,e,i){return K.access(t,e,i)},removeData:function(t,e){K.remove(t,e)},_data:function(t,e,i){return q.access(t,e,i)},_removeData:function(t,e){q.remove(t,e)}}),w.fn.extend({data:function(t,e){var i,n,o,r=this[0],s=r&&r.attributes;if(void 0===t){if(this.length&&(o=K.get(r),1===r.nodeType&&!q.get(r,"hasDataAttrs"))){for(i=s.length;i--;)s[i]&&0===(n=s[i].name).indexOf("data-")&&(n=Q(n.slice(5)),et(r,n,o[n]));q.set(r,"hasDataAttrs",!0)}return o}return"object"==typeof t?this.each(function(){K.set(this,t)}):W(this,function(e){var i;if(r&&void 0===e)return void 0!==(i=K.get(r,t))?i:void 0!==(i=et(r,t))?i:void 0;this.each(function(){K.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){K.remove(this,t)})}}),w.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=q.get(t,e),i&&(!n||Array.isArray(i)?n=q.access(t,e,w.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=w.queue(t,e),n=i.length,o=i.shift(),r=w._queueHooks(t,e);"inprogress"===o&&(o=i.shift(),n--),o&&("fx"===e&&i.unshift("inprogress"),delete r.stop,o.call(t,function(){w.dequeue(t,e)},r)),!n&&r&&r.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return q.get(t,i)||q.access(t,i,{empty:w.Callbacks("once memory").add(function(){q.remove(t,[e+"queue",i])})})}}),w.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?w.queue(this[0],t):void 0===e?this:this.each(function(){var i=w.queue(this,t,e);w._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&w.dequeue(this,t)})},dequeue:function(t){return this.each(function(){w.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,o=w.Deferred(),r=this,s=this.length,a=function(){--n||o.resolveWith(r,[r])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(i=q.get(r[s],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(a));return a(),o.promise(e)}});var it=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,nt=new RegExp("^(?:([+-])=|)("+it+")([a-z%]*)$","i"),ot=["Top","Right","Bottom","Left"],rt=b.documentElement,st=function(t){return w.contains(t.ownerDocument,t)},at={composed:!0};rt.getRootNode&&(st=function(t){return w.contains(t.ownerDocument,t)||t.getRootNode(at)===t.ownerDocument});var lt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&st(t)&&"none"===w.css(t,"display")};function dt(t,e,i,n){var o,r,s=20,a=n?function(){return n.cur()}:function(){return w.css(t,e,"")},l=a(),d=i&&i[3]||(w.cssNumber[e]?"":"px"),u=t.nodeType&&(w.cssNumber[e]||"px"!==d&&+l)&&nt.exec(w.css(t,e));if(u&&u[3]!==d){for(l/=2,d=d||u[3],u=+l||1;s--;)w.style(t,e,u+d),(1-r)*(1-(r=a()/l||.5))<=0&&(s=0),u/=r;u*=2,w.style(t,e,u+d),i=i||[]}return i&&(u=+u||+l||0,o=i[1]?u+(i[1]+1)*i[2]:+i[2],n&&(n.unit=d,n.start=u,n.end=o)),o}var ut={};function ct(t){var e,i=t.ownerDocument,n=t.nodeName,o=ut[n];return o||(e=i.body.appendChild(i.createElement(n)),o=w.css(e,"display"),e.parentNode.removeChild(e),"none"===o&&(o="block"),ut[n]=o,o)}function ht(t,e){for(var i,n,o=[],r=0,s=t.length;r<s;r++)(n=t[r]).style&&(i=n.style.display,e?("none"===i&&(o[r]=q.get(n,"display")||null,o[r]||(n.style.display="")),""===n.style.display&&lt(n)&&(o[r]=ct(n))):"none"!==i&&(o[r]="none",q.set(n,"display",i)));for(r=0;r<s;r++)null!=o[r]&&(t[r].style.display=o[r]);return t}w.fn.extend({show:function(){return ht(this,!0)},hide:function(){return ht(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){lt(this)?w(this).show():w(this).hide()})}});var pt,ft,gt=/^(?:checkbox|radio)$/i,vt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,yt=/^$|^module$|\/(?:java|ecma)script/i;pt=b.createDocumentFragment().appendChild(b.createElement("div")),(ft=b.createElement("input")).setAttribute("type","radio"),ft.setAttribute("checked","checked"),ft.setAttribute("name","t"),pt.appendChild(ft),v.checkClone
vendor: 6,473 bytes, line 46
46=pt.cloneNode(!0).cloneNode(!0).lastChild.checked,pt.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!pt.cloneNode(!0).lastChild.defaultValue,pt.innerHTML="<option></option>",v.option=!!pt.lastChild;var mt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function bt(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&x(t,e)?w.merge([t],i):i}function St(t,e){for(var i=0,n=t.length;i<n;i++)q.set(t[i],"globalEval",!e||q.get(e[i],"globalEval"))}mt.tbody=mt.tfoot=mt.colgroup=mt.caption=mt.thead,mt.th=mt.td,v.option||(mt.optgroup=mt.option=[1,"<select multiple='multiple'>","</select>"]);var Et=/<|&#?\w+;/;function Ct(t,e,i,n,o){for(var r,s,a,l,d,u,c=e.createDocumentFragment(),h=[],p=0,f=t.length;p<f;p++)if((r=t[p])||0===r)if("object"===C(r))w.merge(h,r.nodeType?[r]:r);else if(Et.test(r)){for(s=s||c.appendChild(e.createElement("div")),a=(vt.exec(r)||["",""])[1].toLowerCase(),l=mt[a]||mt._default,s.innerHTML=l[1]+w.htmlPrefilter(r)+l[2],u=l[0];u--;)s=s.lastChild;w.merge(h,s.childNodes),(s=c.firstChild).textContent=""}else h.push(e.createTextNode(r));for(c.textContent="",p=0;r=h[p++];)if(n&&w.inArray(r,n)>-1)o&&o.push(r);else if(d=st(r),s=bt(c.appendChild(r),"script"),d&&St(s),i)for(u=0;r=s[u++];)yt.test(r.type||"")&&i.push(r);return c}var wt=/^([^.]*)(?:\.(.+)|)/;function At(){return!0}function Tt(){return!1}function It(t,e){return t===function(){try{return b.activeElement}catch(t){}}()==("focus"===e)}function Mt(t,e,i,n,o,r){var s,a;if("object"==typeof e){for(a in"string"!=typeof i&&(n=n||i,i=void 0),e)Mt(t,a,i,n,e[a],r);return t}if(null==n&&null==o?(o=i,n=i=void 0):null==o&&("string"==typeof i?(o=n,n=void 0):(o=n,n=i,i=void 0)),!1===o)o=Tt;else if(!o)return t;return 1===r&&(s=o,(o=function(t){return w().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=w.guid++)),t.each(function(){w.event.add(this,e,o,n,i)})}function _t(t,e,i){i?(q.set(t,e,!1),w.event.add(t,e,{namespace:!1,handler:function(t){var n,o,r=q.get(this,e);if(1&t.isTrigger&&this[e]){if(r.length)(w.event.special[e]||{}).delegateType&&t.stopPropagation();else if(r=a.call(arguments),q.set(this,e,r),n=i(this,e),this[e](),r!==(o=q.get(this,e))||n?q.set(this,e,!1):o={},r!==o)return t.stopImmediatePropagation(),t.preventDefault(),o&&o.value}else r.length&&(q.set(this,e,{value:w.event.trigger(w.extend(r[0],w.Event.prototype),r.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===q.get(t,e)&&w.event.add(t,e,At)}w.event={global:{},add:function(t,e,i,n,o){var r,s,a,l,d,u,c,h,p,f,g,v=q.get(t);if(Z(t))for(i.handler&&(i=(r=i).handler,o=r.selector),o&&w.find.matchesSelector(rt,o),i.guid||(i.guid=w.guid++),(l=v.events)||(l=v.events=Object.create(null)),(s=v.handle)||(s=v.handle=function(e){return void 0!==w&&w.event.triggered!==e.type?w.event.dispatch.apply(t,arguments):void 0}),d=(e=(e||"").match(R)||[""]).length;d--;)p=g=(a=wt.exec(e[d])||[])[1],f=(a[2]||"").split(".").sort(),p&&(c=w.event.special[p]||{},p=(o?c.delegateType:c.bindType)||p,c=w.event.special[p]||{},u=w.extend({type:p,origType:g,data:n,handler:i,guid:i.guid,selector:o,needsContext:o&&w.expr.match.needsContext.test(o),namespace:f.join(".")},r),(h=l[p])||((h=l[p]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,n,f,s)||t.addEventListener&&t.addEventListener(p,s)),c.add&&(c.add.call(t,u),u.handler.guid||(u.handler.guid=i.guid)),o?h.splice(h.delegateCount++,0,u):h.push(u),w.event.global[p]=!0)},remove:function(t,e,i,n,o){var r,s,a,l,d,u,c,h,p,f,g,v=q.hasData(t)&&q.get(t);if(v&&(l=v.events)){for(d=(e=(e||"").match(R)||[""]).length;d--;)if(p=g=(a=wt.exec(e[d])||[])[1],f=(a[2]||"").split(".").sort(),p){for(c=w.event.special[p]||{},h=l[p=(n?c.delegateType:c.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=h.length;r--;)u=h[r],!o&&g!==u.origType||i&&i.guid!==u.guid||a&&!a.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(h.splice(r,1),u.selector&&h.delegateCount--,c.remove&&c.remove.call(t,u));s&&!h.length&&(c.teardown&&!1!==c.teardown.call(t,f,v.handle)||w.removeEvent(t,p,v.handle),delete l[p])}else for(p in l)w.event.remove(t,p+e[d],i,n,!0);w.isEmptyObject(l)&&q.remove(t,"handle events")}},dispatch:function(t){var e,i,n,o,r,s,a=new Array(arguments.length),l=w.event.fix(t),d=(q.get(this,"events")||Object.create(null))[l.type]||[],u=w.event.special[l.type]||{};for(a[0]=l,e=1;e<arguments.length;e++)a[e]=arguments[e];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(s=w.event.handlers.call(this,l,d),e=0;(o=s[e++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,i=0;(r=o.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==r.namespace&&!l.rnamespace.test(r.namespace)||(l.handleObj=r,l.data=r.data,void 0!==(n=((w.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,a))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(t,e){var i,n,o,r,s,a=[],l=e.delegateCount,d=t.target;if(l&&d.nodeType&&!("click"===t.type&&t.button>=1))for(;d!==this;d=d.parentNode||this)if(1===d.nodeType&&("click"!==t.type||!0!==d.disabled)){for(r=[],s={},i=0;i<l;i++)void 0===s[o=(n=e[i]).selector+" "]&&(s[o]=n.needsContext?w(o,this).index(d)>-1:w.find(o,this,null,[d]).length),s[o]&&r.push(n);r.length&&a.push({elem:d,handlers:r})}return d=this,l<e.length&&a.push({elem:d,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(w.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[w.expando]?t:new w.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return gt.test(e.type)&&e.click&&x(e,"input")&&_t(e,"click",At),!1},trigger:function(t){var e=this||t;return gt.test(e.type)&&e.click&&x(e,"input")&&_t(e,"click"),!0},_default:function(t){var e=t.target;return gt.test(e.type)&&e.click&&x(e,"input")&&q.get(e,"click")||x(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}}
vendor: 1,673 bytes, line 46
46,w.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},w.Event=function(t,e){if(!(this instanceof w.Event))return new w.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?At:Tt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&w.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:Tt,isPropagationStopped:Tt,isImmediatePropagationStopped:Tt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=At,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=At,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=At,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},function(t,e){w.event.special[t]={setup:function(){return _t(this,t,It),!1},trigger:function(){return _t(this,t),!0},_default:function(){return!0},delegateType:e}}
vendor: 1,824 bytes, line 46
46),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){w.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=t.relatedTarget,o=t.handleObj;return n&&(n===this||w.contains(this,n))||(t.type=o.origType,i=o.handler.apply(this,arguments),t.type=e),i}}}),w.fn.extend({on:function(t,e,i,n){return Mt(this,t,e,i,n)},one:function(t,e,i,n){return Mt(this,t,e,i,n,1)},off:function(t,e,i){var n,o;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,w(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(o in t)this.off(o,e,t[o]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=Tt),this.each(function(){w.event.remove(this,t,i,e)})}});var xt=/<script|<style|<link/i,Pt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ot=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Lt(t,e){return x(t,"table")&&x(11!==e.nodeType?e:e.firstChild,"tr")&&w(t).children("tbody")[0]||t}function Dt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function kt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Nt(t,e){var i,n,o,r,s,a;if(1===e.nodeType){if(q.hasData(t)&&(a=q.get(t).events))for(o in q.remove(e,"handle events"),a)for(i=0,n=a[o].length;i<n;i++)w.event.add(e,o,a[o][i]);K.hasData(t)&&(r=K.access(t),s=w.extend({},r),K.set(e,s))}}function Bt(t,e,i,n){e=l(e);var o,r,s,a,d,u,c=0,h=t.length,p=h-1,f=e[0],g=y(f);if(g||h>1&&"string"==typeof f&&!v.checkClone&&Pt.test(f))return t.each(function(o){var r=t.eq(o);g&&(e[0]=f.call(this,o,r.html())),Bt(r,e,i,n)});if(h&&(r=(o=Ct(e,t[0].ownerDocument,!1,t,n)).firstChild,1===o.childNodes.length&&(o=r),r||n)){for(a=(s=w.map(bt(o,"script"),Dt)).length;c<h;
vendor: 4,315 bytes, line 46
46c++)d=o,c!==p&&(d=w.clone(d,!0,!0),a&&w.merge(s,bt(d,"script"))),i.call(t[c],d,c);if(a)for(u=s[s.length-1].ownerDocument,w.map(s,kt),c=0;c<a;c++)d=s[c],yt.test(d.type||"")&&!q.access(d,"globalEval")&&w.contains(u,d)&&(d.src&&"module"!==(d.type||"").toLowerCase()?w._evalUrl&&!d.noModule&&w._evalUrl(d.src,{nonce:d.nonce||d.getAttribute("nonce")},u):E(d.textContent.replace(Ot,""),d,u))}return t}function Rt(t,e,i){for(var n,o=e?w.filter(e,t):t,r=0;null!=(n=o[r]);r++)i||1!==n.nodeType||w.cleanData(bt(n)),n.parentNode&&(i&&st(n)&&St(bt(n,"script")),n.parentNode.removeChild(n));return t}w.extend({htmlPrefilter:function(t){return t},clone:function(t,e,i){var n,o,r,s,a,l,d,u=t.cloneNode(!0),c=st(t);if(!(v.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||w.isXMLDoc(t)))for(s=bt(u),n=0,o=(r=bt(t)).length;n<o;n++)a=r[n],"input"===(d=(l=s[n]).nodeName.toLowerCase())&&gt.test(a.type)?l.checked=a.checked:"input"!==d&&"textarea"!==d||(l.defaultValue=a.defaultValue);if(e)if(i)for(r=r||bt(t),s=s||bt(u),n=0,o=r.length;n<o;n++)Nt(r[n],s[n]);else Nt(t,u);return(s=bt(u,"script")).length>0&&St(s,!c&&bt(t,"script")),u},cleanData:function(t){for(var e,i,n,o=w.event.special,r=0;void 0!==(i=t[r]);r++)if(Z(i)){if(e=i[q.expando]){if(e.events)for(n in e.events)o[n]?w.event.remove(i,n):w.removeEvent(i,n,e.handle);i[q.expando]=void 0}i[K.expando]&&(i[K.expando]=void 0)}}}),w.fn.extend({detach:function(t){return Rt(this,t,!0)},remove:function(t){return Rt(this,t)},text:function(t){return W(this,function(t){return void 0===t?w.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Bt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Lt(this,t).appendChild(t)})},prepend:function(){return Bt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Lt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Bt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Bt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(w.cleanData(bt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return w.clone(this,t,e)})},html:function(t){return W(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!xt.test(t)&&!mt[(vt.exec(t)||["",""])[1].toLowerCase()]){t=w.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(w.cleanData(bt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return Bt(this,arguments,function(e){var i=this.parentNode;w.inArray(this,t)<0&&(w.cleanData(bt(this)),i&&i.replaceChild(e,this))},t)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){w.fn[t]=function(t){for(var i,n=[],o=w(t),r=o.length-1,s=0;s<=r;s++)i=s===r?this:this.clone(!0),w(o[s])[e](i),d.apply(n,i.get());return this.pushStack(n)}});var $t=new RegExp("^("+it+")(?!px)[a-z%]+$","i"),zt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},jt=function(t,e,i){var n,o,r={};for(o in e)r[o]=t.style[o],t.style[o]=e[o];for(o in n=i.call(t),e)t.style[o]=r[o];return n},Ft=new RegExp(ot.join("|"),"i");function Ut(t,e,i){var n,o,r,s,a=t.style;return(i=i||zt(t))&&(""!==(s=i.getPropertyValue(e)||i[e])||st(t)||(s=w.style(t,e)),!v.pixelBoxStyles()&&$t.test(s)&&Ft.test(e)&&(n=a.width,o=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=i.width,a.width=n,a.minWidth=o,a.maxWidth=r)),void 0!==s?s+"":s}function Vt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){d.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",rt.appendChild(d).appendChild(u);var t=i.getComputedStyle(u);
vendor: 1,159 bytes, line 46
46n="1%"!==t.top,l=12===e(t.marginLeft),u.style.right="60%",s=36===e(t.right),o=36===e(t.width),u.style.position="absolute",r=12===e(u.offsetWidth/3),rt.removeChild(d),u=null}}function e(t){return Math.round(parseFloat(t))}var n,o,r,s,a,l,d=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===u.style.backgroundClip,w.extend(v,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),r},reliableTrDimensions:function(){var t,e,n,o;return null==a&&(t=b.createElement("table"),e=b.createElement("tr"),n=b.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",rt.appendChild(t).appendChild(e).appendChild(n),o=i.getComputedStyle(e),a=parseInt(o.height,10)+parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10)===e.offsetHeight,rt.removeChild(t)),a}}
vendor: 4,834 bytes, line 46
46))}();var Wt=["Webkit","Moz","ms"],Ht=b.createElement("div").style,Gt={};function Yt(t){return w.cssProps[t]||Gt[t]||(t in Ht?t:Gt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),i=Wt.length;i--;)if((t=Wt[i]+e)in Ht)return t}(t)||t)}var Qt=/^(none|table(?!-c[ea]).+)/,Zt=/^--/,Xt={position:"absolute",visibility:"hidden",display:"block"},qt={letterSpacing:"0",fontWeight:"400"};function Kt(t,e,i){var n=nt.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function Jt(t,e,i,n,o,r){var s="width"===e?1:0,a=0,l=0;if(i===(n?"border":"content"))return 0;for(;s<4;s+=2)"margin"===i&&(l+=w.css(t,i+ot[s],!0,o)),n?("content"===i&&(l-=w.css(t,"padding"+ot[s],!0,o)),"margin"!==i&&(l-=w.css(t,"border"+ot[s]+"Width",!0,o))):(l+=w.css(t,"padding"+ot[s],!0,o),"padding"!==i?l+=w.css(t,"border"+ot[s]+"Width",!0,o):a+=w.css(t,"border"+ot[s]+"Width",!0,o));return!n&&r>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-r-l-a-.5))||0),l}function te(t,e,i){var n=zt(t),o=(!v.boxSizingReliable()||i)&&"border-box"===w.css(t,"boxSizing",!1,n),r=o,s=Ut(t,e,n),a="offset"+e[0].toUpperCase()+e.slice(1);if($t.test(s)){if(!i)return s;s="auto"}return(!v.boxSizingReliable()&&o||!v.reliableTrDimensions()&&x(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===w.css(t,"display",!1,n))&&t.getClientRects().length&&(o="border-box"===w.css(t,"boxSizing",!1,n),(r=a in t)&&(s=t[a])),(s=parseFloat(s)||0)+Jt(t,e,i||(o?"border":"content"),r,n,s)+"px"}function ee(t,e,i,n,o){return new ee.prototype.init(t,e,i,n,o)}w.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=Ut(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,r,s,a=Q(e),l=Zt.test(e),d=t.style;if(l||(e=Yt(a)),s=w.cssHooks[e]||w.cssHooks[a],void 0===i)return s&&"get"in s&&void 0!==(o=s.get(t,!1,n))?o:d[e];"string"==(r=typeof i)&&(o=nt.exec(i))&&o[1]&&(i=dt(t,e,o),r="number"),null!=i&&i==i&&("number"!==r||l||(i+=o&&o[3]||(w.cssNumber[a]?"":"px")),v.clearCloneStyle||""!==i||0!==e.indexOf("background")||(d[e]="inherit"),s&&"set"in s&&void 0===(i=s.set(t,i,n))||(l?d.setProperty(e,i):d[e]=i))}},css:function(t,e,i,n){var o,r,s,a=Q(e);return Zt.test(e)||(e=Yt(a)),(s=w.cssHooks[e]||w.cssHooks[a])&&"get"in s&&(o=s.get(t,!0,i)),void 0===o&&(o=Ut(t,e,n)),"normal"===o&&e in qt&&(o=qt[e]),""===i||i?(r=parseFloat(o),!0===i||isFinite(r)?r||0:o):o}}),w.each(["height","width"],function(t,e){w.cssHooks[e]={get:function(t,i,n){if(i)return!Qt.test(w.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?te(t,e,n):jt(t,Xt,function(){return te(t,e,n)})},set:function(t,i,n){var o,r=zt(t),s=!v.scrollboxSize()&&"absolute"===r.position,a=(s||n)&&"border-box"===w.css(t,"boxSizing",!1,r),l=n?Jt(t,e,n,a,r):0;return a&&s&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(r[e])-Jt(t,e,"border",!1,r)-.5)),l&&(o=nt.exec(i))&&"px"!==(o[3]||"px")&&(t.style[e]=i,i=w.css(t,e)),Kt(0,i,l)}}}),w.cssHooks.marginLeft=Vt(v.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Ut(t,"marginLeft"))||t.getBoundingClientRect().left-jt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(t,e){w.cssHooks[t+e]={expand:function(i){for(var n=0,o={},r="string"==typeof i?i.split(" "):[i];n<4;n++)o[t+ot[n]+e]=r[n]||r[n-2]||r[0];return o}},"margin"!==t&&(w.cssHooks[t+e].set=Kt)}),w.fn.extend({css:function(t,e){return W(this,function(t,e,i){var n,o,r={},s=0;if(Array.isArray(e)){for(n=zt(t),o=e.length;s<o;s++)r[e[s]]=w.css(t,e[s],!1,n);return r}return void 0!==i?w.style(t,e,i):w.css(t,e)},t,e,arguments.length>1)}}),w.Tween=ee,ee.prototype={constructor:ee,init:function(t,e,i,n,o,r){this.elem=t,this.prop=i,this.easing=o||w.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=r||(w.cssNumber[i]?"":"px")},cur:function(){var t=ee.propHooks[this.prop];return t&&t.get?t.get(this):ee.propHooks._default.get(this)},run:function(t){var e,i=ee.propHooks[this.prop];return this.options.duration?this.pos=e=w.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):ee.propHooks._default.set(this),this}},ee.prototype.init.prototype=ee.prototype,ee.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=w.css(t.elem,t.prop,""))&&"auto"!==e?e:0}
vendor: 7,783 bytes, line 46
46,set:function(t){w.fx.step[t.prop]?w.fx.step[t.prop](t):1!==t.elem.nodeType||!w.cssHooks[t.prop]&&null==t.elem.style[Yt(t.prop)]?t.elem[t.prop]=t.now:w.style(t.elem,t.prop,t.now+t.unit)}}},ee.propHooks.scrollTop=ee.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},w.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},w.fx=ee.prototype.init,w.fx.step={};var ie,ne,oe=/^(?:toggle|show|hide)$/,re=/queueHooks$/;function se(){ne&&(!1===b.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(se):i.setTimeout(se,w.fx.interval),w.fx.tick())}function ae(){return i.setTimeout(function(){ie=void 0}),ie=Date.now()}function le(t,e){var i,n=0,o={height:t};for(e=e?1:0;n<4;n+=2-e)o["margin"+(i=ot[n])]=o["padding"+i]=t;return e&&(o.opacity=o.width=t),o}function de(t,e,i){for(var n,o=(ue.tweeners[e]||[]).concat(ue.tweeners["*"]),r=0,s=o.length;r<s;r++)if(n=o[r].call(i,e,t))return n}function ue(t,e,i){var n,o,r=0,s=ue.prefilters.length,a=w.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var e=ie||ae(),i=Math.max(0,d.startTime+d.duration-e),n=1-(i/d.duration||0),r=0,s=d.tweens.length;r<s;r++)d.tweens[r].run(n);return a.notifyWith(t,[d,n,i]),n<1&&s?i:(s||a.notifyWith(t,[d,1,0]),a.resolveWith(t,[d]),!1)},d=a.promise({elem:t,props:w.extend({},e),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},i),originalProperties:e,originalOptions:i,startTime:ie||ae(),duration:i.duration,tweens:[],createTween:function(e,i){var n=w.Tween(t,d.opts,e,i,d.opts.specialEasing[e]||d.opts.easing);return d.tweens.push(n),n},stop:function(e){var i=0,n=e?d.tweens.length:0;if(o)return this;for(o=!0;i<n;i++)d.tweens[i].run(1);return e?(a.notifyWith(t,[d,1,0]),a.resolveWith(t,[d,e])):a.rejectWith(t,[d,e]),this}}),u=d.props;for(function(t,e){var i,n,o,r,s;for(i in t)if(o=e[n=Q(i)],r=t[i],Array.isArray(r)&&(o=r[1],r=t[i]=r[0]),i!==n&&(t[n]=r,delete t[i]),(s=w.cssHooks[n])&&"expand"in s)for(i in r=s.expand(r),delete t[n],r)i in t||(t[i]=r[i],e[i]=o);else e[n]=o}(u,d.opts.specialEasing);r<s;r++)if(n=ue.prefilters[r].call(d,t,u,d.opts))return y(n.stop)&&(w._queueHooks(d.elem,d.opts.queue).stop=n.stop.bind(n)),n;return w.map(u,de,d),y(d.opts.start)&&d.opts.start.call(t,d),d.progress(d.opts.progress).done(d.opts.done,d.opts.complete).fail(d.opts.fail).always(d.opts.always),w.fx.timer(w.extend(l,{elem:t,anim:d,queue:d.opts.queue})),d}w.Animation=w.extend(ue,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return dt(i.elem,t,nt.exec(e),i),i}]},tweener:function(t,e){y(t)?(e=t,t=["*"]):t=t.match(R);for(var i,n=0,o=t.length;n<o;n++)i=t[n],ue.tweeners[i]=ue.tweeners[i]||[],ue.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var n,o,r,s,a,l,d,u,c="width"in e||"height"in e,h=this,p={},f=t.style,g=t.nodeType&&lt(t),v=q.get(t,"fxshow");for(n in i.queue||(null==(s=w._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always(function(){h.always(function(){s.unqueued--,w.queue(t,"fx").length||s.empty.fire()})})),e)if(o=e[n],oe.test(o)){if(delete e[n],r=r||"toggle"===o,o===(g?"hide":"show")){if("show"!==o||!v||void 0===v[n])continue;g=!0}p[n]=v&&v[n]||w.style(t,n)}if((l=!w.isEmptyObject(e))||!w.isEmptyObject(p))for(n in c&&1===t.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],null==(d=v&&v.display)&&(d=q.get(t,"display")),"none"===(u=w.css(t,"display"))&&(d?u=d:(ht([t],!0),d=t.style.display||d,u=w.css(t,"display"),ht([t]))),("inline"===u||"inline-block"===u&&null!=d)&&"none"===w.css(t,"float")&&(l||(h.done(function(){f.display=d}),null==d&&(u=f.display,d="none"===u?"":u)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",h.always(function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]})),l=!1,p)l||(v?"hidden"in v&&(g=v.hidden):v=q.access(t,"fxshow",{display:d}),r&&(v.hidden=!g),g&&ht([t],!0),h.done(function(){for(n in g||ht([t]),q.remove(t,"fxshow"),p)w.style(t,n,p[n])})),l=de(g?v[n]:0,n,h),n in v||(v[n]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?ue.prefilters.unshift(t):ue.prefilters.push(t)}}),w.speed=function(t,e,i){var n=t&&"object"==typeof t?w.extend({},t):{complete:i||!i&&e||y(t)&&t,duration:t,easing:i&&e||e&&!y(e)&&e};return w.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in w.fx.speeds?n.duration=w.fx.speeds[n.duration]:n.duration=w.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){y(n.old)&&n.old.call(this),n.queue&&w.dequeue(this,n.queue)},n},w.fn.extend({fadeTo:function(t,e,i,n){return this.filter(lt).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var o=w.isEmptyObject(t),r=w.speed(e,i,n),s=function(){var e=ue(this,w.extend({},t),r);(o||q.get(this,"finish"))&&e.stop(!0)};return s.finish=s,o||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each(function(){var e=!0,o=null!=t&&t+"queueHooks",r=w.timers,s=q.get(this);if(o)s[o]&&s[o].stop&&n(s[o]);else for(o in s)s[o]&&s[o].stop&&re.test(o)&&n(s[o]);for(o=r.length;o--;)r[o].elem!==this||null!=t&&r[o].queue!==t||(r[o].anim.stop(i),e=!1,r.splice(o,1));!e&&i||w.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,i=q.get(this),n=i[t+"queue"],o=i[t+"queueHooks"],r=w.timers,s=n?n.length:0;for(i.finish=!0,w.queue(this,t,[]),o&&o.stop&&o.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===t&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<s;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish})}}),w.each(["toggle","show","hide"],function(t,e){var i=w.fn[e];w.fn[e]=function(t,n,o){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(le(e,!0),t,n,o)}}),w.each({slideDown:le("show"),slideUp:le("hide"),slideToggle:le("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){w.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),w.timers=[],w.fx.tick=function(){var t,e=0,i=w.timers;for(ie=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||w.fx.stop(),ie=void 0},w.fx.timer=function(t){w.timers.push(t),w.fx.start()},w.fx.interval=13,w.fx.start=function(){ne||(ne=!0,se())},w.fx.stop=function(){ne=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(t,e){return t=w.fx&&w.fx.speeds[t]||t,e=e||"fx",this.queue(e,function(e,n){var o=i.setTimeout(e,t);n.stop=function(){i.clearTimeout(o)}})},function(){var t=b.createElement("input"),e=b.createElement("select").appendChild(b.createElement("option"));t.type="checkbox",v.checkOn=""!==t.value,v.optSelected=e.selected,(t=b.createElement("input")).value="t",t.type="radio",v.radioValue="t"===t.value}();var ce,he=w.expr.attrHandle;w.fn.extend({attr:function(t,e){return W(this,w.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){w.removeAttr(this,t)})}}),w.extend({attr:function(t,e,i){var n,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===t.getAttribute?w.prop(t,e,i):(1===r&&w.isXMLDoc(t)||(o=w.attrHooks[e.toLowerCase()]||(w.expr.match.bool.test(e)?ce:void 0)),void 0!==i?null===i?void w.removeAttr(t,e):o&&"set"in o&&void 0!==(n=o.set(t,i,e))?n:(t.setAttribute(e,i+""),i):o&&"get"in o&&null!==(n=o.get(t,e))?n:null==(n=w.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!v.radioValue&&"radio"===e&&x(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,o=e&&e.match(R);if(o&&1===t.nodeType)for(;i=o[n++];)t.removeAttribute(i)}}
vendor: 3,890 bytes, line 46
46),ce={set:function(t,e,i){return!1===e?w.removeAttr(t,i):t.setAttribute(i,i),i}},w.each(w.expr.match.bool.source.match(/\w+/g),function(t,e){var i=he[e]||w.find.attr;he[e]=function(t,e,n){var o,r,s=e.toLowerCase();return n||(r=he[s],he[s]=o,o=null!=i(t,e,n)?s:null,he[s]=r),o}});var pe=/^(?:input|select|textarea|button)$/i,fe=/^(?:a|area)$/i;function ge(t){return(t.match(R)||[]).join(" ")}function ve(t){return t.getAttribute&&t.getAttribute("class")||""}function ye(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(R)||[]}w.fn.extend({prop:function(t,e){return W(this,w.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[w.propFix[t]||t]})}}),w.extend({prop:function(t,e,i){var n,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&w.isXMLDoc(t)||(e=w.propFix[e]||e,o=w.propHooks[e]),void 0!==i?o&&"set"in o&&void 0!==(n=o.set(t,i,e))?n:t[e]=i:o&&"get"in o&&null!==(n=o.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=w.find.attr(t,"tabindex");return e?parseInt(e,10):pe.test(t.nodeName)||fe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(w.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this}),w.fn.extend({addClass:function(t){var e,i,n,o,r,s,a,l=0;if(y(t))return this.each(function(e){w(this).addClass(t.call(this,e,ve(this)))});if((e=ye(t)).length)for(;i=this[l++];)if(o=ve(i),n=1===i.nodeType&&" "+ge(o)+" "){for(s=0;r=e[s++];)n.indexOf(" "+r+" ")<0&&(n+=r+" ");o!==(a=ge(n))&&i.setAttribute("class",a)}return this},removeClass:function(t){var e,i,n,o,r,s,a,l=0;if(y(t))return this.each(function(e){w(this).removeClass(t.call(this,e,ve(this)))});if(!arguments.length)return this.attr("class","");if((e=ye(t)).length)for(;i=this[l++];)if(o=ve(i),n=1===i.nodeType&&" "+ge(o)+" "){for(s=0;r=e[s++];)for(;n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");o!==(a=ge(n))&&i.setAttribute("class",a)}return this},toggleClass:function(t,e){var i=typeof t,n="string"===i||Array.isArray(t);return"boolean"==typeof e&&n?e?this.addClass(t):this.removeClass(t):y(t)?this.each(function(i){w(this).toggleClass(t.call(this,i,ve(this),e),e)}):this.each(function(){var e,o,r,s;if(n)for(o=0,r=w(this),s=ye(t);e=s[o++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else void 0!==t&&"boolean"!==i||((e=ve(this))&&q.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":q.get(this,"__className__")||""))})},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+ge(ve(i))+" ").indexOf(e)>-1)return!0;return!1}});var me=/\r/g;w.fn.extend({val:function(t){var e,i,n,o=this[0];return arguments.length?(n=y(t),this.each(function(i){var o;1===this.nodeType&&(null==(o=n?t.call(this,i,w(this).val()):t)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=w.map(o,function(t){return null==t?"":t+""})),(e=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))})):o?(e=w.valHooks[o.type]||w.valHooks[o.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(o,"value"))?i:"string"==typeof(i=o.value)?i.replace(me,""):null==i?"":i:void 0}}),w.extend({valHooks:{option:{get:function(t){var e=w.find.attr(t,"value");return null!=e?e:ge(w.text(t))}},select:{get:function(t){var e,i,n,o=t.options,r=t.selectedIndex,s="select-one"===t.type,a=s?null:[],l=s?r+1:o.length;for(n=r<0?l:s?r:0;n<l;n++)if(((i=o[n]).selected||n===r)&&!i.disabled&&(!i.parentNode.disabled||!x(i.parentNode,"optgroup"))){if(e=w(i).val(),s)return e;a.push(e)}return a}
vendor: 4,573 bytes, line 46
46,set:function(t,e){for(var i,n,o=t.options,r=w.makeArray(e),s=o.length;s--;)((n=o[s]).selected=w.inArray(w.valHooks.option.get(n),r)>-1)&&(i=!0);return i||(t.selectedIndex=-1),r}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=w.inArray(w(t).val(),e)>-1}},v.checkOn||(w.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),v.focusin="onfocusin"in i;var be=/^(?:focusinfocus|focusoutblur)$/,Se=function(t){t.stopPropagation()};w.extend(w.event,{trigger:function(t,e,n,o){var r,s,a,l,d,u,c,h,f=[n||b],g=p.call(t,"type")?t.type:t,v=p.call(t,"namespace")?t.namespace.split("."):[];if(s=h=a=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!be.test(g+w.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),d=g.indexOf(":")<0&&"on"+g,(t=t[w.expando]?t:new w.Event(g,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:w.makeArray(e,[t]),c=w.event.special[g]||{},o||!c.trigger||!1!==c.trigger.apply(n,e))){if(!o&&!c.noBubble&&!m(n)){for(l=c.delegateType||g,be.test(l+g)||(s=s.parentNode);s;s=s.parentNode)f.push(s),a=s;a===(n.ownerDocument||b)&&f.push(a.defaultView||a.parentWindow||i)}for(r=0;(s=f[r++])&&!t.isPropagationStopped();)h=s,t.type=r>1?l:c.bindType||g,(u=(q.get(s,"events")||Object.create(null))[t.type]&&q.get(s,"handle"))&&u.apply(s,e),(u=d&&s[d])&&u.apply&&Z(s)&&(t.result=u.apply(s,e),!1===t.result&&t.preventDefault());return t.type=g,o||t.isDefaultPrevented()||c._default&&!1!==c._default.apply(f.pop(),e)||!Z(n)||d&&y(n[g])&&!m(n)&&((a=n[d])&&(n[d]=null),w.event.triggered=g,t.isPropagationStopped()&&h.addEventListener(g,Se),n[g](),t.isPropagationStopped()&&h.removeEventListener(g,Se),w.event.triggered=void 0,a&&(n[d]=a)),t.result}},simulate:function(t,e,i){var n=w.extend(new w.Event,i,{type:t,isSimulated:!0});w.event.trigger(n,null,e)}}),w.fn.extend({trigger:function(t,e){return this.each(function(){w.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return w.event.trigger(t,e,i,!0)}}),v.focusin||w.each({focus:"focusin",blur:"focusout"},function(t,e){var i=function(t){w.event.simulate(e,t.target,w.event.fix(t))};w.event.special[e]={setup:function(){var n=this.ownerDocument||this.document||this,o=q.access(n,e);o||n.addEventListener(t,i,!0),q.access(n,e,(o||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,o=q.access(n,e)-1;o?q.access(n,e,o):(n.removeEventListener(t,i,!0),q.remove(n,e))}}});var Ee=i.location,Ce={guid:Date.now()},we=/\?/;w.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||w.error("Invalid XML: "+(n?w.map(n.childNodes,function(t){return t.textContent}).join("\n"):t)),e};var Ae=/\[\]$/,Te=/\r?\n/g,Ie=/^(?:submit|button|image|reset|file)$/i,Me=/^(?:input|select|textarea|keygen)/i;function _e(t,e,i,n){var o;if(Array.isArray(e))w.each(e,function(e,o){i||Ae.test(t)?n(t,o):_e(t+"["+("object"==typeof o&&null!=o?e:"")+"]",o,i,n)});else if(i||"object"!==C(e))n(t,e);else for(o in e)_e(t+"["+o+"]",e[o],i,n)}w.param=function(t,e){var i,n=[],o=function(t,e){var i=y(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!w.isPlainObject(t))w.each(t,function(){o(this.name,this.value)});else for(i in t)_e(i,t[i],e,o);return n.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=w.prop(this,"elements");return t?w.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!w(this).is(":disabled")&&Me.test(this.nodeName)&&!Ie.test(t)&&(this.checked||!gt.test(t))}).map(function(t,e){var i=w(this).val();return null==i?null:Array.isArray(i)?w.map(i,function(t){return{name:e.name,value:t.replace(Te,"\r\n")}}):{name:e.name,value:i.replace(Te,"\r\n")}}).get()}});var xe=/%20/g,Pe=/#.*$/,Oe=/([?&])_=[^&]*/,Le=/^(.*?):[ \t]*([^\r\n]*)$/gm,De=/^(?:GET|HEAD)$/,ke=/^\/\//,Ne={},Be={},Re="*/".concat("*"),$e=b.createElement("a");function ze(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,o=0,r=e.toLowerCase().match(R)||[];if(y(i))for(;n=r[o++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function je(t,e,i,n){var o={},r=t===Be;function s(a){var l;
vendor: 1,213 bytes, line 46
46return o[a]=!0,w.each(t[a]||[],function(t,a){var d=a(e,i,n);return"string"!=typeof d||r||o[d]?r?!(l=d):void 0:(e.dataTypes.unshift(d),s(d),!1)}),l}return s(e.dataTypes[0])||!o["*"]&&s("*")}function Fe(t,e){var i,n,o=w.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((o[i]?t:n||(n={}))[i]=e[i]);return n&&w.extend(!0,t,n),t}$e.href=Ee.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ee.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ee.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Re,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Fe(Fe(t,w.ajaxSettings),e):Fe(w.ajaxSettings,t)},ajaxPrefilter:ze(Ne),ajaxTransport:ze(Be),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,o,r,s,a,l,d,u,c,h,p=w.ajaxSetup({}
vendor: 1,869 bytes, line 46
46,e),f=p.context||p,g=p.context&&(f.nodeType||f.jquery)?w(f):w.event,v=w.Deferred(),y=w.Callbacks("once memory"),m=p.statusCode||{},S={},E={},C="canceled",A={readyState:0,getResponseHeader:function(t){var e;if(d){if(!s)for(s={};e=Le.exec(r);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return d?r:null},setRequestHeader:function(t,e){return null==d&&(t=E[t.toLowerCase()]=E[t.toLowerCase()]||t,S[t]=e),this},overrideMimeType:function(t){return null==d&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(d)A.always(t[A.status]);else for(e in t)m[e]=[m[e],t[e]];return this},abort:function(t){var e=t||C;return n&&n.abort(e),T(0,e),this}};if(v.promise(A),p.url=((t||p.url||Ee.href)+"").replace(ke,Ee.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(R)||[""],null==p.crossDomain){l=b.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=$e.protocol+"//"+$e.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=w.param(p.data,p.traditional)),je(Ne,p,e,A),d)return A;for(c in(u=w.event&&p.global)&&0==w.active++&&w.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!De.test(p.type),o=p.url.replace(Pe,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(xe,"+")):(h=p.url.slice(o.length),p.data&&(p.processData||"string"==typeof p.data)&&(o+=(we.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(o=o.replace(Oe,"$1"),h=(we.test(o)?"&":"?")+"_="+Ce.guid+++h),p.url=o+h),p.ifModified&&(w.lastModified[o]&&A.setRequestHeader("If-Modified-Since",w.lastModified[o]),w.etag[o]&&A.setRequestHeader("If-None-Match",w.etag[o
vendor: 10,274 bytes, line 46
46])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&A.setRequestHeader("Content-Type",p.contentType),A.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Re+"; q=0.01":""):p.accepts["*"]),p.headers)A.setRequestHeader(c,p.headers[c]);if(p.beforeSend&&(!1===p.beforeSend.call(f,A,p)||d))return A.abort();if(C="abort",y.add(p.complete),A.done(p.success),A.fail(p.error),n=je(Be,p,e,A)){if(A.readyState=1,u&&g.trigger("ajaxSend",[A,p]),d)return A;p.async&&p.timeout>0&&(a=i.setTimeout(function(){A.abort("timeout")},p.timeout));try{d=!1,n.send(S,T)}catch(t){if(d)throw t;T(-1,t)}}else T(-1,"No Transport");function T(t,e,s,l){var c,h,b,S,E,C=e;d||(d=!0,a&&i.clearTimeout(a),n=void 0,r=l||"",A.readyState=t>0?4:0,c=t>=200&&t<300||304===t,s&&(S=function(t,e,i){for(var n,o,r,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(o in a)if(a[o]&&a[o].test(n)){l.unshift(o);break}if(l[0]in i)r=l[0];else{for(o in i){if(!l[0]||t.converters[o+" "+l[0]]){r=o;break}s||(s=o)}r=r||s}if(r)return r!==l[0]&&l.unshift(r),i[r]}(p,A,s)),!c&&w.inArray("script",p.dataTypes)>-1&&w.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),S=function(t,e,i,n){var o,r,s,a,l,d={},u=t.dataTypes.slice();if(u[1])for(s in t.converters)d[s.toLowerCase()]=t.converters[s];for(r=u.shift();r;)if(t.responseFields[r]&&(i[t.responseFields[r]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=d[l+" "+r]||d["* "+r]))for(o in d)if((a=o.split(" "))[1]===r&&(s=d[l+" "+a[0]]||d["* "+a[0]])){!0===s?s=d[o]:!0!==d[o]&&(r=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}}(p,S,A,c),c?(p.ifModified&&((E=A.getResponseHeader("Last-Modified"))&&(w.lastModified[o]=E),(E=A.getResponseHeader("etag"))&&(w.etag[o]=E)),204===t||"HEAD"===p.type?C="nocontent":304===t?C="notmodified":(C=S.state,h=S.data,c=!(b=S.error))):(b=C,!t&&C||(C="error",t<0&&(t=0))),A.status=t,A.statusText=(e||C)+"",c?v.resolveWith(f,[h,C,A]):v.rejectWith(f,[A,C,b]),A.statusCode(m),m=void 0,u&&g.trigger(c?"ajaxSuccess":"ajaxError",[A,p,c?h:b]),y.fireWith(f,[A,C]),u&&(g.trigger("ajaxComplete",[A,p]),--w.active||w.event.trigger("ajaxStop")))}return A},getJSON:function(t,e,i){return w.get(t,e,i,"json")},getScript:function(t,e){return w.get(t,void 0,e,"script")}}),w.each(["get","post"],function(t,e){w[e]=function(t,i,n,o){return y(i)&&(o=o||n,n=i,i=void 0),w.ajax(w.extend({url:t,type:e,dataType:o,data:i,success:n},w.isPlainObject(t)&&t))}}),w.ajaxPrefilter(function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),w._evalUrl=function(t,e,i){return w.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){w.globalEval(t,e,i)}})},w.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=w(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return y(t)?this.each(function(e){w(this).wrapInner(t.call(this,e))}):this.each(function(){var e=w(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=y(t);return this.each(function(i){w(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(t){return!w.expr.pseudos.visible(t)},w.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var Ue={0:200,1223:204},Ve=w.ajaxSettings.xhr();v.cors=!!Ve&&"withCredentials"in Ve,v.ajax=Ve=!!Ve,w.ajaxTransport(function(t){var e,n;if(v.cors||Ve&&!t.crossDomain)return{send:function(o,r){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)a.setRequestHeader(s,o[s]);e=function(t){return function(){e&&(e=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?r(0,"error"):r(a.status,a.statusText):r(Ue[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),n=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&i.setTimeout(function(){e&&n()})},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),w.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return w.globalEval(t),t}}}),w.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),w.ajaxTransport("script",function(t){var e,i;if(t.crossDomain||t.scriptAttrs)return{send:function(n,o){e=w("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&o("error"===t.type?404:200,t.type)}),b.head.appendChild(e[0])},abort:function(){i&&i()}}});var We,He=[],Ge=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=He.pop()||w.expando+"_"+Ce.guid++;return this[t]=!0,t}}),w.ajaxPrefilter("json jsonp",function(t,e,n){var o,r,s,a=!1!==t.jsonp&&(Ge.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ge.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Ge,"$1"+o):!1!==t.jsonp&&(t.url+=(we.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return s||w.error(o+" was not called"),s[0]},t.dataTypes[0]="json",r=i[o],i[o]=function(){s=arguments},n.always(function(){void 0===r?w(i).removeProp(o):i[o]=r,t[o]&&(t.jsonpCallback=e.jsonpCallback,He.push(o)),s&&y(r)&&r(s[0]),s=r=void 0}),"script"}),v.createHTMLDocument=((We=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===We.childNodes.length),w.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(v.createHTMLDocument?((n=(e=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,e.head.appendChild(n)):e=b),r=!i&&[],(o=P.exec(t))?[e.createElement(o[1])]:(o=Ct([t],e,r),r&&r.length&&w(r).remove(),w.merge([],o.childNodes)));var n,o,r},w.fn.load=function(t,e,i){var n,o,r,s=this,a=t.indexOf(" ");return a>-1&&(n=ge(t.slice(a)),t=t.slice(0,a)),y(e)?(i=e,e=void 0):e&&"object"==typeof e&&(o="POST"),s.length>0&&w.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done(function(t){r=arguments,s.html(n?w("<div>").append(w.parseHTML(t)).find(n):t)}).always(i&&function(t,e){s.each(function(){i.apply(this,r||[t.responseText,e,t])})}),this},w.expr.pseudos.animated=function(t){return w.grep(w.timers,function(e){return t===e.elem}).length},w.offset={setOffset:function(t,e,i){var n,o,r,s,a,l,d=w.css(t,"position"),u=w(t),c={};"static"===d&&(t.style.position="relative"),a=u.offset(),r=w.css(t,"top"),l=w.css(t,"left"),("absolute"===d||"fixed"===d)&&(r+l).indexOf("auto")>-1?(s=(n=u.position()).top,o=n.left):(s=parseFloat(r)||0,o=parseFloat(l)||0),y(e)&&(e=e.call(t,i,w.extend({},a))),null!=e.top&&(c.top=e.top-a.top+s),null!=e.left&&(c.left=e.left-a.left+o),"using"in e?e.using.call(t,c):u.css(c)}},w.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){w.offset.setOffset(this,t,e)});var e,i,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,n=this[0],o={top:0,left:0};if("fixed"===w.css(n,"position"))e=n.getBoundingClientRect();else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===w.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((o=w(t).offset()).top+=w.css(t,"borderTopWidth",!0),o.left+=w.css(t,"borderLeftWidth",!0))}return{top:e.top-o.top-w.css(n,"marginTop",!0),left:e.left-o.left-w.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===w.css(t,"position");)t=t.offsetParent;return t||rt})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var i="pageYOffset"===e;w.fn[t]=function(n){return W(this,function(t,n,o){var r;if(m(t)?r=t:9===t.nodeType&&(r=t.defaultView),void 0===o)return r?r[e]:t[n];r?r.scrollTo(i?r.pageXOffset:o,i?o:r.pageYOffset):t[n]=o},t,n,arguments.length)}}),w.each(["top","left"],function(t,e){w.cssHooks[e]=Vt(v.pixelPosition,function(t,i){if(i)return i=Ut(t,e),$t.test(i)?w(t).position()[e]+"px":i})}),w.each({Height:"height",Width:"width"},function(t,e){w.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,n){w.fn[n]=function(o,r){var s=arguments.length&&(i||"boolean"!=typeof o),a=i||(!0===o||!0===r?"margin":"border");return W(this,function(e,i,o){var r;return m(e)?0===n.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===o?w.css(e,i,a):w.style(e,i,o,a)},e,s?o:void 0,s)}})}),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){w.fn[e]=function(t){return this.on(e,t)}}
46),w.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){w.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}});var Ye=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;w.proxy=function(t,e){var i,n,o;if("string"==typeof e&&(i=t[e],e=t,t=i),y(t))return n=a.call(arguments,2),(o=function(){return t.apply(e||this,n.concat(a.call(arguments)))}).guid=t.guid=t.guid||w.guid++,o},w.holdReady=function(t){t?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=x,w.isFunction=y,w.isWindow=m,w.camelCase=Q,w.type=C,w.now=Date.now,w.isNumeric=function(t){var e=w.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},w.trim=function(t){return null==t?"":(t+"").replace(Ye,"")},void 0===(n=function(){return w}.apply(e,[]))||(t.exports=n);var Qe=i.jQuery,Ze=i.$;return w.noConflict=function(t){return i.$===w&&(i.$=Ze),t&&i.jQuery===w&&(i.jQuery=Qe),w},void 0===o&&(i.jQuery=i.$=w),w})},1659:function(t,e,i){var n=i(1660),o=i(1661),r=i(318),s=i(138);t.exports=function(t,e){return function(i,a){var l=s(i)?n:o,d=e?e():{};return l(i,t,r(a,2),d)}}},1660:function(t,e){t.exports=function(t,e,i,n){for(var o=-1,r=null==t?0:t.length;++o<r;){var s=t[o];e(n,s,i(s),t)}return n}},1661:function(t,e,i){var n=i(800);t.exports=function(t,e,i,o){return n(t,function(t,n,r){e(o,t,i(t),r)}),o}},1682:function(t,e,i){"use strict";var n=i(1683);function o(){}function r(){}r.resetWarningCache=o,t.exports=function(){function t(t,e,i,o,r,s){if(s!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var i={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:r,resetWarningCache:o};return i.PropTypes=i,i}},1683:function(t,e,i){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1733:function(t,e,i){var n=i(104);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},1734:function(t,e,i){"use strict";var n=i(1735);function o(){}function r(){}r.resetWarningCache=o,t.exports=function(){function t(t,e,i,o,r,s){if(s!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var i={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:r,resetWarningCache:o};return i.PropTypes=i,i}},1735:function(t,e,i){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1736:function(t,e,i){"use strict";var n=i(1737);function o(){}function r(){}r.resetWarningCache=o,t.exports=function(){function t(t,e,i,o,r,s){if(s!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var i={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:r,resetWarningCache:o};return i.PropTypes=i,i}},1737:function(t,e,i){"use strict";
vendor: 4,143 bytes, lines 46-54
46t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1738:function(t,e,i){"use strict";var n=i(1739);function o(){}function r(){}r.resetWarningCache=o,t.exports=function(){function t(t,e,i,o,r,s){if(s!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var i={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:r,resetWarningCache:o};return i.PropTypes=i,i}},1739:function(t,e,i){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1740:function(t,e,i){"use strict";t.exports=i(1741)},1741:function(t,e,i){"use strict";
47/** @license React v16.7.0
48 * react-is.production.min.js
49 *
50 * Copyright (c) Facebook, Inc. and its affiliates.
51 *
52 * This source code is licensed under the MIT license found in the
53 * LICENSE file in the root directory of this source tree.
54 */Object.defineProperty(e,"__esModule",{value:!0});var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,d=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,h=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116;function y(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case o:switch(t=t.type){case c:case h:case s:case l:case a:case f:return t;default:switch(t=t&&t.$$typeof){case u:case p:case d:return t;default:return e}}case v:case g:case r:return e}}}function m(t){return y(t)===h}e.typeOf=y,e.AsyncMode=c,e.ConcurrentMode=h,e.ContextConsumer=u,e.ContextProvider=d,e.Element=o,e.ForwardRef=p,e.Fragment=s,e.Lazy=v,e.Memo=g,e.Portal=r,e.Profiler=l,e.StrictMode=a,e.Suspense=f,e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===s||t===h||t===l||t===a||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===v||t.$$typeof===g||t.$$typeof===d||t.$$typeof===u||t.$$typeof===p)},e.isAsyncMode=function(t){return m(t)||y(t)===c},e.isConcurrentMode=m,e.isContextConsumer=function(t){return y(t)===u},e.isContextProvider=function(t){return y(t)===d},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===o},e.isForwardRef=function(t){return y(t)===p},e.isFragment=function(t){return y(t)===s},e.isLazy=function(t){return y(t)===v},e.isMemo=function(t){return y(t)===g},e.isPortal=function(t){return y(t)===r},e.isProfiler=function(t){return y(t)===l},e.isStrictMode=function(t){return y(t)===a},e.isSuspense=function(t){return y(t)===f}},1762:function(t,e,i){var n=i(809);t.exports=function(t,e){return n(t,5,e="function"==typeof e?e:void 0)}},1763:function(t,e,i){var n=i(290),o=i(603),r=i(312),s=i(248),a=i(503),l=i(1764),d=i(738),u=i(456),c=i(846),h=i(1767),p=n?n.iterator:void 0;t.exports=function(t){if(!t)return[];if(s(t))return a(t)?c(t):o(t);if(p&&t[p])return l(t[p]());var e=r(t);return("[object Map]"==e?d:"[object Set]"==e?u:h)(t)}},1764:function(t,e){t.exports=function(t){for(var e,i=[];!(e=t.next()).done;)i.push(e.value);return i}},1765:function(t,e){t.exports=function(t){return t.split("")}},1766:function(t,e){var i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",r="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+i+"|"+n+")?",l="[\\ufe0e\\ufe0f]?"+a+"(?:\\u200d(?:"+[o,r,s].join("|")+")[\\ufe0e\\ufe0f]?"+a+")*",d="(?:"+[o+i+"?",i,r,s,"[\\ud800-\\udfff]"].join("|")+")",u=RegExp(n+"(?="+n+")|"+d+l,"g");t.exports=function(t){return t.match(u)||[]}},1767:function(t,e,i){var n=i(1768),o=i(313);t.exports=function(t){return null==t?[]:n(t,o(t))}}
54,1768:function(t,e,i){var n=i(387);t.exports=function(t,e){return n(e,function(e){return t[e]})}},1769:function(t,e,i){"use strict";var n=i(181);e.__esModule=!0,e.default=void 0;var o=n(i(99)),r=n(i(470)),s=function(){function t(t,e){if(this.refs=t,"function"!=typeof e){if(!(0,o.default)(e,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!e.then&&!e.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");var i=e.is,n=e.then,r=e.otherwise,s="function"==typeof i?i:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.every(function(t){return t===i})};this.fn=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var o=e.pop(),a=e.pop(),l=s.apply(void 0,e)?n:r;if(l)return"function"==typeof l?l(a):a.concat(l.resolve(o))}}else this.fn=e}return t.prototype.resolve=function(t,e){var i=this.refs.map(function(t){return t.getValue(e)}),n=this.fn.apply(t,i.concat(t,e));if(void 0===n||n===t)return t;if(!(0,r.default)(n))throw new TypeError("conditions must return a schema object");return n.resolve(e)},t}();e.default=s,t.exports=e.default},1770:function(t,e,i){"use strict";var n=i(181);
54e.__esModule=!0,e.default=function t(e,i){for(var n in i)if((0,o.default)(i,n)){var a=i[n],l=e[n];if(void 0===l)e[n]=a;else{if(l===a)continue;(0,r.default)(l)?(0,r.default)(a)&&(e[n]=a.concat(l)):s(l)?s(a)&&(e[n]=t(l,a)):Array.isArray(l)&&Array.isArray(a)&&(e[n]=a.concat(l))}}return e};var o=n(i(99)),r=n(i(470)),s=function(t){return"[object Object]"===Object.prototype.toString.call(t)};t.exports=e.default},1771:function(t,e,i){"use strict";var n=i(181);e.__esModule=!0,e.createErrorFactory=h,e.default=function(t){var e=t.name,i=t.message,n=t.test,s=t.params;function u(t){var u=t.value,p=t.path,f=t.label,g=t.options,v=t.originalValue,y=t.sync,m=(0,o.default)(t,["value","path","label","options","originalValue","sync"]),b=g.parent,S=function(t){return l.default.isRef(t)?t.getValue({value:u,parent:b,context:g.context}):t},E=h({message:i,path:p,value:u,originalValue:v,params:s,label:f,resolve:S,name:e});return function(t,e,i,o){var r=n.call(e,i);if(!o)return Promise.resolve(r);if(c(r))throw new Error('Validation test of type: "'+e.type+'" returned a Promise during a synchronous validate. This test will finish after the validate call has returned');return d.SynchronousPromise.resolve(r)}(0,(0,r.default)({path:p,parent:b,type:e,createError:E,resolve:S,options:g},m),u,y).then(function(t){if(a.default.isError(t))throw t;if(!t)throw E()})}return u.OPTIONS=t,u};var o=n(i(849)),r=n(i(408)),s=n(i(852)),a=n(i(851)),l=n(i(616)),d=i(850),u=a.default.formatError,c=function(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch};function h(t){var e=t.value,i=t.label,n=t.resolve,l=t.originalValue,d=(0,o.default)(t,["value","label","resolve","originalValue"]);return function(t){var o=void 0===t?{}:t,c=o.path,h=void 0===c?d.path:c,p=o.message,f=void 0===p?d.message:p,g=o.type,v=void 0===g?d.name:g,y=o.params;return y=(0,r.default)({path:h,value:e,originalValue:l,label:i},function(t,e,i){return(0,s.default)((0,r.default)({},t,e),i)}(d.params,y,n)),(0,r.default)(new a.default(u(f,y),e,h,v),{params:y})}}},1772:function(t,e,i){"use strict";var n=i(181);
54e.__esModule=!0,e.getIn=a,e.default=void 0;var o=i(471),r=n(i(99)),s=function(t){return t.substr(0,t.length-1).substr(1)};function a(t,e,i,n){var a,l,d;return n=n||i,e?((0,o.forEach)(e,function(o,u,c){var h=u?s(o):o;if(c||(0,r.default)(t,"_subType")){var p=c?parseInt(h,10):0;if(t=t.resolve({context:n,parent:a,value:i})._subType,i){if(c&&p>=i.length)throw new Error("Yup.reach cannot resolve an array item at index: "+o+", in the path: "+e+". because there is no value at that index. ");i=i[p]}}if(!c){if(t=t.resolve({context:n,parent:a,value:i}),!(0,r.default)(t,"fields")||!(0,r.default)(t.fields,h))throw new Error("The schema does not contain the path: "+e+". (failed at: "+d+' which is a type: "'+t._type+'") ');t=t.fields[h],a=i,i=i&&i[h],l=h,d=u?"["+o+"]":"."+o}}),{schema:t,parent:a,parentPath:l}):{parent:a,parentPath:e,schema:t}}e.default=function(t,e,i,n){return a(t,e,i,n).schema}},1773:function(t,e,i){"use strict";e.__esModule=!0,e.default=void 0,e.default=function(t){return null==t},t.exports=e.default},1774:function(t,e){t.exports=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}},1775:function(t,e){t.exports=function(t,e){return e||(e=t.slice(0)),t.raw=e,t}},1776:function(t,e,i){var n=i(853)(function(t,e,i){return t+(i?"_":"")+e.toLowerCase()});t.exports=n},1777:function(t,e){t.exports=function(t,e,i,n){var o=-1,r=null==t?0:t.length;for(n&&r&&(i=t[++o]);++o<r;)i=e(i,t[o],o,t);return i}},1778:function(t,e,i){var n=i(1779),o=i(311),r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 4,111 bytes, line 54
547f]/g,s=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");t.exports=function(t){return(t=o(t))&&t.replace(r,n).replace(s,"")}},1779:function(t,e,i){var n=i(1780)({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});t.exports=n},1780:function(t,e){t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},1781:function(t,e,i){var n=i(1782),o=i(1783),r=i(311),s=i(1784);t.exports=function(t,e,i){return t=r(t),void 0===(e=i?void 0:e)?o(t)?s(t):n(t):t.match(e)||[]}},1782:function(t,e){var i=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(t){return t.match(i)||[]}},1783:function(t,e){var i=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;t.exports=function(t){return i.test(t)}},1784:function(t,e){var i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",n="["+i+"]",o="\\d+",r="[a-z\\xdf-\\xf6\\xf8-\\xff]",s="[^\\ud800-\\udfff"+i+o+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",d="[A-Z\\xc0-\\xd6\\xd8-\\xde]",u="(?:"+r+"|"+s+")",c="(?:"+d+"|"+s+")",h="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",p="[\\ufe0e\\ufe0f]?"+h+"(?:\\u200d(?:"+["[^\\ud800-\\udfff]",a,l].join("|")+")[\\ufe0e\\ufe0f]?"+h+")*",f="(?:"+["[\\u2700-\\u27bf]",a,l].join("|")+")"+p,g=RegExp([d+"?"+r+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[n,d,"$"].join("|")+")",c+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[n,d+u,"$"].join("|")+")",d+"?"+u+"+(?:['’](?:d|ll|m|re|s|t|ve))?",d+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",o,f].join("|"),"g");t.exports=function(t){return t.match(g)||[]}},1785:function(t,e,i){var n=i(1786),o=i(853)(function(t,e,i){return e=e.toLowerCase(),t+(i?n(e):e)});t.exports=o},1786:function(t,e,i){var n=i(311),o=i(1787);t.exports=function(t){return o(n(t).toLowerCase())}},1787:function(t,e,i){var n=i(1788)("toUpperCase");t.exports=n},1788:function(t,e,i){var n=i(1789),o=i(847),r=i(846),s=i(311);t.exports=function(t){return function(e){e=s(e);var i=o(e)?r(e):void 0,a=i?i[0]:e.charAt(0),l=i?n(i,1).join(""):e.slice(1);return a[t]()+l}}},1789:function(t,e,i){var n=i(1790);
54t.exports=function(t,e,i){var o=t.length;return i=void 0===i?o:i,!e&&i>=o?t:n(t,e,i)}},1790:function(t,e){t.exports=function(t,e,i){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(i=i>o?o:i)<0&&(i+=o),o=e>i?0:i-e>>>0,e>>>=0;for(var r=Array(o);++n<o;)r[n]=t[n+e];return r}},1791:function(t,e,i){var n=i(401),o=i(600),r=i(318);t.exports=function(t,e){var i={};return e=r(e,3),o(t,function(t,o,r){n(i,e(t,o,r),t)}),i}},1792:function(t,e,i){"use strict";var n=i(181);e.__esModule=!0,e.default=function(t,e){void 0===e&&(e=[]);var i=[],n=[];function d(t,o){var r=(0,s.split)(t)[0];~n.indexOf(r)||n.push(r),~e.indexOf(o+"-"+r)||i.push([o,r])}for(var u in t)if((0,o.default)(t,u)){var c=t[u];~n.indexOf(u)||n.push(u),a.default.isRef(c)&&c.isSibling?d(c.path,u):(0,l.default)(c)&&c._deps&&c._deps.forEach(function(t){return d(t,u)})}return r.default.array(n,i).reverse()};var o=n(i(99)),r=n(i(1793)),s=i(471),a=n(i(616)),l=n(i(470));t.exports=e.default},1793:function(t,e){function i(t,e){var i=t.length,n=new Array(i),o={},r=i,s=function(t){for(var e=new Map,i=0,n=t.length;i<n;i++){var o=t[i];e.has(o[0])||e.set(o[0],new Set),e.has(o[1])||e.set(o[1],new Set),e.get(o[0]).add(o[1])}return e}(e),a=function(t){for(var e=new Map,i=0,n=t.length;i<n;i++)e.set(t[i],i);return e}(t);for(e.forEach(function(t){if(!a.has(t[0])||!a.has(t[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});r--;)o[r]||l(t[r],r,new Set);return n;function l(t,e,r){if(r.has(t)){var d;try{d=", node was:"+JSON.stringify(t)}catch(t){d=""}throw new Error("Cyclic dependency"+d)}if(!a.has(t))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(t));if(!o[e]){o[e]=!0;var u=s.get(t)||new Set;if(e=(u=Array.from(u)).length){r.add(t);do{var c=u[--e];l(c,a.get(c),r)}while(e);r.delete(t)}n[--i]=t}}}t.exports=function(t){return i(function(t){for(var e=new Set,i=0,n=t.length;i<n;i++){var o=t[i];e.add(o[0]),e.add(o[1])}return Array.from(e)}(t),t)},t.exports.array=i},1794:function(t,e,i){"use strict";function n(t,e){var i=1/0;return t.some(function(t,n){if(-1!==e.path.indexOf(t))return i=n,!0}),i}e.__esModule=!0,e.default=function(t){var e=Object.keys(t);return function(t,i){return n(e,t)-n(e,i)}},t.exports=e.default},1795:function(t,e,i){"use strict";e.__esModule=!0,e.default=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return t.reduce(function(t,e){var n=i.shift();return t+(null==n?"":n)+e}).replace(/^\./,"")},t.exports=e.default},181:function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},186:function(t,e,i){t.exports=i(1736)()},2177:function(t,e,i){"use strict";var n={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-4
546-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[024-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"]
vendor: 20,373 bytes, line 54
54,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:
54694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","[235]\\d{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6
vendor: 17,388 bytes, line 54
54]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["20"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["20"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["11|2[16]"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{
543})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}
54(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"[3489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-9]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[3689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4}
54)","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-579]|61)","5(?:[0-579]|61[06])","5(?:[0-579]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4}
54)","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}},o={}.constructor;function r(t){return null!=t&&t.constructor===o}function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function l(t,e,i){return n=function(t,e){if("object"!=s(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==s(n)?n:n+"")in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t;var n}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}var u=2,c=17,h=3,p="".concat("-‐-―−ー-").concat("//").concat("..").concat("  ­​⁠ ").concat("()()[]\\[\\]").concat("~⁓∼~");function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t){var e="function"==typeof Map?new Map:void 0;return(g=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return function(t,e,i){if(v())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var o=new(t.bind.apply(t,n));return i&&y(o,i.prototype),o}(t,arguments,m(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),y(i,t)})(t)}function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(v=function(){return!!t})()}function y(t,e){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var b=function(t){function e(t){var i,n,o,r;return function(t,i){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this),n=this,r=[t],o=m(o=e),i=function(t,e){if(e&&("object"==f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(n,v()?Reflect.construct(o,r||[],m(n).constructor):o.apply(n,r)),Ob
vendor: 7,163 bytes, line 54
54ject.setPrototypeOf(i,e.prototype),i.name=i.constructor.name,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(e,g(Error)),i=e,Object.defineProperty(i,"prototype",{writable:!1}),i;var i}(),S=function(t,e){t=t.split("-"),e=e.split("-");for(var i=t[0].split("."),n=e[0].split("."),o=0;o<3;o++){var r=Number(i[o]),s=Number(n[o]);if(r>s)return 1;if(s>r)return-1;if(!isNaN(r)&&isNaN(s))return 1;if(isNaN(r)&&!isNaN(s))return-1}return t[1]&&e[1]?t[1]>e[1]?1:t[1]<e[1]?-1:0:!t[1]&&e[1]?1:t[1]&&!e[1]?-1:0};function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function C(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,T(n.key),n)}}function A(t,e,i){return e&&w(t.prototype,e),i&&w(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function T(t){var e=function(t,e){if("object"!=E(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!=E(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==E(e)?e:e+""}var I="1.2.0",M="1.7.35",_=/^\d+$/,x=function(){return A(function t(e){C(this,t),N(e),this.metadata=e,$.call(this,e)},[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(t){return"001"!==t})}},{key:"getCountryMetadata",value:function(t){return this.metadata.countries[t]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(t){return void 0!==this.getCountryMetadata(t)}},{key:"hasCallingCode",value:function(t){if(this.getCountryCodesForCallingCode(t))return!0;if(this.nonGeographic()){if(this.nonGeographic()[t])return!0}else{var e=this.countryCallingCodes()[t];if(e&&1===e.length&&"001"===e[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(t){return this.nonGeographic()?!!this.nonGeographic()[t]:!this.getCountryCodesForCallingCode(t)}},{key:"country",value:function(t){return this.selectNumberingPlan(t)}},{key:"selectNumberingPlan",value:function(t,e){if(t&&_.test(t)&&(e=t,t=null),t&&"001"!==t){if(!this.hasCountry(t))throw new Error("Unknown country: ".concat(t));this.numberingPlan=new P(this.getCountryMetadata(t),this)}else if(e){if(!this.hasCallingCode(e))throw new Error("Unknown calling code: ".concat(e));this.numberingPlan=new P(this.getNumberingPlanMetadata(e),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(t){var e=this.countryCallingCodes()[t];if(e){if(1===e.length&&3===e[0].length)return;return e}}},{key:"getCountryCodeForCallingCode",value:function(t){var e=this.getCountryCodesForCallingCode(t);if(e)return e[0]}},{key:"getNumberingPlanMetadata",value:function(t){var e=this.getCountryCodeForCallingCode(t);if(e)return this.getCountryMetadata(e);if(this.nonGeographic()){var i=this.nonGeographic()[t];if(i)return i}else{var n=this.countryCallingCodes()[t];if(n&&1===n.length&&"001"===n[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(t){return this.numberingPlan.type(t)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(t){return this.selectNumberingPlan(t)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}])}(),P=function(){return A(function t(e,i){C(this,t),this.globalMetadataObject=i,this.metadata=e,$.call(this,i.metadata)},[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(t){return t[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var t=this;return(this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[]).map(function(e){return new O(e,t)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(t){return t[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return!(this.types()&&0===this.types().length||!this.t
vendor: 1,353 bytes, line 54
54ypes())}},{key:"type",value:function(t){if(this.hasTypes()&&k(this.types(),t))return new D(k(this.types(),t),this)}},{key:"ext",value:function(){return this.v1||this.v2?" ext. ":this.metadata[13]||" ext. "}}])}(),O=function(){return A(function t(e,i){C(this,t),this._format=e,this.metadata=i},[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!(!this.nationalPrefixFormattingRule()||L.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])}(),L=/^\(?\$1\)?$/,D=function(){return A(function t(e,i){C(this,t),this.type=e,this.metadata=i},[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.t
vendor: 5,326 bytes, line 54
54ype[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])}();function k(t,e){switch(e){case"FIXED_LINE":return t[0];case"MOBILE":return t[1];case"TOLL_FREE":return t[2];case"PREMIUM_RATE":return t[3];case"PERSONAL_NUMBER":return t[4];case"VOICEMAIL":return t[5];case"UAN":return t[6];case"PAGER":return t[7];case"VOIP":return t[8];case"SHARED_COST":return t[9]}}function N(t){if(!t)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!r(t)||!r(t.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(r(t)?"an object of shape: { "+Object.keys(t).join(", ")+" }":"a "+B(t)+": "+t,"."))}var B=function(t){return E(t)};function R(t,e){if((e=new x(e)).hasCountry(t))return e.selectNumberingPlan(t).countryCallingCode();throw new Error("Unknown country: ".concat(t))}function $(t){var e=t.version;"number"==typeof e?(this.v1=1===e,this.v2=2===e,this.v3=3===e,this.v4=4===e):e?-1===S(e,I)?this.v2=!0:-1===S(e,M)?this.v3=!0:this.v4=!0:this.v1=!0}var z=";ext=",j=function(t){return"([".concat("0-90-9٠-٩۰-۹","]{1,").concat(t,"})")};function F(t){return z+j("20")+"|[  \\t,]*(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)[:\\..]?[  \\t,-]*"+j("20")+"#?|[  \\t,]*(?:[xx##~~]|int|int)[:\\..]?[  \\t,-]*"+j("9")+"#?|[- ]+"+j("6")+"#|[  \\t]*(?:,{2}|;)[:\\..]?[  \\t,-]*"+j("15")+"#?|[  \\t]*(?:,)+[:\\..]?[  \\t,-]*"+j("9")+"#?"}var U="[0-90-9٠-٩۰-۹]{"+u+"}",V="[++]{0,1}(?:["+p+"]*[0-90-9٠-٩۰-۹]){3,}["+p+"0-90-9٠-٩۰-۹]*",W=new RegExp("^[++]{0,1}(?:["+p+"]*[0-90-9٠-٩۰-۹]){1,2}$","i"),H=V+"(?:"+F()+")?",G=new RegExp("^"+U+"$|^"+H+"$","i"),Y=new RegExp("(?:"+F()+")$","i"),Q={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function Z(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function X(t){for(var e,i="",n=function(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Z(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Z(t,e):void 0}}(t))){i&&(t=i);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t.split(""));!(e=n()).done;)i+=(void 0,("+"===(o=e.value)?i?void 0:"+":function(t){return Q[t]}(o))||"");var o;return i}function q(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function K(t,e,i){return function t(e,i,n,o){i&&(o=new x(o.metadata)).selectNumberingPlan(i);var r=o.type(n),s=r&&r.possibleLengths()||o.possibleLengths();if(!s)return"IS_POSSIBLE";if("FIXED_LINE_OR_MOBILE"===n){if(!o.type("FIXED_LINE"))return t(e,i,"MOBILE",o);var a=o.type("MOBILE");a&&(s=function(t,e){for(var i,n=t.slice(),o=function(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return q(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?q(t,e):void 0}}(t))){i&&(t=i);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(i=o()).done;){var r=i.value;t.indexOf(r)<0&&n.push(r)}return n.sort(function(t,e){return t-e})}(s,a.possibleLengths()))}else if(n&&!r)return"INVALID_LENGTH";var l=e.length,d=s[0];return d===l?"IS_POSSIBLE":d>l?"TOO_SHORT":s[s.length-1]<l?"TOO_LONG":s.indexOf(l,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}(t,e,void 0,i)}function J(t,e,i){switch(K(t,e,i)){case"IS_POSSIBLE":return!0;default:return!1}}function tt(t,e){return t=t||"",new RegExp("^(?:"+e+")$").test(t)}function et(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}var it=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function nt(t,e,i){if(e=e||{},t.country||t.countryCallingCode){(i=new x(i)).selectNumberingPlan(t.country,t.countryCallingCode);var n=e.v2?t.nationalNumber:t.phone;if(tt(n,i.nationalNumberPattern())){if(ot(n,"FIXED_LINE",i))return i.type("MOBILE")&&""===i.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":i.type("MOBILE")?ot(n,"MOBILE",i)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";
vendor: 4,426 bytes, line 54
54for(var o,r=function(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return et(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?et(t,e):void 0}}(t))){i&&(t=i);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(it);!(o=r()).done;){var s=o.value;if(ot(n,s,i))return s}}}}function ot(t,e,i){var n=i.type(e);return!(!n||!n.pattern())&&!(n.possibleLengths()&&n.possibleLengths().indexOf(t.length)<0)&&tt(t,n.pattern())}var rt=new RegExp("([0-90-9٠-٩۰-۹])");function st(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}var at=!1;function lt(t,e){var i=e.nationalNumber,n=e.metadata;if(at&&n.isNonGeographicCallingCode(t))return"001";var o=n.getCountryCodesForCallingCode(t);return o?1===o.length?o[0]:function(t,e){var i=e.countries,n=e.metadata;n=new x(n);for(var o,r=function(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return st(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?st(t,e):void 0}}(t))){i&&(t=i);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i);!(o=r()).done;){var s=o.value;if(n.selectNumberingPlan(s),n.leadingDigits()){if(t&&0===t.search(n.leadingDigits()))return s}else if(nt({phone:t,country:s},void 0,n.metadata))return s}}(i,{countries:o,metadata:n.metadata}):void 0}function dt(t,e,i){var n=function(t,e){if(t&&e.numberingPlan.nationalPrefixForParsing()){var i=new RegExp("^(?:"+e.numberingPlan.nationalPrefixForParsing()+")"),n=i.exec(t);if(n){var o,r,s,a=n.length-1,l=a>0&&n[a];if(e.nationalPrefixTransformRule()&&l)o=t.replace(i,e.nationalPrefixTransformRule()),a>1&&(r=n[1]);else{var d=n[0];o=t.slice(d.length),l&&(r=n[1])}if(l){var u=t.indexOf(n[1]);t.slice(0,u)===e.numberingPlan.nationalPrefix()&&(s=e.numberingPlan.nationalPrefix())}else s=n[0];return{nationalNumber:o,nationalPrefix:s,carrierCode:r}}}return{nationalNumber:t}}(t,i),o=n.carrierCode,r=n.nationalNumber;if(r!==t){if(!function(e,i,n){return!(tt(t,n.nationalNumberPattern())&&!tt(i,n.nationalNumberPattern()))}(0,r,i))return{nationalNumber:t};if(i.numberingPlan.possibleLengths()&&(e||(e=lt(i.numberingPlan.callingCode(),{nationalNumber:r,metadata:i})),!function(t,e,i){switch(K(t,e,i)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(r,e,i)))return{nationalNumber:t}}return{nationalNumber:r,carrierCode:o}}function ut(t,e,i,n,o){if(!t)return{};var r;if("+"!==t[0]){var s=function(t,e,i,n){if(e){var o=new x(n);o.selectNumberingPlan(e,i);var r=new RegExp(o.IDDPrefix());if(0===t.search(r)){var s=(t=t.slice(t.match(r)[0].length)).match(rt);if(!(s&&null!=s[1]&&s[1].length>0&&"0"===s[1]))return t}}}(t,e||i,n,o);if(!s||s===t){if(e||i||n){var a=function(t,e,i,n,o){var r=e||i?R(e||i,o):n;if(0===t.indexOf(r)){(o=new x(o)).selectNumberingPlan(e||i,r);var s=t.slice(r.length),a=dt(s,e,o).nationalNumber,l=dt(t,e,o).nationalNumber;if(!tt(l,o.nationalNumberPattern())&&tt(a,o.nationalNumberPattern())||"TOO_LONG"===K(l,e,o))return{countryCallingCode:r,number:s}}return{number:t}}(t,e,i,n,o),l=a.countryCallingCode,d=a.number;if(l)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:l,number:d}}return{number:t}}r=!0,t="+"+s}if("0"===t[1])return{};o=new x(o);for(var u=2;u-1<=h&&u<=t.length;){var c=t.slice(1,u);if(o.hasCallingCode(c))return o.selectNumberingPlan(c),{countryCallingCodeSource:r?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:c,number:t.slice(u)};u++}return{}}var ct=/(\$\d)/,ht=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/,pt={formatExtension:function(t,e,
vendor: 9,465 bytes, line 54
54i){return"".concat(t).concat(i.ext()).concat(e)}};function ft(t,e,i,n,o){var r,s,a=(r=n.formats(),s=t,function(t,e){for(var i=0;i<t.length;){if(e(t[i]))return t[i];i++}}(r,function(t){if(t.leadingDigitsPatterns().length>0){var e=t.leadingDigitsPatterns()[t.leadingDigitsPatterns().length-1];if(0!==s.search(e))return!1}return tt(s,t.pattern())}));return a?function(t,e,i){var n=i.useInternationalFormat,o=i.withNationalPrefix,r=t.replace(new RegExp(e.pattern()),n?e.internationalFormat():o&&e.nationalPrefixFormattingRule()?e.format().replace(ct,e.nationalPrefixFormattingRule()):e.format());return n?function(t){return t.replace(new RegExp("[".concat(p,"]+"),"g")," ").trim()}(r):r}(t,a,{useInternationalFormat:"INTERNATIONAL"===i,withNationalPrefix:!a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!o||!1!==o.nationalPrefix,carrierCode:e,metadata:n}):t}function gt(t,e,i,n){return e?n(t,e,i):t}function vt(t){return(vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function mt(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?yt(Object(i),!0).forEach(function(e){bt(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):yt(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function bt(t,e,i){return(e=St(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function St(t){var e=function(t,e){if("object"!=vt(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!=vt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==vt(e)?e:e+""}var Et=function(){return t=function t(e,i,n){if(function(e,i){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this),!e)throw new TypeError("First argument is required");if("string"!=typeof e)throw new TypeError("First argument must be a string");if("+"===e[0]&&!i)throw new TypeError("`metadata` argument not passed");if(r(i)&&r(i.countries)){n=i;var o=e;if(!wt.test(o))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var s=ut(o,void 0,void 0,void 0,n);if(e=s.countryCallingCode,!(i=s.number))throw new Error("Invalid `number` argument passed: too short")}if(!i)throw new TypeError("`nationalNumber` argument is required");if("string"!=typeof i)throw new TypeError("`nationalNumber` argument must be a string");N(n);var a=function(t,e){var i,n,o=new x(e);return Ct(t)?(i=t,o.selectNumberingPlan(i),n=o.countryCallingCode()):n=t,{country:i,countryCallingCode:n}}(e,n),l=a.country,d=a.countryCallingCode;this.country=l,this.countryCallingCode=d,this.nationalNumber=i,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return n}},(e=[{key:"setExt",value:function(t){this.ext=t}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:(t=this.countryCallingCode,e=this.nationalNumber,i=this.getMetadata(),(n=new x(i).getCountryCodesForCallingCode(t))?n.filter(function(t){return function(t,e,i){var n=new x(i);return n.selectNumberingPlan(e),n.numberingPlan.possibleLengths().indexOf(t.length)>=0}(e,t,i)}):[]);var t,e,i,n}},{key:"isPossible",value:function(){return function(t,e,i){if(void 0===e&&(e={}),i=new x(i),e.v2){if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");i.selectNumberingPlan(t.countryCallingCode)}else{if(!t.phone)return!1;if(t.country){if(!i.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));i.selectNumberingPlan(t.country)}else{if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");i.selectNumberingPlan(t.countryCallingCode)}}if(i.possibleLengths())return J(t.phone||t.nationalNumber,t.country,i);if(t.countryCallingCode&&i.isNonGeographicCallingCode(t.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return t={v2:!0},e=this.getMetadata(),t=t||{},(e=new x(e)).selectNumberingPlan(this.country,this.countryCallingCode),e.hasTypes()?void 0!==nt(this,t,e.metadata):tt(t.v2?this.nationalNumber:this.phone,e.nationalNumberPattern());var t,e}},{key:"isNonGeographic",value:function(){return new x(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(t){return this.number===t.number&&this.ext===t.ext}},{key:"getType",value:function(){return nt(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(t,e){return function(t,e,i,n){if(i=i?function(){for(var t=1,e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];for(;t<i.length;){if(i[t])for(var o in i[t])i[0][o]=i[t][o];t++}return i[0]}({},pt,i):pt,n=new x(n),t.country&&"001"!==t.country){if(!n.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));n.selectNumberingPlan(t.country)}else{if(!t.countryCallingCode)return t.phone||"";n.selectNumberingPlan(t.countryCallingCode)}var o,r=n.countryCallingCode(),s=i.v2?t.nationalNumber:t.phone;switch(e){case"NATIONAL":return s?gt(o=ft(s,t.carrierCode,"NATIONAL",n,i),t.ext,n,i.formatExtension):"";case"INTERNATIONAL":return s?(o=ft(s,null,"INTERNATIONAL",n,i),gt(o="+".concat(r," ").concat(o),t.ext,n,i.formatExtension)):"+".concat(r);case"E.164":return"+".concat(r).concat(s);case"RFC3966":return function(t){var e=t.number,i=t.ext;if(!e)return"";if("+"!==e[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(e).concat(i?";ext="+i:"")}({number:"+".concat(r).concat(s),ext:t.ext});case"IDD":if(!i.fromCountry)return;var a=function(t,e,i,n,o){if(R(n,o.metadata)===i){var r=ft(t,e,"NATIONAL",o);return"1"===i?i+" "+r:r}var s=function(t,e,i){var n=new x(i);return n.selectNumberingPlan(t,void 0),n.defaultIDDPrefix()?n.defaultIDDPrefix():ht.test(n.IDDPrefix())?n.IDDPrefix():void 0}(n,0,o.metadata);if(s)return"".concat(s," ").concat(i," ").concat(ft(t,null,"INTERNATIONAL",o))}(s,t.carrierCode,r,i.fromCountry,n);if(!a)return;return gt(a,t.ext,n,i.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(e,'"'))}}(this,t,e?mt(mt({},e),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(t){return this.format("NATIONAL",t)}},{key:"formatInternational",value:function(t){return this.format("INTERNATIONAL",t)}},{key:"getURI",value:function(t){return this.format("RFC3966",t)}}])&&function(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,St(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}(),Ct=function(t){return/^[A-Z]{2}$/.test(t)},wt=/^\+\d+$/,At="+",Tt=new RegExp("^\\"+At+"([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*[0-90-9٠-٩۰-۹]([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*$","g"),It=new RegExp("^([0-90-9٠-٩۰-۹]+((\\-)*[0-90-9٠-٩۰-۹])*\\.)*[a-zA-Z]+((\\-)*[0-90-9٠-٩۰-۹])*\\.?$","g"),Mt="tel:",_t=";phone-context=",xt=";isub=",Pt=250,Ot=new RegExp("[++0-90-9٠-٩۰-۹]"),Lt=new RegExp("[^0-90-9٠-٩۰-۹#]+$"),Dt=!1;function kt(t){return(kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Nt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function Bt(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Nt(Object(i),!0).forEach(function(e){Rt(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Nt(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function Rt(t,e,i){return n=function(t,e){if("object"!=kt(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!=kt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==kt(n)?n:n+"")in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t;var n}function $t(t){return($t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function jt(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
54e%2?zt(Object(i),!0).forEach(function(e){Ft(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):zt(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function Ft(t,e,i){return n=function(t,e){if("object"!=$t(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!=$t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==$t(n)?n:n+"")in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t;var n}function Ut(){var t=function(t){var e,i,n,o,s=function(t){if(Array.isArray(t))return t}(o=Array.prototype.slice.call(t))||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,o,r,s,a=[],l=!0,d=!1;try{for(r=(i=i.call(t)).next;!(l=(n=r.call(i)).done)&&(a.push(n.value),4!==a.length);l=!0);}catch(t){d=!0,o=t}finally{try{if(!l&&null!=i.return&&(s=i.return(),Object(s)!==s))return}finally{if(d)throw o}}return a}}(o)||function(t,e){if(t){if("string"==typeof t)return d(t,4);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?d(t,4):void 0}}(o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),u=s[0],c=s[1],h=s[2],p=s[3];if("string"!=typeof u)throw new TypeError("A text for parsing must be a string.");if(e=u,c&&"string"!=typeof c){if(!r(c))throw new Error("Invalid second argument: ".concat(c));h?(i=c,n=h):n=c}else p?(i=h,n=p):(i=void 0,n=h),c&&(i=function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?a(Object(i),!0).forEach(function(e){l(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}({defaultCountry:c},i));return{text:e,options:i,metadata:n}}(arguments);return function(t,e,i){e&&e.defaultCountry&&!function(t,e){return e.countries.hasOwnProperty(t)}(e.defaultCountry,i)&&(e=jt(jt({},e),{},{defaultCountry:void 0}));try{return function(t,e,i){return function(t,e,i){if(e=e||{},i=new x(i),e.defaultCountry&&!i.hasCountry(e.defaultCountry)){if(e.v2)throw new b("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(e.defaultCountry))}var n=function(t,e,i){var n=function(t,n){var o,r=function(t){return function(t,e,i){if(t)if(t.length>Pt){if(i)throw new b("TOO_LONG")}else{if(!1===e)return t;var n=t.search(Ot);if(!(n<0))return t.slice(n).replace(Lt,"")}}(t,i,e)},s=function(t){var e=t.indexOf(_t);if(e<0)return null;var i=e+_t.length;if(i>=t.length)return"";var n=t.indexOf(";",i);return n>=0?t.substring(i,n):t.substring(i)}(t);if(!function(t){return null===t||0!==t.length&&(Tt.test(t)||It.test(t))}(s))throw new b("NOT_A_NUMBER");if(null===s)o=r(t)||"";else{o="",s.charAt(0)===At&&(o+=s);var a,l=t.indexOf(Mt);a=l>=0?l+Mt.length:0;var d=t.indexOf(_t);o+=t.substring(a,d)}var u=o.indexOf(xt);if(u>0&&(o=o.substring(0,u)),""!==o)return o}(t);if(!n)return{};if(!function(t){return t.length>=u&&G.test(t)}(n))return function(t){return W.test(t)}(n)?{error:"TOO_SHORT"}:{};var o=function(t){var e=t.search(Y);
54if(e<0)return{};for(var i=t.slice(0,e),n=t.match(Y),o=1;o<n.length;){if(n[o])return{number:i,ext:n[o]};o++}}(n);return o.ext?o:{number:n}}(t,e.v2,e.extract),o=n.number,r=n.ext,s=n.error;if(!o){if(e.v2){if("TOO_SHORT"===s)throw new b("TOO_SHORT");throw new b("NOT_A_NUMBER")}return{}}var a=function(t,e,i,n){var o,r=ut(X(t),void 0,e,i,n.metadata),s=r.countryCallingCodeSource,a=r.countryCallingCode,l=r.number;if(a)n.selectNumberingPlan(a);else{if(!l||!e&&!i)return{};n.selectNumberingPlan(e,i),e?o=e:Dt&&n.isNonGeographicCallingCode(i)&&(o="001"),a=i||R(e,n.metadata)}if(!l)return{countryCallingCodeSource:s,countryCallingCode:a};var d=dt(X(l),o,n),u=d.nationalNumber,c=d.carrierCode,h=lt(a,{nationalNumber:u,metadata:n});return h&&(o=h,"001"===h||n.selectNumberingPlan(o)),{country:o,countryCallingCode:a,countryCallingCodeSource:s,nationalNumber:u,carrierCode:c}}(o,e.defaultCountry,e.defaultCallingCode,i),l=a.country,d=a.nationalNumber,h=a.countryCallingCode,p=a.countryCallingCodeSource,f=a.carrierCode;if(!i.hasSelectedNumberingPlan()){if(e.v2)throw new b("INVALID_COUNTRY");return{}}if(!d||d.length<u){if(e.v2)throw new b("TOO_SHORT");return{}}if(d.length>c){if(e.v2)throw new b("TOO_LONG");return{}}if(e.v2){var g=new Et(h,d,i.metadata);return l&&(g.country=l),f&&(g.carrierCode=f),r&&(g.ext=r),g.__countryCallingCodeSource=p,g}var v=!(e.extended?!i.hasSelectedNumberingPlan():!l)&&tt(d,i.nationalNumberPattern());return e.extended?{country:l,countryCallingCode:h,carrierCode:f,valid:v,possible:!!v||!(!0!==e.extended||!i.possibleLengths()||!J(d,l,i)),phone:d,ext:r}:v?function(t,e,i){var n={country:t,phone:e};return i&&(n.ext=i),n}(l,d,r):{}}(t,Bt(Bt({},e),{},{v2:!0}),i)}(t,e,i)}catch(t){if(!(t instanceof b))throw t}}(t.text,t.options,t.metadata)}function Vt(){return function(t,e){var i=Array.prototype.slice.call(e);return i.push(n),t.apply(this,i)}(Ut,arguments)}i.d(e,"a",function(){return Vt})},273:function(t,e,i){var n=self.crypto||self.msCrypto;t.exports=function(t){t=t||21;for(var e="",i=n.getRandomValues(new Uint8Array(t));0<t--;)e+="_~getRandomVsCrypwhil0214563789bcfjkquvxzABDEFGHIJKLMNOPQSTUWXYZ"[63&i[t]];return e}},279:function(t,e,i){(function(e){
55/*!
56* Parsley.js
57* Version 2.8.1 - built Sat, Feb 3rd 2018, 2:27 pm
58* http://parsleyjs.org
59* Guillaume Potier - <[email protected]>
60* Marc-Andre Lafortune - <[email protected]>
61* MIT Licensed
62*/
63var n,o=Array.prototype.slice,r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t};function s(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}n=function(t){"use strict";var i=1,n={},a={attr:function(t,e,i){var n,o,r,s=new RegExp("^"+e,"i");if(void 0===i)i={};else for(n in i)i.hasOwnProperty(n)&&delete i[n];if(!t)return i;for(n=(r=t.attributes).length;n--;)(o=r[n])&&o.specified&&s.test(o.name)&&(i[this.camelize(o.name.slice(e.length))]=this.deserializeValue(o.value));return i},checkAttr:function(t,e,i){return t.hasAttribute(e+i)},setAttr:function(t,e,i,n){t.setAttribute(this.dasherize(e+i),String(n))},getType:function(t){return t.getAttribute("type")||"text"},generateID:function(){return""+i++},deserializeValue:function(t){var e;try{return t?"true"==t||"false"!=t&&("null"==t?null:isNaN(e=Number(t))?/^[\[\{]/.test(t)?JSON.parse(t):t:e):t}catch(e){return t}},camelize:function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},dasherize:function(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()},warn:function(){var t;window.console&&"function"==typeof window.console.warn&&(t=window.console).warn.apply(t,arguments)},warnOnce:function(t){n[t]||(n[t]=!0,this.warn.apply(this,arguments))},_resetWarnings:function(){n={}},trimString:function(t){return t.replace(/^\s+|\s+$/g,"")},parse:{date:function(t){var e=t.match(/^(\d{4,})-(\d\d)-(\d\d)$/);if(!e)return null;var i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){o=!0,r=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw r}}return i}(t,e);
vendor: 33,610 bytes, line 63
63throw new TypeError("Invalid attempt to destructure non-iterable instance")}(e.map(function(t){return parseInt(t,10)}),4),n=(i[0],i[1]),o=i[2],r=i[3],s=new Date(n,o-1,r);return s.getFullYear()!==n||s.getMonth()+1!==o||s.getDate()!==r?null:s},string:function(t){return t},integer:function(t){return isNaN(t)?null:parseInt(t,10)},number:function(t){if(isNaN(t))throw null;return parseFloat(t)},boolean:function(t){return!/^\s*false\s*$/i.test(t)},object:function(t){return a.deserializeValue(t)},regexp:function(t){var e="";return/^\/.*\/(?:[gimy]*)$/.test(t)?(e=t.replace(/.*\/([gimy]*)$/,"$1"),t=t.replace(new RegExp("^/(.*?)/"+e+"$"),"$1")):t="^"+t+"$",new RegExp(t,e)}},parseRequirement:function(t,e){var i=this.parse[t||"string"];if(!i)throw'Unknown requirement specification: "'+t+'"';var n=i(e);if(null===n)throw"Requirement is not a "+t+': "'+e+'"';return n},namespaceEvents:function(e,i){return(e=this.trimString(e||"").split(/\s+/))[0]?t.map(e,function(t){return t+"."+i}).join(" "):""},difference:function(e,i){var n=[];return t.each(e,function(t,e){-1==i.indexOf(e)&&n.push(e)}),n},all:function(e){return t.when.apply(t,s(e).concat([42,42]))},objectCreate:Object.create||function(){var t=function(){};return function(e){if(arguments.length>1)throw Error("Second argument not supported");if("object"!=typeof e)throw TypeError("Argument must be an object");t.prototype=e;var i=new t;return t.prototype=null,i}}(),_SubmitSelector:'input[type="submit"], button:submit'},l={namespace:"data-parsley-",inputs:"input, textarea, select",excluded:"input[type=button], input[type=submit], input[type=reset], input[type=hidden]",priorityEnabled:!0,multiple:null,group:null,uiEnabled:!0,validationThreshold:3,focus:"first",trigger:!1,triggerAfterFailure:"input",errorClass:"parsley-error",successClass:"parsley-success",classHandler:function(t){},errorsContainer:function(t){},errorsWrapper:'<ul class="parsley-errors-list"></ul>',errorTemplate:"<li></li>"},d=function(){this.__id__=a.generateID()};d.prototype={asyncSupport:!0,_pipeAccordingToValidationResult:function(){var e=this,i=function(){var i=t.Deferred();return!0!==e.validationResult&&i.reject(),i.resolve().promise()};return[i,i]},actualizeOptions:function(){return a.attr(this.element,this.options.namespace,this.domOptions),this.parent&&this.parent.actualizeOptions&&this.parent.actualizeOptions(),this},_resetOptions:function(t){for(var e in this.domOptions=a.objectCreate(this.parent.options),this.options=a.objectCreate(this.domOptions),t)t.hasOwnProperty(e)&&(this.options[e]=t[e]);this.actualizeOptions()},_listeners:null,on:function(t,e){return this._listeners=this._listeners||{},(this._listeners[t]=this._listeners[t]||[]).push(e),this},subscribe:function(e,i){t.listenTo(this,e.toLowerCase(),i)},off:function(t,e){var i=this._listeners&&this._listeners[t];if(i)if(e)for(var n=i.length;n--;)i[n]===e&&i.splice(n,1);else delete this._listeners[t];return this},unsubscribe:function(e,i){t.unsubscribeTo(this,e.toLowerCase())},trigger:function(t,e,i){e=e||this;var n,o=this._listeners&&this._listeners[t];if(o)for(var r=o.length;r--;)if(!1===(n=o[r].call(e,e,i)))return n;return!this.parent||this.parent.trigger(t,e,i)},asyncIsValid:function(t,e){return a.warnOnce("asyncIsValid is deprecated; please use whenValid instead"),this.whenValid({group:t,force:e})},_findRelated:function(){return this.options.multiple?t(this.parent.element.querySelectorAll("["+this.options.namespace+'multiple="'+this.options.multiple+'"]')):this.$element}};var u=function(e){t.extend(!0,this,e)};u.prototype={validate:function(t,e){if(this.fn)return arguments.length>3&&(e=[].slice.call(arguments,1,-1)),this.fn(t,e);if(Array.isArray(t)){if(!this.validateMultiple)throw"Validator `"+this.name+"` does not handle multiple values";return this.validateMultiple.apply(this,arguments)}var i=arguments[arguments.length-1];if(this.validateDate&&i._isDateInput())return arguments[0]=a.parse.date(arguments[0]),null!==arguments[0]&&this.validateDate.apply(this,arguments);if(this.validateNumber)return!isNaN(t)&&(arguments[0]=parseFloat(arguments[0]),this.validateNumber.apply(this,arguments));if(this.validateString)return this.validateString.apply(this,arguments);throw"Validator `"+this.name+"` only handles multiple values"},parseRequirements:function(e,i){if("string"!=typeof e)return Array.isArray(e)?e:[e];var n=this.requirementType;if(Array.isArray(n)){for(var o=function(t,e){var i=t.match(/^\s*\[(.*)\]\s*$/);if(!i)throw'Requirement is not an array: "'+t+'"';var n=i[1].split(",").map(a.trimString);if(n.length!==e)throw"Requirement has "+n.length+" values when "+e+" are needed";return n}(e,n.length),r=0;r<o.length;r++)o[r]=a.parseRequirement(n[r],o[r]);return o}return t.isPlainObject(n)?function(t,e,i){var n=null,o={};for(var r in t)if(r){var s=i(r);"string"==typeof s&&(s=a.parseRequirement(t[r],s)),o[r]=s}else n=a.parseRequirement(t[r],e);return[n,o]}(n,e,i):[a.parseRequirement(n,e)]},requirementType:"string",priority:2};var c=function(t,e){this.__class__="ValidatorRegistry",this.locale="en",this.init(t||{},e||{})},h={email:/^((([a-zA-Z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-zA-Z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/,number:/^-?(\d*\.)?\d+(e[-+]?\d+)?$/i,integer:/^-?\d+$/,digits:/^\d+$/,alphanum:/^\w+$/i,date:{test:function(t){return null!==a.parse.date(t)}},url:new RegExp("^(?:(?:https?|ftp)://)?(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-zA-Z\\u00a1-\\uffff0-9]-*)*[a-zA-Z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-zA-Z\\u00a1-\\uffff0-9]-*)*[a-zA-Z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-zA-Z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:/\\S*)?$")};h.range=h.number;var p=function(t){var e=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0},f=function(t,e){return function(i){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return o.pop(),e.apply(void 0,[i].concat(s(function(t,e){return o.map(a.parse[t])}(t))))}},g=function(t){return{validateDate:f("date",t),validateNumber:f("number",t),requirementType:t.length<=2?"string":["string","string"],priority:30}};c.prototype={init:function(t,e){for(var i in this.catalog=e,this.validators=r({},this.validators),t)this.addValidator(i,t[i].fn,t[i].priority);window.Parsley.trigger("parsley:validator:init")},setLocale:function(t){if(void 0===this.catalog[t])throw new Error(t+" is not available in the catalog");return this.locale=t,this},addCatalog:function(t,e,i){return"object"==typeof e&&(this.catalog[t]=e),!0===i?this.setLocale(t):this},addMessage:function(t,e,i){return void 0===this.catalog[t]&&(this.catalog[t]={}),this.catalog[t][e]=i,this},addMessages:function(t,e){for(var i in e)this.addMessage(t,i,e[i]);return this},addValidator:function(t,e,i){if(this.validators[t])a.warn('Validator "'+t+'" is already defined.');else if(l.hasOwnProperty(t))return void a.warn('"'+t+'" is a restricted keyword and is not a valid validator name.');return this._setValidator.apply(this,arguments)},hasValidator:function(t){return!!this.validators[t]},updateValidator:function(t,e,i){return this.validators[t]?this._setValidator.apply(this,arguments):(a.warn('Validator "'+t+'" is not already defined.'),this.addValidator.apply(this,arguments))},removeValidator:function(t){return this.validators[t]||a.warn('Validator "'+t+'" is not defined.'),delete this.validators[t],this},_setValidator:function(t,e,i){for(var n in"object"!=typeof e&&(e={fn:e,priority:i}),e.validate||(e=new u(e)),this.validators[t]=e,e.messages||{})this.addMessage(n,t,e.messages[n]);return this},getErrorMessage:function(t){return("type"===t.name?(this.catalog[this.locale][t.name]||{})[t.requirements]:this.formatMessage(this.catalog[this.locale][t.name],t.requirements))||this.catalog[this.locale].defaultMessage||this.catalog.en.defaultMessage},formatMessage:function(t,e){if("object"==typeof e){for(var i in e)t=this.formatMessage(t,e[i]);return t}return"string"==typeof t?t.replace(/%s/i,e):""},validators:{notblank:{validateString:function(t){return/\S/.test(t)},priority:2},required:{validateMultiple:function(t){return t.length>0},validateString:function(t){return/\S/.test(t)},priority:512},type:{validateString:function(t,e){var i=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],n=i.step,o=void 0===n?"any":n,r=i.base,s=void 0===r?0:r,a=h[e];if(!a)throw new Error("validator type `"+e+"` is not supported");if(!a.test(t))return!1;if("number"===e&&!/^any$/i.test(o||"")){var l=Number(t),d=Math.max(p(o),p(s));if(p(l)>d)return!1;var u=function(t){return Math.round(t*Math.pow(10,d))};if((u(l)-u(s))%u(o)!=0)return!1}return!0},requirementType:{"":"string",step:"string",base:"number"},priority:256},pattern:{validateString:function(t,e){return e.test(t)},requirementType:"regexp",priority:64},minlength:{validateString:function(t,e){return t.length>=e},requirementType:"integer",priority:30},maxlength:{validateString:function(t,e){return t.length<=e},requirementType:"integer",priority:30},length:{validateString:function(t,e,i){return t.length>=e&&t.length<=i},requirementType:["integer","integer"],priority:30},mincheck:{validateMultiple:function(t,e){return t.length>=e},requirementType:"integer",priority:30},maxcheck:{validateMultiple:function(t,e){return t.length<=e},requirementType:"integer",priority:30},check:{validateMultiple:function(t,e,i){return t.length>=e&&t.length<=i},requirementType:["integer","integer"],priority:30},min:g(function(t,e){return t>=e}),max:g(function(t,e){return t<=e}),range:g(function(t,e,i){return t>=e&&t<=i}),equalto:{validateString:function(e,i){var n=t(i);return n.length?e===n.val():e===i},priority:256}}};var v={};v.Form={_actualizeTriggers:function(){var t=this;this.$element.on("submit.Parsley",function(e){t.onSubmitValidate(e)}),this.$element.on("click.Parsley",a._SubmitSelector,function(e){t.onSubmitButton(e)}),!1!==this.options.uiEnabled&&this.element.setAttribute("novalidate","")},focus:function(){if(this._focusedField=null,!0===this.validationResult||"none"===this.options.focus)return null;for(var t=0;t<this.fields.length;t++){var e=this.fields[t];if(!0!==e.validationResult&&e.validationResult.length>0&&void 0===e.options.noFocus&&(this._focusedField=e.$element,"first"===this.options.focus))break}return null===this._focusedField?null:this._focusedField.focus()},_destroyUI:function(){this.$element.off(".Parsley")}},v.Field={_reflowUI:function(){if(this._buildUI(),this._ui){var t=function t(e,i,n){for(var o=[],r=[],s=0;s<e.length;s++){for(var a=!1,l=0;l<i.length;l++)if(e[s].assert.name===i[l].assert.name){a=!0;break}a?r.push(e[s]):o.push(e[s])}return{kept:r,added:o,removed:n?[]:t(i,e,!0).added}}(this.validationResult,this._ui.lastValidationResult);this._ui.lastValidationResult=this.validationResult,this._manageStatusClass(),this._manageErrorsMessages(t),this._actualizeTriggers(),!t.kept.length&&!t.added.length||this._failedOnce||(this._failedOnce=!0,this._actualizeTriggers())}},getErrorsMessages:function(){if(!0===this.validationResult)return[];for(var t=[],e=0;e<this.validationResult.length;e++)t.push(this.validationResult[e].errorMessage||this._getErrorMessage(this.validationResult[e].assert));return t},addError:function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=e.message,n=e.assert,o=e.updateClass,r=void 0===o||o;this._buildUI(),this._addError(t,{message:i,assert:n}),r&&this._errorClass()},updateError:function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=e.message,n=e.assert,o=e.updateClass,r=void 0===o||o;this._buildUI(),this._updateError(t,{message:i,assert:n}),r&&this._errorClass()},removeError:function(t){var e=(arguments.length<=1||void 0===arguments[1]?{}:arguments[1]).updateClass,i=void 0===e||e;this._buildUI(),this._removeError(t),i&&this._manageStatusClass()},_manageStatusClass:function(){this.hasConstraints()&&this.needsValidation()&&!0===this.validationResult?this._successClass():this.validationResult.length>0?this._errorClass():this._resetClass()},_manageErrorsMessages:function(e){if(void 0===this.options.errorsMessagesDisabled){if(void 0!==this.options.errorMessage)return e.added.length||e.kept.length?(this._insertErrorWrapper(),0===this._ui.$errorsWrapper.find(".parsley-custom-error-message").length&&this._ui.$errorsWrapper.append(t(this.options.errorTemplate).addClass("parsley-custom-error-message")),this._ui.$errorsWrapper.addClass("filled").find(".parsley-custom-error-message").html(this.options.errorMessage)):this._ui.$errorsWrapper.removeClass("filled").find(".parsley-custom-error-message").remove();for(var i=0;i<e.removed.length;i++)this._removeError(e.removed[i].assert.name);for(i=0;i<e.added.length;i++)this._addError(e.added[i].assert.name,{message:e.added[i].errorMessage,assert:e.added[i].assert});for(i=0;i<e.kept.length;i++)this._updateError(e.kept[i].assert.name,{message:e.kept[i].errorMessage,assert:e.kept[i].assert})}},_addError:function(e,i){var n=i.message,o=i.assert;this._insertErrorWrapper(),this._ui.$errorClassHandler.attr("aria-describedby",this._ui.errorsWrapperId),this._ui.$errorsWrapper.addClass("filled").append(t(this.options.errorTemplate).addClass("parsley-"+e).html(n||this._getErrorMessage(o)))},_updateError:function(t,e){var i=e.message,n=e.assert;this._ui.$errorsWrapper.addClass("filled").find(".parsley-"+t).html(i||this._getErrorMessage(n))},_removeError:function(t){this._ui.$errorClassHandler.removeAttr("aria-describedby"),this._ui.$errorsWrapper.removeClass("filled").find(".parsley-"+t).remove()},_getErrorMessage:function(t){var e=t.name+"Message";return void 0!==this.options[e]?window.Parsley.formatMessage(this.options[e],t.requirements):window.Parsley.getErrorMessage(t)},_buildUI:function(){if(!this._ui&&!1!==this.options.uiEnabled){var e={};this.element.setAttribute(this.options.namespace+"id",this.__id__),e.$errorClassHandler=this._manageClassHandler(),e.errorsWrapperId="parsley-id-"+(this.options.multiple?"multiple-"+this.options.multiple:this.__id__),e.$errorsWrapper=t(this.options.errorsWrapper).attr("id",e.errorsWrapperId),e.lastValidationResult=[],e.validationInformationVisible=!1,this._ui=e}},_manageClassHandler:function(){if("string"==typeof this.options.classHandler&&t(this.options.classHandler).length)return t(this.options.classHandler);var e=this.options.classHandler;if("string"==typeof this.options.classHandler&&"function"==typeof window[this.options.classHandler]&&(e=window[this.options.classHandler]),"function"==typeof e){var i=e.call(this,this);if(void 0!==i&&i.length)return i}else{if("object"==typeof e&&e instanceof jQuery&&e.length)return e;e&&a.warn("The class handler `"+e+"` does not exist in DOM nor as a global JS function")}return this._inputHolder()},_inputHolder:function(){return this.options.multiple&&"SELECT"!==this.element.nodeName?this.$element.parent():this.$element},_insertErrorWrapper:function(){var e=this.options.errorsContainer;if(0!==this._ui.$errorsWrapper.parent().length)return this._ui.$errorsWrapper.parent();if("string"==typeof e){if(t(e).length)return t(e).append(this._ui.$errorsWrapper);"function"==typeof window[e]?e=window[e]:a.warn("The errors container `"+e+"` does not exist in DOM nor as a global JS function")}return"function"==typeof e&&(e=e.call(this,this)),"object"==typeof e&&e.length?e.append(this._ui.$errorsWrapper):this._inputHolder().after(this._ui.$errorsWrapper)},_actualizeTriggers:function(){var t,e=this,i=this._findRelated();i.off(".Parsley"),this._failedOnce?i.on(a.namespaceEvents(this.options.triggerAfterFailure,"Parsley"),function(){e._validateIfNeeded()}):(t=a.namespaceEvents(this.options.trigger,"Parsley"))&&i.on(t,function(t){e._validateIfNeeded(t)})},_validateIfNeeded:function(t){var e=this;t&&/key|input/.test(t.type)&&(!this._ui||!this._ui.validationInformationVisible)&&this.getValue().length<=this.options.validationThreshold||(this.options.debounce?(window.clearTimeout(this._debounced),this._debounced=window.setTimeout(function(){return e.validate()},this.options.debounce)):this.validate())},_resetUI:function(){this._failedOnce=!1,this._actualizeTriggers(),void 0!==this._ui&&(this._ui.$errorsWrapper.removeClass("filled").children().remove(),this._resetClass(),this._ui.lastValidationResult=[],this._ui.validationInformationVisible=!1)},_destroyUI:function(){this._resetUI(),void 0!==this._ui&&this._ui.$errorsWrapper.remove(),delete this._ui},_successClass:function(){this._ui.validationInformationVisible=!0,this._ui.$errorClassHandler.removeClass(this.options.errorClass).addClass(this.options.successClass)},_errorClass:function(){this._ui.validationInformationVisible=!0,this._ui.$errorClassHandler.removeClass(this.options.successClass).addClass(this.options.errorClass)},_resetClass:function(){this._ui.$errorClassHandler.removeClass(this.options.successClass).removeClass(this.options.errorClass)}};var y=function(e,i,n){this.__class__="Form",this.element=e,this.$element=t(e),this.domOptions=i,this.options=n,this.parent=window.Parsley,this.fields=[],this.validationResult=null},m={pending:null,resolved:!0,rejected:!1};y.prototype={onSubmitValidate:function(t){var e=this;if(!0!==t.parsley){var i=this._submitSource||this.$element.find(a._SubmitSelector)[0];if(this._submitSource=null,this.$element.find(".parsley-synthetic-submit-button").prop("disabled",!0),!i||null===i.getAttribute("formnovalidate")){window.Parsley._remoteCache={};var n=this.whenValidate({event:t});"resolved"===n.state()&&!1!==this._trigger("submit")||(t.stopImmediatePropagation(),t.preventDefault(),"pending"===n.state()&&n.done(function(){e._submit(i)}))}}},onSubmitButton:function(t){this._submitSource=t.currentTarget},_submit:function(e){if(!1!==this._trigger("submit")){if(e){var i=this.$element.find(".parsley-synthetic-submit-button").prop("disabled",!1);0===i.length&&(i=t('<input class="parsley-synthetic-submit-button" type="hidden">').appendTo(this.$element)),i.attr({name:e.getAttribute("name"),value:e.getAttribute("value")})}this.$element.trigger(r(t.Event("submit"),{parsley:!0}))}},validate:function(e){if(arguments.length>=1&&!t.isPlainObject(e)){a.warnOnce("Calling validate on a parsley form without passing arguments as an object is deprecated.");var i=o.call(arguments);e={group:i[0],force:i[1],event:i[2]}}return m[this.whenValidate(e).state()]},whenValidate:function(){var e,i=this,n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],o=n.group,l=n.force,d=n.event;this.submitEvent=d,d&&(this.submitEvent=r({},d,{preventDefault:function(){a.warnOnce("Using `this.submitEvent.preventDefault()` is deprecated; instead, call `this.validationResult = false`"),i.validationResult=!1}})),this.validationResult=!0,this._trigger("validate"),this._refreshFields();var u=this._withoutReactualizingFormOptions(function(){return t.map(i.fields,function(t){return t.whenValidate({force:l,group:o})})});return(e=a.all(u).done(function(){i._trigger("success")}).fail(function(){i.validationResult=!1,i.focus(),i._trigger("error")}).always(function(){i._trigger("validated")})).pipe.apply(e,s(this._pipeAccordingToValidationResult()))},isValid:function(e){if(arguments.length>=1&&!t.isPlainObject(e)){a.warnOnce("Calling isValid on a parsley form without passing arguments as an object is deprecated.");var i=o.call(arguments);e={group:i[0],force:i[1]}}return m[this.whenValid(e).state()]},whenValid:function(){var e=this,i=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=i.group,o=i.force;this._refreshFields();var r=this._withoutReactualizingFormOptions(function(){return t.map(e.fields,function(t){return t.whenValid({group:n,force:o})})});return a.all(r)},refresh:function(){return this._refreshFields(),this},reset:function(){for(var t=0;t<this.fields.length;t++)this.fields[t].reset();this._trigger("reset")},destroy:function(){this._destroyUI();for(var t=0;t<this.fields.length;t++)this.fields[t].destroy();this.$element.removeData("Parsley"),this._trigger("destroy")},_refreshFields:function(){return this.actualizeOptions()._bindFields()},_bindFields:function(){var e=this,i=this.fields;return this.fields=[],this.fieldsMappedById={},this._withoutReactualizingFormOptions(function(){e.$element.find(e.options.inputs).not(e.options.excluded).each(function(t,i){var n=new window.Parsley.Factory(i,{},e);if(("Field"===n.__class__||"FieldMultiple"===n.__class__)&&!0!==n.options.excluded){var o=n.__class__+"-"+n.__id__;void 0===e.fieldsMappedById[o]&&(e.fieldsMappedById[o]=n,e.fields.push(n))}}),t.each(a.difference(i,e.fields),function(t,e){e.reset()})}),this},_withoutReactualizingFormOptions:function(t){var e=this.actualizeOptions;this.actualizeOptions=function(){return this};var i=t();return this.actualizeOptions=e,i},_trigger:function(t){return this.trigger("form:"+t)}};var b=function(t,e,i,n,o){var s=window.Parsley._validatorRegistry.validators[e],a=new u(s);n=n||t.options[e+"Priority"]||a.priority,r(this,{validator:a,name:e,requirements:i,priority:n,isDomConstraint:o=!0===o}),this._parseRequirements(t.options)};b.prototype={validate:function(t,e){var i;return(i=this.validator).validate.apply(i,[t].concat(s(this.requirementList),[e]))},_parseRequirements:function(t){var e=this;this.requirementList=this.validator.parseRequirements(this.requirements,function(i){return t[e.name+(n=i,n[0].toUpperCase()+n.slice(1))];var n})}};var S=function(e,i,n,o){this.__class__="Field",this.element=e,this.$element=t(e),void 0!==o&&(this.parent=o),this.options=n,this.domOptions=i,this.constraints=[],this.constraintsByName={},this.validationResult=!0,this._bindConstraints()},E={pending:null,resolved:!0,rejected:!1};S.prototype={validate:function(e){arguments.length>=1&&!t.isPlainObject(e)&&(a.warnOnce("Calling validate on a parsley field without passing arguments as an object is deprecated."),e={options:e});var i=this.whenValidate(e);if(!i)return!0;switch(i.state()){case"pending":return null;case"resolved":return!0;case"rejected":return this.validationResult}},whenValidate:function(){var t,e=this,i=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=i.force,o=i.group;if(this.refresh(),!o||this._isInGroup(o))return this.value=this.getValue(),this._trigger("validate"),(t=this.whenValid({force:n,value:this.value,_refreshed:!0}).always(function(){e._reflowUI()}).done(function(){e._trigger("success")}).fail(function(){e._trigger("error")}).always(function(){e._trigger("validated")})).pipe.apply(t,s(this._pipeAccordingToValidationResult()))},hasConstraints:function(){return 0!==this.constraints.length},needsValidation:function(t){return void 0===t&&(t=this.getValue()),!(!t.length&&!this._isRequired()&&void 0===this.options.validateIfEmpty)},_isInGroup:function(e){return Array.isArray(this.options.group)?-1!==t.inArray(e,this.options.group):this.options.group===e},isValid:function(e){if(arguments.length>=1&&!t.isPlainObject(e)){a.warnOnce("Calling isValid on a parsley field without passing arguments as an object is deprecated.");var i=o.call(arguments);e={force:i[0],value:i[1]}}var n=this.whenValid(e);return!n||E[n.state()]},whenValid:function(){var e=this,i=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=i.force,o=void 0!==n&&n,r=i.value,s=i.group;if(i._refreshed||this.refresh(),!s||this._isInGroup(s)){if(this.validationResult=!0,!this.hasConstraints())return t.when();if(null==r&&(r=this.getValue()),!this.needsValidation(r)&&!0!==o)return t.when();var l=this._getGroupedConstraints(),d=[];return t.each(l,function(i,n){var o=a.all(t.map(n,function(t){return e._validateConstraint(r,t)}));if(d.push(o),"rejected"===o.state())return!1}),a.all(d)}},_validateConstraint:function(e,i){var n=this,o=i.validate(e,this);return!1===o&&(o=t.Deferred().reject()),a.all([o]).fail(function(t){n.validationResult instanceof Array||(n.validationResult=[]),n.validationResult.push({assert:i,errorMessage:"string"==typeof t&&t})})},getValue:function(){var t;return null==(t="function"==typeof this.options.value?this.options.value(this):void 0!==this.options.value?this.options.value:this.$element.val())?"":this._handleWhitespace(t)},reset:function(){return this._resetUI(),this._trigger("reset")},destroy:function(){this._destroyUI(),this.$element.removeData("Parsley"),this.$element.removeData("FieldMultiple"),this._trigger("destroy")},refresh:function(){return this._refreshConstraints(),this},_refreshConstraints:function(){return this.actualizeOptions()._bindConstraints()},refreshConstraints:function(){return a.warnOnce("Parsley's refreshConstraints is deprecated. Please use refresh"),this.refresh()},addConstraint:function(t,e,i,n){if(window.Parsley._validatorRegistry.validators[t]){var o=new b(this,t,e,i,n);"undefined"!==this.constraintsByName[o.name]&&this.removeConstraint(o.name),this.constraints.push(o),this.constraintsByName[o.name]=o}return this},removeConstraint:function(t){for(var e=0;e<this.constraints.length;e++)if(t===this.constraints[e].name){this.constraints.splice(e,1);break}return delete this.constraintsByName[t],this},updateConstraint:function(t,e,i){return this.removeConstraint(t).addConstraint(t,e,i)},_bindConstraints:function(){for(var t=[],e={},i=0;i<this.constraints.length;i++)!1===this.constraints[i].isDomConstraint&&(t.push(this.constraints[i]),e[this.constraints[i].name]=this.constraints[i]);for(var n in this.constraints=t,this.constraintsByName=e,this.options)this.addConstraint(n,this.options[n],void 0,!0);return this._bindHtml5Constraints()},_bindHtml5Constraints:function(){null!==this.element.getAttribute("required")&&this.addConstraint("required",!0,void 0,!0),null!==this.element.getAttribute("pattern")&&this.addConstraint("pattern",this.element.getAttribute("pattern"),void 0,!0);var t=this.element.getAttribute("min"),e=this.element.getAttribute("max");null!==t&&null!==e?this.addConstraint("range",[t,e],void 0,!0):null!==t?this.addConstraint("min",t,void 0,!0):null!==e&&this.addConstraint("max",e,void 0,!0),null!==this.element.getAttribute("minlength")&&null!==this.element.getAttribute("maxlength")?this.addConstraint("length",[this.element.getAttribute("minlength"),this.element.getAttribute("maxlength")],void 0,!0):null!==this.element.getAttribute("minlength")?this.addConstraint("minlength",this.element.getAttribute("minlength"),void 0,!0):null!==this.element.getAttribute("maxlength")&&this.addConstraint("maxlength",this.element.getAttribute("maxlength"),void 0,!0);var i=a.getType(this.element);return"number"===i?this.addConstraint("type",["number",{step:this.element.getAttribute("step")||"1",base:t||this.element.getAttribute("value")}],void 0,!0):/^(email|url|range|date)$/i.test(i)?this.addConstraint("type",i,void 0,!0):this},_isRequired:function(){return void 0!==this.constraintsByName.required&&!1!==this.constraintsByName.required.requirements},_trigger:function(t){return this.trigger("field:"+t)},_handleWhitespace:function(t){return!0===this.options.trimValue&&a.warnOnce('data-parsley-trim-value="true" is deprecated, please use data-parsley-whitespace="trim"'),"squish"===this.options.whitespace&&(t=t.replace(/\s{2,}/g," ")),"trim"!==this.options.whitespace&&"squish"!==this.options.whitespace&&!0!==this.options.trimValue||(t=a.trimString(t)),t},_isDateInput:function(){var t=this.constraintsByName.type;return t&&"date"===t.requirements},_getGroupedConstraints:function(){if(!1===this.options.priorityEnabled)return[this.constraints];for(var t=[],e={},i=0;i<this.constraints.length;i++){var n=this.constraints[i].priority;e[n]||t.push(e[n]=[]),e[n].push(this.constraints[i])}return t.sort(function(t,e){return e[0].priority-t[0].priority}),t}};var C=S,w=function(){this.__class__="FieldMultiple"};w.prototype={addElement:function(t){return this.$elements.push(t),this},_refreshConstraints:function(){var e;if(this.constraints=[],"SELECT"===this.element.nodeName)return this.actualizeOptions()._bindConstraints(),this;for(var i=0;i<this.$elements.length;i++)if(t("html").has(this.$elements[i]).length){e=this.$elements[i].data("FieldMultiple")._refreshConstraints().constraints;for(var n=0;n<e.length;n++)this.addConstraint(e[n].name,e[n].requirements,e[n].priority,e[n].isDomConstraint)}else this.$elements.splice(i,1);return this},getValue:function(){if("function"==typeof this.options.value)return this.options.value(this);if(void 0!==this.options.value)return this.options.value;if("INPUT"===this.element.nodeName){var e=a.getType(this.element);if("radio"===e)return this._findRelated().filter(":checked").val()||"";if("checkbox"===e){var i=[];return this._findRelated().filter(":checked").each(function(){i.push(t(this).val())}),i}}return"SELECT"===this.element.nodeName&&null===this.$element.val()?[]:this.$element.val()},_init:function(){return this.$elements=[this.$element],this}};var A=function(e,i,n){this.element=e,this.$element=t(e);var o=this.$element.data("Parsley");if(o)return void 0!==n&&o.parent===window.Parsley&&(o.parent=n,o._resetOptions(o.options)),"object"==typeof i&&r(o.options,i),o;if(!this.$element.length)throw new Error("You must bind Parsley on an existing element.");if(void 0!==n&&"Form"!==n.__class__)throw new Error("Parent instance must be a Form instance");return this.parent=n||window.Parsley,this.init(i)};A.prototype={init:function(t){return this.__class__="Parsley",this.__version__="2.8.1",this.__id__=a.generateID(),this._resetOptions(t),"FORM"===this.element.nodeName||a.checkAttr(this.element,this.options.namespace,"validate")&&!this.$element.is(this.options.inputs)?this.bind("parsleyForm"):this.isMultiple()?this.handleMultiple():this.bind("parsleyField")},isMultiple:function(){var t=a.getType(this.element);return"radio"===t||"checkbox"===t||"SELECT"===this.element.nodeName&&null!==this.element.getAttribute("multiple")},handleMultiple:function(){var e,i,n=this;if(this.options.multiple=this.options.multiple||(e=this.element.getAttribute("name"))||this.element.getAttribute("id"),"SELECT"===this.element.nodeName&&null!==this.element.getAttribute("multiple"))return this.options.multiple=this.options.multiple||this.__id__,this.bind("parsleyFieldMultiple");if(!this.options.multiple)return a.warn("To be bound by Parsley, a radio, a checkbox and a multiple select input must have either a name or a multiple option.",this.$element),this;this.options.multiple=this.options.multiple.replace(/(:|\.|\[|\]|\{|\}|\$)/g,""),e&&t('input[name="'+e+'"]').each(function(t,e){var i=a.getType(e);"radio"!==i&&"checkbox"!==i||e.setAttribute(n.options.namespace+"multiple",n.options.multiple)});for(var o=this._findRelated(),r=0;r<o.length;r++)if(void 0!==(i=t(o.get(r)).data("Parsley"))){this.$element.data("FieldMultiple")||i.addElement(this.$element);break}return this.bind("parsleyField",!0),i||this.bind("parsleyFieldMultiple")},bind:function(e,i){var n;switch(e){case"parsleyForm":n=t.extend(new y(this.element,this.domOptions,this.options),new d,window.ParsleyExtend)._bindFields();break;case"parsleyField":n=t.extend(new C(this.element,this.domOptions,this.options,this.parent),new d,window.ParsleyExtend);break;case"parsleyFieldMultiple":n=t.extend(new C(this.element,this.domOptions,this.options,this.parent),new w,new d,window.ParsleyExtend)._init();break;default:throw new Error(e+"is not a supported Parsley type")}return this.options.multiple&&a.setAttr(this.element,this.options.namespace,"multiple",this.options.multiple),void 0!==i?(this.$element.data("FieldMultiple",n),n):(this.$element.data("Parsley",n),n._actualizeTriggers(),n._trigger("init"),n)}};var T=t.fn.jquery.split(".");if(parseInt(T[0])<=1&&parseInt(T[1])<8)throw"The loaded version of jQuery is too old. Please upgrade to 1.8.x or better.";T.forEach||a.warn("Parsley requires ES5 to run properly. Please include https://github.com/es-shims/es5-shim");var I=r(new d,{element:document,$element:t(document),actualizeOptions:null,_resetOptions:null,Factory:A,version:"2.8.1"});r(C.prototype,v.Field,d.prototype),r(y.prototype,v.Form,d.prototype),r(A.prototype,d.prototype),t.fn.parsley=t.fn.psly=function(e){if(this.length>1){var i=[];return this.each(function(){i.push(t(this).parsley(e))}),i}if(0!=this.length)return new A(this[0],e)},void 0===window.ParsleyExtend&&(window.ParsleyExtend={}),I.options=r(a.objectCreate(l),window.ParsleyConfig),window.ParsleyConfig=I.options,window.Parsley=window.psly=I,I.Utils=a,window.ParsleyUtils={},t.each(a,function(t,e){"function"==typeof e&&(window.ParsleyUtils[t]=function(){return a.warnOnce("Accessing `window.ParsleyUtils` is deprecated. Use `window.Parsley.Utils` instead."),a[t].apply(a,arguments)})});var M=window.Parsley._validatorRegistry=new c(window.ParsleyConfig.validators,window.ParsleyConfig.i18n);window.ParsleyValidator={},t.each("setLocale addCatalog addMessage addMessages getErrorMessage formatMessage addValidator updateV
63alidator removeValidator hasValidator".split(" "),function(t,e){window.Parsley[e]=function(){return M[e].apply(M,arguments)},window.ParsleyValidator[e]=function(){var t;return a.warnOnce("Accessing the method '"+e+"' through Validator is deprecated. Simply call 'window.Parsley."+e+"(...)'"),(t=window.Parsley)[e].apply(t,arguments)}}),window.Parsley.UI=v,window.ParsleyUI={removeError:function(t,e,i){var n=!0!==i;return a.warnOnce("Accessing UI is deprecated. Call 'removeError' on the instance directly. Please comment in issue 1073 as to your need to call this method."),t.removeError(e,{updateClass:n})},getErrorsMessages:function(t){return a.warnOnce("Accessing UI is deprecated. Call 'getErrorsMessages' on the instance directly."),t.getErrorsMessages()}},t.each("addError updateError".split(" "),function(t,e){window.ParsleyUI[e]=function(t,i,n,o,r){var s=!0!==r;return a.warnOnce("Accessing UI is deprecated. Call '"+e+"' on the instance directly. Please comment in issue 1073 as to your need to call this method."),t[e](i,{message:n,assert:o,updateClass:s})}}),!1!==window.ParsleyConfig.autoBind&&t(function(){t("[data-parsley-validate]").length&&t("[data-parsley-validate]").parsley()});var _=t({}),x=function(){a.warnOnce("Parsley's pubsub module is deprecated; use the 'on' and 'off' methods on parsley instances or window.Parsley")};function P(t,e){return t.parsleyAdaptedCallback||(t.parsleyAdaptedCallback=function(){var i=Array.prototype.slice.call(arguments,0);i.unshift(this),t.apply(e||_,i)}),t.parsleyAdaptedCallback}var O="parsley:";function L(t){return 0===t.lastIndexOf(O,0)?t.substr(O.length):t}return t.listen=function(t,e){var i;if(x(),"object"==typeof arguments[1]&&"function"==typeof arguments[2]&&(i=arguments[1],e=arguments[2]),"function"!=typeof e)throw new Error("Wrong parameters");window.Parsley.on(L(t),P(e,i))},t.listenTo=function(t,e,i){if(x(),!(t instanceof C||t instanceof y))throw new Error("Mu
63st give Parsley instance");if("string"!=typeof e||"function"!=typeof i)throw new Error("Wrong parameters");t.on(L(e),P(i))},t.unsubscribe=function(t,e){if(x(),"string"!=typeof t||"function"!=typeof e)throw new Error("Wrong arguments");window.Parsley.off(L(t),e.parsleyAdaptedCallback)},t.unsubscribeTo=function(t,e){if(x(),!(t instanceof C||t instanceof y))throw new Error("Must give Parsley instance");t.off(L(e))},t.unsubscribeAll=function(e){x(),window.Parsley.off(L(e)),t("form,input,textarea,select").each(function(){var i=t(this).data("Parsley");i&&i.off(L(e))})},t.emit=function(t,e){var i;x();var n=e instanceof C||e instanceof y,o=Array.prototype.slice.call(arguments,n?2:1);o.unshift(L(t)),n||(e=window.Parsley),(i=e).trigger.apply(i,s(o))},t.extend(!0,I,{asyncValidators:{default:{fn:function(t){return t.status>=200&&t.status<300},url:!1},reverse:{fn:function(t){return t.status<200||t.status>=300},url:!1}},addAsyncValidator:function(t,e,i,n){return I.asyncValidators[t]={fn:e,url:i||!1,options:n||{}},this}}),I.addValidator("remote",{requirementType:{"":"string",validator:"string",reverse:"boolean",options:"object"},validateString:function(e,i,n,o){var r,s,a={},l=n.validator||(!0===n.reverse?"reverse":"default");if(void 0===I.asyncValidators[l])throw new Error("Calling an undefined async validator: `"+l+"`");(i=I.asyncValidators[l].url||i).indexOf("{value}")>-1?i=i.replace("{value}",encodeURIComponent(e)):a[o.element.getAttribute("name")||o.element.getAttribute("id")]=e;var d=t.extend(!0,n.options||{},I.asyncValidators[l].options);r=t.extend(!0,{},{url:i,data:a,type:"GET"},d),o.trigger("field:ajaxoptions",o,r),s=t.param(r),void 0===I._remoteCache&&(I._remoteCache={});var u=I._remoteCache[s]=I._remoteCache[s]||t.ajax(r),c=function(){var e=I.asyncValidators[l].fn.call(o,u,i,n);return e||(e=t.Deferred().reject()),t.when(e)};return u.then(c,c)},priority:-1}),I.on("form:submit",function(){I._remoteCache={}}),d.prototype.addAsyncValidator=function(){return a.warnOnce("Accessing the method `addAsyncValidator` through an instance is deprecated. Simply call `Parsley.addAsyncValidator(...)`"),I.addAsyncValidator.apply(I,arguments)},I.addMessages("en",{defaultMessage:"This value seems to be invalid.",type:{email:"This value should be a valid email.",url:"This value should be a valid url.",number:"This value should be a valid number.",integer:"This value should be a valid integer.",digits:"This value should be digits.",alphanum:"This value should be alphanumeric."},notblank:"This value should not be blank.",required:"This value is required.",pattern:"This value seems to be invalid.",min:"This value should be greater than or equal to %s.",max:"This value should be lower than or equal to %s.",range:"This value should be between %s and %s.",minlength:"This value is too short. It should have %s characters or more.",maxlength:"This value is too long. It should have %s characters or fewer.",length:"This value length is invalid. It should be between %s and %s characters long.",mincheck:"You must select at least %s choices.",maxcheck:"You must select %s choices or fewer.",check:"You must select between %s and %s choices.",equalto:"This value should be the same."}),I.setLocale("en"),(new
64/**
65   * inputevent - Alleviate browser bugs for input events
66   * https://github.com/marcandre/inputevent
67   * @version v0.0.3 - (built Thu, Apr 14th 2016, 5:58 pm)
68   * @author Marc-Andre Lafortune <[email protected]>
69   * @license MIT
70   */
71function(){var i=this,n=window||e;r(this,{isNativeEvent:function(t){return t.originalEvent&&!1!==t.originalEvent.isTrusted},fakeInputEvent:function(e){i.isNativeEvent(e)&&t(e.target).trigger("input")},misbehaves:function(e){i.isNativeEvent(e)&&(i.behavesOk(e),t(document).on("change.inputevent",e.data.selector,i.fakeInputEvent),i.fakeInputEvent(e))},behavesOk:function(e){i.isNativeEvent(e)&&t(document).off("input.inputevent",e.data.selector,i.behavesOk).off("change.inputevent",e.data.selector,i.misbehaves)},install:function(){if(!n.inputEventPatched){n.inputEventPatched="0.0.3";for(var e=["select",'input[type="checkbox"]','input[type="radio"]','input[type="file"]'],o=0;o<e.length;o++){var r=e[o];t(document).on("input.inputevent",r,{selector:r},i.behavesOk).on("change.inputevent",r,{selector:r},i.misbehaves)}}},uninstall:function(){delete n.inputEventPatched,t(document).off(".inputevent")}})}).install(),I},t.exports=n(i(1573))}).call(this,i(101))}
71,340:function(t,e,i){"use strict";i.d(e,"a",function(){return m});var n=i(427),o=i(102),r=i.n(o),s=i(0),a=i.n(s);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function u(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function c(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?u(Object(i),!0).forEach(function(e){d(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):u(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function h(t,e){if(null==t)return{};var i,n,o=function(t,e){if(null==t)return{};var i,n,o={},r=Object.keys(t);for(n=0;n<r.length;n++)i=r[n],e.indexOf(i)>=0||(o[i]=t[i]);return o}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(n=0;n<r.length;n++)i=r[n],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(o[i]=t[i])}return o}function p(t){return function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function f(t){return e=t,(e-=0)==e?t:(t=t.replace(/[\-_\s]+(.)?/g,function(t,e){return e?e.toUpperCase():""})).substr(0,1).toLowerCase()+t.substr(1);var e}var g=!1;try{g=!0}catch(t){}function v(t){return n.b.icon?n.b.icon(t):null===t?null:"object"===l(t)&&t.prefix&&t.iconName?t:Array.isArray(t)&&2===t.length?{prefix:t[0],iconName:t[1]}:"string"==typeof t?{prefix:"fas",iconName:t}:void 0}function y(t,e){return Array.isArray(e)&&e.length>0||!Array.isArray(e)&&e?d({},t,e):{}}function m(t){var e=t.forwardedRef,i=h(t,["forwardedRef"]),o=i.icon,r=i.mask,s=i.symbol,a=i.className,l=i.title,u=i.titleId,f=v(o),S=y("classes",[].concat(p(function(t){var e,i=t.spin,n=t.pulse,o=t.fixedWidth,r=t.inverse,s=t.border,a=t.listItem,l=t.flip,u=t.size,c=t.rotation,h=t.pull,p=(d(e={"fa-spin":i,"fa-pulse":n,"fa-fw":o,"fa-inverse":r,"fa-border":s,"fa-li":a,"fa-flip-horizontal":"horizontal"===l||"both"===l,"fa-flip-vertical":"vertical"===l||"both"===l},"fa-".concat(u),null!=u),d(e,"fa-rotate-".concat(c),null!=c&&0!==c),d(e,"fa-pull-".concat(h),null!=h),d(e,"fa-swap-opacity",t.swapOpacity),e);return Object.keys(p).map(function(t){return p[t]?t:null}).filter(function(t){return t})}(i)),p(a.split(" ")))),E=y("transform","string"==typeof i.transform?n.b.transform(i.transform):i.transform),C=y("mask",v(r)),w=Object(n.a)(f,c({},S,{},E,{},C,{symbol:s,title:l,titleId:u}));if(!w)return function(){var t;!g&&console&&"function"==typeof console.error&&(t=console).error.apply(t,arguments)}("Could not find icon",f),null;var A=w.abstract,T={ref:e};
71return Object.keys(i).forEach(function(t){m.defaultProps.hasOwnProperty(t)||(T[t]=i[t])}),b(A[0],T)}m.displayName="FontAwesomeIcon",m.propTypes={border:r.a.bool,className:r.a.string,mask:r.a.oneOfType([r.a.object,r.a.array,r.a.string]),fixedWidth:r.a.bool,inverse:r.a.bool,flip:r.a.oneOf(["horizontal","vertical","both"]),icon:r.a.oneOfType([r.a.object,r.a.array,r.a.string]),listItem:r.a.bool,pull:r.a.oneOf(["right","left"]),pulse:r.a.bool,rotation:r.a.oneOf([0,90,180,270]),size:r.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:r.a.bool,symbol:r.a.oneOfType([r.a.bool,r.a.string]),title:r.a.string,transform:r.a.oneOfType([r.a.string,r.a.object]),swapOpacity:r.a.bool},m.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var b=function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof i)return i;var o=(i.children||[]).map(function(i){return t(e,i)}),r=Object.keys(i.attributes||{}).reduce(function(t,e){var n=i.attributes[e];switch(e){case"class":t.attrs.className=n,delete i.attributes.class;break;case"style":t.attrs.style=n.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,e){var i,n=e.indexOf(":"),o=f(e.slice(0,n)),r=e.slice(n+1).trim();return o.startsWith("webkit")?t[(i=o,i.charAt(0).toUpperCase()+i.slice(1))]=r:t[o]=r,t},{});break;default:0===e.indexOf("aria-")||0===e.indexOf("data-")?t.attrs[e.toLowerCase()]=n:t.attrs[f(e)]=n}return t},{attrs:{}}),s=n.style,a=void 0===s?{}:s,l=h(n,["style"]);return r.attrs.style=c({},r.attrs.style,{},a),e.apply(void 0,[i.tag,c({},r.attrs,{},l)].concat(p(o)))}.bind(null,a.a.createElement)},341:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});
72/*!
73 * Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com
74 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
75 */
76var n={prefix:"fas",iconName:"camera",icon:[512,512,[],"f030","M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z"]},o={prefix:"fas",iconName:"info-circle",icon:[512,512,[],"f05a","M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"]}},408:function(t,e){function i(){return t.exports=i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},i.apply(this,arguments)}t.exports=i},426:function(t,e,i){var n=i(1462),o=i(819),r=i(1471),s={lowerCaseAttributeNames:!1};function a(t,e){if("string"!=typeof t)throw new TypeError("First argument must be a string");return""===t?[]:n(r(t,(e=e||{}).htmlparser2||s),e)}a.domToReact=n,a.htmlToDOM=r,a.attributesToProps=o,t.exports=a,t.exports.default=a},427:function(t,e,i){"use strict";(function(t,n){
77/*!
78 * Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com
79 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
80 */
81function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function s(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable}
81))),n.forEach(function(e){r(t,e,i[e])})}return t}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){o=!0,r=t}finally{try{n||null==a.return||a.return()}finally{if(o)throw r}}return i}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}i.d(e,"a",function(){return Ct}),i.d(e,"b",function(){return Et});var l=function(){},d={},u={},c={mark:l,measure:l};try{"undefined"!=typeof window&&(d=window),"undefined"!=typeof document&&(u=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&(c=performance)}catch(t){}var h=(d.navigator||{}).userAgent,p=void 0===h?"":h,f=d,g=u,v=c,y=(f.document,!!g.documentElement&&!!g.head&&"function"==typeof g.addEventListener&&"function"==typeof g.createElement),m=(~p.indexOf("MSIE")||p.indexOf("Trident/"),"fa"),b="svg-inline--fa",S=[1,2,3,4,5,6,7,8,9,10],E=S.concat([11,12,13,14,15,16,17,18,19,20]),C={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},w=(["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter",C.GROUP,C.SWAP_OPACITY,C.PRIMARY,C.SECONDARY].concat(S.map(function(t){return"".concat(t,"x")})).concat(E.map(function(t){return"w-".concat(t)})),f.FontAwesomeConfig||{});g&&"function"==typeof g.querySelector&&[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(t){var e=a(t,2),i=e[0],n=e[1],o=function(t){return""===t||"false"!==t&&("true"===t||t)}(function(t){var e=g.querySelector("script["+t+"]");if(e)return e.getAttribute(t)}(i));null!=o&&(w[n]=o)});var A=s({},{familyPrefix:m,replacementClass:b,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},w);A.autoReplaceSvg||(A.observeMutations=!1);var T=s({},A);f.FontAwesomeConfig=T;var I=f||{};I.___FONT_AWESOME___||(I.___FONT_AWESOME___={}),I.___FONT_AWESOME___.styles||(I.___FONT_AWESOME___.styles={}),I.___FONT_AWESOME___.hooks||(I.___FONT_AWESOME___.hooks={}),I.___FONT_AWESOME___.shims||(I.___FONT_AWESOME___.shims=[]);var M=I.___FONT_AWESOME___,_=[];y&&((g.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(g.readyState)||g.addEventListener("DOMContentLoaded",function t(){g.removeEventListener("DOMContentLoaded",t),_.map(function(t){return t()})}));var x,P="pending",O="settled",L="fulfilled",D="rejected",k=function(){},N=void 0!==t&&void 0!==t.process&&"function"==typeof t.process.emit,B=void 0===n?setTimeout:n,R=[];function $(){for(var t=0;t<R.length;t++)R[t][0](R[t][1]);R=[],x=!1}function z(t,e){R.push([t,e]),x||(x=!0,B($,0))}function j(t){var e=t.owner,i=e._state,n=e._data,o=t[i],r=t.then;if("function"==typeof o){i=L;try{n=o(n)}catch(t){W(r,t)}}F(r,n)||(i===L&&U(r,n),i===D&&W(r,n))}function F(t,e){var i;try{if(t===e)throw new TypeError("A promises callback cannot return that same promise.");if(e&&("function"==typeof e||"object"===o(e))){var n=e.then;if("function"==typeof n)return n.call(e,function(n){i||(i=!0,e===n?V(t,n):U(t,n))},function(e){i||(i=!0,W(t,e))}),!0}}catch(e){return i||W(t,e),!0}return!1}function U(t,e){t!==e&&F(t,e)||V(t,e)}function V(t,e){t._state===P&&(t._state=O,t._data=e,z(G,t))}function W(t,e){t._state===P&&(t._state=O,t._data=e,z(Y,t))}function H(t){t._then=t._then.forEach(j)}function G(t){t._state=L,H(t)}function Y(e){e._state=D,H(e),!e._handled&&N&&t.process.emit("unhandledRejection",e._data,e)}function Q(e){t.process.emit("rejectionHandled",e)}function Z(t){if("function"!=typeof t)throw new TypeError("Promise resolver "+t+" is not a function");if(this instanceof Z==0)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object c
vendor: 4,633 bytes, line 81
81onstructor cannot be called as a function.");this._then=[],function(t,e){function i(t){W(e,t)}try{t(function(t){U(e,t)},i)}catch(t){i(t)}}(t,this)}Z.prototype={constructor:Z,_state:P,_then:null,_data:void 0,_handled:!1,then:function(t,e){var i={owner:this,then:new this.constructor(k),fulfilled:t,rejected:e};return!e&&!t||this._handled||(this._handled=!0,this._state===D&&N&&z(Q,this)),this._state===L||this._state===D?z(j,i):this._then.push(i),i.then},catch:function(t){return this.then(null,t)}},Z.all=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to Promise.all().");return new Z(function(e,i){var n=[],o=0;function r(t){return o++,function(i){n[t]=i,--o||e(n)}}for(var s,a=0;a<t.length;a++)(s=t[a])&&"function"==typeof s.then?s.then(r(a),i):n[a]=s;o||e(n)})},Z.race=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to Promise.race().");return new Z(function(e,i){for(var n,o=0;o<t.length;o++)(n=t[o])&&"function"==typeof n.then?n.then(e,i):e(n)})},Z.resolve=function(t){return t&&"object"===o(t)&&t.constructor===Z?t:new Z(function(e){e(t)})},Z.reject=function(t){return new Z(function(e,i){i(t)})},"function"==typeof Promise&&Promise;var X={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},q="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function K(){for(var t=12,e="";t-- >0;)e+=q[62*Math.random()|0];return e}function J(t){return"".concat(t).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function tt(t){return Object.keys(t||{}).reduce(function(e,i){return e+"".concat(i,": ").concat(t[i],";")},"")}function et(t){return t.size!==X.size||t.x!==X.x||t.y!==X.y||t.rotate!==X.rotate||t.flipX||t.flipY}function it(t){var e=t.transform,i=t.containerWidth,n=t.iconWidth,o={transform:"translate(".concat(i/2," 256)")},r="translate(".concat(32*e.x,", ").concat(32*e.y,") "),s="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),a="rotate(".concat(e.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(r," ").concat(s," ").concat(a)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}var nt={x:0,y:0,width:"100%",height:"100%"};function ot(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}var rt=(T.measurePerformance&&v&&v.mark&&v.measure,function(t,e,i,n){var o,r,s,a=Object.keys(t),l=a.length,d=void 0!==n?function(t,e){return function(i,n,o,r){return t.call(e,i,n,o,r)}}(e,n):e;for(void 0===i?(o=1,s=t[a[0]]):(o=0,s=i);o<l;o++)s=d(s,t[r=a[o]],r,t);return s}),st=M.styles,at=M.shims,lt=function(){var t=function(t){return rt(st,function(e,i,n){return e[n]=rt(i,t,{}),e},{})};t(function(t,e,i){return e[3]&&(t[e[3]]=i),t}),t(function(t,e,i){var n=e[2];return t[i]=i,n.forEach(function(e){t[e]=i}),t});var e="far"in st;rt(at,function(t,i){var n=i[0],o=i[1],r=i[2];return"far"!==o||e||(o="fas"),t[n]={prefix:o,iconName:r},t},{})};function dt(t,e,i){if(t&&t[e]&&t[e][i])return{prefix:e,iconName:i,icon:t[e][i]}}function ut(t){var e=t.tag,i=t.attributes,n=void 0===i?{}:i,o=t.children,r=void 0===o?[]:o;return"string"==typeof t?J(t):"<".concat(e," ").concat(function(t){return Object.keys(t||{}).reduce(function(e,i){return e+"".concat(i,'="').concat(J(t[i]),'" ')},"").trim()}(n),">").concat(r.map(ut).join(""),"</").concat(e,">")}function ct(t){this.name="MissingIcon",this.message=t||"Icon unavailable",this.stack=(new Error).stack}lt(),M.styles,ct.prototype=Object.create(Error.prototype),ct.prototype.constructor=ct;var ht={fill:"currentColor"},pt={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},ft=(s({},ht,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2
81-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}),s({},pt,{attributeName:"opacity"}));function gt(t){var e=t[0],i=t[1],n=a(t.slice(4),1)[0];return{found:!0,width:e,height:i,icon:Array.isArray(n)?{tag:"g",attributes:{class:"".concat(T.familyPrefix,"-").concat(C.GROUP)},children:[{tag:"path",attributes:{class:"".concat(T.familyPrefix,"-").concat(C.SECONDARY),fill:"currentColor",d:n[0]}},{tag:"path",attributes:{class:"".concat(T.familyPrefix,"-").concat(C.PRIMARY),fill:"currentColor",d:n[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:n}}}}s({},ht,{cx:"256",cy:"364",r:"28"}),s({},pt,{attributeName:"r",values:"28;14;28;28;14;28;"}),s({},ft,{values:"1;0;1;1;0;1;"}),s({},ht,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),s({},ft,{values:"1;0;0;0;0;1;"}),s({},ht,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),s({},ft,{values:"0;0;1;1;0;0;"}),M.styles,M.styles;var vt='svg:not(:root).svg-inline--fa {\n  overflow: visible;\n}\n\n.svg-inline--fa {\n  display: inline-block;\n  font-size: inherit;\n  height: 1em;\n  overflow: visible;\n  vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n  vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n  width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n  width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n  width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n  width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n  width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n  width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n  width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n  width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n  width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n  width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n  width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n  width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n  width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n  width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n  width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n  width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n  width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n  width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n  width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n  width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n  margin-right: 0.3em;\n  width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n  margin-left: 0.3em;\n  width: auto;\n}\n.svg-inline--fa.fa-border {\n  height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n  width: 2em;\n}\n.svg-inline--fa.fa-fw {\n  width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.fa-layers {\n  display: inline-block;\n  height: 1em;\n  position: relative;\n  text-align: center;\n  vertical-align: -0.125em;\n  width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n  display: inline-block;\n  position: absolute;\n  text-align: center;\n}\n\n.fa-layers-text {\n  left: 50%;\n  top: 50%;\n  -webkit-transform: translate(-50%, -50%);\n          transform: translate(-50%, -50%);\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter {\n  background-color: #ff253a;\n  border-radius: 1em;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  color: #fff;\n  height: 1.5em;\n  line-height: 1;\n  max-width: 5em;\n  min-width: 1.5em;\n  overflow: hidden;\n  padding: 0.25em;\n  right: 0;\n  text-overflow: ellipsis;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n  bottom: 0;\n  right: 0;\n  top: auto;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: bottom right;\n          transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n  bottom: 0;\n  left: 0;\n  right: auto;\n  top: auto;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: bottom left;\n          transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n  right: 0;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-top-left {\n  left: 0;\n  right: auto;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top left;\n          transform-origin: top left;\n}\n\n.fa-lg {\n  font-size: 1.3333333333em;\n  line-height: 0.75em;\n  vertical-align: -0.0667em;\n}\n\n.fa-xs {\n  font-size: 0.75em;\n}\n\n.fa-sm {\n  font-size: 0.875em;\n}\n\n.fa-1x {\n  font-size: 1em;\n}\n\n.fa-2x {\n  font-size: 2em;\n}\n\n.fa-3x {\n  font-size: 3em;\n}\n\n.fa-4x {\n  font-size: 4em;\n}\n\n.fa-5x {\n  font-size: 5em;
81\n}\n\n.fa-6x {\n  font-size: 6em;\n}\n\n.fa-7x {\n  font-size: 7em;\n}\n\n.fa-8x {\n  font-size: 8em;\n}\n\n.fa-9x {\n  font-size: 9em;\n}\n\n.fa-10x {\n  font-size: 10em;\n}\n\n.fa-fw {\n  text-align: center;\n  width: 1.25em;\n}\n\n.fa-ul {\n  list-style-type: none;\n  margin-left: 2.5em;\n  padding-left: 0;\n}\n.fa-ul > li {\n  position: relative;\n}\n\n.fa-li {\n  left: -2em;\n  position: absolute;\n  text-align: center;\n  width: 2em;\n  line-height: inherit;\n}\n\n.fa-border {\n  border: solid 0.08em #eee;\n  border-radius: 0.1em;\n  padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n  float: left;\n}\n\n.fa-pull-right {\n  float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n  margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n  margin-left: 0.3em;\n}\n\n.fa-spin {\n  -webkit-animation: fa-spin 2s infinite linear;\n          animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n  -webkit-animation: fa-spin 1s infinite steps(8);\n          animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n\n@keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n.fa-rotate-90 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n  -webkit-transform: rotate(90deg);\n          transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n  -webkit-transform: rotate(180deg);\n          transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n  -webkit-transform: rotate(270deg);\n          transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n  -webkit-transform: scale(-1, 1);\n          transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n  -webkit-transform: scale(1, -1);\n          transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n  -webkit-transform: scale(-1, -1);\n          transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n  -webkit-filter: none;\n          filter: none;\n}\n\n.fa-stack {\n  display: inline-block;\n  height: 2em;\n  position: relative;\n  width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n  height: 1em;\n  width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n  height: 2em;\n  width: 2.5em;\n}\n\n.fa-inverse {\n  color: #fff;\n}\n\n.sr-only {\n  border: 0;\n  clip: rect(0, 0, 0, 0);\n  height: 1px;\n  margin: -1px;\n  overflow: hidden;\n  padding: 0;\n  position: absolute;\n  width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n  clip: auto;\n  height: auto;\n  margin: 0;\n  overflow: visible;\n  position: static;\n  width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n  fill: var(--fa-primary-color, currentColor);\n  opacity: 1;\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n  fill: var(--fa-secondary-color, currentColor);\n  opacity: 0.4;\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n  opacity: 0.4;\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n  opacity: 1;\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n  fill: black;\n}\n\n.fad.fa-inverse {\n  color: #fff;\n}';function yt(t){var e=t.prefix,i=void 0===e?"fa":e,n=t.iconName;if(n)return dt(bt.definitions,i,n)||dt(M.styles,i,n)}var mt,bt=new(function(){function t(){!function(e,i){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this),this.definitions={}}var e;return(e=[{key:"add",value:function(){for(var t=this,e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];var o=i.reduce(this._pullDefinitions,{});
vendor: 4,306 bytes, line 81
81Object.keys(o).forEach(function(e){t.definitions[e]=s({},t.definitions[e]||{},o[e]),function t(e,i){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,o=void 0!==n&&n,r=Object.keys(i).reduce(function(t,e){var n=i[e];return n.icon?t[n.iconName]=n.icon:t[e]=n,t},{});"function"!=typeof M.hooks.addPack||o?M.styles[e]=s({},M.styles[e]||{},r):M.hooks.addPack(e,r),"fas"===e&&t("fa",i)}(e,o[e]),lt()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(t,e){var i=e.prefix&&e.iconName&&e.icon?{0:e}:e;return Object.keys(i).map(function(e){var n=i[e],o=n.prefix,r=n.iconName,s=n.icon;t[o]||(t[o]={}),t[o][r]=s}),t}}])&&function(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}()),St=!1,Et={transform:function(t){return function(t){var e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t?t.toLowerCase().split(" ").reduce(function(t,e){var i=e.toLowerCase().split("-"),n=i[0],o=i.slice(1).join("-");if(n&&"h"===o)return t.flipX=!0,t;if(n&&"v"===o)return t.flipY=!0,t;if(o=parseFloat(o),isNaN(o))return t;switch(n){case"grow":t.size=t.size+o;break;case"shrink":t.size=t.size-o;break;case"left":t.x=t.x-o;break;case"right":t.x=t.x+o;break;case"up":t.y=t.y-o;break;case"down":t.y=t.y+o;break;case"rotate":t.rotate=t.rotate+o}return t},e):e}(t)}},Ct=(mt=function(t){var e,i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.transform,r=void 0===o?X:o,a=n.symbol,l=void 0!==a&&a,d=n.mask,u=void 0===d?null:d,c=n.maskId,h=void 0===c?null:c,p=n.title,f=void 0===p?null:p,v=n.titleId,S=void 0===v?null:v,E=n.classes,C=void 0===E?[]:E,w=n.attributes,A=void 0===w?{}:w,I=n.styles,M=void 0===I?{}:I;if(t){var _=t.prefix,x=t.iconName,P=t.icon;return e=s({type:"icon"},t),i=function(){return T.autoAddCss&&!St&&(function(t){if(t&&y){var e=g.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var i=g.head.childNodes,n=null,o=i.length-1;o>-1;o--){var r=i[o],s=(r.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(n=r)}g.head.insertBefore(e,n)}}(function(){var t=m,e=b,i=T.familyPrefix,n=T.replacementClass,o=vt;if(i!==t||n!==e){var r=new RegExp("\\.".concat(t,"\\-"),"g"),s=new RegExp("\\--".concat(t,"\\-"),"g"),a=new RegExp("\\.".concat(e),"g");o=o.replace(r,".".concat(i,"-")).replace(s,"--".concat(i,"-")).replace(a,".".concat(n))}return o}()),St=!0),T.autoA11y&&(f?A["aria-labelledby"]="".concat(T.replacementClass,"-title-").concat(S||K()):(A["aria-hidden"]="true",A.focusable="false")),function(t){var e=t.icons,i=e.main,n=e.mask,o=t.prefix,r=t.iconName,a=t.transform,l=t.symbol,d=t.title,u=t.maskId,c=t.titleId,h=t.extra,p=t.watchable,f=void 0!==p&&p,g=n.found?n:i,v=g.width,y=g.height,m="fak"===o,b=m?"":"fa-w-".concat(Math.ceil(v/y*16)),S=[T.replacementClass,r?"".concat(T.familyPrefix,"-").concat(r):"",b].filter(function(t){return-1===h.classes.indexOf(t)}).filter(function(t){return""!==t||!!t}).concat(h.classes).join(" "),E={children:[],attributes:s({},h.attributes,{"data-prefix":o,"data-icon":r,class:S,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(v," ").concat(y)})},C=m&&!~h.classes.indexOf("fa-fw")?{width:"".concat(v/y*16*.0625,"em")}:{};f&&(E.attributes["data-fa-i2svg"]=""),d&&E.children.push({tag:"title",attributes:{id:E.attributes["aria-labelledby"]||"title-".concat(c||K())},children:[d]});var w=s({},E,{prefix:o,iconName:r,main:i,mask:n,maskId:u,transform:a,symbol:l,styles:s({},C,h.styles)}),A=n.found&&i.found?function(t){var e,i=t.children,n=t.attributes,o=t.main,r=t.mask,a=t.maskId,l=t.transform,d=o.width,u=o.icon,c=r.width,h=r.icon,p=it({transform:l,containerWidth:c,iconWidth:d}),f={tag:"rect",attributes:s({},nt,{fill:"white"})},g=u.children?{children:u.children.map(ot)}:{},v={tag:"g",attributes:s({},p.inner),children:[ot(s({tag:u.tag,attributes:s({},u.attributes,p.path)},g))]},y={tag:"g",attributes:s({},p.outer),children:[v]},m="mask-".concat(a||K()),b="clip-".concat(a||K()),S={tag:"mask",attributes:s({},nt,{id:m,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[f,y]},E={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:(e=h,"g"===e.tag?e.children:[e])},S]};
81return i.push(E,{tag:"rect",attributes:s({fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(m,")")},nt)}),{children:i,attributes:n}}(w):function(t){var e=t.children,i=t.attributes,n=t.main,o=t.transform,r=tt(t.styles);if(r.length>0&&(i.style=r),et(o)){var a=it({transform:o,containerWidth:n.width,iconWidth:n.width});e.push({tag:"g",attributes:s({},a.outer),children:[{tag:"g",attributes:s({},a.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:s({},n.icon.attributes,a.path)}]}]})}else e.push(n.icon);return{children:e,attributes:i}}(w),I=A.children,M=A.attributes;return w.children=I,w.attributes=M,l?function(t){var e=t.prefix,i=t.iconName,n=t.children,o=t.attributes,r=t.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:s({},o,{id:!0===r?"".concat(e,"-").concat(T.familyPrefix,"-").concat(i):r}),children:n}]}]}(w):function(t){var e=t.children,i=t.main,n=t.mask,o=t.attributes,r=t.styles,a=t.transform;if(et(a)&&i.found&&!n.found){var l={x:i.width/i.height/2,y:.5};o.style=tt(s({},r,{"transform-origin":"".concat(l.x+a.x/16,"em ").concat(l.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:e}]}(w)}({icons:{main:gt(P),mask:u?gt(u.icon):{found:!1,width:null,height:null,icon:{}}},prefix:_,iconName:x,transform:s({},X,r),symbol:l,title:f,maskId:h,titleId:S,extra:{attributes:A,styles:M,classes:C}})},Object.defineProperty(e,"abstract",{get:i}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(t){return ut(t)})}}),Object.defineProperty(e,"node",{get:function(){if(y){var t=g.createElement("div");return t.innerHTML=e.html,t.children}}}),e}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(t||{}).icon?t:yt(t||{}),n=e.mask;return n&&(n=(n||{}).icon?n:yt(n||{})),mt(i,s({},e,{mask:n}))})}).call(this,i(101),i(755).setImmediate)},470:function(t,e,i){"use strict";e.__esModule=!0,e.default=void 0,e.default=function(t){return t&&t.__isYupSchema__},t.exports=e.default},471:function(t,e,i){"use strict";function n(t){this._maxSize=t,this.clear()}n.prototype.clear=function(){this._size=0,this._values={}},n.prototype.get=function(t){return this._values[t]},n.prototype.set=function(t,e){return this._size>=this._maxSize&&this.clear(),this._values.hasOwnProperty(t)||this._size++,this._values[t]=e};var o=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,s=/^\d/,a=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,l=/^\s*(['"]?)(.*?)(\1)\s*$/,d=!1,u=new n(512),c=new n(512),h=new n(512);try{new Function("")}catch(t){d=!0}function p(t){return u.get(t)||u.set(t,f(t).map(function(t){return t.replace(l,"$2")}))}function f(t){return t.match(o)}function g(t,e,i){return"string"==typeof e&&(i=e,e=!1),i=i||"data",(t=t||"")&&"["!==t.charAt(0)&&(t="."+t),e?function(e,i){var n,o=i,r=f(t);return v(r,function(t,e,i,r,s){n=r===s.length-1,o+=(t=e||i?"["+t+"]":"."+t)+(n?")":" || {})")}),new Array(r.length+1).join("(")+o}(0,i):i+t}function v(t,e,i){var n,o,r,s,a=t.length;for(o=0;o<a;o++)(n=t[o])&&(m(n)&&(n='"'+n+'"'),r=!(s=y(n))&&/^\d+$/.test(n),e.call(i,n,s,r,o,t))}function y(t){return"string"==typeof t&&t&&-1!==["'",'"'].indexOf(t.charAt(0))}function m(t){return!y(t)&&(function(t){return t.match(s)&&!t.match(r)}(t)||function(t){return a.test(t)}(t))}t.exports={Cache:n,expr:g,split:f,normalizePath:p,setter:d?function(t){var e=p(t);return function(t,i){return function(t,e,i){for(var n=0,o=t.length;n<o-1;)e=e[t[n++]];e[t[n]]=i}(e,t,i)}}:function(t){return c.get(t)||c.set(t,new Function("data, value",g(t,"data")+" = value"))},getter:d?function(t,e){var i=p(t);return function(t){return function(t,e,i){for(var n=0,o=t.length;n<o;){if(null==i&&e)return;i=i[t[n++]]}return i}(i,e,t)}}:function(t,e){var i=t+"_"+e;return h.get(i)||h.set(i,new Function("data","return "+g(t,e,"data")))},join:function(t){return t.reduce(function(t,e){return t+(y(e)||r.test(e)?"["+e+"]":(t?".":"")+e)},"")},forEach:function(t,e,i){v(f(t),e,i)}}},503:function(t,e,i){var n=i(289),o=i(138),r=i(209);t.exports=function(t){return"string"==typeof t||!o(t)&&r(t)&&"[object String]"==n(t)}}
81,53:function(t,e,i){var n=i(311),o=0;t.exports=function(t){var e=++o;return n(t)+e}},531:function(t,e,i){"use strict";for(var n=i(0),o=i.n(n),r=i(80),s=i.n(r),a="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),l=new Uint8Array(16),d=[],u=0;u<256;++u)d[u]=(u+256).toString(16).substr(1);var c=function(t,e,i){var n=e&&i||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||function(){if(!a)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(l)})();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var r=0;r<16;++r)e[n+r]=o[r];return e||function(t,e){var i=0,n=d;return[n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]]].join("")}(o)};function h(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function p(t,e,i){return e&&h(t.prototype,e),i&&h(t,i),t}function f(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function g(){return(g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function v(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function y(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?v(Object(i),!0).forEach(function(e){f(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):v(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var S="__react_tooltip_hide_event",E="__react_tooltip_rebuild_event",C="__react_tooltip_show_event",w=function(t,e){var i;"function"==typeof window.CustomEvent?i=new window.CustomEvent(t,{detail:e}):(i=document.createEvent("Event")).initEvent(t,!1,!0,e),window.dispatchEvent(i)},A=function(t,e){var i=this.state.show,n=this.props.id,o=this.isCapture(e.currentTarget),r=e.currentTarget.getAttribute("currentItem");o||e.stopPropagation(),i&&"true"===r?t||this.hideTooltip(e):(e.currentTarget.setAttribute("currentItem","true"),T(e.currentTarget,this.getTargetArray(n)),this.showTooltip(e))},T=function(t,e){for(var i=0;i<e.length;i++)t!==e[i]?e[i].setAttribute("currentItem","false"):e[i].setAttribute("currentItem","true")},I={id:"9b69f92e-d3fe-498b-b1b4-c5e63a51b0cf",set:function(t,e,i){this.id in t?t[this.id][e]=i:Object.defineProperty(t,this.id,{configurable:!0,value:f({},e,i)})},get:function(t,e){var i=t[this.id];if(void 0!==i)return i[e]}},M=function(t,e,i){var n=e.respectEffect,o=void 0!==n&&n,r=e.customEvent,s=void 0!==r&&r,a=this.props.id,l=i.target.getAttribute("data-tip")||null,d=i.target.getAttribute("data-for")||null,u=i.target;if(!this.isCustomEvent(u)||s){var c=null==a&&null==d||d===a;if(null!=l&&(!o||"float"===this.getEffect(u))&&c){var h=function(t){var e={};for(var i in t)"function"==typeof t[i]?e[i]=t[i].bind(t):e[i]=t[i];return e}(i);h.currentTarget=u,t(h)}}},_=function(t,e){var i={};return t.forEach(function(t){var n=t.getAttribute(e);n&&n.split(" ").forEach(function(t){return i[t]=!0})}),i},x=function(){return document.getElementsByTagName("body")[0]};function P(t,e,i,n,o,r,s){for(var a=O(i),l=a.width,d=a.height,u=O(e),c=u.width,h=u.height,p=L(t,e,r),f=p.mouseX,g=p.mouseY,v=D(r,c,h,l,d),y=k(s),m=y.extraOffsetX,b=y.extraOffsetY,S=window.innerWidth,E=window.innerHeight,C=N(i),w=C.parentTop,A=C.parentLeft,T=function(t){var e=v[t].l;return f+e+m},I=function(t){var e=v[t].t;return g+e+b},M=function(t){return function(t){return T(t)<0}(t)||function(t){return e=v[t].r,f+e+m>S;var e}(t)||function(t){return I(t)<0}(t)||function(t){return e=v[t].b,g+e+b>E;var e}(t)},_=function(t){return!M(t)},x=["top","bottom","left","right"],P=[],B=0;B<4;B++){var R=x[B];_(R)&&P.push(R)}var $,z=!1,j=o!==n;return _(o)&&j?(z=!0,$=o):P.length>0&&M(o)&&M(n)&&(z=!0,$=P[0]),z?{isNewState:!0,newState:{place:$}}:{isNewState:!1,position:{left:parseInt(T(n)-A,10),top:parseInt(I(n)-w,10)}}}var O=function(t){var e=t.getBoundingClientRect(),i=e.height,n=e.width;return{height:parseInt(i,10),width:parseInt(n,10)}}
81,L=function(t,e,i){var n=e.getBoundingClientRect(),o=n.top,r=n.left,s=O(e),a=s.width,l=s.height;return"float"===i?{mouseX:t.clientX,mouseY:t.clientY}:{mouseX:r+a/2,mouseY:o+l/2}},D=function(t,e,i,n,o){var r,s,a,l;return"float"===t?(r={l:-n/2,r:n/2,t:-(o+3+2),b:-3},a={l:-n/2,r:n/2,t:15,b:o+3+2+12},l={l:-(n+3+2),r:-3,t:-o/2,b:o/2},s={l:3,r:n+3+2,t:-o/2,b:o/2}):"solid"===t&&(r={l:-n/2,r:n/2,t:-(i/2+o+2),b:-i/2},a={l:-n/2,r:n/2,t:i/2,b:i/2+o+2},l={l:-(n+e/2+2),r:-e/2,t:-o/2,b:o/2},s={l:e/2,r:n+e/2+2,t:-o/2,b:o/2}),{top:r,bottom:a,left:l,right:s}},k=function(t){var e=0,i=0;for(var n in"[object String]"===Object.prototype.toString.apply(t)&&(t=JSON.parse(t.toString().replace(/'/g,'"'))),t)"top"===n?i-=parseInt(t[n],10):"bottom"===n?i+=parseInt(t[n],10):"left"===n?e-=parseInt(t[n],10):"right"===n&&(e+=parseInt(t[n],10));return{extraOffsetX:e,extraOffsetY:i}},N=function(t){for(var e=t;e;){var i=window.getComputedStyle(e);if("none"!==i.getPropertyValue("transform")||"transform"===i.getPropertyValue("will-change"))break;e=e.parentElement}return{parentTop:e&&e.getBoundingClientRect().top||0,parentLeft:e&&e.getBoundingClientRect().left||0}};function B(t,e,i,n){if(e)return e;if(null!=i)return i;if(null===i)return null;var r=/<br\s*\/?>/;return n&&"false"!==n&&r.test(t)?t.split(r).map(function(t,e){return o.a.createElement("span",{key:e,className:"multi-line"},t)}):t}function R(t){var e={};return Object.keys(t).filter(function(t){return/(^aria-\w+$|^role$)/.test(t)}).forEach(function(i){e[i]=t[i]}),e}function $(t){var e=t.length;return t.hasOwnProperty?Array.prototype.slice.call(t):new Array(e).fill().map(function(e){return t[e]})}var z,j,F,U,V={dark:{text:"#fff",background:"#222",border:"transparent",arrow:"#222"},success:{text:"#fff",background:"#8DC572",border:"transparent",arrow:"#8DC572"},warning:{text:"#fff",background:"#F0AD4E",border:"transparent",arrow:"#F0AD4E"},error:{text:"#fff",background:"#BE6464",border:"transparent",arrow:"#BE6464"},info:{text:"#fff",background:"#337AB7",border:"transparent",arrow:"#337AB7"},light:{text:"#222",background:"#fff",border:"transparent",arrow:"#fff"}},W=function(t){t.hide=function(t){w(S,{target:t})},t.rebuild=function(){w(E)},t.show=function(t){w(C,{target:t})},t.prototype.globalRebuild=function(){this.mount&&(this.unbindListener(),this.bindListener())},t.prototype.globalShow=function(t){if(this.mount){var e=!!(t&&t.detail&&t.detail.target);this.showTooltip({currentTarget:e&&t.detail.target},!0)}},t.prototype.globalHide=function(t){if(this.mount){var e=!!(t&&t.detail&&t.detail.target);this.hideTooltip({currentTarget:e&&t.detail.target},e)}}}(z=function(t){t.prototype.bindWindowEvents=function(t){window.removeEventListener(S,this.globalHide),window.addEventListener(S,this.globalHide,!1),window.removeEventListener(E,this.globalRebuild),window.addEventListener(E,this.globalRebuild,!1),window.removeEventListener(C,this.globalShow),window.addEventListener(C,this.globalShow,!1),t&&(window.removeEventListener("resize",this.onWindowResize),window.addEventListener("resize",this.onWindowResize,!1))},t.prototype.unbindWindowEvents=function(){window.removeEventListener(S,this.globalHide),window.removeEventListener(E,this.globalRebuild),window.removeEventListener(C,this.globalShow),window.removeEventListener("resize",this.onWindowResize)},t.prototype.onWindowResize=function(){this.mount&&this.hideTooltip()}}(z=function(t){t.prototype.isCustomEvent=function(t){return this.state.event||!!t.getAttribute("data-event")},t.prototype.customBindListener=function(t){var e=this,i=this.state,n=i.event,o=i.eventOff,r=t.getAttribute("data-event")||n,s=t.getAttribute("data-event-off")||o;r.split(" ").forEach(function(i){t.removeEventListener(i,I.get(t,i));var n=A.bind(e,s);I.set(t,i,n),t.addEventListener(i,n,!1)}),s&&s.split(" ").forEach(function(i){t.removeEventListener(i,e.hideTooltip),t.addEventListener(i,e.hideTooltip,!1)})},t.prototype.customUnbindListener=function(t){var e=this.state,i=e.event,n=e.eventOff,o=i||t.getAttribute("data-event"),r=n||t.getAttribute("data-event-off");t.removeEventListener(o,I.get(t,i)),r&&t.removeEventListener(r,this.hideTooltip)}}(z=function(t){t.prototype.isCapture=function(t){return t&&"true"===t.getAttribute("data-iscapture")||this.props.isCapture||!1}}(z=function(t){t.prototype.getEffect=function(t){return t.getAttribute("data-effect")||this.props.effect||"float"}}(z=function(t){t.prototype.isBodyMode=function(){return!!this.props.bodyMode},t.prototype.bindBodyListener=function(t){var e=this,i=this.state,n=i.event,o=i.eventOff,r=i.possibleCustomEvents,s=i.possibleCustomEventsOff,a=x(),l=_(t,"data-event"),d=_(t,"data-event-off");null!=n&&(l[n]=!0),null!=o&&(d[o]=!0),r.split(" ").forEach(function(t){return l[t]=!0}),s.split(" ").forEach(function(t){return d[t]=!0}),this.unbindBodyListener(a);var u=this.bodyModeListeners={};for(var c in null==n&&(u.mouseover=M.bind(this,this.showTooltip,{}),u.mousemove=M.bind(this,this.updateTooltip,{respectEffect:!0}),u.mouseout=M.bind(this,this.hideTooltip,{})),l)u[c]=M.bind(this,function(t){var i=t.currentTarget.getAttribute("data-event-off")||o;A.call(e,i,t)},{customEvent:!0});for(var h in d)u[h]=M.bind(this,this.hideTooltip,{customEvent:!0});for(var p in u)a.addEventListener(p,u[p])},t.prototype.unbindBodyListener=function(t){t=t||x();var e=this.bodyModeListeners;for(var i in e)t.removeEventListener(i,e[i])}}((F=j=function(t){function e(t){var i,n;return function(t,i){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this),(this,n=m(e).call(this,t),i=!n||"object"!=typeof n&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this):n).state={uuid:t.uuid||"t"+c(),place:t.place||"top",desiredPlace:t.place||"top",type:"dark",effect:"float",show:!1,border:!1,customColors:{},offset:{},extraClass:"",html:!1,delayHide:0,delayShow:0,event:t.event||null,eventOff:t.eventOff||null,currentEvent:null,currentTarget:null,ariaProps:R(t),isEmptyTip:!1,disable:!1,possibleCustomEvents:t.possibleCustomEvents||"",possibleCustomEventsOff:t.possibleCustomEventsOff||"",originTooltip:null,isMultiline:!1},i.bind(["showTooltip","updateTooltip","hideTooltip","hideTooltipOnScroll","getTooltipContent","globalRebuild","globalShow","globalHide","onWindowResize","mouseOnToolTip"]),i.mount=!0,i.delayShowLoop=null,i.delayHideLoop=null,i.delayReshow=null,i.intervalUpdateContent=null,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(e,o.a.Component),p(e,null,[{key:"propTypes",get:function(){return{uuid:s.a.string,children:s.a.any,place:s.a.string,type:s.a.string,effect:s.a.string,offset:s.a.object,multiline:s.a.bool,border:s.a.bool,textColor:s.a.string,backgroundColor:s.a.string,borderColor:s.a.string,arrowColor:s.a.string,insecure:s.a.bool,class:s.a.string,className:s.a.string,id:s.a.string,html:s.a.bool,delayHide:s.a.number,delayUpdate:s.a.number,delayShow:s.a.number,event:s.a.string,eventOff:s.a.string,isCapture:s.a.bool,globalEventOff
81:s.a.string,getContent:s.a.any,afterShow:s.a.func,afterHide:s.a.func,overridePosition:s.a.func,disable:s.a.bool,scrollHide:s.a.bool,resizeHide:s.a.bool,wrapper:s.a.string,bodyMode:s.a.bool,possibleCustomEvents:s.a.string,possibleCustomEventsOff:s.a.string,clickable:s.a.bool}}}]),p(e,[{key:"bind",value:function(t){var e=this;t.forEach(function(t){e[t]=e[t].bind(e)})}},{key:"componentDidMount",value:function(){var t=this.props,e=(t.insecure,t.resizeHide);this.bindListener(),this.bindWindowEvents(e),this.injectStyles()}},{key:"componentWillUnmount",value:function(){this.mount=!1,this.clearTimer(),this.unbindListener(),this.removeScrollListener(this.state.currentTarget),this.unbindWindowEvents()}},{key:"injectStyles",value:function(){var t=this.tooltipRef;if(t){for(var e,i=t.parentNode;i.parentNode;)i=i.parentNode;switch(i.constructor.name){case"Document":case"HTMLDocument":e=i.head;break;case"ShadowRoot":default:e=i}if(!e.querySelector("style[data-react-tooltip]")){var n=document.createElement("style");n.textContent='.__react_component_tooltip {\n  border-radius: 3px;\n  display: inline-block;\n  font-size: 13px;\n  left: -999em;\n  opacity: 0;\n  padding: 8px 21px;\n  position: fixed;\n  pointer-events: none;\n  transition: opacity 0.3s ease-out;\n  top: -999em;\n  visibility: hidden;\n  z-index: 999;\n}\n.__react_component_tooltip.allow_hover, .__react_component_tooltip.allow_click {\n  pointer-events: auto;\n}\n.__react_component_tooltip::before, .__react_component_tooltip::after {\n  content: "";\n  width: 0;\n  height: 0;\n  position: absolute;\n}\n.__react_component_tooltip.show {\n  opacity: 0.9;\n  margin-top: 0;\n  margin-left: 0;\n  visibility: visible;\n}\n.__react_component_tooltip.place-top::before {\n  border-left: 10px solid transparent;\n  border-right: 10px solid transparent;\n  bottom: -8px;\n  left: 50%;\n  margin-left: -10px;\n}\n.__react_component_tooltip.place-bottom::before {\n  border-left: 10px solid transparent;\n  border-right: 10px solid transparent;\n  top: -8px;\n  left: 50%;\n  margin-left: -10px;\n}\n.__react_component_tooltip.place-left::before {\n  border-top: 6px solid transparent;\n  border-bottom: 6px solid transparent;\n  right: -8px;\n  top: 50%;\n  margin-top: -5px;\n}\n.__react_component_tooltip.place-right::before {\n  border-top: 6px solid transparent;\n  border-bottom: 6px solid transparent;\n  left: -8px;\n  top: 50%;\n  margin-top: -5px;\n}\n.__react_component_tooltip .multi-line {\n  display: block;\n  padding: 2px 0;\n  text-align: center;\n}',n.setAttribute("data-react-tooltip","true"),e.appendChild(n)}}}},{key:"mouseOnToolTip",value:function(){return!(!this.state.show||!this.tooltipRef)&&(this.tooltipRef.matches||(this.tooltipRef.msMatchesSelector?this.tooltipRef.matches=this.tooltipRef.msMatchesSelector:this.tooltipRef.matches=this.tooltipRef.mozMatchesSelector),this.tooltipRef.matches(":hover"))}},{key:"getTargetArray",value:function(t){var e,i=[];if(t){var n=t.replace(/\\/g,"\\\\").replace(/"/g,'\\"');e='[data-tip][data-for="'.concat(n,'"]')}else e="[data-tip]:not([data-for])";return $(document.getElementsByTagName("*")).filter(function(t){return t.shadowRoot}).forEach(function(t){i=i.concat($(t.shadowRoot.querySelectorAll(e)))}),i.concat($(document.querySelectorAll(e)))}},{key:"bindListener",value:function(){var t=this,e=this.props,i=e.id,n=e.globalEventOff,o=e.isCapture,r=this.getTargetArray(i);r.forEach(function(e){null===e.getAttribute("currentItem")&&e.setAttribute("currentItem","false"),t.unbindBasicListener(e),t.isCustomEvent(e)&&t.customUnbindListener(e)}),this.isBodyMode()?this.bindBodyListener(r):r.forEach(function(e){var i=t.isCapture(e),n=t.getEffect(e);t.isCustomEvent(e)?t.customBindListener(e):(e.addEventListener("mouseenter",t.showTooltip,i),"float"===n&&e.addEventListener("mousemove",t.updateTooltip,i),e.addEventListener("mouseleave",t.hideTooltip,i))}),n&&(window.removeEventListener(n,this.hideTooltip),window.addEventListener(n,this.hideTooltip,o)),this.bindRemovalTracker()}},{key:"unbindListener",value:function(){var t=this,e=this.props,i=e.id,n=e.globalEventOff;this.isBodyMode()?this.unbindBodyListener():this.getTargetArray(i).forEac
81h(function(e){t.unbindBasicListener(e),t.isCustomEvent(e)&&t.customUnbindListener(e)}),n&&window.removeEventListener(n,this.hideTooltip),this.unbindRemovalTracker()}},{key:"unbindBasicListener",value:function(t){var e=this.isCapture(t);t.removeEventListener("mouseenter",this.showTooltip,e),t.removeEventListener("mousemove",this.updateTooltip,e),t.removeEventListener("mouseleave",this.hideTooltip,e)}},{key:"getTooltipContent",value:function(){var t,e=this.props,i=e.getContent,n=e.children;return i&&(t=Array.isArray(i)?i[0]&&i[0](this.state.originTooltip):i(this.state.originTooltip)),B(this.state.originTooltip,n,t,this.state.isMultiline)}},{key:"isEmptyTip",value:function(t){return"string"==typeof t&&""===t||null===t}},{key:"showTooltip",value:function(t,e){if(this.tooltipRef){if(e&&!this.getTargetArray(this.props.id).some(function(e){return e===t.currentTarget}))return;var i=this.props,n=i.multiline,o=i.getContent,r=t.currentTarget.getAttribute("data-tip"),s=t.currentTarget.getAttribute("data-multiline")||n||!1,a=t instanceof window.FocusEvent||e,l=!0;t.currentTarget.getAttribute("data-scroll-hide")?l="true"===t.currentTarget.getAttribute("data-scroll-hide"):null!=this.props.scrollHide&&(l=this.props.scrollHide);var d=t.currentTarget.getAttribute("data-place")||this.props.place||"top",u=a?"solid":this.getEffect(t.currentTarget),c=t.currentTarget.getAttribute("data-offset")||this.props.offset||{},h=P(t,t.currentTarget,this.tooltipRef,d,d,u,c);h.position&&this.props.overridePosition&&(h.position=this.props.overridePosition(h.position,t,t.currentTarget,this.tooltipRef,d,d,u,c));var p=h.isNewState?h.newState.place:d;this.clearTimer();var f=t.currentTarget,g=this.state.show?f.getAttribute("data-delay-update")||this.props.delayUpdate:0,v=this,y=function(){v.setState({originTooltip:r,isMultiline:s,desiredPlace:d,place:p,type:f.getAttribute("data-type")||v.props.type||"dark",customColors:{text:f.getAttribute("data-text-color")||v.props.textColor||null,background:f.getAttribute("data-background-color")||v.props.backgroundColor||null,border:f.getAttribute("data-border-color")||v.props.borderColor||null,arrow:f.getAttribute("data-arrow-color")||v.props.arrowColor||null},effect:u,offset:c,html:(f.getAttribute("data-html")?"true"===f.getAttribute("data-html"):v.props.html)||!1,delayShow:f.getAttribute("data-delay-show")||v.props.delayShow||0,delayHide:f.getAttribute("data-delay-hide")||v.props.delayHide||0,delayUpdate:f.getAttribute("data-delay-update")||v.props.delayUpdate||0,border:(f.getAttribute("data-border")?"true"===f.getAttribute("data-border"):v.props.border)||!1,extraClass:f.getAttribute("data-class")||v.props.class||v.props.className||"",disable:(f.getAttribute("data-tip-disable")?"true"===f.getAttribute("data-tip-disable"):v.props.disable)||!1,currentTarget:f},function(){l&&v.addScrollListener(v.state.currentTarget),v.updateTooltip(t),o&&Array.isArray(o)&&(v.intervalUpdateContent=setInterval(function(){if(v.mount){var t=v.props.getContent,e=B(r,"",t[0](),s),i=v.isEmptyTip(e);v.setState({isEmptyTip:i}),v.updatePosition()}},o[1]))})};g?this.delayReshow=setTimeout(y,g):y()}}},{key:"updateTooltip",value:function(t){var e=this,i=this.state,n=i.delayShow,o=i.disable,r=this.props.afterShow,s=this.getTooltipContent(),a=t.currentTarget||t.target;if(!this.mouseOnToolTip()&&!this.isEmptyTip(s)&&!o){var l=this.state.show?0:parseInt(n,10),d=function(){if(Array.isArray(s)&&s.length>0||s){var i=!e.state.show;e.setState({currentEvent:t,currentTarget:a,show:!0},function(){e.updatePosition(),i&&r&&r(t)})}};clearTimeout(this.delayShowLoop),l?this.delayShowLoop=setTimeout(d,l):d()}}},{key:"listenForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener("mouseleave",this.hideTooltip)}},{key:"removeListenerForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener("mouseleave",this.hideTooltip)}},{key:"hideTooltip",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isScroll:!1},o=this.state.disable,r=n.isScroll?0:this.state.delayHide,s=this.props.afterHide,a=this.getTooltipContent();if(this.mount&&!this.isEmptyTip(a)&&!o){if(e&&(!this.getTargetArray(this.props.id).some(function(e){return e===t.currentTarget})||!this.state.show))return;var l=function(){var e=i.state.show;i.mouseOnToolTip()?i.listenForTooltipExit():(i.removeListenerForTooltipExit(),i.setState({show:!1},function(){i.removeScrollListener(i.state.currentTarget),e&&s&&s(t)}))};this.clearTimer(),r?this.delayHideLoop=setTimeout(l,parseInt(r,10)):l()}}},{key:"hideTooltipOnScroll",value:function(t,e){this.hideTooltip(t,e,{isScroll:!0})}},{key:"addScrollListener",value:function(t){var e=this.isCapture(t);window.addEventListener("scroll",this.hideTooltipOnScroll,e)}},{key:"removeScrollListener",value:function(t){var e=this.isCapture(t);window.removeEventListener("scroll",this.hideTooltipOnScroll,e)}},{key:"updatePosition",value:function(){var t=this,e=this.state,i=e.currentEvent,n=e.currentTarget,o=e.place,r=e.desiredPlace,s=e.effect,a=e.offset,l=this.tooltipRef,d=P(i,n,l,o,r,s,a);if(d.position&&this.props.overridePosition&&(d.position=this.props.overridePosition(d.position,i,n,l,o,r,s,a)),d.isNewState)return this.setState(d.newState,function(){t.updatePosition()});
81l.style.left=d.position.left+"px",l.style.top=d.position.top+"px"}},{key:"clearTimer",value:function(){clearTimeout(this.delayShowLoop),clearTimeout(this.delayHideLoop),clearTimeout(this.delayReshow),clearInterval(this.intervalUpdateContent)}},{key:"hasCustomColors",value:function(){var t=this;return Boolean(Object.keys(this.state.customColors).find(function(e){return"border"!==e&&t.state.customColors[e]})||this.state.border&&this.state.customColors.border)}},{key:"render",value:function(){var t=this,i=this.state,n=i.extraClass,r=i.html,s=i.ariaProps,a=i.disable,l=this.getTooltipContent(),d=this.isEmptyTip(l),u=function(t,e){var i=e.text,n=e.background,o=e.border,r=e.arrow;return"\n  \t.".concat(t," {\n\t    color: ").concat(i,";\n\t    background: ").concat(n,";\n\t    border: 1px solid ").concat(o,";\n  \t}\n\n  \t.").concat(t,".place-top {\n        margin-top: -10px;\n    }\n    .").concat(t,".place-top::before {\n        border-top: 8px solid ").concat(o,";\n    }\n    .").concat(t,".place-top::after {\n        border-left: 8px solid transparent;\n        border-right: 8px solid transparent;\n        bottom: -6px;\n        left: 50%;\n        margin-left: -8px;\n        border-top-color: ").concat(r,";\n        border-top-style: solid;\n        border-top-width: 6px;\n    }\n\n    .").concat(t,".place-bottom {\n        margin-top: 10px;\n    }\n    .").concat(t,".place-bottom::before {\n        border-bottom: 8px solid ").concat(o,";\n    }\n    .").concat(t,".place-bottom::after {\n        border-left: 8px solid transparent;\n        border-right: 8px solid transparent;\n        top: -6px;\n        left: 50%;\n        margin-left: -8px;\n        border-bottom-color: ").concat(r,";\n        border-bottom-style: solid;\n        border-bottom-width: 6px;\n    }\n\n    .").concat(t,".place-left {\n        margin-left: -10px;\n    }\n    .").concat(t,".place-left::before {\n        border-left: 8px solid ").concat(o,";\n    }\n    .").concat(t,".place-left::after {\n        border-top: 5px solid transparent;\n        border-bottom: 5px solid transparent;\n        right: -6px;\n        top: 50%;\n        margin-top: -4px;\n        border-left-color: ").concat(r,";\n        border-left-style: solid;\n        border-left-width: 6px;\n    }\n\n    .").concat(t,".place-right {\n        margin-left: 10px;\n    }\n    .").concat(t,".place-right::before {\n        border-right: 8px solid ").concat(o,";\n    }\n    .").concat(t,".place-right::after {\n        border-top: 5px solid transparent;\n        border-bottom: 5px solid transparent;\n        left: -6px;\n        top: 50%;\n        margin-top: -4px;\n        border-right-color: ").concat(r,";\n        border-right-style: solid;\n        border-right-width: 6px;\n    }\n  ")}(this.state.uuid,function(t,e,i){var n=t.text,o=t.background,r=t.border,s=t.arrow?t.arrow:t.background,a=function(t){return V[t]?y({},V[t]):void 0}(e);return n&&(a.text=n),o&&(a.background=o),i&&(a.border=r||("light"===e?"black":"white")),s&&(a.arrow=s),a}(this.state.customColors,this.state.type,this.state.border)),c="__react_component_tooltip"+" ".concat(this.state.uuid)+(!this.state.show||a||d?"":" show")+(this.state.border?" border":"")+" place-".concat(this.state.place)+" type-".concat(this.hasCustomColors()?"custom":this.state.type)+(this.props.delayUpdate?" allow_hover":"")+(this.props.clickable?" allow_click":""),h=this.props.wrapper;e.supportedWrappers.indexOf(h)<0&&(h=e.defaultProps.wrapper);var p=[c,n].filter(Boolean).join(" ");if(r){var f="".concat(l,"\n<style>").concat(u,"</style>");return o.a.createElement(h,g({className:"".concat(p),id:this.props.id,ref:function(e){return t.tooltipRef=e}},s,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:f}}))}return o.a.createElement(h,g({className:"".concat(p),id:this.props.id},s,{ref:function(e){return t.tooltipRef=e},"data-id":"tooltip"}),o.a.createElement("style",{dangerouslySetInnerHTML:{__html:u}}),l)}}],[{key:"getDerivedStateFromProps",value:function(t,e){var i=e.ariaProps,n=R(t);return Object.keys(n).some(function(t){return n[t]!==i[t]})?y({},e,{ariaProps:n}):null}}]),e}(),f(j,"defaultProps",{insecure:!0,resizeHide:!0,wrapper:"div",clickable:!1}),f(j,"supportedWrappers",["div","span"]),f(j,"displayName","ReactTooltip"),(U=z=F).prototype.bindRemovalTracker=function(){var t=this,e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(null!=e){var i=new e(function(e){for(var i=0;i<e.length;i++)for(var n=e[i],o=0;o<n.removedNodes.length;o++)if(n.removedNodes[o]===t.state.currentTarget)return void t.hideTooltip()});i.observe(window.document,{childList:!0,subtree:!0}),this.removalTracker=i}},z=void(U.prototype.unbindRemovalTracker=function(){this.removalTracker&&(this.removalTracker.disconnect(),this.removalTracker=null)})||z))||z)||z)||z)||z)||z)||z;e.a=W}
81,598:function(t,e,i){var n=i(104),o=i(678)(!0);n(n.S,"Object",{entries:function(t){return o(t)}})},614:function(t,e,i){"use strict";var n=i(181);e.__esModule=!0,e.default=e.array=e.object=e.boolean=e.date=e.number=e.string=e.mixed=void 0;var o=n(i(615)),r={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:function(t){var e=t.path,i=t.type,n=t.value,r=t.originalValue,s=null!=r&&r!==n,a=e+" must be a `"+i+"` type, but the final value was: `"+(0,o.default)(n,!0)+"`"+(s?" (cast from the value `"+(0,o.default)(r,!0)+"`).":".");return null===n&&(a+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),a}};e.mixed=r;var s={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"};e.string=s;var a={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",notEqual:"${path} must be not equal to ${notEqual}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"};e.number=a;var l={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"};e.date=l;var d={};e.boolean=d;var u={noUnknown:"${path} field cannot have keys not specified in the object shape"};e.object=u;var c={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items"};e.array=c;var h={mixed:r,string:s,number:a,date:l,object:u,array:c,boolean:d};e.default=h},615:function(t,e,i){"use strict";e.__esModule=!0,e.default=function(t,e){var i=l(t,e);return null!==i?i:JSON.stringify(t,function(t,i){var n=l(this[t],e);return null!==n?n:i},2)};var n=Object.prototype.toString,o=Error.prototype.toString,r=RegExp.prototype.toString,s="undefined"!=typeof Symbol?Symbol.prototype.toString:function(){return""},a=/^Symbol\((.*)\)(.*)$/;function l(t,e){if(void 0===e&&(e=!1),null==t||!0===t||!1===t)return""+t;var i=typeof t;if("number"===i)return function(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}(t);if("string"===i)return e?'"'+t+'"':t;if("function"===i)return"[Function "+(t.name||"anonymous")+"]";if("symbol"===i)return s.call(t).replace(a,"Symbol($1)");var l=n.call(t).slice(8,-1);return"Date"===l?isNaN(t.getTime())?""+t:t.toISOString(t):"Error"===l||t instanceof Error?"["+o.call(t)+"]":"RegExp"===l?r.call(t):null}t.exports=e.default},616:function(t,e,i){"use strict";var n=i(181);
81e.__esModule=!0,e.default=void 0;var o=n(i(408)),r=i(471),s={context:"$",value:"."},a=function(){function t(t,e){if(void 0===e&&(e={}),"string"!=typeof t)throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),""===t)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===s.context,this.isValue=this.key[0]===s.value,this.isSibling=!this.isContext&&!this.isValue;var i=this.isContext?s.context:this.isValue?s.value:"";this.path=this.key.slice(i.length),this.getter=this.path&&(0,r.getter)(this.path,!0),this.map=e.map}var e=t.prototype;return e.getValue=function(t){var e=this.isContext?t.context:this.isValue?t.value:t.parent;return this.getter&&(e=this.getter(e||{})),this.map&&(e=this.map(e)),e},e.cast=function(t,e){return this.getValue((0,o.default)({},e,{value:t}))},e.resolve=function(){return this},e.describe=function(){return{type:"ref",key:this.key}},e.toString=function(){return"Ref("+this.key+")"},t.isRef=function(t){return t&&t.__isYupRef},t}();e.default=a,a.prototype.__isYupRef=!0,t.exports=e.default},651:function(t,e,i){var n=i(1659)(function(t,e,i){t[i?0:1].push(e)},function(){return[[],[]]});t.exports=n},652:function(t,e,i){!function(e,i){"use strict";var n,o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=!1,s=void 0!==e;s&&e.getComputedStyle?(n=i.createElement("div"),["","-webkit-","-moz-","-ms-"].some(function(t){try{n.style.position=t+"sticky"}catch(t){}return""!=n.style.position})&&(r=!0)):r=!0;var a=!1,l="undefined"!=typeof ShadowRoot,d={top:null,left:null},u=[];function c(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}function h(t){return parseFloat(t)||0}function p(t){for(var e=0;t;)e+=t.offsetTop,t=t.offsetParent;return e}var f=function(){function t(e){if(function(e,i){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this),!(e instanceof HTMLElement))throw new Error("First argument must be HTMLElement");if(u.some(function(t){return t._node===e}))throw new Error("Stickyfill is already applied to this node");this._node=e,this._stickyMode=null,this._active=!1,u.push(this),this.refresh()}return o(t,[{key:"refresh",value:function(){if(!r&&!this._removed){this._active&&this._deactivate();var t=this._node,n=getComputedStyle(t),o={position:n.position,top:n.top,display:n.display,marginTop:n.marginTop,marginBottom:n.marginBottom,marginLeft:n.marginLeft,marginRight:n.marginRight,cssFloat:n.cssFloat};if(!isNaN(parseFloat(o.top))&&"table-cell"!=o.display&&"none"!=o.display){this._active=!0;var s=t.style.position;"sticky"!=n.position&&"-webkit-sticky"!=n.position||(t.style.position="static");var a=t.parentNode,d=l&&a instanceof ShadowRoot?a.host:a,u=t.getBoundingClientRect(),f=d.getBoundingClientRect(),g=getComputedStyle(d);this._parent={node:d,styles:{position:d.style.position},offsetHeight:d.offsetHeight},this._offsetToWindow={left:u.left,right:i.documentElement.clientWidth-u.right},this._offsetToParent={top:u.top-f.top-h(g.borderTopWidth),left:u.left-f.left-h(g.borderLeftWidth),right:-u.right+f.right-h(g.borderRightWidth)},this._styles={position:s,top:t.style.top,bottom:t.style.bottom,left:t.style.left,right:t.style.right,width:t.style.width,marginTop:t.style.marginTop,marginLeft:t.style.marginLeft,marginRight:t.style.marginRight};var v=h(o.top);this._limits={start:u.top+e.pageYOffset-v,end:f.top+e.pageYOffset+d.offsetHeight-h(g.borderBottomWidth)-t.offsetHeight-v-h(o.marginBottom)};var y=g.position;"absolute"!=y&&"relative"!=y&&(d.style.position="relative"),this._recalcPosition();var m=this._clone={};m.node=i.createElement("div"),c(m.node.style,{width:u.right-u.left+"px",height:u.bottom-u.top+"px",marginTop:o.marginTop,marginBottom:o.marginBottom,marginLeft:o.marginLeft,marginRight:o.marginRight,cssFloat:o.cssFloat,padding:0,border:0,borderSpacing:0,fontSize:"1em",position:"static"}),a.insertBefore(m.node,t),m.docOffsetTop=p(m.node)}}}},{key:"_recalcPosition",value:function(){if(this._active&&!this._removed){var t=d.top<=this._limits.start?"start":d.top>=this._limits.end?"end":"middle";if(this._stickyMode!=t){switch(t){case"start":c(this._node.style,{position:"absolute",left:this._offsetToParent.left+"px",right:this._offsetToParent.right+"px",to
81p:this._offsetToParent.top+"px",bottom:"auto",width:"auto",marginLeft:0,marginRight:0,marginTop:0});break;case"middle":c(this._node.style,{position:"fixed",left:this._offsetToWindow.left+"px",right:this._offsetToWindow.right+"px",top:this._styles.top,bottom:"auto",width:"auto",marginLeft:0,marginRight:0,marginTop:0});break;case"end":c(this._node.style,{position:"absolute",left:this._offsetToParent.left+"px",right:this._offsetToParent.right+"px",top:"auto",bottom:0,width:"auto",marginLeft:0,marginRight:0})}this._stickyMode=t}}}},{key:"_fastCheck",value:function(){this._active&&!this._removed&&(Math.abs(p(this._clone.node)-this._clone.docOffsetTop)>1||Math.abs(this._parent.node.offsetHeight-this._parent.offsetHeight)>1)&&this.refresh()}},{key:"_deactivate",value:function(){var t=this;this._active&&!this._removed&&(this._clone.node.parentNode.removeChild(this._clone.node),delete this._clone,c(this._node.style,this._styles),delete this._styles,u.some(function(e){return e!==t&&e._parent&&e._parent.node===t._parent.node})||c(this._parent.node.style,this._parent.styles),delete this._parent,this._stickyMode=null,this._active=!1,delete this._offsetToWindow,delete this._offsetToParent,delete this._limits)}},{key:"remove",value:function(){var t=this;this._deactivate(),u.some(function(e,i){if(e._node===t._node)return u.splice(i,1),!0}),this._removed=!0}}]),t}(),g={stickies:u,Sticky:f,forceSticky:function(){r=!1,v(),this.refreshAll()},addOne:function(t){if(!(t instanceof HTMLElement)){if(!t.length||!t[0])return;t=t[0]}for(var e=0;e<u.length;e++)if(u[e]._node===t)return u[e];return new f(t)},add:function(t){if(t instanceof HTMLElement&&(t=[t]),t.length){for(var e=[],i=function(i){var n=t[i];return n instanceof HTMLElement?u.some(function(t){if(t._node===n)return e.push(t),!0})?"continue":void e.push(new f(n)):(e.push(void 0),"continue")},n=0;n<t.length;n++)i(n);return e}},refreshAll:function(){u.forEach(function(t){return t.refresh()})},removeOne:function(t){if(!(t instanceof HTMLElement)){if(!t.length||!t[0])return;t=t[0]}u.some(function(e){if(e._node===t)return e.remove(),!0})},remove:function(t){if(t instanceof HTMLElement&&(t=[t]),t.length)for(var e=function(e){var i=t[e];u.some(function(t){if(t._node===i)return t.remove(),!0})},i=0;i<t.length;i++)e(i)},removeAll:function(){for(;u.length;)u[0].remove()}};function v(){if(!a){a=!0,r(),e.addEventListener("scroll",r),e.addEventListener("resize",g.refreshAll),e.addEventListener("orientationchange",g.refreshAll);var t=void 0,n=void 0,o=void 0;"hidden"in i?(n="hidden",o="visibilitychange"):"webkitHidden"in i&&(n="webkitHidden",o="webkitvisibilitychange"),o?(i[n]||s(),i.addEventListener(o,function(){i[n]?clearInterval(t):s()})):s()}function r(){e.pageXOffset!=d.left?(d.top=e.pageYOffset,d.left=e.pageXOffset,g.refreshAll()):e.pageYOffset!=d.top&&(d.top=e.pageYOffset,d.left=e.pageXOffset,u.forEach(function(t){return t._recalcPosition()}))}function s(){t=setInterval(function(){u.forEach(function(t){return t._fastCheck()})},500)}}r||v(),t.exports?t.exports=g:s&&(e.Stickyfill=g)}(window,document)},80:function(t,e,i){t.exports=i(1734)()},815:function(t,e,i){"use strict";i(816)("sub",function(t){return function(){return t(this,"sub","","")}})},819:function(t,e,i){var n=i(1463),o=i(820),r=o.setStyleProp,s=n.html,a=n.svg,l=n.isCustomAttribute,d=Object.prototype.hasOwnProperty;t.exports=function(t){var e,i,n,u;t=t||{};var c={};for(e in t)n=t[e],l(e)?c[e]=n:(i=e.toLowerCase(),d.call(s,i)?c[(u=s[i]).propertyName]=!!(u.hasBooleanValue||u.hasOverloadedBooleanValue&&!n)||n:d.call(a,e)?c[(u=a[e]).propertyName]=n:o.PRESERVE_CUSTOM_ATTRIBUTES&&(c[e]=n));return r(t.style,c),c}},820:function(t,e,i){var n=i(0),o=i(1467).default,r={reactCompat:!0},s=n.version.split(".")[0]>=16;t.exports={PRESERVE_CUSTOM_ATTRIBUTES:s,invertObject:function(t,e){if(!t||"object"!=typeof t)throw new TypeError("First argument must be an object");var i,n,o="function"==typeof e,r={},s={};for(i in t)n=t[i],o&&(r=e(i,n))&&2===r.length?s[r[0]]=r[1]:"string"==typeof n&&(s[n]=i);return s},isCustomComponent:function(t,e){if(-1===t.indexOf("-"))return e&&"string"==typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(t,e){null!=t&&(e.style=o(t,r))}}}
81,821:function(t,e,i){for(var n,o=i(1473),r=i(1474),s=o.CASE_SENSITIVE_TAG_NAMES,a=r.Comment,l=r.Element,d=r.ProcessingInstruction,u=r.Text,c={},h=0,p=s.length;h<p;h++)n=s[h],c[n.toLowerCase()]=n;function f(t){for(var e,i={},n=0,o=t.length;n<o;n++)i[(e=t[n]).name]=e.value;return i}t.exports={formatAttributes:f,formatDOM:function t(e,i,n){i=i||null;for(var o=[],r=0,s=e.length;r<s;r++){var h,p=e[r];switch(p.nodeType){case 1:(h=new l((v=p.nodeName,function(t){return c[t]}(v=v.toLowerCase())||v),f(p.attributes))).children=t(p.childNodes,h);break;case 3:h=new u(p.nodeValue);break;case 8:h=new a(p.nodeValue);break;default:continue}var g=o[r-1]||null;g&&(g.next=h),h.parent=i,h.prev=g,h.next=null,o.push(h)}var v;return n&&((h=new d(n.substring(0,n.indexOf(" ")).toLowerCase(),n)).next=o[0]||null,h.parent=i,o.unshift(h),o[1]&&(o[1].prev=o[0])),o},isIE:function(){return/(MSIE |Trident\/|Edge\/)/.test(navigator.userAgent)}}},829:function(t,e,i){var n=i(162);t.exports=function(t,e){if(!n(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},830:function(t,e,i){var n=i(104),o=i(1551);n(n.S+n.F*(Number.parseInt!=o),"Number",{parseInt:o})},844:function(t,e,i){"use strict";var n=i(181);
81e.__esModule=!0,e.default=function(t,e,i){t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),(0,o.default)(t.prototype,i)};var o=n(i(408));t.exports=e.default},845:function(t,e,i){"use strict";var n=i(181);e.__esModule=!0,e.default=m;var o=n(i(408)),r=n(i(99)),s=n(i(1762)),a=n(i(1763)),l=i(614),d=n(i(1769)),u=n(i(848)),c=n(i(1770)),h=n(i(470)),p=n(i(1771)),f=n(i(615)),g=n(i(616)),v=i(1772),y=function(){function t(){this.list=new Set,this.refs=new Map}var e=t.prototype;return e.toArray=function(){return(0,a.default)(this.list).concat((0,a.default)(this.refs.values()))},e.add=function(t){g.default.isRef(t)?this.refs.set(t.key,t):this.list.add(t)},e.delete=function(t){g.default.isRef(t)?this.refs.delete(t.key,t):this.list.delete(t)},e.has=function(t,e){if(this.list.has(t))return!0;for(var i,n=this.refs.values();!(i=n.next()).done;)if(e(i.value)===t)return!0;return!1},t}();function m(t){var e=this;if(void 0===t&&(t={}),!(this instanceof m))return new m;this._deps=[],this._conditions=[],this._options={abortEarly:!0,recursive:!0},this._exclusive=Object.create(null),this._whitelist=new y,this._blacklist=new y,this.tests=[],this.transforms=[],this.withMutation(function(){e.typeError(l.mixed.notType)}),(0,r.default)(t,"default")&&(this._defaultDefault=t.default),this._type=t.type||"mixed"}for(var b=m.prototype={__isYupSchema__:!0,constructor:m,clone:function(){var t=this;return this._mutate?this:(0,s.default)(this,function(e){if((0,h.default)(e)&&e!==t)return e})},label:function(t){var e=this.clone();return e._label=t,e},meta:function(t){if(0===arguments.length)return this._meta;var e=this.clone();return e._meta=(0,o.default)(e._meta||{},t),e},withMutation:function(t){var e=this._mutate;this._mutate=!0;var i=t(this);return this._mutate=e,i},concat:function(t){if(!t||t===this)return this;if(t._type!==this._type&&"mixed"!==this._type)throw new TypeError("You cannot `concat()` schema's of different types: "+this._type+" and "+t._type);var e=(0,c.default)(t.clone(),this);return(0,r.default)(t,"_default")&&(e._default=t._default),e.tests=this.tests,e._exclusive=this._exclusive,e.withMutation(function(e){t.tests.forEach(function(t){e.test(t.OPTIONS)})}),e},isType:function(t){return!(!this._nullable||null!==t)||!this._typeCheck||this._typeCheck(t)},resolve:function(t){var e=this;if(e._conditions.length){var i=e._conditions;(e=e.clone())._conditions=[],e=(e=i.reduce(function(e,i){return i.resolve(e,t)},e)).resolve(t)}return e},cast:function(t,e){void 0===e&&(e={});var i=this.resolve((0,o.default)({},e,{value:t})),n=i._cast(t,e);if(void 0!==t&&!1!==e.assert&&!0!==i.isType(n)){var r=(0,f.default)(t),s=(0,f.default)(n);throw new TypeError("The value of "+(e.path||"field")+' could not be cast to a value that satisfies the schema type: "'+i._type+'". \n\nattempted value: '+r+" \n"+(s!==r?"result of cast: "+s:""))}return n},_cast:function(t){var e=this,i=void 0===t?t:this.transforms.reduce(function(i,n){return n.call(e,i,t)},t);return void 0===i&&(0,r.default)(this,"_default")&&(i=this.default()),i},_validate:function(t,e){var i=this;void 0===e&&(e={});var n=t,r=null!=e.originalValue?e.originalValue:t,s=this._option("strict",e),a=this._option("abortEarly",e),l=e.sync,d=e.path,c=this._label;s||(n=this._cast(n,(0,o.default)({assert:!1},e)));var h={value:n,path:d,schema:this,options:e,label:c,originalValue:r,sync:l},p=[];return this._typeError&&p.push(this._typeError(h)),this._whitelistError&&p.push(this._whitelistError(h)),this._blacklistError&&p.push(this._blacklistError(h)),(0,u.default)({validations:p,endEarly:a,value:n,path:d,sync:l}).then(function(t){return(0,u.default)({path:d,sync:l,value:t,endEarly:a,validations:i.tests.map(function(t){return t(h)})})})},validate:function(t,e){return void 0===e&&(e={}),this.resolve((0,o.default)({},e,{value:t}))._validate(t,e)},validateSync:function(t,e){var i,n;if(void 0===e&&(e={}),this.resolve((0,o.default)({},e,{value:t}))._validate(t,(0,o.default)({},e,{sync:!0})).then(function(t){return i=t}).catch(function(t){return n=t}),n)throw n;return i},isValid:function(t,e){return this.validate(t,e).then(function(){return!0}).catch(function(t){if("ValidationError"===t.name)return!1;throw t})},isValidSync:function(t,e){try{return this.validateSync(t,e),!0}catch(t){if("ValidationError"===t.name)return!1;throw t}},getDefault:function(t){return void 0===t&&(t={}),this.resolve(t).default()},default:function(t){if(0===arguments.length){var e=(0,r.default)(this,"_default")?this._default:this._defaultDefault;return"function"==typeof e?e.call(this):(0,s.default)(e)}var i=this.clone();return i._default=t,i},strict:function(t){void 0===t&&(t=!0);var e=this.clone();return e._options.strict=t,e},_isPresent:function(t){return null!=t},required:function(t){return void 0===t&&(t=l.mixed.required),this.test({message:t,name:"required",exclusive:!0,test:function(t){return this.schema._isPresent(t)}})},notRequired:function(){var t=this.clone();return t.tests=t.tests.filter(function(t){return"required"!==t.OPTIONS.name}),t},nullable:function(t){void 0===t&&(t=!0);var e=this.clone();return e._nullable=t,e},transform:function(t){var e=this.clone();return e.transforms.push(t),e},test:function(){var t;if(void 0===(t=1===arguments.length?"function"==typeof(arguments.length<=0?void 0:arguments[0])?{test:arguments.length<=0?void 0:arguments[0]}:arguments.length<=0?void 0:arguments[0]:2===arguments.length?{name:arguments.length<=0?void 0:arguments[0],test:arguments.length<=1?void 0:arguments[1]}
81:{name:arguments.length<=0?void 0:arguments[0],message:arguments.length<=1?void 0:arguments[1],test:arguments.length<=2?void 0:arguments[2]}).message&&(t.message=l.mixed.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");var e=this.clone(),i=(0,p.default)(t),n=t.exclusive||t.name&&!0===e._exclusive[t.name];if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return e._exclusive[t.name]=!!t.exclusive,e.tests=e.tests.filter(function(e){if(e.OPTIONS.name===t.name){if(n)return!1;if(e.OPTIONS.test===i.OPTIONS.test)return!1}return!0}),e.tests.push(i),e},when:function(t,e){1===arguments.length&&(e=t,t=".");var i=this.clone(),n=[].concat(t).map(function(t){return new g.default(t)});return n.forEach(function(t){t.isSibling&&i._deps.push(t.key)}),i._conditions.push(new d.default(n,e)),i},typeError:function(t){var e=this.clone();return e._typeError=(0,p.default)({message:t,name:"typeError",test:function(t){return!(void 0!==t&&!this.schema.isType(t))||this.createError({params:{type:this.schema._type}})}}),e},oneOf:function(t,e){void 0===e&&(e=l.mixed.oneOf);var i=this.clone();return t.forEach(function(t){i._whitelist.add(t),i._blacklist.delete(t)}),i._whitelistError=(0,p.default)({message:e,name:"oneOf",test:function(t){if(void 0===t)return!0;var e=this.schema._whitelist;return!!e.has(t,this.resolve)||this.createError({params:{values:e.toArray().join(", ")}})}}),i},notOneOf:function(t,e){void 0===e&&(e=l.mixed.notOneOf);var i=this.clone();return t.forEach(function(t){i._blacklist.add(t),i._whitelist.delete(t)}),i._blacklistError=(0,p.default)({message:e,name:"notOneOf",test:function(t){var e=this.schema._blacklist;return!e.has(t,this.resolve)||this.createError({params:{values:e.toArray().join(", ")}})}}),i},strip:function(t){void 0===t&&(t=!0);var e=this.clone();return e._strip=t,e},_option:function(t,e){return(0,r.default)(e,t)?e[t]:this._options[t]},describe:function(){var t=this.clone();return{type:t._type,meta:t._meta,label:t._label,tests:t.tests.map(function(t){return{name:t.OPTIONS.name,params:t.OPTIONS.params}}).filter(function(t,e,i){return i.findIndex(function(e){return e.name===t.name})===e})}}},S=["validate","validateSync"],E=function(){var t=S[C];b[t+"At"]=function(e,i,n){void 0===n&&(n={});var r=(0,v.getIn)(this,e,i,n.context),s=r.parent,a=r.parentPath;return r.schema[t](s&&s[a],(0,o.default)({},n,{parent:s,path:e}))}},C=0;C<S.length;C++)E();for(var w=["equals","is"],A=0;A<w.length;A++)b[w[A]]=b.oneOf;for(var T=["not","nope"],I=0;I<T.length;I++)b[T[I]]=b.notOneOf;b.optional=b.notRequired,t.exports=e.default},846:function(t,e,i){var n=i(1765),o=i(847),r=i(1766);t.exports=function(t){return o(t)?r(t):n(t)}},847:function(t,e){var i=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return i.test(t)}},848:function(t,e,i){"use strict";var n=i(181);
81e.__esModule=!0,e.propagateErrors=function(t,e){return t?null:function(t){return e.push(t),t.value}},e.settled=d,e.collectErrors=u,e.default=function(t){var e,i,n,r=t.endEarly,s=(0,o.default)(t,["endEarly"]);return r?(e=s.validations,i=s.value,n=s.sync,a(n).all(e).catch(function(t){throw"ValidationError"===t.name&&(t.value=i),t}).then(function(){return i})):u(s)};var o=n(i(849)),r=i(850),s=n(i(851)),a=function(t){return t?r.SynchronousPromise:Promise},l=function(t){return void 0===t&&(t=[]),t.inner&&t.inner.length?t.inner:[].concat(t)};function d(t,e){var i=a(e);return i.all(t.map(function(t){return i.resolve(t).then(function(t){return{fulfilled:!0,value:t}},function(t){return{fulfilled:!1,value:t}})}))}function u(t){var e=t.validations,i=t.value,n=t.path,o=t.sync,r=t.errors,a=t.sort;return r=l(r),d(e,o).then(function(t){var e=t.filter(function(t){return!t.fulfilled}).reduce(function(t,e){var i=e.value;if(!s.default.isError(i))throw i;return t.concat(i)},[]);if(a&&e.sort(a),(r=e.concat(r)).length)throw new s.default(r,i,n);return i})}},849:function(t,e){t.exports=function(t,e){if(null==t)return{};var i,n,o={},r=Object.keys(t);for(n=0;n<r.length;n++)i=r[n],e.indexOf(i)>=0||(o[i]=t[i]);return o}},850:function(t,e,i){"use strict";function n(t){return Array.prototype.slice.apply(t)}var o="pending";function r(t){this.status=o,this._continuations=[],this._parent=null,this._paused=!1,t&&t.call(this,this._continueWith.bind(this),this._failWith.bind(this))}function s(t){return t&&"function"==typeof t.then}if(r.prototype={then:function(t,e){var i=r.unresolved()._setParent(this);if(this._isRejected()){if(this._paused)return this._continuations.push({promise:i,nextFn:t,catchFn:e}),i;if(e)try{var n=e(this._error);return s(n)?(this._chainPromiseData(n,i),i):r.resolve(n)._setParent(this)}catch(t){return r.reject(t)._setParent(this)}return r.reject(this._error)._setParent(this)}return this._continuations.push({promise:i,nextFn:t,catchFn:e}),this._runResolutions(),i},catch:function(t){if(this._isResolved())return r.resolve(this._data)._setParent(this);var e=r.unresolved()._setParent(this);return this._continuations.push({promise:e,catchFn:t}),this._runRejections(),e},finally:function(t){return this._finally=r.resolve()._setParent(this).then(function(){return t()})},pause:function(){return this._paused=!0,this},resume:function(){var t=this._findFirstPaused();return t&&(t._paused=!1,t._runResolutions(),t._runRejections()),this},_findAncestry:function(){return this._continuations.reduce(function(t,e){if(e.promise){var i={promise:e.promise,children:e.promise._findAncestry()};t.push(i)}return t},[])},_setParent:function(t){if(this._parent)throw new Error("parent already set");return this._parent=t,this},_continueWith:function(t){var e=this._findFirstPending();e&&(e._data=t,e._setResolved())},_findFirstPending:function(){return this._findFirstAncestor(function(t){return t._isPending&&t._isPending()})},_findFirstPaused:function(){return this._findFirstAncestor(function(t){return t._paused})},_findFirstAncestor:function(t){for(var e,i=this;i;)t(i)&&(e=i),i=i._parent;return e},_failWith:function(t){var e=this._findFirstPending();e&&(e._error=t,e._setRejected())},_takeContinuations:function(){return this._continuations.splice(0,this._continuations.length)},_runRejections:function(){if(!this._paused&&this._isRejected()){var t=this._error,e=this._takeContinuations(),i=this;e.forEach(function(e){if(e.catchFn)try{var n=e.catchFn(t);i._handleUserFunctionResult(n,e.promise)}catch(t){t.message,e.promise.reject(t)}else e.promise.reject(t)})}},_runResolutions:function(){if(!this._paused&&this._isResolved()){var t=this._takeContinuations();if(s(this._data))return this._handleWhenResolvedDataIsPromise(this._data);var e=this._data,i=this;t.forEach(function(t){if(t.nextFn)try{var n=t.nextFn(e);i._handleUserFunctionResult(n,t.promise)}catch(e){i._handleResolutionError(e,t)}else t.promise&&t.promise.resolve(e)})}},_handleResolutionError:function(t,e){if(this._setRejected(),e.catchFn)try{return void e.catchFn(t)}catch(e){t=e}e.promise&&e.promise.reject(t)},_handleWhenResolvedDataIsPromise:function(t){var e=this;return t.then(function(t){e._data=t,e._runResolutions()}).catch(function(t){e._error=t,e._setRejected(),e._runRejections()})}
81,_handleUserFunctionResult:function(t,e){s(t)?this._chainPromiseData(t,e):e.resolve(t)},_chainPromiseData:function(t,e){t.then(function(t){e.resolve(t)}).catch(function(t){e.reject(t)})},_setResolved:function(){this.status="resolved",this._paused||this._runResolutions()},_setRejected:function(){this.status="rejected",this._paused||this._runRejections()},_isPending:function(){return this.status===o},_isResolved:function(){return"resolved"===this.status},_isRejected:function(){return"rejected"===this.status}},r.resolve=function(t){return new r(function(e,i){s(t)?t.then(function(t){e(t)}).catch(function(t){i(t)}):e(t)})},r.reject=function(t){return new r(function(e,i){i(t)})},r.unresolved=function(){return new r(function(t,e){this.resolve=t,this.reject=e})},r.all=function(){var t=n(arguments);return Array.isArray(t[0])&&(t=t[0]),t.length?new r(function(e,i){var n=[],o=0,s=!1;t.forEach(function(a,l){r.resolve(a).then(function(i){n[l]=i,(o+=1)===t.length&&e(n)}).catch(function(t){!function(t){s||(s=!0,i(t))}(t)})})}):r.resolve([])},Promise===r)throw new Error("Please use SynchronousPromise.installGlobally() to install globally");var a=Promise;r.installGlobally=function(t){if(Promise===r)return t;var e=function(t){if(void 0===t||t.__patched)return t;var e=t;return(t=function(){e.apply(this,n(arguments))}).__patched=!0,t}(t);return Promise=r,e},r.uninstallGlobally=function(){Promise===r&&(Promise=a)},t.exports={SynchronousPromise:r}},851:function(t,e,i){"use strict";var n=i(181);
81e.__esModule=!0,e.default=s;var o=n(i(615)),r=/\$\{\s*(\w+)\s*\}/g;function s(t,e,i,n){var o=this;this.name="ValidationError",this.value=e,this.path=i,this.type=n,this.errors=[],this.inner=[],t&&[].concat(t).forEach(function(t){o.errors=o.errors.concat(t.errors||t),t.inner&&(o.inner=o.inner.concat(t.inner.length?t.inner:t))}),this.message=this.errors.length>1?this.errors.length+" errors occurred":this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,s)}s.prototype=Object.create(Error.prototype),s.prototype.constructor=s,s.isError=function(t){return t&&"ValidationError"===t.name},s.formatError=function(t,e){var i;"string"==typeof t&&(i=t,t=function(t){return i.replace(r,function(e,i){return(0,o.default)(t[i])})});var n=function(e){return e.path=e.label||e.path||"this","function"==typeof t?t(e):t};return 1===arguments.length?n:n(e)},t.exports=e.default},852:function(t,e,i){var n=i(401),o=i(600),r=i(318);t.exports=function(t,e){var i={};return e=r(e,3),o(t,function(t,o,r){n(i,o,e(t,o,r))}),i}},853:function(t,e,i){var n=i(1777),o=i(1778),r=i(1781),s=RegExp("['’]","g");t.exports=function(t){return function(e){return n(r(o(e).replace(s,"")),t,"")}}},921:function(t,e,i){"use strict";var n=i(426);n.domToReact,n.htmlToDOM,n.attributesToProps,e.a=n},922:function(t,e,i){var n=i(805);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},924:function(t,e,i){var n=i(1555),o=i(1556);t.exports=function(t,e){return o(n,t,e)}},927:function(t,e,i){"use strict";function n(t,e=document){return e.getElementsByClassName(t)}function o(t,e,i){for(let n=0,o=t.length;n<o;n++)e.call(i,t[n],n)}function r(t,e,i,n){t.addEventListener(e,i,n)}function s(t,e,i,n){t.removeEventListener(e,i,n)}function a(t,e){return t.getAttribute(e)}function l(t,e,i){t.setAttribute(e,i)}i.d(e,"a",function(){return c});const d={css3easing:"linear",delayBeforeStart:1e3,direction:"left",duplicated:!1,duration:5e3,gap:20,pauseOnHover:!1,recalcResize:!1,speed:0,startVisible:!1};let u=0;class c{constructor(t,e){if(void 0===t)throw new Error("el cannot be undefined");if("string"==typeof t)throw new Error("el cannot be just a selector");if(null===t)throw new Error("el cannot be null");e={...d,...e},this.el=t,this._loopCount=3;for(const i in d){let n=a(t,`data-${d[i]}`);null!==n&&""!==n&&("true"!==n&&"false"!==n||(n=Boolean(n)),e[i]=n)}e.speed&&(e.duration=parseInt(t.clientWidth)/e.speed*1e3),e.gap=e.duplicated?parseInt(e.gap):0,t.innerHTML=`<div class="js-marquee">${t.innerHTML}</div>`;const i=n("js-marquee",t)[0];i.style.marginRight=`${e.gap}px`,i.style.willChange="transform",i.style.float="left",e.duplicated&&t.appendChild(i.cloneNode(!0)),t.innerHTML=`<div style="width:100000px" class="js-marquee-wrapper">${t.innerHTML}</div>`;const o=n("js-marquee-wrapper",t)[0],s="up"===e.direction||"down"===e.direction;this._marqWrap=o,this._vertical=s,this._duration=e.duration,this._opts=e,this._calcSizes();const l=`marqueeAnimation-${Math.floor(1e7*Math.random())}`,c=this._animationStr(l,e.duration/1e3,e.delayBeforeStart/1e3,"infinite");this._animName=l,this._animStr=c,e.duplicated?(s?e.startVisible?this._marqWrap.style.transform="translateY(0px)":this._marqWrap.style.transform=`translateY(${"up"===e.direction?this._contHeight:-1*(2*this._elHeight-e.gap)}px)`:e.startVisible?this._marqWrap.style.transform="translateX(0px)":this._marqWrap.style.transform=`translateX(${"left"===e.direction?this._contWidth:-1*(2*this._elWidth-e.gap)}px)`,e.startVisible||(this._loopCount=1)):e.startVisible?this._loopCount=2:s?this._repositionVert():this._repositionHor(),r(this.el,"pause",this.pause.bind(this)),r(this.el,"resume",this.resume.bind(this)),e.pauseOnHover&&(r(this.el,"mouseover",this.pause.bind(this)),r(this.el,"mouseout",this.resume.bind(this))),this._animEnd=(()=>{this._animate(s),this.el.dispatchEvent(new CustomEvent("finished"))}),this._instance=u,u++,this._animate(s),e.recalcResize&&r(window,"resize",this._recalcResize.bind(this))}_animationStr(t="",e=0,i=0,n=""){return`${t} ${e}s ${i}s ${n} ${this._opts.css3easing}`}_animate(t=!1){const e=this._opts;if(e.duplicated){if(1===this._loopCount){let i=e.duration;i=t?"up"===e.direction?i+this._contHeight/(this._elHeight/i):2*i:"left"===e.direction?i+this._contWidth/(this._elWidth/i):2*i,this._animStr=this._animationStr(this._animName,i/1e3,e.delayBeforeStart/1e3)}else 2===this._loopCount&&(this._animName=`${this._animName}0`,this._animStr=this._animationStr(this._animName,e.duration/1e3,0,"infinite"));this._loopCount++}let i="";t?e.duplicated?(this._loopCount>2&&(this._marqWrap.style.transform=`translateY(${"up"===e.direction?0:-1*this._elHeight}px)`),i=`translateY(${"up"===e.direction?-1*this._elHeight:0}px)`):e.startVisible?2===this._loopCount?(this._animStr=this._animationStr(this._animName,e.duration/1e3,e.delayBeforeStart/1e3),i=`translateY(${"up"===e.direction?-1*this._elHeight:this._contHeight}px)`,this._loopCount++):3===this._loopCount&&(this._animName=`${this._animName}0`,this._animStr=this._animationStr(this._animName,this._completeDuration/1e3,0,"infinite"),this._repositionVert()):(this._repositionVert(),i=`translateY(${"up"===e.direction?-1*this._marqWrap.clientHeight:this._contHeight}px)`):e.duplicated?(this._loopCount>2&&(this._marqWrap.style.transform=`translateX(${"left"===e.direction?0:-1*this._elWidth}px)`),i=`translateX(${"left"===e.direction?-1*this._elWidth:0}px)`):e.startVisible?2===this._loopCount?(this._animStr=this._animationStr(this._animName,e.duration/1e3,e.delayBeforeStart/1e3),i=`translateX(${"left"===e.direction?-1*this._elWidth:this._contWidth}px)`,this._loopCount++):3===this._loopCount&&(this._animName=`${this._animName}0`,this._animStr=this._animationStr(this._animName,e.duration/1e3,0,"infinite"),this._repositionHor(
81)):(this._repositionHor(),i=`translateX(${"left"===e.direction?-1*this._elWidth:this._contWidth}px)`),this.el.dispatchEvent(new CustomEvent("beforeStarting")),this._marqWrap.style.animation=this._animStr;const s=`@keyframes ${this._animName} {\n        100% {\n          transform: ${i};\n        }\n      }`,a=function(t,e=document){return e.querySelectorAll("style")}(0,this._marqWrap);if(a.length)a[a.length-1].innerHTML=s;else if(n(`marq-wrap-style-${this._instance}`).length)n(`marq-wrap-style-${this._instance}`)[0].innerHTML=s;else{const t=document.createElement("style");!function(t,...e){function i(t,...e){e.forEach(e=>{t.classList.add(e)})}void 0===t.length?i(t,...e):o(t,t=>{i(t,...e)})}(t,`marq-wrap-style-${this._instance}`),t.innerHTML=s,function(t,e=document){return e.querySelector("head")}().appendChild(t)}r(this._marqWrap,"animationiteration",this._animIter.bind(this),{once:!0}),r(this._marqWrap,"animationend",this._animEnd.bind(this),{once:!0}),this._status="running",l(this.el,"data-runningStatus","resumed")}_animIter(){this.el.dispatchEvent(new CustomEvent("finished"))}_repositionVert(){this._marqWrap.style.transform=`translateY(${"up"===this._opts.direction?this._contHeight:-1*this._elHeight}px)`}_repositionHor(){this._marqWrap.style.transform=`translateX(${"left"===this._opts.direction?this._contWidth:-1*this._elWidth}px)`}_calcSizes(){const t=this.el,e=this._opts;if(this._vertical){const i=t.clientHeight;this._contHeight=i,function(t,e){t.removeAttribute("style")}(this._marqWrap),t.style.clientHeight=`${i}px`;const r=n("js-marquee",t),s=r.length-1;o(r,(t,i)=>{t.style.float="none",t.style.marginRight="0px",e.duplicated&&i===s?t.style.marginBottom="0px":t.style.marginBottom=`${e.gap}px`});const a=parseInt(r[0].clientHeight+e.gap);this._elHeight=a,e.startVisible&&!e.duplicated?(this._completeDuration=(a+i)/parseInt(i)*this._duration,e.duration=a/parseInt(i)*this._duration):e.duration=a/parseInt(i)/parseInt(i)*this._duration}else{const i=parseInt(n("js-marquee",t)[0].clientWidth+e.gap),o=t.clientWidth;this._contWidth=o,this._elWidth=i,e.startVisible&&!e.duplicated?(this._completeDuration=(i+o)/parseInt(o)*this._duration,e.duration=i/parseInt(o)*this._duration):e.duration=(i+parseInt(o))/parseInt(o)*this._duration}e.duplicated&&(e.duration=e.duration/2)}_recalcResize(){this._calcSizes(),this._loopCount=2,this._animEnd()}pause(){this._marqWrap.style.animationPlayState="paused",this._status="paused",l(this.el,"data-runningStatus","paused"),this.el.dispatchEvent(new CustomEvent("paused"))}resume(){this._marqWrap.style.animationPlayState="running",this._status="running",l(this.el,"data-runningStatus","resumed"),this.el.dispatchEvent(new CustomEvent("resumed"))}toggle(){"paused"===this._status?this.resume():"running"===this._status&&this.pause()}destroy(){s(this.el,"pause",this.pause.bind(this)),s(this.el,"resume",this.resume.bind(this)),this._opts.pauseOnHover&&(s(this.el,"mouseover",this.pause.bind(this)),s(this.el,"mouseout",this.resume.bind(this))),s(this._marqWrap,"animationiteration",this._animIter.bind(this),{once:!0}),s(this._marqWrap,"animationend",this._animEnd.bind(this),{once:!0}),this._opts.recalcResize&&s(window,"resize",this._recalcResize.bind(this))}refresh(){this._recalcResize()}}},928:function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0});var o={position:{x:window.innerWidth/2,y:window.innerHeight/3},count:75,size:1,velocity:200,fade:!1},r=class{static range(t,e){return Math.random()*(e-t)+t}},s=class t{constructor(t=0,e=0){this.x=t,this.y=e}copy(){return new t(this.x,this.y)}magnitude(){return Math.hypot(this.x,this.y)}normalize(){const t=this.magnitude();if(0===t)return this.x=0,this.y=0,this;const e=1/t;return this.x*=e,this.y*=e,this}scale(t){return this.x*=t,this.y*=t,this}},a=class{constructor(t,e){this.config=e,this.position=t.copy(),this.size=this.initSize(),this.velocity=this.initVelocity(),this.rotation=r.range(0,360),this.rotation_speed=r.range(-250,250),this.hue=r.range(0,360),this.opacity=100,this.fadeRate=100/r.range(.5,2.5)}initSize(){const t=r.range(2,10)*this.config.size,e=r.range(2,4)*this.config.size;return new s(t,e)}initVelocity(){const t=r.range(-.5,.5),e=r.range(-.75,.25),i=new s(t,e).normalize();
81return i.x*=Math.random()*this.config.velocity*4,i.y*=Math.random()*this.config.velocity*4,i}update(t){this.velocity.x+=r.range(-350,350)*t,this.velocity.y+=this.size.y/(10*this.config.size)*750*t;const e=Math.pow(.98,60*t);this.velocity.scale(e),this.position.x+=this.velocity.x*t,this.position.y+=this.velocity.y*t,this.rotation+=this.rotation_speed*t,this.config.fade&&(this.opacity-=this.fadeRate*t,this.opacity<0&&(this.opacity=0))}draw(t){t.drawRect(this.position,this.size,this.rotation,this.hue,this.opacity)}cull(t){const e=2*Math.max(this.size.x,this.size.y);return this.position.y>t.height+e||this.opacity<=0}},l=((n=class t{__init(){this.particles=[]}__init2(){this.lastTime=0}__init3(){this.rafId=0}static __initStatic(){this.sharedEngine=null}constructor(){n.prototype.__init.call(this),n.prototype.__init2.call(this),n.prototype.__init3.call(this),this.renderer=new class{constructor(){const t=document.createElement("canvas"),e=t.getContext("2d");if(!e)throw new Error("Unable to create 2d context");this.canvas=t,this.context=e,this.dpr=Math.max(1,window.devicePixelRatio||1),this.rafId=0,this.boundResize=this.resize.bind(this),this.resize(),window.addEventListener("resize",this.boundResize),t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100%",t.style.margin="0",t.style.padding="0",t.style.zIndex="999999999",t.style.pointerEvents="none",document.body.appendChild(t),this.context.imageSmoothingEnabled=!0}resize(){this.rafId&&cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(()=>{const{innerWidth:t,innerHeight:e}=window;this.canvas.width=Math.round(t*this.dpr),this.canvas.height=Math.round(e*this.dpr),this.canvas.style.width=`${t}px`,this.canvas.style.height=`${e}px`,this.context.setTransform(this.dpr,0,0,this.dpr,0,0),this.rafId=0})}get width(){return this.canvas.width/this.dpr}get height(){return this.canvas.height/this.dpr}clear(){this.context.clearRect(0,0,this.canvas.width,this.canvas.height)}drawRect(t,e,i,n,o){const r=i*Math.PI/180,s=Math.cos(r),a=Math.sin(r),l=e.x*this.dpr,d=e.y*this.dpr,u=t.x*this.dpr,c=t.y*this.dpr;this.context.setTransform(s,a,-a,s,u,c),this.context.beginPath(),this.context.rect(-l/2,-d/2,l,d),this.context.fillStyle=`oklch(0.85 0.25 ${n}deg / ${o}%)`,this.context.fill(),this.context.setTransform(this.dpr,0,0,this.dpr,0,0)}cleanup(){window.removeEventListener("resize",this.boundResize),this.rafId&&cancelAnimationFrame(this.rafId),this.canvas.remove()}},this.boundUpdate=this.update.bind(this),this.rafId=window.requestAnimationFrame(this.boundUpdate)}update(t){const e=Math.min((t-this.lastTime)/1e3,.064);if(this.lastTime=t,0===this.particles.length)return void this.cleanup();this.renderer.clear();let i=0;for(let t=0;t<this.particles.length;t++)this.particles[t].update(e),this.particles[t].cull(this.renderer)||(this.particles[t].draw(this.renderer),this.particles[i++]=this.particles[t]);this.particles.length=i,this.rafId=window.requestAnimationFrame(this.boundUpdate)}cleanup(){this.rafId&&window.cancelAnimationFrame(this.rafId),this.renderer.cleanup(),t.sharedEngine=null}trigger(t){const e=new s(t.position.x,t.position.y);for(let i=0;i<t.count;i++)this.particles.push(new a(e,t))}static acquire(){return t.sharedEngine||(t.sharedEngine=new t),t.sharedEngine}}).__initStatic(),n);e.default=function(t){const e=class{static init(t){return{...o,...t}}}.init(t);l.acquire().trigger(e)}},929:function(t,e,i){"use strict";function n(t,e){return new Promise(function(i,n){let r;return o(t).then(function(t){try{return r=t,i(new Blob([e.slice(0,2),r,e.slice(2)],{type:"image/jpeg"}))}catch(t){return n(t)}},n)})}i.d(e,"a",function(){return B});const o=t=>new Promise((e,i)=>{const n=new FileReader;n.addEventListener("load",({target:{result:t}})=>{const n=new DataView(t);let o=0;if(65496!==n.getUint16(o))return i("not a valid JPEG");for(o+=2;;){const r=n.getUint16(o);if(65498===r)break;const s=n.getUint16(o+2);if(65505===r&&1165519206===n.getUint32(o+4)){const r=o+10;let a;switch(n.getUint16(r)){case 18761:a=!0;break;case 19789:a=!1;break;
vendor: 4,193 bytes, line 81
81default:return i("TIFF header contains invalid endian")}if(42!==n.getUint16(r+2,a))return i("TIFF header contains invalid version");const l=n.getUint32(r+4,a),d=r+l+2+12*n.getUint16(r+l,a);for(let t=r+l+2;t<d;t+=12)if(274==n.getUint16(t,a)){if(3!==n.getUint16(t+2,a))return i("Orientation data type is invalid");if(1!==n.getUint32(t+4,a))return i("Orientation data count is invalid");n.setUint16(t+8,1,a);break}return e(t.slice(o,o+2+s))}o+=2+s}return e(new Blob)}),n.readAsArrayBuffer(t)});var r={},s={get exports(){return r},set exports(t){r=t}};!function(t){var e,i,n={};s.exports=n,n.parse=function(t,e){for(var i=n.bin.readUshort,o=n.bin.readUint,r=0,s={},a=new Uint8Array(t),l=a.length-4;101010256!=o(a,l);)l--;r=l,r+=4;var d=i(a,r+=4);i(a,r+=2);var u=o(a,r+=2),c=o(a,r+=4);r+=4,r=c;for(var h=0;h<d;h++){o(a,r),r+=4,r+=4,r+=4,o(a,r+=4),u=o(a,r+=4);var p=o(a,r+=4),f=i(a,r+=4),g=i(a,r+2),v=i(a,r+4);r+=6;var y=o(a,r+=8);r+=4,r+=f+g+v,n._readLocal(a,y,s,u,p,e)}return s},n._readLocal=function(t,e,i,o,r,s){var a=n.bin.readUshort,l=n.bin.readUint;l(t,e),a(t,e+=4),a(t,e+=2);var d=a(t,e+=2);l(t,e+=2),l(t,e+=4),e+=4;var u=a(t,e+=8),c=a(t,e+=2);e+=2;var h=n.bin.readUTF8(t,e,u);if(e+=u,e+=c,s)i[h]={size:r,csize:o};else{var p=new Uint8Array(t.buffer,e);if(0==d)i[h]=new Uint8Array(p.buffer.slice(e,e+o));else{if(8!=d)throw"unknown compression method: "+d;var f=new Uint8Array(r);n.inflateRaw(p,f),i[h]=f}}},n.inflateRaw=function(t,e){return n.F.inflate(t,e)},n.inflate=function(t,e){return t[0],t[1],n.inflateRaw(new Uint8Array(t.buffer,t.byteOffset+2,t.length-6),e)},n.deflate=function(t,e){null==e&&(e={level:6});var i=0,o=new Uint8Array(50+Math.floor(1.1*t.length));o[i]=120,o[i+1]=156,i+=2,i=n.F.deflateRaw(t,o,i,e.level);var r=n.adler(t,0,t.length);return o[i+0]=r>>>24&255,o[i+1]=r>>>16&255,o[i+2]=r>>>8&255,o[i+3]=r>>>0&255,new Uint8Array(o.buffer,0,i+4)},n.deflateRaw=function(t,e){null==e&&(e={level:6});var i=new Uint8Array(50+Math.floor(1.1*t.length)),o=n.F.deflateRaw(t,i,o,e.level);return new Uint8Array(i.buffer,0,o)},n.encode=function(t,e){null==e&&(e=!1);var i=0,o=n.bin.writeUint,r=n.bin.writeUshort,s={};for(var a in t){var l=!n._noNeed(a)&&!e,d=t[a],u=n.crc.crc(d,0,d.length);s[a]={cpr:l,usize:d.length,crc:u,file:l?n.deflateRaw(d):d}}for(var a in s)i+=s[a].file.length+30+46+2*n.bin.sizeUTF8(a);i+=22;var c=new Uint8Array(i),h=0,p=[];for(var a in s){var f=s[a];p.push(h),h=n._writeHeader(c,h,a,f,0)}var g=0,v=h;for(var a in s)f=s[a],p.push(h),h=n._writeHeader(c,h,a,f,1,p[g++]);var y=h-v;return o(c,h,101010256),h+=4,r(c,h+=4,g),r(c,h+=2,g),o(c,h+=2,y),o(c,h+=4,v),h+=4,h+=2,c.buffer},n._noNeed=function(t){var e=t.split(".").pop().toLowerCase();return-1!="png,jpg,jpeg,zip".indexOf(e)},n._writeHeader=function(t,e,i,o,r,s){var a=n.bin.writeUint,l=n.bin.writeUshort,d=o.file;return a(t,e,0==r?67324752:33639248),e+=4,1==r&&(e+=2),l(t,e,20),l(t,e+=2,0),l(t,e+=2,o.cpr?8:0),a(t,e+=2,0),a(t,e+=4,o.crc),a(t,e+=4,d.length),a(t,e+=4,o.usize),l(t,e+=4,n.bin.sizeUTF8(i)),l(t,e+=2,0),e+=2,1==r&&(e+=2,e+=2,a(t,e+=6,s),e+=4),e+=n.bin.writeUTF8(t,e,i),0==r&&(t.set(d,e),e+=d.length),e},n.crc={table:function(){for(var t=new Uint32Array(256),e=0;e<256;e++){for(var i=e,n=0;n<8;n++)1&i?i=3988292384^i>>>1:i>>>=1;t[e]=i}return t}(),update:function(t,e,i,o){for(var r=0;r<o;r++)t=n.crc.table[255&(t^e[i+r])]^t>>>8;return t},crc:function(t,e,i){return 4294967295^n.crc.update(4294967295,t,e,i)}},n.adler=function(t,e,i){for(var n=1,o=0,r=e,s=e+i;r<s;){for(var a=Math.min(r+5552,s);r<a;)o+=n+=t[r++];n%=65521,o%=65521}return o<<16|n},n.bin={readUshort:function(t,e){return t[e]|t[e+1]<<8},writeUshort:function(t,e,i){t[e]=255&i,t[e+1]=i>>8&255},readUint:function(t,e){return 16777216*t[e+3]+(t[e+2]<<16|t[e+1]<<8|t[e])},writeUint:function(t,e,i){t[e]=255&i,t[e+1]=i>>8&255,t[e+2]=i>>16&255,t[e+3]=i>>24&255},readASCII:function(t,e,i){for(var n="",o=0;o<i;o++)n+=String.fromCharCode(t[e+o]);return n},writeASCII:function(t,e,i){for(var n=0;n<i.length;n++)t[e+n]=i.charCodeAt(n)},pad:function(t){return t.length<2?"0"+t:t},readUTF8:function(t,e,i){for(var o,r="",s=0;s<i;s++)r+="%"+n.bin.pad(t[e+s].toString(16));try{o=decodeURIComponent(r)}catch(o){return n.bin.readASCII(t,e,i)}return o}
vendor: 6,387 bytes, line 81
81,writeUTF8:function(t,e,i){for(var n=i.length,o=0,r=0;r<n;r++){var s=i.charCodeAt(r);if(0==(4294967168&s))t[e+o]=s,o++;else if(0==(4294965248&s))t[e+o]=192|s>>6,t[e+o+1]=128|s>>0&63,o+=2;else if(0==(4294901760&s))t[e+o]=224|s>>12,t[e+o+1]=128|s>>6&63,t[e+o+2]=128|s>>0&63,o+=3;else{if(0!=(4292870144&s))throw"e";t[e+o]=240|s>>18,t[e+o+1]=128|s>>12&63,t[e+o+2]=128|s>>6&63,t[e+o+3]=128|s>>0&63,o+=4}}return o},sizeUTF8:function(t){for(var e=t.length,i=0,n=0;n<e;n++){var o=t.charCodeAt(n);if(0==(4294967168&o))i++;else if(0==(4294965248&o))i+=2;else if(0==(4294901760&o))i+=3;else{if(0!=(4292870144&o))throw"e";i+=4}}return i}},n.F={},n.F.deflateRaw=function(t,e,i,o){var r=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]][o],s=n.F.U,a=n.F._goodIndex;n.F._hash;var l=n.F._putsE,d=0,u=i<<3,c=0,h=t.length;if(0==o){for(;d<h;)l(e,u,d+(A=Math.min(65535,h-d))==h?1:0),u=n.F._copyExact(t,d,A,e,u+8),d+=A;return u>>>3}var p=s.lits,f=s.strt,g=s.prev,v=0,y=0,m=0,b=0,S=0,E=0;for(h>2&&(f[E=n.F._hash(t,0)]=0),d=0;d<h;d++){if(S=E,d+1<h-2){E=n.F._hash(t,d+1);var C=d+1&32767;g[C]=f[E],f[E]=C}if(c<=d){(v>14e3||y>26697)&&h-d>100&&(c<d&&(p[v]=d-c,v+=2,c=d),u=n.F._writeBlock(d==h-1||c==h?1:0,p,v,b,t,m,d-m,e,u),v=y=b=0,m=d);var w=0;d<h-2&&(w=n.F._bestMatch(t,d,g,S,Math.min(r[2],h-d),r[3]));var A=w>>>16,T=65535&w;if(0!=w){T=65535&w;var I=a(A=w>>>16,s.of0);s.lhst[257+I]++;var M=a(T,s.df0);s.dhst[M]++,b+=s.exb[I]+s.dxb[M],p[v]=A<<23|d-c,p[v+1]=T<<16|I<<8|M,v+=2,c=d+A}else s.lhst[t[d]]++;y++}}for(m==d&&0!=t.length||(c<d&&(p[v]=d-c,v+=2,c=d),u=n.F._writeBlock(1,p,v,b,t,m,d-m,e,u),v=0,y=0,v=y=b=0,m=d);0!=(7&u);)u++;return u>>>3},n.F._bestMatch=function(t,e,i,o,r,s){var a=32767&e,l=i[a],d=a-l+32768&32767;if(l==a||o!=n.F._hash(t,e-d))return 0;for(var u=0,c=0,h=Math.min(32767,e);d<=h&&0!=--s&&l!=a;){if(0==u||t[e+u]==t[e+u-d]){var p=n.F._howLong(t,e,d);if(p>u){if(c=d,(u=p)>=r)break;d+2<p&&(p=d+2);for(var f=0,g=0;g<p-2;g++){var v=e-d+g+32768&32767,y=v-i[v]+32768&32767;y>f&&(f=y,l=v)}}}d+=(a=l)-(l=i[a])+32768&32767}return u<<16|c},n.F._howLong=function(t,e,i){if(t[e]!=t[e-i]||t[e+1]!=t[e+1-i]||t[e+2]!=t[e+2-i])return 0;var n=e,o=Math.min(t.length,e+258);for(e+=3;e<o&&t[e]==t[e-i];)e++;return e-n},n.F._hash=function(t,e){return(t[e]<<8|t[e+1])+(t[e+2]<<4)&65535},n.saved=0,n.F._writeBlock=function(t,e,i,o,r,s,a,l,d){var u,c,h,p,f,g,v,y,m,b=n.F.U,S=n.F._putsF,E=n.F._putsE;b.lhst[256]++,c=(u=n.F.getTrees())[0],h=u[1],p=u[2],f=u[3],g=u[4],v=u[5],y=u[6],m=u[7];var C=32+(0==(d+3&7)?0:8-(d+3&7))+(a<<3),w=o+n.F.contSize(b.fltree,b.lhst)+n.F.contSize(b.fdtree,b.dhst),A=o+n.F.contSize(b.ltree,b.lhst)+n.F.contSize(b.dtree,b.dhst);A+=14+3*v+n.F.contSize(b.itree,b.ihst)+(2*b.ihst[16]+3*b.ihst[17]+7*b.ihst[18]);for(var T=0;T<286;T++)b.lhst[T]=0;for(T=0;T<30;T++)b.dhst[T]=0;for(T=0;T<19;T++)b.ihst[T]=0;var I=C<w&&C<A?0:w<A?1:2;if(S(l,d,t),S(l,d+1,I),d+=3,0==I){for(;0!=(7&d);)d++;d=n.F._copyExact(r,s,a,l,d)}else{var M,_;if(1==I&&(M=b.fltree,_=b.fdtree),2==I){n.F.makeCodes(b.ltree,c),n.F.revCodes(b.ltree,c),n.F.makeCodes(b.dtree,h),n.F.revCodes(b.dtree,h),n.F.makeCodes(b.itree,p),n.F.revCodes(b.itree,p),M=b.ltree,_=b.dtree,E(l,d,f-257),E(l,d+=5,g-1),E(l,d+=5,v-4),d+=4;for(var x=0;x<v;x++)E(l,d+3*x,b.itree[1+(b.ordr[x]<<1)]);d+=3*v,d=n.F._codeTiny(y,b.itree,l,d),d=n.F._codeTiny(m,b.itree,l,d)}for(var P=s,O=0;O<i;O+=2){for(var L=e[O],D=L>>>23,k=P+(8388607&L);P<k;)d=n.F._writeLit(r[P++],M,l,d);if(0!=D){var N=e[O+1],B=N>>16,R=N>>8&255,$=255&N;E(l,d=n.F._writeLit(257+R,M,l,d),D-b.of0[R]),d+=b.exb[R],S(l,d=n.F._writeLit($,_,l,d),B-b.df0[$]),d+=b.dxb[$],P+=D}}d=n.F._writeLit(256,M,l,d)}return d},n.F._copyExact=function(t,e,i,n,o){var r=o>>>3;return n[r]=i,n[r+1]=i>>>8,n[r+2]=255-n[r],n[r+3]=255-n[r+1],r+=4,n.set(new Uint8Array(t.buffer,e,i),r),o+(i+4<<3)},n.F.getTrees=function(){for(var t=n.F.U,e=n.F._hufTree(t.lhst,t.ltree,15),i=n.F._hufTree(t.dhst,t.dtree,15),o=[],r=n.F._lenCodes(t.ltree,o),s=[],a=n.F._lenCodes(t.dtree,s),l=0;l<o.length;l+=2)t.ihst[o[l]]++;for(l=0;l<s.length;l+=2)t.ihst[s[l]]++;for(var d=n.F._hufTree(t.ihst,t.itree,7),u=19;u>4&&0==t.itree[1+(t.ordr[u-1]<<1)];)u--;return[e,i,d,r,a,u,o,s]},n.F.getSecond=function(t){for(var e=[],i=0;i<t.length;i+=2)e.push(t[i+1]);return e},n.F.nonZero=function(t){for(var e="",i=0;i<t.length;i+=2)0!=t[i+1]&&(e+=(i>>1)+",");return e},n.F.contSize=function(t,e){for(var i=0,n=0;n<e.length;n++)i+=e[n]*t[1+(n<<1)];return i},n.F._codeTiny=function(t,e,i,o){for(var r=0;r<t.length;r+=2){var s=t[r],a=t[r+1];o=n.F._writeLit(s,e,i,o);var l=16==s?2:17==s?3:7;s>15&&(n.F._putsE(i,o,a,l),o+=l)}return o},n.F._lenCodes=function(t,e){for(var i=t.length;2!=i&&0==t[i-1];)i-=2;for(var n=0;n<i;n+=2){var o=t[n+1],r=n+3<i?t[n+3]:-1,s=n+5<i?t[n+5]:-1,a=0==n?-1:t[n-1];if(0==o&&r==o&&s==o){for(var l=n+5;l+2<i&&t[l+2]==o;)l+=2;(d=Math.min(l+1-n>>>1,138))<11?e.push(17,d-3):e.push(18,d-11),n+=2*d-2}else if(o==a&&r==o&&s==o){for(l=n+5;l+2<i&&t[l+2]==o;)l+=2;var d=Math.min(l+1-n>>>1,6);e.push(16,d-3),n+=2*d-2}else e.push(o,0)}return i>>>1},n.F._hufTree=function(t,e,i){var o=[],r=t.length,s=e.length,a=0;for(a=0;a<s;a+=2)e[a]=0,e[a+1]=0;for(a=0;a<r;a++)0!=t[a]&&o.push({lit:a,f:t[a]});var l=o.length,d=o.slice(0);if(0==l)return 0;if(1==l){var u=o[0].lit;return d=0==u?1:0,e[1+(u<<1)]=1,e[1+(d<<1)]=1,1}o.sort(function(t,e){return t.f-e.f});var c=o[0],h=o[1],p=0,f=1,g=2;for(o[0]={lit:-1,f:c.f+h.f,l:c,r:h,d:0};f!=l-1;)c=p!=f&&(g==l||o[p].f<o[g].f)?o[p++]:o[g++],h=p!=f&&(g==l||o[p].f<o[g].f)?o[p++]:o[g++],o[f++]={lit:-1,f:c.f+h.f,l:c,r:h};var v=n.F.setDepth(o[f-1],0);for(v>i&&(n.F.restrictDepth(d,i,v),v=i),a=0;a<l;a++)e[1+(d[a].lit<<1)]=d[a].d;return v},n.F.setDepth=function(t,e){return-1!=t.lit?(t.d=e,e):Math.max(n.F.setDepth(t.l,e+1),n.F.setDepth(t.r,e+1))},n.F.restrictDepth=function(t,e,i){var n=0,o=1<<i-e,r=0;for(t.sort(function(t,e){return e.d==t.d?t.f-e.f:e.d-t.d}),n=0;n<t.length&&t[n].d>e;n++){var s=t[n].d;t[n].d=e,r+=o-(1<<i-s)}for(r>>>=i-e;r>0;)(s=t[n].d)<e?(t[n].d++,r-=1<<e-s-1):n++;for(;n>=0;n--)t[n].d==e&&r<0&&(t[n].d--,r++);0!=r&&console.log("debt left")},n.F._goodIndex=function(t,e){var i=0;return e[16|i]<=t&&(i|=16),e[8|i]<=t&&(i|=8),e[4|i]<=t&&(i|=4),e[2|i]<=t&&(i|=2),e[1|i]<=t&&(i|=1),i},n.F._writeLit=function(t,e,i,o){return n.F._putsF(i,o,e[t<<1]),o+e[1+(t<<1)]},n.F.inflate=function(t,e){var i=Uint8Array;
vendor: 6,096 bytes, line 81
81if(3==t[0]&&0==t[1])return e||new i(0);var o=n.F,r=o._bitsF,s=o._bitsE,a=o._decodeTiny,l=o.makeCodes,d=o.codes2map,u=o._get17,c=o.U,h=null==e;h&&(e=new i(t.length>>>2<<3));for(var p,f,g=0,v=0,y=0,m=0,b=0,S=0,E=0,C=0,w=0;0==g;)if(g=r(t,w,1),v=r(t,w+1,2),w+=3,0!=v){if(h&&(e=n.F._check(e,C+(1<<17))),1==v&&(p=c.flmap,f=c.fdmap,S=511,E=31),2==v){y=s(t,w,5)+257,m=s(t,w+5,5)+1,b=s(t,w+10,4)+4,w+=14;for(var A=0;A<38;A+=2)c.itree[A]=0,c.itree[A+1]=0;var T=1;for(A=0;A<b;A++){var I=s(t,w+3*A,3);c.itree[1+(c.ordr[A]<<1)]=I,I>T&&(T=I)}w+=3*b,l(c.itree,T),d(c.itree,T,c.imap),p=c.lmap,f=c.dmap,w=a(c.imap,(1<<T)-1,y+m,t,w,c.ttree);var M=o._copyOut(c.ttree,0,y,c.ltree);S=(1<<M)-1;var _=o._copyOut(c.ttree,y,m,c.dtree);E=(1<<_)-1,l(c.ltree,M),d(c.ltree,M,p),l(c.dtree,_),d(c.dtree,_,f)}for(;;){var x=p[u(t,w)&S];w+=15&x;var P=x>>>4;if(P>>>8==0)e[C++]=P;else{if(256==P)break;var O=C+P-254;if(P>264){var L=c.ldef[P-257];O=C+(L>>>3)+s(t,w,7&L),w+=7&L}var D=f[u(t,w)&E];w+=15&D;var k=D>>>4,N=c.ddef[k],B=(N>>>4)+r(t,w,15&N);for(w+=15&N,h&&(e=n.F._check(e,C+(1<<17)));C<O;)e[C]=e[C++-B],e[C]=e[C++-B],e[C]=e[C++-B],e[C]=e[C++-B];C=O}}}else{0!=(7&w)&&(w+=8-(7&w));var R=4+(w>>>3),$=t[R-4]|t[R-3]<<8;h&&(e=n.F._check(e,C+$)),e.set(new i(t.buffer,t.byteOffset+R,$),C),w=R+$<<3,C+=$}return e.length==C?e:e.slice(0,C)},n.F._check=function(t,e){var i=t.length;if(e<=i)return t;var n=new Uint8Array(Math.max(i<<1,e));return n.set(t,0),n},n.F._decodeTiny=function(t,e,i,o,r,s){for(var a=n.F._bitsE,l=n.F._get17,d=0;d<i;){var u=t[l(o,r)&e];r+=15&u;var c=u>>>4;if(c<=15)s[d]=c,d++;else{var h=0,p=0;16==c?(p=3+a(o,r,2),r+=2,h=s[d-1]):17==c?(p=3+a(o,r,3),r+=3):18==c&&(p=11+a(o,r,7),r+=7);for(var f=d+p;d<f;)s[d]=h,d++}}return r},n.F._copyOut=function(t,e,i,n){for(var o=0,r=0,s=n.length>>>1;r<i;){var a=t[r+e];n[r<<1]=0,n[1+(r<<1)]=a,a>o&&(o=a),r++}for(;r<s;)n[r<<1]=0,n[1+(r<<1)]=0,r++;return o},n.F.makeCodes=function(t,e){for(var i,o,r,s,a=n.F.U,l=t.length,d=a.bl_count,u=0;u<=e;u++)d[u]=0;for(u=1;u<l;u+=2)d[t[u]]++;var c=a.next_code;for(i=0,d[0]=0,o=1;o<=e;o++)i=i+d[o-1]<<1,c[o]=i;for(r=0;r<l;r+=2)0!=(s=t[r+1])&&(t[r]=c[s],c[s]++)},n.F.codes2map=function(t,e,i){for(var o=t.length,r=n.F.U.rev15,s=0;s<o;s+=2)if(0!=t[s+1])for(var a=s>>1,l=t[s+1],d=a<<4|l,u=e-l,c=t[s]<<u,h=c+(1<<u);c!=h;)i[r[c]>>>15-e]=d,c++},n.F.revCodes=function(t,e){for(var i=n.F.U.rev15,o=15-e,r=0;r<t.length;r+=2){var s=t[r]<<e-t[r+1];t[r]=i[s]>>>o}},n.F._putsE=function(t,e,i){i<<=7&e;var n=e>>>3;t[n]|=i,t[n+1]|=i>>>8},n.F._putsF=function(t,e,i){i<<=7&e;var n=e>>>3;t[n]|=i,t[n+1]|=i>>>8,t[n+2]|=i>>>16},n.F._bitsE=function(t,e,i){return(t[e>>>3]|t[1+(e>>>3)]<<8)>>>(7&e)&(1<<i)-1},n.F._bitsF=function(t,e,i){return(t[e>>>3]|t[1+(e>>>3)]<<8|t[2+(e>>>3)]<<16)>>>(7&e)&(1<<i)-1},n.F._get17=function(t,e){return(t[e>>>3]|t[1+(e>>>3)]<<8|t[2+(e>>>3)]<<16)>>>(7&e)},n.F._get25=function(t,e){return(t[e>>>3]|t[1+(e>>>3)]<<8|t[2+(e>>>3)]<<16|t[3+(e>>>3)]<<24)>>>(7&e)},n.F.U=(e=Uint16Array,i=Uint32Array,{next_code:new e(16),bl_count:new e(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],exb:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],ldef:new e(32),df0:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],dxb:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],ddef:new i(32),flmap:new e(512),fltree:[],fdmap:new e(32),fdtree:[],lmap:new e(32768),ltree:[],ttree:[],dmap:new e(32768),dtree:[],imap:new e(512),itree:[],rev15:new e(32768),lhst:new i(286),dhst:new i(30),ihst:new i(19),lits:new i(15e3),strt:new e(65536),prev:new e(32768)}),function(){for(var t=n.F.U,e=0;e<32768;e++){var i=e;i=(4278255360&(i=(4042322160&(i=(3435973836&(i=(2863311530&i)>>>1|(1431655765&i)<<1))>>>2|(858993459&i)<<2))>>>4|(252645135&i)<<4))>>>8|(16711935&i)<<8,t.rev15[e]=(i>>>16|i<<16)>>>17}function o(t,e,i){for(;0!=e--;)t.push(0,i)}for(e=0;e<32;e++)t.ldef[e]=t.of0[e]<<3|t.exb[e],t.ddef[e]=t.df0[e]<<4|t.dxb[e];o(t.fltree,144,8),o(t.fltree,112,9),o(t.fltree,24,7),o(t.fltree,8,8),n.F.makeCodes(t.fltree,9),n.F.codes2map(t.fltree,9,t.flmap),n.F.revCodes(t.fltree,9),o(t.fdtree,32,5),n.F.makeCodes(t.fdtree,5),n.F.codes2map(t.fdtree,5,t.fdmap),n.F.revCodes(t.fdtree,5),o(t.itree,19,0),o(t.ltree,286,0),o(t.dtree,30,0),o(t.ttree,320,0)}()}();var a=function(t,e){return e.forEach(function(e){e&&"string"!=typeof e&&!Array.isArray(e)&&Object.keys(e).forEach(function(i){if("default"!==i&&!(i in t)){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}})}),Object.freeze(t)}({__proto__:null,default:r},[r]);const l=function(){var t={nextZero(t,e){for(;0!=t[e];)e++;return e},readUshort:(t,e)=>t[e]<<8|t[e+1],writeUshort(t,e,i){t[e]=i>>8&255,t[e+1]=255&i},readUint:(t,e)=>16777216*t[e]+(t[e+1]<<16|t[e+2]<<8|t[e+3]),writeUint(t,e,i){t[e]=i>>24&255,t[e+1]=i>>16&255,t[e+2]=i>>8&255,t[e+3]=255&i},readASCII(t,e,i){let n="";for(let o=0;o<i;o++)n+=String.fromCharCode(t[e+o]);return n},writeASCII(t,e,i){for(let n=0;n<i.length;n++)t[e+n]=i.charCodeAt(n)},readBytes(t,e,i){const n=[];for(let o=0;o<i;o++)n.push(t[e+o]);return n},pad:t=>t.length<2?`0${t}`:t,readUTF8(e,i,n){let o,r="";for(let o=0;o<n;o++)r+=`%${t.pad(e[i+o].toString(16))}`;try{o=decodeURIComponent(r)}catch(o){return t.readASCII(e,i,n)}return o}};function e(e,i,n,o){const s=i*n,a=r(o),l=Math.ceil(i*a/8),d=new Uint8Array(4*s),u=new Uint32Array(d.buffer),{ctype:c}=o,{depth:h}=o,p=t.readUshort;if(6==c){const t=s<<2;if(8==h)for(var f=0;f<t;f+=4)d[f]=e[f],d[f+1]=e[f+1],d[f+2]=e[f+2],d[f+3]=e[f+3];if(16==h)for(f=0;f<t;f++)d[f]=e[f<<1]}else if(2==c){const t=o.tabs.tRNS;if(null==t){if(8==h)for(f=0;f<s;f++){var g=3*f;u[f]=255<<24|e[g+2]<<16|e[g+1]<<8|e[g]}if(16==h)for(f=0;f<s;f++)g=6*f,u[f]=255<<24|e[g+4]<<16|e[g+2]<<8|e[g]}else{var v=t[0];const i=t[1],n=t[2];if(8==h)for(f=0;f<s;f++){var y=f<<2;g=3*f,u[f]=255<<24|e[g+2]<<16|e[g+1]<<8|e[g],e[g]==v&&e[g+1]==i&&e[g+2]==n&&(d[y+3]=0)}if(16==h)for(f=0;f<s;
vendor: 32,217 bytes, line 81
81f++)y=f<<2,g=6*f,u[f]=255<<24|e[g+4]<<16|e[g+2]<<8|e[g],p(e,g)==v&&p(e,g+2)==i&&p(e,g+4)==n&&(d[y+3]=0)}}else if(3==c){const t=o.tabs.PLTE,r=o.tabs.tRNS,a=r?r.length:0;if(1==h)for(var m=0;m<n;m++){var b=m*l,S=m*i;for(f=0;f<i;f++){y=S+f<<2;var E=3*(C=e[b+(f>>3)]>>7-((7&f)<<0)&1);d[y]=t[E],d[y+1]=t[E+1],d[y+2]=t[E+2],d[y+3]=C<a?r[C]:255}}if(2==h)for(m=0;m<n;m++)for(b=m*l,S=m*i,f=0;f<i;f++)y=S+f<<2,E=3*(C=e[b+(f>>2)]>>6-((3&f)<<1)&3),d[y]=t[E],d[y+1]=t[E+1],d[y+2]=t[E+2],d[y+3]=C<a?r[C]:255;if(4==h)for(m=0;m<n;m++)for(b=m*l,S=m*i,f=0;f<i;f++)y=S+f<<2,E=3*(C=e[b+(f>>1)]>>4-((1&f)<<2)&15),d[y]=t[E],d[y+1]=t[E+1],d[y+2]=t[E+2],d[y+3]=C<a?r[C]:255;if(8==h)for(f=0;f<s;f++){var C;y=f<<2,E=3*(C=e[f]),d[y]=t[E],d[y+1]=t[E+1],d[y+2]=t[E+2],d[y+3]=C<a?r[C]:255}}else if(4==c){if(8==h)for(f=0;f<s;f++){y=f<<2;var w=e[A=f<<1];d[y]=w,d[y+1]=w,d[y+2]=w,d[y+3]=e[A+1]}if(16==h)for(f=0;f<s;f++){var A;y=f<<2,w=e[A=f<<2],d[y]=w,d[y+1]=w,d[y+2]=w,d[y+3]=e[A+2]}}else if(0==c)for(v=o.tabs.tRNS?o.tabs.tRNS:-1,m=0;m<n;m++){const t=m*l,n=m*i;if(1==h)for(var T=0;T<i;T++){var I=(w=255*(e[t+(T>>>3)]>>>7-(7&T)&1))==255*v?0:255;u[n+T]=I<<24|w<<16|w<<8|w}else if(2==h)for(T=0;T<i;T++)I=(w=85*(e[t+(T>>>2)]>>>6-((3&T)<<1)&3))==85*v?0:255,u[n+T]=I<<24|w<<16|w<<8|w;else if(4==h)for(T=0;T<i;T++)I=(w=17*(e[t+(T>>>1)]>>>4-((1&T)<<2)&15))==17*v?0:255,u[n+T]=I<<24|w<<16|w<<8|w;else if(8==h)for(T=0;T<i;T++)I=(w=e[t+T])==v?0:255,u[n+T]=I<<24|w<<16|w<<8|w;else if(16==h)for(T=0;T<i;T++)w=e[t+(T<<1)],I=p(e,t+(T<<1))==v?0:255,u[n+T]=I<<24|w<<16|w<<8|w}return d}function i(t,e,i,a){const l=r(t),d=Math.ceil(i*l/8),u=new Uint8Array((d+1+t.interlace)*a);return e=t.tabs.CgBI?o(e,u):n(e,u),0==t.interlace?e=s(e,t,0,i,a):1==t.interlace&&(e=function(t,e){const i=e.width,n=e.height,o=r(e),a=o>>3,l=Math.ceil(i*o/8),d=new Uint8Array(n*l);let u=0;const c=[0,0,4,0,2,0,1],h=[0,4,0,2,0,1,0],p=[8,8,8,4,4,2,2],f=[8,8,4,4,2,2,1];let g=0;for(;g<7;){const r=p[g],y=f[g];let m=0,b=0,S=c[g];for(;S<n;)S+=r,b++;let E=h[g];for(;E<i;)E+=y,m++;const C=Math.ceil(m*o/8);s(t,e,u,m,b);let w=0,A=c[g];for(;A<n;){let e=h[g],n=u+w*C<<3;for(;e<i;){var v;if(1==o&&(v=(v=t[n>>3])>>7-(7&n)&1,d[A*l+(e>>3)]|=v<<7-((7&e)<<0)),2==o&&(v=(v=t[n>>3])>>6-(7&n)&3,d[A*l+(e>>2)]|=v<<6-((3&e)<<1)),4==o&&(v=(v=t[n>>3])>>4-(7&n)&15,d[A*l+(e>>1)]|=v<<4-((1&e)<<2)),o>=8){const i=A*l+e*a;for(let e=0;e<a;e++)d[i+e]=t[(n>>3)+e]}n+=o,e+=y}w++,A+=r}m*b!=0&&(u+=b*(1+C)),g+=1}return d}(e,t)),e}function n(t,e){return o(new Uint8Array(t.buffer,2,t.length-6),e)}var o=function(){const t={H:{}};return t.H.N=function(e,i){const n=Uint8Array;let o,r,s=0,a=0,l=0,d=0,u=0,c=0,h=0,p=0,f=0;if(3==e[0]&&0==e[1])return i||new n(0);const g=t.H,v=g.b,y=g.e,m=g.R,b=g.n,S=g.A,E=g.Z,C=g.m,w=null==i;for(w&&(i=new n(e.length>>>2<<5));0==s;)if(s=v(e,f,1),a=v(e,f+1,2),f+=3,0!=a){if(w&&(i=t.H.W(i,p+(1<<17))),1==a&&(o=C.J,r=C.h,c=511,h=31),2==a){l=y(e,f,5)+257,d=y(e,f+5,5)+1,u=y(e,f+10,4)+4,f+=14;let t=1;for(var A=0;A<38;A+=2)C.Q[A]=0,C.Q[A+1]=0;for(A=0;A<u;A++){const i=y(e,f+3*A,3);C.Q[1+(C.X[A]<<1)]=i,i>t&&(t=i)}f+=3*u,b(C.Q,t),S(C.Q,t,C.u),o=C.w,r=C.d,f=m(C.u,(1<<t)-1,l+d,e,f,C.v);const i=g.V(C.v,0,l,C.C);c=(1<<i)-1;const n=g.V(C.v,l,d,C.D);h=(1<<n)-1,b(C.C,i),S(C.C,i,o),b(C.D,n),S(C.D,n,r)}for(;;){const t=o[E(e,f)&c];f+=15&t;const n=t>>>4;if(n>>>8==0)i[p++]=n;else{if(256==n)break;{let t=p+n-254;if(n>264){const i=C.q[n-257];t=p+(i>>>3)+y(e,f,7&i),f+=7&i}const o=r[E(e,f)&h];f+=15&o;const s=o>>>4,a=C.c[s],l=(a>>>4)+v(e,f,15&a);for(f+=15&a;p<t;)i[p]=i[p++-l],i[p]=i[p++-l],i[p]=i[p++-l],i[p]=i[p++-l];p=t}}}}else{0!=(7&f)&&(f+=8-(7&f));const o=4+(f>>>3),r=e[o-4]|e[o-3]<<8;w&&(i=t.H.W(i,p+r)),i.set(new n(e.buffer,e.byteOffset+o,r),p),f=o+r<<3,p+=r}return i.length==p?i:i.slice(0,p)},t.H.W=function(t,e){const i=t.length;if(e<=i)return t;const n=new Uint8Array(i<<1);return n.set(t,0),n},t.H.R=function(e,i,n,o,r,s){const a=t.H.e,l=t.H.Z;let d=0;for(;d<n;){const t=e[l(o,r)&i];r+=15&t;const n=t>>>4;if(n<=15)s[d]=n,d++;else{let t=0,e=0;16==n?(e=3+a(o,r,2),r+=2,t=s[d-1]):17==n?(e=3+a(o,r,3),r+=3):18==n&&(e=11+a(o,r,7),r+=7);const i=d+e;for(;d<i;)s[d]=t,d++}}return r},t.H.V=function(t,e,i,n){let o=0,r=0;const s=n.length>>>1;for(;r<i;){const i=t[r+e];n[r<<1]=0,n[1+(r<<1)]=i,i>o&&(o=i),r++}for(;r<s;)n[r<<1]=0,n[1+(r<<1)]=0,r++;return o},t.H.n=function(e,i){const n=t.H.m,o=e.length;let r,s,a,l;const d=n.j;for(var u=0;u<=i;u++)d[u]=0;for(u=1;u<o;u+=2)d[e[u]]++;const c=n.K;for(r=0,d[0]=0,s=1;s<=i;s++)r=r+d[s-1]<<1,c[s]=r;for(a=0;a<o;a+=2)0!=(l=e[a+1])&&(e[a]=c[l],c[l]++)},t.H.A=function(e,i,n){const o=e.length,r=t.H.m.r;for(let t=0;t<o;t+=2)if(0!=e[t+1]){const o=t>>1,s=e[t+1],a=o<<4|s,l=i-s;let d=e[t]<<l;const u=d+(1<<l);for(;d!=u;)n[r[d]>>>15-i]=a,d++}},t.H.l=function(e,i){const n=t.H.m.r,o=15-i;for(let t=0;t<e.length;t+=2){const r=e[t]<<i-e[t+1];e[t]=n[r]>>>o}},t.H.M=function(t,e,i){i<<=7&e;const n=e>>>3;t[n]|=i,t[n+1]|=i>>>8},t.H.I=function(t,e,i){i<<=7&e;const n=e>>>3;t[n]|=i,t[n+1]|=i>>>8,t[n+2]|=i>>>16},t.H.e=function(t,e,i){return(t[e>>>3]|t[1+(e>>>3)]<<8)>>>(7&e)&(1<<i)-1},t.H.b=function(t,e,i){return(t[e>>>3]|t[1+(e>>>3)]<<8|t[2+(e>>>3)]<<16)>>>(7&e)&(1<<i)-1},t.H.Z=function(t,e){return(t[e>>>3]|t[1+(e>>>3)]<<8|t[2+(e>>>3)]<<16)>>>(7&e)},t.H.i=function(t,e){return(t[e>>>3]|t[1+(e>>>3)]<<8|t[2+(e>>>3)]<<16|t[3+(e>>>3)]<<24)>>>(7&e)},t.H.m=function(){const t=Uint16Array,e=Uint32Array;return{K:new t(16),j:new t(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new t(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new e(32),J:new t(512),_:[],h:new t(32),$:[],w:new t(32768),C:[],v:[],d:new t(32768),D:[],u:new t(512),Q:[],r:new t(32768),s:new e(286),Y:new e(30),a:new e(19),t:new e(15e3),k:new t(65536),g:new t(32768)}}(),function(){const e=t.H.m;for(var i=0;i<32768;i++){let t=i;t=(4278255360&(t=(4042322160&(t=(3435973836&(t=(2863311530&t)>>>1|(1431655765&t)<<1))>>>2|(858993459&t)<<2))>>>4|(252645135&t)<<4))>>>8|(16711935&t)<<8,e.r[i]=(t>>>16|t<<16)>>>17}function n(t,e,i){for(;0!=e--;)t.push(0,i)}for(i=0;i<32;i++)e.q[i]=e.S[i]<<3|e.T[i],e.c[i]=e.p[i]<<4|e.z[i];n(e._,144,8),n(e._,112,9),n(e._,24,7),n(e._,8,8),t.H.n(e._,9),t.H.A(e._,9,e.J),t.H.l(e._,9),n(e.$,32,5),t.H.n(e.$,5),t.H.A(e.$,5,e.h),t.H.l(e.$,5),n(e.Q,19,0),n(e.C,286,0),n(e.D,30,0),n(e.v,320,0)}(),t.H.N}();function r(t){return[1,null,3,1,2,null,4][t.ctype]*t.depth}function s(t,e,i,n,o){let s=r(e);const l=Math.ceil(n*s/8);let d,u;s=Math.ceil(s/8);let c=t[i],h=0;if(c>1&&(t[i]=[0,0,1][c-2]),3==c)for(h=s;h<l;h++)t[h+1]=t[h+1]+(t[h+1-s]>>>1)&255;for(let e=0;e<o;e++)if(h=0,0==(c=t[(u=(d=i+e*l)+e+1)-1]))for(;h<l;h++)t[d+h]=t[u+h];else if(1==c){for(;h<s;h++)t[d+h]=t[u+h];for(;h<l;h++)t[d+h]=t[u+h]+t[d+h-s]}else if(2==c)for(;h<l;h++)t[d+h]=t[u+h]+t[d+h-l];else if(3==c){for(;h<s;h++)t[d+h]=t[u+h]+(t[d+h-l]>>>1);for(;h<l;h++)t[d+h]=t[u+h]+(t[d+h-l]+t[d+h-s]>>>1)}else{for(;h<s;h++)t[d+h]=t[u+h]+a(0,t[d+h-l],0);for(;h<l;h++)t[d+h]=t[u+h]+a(t[d+h-s],t[d+h-l],t[d+h-s-l])}return t}function a(t,e,i){const n=t+e-i,o=n-t,r=n-e,s=n-i;return o*o<=r*r&&o*o<=s*s?t:r*r<=s*s?e:i}function l(e,i,n){n.width=t.readUint(e,i),i+=4,n.height=t.readUint(e,i),i+=4,n.depth=e[i],i++,n.ctype=e[i],i++,n.compress=e[i],i++,n.filter=e[i],i++,n.interlace=e[i],i++}function d(t,e,i,n,o,r,s,a,l){const d=Math.min(e,o),u=Math.min(i,r);let c=0,h=0;for(let i=0;i<u;i++)for(let r=0;r<d;r++)if(s>=0&&a>=0?(c=i*e+r<<2,h=(a+i)*o+s+r<<2):(c=(-a+i)*e-s+r<<2,h=i*o+r<<2),0==l)n[h]=t[c],n[h+1]=t[c+1],n[h+2]=t[c+2],n[h+3]=t[c+3];else if(1==l){var p=t[c+3]*(1/255),f=t[c]*p,g=t[c+1]*p,v=t[c+2]*p,y=n[h+3]*(1/255),m=n[h]*y,b=n[h+1]*y,S=n[h+2]*y;const e=1-p,i=p+y*e,o=0==i?0:1/i;n[h+3]=255*i,n[h+0]=(f+m*e)*o,n[h+1]=(g+b*e)*o,n[h+2]=(v+S*e)*o}else if(2==l)p=t[c+3],f=t[c],g=t[c+1],v=t[c+2],y=n[h+3],m=n[h],b=n[h+1],S=n[h+2],p==y&&f==m&&g==b&&v==S?(n[h]=0,n[h+1]=0,n[h+2]=0,n[h+3]=0):(n[h]=f,n[h+1]=g,n[h+2]=v,n[h+3]=p);else if(3==l){if(p=t[c+3],f=t[c],g=t[c+1],v=t[c+2],y=n[h+3],m=n[h],b=n[h+1],S=n[h+2],p==y&&f==m&&g==b&&v==S)continue;if(p<220&&y>20)return!1}return!0}return{decode:function(e){const r=new Uint8Array(e);let s=8;const a=t,d=a.readUshort,u=a.readUint,c={tabs:{},frames:[]},h=new Uint8Array(r.length);let p,f=0,g=0;const v=[137,80,78,71,13,10,26,10];for(var y=0;y<8;y++)if(r[y]!=v[y])throw"The input is not a PNG file!";for(;s<r.length;){const t=a.readUint(r,s);s+=4;const e=a.readASCII(r,s,4);if(s+=4,"IHDR"==e)l(r,s,c);else if("iCCP"==e){for(var m=s;0!=r[m];)m++;a.readASCII(r,s,m-s),r[m+1];const i=r.slice(m+2,s+t);let l=null;try{l=n(i)}catch(t){l=o(i)}c.tabs[e]=l}else if("CgBI"==e)c.tabs[e]=r.slice(s,s+4);else if("IDAT"==e){for(y=0;y<t;y++)h[f+y]=r[s+y];f+=t}else if("acTL"==e)c.tabs[e]={num_frames:u(r,s),num_plays:u(r,s+4)},p=new Uint8Array(r.length);else if("fcTL"==e){0!=g&&((A=c.frames[c.frames.length-1]).data=i(c,p.slice(0,g),A.rect.width,A.rect.height),g=0);const t={x:u(r,s+12),y:u(r,s+16),width:u(r,s+4),height:u(r,s+8)};let e=d(r,s+22);e=d(r,s+20)/(0==e?100:e);const n={rect:t,delay:Math.round(1e3*e),dispose:r[s+24],blend:r[s+25]};c.frames.push(n)}else if("fdAT"==e){for(y=0;y<t-4;y++)p[g+y]=r[s+y+4];g+=t-4}else if("pHYs"==e)c.tabs[e]=[a.readUint(r,s),a.readUint(r,s+4),r[s+8]];else if("cHRM"==e)for(c.tabs[e]=[],y=0;y<8;y++)c.tabs[e].push(a.readUint(r,s+4*y));else if("tEXt"==e||"zTXt"==e){null==c.tabs[e]&&(c.tabs[e]={});var b=a.nextZero(r,s),S=a.readASCII(r,s,b-s),E=s+t-b-1;if("tEXt"==e)w=a.readASCII(r,b+1,E);else{var C=n(r.slice(b+2,b+2+E));w=a.readUTF8(C,0,C.length)}c.tabs[e][S]=w}else if("iTXt"==e){null==c.tabs[e]&&(c.tabs[e]={}),b=0,m=s,b=a.nextZero(r,m),S=a.readASCII(r,m,b-m);const i=r[m=b+1];var w;r[m+1],m+=2,b=a.nextZero(r,m),a.readASCII(r,m,b-m),m=b+1,b=a.nextZero(r,m),a.readUTF8(r,m,b-m),E=t-((m=b+1)-s),0==i?w=a.readUTF8(r,m,E):(C=n(r.slice(m,m+E)),w=a.readUTF8(C,0,C.length)),c.tabs[e][S]=w}else if("PLTE"==e)c.tabs[e]=a.readBytes(r,s,t);else if("hIST"==e){const t=c.tabs.PLTE.length/3;for(c.tabs[e]=[],y=0;y<t;y++)c.tabs[e].push(d(r,s+2*y))}else if("tRNS"==e)3==c.ctype?c.tabs[e]=a.readBytes(r,s,t):0==c.ctype?c.tabs[e]=d(r,s):2==c.ctype&&(c.tabs[e]=[d(r,s),d(r,s+2),d(r,s+4)]);else if("gAMA"==e)c.tabs[e]=a.readUint(r,s)/1e5;else if("sRGB"==e)c.tabs[e]=r[s];else if("bKGD"==e)0==c.ctype||4==c.ctype?c.tabs[e]=[d(r,s)]:2==c.ctype||6==c.ctype?c.tabs[e]=[d(r,s),d(r,s+2),d(r,s+4)]:3==c.ctype&&(c.tabs[e]=r[s]);else if("IEND"==e)break;s+=t,a.readUint(r,s),s+=4}var A;return 0!=g&&((A=c.frames[c.frames.length-1]).data=i(c,p.slice(0,g),A.rect.width,A.rect.height)),c.data=i(c,h,c.width,c.height),delete c.compress,delete c.interlace,delete c.filter,c},toRGBA8:function(t){const i=t.width,n=t.height;if(null==t.tabs.acTL)return[e(t.data,i,n,t).buffer];const o=[];null==t.frames[0].data&&(t.frames[0].data=t.data);const r=i*n*4,s=new Uint8Array(r),a=new Uint8Array(r),l=new Uint8Array(r);for(let c=0;c<t.frames.length;c++){const h=t.frames[c],p=h.rect.x,f=h.rect.y,g=h.rect.width,v=h.rect.height,y=e(h.data,g,v,t);if(0!=c)for(var u=0;u<r;u++)l[u]=s[u];if(0==h.blend?d(y,g,v,s,i,n,p,f,0):1==h.blend&&d(y,g,v,s,i,n,p,f,1),o.push(s.buffer.slice(0)),0==h.dispose);else if(1==h.dispose)d(a,g,v,s,i,n,p,f,0);else if(2==h.dispose)for(u=0;u<r;u++)s[u]=l[u]}return o},_paeth:a,_copyTile:d,_bin:t}}();!function(){const{_copyTile:t}=l,{_bin:e}=l,i=l._paeth;var n={table:function(){const t=new Uint32Array(256);for(let e=0;e<256;e++){let i=e;for(let t=0;t<8;t++)1&i?i=3988292384^i>>>1:i>>>=1;t[e]=i}return t}(),update(t,e,i,o){for(let r=0;r<o;r++)t=n.table[255&(t^e[i+r])]^t>>>8;return t},crc:(t,e,i)=>4294967295^n.update(4294967295,t,e,i)};function o(t,e,i,n){e[i]+=t[0]*n>>4,e[i+1]+=t[1]*n>>4,e[i+2]+=t[2]*n>>4,e[i+3]+=t[3]*n>>4}function r(t){return Math.max(0,Math.min(255,t))}function s(t,e){const i=t[0]-e[0],n=t[1]-e[1],o=t[2]-e[2],r=t[3]-e[3];return i*i+n*n+o*o+r*r}function d(t,e,i,n,a,l,d){null==d&&(d=1);const u=n.length,c=[];for(var h=0;h<u;h++){const t=n[h];c.push([t>>>0&255,t>>>8&255,t>>>16&255,t>>>24&255])}for(h=0;h<u;h++){let t=4294967295;for(var p=0,f=0;f<u;f++){var g=s(c[h],c[f]);f!=h&&g<t&&(t=g,p=f)}}const v=new Uint32Array(a.buffer),y=new Int16Array(e*i*4),m=[0,8,2,10,12,4,14,6,3,11,1,9,15,7,13,5];for(h=0;h<m.length;h++)m[h]=255*((m[h]+.5)/16-.5);for(let a=0;a<i;a++)for(let S=0;S<e;S++){var b;h=4*(a*e+S),2!=d?b=[r(t[h]+y[h]),r(t[h+1]+y[h+1]),r(t[h+2]+y[h+2]),r(t[h+3]+y[h+3])]:(g=m[4*(3&a)+(3&S)],b=[r(t[h]+g),r(t[h+1]+g),r(t[h+2]+g),r(t[h+3]+g)]),p=0;let E=16777215;for(f=0;f<u;f++){const t=s(b,c[f]);t<E&&(E=t,p=f)}const C=c[p],w=[b[0]-C[0],b[1]-C[1],b[2]-C[2],b[3]-C[3]];1==d&&(S!=e-1&&o(w,y,h+4,7),a!=i-1&&(0!=S&&o(w,y,h+4*e-4,3),o(w,y,h+4*e,5),S!=e-1&&o(w,y,h+4*e+4,1))),l[h>>2]=p,v[h>>2]=n[p]}}function u(t,i,o,r,s){null==s&&(s={});const{crc:a}=n,l=e.writeUint,d=e.writeUshort,u=e.writeASCII;let c=8;const h=t.frames.length>1;let p,f=!1,g=33+(h?20:0);if(null!=s.sRGB&&(g+=13),null!=s.pHYs&&(g+=21),null!=s.iCCP&&(g+=21+(p=pako.deflate(s.iCCP)).length+4),3==t.ctype){for(var v=t.plte.length,y=0;y<v;y++)t.plte[y]>>>24!=255&&(f=!0);g+=8+3*v+4+(f?8+1*v+4:0)}for(var m=0;m<t.frames.length;m++)h&&(g+=38),g+=(C=t.frames[m]).cimg.length+12,0!=m&&(g+=4);g+=12;const b=new Uint8Array(g),S=[137,80,78,71,13,10,26,10];for(y=0;y<8;y++)b[y]=S[y];if(l(b,c,13),u(b,c+=4,"IHDR"),l(b,c+=4,i),l(b,c+=4,o),b[c+=4]=t.depth,b[++c]=t.ctype,b[++c]=0,b[++c]=0,b[++c]=0,l(b,++c,a(b,c-17,17)),c+=4,null!=s.sRGB&&(l(b,c,1),u(b,c+=4,"sRGB"),b[c+=4]=s.sRGB,l(b,++c,a(b,c-5,5)),c+=4),null!=s.iCCP){const t=13+p.length;l(b,c,t),u(b,c+=4,"iCCP"),u(b,c+=4,"ICC profile"),c+=11,c+=2,b.set(p,c),l(b,c+=p.length,a(b,c-(t+4),t+4)),c+=4}if(null!=s.pHYs&&(l(b,c,9),u(b,c+=4,"pHYs"),l(b,c+=4,s.pHYs[0]),l(b,c+=4,s.pHYs[1]),b[c+=4]=s.pHYs[2],l(b,++c,a(b,c-13,13)),c+=4),h&&(l(b,c,8),u(b,c+=4,"acTL"),l(b,c+=4,t.frames.length),l(b,c+=4,null!=s.loop?s.loop:0),l(b,c+=4,a(b,c-12,12)),c+=4),3==t.ctype){for(l(b,c,3*(v=t.plte.length)),u(b,c+=4,"PLTE"),c+=4,y=0;y<v;y++){const e=3*y,i=t.plte[y],n=255&i,o=i>>>8&255,r=i>>>16&255;b[c+e+0]=n,b[c+e+1]=o,b[c+e+2]=r}if(l(b,c+=3*v,a(b,c-3*v-4,3*v+4)),c+=4,f){for(l(b,c,v),u(b,c+=4,"tRNS"),c+=4,y=0;y<v;y++)b[c+y]=t.plte[y]>>>24&255;l(b,c+=v,a(b,c-v-4,v+4)),c+=4}}let E=0;for(m=0;m<t.frames.length;m++){var C=t.frames[m];h&&(l(b,c,26),u(b,c+=4,"fcTL"),l(b,c+=4,E++),l(b,c+=4,C.rect.width),l(b,c+=4,C.rect.height),l(b,c+=4,C.rect.x),l(b,c+=4,C.rect.y),d(b,c+=4,r[m]),d(b,c+=2,1e3),b[c+=2]=C.dispose,b[++c]=C.blend,l(b,++c,a(b,c-30,30)),c+=4);const e=C.cimg;l(b,c,(v=e.length)+(0==m?0:4));const i=c+=4;u(b,c,0==m?"IDAT":"fdAT"),c+=4,0!=m&&(l(b,c,E++),c+=4),b.set(e,c),l(b,c+=v,a(b,i,c-i)),c+=4}return l(b,c,0),u(b,c+=4,"IEND"),l(b,c+=4,a(b,c-4,4)),c+=4,b.buffer}function c(t,e,i){for(let n=0;n<t.frames.length;n++){const o=t.frames[n];o.rect.width;const r=o.rect.height,s=new Uint8Array(r*o.bpl+r);o.cimg=g(o.img,r,o.bpp,o.bpl,s,e,i)}}function h(e,i,n,o,r){const s=r[0],a=r[1],l=r[2],u=r[3],c=r[4],h=r[5];let g=6,v=8,m=255;for(var b=0;b<e.length;b++){const t=new Uint8Array(e[b]);for(var S=t.length,E=0;E<S;E+=4)m&=t[E+3]}const C=255!=m,w=function(e,i,n,o,r,s){const a=[];for(var l=0;l<e.length;l++){const c=new Uint8Array(e[l]),p=new Uint32Array(c.buffer);var d;let g=0,v=0,y=i,m=n,b=o?1:0;if(0!=l){const S=s||o||1==l||0!=a[l-2].dispose?1:2;let E=0,C=1e9;for(let t=0;t<S;t++){var u=new Uint8Array(e[l-1-t]);const o=new Uint32Array(e[l-1-t]);let s=i,a=n,d=-1,c=-1;for(let t=0;t<n;t++)for(let e=0;e<i;e++)p[h=t*i+e]!=o[h]&&(e<s&&(s=e),e>d&&(d=e),t<a&&(a=t),t>c&&(c=t));-1==d&&(s=a=d=c=0),r&&(1==(1&s)&&s--,1==(1&a)&&a--);const f=(d-s+1)*(c-a+1);f<C&&(C=f,E=t,g=s,v=a,y=d-s+1,m=c-a+1)}u=new Uint8Array(e[l-1-E]),1==E&&(a[l-1].dispose=2),d=new Uint8Array(y*m*4),t(u,i,n,d,y,m,-g,-v,0),1==(b=t(c,i,n,d,y,m,-g,-v,3)?1:0)?f(c,i,n,d,{x:g,y:v,width:y,height:m}):t(c,i,n,d,y,m,-g,-v,0)}else d=c.slice(0);a.push({rect:{x:g,y:v,width:y,height:m},img:d,blend:b,dispose:0})}if(o)for(l=0;l<a.length;l++){if(1==(g=a[l]).blend)continue;const t=g.rect,o=a[l-1].rect,s=Math.min(t.x,o.x),d=Math.min(t.y,o.y),u={x:s,y:d,width:Math.max(t.x+t.width,o.x+o.width)-s,height:Math.max(t.y+t.height,o.y+o.height)-d};a[l-1].dispose=1,l-1!=0&&p(e,i,n,a,l-1,u,r),p(e,i,n,a,l,u,r)}let c=0;if(1!=e.length)for(var h=0;h<a.length;h++){var g;c+=(g=a[h]).rect.width*g.rect.height}return a}(e,i,n,s,a,l),A={},T=[],I=[];if(0!=o){const t=[];for(E=0;E<w.length;E++)t.push(w[E].img.buffer);const e=y(function(t){let e=0;for(var i=0;i<t.length;i++)e+=t[i].byteLength;const n=new Uint8Array(e);let o=0;for(i=0;i<t.length;i++){const e=new Uint8Array(t[i]),r=e.length;for(let t=0;t<r;t+=4){let i=e[t],r=e[t+1],s=e[t+2];const a=e[t+3];0==a&&(i=r=s=0),n[o+t]=i,n[o+t+1]=r,n[o+t+2]=s,n[o+t+3]=a}o+=r}return n.buffer}(t),o);for(E=0;E<e.plte.length;E++)T.push(e.plte[E].est.rgba);let i=0;for(E=0;E<w.length;E++){const t=(_=w[E]).img.length;var M=new Uint8Array(e.inds.buffer,i>>2,t>>2);I.push(M);const n=new Uint8Array(e.abuf,i,t);h&&d(_.img,_.rect.width,_.rect.height,T,n,M),_.img.set(n),i+=t}}else for(b=0;b<w.length;b++){var _=w[b];const t=new Uint32Array(_.img.buffer);var x=_.rect.width;for(S=t.length,M=new Uint8Array(S),I.push(M),E=0;E<S;E++){const e=t[E];if(0!=E&&e==t[E-1])M[E]=M[E-1];else if(E>x&&e==t[E-x])M[E]=M[E-x];else{let t=A[e];if(null==t&&(A[e]=t=T.length,T.push(e),T.length>=300))break;M[E]=t}}}const P=T.length;for(P<=256&&0==c&&(v=P<=2?1:P<=4?2:P<=16?4:8,v=Math.max(v,u)),b=0;b<w.length;b++){(_=w[b]).rect.x,_.rect.y,x=_.rect.width;const t=_.rect.height;let e=_.img;new Uint32Array(e.buffer);let i=4*x,n=4;if(P<=256&&0==c){i=Math.ceil(v*x/8);var O=new Uint8Array(i*t);const o=I[b];for(let e=0;e<t;e++){E=e*i;const t=e*x;if(8==v)for(var L=0;L<x;L++)O[E+L]=o[t+L];else if(4==v)for(L=0;L<x;L++)O[E+(L>>1)]|=o[t+L]<<4-4*(1&L);else if(2==v)for(L=0;L<x;L++)O[E+(L>>2)]|=o[t+L]<<6-2*(3&L);else if(1==v)for(L=0;L<x;L++)O[E+(L>>3)]|=o[t+L]<<7-1*(7&L)}e=O,g=3,n=1}else if(0==C&&1==w.length){O=new Uint8Array(x*t*3);const o=x*t;for(E=0;E<o;E++){const t=3*E,i=4*E;O[t]=e[i],O[t+1]=e[i+1],O[t+2]=e[i+2]}e=O,g=2,n=3,i=3*x}_.img=e,_.bpl=i,_.bpp=n}return{ctype:g,depth:v,plte:T,frames:w}}function p(e,i,n,o,r,s,a){const l=Uint8Array,d=Uint32Array,u=new l(e[r-1]),c=new d(e[r-1]),h=r+1<e.length?new l(e[r+1]):null,p=new l(e[r]),g=new d(p.buffer);let v=i,y=n,m=-1,b=-1;for(let t=0;t<s.height;t++)for(let e=0;e<s.width;e++){const n=s.x+e,a=s.y+t,l=a*i+n,d=g[l];0==d||0==o[r-1].dispose&&c[l]==d&&(null==h||0!=h[4*l+3])||(n<v&&(v=n),n>m&&(m=n),a<y&&(y=a),a>b&&(b=a))}-1==m&&(v=y=m=b=0),a&&(1==(1&v)&&v--,1==(1&y)&&y--),s={x:v,y:y,width:m-v+1,height:b-y+1};const S=o[r];S.rect=s,S.blend=1,S.img=new Uint8Array(s.width*s.height*4),0==o[r-1].dispose?(t(u,i,n,S.img,s.width,s.height,-s.x,-s.y,0),f(p,i,n,S.img,s)):t(p,i,n,S.img,s.width,s.height,-s.x,-s.y,0)}function f(e,i,n,o,r){t(e,i,n,o,r.width,r.height,-r.x,-r.y,2)}function g(t,e,i,n,o,r,s){const l=[];let d,u=[0,1,2,3,4];-1!=r?u=[r]:(e*n>5e5||1==i)&&(u=[0]),s&&(d={level:0});const c=a;for(var h=0;h<u.length;h++){for(let r=0;r<e;r++)v(o,t,r,n,i,u[h]);l.push(c.deflate(o,d))}let p,f=1e9;for(h=0;h<l.length;h++)l[h].length<f&&(p=h,f=l[h].length);return l[p]}function v(t,e,n,o,r,s){const a=n*o;let l=a+n;if(t[l]=s,l++,0==s)if(o<500)for(var d=0;d<o;d++)t[l+d]=e[a+d];else t.set(new Uint8Array(e.buffer,a,o),l);else if(1==s){for(d=0;d<r;d++)t[l+d]=e[a+d];for(d=r;d<o;d++)t[l+d]=e[a+d]-e[a+d-r]+256&255}else if(0==n){for(d=0;d<r;d++)t[l+d]=e[a+d];if(2==s)for(d=r;d<o;d++)t[l+d]=e[a+d];if(3==s)for(d=r;d<o;d++)t[l+d]=e[a+d]-(e[a+d-r]>>1)+256&255;if(4==s)for(d=r;d<o;d++)t[l+d]=e[a+d]-i(e[a+d-r],0,0)+256&255}else{if(2==s)for(d=0;d<o;d++)t[l+d]=e[a+d]+256-e[a+d-o]&255;if(3==s){for(d=0;d<r;d++)t[l+d]=e[a+d]+256-(e[a+d-o]>>1)&255;for(d=r;d<o;d++)t[l+d]=e[a+d]+256-(e[a+d-o]+e[a+d-r]>>1)&255}if(4==s){for(d=0;d<r;d++)t[l+d]=e[a+d]+256-i(0,e[a+d-o],0)&255;for(d=r;d<o;d++)t[l+d]=e[a+d]+256-i(e[a+d-r],e[a+d-o],e[a+d-r-o])&255}}}function y(t,e){const i=new Uint8Array(t),n=i.slice(0),o=new Uint32Array(n.buffer),r=m(n,e),s=r[0],a=r[1],l=i.length,d=new Uint8Array(l>>2);let u;if(i.length<2e7)for(var c=0;c<l;c+=4)u=b(s,h=i[c]*(1/255),p=i[c+1]*(1/255),f=i[c+2]*(1/255),g=i[c+3]*(1/255)),d[c>>2]=u.ind,o[c>>2]=u.est.rgba;else for(c=0;c<l;c+=4){var h=i[c]*(1/255),p=i[c+1]*(1/255),f=i[c+2]*(1/255),g=i[c+3]*(1/255);for(u=s;u.left;)u=S(u.est,h,p,f,g)<=0?u.left:u.right;d[c>>2]=u.ind,o[c>>2]=u.est.rgba}return{abuf:n.buffer,inds:d,plte:a}}function m(t,e,i){null==i&&(i=1e-4);const n=new Uint32Array(t.buffer),o={i0:0,i1:t.length,bst:null,est:null,tdst:0,left:null,right:null};o.bst=w(t,o.i0,o.i1),o.est=A(o.bst);const r=[o];for(;r.length<e;){let e=0,o=0;for(var s=0;s<r.length;s++)r[s].est.L>e&&(e=r[s].est.L,o=s);if(e<i)break;const a=r[o],l=E(t,n,a.i0,a.i1,a.est.e,a.est.eMq255);if(a.i0>=l||a.i1<=l){a.est.L=0;continue}const d={i0:a.i0,i1:l,bst:null,est:null,tdst:0,left:null,right:null};d.bst=w(t,d.i0,d.i1),d.est=A(d.bst);const u={i0:l,i1:a.i1,bst:null,est:null,tdst:0,left:null,right:null};for(u.bst={R:[],m:[],N:a.bst.N-d.bst.N},s=0;s<16;s++)u.bst.R[s]=a.bst.R[s]-d.bst.R[s];for(s=0;s<4;s++)u.bst.m[s]=a.bst.m[s]-d.bst.m[s];u.est=A(u.bst),a.left=d,a.right=u,r[o]=d,r.push(u)}for(r.sort((t,e)=>e.bst.N-t.bst.N),s=0;s<r.length;s++)r[s].ind=s;return[o,r]}function b(t,e,i,n,o){if(null==t.left)return t.tdst=function(t,e,i,n,o){const r=e-t[0],s=i-t[1],a=n-t[2],l=o-t[3];return r*r+s*s+a*a+l*l}(t.est.q,e,i,n,o),t;const r=S(t.est,e,i,n,o);let s=t.left,a=t.right;r>0&&(s=t.right,a=t.left);const l=b(s,e,i,n,o);if(l.tdst<=r*r)return l;const d=b(a,e,i,n,o);return d.tdst<l.tdst?d:l}function S(t,e,i,n,o){const{e:r}=t;return r[0]*e+r[1]*i+r[2]*n+r[3]*o-t.eMq}function E(t,e,i,n,o,r){for(n-=4;i<n;){for(;C(t,i,o)<=r;)i+=4;for(;C(t,n,o)>r;)n-=4;if(i>=n)break;const s=e[i>>2];e[i>>2]=e[n>>2],e[n>>2]=s,i+=4,n-=4}for(;C(t,i,o)>r;)i-=4;return i+4}function C(t,e,i){return t[e]*i[0]+t[e+1]*i[1]+t[e+2]*i[2]+t[e+3]*i[3]}function w(t,e,i){const n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],o=[0,0,0,0],r=i-e>>2;for(let r=e;r<i;r+=4){const e=t[r]*(1/255),i=t[r+1]*(1/255),s=t[r+2]*(1/255),a=t[r+3]*(1/255);o[0]+=e,o[1]+=i,o[2]+=s,o[3]+=a,n[0]+=e*e,n[1]+=e*i,n[2]+=e*s,n[3]+=e*a,n[5]+=i*i,n[6]+=i*s,n[7]+=i*a,n[10]+=s*s,n[11]+=s*a,n[15]+=a*a}return n[4]=n[1],n[8]=n[2],n[9]=n[6],n[12]=n[3],n[13]=n[7],n[14]=n[11],{R:n,m:o,N:r}}function A(t){const{R:e}=t,{m:i}=t,{N:n}=t,o=i[0],r=i[1],s=i[2],a=i[3],l=0==n?0:1/n,d=[e[0]-o*o*l,e[1]-o*r*l,e[2]-o*s*l,e[3]-o*a*l,e[4]-r*o*l,e[5]-r*r*l,e[6]-r*s*l,e[7]-r*a*l,e[8]-s*o*l,e[9]-s*r*l,e[10]-s*s*l,e[11]-s*a*l,e[12]-a*o*l,e[13]-a*r*l,e[14]-a*s*l,e[15]-a*a*l],u=d,c=T;let h=[Math.random(),Math.random(),Math.random(),Math.random()],p=0,f=0;if(0!=n)for(let t=0;t<16&&(h=c.multVec(u,h),f=Math.sqrt(c.dot(h,h)),h=c.sml(1/f,h),!(0!=t&&Math.abs(f-p)<1e-9));t++)p=f;const g=[o*l,r*l,s*l,a*l];return{Cov:d,q:g,e:h,L:p,eMq255:c.dot(c.sml(255,g),h),eMq:c.dot(h,g),rgba:(Math.round(255*g[3])<<24|Math.round(255*g[2])<<16|Math.round(255*g[1])<<8|Math.round(255*g[0])<<0)>>>0}}var T={multVec:(t,e)=>[t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3],t[4]*e[0]+t[5]*e[1]+t[6]*e[2]+t[7]*e[3],t[8]*e[0]+t[9]*e[1]+t[10]*e[2]+t[11]*e[3],t[12]*e[0]+t[13]*e[1]+t[14]*e[2]+t[15]*e[3]],dot:(t,e)=>t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3],sml:(t,e)=>[t*e[0],t*e[1],t*e[2],t*e[3]]};l.encode=function(t,e,i,n,o,r,s){null==n&&(n=0),null==s&&(s=!1);const a=h(t,e,i,n,[!1,!1,!1,0,s,!1]);return c(a,-1),u(a,e,i,o,r)},l.encodeLL=function(t,e,i,n,o,r,s,a){const l={ctype:0+(1==n?0:2)+(0==o?0:4),depth:r,frames:[]},d=(n+o)*r,h=d*e;for(let n=0;n<t.length;n++)l.frames.push({rect:{x:0,y:0,width:e,height:i},img:new Uint8Array(t[n]),blend:0,dispose:1,bpp:Math.ceil(d/8),bpl:Math.ceil(h/8)});return c(l,0,!0),u(l,e,i,s,a)},l.encode.compress=h,l.encode.dither=d,l.quantize=y,l.quantize.getKDtree=m,l.quantize.getNearest=b}();const d={toArrayBuffer(t,e){const i=t.width,n=t.height,o=i<<2,r=t.getContext("2d").getImageData(0,0,i,n),s=new Uint32Array(r.data.buffer),a=(32*i+31)/32<<2,l=a*n,u=122+l,c=new ArrayBuffer(u),h=new DataView(c);let p,f,g,v,y=1<<20,m=0,b=0,S=0;function E(t){h.setUint16(b,t,!0),b+=2}function C(t){h.setUint32(b,t,!0),b+=4}function w(t){b+=t}E(19778),C(u),w(4),C(122),C(108),C(i),C(-n>>>0),E(1),E(32),C(3),C(l),C(2835),C(2835),w(8),C(16711680),C(65280),C(255),C(4278190080),C(1466527264),function t(){for(;m<n&&y>0;){for(v=122+m*a,p=0;p<o;)y--,f=s[S++],g=f>>>24,h.setUint32(v+p,f<<8|g),p+=4;m++}S<s.length?(y=1<<20,setTimeout(t,d._dly)):e(c)}()},toBlob(t,e){this.toArrayBuffer(t,t=>{e(new Blob([t],{type:"image/bmp"}))})},_dly:9};var u={CHROME:"CHROME",FIREFOX:"FIREFOX",DESKTOP_SAFARI:"DESKTOP_SAFARI",IE:"IE",IOS:"IOS",ETC:"ETC"},c={[u.CHROME]:16384,[u.FIREFOX]:11180,[u.DESKTOP_SAFARI]:16384,[u.IE]:8192,[u.IOS]:4096,[u.ETC]:8192};const h="undefined"!=typeof window,p="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,f=h&&window.cordova&&window.cordova.require&&window.cordova.require("cordova/modulemapper"),g=(h||p)&&(f&&f.getOriginalSymbol(window,"File")||"undefined"!=typeof File&&File),v=(h||p)&&(f&&f.getOriginalSymbol(window,"FileReader")||"undefined"!=typeof FileReader&&FileReader);function y(t,e,i=Date.now()){return new Promise(n=>{const o=t.split(","),r=o[0].match(/:(.*?);/)[1],s=globalThis.atob(o[1]);let a=s.length;const l=new Uint8Array(a);for(;a--;)l[a]=s.charCodeAt(a);const d=new Blob([l],{type:r});d.name=e,d.lastModified=i,n(d)})}function m(t){return new Promise((e,i)=>{const n=new v;n.onload=(()=>e(n.result)),n.onerror=(t=>i(t)),n.readAsDataURL(t)})}function b(t){return new Promise((e,i)=>{const n=new Image;n.onload=(()=>e(n)),n.onerror=(t=>i(t)),n.src=t})}function S(){if(void 0!==S.cachedResult)return S.cachedResult;let t=u.ETC;const{userAgent:e}=navigator;return/Chrom(e|ium)/i.test(e)?t=u.CHROME:/iP(ad|od|hone)/i.test(e)&&/WebKit/i.test(e)?t=u.IOS:/Safari/i.test(e)?t=u.DESKTOP_SAFARI:/Firefox/i.test(e)?t=u.FIREFOX:(/MSIE/i.test(e)||1==!!document.documentMode)&&(t=u.IE),S.cachedResult=t,S.cachedResult}function E(t,e){const i=S(),n=c[i];let o=t,r=e,s=o*r;const a=o>r?r/o:o/r;for(;s>n*n;){const t=(n+o)/2,e=(n+r)/2;t<e?(r=e,o=e*a):(r=t*a,o=t),s=o*r}return{width:o,height:r}}function C(t,e){let i,n;try{if(null===(n=(i=new OffscreenCanvas(t,e)).getContext("2d")))throw new Error("getContext of OffscreenCanvas returns null")}catch(t){n=(i=document.createElement("canvas")).getContext("2d")}return i.width=t,i.height=e,[i,n]}function w(t,e){const{width:i,height:n}=E(t.width,t.height),[o,r]=C(i,n);return e&&/jpe?g/.test(e)&&(r.fillStyle="white",r.fillRect(0,0,o.width,o.height)),r.drawImage(t,0,0,o.width,o.height),o}function A(){return void 0!==A.cachedResult||(A.cachedResult=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"undefined"!=typeof document&&"ontouchend"in document),A.cachedResult}function T(t,e={}){return new Promise(function(i,n){let o,r;var s=function(){try{return r=w(o,e.fileType||t.type),i([o,r])}catch(t){return n(t)}},a=function(e){try{var i=function(t){try{throw t}catch(t){return n(t)}};try{let e;return m(t).then(function(t){try{return b(e=t).then(function(t){try{return o=t,function(){try{return s()}catch(t){return n(t)}}()}catch(t){return i(t)}},i)}catch(t){return i(t)}},i)}catch(t){i(t)}}catch(t){return n(t)}};try{if(A()||[u.DESKTOP_SAFARI,u.MOBILE_SAFARI].includes(S()))throw new Error("Skip createImageBitmap on IOS and Safari");return createImageBitmap(t).then(function(t){try{return o=t,s()}catch(t){return a()}},a)}catch(t){a()}})}function I(t,e,i,n,o=1){return new Promise(function(r,s){let a;if("image/png"===e){let r,s,d;return r=t.getContext("2d"),({data:s}=r.getImageData(0,0,t.width,t.height)),d=l.encode([s.buffer],t.width,t.height,4096*o),(a=new Blob([d],{type:e})).name=i,a.lastModified=n,h.call(this)}{if("image/bmp"===e)return new Promise(e=>d.toBlob(t,e)).then(function(t){try{return(a=t).name=i,a.lastModified=n,c.call(this)}catch(t){return s(t)}}.bind(this),s);{if("function"==typeof OffscreenCanvas&&t instanceof OffscreenCanvas)return t.convertToBlob({type:e,quality:o}).then(function(t){try{return(a=t).name=i,a.lastModified=n,u.call(this)}catch(t){return s(t)}}.bind(this),s);{let r;return y(r=t.toDataURL(e,o),i,n).then(function(t){try{return a=t,u.call(this)}catch(t){return s(t)}}.bind(this),s)}function u(){return c.call(this)}}function c(){return h.call(this)}}function h(){return r(a)}})}function M(t){t.width=0,t.height=0}function _(){return new Promise(function(t,e){let i,n,o,r,s;return void 0!==_.cachedResult?t(_.cachedResult):(i="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==",y("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==","test.jpg",Date.now()).then(function(i){try{return T(n=i).then(function(i){try{return I(o=i[1],n.type,n.name,n.lastModified).then(function(i){try{return r=i,M(o),T(r).then(function(i){try{return s=i[0],_.cachedResult=1===s.width&&2===s.height,t(_.cachedResult)}catch(t){return e(t)}},e)}catch(t){return e(t)}},e)}catch(t){return e(t)}},e)}catch(t){return e(t)}},e))})}function x(t){return new Promise((e,i)=>{const n=new v;n.onload=(t=>{const i=new DataView(t.target.result);if(65496!=i.getUint16(0,!1))return e(-2);const n=i.byteLength;let o=2;for(;o<n;){if(i.getUint16(o+2,!1)<=8)return e(-1);const t=i.getUint16(o,!1);if(o+=2,65505==t){if(1165519206!=i.getUint32(o+=2,!1))return e(-1);const t=18761==i.getUint16(o+=6,!1);o+=i.getUint32(o+4,t);const n=i.getUint16(o,t);o+=2;for(let r=0;r<n;r++)if(274==i.getUint16(o+12*r,t))return e(i.getUint16(o+12*r+8,t))}else{if(65280!=(65280&t))break;o+=i.getUint16(o,!1)}}return e(-1)}),n.onerror=(t=>i(t)),n.readAsArrayBuffer(t)})}function P(t,e){const{width:i}=t,{height:n}=t,{maxWidthOrHeight:o}=e;let r,s=t;return isFinite(o)&&(i>o||n>o)&&([s,r]=C(i,n),i>n?(s.width=o,s.height=n/i*o):(s.width=i/n*o,s.height=o),r.drawImage(t,0,0,s.width,s.height),M(t)),s}function O(t,e){const{width:i}=t,{height:n}=t,[o,r]=C(i,n);switch(e>4&&e<9?(o.width=n,o.height=i):(o.width=i,o.height=n),e){case 2:r.transform(-1,0,0,1,i,0);break;case 3:r.transform(-1,0,0,-1,i,n);break;case 4:r.transform(1,0,0,-1,0,n);break;case 5:r.transform(0,1,1,0,0,0);break;case 6:r.transform(0,1,-1,0,n,0);break;case 7:r.transform(0,-1,-1,0,n,i);break;case 8:r.transform(0,-1,1,0,0,i)}return r.drawImage(t,0,0,i,n),M(t),o}function L(t,e,i=0){return new Promise(function(n,o){let r,s,a,l,d,u,c,h,p,f,g,v,y,m,b,S,E,w,A,L;function D(t=5){if(e.signal&&e.signal.aborted)throw e.signal.reason;r+=t,e.onProgress(Math.min(r,100))}function k(t){if(e.signal&&e.signal.aborted)throw e.signal.reason;r=Math.min(Math.max(t,r),100),e.onProgress(r)}return r=i,s=e.maxIteration||10,a=1024*e.maxSizeMB*1024,D(),T(t,e).then(function(i){try{return[,l]=i,D(),d=P(l,e),D(),new Promise(function(i,n){var o;if(!(o=e.exifOrientation))return x(t).then(function(t){try{return o=t,r.call(this)}catch(t){return n(t)}}.bind(this),n);function r(){return i(o)}return r.call(this)}).then(function(i){try{return u=i,D(),_().then(function(i){try{return c=i?d:O(d,u),D(),h=e.initialQuality||1,p=e.fileType||t.type,I(c,p,t.name,t.lastModified,h).then(function(i){try{{if(f=i,D(),g=f.size>a,v=f.size>t.size,!g&&!v)return k(100),n(f);var r;function u(){if(s--&&(b>a||b>y)){let e,i;return e=L?.95*A.width:A.width,i=L?.95*A.height:A.height,[E,w]=C(e,i),w.drawImage(A,0,0,e,i),h*="image/png"===p?.85:.95,I(E,p,t.name,t.lastModified,h).then(function(t){try{return S=t,M(A),A=E,b=S.size,k(Math.min(99,Math.floor((m-b)/(m-
81a)*100))),u}catch(t){return o(t)}},o)}return[1]}return y=t.size,m=f.size,b=m,A=c,L=!e.alwaysKeepResolution&&g,(r=function(t){for(;t;){if(t.then)return void t.then(r,o);try{if(t.pop){if(t.length)return t.pop()?T.call(this):t;t=u}else t=t.call(this)}catch(t){return o(t)}}}.bind(this))(u);function T(){return M(A),M(E),M(d),M(c),M(l),k(100),n(S)}}}catch(t){return o(t)}}.bind(this),o)}catch(t){return o(t)}}.bind(this),o)}catch(t){return o(t)}}.bind(this),o)}catch(t){return o(t)}}.bind(this),o)})}const D="\nlet scriptImported = false\nself.addEventListener('message', async (e) => {\n  const { file, id, imageCompressionLibUrl, options } = e.data\n  options.onProgress = (progress) => self.postMessage({ progress, id })\n  try {\n    if (!scriptImported) {\n      // console.log('[worker] importScripts', imageCompressionLibUrl)\n      self.importScripts(imageCompressionLibUrl)\n      scriptImported = true\n    }\n    // console.log('[worker] self', self)\n    const compressedFile = await imageCompression(file, options)\n    self.postMessage({ file: compressedFile, id })\n  } catch (e) {\n    // console.error('[worker] error', e)\n    self.postMessage({ error: e.message + '\\n' + e.stack, id })\n  }\n})\n";let k;function N(t,e){return new Promise((i,n)=>{k||(k=function(t){const e=[];return"function"==typeof t?e.push(`(${t})()`):e.push(t),URL.createObjectURL(new Blob(e))}(D));const o=new Worker(k);o.addEventListener("message",function(t){if(e.signal&&e.signal.aborted)o.terminate();else if(void 0===t.data.progress){if(t.data.error)return n(new Error(t.data.error)),void o.terminate();i(t.data.file),o.terminate()}else e.onProgress(t.data.progress)}),o.addEventListener("error",n),e.signal&&e.signal.addEventListener("abort",()=>{n(e.signal.reason),o.terminate()}),o.postMessage({file:t,imageCompressionLibUrl:e.libURL,options:{...e,onProgress:void 0,signal:void 0}})})}function B(t,e){return new Promise(function(i,o){let r,s,a,l,d,u;if(r={...e},a=0,({onProgress:l}=r),r.maxSizeMB=r.maxSizeMB||Number.POSITIVE_INFINITY,d="boolean"!=typeof r.useWebWorker||r.useWebWorker,delete r.useWebWorker,r.onProgress=(t=>{a=t,"function"==typeof l&&l(a)}),!(t instanceof Blob||t instanceof g))return o(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(t.type))return o(new Error("The file given is not an image"));if(u="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,!d||"function"!=typeof Worker||u)return L(t,r).then(function(t){try{return s=t,p.call(this)}catch(t){return o(t)}}.bind(this),o);var c=function(){try{return p.call(this)}catch(t){return o(t)}}.bind(this),h=function(e){try{return L(t,r).then(function(t){try{return s=t,c()}catch(t){return o(t)}},o)}catch(t){return o(t)}};try{return r.libURL=r.libURL||"https://cdn.jsdelivr.net/npm/[email protected]/dist/browser-image-compression.js",N(t,r).then(function(t){try{return s=t,c()}catch(t){return h()}},h)}catch(t){h()}function p(){try{s.name=t.name,s.lastModified=t.lastModified}catch(t){}try{r.preserveExif&&"image/jpeg"===t.type&&(!r.fileType||r.fileType&&r.fileType===t.type)&&(s=n(t,s))}catch(t){}return i(s)}})}B.getDataUrlFromFile=m,B.getFilefromDataUrl=y,B.loadImage=b,B.drawImageInCanvas=w,B.drawFileInCanvas=T,B.canvasToFile=I,B.getExifOrientation=x,B.handleMaxWidthOrHeight=P,B.followExifOrientation=O,B.cleanupCanvasMemory=M,B.isAutoOrientationInBrowser=_,B.approximateBelowMaximumCanvasSizeOfBrowser=E,B.copyExifWithoutOrientation=n,B.getBrowserName=S,B.version="2.0.2"},930:function(t,e,i){var n,o;void 0===(o="function"==typeof(n=function(t,e,i){return function(t,e,i,n,o,r){function s(t){return"number"==typeof t&&!isNaN(t)}var a=this;if(a.version=function(){return"1.9.3"},a.options={useEasing:!0,useGrouping:!0,separator:",",decimal:".",easingFn:function(t,e,i,n){return i*(1-Math.pow(2,-10*t/n))*1024/1023+e},formattingFn:function(t){var e,i,n,o,r,s,l=t<0;if(t=Math.abs(t).toFixed(a.decimals),i=(e=(t+="").split("."))[0],n=e.length>1?a.options.decimal+e[1]:"",a.options.useGrouping){for(o="",r=0,s=i.length;r<s;++r)0!==r&&r%3==0&&(o=a.options.separator+o),o=i[s-r-1]+o;i=o}return a.options.numerals.length&&(i=i.replace(/[0-9]/g,function(t){return a.options.numerals[+t]}),n=n.replace(/[0-9]/g,function(t){return a.options.numerals[+t]})),(l?"-":"")+a.options.prefix+i+n+a.options.suffix},prefix:"",suffix:"",numerals:[]},r&&"object"==typeof r)for(var l in a.options)r.hasOwnProperty(l)&&null!==r[l]&&(a.options[l]=r[l]);""===a.options.separator?a.options.useGrouping=!1:a.options.separator=""+a.options.separator;for(var d=0,u=["webkit","moz","ms","o"],c=0;c<u.length&&!window.requestAnimationFrame;++c)window.requestAnimationFrame=window[u[c]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[u[c]+"CancelAnimationFrame"]||window[u[c]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,e){var i=(new Date).getTime(),n=Math.max(0,16-(i-d)),o=window.setTimeout(function(){t(i+n)},n);return d=i+n,o}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)}),a.initialize=function(){return!(!a.initialized&&(a.error="",a.d="string"==typeof t?document.getElementById(t):t,a.d?(a.startVal=Number(e),a.endVal=Number(i),s(a.startVal)&&s(a.endVal)?(a.decimals=Math.max(0,n||0),a.dec=Math.pow(10,a.decimals),a.duration=1e3*Number(o)||2e3,a.countDown=a.startVal>a.endVal,a.frameVal=a.startVal,a.initialized=!0,0):(a.error="[CountUp] startVal ("+e+") or endVal ("+i+") is not a number",1)):(a.error="[CountUp] target is null or undefined",1)))},a.printValue=function(t){var e=a.options.formattingFn(t);"INPUT"===a.d.tagName?this.d.value=e:"text"===a.d.tagName||"tspan"===a.d.tagName?this.d.textContent=e:this.d.innerHTML=e},a.count=function(t){a.startTime||(a.startTime=t),a.timestamp=t;var e=t-a.startTime;a.remaining=a.duration-e,a.options.useEasing?a.countDown?a.frameVal=a.startVal-a.options.easingFn(e,0,a.startVal-a.endVal,a.duration):a.frameVal=a.options.easingFn(e,a.startVal,a.endVal-a.startVal,a.duration):a.countDown?a.frameVal=a.startVal-(a.startVal-a.endVal)*(e/a.duration):a.frameVal=a.startVal+(a.endVal-a.startVal)*(e/a.duration),a.countDown?a.frameVal=a.frameVal<a.endVal?a.endVal:a.frameVal:a.frameVal=a.frameVal>a.endVal?a.endVal:a.frameVal,a.frameVal=Math.round(a.frameVal*a.dec)/a.dec,a.printValue(a.frameVal),e<a.duration?a.rAF=requestAnimationFrame(a.count):a.callback&&a.callback()},a.start=function(t){a.initialize()&&(a.callback=t,a.rAF=requestAnimationFrame(a.count))},a.pauseResume=function(){a.paused?(a.paused=!1,delete a.startTime,a.duration=a.remaining,a.startVal=a.frameVal,requestAnimationFrame(a.count)):(a.paused=!0,cancelAnimationFrame(a.rAF))},a.reset=function(){a.paused=!1,delete a.startTime,a.initialized=!1,a.initialize()&&(cancelAnimationFrame(a.rAF),a.printValue(a.startVal))},a.update=function(t){if(a.initialize()){if(!s(t=Number(t)))return void(a.error="[CountUp] update(
81) - new endVal is not a number: "+t);a.error="",t!==a.frameVal&&(cancelAnimationFrame(a.rAF),a.paused=!1,delete a.startTime,a.startVal=a.frameVal,a.endVal=t,a.countDown=a.startVal>a.endVal,a.rAF=requestAnimationFrame(a.count))}},a.initialize()&&a.printValue(a.startVal)}})?n.call(e,i,e,t):n)||(t.exports=o)},933:function(t,e,i){t.exports=i(1738)()},934:function(t,e,i){"use strict";var n=i(1740),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(t){return n.isMemo(t)?s:a[t.$$typeof]||o}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var d=Object.defineProperty,u=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;t.exports=function t(e,i,n){if("string"!=typeof i){if(f){var o=p(i);o&&o!==f&&t(e,o,n)}var s=u(i);c&&(s=s.concat(c(i)));for(var a=l(e),g=l(i),v=0;v<s.length;++v){var y=s[v];if(!(r[y]||n&&n[y]||g&&g[y]||a&&a[y])){var m=h(i,y);try{d(e,y,m)}catch(t){}}}}return e}},935:function(t,e,i){"use strict";var n=i(181);
81e.__esModule=!0,e.default=c;var o=n(i(844)),r=n(i(845)),s=i(614),a=n(i(1773)),l=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,d=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,u=function(t){return(0,a.default)(t)||t===t.trim()};function c(){var t=this;if(!(this instanceof c))return new c;r.default.call(this,{type:"string"}),this.withMutation(function(){t.transform(function(t){return this.isType(t)?t:null!=t&&t.toString?t.toString():t})})}(0,o.default)(c,r.default,{_typeCheck:function(t){return t instanceof String&&(t=t.valueOf()),"string"==typeof t},_isPresent:function(t){return r.default.prototype._cast.call(this,t)&&t.length>0},length:function(t,e){return void 0===e&&(e=s.string.length),this.test({message:e,name:"length",exclusive:!0,params:{length:t},test:function(e){return(0,a.default)(e)||e.length===this.resolve(t)}})},min:function(t,e){return void 0===e&&(e=s.string.min),this.test({message:e,name:"min",exclusive:!0,params:{min:t},test:function(e){return(0,a.default)(e)||e.length>=this.resolve(t)}})},max:function(t,e){return void 0===e&&(e=s.string.max),this.test({name:"max",exclusive:!0,message:e,params:{max:t},test:function(e){return(0,a.default)(e)||e.length<=this.resolve(t)}})},matches:function(t,e){var i,n=!1;return e&&(e.message||e.hasOwnProperty("excludeEmptyString")?(n=e.excludeEmptyString,i=e.message):i=e),this.test({message:i||s.string.matches,params:{regex:t},test:function(e){return(0,a.default)(e)||""===e&&n||t.test(e)}})},email:function(t){return void 0===t&&(t=s.string.email),this.matches(l,{message:t,excludeEmptyString:!0})},url:function(t){return void 0===t&&(t=s.string.url),this.matches(d,{message:t,excludeEmptyString:!0})},ensure:function(){return this.default("").transform(function(t){return null===t?"":t})},trim:function(t){return void 0===t&&(t=s.string.trim),this.transform(function(t){return null!=t?t.trim():t}).test({message:t,name:"trim",test:u})},lowercase:function(t){return void 0===t&&(t=s.string.lowercase),this.transform(function(t){return(0,a.default)(t)?t:t.toLowerCase()}).test({message:t,name:"string_case",exclusive:!0,test:function(t){return(0,a.default)(t)||t===t.toLowerCase()}})},uppercase:function(t){return void 0===t&&(t=s.string.uppercase),this.transform(function(t){return(0,a.default)(t)?t:t.toUpperCase()}).test({message:t,name:"string_case",exclusive:!0,test:function(t){return(0,a.default)(t)||t===t.toUpperCase()}})}}),t.exports=e.default}
81,936:function(t,e,i){"use strict";var n=i(1774),o=i(181);e.__esModule=!0,e.default=w;var r=o(i(1775)),s=o(i(408)),a=o(i(99)),l=o(i(1776)),d=o(i(1785)),u=o(i(1791)),c=o(i(852)),h=i(471),p=o(i(845)),f=i(614),g=o(i(1792)),v=o(i(1794)),y=o(i(844)),m=o(i(1795)),b=n(i(848));function S(){var t=(0,r.default)(["",".",""]);return S=function(){return t},t}function E(){var t=(0,r.default)(["",".",""]);return E=function(){return t},t}var C=function(t){return"[object Object]"===Object.prototype.toString.call(t)};function w(t){var e=this;if(!(this instanceof w))return new w(t);p.default.call(this,{type:"object",default:function(){var t=this;if(this._nodes.length){var e={};return this._nodes.forEach(function(i){e[i]=t.fields[i].default?t.fields[i].default():void 0}),e}}}),this.fields=Object.create(null),this._nodes=[],this._excludedEdges=[],this.withMutation(function(){e.transform(function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(e){t=null}return this.isType(t)?t:null}),t&&e.shape(t)})}(0,y.default)(w,p.default,{_typeCheck:function(t){return C(t)||"function"==typeof t},_cast:function(t,e){var i=this;void 0===e&&(e={});var n=p.default.prototype._cast.call(this,t,e);if(void 0===n)return this.default();if(!this._typeCheck(n))return n;var o=this.fields,r=!0===this._option("stripUnknown",e),l=this._nodes.concat(Object.keys(n).filter(function(t){return-1===i._nodes.indexOf(t)})),d={},u=(0,s.default)({},e,{parent:d,__validating:!1}),c=!1;return l.forEach(function(t){var i=o[t],s=(0,a.default)(n,t);if(i){var l,h=i._options&&i._options.strict;if(u.path=(0,m.default)(E(),e.path,t),u.value=n[t],!0===(i=i.resolve(u))._strip)return void(c=c||t in n);void 0!==(l=e.__validating&&h?n[t]:i.cast(n[t],u))&&(d[t]=l)}else s&&!r&&(d[t]=n[t]);d[t]!==n[t]&&(c=!0)}),c?d:n},_validate:function(t,e){var i,n,o=this;void 0===e&&(e={});var r=e.sync,a=[],l=null!=e.originalValue?e.originalValue:t;return i=this._option("abortEarly",e),n=this._option("recursive",e),e=(0,s.default)({},e,{__validating:!0,originalValue:l}),p.default.prototype._validate.call(this,t,e).catch((0,b.propagateErrors)(i,a)).then(function(t){if(!n||!C(t)){if(a.length)throw a[0];return t}l=l||t;var d=o._nodes.map(function(i){var n=(0,m.default)(S(),e.path,i),r=o.fields[i],a=(0,s.default)({},e,{path:n,parent:t,originalValue:l[i]});return r&&r.validate?(a.strict=!0,r.validate(t[i],a)):Promise.resolve(!0)});return(0,b.default)({sync:r,validations:d,value:t,errors:a,endEarly:i,path:e.path,sort:(0,v.default)(o.fields)})})},concat:function(t){var e=p.default.prototype.concat.call(this,t);return e._nodes=(0,g.default)(e.fields,e._excludedEdges),e},shape:function(t,e){void 0===e&&(e=[]);var i=this.clone(),n=(0,s.default)(i.fields,t);if(i.fields=n,e.length){Array.isArray(e[0])||(e=[e]);var o=e.map(function(t){return t[0]+"-"+t[1]});i._excludedEdges=i._excludedEdges.concat(o)}return i._nodes=(0,g.default)(n,i._excludedEdges),i},from:function(t,e,i){var n=(0,h.getter)(t,!0);return this.transform(function(o){if(null==o)return o;var r=o;return(0,a.default)(o,t)&&(r=(0,s.default)({},o),i||delete r[t],r[e]=n(o)),r})},noUnknown:function(t,e){void 0===t&&(t=!0),void 0===e&&(e=f.object.noUnknown),"string"==typeof t&&(e=t,t=!0);var i=this.test({name:"noUnknown",exclusive:!0,message:e,test:function(e){return null==e||!t||0===function(t,e){var i=Object.keys(t.fields);return Object.keys(e).filter(function(t){return-1===i.indexOf(t)})}(this.schema,e).length}});return i._options.stripUnknown=t,i},unknown:function(t,e){return void 0===t&&(t=!0),void 0===e&&(e=f.object.noUnknown),this.noUnknown(!t,e)},transformKeys:function(t){return this.transform(function(e){return e&&(0,u.default)(e,function(e,i){return t(i)})})},camelCase:function(){return this.transformKeys(d.default)},snakeCase:function(){return this.transformKeys(l.default)},constantCase:function(){return this.transformKeys(function(t){return(0,l.default)(t).toUpperCase()})},describe:function(){var t=p.default.prototype.describe.call(this);return t.fields=(0,c.default)(this.fields,function(t){return t.describe()}),t}}),t.exports=e.default},993:function(t,e,i){"use strict";function n(){return(n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function o(t){return"/"===t.charAt(0)}function r(t,e){for(var i=e,n=i+1,o=t.length;n<o;i+=1,n+=1)t[i]=t[n];t.pop()}var s=function(t,e){void 0===e&&(e="");var i,n=t&&t.split("/")||[],s=e&&e.split("/")||[],a=t&&o(t),l=e&&o(e),d=a||l;if(t&&o(t)?s=n:n.length&&(s.pop(),s=s.concat(n)),!s.length)return"/";if(s.length){var u=s[s.length-1];i="."===u||".."===u||""===u}else i=!1;for(var c=0,h=s.length;h>=0;h--){var p=s[h];"."===p?r(s,h):".."===p?(r(s,h),c++):c&&(r(s,h),c--)}if(!d)for(;c--;c)s.unshift("..");!d||""===s[0]||s[0]&&o(s[0])||s.unshift("");var f=s.join("/");return i&&"/"!==f.substr(-1)&&(f+="/"),f},a=function(t,e){if(!t)throw new Error("Invariant failed")};function l(t,e,i,o){var r;"string"==typeof t?(r=function(t){var e=t||"/",i="",n="",o=e.indexOf("#");-1!==o&&(n=e.substr(o),e=e.substr(0,o));var r=e.indexOf("?");return-1!==r&&(i=e.substr(r),e=e.substr(0,r)),{pathname:e,search:"?"===i?"":i,hash:"#"===n?"":n}}(t)).state=e:(void 0===(r=n({},t)).pathname&&(r.pathname=""),r.search?"?"!==r.search.charAt(0)&&(r.search="?"+r.search):r.search="",r.hash?"#"!==r.hash.charAt(0)&&(r.hash="#"+r.hash):r.hash="",void 0!==e&&void 0===r.state&&(r.state=e));try{r.pathname=decodeURI(r.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invali
81d percent-encoding.'):t}return i&&(r.key=i),o?r.pathname?"/"!==r.pathname.charAt(0)&&(r.pathname=s(r.pathname,o.pathname)):r.pathname=o.pathname:r.pathname||(r.pathname="/"),r}i.d(e,"a",function(){return f});var d=!("undefined"==typeof window||!window.document||!window.document.createElement);function u(t,e){e(window.confirm(t))}var c="popstate",h="hashchange";function p(){try{return window.history.state||{}}catch(t){return{}}}function f(t){void 0===t&&(t={}),d||a(!1);var e,i,o=window.history,r=(-1===(e=window.navigator.userAgent).indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,s=!(-1===window.navigator.userAgent.indexOf("Trident")),f=t,g=f.forceRefresh,v=void 0!==g&&g,y=f.getUserConfirmation,m=void 0===y?u:y,b=f.keyLength,S=void 0===b?6:b,E=t.basename?function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}("/"===(i=t.basename).charAt(0)?i:"/"+i):"";function C(t){var e=t||{},i=e.key,n=e.state,o=window.location,r=o.pathname+o.search+o.hash;return E&&(r=function(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}(r,E)),l(r,n,i)}function w(){return Math.random().toString(36).substr(2,S)}var A,T,I=(A=null,T=[],{setPrompt:function(t){return A=t,function(){A===t&&(A=null)}},confirmTransitionTo:function(t,e,i,n){if(null!=A){var o="function"==typeof A?A(t,e):A;"string"==typeof o?"function"==typeof i?i(o,n):n(!0):n(!1!==o)}else n(!0)},appendListener:function(t){var e=!0;function i(){e&&t.apply(void 0,arguments)}return T.push(i),function(){e=!1,T=T.filter(function(t){return t!==i})}},notifyListeners:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];T.forEach(function(t){return t.apply(void 0,e)})}});function M(t){n(z,t),z.length=o.length,I.notifyListeners(z.location,z.action)}function _(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||O(C(t.state))}function x(){O(C(p()))}var P=!1;function O(t){P?(P=!1,M()):I.confirmTransitionTo(t,"POP",m,function(e){e?M({action:"POP",location:t}):function(t){var e=z.location,i=D.indexOf(e.key);-1===i&&(i=0);var n=D.indexOf(t.key);-1===n&&(n=0);var o=i-n;o&&(P=!0,N(o))}(t)})}var L=C(p()),D=[L.key];function k(t){return E+function(t){var e=t.pathname,i=t.search,n=t.hash,o=e||"/";return i&&"?"!==i&&(o+="?"===i.charAt(0)?i:"?"+i),n&&"#"!==n&&(o+="#"===n.charAt(0)?n:"#"+n),o}(t)}function N(t){o.go(t)}var B=0;function R(t){1===(B+=t)&&1===t?(window.addEventListener(c,_),s&&window.addEventListener(h,x)):0===B&&(window.removeEventListener(c,_),s&&window.removeEventListener(h,x))}var $=!1,z={length:o.length,action:"POP",location:L,createHref:k,push:function(t,e){var i=l(t,e,w(),z.location);I.confirmTransitionTo(i,"PUSH",m,function(t){if(t){var e=k(i),n=i.key,s=i.state;if(r)if(o.pushState({key:n,state:s},null,e),v)window.location.href=e;else{var a=D.indexOf(z.location.key),l=D.slice(0,a+1);l.push(i.key),D=l,M({action:"PUSH",location:i})}else window.location.href=e}})},replace:function(t,e){var i=l(t,e,w(),z.location);I.confirmTransitionTo(i,"REPLACE",m,function(t){if(t){var e=k(i),n=i.key,s=i.state;if(r)if(o.replaceState({key:n,state:s},null,e),v)window.location.replace(e);else{var a=D.indexOf(z.location.key);-1!==a&&(D[a]=i.key),M({action:"REPLACE",location:i})}else window.location.replace(e)}})},go:N,goBack:function(){N(-1)},goForward:function(){N(1)},block:function(t){void 0===t&&(t=!1);var e=I.setPrompt(t);return $||(R(1),$=!0),function(){return $&&($=!1,R(-1)),e()}},listen:function(t){var e=I.appendListener(t);return R(1),function(){R(-1),e()}}};return z}},995:function(t,e,i){"use strict";var n=i(0),o=i.n(n),r=i(186),s=i.n(r);function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var d=function(t){var e,i;function n(){var e;return(e=t.call(this)||this).handleExpired=e.handleExpired.bind(l(e)),e.handleErrored=e.handleErrored.bind(l(e)),e.handleChange=e.handleChange.bind(l(e)),e.handleRecaptchaRef=e.handleRecaptchaRef.bind(l(e)),e}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i;var r=n.prototype;return r.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},r.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},r.execute=function(){var t=this.props.grecaptcha;if(t&&void 0!==this._widgetId)return t.execute(this._widgetId);this._executeRequested=!0},r.executeAsync=function(){var t=this;return new Promise(function(e,i){t.executionResolve=e,t.executionReject=i,t.execute()})},r.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},r.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},r.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},r.handleChange=function(t){this.props.onChange&&this.props.onChange(t),this.executionResolve&&(this.executionResolve(t),delete this.executionReject,delete this.executionResolve)},r.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var t=document.createElement("div");this._widgetId=this.props.grecaptcha.render(t,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(t)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},r.componentDidMount=function(){this.explicitRender()},r.componentDidUpdate=function(){this.explicitRender()},r.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},r.delayOfCaptchaIframeRemoving=function(){var t=document.createElement("div");for(document.body.appendChild(t),t.style.display="none";this.captcha.firstChild;)t.appendChild(this.captcha.firstChild);setTimeout(function(){document.body.removeChild(t)},5e3)},r.handleRecaptchaRef=function(t){this.captcha=t},r.render=function(){var t=this.props,e=(t.sitekey,t.onChange,t.theme,t.type,t.tabindex,t.onExpired,t.onErrored,t.size,t.stoken,t.grecaptcha,t.badge,t.hl,function(t,e){if(null==t)return{};var i,n,o={},r=Object.keys(t);for(n=0;n<r.length;n++)i=r[n],e.indexOf(i)>=0||(o[i]=t[i]);return o}(t,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return o.a.createElement("div",a({},e,{ref:this.handleRecaptchaRef}))},n}(o.a.Component);d.displayName="ReCAPTCHA",d.propTypes={sitekey:s.a.string.isRequired,onChange:s.a.func,grecaptcha:s.a.object,theme:s.a.oneOf(["dark","light"]),type:s.a.oneOf(["image","audio"]),tabindex:s.a.number,onExpired:s.a.func,onErrored:s.a.func,size:s.a.oneOf(["compact","normal","invisible"]),stoken:s.a.string,hl:s.a.string,badge:s.a.oneOf(["bottomright","bottomleft","inline"])}
81,d.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var u=i(933),c=i.n(u),h=i(934),p=i.n(h);function f(){return(f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}var g,v,y={},m=0,b=(g=function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload=onloadcallback&render=explicit"},v=(v={callbackName:"onloadcallback",globalName:"grecaptcha"})||{},function(t){var e=t.displayName||t.name||"Component",i=function(e){var i,o;function r(t,i){var n;return(n=e.call(this,t,i)||this).state={},n.__scriptURL="",n}o=e,(i=r).prototype=Object.create(o.prototype),i.prototype.constructor=i,i.__proto__=o;var s=r.prototype;return s.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+m++),this.__scriptLoaderID},s.setupScriptURL=function(){return this.__scriptURL=g(),this.__scriptURL},s.asyncScriptLoaderHandleLoad=function(t){var e=this;this.setState(t,function(){return e.props.asyncScriptOnLoad&&e.props.asyncScriptOnLoad(e.state)})},s.asyncScriptLoaderTriggerOnScriptLoaded=function(){var t=y[this.__scriptURL];if(!t||!t.loaded)throw new Error("Script is not loaded.");for(var e in t.observers)t.observers[e](t);delete window[v.callbackName]},s.componentDidMount=function(){var t=this,e=this.setupScriptURL(),i=this.asyncScriptLoaderGetScriptLoaderID(),n=v,o=n.globalName,r=n.callbackName,s=n.scriptId;if(o&&void 0!==window[o]&&(y[e]={loaded:!0,observers:{}}),y[e]){var a=y[e];return a&&(a.loaded||a.errored)?void this.asyncScriptLoaderHandleLoad(a):void(a.observers[i]=function(e){return t.asyncScriptLoaderHandleLoad(e)})}var l={};l[i]=function(e){return t.asyncScriptLoaderHandleLoad(e)},y[e]={loaded:!1,observers:l};var d=document.createElement("script");for(var u in d.src=e,d.async=!0,v.attributes)d.setAttribute(u,v.attributes[u]);s&&(d.id=s);var c=function(t){if(y[e]){var i=y[e].observers;for(var n in i)t(i[n])&&delete i[n]}};r&&"undefined"!=typeof window&&(window[r]=function(){return t.asyncScriptLoaderTriggerOnScriptLoaded()}),d.onload=function(){var t=y[e];t&&(t.loaded=!0,c(function(e){return!r&&(e(t),!0)}))},d.onerror=function(){var t=y[e];t&&(t.errored=!0,c(function(e){return e(t),!0}))},document.body.appendChild(d)},s.componentWillUnmount=function(){var t=this.__scriptURL;if(!0===v.removeOnUnmount)for(var e=document.getElementsByTagName("script"),i=0;i<e.length;i+=1)e[i].src.indexOf(t)>-1&&e[i].parentNode&&e[i].parentNode.removeChild(e[i]);var n=y[t];n&&(delete n.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===v.removeOnUnmount&&delete y[t])},s.render=function(){var e=v.globalName,i=this.props,o=(i.asyncScriptOnLoad,i.forwardedRef),r=function(t,e){if(null==t)return{};var i,n,o={},r=Object.keys(t);for(n=0;n<r.length;n++)i=r[n],e.indexOf(i)>=0||(o[i]=t[i]);return o}(i,["asyncScriptOnLoad","forwardedRef"]);return e&&"undefined"!=typeof window&&(r[e]=void 0!==window[e]?window[e]:void 0),r.ref=o,Object(n.createElement)(t,r)},r}(n.Component),o=Object(n.forwardRef)(function(t,e){return Object(n.createElement)(i,f({},t,{forwardedRef:e}))});return o.displayName="AsyncScriptLoader("+e+")",o.propTypes={asyncScriptOnLoad:c.a.func},p()(o,t)})(d);e.a=b}}]);
82//# sourceMappingURL=vendors.app.a32dd8b5b9eb09ea7b04.js.map

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