<html><head></head><body><div hidden="" by-polymer-bundler=""><script>(function(){'use strict';const userPolymer=window.Polymer;window.Polymer=function(info){return window.Polymer._polymerFn(info)};if(userPolymer){Object.assign(Polymer,userPolymer)}window.Polymer._polymerFn=function(info){throw new Error("Load polymer.html to use the Polymer() function.")};window.Polymer.version="2.8.0";window.JSCompiler_renameProperty=function(prop,obj){return prop}})();</script><script>(function(){'use strict';let CSS_URL_RX=/(url\()([^)]*)(\))/g,ABS_URL=/(^\/)|(^#)|(^[\w-\d]*:)/,workingURL,resolveDoc;function resolveUrl(url,baseURI){if(url&&ABS_URL.test(url)){return url}if(workingURL===void 0){workingURL=!1;try{const u=new URL("b","http://a");u.pathname="c%20d";workingURL="http://a/c%20d"===u.href}catch(e){}}if(!baseURI){baseURI=document.baseURI||window.location.href}if(workingURL){return new URL(url,baseURI).href}if(!resolveDoc){resolveDoc=document.implementation.createHTMLDocument("temp");resolveDoc.base=resolveDoc.createElement("base");resolveDoc.head.appendChild(resolveDoc.base);resolveDoc.anchor=resolveDoc.createElement("a");resolveDoc.body.appendChild(resolveDoc.anchor)}resolveDoc.base.href=baseURI;resolveDoc.anchor.href=url;return resolveDoc.anchor.href||url}function resolveCss(cssText,baseURI){return cssText.replace(CSS_URL_RX,function(m,pre,url,post){return pre+"'"+resolveUrl(url.replace(/["']/g,""),baseURI)+"'"+post})}function pathFromUrl(url){return url.substring(0,url.lastIndexOf("/")+1)}Polymer.ResolveUrl={resolveCss:resolveCss,resolveUrl:resolveUrl,pathFromUrl:pathFromUrl}})();</script><script>(function(){'use strict';Polymer.Settings=Polymer.Settings||{};Polymer.Settings.useShadow=!window.ShadyDOM;Polymer.Settings.useNativeCSSProperties=!!(!window.ShadyCSS||window.ShadyCSS.nativeCss);Polymer.Settings.useNativeCustomElements=!window.customElements.polyfillWrapFlushCallback;Polymer.rootPath=Polymer.rootPath||Polymer.ResolveUrl.pathFromUrl(document.baseURI||window.location.href);Polymer.setRootPath=function(path){Polymer.rootPath=path};Polymer.sanitizeDOMValue=Polymer.sanitizeDOMValue||null;Polymer.setSanitizeDOMValue=function(newSanitizeDOMValue){Polymer.sanitizeDOMValue=newSanitizeDOMValue};Polymer.passiveTouchGestures=Polymer.passiveTouchGestures||!1;Polymer.setPassiveTouchGestures=function(usePassive){Polymer.passiveTouchGestures=usePassive};Polymer.legacyOptimizations=Polymer.legacyOptimizations||window.PolymerSettings&&window.PolymerSettings.legacyOptimizations||!1;Polymer.setLegacyOptimizations=function(useLegacyOptimizations){Polymer.legacyOptimizations=useLegacyOptimizations};Polymer.cancelSyntheticClickEvents="boolean"===typeof Polymer.cancelSyntheticClickEvents?Polymer.cancelSyntheticClickEvents:!0;Polymer.setCancelSyntheticClickEvents=function(useCancelSyntheticClickEvents){Polymer.cancelSyntheticClickEvents=useCancelSyntheticClickEvents}})();</script><script>(function(){'use strict';let dedupeId=0;function MixinFunction(){}MixinFunction.prototype.__mixinApplications;MixinFunction.prototype.__mixinSet;Polymer.dedupingMixin=function(mixin){let mixinApplications=/** @type {!MixinFunction} */mixin.__mixinApplications;if(!mixinApplications){mixinApplications=new WeakMap;/** @type {!MixinFunction} */mixin.__mixinApplications=mixinApplications}let mixinDedupeId=dedupeId++;function dedupingMixin(base){let baseSet=/** @type {!MixinFunction} */base.__mixinSet;if(baseSet&&baseSet[mixinDedupeId]){return base}let map=mixinApplications,extended=map.get(base);if(!extended){extended=/** @type {!Function} */mixin(base);map.set(base,extended)}let mixinSet=Object.create(/** @type {!MixinFunction} */extended.__mixinSet||baseSet||null);mixinSet[mixinDedupeId]=!0;/** @type {!MixinFunction} */extended.__mixinSet=mixinSet;return extended}return(/** @type {T} */dedupingMixin)}})();</script><script>(function(){'use strict';const MODULE_STYLE_LINK_SELECTOR="link[rel=import][type~=css]",INCLUDE_ATTR="include",SHADY_UNSCOPED_ATTR="shady-unscoped";function importModule(moduleId){const/** Polymer.DomModule */PolymerDomModule=customElements.get("dom-module");if(!PolymerDomModule){return null}return PolymerDomModule.import(moduleId)}function styleForImport(importDoc){let container=importDoc.body?importDoc.body:importDoc;const importCss=Polymer.ResolveUrl.resolveCss(container.textContent,importDoc.baseURI),style=document.createElement("style");style.textContent=importCss;return style}let templateWithAssetPath;const StyleGather={stylesFromModules(moduleIds){const modules=moduleIds.trim().split(/\s+/),styles=[];for(let i=0;i<modules.length;i++){styles.push(...this.stylesFromModule(modules[i]))}return styles},stylesFromModule(moduleId){const m=importModule(moduleId);if(!m){console.warn("Could not find style data in module named",moduleId);return[]}if(m._styles===void 0){const styles=[...this._stylesFromModuleImports(m)],template=m.querySelector("template");if(template){styles.push(...this.stylesFromTemplate(template,/** @type {templateWithAssetPath} */m.assetpath))}m._styles=styles}return m._styles},stylesFromTemplate(template,baseURI){if(!template._styles){const styles=[],e$=template.content.querySelectorAll("style");for(let i=0;i<e$.length;i++){let e=e$[i],include=e.getAttribute(INCLUDE_ATTR);if(include){styles.push(...this.stylesFromModules(include).filter(function(item,index,self){return self.indexOf(item)===index}))}if(baseURI){e.textContent=Polymer.ResolveUrl.resolveCss(e.textContent,baseURI)}styles.push(e)}template._styles=styles}return template._styles},stylesFromModuleImports(moduleId){let m=importModule(moduleId);return m?this._stylesFromModuleImports(m):[]},_stylesFromModuleImports(module){const styles=[],p$=module.querySelectorAll(MODULE_STYLE_LINK_SELECTOR);for(let i=0,p;i<p$.length;i++){p=p$[i];if(p.import){const importDoc=p.import,unscoped=p.hasAttribute(SHADY_UNSCOPED_ATTR);if(unscoped&&!importDoc._unscopedStyle){const style=styleForImport(importDoc);style.setAttribute(SHADY_UNSCOPED_ATTR,"");importDoc._unscopedStyle=style}else if(!importDoc._style){importDoc._style=styleForImport(importDoc)}styles.push(unscoped?importDoc._unscopedStyle:importDoc._style)}}return styles},cssFromModules(moduleIds){let modules=moduleIds.trim().split(/\s+/),cssText="";for(let i=0;i<modules.length;i++){cssText+=this.cssFromModule(modules[i])}return cssText},cssFromModule(moduleId){let m=importModule(moduleId);if(m&&m._cssText===void 0){let cssText=this._cssFromModuleImports(m),t=m.querySelector("template");if(t){cssText+=this.cssFromTemplate(t,/** @type {templateWithAssetPath} */m.assetpath)}m._cssText=cssText||null}if(!m){console.warn("Could not find style data in module named",moduleId)}return m&&m._cssText||""},cssFromTemplate(template,baseURI){let cssText="";const e$=this.stylesFromTemplate(template,baseURI);for(let i=0,e;i<e$.length;i++){e=e$[i];if(e.parentNode){e.parentNode.removeChild(e)}cssText+=e.textContent}return cssText},cssFromModuleImports(moduleId){let m=importModule(moduleId);return m?this._cssFromModuleImports(m):""},_cssFromModuleImports(module){let cssText="",styles=this._stylesFromModuleImports(module);for(let i=0;i<styles.length;i++){cssText+=styles[i].textContent}return cssText}};Polymer.StyleGather=StyleGather})();</script><script>(function(){'use strict';let modules={},lcModules={};function setModule(id,module){modules[id]=lcModules[id.toLowerCase()]=module}function findModule(id){return modules[id]||lcModules[id.toLowerCase()]}function styleOutsideTemplateCheck(inst){if(inst.querySelector("style")){console.warn("dom-module %s has style outside template",inst.id)}}class DomModule extends HTMLElement{static get observedAttributes(){return["id"]}static import(id,selector){if(id){let m=findModule(id);if(m&&selector){return m.querySelector(selector)}return m}return null}attributeChangedCallback(name,old,value,namespace){if(old!==value){this.register()}}get assetpath(){if(!this.__assetpath){const owner=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,url=Polymer.ResolveUrl.resolveUrl(this.getAttribute("assetpath")||"",owner.baseURI);this.__assetpath=Polymer.ResolveUrl.pathFromUrl(url)}return this.__assetpath}register(id){id=id||this.id;if(id){if(Polymer.strictTemplatePolicy&&findModule(id)!==void 0){setModule(id,null);throw new Error(`strictTemplatePolicy: dom-module ${id} re-registered`)}this.id=id;setModule(id,this);styleOutsideTemplateCheck(this)}}}DomModule.prototype.modules=modules;customElements.define("dom-module-banner",DomModule);Polymer.DomModule=DomModule})();</script><script>(function(){'use strict';const Path={isPath:function(path){return 0<=path.indexOf(".")},root:function(path){let dotIndex=path.indexOf(".");if(-1===dotIndex){return path}return path.slice(0,dotIndex)},isAncestor:function(base,path){return 0===base.indexOf(path+".")},isDescendant:function(base,path){return 0===path.indexOf(base+".")},translate:function(base,newBase,path){return newBase+path.slice(base.length)},matches:function(base,path){return base===path||this.isAncestor(base,path)||this.isDescendant(base,path)},normalize:function(path){if(Array.isArray(path)){let parts=[];for(let i=0,args;i<path.length;i++){args=path[i].toString().split(".");for(let j=0;j<args.length;j++){parts.push(args[j])}}return parts.join(".")}else{return path}},split:function(path){if(Array.isArray(path)){return this.normalize(path).split(".")}return path.toString().split(".")},get:function(root,path,info){let prop=root,parts=this.split(path);for(let i=0;i<parts.length;i++){if(!prop){return}let part=parts[i];prop=prop[part]}if(info){info.path=parts.join(".")}return prop},set:function(root,path,value){let prop=root,parts=this.split(path),last=parts[parts.length-1];if(1<parts.length){for(let i=0,part;i<parts.length-1;i++){part=parts[i];prop=prop[part];if(!prop){return}}prop[last]=value}else{prop[path]=value}return parts.join(".")}};Path.isDeep=Path.isPath;Polymer.Path=Path})();</script><script>(function(){'use strict';const caseMap={},DASH_TO_CAMEL=/-[a-z]/g,CAMEL_TO_DASH=/([A-Z])/g,CaseMap={dashToCamelCase(dash){return caseMap[dash]||(caseMap[dash]=0>dash.indexOf("-")?dash:dash.replace(DASH_TO_CAMEL,m=>m[1].toUpperCase()))},camelToDashCase(camel){return caseMap[camel]||(caseMap[camel]=camel.replace(CAMEL_TO_DASH,"-$1").toLowerCase())}};Polymer.CaseMap=CaseMap})();</script><script>(function(){'use strict';let microtaskCurrHandle=0,microtaskLastHandle=0,microtaskCallbacks=[],microtaskNodeContent=0,microtaskNode=document.createTextNode("");new window.MutationObserver(microtaskFlush).observe(microtaskNode,{characterData:!0});function microtaskFlush(){const len=microtaskCallbacks.length;for(let i=0,cb;i<len;i++){cb=microtaskCallbacks[i];if(cb){try{cb()}catch(e){setTimeout(()=>{throw e})}}}microtaskCallbacks.splice(0,len);microtaskLastHandle+=len}Polymer.Async={timeOut:{after(delay){return{run(fn){return window.setTimeout(fn,delay)},cancel(handle){window.clearTimeout(handle)}}},run(fn,delay){return window.setTimeout(fn,delay)},cancel(handle){window.clearTimeout(handle)}},animationFrame:{run(fn){return window.requestAnimationFrame(fn)},cancel(handle){window.cancelAnimationFrame(handle)}},idlePeriod:{run(fn){return window.requestIdleCallback?window.requestIdleCallback(fn):window.setTimeout(fn,16)},cancel(handle){window.cancelIdleCallback?window.cancelIdleCallback(handle):window.clearTimeout(handle)}},microTask:{run(callback){microtaskNode.textContent=microtaskNodeContent++;microtaskCallbacks.push(callback);return microtaskCurrHandle++},cancel(handle){const idx=handle-microtaskLastHandle;if(0<=idx){if(!microtaskCallbacks[idx]){throw new Error("invalid async handle: "+handle)}microtaskCallbacks[idx]=null}}}}})();</script><script>(function(){'use strict';const microtask=Polymer.Async.microTask;Polymer.PropertiesChanged=Polymer.dedupingMixin(superClass=>{class PropertiesChanged extends superClass{static createProperties(props){const proto=this.prototype;for(let prop in props){if(!(prop in proto)){proto._createPropertyAccessor(prop)}}}static attributeNameForProperty(property){return property.toLowerCase()}static typeForProperty(name){}_createPropertyAccessor(property,readOnly){this._addPropertyToAttributeMap(property);if(!this.hasOwnProperty("__dataHasAccessor")){this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)}if(!this.__dataHasAccessor[property]){this.__dataHasAccessor[property]=!0;this._definePropertyAccessor(property,readOnly)}}_addPropertyToAttributeMap(property){if(!this.hasOwnProperty("__dataAttributes")){this.__dataAttributes=Object.assign({},this.__dataAttributes)}if(!this.__dataAttributes[property]){const attr=this.constructor.attributeNameForProperty(property);this.__dataAttributes[attr]=property}}_definePropertyAccessor(property,readOnly){Object.defineProperty(this,property,{get(){return this._getProperty(property)},set:readOnly?function(){}:function(value){this._setProperty(property,value)}})}constructor(){super();this.__dataEnabled=!1;this.__dataReady=!1;this.__dataInvalid=!1;this.__data={};this.__dataPending=null;this.__dataOld=null;this.__dataInstanceProps=null;this.__serializing=!1;this._initializeProperties()}ready(){this.__dataReady=!0;this._flushProperties()}_initializeProperties(){for(let p in this.__dataHasAccessor){if(this.hasOwnProperty(p)){this.__dataInstanceProps=this.__dataInstanceProps||{};this.__dataInstanceProps[p]=this[p];delete this[p]}}}_initializeInstanceProperties(props){Object.assign(this,props)}_setProperty(property,value){if(this._setPendingProperty(property,value)){this._invalidateProperties()}}_getProperty(property){return this.__data[property]}_setPendingProperty(property,value,ext){let old=this.__data[property],changed=this._shouldPropertyChange(property,value,old);if(changed){if(!this.__dataPending){this.__dataPending={};this.__dataOld={}}if(this.__dataOld&&!(property in this.__dataOld)){this.__dataOld[property]=old}this.__data[property]=value;this.__dataPending[property]=value}return changed}_invalidateProperties(){if(!this.__dataInvalid&&this.__dataReady){this.__dataInvalid=!0;microtask.run(()=>{if(this.__dataInvalid){this.__dataInvalid=!1;this._flushProperties()}})}}_enableProperties(){if(!this.__dataEnabled){this.__dataEnabled=!0;if(this.__dataInstanceProps){this._initializeInstanceProperties(this.__dataInstanceProps);this.__dataInstanceProps=null}this.ready()}}_flushProperties(){const props=this.__data,changedProps=this.__dataPending,old=this.__dataOld;if(this._shouldPropertiesChange(props,changedProps,old)){this.__dataPending=null;this.__dataOld=null;this._propertiesChanged(props,changedProps,old)}}_shouldPropertiesChange(currentProps,changedProps,oldProps){return!!changedProps}_propertiesChanged(currentProps,changedProps,oldProps){}_shouldPropertyChange(property,value,old){return old!==value&&(old===old||value===value)}attributeChangedCallback(name,old,value,namespace){if(old!==value){this._attributeToProperty(name,value)}if(super.attributeChangedCallback){super.attributeChangedCallback(name,old,value,namespace)}}_attributeToProperty(attribute,value,type){if(!this.__serializing){const map=this.__dataAttributes,property=map&&map[attribute]||attribute;this[property]=this._deserializeValue(value,type||this.constructor.typeForProperty(property))}}_propertyToAttribute(property,attribute,value){this.__serializing=!0;value=3>arguments.length?this[property]:value;this._valueToNodeAttribute(/** @type {!HTMLElement} */this,value,attribute||this.constructor.attributeNameForProperty(property));this.__serializing=!1}_valueToNodeAttribute(node,value,attribute){const str=this._serializeValue(value);if(str===void 0){node.removeAttribute(attribute)}else{node.setAttribute(attribute,str)}}_serializeValue(value){switch(typeof value){case"boolean":return value?"":void 0;default:return null!=value?value.toString():void 0;}}_deserializeValue(value,type){switch(type){case Boolean:return null!==value;case Number:return+value;default:return value;}}}return PropertiesChanged})})();</script><script>(function(){'use strict';let caseMap=Polymer.CaseMap;const nativeProperties={};let proto=HTMLElement.prototype;while(proto){let props=Object.getOwnPropertyNames(proto);for(let i=0;i<props.length;i++){nativeProperties[props[i]]=!0}proto=Object.getPrototypeOf(proto)}function saveAccessorValue(model,property){if(!nativeProperties[property]){let value=model[property];if(value!==void 0){if(model.__data){model._setPendingProperty(property,value)}else{if(!model.__dataProto){model.__dataProto={}}else if(!model.hasOwnProperty(JSCompiler_renameProperty("__dataProto",model))){model.__dataProto=Object.create(model.__dataProto)}model.__dataProto[property]=value}}}}Polymer.PropertyAccessors=Polymer.dedupingMixin(superClass=>{const base=Polymer.PropertiesChanged(superClass);class PropertyAccessors extends base{static createPropertiesForAttributes(){let a$=this.observedAttributes;for(let i=0;i<a$.length;i++){this.prototype._createPropertyAccessor(caseMap.dashToCamelCase(a$[i]))}}static attributeNameForProperty(property){return caseMap.camelToDashCase(property)}_initializeProperties(){if(this.__dataProto){this._initializeProtoProperties(this.__dataProto);this.__dataProto=null}super._initializeProperties()}_initializeProtoProperties(props){for(let p in props){this._setProperty(p,props[p])}}_ensureAttribute(attribute,value){const el=/** @type {!HTMLElement} */this;if(!el.hasAttribute(attribute)){this._valueToNodeAttribute(el,value,attribute)}}_serializeValue(value){switch(typeof value){case"object":if(value instanceof Date){return value.toString()}else if(value){try{return JSON.stringify(value)}catch(x){return""}}default:return super._serializeValue(value);}}_deserializeValue(value,type){let outValue;switch(type){case Object:try{outValue=JSON.parse(/** @type {string} */value)}catch(x){outValue=value}break;case Array:try{outValue=JSON.parse(/** @type {string} */value)}catch(x){outValue=null;console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${value}`)}break;case Date:outValue=isNaN(value)?value+"":+value;outValue=new Date(outValue);break;default:outValue=super._deserializeValue(value,type);break;}return outValue}_definePropertyAccessor(property,readOnly){saveAccessorValue(this,property);super._definePropertyAccessor(property,readOnly)}_hasAccessor(property){return this.__dataHasAccessor&&this.__dataHasAccessor[property]}_isPropertyPending(prop){return!!(this.__dataPending&&prop in this.__dataPending)}}return PropertyAccessors})})();</script><script>(function(){'use strict';const walker=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),templateExtensions={"dom-if-banner":!0,"dom-repeat-banner":!0};function wrapTemplateExtension(node){let is=node.getAttribute("is");if(is&&templateExtensions[is]){let t=node;t.removeAttribute("is");node=t.ownerDocument.createElement(is);t.parentNode.replaceChild(node,t);node.appendChild(t);while(t.attributes.length){node.setAttribute(t.attributes[0].name,t.attributes[0].value);t.removeAttribute(t.attributes[0].name)}}return node}function findTemplateNode(root,nodeInfo){let parent=nodeInfo.parentInfo&&findTemplateNode(root,nodeInfo.parentInfo);if(parent){walker.currentNode=parent;for(let n=walker.firstChild(),i=0;n;n=walker.nextSibling()){if(nodeInfo.parentIndex===i++){return n}}}else{return root}}function applyIdToMap(inst,map,node,nodeInfo){if(nodeInfo.id){map[nodeInfo.id]=node}}function applyEventListener(inst,node,nodeInfo){if(nodeInfo.events&&nodeInfo.events.length){for(let j=0,e$=nodeInfo.events,e;j<e$.length&&(e=e$[j]);j++){inst._addMethodEventListenerToNode(node,e.name,e.value,inst)}}}function applyTemplateContent(inst,node,nodeInfo){if(nodeInfo.templateInfo){node._templateInfo=nodeInfo.templateInfo}}function createNodeEventHandler(context,eventName,methodName){context=context._methodHost||context;let handler=function(e){if(context[methodName]){context[methodName](e,e.detail)}else{console.warn("listener method `"+methodName+"` not defined")}};return handler}Polymer.TemplateStamp=Polymer.dedupingMixin(superClass=>{class TemplateStamp extends superClass{static _parseTemplate(template,outerTemplateInfo){if(!template._templateInfo){let templateInfo=template._templateInfo={};templateInfo.nodeInfoList=[];templateInfo.stripWhiteSpace=outerTemplateInfo&&outerTemplateInfo.stripWhiteSpace||template.hasAttribute("strip-whitespace");this._parseTemplateContent(template,templateInfo,{parent:null})}return template._templateInfo}static _parseTemplateContent(template,templateInfo,nodeInfo){return this._parseTemplateNode(template.content,templateInfo,nodeInfo)}static _parseTemplateNode(node,templateInfo,nodeInfo){let noted,element=/** @type {Element} */node;if("template"==element.localName&&!element.hasAttribute("preserve-content")){noted=this._parseTemplateNestedTemplate(element,templateInfo,nodeInfo)||noted}else if("slot"===element.localName){templateInfo.hasInsertionPoint=!0}walker.currentNode=element;if(walker.firstChild()){noted=this._parseTemplateChildNodes(element,templateInfo,nodeInfo)||noted}if(element.hasAttributes&&element.hasAttributes()){noted=this._parseTemplateNodeAttributes(element,templateInfo,nodeInfo)||noted}return noted}static _parseTemplateChildNodes(root,templateInfo,nodeInfo){if("script"===root.localName||"style"===root.localName){return}walker.currentNode=root;for(let node=walker.firstChild(),parentIndex=0,next;node;node=next){if("template"==node.localName){node=wrapTemplateExtension(node)}walker.currentNode=node;next=walker.nextSibling();if(node.nodeType===Node.TEXT_NODE){let/** Node */n=next;while(n&&n.nodeType===Node.TEXT_NODE){node.textContent+=n.textContent;next=walker.nextSibling();root.removeChild(n);n=next}if(templateInfo.stripWhiteSpace&&!node.textContent.trim()){root.removeChild(node);continue}}let childInfo={parentIndex,parentInfo:nodeInfo};if(this._parseTemplateNode(node,templateInfo,childInfo)){childInfo.infoIndex=templateInfo.nodeInfoList.push(/** @type {!NodeInfo} */childInfo)-1}walker.currentNode=node;if(walker.parentNode()){parentIndex++}}}static _parseTemplateNestedTemplate(node,outerTemplateInfo,nodeInfo){let templateInfo=this._parseTemplate(node,outerTemplateInfo),content=templateInfo.content=node.content.ownerDocument.createDocumentFragment();content.appendChild(node.content);nodeInfo.templateInfo=templateInfo;return!0}static _parseTemplateNodeAttributes(node,templateInfo,nodeInfo){let noted=!1,attrs=Array.from(node.attributes);for(let i=attrs.length-1,a;a=attrs[i];i--){noted=this._parseTemplateNodeAttribute(node,templateInfo,nodeInfo,a.name,a.value)||noted}return noted}static _parseTemplateNodeAttribute(node,templateInfo,nodeInfo,name,value){if("on-"===name.slice(0,3)){node.removeAttribute(name);nodeInfo.events=nodeInfo.events||[];nodeInfo.events.push({name:name.slice(3),value});return!0}else if("id"===name){nodeInfo.id=value;return!0}return!1}static _contentForTemplate(template){let templateInfo=/** @type {HTMLTemplateElementWithInfo} */template._templateInfo;return templateInfo&&templateInfo.content||template.content}_stampTemplate(template){if(template&&!template.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate){HTMLTemplateElement.decorate(template)}let templateInfo=this.constructor._parseTemplate(template),nodeInfo=templateInfo.nodeInfoList,content=templateInfo.content||template.content,dom=/** @type {DocumentFragment} */document.importNode(content,!0);dom.__noInsertionPoint=!templateInfo.hasInsertionPoint;let nodes=dom.nodeList=Array(nodeInfo.length);dom.$={};for(let i=0,l=nodeInfo.length,info,node;i<l&&(info=nodeInfo[i]);i++){node=nodes[i]=findTemplateNode(dom,info);applyIdToMap(this,dom.$,node,info);applyTemplateContent(this,node,info);applyEventListener(this,node,info)}dom=/** @type {!StampedTemplate} */dom;return dom}_addMethodEventListenerToNode(node,eventName,methodName,context){context=context||node;let handler=createNodeEventHandler(context,eventName,methodName);this._addEventListenerToNode(node,eventName,handler);return handler}_addEventListenerToNode(node,eventName,handler){node.addEventListener(eventName,handler)}_removeEventListenerFromNode(node,eventName,handler){node.removeEventListener(eventName,handler)}}return TemplateStamp})})();</script><script>(function(){'use strict';const CaseMap=Polymer.CaseMap;let dedupeId=0;const TYPES={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},capitalAttributeRegex=/[A-Z]/;let DataTrigger,DataEffect,PropertyEffectsType;function ensureOwnEffectMap(model,type){let effects=model[type];if(!effects){effects=model[type]={}}else if(!model.hasOwnProperty(type)){effects=model[type]=Object.create(model[type]);for(let p in effects){let protoFx=effects[p],instFx=effects[p]=Array(protoFx.length);for(let i=0;i<protoFx.length;i++){instFx[i]=protoFx[i]}}}return effects}function runEffects(inst,effects,props,oldProps,hasPaths,extraArgs){if(effects){let ran=!1,id=dedupeId++;for(let prop in props){if(runEffectsForProperty(inst,effects,id,prop,props,oldProps,hasPaths,extraArgs)){ran=!0}}return ran}return!1}function runEffectsForProperty(inst,effects,dedupeId,prop,props,oldProps,hasPaths,extraArgs){let ran=!1,rootProperty=hasPaths?Polymer.Path.root(prop):prop,fxs=effects[rootProperty];if(fxs){for(let i=0,l=fxs.length,fx;i<l&&(fx=fxs[i]);i++){if((!fx.info||fx.info.lastRun!==dedupeId)&&(!hasPaths||pathMatchesTrigger(prop,fx.trigger))){if(fx.info){fx.info.lastRun=dedupeId}fx.fn(inst,prop,props,oldProps,fx.info,hasPaths,extraArgs);ran=!0}}}return ran}function pathMatchesTrigger(path,trigger){if(trigger){let triggerPath=trigger.name;return triggerPath==path||trigger.structured&&Polymer.Path.isAncestor(triggerPath,path)||trigger.wildcard&&Polymer.Path.isDescendant(triggerPath,path)}else{return!0}}function runObserverEffect(inst,property,props,oldProps,info){let fn="string"===typeof info.method?inst[info.method]:info.method,changedProp=info.property;if(fn){fn.call(inst,inst.__data[changedProp],oldProps[changedProp])}else if(!info.dynamicFn){console.warn("observer method `"+info.method+"` not defined")}}function runNotifyEffects(inst,notifyProps,props,oldProps,hasPaths){let fxs=inst[TYPES.NOTIFY],notified,id=dedupeId++;for(let prop in notifyProps){if(notifyProps[prop]){if(fxs&&runEffectsForProperty(inst,fxs,id,prop,props,oldProps,hasPaths)){notified=!0}else if(hasPaths&&notifyPath(inst,prop,props)){notified=!0}}}let host;if(notified&&(host=inst.__dataHost)&&host._invalidateProperties){host._invalidateProperties()}}function notifyPath(inst,path,props){let rootProperty=Polymer.Path.root(path);if(rootProperty!==path){let eventName=Polymer.CaseMap.camelToDashCase(rootProperty)+"-changed";dispatchNotifyEvent(inst,eventName,props[path],path);return!0}return!1}function dispatchNotifyEvent(inst,eventName,value,path){let detail={value:value,queueProperty:!0};if(path){detail.path=path}/** @type {!HTMLElement} */inst.dispatchEvent(new CustomEvent(eventName,{detail}))}function runNotifyEffect(inst,property,props,oldProps,info,hasPaths){let rootProperty=hasPaths?Polymer.Path.root(property):property,path=rootProperty!=property?property:null,value=path?Polymer.Path.get(inst,path):inst.__data[property];if(path&&value===void 0){value=props[property]}dispatchNotifyEvent(inst,info.eventName,value,path)}function handleNotification(event,inst,fromProp,toPath,negate){let value,detail=/** @type {Object} */event.detail,fromPath=detail&&detail.path;if(fromPath){toPath=Polymer.Path.translate(fromProp,toPath,fromPath);value=detail&&detail.value}else{value=event.currentTarget[fromProp]}value=negate?!value:value;if(!inst[TYPES.READ_ONLY]||!inst[TYPES.READ_ONLY][toPath]){if(inst._setPendingPropertyOrPath(toPath,value,!0,!!fromPath)&&(!detail||!detail.queueProperty)){inst._invalidateProperties()}}}function runReflectEffect(inst,property,props,oldProps,info){let value=inst.__data[property];if(Polymer.sanitizeDOMValue){value=Polymer.sanitizeDOMValue(value,info.attrName,"attribute",/** @type {Node} */inst)}inst._propertyToAttribute(property,info.attrName,value)}function runComputedEffects(inst,changedProps,oldProps,hasPaths){let computeEffects=inst[TYPES.COMPUTE];if(computeEffects){let inputProps=changedProps;while(runEffects(inst,computeEffects,inputProps,oldProps,hasPaths)){Object.assign(oldProps,inst.__dataOld);Object.assign(changedProps,inst.__dataPending);inputProps=inst.__dataPending;inst.__dataPending=null}}}function runComputedEffect(inst,property,props,oldProps,info){let result=runMethodEffect(inst,property,props,oldProps,info),computedProp=info.methodInfo;if(inst.__dataHasAccessor&&inst.__dataHasAccessor[computedProp]){inst._setPendingProperty(computedProp,result,!0)}else{inst[computedProp]=result}}function computeLinkedPaths(inst,path,value){let links=inst.__dataLinkedPaths;if(links){let link;for(let a in links){let b=links[a];if(Polymer.Path.isDescendant(a,path)){link=Polymer.Path.translate(a,b,path);inst._setPendingPropertyOrPath(link,value,!0,!0)}else if(Polymer.Path.isDescendant(b,path)){link=Polymer.Path.translate(b,a,path);inst._setPendingPropertyOrPath(link,value,!0,!0)}}}}function addBinding(constructor,templateInfo,nodeInfo,kind,target,parts,literal){nodeInfo.bindings=nodeInfo.bindings||[];let/** Binding */binding={kind,target,parts,literal,isCompound:1!==parts.length};nodeInfo.bindings.push(binding);if(shouldAddListener(binding)){let{event,negate}=binding.parts[0];binding.listenerEvent=event||CaseMap.camelToDashCase(target)+"-changed";binding.listenerNegate=negate}let index=templateInfo.nodeInfoList.length;for(let i=0,part;i<binding.parts.length;i++){part=binding.parts[i];part.compoundIndex=i;addEffectForBindingPart(constructor,templateInfo,binding,part,index)}}function addEffectForBindingPart(constructor,templateInfo,binding,part,index){if(!part.literal){if("attribute"===binding.kind&&"-"===binding.target[0]){console.warn("Cannot set attribute "+binding.target+" because \"-\" is not a valid attribute starting character")}else{let dependencies=part.dependencies,info={index,binding,part,evaluator:constructor};for(let j=0,trigger;j<dependencies.length;j++){trigger=dependencies[j];if("string"==typeof trigger){trigger=parseArg(trigger);trigger.wildcard=!0}constructor._addTemplatePropertyEffect(templateInfo,trigger.rootProperty,{fn:runBindingEffect,info,trigger})}}}}function runBindingEffect(inst,path,props,oldProps,info,hasPaths,nodeList){let node=nodeList[info.index],binding=info.binding,part=info.part;if(hasPaths&&part.source&&path.length>part.source.length&&"property"==binding.kind&&!binding.isCompound&&node.__isPropertyEffectsClient&&node.__dataHasAccessor&&node.__dataHasAccessor[binding.target]){let value=props[path];path=Polymer.Path.translate(part.source,binding.target,path);if(node._setPendingPropertyOrPath(path,value,!1,!0)){inst._enqueueClient(node)}}else{let value=info.evaluator._evaluateBinding(inst,part,path,props,oldProps,hasPaths);applyBindingValue(inst,node,binding,part,value)}}function applyBindingValue(inst,node,binding,part,value){value=computeBindingValue(node,value,binding,part);if(Polymer.sanitizeDOMValue){value=Polymer.sanitizeDOMValue(value,binding.target,binding.kind,node)}if("attribute"==binding.kind){inst._valueToNodeAttribute(/** @type {Element} */node,value,binding.target)}else{let prop=binding.target;if(node.__isPropertyEffectsClient&&node.__dataHasAccessor&&node.__dataHasAccessor[prop]){if(!node[TYPES.READ_ONLY]||!node[TYPES.READ_ONLY][prop]){if(node._setPendingProperty(prop,value)){inst._enqueueClient(node)}}}else{inst._setUnmanagedPropertyToNode(node,prop,value)}}}function computeBindingValue(node,value,binding,part){if(binding.isCompound){let storage=node.__dataCompoundStorage[binding.target];storage[part.compoundIndex]=value;value=storage.join("")}if("attribute"!==binding.kind){if("textContent"===binding.target||"value"===binding.target&&("input"===node.localName||"textarea"===node.localName)){value=value==void 0?"":value}}return value}function shouldAddListener(binding){return!!binding.target&&"attribute"!=binding.kind&&"text"!=binding.kind&&!binding.isCompound&&"{"===binding.parts[0].mode}function setupBindings(inst,templateInfo){let{nodeList,nodeInfoList}=templateInfo;if(nodeInfoList.length){for(let i=0;i<nodeInfoList.length;i++){let info=nodeInfoList[i],node=nodeList[i],bindings=info.bindings;if(bindings){for(let i=0,binding;i<bindings.length;i++){binding=bindings[i];setupCompoundStorage(node,binding);addNotifyListener(node,inst,binding)}}node.__dataHost=inst}}}function setupCompoundStorage(node,binding){if(binding.isCompound){let storage=node.__dataCompoundStorage||(node.__dataCompoundStorage={}),parts=binding.parts,literals=Array(parts.length);for(let j=0;j<parts.length;j++){literals[j]=parts[j].literal}let target=binding.target;storage[target]=literals;if(binding.literal&&"property"==binding.kind){node[target]=binding.literal}}}function addNotifyListener(node,inst,binding){if(binding.listenerEvent){let part=binding.parts[0];node.addEventListener(binding.listenerEvent,function(e){handleNotification(e,inst,binding.target,part.source,part.negate)})}}function createMethodEffect(model,sig,type,effectFn,methodInfo,dynamicFn){dynamicFn=sig.static||dynamicFn&&("object"!==typeof dynamicFn||dynamicFn[sig.methodName]);let info={methodName:sig.methodName,args:sig.args,methodInfo,dynamicFn};for(let i=0,arg;i<sig.args.length&&(arg=sig.args[i]);i++){if(!arg.literal){model._addPropertyEffect(arg.rootProperty,type,{fn:effectFn,info:info,trigger:arg})}}if(dynamicFn){model._addPropertyEffect(sig.methodName,type,{fn:effectFn,info:info})}}function runMethodEffect(inst,property,props,oldProps,info){let context=inst._methodHost||inst,fn=context[info.methodName];if(fn){let args=inst._marshalArgs(info.args,property,props);return fn.apply(context,args)}else if(!info.dynamicFn){console.warn("method `"+info.methodName+"` not defined")}}const emptyArray=[],IDENT="(?:"+"[a-zA-Z_$][\\w.:$\\-*]*"+")",NUMBER="(?:"+"[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?"+")",SQUOTE_STRING="(?:"+"'(?:[^'\\\\]|\\\\.)*'"+")",DQUOTE_STRING="(?:"+"\"(?:[^\"\\\\]|\\\\.)*\""+")",STRING="(?:"+SQUOTE_STRING+"|"+DQUOTE_STRING+")",ARGUMENT="(?:("+IDENT+"|"+NUMBER+"|"+STRING+")\\s*"+")",ARGUMENTS="(?:"+ARGUMENT+"(?:,\\s*"+ARGUMENT+")*"+")",ARGUMENT_LIST="(?:"+"\\(\\s*"+"(?:"+ARGUMENTS+"?"+")"+"\\)\\s*"+")",BINDING="("+IDENT+"\\s*"+ARGUMENT_LIST+"?"+")",OPEN_BRACKET="(\\[\\[|{{)"+"\\s*",CLOSE_BRACKET="(?:]]|}})",NEGATE="(?:(!)\\s*)?",EXPRESSION=OPEN_BRACKET+NEGATE+BINDING+CLOSE_BRACKET,bindingRegex=new RegExp(EXPRESSION,"g");function literalFromParts(parts){let s="";for(let i=0,literal;i<parts.length;i++){literal=parts[i].literal;s+=literal||""}return s}function parseMethod(expression){let m=expression.match(/([^\s]+?)\(([\s\S]*)\)/);if(m){let methodName=m[1],sig={methodName,static:!0,args:emptyArray};if(m[2].trim()){let args=m[2].replace(/\\,/g,"&comma;").split(",");return parseArgs(args,sig)}else{return sig}}return null}function parseArgs(argList,sig){sig.args=argList.map(function(rawArg){let arg=parseArg(rawArg);if(!arg.literal){sig.static=!1}return arg},this);return sig}function parseArg(rawArg){let arg=rawArg.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),a={name:arg,value:"",literal:!1},fc=arg[0];if("-"===fc){fc=arg[1]}if("0"<=fc&&"9">=fc){fc="#"}switch(fc){case"'":case"\"":a.value=arg.slice(1,-1);a.literal=!0;break;case"#":a.value=+arg;a.literal=!0;break;}if(!a.literal){a.rootProperty=Polymer.Path.root(arg);a.structured=Polymer.Path.isPath(arg);if(a.structured){a.wildcard=".*"==arg.slice(-2);if(a.wildcard){a.name=arg.slice(0,-2)}}}return a}function notifySplices(inst,array,path,splices){let splicesPath=path+".splices";inst.notifyPath(splicesPath,{indexSplices:splices});inst.notifyPath(path+".length",array.length);inst.__data[splicesPath]={indexSplices:null}}function notifySplice(inst,array,path,index,addedCount,removed){notifySplices(inst,array,path,[{index:index,addedCount:addedCount,removed:removed,object:array,type:"splice"}])}function upper(name){return name[0].toUpperCase()+name.substring(1)}Polymer.PropertyEffects=Polymer.dedupingMixin(superClass=>{const propertyEffectsBase=Polymer.TemplateStamp(Polymer.PropertyAccessors(superClass));class PropertyEffects extends propertyEffectsBase{constructor(){super();this.__isPropertyEffectsClient=!0;this.__dataCounter=0;this.__dataClientsReady;this.__dataPendingClients;this.__dataToNotify;this.__dataLinkedPaths;this.__dataHasPaths;this.__dataCompoundStorage;this.__dataHost;this.__dataTemp;this.__dataClientsInitialized;this.__data;this.__dataPending;this.__dataOld;this.__computeEffects;this.__reflectEffects;this.__notifyEffects;this.__propagateEffects;this.__observeEffects;this.__readOnly;this.__templateInfo}get PROPERTY_EFFECT_TYPES(){return TYPES}_initializeProperties(){super._initializeProperties();hostStack.registerHost(this);this.__dataClientsReady=!1;this.__dataPendingClients=null;this.__dataToNotify=null;this.__dataLinkedPaths=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1}_initializeProtoProperties(props){this.__data=Object.create(props);this.__dataPending=Object.create(props);this.__dataOld={}}_initializeInstanceProperties(props){let readOnly=this[TYPES.READ_ONLY];for(let prop in props){if(!readOnly||!readOnly[prop]){this.__dataPending=this.__dataPending||{};this.__dataOld=this.__dataOld||{};this.__data[prop]=this.__dataPending[prop]=props[prop]}}}_addPropertyEffect(property,type,effect){this._createPropertyAccessor(property,type==TYPES.READ_ONLY);let effects=ensureOwnEffectMap(this,type)[property];if(!effects){effects=this[type][property]=[]}effects.push(effect)}_removePropertyEffect(property,type,effect){let effects=ensureOwnEffectMap(this,type)[property],idx=effects.indexOf(effect);if(0<=idx){effects.splice(idx,1)}}_hasPropertyEffect(property,type){let effects=this[type];return!!(effects&&effects[property])}_hasReadOnlyEffect(property){return this._hasPropertyEffect(property,TYPES.READ_ONLY)}_hasNotifyEffect(property){return this._hasPropertyEffect(property,TYPES.NOTIFY)}_hasReflectEffect(property){return this._hasPropertyEffect(property,TYPES.REFLECT)}_hasComputedEffect(property){return this._hasPropertyEffect(property,TYPES.COMPUTE)}_setPendingPropertyOrPath(path,value,shouldNotify,isPathNotification){if(isPathNotification||Polymer.Path.root(Array.isArray(path)?path[0]:path)!==path){if(!isPathNotification){let old=Polymer.Path.get(this,path);path=/** @type {string} */Polymer.Path.set(this,path,value);if(!path||!super._shouldPropertyChange(path,value,old)){return!1}}this.__dataHasPaths=!0;if(this._setPendingProperty(/**@type{string}*/path,value,shouldNotify)){computeLinkedPaths(this,path,value);return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[path]){return this._setPendingProperty(/**@type{string}*/path,value,shouldNotify)}else{this[path]=value}}return!1}_setUnmanagedPropertyToNode(node,prop,value){if(value!==node[prop]||"object"==typeof value){node[prop]=value}}_setPendingProperty(property,value,shouldNotify){let isPath=this.__dataHasPaths&&Polymer.Path.isPath(property),prevProps=isPath?this.__dataTemp:this.__data;if(this._shouldPropertyChange(property,value,prevProps[property])){if(!this.__dataPending){this.__dataPending={};this.__dataOld={}}if(!(property in this.__dataOld)){this.__dataOld[property]=this.__data[property]}if(isPath){this.__dataTemp[property]=value}else{this.__data[property]=value}this.__dataPending[property]=value;if(isPath||this[TYPES.NOTIFY]&&this[TYPES.NOTIFY][property]){this.__dataToNotify=this.__dataToNotify||{};this.__dataToNotify[property]=shouldNotify}return!0}return!1}_setProperty(property,value){if(this._setPendingProperty(property,value,!0)){this._invalidateProperties()}}_invalidateProperties(){if(this.__dataReady){this._flushProperties()}}_enqueueClient(client){this.__dataPendingClients=this.__dataPendingClients||[];if(client!==this){this.__dataPendingClients.push(client)}}_flushProperties(){this.__dataCounter++;super._flushProperties();this.__dataCounter--}_flushClients(){if(!this.__dataClientsReady){this.__dataClientsReady=!0;this._readyClients();this.__dataReady=!0}else{this.__enableOrFlushClients()}}__enableOrFlushClients(){let clients=this.__dataPendingClients;if(clients){this.__dataPendingClients=null;for(let i=0,client;i<clients.length;i++){client=clients[i];if(!client.__dataEnabled){client._enableProperties()}else if(client.__dataPending){client._flushProperties()}}}}_readyClients(){this.__enableOrFlushClients()}setProperties(props,setReadOnly){for(let path in props){if(setReadOnly||!this[TYPES.READ_ONLY]||!this[TYPES.READ_ONLY][path]){this._setPendingPropertyOrPath(path,props[path],!0)}}this._invalidateProperties()}ready(){this._flushProperties();if(!this.__dataClientsReady){this._flushClients()}if(this.__dataPending){this._flushProperties()}}_propertiesChanged(currentProps,changedProps,oldProps){let hasPaths=this.__dataHasPaths;this.__dataHasPaths=!1;runComputedEffects(this,changedProps,oldProps,hasPaths);let notifyProps=this.__dataToNotify;this.__dataToNotify=null;this._propagatePropertyChanges(changedProps,oldProps,hasPaths);this._flushClients();runEffects(this,this[TYPES.REFLECT],changedProps,oldProps,hasPaths);runEffects(this,this[TYPES.OBSERVE],changedProps,oldProps,hasPaths);if(notifyProps){runNotifyEffects(this,notifyProps,changedProps,oldProps,hasPaths)}if(1==this.__dataCounter){this.__dataTemp={}}}_propagatePropertyChanges(changedProps,oldProps,hasPaths){if(this[TYPES.PROPAGATE]){runEffects(this,this[TYPES.PROPAGATE],changedProps,oldProps,hasPaths)}let templateInfo=this.__templateInfo;while(templateInfo){runEffects(this,templateInfo.propertyEffects,changedProps,oldProps,hasPaths,templateInfo.nodeList);templateInfo=templateInfo.nextTemplateInfo}}linkPaths(to,from){to=Polymer.Path.normalize(to);from=Polymer.Path.normalize(from);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[to]=from}unlinkPaths(path){path=Polymer.Path.normalize(path);if(this.__dataLinkedPaths){delete this.__dataLinkedPaths[path]}}notifySplices(path,splices){let info={path:""},array=/** @type {Array} */Polymer.Path.get(this,path,info);notifySplices(this,array,info.path,splices)}get(path,root){return Polymer.Path.get(root||this,path)}set(path,value,root){if(root){Polymer.Path.set(root,path,value)}else{if(!this[TYPES.READ_ONLY]||!this[TYPES.READ_ONLY][/** @type {string} */path]){if(this._setPendingPropertyOrPath(path,value,!0)){this._invalidateProperties()}}}}push(path,...items){let info={path:""},array=/** @type {Array}*/Polymer.Path.get(this,path,info),len=array.length,ret=array.push(...items);if(items.length){notifySplice(this,array,info.path,len,items.length,[])}return ret}pop(path){let info={path:""},array=/** @type {Array} */Polymer.Path.get(this,path,info),hadLength=!!array.length,ret=array.pop();if(hadLength){notifySplice(this,array,info.path,array.length,0,[ret])}return ret}splice(path,start,deleteCount,...items){let info={path:""},array=/** @type {Array} */Polymer.Path.get(this,path,info);if(0>start){start=array.length-Math.floor(-start)}else if(start){start=Math.floor(start)}let ret;if(2===arguments.length){ret=array.splice(start)}else{ret=array.splice(start,deleteCount,...items)}if(items.length||ret.length){notifySplice(this,array,info.path,start,items.length,ret)}return ret}shift(path){let info={path:""},array=/** @type {Array} */Polymer.Path.get(this,path,info),hadLength=!!array.length,ret=array.shift();if(hadLength){notifySplice(this,array,info.path,0,0,[ret])}return ret}unshift(path,...items){let info={path:""},array=/** @type {Array} */Polymer.Path.get(this,path,info),ret=array.unshift(...items);if(items.length){notifySplice(this,array,info.path,0,items.length,[])}return ret}notifyPath(path,value){let propPath;if(1==arguments.length){let info={path:""};value=Polymer.Path.get(this,path,info);propPath=info.path}else if(Array.isArray(path)){propPath=Polymer.Path.normalize(path)}else{propPath=/** @type{string} */path}if(this._setPendingPropertyOrPath(propPath,value,!0,!0)){this._invalidateProperties()}}_createReadOnlyProperty(property,protectedSetter){this._addPropertyEffect(property,TYPES.READ_ONLY);if(protectedSetter){this["_set"+upper(property)]=/** @this {PropertyEffects} */function(value){this._setProperty(property,value)}}}_createPropertyObserver(property,method,dynamicFn){let info={property,method,dynamicFn:!!dynamicFn};this._addPropertyEffect(property,TYPES.OBSERVE,{fn:runObserverEffect,info,trigger:{name:property}});if(dynamicFn){this._addPropertyEffect(/** @type {string} */method,TYPES.OBSERVE,{fn:runObserverEffect,info,trigger:{name:method}})}}_createMethodObserver(expression,dynamicFn){let sig=parseMethod(expression);if(!sig){throw new Error("Malformed observer expression '"+expression+"'")}createMethodEffect(this,sig,TYPES.OBSERVE,runMethodEffect,null,dynamicFn)}_createNotifyingProperty(property){this._addPropertyEffect(property,TYPES.NOTIFY,{fn:runNotifyEffect,info:{eventName:CaseMap.camelToDashCase(property)+"-changed",property:property}})}_createReflectedProperty(property){let attr=this.constructor.attributeNameForProperty(property);if("-"===attr[0]){console.warn("Property "+property+" cannot be reflected to attribute "+attr+" because \"-\" is not a valid starting attribute name. Use a lowercase first letter for the property instead.")}else{this._addPropertyEffect(property,TYPES.REFLECT,{fn:runReflectEffect,info:{attrName:attr}})}}_createComputedProperty(property,expression,dynamicFn){let sig=parseMethod(expression);if(!sig){throw new Error("Malformed computed expression '"+expression+"'")}createMethodEffect(this,sig,TYPES.COMPUTE,runComputedEffect,property,dynamicFn)}_marshalArgs(args,path,props){const data=this.__data;let values=[];for(let i=0,l=args.length;i<l;i++){let arg=args[i],name=arg.name,v;if(arg.literal){v=arg.value}else{if(arg.structured){v=Polymer.Path.get(data,name);if(v===void 0){v=props[name]}}else{v=data[name]}}if(arg.wildcard){let baseChanged=0===name.indexOf(path+"."),matches=0===path.indexOf(name)&&!baseChanged;values[i]={path:matches?path:name,value:matches?props[path]:v,base:v}}else{values[i]=v}}return values}static addPropertyEffect(property,type,effect){this.prototype._addPropertyEffect(property,type,effect)}static createPropertyObserver(property,method,dynamicFn){this.prototype._createPropertyObserver(property,method,dynamicFn)}static createMethodObserver(expression,dynamicFn){this.prototype._createMethodObserver(expression,dynamicFn)}static createNotifyingProperty(property){this.prototype._createNotifyingProperty(property)}static createReadOnlyProperty(property,protectedSetter){this.prototype._createReadOnlyProperty(property,protectedSetter)}static createReflectedProperty(property){this.prototype._createReflectedProperty(property)}static createComputedProperty(property,expression,dynamicFn){this.prototype._createComputedProperty(property,expression,dynamicFn)}static bindTemplate(template){return this.prototype._bindTemplate(template)}_bindTemplate(template,instanceBinding){let templateInfo=this.constructor._parseTemplate(template),wasPreBound=this.__templateInfo==templateInfo;if(!wasPreBound){for(let prop in templateInfo.propertyEffects){this._createPropertyAccessor(prop)}}if(instanceBinding){templateInfo=/** @type {!TemplateInfo} */Object.create(templateInfo);templateInfo.wasPreBound=wasPreBound;if(!wasPreBound&&this.__templateInfo){let last=this.__templateInfoLast||this.__templateInfo;this.__templateInfoLast=last.nextTemplateInfo=templateInfo;templateInfo.previousTemplateInfo=last;return templateInfo}}return this.__templateInfo=templateInfo}static _addTemplatePropertyEffect(templateInfo,prop,effect){let hostProps=templateInfo.hostProps=templateInfo.hostProps||{};hostProps[prop]=!0;let effects=templateInfo.propertyEffects=templateInfo.propertyEffects||{},propEffects=effects[prop]=effects[prop]||[];propEffects.push(effect)}_stampTemplate(template){hostStack.beginHosting(this);let dom=super._stampTemplate(template);hostStack.endHosting(this);let templateInfo=/** @type {!TemplateInfo} */this._bindTemplate(template,!0);templateInfo.nodeList=dom.nodeList;if(!templateInfo.wasPreBound){let nodes=templateInfo.childNodes=[];for(let n=dom.firstChild;n;n=n.nextSibling){nodes.push(n)}}dom.templateInfo=templateInfo;setupBindings(this,templateInfo);if(this.__dataReady){runEffects(this,templateInfo.propertyEffects,this.__data,null,!1,templateInfo.nodeList)}return dom}_removeBoundDom(dom){let templateInfo=dom.templateInfo;if(templateInfo.previousTemplateInfo){templateInfo.previousTemplateInfo.nextTemplateInfo=templateInfo.nextTemplateInfo}if(templateInfo.nextTemplateInfo){templateInfo.nextTemplateInfo.previousTemplateInfo=templateInfo.previousTemplateInfo}if(this.__templateInfoLast==templateInfo){this.__templateInfoLast=templateInfo.previousTemplateInfo}templateInfo.previousTemplateInfo=templateInfo.nextTemplateInfo=null;let nodes=templateInfo.childNodes;for(let i=0,node;i<nodes.length;i++){node=nodes[i];node.parentNode.removeChild(node)}}static _parseTemplateNode(node,templateInfo,nodeInfo){let noted=super._parseTemplateNode(node,templateInfo,nodeInfo);if(node.nodeType===Node.TEXT_NODE){let parts=this._parseBindings(node.textContent,templateInfo);if(parts){node.textContent=literalFromParts(parts)||" ";addBinding(this,templateInfo,nodeInfo,"text","textContent",parts);noted=!0}}return noted}static _parseTemplateNodeAttribute(node,templateInfo,nodeInfo,name,value){let parts=this._parseBindings(value,templateInfo);if(parts){let origName=name,kind="property";if(capitalAttributeRegex.test(name)){kind="attribute"}else if("$"==name[name.length-1]){name=name.slice(0,-1);kind="attribute"}let literal=literalFromParts(parts);if(literal&&"attribute"==kind){if("class"==name&&node.hasAttribute("class")){literal+=" "+node.getAttribute(name)}node.setAttribute(name,literal)}if("input"===node.localName&&"value"===origName){node.setAttribute(origName,"")}node.removeAttribute(origName);if("property"===kind){name=Polymer.CaseMap.dashToCamelCase(name)}addBinding(this,templateInfo,nodeInfo,kind,name,parts,literal);return!0}else{return super._parseTemplateNodeAttribute(node,templateInfo,nodeInfo,name,value)}}static _parseTemplateNestedTemplate(node,templateInfo,nodeInfo){let noted=super._parseTemplateNestedTemplate(node,templateInfo,nodeInfo),hostProps=nodeInfo.templateInfo.hostProps,mode="{";for(let source in hostProps){let parts=[{mode,source,dependencies:[source]}];addBinding(this,templateInfo,nodeInfo,"property","_host_"+source,parts)}return noted}static _parseBindings(text,templateInfo){let parts=[],lastIndex=0,m;while(null!==(m=bindingRegex.exec(text))){if(m.index>lastIndex){parts.push({literal:text.slice(lastIndex,m.index)})}let mode=m[1][0],negate=!!m[2],source=m[3].trim(),customEvent=!1,notifyEvent="",colon=-1;if("{"==mode&&0<(colon=source.indexOf("::"))){notifyEvent=source.substring(colon+2);source=source.substring(0,colon);customEvent=!0}let signature=parseMethod(source),dependencies=[];if(signature){let{args,methodName}=signature;for(let i=0,arg;i<args.length;i++){arg=args[i];if(!arg.literal){dependencies.push(arg)}}let dynamicFns=templateInfo.dynamicFns;if(dynamicFns&&dynamicFns[methodName]||signature.static){dependencies.push(methodName);signature.dynamicFn=!0}}else{dependencies.push(source)}parts.push({source,mode,negate,customEvent,signature,dependencies,event:notifyEvent});lastIndex=bindingRegex.lastIndex}if(lastIndex&&lastIndex<text.length){let literal=text.substring(lastIndex);if(literal){parts.push({literal:literal})}}if(parts.length){return parts}else{return null}}static _evaluateBinding(inst,part,path,props,oldProps,hasPaths){let value;if(part.signature){value=runMethodEffect(inst,path,props,oldProps,part.signature)}else if(path!=part.source){value=Polymer.Path.get(inst,part.source)}else{if(hasPaths&&Polymer.Path.isPath(path)){value=Polymer.Path.get(inst,path)}else{value=inst.__data[path]}}if(part.negate){value=!value}return value}}PropertyEffectsType=PropertyEffects;return PropertyEffects});let hostStack={stack:[],registerHost(inst){if(this.stack.length){let host=this.stack[this.stack.length-1];host._enqueueClient(inst)}},beginHosting(inst){this.stack.push(inst)},endHosting(inst){let stackLen=this.stack.length;if(stackLen&&this.stack[stackLen-1]==inst){this.stack.pop()}}}})();</script><script>(function(){'use strict';Polymer.telemetry={instanceCount:0,registrations:[],_regLog:function(prototype){console.log("["+prototype.is+"]: registered")},register:function(prototype){this.registrations.push(prototype);Polymer.log&&this._regLog(prototype)},dumpRegistrations:function(){this.registrations.forEach(this._regLog)}}})();</script><script>(function(){'use strict';function normalizeProperties(props){const output={};for(let p in props){const o=props[p];output[p]="function"===typeof o?{type:o}:o}return output}Polymer.PropertiesMixin=Polymer.dedupingMixin(superClass=>{const base=Polymer.PropertiesChanged(superClass);function superPropertiesClass(constructor){const superCtor=Object.getPrototypeOf(constructor);return superCtor.prototype instanceof PropertiesMixin?/** @type {PropertiesMixinConstructor} */superCtor:null}function ownProperties(constructor){if(!constructor.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",constructor))){let props=null;if(constructor.hasOwnProperty(JSCompiler_renameProperty("properties",constructor))){const properties=constructor.properties;if(properties){props=normalizeProperties(properties)}}constructor.__ownProperties=props}return constructor.__ownProperties}class PropertiesMixin extends base{static get observedAttributes(){if(!this.hasOwnProperty("__observedAttributes")){Polymer.telemetry.register(this.prototype);const props=this._properties;this.__observedAttributes=props?Object.keys(props).map(p=>this.attributeNameForProperty(p)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const superCtor=superPropertiesClass(/** @type {PropertiesMixinConstructor} */this);if(superCtor){superCtor.finalize()}this.__finalized=!0;this._finalizeClass()}}static _finalizeClass(){const props=ownProperties(/** @type {PropertiesMixinConstructor} */this);if(props){this.createProperties(props)}}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const superCtor=superPropertiesClass(/** @type {PropertiesMixinConstructor} */this);this.__properties=Object.assign({},superCtor&&superCtor._properties,ownProperties(/** @type {PropertiesMixinConstructor} */this))}return this.__properties}static typeForProperty(name){const info=this._properties[name];return info&&info.type}_initializeProperties(){Polymer.telemetry.instanceCount++;this.constructor.finalize();super._initializeProperties()}connectedCallback(){if(super.connectedCallback){super.connectedCallback()}this._enableProperties()}disconnectedCallback(){if(super.disconnectedCallback){super.disconnectedCallback()}}}return PropertiesMixin})})();</script><script>(function(){'use strict';const builtCSS=window.ShadyCSS&&window.ShadyCSS.cssBuild;Polymer.ElementMixin=Polymer.dedupingMixin(base=>{const polymerElementBase=Polymer.PropertiesMixin(Polymer.PropertyEffects(base));function propertyDefaults(constructor){if(!constructor.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",constructor))){constructor.__propertyDefaults=null;let props=constructor._properties;for(let p in props){let info=props[p];if("value"in info){constructor.__propertyDefaults=constructor.__propertyDefaults||{};constructor.__propertyDefaults[p]=info}}}return constructor.__propertyDefaults}function ownObservers(constructor){if(!constructor.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",constructor))){constructor.__ownObservers=constructor.hasOwnProperty(JSCompiler_renameProperty("observers",constructor))?/** @type {PolymerElementConstructor} */constructor.observers:null}return constructor.__ownObservers}function createPropertyFromConfig(proto,name,info,allProps){if(info.computed){info.readOnly=!0}if(info.computed&&!proto._hasReadOnlyEffect(name)){proto._createComputedProperty(name,info.computed,allProps)}if(info.readOnly&&!proto._hasReadOnlyEffect(name)){proto._createReadOnlyProperty(name,!info.computed)}if(info.reflectToAttribute&&!proto._hasReflectEffect(name)){proto._createReflectedProperty(name)}if(info.notify&&!proto._hasNotifyEffect(name)){proto._createNotifyingProperty(name)}if(info.observer){proto._createPropertyObserver(name,info.observer,allProps[info.observer])}proto._addPropertyToAttributeMap(name)}function processElementStyles(klass,template,is,baseURI){if(!builtCSS){const templateStyles=template.content.querySelectorAll("style"),stylesWithImports=Polymer.StyleGather.stylesFromTemplate(template),linkedStyles=Polymer.StyleGather.stylesFromModuleImports(is),firstTemplateChild=template.content.firstElementChild;for(let idx=0,s;idx<linkedStyles.length;idx++){s=linkedStyles[idx];s.textContent=klass._processStyleText(s.textContent,baseURI);template.content.insertBefore(s,firstTemplateChild)}let templateStyleIndex=0;for(let i=0;i<stylesWithImports.length;i++){let s=stylesWithImports[i],templateStyle=templateStyles[templateStyleIndex];if(templateStyle!==s){s=s.cloneNode(!0);templateStyle.parentNode.insertBefore(s,templateStyle)}else{templateStyleIndex++}s.textContent=klass._processStyleText(s.textContent,baseURI)}}if(window.ShadyCSS){window.ShadyCSS.prepareTemplate(template,is)}}function getTemplateFromDomModule(is){let template=null;if(is&&Polymer.DomModule){template=Polymer.DomModule.import(is,"template");if(Polymer.strictTemplatePolicy&&!template){throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${is}`)}}return template}class PolymerElement extends polymerElementBase{static _finalizeClass(){super._finalizeClass();const observers=ownObservers(this);if(observers){this.createObservers(observers,this._properties)}this._prepareTemplate()}static _prepareTemplate(){let template=/** @type {PolymerElementConstructor} */this.template;if(template){if("string"===typeof template){let t=document.createElement("template");t.innerHTML=template;template=t}else if(!Polymer.legacyOptimizations){template=template.cloneNode(!0)}}this.prototype._template=template}static createProperties(props){for(let p in props){createPropertyFromConfig(this.prototype,p,props[p],props)}}static createObservers(observers,dynamicFns){const proto=this.prototype;for(let i=0;i<observers.length;i++){proto._createMethodObserver(observers[i],dynamicFns)}}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){this._template=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:getTemplateFromDomModule(/** @type {PolymerElementConstructor}*/this.is)||Object.getPrototypeOf(/** @type {PolymerElementConstructor}*/this.prototype).constructor.template}return this._template}static set template(value){this._template=value}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const meta=this.importMeta;if(meta){this._importPath=Polymer.ResolveUrl.pathFromUrl(meta.url)}else{const module=Polymer.DomModule&&Polymer.DomModule.import(/** @type {PolymerElementConstructor} */this.is);this._importPath=module&&module.assetpath||Object.getPrototypeOf(/** @type {PolymerElementConstructor}*/this.prototype).constructor.importPath}}return this._importPath}constructor(){super();this._template;this._importPath;this.rootPath;this.importPath;this.root;this.$}_initializeProperties(){this.constructor.finalize();this.constructor._finalizeTemplate(/** @type {!HTMLElement} */this.localName);super._initializeProperties();this.rootPath=Polymer.rootPath;this.importPath=this.constructor.importPath;let p$=propertyDefaults(this.constructor);if(!p$){return}for(let p in p$){let info=p$[p];if(!this.hasOwnProperty(p)){let value="function"==typeof info.value?info.value.call(this):info.value;if(this._hasAccessor(p)){this._setPendingProperty(p,value,!0)}else{this[p]=value}}}}static _processStyleText(cssText,baseURI){return Polymer.ResolveUrl.resolveCss(cssText,baseURI)}static _finalizeTemplate(is){const template=this.prototype._template;if(template&&!template.__polymerFinalized){template.__polymerFinalized=!0;const importPath=this.importPath,baseURI=importPath?Polymer.ResolveUrl.resolveUrl(importPath):"";processElementStyles(this,template,is,baseURI);this.prototype._bindTemplate(template)}}connectedCallback(){if(window.ShadyCSS&&this._template){window.ShadyCSS.styleElement(/** @type {!HTMLElement} */this)}super.connectedCallback()}ready(){if(this._template){this.root=this._stampTemplate(this._template);this.$=this.root.$}super.ready()}_readyClients(){if(this._template){this.root=this._attachDom(/** @type {StampedTemplate} */this.root)}super._readyClients()}_attachDom(dom){if(this.attachShadow){if(dom){if(!this.shadowRoot){this.attachShadow({mode:"open"})}this.shadowRoot.appendChild(dom);return this.shadowRoot}return null}else{throw new Error("ShadowDOM not available. "+"Polymer.Element can create dom as children instead of in "+"ShadowDOM by setting `this.root = this;` before `ready`.")}}updateStyles(properties){if(window.ShadyCSS){window.ShadyCSS.styleSubtree(/** @type {!HTMLElement} */this,properties)}}resolveUrl(url,base){if(!base&&this.importPath){base=Polymer.ResolveUrl.resolveUrl(this.importPath)}return Polymer.ResolveUrl.resolveUrl(url,base)}static _parseTemplateContent(template,templateInfo,nodeInfo){templateInfo.dynamicFns=templateInfo.dynamicFns||this._properties;return super._parseTemplateContent(template,templateInfo,nodeInfo)}}return PolymerElement});Polymer.updateStyles=function(props){if(window.ShadyCSS){window.ShadyCSS.styleDocument(props)}}})();</script><script>(function(){'use strict';class LiteralString{constructor(string){this.value=string.toString()}toString(){return this.value}}function literalValue(value){if(value instanceof LiteralString){return(/** @type {!LiteralString} */value.value)}else{throw new Error(`non-literal value passed to Polymer.htmlLiteral: ${value}`)}}function htmlValue(value){if(value instanceof HTMLTemplateElement){return(/** @type {!HTMLTemplateElement } */value.innerHTML)}else if(value instanceof LiteralString){return literalValue(value)}else{throw new Error(`non-template value passed to Polymer.html: ${value}`)}}Polymer.html=function html(strings,...values){const template=/** @type {!HTMLTemplateElement} */document.createElement("template");template.innerHTML=values.reduce((acc,v,idx)=>acc+htmlValue(v)+strings[idx+1],strings[0]);return template};Polymer.htmlLiteral=function(strings,...values){return new LiteralString(values.reduce((acc,v,idx)=>acc+literalValue(v)+strings[idx+1],strings[0]))}})();</script><script>(function(){'use strict';Polymer.Element=Polymer.ElementMixin(HTMLElement);Polymer.html=Polymer.html})();</script><script>(function(){'use strict';function mutablePropertyChange(inst,property,value,old,mutableData){let isObject;if(mutableData){isObject="object"===typeof value&&null!==value;if(isObject){old=inst.__dataTemp[property]}}let shouldChange=old!==value&&(old===old||value===value);if(isObject&&shouldChange){inst.__dataTemp[property]=value}return shouldChange}Polymer.MutableData=Polymer.dedupingMixin(superClass=>{class MutableData extends superClass{_shouldPropertyChange(property,value,old){return mutablePropertyChange(this,property,value,old,!0)}}return MutableData});Polymer.OptionalMutableData=Polymer.dedupingMixin(superClass=>{class OptionalMutableData extends superClass{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(property,value,old){return mutablePropertyChange(this,property,value,old,this.mutableData)}}return OptionalMutableData});Polymer.MutableData._mutablePropertyChange=mutablePropertyChange})();</script><script>(function(){'use strict';let newInstance=null;function HTMLTemplateElementExtension(){return newInstance}HTMLTemplateElementExtension.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:HTMLTemplateElementExtension,writable:!0}});const DataTemplate=Polymer.PropertyEffects(HTMLTemplateElementExtension),MutableDataTemplate=Polymer.MutableData(DataTemplate);function upgradeTemplate(template,constructor){newInstance=template;Object.setPrototypeOf(template,constructor.prototype);new constructor;newInstance=null}const base=Polymer.PropertyEffects(class{});class TemplateInstanceBase extends base{constructor(props){super();this._configureProperties(props);this.root=this._stampTemplate(this.__dataHost);let children=this.children=[];for(let n=this.root.firstChild;n;n=n.nextSibling){children.push(n);n.__templatizeInstance=this}if(this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__){this._showHideChildren(!0)}let options=this.__templatizeOptions;if(props&&options.instanceProps||!options.instanceProps){this._enableProperties()}}_configureProperties(props){let options=this.__templatizeOptions;if(options.forwardHostProp){for(let hprop in this.__hostProps){this._setPendingProperty(hprop,this.__dataHost["_host_"+hprop])}}for(let iprop in props){this._setPendingProperty(iprop,props[iprop])}}forwardHostProp(prop,value){if(this._setPendingPropertyOrPath(prop,value,!1,!0)){this.__dataHost._enqueueClient(this)}}_addEventListenerToNode(node,eventName,handler){if(this._methodHost&&this.__templatizeOptions.parentModel){this._methodHost._addEventListenerToNode(node,eventName,e=>{e.model=this;handler(e)})}else{let templateHost=this.__dataHost.__dataHost;if(templateHost){templateHost._addEventListenerToNode(node,eventName,handler)}}}_showHideChildren(hide){let c=this.children;for(let i=0,n;i<c.length;i++){n=c[i];if(!!hide!=!!n.__hideTemplateChildren__){if(n.nodeType===Node.TEXT_NODE){if(hide){n.__polymerTextContent__=n.textContent;n.textContent=""}else{n.textContent=n.__polymerTextContent__}}else if("slot"===n.localName){if(hide){n.__polymerReplaced__=document.createComment("hidden-slot");n.parentNode.replaceChild(n.__polymerReplaced__,n)}else{const replace=n.__polymerReplaced__;if(replace){replace.parentNode.replaceChild(n,replace)}}}else if(n.style){if(hide){n.__polymerDisplay__=n.style.display;n.style.display="none"}else{n.style.display=n.__polymerDisplay__}}}n.__hideTemplateChildren__=hide;if(n._showHideChildren){n._showHideChildren(hide)}}}_setUnmanagedPropertyToNode(node,prop,value){if(node.__hideTemplateChildren__&&node.nodeType==Node.TEXT_NODE&&"textContent"==prop){node.__polymerTextContent__=value}else{super._setUnmanagedPropertyToNode(node,prop,value)}}get parentModel(){let model=this.__parentModel;if(!model){let options;model=this;do{model=model.__dataHost.__dataHost}while((options=model.__templatizeOptions)&&!options.parentModel);this.__parentModel=model}return model}dispatchEvent(event){return!0}}TemplateInstanceBase.prototype.__dataHost;TemplateInstanceBase.prototype.__templatizeOptions;TemplateInstanceBase.prototype._methodHost;TemplateInstanceBase.prototype.__templatizeOwner;TemplateInstanceBase.prototype.__hostProps;const MutableTemplateInstanceBase=Polymer.MutableData(TemplateInstanceBase);function findMethodHost(template){let templateHost=template.__dataHost;return templateHost&&templateHost._methodHost||templateHost}function createTemplatizerClass(template,templateInfo,options){let base=options.mutableData?MutableTemplateInstanceBase:TemplateInstanceBase;if(Polymer.Templatize.mixin){base=Polymer.Templatize.mixin(base)}let klass=class extends base{};klass.prototype.__templatizeOptions=options;klass.prototype._bindTemplate(template);addNotifyEffects(klass,template,templateInfo,options);return klass}function addPropagateEffects(template,templateInfo,options){let userForwardHostProp=options.forwardHostProp;if(userForwardHostProp){let klass=templateInfo.templatizeTemplateClass;if(!klass){let base=options.mutableData?MutableDataTemplate:DataTemplate;klass=templateInfo.templatizeTemplateClass=class TemplatizedTemplate extends base{};let hostProps=templateInfo.hostProps;for(let prop in hostProps){klass.prototype._addPropertyEffect("_host_"+prop,klass.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:createForwardHostPropEffect(prop,userForwardHostProp)});klass.prototype._createNotifyingProperty("_host_"+prop)}}upgradeTemplate(template,klass);if(template.__dataProto){Object.assign(template.__data,template.__dataProto)}template.__dataTemp={};template.__dataPending=null;template.__dataOld=null;template._enableProperties()}}function createForwardHostPropEffect(hostProp,userForwardHostProp){return function forwardHostProp(template,prop,props){userForwardHostProp.call(template.__templatizeOwner,prop.substring("_host_".length),props[prop])}}function addNotifyEffects(klass,template,templateInfo,options){let hostProps=templateInfo.hostProps||{};for(let iprop in options.instanceProps){delete hostProps[iprop];let userNotifyInstanceProp=options.notifyInstanceProp;if(userNotifyInstanceProp){klass.prototype._addPropertyEffect(iprop,klass.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:createNotifyInstancePropEffect(iprop,userNotifyInstanceProp)})}}if(options.forwardHostProp&&template.__dataHost){for(let hprop in hostProps){klass.prototype._addPropertyEffect(hprop,klass.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:createNotifyHostPropEffect()})}}}function createNotifyInstancePropEffect(instProp,userNotifyInstanceProp){return function notifyInstanceProp(inst,prop,props){userNotifyInstanceProp.call(inst.__templatizeOwner,inst,prop,props[prop])}}function createNotifyHostPropEffect(){return function notifyHostProp(inst,prop,props){inst.__dataHost._setPendingPropertyOrPath("_host_"+prop,props[prop],!0,!0)}}Polymer.Templatize={templatize(template,owner,options){if(Polymer.strictTemplatePolicy&&!findMethodHost(template)){throw new Error("strictTemplatePolicy: template owner not trusted")}options=/** @type {!TemplatizeOptions} */options||{};if(template.__templatizeOwner){throw new Error("A <template> can only be templatized once")}template.__templatizeOwner=owner;const ctor=owner?owner.constructor:TemplateInstanceBase;let templateInfo=ctor._parseTemplate(template),baseClass=templateInfo.templatizeInstanceClass;if(!baseClass){baseClass=createTemplatizerClass(template,templateInfo,options);templateInfo.templatizeInstanceClass=baseClass}addPropagateEffects(template,templateInfo,options);let klass=class TemplateInstance extends baseClass{};klass.prototype._methodHost=findMethodHost(template);klass.prototype.__dataHost=template;klass.prototype.__templatizeOwner=owner;klass.prototype.__hostProps=templateInfo.hostProps;klass=/** @type {function(new:TemplateInstanceBase)} */klass;return klass},modelForElement(template,node){let model;while(node){if(model=node.__templatizeInstance){if(model.__dataHost!=template){node=model.__dataHost}else{return model}}else{node=node.parentNode}}return null}};Polymer.TemplateInstanceBase=TemplateInstanceBase})();</script><script>(function(){'use strict';class Debouncer{constructor(){this._asyncModule=null;this._callback=null;this._timer=null}setConfig(asyncModule,callback){this._asyncModule=asyncModule;this._callback=callback;this._timer=this._asyncModule.run(()=>{this._timer=null;debouncerQueue.delete(this);this._callback()})}cancel(){if(this.isActive()){this._cancelAsync();debouncerQueue.delete(this)}}_cancelAsync(){if(this.isActive()){this._asyncModule.cancel(/** @type {number} */this._timer);this._timer=null}}flush(){if(this.isActive()){this.cancel();this._callback()}}isActive(){return null!=this._timer}static debounce(debouncer,asyncModule,callback){if(debouncer instanceof Debouncer){debouncer._cancelAsync()}else{debouncer=new Debouncer}debouncer.setConfig(asyncModule,callback);return debouncer}}Polymer.Debouncer=Debouncer;let debouncerQueue=new Set;Polymer.enqueueDebouncer=function(debouncer){debouncerQueue.add(debouncer)};Polymer.flushDebouncers=function(){const didFlush=!!debouncerQueue.size;debouncerQueue.forEach(debouncer=>{try{debouncer.flush()}catch(e){setTimeout(()=>{throw e})}});return didFlush}})();</script><script>(function(){'use strict';Polymer.flush=function(){let shadyDOM,debouncers;do{shadyDOM=window.ShadyDOM&&ShadyDOM.flush();if(window.ShadyCSS&&window.ShadyCSS.ScopingShim){window.ShadyCSS.ScopingShim.flush()}debouncers=Polymer.flushDebouncers()}while(shadyDOM||debouncers)}})();</script><script>(function(){'use strict';let TemplateInstanceBase=Polymer.TemplateInstanceBase;const domRepeatBase=Polymer.OptionalMutableData(Polymer.Element);class DomRepeat extends domRepeatBase{static get is(){return"dom-repeat-banner"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!0,readOnly:!0},initialCount:{type:Number,observer:"__initializeChunking"},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super();this.__instances=[];this.__limit=1/0;this.__pool=[];this.__renderDebouncer=null;this.__itemsIdxToInstIdx={};this.__chunkCount=null;this.__lastChunkTime=null;this.__sortFn=null;this.__filterFn=null;this.__observePaths=null;this.__ctor=null;this.__isDetached=!0;this.template=null}disconnectedCallback(){super.disconnectedCallback();this.__isDetached=!0;for(let i=0;i<this.__instances.length;i++){this.__detachInstance(i)}}connectedCallback(){super.connectedCallback();this.style.display="none";if(this.__isDetached){this.__isDetached=!1;let parent=this.parentNode;for(let i=0;i<this.__instances.length;i++){this.__attachInstance(i,parent)}}}__ensureTemplatized(){if(!this.__ctor){let template=this.template=/** @type {HTMLTemplateElement} */this.querySelector("template");if(!template){let observer=new MutationObserver(()=>{if(this.querySelector("template")){observer.disconnect();this.__render()}else{throw new Error("dom-repeat requires a <template> child")}});observer.observe(this,{childList:!0});return!1}let instanceProps={};instanceProps[this.as]=!0;instanceProps[this.indexAs]=!0;instanceProps[this.itemsIndexAs]=!0;this.__ctor=Polymer.Templatize.templatize(template,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:instanceProps,forwardHostProp:function(prop,value){let i$=this.__instances;for(let i=0,inst;i<i$.length&&(inst=i$[i]);i++){inst.forwardHostProp(prop,value)}},notifyInstanceProp:function(inst,prop,value){if(Polymer.Path.matches(this.as,prop)){let idx=inst[this.itemsIndexAs];if(prop==this.as){this.items[idx]=value}let path=Polymer.Path.translate(this.as,`${JSCompiler_renameProperty("items",this)}.${idx}`,prop);this.notifyPath(path,value)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(functionOrMethodName){if("string"===typeof functionOrMethodName){let methodName=functionOrMethodName,obj=this.__getMethodHost();return function(){return obj[methodName].apply(obj,arguments)}}return functionOrMethodName}__sortChanged(sort){this.__sortFn=this.__functionFromPropertyValue(sort);if(this.items){this.__debounceRender(this.__render)}}__filterChanged(filter){this.__filterFn=this.__functionFromPropertyValue(filter);if(this.items){this.__debounceRender(this.__render)}}__computeFrameTime(rate){return Math.ceil(1e3/rate)}__initializeChunking(){if(this.initialCount){this.__limit=this.initialCount;this.__chunkCount=this.initialCount;this.__lastChunkTime=performance.now()}}__tryRenderChunk(){if(this.items&&this.__limit<this.items.length){this.__debounceRender(this.__requestRenderChunk)}}__requestRenderChunk(){requestAnimationFrame(()=>this.__renderChunk())}__renderChunk(){let currChunkTime=performance.now(),ratio=this._targetFrameTime/(currChunkTime-this.__lastChunkTime);this.__chunkCount=Math.round(this.__chunkCount*ratio)||1;this.__limit+=this.__chunkCount;this.__lastChunkTime=currChunkTime;this.__debounceRender(this.__render)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__itemsChanged(change){if(this.items&&!Array.isArray(this.items)){console.warn("dom-repeat expected array for `items`, found",this.items)}if(!this.__handleItemPath(change.path,change.value)){this.__initializeChunking();this.__debounceRender(this.__render)}}__handleObservedPaths(path){if(this.__sortFn||this.__filterFn){if(!path){this.__debounceRender(this.__render,this.delay)}else if(this.__observePaths){let paths=this.__observePaths;for(let i=0;i<paths.length;i++){if(0===path.indexOf(paths[i])){this.__debounceRender(this.__render,this.delay)}}}}}__debounceRender(fn,delay=0){this.__renderDebouncer=Polymer.Debouncer.debounce(this.__renderDebouncer,0<delay?Polymer.Async.timeOut.after(delay):Polymer.Async.microTask,fn.bind(this));Polymer.enqueueDebouncer(this.__renderDebouncer)}render(){this.__debounceRender(this.__render);Polymer.flush()}__render(){if(!this.__ensureTemplatized()){return}this.__applyFullRefresh();this.__pool.length=0;this._setRenderedItemCount(this.__instances.length);this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}));this.__tryRenderChunk()}__applyFullRefresh(){let items=this.items||[],isntIdxToItemsIdx=Array(items.length);for(let i=0;i<items.length;i++){isntIdxToItemsIdx[i]=i}if(this.__filterFn){isntIdxToItemsIdx=isntIdxToItemsIdx.filter((i,idx,array)=>this.__filterFn(items[i],idx,array))}if(this.__sortFn){isntIdxToItemsIdx.sort((a,b)=>this.__sortFn(items[a],items[b]))}const itemsIdxToInstIdx=this.__itemsIdxToInstIdx={};let instIdx=0;const limit=Math.min(isntIdxToItemsIdx.length,this.__limit);for(;instIdx<limit;instIdx++){let inst=this.__instances[instIdx],itemIdx=isntIdxToItemsIdx[instIdx],item=items[itemIdx];itemsIdxToInstIdx[itemIdx]=instIdx;if(inst){inst._setPendingProperty(this.as,item);inst._setPendingProperty(this.indexAs,instIdx);inst._setPendingProperty(this.itemsIndexAs,itemIdx);inst._flushProperties()}else{this.__insertInstance(item,instIdx,itemIdx)}}for(let i=this.__instances.length-1;i>=instIdx;i--){this.__detachAndRemoveInstance(i)}}__detachInstance(idx){let inst=this.__instances[idx];for(let i=0,el;i<inst.children.length;i++){el=inst.children[i];inst.root.appendChild(el)}return inst}__attachInstance(idx,parent){let inst=this.__instances[idx];parent.insertBefore(inst.root,this)}__detachAndRemoveInstance(idx){let inst=this.__detachInstance(idx);if(inst){this.__pool.push(inst)}this.__instances.splice(idx,1)}__stampInstance(item,instIdx,itemIdx){let model={};model[this.as]=item;model[this.indexAs]=instIdx;model[this.itemsIndexAs]=itemIdx;return new this.__ctor(model)}__insertInstance(item,instIdx,itemIdx){let inst=this.__pool.pop();if(inst){inst._setPendingProperty(this.as,item);inst._setPendingProperty(this.indexAs,instIdx);inst._setPendingProperty(this.itemsIndexAs,itemIdx);inst._flushProperties()}else{inst=this.__stampInstance(item,instIdx,itemIdx)}let beforeRow=this.__instances[instIdx+1],beforeNode=beforeRow?beforeRow.children[0]:this;this.parentNode.insertBefore(inst.root,beforeNode);this.__instances[instIdx]=inst;return inst}_showHideChildren(hidden){for(let i=0;i<this.__instances.length;i++){this.__instances[i]._showHideChildren(hidden)}}__handleItemPath(path,value){let itemsPath=path.slice(6),dot=itemsPath.indexOf("."),itemsIdx=0>dot?itemsPath:itemsPath.substring(0,dot);if(itemsIdx==parseInt(itemsIdx,10)){let itemSubPath=0>dot?"":itemsPath.substring(dot+1);this.__handleObservedPaths(itemSubPath);let instIdx=this.__itemsIdxToInstIdx[itemsIdx],inst=this.__instances[instIdx];if(inst){let itemPath=this.as+(itemSubPath?"."+itemSubPath:"");inst._setPendingPropertyOrPath(itemPath,value,!1,!0);inst._flushProperties()}return!0}}itemForElement(el){let instance=this.modelForElement(el);return instance&&instance[this.as]}indexForElement(el){let instance=this.modelForElement(el);return instance&&instance[this.indexAs]}modelForElement(el){return Polymer.Templatize.modelForElement(this.template,el)}}customElements.get(DomRepeat.is)||customElements.define(DomRepeat.is,DomRepeat);Polymer.DomRepeat=DomRepeat})();</script><script>(function(){'use strict';class DomIf extends Polymer.Element{static get is(){return"dom-if-banner"}static get template(){return null}static get properties(){return{if:{type:Boolean,observer:"__debounceRender"},restamp:{type:Boolean,observer:"__debounceRender"}}}constructor(){super();this.__renderDebouncer=null;this.__invalidProps=null;this.__instance=null;this._lastIf=!1;this.__ctor=null}__debounceRender(){this.__renderDebouncer=Polymer.Debouncer.debounce(this.__renderDebouncer,Polymer.Async.microTask,()=>this.__render());Polymer.enqueueDebouncer(this.__renderDebouncer)}disconnectedCallback(){super.disconnectedCallback();if(!this.parentNode||this.parentNode.nodeType==Node.DOCUMENT_FRAGMENT_NODE&&!this.parentNode.host){this.__teardownInstance()}}connectedCallback(){super.connectedCallback();this.style.display="none";if(this.if){this.__debounceRender()}}render(){Polymer.flush()}__render(){if(this.if){if(!this.__ensureInstance()){return}this._showHideChildren()}else if(this.restamp){this.__teardownInstance()}if(!this.restamp&&this.__instance){this._showHideChildren()}if(this.if!=this._lastIf){this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}));this._lastIf=this.if}}__ensureInstance(){let parentNode=this.parentNode;if(parentNode){if(!this.__ctor){let template=/** @type {HTMLTemplateElement} */this.querySelector("template");if(!template){let observer=new MutationObserver(()=>{if(this.querySelector("template")){observer.disconnect();this.__render()}else{throw new Error("dom-if requires a <template> child")}});observer.observe(this,{childList:!0});return!1}this.__ctor=Polymer.Templatize.templatize(template,this,{mutableData:!0,forwardHostProp:function(prop,value){if(this.__instance){if(this.if){this.__instance.forwardHostProp(prop,value)}else{this.__invalidProps=this.__invalidProps||Object.create(null);this.__invalidProps[Polymer.Path.root(prop)]=!0}}}})}if(!this.__instance){this.__instance=new this.__ctor;parentNode.insertBefore(this.__instance.root,this)}else{this.__syncHostProperties();let c$=this.__instance.children;if(c$&&c$.length){let lastChild=this.previousSibling;if(lastChild!==c$[c$.length-1]){for(let i=0,n;i<c$.length&&(n=c$[i]);i++){parentNode.insertBefore(n,this)}}}}}return!0}__syncHostProperties(){let props=this.__invalidProps;if(props){for(let prop in props){this.__instance._setPendingProperty(prop,this.__dataHost[prop])}this.__invalidProps=null;this.__instance._flushProperties()}}__teardownInstance(){if(this.__instance){let c$=this.__instance.children;if(c$&&c$.length){let parent=c$[0].parentNode;if(parent){for(let i=0,n;i<c$.length&&(n=c$[i]);i++){parent.removeChild(n)}}}this.__instance=null;this.__invalidProps=null}}_showHideChildren(){let hidden=this.__hideTemplateChildren__||!this.if;if(this.__instance){this.__instance._showHideChildren(hidden)}}}customElements.define(DomIf.is,DomIf);Polymer.DomIf=DomIf})();</script><dom-module-banner id="bannermatrix-banner"><script>class BannermatrixBannerWebapi extends Polymer.Element{static get is(){return"bannermatrix-banner"}static get properties(){return{WEB_API:{type:String,value:"https://bannermatrix.nwacdn.com/"},WEB_API_CACHE:{type:Array,value:[]},operatorId:{type:String,value:""},positionTag:{type:String,value:"",observer:"_reload"},pageTag:{type:String,value:"",observer:"_reload"},language:{type:String,value:"en"},loggedIn:{type:String,observer:"_loggedIn"},loaded:{type:Number,value:0,observer:"_loaded"},eventId:{type:String,value:""},tournamentId:{type:String,value:""},locationId:{type:String,value:""},sportId:{type:String,value:""},activeBettingOffers:{type:Array,value:[],observer:"_activeBettingOffers"},className:{type:String,value:""},bannerType:{type:String,value:""},sportbookId:{type:String,value:""},templateId:{type:Number,value:""},width:{type:String,value:""},height:{type:String,value:""},emUserId:{type:String,value:""},emUserRoles:{type:Array,value:"",observer:"_userRoles"},emUserSession:{type:String,value:""},apiMethod:{type:String,value:""},offerStatus:{type:String,value:"",observer:"_offerStatus"},translate:{type:Object,value:null,observer:"_reload"},eid:{type:String,value:""},tid:{type:String,value:""},bannerId:{type:String,value:""},slider_disable:{type:Array,value:[]},slider_disable_trigger:{type:String,value:"",observer:"_sliderDisableTrigger"},ws_session:{type:Object,value:null},last_hash:{type:Array,value:[]},textEvent:{type:String,value:""},postmessage:{type:String,value:""},oddsType:{type:String,value:""},apiEndpoint:{type:String,value:""}}}_userRoles(newV,oldV){var self=this;if(!self.fromInclude){if("undefined"!==typeof newV&&"undefined"!==typeof oldV){var userRole=self.lsGet("bmfe:userRole"),newVStr="[]";if(null!=newV){newVStr=JSON.stringify(newV)}if((null==oldV||oldV&&0==oldV.length)&&userRole&&"[]"!=userRole){oldV=JSON.parse(userRole)}if("true"==self.loggedIn&&newVStr!=JSON.stringify(oldV)){self.lsSet("bmfe:userRole",newVStr);if(self.waitTUserRole){clearTimeout(self.waitTUserRole);self.waitTUserRole={}}self.waitTUserRole=setTimeout(function(){self.showSkeleton();self.resetWidget();self.removeSession();self.startLoad()},500)}}if(null===self.emUserRoles||""===self.emUserRoles||"undefined"===self.emUserRoles){self.emUserRoles=[];self.setAttribute("em-user-roles",JSON.stringify(self.emUserRoles))}self.shadowRoot.querySelectorAll("#type_slider bannermatrix-banner").forEach(function(x){x.setAttribute("em-user-roles",JSON.stringify(self.emUserRoles))})}}_con(v,t){if("coupon"==t){if("1"==v){return""}else{var className="btnDisable";if("4"==v){className+=" btnRemoved"}else if("7"==v){className+=" btnSuspended"}return className}}else if("couponHide"==t){return!v?"cpItem-hide":""}}_con2(index,length,type){var className={score:"score_set_last",item:"item-last"};if("item"==type){if(length&&length.length&&index==length[length.length-1]){return className[type]?className[type]:""}else{return""}}else{return index===length-1?className[type]?className[type]:"":""}}_isEqualTo(title,string){return title==string}_isEqualTo2(title1,string1,title2,string2){return title1==string1||title2==string2}_isEqualTo3(title1,string1,title2,string2,title3,string3){return title1==string1||title2==string2||title3==string3}_isEqualAndEqual(title1,string1,title2,string2){return title1==string1&&title2==string2}_notOrEqual(title1,string1,title2,string2){return title1!=string1||title2==string2}_hideSection(cValue,value){if("default"==cValue&&""==value||"background"==cValue&&"buttonNav"!=value||cValue===value){return!1}else{return!0}}_isPendingLayout1(id){return["1","7","8"].includes(id.toString())}_isSportForLayout2(id){return["1","8"].includes(id.toString())}_isDetailBottom(id){return["9"].includes(id.toString())}_isEqualOrIncident(title,string,incident_tournament){return title==string||"true"==incident_tournament}_showInterval(timecount){if(""!=timecount){return!1}return!0}_isMenuMobile1(content,title){if(""!=content||""!=title){return!0}return!1}_isMenuMobile2(content,title){if(""==content&&""==title){return!0}return!1}_reload(newV,oldV){var self=this;if(!self.fromInclude){if(self.pageTag&&self.positionTag){if("string"==typeof newV&&"undefined"!==typeof oldV&&newV&&oldV!=newV||"object"==typeof newV&&"object"==typeof oldV&&oldV&&newV&&Object.keys(oldV).length!=Object.keys(newV).length){self.resetWidget();self.readyBanner()}}if(null===self.translate||""===self.translate||"undefined"===self.translate){self.translate={};self.setAttribute("translate",JSON.stringify(self.translate))}self.shadowRoot.querySelectorAll("#type_slider bannermatrix-banner").forEach(function(x){x.setAttribute("translate",JSON.stringify(self.translate))})}}_loggedIn(newV,oldV){var self=this;if(!self.fromInclude){var lsLogin=self.lsGet("bmfe:login");if(("undefined"===typeof oldV||"undefined"===oldV||""===oldV)&&"undefined"!==typeof newV&&"undefined"!==newV&&""!==newV){self.loggedIn="true"!=newV?"false":"true"}else if("undefined"!==typeof oldV&&"undefined"!==oldV&&""!==oldV&&"undefined"!==typeof newV&&"undefined"!==newV&&""!==newV){if("true"!=oldV){oldV="false"}if("true"!=newV){newV="false"}if(oldV!=newV){self.loggedIn=newV;self.lsSet("bmfe:login",newV);if("false"==newV){self.lsSet("bmfe:userRole","[]")}self.set("text.status_id","");self.waitTUserRole=setTimeout(function(){self.resetWidget();self.startLoad()},"true"==newV?1e3:0);if("true"==oldV&&"false"==newV){var lsBlockP=self.lsGet("bmfe:blockpopup","json"),iLogin=[],iLogout=lsBlockP.logout;iLogin=JSON.stringify(Array.from(new Set(iLogin)));iLogout=JSON.stringify(Array.from(new Set(iLogout)));self.lsSet("bmfe:blockpopup","{\"logout\":"+iLogout+", \"login\":"+iLogin+"}")}}}}}_activeBettingOffers(){var self=this;try{if(null===self.activeBettingOffers||""===self.activeBettingOffers||"undefined"===self.activeBettingOffers){self.activeBettingOffers=[];self.setAttribute("active-betting-offers",JSON.stringify(self.activeBettingOffers))}self.shadowRoot.querySelectorAll("#type_slider bannermatrix-banner").forEach(function(x){x.setAttribute("active-betting-offers",JSON.stringify(self.activeBettingOffers))});self.setActiveOdd();self.setBettingOffer(!1,!0)}catch(err){}}_loaded(newV,oldV){var self=this;if("undefined"!==typeof oldV){if(0==oldV&&1==newV){self.hideSkeleton()}if(1==oldV&&0==newV){self.showSkeleton()}}else{if(0==newV){var screenW=window.innerWidth;if(self.width){self.$.skeletonMain.style.width=self.width;screenW=self.width.replace("px","")}if(400>=screenW&&300<screenW&&0!=screenW){self.$.skeletonMain.classList.add("widget-mobile-xs");self.$.skeletonMain.classList.remove("widget-mobile-xxs")}else if(300>=screenW&&0!=screenW){self.$.skeletonMain.classList.add("widget-mobile-xs");self.$.skeletonMain.classList.add("widget-mobile-xxs")}else{self.$.skeletonMain.classList.remove("widget-mobile-xs");self.$.skeletonMain.classList.remove("widget-mobile-xxs")}if(576>screenW){self.$.skeletonMain.classList.add("widget-mobile");self.$.skeletonMain.classList.remove("widget-tablet");self.$.skeletonMain.classList.remove("widget-desktop")}else if(576<=screenW&&767>screenW){self.$.skeletonMain.classList.remove("widget-mobile");self.$.skeletonMain.classList.add("widget-tablet");self.$.skeletonMain.classList.remove("widget-desktop")}else{self.$.skeletonMain.classList.remove("widget-mobile");self.$.skeletonMain.classList.remove("widget-tablet");self.$.skeletonMain.classList.add("widget-desktop")}var i=0,wait=setInterval(function(){i++;if(null==self.widget_position_id){if(1e3<i){clearInterval(wait)}}else{clearInterval(wait);(async()=>{var check_first_banner="";if(0!=self.widget_position_id){var lsParam=self.genLsParam(self.loggedIn),ls=self.lsGet("bmfe:"+self.language+"-"+lsParam,"json");if("undefined"!==typeof ls.maindata&&ls.maindata.data.length){await Promise.all([ls.maindata.data.forEach((item,i)=>{if(""==check_first_banner){if(1==item.status_id||2==item.status_id){check_first_banner=item.banner_id+"-"+item.event_id+"-"+self.language;self.haveEventCache=!0;self.hideSkeleton();self.showLoading=!1;self.getEventCache(check_first_banner)}else{check_first_banner="nocache"}}})]).then(pData=>{if("nocache"==check_first_banner){self.setSkeleton()}})}else{self.setSkeleton()}}else{self.setSkeleton()}})();if(!self.fromInclude){var eventReady=new CustomEvent("BMFEready",{detail:{bannerId:self.bannerId,language:self.language,operatorId:self.operatorId,positionTag:self.positionTag,eventId:self.eventId,pageTag:self.pageTag,isLogin:self.loggedIn}});window.dispatchEvent(eventReady,{bubbles:!0,cancelable:!0})}}},15)}}}_sliderDisableTrigger(newV,oldV){var self=this;if(newV!=oldV){self.removeSliderNoOdds()}}_offerText(focus,scoreEventPart){var self=this;if(focus&&focus.sportId&&focus.metaData){if(focus.metaData.periodStatus){self.set("text.partName",focus.metaData.periodStatus)}else{self.set("text.partName","")}if(focus.metaData.t1MatchTime){var prefix="";if(self.widget_layout&&!["2","4","7","8"].includes(self.widget_layout.toString())){prefix=", "}var minute=focus.metaData.t1MatchTime.toString().replace(".0","");self.set("text.minute",prefix+minute+"'");self.minsec(minute)}self.filterEventPart("update",scoreEventPart,focus.sportId)}}_offerScores(focus){let scores=[];if(focus&&"live"==focus.state&&"active"==focus.status&&focus.metaData){if(focus.metaData.periods){scores=focus.metaData.periods}if(focus.metaData.emPeriods&&focus.metaData.emPeriods.length){scores=focus.metaData.emPeriods}}return scores}_offerStatus(newV,oldV){var self=this;if("update"==newV){setTimeout(function(){self.setAttribute("offer-status","")},2e3);if(newV!=oldV&&"offerlibrary"==self.apiMethod&&self.eid&&"undefined"!==typeof self.WEB_API_CACHE.offer_library_ready){const eventId=self.eid,focus=self.WEB_API_CACHE.offer_library.sport.matches.get(eventId);if(focus){const outcomes=focus.outcomes,eventScores=self._offerScores(focus);let scoreEventPart=[];(async()=>{await Promise.all([self.shadowRoot.querySelectorAll(".bgButton2").forEach(function(x){const index=outcomes.findIndex(v=>v.outcomeHash==x.getAttribute("data-offer"));var eId=x.getAttribute("id"),olddata=x.getAttribute("data-price"),newdata=outcomes[index].value.toString(),statusOdd=newdata>olddata?"up":newdata<olddata?"down":"";if(statusOdd){if(null!==self.shadowRoot.getElementById(eId)){var showprice=self.getNumber(newdata,2);x.querySelector(".odv").innerHTML=showprice;self.shadowRoot.getElementById(eId).setAttribute("data-price",outcomes[index].value);self.shadowRoot.getElementById(eId).classList.remove("btRed");self.shadowRoot.getElementById(eId).classList.remove("btGreen");self.shadowRoot.getElementById(eId).classList.add("up"==statusOdd?"btGreen":"btRed");self.shadowRoot.getElementById(eId).classList.add("ws"+eId);if(self.bettingClass[eId+self.widget_id]){clearTimeout(self.bettingClass[eId]);self.bettingClass[eId+self.widget_id]=null}self.bettingClass[eId+self.widget_id]=setTimeout(function(){if(null!==self.shadowRoot.getElementById(eId)){self.shadowRoot.querySelectorAll(".ws"+eId).forEach(function(z){z.classList.remove("up"==statusOdd?"btGreen":"btRed");z.classList.remove("ws"+eId)})}},5e3)}}}),eventScores.forEach((item,i)=>{if("undefined"!==typeof item.t1Scr&&"undefined"!==typeof item.t2Scr){scoreEventPart.push({eventPartKey:item.type,eventPartName:item.name,homeScore:item.t1Scr,awayScore:item.t2Scr})}})]).then(pData=>{if(scoreEventPart.length){self._offerText(focus,scoreEventPart)}})})()}}}}_wholeMatch(key,score_whole){if("WholeMatch"==key||"OrdinaryTime"==key&&"undefined"===typeof score_whole){return!0}return!1}sliderLoaded(){var self=this;if(self.bannerId&&self.parentNode){self.parentNode.classList.remove("bm_loading");self.parentNode.classList.add("bm_loaded")}}isSliderBanner(){var self=this;if(0==self.widget_position_id&&!("streaming"==self.bannerType&&self.sportbookId)&&"iframe"!=self.bannerType){return!0}else{return!1}}isSpecialBanner(){var self=this;if("streaming"==self.bannerType&&self.sportbookId||"iframe"==self.bannerType){return!0}else{return!1}}linkBoth(){var self=this;if(self.slider_setting&&self.slider_setting.link&&"undefined"!==typeof self.slider_setting.link[self.language]&&self.slider_setting.link[self.language].link_both){return!0}else{return!1}}convertStatusURL(url){var self=this,newURL=url;try{var{wDt}=self.getWidget();if(0==self.widget_position_id&&""==self.bannerId||Object.keys(wDt).length&&(3==wDt.type_id||2==wDt.type_id&&("undefined"===typeof wDt.tournament_event_id||0==wDt.tournament_event_id.length))||"undefined"===typeof wDt.event_id||"undefined"===typeof self.arrEvent[wDt.event_id]){return newURL}else{var wsdata=self.arrEvent[wDt.event_id],sportId=wsdata.sportId,sportName=wsdata.sportName,shortSportName=wsdata.shortSportName,venueName=wsdata.venueName,shortVenueName=wsdata.shortVenueName,shortParentName=wsdata.shortParentName;if(shortParentName){shortParentName=shortParentName.replaceAll(",","")}var name=wsdata.name;if(name){name=name.replaceAll(" - ","-")}var shortName=wsdata.shortName;if(shortName){shortName=shortName.replaceAll(" - ","-")}var id=wsdata.id,txtEvent=self.getTextEvent(1),txtLiveEvent=self.getTextEvent(2),checkUrl="/"+txtEvent+"/"+sportId+"/"+sportName+"/"+venueName+"/"+shortParentName+"/"+name+"/"+id+"/";checkUrl=checkUrl.replaceAll(" ","-").toLowerCase();var checkShortUrl="/"+txtEvent+"/"+sportId+"/"+shortSportName+"/"+shortVenueName+"/"+shortParentName+"/"+shortName+"/"+id+"/";checkShortUrl=checkShortUrl.replaceAll(" ","-").toLowerCase();var checkLiveUrl="/"+txtLiveEvent+"/"+sportId+"/"+sportName+"/"+venueName+"/"+shortParentName+"/"+name+"/"+id+"/";checkLiveUrl=checkLiveUrl.replaceAll(" ","-").toLowerCase();var checkShortLiveUrl="/"+txtLiveEvent+"/"+sportId+"/"+shortSportName+"/"+shortVenueName+"/"+shortParentName+"/"+shortName+"/"+id+"/";checkShortLiveUrl=checkShortLiveUrl.replaceAll(" ","-").toLowerCase();if(1==wsdata.statusId){if(url.includes(checkLiveUrl)){return newURL.replace(checkLiveUrl,checkUrl)}else if(url.includes(checkShortLiveUrl)){return newURL.replace(checkShortLiveUrl,checkShortUrl)}}else if(2==wsdata.statusId){if(url.includes(checkUrl)){return newURL.replace(checkUrl,checkLiveUrl)}else if(url.includes(checkShortUrl)){return newURL.replace(checkShortUrl,checkShortLiveUrl)}}return newURL}}catch(err){return newURL}}convertURL(url){var self=this,newURL="";if(0==url.indexOf("http")){newURL=url}else{var parentURL=window.location!=window.parent.location?document.referrer:document.location.href;if(parentURL){var domain=new URL(parentURL);if(domain.origin){if(0==url.indexOf("/")){newURL=domain.origin+""+url}else{newURL=domain.origin+"/"+url}}}}newURL=self.convertStatusURL(newURL);return newURL}hasWebP(){return new Promise(res=>{const webP=new Image;webP.src="data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA";webP.onload=webP.onerror=()=>{res(2===webP.height)}})}hasWebM(str){if(str){try{var url=new URL(str);if(url){var ext=url.pathname.split(".")[1];if(ext&&"webm"==ext.toLowerCase()){return!0}}}catch(err){}}return!1}randomID(){for(var charSet="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",randomString="",i=0,randomPoz;15>i;i++){randomPoz=Math.floor(Math.random()*charSet.length);randomString+=charSet.substring(randomPoz,randomPoz+1)}return randomString}randomRGBA(){var o=Math.round,r=Math.random,s=255;return"rgba("+o(r()*s)+","+o(r()*s)+","+o(r()*s)+",1)"}setActiveOdd(){var self=this,list=self.shadowRoot.querySelectorAll(".bgButton2");if(list.length){let setDefault=!1;if(self.marketsColumn&&!self.marketsColumn.length){setDefault=!0}list.forEach((item,i)=>{var id=item.getAttribute("data-offer");self.shadowRoot.querySelectorAll(".bgButton[data-offer=\""+id+"\"]").forEach(function(x){if(self.activeBettingOffers.includes(id)){x.classList.add("activeButton")}else{x.classList.remove("activeButton")}if(setDefault&&item.id){self.marketsColumn.push({id:item.id.replace("outcome_",""),name:item.querySelector(".oddButtonName").innerHTML,value:0,class:"disabled"})}})});self.set("offerActive",self.offerEquals())}}getEndpoint(){var self=this;if(self.apiEndpoint&&"undefined"!=self.apiEndpoint){var url=self.apiEndpoint;try{const basePathKey=new URL(self.apiEndpoint);if(!basePathKey.protocol||!basePathKey.host){return self.WEB_API}}catch(e){return self.WEB_API}if("/"!==url.slice(-1)){return`${url}/`}return url}else{return self.WEB_API}}outcomeOrder(btID,role,props={},homeParticipantId="",awayParticipantId="",price=""){var order=999,ocOrder=[];if("undefined"!==typeof btID&&btID){if("undefined"===typeof role&&"undefined"!==typeof homeParticipantId&&"undefined"!==typeof awayParticipantId){role="none";if("undefined"!==typeof props.participantId1){if(props.participantId1==homeParticipantId){role="home"}else if(props.participantId1==awayParticipantId){role="away"}}}if(-1!=["8","69","280","693"].indexOf(btID)){ocOrder=["home","draw","away"]}else if(-1!=["339","348"].indexOf(btID)){ocOrder=["home","none","away"]}else if(-1!=["9"].indexOf(btID)){ocOrder=["home-draw","home-away","away-draw"]}else if(-1!=["10","15","17","39","48","60","62","70","71","104","112","120","135","138","182","191","228","293","318","367","369","380","384","466","694"].indexOf(btID)){ocOrder=["home","away"]}else if(-1!=["47","92","97","100","118","143","159","179","185","193","194","204","206","207","229","230","254","278","283","290","322","323","324","325","326","327","328","334","340","377","392","533","537","538","543","548","549","561","572","573"].indexOf(btID)){ocOrder=["over","under"]}else if(-1!=["66","76","140"].indexOf(btID)){ocOrder=["yes","no"]}else if(-1!=["35","153","276","329"].indexOf(btID)){ocOrder=["odd","even"]}else if(-1!=["45"].indexOf(btID)){ocOrder=["home1-0","draw0-0","away0-1","home2-0","draw1-1","away0-2","home3-0","draw2-2","away0-3","home4-0","draw3-3","away0-4","home5-0","draw4-4","away0-5","home6-0","draw5-5","away0-6","home7-0","draw6-6","away0-7","home8-0","draw7-7","away0-8","home9-0","draw8-8","away0-9","home10-0","draw9-9","away0-10","home11-0","draw10-10","away0-11"];if("undefined"!==typeof props.param1&&"undefined"!==typeof props.param2){role=role+""+props.param1.toString()+"-"+props.param2.toString()}}if("undefined"!==typeof role&&ocOrder.length){role=role.replace("_","-");var index=ocOrder.indexOf(role);if(-1!=index){order=index+1}}else if(-1!=["30"].indexOf(btID)){order=price}}return order}genLsParam(loggedIn,eventId=""){var self=this,lsParam=self.positionTag+"-"+self.pageTag+"-"+loggedIn+"-";if(eventId){lsParam+=eventId}else{lsParam+=self.eventId.toString()}if((eventId||self.eventId)&&self.tournamentId){lsParam+="-"+self.tournamentId.toString();if(self.tournamentId&&self.locationId&&self.sportId){lsParam+="-"+self.locationId.toString()+"-"+self.sportId.toString()}}return lsParam}genCacheName(tid,id,eid,lang){var self=this,cName=id+"-"+eid+"-"+lang;if(4==tid){cName=id+"-recommend-"+lang}else if(6==tid){cName=id+"-popular-"+lang}else if(7==tid){cName=id+"-coupon-"+lang}else if(8==tid){cName=id+"-coupon-popular-"+lang}else if(9==tid){cName=id+"-coupon-betbuilder-"+lang}else if(11==tid){cName=id+"-coupon-prebetbuilder-"+lang;if(self.eventId){cName+="-"+self.eventId}if(self.templateId){cName+="-"+self.templateId}}else if(12==tid){cName=id+"-tournament-outright-"+lang}else if(16==tid){cName=id+"-coupon-oddboost-"+lang}else if(17==tid){cName=id+"-coupon-recommend-"+lang}return cName}getEventCache(cacheName,root=!0){var self=this,screenW=window.innerWidth,screenH=window.innerHeight;if(self.bannerId&&self.parentNode){screenW=self.parentNode.offsetWidth;screenH=self.parentNode.offsetHeight}var eCache=self.getEventLs(cacheName);if(eCache){self.cacheLoading=!0;self.setTypeBanner();if(self.bannerId&&(0==screenW||0==screenH)&&root){var i=0,wait=setInterval(function(){i++;if(self.parentNode){screenW=self.parentNode.offsetWidth;screenH=self.parentNode.offsetHeight}if(30<i||0!=screenW&&0!=screenH){clearInterval(wait);self.getEventCache(cacheName,!1)}},20)}else{if("undefined"!==typeof eCache.image_banner_set){if(eCache.image_banner_set&&eCache.image_banner_set.video){self.setVideo(eCache.image_banner_set.video,eCache.banner_config)}else{self.setImage(eCache.image_banner_set,screenW,screenH,!0)}}if("undefined"!==typeof eCache.background_color&&eCache.background_color){self.$.backgroundBanner.style.background=eCache.background_color}else{self.$.backgroundBanner.style.background=null}var bg_opacity=1;if("undefined"!==typeof eCache.background_image_transperent&&eCache.background_image_transperent){bg_opacity=eCache.background_image_transperent/100}self.$.backgroundBanner2.style.opacity=bg_opacity;if(!self.tid&&"undefined"!==typeof eCache.type_id&&eCache.type_id){self.tid=eCache.type_id.toString()}if(!self.eid&&"undefined"!==typeof eCache.eventId&&eCache.eventId){self.eid=eCache.eventId.toString()}if("undefined"!==typeof eCache.widget_layout&&eCache.widget_layout){if(eCache.widget_layout!=self.widget_layout){self.customStyleSetLayoutLS(eCache.widget_layout)}self.widget_layout=eCache.widget_layout.toString()}if("undefined"!==typeof eCache.title&&eCache.title){self.set("text.title",self.genTranslate(eCache.title))}if("undefined"!==typeof eCache.content&&eCache.content){self.set("text.content",self.genTranslate(eCache.content))}if("undefined"!==typeof eCache.homeName&&eCache.homeName){self.set("text.homeName",eCache.homeName)}if("undefined"!==typeof eCache.awayName&&eCache.awayName){self.set("text.awayName",eCache.awayName)}if("undefined"!==typeof eCache.time&&eCache.time){self.set("text.time",eCache.time)}if("undefined"!==typeof eCache.eventId&&eCache.eventId){self.set("text.event_id",eCache.eventId)}if("undefined"!==typeof eCache.eventName&&eCache.eventName){self.set("text.event_name",eCache.eventName)}if("undefined"!==typeof eCache.statusId&&eCache.statusId){self.set("text.status_id",eCache.statusId)}if("undefined"!==typeof eCache.statusName&&eCache.statusName){self.set("text.status",eCache.statusName)}if("undefined"!==typeof eCache.partName&&eCache.partName){self.set("text.partName",eCache.partName)}if("undefined"!==typeof eCache.devices){self.$.slideSource.classList.remove("d_desktop");self.$.slideSource.classList.remove("d_tablet");self.$.slideSource.classList.remove("d_mobile");if("undefined"!==typeof eCache.devices.desktop&&eCache.devices.desktop){self.$.slideSource.classList.add("d_desktop")}if("undefined"!==typeof eCache.devices.tablet&&eCache.devices.tablet){self.$.slideSource.classList.add("d_tablet")}if("undefined"!==typeof eCache.devices.mobile&&eCache.devices.mobile){self.$.slideSource.classList.add("d_mobile")}self.$.slideSource.classList.add("fadebanner")}if("undefined"!==typeof eCache.sport_id&&eCache.sport_id){self.set("text.sportId",eCache.sport_id)}if("undefined"!==typeof eCache.sport_name&&eCache.sport_name){self.set("text.sportName",eCache.sport_name)}if("undefined"!==typeof eCache.tournament_id&&eCache.tournament_id){self.set("text.tournamentId",eCache.tournament_id)}if("undefined"!==typeof eCache.tournament_name&&eCache.tournament_name){self.set("text.tournamentName",eCache.tournament_name)}if("undefined"!==typeof eCache.location_id&&eCache.location_id){self.set("text.countryId",eCache.location_id)}if("undefined"!==typeof eCache.location_name&&eCache.location_name){self.set("text.countryName",eCache.location_name)}if("undefined"!==typeof eCache.action_outcome&&eCache.action_outcome){if("undefined"!==typeof eCache.type_id&&["7","8","9","11","16","17"].includes(eCache.type_id.toString())){self.setOfferList(JSON.parse(eCache.action_outcome),eCache.type_id)}else{self.$.slidebanner.innerHTML=eCache.action_outcome}self.setActiveOdd()}if("undefined"!==typeof eCache.marketname&&eCache.marketname){self.set("text.marketname",self.getText(eCache.marketname));self.set("text.labelName",eCache.labelName);self.set("text.labelStyle",eCache.labelStyle)}if("undefined"!==typeof eCache.generate_link&&eCache.generate_link&&"undefined"!==typeof eCache.eventLink&&eCache.eventLink){self.$.buttonNavLayout.classList.add("showcursor");var target_link=eCache.generate_target,btn="<div class=\"no_link_btn\"><br><button class=\"btLink btLink"+self.bannerId+"\" onclick=\"this.getRootNode().host.handleClick('"+eCache.eventLink+"', '"+target_link+"')\"></button></div>";self.$.bannerContentMain.classList.add("showcursor");self.$.buttondetail.innerHTML=btn;self.$.buttonNav_btn.innerHTML=btn;if(!["7","8","9","11","12","16"].includes(eCache.type_id.toString())){self.$.bannerContentMain.classList.add("linkBanner");self.$.bannerContentMain.classList.add("cacheLinkBanner")}}if("undefined"!==typeof eCache.type_id&&"undefined"!==typeof self.height&&self.height&&["7","8","9","11","16","17"].includes(eCache.type_id.toString())){setTimeout(function(){var maxContentHeight=self.height.replace("px","")-self.shadowRoot.querySelector(".cpHeader").offsetHeight-self.shadowRoot.querySelector(".cpFooter").offsetHeight;self.shadowRoot.querySelector(".cpContent").style.maxHeight=maxContentHeight+"px"},30)}if("undefined"!==typeof eCache.marketsColumn&&eCache.marketsColumn&&eCache.marketsColumn.length){self.marketsColumn=eCache.marketsColumn.map(function(ocI){return{...ocI,class:"disabled"}})}self.onResize();self.cacheLoading=!1}}}offerEquals(){var self=this;let activeClass="";if(self.offerListIndex&&self.offerListIndex.length&&self.activeBettingOffers&&self.activeBettingOffers.length){var offerListIndex=self.offerListIndex.slice(),activeBet=self.activeBettingOffers.filter((v,i,arr)=>arr.indexOf(v)===i);activeClass=JSON.stringify(offerListIndex.sort())===JSON.stringify(activeBet.sort())?"btCouponActive":"";if(!activeClass&&self.WEB_API_CACHE&&self.WEB_API_CACHE.bettingOffer){let eventId="",offerEvent=[];offerListIndex.forEach(item=>{if(self.WEB_API_CACHE.bettingOffer[item]){eventId=self.WEB_API_CACHE.bettingOffer[item];if(-1==offerEvent.indexOf(eventId)){offerEvent.push(eventId)}}});if(1==offerEvent.length){eventId=offerEvent[0];let activeBettingOffers=[];self.activeBettingOffers.forEach(item=>{if(self.WEB_API_CACHE.bettingOffer[item]==eventId){activeBettingOffers.push(item)}});activeClass=JSON.stringify(offerListIndex.sort())===JSON.stringify(activeBettingOffers.sort())?"btCouponActive":""}}}return activeClass}setOfferList(list,tid,update=null){var self=this;if(Array.isArray(list)&&(update&&9!=tid||!update)){var change=!1,offerListOld=[...list],totalOdds=0,totalOldOdds=0,offerList=[],offerListIndex=[],oddsCA=[];self.set("offerList",[]);self.set("offerListIndex",[]);self.set("offerCheckedArray",[]);self.set("offerActive","");self.set("oddsCheckedArrayCount",0);self.set("oddsCheckedArrayCountOld",0);(async()=>{await Promise.all([offerListOld.forEach((item,i)=>{if(update){if(item.id==update.id){if(item.isAvailable!=update.changedProperties.isAvailable||item.statusId!=update.changedProperties.statusId){change=!0}item.isAvailable=update.changedProperties.isAvailable?!0:!1;item.statusId=update.changedProperties.statusId}if(item.ODDBOOST){if(item.ODDBOOST.id==update.id){if(item.ODDBOOST.isAvailable!=update.changedProperties.isAvailable||item.ODDBOOST.statusId!=update.changedProperties.statusId){change=!0}item.ODDBOOST.isAvailable=update.changedProperties.isAvailable?!0:!1;item.ODDBOOST.statusId=update.changedProperties.statusId}}}else{item.odds=0;if(16==tid&&item.ODDBOOST){item.ODDBOOST.odds=0}}offerList.push(item);if(16==tid){if(item.ODDBOOST&&item.ODDBOOST.isAvailable){totalOldOdds=(0==totalOldOdds?1:totalOldOdds)*item.odds;totalOdds=(0==totalOdds?1:totalOdds)*item.ODDBOOST.odds;oddsCA.push({eventId:item.MATCH.id,bettingOfferId:item.ODDBOOST.id,odd:item.ODDBOOST.odds});offerListIndex.push(item.ODDBOOST.id)}}else{if(item.isAvailable){totalOdds=(0==totalOdds?1:totalOdds)*item.odds;oddsCA.push({eventId:item.MATCH.id,bettingOfferId:item.id,odd:item.odds});offerListIndex.push(item.id)}}})]).then(cThen=>{self.setBettingOffer(offerList);self.set("offerList",offerList);self.set("offerListIndex",offerListIndex);self.set("offerCheckedArray",oddsCA);self.set("offerActive",self.offerEquals());if(9==tid){if(!update){self.set("oddsCheckedArrayCount",0)}}else{self.set("oddsCheckedArrayCount",totalOdds);self.set("oddsCheckedArrayCountOld",totalOldOdds)}if(update){setTimeout(function(){self.handleCouponCheckboxChange()},100)}if("8"==tid&&change&&!self.disableFallback){if("undefined"!==typeof self.subscribePopular.id&&self.subscribePopular.active){try{self.ws_session.unregister(self.subscribePopular)}catch(err){self.subscribePopular={}}}self.rmCacheE();self.resetWidget();self.startLoad()}})})()}}setSliderOption(cHeight,isSkeleton=!1,enable_loop){var self=this,height=cHeight+"px";if(0==cHeight){height="auto"}var perPage=1,perMove_desktop=1,perPage_tablet=1,perMove_tablet=1,perPage_mobile=1,perMove_mobile=1,setgap="0px",option={};if(isSkeleton){option={height:height,type:"slide",pagination:!1,cover:!1,focus:"left",arrows:!1,drag:!1,keyboard:!1}}else{option={height:height,type:"loop",pagination:!1,cover:!0,focus:"left",heightRatio:.5,keyboard:!1}}if(0==self.widget_position_id&&""==self.bannerId){if("undefined"!==typeof self.slider_layout){if("1"==self.slider_layout){}else if("2"==self.slider_layout){option.padding={right:"2rem"};if(!isSkeleton){option.heightRatio=.54}}else if("3"==self.slider_layout){option.padding={left:"2rem",right:"2rem"};if(!isSkeleton){option.heightRatio=.54}}else if("4"==self.slider_layout){perPage=self.slider_setting.slider_layout_multiple?self.slider_setting.slider_layout_multiple:"4";perMove_desktop=Math.floor(perPage);perPage_tablet=self.slider_setting.slider_layout_multiple_tablet?self.slider_setting.slider_layout_multiple_tablet:"3";if(3<perPage_tablet){perPage_tablet=3}perMove_tablet=Math.floor(perPage_tablet);perPage_mobile=self.slider_setting.slider_layout_multiple_tablet?self.slider_setting.slider_layout_multiple_mobile:"2";if(2<perPage_mobile){perPage_mobile=2}perMove_mobile=Math.floor(perPage_mobile);setgap=self.slider_setting.slider_layout_padding?self.slider_setting.slider_layout_padding:"0"+"px";if("undefined"!==typeof self.slider_setting.slider_layout_width&&0!=self.slider_setting.slider_layout_width){option.fixedWidth=self.slider_setting.slider_layout_width+"px";if(isSkeleton){option.type="loop"}}else{option.perPage=perMove_desktop;option.perMove=perMove_desktop;option.padding={right:self.sliderPadding(perPage)};option.breakpoints={1024:{perPage:perMove_tablet,perMove:perMove_tablet,padding:{right:self.sliderPadding(perPage_tablet)}},479:{perPage:perMove_mobile,perMove:perMove_mobile,padding:{right:self.sliderPadding(perPage_mobile)}}}}}}if(setgap){option.gap=setgap}else{option.gap=1}if(!isSkeleton){if("undefined"!==typeof self.slider_layout){self.$.type_slider.classList.add("slide_id_"+self.slider_layout)}else{self.$.type_slider.classList.add("slide_id_1")}self.$.type_slider.style.overflowY="auto";if("undefined"!==typeof self.height&&self.height){self.$.type_slider.style.height=self.height;self.$.skeletonMain.style.height=self.height;option.height=self.height}if(0==self.slider_setting.duration){option.autoplay=!1;option.speed=0}else{option.autoplay=self.slider_setting.slider_auto_slide;option.speed=1e3*self.slider_setting.animation_time;option.interval=1e3*self.slider_setting.duration;if(0>self.slider_setting.animation_time||2<self.slider_setting.animation_time){option.speed=2e3}}option.arrows=self.slider_layout_arrow;if(self.slider_layout_arrow&&null!=self.slider_layout_arrow){option.arrows=self.slider_layout_arrow}if(self.slider_setting.slider_layout_stop_end){option.rewind=!1}else{option.rewind=!0}if(1==self.slider_setting.transition_type){option.type="fade"}else{if(!option.rewind){option.type="slide"}else{if(enable_loop){option.type="loop"}else if("undefined"===typeof option.fixedWidth){option.type="slide";if("0%"!=self.sliderPadding(self.slider_setting.slider_layout_multiple)||"0%"!=self.sliderPadding(self.slider_setting.slider_layout_multiple_tablet)||"0%"!=self.sliderPadding(self.slider_setting.slider_layout_multiple_mobile)){option.type="loop"}else if(!self.slider_setting.slider_layout_arrow&&!self.slider_setting.slider_layout_bullets){option.type="loop"}}}}if(self.slider_setting.slider_layout_bullets){option.pagination=!0}else{option.pagination=!1}if("undefined"===typeof option.direction){option.direction="ltr"}}}return option}setSkeleton(){var self=this;if(self.bannerId){self.sliderSkelArray=[1]}self.loadedSkelOrDemoPage=!0;var cHeight="250";if("undefined"!==typeof self.height&&self.height){cHeight=self.height.replace("px","")}var option=self.setSliderOption(cHeight,!0);if(!self.demo){if(self.isSliderBanner()){if("block"!=self.$.skeletonMain.style.display){if(self.haveEventCache){}else{self.$.skeletonMain.style.display="block"}}}}try{self.shadowRoot.querySelector("#ul_slide_skeleton li:first-child").style.height=self.shadowRoot.querySelector("#type_slider_skeleton").clientHeight+"px"}catch(err){}self.primarySkeleton=new Splide(self.shadowRoot.querySelector("#primary-skeleton"),option).mount();if(!self.showLoading){self.hideSkeleton()}if(self.bannerId&&0==self.widget_position_id){self.$.bannermatrix.style.height="100%";var timeOut=30;if(0!=self.shadowRoot.querySelector("#skeletonMain").clientWidth&&0!=self.shadowRoot.querySelector("#skeletonMain").clientHeight){timeOut=0}var i=0,wait=setInterval(function(){i++;if(!self.haveEventCache&&(0==self.shadowRoot.querySelector("#skeletonMain").clientWidth||0==self.shadowRoot.querySelector("#skeletonMain").clientHeight)){if(500<i){clearInterval(wait)}}else{clearInterval(wait);var new_h=self.shadowRoot.querySelector("#skeletonMain").clientHeight,new_w=self.shadowRoot.querySelector("#skeletonMain").clientWidth;if(250>new_h&&""==self.height){new_h=250}try{if(null!=self.shadowRoot.querySelector("#ul_slide_skeleton li:first-child")){self.shadowRoot.querySelector("#ul_slide_skeleton li:first-child").style.width=new_w+"px";if(self.fromInclude){self.shadowRoot.querySelector("#ul_slide_skeleton li:first-child").style.height=new_h+"px";self.shadowRoot.querySelector("#ul_slide_skeleton").style.width="100%";self.shadowRoot.querySelector("#ul_slide_skeleton li:first-child").style.width="100%"}}self.primarySkeleton.on("active",function(e){if(null!=self.shadowRoot.querySelector("#ul_slide_skeleton li:first-child")){self.shadowRoot.querySelector("#ul_slide_skeleton li:first-child").style.width=new_w+"px";if(self.fromInclude){self.shadowRoot.querySelector("#ul_slide_skeleton li:first-child").style.height=new_h+"px"}}})}catch(err){}}},timeOut)}}resetWidget(){var self=this;self.set("text.minute","");self.set("text.timecount","");self.set("text.title","");self.set("text.content","");self.set("text.tournamentId","");self.set("text.tournamentName","");self.set("text.sportId","");self.set("text.sportName","");self.set("text.partName","");self.set("text.homeName","");self.set("text.awayName","");self.set("text.time","");self.set("eventScoreDetails ",[]);self.set("text.countryId","");self.set("text.countryName","");clearInterval(self.waitDuration);clearInterval(self.waitMinute);clearInterval(self.waitRepeat);clearInterval(self.waitChange);clearTimeout(self.waitTIncidentClose);clearTimeout(self.waitTShowName);clearTimeout(self.waitTDelayIncident);clearTimeout(self.waitTSliderCheck);self.$.slidebanner.innerHTML="";self.$.backgroundBanner.style.background=null;self.$.backgroundBanner2.style.backgroundImage=null;self.$.buttonNav_image.style.backgroundImage=null;self.$.backgroundBanner.setAttribute("data-bg-img-thumbnail",null);self.$.slideSource.classList.remove("d_desktop");self.$.slideSource.classList.remove("d_tablet");self.$.slideSource.classList.remove("d_mobile");self.$.type_slider.classList.remove("d_desktop");self.$.type_slider.classList.remove("d_tablet");self.$.type_slider.classList.remove("d_mobile");self.$.slideSource.classList.remove("fadebanner");if(self.$.videoControls.classList){self.$.videoControls.classList.add("videoControlsDisable")}self.shadowRoot.querySelectorAll(".nameMarketRender").forEach(function(x){x.classList.remove("opacity0")});self.last_score=null;self.last_yellow_card=null;self.last_red_card=null;self.last_corner=null;self.incident_market_id="";self.offerList=[];self.offerListIndex=[];self.marketsColumn=[];if(self.widget){if("undefined"!==typeof self.widget.content_arr){self.widget.content_arr=[]}if("undefined"!==typeof self.widget.content_data){self.widget.content_data=[]}}self.listInterval=null;if(self.ws_session){if("undefined"!==typeof self.subscribeCoupon.id&&self.subscribeCoupon.active){try{self.ws_session.unregister(self.subscribeCoupon)}catch(err){self.subscribeCoupon={}}}if("undefined"!==typeof self.subscribeCouponBBD.id&&self.subscribeCouponBBD.active){try{self.ws_session.unregister(self.subscribeCouponBBD)}catch(err){self.subscribeCouponBBD={}}}if("undefined"!==typeof self.subscribeTournamentOutright.id&&self.subscribeTournamentOutright.active){try{self.ws_session.unregister(self.subscribeTournamentOutright)}catch(err){self.subscribeTournamentOutright={}}}}self.resetMinsec()}decimalL(v,l=2){var self=this;const ex=Math.pow(10,l);return+Big(Math.floor(+Big(v).times(ex))).div(ex)}decimalF(v,has3Deci){var self=this;if(has3Deci&&1.01>v){return self.decimalL(v,3).toFixed(3)}return self.decimalL(v).toFixed(2)}getNumber(v,d){var self=this,separator=".";if(self.slider_setting&&self.slider_setting.extra_config){if(self.slider_setting.extra_config.separator){separator=self.slider_setting.extra_config.separator}}if("FRACTIONAL"==self.oddsType){if("undefined"===typeof v){return""}else if(0===v){return""}else{const frOdds={2:"1/1",3:"2/1",4:"3/1",5:"4/1",6:"5/1",7:"6/1",8:"7/1",9:"8/1",10:"9/1",11:"10/1",12:"11/1",13:"12/1",14:"13/1",15:"14/1",17:"16/1",19:"18/1",20:"19/1",21:"20/1",22:"21/1",23:"22/1",24:"23/1",26:"25/1",29:"28/1",31:"30/1",34:"33/1",36:"35/1",41:"40/1",46:"45/1",51:"50/1",56:"55/1",61:"60/1",66:"65/1",67:"66/1",71:"70/1",76:"75/1",81:"80/1",86:"85/1",91:"90/1",96:"95/1",100:"99/1",101:"100/1",126:"125/1",151:"150/1",176:"175/1",200:"2000/1",201:"200/1",226:"225/1",251:"250/1",276:"275/1",301:"300/1",326:"325/1",350:"3500/1",351:"350/1",401:"400/1",451:"450/1",500:"5000/1",501:"500/1",751:"750/1",1001:"1000/1",1.0002:"1/5000",1.0004:"1/2500",1.0006667:"1/1500",1.0007:"1/1500",1.001:"1/1000",1.002:"1/500",1.004:"1/250",1.005:"1/200",1.006:"1/150",1.0066667:"1/150",1.008:"1/125",1.01:"1/100",1.01515:"1/66",1.0151515:"1/66",1.015152:"1/66",1.0152:"1/66",1.02:"1/50",1.03:"1/33",1.0303:"1/33",1.030303:"1/33",1.04:"1/25",1.05:"1/20",1.062:"1/16",1.0625:"1/16",1.071:"1/14",1.0714:"1/14",1.0714285:"1/14",1.071429:"1/14",1.07143:"1/14",1.08:"2/25",1.0833:"1/12",1.083333:"1/12",1.0833334:"1/12",1.09:"1/11",1.090909:"1/11",1.0909091:"1/11",1.09091:"1/11",1.1:"1/10",1.111:"1/9",1.1111:"1/9",1.11111:"1/9",1.111111:"1/9",1.1111112:"1/9",1.125:"1/8",1.133:"2/15",1.13333:"2/15",1.133333:"2/15",1.1333333:"2/15",1.142:"1/7",1.142857:"1/7",1.1428572:"1/7",1.14286:"1/7",1.1429:"1/7",1.1538:"2/13",1.153846:"2/13",1.1538461:"2/13",1.15385:"2/13",1.155:"31/200",1.16:"4/25",1.1666666:"1/6",1.166667:"1/6",1.16667:"1/6",1.1667:"1/6",1.17:"17/100",1.181:"2/11",1.1818:"2/11",1.181818:"2/11",1.1818181:"2/11",1.18182:"2/11",1.19:"19/100",1.2:"1/5",1.21:"21/100",1.222:"2/9",1.2222:"2/9",1.22222:"2/9",1.222222:"2/9",1.2222222:"2/9",1.23:"23/100",1.24:"24/100",1.25:"1/4",1.266:"4/15",1.2666667:"4/15",1.266667:"4/15",1.26667:"4/15",1.27:"10/37",1.27027:"10/37",1.2702702:"10/37",1.285:"2/7",1.2857:"2/7",1.28571:"2/7",1.285714:"2/7",1.2857143:"2/7",1.29:"29/100",1.3:"3/10",1.307:"4/13",1.30769:"4/13",1.307692:"4/13",1.3076923:"4/13",1.31:"31/100",1.322:"10/31",1.32258:"10/31",1.3225807:"10/31",1.322581:"10/31",1.333:"1/3",1.3333:"1/3",1.33333:"1/3",1.333333:"1/3",1.3333334:"1/3",1.34:"17/50",1.357:"5/14",1.35714:"5/14",1.3571428:"5/14",1.357143:"5/14",1.36:"9/25",1.3636:"4/11",1.363636:"4/11",1.3636364:"4/11",1.36364:"4/11",1.37:"10/27",1.37037:"10/27",1.3703704:"10/27",1.384:"5/13",1.384615:"5/13",1.3846154:"5/13",1.38462:"5/13",1.39:"39/100",1.4:"2/5",1.416:"5/12",1.4166666:"5/12",1.416667:"5/12",1.41667:"5/12",1.425:"20/47",1.4255319:"20/47",1.42553:"20/47",1.425532:"20/47",1.434:"10/23",1.43478:"10/23",1.4347826:"10/23",1.434783:"10/23",1.4444:"4/9",1.44444:"4/9",1.444444:"4/9",1.4444444:"4/9",1.454:"5/11",1.4545455:"5/11",1.454546:"5/11",1.45455:"5/11",1.476:"10/21",1.47619:"10/21",1.4761904:"10/21",1.48:"12/25",1.5:"1/2",1.512:"20/39",1.51282:"20/39",1.5128205:"20/39",1.512821:"20/39",1.52:"13/25",1.531:"25/47",1.531915:"25/47",1.53192:"25/47",1.5333:"8/15",1.53333:"8/15",1.533333:"8/15",1.5333333:"8/15",1.55:"11/20",1.555:"5/9",1.5555556:"5/9",1.555556:"5/9",1.55556:"5/9",1.571:"4/7",1.5714:"4/7",1.57143:"4/7",1.5714285:"4/7",1.571429:"4/7",1.588:"10/17",1.588235:"10/17",1.5882353:"10/17",1.58824:"10/17",1.6:"6/10",1.606:"20/33",1.60606:"20/33",1.6060606:"20/33",1.606061:"20/33",1.61538:"8/13",1.6153846:"8/13",1.615385:"8/13",1.6154:"8/13",1.625:"5/8",1.645:"20/31",1.64516:"20/31",1.645161:"20/31",1.6451613:"20/31",1.65:"13/20",1.666:"4/6",1.6666666:"4/6",1.666667:"4/6",1.66667:"4/6",1.6667:"4/6",1.67:"67/100",1.689:"20/29",1.689655:"20/29",1.6896552:"20/29",1.68966:"20/29",1.7:"7/10",1.709:"100/141",1.7092198:"100/141",1.70922:"100/141",1.714:"5/7",1.7142857:"5/7",1.714286:"5/7",1.71429:"5/7",1.72727:"8/11",1.7272727:"8/11",1.727273:"8/11",1.729:"100/137",1.729927:"100/237",1.7299271:"100/137",1.72993:"100/137",1.74:"20/27",1.74074:"20/27",1.7407408:"20/27",1.740741:"20/27",1.75:"3/4",1.757:"25/33",1.7575758:"25/33",1.757576:"25/33",1.75758:"25/33",1.769:"10/13",1.76923:"10/13",1.7692307:"10/13",1.769231:"10/13",1.781:"25/32",1.78125:"25/32",1.793:"50/63",1.79365:"50/63",1.7936507:"50/63",1.793651:"50/63",1.8:"4/5",1.819:"50/61",1.81967:"50/61",1.819672:"50/61",1.8196721:"50/61",1.833:"5/6",1.8333:"5/6",1.83333:"5/6",1.833333:"5/6",1.8333334:"5/6",1.847:"50/59",1.8474576:"50/59",1.847458:"50/59",1.84746:"50/59",1.85:"17/20",1.854:"100/117",1.8547:"100/117",1.8547008:"100/117",1.854701:"100/117",1.869:"20/23",1.869565:"20/23",1.8695652:"20/23",1.86957:"20/23",1.877:"50/57",1.87719:"50/57",1.877193:"50/57",1.909:"10/11",1.90909:"10/11",1.9090909:"10/11",1.909091:"10/11",1.9091:"10/11",1.917:"100/109",1.91743:"100/109",1.917431:"100/109",1.9174312:"100/109",1.925:"25/27",1.925926:"25/27",1.92593:"25/27",1.934:"100/107",1.9345795:"100/107",1.93458:"100/107",1.943:"50/53",1.943396:"50/53",1.9433962:"50/53",1.9434:"50/53",1.95:"19/20",1.952:"20/21",1.95238:"20/21",1.9523809:"20/21",1.952381:"20/21",1.961:"25/26",1.961538:"25/26",1.9615384:"25/26",1.96154:"25/26",1.97:"100/103",1.97087:"100/103",1.9708738:"100/103",1.970874:"100/103",1.98:"50/51",1.98039:"50/51",1.980392:"50/51",1.9803921:"50/51","1.990":"100/101",1.990099:"100/101",1.9901:"100/101","2.0":"1/1",2.01:"101/100",2.02:"51/50",2.03:"103/100",2.04:"26/25",2.05:"21/20",2.06:"53/50",2.07:"107/100",2.08:"27/25",2.09:"109/100",2.1:"11/10",2.11:"111/100",2.12:"28/25",2.14:"57/50",2.15:"23/20",2.16:"29/25",2.18:"59/50",2.2:"6/5",2.22:"61/50",2.23:"123/100",2.25:"5/4",2.26:"63/50",2.27:"127/100",2.3:"13/10",2.31:"131/100",2.33:"133/100",2.34:"67/50",2.35:"27/20",2.36:"34/25",2.375:"11/8",2.39:"139/100",2.4:"7/5",2.45:"29/20",2.5:"6/4",2.54:"77/50",2.55:"31/20",2.58:"79/50",2.59:"159/100",2.6:"8/5",2.625:"13/8",2.63:"163/100",2.65:"33/20",2.68:"42/25",2.7:"17/10",2.73:"173/100",2.75:"7/4",2.77:"177/100",2.8:"9/5",2.85:"37/20",2.875:"15/8",2.9:"19/10",2.95:"39/20","3.0":"2/1",3.05:"41/20",3.1:"21/10",3.125:"85/40",3.15:"43/20",3.2:"11/5",3.25:"9/4",3.28:"57/25",3.3:"23/10",3.4:"12/5",3.5:"5/2",3.6:"13/5",3.7:"27/10",3.75:"11/4",3.8:"14/5",3.9:"29/10","4.0":"3/1",4.1:"31/10",4.15:"63/20",4.2:"16/5",4.25:"13/4",4.3:"33/10",4.333:"10/3",4.3333:"10/3",4.333334:"10/3",4.3333335:"10/3",4.4:"17/5",4.5:"7/2",4.6:"18/5",4.7:"37/10",4.75:"15/4",4.8:"19/5",4.9:"39/10","5.0":"4/1",5.25:"17/4",5.5:"9/2","6.0":"5/1",6.5:"11/2","7.0":"6/1",7.5:"13/2","8.0":"7/1",8.5:"15/2","9.0":"8/1",9.5:"17/2","10.0":"9/1","11.0":"10/1","12.0":"11/1","13.0":"12/1",13.25:"49/4","14.0":"13/1","15.0":"14/1","17.0":"16/1","19.0":"18/1","20.0":"19/1","21.0":"20/1","22.0":"21/1","23.0":"22/1","24.0":"23/1","26.0":"25/1","29.0":"28/1","31.0":"30/1","34.0":"33/1","36.0":"35/1","41.0":"40/1","46.0":"45/1","51.0":"50/1","56.0":"55/1","61.0":"60/1","66.0":"65/1","67.0":"66/1","71.0":"70/1","76.0":"75/1","81.0":"80/1","86.0":"85/1","91.0":"90/1","96.0":"95/1","101.0":"100/1","126.0":"125/1","151.0":"150/1","176.0":"175/1","201.0":"200/1","226.0":"225/1","251.0":"250/1","276.0":"275/1","301.0":"300/1","326.0":"325/1","351.0":"350/1","401.0":"400/1","451.0":"450/1","501.0":"500/1","751.0":"750/1","1001.0":"1000/1","2001.0":"2000/1","3501.0":"3500/1","5001.0":"5000/1"},nv=v+"";return frOdds[nv]?frOdds[nv]:`${self.decimalF(+Big(+nv).minus(1),!1)}/1`}}else if("AMERICAN"==self.oddsType){if("undefined"===typeof v){return""}else{if(0===v||1===v){return"0.00"}const pow14=+Big(10).pow(14),pow13=+Big(10).pow(13),pow12=+Big(10).pow(12),pow10=+Big(10).pow(10),odds=+Big(v).minus(1).times(pow14).round().div(pow14);if(1<odds){const newOdds=+Big(Math.floor(+Big(+odds).times(pow13).times(10))).div(pow12);return`+${newOdds.toFixed(0)}`}else if(1>odds){const newOdds=+Big(pow12).div(odds).round().div(pow10);return`-${+Big(Math.ceil(+newOdds)).toFixed(0)}`}return"+100"}}else{if("undefined"===typeof v){return""}else if(0===v){return"0.00".replace(".",separator)}var num=self.decimalL(v,2);if("undefined"===typeof num){return""}if("undefined"===typeof v.toString().split(".")[1]){num=(Math.round(100*num)/100).toFixed(2)}else if("undefined"!==typeof num.toString().split(".")[1]&&2>num.toString().split(".")[1].length){num=(Math.round(100*num)/100).toFixed(2)}if("undefined"===typeof num.toString().split(".")[1]){num=v;if("undefined"!==typeof v.toString().split(".")[1]){if(1>=v.toString().split(".")[0]){num=v.toString().split(".")[0]+"."+v.toString().split(".")[1].substr(0,3)}else{num=v.toString().split(".")[0]+"."+v.toString().split(".")[1].substr(0,2)}}}return num.toString().replace(".",separator)}}getMatch(v,t){if(v&&v.length&&v[0].MATCH){if("homeShortParticipantName"==t||"awayShortParticipantName"==t||"sportId"==t||"sportName"==t){return v[0].MATCH[t]}}return}generateImage(imageArr,w,h,resize=!1){var self=this;if("undefined"===typeof imageArr||0==imageArr.length||!w&&!h){return!1}var ratio=Math.fround(w/h).toFixed(2),image="",key="",keyO="",keyN="",arrRatio=[12,10.78,4.7,4.2,3.9,3.88,3.7,3,2.35,1.95,1.85,1.78,1.5,1.33,1.25,1.2,1,.75,.5],arrImage=[];arrImage[0]="undefined"!=typeof imageArr.image_12_1?imageArr.image_12_1:"";arrImage[1]="undefined"!=typeof imageArr.image_97_9?imageArr.image_97_9:"";arrImage[2]="undefined"!=typeof imageArr.image_4_7_1?imageArr.image_4_7_1:"";arrImage[3]="undefined"!=typeof imageArr.image_4_2_1?imageArr.image_4_2_1:"";arrImage[4]="undefined"!=typeof imageArr.image_3_9_1?imageArr.image_3_9_1:"";arrImage[5]="undefined"!=typeof imageArr.image_3_88_1?imageArr.image_3_88_1:"";arrImage[6]="undefined"!=typeof imageArr.image_3_7_1?imageArr.image_3_7_1:"";arrImage[7]="undefined"!=typeof imageArr.image_3_1?imageArr.image_3_1:"";arrImage[8]="undefined"!=typeof imageArr.image_2_35_1?imageArr.image_2_35_1:"";arrImage[9]="undefined"!=typeof imageArr.image_1_95_1?imageArr.image_1_95_1:"";arrImage[10]="undefined"!=typeof imageArr.image_1_85_1?imageArr.image_1_85_1:"";arrImage[11]="undefined"!=typeof imageArr.image_16_9?imageArr.image_16_9:"";arrImage[12]="undefined"!=typeof imageArr.image_3_2?imageArr.image_3_2:"";arrImage[13]="undefined"!=typeof imageArr.image_4_3?imageArr.image_4_3:"";arrImage[14]="undefined"!=typeof imageArr.image_5_4?imageArr.image_5_4:"";arrImage[15]="undefined"!=typeof imageArr.image_6_5?imageArr.image_6_5:"";arrImage[16]="undefined"!=typeof imageArr.image_1_1?imageArr.image_1_1:"";arrImage[17]="undefined"!=typeof imageArr.image_3_4?imageArr.image_3_4:"";arrImage[18]="undefined"!=typeof imageArr.image_1_2?imageArr.image_1_2:"";if(ratio){arrRatio.forEach((item,i)=>{if(""===key){if(ratio==item){key=i}else if(ratio>item){key=i?i-1:0;if(i){var diff=arrRatio[i-1]-item,percent=100*((ratio-item)/diff);if(33.33>percent){key++}}}}})}if(""===key){key=18}keyO=key;if(""!=arrImage[key]&&null!=arrImage[key]&&"NULL"!=arrImage[key]&&"null"!=arrImage[key]){image=arrImage[key];keyN=key}else{for(var i=1;18>=i;i++){if(image){break}else{if(18>=key+i){if(""!=arrImage[key+i]&&null!=arrImage[key+i]&&"NULL"!=arrImage[key+i]&&"null"!=arrImage[key+i]){image=arrImage[key+i];keyN=key+i;break}}if(0<=key-i){if(""!=arrImage[key-i]&&null!=arrImage[key-i]&&"NULL"!=arrImage[key-i]&&"null"!=arrImage[key-i]){image=arrImage[key-i];keyN=key-i;break}}}}}if(imageArr.resize&&image){let size="",hUp1=!1,hUp2=!1,hUp3=!1,hUp4=!1;if(h&&keyO>keyN&&arrRatio[keyN]){hUp1=h>425/arrRatio[keyN];hUp2=h>768/arrRatio[keyN];hUp3=h>1024/arrRatio[keyN];hUp4=h>1440/arrRatio[keyN]}if(425>=w){size="425";if(hUp4){size=""}else if(hUp3){size="1440"}else if(hUp2){size="1024"}else if(hUp1){size="768"}}else if(768>=w){size="768";if(hUp4){size=""}else if(hUp3){size="1440"}else if(hUp2){size="1024"}}else if(1024>=w){size="1024";if(hUp4){size=""}else if(hUp3){size="1440"}}else if(1440>=w){size="1440";if(hUp4){size=""}}if(size){try{var url=new URL(image);if(url){var ext=url.pathname.split(".")[1];if(ext){var name=image.split(`.${ext}`);if(2==name.length&&!name[1]){return`${name[0]}_${size}.${ext}`}}}}catch(err){}}}if(imageArr.webp&&self.webp_support&&image&&".gif"!=image.toLowerCase().substr(-4)){image=image+".webp"}return image}setVideo(src,config){var self=this;if(src){self.$.backgroundBanner2.style.display="none";var sources=self.$.backgroundBannerVideoSrc.getElementsByTagName("source");if(sources.length){self.$.backgroundBannerVideoSrc.classList.remove("hide");if(self.hasWebM(src)){sources[0].type="video/webm"}sources[0].src=src;self.$.backgroundBannerVideoSrc.load();if(config.video_play||config.video_sound){self.$.videoControls.classList.remove("videoControlsDisable");if(config.video_play){self.$.backgroundBannerVideoSrc.pause();self.$.videoControlPlay.classList.remove("disable");self.$.videoControlPlay.classList.remove("active")}if(config.video_sound){self.$.videoControlSound.classList.remove("disable")}}}}}setImage(data,screenW,screenH,showNav=!1){var self=this;if(data){if("3"==self.tid&&"buttonNav"==self.useSection){self.$.backgroundBanner2.style.display="none"}else{self.$.backgroundBanner2.style.display="block"}var image=self.generateImage(data,screenW,screenH);if(image&&"null"!=image&&null!=image){self.$.backgroundBanner2.querySelector("img.preload").src=image;if(showNav){self.$.buttonNav_image.querySelector("img.preload").src=image}}else if(self.slider_setting){image=self.generateImage(self.slider_setting,screenW,screenH);if(image&&"null"!=image&&null!=image){self.$.backgroundBanner2.querySelector("img.preload").src=image;if(showNav){self.$.buttonNav_image.querySelector("img.preload").src=image}}}}}positions(name){var id=1;if(-1!=["navbar","center-navbar"].indexOf(name)){id=4}else if(-1!=["popup","center-popup"].indexOf(name)){id=2}else if(-1!=["bottom","center-bottom"].indexOf(name)){id=1}else if(-1!=["slider","center-main-slider"].indexOf(name)){id=0}else{id=3}return id}onResize(){var self=this,screenW=window.innerWidth,screenH=window.innerHeight,change="";if(480>screenW&&"mobile"!=self.nowScreen){change="mobile"}else if(481<=screenW&&1024>=screenW&&"tablet"!=self.nowScreen){change="tablet"}else if(1024<screenW&&"desktop"!=self.nowScreen){change="desktop"}if(self.waitTScreensize){clearTimeout(self.waitTScreensize);self.waitTScreensize={}}self.waitTScreensize=setTimeout(function(){if(null!=self.shadowRoot.querySelector("#ul_slide li:first-child")){screenW=self.shadowRoot.querySelector("#ul_slide li:first-child").offsetWidth;screenH=self.shadowRoot.querySelector("#ul_slide li:first-child").offsetHeight}else{screenW=self.$.backgroundBanner.offsetWidth;screenH=self.$.backgroundBanner.offsetHeight}if(400>=screenW&&300<screenW&&0!=screenW){self.$.backgroundBanner.classList.add("widget-mobile-xs");self.$.backgroundBanner.classList.remove("widget-mobile-xxs");if(self.$.buttondetail.innerHTML){self.$.backgroundBanner.classList.add("linkcursor")}else{self.$.backgroundBanner.classList.remove("linkcursor")}}else if(300>=screenW&&0!=screenW){self.$.backgroundBanner.classList.add("widget-mobile-xs");self.$.backgroundBanner.classList.add("widget-mobile-xxs");if(self.$.buttondetail.innerHTML){self.$.backgroundBanner.classList.add("linkcursor")}else{self.$.backgroundBanner.classList.remove("linkcursor")}}else{self.$.backgroundBanner.classList.remove("widget-mobile-xs");self.$.backgroundBanner.classList.remove("widget-mobile-xxs");self.$.backgroundBanner.classList.remove("linkcursor")}if("3"==self.tid&&self.linkBoth()){if(self.$.buttondetail.innerHTML){self.$.bannerContentMain.classList.add("showcursor")}else{self.$.bannerContentMain.classList.remove("showcursor")}}if(0!=screenW){if(576>screenW){self.$.backgroundBanner.classList.add("widget-mobile");self.$.backgroundBanner.classList.remove("widget-tablet");self.$.backgroundBanner.classList.remove("widget-desktop")}else if(576<=screenW&&767>screenW){self.$.backgroundBanner.classList.remove("widget-mobile");self.$.backgroundBanner.classList.add("widget-tablet");self.$.backgroundBanner.classList.remove("widget-desktop")}else{self.$.backgroundBanner.classList.remove("widget-mobile");self.$.backgroundBanner.classList.remove("widget-tablet");self.$.backgroundBanner.classList.add("widget-desktop")}}if(self.bannerId&&change){self.rmListener()}if(""==self.bannerId&&change){self.shadowRoot.querySelectorAll("#ul_slide li").forEach(function(x){try{x.querySelector("bannermatrix-banner").setAttribute("forceremove","true")}catch(err){}});self.shadowRoot.querySelectorAll(".splide__pagination").forEach(el=>el.remove());self.nowScreen=change;self.destroySlider();self.setSkeleton();self.resetWidget();self.startLoad()}else{if(0<screenW&&0<screenH){var{wDt,bDt}=self.getWidget();if(Object.keys(bDt).length){var bg_color=bDt.background_color?bDt.background_color:"";if(""==bg_color&&self.slider_setting){bg_color=self.slider_setting.background_color}if(bDt.banner_image&&bDt.banner_image.video){self.setVideo(bDt.banner_image.video,bDt.banner_config)}else{self.setImage(bDt.banner_image,screenW,screenH,!0)}if(Object.keys(wDt).length&&["7","8","9","11","16","17"].includes(wDt.type_id.toString())){try{var maxContentHeight=screenH-self.shadowRoot.querySelector(".cpHeader").offsetHeight-self.shadowRoot.querySelector(".cpFooter").offsetHeight;if("undefined"!==typeof self.height&&self.height){self.shadowRoot.querySelector(".cpContent").style.maxHeight=maxContentHeight+"px"}}catch(err){}}}else{if(self.shadowRoot.querySelectorAll("#ul_slide li.splide__slide").length){self.shadowRoot.querySelectorAll("#ul_slide li.splide__slide").forEach((item,i)=>{if(null==item.querySelector("bannermatrix-banner")){var arrImg=JSON.parse(item.getAttribute("data-bg-img-thumbnail"));if(arrImg&&arrImg.video){}else{var image=self.generateImage(arrImg,screenW,screenH);if(image&&"null"!=image&&null!=image){try{item.querySelector(".li_image>img").src=image}catch(err){}}else if(self.slider_setting){image=self.generateImage(self.slider_setting,screenW,screenH);if(image&&"null"!=image&&null!=image){try{item.querySelector(".li_image>img").src=image}catch(err){}}}var opa=1;try{if(item.getAttribute("data-bg-transperent")){opa=item.getAttribute("data-bg-transperent")/100}item.querySelector(".li_image").style.opacity=opa;item.style.background=item.getAttribute("data-bg-color")}catch(err){}}}})}}}if(""==self.bannerId){if(self.shadowRoot.querySelectorAll("#ul_slide li.splide__slide").length){self.shadowRoot.querySelectorAll("#ul_slide li.splide__slide").forEach((item,i)=>{var arrImg=JSON.parse(self.shadowRoot.querySelectorAll("#ul_slide li.splide__slide")[i].getAttribute("data-bg-img-thumbnail"));if(self.slider_layout_thumbnail){var image=self.generateImage(arrImg,screenW,screenH);if(image&&"null"!=image&&null!=image){self.shadowRoot.querySelectorAll("#ul_slide2 li.splide__slide")[i].querySelector(".thumbstyle>img").src=image}else if(self.slider_setting){image=self.generateImage(self.slider_setting,screenW,screenH);if(image&&"null"!=image&&null!=image){self.shadowRoot.querySelectorAll("#ul_slide2 li.splide__slide")[i].querySelector(".thumbstyle>img").src=image}}}})}}}},20)}messageReceive(e){var self=this;let data=e.data;if(data){let type=data.type,payload=data.payload;switch(type){case"BEFE:sliderRefresh":case"BMFE:sliderRefresh":self.reloadSlider();break;}}}rmListener(){var self=this;if("undefined"!==typeof self.resizeListener){window.removeEventListener("resize",self.resizeListener)}if("undefined"!==typeof self.messageListener){window.removeEventListener("message",self.messageListener)}if("undefined"!==typeof self.regMatchOddsListener){self.removeEventListener("topicListen:register",self.regMatchOddsListener)}if("undefined"!==typeof self.regScoresListener){self.removeEventListener("topicListen:register",self.regScoresListener)}if("undefined"!==typeof self.regPopularListener){self.removeEventListener("topicListen:register",self.regPopularListener)}if("undefined"!==typeof self.regCouponListener){self.removeEventListener("topicListen:register",self.regCouponListener)}if("undefined"!==typeof self.regCouponBBDListener){self.removeEventListener("topicListen:register",self.regCouponBBDListener)}if("undefined"!==typeof self.regRecMatchOddsListener){self.removeEventListener("topicListen:register",self.regRecMatchOddsListener)}if("undefined"!==typeof self.regRecMatchsOddsListener){self.removeEventListener("topicListen:register",self.regRecMatchsOddsListener)}if("undefined"!==typeof self.dumpMatchOddsListener){self.removeEventListener("topicListen:initialDump",self.dumpMatchOddsListener)}if("undefined"!==typeof self.dumpScoresListener){self.removeEventListener("topicListen:initialDump",self.dumpScoresListener)}if("undefined"!==typeof self.dumpPopularListener){self.removeEventListener("topicListen:initialDump",self.dumpPopularListener)}if("undefined"!==typeof self.dumpCouponListener){self.removeEventListener("topicListen:initialDump",self.dumpCouponListener)}if("undefined"!==typeof self.dumpCouponBBDListener){self.removeEventListener("topicListen:initialDump",self.dumpCouponBBDListener)}if("undefined"!==typeof self.dumpRecMatchOddsListener){self.removeEventListener("topicListen:initialDump",self.dumpRecMatchOddsListener)}if("undefined"!==typeof self.dumpTotalBetsListener){self.removeEventListener("topicListen:initialDump",self.dumpTotalBetsListener)}if("undefined"!==typeof self.dumpRecommendListener){self.removeEventListener("topicListen:initialDump",self.dumpRecommendListener)}if("undefined"!==typeof self.dumpCouponPreListener){self.removeEventListener("topicListen:initialDump",self.dumpCouponPreListener)}if("undefined"!==typeof self.dumpRecMatchsOddsListener){self.removeEventListener("topicListen:initialDump",self.dumpRecMatchsOddsListener)}if(self.ws_session){if("undefined"!==typeof self.subscribeOdds.id&&self.subscribeOdds.active){try{self.ws_session.unregister(self.subscribeOdds)}catch(err){self.subscribeOdds={}}}if("undefined"!==typeof self.subscribeScore.id&&self.subscribeScore.active){try{self.ws_session.unregister(self.subscribeScore)}catch(err){self.subscribeScore={}}}if("undefined"!==typeof self.subscribePopular.id&&self.subscribePopular.active){try{self.ws_session.unregister(self.subscribePopular)}catch(err){self.subscribePopular={}}}if("undefined"!==typeof self.subscribeCoupon.id&&self.subscribeCoupon.active){try{self.ws_session.unregister(self.subscribeCoupon)}catch(err){self.subscribeCoupon={}}}if("undefined"!==typeof self.subscribeCouponBBD.id&&self.subscribeCouponBBD.active){try{self.ws_session.unregister(self.subscribeCouponBBD)}catch(err){self.subscribeCouponBBD={}}}if("undefined"!==typeof self.subscribeTournamentOutright.id&&self.subscribeTournamentOutright.active){try{self.ws_session.unregister(self.subscribeTournamentOutright)}catch(err){self.subscribeTournamentOutright={}}}}}async callAjax(url="",type="GET",data={},headers={"Content-Type":"application/json"}){try{if(0==url.indexOf("http")){const response=await fetch(url,{method:type,mode:"cors",credentials:"same-origin",redirect:"follow",referrerPolicy:"no-referrer",headers:headers,body:"GET"==type?null:JSON.stringify(data)});return response.json()}else{return{successful:0}}}catch(err){return{successful:0}}}callOpenWs(){var self=this,nowTime=new Date,nextLoad=new Date(nowTime.getTime()+5e3),loadWS=!1;if("undefined"===typeof self.WEB_API_CACHE.autobahn_connect&&!self.fromIncludeWS){loadWS=!0;try{if("undefined"===typeof autobahn){return!1}var webApiConnection=new autobahn.Connection({url:self.webapiUrl,realm:self.webapiRealm,auto_reconnect:!1,reconnect_interval:0,max_retries:10});self.WEB_API_CACHE.autobahn_connect={min_next_load:nextLoad,cachedata:null};webApiConnection.onopen=function(session){self.ws_session=session;if(self.WEB_API_CACHE.autobahn_connect){self.WEB_API_CACHE.autobahn_connect.cachedata=session}};webApiConnection.onmessage=function(event){};webApiConnection.onclose=function(event){if("unreachable"==event){if(self.WEB_API_CACHE.autobahn_connect){self.WEB_API_CACHE.autobahn_connect.cachedata="unreachable"}}else if("lost"==event){delete self.ws_session;delete self.WEB_API_CACHE.autobahn_connect;setTimeout(function(){self.callOpenWs();self.resetWidget();self.startLoad()},1e3)}else{if(self.WEB_API_CACHE.autobahn_connect){self.WEB_API_CACHE.autobahn_connect.cachedata=null}}};webApiConnection.onerror=function(err){if(self.WEB_API_CACHE.autobahn_connect){self.WEB_API_CACHE.autobahn_connect.cachedata="error"}};webApiConnection.open()}catch(err){}}else{if(!loadWS){if("undefined"!==typeof self.WEB_API_CACHE.autobahn_connect){var i=0,wait=setInterval(function(){i++;if(self.WEB_API_CACHE.autobahn_connect){if(null==self.WEB_API_CACHE.autobahn_connect.cachedata){if(200<i){clearInterval(wait)}}else if("error"==self.WEB_API_CACHE.autobahn_connect.cachedata){self.WEB_API_CACHE.autobahn_connect.cachedata=null;clearInterval(wait)}else if("unreachable"==self.WEB_API_CACHE.autobahn_connect.cachedata){if(200<i){self.WEB_API_CACHE.autobahn_connect.cachedata=null;clearInterval(wait)}}else{self.ws_session=self.WEB_API_CACHE.autobahn_connect.cachedata;clearInterval(wait)}}else{if(200<i){clearInterval(wait)}}},300)}else if("undefined"===typeof self.WEB_API_CACHE.autobahn_connect&&!0==self.fromIncludeWS){self.fromIncludeWS=!1;self.callOpenWs()}}}}loadGoogleTagManager(){var self=this;if("undefined"===typeof self.WEB_API_CACHE.gtm_connect){self.WEB_API_CACHE.gtm_connect="loaded";var target=document.head||document.body,scriptTag=document.createElement("script"),inlineScript=document.createTextNode(`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayerBanner','${self.googleTagManagerId}');`);scriptTag.appendChild(inlineScript);target.appendChild(scriptTag)}}loadAutobahn(){var self=this;if("undefined"!=self.webapiUrl&&self.webapiUrl&&"undefined"!=self.webapiRealm&&self.webapiRealm){if("undefined"===typeof autobahn){if("undefined"===typeof self.WEB_API_CACHE["autobahn.min.js"]){let myScript=document.createElement("script");myScript.setAttribute("src",self.getEndpoint()+"assets/widgets/assets/js/autobahn.min.js");let head=document.head;head.insertBefore(myScript,head.firstElementChild);self.WEB_API_CACHE["autobahn.min.js"]="loaded"}var i=0,wait=setInterval(function(){i++;if("undefined"!==typeof autobahn){clearInterval(wait);self.callOpenWs()}else{if(1e3<i){clearInterval(wait)}}},15)}else{self.callOpenWs()}}}loadOfferLib(){var self=this;if("offerlibrary"==self.apiMethod){if("undefined"===typeof OfferLib){if("undefined"===typeof self.WEB_API_CACHE["offerlib.bundle.js"]&&!self.fromInclude){let myScript=document.createElement("script");myScript.setAttribute("src",self.getEndpoint()+"assets/widgets/assets/js/offerlib0.0.4/bundle.js");let head=document.head;head.insertBefore(myScript,head.firstElementChild);self.WEB_API_CACHE["offerlib.bundle.js"]="loaded"}}}}showSkeleton(){var self=this;self.loaded=0;if(!self.demo&self.showLoading){if(self.isSliderBanner()){if("block"!=self.$.skeletonMain.style.display){if(self.haveEventCache){}else{self.$.skeletonMain.style.display="block"}}}}}hideSkeleton(){var self=this;self.loaded=1;self.$.skeletonMain.style.display="none"}removeDemo(){var self=this;if(self.demo){if(self.isSliderBanner()){if(null!=self.shadowRoot.getElementById("demotag")){self.shadowRoot.getElementById("demotag").remove()}}}}setDemo(position_tage,page_tag){var self=this;if(null!=self.shadowRoot.getElementById("demotag")){self.removeDemo()}try{self.$.slideSource.insertAdjacentHTML("afterend","<table id=\"demotag\"><tbody><tr><td style=\"text-align:center;\"><h3 style=\"margin-top: 0;\">Widget Info <span style=\"font-weight: normal;\">[demo: true]</span></h3><p style=\"margin: 0;\"><b>page_tag</b>: \""+page_tag+"\"</p> <p style=\"margin: 0;\"><b>position_tage</b>: \""+position_tage+"\"</p></td></tr></tbody></table>");if("undefined"!==typeof self.height&&self.height){self.shadowRoot.getElementById("demotag").style.height=self.height;self.$.skeletonMain.style.height=self.height;self.shadowRoot.getElementById("demotag").style.overflowY="auto"}}catch(err){setTimeout(function(){var textnode=document.createElement("table");textnode.id="demotag";textnode.innerHTML="<tbody><tr><td style=\"text-align:center;\"><h3 style=\"margin-top: 0;\">Widget Info <span style=\"font-weight: normal;\">[demo: true]</span></h3><p style=\"margin: 0;\"><b>page_tag</b>: \""+page_tag+"\"</p> <p style=\"margin: 0;\"><b>position_tage</b>: \""+position_tage+"\"</p></td></tr></tbody>";self.$.slideSource.after(textnode);if("undefined"!==typeof self.height&&self.height&&null!=self.shadowRoot.getElementById("demotag")){self.shadowRoot.getElementById("demotag").style.height=self.height;self.shadowRoot.getElementById("demotag").style.overflowY="auto"}},2e3)}}removeStream(click){var self=this;if(null!==self.shadowRoot.getElementById("streamtag")){self.$.slideSource.classList.remove("fadebanner");self.$.slideSource.classList.remove("d_desktop");self.$.slideSource.classList.remove("d_tablet");self.$.slideSource.classList.remove("d_mobile");self.shadowRoot.getElementById("streamtag").remove();self.sportbookIframe.contentWindow.postMessage({type:"OP:videoStreamingPause",payload:{pause:!1}},"*");if(click&&self.sportbook){self.sportbook.allowShow=!1}}}setStream(){var self=this;if(!self.floating_video){return!1}if(null!==self.shadowRoot.getElementById("streamtag")){return!1}if(!self.sportbook.allowShow){return!1}if(self.sportbook.stream.payload.streamUrl){var fullStreamUrl=self.sportbook.stream.payload.streamUrl;if(self.sportbook.stream.payload.requiresParent){fullStreamUrl=`${fullStreamUrl}&parent=${window.location.host}`;if(self.sportbook.stream.payload.baseUrl){fullStreamUrl=`${fullStreamUrl}&parent=${self.sportbook.stream.payload.baseUrl.hostname}`}else if(self.sportbook.stream.payload.parentHost){fullStreamUrl=`${fullStreamUrl}&parent=${self.sportbook.stream.payload.parentHost}`}}if("IFrame"===self.sportbook.stream.payload.renderType){try{self.$.bannerContentMain.insertAdjacentHTML("afterend",`<div id="streamtag"><div class="streamVideo"><iframe src=${fullStreamUrl} allow="autoplay"/></div></div>`)}catch(err){setTimeout(function(){var textnode=document.createElement("div");textnode.id="streamtag";textnode.innerHTML=`<div class="streamVideo"><iframe src=${fullStreamUrl} allow="autoplay"/></div>`;self.$.bannerContentMain.after(textnode)},2e3)}self.sportbookIframe.contentWindow.postMessage({type:"OP:videoStreamingPause",payload:{pause:!0}},"*")}self.$.slideSource.classList.add("fadebanner");self.$.slideSource.classList.add("d_desktop");self.$.slideSource.classList.add("d_tablet");self.$.slideSource.classList.add("d_mobile")}return!1}customStyleDone(data){var self=this;if("iframe"==self.bannerType){if(self.slider_setting&&self.slider_setting.iframe_banner&&self.eventId){var link=self.slider_setting.iframe_banner;link=link.replace("{eventId}",self.eventId);try{if(null===self.shadowRoot.getElementById("iframe")){self.$.bannerContentMain.insertAdjacentHTML("afterend",`<div id="iframe"><iframe src=${link} /></div>`)}}catch(err){}}}if(self.widget_position_id&&["1","2"].includes(self.widget_position_id.toString())){var tag=self.positionTag+"-"+self.pageTag,lsBlockPF=self.lsGet("bmfe:blockpopupForever","json");if("undefined"===typeof lsBlockPF.hash||lsBlockPF.hash!==data.data.close_forever_hash||"undefined"===typeof lsBlockPF.old_data||lsBlockPF.old_data.includes(tag)){var old_close=lsBlockPF.positions,rmIndex=old_close.indexOf(tag);if(-1!=rmIndex){old_close.splice(rmIndex,1)}self.lsSet("bmfe:blockpopupForever","{\"hash\":\""+self.slider_setting.close_forever_hash+"\", \"positions\":[], \"old_data\":"+JSON.stringify(old_close)+"}");self.style.display="block"}if("true"==self.loggedIn){}else{if(self.waitTCheckLoginP){clearTimeout(self.waitTCheckLoginP);self.waitTCheckLoginP={}}self.waitTCheckLoginP=setTimeout(function(){if("true"!=self.loggedIn){var lsBlockP=self.lsGet("bmfe:blockpopup","json");if("undefined"!==typeof lsBlockP.login&&lsBlockP.login.length){var iLogin=[],iLogout=lsBlockP.logout;iLogin=JSON.stringify(Array.from(new Set(iLogin)));iLogout=JSON.stringify(Array.from(new Set(iLogout)));self.lsSet("bmfe:blockpopup","{\"logout\":"+iLogout+", \"login\":"+iLogin+"}")}}},5e3)}}}customStyleCache(data){var self=this;if(data.successful){var dt=data.data;self.slider_setting=dt;self.slider_layout=dt.slider_layout;if("undefined"!==typeof dt.link&&"undefined"!==typeof dt.link[self.language]){self.root_auto_link=dt.link[self.language]}if("undefined"!==typeof dt.iconURL&&null!==dt.iconURL&&"null"!=dt.iconURL){self.FLAG_ENDPOINT=dt.iconURL;self.FLAG_EXT=".png";self.SPORT_ENDPOINT=dt.iconURL.replace("/flag/","/discipline/");self.SPORT_EXT=".svg"}if("undefined"!==typeof dt.icon&&null!==dt.icon&&"null"!=dt.icon&&dt.icon.flag&&dt.icon.discipline){let flag=dt.icon.flag.split("{{flag}}"),discipline=dt.icon.discipline.split("{{discipline}}");if(2==flag.length&&2==discipline.length){self.FLAG_ENDPOINT=flag[0];self.FLAG_EXT=flag[1];self.SPORT_ENDPOINT=discipline[0];self.SPORT_EXT=discipline[1]}}var screenW=window.innerWidth,screenH=window.innerHeight;if("undefined"!==typeof self.width&&self.width){screenW=self.width.replace("px","")}if("undefined"!==typeof self.height&&self.height){screenH=self.height.replace("px","")}if(self.slider_setting.background_image_loader){self.use_skeleton_img="true";self.default_skeleton=self.generateImage(self.slider_setting,screenW,screenH)}else{self.use_skeleton_img="false";self.default_skeleton=""}if(dt.slider_layout_arrow){self.slider_layout_arrow=dt.slider_layout_arrow;self.shadowRoot.querySelector(".splide__arrows").style.display="block"}else{self.shadowRoot.querySelector(".splide__arrows").style.display="none"}if(dt.slider_layout_thumbnail){self.slider_layout_thumbnail=dt.slider_layout_thumbnail}self.slider_time=dt.duration;self.$.custom_style.innerHTML="<style>"+dt.custom_css+"</style>";self.widget_position_id=self.positions(dt.position_type);self.disableCrop=self.slider_setting.disable_crop_background&&4!=self.widget_position_id?"disable_crop_background":"";if(dt.banner_layout){if(self.bannerId){var cacheName=self.genCacheName(self.tid,self.bannerId,self.eid,self.language),eCache=self.getEventLs(cacheName);if(eCache&&"undefined"!==typeof eCache.widget_layout&&eCache.widget_layout){self.widget_layout=eCache.widget_layout.toString()}}}if(self.bannerId){if("true"==self.getAttribute("has-bullet")){self.xClass1=" has_bullet"}if("true"==self.getAttribute("auto-height")){self.xClass2=" height-auto"}}if("streaming"==self.bannerType){if(dt.floating_video){self.floating_video=!0}else{self.floating_video=!1}}self.customStyleDone(data)}}customStyleSetLS(data){var self=this;if(data.successful){var dt=data.data,lsConfig=self.lsGet("bmfe:config","json");if(lsConfig){if("undefined"===typeof lsConfig.cache_local_data){lsConfig.cache_local_data=dt.cache}if("undefined"===typeof lsConfig.operatorId){lsConfig.operatorId=self.operatorId}if("undefined"===typeof lsConfig.positions){lsConfig.positions={}}if("undefined"===typeof lsConfig.ga){lsConfig.ga={}}if(lsConfig.operatorId!=self.operatorId||lsConfig.cache_local_data!=dt.cache&&lsConfig.cache_local_data<dt.cache){self.lsRemoveAll();lsConfig.cache_local_data=dt.cache;lsConfig.operatorId=self.operatorId;lsConfig.positions={};lsConfig.ga={};if(dt.extra_config&&dt.extra_config.ga){lsConfig.ga={key:dt.extra_config.ga?dt.extra_config.ga:"",consent:dt.extra_config.consent?!0:!1}}self.lsSet("bmfe:config",JSON.stringify(lsConfig));if(lsConfig.operatorId!=self.operatorId){var lsParam=self.genLsParam(self.loggedIn);self.lsSet("bmfe:"+self.language+"-"+lsParam,"{}")}else if(lsConfig.cache_local_data!=dt.cache&&lsConfig.cache_local_data<dt.cache){self.startLoad()}}else{if("undefined"===typeof lsConfig.positions[self.positionTag]){lsConfig.positions[self.positionTag]={}}let styleCache=lsConfig.positions[self.positionTag].data;if(styleCache&&styleCache.last_update&&dt.last_update){if(styleCache.last_update<dt.last_update){lsConfig.positions[self.positionTag]=data}}else{lsConfig.positions[self.positionTag]=data}if("undefined"!==typeof styleCache&&"undefined"!==typeof styleCache.banner_layout&&styleCache.banner_layout!=dt.banner_layout){lsConfig.positions[self.positionTag].data.banner_layout=styleCache.banner_layout}self.lsSet("bmfe:config",JSON.stringify(lsConfig))}}}}customStyleSetLayoutLS(banner_layout){var self=this;if(banner_layout){var lsConfig=self.lsGet("bmfe:config","json");if(lsConfig){if("undefined"!==typeof lsConfig.positions&&"undefined"!==typeof lsConfig.positions[self.positionTag]&&!self.fromInclude){lsConfig.positions[self.positionTag].data.banner_layout=banner_layout;self.lsSet("bmfe:config",JSON.stringify(lsConfig))}}}}saveTags(tags){var self=this;if(tags&&"undefined"===typeof self.WEB_API_CACHE.checkPosition){self.WEB_API_CACHE.checkPosition=!0;tags.last_update=dayjs();self.lsSet("bmfe:tags",JSON.stringify(tags))}}customStyleCall(apiParam,url){var self=this,newR=!0,lsConfig=self.lsGet("bmfe:config","json");if("undefined"===typeof lsConfig.cache_local_data){lsConfig.cache_local_data=""}if("undefined"===typeof lsConfig.operatorId){lsConfig.operatorId=""}if("undefined"===typeof lsConfig.positions){lsConfig.positions={}}if("undefined"===typeof lsConfig.ga){lsConfig.ga={}}if("undefined"===typeof lsConfig.positions[self.positionTag]||"undefined"===typeof lsConfig.positions[self.positionTag].successful){lsConfig.positions[self.positionTag]={};self.lsSet("bmfe:config",JSON.stringify(lsConfig))}else{newR=!1;let styleCache=lsConfig.positions[self.positionTag];self.customStyleSetLS(styleCache);self.customStyleCache(styleCache)}try{self.callAjax(url,"GET",{}).then(res=>{self.WEB_API_CACHE[apiParam].cachedata=res;self.customStyleSetLS(res);if(newR){self.customStyleCache(res)}self.saveTags(res.data.tags)}).catch(err=>{})}catch(err){}}checkTags(){var self=this;if(self.isSpecialBanner()){return!0}var lsTags=self.lsGet("bmfe:tags","json");if("undefined"!==typeof lsTags.last_update&&(dayjs().isAfter(dayjs(lsTags.last_update).add(1,"day"))||lsTags.position.includes(self.positionTag)&&lsTags.page.includes(self.pageTag))){return!0}else if("undefined"===typeof lsTags.last_update){return!0}return!1}customStyle(){var self=this;if(self.operatorId&&self.positionTag&&self.checkTags()){var apiParam="/settings/widget/"+self.operatorId+"/"+self.positionTag,nowTime=new Date,nextLoad=new Date(nowTime.getTime()+5e3),load=!1;if(self.cacheUndefined(apiParam,2)){self.WEB_API_CACHE[apiParam]={min_next_load:nextLoad,cachedata:{}};load=!0;self.customStyleCall(apiParam,self.getEndpoint()+"v1"+apiParam)}if(nowTime>self.WEB_API_CACHE[apiParam].min_next_load){self.WEB_API_CACHE[apiParam].min_next_load=nextLoad;if("undefined"!==typeof self.WEB_API_CACHE[apiParam].cachedata.successful){self.customStyleCache(self.WEB_API_CACHE[apiParam].cachedata)}else{self.customStyleCall(apiParam,self.getEndpoint()+"v1"+apiParam)}}else if(!load&&"undefined"!==typeof self.WEB_API_CACHE[apiParam].cachedata.successful){self.customStyleCache(self.WEB_API_CACHE[apiParam].cachedata)}else{if(!load){var lsConfig=self.lsGet("bmfe:config","json");if("undefined"===typeof lsConfig.positions){lsConfig.positions={}}if("undefined"!==typeof lsConfig.positions[self.positionTag]&&"undefined"!==typeof lsConfig.positions[self.positionTag].successful){self.customStyleCache(lsConfig.positions[self.positionTag])}else{var i=0,wait=setInterval(function(){i++;if(self.cacheUndefined(apiParam,3)){if(1e3<i){clearInterval(wait)}}else{self.customStyleCache(self.WEB_API_CACHE[apiParam].cachedata);clearInterval(wait)}},50)}}}}}filterEventPart(type,data,sportId){var self=this,newdata={score_set:[],score_current:[],score_whole:[],score_quarter:[]},{eDt}=self.getWidget();if("undefined"===typeof eDt||"undefined"===typeof sportId){if("true"!=self.incident_tournament){return!1}}if("undefined"!==typeof eDt){if("1"==sportId){data.forEach((item,i)=>{if("1stHalfOrdinaryTime"==item.eventPartKey){newdata.score_set[1]=item}else if(self._wholeMatch(item.eventPartKey,newdata.score_whole[0])){newdata.score_whole[0]=item;if(null==self.last_score){self.last_score=JSON.stringify({awayScore:item.awayScore,homeScore:item.homeScore})}else{if(self.last_score!=JSON.stringify({awayScore:item.awayScore,homeScore:item.homeScore})){var oldscore=JSON.parse(self.last_score);if(null!=oldscore){if(item.homeScore!=oldscore.homeScore){self.marketIncident("home","1")}else{self.marketIncident("away","1")}}self.last_score=JSON.stringify({awayScore:item.awayScore,homeScore:item.homeScore})}}}})}else if(["3","128","141"].includes(sportId.toString())||["14","20","63","64","133"].includes(sportId.toString())){data.forEach((item,i)=>{if(-1!=item.id){if("1stSet"==item.eventPartKey){newdata.score_set[1]=item}else if("2ndSet"==item.eventPartKey){newdata.score_set[2]=item}else if("3rdSet"==item.eventPartKey){newdata.score_set[3]=item}else if("4thSet"==item.eventPartKey){newdata.score_set[4]=item}else if("5thSet"==item.eventPartKey){newdata.score_set[5]=item}else if(self._wholeMatch(item.eventPartKey,newdata.score_whole[0])){newdata.score_whole[0]=item}}if(["3","128","141"].includes(sportId.toString())&&!0==item.currentEventPart){if(50==item.awayScore){item.awayScore="A"}else if(50==item.homeScore){item.homeScore="A"}newdata.score_current[0]=item}})}else if("5"==sportId){data.forEach((item,i)=>{if("1stQuarter"==item.eventPartKey){newdata.score_set[1]=item}else if("2ndQuarter"==item.eventPartKey){newdata.score_set[2]=item}else if("3rdQuarter"==item.eventPartKey){newdata.score_set[3]=item}else if("4thQuarter"==item.eventPartKey){newdata.score_set[4]=item}else if(self._wholeMatch(item.eventPartKey,newdata.score_whole[0])){newdata.score_whole[0]=item}})}else if(["6","129"].includes(sportId.toString())){data.forEach((item,i)=>{if(-1!=item.id){if("1stPeriod"==item.eventPartKey){newdata.score_set[1]=item}else if("2ndPeriod"==item.eventPartKey){newdata.score_set[2]=item}else if("3rdPeriod"==item.eventPartKey){newdata.score_set[3]=item}else if("4thPeriod"==item.eventPartKey){newdata.score_set[4]=item}else if("5thPeriod"==item.eventPartKey){newdata.score_set[5]=item}else if(self._wholeMatch(item.eventPartKey,newdata.score_whole[0])){newdata.score_whole[0]=item}}})}else if(["7","28","39","155"].includes(sportId.toString())){data.forEach((item,i)=>{if(-1!=item.id){if("1stHalfOrdinaryTime"==item.eventPartKey){newdata.score_set[1]=item}else if("2ndHalfOrdinaryTime"==item.eventPartKey){newdata.score_set[2]=item}else if(self._wholeMatch(item.eventPartKey,newdata.score_whole[0])){newdata.score_whole[0]=item}}})}else if(["8","106"].includes(sportId.toString())){data.forEach((item,i)=>{if(-1!=item.id){if("1stQuarter"==item.eventPartKey){newdata.score_set[1]=item}else if("2ndQuarter"==item.eventPartKey){newdata.score_set[2]=item}else if("3rdQuarter"==item.eventPartKey){newdata.score_set[3]=item}else if("4thQuarter"==item.eventPartKey){newdata.score_set[4]=item}else if(self._wholeMatch(item.eventPartKey,newdata.score_whole[0])){newdata.score_whole[0]=item}}})}else if("9"==sportId){data.forEach((item,i)=>{if(-1!=item.id){if("1stInning"==item.eventPartKey){newdata.score_set[1]=item}else if("2ndInning"==item.eventPartKey){newdata.score_set[1]=item}else if("3rdInning"==item.eventPartKey){newdata.score_set[1]=item}else if("4thInning"==item.eventPartKey){newdata.score_set[1]=item}else if("5thInning"==item.eventPartKey){newdata.score_set[1]=item}else if("6thInning"==item.eventPartKey){newdata.score_set[1]=item}else if("7thInning"==item.eventPartKey){newdata.score_set[1]=item}else if("8thInning"==item.eventPartKey){newdata.score_set[1]=item}else if("9thInning"==item.eventPartKey){newdata.score_set[1]=item}else if(self._wholeMatch(item.eventPartKey,newdata.score_whole[0])){newdata.score_whole[0]=item}}})}else if("10"==sportId){data.forEach((item,i)=>{if(1361==item.eventPartId){newdata.score_set[1]=item}else if(1363==item.eventPartId){newdata.score_set[2]=item}else if(1364==item.eventPartId){newdata.score_set[3]=item}else if(1366==item.eventPartId){newdata.score_set[4]=item}else if(eDt.sport_data&&eDt.sport_data.currentEventPartId==item.eventPartId){newdata.score_current[0]=item}else if("90"==item.eventPartId){newdata.score_whole[0]=item}})}else if(["22","36","45","76","105","134"].includes(sportId.toString())){data.forEach((item,i)=>{if(-1!=item.id){if(self._wholeMatch(item.eventPartKey,newdata.score_whole[0])){newdata.score_whole[0]=item}}})}else if(["26","98","99","100"].includes(sportId.toString())){data.forEach((item,i)=>{if(self._wholeMatch(item.eventPartKey,newdata.score_whole[0])){newdata.score_whole[0]=item}})}else if("38"==sportId){data.forEach((item,i)=>{if(355==item.eventPartId){newdata.score_set[1]=item}else if(356==item.eventPartId){newdata.score_set[2]=item}else if(357==item.eventPartId){newdata.score_set[3]=item}else if(358==item.eventPartId){newdata.score_set[4]=item}else if("350"==item.eventPartId){newdata.score_whole[0]=item}})}else if("49"==sportId){data.forEach((item,i)=>{if(-1!=item.id){if("1stHalfOrdinaryTime"==item.eventPartKey){newdata.score_set[1]=item}else if(self._wholeMatch(item.eventPartKey,newdata.score_whole[0])){newdata.score_whole[0]=item}}})}else if("110"==sportId){data.forEach((item,i)=>{if("1511"==item.eventPartId){newdata.score_whole[0]=item}})}else if("121"==sportId){data.forEach((item,i)=>{if("1stHalfOrdinaryTime"==item.eventPartKey){newdata.score_set[1]=item}else if(self._wholeMatch(item.eventPartKey,newdata.score_whole[0])){newdata.score_whole[0]=item}})}else if("140"==sportId){data.forEach((item,i)=>{if("2477"==item.eventPartId){newdata.score_set[1]=item}else if("2479"==item.eventPartId){newdata.score_set[2]=item}else if("2475"==item.eventPartId){newdata.score_whole[0]=item}})}}self.set("eventScoreDetails",newdata);return newdata}removeSession(){var self=this,cache="/"+self.language+"/banners/list/"+self.operatorId+"/"+self.language+"/"+self.positionTag+"/"+self.pageTag+"/"+self.loggedIn+"/"+self.eventId.toString();if(self.eventId&&self.tournamentId){cache+="/"+self.tournamentId.toString();if(self.tournamentId&&self.locationId&&self.sportId){cache+="/"+self.locationId.toString()+"/"+self.sportId.toString()}}if("undefined"!==typeof self.WEB_API_CACHE[cache]){delete self.WEB_API_CACHE[cache]}self.WEB_API_CACHE.rememberClick=[]}removeAccents(value){var self=this;if(value&&self.slider_setting&&self.slider_setting.extra_config&&self.slider_setting.extra_config.separator&&","==self.slider_setting.extra_config.separator){const a="\xE0\xE1\xE2\xE4\xE6\xE3\xE5\u0101\u0103\u0105\xE7\u0107\u010D\u0111\u010F\xE8\xE9\xEA\xEB\u0113\u0117\u0119\u011B\u011F\u01F5\u1E27\xEE\xEF\xED\u012B\u012F\xEC\u0131\u0130\u0142\u1E3F\xF1\u0144\u01F9\u0148\xF4\xF6\xF2\xF3\u0153\xF8\u014D\xF5\u0151\u1E55\u0155\u0159\xDF\u015B\u0161\u015F\u0219\u0165\u021B\xFB\xFC\xF9\xFA\u016B\u01D8\u016F\u0171\u0173\u1E83\u1E8D\xFF\xFD\u017E\u017A\u017C",b="aaaaaaaaaacccddeeeeeeeegghiiiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz",p=new RegExp(a.split("").join("|"),"g");return value.toString().toLowerCase().replace(p,c=>b.charAt(a.indexOf(c)))}return value}checkSliderChangeCache(data){var self=this,lsParam=self.genLsParam(self.loggedIn);if(data.successful){try{var lsSliderChange=self.lsGet("bmfe:"+self.language+"-"+lsParam);if(lsSliderChange){lsSliderChange=JSON.parse(lsSliderChange);var lastUpdate="undefined"!==typeof lsSliderChange.maindata?lsSliderChange.maindata.last_update:"";if(data.hash!=lsSliderChange.hash&&!self.waitCTimeout&&("undefined"===typeof lastUpdate||lastUpdate&&dayjs(data.last_update).isAfter(dayjs(lastUpdate)))){self.disableApiCallback=!1;self.resetWidget();self.lsDelete("bmfe:"+self.language+"-"+lsParam);self.showLoading=!0;self.arrEvent=[];self.showSkeleton();self.shadowRoot.querySelectorAll(".splide__pagination").forEach(el=>el.remove());self.removeSession();self.lsSet("bmfe:events","{}");self.set("text.status_id","");self.startLoad()}else{self.checkSliderChange()}}else{if(data.data.length){self.widget.content_arr=[];self.widget.content_data=[];self.resetWidget();self.removeSession();self.startLoad()}else{self.checkSliderChange()}}}catch(err){self.lsSet("bmfe:"+self.language+"-"+lsParam,"{}");self.showLoading=!0;self.showSkeleton();self.resetWidget();self.startLoad()}}}checkSliderChangeCall(apiParam,url,method){var self=this;self.callAjax(url,method,{}).then(res=>{if(res.successful){self.WEB_API_CACHE[apiParam].cachedata=res;self.checkSliderChangeCache(res)}else{setTimeout(function(){self.checkSliderChange()},1e3)}}).catch(err=>{setTimeout(function(){self.checkSliderChange()},1e3)})}checkSliderChange(){var self=this;if(self.bannerId&&self.fromInclude||self.slider_setting&&!self.slider_setting.slider_auto_refresh&&(0==self.widget_position_id&&""==self.bannerId||self.widget_position_id&&!["1","2"].includes(self.widget_position_id.toString()))){return!1}var time=self.interval_main_time;if(12e4>time){time=12e4}if(self.waitTSliderCheck){clearTimeout(self.waitTSliderCheck);self.waitTSliderCheck={}}if(self.widget_position_id&&["1","2"].includes(self.widget_position_id.toString())){var unblock=!1,newBlockPL=[],lsBlockPL=self.lsGet("bmfe:blockpopupLimit","json");(async()=>{await Promise.all([lsBlockPL.forEach((item,i)=>{if(dayjs(dayjs()).isBefore(item.expireDate)){newBlockPL.push(item)}else{unblock=!0}})]).then(pData=>{if(unblock){self.lsSet("bmfe:blockpopupLimit",JSON.stringify(newBlockPL));self.resetWidget();var lsParam=self.genLsParam(self.loggedIn);self.lsDelete("bmfe:"+self.language+"-"+lsParam);self.removeSession();self.startLoad()}})})()}self.waitTSliderCheck=setTimeout(function(){var paramLogin=self.loggedIn.toString();if("true"!=paramLogin){paramLogin="false"}var url="/banners/list/"+self.operatorId+"/"+self.language+"/"+self.positionTag+"/"+self.pageTag+"/"+paramLogin+"/"+self.eventId.toString();if(self.eventId&&self.tournamentId){url+="/"+self.tournamentId.toString();if(self.tournamentId&&self.locationId&&self.sportId){url+="/"+self.locationId.toString()+"/"+self.sportId.toString()}}var ajax1={method:"GET",url:url},apiParam="/"+self.language+ajax1.url,nowTime=new Date,nextLoad=new Date(nowTime.getTime()+5e3),load=!1;if(self.cacheUndefined(apiParam,2)){self.WEB_API_CACHE[apiParam]={min_next_load:nextLoad,cachedata:{}};load=!0;self.checkSliderChangeCall(apiParam,self.getEndpoint()+"v1"+ajax1.url,ajax1.method)}if(nowTime>self.WEB_API_CACHE[apiParam].min_next_load){self.WEB_API_CACHE[apiParam].min_next_load=nextLoad;self.WEB_API_CACHE[apiParam].cachedata={};self.checkSliderChangeCall(apiParam,self.getEndpoint()+"v1"+ajax1.url,ajax1.method)}else{if(!load){var wait=setInterval(function(){if("undefined"!==typeof self.WEB_API_CACHE[apiParam]&&"undefined"!==typeof self.WEB_API_CACHE[apiParam].cachedata&&"undefined"===typeof self.WEB_API_CACHE[apiParam].cachedata.successful){}else if(self.cacheUndefined(apiParam,2)){self.startLoad();clearInterval(wait)}else{self.checkSliderChangeCache(self.WEB_API_CACHE[apiParam].cachedata);clearInterval(wait)}},300)}}},time)}bannerIdClick(bannerId,btnText){var self=this;if(null!=self.shadowRoot.querySelector("."+bannerId)&&(""==btnText||self.linkBoth())){self.shadowRoot.querySelector("."+bannerId).click()}else if("3"==self.tid&&"popupClick"==bannerId&&self.linkBoth()&&self.shadowRoot.querySelector("button.btLink")){self.shadowRoot.querySelector("button.btLink").click()}}bannerClick(event,bannerId){var self=this,{eDt,wDt}=self.getWidget();if(wDt.type_id&&["7","8","9","11","12","16"].includes(wDt.type_id.toString())){return!1}if("undefined"!==typeof eDt&&null!=self.shadowRoot.querySelector(".btLink")&&"oddButton"!=event.target.className&&"oddButtonName"!=event.target.className&&"oddButtonValue"!=event.target.className&"odv"!=event.target.className&&!event.target.className.includes("bgButton2")&&(self.$.buttondetail.innerHTML&&(3!=wDt.type_id||"true"==self.incident_tournament||self.$.backgroundBanner.classList.contains("widget-mobile-xs")||self.$.buttondetail.innerHTML.includes("no_link_btn"))||event.target.className.includes("buttonNav"))){if("undefined"===typeof bannerId||"undefined"!==typeof bannerId&&null!=self.shadowRoot.querySelector(".btLink"+bannerId)){self.shadowRoot.querySelector(".btLink").click()}}else if(null!=event.target.querySelector(".no_link_btn")&&0==self.widget_position_id){event.target.querySelector(".no_link_btn > button").click()}else if(self.$.bannerContentMain.classList.contains("cacheLinkBanner")&&null!=self.shadowRoot.querySelector(".btLink"+self.bannerId)){self.shadowRoot.querySelector(".btLink"+self.bannerId).click()}else if("undefined"===typeof bannerId&&self.linkBoth()&&event.target.querySelector("button.btLink")){event.target.querySelector("button.btLink").click()}}lazyLoadImage(element){var self=this;if(element&&element.src){element.parentNode.style.backgroundImage="url('"+element.src+"')"}}sliderPadding(num){if(0==num%1){return"0%"}else{var newnum=100-100/num*Math.floor(num);return newnum+"%"}}renderRecommend(index,bannerId,marketIds){var self=this,milliseconds=new Date().getTime(),marketId=marketIds[index],match=self.listPopular.match[0],marketV="undefined"!==typeof self.listPopular.market[marketId]?self.listPopular.market[marketId]:"",market="undefined"!==typeof self.listPopular.marketId[marketId]?self.listPopular.marketId[marketId]:"",available=0,dataMarket={};if(marketV&&market){dataMarket={...marketV,bettingTypeId:market.bettingTypeId,bettingTypeName:market.bettingTypeName,eventId:market.eventId,eventPartId:market.eventPartId,eventPartName:market.eventPartName,name:market.name};available=dataMarket.selections.filter(function(item){return!0===item.available}).length}if("undefined"!==typeof marketIds[index]&&"3"!=match.statusId&&available){self.set("text.countryId",match.venueId);self.set("text.countryName",match.venueName);self.set("text.event_id",match.id);self.set("text.event_name",match.name);self.set("text.time",self.getDateFormat(match.startTime));self.set("text.homeName",match.homeParticipantName);self.set("text.awayName",match.awayParticipantName);self.set("text.sportId",match.sportId);self.set("text.sportName",match.sportName);self.set("text.status_id",match.statusId);self.set("text.status",match.statusName);self.set("text.marketname",self.getText(market.name));self.set("text.labelName","");self.set("text.labelStyle","");self.set("text.partName",market.eventPartName);self.set("text.tournamentId",match.parentId);if("undefined"!==typeof match.shortParentName){self.set("text.tournamentName",match.shortParentName)}else if("undefined"!==typeof match.parentName){self.set("text.tournamentName",match.parentName)}self.firstRender(milliseconds,[],"",dataMarket);self.hideSkeleton();self.$.slideSource.classList.add("fadebanner");var{wDt}=self.getWidget();if(wDt.generate_link){self.autoLink(match)}}else if(marketIds.length-1>index){self.renderRecommend(index+1,bannerId,marketIds)}else{var cacheName=self.genCacheName(4,bannerId,match.id,self.language);self.disableRmR("",bannerId,cacheName)}}loadRecommendEvent(index,bannerId,data){var self=this;if(data&&"undefined"!==typeof data.recommendations_list[index]){var rDt=data.recommendations_list[index],eventId=rDt.eventId,cacheName=self.genCacheName(4,bannerId,eventId,self.language);if(eventId&&rDt.BetsRecommendationsList.length){var topic="/sports/"+self.operatorId+"/"+self.language+"/"+eventId+"/match-odds",betTypeEventParts=[];(async()=>{await Promise.all([rDt.BetsRecommendationsList.forEach((item,i)=>{if(item.bettingTypeId&&item.eventPartId){var key=item.bettingTypeId.toString()+"-"+item.eventPartId.toString();if(!betTypeEventParts.includes(key)){betTypeEventParts.push(key)}}})]).then(pData=>{if(betTypeEventParts.length){topic="/sports/"+self.operatorId+"/"+self.language+"/"+eventId+"/match-odds/"+betTypeEventParts.join(",")}var tmpTopic="/recommendation"+topic,isClone=self.parentNode.classList.contains("splide__slide--clone")&&self.fromInclude;if(isClone){if("undefined"!==typeof self.WEB_API_CACHE[tmpTopic]&&"undefined"!==typeof self.WEB_API_CACHE[tmpTopic].records){self.recMatchOddsRes(index,bannerId,data,{kwargs:self.WEB_API_CACHE[tmpTopic]})}else{if("undefined"!==typeof self.dumpRecMatchOddsListener){self.removeEventListener("topicListen:initialDump",self.dumpRecMatchOddsListener)}self.dumpRecMatchOddsListener=self.dumpRecMatchOdds.bind(self,tmpTopic,index,bannerId,data);self.addEventListener("topicListen:initialDump",self.dumpRecMatchOddsListener)}if("undefined"!==typeof self.regRecMatchOddsListener){self.removeEventListener("topicListen:register",self.regRecMatchOddsListener)}self.regRecMatchOddsListener=self.regRecMatchOdds.bind(self,tmpTopic);self.addEventListener("topicListen:register",self.regRecMatchOddsListener)}else{self.ws_session.register(topic,function(args,kwargs,details){self.wsChange(kwargs);self.customEventTopic("topic:register",tmpTopic,kwargs)}).then(function(regId){self.subscribeRecommend=regId;self.ws_session.call("/sports#initialDump",[],{topic:topic}).then(function(res){self.recMatchOddsRes(index,bannerId,data,res);self.customEventTopic("topic:initialDump",tmpTopic,res.kwargs)})})}})})()}else if(data.recommendations_list.length-1>index){self.loadRecommendEvent(index+1,bannerId,data)}else{self.disableRmR("",bannerId,cacheName)}}}regRecMatchOdds(topic,dataE){var self=this;if(dataE.detail&&dataE.detail.topic==topic){self.wsChange(dataE.detail.kwargs)}}dumpRecMatchOdds(topic,index,bannerId,data,dataE){var self=this;if(dataE.detail&&dataE.detail.topic==topic){self.recMatchOddsRes(index,bannerId,data,{kwargs:dataE.detail.kwargs})}}recMatchOddsRes(index,bannerId,data,res){var self=this;if(data&&"undefined"!==typeof data.recommendations_list[index]&&res&&res.kwargs){var rDt=data.recommendations_list[index],eventId=rDt.eventId,cacheName=self.genCacheName(4,bannerId,eventId,self.language);if(eventId&&rDt.BetsRecommendationsList.length){var marketIds=rDt.BetsRecommendationsList.map(item=>item.marketId.toString());if(res.kwargs.records.length){self.resetListPopular();var found=0;(async()=>{await Promise.all([res.kwargs.records.forEach((item,i)=>{self.genListPopular(item);if("MARKET"==item._type){if(marketIds.includes(item.id)){found++}}})]).then(pData=>{if(found){(async()=>{await Promise.all([self.listPopular.match.forEach((item2,i2)=>{self.listPopular.markets[item2.id].forEach((item3,i3)=>{var selections=self.listPopular.market[item3.id].selections;if(selections.length){selections=selections.sort((a,b)=>a.orderOutcome-b.orderOutcome);self.listPopular.markets[item2.id][i3].selections=selections}})})]).then(pData1=>{self.renderRecommend(0,bannerId,marketIds)})})()}else if(data.recommendations_list.length-1>index){if("undefined"!==typeof self.subscribeRecommend.id&&self.subscribeRecommend.active){try{self.ws_session.unregister(self.subscribeRecommend)}catch(err){self.subscribeRecommend={}}}self.loadRecommendEvent(index+1,bannerId,data)}else{self.disableRmR("",bannerId,cacheName)}})})()}else if(data.recommendations_list.length-1>index){if("undefined"!==typeof self.subscribeRecommend.id&&self.subscribeRecommend.active){try{self.ws_session.unregister(self.subscribeRecommend)}catch(err){self.subscribeRecommend={}}}self.loadRecommendEvent(index+1,bannerId,data)}else{self.disableRmR("",bannerId,cacheName)}}}}loadRecommendEvents(bannerId,data,coupon){var self=this;if(data&&data.recommendations_list&&data.recommendations_list.length){var rDt=data.recommendations_list,cacheName=self.genCacheName(17,bannerId,"",self.language),topic="/sports#odds",eventIds=[],betTypeEventParts=[],betTypeEventPartsKey=[],bettingTypeIds=[],eventPartIds=[];let cp=6;if(coupon&&coupon.couponNumber){cp=coupon.couponNumber}(async()=>{await Promise.all([rDt.forEach((item,i)=>{if(item.eventId){if(!eventIds.includes(item.eventId.toString())&&eventIds.length<=cp){eventIds.push(item.eventId.toString());if(item.BetsRecommendationsList){item.BetsRecommendationsList.forEach((item2,i2)=>{if(item2.bettingTypeId&&item2.eventPartId){var key=item2.bettingTypeId.toString()+"-"+item2.eventPartId.toString();if(!betTypeEventPartsKey.includes(key)){betTypeEventPartsKey.push(key);betTypeEventParts.push({bettingTypeId:+item2.bettingTypeId,eventPartId:+item2.eventPartId})}if(!bettingTypeIds.includes(+item2.bettingTypeId)){bettingTypeIds.push(+item2.bettingTypeId)}if(!eventPartIds.includes(+item2.eventPartId)){eventPartIds.push(+item2.eventPartId)}}})}}}})]).then(pData=>{if(eventIds.length&&betTypeEventParts.length){var tmpTopic="/recommendation"+topic+"/"+eventIds.join(","),isClone=self.parentNode.classList.contains("splide__slide--clone")&&self.fromInclude;if(isClone){if("undefined"!==typeof self.WEB_API_CACHE[tmpTopic]&&"undefined"!==typeof self.WEB_API_CACHE[tmpTopic].records){self.recMatchsOddsRes(bannerId,data,{kwargs:self.WEB_API_CACHE[tmpTopic]},coupon)}else{if("undefined"!==typeof self.dumpRecMatchsOddsListener){self.removeEventListener("topicListen:initialDump",self.dumpRecMatchsOddsListener)}self.dumpRecMatchsOddsListener=self.dumpRecMatchsOdds.bind(self,tmpTopic,bannerId,data,coupon);self.addEventListener("topicListen:initialDump",self.dumpRecMatchsOddsListener)}if("undefined"!==typeof self.regRecMatchsOddsListener){self.removeEventListener("topicListen:register",self.regRecMatchsOddsListener)}}else{self.ws_session.call("/sports#odds",[],{lang:self.language,eventIds:eventIds,bettingTypeIds:bettingTypeIds,eventPartIds:eventPartIds}).then(function(res){self.recMatchsOddsRes(bannerId,data,res,coupon);self.customEventTopic("topic:initialDump",tmpTopic,res.kwargs)})}}else{self.disableRmR("",bannerId,cacheName)}})})()}else{self.disableRmR("",bannerId,cacheName)}}dumpRecMatchsOdds(topic,bannerId,data,coupon,dataE){var self=this;if(dataE.detail&&dataE.detail.topic==topic){self.recMatchsOddsRes(bannerId,data,{kwargs:dataE.detail.kwargs},coupon)}}recMatchsOddsRes(bannerId,data,res,coupon){var self=this,cacheName=self.genCacheName(17,bannerId,"",self.language);if(data&&data.recommendations_list&&data.recommendations_list.length&&res&&res.kwargs&&res.kwargs.records.length){self.set("offerList",[]);self.set("offerListIndex",[]);let cp=6;if(coupon&&coupon.couponNumber){cp=coupon.couponNumber}(async()=>{var MATCH={},MARKET=[],MARKET_OUTCOME_RELATION=[],OUTCOME={},BETTING_OFFER=[],countAvailable=0,countDisable=0,totalOdds=0,totalOldOdds=0,offerList=[],offerListIndex=[],oddsCA=[];await Promise.all([res.kwargs.records.forEach((item,i)=>{if("MATCH"==item._type){MATCH[item.id]=item}else if("MARKET"==item._type){MARKET.push(item)}else if("OUTCOME"==item._type){OUTCOME[item.id]=item}else if("MARKET_OUTCOME_RELATION"==item._type){MARKET_OUTCOME_RELATION.push(item)}else if("BETTING_OFFER"==item._type){BETTING_OFFER.push(item)}})]).then(pData1=>{data.recommendations_list.forEach((item,i)=>{if(i<cp&&item.BetsRecommendationsList){var filter=MARKET.filter(item2=>{if(item.eventId==item2.eventId&&item.BetsRecommendationsList[0].bettingTypeId==item2.bettingTypeId&&item.BetsRecommendationsList[0].eventPartId==item2.eventPartId){return item2}return null});if(filter.length&&MATCH[item.eventId]){var statusId=MATCH[item.eventId].statusId;if(("1"==statusId||"2"==statusId)&&filter[0].id){var filter2=MARKET_OUTCOME_RELATION.filter(item2=>{if(filter[0].id==item2.marketId){item2.outcome=OUTCOME[item2.outcomeId];item2.betting_offer=BETTING_OFFER.filter(item3=>item2.outcomeId==item3.outcomeId);if(item2.outcome&&item2.betting_offer&&item2.betting_offer.length){item2.odds=item2.betting_offer[0].odds;return item2}}return null});if(filter2.length){if(coupon&&coupon.couponNumber&&"highest"==coupon.couponOddType){filter2=filter2.sort((a,b)=>b.odds-a.odds)}else{filter2=filter2.sort((a,b)=>a.odds-b.odds)}offerList.push({...filter2[0].betting_offer[0],OUTCOME:filter2[0].outcome,MARKET:filter[0],MATCH:MATCH[item.eventId]});if(filter2[0].betting_offer[0].isAvailable){countAvailable++;totalOdds=(0==totalOdds?1:totalOdds)*filter2[0].betting_offer[0].odds;oddsCA.push({eventId:item.eventId,bettingOfferId:filter2[0].betting_offer[0].id,odd:filter2[0].betting_offer[0].odds});offerListIndex.push(filter2[0].betting_offer[0].id)}else{countDisable++}}else{countDisable++}}}else{countDisable++}}});if(!offerList.length||1>=countAvailable){self.disableRmR("",bannerId,cacheName);if(self.widget_position_id&&["1","2","3"].includes(self.widget_position_id.toString())){self.startLoad()}}else{var{wDt,bDt}=self.getWidget();self.onResize();self.setBettingOffer(offerList);self.set("offerList",offerList);self.set("offerListIndex",offerListIndex);self.set("offerCheckedArray",oddsCA);self.set("offerActive",self.offerEquals());self.set("oddsCheckedArrayCount",totalOdds);var cacheOutcome=JSON.stringify(self.offerList);self.setEventLs(cacheName,"action_outcome",{widget_layout:self.widget_layout,type_id:bDt.type_id,image_banner_set:bDt.banner_image,banner_config:bDt.banner_config,background_image_transperent:bDt.background_image_transperent,background_color:bDt.background_color,content:self.text.content,title:self.text.title,devices:wDt.devices,action_outcome:cacheOutcome});self.hideSkeleton();self.$.slideSource.classList.add("fadebanner");self.sliderLoaded()}})})()}else{self.disableRmR("",bannerId,cacheName)}}callRecommend(bannerId,coupon){var self=this;if(self.operatorId&&self.emUserId){var cache=null,lsConfig=self.lsGet("bmfe:config","json"),terminal_type=767<=window.innerWidth?"1":"2";if(lsConfig){if("undefined"===typeof lsConfig.recommendations){lsConfig.recommendations={}}if(lsConfig.recommendations.result&&lsConfig.recommendations.data.user_id==self.emUserId&&lsConfig.recommendations.data.terminal_type==terminal_type){if(dayjs(dayjs()).isBefore(lsConfig.recommendations.expireDate)){cache=lsConfig.recommendations.data}}}if(cache){if(17==self.tid){self.loadRecommendEvents(bannerId,cache,coupon)}else{self.loadRecommendEvent(0,bannerId,cache)}}else{var topic="/banners/recommendations/"+self.operatorId+"/"+self.emUserId+"/false/"+terminal_type,isClone=self.parentNode.classList.contains("splide__slide--clone")&&self.fromInclude,cacheName=self.genCacheName(4,bannerId,0,self.language);if(isClone){if("undefined"!==typeof self.WEB_API_CACHE[topic]&&"undefined"!==typeof self.WEB_API_CACHE[topic].result){self.recommendRes(cacheName,bannerId,lsConfig,self.WEB_API_CACHE[topic],coupon)}else{if("undefined"!==typeof self.dumpRecommendListener){self.removeEventListener("topicListen:initialDump",self.dumpRecommendListener)}self.dumpRecommendListener=self.dumpRecommend.bind(self,topic,cacheName,bannerId,lsConfig,coupon);self.addEventListener("topicListen:initialDump",self.dumpRecommendListener)}}else{try{self.callAjax(self.getEndpoint()+"v1/banners/recommendations/"+self.operatorId+"/"+self.emUserId+"/false/"+terminal_type,"GET",{},{"Content-Type":"application/json",Authorization:self.emUserSession}).then(res=>{self.recommendRes(cacheName,bannerId,lsConfig,res,coupon);self.customEventTopic("topic:initialDump",topic,res)})}catch(err){}}}}}dumpRecommend(topic,cacheName,bannerId,lsConfig,coupon,dataE){var self=this;if(dataE.detail&&dataE.detail.topic==topic){self.recommendRes(cacheName,bannerId,lsConfig,dataE.detail.kwargs,coupon)}}recommendRes(cacheName,bannerId,lsConfig,res,coupon){var self=this;if(res&&"success"==res.result&&"undefined"!==typeof res.data.recommendations_list&&res.data.recommendations_list&&res.data.recommendations_list.length){res.expireDate=dayjs().add(2,"minute").toLocaleString("en-US");lsConfig.recommendations=res;self.lsSet("bmfe:config",JSON.stringify(lsConfig));if(17==self.tid){self.loadRecommendEvents(bannerId,res.data,coupon)}else{self.loadRecommendEvent(0,bannerId,res.data)}}else{self.disableRmR("",bannerId,cacheName)}}bannerTranslate(content){var self=this,lang="en",contentArr=Object.values(content),translate={};if(content){if("undefined"===typeof content[self.language]&&"undefined"===typeof content[lang]){translate=contentArr[0]}else{if("undefined"!==typeof content[self.language]){translate=content[self.language]}else{if("undefined"===typeof content[lang]){translate=contentArr[0]}else{translate=content[lang]}}}}if("undefined"===typeof translate||translate&&"undefined"===typeof translate.title){translate=contentArr[0]}return translate}showSlides(){var self=this;if("undefined"===typeof self.widget.content_arr||self.widget.content_arr.length!=self.widget.content_data.length||0==self.slider_layout||("undefined"===typeof self.webapiUrl||""==self.webapiUrl||"undefined"===typeof self.webapiRealm||""==self.webapiRealm)&&"offerlibrary"!=self.apiMethod){if(self.waitTNoSlide1){clearTimeout(self.waitTNoSlide1);self.waitTNoSlide1={}}self.waitTNoSlide1=setTimeout(function(){self.showSlides()},100);return!1}var device=self.widget.device;if(device.desktop){self.$.type_slider.classList.add("d_desktop")}if(device.tablet){self.$.type_slider.classList.add("d_tablet")}if(device.mobile){self.$.type_slider.classList.add("d_mobile")}if("undefined"!==typeof self.width&&self.width){self.$.type_slider.style.width=self.width}(async()=>{var count_draw=0,html1="",html2="",enable_loop=!0,type_list=[];await Promise.all([self.widget.content_arr.forEach((item,i)=>{var type=["8","9","11","12","16","17"].includes(item.type_id.toString())?7:item.type_id;if(!type_list.includes(type)){type_list.push(type)}if("undefined"===typeof self.widget.content_data[i]){}else{count_draw++}})]).then(pData=>{if(1==type_list.length&&["7"].includes(type_list[0].toString())){self.autoHeight=!0}if(count_draw!=self.widget.content_arr.length){if(self.waitTNoSlide2){clearTimeout(self.waitTNoSlide2);self.waitTNoSlide2={}}self.waitTNoSlide2=setTimeout(function(){self.showSlides()},100)}else{var index=0;(async()=>{await Promise.all([self.widget.content_data.forEach((item,i)=>{var imageBgs="",content_lang=self.bannerTranslate(item.banner_translate),index2=index,slide_title="",btnav_title="",slide_content="",slide_link="";if("undefined"!==typeof content_lang){if(content_lang.title){slide_title="<div class=\"contentMain\"><span class=\"eventtitle\">"+self.genTranslate(content_lang.title)+"</span></div>";btnav_title="<div class=\"buttonNav_title\">"+self.genTranslate(content_lang.title)+"</div>"}if(content_lang.content){slide_content="<div class=\"contentMain\"><span class=\"eventcontent\">"+self.genTranslate(content_lang.content)+"</span></div>"}if(null==content_lang.link){content_lang.link=""}slide_link=content_lang.link}var btn="",target_link="_self",show_buttonnav_cursor="";if(slide_link){show_buttonnav_cursor="showcursor";var btn_text="";if(content_lang.button_text){btn_text=content_lang.button_text}if(null!=content_lang.target_link&&content_lang.target_link){target_link=content_lang.target_link}btn="<button class=\"bgButton btLink btLink"+item.banner_id+"\" onclick=\"this.getRootNode().host.handleClick('"+self.convertURL(slide_link)+"', '"+target_link+"', '"+item.banner_id+"', '"+self.positionTag+"', '"+self.pageTag+"', '"+item.sport_id+"', '"+item.location_id+"', '"+item.tournament_id+"', '"+item.event_id+"')\">"+btn_text+"</button>";if(""==btn_text){btn="<div class=\"no_link_btn\">"+btn+"</div>"}self.$.bannerContentMain.classList.add("linkBanner")}else{self.$.bannerContentMain.classList.remove("linkBanner")}var render_slide="";if("desktop"==self.nowScreen&&item.devices.desktop){render_slide="desktop"}if("tablet"==self.nowScreen&&item.devices.tablet){render_slide="tablet"}if("mobile"==self.nowScreen&&item.devices.mobile){render_slide="mobile"}var slideheight=self.height;if(""==slideheight){if(!["7","8","9","11","16","17"].includes(item.type_id.toString())||["7","8","9","11","16","17"].includes(item.type_id.toString())&&!self.autoHeight&&("undefined"===typeof self.height||""==self.height||self.$.type_slider.style.minHeight)){slideheight="250px";if(["7","8","9","11","16","17"].includes(item.type_id.toString())){self.height=slideheight}}}self.$.type_slider.style.minHeight=slideheight;if(render_slide){var templates=[];if(5==item.type_id){item.type_id=1}else if(11==item.type_id){if(item.coupon&&item.coupon.templates&&item.coupon.templates.length){item.coupon.templates.map(function(item){var id=+item.templateId;if(!isNaN(id)&&-1==templates.indexOf(id)){templates.push(id)}return item})}}if(null==item.tournament_id&&2==item.type_id||["1","4","6","7","8","9","11","12","13","16","17"].includes(item.type_id.toString())){let iframeTargetId=self.iframeTarget;if("undefined"==iframeTargetId||"undefined"===typeof iframeTargetId){iframeTargetId=""}let activeBet=self.activeBettingOffers;if(!self.activeBettingOffers||"undefined"==self.activeBettingOffers||0==self.activeBettingOffers.length){activeBet=[]}let userRoles=self.emUserRoles;if(!self.emUserRoles||"undefined"==self.emUserRoles||0==self.emUserRoles.length){userRoles=[]}if("3"!=item.status_id){enable_loop=!1;const translate=self.translate&&"object"===typeof self.translate?JSON.stringify(self.translate):JSON.stringify(null);var html1tmp="li-parent=\"true\" li-type-id=\""+item.type_id+"\" li-id=\""+item.banner_id+"\" aria-hidden=\"false\" tabindex=\"0\" data-bg-img-thumbnail='"+JSON.stringify(item.banner_image)+"' data-bg-color='"+item.background_color+"' style='background-color:"+(item.background_color?item.background_color:null)+";'><bannermatrix-banner class-name=\""+self.className+"\" api-endpoint=\""+self.apiEndpoint+"\" language=\""+self.language+"\" logged-in=\""+self.loggedIn+"\" banner-id=\""+item.banner_id+"\" width=\""+self.width+"\" height=\""+self.height+"\" operator-id=\""+self.operatorId+"\" position-tag=\""+self.positionTag+"\" page-tag=\""+self.pageTag+"\" iframe-target=\""+iframeTargetId+"\" active-betting-offers='"+JSON.stringify(activeBet)+"' eid=\""+item.event_id+"\" tid=\""+item.type_id+"\" event-id=\""+self.eventId+"\" tournament-id=\""+self.tournamentId+"\" location-id=\""+self.locationId+"\" sport-id=\""+self.sportId+"\" from-include=\"true\" has-bullet=\""+(self.slider_setting?self.slider_setting.slider_layout_bullets:"")+"\" webapi-url=\""+self.webapiUrl+"\" webapi-realm=\""+self.webapiRealm+"\" em-user-id=\""+self.emUserId+"\" em-user-roles='"+JSON.stringify(userRoles)+"' em-user-session=\""+self.emUserSession+"\"  api-method=\""+self.apiMethod+"\" auto-height=\""+self.autoHeight+"\" offer-status=\"\" postmessage=\""+self.postmessage+"\" odds-type=\""+self.oddsType+"\" translate='"+translate+"' ";if(11==item.type_id){if(templates){templates.forEach(function(tpId,tpI){html1+="<li class=\"splide__slide bm_loading\" id=\"primary-slider-slide0"+index+"\" li-template-id=\""+tpId+"\" li-template-index=\""+tpI+"\" li-event-id=\""+self.eventId+"\" "+html1tmp+" template-id=\""+tpId+"\"></bannermatrix-banner></li>";index++})}}else{var extra="";if(["7","8","9"].includes(item.type_id.toString())){extra=" bm_loading"}html1+="<li class=\"splide__slide"+extra+"\" id=\"primary-slider-slide0"+index+"\" "+html1tmp+"></bannermatrix-banner></li>"}}}else{var showcursor="";if(""==btn_text||self.linkBoth()){showcursor="showcursor"}var firstStyle="",secondStyle="",setImage="<img class=\"preload\" src=\"\" loading=\"lazy\" onload=\"try{this.getRootNode().host.lazyLoadImage(this)}catch(e){}\">";if(item.banner_image&&item.banner_image.video){var video_play=!1,video_sound=!1;if(item.banner_config){if(item.banner_config.video_play){video_play=!0}if(item.banner_config.video_sound){video_sound=!0}}var videoType=self.hasWebM(item.banner_image.video)?"video/webm":"video/mp4";secondStyle="                            <div class=\"backgroundBannerVideo\">                              <div class=\"videoControls"+(video_play||video_sound?"":" videoControlsDisable")+"\" onclick=\"this.getRootNode().host.videoControlsActive(event)\">                                <div class=\"videoControlPlay"+(video_play?"":" active disable")+"\" onclick=\"this.getRootNode().host.videoControlPlay(event)\">                                  <div class=\"video-icon play-icon\">"+self.icon.play+"</div>                                  <div class=\"video-icon pause-icon\">"+self.icon.pause+"</div>                                </div>                                <div class=\"videoControlSound"+(video_sound?"":" disable")+"\" onclick=\"this.getRootNode().host.videoControlSound(event)\">                                  <div class=\"video-icon mute-icon\">"+self.icon.mute+"</div>                                  <div class=\"video-icon unmute-icon\">"+self.icon.unmute+"</div>                                </div>                              </div>                              <video "+(video_play?"":"autoplay ")+"loop muted playsinline poster=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=\"><source src=\""+item.banner_image.video+"\" type=\""+videoType+"\"></video>                            </div>                          "}else{var screenW=window.innerWidth,screenH=window.innerHeight;if(null!=self.shadowRoot.querySelector("#ul_slide li:first-child")){screenW=self.shadowRoot.querySelector("#ul_slide li:first-child").offsetWidth;screenH=self.shadowRoot.querySelector("#ul_slide li:first-child").offsetHeight}else{screenW=self.$.backgroundBanner.offsetWidth;screenH=self.$.backgroundBanner.offsetHeight}var image=self.generateImage(item.banner_image,screenW,screenH);if(image&&"null"!=image&&null!=image){setImage="<img class=\"preload\" src=\""+image+"\" loading=\"lazy\" onload=\"try{this.getRootNode().host.lazyLoadImage(this)}catch(e){}\">";if(item.background_image_transperent){firstStyle+="opacity: "+item.background_image_transperent/100+";"}}else if(self.slider_setting){image=self.generateImage(self.slider_setting,screenW,screenH);if(image&&"null"!=image&&null!=image){setImage="<img class=\"preload\" src=\""+image+"\" loading=\"lazy\" onload=\"try{this.getRootNode().host.lazyLoadImage(this)}catch(e){}\">";if(item.background_image_transperent){firstStyle+="opacity: "+item.background_image_transperent/100+";"}}}}var bg_color=item.background_color;if(""==bg_color&&self.slider_setting){bg_color=self.slider_setting.background_color}if(bg_color){imageBgs+="background-color:"+bg_color+";"}if(6==item.banner_layout){html1+="                          <li onclick=\"this.getRootNode().host.bannerClick(event, "+item.banner_id+")\" li-parent=\"false\" li-type-id=\""+item.type_id+"\" li-id=\""+item.banner_id+"\" style=\""+imageBgs+"\" class=\"buttonNavLi splide__slide "+showcursor+"\" id=\"primary-slider-slide0"+index+"\" aria-hidden=\"false\" data-bg-img-thumbnail='"+JSON.stringify(item.banner_image)+"' data-bg-color='"+item.background_color+"' data-bg-transperent='"+item.background_image_transperent+"' tabindex=\"0\">                                <section class=\"buttonNavSection\">                                  <div class=\"buttonNavLayout "+show_buttonnav_cursor+"\">                                    <div class=\"buttonNav_image\" style=\""+firstStyle+"\">"+setImage+"</div>                                    <div class=\"buttonNav_btn\">"+btn+"</div>                                    "+btnav_title+"                                  </div>                                </section>                              </li>                          "}else{html1+="                          <li onclick=\"this.getRootNode().host.bannerClick(event)\" li-parent=\"false\" li-type-id=\""+item.type_id+"\" li-id=\""+item.banner_id+"\" style=\""+imageBgs+"\" class=\"splide__slide "+showcursor+"\" id=\"primary-slider-slide0"+index+"\" aria-hidden=\"false\" data-bg-img-thumbnail='"+JSON.stringify(item.banner_image)+"' data-bg-color='"+item.background_color+"' data-bg-transperent='"+item.background_image_transperent+"' tabindex=\"0\">                                <div class=\"li_image "+self.disableCrop+"\" style=\""+firstStyle+"\">"+setImage+"</div>"+secondStyle+"                                <div class=\"overlaybanner borderradius0\">                                        <div class=\"bannerContent\">                                          <div class=\"container sliderBanner\">                                              <div class=\"bg-content\">                                                <div class=\"body pendingBody\">                                                    <div onclick=\"this.getRootNode().host.bannerIdClick('btLink"+item.banner_id+"','"+btn_text+"')\">                                                    "+slide_content+"                                                    "+slide_title+"                                                    </div>                                                    <div id=\"groupslidebanner\">                                                      <div class=\"detail\" id=\"detail\">                                                        <div>"+btn+"</div>                                                      </div>                                                    </div>                                                </div>                                              </div>                                              <div class=\"cleardiv\"></div>                                            </div>                                        </div>                                  </div>                              </li>                          "}}var html2tmp="class=\"splide__slide\" aria-hidden=\"false\" tabindex=\"0\" data-bg-img-thumbnail=\"\"><div class=\"thumbstyle\" style=\""+imageBgs+"\"><img class=\"preload\" src=\"\" loading=\"lazy\" onload=\"try{this.getRootNode().host.lazyLoadImage(this)}catch(e){}\"></div></li>";if(11==item.type_id){if(templates){templates.forEach(function(value,key){html2+="                              <li id=\"secondary-slider-slide0"+index2+"\" "+html2tmp+"                            ";index2++})}}else{html2+="                          <li id=\"secondary-slider-slide0"+index+"\" "+html2tmp+"                        "}}if(11!=item.type_id){index++}})]).then(pData1=>{self.$.ul_slide.innerHTML=html1;self.$.ul_slide2.innerHTML=html2;if(html1){if(self.waitTNoSlide3){clearTimeout(self.waitTNoSlide3);self.waitTNoSlide3={}}self.waitTNoSlide3=setTimeout(function(){self.sliderCheckRemove();if(!self.showLoading){if("block"==self.$.skeletonMain.style.display){self.hideSkeleton()}self.$.type_slider.classList.add("fadebanner")}else{if("block"==self.$.skeletonMain.style.display){self.hideSkeleton();self.$.type_slider.classList.add("fadebanner")}else{var i=0,wait=setInterval(function(){i++;if("block"==self.$.skeletonMain.style.display){clearInterval(wait);self.hideSkeleton();self.$.type_slider.classList.add("fadebanner")}if(100<i){clearInterval(wait)}},50)}}var cHeight=150;if(100<self.$.type_slider.clientHeight){cHeight=self.$.type_slider.clientHeight}if(self.autoHeight){cHeight=0}var option=self.setSliderOption(cHeight,!1,enable_loop);if("undefined"!==typeof self.primarySlider){self.primarySlider.destroy();delete self.primarySlider}self.showSlider();if(!self.slider_layout_thumbnail){self.primarySlider=new Splide(self.shadowRoot.querySelector("#primary-slider"),option);self.eventOfSlider();self.primarySlider.mount()}else{option.pagination=!1;var slidewidth="100%",width="auto",fixedWidth="100px",thumbcolumn="60px",direction="ltr",thumb_pos="bottom";if(5==self.slider_layout){thumb_pos="left"}if("left"==thumb_pos){direction="ttb";slidewidth="80%";fixedWidth="auto";width="19.5%";thumbcolumn=option.height;option.width=slidewidth}else if("right"==thumb_pos){direction="ttb";slidewidth="80%";fixedWidth="auto";width="19.5%";thumbcolumn=option.height;option.width=slidewidth;self.shadowRoot.querySelector("#secondary-slider").classList.add("thumbRight");self.shadowRoot.querySelector("#ul_slide2").style.width="100%"}else if("bottom"==thumb_pos&&cHeight){if("undefined"!==typeof self.height&&self.height){option.height=option.height.toString().replace("px","")-60}}option.type="fade";option.drag=!0;option.padding={left:"0rem",right:"0rem"};self.primarySlider=new Splide(self.shadowRoot.querySelector("#primary-slider"),option);var bp={};if(1==self.slider_layout){bp={600:{fixedWidth:66,height:40}}}var option2={direction:direction,fixedWidth:fixedWidth,width:width,rewind:!0,fixedHeight:60,height:thumbcolumn,gap:10,cover:!0,isNavigation:!0,focus:"left",arrows:!1,pagination:!1,breakpoints:bp,heightRatio:.5};self.secondarySlider=new Splide(self.shadowRoot.querySelector("#secondary-slider"),option2);self.primarySlider.sync(self.secondarySlider);self.primarySlider.mount();self.secondarySlider.mount()}self.removeDemo();self.onResize()},50)}else{self.hideSkeleton()}})})()}})})()}showSlider(){var self=this;self.shadowRoot.querySelector("#primary-slider").classList.add("skeletonMain");self.shadowRoot.querySelector("#primary-slider").style.border="none";self.shadowRoot.querySelector("#primary-slider").style.display="block";if(5==self.slider_layout){self.shadowRoot.querySelector("#secondary-slider").classList.add("thumbLeft");self.shadowRoot.querySelector("#primary-slider").style.paddingLeft="20%";self.shadowRoot.querySelector(".splide__arrows").style.width="80%";self.shadowRoot.querySelector(".splide__arrows").style.height="100%";self.shadowRoot.querySelector(".splide__arrows").style.position="absolute";self.shadowRoot.querySelector("#ul_slide2").style.width="100%"}}hideSlider(){var self=this;self.shadowRoot.querySelector("#primary-slider").classList.remove("skeletonMain");self.shadowRoot.querySelector("#primary-slider").style.display="none";if(5==self.slider_layout){self.shadowRoot.querySelector("#secondary-slider").classList.remove("thumbLeft")}}eventOfSlider(){var self=this;self.primarySlider.on("visible",function(data){var bannerId=data.slide.getAttribute("li-id"),typeId=data.slide.getAttribute("li-type-id").toString(),templateId="11"==typeId?data.slide.getAttribute("li-template-id"):void 0,sendGA=self._sendGA(bannerId,templateId);if(sendGA&&window.dataLayerBanner){var dataGA4={event:"Views",operator_id:self.operatorId,banner_id:bannerId,banner_language:self.language,banner_page:self.pageTag,banner_position:self.positionTag,banner_type:typeId,em_id:"true"==self.loggedIn&&self.emUserId&&"undefined"!=self.emUserId?btoa(self.emUserId):"",sport_id:"",sport_name:"",country_id:"",country_name:"",tournament_id:"",tournament_name:"",market_id:"",market_name:"",market_short_id:"",event_id:"",event_match_name:"",outcome_id:"",outcome_key:"",outcome_name:""};if("true"===data.slide.getAttribute("li-parent")){var child=data.slide.querySelector("bannermatrix-banner");if(["7","8","16"].includes(typeId)){try{var timeout=0;if(!child.offerList){timeout=1e3}if(self.waitSliderRepeat[bannerId]){clearInterval(self.waitSliderRepeat[bannerId]);self.waitSliderRepeat[bannerId]={}}var i=1;self.waitSliderRepeat[bannerId]=setInterval(function(){i++;var childList=child.offerList;if(childList&&childList.length){childList=childList.slice(0,1);childList.forEach(function(value,key){var dataGA4loop={...dataGA4,sport_id:value.MATCH.sportId,sport_name:value.MATCH.sportName,country_id:value.MATCH.venueId,country_name:value.MATCH.venueName,tournament_id:value.MATCH.parentId,tournament_name:value.MATCH.parentName,market_id:value.MARKET.id,market_name:value.MARKET.name,market_short_id:value.MARKET.bettingTypeId+"_"+value.MARKET.eventPartId,event_id:value.MATCH.id,event_match_name:value.MATCH.name};self.ga4Push(dataGA4loop)});clearInterval(self.waitSliderRepeat[bannerId])}if(10<=i){clearInterval(self.waitSliderRepeat[bannerId])}},timeout)}catch(err){}}else{try{dataGA4.sport_id=child.text.sportId;dataGA4.sport_name=child.text.sportName;dataGA4.country_id=child.text.countryId;dataGA4.country_name=child.text.countryName;dataGA4.tournament_id=child.text.tournamentId;dataGA4.tournament_name=child.text.tournamentName;dataGA4.market_id=child.text.marketid;dataGA4.market_name=child.text.marketname;dataGA4.market_short_id=child.text.marketShortId;dataGA4.event_id=child.text.event_id;dataGA4.event_match_name=child.text.event_name;dataGA4.template_id=["11"].includes(typeId)?templateId:"";if(dataGA4.sport_name&&dataGA4.country_name&&dataGA4.tournament_name&&(dataGA4.market_id&&dataGA4.market_name||["9","11"].includes(typeId))&&(dataGA4.event_match_name||!dataGA4.event_match_name&&["12"].includes(typeId))){self.ga4Push(dataGA4)}else{var bannerIdKey=`${bannerId}${dataGA4.template_id?"_"+dataGA4.template_id:""}`;if(self.waitSliderRepeat[bannerIdKey]){clearInterval(self.waitSliderRepeat[bannerIdKey]);self.waitSliderRepeat[bannerIdKey]={}}var i=1;self.waitSliderRepeat[bannerIdKey]=setInterval(function(){i++;dataGA4.sport_id=child.text.sportId;dataGA4.sport_name=child.text.sportName;dataGA4.country_id=child.text.countryId;dataGA4.country_name=child.text.countryName;dataGA4.tournament_id=child.text.tournamentId;dataGA4.tournament_name=child.text.tournamentName;dataGA4.market_id=child.text.marketid;dataGA4.market_name=child.text.marketname;dataGA4.market_short_id=child.text.marketShortId;dataGA4.event_id=child.text.event_id;dataGA4.event_match_name=child.text.event_name;if(dataGA4.sport_name&&dataGA4.country_name&&dataGA4.tournament_name&&(dataGA4.market_id&&dataGA4.market_name||["9","11"].includes(typeId))&&(dataGA4.event_match_name||!dataGA4.event_match_name&&["12"].includes(typeId))){clearInterval(self.waitSliderRepeat[bannerIdKey]);self.ga4Push(dataGA4)}if(10<=i){clearInterval(self.waitSliderRepeat[bannerIdKey])}},1e3)}}catch(err){}}}else{if("2"==data.slide.getAttribute("li-type-id")){var lsParam=self.genLsParam(self.loggedIn),ls=self.lsGet("bmfe:"+self.language+"-"+lsParam);ls=JSON.parse(ls);if("undefined"!==typeof ls[bannerId]&&ls[bannerId].data){dataGA4.country_id=ls[bannerId].data.location_id;dataGA4.country_name=ls[bannerId].data.location_name;dataGA4.sport_id=ls[bannerId].data.sport_id;dataGA4.sport_name=ls[bannerId].data.sport_name;dataGA4.tournament_id=ls[bannerId].data.tournament_id;dataGA4.tournament_name=ls[bannerId].data.tournament_name}}self.ga4Push(dataGA4)}}});self.primarySlider.on("mounted",function(data){self.shadowRoot.querySelectorAll("bannermatrix-banner").forEach(function(value,key){var isClone=value.parentNode.classList.contains("splide__slide--clone"),tid=value.parentNode.getAttribute("li-type-id"),templateIndex=value.parentNode.getAttribute("li-template-index")||"0";if(!isClone&&("11"!=tid||"11"==tid&&"0"==templateIndex)){value.addEventListener("topic:register",data=>{self.customEventItem("topicListen:register",data.detail)});value.addEventListener("topic:initialDump",data=>{self.customEventItem("topicListen:initialDump",data.detail)})}})})}reloadSlider(){var self=this;self.destroySlider();self.showSlider();if("undefined"!==typeof self.primarySlider){self.eventOfSlider();if("undefined"!==typeof self.secondarySlider){self.primarySlider.sync(self.secondarySlider);self.primarySlider.mount();self.secondarySlider.mount()}else{self.primarySlider.mount()}}}destroySlider(){var self=this;self.hideSlider();if("undefined"!==typeof self.primarySlider){self.primarySlider.destroy();if("undefined"!==typeof self.secondarySlider){self.secondarySlider.destroy()}}}sliderCheckRemove(){var self=this;if(self.waitSliderRm){clearInterval(self.waitSliderRm);self.waitSliderRm={}}self.waitSliderRm=setInterval(function(){self.removeSliderNoOdds()},1e3)}removeSliderNoOdds(){var self=this;if(""==self.bannerId){if(self.slider_disable.length){(async()=>{var list_remove=[];await Promise.all([self.shadowRoot.querySelectorAll("#ul_slide li:not(.splide__slide--clone)").forEach(function(value,key){var bId=value.getAttribute("li-id");if("11"==value.getAttribute("li-type-id")){var eventId=value.getAttribute("li-event-id");if(eventId){bId+="-"+eventId}var templateId=value.getAttribute("li-template-id");if(templateId){bId+="-"+templateId}}if(-1!=self.slider_disable.indexOf(bId)){try{list_remove.push(key)}catch(err){}}})]).then(pData=>{if(list_remove.length){try{var remove=list_remove.reverse();remove.forEach(function(value,key){self.primarySlider.remove(value);if("undefined"!==typeof self.secondarySlider){self.secondarySlider.remove(value)}});if(""==self.$.ul_slide.innerHTML){self.resetWidget()}self.reloadSlider()}catch(err){}}})})()}}}startLoadCacheAction(data){var self=this,data_hash=data.hash,lsParam=self.genLsParam(self.loggedIn),screenW=window.innerWidth,dataOverride=[];(async()=>{await Promise.all([data.data.forEach(function(value,key){if(480>screenW&&value.devices.mobile){dataOverride.push(value)}else if(481<=screenW&&1024>=screenW&&value.devices.tablet){dataOverride.push(value)}else if(1024<screenW&&value.devices.desktop){dataOverride.push(value)}})]).then(pData=>{data.data=dataOverride;if(null===data.data||0==data.data.length||[]==data.data){self.hideSkeleton();if(self.waitTNoRecords){clearTimeout(self.waitTNoRecords);self.waitTNoRecords={}}self.waitTNoRecords=setTimeout(function(){self.startLoad()},14e3);return!1}if(self.positionTag&&0==self.widget_position_id&&"undefined"!==typeof data.data&&data.data.length){var slider_change=!1,ls=self.lsGet("bmfe:"+self.language+"-"+lsParam),i=0,wait=setInterval(function(){ls=self.lsGet("bmfe:"+self.language+"-"+lsParam);if(!ls){i++;if(500<i){clearInterval(wait)}}else{clearInterval(wait);ls=JSON.parse(ls);if("undefined"===typeof ls.hash||ls.hash!=data_hash){slider_change=!0}if(slider_change&&"undefined"!==typeof ls.hash){}else{(async()=>{self.widget.content_arr=[];self.widget.content_data=[];self.widget.device="";var waitNewCall=!1;await Promise.all([data.data.forEach(function(value,key){var skip=!1;if(""==self.widget.device){self.widget.device=value.devices}if("undefined"!==typeof ls[value.banner_id]&&ls[value.banner_id].successful){if(2==value.type_id&&("undefined"===typeof ls[value.banner_id].data.tournament_event_id||0==ls[value.banner_id].data.tournament_event_id.length)){value.type_id=3}if(3==ls[value.banner_id].data.status_id){skip=!0}}if(!skip){self.widget.content_arr.push(value)}}),self.widget.content_arr.forEach(function(value2,key2){var apiParam="/"+self.language+"/banners/widget/"+self.operatorId+"/"+value2.banner_id+"/"+self.positionTag+"/"+self.eventId.toString(),nowTime=new Date,nextLoad=new Date(nowTime.getTime()+1e4);if(!slider_change&&"undefined"!==typeof ls[value2.banner_id]&&ls[value2.banner_id].successful){if(self.cacheUndefined(apiParam,2)){self.WEB_API_CACHE[apiParam]={min_next_load:nextLoad,cachedata:{}}}self.WEB_API_CACHE[apiParam].min_next_load=nextLoad;self.WEB_API_CACHE[apiParam].cachedata=ls[value2.banner_id];self.WEB_API_CACHE[apiParam].cachedata.successful=1;self.widget.content_data[key2]=ls[value2.banner_id].data}else{waitNewCall=!0}})]).then(pData=>{if("undefined"!==typeof self.widget.content_arr&&self.widget.content_arr.length){if(waitNewCall){self.lsDelete("bmfe:"+self.language+"-"+lsParam);self.resetWidget();self.shadowRoot.querySelectorAll(".splide__pagination").forEach(el=>el.remove());self.removeSession();self.startLoad()}else{self.showSlides();self.checkSliderChange()}}else{self.checkSliderChange()}})})()}}},50);return!1}else{var filter_data=[],popup_change=!1,ls=self.lsGet("bmfe:"+self.language+"-"+lsParam),i=0,wait=setInterval(function(){ls=self.lsGet("bmfe:"+self.language+"-"+lsParam);if(!ls){i++;if(500<i){clearInterval(wait)}}else{clearInterval(wait);ls=JSON.parse(ls);if("undefined"===typeof ls.hash||ls.hash!=data_hash){popup_change=!0}(async()=>{self.widget.content_arr=[];self.widget.content_data=[];self.widget.device="";var data_filter=[];await Promise.all([data.data.forEach(function(value,key){var skip=!1;if(""==self.widget.device){self.widget.device=value.devices}if("undefined"!==typeof ls[value.banner_id]&&ls[value.banner_id].successful){if(2==value.type_id&&("undefined"===typeof ls[value.banner_id].data.tournament_event_id||0==ls[value.banner_id].data.tournament_event_id.length)){value.type_id=3}if(3==ls[value.banner_id].data.status_id){skip=!0}}if(!skip){data_filter.push(value);var bId=value.banner_id.toString();if("11"==value.type_id){if(value.coupon&&value.coupon.event_id){bId+="-"+value.coupon.event_id}}if(-1==self.slider_disable.indexOf(bId)){filter_data.push(value)}self.widget.content_arr.push(value)}})]).then(pData=>{if(filter_data.length){var fDt=filter_data[0];self.widget={events_list:[]};self.widget.events_list[0]={web_data:fDt,banner_data:data_filter};if(self.last_hash[self.widget_id].length&&self.last_hash[self.widget_id].includes(fDt.hash)){if(self.waitTPush){clearTimeout(self.waitTPush);self.waitTPush={}}self.waitTPush=setTimeout(function(){self.startLoad()},1e4);return!1}if(2==fDt.type_id&&0==fDt.interval_status){fDt.type_id=3}if(3==fDt.type_id){self.$.overlaybanner.classList.add("promotionBanner");self.$.groupslidebanner.classList.add("promotionBanner");self.getBannerData()}else{self.$.overlaybanner.classList.remove("promotionBanner");self.$.groupslidebanner.classList.remove("promotionBanner");self.showSkeleton();self.getBannerData()}}else{self.hideSkeleton();setTimeout(function(){self.checkSliderChange()},1e3)}})})()}},50);return!1}})})()}startLoadCache(data){var self=this;if(self.widget_position_id&&["1","2"].includes(self.widget_position_id.toString())){var tag=self.positionTag+"-"+self.pageTag,lsBlockPF=self.lsGet("bmfe:blockpopupForever","json");if("undefined"!==typeof lsBlockPF.positions&&lsBlockPF.positions.length&&lsBlockPF.positions.includes(tag)){self.style.display="none";self.checkSliderChange();return!1}}if(data.successful){var paramLogin=self.loggedIn,lsParam=self.genLsParam(paramLogin);if(0==data.data.length){self.lsDelete("bmfe:"+self.language+"-"+lsParam);self.hideSkeleton();self.checkSliderChange();return!1}var dt=data.data[0];if("offerlibrary"==self.apiMethod){var timeOut=100,i=0,wait=setInterval(function(){if("undefined"!==typeof self.WEB_API_CACHE["offerlib.bundle.js"]){clearInterval(wait);if("undefined"===typeof self.WEB_API_CACHE.offer_library&&self.offerlibUrl){let array_event=[];(async()=>{await Promise.all([data.data.forEach((item,i)=>{if(self.isEvent(item.event_id)){array_event.push(item.event_id)}})]).then(pData=>{try{self.WEB_API_CACHE.offer_library=new OfferLib.OfferLib({offerUrl:self.offerlibUrl,langCode:self.offerlibLang?self.offerlibLang:"en-GB",version:2,useSse:!0});if(array_event.length){(async()=>{try{await self.WEB_API_CACHE.offer_library.sport.create();await self.WEB_API_CACHE.offer_library.sport.selectMatches(array_event);self.WEB_API_CACHE.offer_library.sport.on("updatematch",match=>{self.shadowRoot.querySelectorAll("#type_slider bannermatrix-banner").forEach(function(x){if(match&&x.getAttribute("eid")==match.matchId){x.setAttribute("offer-status","update")}})});self.WEB_API_CACHE.offer_library_ready=!0}catch(err){}})()}}catch(err){}})})()}if(0==self.widget_position_id){self.startLoadCacheAction(data)}else{var timeOut=100;if("offerlibrary"==self.apiMethod&&"undefined"!==typeof self.WEB_API_CACHE.offer_library_ready||["3","6"].includes(dt.type_id.toString())||2==dt.type_id&&("undefined"===typeof dt.tournament_event_id||0==dt.tournament_event_id.length)){timeOut=20}var j=0,waitIn=setInterval(function(){if("offerlibrary"==self.apiMethod&&"undefined"!==typeof self.WEB_API_CACHE.offer_library_ready||["3","6"].includes(dt.type_id.toString())||2==dt.type_id&&("undefined"===typeof dt.tournament_event_id||0==dt.tournament_event_id.length)){clearInterval(waitIn);if(data.data.length){if(["3","6"].includes(dt.type_id.toString())||2==dt.type_id&&("undefined"===typeof dt.tournament_event_id||0==dt.tournament_event_id.length)){self.startLoadCacheAction(data)}else{var start_hash=data.hash,ls=self.lsGet("bmfe:"+self.language+"-"+lsParam,"json");if("undefined"===typeof ls.hash||start_hash==ls.hash){var newData=[];(async()=>{await Promise.all([data.data.forEach((item3,i3)=>{if(self.isEvent(item3.event_id)){let focus=self.WEB_API_CACHE.offer_library.sport.matches.get(item3.event_id);if(focus&&"prematch"==focus.state){newData.push(item3)}}else{newData.push(item3)}})]).then(pData1=>{var lsNew=self.lsGet("bmfe:"+self.language+"-"+lsParam,"json");if("undefined"!==typeof lsNew.maindata){lsNew.maindata.data=newData;(async()=>{if(newData.length){await Promise.all([newData.forEach((item,i)=>{lsNew[item.banner_id]={data:item,successful:1}})]).then(pData2=>{self.lsSet("bmfe:"+self.language+"-"+lsParam,JSON.stringify(lsNew))})}else{self.lsSet("bmfe:"+self.language+"-"+lsParam,JSON.stringify(lsNew))}})();data.data=newData;if(paramLogin==self.loggedIn){self.startLoadCacheAction(data)}}else{self.widget={events_list:[]};self.resetWidget();self.startLoad();return!1}})})()}}}}else{j++;if(100<j){clearInterval(waitIn)}}},timeOut)}}else{i++;if(100<i){clearInterval(wait)}}},timeOut)}else{if(0==self.widget_position_id){self.startLoadCacheAction(data)}else{var skip=!1;if(["3","4","6","7","8","9","11","12","16","17"].includes(dt.type_id.toString())||2==dt.type_id&&("undefined"===typeof dt.tournament_event_id||0==dt.tournament_event_id.length)){skip=!0}var timeOut=100;if(null!=self.ws_session||skip){timeOut=20}var i=0,wait=setInterval(function(){if(null!=self.ws_session||skip){clearInterval(wait);if(data.data.length){if(skip){self.startLoadCacheAction(data)}else{var array_event=[];(async()=>{await Promise.all([data.data.forEach((item,i)=>{if(self.isEvent(item.event_id)){array_event.push(item.event_id)}})]).then(pData=>{var start_hash=data.hash;self.ws_session.call("/sports#event",[],{lang:self.language,eventIds:array_event,dataWithoutOdds:!1}).then(function(res){var ls=self.lsGet("bmfe:"+self.language+"-"+lsParam,"json");if("undefined"===typeof ls.hash||start_hash==ls.hash){if(res.kwargs.records.length){var newData=[];(async()=>{await Promise.all([res.kwargs.records.forEach((item2,i2)=>{self.arrEvent[item2.id]=item2}),data.data.forEach((item3,i3)=>{if(self.isEvent(item3.event_id)){if("undefined"!==typeof self.arrEvent[item3.event_id]){if(1==self.arrEvent[item3.event_id].statusId||2==self.arrEvent[item3.event_id].statusId){item3.status_id=self.arrEvent[item3.event_id].statusId;newData.push(item3)}}}else{newData.push(item3)}})]).then(pData1=>{var lsNew=self.lsGet("bmfe:"+self.language+"-"+lsParam,"json");if("undefined"!==typeof lsNew.maindata){lsNew.maindata.data=newData;(async()=>{if(newData.length){await Promise.all([newData.forEach((item,i)=>{lsNew[item.banner_id]={data:item,successful:1}})]).then(pData2=>{self.lsSet("bmfe:"+self.language+"-"+lsParam,JSON.stringify(lsNew))})}else{self.lsSet("bmfe:"+self.language+"-"+lsParam,JSON.stringify(lsNew))}})();data.data=newData;if(paramLogin==self.loggedIn){self.startLoadCacheAction(data)}}else{self.widget={events_list:[]};self.resetWidget();self.startLoad();return!1}})})()}else{if(1<data.data.length){delete data.data[0];var newD=[];(async()=>{await Promise.all([data.data.forEach((item,i)=>{newD.push(item)})]).then(pData1=>{data.data=newD;var sendData=data;self.startLoadCacheFilter(sendData)})})()}}}})})})()}}}else{i++;if(200<i){clearInterval(wait)}}},timeOut)}}}}intersect(a,b){for(var d={},results=[],i=0;i<b.length;i++){d[b[i]]=!0}for(var j=0;j<a.length;j++){if(d[a[j]]){results.push(a[j])}}return results}startLoadCacheFilter(data){var self=this,currentDate=new Date,weekIndex=currentDate.getDay(),year=currentDate.getFullYear(),month=(currentDate.getMonth()+1+"").padStart(2,"0"),day=(currentDate.getDate()+"").padStart(2,"0"),today=`${year}-${month}-${day}`,currentTime=dayjs(currentDate.toISOString().replace("T"," ").replace("Z","")),newData=[];(async()=>{await Promise.all([data.data.forEach((item,i)=>{if(!item.banner_recurring_date||item.banner_recurring_date&&0==Object.keys(item.banner_recurring_date).length){if("false"==self.loggedIn){newData.push(item)}else{if(0==item.user_group.length||self.intersect(self.emUserRoles,item.user_group).length){newData.push(item)}}}else if(item.banner_recurring_date){var start=item.banner_recurring_date["start_time_"+weekIndex],end=item.banner_recurring_date["end_time_"+weekIndex];if(start&&end){var now=dayjs(currentTime),filterStart=dayjs(`${today} ${start}`),filterEnd=dayjs(`${today} ${end}`).add(59,"second");if(filterStart.isAfter(filterEnd)){filterStart=filterStart.subtract(1,"day")}if(now.isAfter(filterStart)&&now.isBefore(filterEnd)){if("false"==self.loggedIn){newData.push(item)}else{if(0==item.user_group.length||self.intersect(self.emUserRoles,item.user_group).length){newData.push(item)}}}}}})]).then(pData=>{data.data=newData;self.startLoadCache(data)})})()}startLoadCloseFilter(data){var self=this,lsBlockP=self.lsGet("bmfe:blockpopup","json");if(data.successful&&data.data.length&&"undefined"!==typeof lsBlockP.login){(async()=>{var iLogin=lsBlockP.login,iLogout=lsBlockP.logout,unblock=!1,newBlockPL=[],lsBlockPL=self.lsGet("bmfe:blockpopupLimit","json"),arr_new=[],limitBlock=[];await Promise.all([lsBlockPL.forEach((item,i)=>{if(dayjs(dayjs()).isBefore(item.expireDate)){newBlockPL.push(item);limitBlock.push(item.hash)}else{unblock=!0}}),data.data.forEach((item,i)=>{if(-1==limitBlock.indexOf(self.language+"-"+self.positionTag)){if("true"==self.loggedIn){if(-1==iLogin.indexOf(item.hash)){arr_new.push(item)}}else{if(-1==iLogout.indexOf(item.hash)){arr_new.push(item)}}}})]).then(pData=>{if(unblock){self.lsSet("bmfe:blockpopupLimit",JSON.stringify(newBlockPL));self.resetWidget();var lsParam=self.genLsParam(self.loggedIn);self.lsDelete("bmfe:"+self.language+"-"+lsParam);self.removeSession();self.startLoad()}else{data.data=arr_new;self.startLoadCacheFilter(data)}})})()}else{self.startLoadCacheFilter(data)}}startLoadCall(apiParam,url,method){var self=this,paramLogin=self.loggedIn.toString();if("true"!=paramLogin){paramLogin="false"}var showCall=!0,lsParam=self.genLsParam(paramLogin),ls=self.lsGet("bmfe:"+self.language+"-"+lsParam,"json");if("undefined"!==typeof ls.maindata){try{var data=ls.maindata;self.WEB_API_CACHE[apiParam].cachedata=data;showCall=!1;if(self.widget_position_id&&["1","2"].includes(self.widget_position_id.toString())){self.startLoadCloseFilter(data)}else{self.startLoadCacheFilter(data)}var oldhash=ls.hash||"",lastUpdate=ls.maindata.last_update}catch(err){self.lsDelete("bmfe:"+self.language+"-"+lsParam)}}self.callAjax(url,method,{}).then(res=>{if(res.successful){if("undefined"!==typeof oldhash&&oldhash!=res.hash&&("undefined"===typeof lastUpdate||lastUpdate&&dayjs(res.last_update).isAfter(dayjs(lastUpdate)))){self.disableApiCallback=!1;self.lsSet("bmfe:events","{}");self.set("text.status_id","");self.widget.content_arr=[];self.widget.content_data=[];self.lsSet("bmfe:"+self.language+"-"+lsParam,"{}");self.resetWidget();self.removeSession();self.startLoad()}else{let newRes={data:[],last_update:res.last_update,hash:res.hash,successful:res.successful};self.position_hash=newRes.hash;(async()=>{await Promise.all([res.data.forEach((item,i)=>{let skip=!1;if("offerlibrary"==self.apiMethod){skip=!0;if(["1","2","3"].includes(item.type_id.toString())){skip=!1}}if(!skip){newRes.data.push(item)}})]).then(pData1=>{var setData={},saveLocal=!1;ls=self.lsGet("bmfe:"+self.language+"-"+lsParam,"json");if(0===Object.keys(ls).length||"undefined"===typeof ls.maindata){setData.maindata=newRes;setData.hash=newRes.hash;saveLocal=!0}(async()=>{if(newRes.data.length){await Promise.all([newRes.data.forEach((item,i)=>{setData[item.banner_id]={data:item,successful:newRes.successful}})]).then(pData=>{if(saveLocal){self.lsSet("bmfe:"+self.language+"-"+lsParam,JSON.stringify(setData))}if(showCall){self.WEB_API_CACHE[apiParam].cachedata=newRes;if(self.widget_position_id&&["1","2"].includes(self.widget_position_id.toString())){self.startLoadCloseFilter(newRes)}else{self.startLoadCacheFilter(newRes)}}})}else{self.hideSkeleton();if(saveLocal){self.lsSet("bmfe:"+self.language+"-"+lsParam,JSON.stringify(setData))}}})()})})()}}}).catch(err=>{})}startLoad(){var self=this;self.clearWait();self.widget={events_list:[]};if(self.bannerId){self.getBannerData()}else{var paramLogin=self.loggedIn.toString();if("true"!=paramLogin){paramLogin="false"}var url="/banners/list/"+self.operatorId+"/"+self.language+"/"+self.positionTag+"/"+self.pageTag+"/"+paramLogin+"/"+self.eventId.toString();if(self.eventId&&self.tournamentId){url+="/"+self.tournamentId.toString();if(self.tournamentId&&self.locationId&&self.sportId){url+="/"+self.locationId.toString()+"/"+self.sportId.toString()}}var ajax1={method:"GET",url:url},apiParam="/"+self.language+ajax1.url,nowTime=new Date,nextLoad=new Date(nowTime.getTime()+5e3),load=!1;if(self.cacheUndefined(apiParam,2)){self.WEB_API_CACHE[apiParam]={min_next_load:nextLoad,cachedata:{}};load=!0;self.startLoadCall(apiParam,self.getEndpoint()+"v1"+ajax1.url,ajax1.method)}if(nowTime>self.WEB_API_CACHE[apiParam].min_next_load){self.WEB_API_CACHE[apiParam].min_next_load=nextLoad;self.startLoadCall(apiParam,self.getEndpoint()+"v1"+ajax1.url,ajax1.method)}else if(!load&&"undefined"!==typeof self.WEB_API_CACHE[apiParam].cachedata.successful){self.startLoadCacheFilter(self.WEB_API_CACHE[apiParam].cachedata)}else{if(!load){var i=0,wait=setInterval(function(){i++;if(self.cacheUndefined(apiParam,3)){if(200<i){clearInterval(wait)}}else{self.startLoadCacheFilter(self.WEB_API_CACHE[apiParam].cachedata);clearInterval(wait)}},300)}}}}getDateFormat(dateget,isOutright=!1){var self=this,format={defaultDateTime:"DD-MM-YYYY HH:mm",defaultDate:"DD-MM-YYYY",defaultTime:"HH:mm",shortDateTime:"DD/MM HH:mm"};if(self.slider_setting&&self.slider_setting.extra_config&&self.slider_setting.extra_config.format){format=self.slider_setting.extra_config.format}var dateFormat=dayjs(dateget).format(format.defaultDateTime).toLocaleString("en-US");if(isOutright){dateFormat=dayjs(dateget).format(format.defaultDate).toLocaleString("en-US")}else if(self.slider_setting){if(1==self.slider_setting.banner_date){var dateToday=dayjs().format(format.defaultDate).toLocaleString("en-US"),dateTomorrow=dayjs().add(1,"day").format(format.defaultDate).toLocaleString("en-US"),dateCheck=dayjs(dateget).format(format.defaultDate).toLocaleString("en-US"),tDt=self.slider_setting.translate_date;if(dateCheck==dateTomorrow){var txtTomorrow="Tomorrow";if("undefined"!==typeof tDt[self.language]&&"undefined"!==typeof tDt[self.language][1]){txtTomorrow=tDt[self.language][1]}dateFormat=txtTomorrow+" "+dayjs(dateget).format(format.defaultTime).toLocaleString("en-US")}else if(dateCheck==dateToday){var txtToday="Today";if("undefined"!==typeof tDt[self.language]&&"undefined"!==typeof tDt[self.language][0]){txtToday=tDt[self.language][0]}dateFormat=txtToday+" "+dayjs(dateget).format(format.defaultTime).toLocaleString("en-US")}else{dateFormat=dayjs(dateget).format(format.shortDateTime).toLocaleString("en-US")}}else if(2==self.slider_setting.banner_date){dateFormat=dayjs(dateget).format(format.shortDateTime).toLocaleString("en-US")}else if(3==self.slider_setting.banner_date){dateFormat=dayjs(dateget).format(format.defaultDateTime).toLocaleString("en-US")}}return dateFormat}async getEventDetail(eventId){var self=this;if("undefined"===typeof self.ws_event[eventId]&&"undefined"!==typeof self.arrEvent[eventId]){self.ws_event[eventId]=self.arrEvent[eventId]}var{eDt,wDt,bDt}=self.getWidget();if("undefined"!==typeof self.ws_event[eventId]&&self.ws_event[eventId]){if("undefined"!==typeof wDt.tournament_id){if("undefined"!==typeof self.ws_event[eventId].parentId){self.set("text.tournamentId",self.ws_event[eventId].parentId)}if("undefined"!==typeof self.ws_event[eventId].shortParentName){self.set("text.tournamentName",self.ws_event[eventId].shortParentName)}else if("undefined"!==typeof self.ws_event[eventId].parentName){self.set("text.tournamentName",self.ws_event[eventId].parentName)}}if(self.widget_position_id&&["1","2"].includes(self.widget_position_id.toString())&&"undefined"!==typeof wDt.type_id&&3==wDt.type_id&&"undefined"!==typeof wDt.event_id&&"0"==wDt.event_id){}else{self.set("text.sportId","");self.set("text.sportName","")}if("undefined"!==typeof eDt&&"undefined"!==typeof self.ws_event[eventId].sportId){self.set("text.sportId",self.ws_event[eventId].sportId);self.set("text.sportName",self.ws_event[eventId].sportName)}if("undefined"!==typeof self.ws_event[eventId].homeParticipantName){self.set("text.homeName",self.ws_event[eventId].homeParticipantName);self.set("text.awayName",self.ws_event[eventId].awayParticipantName)}self.set("text.time",self.getDateFormat(self.ws_event[eventId].startTime));self.set("text.status","("+self.ws_event[eventId].statusName+")");self.set("text.status_id",self.ws_event[eventId].statusId)}if(Object.keys(bDt).length){var bg_color=bDt.background_color;if(""==bg_color&&self.slider_setting){bg_color=self.slider_setting.background_color}self.$.backgroundBanner.style.background=bg_color;var bg_opacity=1;if(bDt.background_image_transperent){bg_opacity=bDt.background_image_transperent/100}else if(self.slider_setting&&self.slider_setting.background_image_transperent){bg_opacity=self.slider_setting.background_image_transperent/100}if(0==bg_opacity||""==bg_opacity){.01==bg_opacity}self.$.backgroundBanner2.style.opacity=bg_opacity}self.onResize()}setTypeBanner(){var self=this;if(self.positionTag&&(3==self.widget_position_id||4==self.widget_position_id)||self.bannerId){self.$.backgroundBanner.classList.add("type_banner_default");self.$.backgroundBanner.classList.remove("type_banner_bottom");self.$.backgroundBanner.classList.remove("type_banner_popup");self.$.backgroundBanner.classList.remove("type_stream_popup");self.disableCloseButton="true";if("undefined"!==typeof self.width&&this.width){if(0==self.widget_position_id&&self.fromInclude){}else{self.$.backgroundBanner.style.width=this.width;self.$.backgroundBanner.style.overflowX="auto"}}if("undefined"!==typeof self.height&&self.height){self.$.backgroundBanner.style.height=self.height;self.$.skeletonMain.style.height=self.height;self.$.backgroundBanner.style.overflowY="auto"}}else if(2==self.widget_position_id){self.$.backgroundBanner.classList.remove("type_banner_default");self.$.backgroundBanner.classList.remove("type_banner_bottom");self.$.backgroundBanner.classList.add("type_banner_popup");self.$.backgroundBanner.classList.remove("type_stream_popup");self.$.skeletonMain.style.height="auto"}else if("streaming"==self.bannerType&&self.sportbookId){self.$.backgroundBanner.classList.remove("type_banner_default");self.$.backgroundBanner.classList.remove("type_banner_bottom");self.$.backgroundBanner.classList.remove("type_banner_popup");self.$.backgroundBanner.classList.add("type_stream_popup");self.$.skeletonMain.style.height="auto"}else if("iframe"==self.bannerType){self.$.backgroundBanner.classList.remove("type_banner_default");self.$.backgroundBanner.classList.remove("type_banner_bottom");self.$.backgroundBanner.classList.remove("type_banner_popup");self.$.backgroundBanner.classList.remove("type_stream_popup");self.$.skeletonMain.style.height=0}else{self.$.backgroundBanner.classList.remove("type_banner_default");self.$.backgroundBanner.classList.add("type_banner_bottom");self.$.backgroundBanner.classList.remove("type_banner_popup");self.$.backgroundBanner.classList.remove("type_stream_popup");self.$.skeletonMain.style.height="auto"}}renderBanner(){var self=this,{wDt}=self.getWidget();if(!Object.keys(wDt).length){self.showLoading=!0;self.showSkeleton();self.resetWidget();self.startLoad();return!1}self.setTypeBanner();self.onResize();self.set("text.title","");self.set("text.content","");self.showEventDetail()}showEventDetail(){var self=this,{wDt,bDt}=self.getWidget();if(Object.keys(wDt).length){if(wDt.type_id&&!["3","4","7","8","9","11","16","17"].includes(wDt.type_id.toString())){self.$.buttondetail.innerHTML=""}var bg_opacity=1,bg_color=bDt.background_color;if(""==bg_color&&self.slider_setting){bg_color=self.slider_setting.background_color}var i=0,wait=setInterval(function(){var screenW=self.$.backgroundBanner.offsetWidth,screenH=self.$.backgroundBanner.offsetHeight;if(0<screenW){clearInterval(wait);if(bDt.banner_image&&bDt.banner_image.video){self.setVideo(bDt.banner_image.video,bDt.banner_config)}else{self.setImage(bDt.banner_image,screenW,screenH)}}i++;if(200<i){clearInterval(wait)}},20);if(6==wDt.banner_layout){self.$.backgroundBanner.style.background="transparent"}else{self.$.backgroundBanner.style.background=bg_color}if(bDt.background_image_transperent){bg_opacity=bDt.background_image_transperent/100}else if(self.slider_setting&&self.slider_setting.background_image_transperent){bg_opacity=self.slider_setting.background_image_transperent/100}if(0==bg_opacity||""==bg_opacity){.01==bg_opacity}self.$.backgroundBanner2.style.opacity=bg_opacity;if(["3","4","6","7","8","9","11","16","17"].includes(wDt.type_id.toString())||bDt.markets.length||bDt.markets_live.length||bDt.markets_interval.length){var content_lang=self.bannerTranslate(bDt.banner_translate);if(3==wDt.type_id){try{self.set("text.title",self.genTranslate(content_lang.title));self.set("text.content",self.genTranslate(content_lang.content));self.backupMarketName="";self.set("text.marketname","");self.set("text.labelName","");self.set("text.labelStyle","")}catch(err){}}else{try{self.set("text.title",self.genTranslate(content_lang.title));self.set("text.content",self.genTranslate(content_lang.content))}catch(err){}}try{if(!self.haveEventCache){self.set("text.time",content_lang.content)}self.set("text.status","");if(!["7","8","9","11","12","16"].includes(wDt.type_id.toString())){var btn="",target_link="_self";if(null==content_lang.link){content_lang.link=""}if(content_lang.link&&!wDt.generate_link){self.$.buttonNavLayout.classList.add("showcursor");var btn_text="";if(content_lang.button_text){btn_text=content_lang.button_text}if(null!=content_lang.target_link&&content_lang.target_link){target_link=content_lang.target_link}btn="<br><button class=\"btLink\" onclick=\"this.getRootNode().host.handleClick('"+self.convertURL(content_lang.link)+"', '"+target_link+"', '"+wDt.banner_id+"', '"+self.positionTag+"', '"+self.pageTag+"', '"+wDt.sport_id+"', '"+wDt.location_id+"', '"+wDt.tournament_id+"', '"+wDt.event_id+"')\">"+btn_text+"</button>";if(""==btn_text){btn="<div class=\"no_link_btn\">"+btn+"</div>";self.$.bannerContentMain.classList.add("showcursor")}else if("3"==self.tid&&self.linkBoth()){self.$.bannerContentMain.classList.add("showcursor")}else{self.$.bannerContentMain.classList.remove("showcursor")}self.$.buttondetail.innerHTML=btn;self.$.buttonNav_btn.innerHTML=btn;self.$.bannerContentMain.classList.add("linkBanner");if(self.bannerId&&0==wDt.event_id){self.$.overlaybanner.classList.add("promotionBanner");self.$.groupslidebanner.classList.add("promotionBanner")}}else{self.$.buttondetail.innerHTML="";self.$.bannerContentMain.classList.remove("linkBanner");self.$.buttonNavLayout.classList.remove("showcursor");self.$.buttonNav_btn.innerHTML=""}}}catch(err){}if(!self.haveEventCache){if(3==wDt.type_id||2==wDt.type_id&&("undefined"===typeof wDt.tournament_event_id||0==wDt.tournament_event_id.length)||"undefined"===typeof wDt.event_id){self.$.slidebanner.innerHTML=""}}if(3==wDt.type_id){if(self.widget_position_id&&["1","2"].includes(self.widget_position_id.toString())&&3==wDt.type_id&&"0"==wDt.event_id&&1==wDt.incident_status){}else{self.$.slideSource.classList.add("fadebanner");if("2"==self.tid){var sendGA=self._sendGA(wDt.banner_id);if(sendGA){var dataTournamentGA4={event:"Views",operator_id:self.operatorId,banner_id:wDt.banner_id,banner_language:self.language,banner_page:self.pageTag,banner_position:self.positionTag,banner_type:2,em_id:"true"==self.loggedIn&&self.emUserId&&"undefined"!=self.emUserId?btoa(self.emUserId):"",sport_id:wDt.sport_id,sport_name:wDt.sport_name,country_id:wDt.location_id,country_name:wDt.location_name,tournament_id:wDt.tournament_id,tournament_name:wDt.tournament_name,market_id:"",market_name:"",market_short_id:"",event_id:"",event_match_name:"",outcome_id:"",outcome_key:"",outcome_name:""};self.ga4Push(dataTournamentGA4)}}}self.hideSkeleton()}if("undefined"!==typeof wDt.devices){if(wDt.devices.desktop){self.$.slideSource.classList.add("d_desktop")}if(wDt.devices.tablet){self.$.slideSource.classList.add("d_tablet")}if(wDt.devices.mobile){self.$.slideSource.classList.add("d_mobile")}}if(null!=self.shadowRoot.getElementById("demotag")&&3==wDt.type_id){self.removeDemo()}self.checkSliderChange()}}}async checkMarket(liveStatus,marketSelectedIds,isIncidentMarket=!1){var self=this;return new Promise(resolve=>{if("LIVE"==liveStatus||"NOT_LIVE"==liveStatus){if("undefined"!==typeof marketSelectedIds&&marketSelectedIds.length){var data=[];if(self.listPopular&&self.listPopular.market){marketSelectedIds.forEach(function(value,key){if(self.listPopular&&"undefined"!==typeof self.listPopular.market[value]){var found=!1;self.listPopular.market[value].selections.forEach(function(value2,key2){if(value2.outcomeId&&"undefined"!==typeof self.listPopular.outcome[value2.outcomeId]){value2=self.listPopular.outcome[value2.outcomeId]}if(isIncidentMarket){if(value2.available&&1==value2.statusId){found=!0}}else{if(value2.available){found=!0}}});if(found){data.push(self.listPopular.market[value])}}});if(data){var res={successful:1,data};resolve(res)}else{resolve({successful:0})}}else{resolve({successful:0})}}else{resolve({successful:0})}}else{resolve({successful:0})}})}handleClick(url,type,bannerId,position,page,sport_id,country_id,tournament_id,event_id){var self=this;self.recordClick(bannerId,position,page,sport_id,country_id,tournament_id,event_id,"");if("true"==self.postmessage){window.postMessage({type:"BM:click",payload:url},"*")}else{window.open(url,type)}}recordClick(bannerId,position,page,sport_id,country_id,tournament_id,event_id,bet_id,market_short_id,detailBtn){var self=this,{wDt}=self.getWidget(),type="oddsClick";if("null"===sport_id){type="promotionClick"}else if("null"==event_id&&"null"==tournament_id&&"undefined"===typeof bet_id){type="popularClick"}else if("0"==event_id&&tournament_id&&("undefined"===typeof bet_id||""===bet_id)){type="tournamentClick"}else if(self.isEvent(event_id)&&"undefined"===typeof bet_id){type="eventClick"}var template_id="";if("8"==wDt.type_id){sport_id=wDt.sport_id;country_id=wDt.location_id}else if("11"==wDt.type_id){event_id=self.text.event_id;sport_id=self.text.sportId;country_id=self.text.countryId;tournament_id=self.text.tournamentId;template_id=self.templateId}var spot=bannerId+"-"+position+"-"+page+"-"+type;if(template_id){spot=spot+"-"+template_id}if("undefined"===typeof self.WEB_API_CACHE.rememberClick){self.WEB_API_CACHE.rememberClick=[]}try{if(0==event_id){event_id=""}if("null"==sport_id){sport_id=""}if("null"==country_id){country_id=""}if("null"==tournament_id){tournament_id=""}if("null"==event_id){event_id=""}if(!self.WEB_API_CACHE.rememberClick.includes(spot)&&bannerId){self.WEB_API_CACHE.rememberClick.push(spot);self.callAjax(self.getEndpoint()+"v1/reports/click/"+self.operatorId,"PUT",{banner_id:bannerId,position:position,page:page,sport_id:sport_id,country_id:country_id,tournament_id:tournament_id,event_id:event_id,template_id:template_id}).then(res=>{}).catch(err=>{})}if(window.dataLayerBanner){var mappingBanner=self.widget&&self.widget.content_data?self.widget.content_data.reduce((res,item)=>{res[item.banner_id]=item;return res},{}):[],dataGA4={event:"Clicks",operator_id:self.operatorId,banner_id:bannerId,banner_language:self.language,banner_page:page,banner_position:position,banner_type:wDt.type_id?wDt.type_id:self.widget.content_data&&mappingBanner&&mappingBanner[bannerId]?mappingBanner[bannerId].type_id:"",em_id:"true"==self.loggedIn&&self.emUserId&&"undefined"!=self.emUserId?btoa(self.emUserId):"",event_id:self.text.event_id,event_match_name:self.text.event_name,sport_id:self.text.sportId,sport_name:self.text.sportName,country_id:self.text.countryId,country_name:self.text.countryName,tournament_id:self.text.tournamentId,tournament_name:self.text.tournamentName,market_id:"",market_name:"",market_short_id:"",outcome_id:"",outcome_key:"",outcome_name:"",template_id};if("oddsClick"===type){dataGA4.market_id=detailBtn?detailBtn.getAttribute("data-market"):"";dataGA4.market_name=self.text.marketname;dataGA4.market_short_id=market_short_id?market_short_id:"";dataGA4.outcome_id=bet_id;dataGA4.outcome_key=detailBtn?detailBtn.getAttribute("data-role"):"";dataGA4.outcome_name=detailBtn?detailBtn.getAttribute("data-outcome-name"):""}else if("tournamentClick"==type){if(Object.keys(wDt).length){dataGA4.banner_type=2;dataGA4.country_id=wDt.location_id;dataGA4.country_name=wDt.location_name;dataGA4.sport_id=wDt.sport_id;dataGA4.sport_name=wDt.sport_name;dataGA4.tournament_id=wDt.tournament_id;dataGA4.tournament_name=wDt.tournament_name}else if(self.widget.content_data&&mappingBanner&&mappingBanner[bannerId]){dataGA4.country_id=mappingBanner[bannerId].location_id;dataGA4.country_name=mappingBanner[bannerId].location_name;dataGA4.sport_id=mappingBanner[bannerId].sport_id;dataGA4.sport_name=mappingBanner[bannerId].sport_name;dataGA4.tournament_id=mappingBanner[bannerId].tournament_id;dataGA4.tournament_name=mappingBanner[bannerId].tournament_name}}self.ga4Push(dataGA4)}}catch(err){}}ga4Push(data,loop=0){var self=this;if(self.googleTagManagerId){if(!window.dataLayerBanner){if(20>loop){setTimeout(function(){loop++;self.ga4Push(data,loop)},500)}}else{if("7"==data.banner_type||"16"==data.banner_type){data.country_id="";data.country_name="";data.event_id="";data.event_match_name="";data.market_id="";data.market_name="";data.market_short_id="";data.sport_id="";data.sport_name="";data.tournament_id="";data.tournament_name=""}else if("8"==data.banner_type){data.event_id="";data.event_match_name="";data.market_id="";data.market_name="";data.market_short_id="";data.tournament_id="";data.tournament_name=""}var ga4Param=self.widget_id+"-"+data.banner_id+"-"+data.event_id+"-"+data.market_short_id;if("11"==data.banner_type){ga4Param=ga4Param+"-"+data.template_id}if("undefined"===typeof self.GA4_PUSH_CACHE){self.GA4_PUSH_CACHE=[]}if(window.dataLayerBanner&&("Clicks"===data.event||"Views"===data.event&&!self.GA4_PUSH_CACHE.includes(ga4Param))){window.dataLayerBanner.push(function(){this.reset()});window.dataLayerBanner.push(data);if("Views"===data.event){self.GA4_PUSH_CACHE.push(ga4Param)}}}}}_sendGA(bannerId,templateId=""){var self=this,sendGA=!1;if(bannerId&&self.googleTagManagerId){var lsParam=self.genLsParam(self.loggedIn),ls=self.lsGet("bmfe:"+self.language+"-"+lsParam,"json"),gaKey=`ga${templateId}`;try{if(Object.keys(ls).length){if("undefined"!==typeof ls[bannerId]&&ls[bannerId].data){if(!ls[bannerId].data[gaKey]||ls[bannerId].data[gaKey]&&dayjs(dayjs()).isAfter(ls[bannerId].data[gaKey])){sendGA=!0;ls[bannerId].data[gaKey]=dayjs().endOf("day").toLocaleString("en-US");self.lsSet("bmfe:"+self.language+"-"+lsParam,JSON.stringify(ls))}}}}catch(err){}}return sendGA}handleOdd(detail,event,bannerId,position,page,sport_id,country_id,tournament_id,event_id,bet_id,market_id,title,typeId){var self=this,oldActiveBettingOffers=self.activeBettingOffers;if("undefined"!==typeof detail.getAttribute("data-event")&&"undefined"!==typeof detail.getAttribute("data-offer")){let iframe0=window.document.getElementById(self.iframeTarget);if(null===iframe0){var eventClick=new CustomEvent("onOddsClick",{detail:{eventId:detail.getAttribute("data-event"),bettingOfferId:detail.getAttribute("data-offer"),odd:"undefined"!==typeof detail.getAttribute("data-price")?detail.getAttribute("data-price"):"",title:title,typeId:typeId}});window.dispatchEvent(eventClick,{bubbles:!0,cancelable:!0})}else{iframe0.contentWindow.postMessage({type:"OMFE:addSelectionToBetslip",payload:{eventId:detail.getAttribute("data-event"),bettingOfferId:detail.getAttribute("data-offer"),odd:"undefined"!==typeof detail.getAttribute("data-price")?detail.getAttribute("data-price"):"",title:title,typeId:typeId}},"*")}}if("undefined"!==typeof detail.getAttribute("data-event")&&"undefined"!==typeof bet_id){if(!oldActiveBettingOffers.includes(bet_id)){self.recordClick(bannerId,position,page,sport_id,country_id,tournament_id,event_id,bet_id,market_id,detail)}}if("offerlibrary"==self.apiMethod&&"undefined"!==typeof detail.getAttribute("data-offer")){var link=self.root_auto_link?JSON.parse(JSON.stringify(self.root_auto_link)):{};if(link&&link.domain&&link.link_event&&event_id&&self.listPopular.event[event_id]){var link_event=link.link_event;link_event=link_event.replaceAll("${domain}",link.domain);var genLink=self.genLink(link_event,self.listPopular.event[event_id])+"/odds/"+detail.getAttribute("data-offer");if(-1==genLink.indexOf("${")){try{if("true"==self.postmessage){window.postMessage({type:"BM:clickOdd",payload:genLink},"*")}else{window.open(genLink,"_top")}}catch(err){}}}}event.stopPropagation();if("mobile"==self.nowScreen&&self.widget_position_id&&["1","2"].includes(self.widget_position_id.toString())&&self.slider_setting.close_bottom_mobile){self.closePanel("0")}}closeSelectPopup(){var self=this;self.showSelectPopup="false"}selectClosePanel(){var self=this;if("streaming"==self.bannerType&&self.sportbookId){self.removeStream(!0);return!1}if(self.widget_position_id&&["1","2"].includes(self.widget_position_id.toString())){if("undefined"!==typeof self.slider_setting.close_forever&&self.slider_setting.close_forever){self.closeForever()}else{if(self.slider_setting.close_option){self.showSelectPopup="true"}else{self.showSelectPopup="false";self.closePanel("0")}}}else{self.showSelectPopup="false"}return!1}closeForever(){var self=this,tag=self.positionTag+"-"+self.pageTag,lsBlockPF=self.lsGet("bmfe:blockpopupForever","json");if("undefined"!==typeof lsBlockPF.positions){lsBlockPF.positions.push(tag);lsBlockPF.positions=[...new Set(lsBlockPF.positions)];self.lsSet("bmfe:blockpopupForever",JSON.stringify(lsBlockPF))}self.style.display="none";self.resetWidget()}closePanel(duration){var self=this;self.use_timeout=0;self.closeSelectPopup();var{wDt,tid,eid,bannerId}=self.getWidget();if(!Object.keys(wDt).length){self.style.display="none";self.resetWidget();return!1}var cacheName=self.genCacheName(tid,bannerId,eid,self.language),ls=self.lsGet("bmfe:events","json");if("undefined"!==typeof ls[cacheName]&&"6"!=tid){delete ls[cacheName]}self.lsSet("bmfe:events",JSON.stringify(ls));self.set("text.status_id","");var thisHash=wDt.hash;self.resetWidget();self.last_hash[self.widget_id].push(wDt.hash);if(self.widget_position_id&&["1","2"].includes(self.widget_position_id.toString())){if("0"==duration){var lsBlockP=self.lsGet("bmfe:blockpopup","json"),iLogin=lsBlockP.login,iLogout=lsBlockP.logout;if(100<iLogin.length){iLogin.splice(0,1)}if(100<iLogout.length){iLogout.splice(0,1)}if("true"==self.loggedIn){iLogin.push(thisHash)}else{iLogout.push(thisHash)}iLogin=JSON.stringify(Array.from(new Set(iLogin)));iLogout=JSON.stringify(Array.from(new Set(iLogout)));self.lsSet("bmfe:blockpopup","{\"logout\":"+iLogout+", \"login\":"+iLogin+"}");self.startLoad()}else{var lsBlockPL=self.lsGet("bmfe:blockpopupLimit","json"),expireDate="";if("1d"==duration){expireDate=dayjs().add(1,"day").toLocaleString("en-US")}else if("7d"==duration){expireDate=dayjs().add(7,"day").toLocaleString("en-US")}else if("30d"==duration){expireDate=dayjs().add(30,"day").toLocaleString("en-US")}if(expireDate){if(null!=lsBlockPL&&"undefined"!==typeof lsBlockPL){(async()=>{var newBlockPL=[];await Promise.all([lsBlockPL.forEach((item,i)=>{if(dayjs(dayjs()).isBefore(item.expireDate)){newBlockPL.push(item)}})]).then(pData=>{newBlockPL.push({hash:self.language+"-"+self.positionTag,expireDate:expireDate});self.lsSet("bmfe:blockpopupLimit",JSON.stringify(newBlockPL));self.startLoad()})})()}}else{self.startLoad()}}}}isMobile(){var a=navigator.userAgent||navigator.vendor||window.opera;return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))?!0:!1}videoControls(e,target,type){var self=this,videoFrame=e.target.closest(".backgroundBannerVideo"),event=e.target.closest(target);if(videoFrame){var video=videoFrame.querySelector("video");if(video){if("active"==type){if(event.classList.contains("active")){event.classList.remove("active")}else{event.classList.add("active")}}else if("play"==type){if(video.paused){video.play();event.classList.add("active")}else{video.pause();event.classList.remove("active")}}else if("sound"==type){if(video.muted){video.muted=!1;event.classList.add("active")}else{video.muted=!0;event.classList.remove("active")}}}}}videoControlsActive(e){e.stopPropagation();e.preventDefault();var self=this;self.videoControls(e,".videoControls","active")}videoControlPlay(e){e.stopPropagation();e.preventDefault();var self=this;self.videoControls(e,".videoControlPlay","play")}videoControlSound(e){e.stopPropagation();e.preventDefault();var self=this;self.videoControls(e,".videoControlSound","sound")}getEventLs(cacheName){var self=this,ls=self.lsGet("bmfe:events","json");return"undefined"!==typeof ls[cacheName]?ls[cacheName]:null}setEventLs(key,type,data,update=!1){if(!key&&!data){return!1}var self=this,lsEvents=self.lsGet("bmfe:events","json");if("undefined"===typeof lsEvents[key]){lsEvents[key]={}}var isCouponPre=key&&0<=key.indexOf("coupon-prebetbuilder")&&self.WEB_API_CACHE?!0:!1;if(isCouponPre){if("undefined"===typeof self.WEB_API_CACHE["bmfe:events"]){self.WEB_API_CACHE["bmfe:events"]=lsEvents}if("undefined"===typeof self.WEB_API_CACHE["bmfe:events"][key]){self.WEB_API_CACHE["bmfe:events"][key]={}}}var arr=[];if("action_outcome"==type){arr=["type_id","widget_layout","image_banner_set","background_image_transperent","background_color","content","title","homeName","awayName","time","eventId","eventName","statusId","statusName","partName","bettingTypeId","action_outcome","devices","location_id","location_name","sport_id","sport_name","tournament_id","tournament_name","marketname","marketsColumn","labelName","labelStyle","banner_config"]}else if("partName"==type){arr=["partName"]}else if("eventLink"==type){arr=["partName","generate_target","eventLink"]}if(arr.length){(async()=>{await Promise.all([arr.forEach((item,i)=>{if(update){lsEvents[key][item]=data[item]?data[item]:lsEvents[key][item];if(isCouponPre){self.WEB_API_CACHE["bmfe:events"][key][item]=data[item]?data[item]:lsEvents[key][item]}}else{lsEvents[key][item]=data[item];if(isCouponPre){self.WEB_API_CACHE["bmfe:events"][key][item]=data[item]}}})]).then(pData=>{if("action_outcome"==type){if("undefined"!==typeof self.arrEvent[data.eventId]&&"undefined"!==typeof self.arrEvent[data.eventId].venueName){lsEvents[key].location_id=self.arrEvent[data.eventId].venueId;lsEvents[key].location_name=self.arrEvent[data.eventId].venueName;if(isCouponPre){self.WEB_API_CACHE["bmfe:events"][key].location_id=self.arrEvent[data.eventId].venueId;self.WEB_API_CACHE["bmfe:events"][key].location_name=self.arrEvent[data.eventId].venueName}}}if(isCouponPre){if(self.WEB_API_CACHE["bmfe:events"]){Object.keys(self.WEB_API_CACHE["bmfe:events"]).forEach(key2=>{if(key!=key2&&0<=key2.indexOf("coupon-prebetbuilder")&&self.WEB_API_CACHE["bmfe:events"][key2]){lsEvents[key2]=self.WEB_API_CACHE["bmfe:events"][key2]}})}}self.lsSet("bmfe:events",JSON.stringify(lsEvents))})})()}}firstRender(milliseconds,outcomeArr,action_outcome,market,market_boost=null){var self=this,oddBoost=13==self.tid?!0:!1,data=oddBoost?market_boost:market,bettingTypeId=data.bettingTypeId,{wDt,bDt,tid,eid,bannerId}=self.getWidget(),cacheOutcome="",bt_disable=[],count=0,limit=12==wDt.type_id&&bDt.coupon&&bDt.coupon.couponNumber?bDt.coupon.couponNumber:5;if((1==self.text.status_id||12==wDt.type_id)&&"undefined"!==typeof bDt.markets_outcome_disable[data.id]){bt_disable=bDt.markets_outcome_disable[data.id]}else if(2==self.text.status_id&&"undefined"!==typeof bDt.markets_live_outcome_disable[data.id]){bt_disable=bDt.markets_live_outcome_disable[data.id]}var defaultOdd=null;if(oddBoost&&market.id){var bt_disable_2=[];if(1==self.text.status_id&&"undefined"!==typeof bDt.markets_outcome_disable[market.id]){bt_disable_2=bDt.markets_outcome_disable[market.id]}else if(2==self.text.status_id&&"undefined"!==typeof bDt.markets_live_outcome_disable[market.id]){bt_disable_2=bDt.markets_live_outcome_disable[market.id]}defaultOdd=market.selections.filter(item2=>-1==bt_disable_2.indexOf(item2.id))}(async()=>{var market_id=data.bettingTypeId+"_"+data.eventPartId;await Promise.all([data.selections.forEach((item,i)=>{if(oddBoost&&item.id&&-1==bt_disable.indexOf(item.id)&&defaultOdd&&!count||!oddBoost&&item.id&&-1==bt_disable.indexOf(item.id)&&("undefined"===typeof item.disable||"undefined"!==typeof item.disable&&!item.disable)&&count<limit){count++;var name=self.getText(item.translationKey),showprice=self.getNumber(item.price,2),showpriceA=showprice,btnDisable="",reSportId=wDt.sport_id,reLocationId=wDt.location_id,reEventId=wDt.event_id,reTournamentId=wDt.tournament_id,btnBoost=oddBoost?"<span id=\"odv_"+defaultOdd[0].id+"\" class=\"odvOld\">"+self.getNumber(defaultOdd[0].price,2)+"</span>":"";if(4==wDt.type_id||6==wDt.type_id||17==wDt.type_id){if("undefined"!==typeof self.listPopular.event[item.eventId]){reSportId=self.listPopular.event[item.eventId].sportId;reLocationId=self.listPopular.event[item.eventId].venueId;reEventId=item.eventId;reTournamentId=self.listPopular.event[item.eventId].parentId}}var active=!1;if(item.available&&1==item.statusId&&"undefined"!==typeof item.price&&"undefined"!==typeof showprice&&"undefined"!==showprice&&showprice){if("2"==self.text.status_id||"3"==self.text.status_id){showprice="&nbsp;"}active=!0}else{if(item.statusId&&["4","7"].includes(item.statusId.toString())||""==showprice){if(""==showprice||"7"!=item.statusId){showprice="&nbsp;"}if("4"==item.statusId){btnDisable=" btnRemoved"}else if("7"==item.statusId){btnDisable=" btnSuspended"}}showpriceA=showprice}var content_lang=self.bannerTranslate(bDt.banner_translate),title=content_lang?content_lang.title:"",btn="<button class=\"bgButton bgButton2\" id=\"outcome_"+item.outcomeId+"\" onclick=\"this.getRootNode().host.handleOdd(this,event,'"+wDt.banner_id+"', '"+self.positionTag+"', '"+self.pageTag+"', '"+reSportId+"', '"+reLocationId+"', '"+reTournamentId+"', '"+reEventId+"', '"+item.outcomeId+"', '"+market_id+"', '"+title+"', '"+bDt.type_id+"')\" data-event=\""+item.eventId+"\" data-offer=\""+item.id+"\" data-bettypeid=\""+item.bettingTypeId+"\" data-price=\""+item.price+"\" data-timestamp=\""+milliseconds+"\" data-role=\""+item.role+"\" data-outcome-name=\""+item.translationKey+"\" data-market=\""+data.id+"\"><div class=\"oddButton\"><div class=\"oddButtonName\">"+name+"</div><div class=\"oddButtonValue\">"+btnBoost+"<span class=\"odv\" id=\""+item.outcomeId+"\">"+showpriceA+"</span></div></div></button>",disBtn="<button disabled class=\"bgButton bgButton2 btnDisable"+btnDisable+"\" id=\"outcome_"+item.outcomeId+"\" onclick=\"this.getRootNode().host.handleOdd(this,event,'"+wDt.banner_id+"', '"+self.positionTag+"', '"+self.pageTag+"', '"+reSportId+"', '"+reLocationId+"', '"+reTournamentId+"', '"+reEventId+"', '"+item.outcomeId+"', '"+market_id+"', '"+title+"', '"+bDt.type_id+"')\" data-event=\""+item.eventId+"\" data-offer=\""+item.id+"\" data-bettypeid=\""+item.bettingTypeId+"\" data-price=\""+item.price+"\" data-timestamp=\""+milliseconds+"\" data-role=\""+item.role+"\" data-outcome-name=\""+item.translationKey+"\" data-market=\""+data.id+"\"><div class=\"oddButton\"><div class=\"oddButtonName\">"+name+"</div><div class=\"oddButtonValue\">"+btnBoost+"<span class=\"odv\" id=\""+item.outcomeId+"\">"+showprice+"</span></div></div></button>";if(12==bDt.type_id){var template="<div class=\"oddOutright\"><div class=\"oddName\">"+name+"</div>";btn=template+btn+"</div>";disBtn=template+disBtn+"</div>"}if(active){action_outcome+=btn}else{action_outcome+=disBtn}cacheOutcome+=disBtn}})]).then(pData=>{self.loadingFallback=!1;self.$.slidebanner.innerHTML=action_outcome;var cacheName=self.genCacheName(tid,bannerId,eid,self.language);if(tid&&!["4","6","12","17"].includes(tid)){self.set("text.event_id",wDt.event_id);self.set("text.event_name",wDt.event_name);self.set("text.status_id",wDt.status_id)}if(""==self.bannerId&&0!=self.widget_position_id){var sendGA=self._sendGA(wDt.banner_id);if(sendGA){var dataPopupGA4={event:"Views",operator_id:self.operatorId,banner_id:wDt.banner_id,banner_language:self.language,banner_page:self.pageTag,banner_position:self.positionTag,banner_type:wDt.type_id,em_id:"true"==self.loggedIn&&self.emUserId&&"undefined"!=self.emUserId?btoa(self.emUserId):"",sport_id:self.text.sportId,sport_name:self.text.sportName,country_id:self.text.countryId,country_name:self.text.countryName,tournament_id:self.text.tournamentId,tournament_name:self.text.tournamentName,market_id:data.id,market_name:data.name,market_short_id:data.bettingTypeId+"_"+data.eventPartId,event_id:("6"==tid?self.text.event_id:wDt.event_id)||self.text.event_id,event_match_name:("6"==tid?self.text.event_name:wDt.event_name)||self.text.event_name,outcome_id:"",outcome_key:"",outcome_name:""};self.ga4Push(dataPopupGA4)}}self.setActiveOdd();if("9"==self.widget_layout){if(self.marketsColumn&&self.marketsColumn.length){let ocID=self.marketsColumn.map(ocI=>ocI.id);var topic="/sports#totalBetsForOutcomes",tmpTopic=topic+"/"+ocID.join("/"),isClone=self.parentNode.classList.contains("splide__slide--clone")&&self.fromInclude;if(isClone){if("undefined"!==typeof self.WEB_API_CACHE[tmpTopic]&&"undefined"!==typeof self.WEB_API_CACHE[tmpTopic].response){self.totalBetRes(cacheName,{kwargs:self.WEB_API_CACHE[tmpTopic]})}else{if("undefined"!==typeof self.dumpTotalBetsListener){self.removeEventListener("topicListen:initialDump",self.dumpTotalBetsListener)}self.dumpTotalBetsListener=self.dumpTotalBets.bind(self,tmpTopic,cacheName);self.addEventListener("topicListen:initialDump",self.dumpTotalBetsListener)}}else{self.ws_session.call(topic,[],{outcomeIds:ocID}).then(function(res){if(res){self.totalBetRes(cacheName,res);self.customEventTopic("topic:initialDump",tmpTopic,res.kwargs)}})}}}self.set("text.marketid",data.id);self.set("text.marketname",data.name);self.set("text.marketShortId",data.bettingTypeId+"_"+data.eventPartId);self.setEventLs(cacheName,"action_outcome",{widget_layout:self.widget_layout,image_banner_set:bDt.banner_image,banner_config:bDt.banner_config,background_image_transperent:bDt.background_image_transperent,background_color:bDt.background_color,content:self.text.content,title:self.text.title,homeName:self.text.homeName,awayName:self.text.awayName,time:self.text.time,eventId:("6"==tid?self.text.event_id:wDt.event_id)||self.text.event_id,eventName:("6"==tid?self.text.event_name:wDt.event_name)||self.text.event_name,statusId:("6"==tid?self.text.status_id:wDt.status_id)||self.text.status_id,statusName:self.text.status,partName:self.text.partName,devices:wDt.devices,location_id:wDt.location_id||self.text.countryId,location_name:wDt.location_name||self.text.countryId,sport_id:self.text.sportId,sport_name:self.text.sportName,tournament_id:self.text.tournamentId,tournament_name:self.text.tournamentName,action_outcome:cacheOutcome,marketname:self.text.marketname,labelName:self.text.labelName,labelStyle:self.text.labelStyle,bettingTypeId:bettingTypeId,type_id:bDt.type_id});if(1==bDt.display_time_status){if(0<bDt.display_time){self.widgetTimeout=bDt.display_time;self.checkTimeout(bDt.banner_id)}}self.onResize()})})()}ga4Set(tid,item){var self=this;if(item&&(9==tid||11==tid)){self.set("text.event_id",item.id);self.set("text.event_name",item.name);self.set("text.countryId",item.venueId);self.set("text.countryName",item.venueName);self.set("text.sportId",item.sportId);self.set("text.sportName",item.sportName);self.set("text.homeName",item.homeParticipantName);self.set("text.awayName",item.awayParticipantName);self.set("text.status_id",item.statusId);self.set("text.status",item.statusName);self.set("text.tournamentId",item.parentId);self.set("text.tournamentName",item.parentName)}}dumpTotalBets(topic,cacheName,dataE){var self=this;if(dataE.detail&&dataE.detail.topic==topic){self.totalBetRes(cacheName,{kwargs:dataE.detail.kwargs})}}totalBetRes(cacheName,res){var self=this;if(res&&res.kwargs&&res.kwargs.response){self.marketsColumn=self.marketsColumn.map(function(ocI){return{...ocI,value:res.kwargs.response[ocI.id]&&res.kwargs.response[ocI.id].percentage?res.kwargs.response[ocI.id].percentage:0,class:""}});self.setEventLs(cacheName,"action_outcome",{marketsColumn:self.marketsColumn},!0)}}dumpCouponPre(topic,dt,dataE){var self=this;if(dataE.detail&&dataE.detail.topic==topic){self.couponPreRes(dt,{kwargs:dataE.detail.kwargs})}}couponPreRes(dt,res){var self=this,bannerId=dt.banner_id,cacheName=self.genCacheName(self.tid,bannerId,"",self.language);if(res&&res.kwargs&&res.kwargs.records&&res.kwargs.records.length){self.set("offerList",[]);self.set("offerListIndex",[]);var MATCH=[],MARKET=[],MARKET_OUTCOME_RELATION=[],OUTCOME=[],BETTING_OFFER=[],totalOdds=0,offerList=[],offerListIndex=[],oddsCA=[];(async()=>{await Promise.all([res.kwargs.records.forEach(function(value,key){if(self.templateId){if(value.id!=self.templateId){return!1}}else if(key){return!1}if(!value.match||value.match&&"1"!=value.match.statusId){return!1}if(value.match){MATCH[value.match.id]=value.match;if(dt.coupon&&value.match.id==dt.coupon.event_id){self.ga4Set(dt.type_id,value.match)}}if(value.markets&&value.markets.length){value.markets.forEach(function(item,i){MARKET[item.id]=item})}if(value.outcomes&&value.outcomes.length){if(value.outcomes&&value.outcomes.length){value.outcomes.forEach(function(item,i){OUTCOME[item.id]=item})}}if(value.marketOutcomeRelations&&value.marketOutcomeRelations.length){value.marketOutcomeRelations.forEach(function(item,i){MARKET_OUTCOME_RELATION[item.outcomeId]=item})}if(value.bettingOffers&&value.bettingOffers.length){value.bettingOffers.forEach(function(item,i){BETTING_OFFER[item.id]=item;try{var statusId=MATCH[OUTCOME[item.outcomeId].eventId].statusId;if("1"==statusId||"2"==statusId){offerList.push({...item,OUTCOME:OUTCOME[item.outcomeId],MARKET:MARKET[MARKET_OUTCOME_RELATION[item.outcomeId].marketId],MATCH:MATCH[OUTCOME[item.outcomeId].eventId]});oddsCA.push({eventId:OUTCOME[item.outcomeId].eventId,bettingOfferId:item.id,odd:1});offerListIndex.push(item.id)}}catch(err){}})}totalOdds=(0==totalOdds?1:totalOdds)*value.betBuilderOdds})]).then(pData=>{if(offerList.length){var{wDt,bDt}=self.getWidget();self.onResize();self.setBettingOffer(offerList);self.set("offerList",offerList);self.set("offerListIndex",offerListIndex);self.set("offerCheckedArray",oddsCA);self.set("offerActive",self.offerEquals());self.set("oddsCheckedArrayCount",totalOdds);var cacheOutcome=JSON.stringify(self.offerList);self.setEventLs(cacheName,"action_outcome",{widget_layout:self.widget_layout,type_id:dt.type_id,image_banner_set:bDt.banner_image,banner_config:bDt.banner_config,background_image_transperent:bDt.background_image_transperent,background_color:bDt.background_color,content:self.text.content,title:self.text.title,devices:wDt.devices,action_outcome:cacheOutcome});self.hideSkeleton();self.$.slideSource.classList.add("fadebanner");self.sliderLoaded()}else{self.disableRmR("",bannerId,cacheName);if(self.widget_position_id&&["1","2","3"].includes(self.widget_position_id.toString())){self.startLoad()}}})})()}else{self.disableRmR("",bannerId,cacheName);if(self.widget_position_id&&["1","2","3"].includes(self.widget_position_id.toString())){self.startLoad()}}}checkTimeout(bannerId){var self=this;if(0>=self.widgetTimeout){return!1}self.waitCTimeout=!0;if(self.waitTRun){clearTimeout(self.waitTRun);self.waitTRun={}}self.waitTRun=setTimeout(function(){self.waitCTimeout=!1;self.set("text.status_id","");self.disableBanner("",bannerId);var lsParam=self.genLsParam(self.loggedIn);self.lsDelete("bmfe:"+self.language+"-"+lsParam);self.resetWidget();self.startLoad()},1e3*self.widgetTimeout)}wsChange(kwargs){var self=this;if(kwargs&&kwargs.records){if("UPDATE"==kwargs.messageType&&kwargs.records.length){var{wDt,bDt,tid,eid,bannerId}=self.getWidget(),cacheName=self.genCacheName(tid,bannerId,eid,self.language);kwargs.records.forEach(function(value,key){if("EVENT_INFO"==value.entityType){if("UPDATE"==value.changeType&&"undefined"!==typeof value.changedProperties){if(value.id==self.text.time_id){if("undefined"!==typeof value.changedProperties.paramFloat1){var prefix="";if(self.widget_layout&&!["2","4","7","8"].includes(self.widget_layout.toString())){prefix=", "}var minute=value.changedProperties.paramFloat1.toString().replace(".0","");self.set("text.minute",prefix+minute+"'");self.minsec(minute)}else if("undefined"===typeof value.changedProperties.paramFloat1&&"undefined"!==typeof value.changedProperties.paramFloat2){}else{self.set("text.minute","");self.resetMinsec()}}}}else if("MATCH"==value.entityType){if("UPDATE"==value.changeType&&"undefined"!==typeof value.changedProperties){if(!["7","8","9","11","12","16"].includes(tid)){if("undefined"!==typeof value.changedProperties.startTime){self.set("text.time",self.getDateFormat(value.changedProperties.startTime))}}if("undefined"!==typeof value.changedProperties.currentPartId&&"undefined"!==typeof value.changedProperties.currentPartName){var tDt=value.changedProperties;self.breakTime=tDt.currentPartId;self.set("text.partName",tDt.currentPartName);self.setEventLs(cacheName,"partName",{partName:tDt.currentPartName})}if(value.id&&"undefined"!==typeof value.changedProperties.statusId){if("2"==value.changedProperties.statusId){if("6"==tid){self.disableFallback=!0;setTimeout(function(){self.rmCacheE();self.resetWidget();self.startLoad();return!1},1e4)}else{setTimeout(function(){try{delete self.ws_event[value.id];self.widget.events_list[0].banner_data[0].status_id=2}catch(err){}self.set("text.event_id",value.id);self.set("text.status_id","2");if("undefined"!==typeof self.subscribeWsMinute.id&&self.subscribeWsMinute.active){try{self.ws_session.unregister(self.subscribeWsMinute)}catch(err){self.subscribeWsMinute={}}}if("undefined"!==typeof self.subscribeOdds.id&&self.subscribeOdds.active){try{self.ws_session.unregister(self.subscribeOdds)}catch(err){self.subscribeOdds={}}}if("undefined"!==typeof self.subscribeScore.id&&self.subscribeScore.active){try{self.ws_session.unregister(self.subscribeScore)}catch(err){self.subscribeScore={}}}self.resetWidget();self.startLoad();return!1},1e4)}}else if("3"==value.changedProperties.statusId){try{delete self.ws_event[value.id];self.widget.events_list[0].banner_data[0].status_id=3}catch(err){}self.set("text.status_id","");self.disableRmR("",bannerId,"");self.setEventEnd(bannerId);if(self.widget_position_id&&["1","2","3"].includes(self.widget_position_id.toString())){self.resetWidget();self.startLoad()}return!1}}}else if("DELETE"==value.changeType){if(!["7","8","9","11","16","17"].includes(tid)){if(value.id==self.text.event_id){if("6"==tid){if("undefined"!==typeof self.subscribePopular.id&&self.subscribePopular.active){try{self.ws_session.unregister(self.subscribePopular)}catch(err){self.subscribePopular={}}}self.rmCacheE()}else{self.rmCacheEByName(cacheName)}self.disableRmR("",bannerId,"");self.setEventEnd(bannerId);if(self.widget_position_id&&["1","2","3"].includes(self.widget_position_id.toString())){self.resetWidget();self.startLoad()}}}}}else if("BETTING_OFFER"==value.entityType&&"UPDATE"==value.changeType){if("undefined"!==typeof value.changedProperties.statusId){self.updateListPopular("BETTING_OFFER",value.id,value.changedProperties.statusId,"statusId")}if("undefined"!==typeof value.changedProperties.odds){self.updateListPopular("BETTING_OFFER",value.id,value.changedProperties.odds,"odds");if(null!=self.listInterval&&self.listInterval.data.length){self.listInterval.data.forEach(function(item,i){item.selections.forEach(function(item2,i2){if(item2.id==value.id){try{self.listInterval.data[i].selections[i2].price=value.changedProperties.odds}catch(err){}}})})}if(["7","8","9","11","16","17"].includes(tid)&&self.offerList){self.offerList.forEach((item,i)=>{if(item.id==value.id){try{self.offerList[i].odds=value.changedProperties.odds}catch(err){}}if("16"==tid&&item.ODDBOOST&&item.ODDBOOST.id==value.id){try{self.offerList[i].ODDBOOST.odds=value.changedProperties.odds}catch(err){}}})}else if("13"==tid){var oddOld="odv_"+value.id;if(null!==self.shadowRoot.getElementById(oddOld)){self.shadowRoot.getElementById(oddOld).innerHTML=self.getNumber(value.changedProperties.odds,2)}}(async()=>{await Promise.all([self.shadowRoot.querySelectorAll(".bgButton2").forEach(function(x){if(x.getAttribute("data-offer")==value.id){var eId=x.getAttribute("id"),olddata=x.getAttribute("data-price"),newdata=value.changedProperties.odds,statusOdd=newdata>olddata?"up":newdata<olddata?"down":"";if(statusOdd){if(null!==self.shadowRoot.getElementById(eId)){var showprice=self.getNumber(newdata,2);if(value.changedProperties.statusId&&["4","7"].includes(value.changedProperties.statusId.toString())||""==showprice){if(""==showprice||"7"!=value.changedProperties.statusId){showprice="&nbsp;"}}x.querySelector(".odv").innerHTML=showprice;self.shadowRoot.getElementById(eId).setAttribute("data-price",value.changedProperties.odds);self.shadowRoot.getElementById(eId).setAttribute("data-timestamp",value.changedProperties.lastChangedTime);self.shadowRoot.getElementById(eId).classList.remove("btRed");self.shadowRoot.getElementById(eId).classList.remove("btGreen");self.shadowRoot.getElementById(eId).classList.add("up"==statusOdd?"btGreen":"btRed");self.shadowRoot.getElementById(eId).classList.add("ws"+eId);if(self.bettingClass[eId+self.widget_id]){clearTimeout(self.bettingClass[eId]);self.bettingClass[eId+self.widget_id]=null}self.bettingClass[eId+self.widget_id]=setTimeout(function(){if(null!==self.shadowRoot.getElementById(eId)){self.shadowRoot.querySelectorAll(".ws"+eId).forEach(function(z){z.classList.remove("up"==statusOdd?"btGreen":"btRed");z.classList.remove("ws"+eId)})}},5e3);var couponId="offer_"+value.id;if(["7","8","9","11","16","17"].includes(tid)&&null!==self.shadowRoot.getElementById(couponId)){self.shadowRoot.getElementById(couponId).setAttribute("data-odds",value.changedProperties.odds);self.handleCouponCheckboxChange()}}}}})]).then(pData=>{})})()}if("undefined"!==typeof value.changedProperties.isLive&&value.changedProperties.isLive&&["7","8","9","11","16","17"].includes(tid)){if("9"!=tid){self.disableRmR("",bannerId,cacheName);if(self.widget_position_id&&["1","2","3"].includes(self.widget_position_id.toString())){self.startLoad()}}}if("undefined"!==typeof value.changedProperties.isAvailable){self.updateListPopular("BETTING_OFFER",value.id,value.changedProperties.isAvailable,"isAvailable");if(null!=self.listInterval&&self.listInterval.data.length){self.listInterval.data.forEach(function(item,i){item.selections.forEach(function(item2,i2){if(item2.id==value.id){try{self.listInterval.data[i].selections[i2].available=value.changedProperties.isAvailable}catch(err){}}})})}if(["7","8","9","11","16","17"].includes(tid)){self.setOfferList(self.offerList,tid,value)}else{if(value.changedProperties.isAvailable){(async()=>{await Promise.all([self.shadowRoot.querySelectorAll(".bgButton2").forEach(function(x){if(x.getAttribute("data-offer")==value.id){if("1"==value.changedProperties.statusId){x.classList.remove("btnDisable");x.classList.remove("btnRemoved");x.classList.remove("btnSuspended");x.removeAttribute("disabled")}else{x.classList.add("btnDisable");if("4"==value.changedProperties.statusId){x.classList.add("btnRemoved")}else if("7"==value.changedProperties.statusId){x.classList.add("btnSuspended")}x.setAttribute("disabled","")}}})]).then(pData=>{})})()}else{(async()=>{await Promise.all([self.shadowRoot.querySelectorAll(".bgButton2").forEach(function(x){if(x.getAttribute("data-offer")==value.id){if(value.changedProperties.statusId&&["4","7"].includes(value.changedProperties.statusId.toString())){if("7"!=value.changedProperties.statusId){x.querySelector(".odv").innerHTML="&nbsp;"}if("4"==value.changedProperties.statusId){x.classList.add("btnRemoved")}else if("7"==value.changedProperties.statusId){x.classList.add("btnSuspended")}}x.classList.add("btnDisable");x.setAttribute("disabled","")}})]).then(pData=>{var open=0,close=0;(async()=>{await Promise.all([self.shadowRoot.querySelectorAll(".bgButton2").forEach(function(x){if(x.classList.contains("btnDisable")){close++}else{open++}})]).then(pData1=>{if(0==open&&Object.keys(bDt).length&&!self.loadingFallback){self.loadingFallback=!0;if("6"!=tid&&"13"!=tid){var status="",market=[];if(1==bDt.status_id){status="NOT_LIVE";market=bDt.markets}else if(2==bDt.status_id){status="LIVE";market=bDt.markets_live}var eventFilter=self.checkMarket(status,market,!1);eventFilter.then(data_fallback=>{if(data_fallback.successful){if("undefined"===typeof data_fallback.data[0]){var iLoop=0;if(self.waitFallback){clearInterval(self.waitFallback);self.waitFallback={}}self.waitFallback=setInterval(function(){iLoop++;var eventFilter_wait=self.checkMarket(status,market,!1);eventFilter_wait.then(data_fallback_wait=>{if(data_fallback_wait.successful&&data_fallback_wait.data.length){self.fallbackAction(bDt.event_id,data_fallback_wait);clearInterval(self.waitFallback)}else{if(30<=iLoop){var lsParam=self.genLsParam(self.loggedIn);self.lsDelete("bmfe:"+self.language+"-"+lsParam);self.disableRmR("",bannerId,"");self.startLoad();clearInterval(self.waitFallback)}}}).catch(err=>{if(30<=iLoop){clearInterval(self.waitFallback)}})},1e4);self.$.slideSource.classList.add("fadebanner");self.getEventDetail(eventId)}else{self.fallbackAction(bDt.event_id,data_fallback)}}}).catch(err=>{})}else{if(!self.disableFallback){if("undefined"!==typeof self.subscribePopular.id&&self.subscribePopular.active){try{self.ws_session.unregister(self.subscribePopular)}catch(err){self.subscribePopular={}}}self.rmCacheE();self.resetWidget();self.startLoad()}}}})})()})})()}}}}})}}}wsScoreChange(sportId,kwargs){var self=this;if(kwargs&&kwargs.records&&kwargs.records.length){var filterScore=[];(async()=>{await Promise.all([kwargs.records.forEach((item,i)=>{if("1"==item.eventInfoTypeId){filterScore.push(item)}else if("2"==item.eventInfoTypeId){if(self.last_yellow_card!=JSON.stringify({awayScore:item.awayScore,homeScore:item.homeScore})){var oldyellowcard=JSON.parse(self.last_yellow_card);if(null!=oldyellowcard){if(item.homeScore!=oldyellowcard.homeScore){self.marketIncident("home","2")}else{self.marketIncident("away","2")}}self.last_yellow_card=JSON.stringify({awayScore:item.awayScore,homeScore:item.homeScore})}}else if("4"==item.eventInfoTypeId){if(self.last_red_card!=JSON.stringify({awayScore:item.awayScore,homeScore:item.homeScore})){var oldredcard=JSON.parse(self.last_red_card);if(null!=oldredcard){if(item.homeScore!=oldredcard.homeScore){self.marketIncident("home","3")}else{self.marketIncident("away","3")}}self.last_red_card=JSON.stringify({awayScore:item.awayScore,homeScore:item.homeScore})}}else if("9"==item.eventInfoTypeId){if(self.last_corner!=JSON.stringify({awayScore:item.awayScore,homeScore:item.homeScore})){var oldcorner=JSON.parse(self.last_corner);if(null!=oldcorner){if(item.homeScore!=oldcorner.homeScore){self.marketIncident("home","4")}else{self.marketIncident("away","4")}}self.last_corner=JSON.stringify({awayScore:item.awayScore,homeScore:item.homeScore})}}})]).then(pData=>{self.filterEventPart("update",filterScore,sportId)})})()}}callWsScore(eventId,sportId){var self=this;if("offerlibrary"==self.apiMethod){}else{if("2"==self.text.status_id){var topic="/sports/"+self.operatorId+"/"+self.language+"/"+eventId+"/eventPartScores/large";if(-1!=["5","49"].indexOf(sportId.toString())){topic="/sports/"+self.operatorId+"/"+self.language+"/"+eventId+"/eventPartScores/highlighted"}var isClone=self.parentNode.classList.contains("splide__slide--clone")&&self.fromInclude;if(isClone){if("undefined"!==typeof self.WEB_API_CACHE[topic]&&"undefined"!==typeof self.WEB_API_CACHE[topic].records){self.scoresRes(sportId,{kwargs:self.WEB_API_CACHE[topic]})}else{if("undefined"!==typeof self.dumpScoresListener){self.removeEventListener("topicListen:initialDump",self.dumpScoresListener)}self.dumpScoresListener=self.dumpScores.bind(self,topic,sportId);self.addEventListener("topicListen:initialDump",self.dumpScoresListener)}if("undefined"!==typeof self.regScoresListener){self.removeEventListener("topicListen:register",self.regScoresListener)}self.regScoresListener=self.regScores.bind(self,topic,sportId);self.addEventListener("topicListen:register",self.regScoresListener)}else{if("undefined"!==typeof self.subscribeScore.id&&self.subscribeScore.active){try{self.ws_session.unregister(self.subscribeScore)}catch(err){self.subscribeScore={}}}self.ws_session.register(topic,function(args,kwargs,details){self.wsScoreChange(sportId,kwargs);self.customEventTopic("topic:register",topic,kwargs)}).then(function(regId){self.subscribeScore=regId;self.ws_session.call("/sports#initialDump",[],{topic:topic}).then(function(res){self.scoresRes(sportId,res);self.customEventTopic("topic:initialDump",topic,res.kwargs)})})}}}}regScores(topic,sportId,dataE){var self=this;if(dataE.detail&&dataE.detail.topic==topic){self.wsScoreChange(sportId,dataE.detail.kwargs)}}dumpScores(topic,sportId,dataE){var self=this;if(dataE.detail&&dataE.detail.topic==topic){self.scoresRes(sportId,{kwargs:dataE.detail.kwargs})}}scoresRes(sportId,res){var self=this;if(res&&res.kwargs&&res.kwargs.records&&res.kwargs.records.length){var filterScore=[];(async()=>{await Promise.all([res.kwargs.records.forEach((item,i)=>{if("1"==item.eventInfoTypeId){filterScore.push(item)}else if("2"==item.eventInfoTypeId){if(null==self.last_yellow_card){self.last_yellow_card=JSON.stringify({awayScore:item.awayScore,homeScore:item.homeScore})}}else if("4"==item.eventInfoTypeId){if(null==self.last_red_card){self.last_red_card=JSON.stringify({awayScore:item.awayScore,homeScore:item.homeScore})}}else if("9"==item.eventInfoTypeId){if(null==self.last_corner){self.last_corner=JSON.stringify({awayScore:item.awayScore,homeScore:item.homeScore})}}})]).then(pData=>{self.filterEventPart("show",filterScore,sportId)})})()}}fallbackAction(eventId,data_event){var self=this;self.ws_event[eventId]=data_event;var dt=data_event.data[0];self.backupMarketName=dt.name;self.set("text.marketname",self.getText(dt.name));self.set("text.labelName","");self.set("text.labelStyle","");var milliseconds=new Date().getTime();self.firstRender(milliseconds,[],"",dt)}resetIncident(){var self=this;self.incident_market_id="";self.incident_event_id="";clearTimeout(self.waitTIncidentClose);clearTimeout(self.waitTShowName);clearTimeout(self.waitTDelayIncident);clearInterval(self.waitRepeat);self.waitTIncidentClose={};self.waitTShowName={};self.set("text.marketname",self.getText(self.backupMarketName));self.set("text.labelName","");self.set("text.labelStyle","");self.$.incident_button.style.display="none";self.$.incident_button.innerHTML="";self.$.slidebanner.style.display="flex";var{bDt}=self.getWidget();if(2==bDt.status_id&&0==bDt.markets_live.length&&1==bDt.incident_status&&self.widget_position_id&&["1","2"].includes(self.widget_position_id.toString())){self.$.slideSource.classList.remove("fadebanner")}}renderIncidentAction(data,dataMarketList,team_type,incident_type){var self=this;if(data.successful){var action_outcome="",milliseconds=new Date().getTime(),display_time=1e3*3600;if("undefined"!==typeof dataMarketList.display_time&&dataMarketList.display_time&&"0"!=dataMarketList.display_time){display_time=1e3*dataMarketList.display_time}var{wDt,bDt}=self.getWidget(),dt=data.data[0],market_id=dt.bettingTypeId+"_"+dt.eventPartId;(async()=>{await Promise.all([dt.selections.forEach((item,i)=>{var name=self.getText(item.translationKey),showprice=self.getNumber(item.price,2),btnDisable="",active=!1;if(item.available&&"1"==item.statusId&&"undefined"!==typeof item.price&&"undefined"!==typeof showprice&&"undefined"!==showprice&&showprice){active=!0}else{if(item.statusId&&["4","7"].includes(item.statusId.toString())||""==showprice){if(""==showprice||"7"!=item.statusId){showprice="&nbsp;"}if("4"==item.statusId){btnDisable=" btnRemoved"}else if("7"==item.statusId){btnDisable=" btnSuspended"}}}var content_lang=self.bannerTranslate(bDt.banner_translate),title=content_lang?content_lang.title:"",btn="<button"+(active?"":" disabled")+" class=\"bgButtonIncident bgButton2"+(active?"":" btnDisable"+btnDisable)+"\" id=\"outcome_incident_"+item.outcomeId+"\" onclick=\"this.getRootNode().host.handleOdd(this,event,'"+wDt.banner_id+"', '"+self.positionTag+"', '"+self.pageTag+"', '"+wDt.sport_id+"', '"+wDt.location_id+"', '"+wDt.tournament_id+"', '"+wDt.event_id+"', '"+item.outcomeId+"', '"+market_id+"', '"+title+"', '"+bDt.type_id+"')\" data-event=\""+item.eventId+"\" data-offer=\""+item.id+"\" data-bettypeid=\""+item.bettingTypeId+"\" data-price=\""+item.price+"\" data-timestamp=\""+milliseconds+"\" data-role=\""+item.role+"\"><div class=\"oddButton\"><div class=\"oddButtonName\">"+name+"</div> <div class=\"oddButtonValue\"><span class=\"odv\" id=\"odv_incident_"+item.outcomeId+"\">"+showprice+"</span></div></div></button>";action_outcome+=btn})]).then(pData=>{var action_name="",team_name="";if("undefined"!==typeof self.ws_event[wDt.event_id]){if("home"==team_type){team_name=self.ws_event[wDt.event_id].homeShortParticipantName}else if("away"==team_type){team_name=self.ws_event[wDt.event_id].awayShortParticipantName}}if("undefined"!==typeof self.slider_setting.translate_incident[self.language]){if("1"==incident_type){action_name=team_name+" "+self.slider_setting.translate_incident[self.language][0]}else if("2"==incident_type){action_name=team_name+" "+self.slider_setting.translate_incident[self.language][1]}else if("3"==incident_type){action_name=team_name+" "+self.slider_setting.translate_incident[self.language][2]}else if("4"==incident_type){action_name=team_name+" "+self.slider_setting.translate_incident[self.language][3]}}else if("undefined"===typeof self.slider_setting.translate_incident[self.language]&&"undefined"!==typeof self.slider_setting.translate_incident.en){if("1"==incident_type){action_name=team_name+" "+self.slider_setting.translate_incident.en[0]}else if("2"==incident_type){action_name=team_name+" "+self.slider_setting.translate_incident.en[1]}else if("3"==incident_type){action_name=team_name+" "+self.slider_setting.translate_incident.en[2]}else if("4"==incident_type){action_name=team_name+" "+self.slider_setting.translate_incident.en[3]}}else{if("1"==incident_type){action_name=team_name+" scores goal!"}else if("2"==incident_type){action_name=team_name+" booked yellow card!"}else if("3"==incident_type){action_name=team_name+" booked red card!"}else if("4"==incident_type){action_name=team_name+" awarded corner!"}}self.shadowRoot.querySelectorAll(".nameMarketRender").forEach(function(x){x.classList.add("opacity0")});self.set("text.marketname",self.getText(data.data[0].name));self.set("text.labelName","");self.set("text.labelStyle","");self.$.incident_button.innerHTML="<div class=\"show_action_incident\">"+action_name+"</div>";self.$.slidebanner.style.display="none";self.$.incident_button.style.display="flex";if(2==bDt.status_id&&0==bDt.markets_live.length&&1==bDt.incident_status&&self.widget_position_id&&["1","2"].includes(self.widget_position_id.toString())){self.$.slideSource.classList.add("fadebanner");self.onResize()}if(self.waitTShowName){clearTimeout(self.waitTShowName);self.waitTShowName={}}self.waitTShowName=setTimeout(function(){self.shadowRoot.querySelectorAll(".nameMarketRender").forEach(function(x){x.classList.remove("opacity0")});self.$.incident_button.innerHTML=action_outcome;self.setActiveOdd();if(self.waitTIncidentClose){clearTimeout(self.waitTIncidentClose);self.waitTIncidentClose={}}self.waitTIncidentClose=setTimeout(function(){self.resetIncident()},display_time)},3e3)})})()}}repeatIncident(dataMarketList,query_status,eventId,query_market,team_type,incident_type){var self=this;if(self.waitRepeat){clearInterval(self.waitRepeat);self.waitRepeat={}}var i=1;self.waitRepeat=setInterval(function(){i++;var eventFilter=self.checkMarket(status,market,!0);eventFilter.then(data_fallback=>{if(data_fallback.successful){if("undefined"===typeof data_fallback.data[0]){if(36<=i){clearInterval(self.waitRepeat)}}else{clearInterval(self.waitRepeat);self.renderIncidentAction(data_fallback,dataMarketList,team_type,incident_type)}}else{if(36<=i){clearInterval(self.waitRepeat)}}}).catch(err=>{if(6<=i){clearInterval(self.waitRepeat)}})},5e3)}renderIncident(dataMarketList,team_type,incident_type){var self=this,{wDt}=self.getWidget(),eventId=wDt.event_id,matchStatus="LIVE",market=dataMarketList.marketList,eventFilter=self.checkMarket(matchStatus,market,!0);eventFilter.then(data_fallback=>{if(data_fallback.successful){if("undefined"===typeof data_fallback.data[0]){self.repeatIncident(dataMarketList,matchStatus,eventId,market,team_type,incident_type)}else{self.renderIncidentAction(data_fallback,dataMarketList,team_type,incident_type)}}else{self.ws_event[eventId]=null;self.hideSkeleton()}}).catch(err=>{self.repeatIncident(dataMarketList,matchStatus,eventId,market,team_type,incident_type)})}marketIncident(team_type,incident_type){var self=this;if(self.waitTDelayIncident){clearTimeout(self.waitTDelayIncident);self.waitTDelayIncident={}}self.waitTDelayIncident=setTimeout(function(){var{wDt}=self.getWidget();if(!Object.keys(wDt).length||""==self.bannerId&&("undefined"===typeof wDt.markets_incident||"undefined"!==typeof wDt.markets_incident&&0==wDt.markets_incident.length)){self.resetIncident()}else{var incident_json=wDt.markets_incident;(async()=>{var promises=[];await Promise.all([incident_json.forEach((item,i)=>{if(item.team_type.toLowerCase()==team_type.toLowerCase()){promises.push(item)}})]).then(pData=>{if(promises.length&&promises[0].data.length){var promises2=[];(async()=>{await Promise.all([promises[0].data.forEach((item,i)=>{if(incident_type==item.incident_id){promises2.push(item)}})]).then(pData=>{if(promises2.length&&promises2[0].pages.length){if("undefined"===typeof promises2[0].marketList){promises2[0].marketList=[]}promises2[0].pages.forEach((item2,i2)=>{promises2[0].marketList.push(item2.marketId)});self.renderIncident(promises2[0],team_type,incident_type)}})})()}})})()}},1e4)}getTextEvent(statusId){var self=this,txt_event=self.slider_setting?2==statusId?self.slider_setting.text_live_event:self.slider_setting.text_event:{};return txt_event[self.language]?txt_event[self.language]:txt_event.en}getText(text){var self=this,separator="";if(self.slider_setting&&self.slider_setting.extra_config&&self.slider_setting.extra_config.separator){separator=self.slider_setting.extra_config.separator}if(text&&separator){return text.toString().replace(/([0-9])[.]([0-9])/g,`$1${separator}$2`)}else{return text}}translateText(){var self=this;if(self.slider_setting&&self.slider_setting.translate){if("undefined"!==typeof self.slider_setting.translate[self.language]){var allow=["liveText","couponSelect","couponTotal","couponAdd","couponAddBetslip","viewAll"];allow.forEach(function(value,key){if(self.slider_setting.translate[self.language][value]){self.set(`text.${value}`,self.slider_setting.translate[self.language][value])}})}}}stripLink(url){var newUrl=url.replaceAll(".","").replaceAll(":","-").replaceAll(",","").replaceAll([" - "],"-").replaceAll(" ","-");newUrl=newUrl.replaceAll("/","-");newUrl=newUrl.replaceAll("--","-").toLowerCase();newUrl=newUrl.replaceAll("'","-");newUrl=newUrl.replaceAll("(","").replaceAll(")","");return newUrl}genLink(link,match){var self=this;if(link&&match){Object.keys(match).forEach(key=>{if(match[key]&&["string","number"].includes(typeof match[key])){link=link.replaceAll("${"+key+"}",self.removeAccents(self.stripLink(match[key].toString())))}});if(-1!=link.indexOf("${")){link=link.replaceAll("${shortSportName}","${sportName}");link=link.replaceAll("${shortVenueName}","${venueName}");link=link.replaceAll("${shortParentName}","${parentName}");link=link.replaceAll("${shortName}","${name}");Object.keys(match).forEach(key=>{if(match[key]&&["string","number"].includes(typeof match[key])){link=link.replaceAll("${"+key+"}",self.removeAccents(self.stripLink(match[key].toString())))}})}}return self.genLinkDomain(link)}genLinkDomain(link){var self=this;if("offerlibrary"==self.apiMethod&&self.root_auto_link&&self.root_auto_link.domain){link=link.replaceAll("${domain}",self.root_auto_link.domain)}else{var parentURL=window.location!=window.parent.location?document.referrer:document.location.hostname;parentURL=parentURL.replace(/http(s)?(:)?(\/\/)?|(\/\/)?\//g,"");link=link.replaceAll("${domain}",parentURL)}return link}autoLink(match){var self=this,target_link="_top";if("undefined"!==typeof self.root_auto_link.target_link){target_link=self.root_auto_link.target_link}var param="/${sportId}/${shortSportName}/${shortVenueName}/${shortParentName}/${shortName}/${id}/";param=self.genLink(param,match);var{wDt,tid,eid,bannerId}=self.getWidget(),cacheName=self.genCacheName(tid,bannerId,eid,self.language);if(!self.root_auto_link||2==match.statusId&&!self.root_auto_link.link_live||1==match.statusId&&!self.root_auto_link.link||"offerlibrary"==self.apiMethod&&!self.root_auto_link.domain){self.setEventLs(cacheName,"eventLink",{generate_link:!1,generate_target:target_link,eventLink:""});return!1}try{var link="";if(2==match.statusId){link=self.root_auto_link.link_live}else if(1==match.statusId){link=self.root_auto_link.link}link=("/"==link.substr(-1)?link.slice(0,-1):link)+param;link=self.genLinkDomain(link)}catch(err){return!1}self.setEventLs(cacheName,"eventLink",{generate_link:wDt.generate_link,generate_target:target_link,eventLink:wDt?link:""});self.$.buttonNavLayout.classList.add("showcursor");var btn_text="",btn="<div class=\"no_link_btn\"><br><button class=\"btLink btLink"+bannerId+"\" onclick=\"this.getRootNode().host.handleClick('"+link+"', '"+target_link+"', '"+wDt.banner_id+"', '"+self.positionTag+"', '"+self.pageTag+"', '"+wDt.sport_id+"', '"+wDt.location_id+"', '"+wDt.tournament_id+"', '"+wDt.event_id+"')\">"+btn_text+"</button></div>";self.$.bannerContentMain.classList.add("showcursor");self.$.buttondetail.innerHTML=btn;self.$.buttonNav_btn.innerHTML=btn;if(!["7","8","9","11","12","16"].includes(wDt.type_id.toString())){self.$.bannerContentMain.classList.add("linkBanner");self.$.bannerContentMain.classList.remove("cacheLinkBanner")}}genTranslate(text){var self=this;if(text&&self.translate&&"object"===typeof self.translate){Object.keys(self.translate).forEach(key=>{text=text.replaceAll("${"+key+"}",self.translate[key])})}return text}getSportDataAction(eventId,data_event){var self=this,{wDt,bDt}=self.getWidget();self.ws_event[eventId]=data_event;self.widget.events_list[0].banner_data[0].status_id=self.arrEvent[eventId].statusId;self.backupMarketName=data_event.data[0].name;self.set("text.marketname",self.getText(data_event.data[0].name));self.set("text.labelName","");self.set("text.labelStyle","");if("undefined"!==typeof self.arrEvent[eventId]&&"undefined"!==typeof self.arrEvent[eventId].venueName){self.set("text.countryId",self.arrEvent[eventId].venueId);self.set("text.countryName",self.arrEvent[eventId].venueName)}var data_event_data=data_event.data[0],milliseconds=new Date().getTime();self.firstRender(milliseconds,[],"",data_event_data);if("undefined"!==typeof self.subscribeOdds.id&&self.subscribeOdds.active){try{self.ws_session.unregister(self.subscribeOdds)}catch(err){self.subscribeOdds={}}}var topic=self.genMatchOdds(eventId,bDt);self.ws_session.register(topic,function(args,kwargs,details){self.wsChange(kwargs)}).then(function(regId){self.subscribeOdds=regId;self.ws_session.call("/sports#initialDump",[],{topic:topic}).then(function(res){if(res.kwargs.records.length||"undefined"!==typeof self.arrEvent[eventId].id){self.hideSkeleton();self.removeDemo();self.set("text.tournamentId","");self.set("text.tournamentName","");self.$.slideSource.classList.add("fadebanner");if(0==res.kwargs.records.length){self.ws_event[eventId]=self.arrEvent[eventId]}else{self.ws_event[eventId]=res.kwargs.records[0]}self.getEventDetail(eventId);try{if(6==wDt.type_id){self.callWsScore(eventId,wDt.sport_id)}if(wDt.generate_link){self.autoLink(self.ws_event[eventId])}}catch(err){}}else{self.ws_event[eventId]=null;self.disableBanner(eventId,self.bannerId)}})})}numberMinute(textMinute){if(""==textMinute){return""}return parseInt(textMinute.toString().replace(", ","").replace("'",""))}minsec(mins){var self=this;if(self.waitMinsec){clearInterval(self.waitMinsec);self.waitMinsec={}}var i=0,min=parseInt(mins),sec=i%60,minA=Math.floor(i/60),minD=(min+minA).toString()+":"+("0"+sec).slice(-2);self.set("text.minsec",minD);if("621"!=self.breakTime){self.waitMinsec=setInterval(function(){if("621"==self.breakTime){self.resetMinsec(minD)}else{i++;sec=i%60;minA=Math.floor(i/60);self.set("text.minsec",(min+minA).toString()+":"+("0"+sec).slice(-2))}},1e3)}}resetMinsec(mins=""){var self=this;self.set("text.minsec",mins);if(self.waitMinsec){clearInterval(self.waitMinsec);self.waitMinsec={}}setTimeout(function(){self.set("text.minsec",mins)},1e3)}countdownInterval(eventId,time_change){var self=this;if(self.waitDuration){clearInterval(self.waitDuration);self.waitDuration={}}var i=0;self.waitDuration=setInterval(function(){i++;if(0==i%time_change){i=0;self.renderOddsInterval(eventId,time_change)}self.set("text.timecount",time_change-i)},1e3)}async filterMarketInterval(eventId){var self=this;return new Promise(resolve=>{var listMarketInterval=[],{wDt}=self.getWidget(),firstMarket=wDt.markets_interval?wDt.markets_interval[0]:"",secondMarket=wDt.markets_interval?wDt.markets_interval[1]:"";if("5"==self.arrEvent[eventId].currentPartId){listMarketInterval=firstMarket}else if("6"==self.arrEvent[eventId].currentPartId||"621"==self.arrEvent[eventId].currentPartId){listMarketInterval=secondMarket}if(listMarketInterval&&listMarketInterval.data.length){listMarketInterval.data.forEach(function(value,key){if(value.start<=self.numberMinute(self.text.minute)&&value.end>self.numberMinute(self.text.minute)){resolve(value)}});resolve([])}else{resolve([])}})}isEvent(event_id){return event_id&&null!==event_id&&0!==event_id&&"null"!==event_id&&"0"!==event_id?!0:!1}getWidget(){var self=this,eDt=self.widget&&self.widget.events_list.length?self.widget.events_list[0]:void 0,wDt="undefined"!==typeof eDt&&"undefined"!==typeof eDt.web_data?eDt.web_data:{},bDt="undefined"!==typeof eDt&&"undefined"!==typeof eDt.banner_data?eDt.banner_data[0]:{},tid=self.tid?self.tid.toString():wDt.type_id?wDt.type_id.toString():"",eid=self.eid?self.eid.toString():wDt.event_id?wDt.event_id.toString():"",bannerId=self.bannerId?self.bannerId.toString():wDt.banner_id?wDt.banner_id.toString():"";return{eDt,wDt,bDt,tid,eid,bannerId}}renderOddsInterval(eventId,time_change){var self=this,markets=self.filterMarketInterval(eventId);markets.then(data_markets=>{if(null==self.marketTimeline||null!=self.marketTimeline&&(self.marketTimeline.start!=data_markets.start||self.marketTimeline.end!=data_markets.end)){self.marketTimeline=data_markets;var list_market_rotate=[];(async()=>{await Promise.all([data_markets.pages.forEach((item,i)=>{list_market_rotate.push(item.marketId)})]).then(pData=>{var status="LIVE",market=list_market_rotate,eventFilter=self.checkMarket(status,market,!1);eventFilter.then(data_fallback=>{if(data_fallback.successful){self.listInterval=data_fallback;var iLoop=0;self.backupMarketName=self.listInterval.data[iLoop].name;self.set("text.marketname",self.getText(self.listInterval.data[iLoop].name));self.set("text.labelName","");self.set("text.labelStyle","");var milliseconds=new Date().getTime();self.firstRender(milliseconds,[],"",self.listInterval.data[iLoop]);if(self.waitChange){clearInterval(self.waitChange);self.waitChange={}}self.waitChange=setInterval(function(){if(self.text.timecount==time_change){iLoop++;if("undefined"!==typeof self.listInterval.data[iLoop]){self.backupMarketName=self.listInterval.data[iLoop].name;self.set("text.marketname",self.getText(self.listInterval.data[iLoop].name));self.set("text.labelName","");self.set("text.labelStyle","");var milliseconds=new Date().getTime();self.firstRender(milliseconds,[],"",self.listInterval.data[iLoop])}if(iLoop==self.listInterval.data.length-1){iLoop=-1}}},1e3)}}).catch(err=>{})})})()}}).catch(err=>{})}getMarketInterval(eventId){var self=this,{eDt,wDt,bDt}=self.getWidget();self.callWsScore(eventId,wDt.sport_id);self.getEventDetail(eventId);var time_change=20,rotate_data=null;(async()=>{await Promise.all([eDt.banner_data.forEach((item,i)=>{if(wDt.banner_id==item.banner_id){rotate_data=item}})]).then(pData=>{self.waitMinute=setInterval(function(){if(self.numberMinute(self.text.minute)){time_change=rotate_data.slide_duration;self.set("text.timecount",time_change);clearInterval(self.waitMinute);self.renderOddsInterval(eventId,time_change);self.countdownInterval(eventId,time_change)}},100);if("undefined"!==typeof self.subscribeOdds.id&&self.subscribeOdds.active){try{self.ws_session.unregister(self.subscribeOdds)}catch(err){self.subscribeOdds={}}}var topic=self.genMatchOdds(eventId,bDt);self.ws_session.register(topic,function(args,kwargs,details){self.wsChange(kwargs)}).then(function(regId2){self.subscribeOdds=regId2});self.hideSkeleton();self.removeDemo();self.$.slideSource.classList.add("fadebanner")})})()}rmCacheE(){var self=this,cacheName=self.genCacheName(self.tid,self.bannerId,self.eid,self.language),ls=self.lsGet("bmfe:events","json");if("undefined"!==typeof ls[cacheName]){delete ls[cacheName]}self.lsSet("bmfe:events",JSON.stringify(ls))}rmCacheEByName(cacheName){var self=this,ls=self.lsGet("bmfe:events","json");if("undefined"!==typeof ls[cacheName]){delete ls[cacheName]}self.lsSet("bmfe:events",JSON.stringify(ls))}getSportData(eventId,wsData=null){var self=this,timeOut=100;if("offerlibrary"==self.apiMethod&&"undefined"!==typeof self.WEB_API_CACHE.offer_library_ready||null!=self.ws_session){timeOut=20}var i=0,wait=setInterval(function(){var{wDt,bDt,tid,eid,bannerId}=self.getWidget(),cacheName=self.genCacheName(tid,bannerId,eid,self.language);if(("offerlibrary"==self.apiMethod&&"undefined"!==typeof self.WEB_API_CACHE.offer_library_ready||null!=self.ws_session)&&Object.keys(bDt).length&&"undefined"!==typeof bDt.betting_event){if("undefined"!==typeof eventId&&null!=eventId&&0==wDt.interval_status){var status="",market=[];if("undefined"!==typeof self.arrEvent[eventId]){self.widget.events_list[0].banner_data[0].status_id=self.arrEvent[eventId].statusId}if(2==bDt.status_id&&0==bDt.markets_live.length&&1==bDt.incident_status&&self.widget_position_id&&["1","2"].includes(self.widget_position_id.toString())){clearInterval(wait);self.getEventDetail(eventId);self.callWsScore(eventId,wDt.sport_id);self.checkSliderChange()}else{if("offerlibrary"==self.apiMethod){(async()=>{var loaded=0;await Promise.all([self.listPopular.match.forEach((item2,i2)=>{self.listPopular.markets[item2.id].forEach((item3,i3)=>{var selections=self.listPopular.market[item3.id].selections;if(selections.length){selections=selections.sort((a,b)=>a.orderOutcome-b.orderOutcome);self.listPopular.markets[item2.id][i3].selections=selections;loaded++}})})]).then(pData1=>{if(0==self.listPopular.match.length){self.disableRmR("",bannerId,cacheName)}else{if(loaded){self.setTextEvent()}else{self.disableRmR("",bannerId,"auto",!1)}}})})()}else if(wsData){self.resetListPopular();(async()=>{if(wsData.length){await Promise.all([wsData.forEach((item,i)=>{self.genListPopular(item);if("MATCH"==item._type){if(item.currentPartId&&item.currentPartName){self.breakTime=item.currentPartId;self.set("text.partName",item.currentPartName);self.setEventLs(cacheName,"partName",{partName:item.currentPartName})}}else if("EVENT_INFO"==item._type){if("95"==item.typeId){self.set("text.time_id",item.id);if("undefined"!==typeof item.paramFloat1){var prefix="";if(self.widget_layout&&!["2","4","7","8"].includes(self.widget_layout.toString())){prefix=", "}var minute=item.paramFloat1.toString().replace(".0","");self.set("text.minute",prefix+minute+"'");self.minsec(minute)}else{self.set("text.minute","");self.resetMinsec()}}}})]).then(pData=>{(async()=>{var loaded=0;await Promise.all([self.listPopular.match.forEach((item2,i2)=>{self.listPopular.markets[item2.id].forEach((item3,i3)=>{var selections=self.listPopular.market[item3.id].selections;if(selections.length){selections=selections.sort((a,b)=>a.orderOutcome-b.orderOutcome);self.listPopular.markets[item2.id][i3].selections=selections;loaded++}})})]).then(pData1=>{if(0==self.listPopular.match.length){self.disableRmR("",bannerId,cacheName)}else{if(loaded){self.setTextEvent()}else{self.disableRmR("",bannerId,"auto",!1)}}})})()})}})()}else{if(1==bDt.status_id){status="NOT_LIVE";market=bDt.markets}else if(2==bDt.status_id){status="LIVE";market=bDt.markets_live}var homeParticipant_id="",awayParticipant_id="";if("undefined"!==typeof bDt.event_json){if("undefined"!==typeof bDt.event_json.homeParticipant){homeParticipant_id=bDt.event_json.homeParticipant.id}if("undefined"!==typeof bDt.event_json.awayParticipant){awayParticipant_id=bDt.event_json.awayParticipant.id}}var eventFilter=self.checkMarket(status,market,!1);eventFilter.then(data_event=>{if(data_event.successful){if("undefined"===typeof data_event.data[0]){self.hideSkeleton();self.$.slideSource.classList.add("fadebanner");self.getEventDetail(eventId);self.callWsScore(eventId,bDt.sport_id);var iLoop=1;if(self.waitFallback){clearInterval(self.waitFallback);self.waitFallback={}}self.waitFallback=setInterval(function(){iLoop++;var eventFilter_wait_fallback=self.checkMarket(status,market,!1);eventFilter_wait_fallback.then(data_fallback_wait=>{if(data_fallback_wait.successful&&data_fallback_wait.data.length){self.getSportDataAction(eventId,data_fallback_wait);clearInterval(self.waitFallback)}else{if(30<=iLoop){self.disableBanner(eventId,bannerId);self.shadowRoot.querySelectorAll(".splide__pagination").forEach(el=>el.remove());self.resetWidget();self.startLoad();clearInterval(self.waitFallback)}}}).catch(err=>{clearInterval(self.waitFallback)})},1e4)}else{self.getEventDetail(eventId);self.callWsScore(eventId,bDt.sport_id);self.getSportDataAction(eventId,data_event)}}else{self.disableRmR(eventId,bannerId,"auto",!1);if(""==self.bannerId){self.resetWidget();self.startLoad()}}}).catch(err=>{self.disableRmR(eventId,bannerId,"auto");self.startLoad()})}clearInterval(wait)}}else if("undefined"!==typeof eventId&&null!=eventId&&1==wDt.interval_status){self.getMarketInterval(eventId);clearInterval(wait)}else{clearInterval(wait)}if("undefined"!==typeof wDt.devices){if(wDt.devices.desktop){self.$.slideSource.classList.add("d_desktop")}if(wDt.devices.tablet){self.$.slideSource.classList.add("d_tablet")}if(wDt.devices.mobile){self.$.slideSource.classList.add("d_mobile")}}if(self.bannerId){if(3==wDt.type_id){self.renderBanner();if(1==bDt.display_time_status){if(0<bDt.display_time){self.widgetTimeout=bDt.display_time;if(1==self.use_timeout){self.checkTimeout(self.bannerId)}}}}else{if(3==bDt.status_id){}else{if("4"==wDt.type_id||"17"==wDt.type_id){self.renderBanner()}else{self.renderBanner()}}}}else{if(wsData){}else if("offerlibrary"==self.apiMethod){}else{self.getBannerData()}}}else{i++;if(200<i){clearInterval(wait)}}},timeOut)}getBannerDataSingleEvent(data){var self=this,eventId=data.data.event_id;if(self.bannerId&&data.data&&3==data.data.status_id){self.disableBanner(eventId,self.bannerId);self.updateBannerCache(data);return!1}if("offerlibrary"==self.apiMethod){if(eventId&&"undefined"!==typeof self.WEB_API_CACHE.offer_library_ready){self.resetListPopular();const offerStruct=self.WEB_API_CACHE.offer_library.sport.offerStruct,focus=self.WEB_API_CACHE.offer_library.sport.matches.get(eventId);if(focus){const outcomes=focus.outcomes,startTime=new Date(focus.utcDate);let match={_type:"MATCH",id:focus.matchId,statusId:"prematch"==focus.state?1:"live"==focus.state&&"active"==focus.status?2:0,currentPartId:"",sportId:focus.sportId?focus.sportId.toString():"",sportName:`${offerStruct.sports[focus.sportId].sportName}`,shortSportName:`${offerStruct.sports[focus.sportId].sportName}`,parentId:focus.tournamentId?focus.tournamentId.toString():"",parentName:`${offerStruct.tournaments[focus.tournamentId].tournamentName}`,shortParentName:`${offerStruct.tournaments[focus.tournamentId].tournamentName}`,venueId:`${offerStruct.tournaments[focus.tournamentId].categoryId}`,venueName:`${offerStruct.categories[focus.categoryId].categoryName}`,homeParticipantId:focus.teamIdOne?focus.teamIdOne.toString():"",homeParticipantName:focus.teamNameOne,awayParticipantId:focus.teamIdTwo?focus.teamIdTwo.toString():"",awayParticipantName:focus.teamNameTwo,name:`${focus.teamNameOne} - ${focus.teamNameTwo}`,shortName:`${focus.teamNameOne} - ${focus.teamNameTwo}`,startTime:startTime.getTime()};self.arrEvent[match.id]=match;self.listPopular.match.push(match);self.listPopular.event[match.id]=match;self.listPopular.markets[match.id]=[];self.listPopular.query_markets[match.id]=[];self.listPopular.bettingTypeIds[match.id]=[];self.listPopular.eventPartIds[match.id]=[];const eventScores=self._offerScores(focus);let allowBettingTypeId=["35","69","70","466"];if(data.data.betting_event&&data.data.betting_event.bettingTypeIds){allowBettingTypeId=data.data.betting_event.bettingTypeIds}let scoreEventPart=[];(async()=>{await Promise.all([outcomes.forEach((item,i)=>{const outcome=outcomes[i];let bettingTypeId=outcome.marketDefId,eventPartId=outcome.eventPartId;const eventPartName=eventPartId&&offerStruct.eventParts&&offerStruct.eventParts[eventPartId]?offerStruct.eventParts[eventPartId].name:"";if(bettingTypeId&&-1!=bettingTypeId.indexOf("_")){const marketDefId=outcome.marketDefId.split("_");bettingTypeId=marketDefId[0];eventPartId=marketDefId[1]}if(eventPartId&&-1!=allowBettingTypeId.indexOf(bettingTypeId)){const id=`${match.id}_${bettingTypeId}_${eventPartId}`,outcomeId=`${id}_${item.outcomeId}`;if(-1==self.listPopular.query_markets[match.id].indexOf(id)){self.listPopular.markets[match.id].push({bettingTypeId:bettingTypeId,bettingTypeName:`${offerStruct.markets[outcome.marketDefId].shortName}`,eventId:match.id,eventPartId:eventPartId,eventPartName:eventPartName,id:id,name:`${offerStruct.markets[outcome.marketDefId].shortName}`,selections:[]});self.listPopular.query_markets[match.id].push(id);self.listPopular.bettingTypeIds[match.id].push(bettingTypeId);self.listPopular.eventPartIds[match.id].push(eventPartId)}let translationKey=`${offerStruct.outcomes[item.outcomeId].shortName}`;if(item.specifiers){Object.keys(item.specifiers).forEach(i2=>{translationKey=translationKey.replace(`{${i2}}`,`${item.specifiers[i2]}`)});translationKey=translationKey.replace(`{$competitor1}`,`${focus.teamNameOne}`);translationKey=translationKey.replace(`{$competitor2}`,`${focus.teamNameTwo}`)}let props={};if(outcome.specifiers&&"undefined"!==typeof outcome.specifiers.pf1){props.param=outcome.specifiers.pf1}const outcomeSelection={eventId:match.id,translationKey:translationKey,outcomeId:outcomeId,props:props,homeParticipantId:self.listPopular.event[match.id].homeParticipantId,awayParticipantId:self.listPopular.event[match.id].awayParticipantId,orderOutcome:offerStruct.outcomes[item.outcomeId].orderNum,isLive:"live"==focus.state?!0:!1,bettingTypeId:bettingTypeId,bettingTypeName:`${offerStruct.markets[outcome.marketDefId].shortName}`,price:item.value,providerId:"",available:"active"==item.status?!0:!1,id:item.outcomeHash,statusId:"active"==item.status?1:0};if("undefined"===typeof self.listPopular.market[id]){self.listPopular.market[id]={id:id,selections:[]}}self.listPopular.market[id].selections.push(outcomeSelection)}}),eventScores.forEach((item,i)=>{if("undefined"!==typeof item.t1Scr&&"undefined"!==typeof item.t2Scr){scoreEventPart.push({eventPartKey:item.type,eventPartName:item.name,homeScore:item.t1Scr,awayScore:item.t2Scr})}})]).then(oData=>{if("undefined"!==typeof self.arrEvent[eventId]){data.data.status_id=self.arrEvent[eventId].statusId;if(1==self.arrEvent[eventId].statusId||2==self.arrEvent[eventId].statusId){self.getBannerDataCacheAction(data)}else{if(self.bannerId&&-1==self.slider_disable.indexOf(self.bannerId)){self.disableBanner("",self.bannerId);self.updateBannerCacheAll(eventId)}}}if(scoreEventPart.length){self._offerText(focus,scoreEventPart)}})})()}else{self.disableBanner(eventId,self.bannerId);self.updateBannerCache(data)}}else{self.disableBanner(eventId,self.bannerId);self.updateBannerCache(data)}}else{var topic=self.genMatchOdds(eventId,data.data),isClone=self.parentNode.classList.contains("splide__slide--clone")&&self.fromInclude;if(isClone){if("undefined"!==typeof self.WEB_API_CACHE[topic]&&"undefined"!==typeof self.WEB_API_CACHE[topic].records){setTimeout(function(){self.matchOddsRes1(eventId,data,{kwargs:self.WEB_API_CACHE[topic]})},"9"==self.widget_layout?600:0)}else{if("undefined"!==typeof self.dumpMatchOddsListener){self.removeEventListener("topicListen:initialDump",self.dumpMatchOddsListener)}self.dumpMatchOddsListener=self.dumpMatchOdds.bind(self,topic,eventId,data);self.addEventListener("topicListen:initialDump",self.dumpMatchOddsListener)}if("undefined"!==typeof self.regMatchOddsListener){self.removeEventListener("topicListen:register",self.regMatchOddsListener)}self.regMatchOddsListener=self.regMatchOdds.bind(self,topic);self.addEventListener("topicListen:register",self.regMatchOddsListener)}else{self.ws_session.register(topic,function(args,kwargs,details){self.wsChange(kwargs);self.customEventTopic("topic:register",topic,kwargs)}).then(function(regId){self.subscribeOdds=regId;self.ws_session.call("/sports#initialDump",[],{topic:topic}).then(function(res){self.matchOddsRes1(eventId,data,res);self.customEventTopic("topic:initialDump",topic,res.kwargs)})})}}}regMatchOdds(topic,dataE){var self=this;if(dataE.detail&&dataE.detail.topic==topic){self.wsChange(dataE.detail.kwargs)}}dumpMatchOdds(topic,eventId,data,dataE){var self=this;if(dataE.detail&&dataE.detail.topic==topic){self.matchOddsRes1(eventId,data,{kwargs:dataE.detail.kwargs})}}matchOddsRes1(eventId,data,res){var self=this;if(eventId&&data&&res&&res.kwargs&&"undefined"!==typeof res.kwargs.records){if(res.kwargs.records.length){(async()=>{await Promise.all([res.kwargs.records.forEach((item2,i2)=>{if("MATCH"==item2._type){self.arrEvent[eventId]=item2;data.data.status_id=self.arrEvent[eventId].statusId}})]).then(pData=>{if(self.arrEvent[eventId]&&(1==self.arrEvent[eventId].statusId||2==self.arrEvent[eventId].statusId)){self.getBannerDataCacheAction(data,res.kwargs.records)}else{if(self.bannerId&&-1==self.slider_disable.indexOf(self.bannerId)){self.disableBanner("",self.bannerId);self.updateBannerCacheAll(eventId)}}})})()}else{self.disableBanner(eventId,self.bannerId);self.updateBannerCache(data)}}}customEventTopic(eventName,topic,kwargs){var self=this;if("topic:initialDump"==eventName){self.WEB_API_CACHE[topic]=kwargs}const event=new CustomEvent(eventName,{detail:{topic:topic,kwargs:kwargs}});self.dispatchEvent(event)}customEventItem(eventName,detail){var self=this;self.shadowRoot.querySelectorAll("bannermatrix-banner").forEach(function(item,key){var isClone=item.parentNode.classList.contains("splide__slide--clone"),tid=item.parentNode.getAttribute("li-type-id"),templateIndex=item.parentNode.getAttribute("li-template-index")||"0";if(isClone||"11"==tid&&"0"!=templateIndex){const event=new CustomEvent(eventName,{detail:detail});item.dispatchEvent(event)}})}setEventEnd(bannerId){var self=this,lsParam=self.genLsParam(self.loggedIn),ls=self.lsGet("bmfe:"+self.language+"-"+lsParam,"json");if(Object.keys(ls).length&&"undefined"!==typeof ls[bannerId]){ls[bannerId].data.status_id=3;self.lsSet("bmfe:"+self.language+"-"+lsParam,JSON.stringify(ls))}}updateBannerCache(data){var self=this;if(self.bannerId){var ls1=self.lsGet("bmfe:events","json"),cacheName=self.genCacheName(data.data.type_id,self.bannerId,self.eid,self.language);if(Object.keys(ls1).length&&"undefined"!==typeof ls1[cacheName]||dayjs().isAfter(dayjs(data.data.start_date).add(2,"hour"))){self.setEventEnd(self.bannerId)}}}updateBannerCacheAll(eventId){var self=this;if(self.bannerId){try{var lsParam=self.genLsParam(self.loggedIn,eventId),ls=self.lsGet("bmfe:"+self.language+"-"+lsParam,"json");if(Object.keys(ls).length){if("undefined"!==typeof ls[self.bannerId]){ls[self.bannerId].data.status_id=self.arrEvent[eventId].statusId}if(ls.maindata.data.length){(async()=>{var newdata=[];await Promise.all([ls.maindata.data.forEach((item3,i3)=>{if(item3.banner_id==self.bannerId){ls.maindata.data[i3].status_id=self.arrEvent[eventId].statusId}if(3==ls.maindata.data[i3].status_id){var cacheName=self.genCacheName(self.tid,item3.banner_id,eventId,self.language),lsEvents=self.lsGet("bmfe:events","json");if("undefined"!==typeof lsEvents[cacheName]){delete lsEvents[cacheName]}self.lsSet("bmfe:events",JSON.stringify(lsEvents));delete ls[ls.maindata.data[i3].banner_id]}else{newdata.push(ls.maindata.data[i3])}})]).then(pData=>{ls.maindata.data=newdata;self.lsSet("bmfe:"+self.language+"-"+lsParam,JSON.stringify(ls))})})()}}}catch(err){}}}disableBanner(eventId,bannerId){var self=this;if("undefined"!==typeof eventId&&eventId&&"undefined"!==typeof self.ws_event[eventId]){self.ws_event[eventId]=null}if("undefined"!==typeof bannerId&&bannerId){var bId=bannerId.toString();if("11"==self.tid){if(self.eventId){bId+="-"+self.eventId}if(self.templateId){bId+="-"+self.templateId}}if(-1==self.slider_disable.indexOf(bId)){self.slider_disable.push(bId)}self.slider_disable_trigger=new Date().getTime();self.rmListener()}}disableRmR(eventId,bannerId,cacheName,reset=!0){var self=this;self.disableBanner(eventId,bannerId);if(cacheName){if("auto"==cacheName){self.rmCacheE()}else{self.rmCacheEByName(cacheName)}}if(reset){self.resetWidget()}}getBannerDataCache(data){var self=this;if(data.successful){var dt=data.data;if(!self.tid&&dt.type_id){self.tid=dt.type_id.toString()}if(!self.eid&&dt.event_id){self.eid=dt.event_id.toString()}if(dt.custom_css){self.$.custom_style_single.innerHTML="<style>"+dt.custom_css+"</style>"}else{self.$.custom_style_single.innerHTML=""}if(6==dt.banner_layout){self.$.backgroundBanner.classList.add("banner_layout_6");self.useSection="buttonNav"}else{if(["7","8","9","11","16","17"].includes(dt.type_id.toString())){self.useSection="couponBanner"}else{self.useSection=""}self.$.backgroundBanner.classList.remove("banner_layout_6")}if(self.haveEventCache&&dt.event_id){var{tid,eid,bannerId}=self.getWidget(),cacheName=self.genCacheName(tid,bannerId,eid,self.language);self.getEventCache(cacheName)}if(self.bannerId&&dt.event_id){var wstime=100;if("offerlibrary"==self.apiMethod&&"undefined"!==typeof self.WEB_API_CACHE.offer_library_ready||null!=self.ws_session||3==dt.type_id||2==dt.type_id&&("undefined"===typeof dt.tournament_event_id||0==dt.tournament_event_id.length)){wstime=20}var i=0,wait=setInterval(function(){if(("offerlibrary"==self.apiMethod&&"undefined"!==typeof self.WEB_API_CACHE.offer_library_ready||null!=self.ws_session||3==dt.type_id||2==dt.type_id&&("undefined"===typeof dt.tournament_event_id||0==dt.tournament_event_id.length))&&!self.cacheLoading){clearInterval(wait);self.getBannerDataSingleEvent(data)}else{i++;if(200<i){clearInterval(wait)}}},wstime)}else if(self.bannerId&&["4","6","7","8","9","11","12","16","17"].includes(dt.type_id.toString())){var check_first_banner=self.genCacheName(dt.type_id,self.bannerId,"",self.language);self.getEventCache(check_first_banner);var wstime=100;if(null!=self.ws_session){wstime=20}var i=0,wait=setInterval(function(){if(null!=self.ws_session&&!self.cacheLoading){clearInterval(wait);self.getBannerDataCacheAction(data)}else{i++;if(200<i){clearInterval(wait)}}},wstime)}else if(4==self.widget_position_id||3==dt.type_id||2==dt.type_id&&("undefined"===typeof dt.tournament_event_id||0==dt.tournament_event_id.length)){self.disableApiCallback=!0;self.getBannerDataCacheAction(data)}else{if(null==dt.event_id&&["4","6","7","8","9","11","12","16","17"].includes(dt.type_id.toString())){var wstime=100;if(null!=self.ws_session){wstime=20}var i=0;if(["4","7","8","9","11","12","16","17"].includes(dt.type_id.toString())){var check_first_banner=self.genCacheName(dt.type_id,dt.banner_id,"",self.language);self.getEventCache(check_first_banner)}var wait=setInterval(function(){if(null!=self.ws_session&&!self.cacheLoading){clearInterval(wait);if(dt.banner_layout){self.widget_layout=dt.banner_layout.toString()}self.setTypeBanner();self.showEventDetail();if(4==dt.type_id||17==dt.type_id){self.callRecommend(dt.banner_id,dt.coupon)}else if(6==dt.type_id){self.callPopularEvents(dt.sport_id,dt.location_id,1,3)}else if(7==dt.type_id||9==dt.type_id||16==dt.type_id){self.callCouponEvents(data)}else if(8==dt.type_id){let cp=6;if(dt.coupon&&dt.coupon.couponNumber){cp=dt.coupon.couponNumber}self.callPopularEvents(dt.sport_id,dt.location_id,cp,3)}else if(11==dt.type_id){self.callCouponPre(data)}else if(12==dt.type_id){self.callTournamentOutright(data)}}else{i++;if(200<i){clearInterval(wait);self.checkSliderChange()}}},wstime)}else{self.getBannerDataSingleEvent(data)}}self.translateText()}}handleLink(e){var self=this,{bDt}=self.getWidget(),eventId="",targetLink=e.target.getAttribute("data-link"),target=e.target,link=self.root_auto_link?JSON.parse(JSON.stringify(self.root_auto_link)):{};if(null==targetLink){targetLink=e.target.parentNode.getAttribute("data-link");target=e.target.parentNode}if("link"==targetLink){eventId=target.getAttribute("data-event");if(link&&link.link){var param="/${sportId}/${shortSportName}/${shortVenueName}/${shortParentName}/${shortName}/${id}/";link.link=("/"==link.link.substr(-1)?link.link.slice(0,-1):link.link)+param}}else if(bDt.event_id){eventId=bDt.event_id}else if("link_tournament_outright"==targetLink&&12==bDt.type_id){eventId=bDt.tournament_id}if(eventId&&targetLink&&link&&link[targetLink]){var match=null;if(self.ws_event[eventId]){match=self.ws_event[eventId]}else if(self.arrEvent[eventId]){match=self.arrEvent[eventId]}if(match&&match.sportId){var category=null;if(link.sport_category_ids){category=link.sport_category_ids.toString().replaceAll(" ","").split(",");if(category&&category.includes(match.sportId)){if(link.link_sport_category){link.link_sport=link.link_sport_category}if(link.link_location_category){link.link_location=link.link_location_category}if(link.link_tournament_category){link.link_tournament=link.link_tournament_category}if(link.link_tournament_category_outright){link.link_tournament_outright=link.link_tournament_category_outright}}}link=self.genLink(link[targetLink],match);if(-1==link.indexOf("${")){try{var target_link="_top";if("undefined"!==typeof self.root_auto_link.target_link){target_link=self.root_auto_link.target_link}if("true"==self.postmessage){window.postMessage({type:"BM:clickLink",payload:link},"*")}else{window.open(link,target_link)}}catch(err){}}}}}handleCouponAddToBetslip(){var self=this;if(self.offerCheckedArray.length){(async()=>{var includeAll=!0,disable=[],remove=[],offerEvent=[],activeEvent={};if(self.activeBettingOffers){remove=[...self.activeBettingOffers];self.activeBettingOffers.forEach(item=>{if(self.WEB_API_CACHE&&self.WEB_API_CACHE.bettingOffer&&self.WEB_API_CACHE.bettingOffer[item]){var eventId=self.WEB_API_CACHE.bettingOffer[item];if("undefined"==typeof activeEvent[eventId]){activeEvent[eventId]=[]}activeEvent[eventId].push(item)}})}await Promise.all([self.offerCheckedArray.forEach((item,i)=>{if(self.WEB_API_CACHE&&self.WEB_API_CACHE.bettingOffer&&self.WEB_API_CACHE.bettingOffer[item.bettingOfferId]){var eventId=self.WEB_API_CACHE.bettingOffer[item.bettingOfferId];if(-1==offerEvent.indexOf(eventId)){offerEvent.push(eventId)}}if(self.activeBettingOffers&&self.activeBettingOffers.includes(item.bettingOfferId)){disable.push(item.bettingOfferId);var index=remove.indexOf(item.bettingOfferId);if(-1!=index){remove.splice(index,1)}}else{includeAll=!1}})]).then(pData=>{var addMulti=!1,{wDt,bDt}=self.getWidget(),content_lang=self.bannerTranslate(bDt.banner_translate),title=content_lang?content_lang.title:"";if(self.slider_setting&&self.slider_setting.disable_remove_betslip&&1==offerEvent.length&&self.activeBettingOffers&&self.activeBettingOffers.length){var eventId=offerEvent[0];if(activeEvent[eventId]&&activeEvent[eventId].length){remove=[];activeEvent[eventId].forEach((item,i)=>{if(!disable.includes(item)){remove.push(item)}});includeAll=!1}else if("undefined"==typeof activeEvent[eventId]&&!disable.length){addMulti=!0}}if(remove&&remove.length&&!includeAll&&!addMulti){remove.forEach((item,i)=>{var rmEvent=new CustomEvent("onOddsClick",{detail:{eventId:"1",bettingOfferId:item,odd:1,title:title,typeId:bDt.type_id}});window.dispatchEvent(rmEvent,{bubbles:!0,cancelable:!0})})}self.offerCheckedArray.forEach((item,i)=>{let push=!0;if(disable.includes(item.bettingOfferId)){push=!1}if(push||includeAll){var event=new CustomEvent("onOddsClick",{detail:{eventId:item.eventId,bettingOfferId:item.bettingOfferId,odd:item.odd,title:title,typeId:bDt.type_id}});window.dispatchEvent(event,{bubbles:!0,cancelable:!0})}});self.recordClick(wDt.banner_id,self.positionTag,self.pageTag,"","","","","");self.set("offerActive",self.offerEquals());if("mobile"==self.nowScreen&&self.widget_position_id&&["1","2"].includes(self.widget_position_id.toString())&&self.slider_setting.close_bottom_mobile){self.closePanel("0")}})})()}}handleCouponCheckboxChange(){var self=this;if(9!=self.tid){var checkboxes=self.shadowRoot.querySelectorAll(".cpCheckbox"),oddsChkArr=[],oddsList=[],oldOddsList=[];self.offerCheckedArray=[];self.offerActive="";for(var i=0;i<checkboxes.length;i++){if(checkboxes[i].checked){self.shadowRoot.querySelector(".cpItem-item:nth-child("+(i+1)+")").classList.add("checked");var odds=parseFloat(checkboxes[i].getAttribute("data-odds"));oddsList.push(odds);var offer=checkboxes[i].value;if(16==self.tid){var item=self.offerList.find(item=>item.ODDBOOST.id==offer);if(item){oldOddsList.push(item.odds);item.ODDBOOST.odds=odds;oddsChkArr.push({eventId:item.MATCH.id,bettingOfferId:offer,odd:item.ODDBOOST.odds})}}else{var item=self.offerList.find(item=>item.id==offer);if(item){item.odds=odds;oddsChkArr.push({eventId:item.MATCH.id,bettingOfferId:offer,odd:item.odds})}}}else{self.shadowRoot.querySelector(".cpItem-item:nth-child("+(i+1)+")").classList.remove("checked")}}var totalOdds=0;if(oddsList.length){totalOdds=oddsList.reduce(function(a,b){return a*b})}var totalOldOdds=0;if(16==self.tid&&oldOddsList.length){totalOldOdds=oldOddsList.reduce(function(a,b){return a*b})}self.set("offerCheckedArray",oddsChkArr);self.set("offerActive",self.offerEquals());self.set("oddsCheckedArrayCount",totalOdds);self.set("oddsCheckedArrayCountOld",totalOldOdds);var cacheName=self.genCacheName(self.tid,self.bannerId,"",self.language),eCache=self.getEventLs(cacheName);if(eCache&&eCache.action_outcome){eCache.action_outcome=JSON.stringify(self.offerList);self.setEventLs(cacheName,"action_outcome",eCache)}}}callTournamentOutright(data){var self=this,dt=data&&data.data?data.data:{},bannerId=dt.banner_id,tournamentId=dt.tournament_id,betTypeId=dt.betting_event&&dt.betting_event.bettingTypeIds?dt.betting_event.bettingTypeIds[0]:null,eventPartId=dt.betting_event&&dt.betting_event.eventPartIds?dt.betting_event.eventPartIds[0]:null;if(tournamentId&&betTypeId&&eventPartId){var topic="/sports/"+self.operatorId+"/"+self.language+"/"+tournamentId+"/tournament-odds/"+betTypeId+"/"+eventPartId,isClone=self.parentNode.classList.contains("splide__slide--clone")&&self.fromInclude;if(isClone){if("undefined"!==typeof self.WEB_API_CACHE[topic]&&"undefined"!==typeof self.WEB_API_CACHE[topic].records){self.outrightRes(dt,{kwargs:self.WEB_API_CACHE[topic]})}else{if("undefined"!==typeof self.dumpTournamentOutrightListener){self.removeEventListener("topicListen:initialDump",self.dumpTournamentOutrightListener)}self.dumpTournamentOutrightListener=self.dumpTournamentOutright.bind(self,dt,topic);self.addEventListener("topicListen:initialDump",self.dumpTournamentOutrightListener)}if("undefined"!==typeof self.regTournamentOutrightListener){self.removeEventListener("topicListen:register",self.regTournamentOutrightListener)}self.regTournamentOutrightListener=self.regTournamentOutright.bind(self,topic);self.addEventListener("topicListen:register",self.regTournamentOutrightListener)}else{self.ws_session.register(topic,function(args,kwargs,details){self.wsChange(kwargs);self.customEventTopic("topic:register",topic,kwargs)}).then(function(regId){self.subscribeTournamentOutright=regId;self.ws_session.call("/sports#initialDump",[],{topic:topic}).then(function(res){self.outrightRes(dt,res);self.customEventTopic("topic:initialDump",topic,res.kwargs)})})}}else{self.disableBanner("",bannerId);if(self.widget_position_id&&["1","2","3"].includes(self.widget_position_id.toString())){self.resetWidget();self.startLoad()}}}regTournamentOutright(topic,dataE){var self=this;if(dataE.detail&&dataE.detail.topic==topic){self.wsChange(dataE.detail.kwargs)}}dumpTournamentOutright(dt,topic,dataE){var self=this;if(dataE.detail&&dataE.detail.topic==topic){self.outrightRes(dt,{kwargs:dataE.detail.kwargs})}}outrightRes(dt,res){var self=this,bannerId=dt.banner_id;if(res&&res.kwargs&&res.kwargs.records&&res.kwargs.records.length){var market_id=dt.markets?dt.markets[0]:"";(async()=>{self.resetListPopular();await Promise.all([res.kwargs.records.forEach((item,i)=>{self.genListPopular(item)})]).then(pData1=>{(async()=>{await Promise.all([self.listPopular.match.forEach((item2,i2)=>{self.listPopular.markets[item2.id].forEach((item3,i3)=>{var selections=self.listPopular.market[item3.id].selections;if(selections.length){if(dt.coupon&&dt.coupon.couponOddType&&"highest"===dt.coupon.couponOddType){selections=selections.filter(item=>item.available&&("1"==item.statusId||"2"==item.statusId)).sort((a,b)=>b.price-a.price)}else{selections=selections.filter(item=>item.available&&("1"==item.statusId||"2"==item.statusId)).sort((a,b)=>a.price-b.price)}self.listPopular.markets[item2.id][i3].selections=selections}})})]).then(pData1=>{var tournament=self.listPopular.event[dt.tournament_id],market=self.listPopular.markets[dt.tournament_id].filter(function(item3,i3){return item3.id==market_id})[0],cacheName=self.genCacheName(dt.type_id,bannerId,"",self.language);if(market&&market.selections&&market.selections.length){self.onResize();self.set("text.status_id",tournament.statusId);self.set("text.sportId",tournament.sportId);self.set("text.sportName",tournament.sportName);self.set("text.tournamentId",tournament.id);if(tournament.shortTranslatedName){self.set("text.tournamentName",tournament.shortTranslatedName)}else{self.set("text.tournamentName",tournament.translatedName)}self.set("text.countryId",tournament.venueId);self.set("text.countryName",tournament.venueName);self.set("text.time",self.getDateFormat(tournament.endTime,!0));self.set("text.marketid",market.id);self.set("text.marketname",market.name);self.set("text.marketShortId",market.bettingTypeId+"_"+market.eventPartId);var milliseconds=new Date().getTime();self.firstRender(milliseconds,[],"",market);self.hideSkeleton();self.removeDemo();self.$.slideSource.classList.add("fadebanner")}else{self.disableRmR("",bannerId,cacheName);if(self.widget_position_id&&["1","2","3"].includes(self.widget_position_id.toString())){self.startLoad()}}})})()})})()}else{var cacheName=self.genCacheName(dt.type_id,bannerId,"",self.language);self.disableRmR("",bannerId,cacheName);if(self.widget_position_id&&["1","2","3"].includes(self.widget_position_id.toString())){self.startLoad()}}}callCouponEvents(data){var self=this,dt=data&&data.data?data.data:{},bannerId=dt.banner_id;if(dt.coupon&&dt.coupon.length){var list_offer=dt.coupon.map(item=>item.outcome.id);if(16==dt.type_id){dt.coupon.forEach((item,i)=>{if(item.outcomeboosts){list_offer.push(item.outcomeboosts.id)}})}var offerListStr=list_offer.join(",");if(offerListStr){var topic="/sports/"+self.operatorId+"/"+self.language+"/bettingOffers/"+offerListStr;if(1==list_offer.length){topic="/sports/"+self.operatorId+"/"+self.language+"/bettingOffer/"+offerListStr}var isClone=self.parentNode.classList.contains("splide__slide--clone")&&self.fromInclude;if(isClone){if("undefined"!==typeof self.WEB_API_CACHE[topic]&&"undefined"!==typeof self.WEB_API_CACHE[topic].records){self.couponRes(list_offer,dt,{kwargs:self.WEB_API_CACHE[topic]})}else{if("undefined"!==typeof self.dumpCouponListener){self.removeEventListener("topicListen:initialDump",self.dumpCouponListener)}self.dumpCouponListener=self.dumpCoupon.bind(self,topic,list_offer,dt);self.addEventListener("topicListen:initialDump",self.dumpCouponListener)}if("undefined"!==typeof self.regCouponListener){self.removeEventListener("topicListen:register",self.regCouponListener)}self.regCouponListener=self.regCoupon.bind(self,topic);self.addEventListener("topicListen:register",self.regCouponListener)}else{if("undefined"!==typeof self.subscribeCoupon.id&&self.subscribeCoupon.active){try{self.ws_session.unregister(self.subscribeCoupon)}catch(err){self.subscribeCoupon={}}}self.ws_session.register(topic,function(args,kwargs,details){self.wsChange(kwargs);self.customEventTopic("topic:register",topic,kwargs)}).then(function(regId){self.subscribeCoupon=regId;self.ws_session.call("/sports#initialDump",[],{topic:topic}).then(function(res){self.couponRes(list_offer,dt,res);self.customEventTopic("topic:initialDump",topic,res.kwargs)})})}}else{self.disableBanner("",bannerId);if(self.widget_position_id&&["1","2","3"].includes(self.widget_position_id.toString())){self.resetWidget();self.startLoad()}}}else{self.disableBanner("",bannerId);if(self.widget_position_id&&["1","2","3"].includes(self.widget_position_id.toString())){self.resetWidget();self.startLoad()}}}callCouponPre(data){var self=this,dt=data&&data.data?data.data:{},bannerId=dt.banner_id;if(dt.coupon&&self.isEvent(dt.coupon.event_id)&&dt.coupon.templates&&dt.coupon.templates.length){let ids=[];dt.coupon.templates.map(function(item){var id=+item.templateId;if(!isNaN(id)&&-1==ids.indexOf(id)){ids.push(id)}return item});var topic="/sports#predefinedBetbuilder",tmpTopic=topic+"/"+dt.coupon.event_id+"/"+ids.join("/"),isClone=self.parentNode.classList.contains("splide__slide--clone")&&self.fromInclude,tid=self.parentNode.getAttribute("li-type-id"),templateIndex=self.parentNode.getAttribute("li-template-index")||"0";if(isClone||"11"==tid&&"0"!=templateIndex){if("undefined"!==typeof self.WEB_API_CACHE[tmpTopic]&&"undefined"!==typeof self.WEB_API_CACHE[tmpTopic].records){self.couponPreRes(dt,{kwargs:self.WEB_API_CACHE[tmpTopic]})}else{if("undefined"!==typeof self.dumpCouponPreListener){self.removeEventListener("topicListen:initialDump",self.dumpCouponPreListener)}self.dumpCouponPreListener=self.dumpCouponPre.bind(self,tmpTopic,dt);self.addEventListener("topicListen:initialDump",self.dumpCouponPreListener)}}else{self.ws_session.call(topic,[],{lang:self.language,matchId:dt.coupon.event_id,betbuilderTemplateIds:ids}).then(function(res){if(res){self.couponPreRes(dt,res);self.customEventTopic("topic:initialDump",tmpTopic,res.kwargs)}})}}else{self.disableBanner("",bannerId);if(self.widget_position_id&&["1","2","3"].includes(self.widget_position_id.toString())){self.resetWidget();self.startLoad()}}}regCoupon(topic,dataE){var self=this;if(dataE.detail&&dataE.detail.topic==topic){self.wsChange(dataE.detail.kwargs)}}dumpCoupon(topic,list_offer,dt,dataE){var self=this;if(dataE.detail&&dataE.detail.topic==topic){self.couponRes(list_offer,dt,{kwargs:dataE.detail.kwargs})}}couponRes(list_offer,dt,res){var self=this,bannerId=dt.banner_id,cacheName=self.genCacheName(self.tid,bannerId,"",self.language);if(res&&res.kwargs&&res.kwargs.records&&res.kwargs.records.length){var offerListBoost={};if(16==dt.type_id&&dt.coupon){dt.coupon.forEach((item,i)=>{offerListBoost[item.outcome.id]=item.outcomeboosts})}self.set("offerList",[]);self.set("offerListIndex",[]);(async()=>{var MATCH=[],MARKET=[],MARKET_OUTCOME_RELATION=[],OUTCOME=[],BETTING_OFFER=[],countAvailable=0,countDisable=0,totalOdds=0,totalOldOdds=0,offerList=[],offerListIndex=[],oddsCA=[];await Promise.all([res.kwargs.records.forEach((item,i)=>{if("MATCH"==item._type){self.arrEvent[item.id]=item;MATCH[item.id]=item;if(9==dt.type_id&&dt.coupon&&dt.coupon.length&&dt.coupon[0].event&&item.id==dt.coupon[0].event.id){self.ga4Set(dt.type_id,item)}}else if("MARKET"==item._type){MARKET[item.id]=item}else if("OUTCOME"==item._type){OUTCOME[item.id]=item}else if("MARKET_OUTCOME_RELATION"==item._type){MARKET_OUTCOME_RELATION[item.outcomeId]=item}else if("BETTING_OFFER"==item._type){BETTING_OFFER[item.id]=item}}),list_offer.forEach((item,c_i)=>{try{var statusId=MATCH[OUTCOME[BETTING_OFFER[item].outcomeId].eventId].statusId;if(BETTING_OFFER[item]&&("1"==statusId||"2"==statusId)&&(16==dt.type_id&&offerListBoost[item]||16!=dt.type_id)){if(16==dt.type_id){var item2=offerListBoost[item].id;if(BETTING_OFFER[item2]){offerList.push({...BETTING_OFFER[item],OUTCOME:OUTCOME[BETTING_OFFER[item].outcomeId],MARKET:MARKET[MARKET_OUTCOME_RELATION[BETTING_OFFER[item].outcomeId].marketId],MATCH:MATCH[OUTCOME[BETTING_OFFER[item].outcomeId].eventId],ODDBOOST:{...BETTING_OFFER[item2],OUTCOME:OUTCOME[BETTING_OFFER[item2].outcomeId],MARKET:MARKET[MARKET_OUTCOME_RELATION[BETTING_OFFER[item2].outcomeId].marketId]}});if(BETTING_OFFER[item2].isAvailable){countAvailable++;totalOldOdds=(0==totalOldOdds?1:totalOldOdds)*BETTING_OFFER[item].odds;totalOdds=(0==totalOdds?1:totalOdds)*BETTING_OFFER[item2].odds;oddsCA.push({eventId:OUTCOME[BETTING_OFFER[item2].outcomeId].eventId,bettingOfferId:item2,odd:BETTING_OFFER[item2].odds});offerListIndex.push(item2)}else{countDisable++}}}else{offerList.push({...BETTING_OFFER[item],OUTCOME:OUTCOME[BETTING_OFFER[item].outcomeId],MARKET:MARKET[MARKET_OUTCOME_RELATION[BETTING_OFFER[item].outcomeId].marketId],MATCH:MATCH[OUTCOME[BETTING_OFFER[item].outcomeId].eventId]});if(BETTING_OFFER[item].isAvailable){countAvailable++;totalOdds=(0==totalOdds?1:totalOdds)*BETTING_OFFER[item].odds;oddsCA.push({eventId:OUTCOME[BETTING_OFFER[item].outcomeId].eventId,bettingOfferId:item,odd:BETTING_OFFER[item].odds});offerListIndex.push(item)}else{countDisable++}}}}catch(err){}})]).then(cThen=>{if(!offerList.length||1>=countAvailable){self.disableRmR("",bannerId,cacheName);if(self.widget_position_id&&["1","2","3"].includes(self.widget_position_id.toString())){self.startLoad()}}else{var{wDt,bDt}=self.getWidget();self.onResize();self.setBettingOffer(offerList);self.set("offerList",offerList);self.set("offerListIndex",offerListIndex);self.set("offerCheckedArray",oddsCA);self.set("offerActive",self.offerEquals());if("9"==self.tid){self.set("oddsCheckedArrayCount",0);var offerListStr=list_offer.join(","),topicBBD="/sports/"+self.operatorId+"/"+self.language+"/combined-odds/"+offerListStr,isClone=self.parentNode.classList.contains("splide__slide--clone")&&self.fromInclude;if(isClone){if("undefined"!==typeof self.WEB_API_CACHE[topicBBD]&&"undefined"!==typeof self.WEB_API_CACHE[topicBBD].records){self.couponBBDRes(cacheName,{kwargs:self.WEB_API_CACHE[topicBBD]})}else{if("undefined"!==typeof self.dumpCouponBBDListener){self.removeEventListener("topicListen:initialDump",self.dumpCouponBBDListener)}self.dumpCouponBBDListener=self.dumpCouponBBD.bind(self,topicBBD,cacheName);self.addEventListener("topicListen:initialDump",self.dumpCouponBBDListener)}if("undefined"!==typeof self.regCouponBBDListener){self.removeEventListener("topicListen:register",self.regCouponBBDListener)}self.regCouponBBDListener=self.regCouponBBD.bind(self,topicBBD,cacheName);self.addEventListener("topicListen:register",self.regCouponBBDListener)}else{if("undefined"!==typeof self.subscribeCouponBBD.id&&self.subscribeCouponBBD.active){try{self.ws_session.unregister(self.subscribeCouponBBD)}catch(err){self.subscribeCouponBBD={}}}self.ws_session.register(topicBBD,function(args,kwargs,details){self.wsBBDChange(cacheName,kwargs);self.customEventTopic("topic:register",topicBBD,kwargs)}).then(function(regId){self.subscribeCouponBBD=regId;self.ws_session.call("/sports#initialDump",[],{topic:topicBBD}).then(function(res){self.couponBBDRes(cacheName,res);self.customEventTopic("topic:initialDump",topicBBD,res.kwargs)})})}}else{self.set("oddsCheckedArrayCount",totalOdds);self.set("oddsCheckedArrayCountOld",totalOldOdds)}var cacheOutcome=JSON.stringify(self.offerList);self.setEventLs(cacheName,"action_outcome",{widget_layout:self.widget_layout,type_id:dt.type_id,image_banner_set:bDt.banner_image,banner_config:bDt.banner_config,background_image_transperent:bDt.background_image_transperent,background_color:bDt.background_color,content:self.text.content,title:self.text.title,devices:wDt.devices,action_outcome:cacheOutcome});if(""==self.bannerId&&0!=self.widget_position_id){var event_id="",event_match_name="";if("9"==wDt.type_id){event_id=self.text.event_id;event_match_name=self.text.event_name}var sendGA=self._sendGA(wDt.banner_id);if(sendGA){var dataPopupGA4={event:"Views",operator_id:self.operatorId,banner_id:wDt.banner_id,banner_language:self.language,banner_page:self.pageTag,banner_position:self.positionTag,banner_type:wDt.type_id,em_id:"true"==self.loggedIn&&self.emUserId&&"undefined"!=self.emUserId?btoa(self.emUserId):"",sport_id:self.text.sportId,sport_name:self.text.sportName,country_id:self.text.countryId,country_name:self.text.countryName,tournament_id:self.text.tournamentId,tournament_name:self.text.tournamentName,market_id:"",market_name:"",market_short_id:"",event_id,event_match_name,outcome_id:"",outcome_key:"",outcome_name:""};self.ga4Push(dataPopupGA4)}}self.hideSkeleton();self.$.slideSource.classList.add("fadebanner");self.sliderLoaded()}})})()}else{self.disableRmR("",bannerId,cacheName);if(self.widget_position_id&&["1","2","3"].includes(self.widget_position_id.toString())){self.startLoad()}}}regCouponBBD(topic,cacheName,dataE){var self=this;if(dataE.detail&&dataE.detail.topic==topic){self.wsBBDChange(cacheName,dataE.detail.kwargs)}}dumpCouponBBD(topic,cacheName,dataE){var self=this;if(dataE.detail&&dataE.detail.topic==topic){self.couponBBDRes(cacheName,{kwargs:dataE.detail.kwargs})}}wsBBDChange(cacheName,kwargs){var self=this;if("UPDATE"==kwargs.messageType&&kwargs.records.length){var bbd=kwargs.records[0];if("UPDATE"==bbd.changeType&&bbd.changedProperties){bbd=bbd.changedProperties;if(bbd.combinedOddsAvailable&&"YES"==bbd.oddsCombinable){if(bbd.combinedOdds){self.set("oddsCheckedArrayCount",bbd.combinedOdds)}}else{self.disableRmR("",self.bannerId,cacheName);if(self.widget_position_id&&["1","2","3"].includes(self.widget_position_id.toString())){self.startLoad()}}}}}couponBBDRes(cacheName,res){var self=this;if(res&&res.kwargs&&res.kwargs.records&&res.kwargs.records.length){var bbd=res.kwargs.records[0];if(bbd.combinedOddsAvailable&&"YES"==bbd.oddsCombinable){self.set("oddsCheckedArrayCount",bbd.combinedOdds)}else{self.disableRmR("",self.bannerId,cacheName);if(self.widget_position_id&&["1","2","3"].includes(self.widget_position_id.toString())){self.startLoad()}}}else{self.disableRmR("",self.bannerId,cacheName);if(self.widget_position_id&&["1","2","3"].includes(self.widget_position_id.toString())){self.startLoad()}}}getBannerDataCacheAction(data,wsData=null){var self=this;if(data.successful){var dt=data.data;if("null"==dt.event_id&&2==dt.type_id){dt.event_id=0}if(dt.banner_layout){if(dt.banner_layout!=self.widget_layout){self.customStyleSetLayoutLS(dt.banner_layout)}self.widget_layout=dt.banner_layout.toString()}if(self.bannerId&&(0!=dt.event_id||6==dt.type_id)){self.$.slideSource.classList.add("d_desktop");self.$.slideSource.classList.add("d_tablet");self.$.slideSource.classList.add("d_mobile");if("undefined"===typeof self.widget.events_list||0==self.widget.events_list.length){self.widget={events_list:[]};self.widget.events_list[0]={web_data:dt,banner_data:[]}}self.widget.events_list[0].banner_data[0]=dt;if(null==dt.event_id){if(4==dt.type_id||17==dt.type_id){self.callRecommend(dt.banner_id,dt.coupon)}else if(6==dt.type_id){self.callPopularEvents(dt.sport_id,dt.location_id,1,3)}else if(7==dt.type_id||9==dt.type_id||16==dt.type_id){self.callCouponEvents(data)}else if(8==dt.type_id){let cp=6;if(dt.coupon&&dt.coupon.couponNumber){cp=dt.coupon.couponNumber}self.callPopularEvents(dt.sport_id,dt.location_id,cp,3)}else if(11==dt.type_id){self.callCouponPre(data)}else if(12==dt.type_id){self.callTournamentOutright(data)}}else if(dt.event_id){self.showSkeleton();if(wsData){self.getSportData(dt.event_id,wsData)}else{self.getSportData(dt.event_id)}}}else{if("undefined"===typeof self.widget.events_list[0]){if(2==dt.type_id&&0==dt.interval_status){dt.type_id=3}self.widget={events_list:[]};self.widget.events_list[0]={web_data:dt,banner_data:[dt]}}else{self.widget.events_list[0].banner_data[0]=dt}if(wsData){self.getSportData(dt.event_id,wsData)}else if("offerlibrary"==self.apiMethod){self.getSportData(dt.event_id)}}var{wDt,bDt}=self.getWidget();if(3==dt.type_id){self.renderBanner();if(1==bDt.display_time_status){if(0<bDt.display_time){self.widgetTimeout=bDt.display_time;self.checkTimeout(self.bannerId)}}var sendGA=self._sendGA(wDt.banner_id);if(sendGA){var dataPopupPromoGA4={event:"Views",operator_id:self.operatorId,banner_id:wDt.banner_id,banner_language:self.language,banner_page:self.pageTag,banner_position:self.positionTag,banner_type:wDt.type_id,em_id:"true"==self.loggedIn&&self.emUserId&&"undefined"!=self.emUserId?btoa(self.emUserId):"",sport_id:"",sport_name:"",country_id:"",country_name:"",tournament_id:"",tournament_name:"",market_id:"",market_name:"",market_short_id:"",event_id:"",event_match_name:"",outcome_id:"",outcome_key:"",outcome_name:""};self.ga4Push(dataPopupPromoGA4)}}else{if(3==bDt.status_id){}else{if("4"==wDt.type_id||"17"==wDt.type_id){self.renderBanner()}else{self.renderBanner()}}}}else{clearInterval(self.waitDuration);self.set("text.minute","");self.set("text.timecount","");self.hideSkeleton();if(self.demo&&self.isSliderBanner()){self.$.slideSource.classList.remove("fadebanner");self.setDemo(self.positionTag,self.pageTag)}else{self.$.slideSource.classList.remove("fadebanner")}if(self.bannerId){return!1}else{self.startLoad()}}}getBannerDataCheck(apiParam,bannerId){var self=this,lsParam=self.genLsParam(self.loggedIn),ls=self.lsGet("bmfe:"+self.language+"-"+lsParam,"json");if("undefined"!==typeof ls[bannerId]&&"undefined"!==typeof ls[bannerId].successful){if(ls[bannerId].data&&self.isEvent(ls[bannerId].data.event_id)&&3==ls[bannerId].data.status_id){if(self.WEB_API_CACHE[apiParam].cachedata&&self.WEB_API_CACHE[apiParam].cachedata.data){self.WEB_API_CACHE[apiParam].cachedata.data.status_id=3}}else{self.WEB_API_CACHE[apiParam].cachedata=ls[bannerId];self.getBannerDataCache(ls[bannerId]);return!1}}self.lsDelete("bmfe:"+self.language+"-"+lsParam);self.resetWidget();self.removeSession();self.startLoad()}getBannerData(){var self=this,{bannerId}=self.getWidget();if(!bannerId){setTimeout(function(){self.resetWidget();self.startLoad()},5e3);return!1}var lsParam=self.genLsParam(self.loggedIn),apiParam="/"+self.language+"/banners/widget/"+self.operatorId+"/"+bannerId+"/"+self.positionTag+"/"+self.eventId.toString(),nowTime=new Date,nextLoad=new Date(nowTime.getTime()+5e3),load=!1,banner_change=!1;if(""==self.bannerId){var banner_hash=self.position_hash}else{var banner_hash=""}var ls=self.lsGet("bmfe:"+self.language+"-"+lsParam,"json");if("undefined"===typeof ls.hash||ls.hash!=banner_hash){banner_change=!0}if(!banner_change&&"undefined"!==typeof ls[bannerId]&&ls[bannerId].successful&&3==ls[bannerId].data.type_id){if(self.cacheUndefined(apiParam,2)){self.WEB_API_CACHE[apiParam]={min_next_load:nextLoad,cachedata:{}}}self.WEB_API_CACHE[apiParam].min_next_load=nextLoad;self.WEB_API_CACHE[apiParam].cachedata=ls[bannerId];self.WEB_API_CACHE[apiParam].cachedata.successful=1;self.getBannerDataCache(self.WEB_API_CACHE[apiParam].cachedata)}else{if(self.cacheUndefined(apiParam,2)){self.WEB_API_CACHE[apiParam]={min_next_load:nextLoad,cachedata:{}};load=!0;self.getBannerDataCheck(apiParam,bannerId)}if(nowTime>self.WEB_API_CACHE[apiParam].min_next_load){self.WEB_API_CACHE[apiParam].min_next_load=nextLoad;self.getBannerDataCheck(apiParam,bannerId)}else if(!load&&"undefined"!==typeof self.WEB_API_CACHE[apiParam].cachedata.successful){self.getBannerDataCache(self.WEB_API_CACHE[apiParam].cachedata)}else{if(!load){var i=0,wait=setInterval(function(){i++;if(self.cacheUndefined(apiParam,3)){if(200<i){clearInterval(wait)}}else{self.getBannerDataCache(self.WEB_API_CACHE[apiParam].cachedata);clearInterval(wait)}},300)}}}}cacheUndefined(param,lv){var self=this;if(2<=lv&&"undefined"===typeof self.WEB_API_CACHE[param]){return!0}else if(2<=lv&&self.WEB_API_CACHE[param]&&"undefined"===typeof self.WEB_API_CACHE[param].cachedata){return!0}else if(3<=lv&&self.WEB_API_CACHE[param]&&self.WEB_API_CACHE[param].cachedata&&"undefined"===typeof self.WEB_API_CACHE[param].cachedata.successful){return!0}else{return!1}}showFirstLoading(){var self=this,timeOut=0;if("undefined"===typeof self.widget_position_id){timeOut=30}var i=0,wait=setInterval(function(){i++;if("undefined"===typeof self.widget_position_id){if(500<i){clearInterval(wait)}}else{self.loadedSkelOrDemoPage=!0;if(self.isSliderBanner()){if(self.demo){self.setDemo(self.positionTag,self.pageTag)}else{self.showSkeleton()}}clearInterval(wait)}},timeOut)}sportbookInit(){var self=this;self.removeStream(!1);self.sportbook={scorll:"",stream:{payload:{streamUrl:""},rect:{x:0,y:0,top:0,bottom:0,left:0,right:0,width:0,height:0},position:!1},allowShow:!0}}readyStream(){var self=this;self.sportbookInit();if("streaming"==self.bannerType&&self.sportbookId){if(!self.positionTag){self.positionTag="streaming"}self.sportbookIframe=window.document.getElementById(self.sportbookId);self.setTypeBanner();if(self.sportbookIframe){window.addEventListener("message",function(e){let data=e.data;if(data){let type=data.type,payload=data.payload;switch(type){case"OMFE:locationChanged":self.sportbookInit();break;case"OMFE:videoStreamingURL":if(payload&&payload.streamUrl){self.sportbook.stream.payload=payload}else{self.sportbookInit()}break;case"OMFE:videoStreamingPosition":if(payload&&payload.rect){self.sportbook.stream.position=!0;self.sportbook.stream.rect={x:payload.rect.x,y:payload.rect.y,top:payload.rect.top,bottom:payload.rect.bottom,left:payload.rect.left,right:payload.rect.right,width:payload.rect.width,height:payload.rect.height}}break;}}});window.addEventListener("scroll",function(){if(self.sportbook.stream.payload.streamUrl){if(self.sportbook.stream.position){if(window.scrollY>self.sportbook.stream.rect.height+self.sportbook.stream.rect.top){self.setStream()}else{self.removeStream(!1)}}else{self.sportbookIframe.contentWindow.postMessage({type:"OP:videoStreamingPosition"},"*")}}});window.addEventListener("resize",function(){if(self.sportbook.stream.payload.streamUrl){self.sportbookIframe.contentWindow.postMessage({type:"OP:videoStreamingPosition"},"*");if(self.sportbook.stream.position){if(window.scrollY>self.sportbook.stream.rect.height+self.sportbook.stream.rect.top){self.setStream()}else{self.removeStream(!1)}}}})}}else if("iframe"==self.bannerType){if(!self.positionTag){self.positionTag="iframe"}}}resetListPopular(){var self=this;self.listPopular={event:[],market:[],main_market:[],match:[],markets:{},marketId:[],query_markets:{},bettingTypeIds:{},eventPartIds:{},outcome:[],outcomeId:[],bettingOfferId:[]}}updateListPopular(type,id,data,event){var self=this;if("BETTING_OFFER"==type){if(self.listPopular&&"undefined"!==typeof self.listPopular.bettingOfferId[id]){var outcomeId=self.listPopular.bettingOfferId[id].outcomeId;if("undefined"!==typeof self.listPopular.outcome[outcomeId]){if("isAvailable"==event){self.listPopular.bettingOfferId[id].isAvailable=data?!0:!1;self.listPopular.outcome[outcomeId].available=data?!0:!1}else if("odds"==event){self.listPopular.bettingOfferId[id].odds=data;self.listPopular.outcome[outcomeId].price=data}else if("statusId"==event){self.listPopular.bettingOfferId[id].statusId=data;self.listPopular.outcome[outcomeId].statusId=data}}}}}genListPopular(item){var self=this;if(item&&"undefined"!==typeof item._type){if("MATCH"==item._type||"TOURNAMENT"==item._type&&"12"==self.tid){self.arrEvent[item.id]=item;self.listPopular.match.push(item);self.listPopular.event[item.id]=item;self.listPopular.markets[item.id]=[];self.listPopular.query_markets[item.id]=[];self.listPopular.bettingTypeIds[item.id]=[];self.listPopular.eventPartIds[item.id]=[]}else if("MARKET"==item._type){self.listPopular.markets[item.eventId].push({bettingTypeId:item.bettingTypeId,bettingTypeName:item.bettingTypeName,eventId:item.eventId,eventPartId:item.eventPartId,eventPartName:item.eventPartName,labelName:item.labelName?item.labelName:"",labelStyle:item.labelStyle?item.labelStyle:"",id:item.id,name:item.name,selections:[]});self.listPopular.marketId[item.id]=item;self.listPopular.query_markets[item.eventId].push(item.id);self.listPopular.bettingTypeIds[item.eventId].push(item.bettingTypeId);self.listPopular.eventPartIds[item.eventId].push(item.eventPartId)}else if("OUTCOME"==item._type){self.listPopular.outcomeId[item.id]=item;if("undefined"===typeof self.listPopular.outcome[item.id]){self.listPopular.outcome[item.id]={eventId:item.eventId,translationKey:item.translatedName,outcomeId:item.id,props:{},homeParticipantId:self.listPopular.event[item.eventId].homeParticipantId,awayParticipantId:self.listPopular.event[item.eventId].awayParticipantId};if("undefined"!==typeof item.headerNameKey){self.listPopular.outcome[item.id].role=item.headerNameKey}else if("12"==self.tid){self.listPopular.outcome[item.id].role=""}if("undefined"!==typeof item.paramFloat1){self.listPopular.outcome[item.id].props.param=item.paramFloat1}if("undefined"!==typeof item.paramParticipantId1){self.listPopular.outcome[item.id].props.participantId1=item.paramParticipantId1}if("undefined"!==typeof item.paramFloat1&&"undefined"!==typeof item.paramFloat2){self.listPopular.outcome[item.id].props.param1=item.paramFloat1;self.listPopular.outcome[item.id].props.param2=item.paramFloat2}}}else if("MARKET_OUTCOME_RELATION"==item._type){if("undefined"!==typeof self.listPopular.outcome[item.outcomeId]){if("undefined"===typeof self.listPopular.market[item.marketId]){self.listPopular.market[item.marketId]={id:item.marketId,selections:[]}}self.listPopular.market[item.marketId].selections.push(self.listPopular.outcome[item.outcomeId])}}else if("BETTING_OFFER"==item._type){self.listPopular.bettingOfferId[item.id]=item;if("undefined"!==typeof self.listPopular.outcome[item.outcomeId]){self.listPopular.outcome[item.outcomeId].isLive=item.isLive;self.listPopular.outcome[item.outcomeId].bettingTypeId=item.bettingTypeId;self.listPopular.outcome[item.outcomeId].bettingTypeName=item.bettingTypeName;self.listPopular.outcome[item.outcomeId].price=item.odds;self.listPopular.outcome[item.outcomeId].providerId=item.providerId;self.listPopular.outcome[item.outcomeId].available=item.isAvailable;self.listPopular.outcome[item.outcomeId].id=item.id;self.listPopular.outcome[item.outcomeId].statusId=item.statusId;self.listPopular.outcome[item.outcomeId].orderOutcome=self.outcomeOrder(self.listPopular.outcome[item.outcomeId].bettingTypeId,self.listPopular.outcome[item.outcomeId].role,self.listPopular.outcome[item.outcomeId].props,self.listPopular.outcome[item.outcomeId].homeParticipantId,self.listPopular.outcome[item.outcomeId].awayParticipantId,item.odds)}}else if("MAIN_MARKET"==item._type){self.listPopular.main_market.push(item)}}}genMatchOdds(eventId,bDt){var self=this,topic="/sports/"+self.operatorId+"/"+self.language+"/"+eventId+"/match-odds/market-group/Main_BannerMatrix";if(self.slider_setting&&self.slider_setting.extra_config&&self.slider_setting.extra_config.matchOdds){topic="/sports/"+self.operatorId+"/"+self.language+"/"+eventId+"/match-odds/market-group/"+self.slider_setting.extra_config.matchOdds}if(bDt){var betTypeEventParts=[];if(bDt.betting_event&&bDt.betting_event.betTypeEventParts&&bDt.betting_event.betTypeEventParts.length){betTypeEventParts=bDt.betting_event.betTypeEventParts}if(bDt.betting_event_live&&bDt.betting_event_live.betTypeEventParts&&bDt.betting_event_live.betTypeEventParts.length){bDt.betting_event_live.betTypeEventParts.forEach((item2,i2)=>{if(!betTypeEventParts.includes(item2)){betTypeEventParts.push(item2)}})}if(bDt.markets_incident){if(bDt.markets_incident.length){bDt.markets_incident.forEach((item2,i2)=>{if(item2.data){item2.data.forEach((item3,i3)=>{if(item3.betting_event&&item3.betting_event.betTypeEventParts&&item3.betting_event.betTypeEventParts.length){item3.betting_event.betTypeEventParts.forEach((item4,i4)=>{if(!betTypeEventParts.includes(item4)){betTypeEventParts.push(item4)}})}})}})}}if(betTypeEventParts.length){topic="/sports/"+self.operatorId+"/"+self.language+"/"+eventId+"/match-odds/"+betTypeEventParts.join(",").replaceAll("_","-")}}return topic}setTextEvent(type=""){var self=this,check=0;self.listPopular.match.forEach((item,i)=>{if(0==check&&"undefined"!==typeof self.listPopular.markets[item.id]&&self.listPopular.markets[item.id].length){self.set("text.countryId",item.venueId);self.set("text.countryName",item.venueName);self.set("text.event_id",item.id);self.set("text.event_name",item.name);self.set("text.time",self.getDateFormat(item.startTime));self.set("text.homeName",item.homeParticipantName);self.set("text.awayName",item.awayParticipantName);self.set("text.sportId",item.sportId);self.set("text.sportName",item.sportName);self.set("text.status_id",item.statusId);self.set("text.status",item.statusName);self.set("text.tournamentId",item.parentId);if("undefined"!==typeof item.shortParentName){self.set("text.tournamentName",item.shortParentName)}else if("undefined"!==typeof item.parentName){self.set("text.tournamentName",item.parentName)}check=1;if(0==self.listPopular.markets[item.id][0].selections.length){var i=0,wait=setInterval(function(){if("undefined"!==typeof self.listPopular.markets[item.id]&&"undefined"!==typeof self.listPopular.markets[item.id][0]&&self.listPopular.markets[item.id][0].selections.length){clearInterval(wait);if("popular"==type){self.getPopularSportDataAction(item.id,{successful:1,data:self.listPopular.markets[item.id],main_market:self.listPopular.main_market})}else{self.getSingleSportDataAction(item.id,{successful:1,data:self.listPopular.markets[item.id]})}}else{i++;if(100<i){clearInterval(wait);self.disableRmR("",self.bannerId,"");if(self.widget_position_id&&["1","2","3"].includes(self.widget_position_id.toString())){self.startLoad()}}}},100)}else{if("popular"==type){self.getPopularSportDataAction(item.id,{successful:1,data:self.listPopular.markets[item.id],main_market:self.listPopular.main_market})}else{self.getSingleSportDataAction(item.id,{successful:1,data:self.listPopular.markets[item.id]})}}}})}callPopularEvents(disciplineId,locationId,eventsNumber,marketsNumber){var self=this;if(self.disableApiCallback){return!0}var topic="/sports/"+self.operatorId+"/"+self.language+"/popular-matches-aggregator-main/"+disciplineId+"/"+locationId+"/"+eventsNumber+"/"+marketsNumber,isClone=self.parentNode.classList.contains("splide__slide--clone")&&self.fromInclude;if(isClone){if("undefined"!==typeof self.WEB_API_CACHE[topic]&&"undefined"!==typeof self.WEB_API_CACHE[topic].records){self.popularRes({kwargs:self.WEB_API_CACHE[topic]})}else{if("undefined"!==typeof self.dumpPopularListener){self.removeEventListener("topicListen:initialDump",self.dumpPopularListener)}self.dumpPopularListener=self.dumpPopular.bind(self,topic);self.addEventListener("topicListen:initialDump",self.dumpPopularListener)}if("undefined"!==typeof self.regPopularListener){self.removeEventListener("topicListen:register",self.regPopularListener)}self.regPopularListener=self.regPopular.bind(self,topic);self.addEventListener("topicListen:register",self.regPopularListener)}else{self.ws_session.register(topic,function(args,kwargs,details){self.wsChange(kwargs);self.customEventTopic("topic:register",topic,kwargs)}).then(function(regId){self.subscribePopular=regId;self.ws_session.call("/sports#initialDump",[],{topic:topic}).then(function(res){self.popularRes(res);self.customEventTopic("topic:initialDump",topic,res.kwargs)})})}}regPopular(topic,dataE){var self=this;if(dataE.detail&&dataE.detail.topic==topic){self.wsChange(dataE.detail.kwargs)}}dumpPopular(topic,dataE){var self=this;if(dataE.detail&&dataE.detail.topic==topic){self.popularRes({kwargs:dataE.detail.kwargs})}}popularRes(res){var self=this;if(res&&res.kwargs&&res.kwargs.records&&res.kwargs.records.length){self.resetListPopular();(async()=>{await Promise.all([res.kwargs.records.forEach((item,i)=>{self.genListPopular(item)})]).then(pData=>{(async()=>{var loaded=0;await Promise.all([self.listPopular.match.forEach((item2,i2)=>{self.listPopular.markets[item2.id].forEach((item3,i3)=>{var selections=self.listPopular.market[item3.id].selections;if(selections.length){selections=selections.sort((a,b)=>a.orderOutcome-b.orderOutcome);self.listPopular.markets[item2.id][i3].selections=selections;loaded++}})})]).then(pData1=>{var{wDt,bDt,bannerId}=self.getWidget();if("8"==self.tid){var cacheName=self.genCacheName(self.tid,bannerId,"",self.language);self.set("offerList",[]);self.set("offerListIndex",[]);var countAvailable=0,countDisable=0,totalOdds=0,offerList=[],offerListIndex=[],oddsCA=[];self.listPopular.match.forEach((item2,i2)=>{if(self.listPopular.markets[item2.id]){var found=[];if(self.listPopular.markets){if(self.listPopular.main_market[0]){found=self.listPopular.markets[item2.id].filter(function(item3,i3){return item3.bettingTypeId==self.listPopular.main_market[0].bettingTypeId})}found.push(self.listPopular.markets[item2.id][0]);if(found[0]&&found[0].selections){var selections=found[0].selections;if(wDt.coupon&&wDt.coupon.couponOddType&&"highest"==wDt.coupon.couponOddType){selections=selections.sort((a,b)=>b.price-a.price)}else{selections=selections.sort((a,b)=>a.price-b.price)}if(self.listPopular.bettingOfferId[selections[0].id]){offerList.push({...self.listPopular.bettingOfferId[selections[0].id],OUTCOME:self.listPopular.outcomeId[selections[0].outcomeId],MARKET:self.listPopular.marketId[found[0].id],MATCH:self.listPopular.event[selections[0].eventId]});if(self.listPopular.bettingOfferId[selections[0].id].isAvailable){countAvailable++;totalOdds=(0==totalOdds?1:totalOdds)*selections[0].price;oddsCA.push({eventId:selections[0].eventId,bettingOfferId:selections[0].id,odd:selections[0].price});offerListIndex.push(selections[0].id)}else{countDisable++}}}}}});if(!offerList.length||1>=countAvailable){self.disableRmR("",bannerId,cacheName,!1)}else{self.onResize();self.setBettingOffer(offerList);self.set("offerList",offerList);self.set("offerListIndex",offerListIndex);self.set("offerCheckedArray",oddsCA);self.set("offerActive",self.offerEquals());self.set("oddsCheckedArrayCount",totalOdds);if(self.listPopular&&self.listPopular.match){self.set("text.countryId",self.listPopular.match[0].venueId);self.set("text.countryName",self.listPopular.match[0].venueName);self.set("text.sportId",self.listPopular.match[0].sportId);self.set("text.sportName",self.listPopular.match[0].sportName)}var cacheOutcome=JSON.stringify(self.offerList);self.setEventLs(cacheName,"action_outcome",{widget_layout:self.widget_layout,type_id:self.tid,image_banner_set:bDt.banner_image,banner_config:bDt.banner_config,background_image_transperent:bDt.background_image_transperent,background_color:bDt.background_color,content:self.text.content,title:self.text.title,devices:wDt.devices,action_outcome:cacheOutcome});if(""==self.bannerId&&0!=self.widget_position_id){var sendGA=self._sendGA(wDt.banner_id);if(sendGA){var dataPopupGA4={event:"Views",operator_id:self.operatorId,banner_id:wDt.banner_id,banner_language:self.language,banner_page:self.pageTag,banner_position:self.positionTag,banner_type:wDt.type_id,em_id:"true"==self.loggedIn&&self.emUserId&&"undefined"!=self.emUserId?btoa(self.emUserId):"",sport_id:self.text.sportId,sport_name:self.text.sportName,country_id:self.text.countryId,country_name:self.text.countryName,tournament_id:self.text.tournamentId,tournament_name:self.text.tournamentName,market_id:"",market_name:"",market_short_id:"",event_id:"",event_match_name:"",outcome_id:"",outcome_key:"",outcome_name:""};self.ga4Push(dataPopupGA4)}}self.hideSkeleton();self.$.slideSource.classList.add("fadebanner");self.sliderLoaded()}}else{if(self.widget_position_id&&["1","2","3"].includes(self.widget_position_id.toString())&&"undefined"===typeof wDt.banner_id){self.resetWidget();self.startLoad();return!1}if(0==self.listPopular.match.length){var cacheName=self.genCacheName(self.tid,bannerId,"",self.language);self.disableRmR("",bannerId,cacheName);if(self.widget_position_id&&["1","2","3"].includes(self.widget_position_id.toString())){self.startLoad()}}else{if(loaded){if(wDt.sport_id===self.listPopular.match[0].sportId&&wDt.location_id===self.listPopular.match[0].venueId){self.setTextEvent("popular")}}else{self.disableRmR("",bannerId,"auto",!1);if(self.widget_position_id&&["1","2","3"].includes(self.widget_position_id.toString())){self.resetWidget();self.startLoad()}}}}})})()})})()}}renderPopularEvent(eventId,data_event){var self=this;self.widget.events_list[0].banner_data[0].status_id=self.arrEvent[eventId].statusId;self.backupMarketName=data_event.data[0].name;self.set("text.marketname",self.getText(data_event.data[0].name));self.set("text.labelName",data_event.data[0].labelName);self.set("text.labelStyle",data_event.data[0].labelStyle);if("undefined"!==typeof self.arrEvent[eventId]&&"undefined"!==typeof self.arrEvent[eventId].venueName){self.set("text.countryId",self.arrEvent[eventId].venueId);self.set("text.countryName",self.arrEvent[eventId].venueName)}var market=data_event.data[0],market_boost=13==self.tid?data_event.data[1]:null,milliseconds=new Date().getTime();self.firstRender(milliseconds,[],"",market,market_boost);self.hideSkeleton();self.removeDemo();self.$.slideSource.classList.add("fadebanner");try{if(self.widget.events_list[0].web_data.generate_link&&"undefined"!==typeof self.listPopular.event[eventId]){self.ws_event[eventId]=self.listPopular.event[eventId];self.autoLink(self.ws_event[eventId])}}catch(err){}}getSingleSportDataAction(eventId,data_event){var self=this,selectMk=[],selectMkProps=[],{wDt}=self.getWidget();if(wDt.type_id&&6!=wDt.type_id){if(2==wDt.status_id){if("offerlibrary"==self.apiMethod){if(wDt.betting_event_live.marketIds&&wDt.markets_live.length){wDt.markets_live.forEach((item,i)=>{if(wDt.betting_event_live.marketIds[item]){selectMk.push(`${eventId}_${wDt.betting_event_live.marketIds[item]}`);selectMkProps.push(wDt.betting_event_live.props&&wDt.betting_event_live.props[item]?wDt.betting_event_live.props[item]:"")}})}}else{selectMk=wDt.markets_live}}else{if("offerlibrary"==self.apiMethod){if(wDt.betting_event.marketIds&&wDt.markets.length){wDt.markets.forEach((item,i)=>{if(wDt.betting_event.marketIds[item]){selectMk.push(`${eventId}_${wDt.betting_event.marketIds[item]}`);selectMkProps.push(wDt.betting_event.props&&wDt.betting_event.props[item]?wDt.betting_event.props[item]:"")}})}}else{selectMk=wDt.markets}}}if(0==selectMk.length){self.disableBanner(eventId,self.bannerId)}else{(async()=>{var newOutcome=[];await Promise.all([selectMk.forEach((item,i)=>{var btId="",epId="";if(-1!=item.indexOf("_")&&2==item.split("_").length){[btId,epId]=item.split("_")}var found=data_event.data.filter(function(item2,i2){return btId&&epId?item2.bettingTypeId==btId&&item2.eventPartId==epId:item2.id==item});if(found.length){if("offerlibrary"==self.apiMethod){if(found[0].selections){if(3>=found[0].selections.length){newOutcome.push(found[0])}else{if(selectMkProps[i]){var selections=found[0].selections.filter(function(item2,i2){return item2.props&&item2.props.param==selectMkProps[i]});if(selections.length&&3>=selections.length){newOutcome.push({...found[0],selections:selections})}}}}}else{newOutcome.push(found[0])}}})]).then(pData=>{if(newOutcome.length){var render=!0;if(13==wDt.type_id){render=!1;if(2==newOutcome.length){var bt_disable=[],bt_disable_2=[];if(2==wDt.status_id){if("undefined"!==typeof wDt.markets_live_outcome_disable[newOutcome[0].id]){bt_disable=wDt.markets_live_outcome_disable[newOutcome[0].id]}if("undefined"!==typeof wDt.markets_live_outcome_disable[newOutcome[1].id]){bt_disable_2=wDt.markets_live_outcome_disable[newOutcome[1].id]}}else{if("undefined"!==typeof wDt.markets_outcome_disable[newOutcome[0].id]){bt_disable=wDt.markets_outcome_disable[newOutcome[0].id]}if("undefined"!==typeof wDt.markets_outcome_disable[newOutcome[1].id]){bt_disable_2=wDt.markets_outcome_disable[newOutcome[1].id]}}var odd1=newOutcome[0].selections.filter(item2=>-1==bt_disable.indexOf(item2.id)),odd2=newOutcome[1].selections.filter(item2=>-1==bt_disable_2.indexOf(item2.id));if(1==odd1.length&&1==odd2.length){render=!0}}}if(render){self.renderPopularEvent(eventId,{successful:1,data:newOutcome});if(wDt.sport_id){self.callWsScore(eventId,wDt.sport_id)}}else{if(13==wDt.type_id){var cacheName=self.genCacheName(13,wDt.banner_id,eventId,self.language);self.disableRmR("",wDt.banner_id,cacheName)}else{self.disableBanner(eventId,self.bannerId)}}}else{self.disableBanner(eventId,self.bannerId)}})})()}}getPopularSportDataAction(eventId,data_event){var self=this;(async()=>{var newOutcome=[];await Promise.all([data_event.main_market.forEach((item,i)=>{var found=data_event.data.filter(function(item2,i2){return item2.bettingTypeId==item.bettingTypeId&&item2.eventPartId==item.eventPartId});if(found.length){newOutcome.push(found[0])}})]).then(pData=>{if(newOutcome.length){self.renderPopularEvent(eventId,{successful:1,data:newOutcome})}else{self.renderPopularEvent(eventId,data_event)}})})()}setBettingOffer(offerList,ls=!1){var self=this;if(self.WEB_API_CACHE){if("undefined"==typeof self.WEB_API_CACHE.bettingOffer){self.WEB_API_CACHE.bettingOffer={}}if(ls){const bs=self.lsGet("betslip","json");if(bs&&bs.matchSelections&&bs.matchSelections.matchItems){const matchItems=bs.matchSelections.matchItems;if(matchItems){const keys=Object.keys(matchItems);keys.forEach(event=>{if(matchItems[event].selections&&matchItems[event].selections.length){matchItems[event].selections.forEach(id=>{if("undefined"==typeof self.WEB_API_CACHE.bettingOffer[id]){self.WEB_API_CACHE.bettingOffer[id]=event}})}})}}}else if(offerList&&offerList.length){offerList.forEach(function(value){if(value&&value.id&&value.MATCH&&"undefined"==typeof self.WEB_API_CACHE.bettingOffer[value.id]){self.WEB_API_CACHE.bettingOffer[value.id]=value.MATCH.id}})}}}readyBanner(){var self=this;if((!self.positionTag||!self.pageTag)&&!self.isSpecialBanner()){return!1}self.showLoading=!0;self.onResize();self.customStyle();self.haveEventCache=!1;if(self.isSpecialBanner()){return!1}if(self.bannerId&&(self.eid||"6"==self.tid)){var cacheName=self.genCacheName(self.tid,self.bannerId,self.eid,self.language),eCache=self.getEventLs(cacheName);if(eCache){self.haveEventCache=!0;if(["7","8","9","11","16","17"].includes(self.tid.toString())){self.sliderLoaded()}}}var lsParam=self.genLsParam(self.loggedIn),ls=self.lsGet("bmfe:"+self.language+"-"+lsParam,"json");if(0==self.widget_position_id&&""==self.bannerId||"undefined"!==typeof ls.maindata&&ls.maindata.data.length&&(3==ls.maindata.data[0].type_id||2==ls.maindata.data[0].type_id&&("undefined"===typeof ls.maindata.data[0].tournament_event_id||0==ls.maindata.data[0].tournament_event_id.length))){if(""==self.bannerId){self.showLoading=!1}}self.showFirstLoading();var i=0,wait=setInterval(function(){i++;if(!self.loadedSkelOrDemoPage){if(5e3<i){clearInterval(wait)}}else{self.startLoad();clearInterval(wait)}},self.loadedSkelOrDemoPage?0:10)}lsSet(k,v){window.localStorage.setItem(k,v)}lsGet(k,t="plain"){var ls=window.localStorage.getItem(k);if("json"==t){return ls?JSON.parse(ls):{}}else{return ls?ls:""}}lsDelete(k){window.localStorage.removeItem(k)}lsPrepare(){var self=this,ls=[{k:"bmfe:events",v:"{}"},{k:"bmfe:login",v:"false"},{k:"bmfe:location",v:"{}"},{k:"bmfe:config",v:"{}"},{k:"bmfe:discipline",v:"{}"},{k:"bmfe:eventPart",v:"{}"},{k:"bmfe:blockpopup",v:"{\"logout\":[], \"login\":[]}"},{k:"bmfe:blockpopupLimit",v:"[]"},{k:"bmfe:blockpopupForever",v:"{\"hash\":\"\", \"positions\":[], \"old_data\": \"\"}"},{k:"bmfe:userRole",v:"[]"}];ls.forEach(i=>{var tmp=self.lsGet(i.k);if(!tmp){self.lsSet(i.k,i.v)}})}lsRemoveAll(){let keys=Object.keys(window.localStorage);keys.forEach((key,i)=>{if(0===key.indexOf("bmfe:")&&!["bmfe:blockpopup","bmfe:blockpopupLimit","bmfe:blockpopupForever"].includes(key)){window.localStorage.removeItem(key)}})}ready(){super.ready();var self=this;self.set("text.liveText","LIVE");if("tr"==self.language.toLowerCase()){self.set("text.liveText","CANLI")}self.set("text.couponSelect","sel.");self.set("text.couponTotal","TOTAL ODDS:");self.set("text.couponAdd","ADD");self.set("text.couponAddBetslip","SELECTIONS TO BETSLIP");self.set("text.viewAll","View All");if(!self.fromInclude){var firstLogin=self.lsGet("bmfe:login");if("undefined"===typeof self.loggedIn||"false"!=self.loggedIn&&"true"!=self.loggedIn){self.loggedIn="true"!=firstLogin?"false":"true"}setTimeout(function(){if(firstLogin!=self.loggedIn){self.lsSet("bmfe:login",self.loggedIn.toString())}},2e3);if("true"==self.loggedIn&&self.emUserRoles&&!self.emUserRoles.length){var firstUserRole=self.lsGet("bmfe:userRole");if(firstUserRole&&"[]"!=firstUserRole){self.emUserRoles=JSON.parse(firstUserRole)}}}self.readyStream();self.readyBanner();self.resizeListener=self.onResize.bind(self);window.addEventListener("resize",self.resizeListener);self.messageListener=self.messageReceive.bind(self);window.addEventListener("message",self.messageListener)}clearWait(){var self=this;if(self.waitTNoRecords){clearTimeout(self.waitTNoRecords);self.waitTNoRecords={}}if(self.waitTNoSlide1){clearTimeout(self.waitTNoSlide1);self.waitTNoSlide1={}}if(self.waitTNoSlide2){clearTimeout(self.waitTNoSlide2);self.waitTNoSlide2={}}if(self.waitTNoSlide3){clearTimeout(self.waitTNoSlide3);self.waitTNoSlide3={}}if(self.waitTSliderCheck){clearTimeout(self.waitTSliderCheck);self.waitTSliderCheck={}}if(self.waitTIncidentClose){clearTimeout(self.waitTIncidentClose);self.waitTIncidentClose={}}if(self.waitTShowName){clearTimeout(self.waitTShowName);self.waitTShowName={}}if(self.waitTScreensize){clearTimeout(self.waitTScreensize);self.waitTScreensize={}}if(self.waitTUserRole){clearTimeout(self.waitTUserRole);self.waitTUserRole={}}if(self.waitTDelayIncident){clearTimeout(self.waitTDelayIncident);self.waitTDelayIncident={}}if(self.waitTCheckLoginP){clearTimeout(self.waitTCheckLoginP);self.waitTCheckLoginP={}}if(self.waitTPush){clearTimeout(self.waitTPush);self.waitTPush={}}if(self.waitTRun){clearTimeout(self.waitTRun);self.waitTRun={}}if(self.waitSliderRm){clearInterval(self.waitSliderRm);self.waitSliderRm={}}if(self.waitFallback){clearInterval(self.waitFallback);self.waitFallback={}}if(self.waitRepeat){clearInterval(self.waitRepeat);self.waitRepeat={}}if(self.waitDuration){clearInterval(self.waitDuration);self.waitDuration={}}if(self.waitChange){clearInterval(self.waitChange);self.waitChange={}}if(self.waitMinute){clearInterval(self.waitMinute);self.waitMinute={}}if(self.waitMinsec){clearInterval(self.waitMinsec);self.waitMinsec={}}self.waitCTimeout=!1;var bannerIdKey=`${self.bannerId}${self.templateId?"_"+self.templateId:""}`;if(self.bannerId&&self.waitSliderRepeat[bannerIdKey]){clearInterval(self.waitSliderRepeat[bannerIdKey]);self.waitSliderRepeat[bannerIdKey]={}}}disconnectedCallback(){super.disconnectedCallback();var self=this;self.clearWait()}getCookie(name){try{var cookie=`; ${document.cookie}`,split=cookie.split(`; ${name}=`);if(2===split.length){var value=split[1].split(";")[0];return value}}catch(err){}return null}constructor(){super();var self=this;self.useSection="";self.googleTagManagerId=!1;var config=self.lsGet("bmfe:config","json");if(config&&config.ga&&config.ga.key){if(config.ga.consent){var consent=self.getCookie("OptanonConsent");if(consent&&-1!=consent.indexOf("C0002%3A1")){self.googleTagManagerId=config.ga.key}}else{self.googleTagManagerId=config.ga.key}}setTimeout(function(){self.webapiUrl=null!=self.getAttribute("webapi-url")&&self.getAttribute("webapi-url")&&"undefined"!=self.getAttribute("webapi-url")?self.getAttribute("webapi-url"):"";self.webapiRealm=null!=self.getAttribute("webapi-realm")&&self.getAttribute("webapi-realm")&&"undefined"!=self.getAttribute("webapi-realm")?self.getAttribute("webapi-realm"):"";self.offerlibUrl=null!=self.getAttribute("offerlib-url")&&self.getAttribute("offerlib-url")&&"undefined"!=self.getAttribute("offerlib-url")?self.getAttribute("offerlib-url"):"";self.offerlibLang=null!=self.getAttribute("offerlib-lang")&&self.getAttribute("offerlib-lang")&&"undefined"!=self.getAttribute("offerlib-lang")?self.getAttribute("offerlib-lang"):"";self.loadAutobahn();if(self.googleTagManagerId){self.loadGoogleTagManager()}self.loadOfferLib()},100);var bannerId=self.getAttribute("banner-id"),loggedIn=self.getAttribute("logged-in");if((null==bannerId||""==bannerId)&&null==loggedIn||null!=loggedIn&&"true"!=loggedIn.toLowerCase()&&"false"!=loggedIn.toLowerCase()){setTimeout(function(){loggedIn=self.getAttribute("logged-in");if(null==loggedIn||null!=loggedIn&&"true"!=loggedIn.toLowerCase()&&"false"!=loggedIn.toLowerCase()){self.lsSet("bmfe:login",!1);self.lsSet("bmfe:userRole","[]");setTimeout(function(){loggedIn=self.getAttribute("logged-in");if(self.ws_session&&(null==loggedIn||null!=loggedIn&&"true"!=loggedIn.toLowerCase()&&"false"!=loggedIn.toLowerCase())){self.setAttribute("logged-in","false")}},3e4)}},5e3)}self.lsPrepare();self.showSelectPopup="false";self.disableCloseButton="false";self.widget_id=self.randomID();self.random_color=self.randomRGBA();self.hasWebP().then(function(hasWebP){self.webp_support=hasWebP});self.fromInclude="true"==self.getAttribute("from-include")||!0==self.getAttribute("from-include")?!0:!1;self.fromIncludeWS="true"==self.getAttribute("from-include")||!0==self.getAttribute("from-include")?!0:!1;self.demo="true"==self.getAttribute("demo")||!0==self.getAttribute("demo")?!0:!1;self.subscribeWsMinute={};self.subscribeOdds={};self.subscribeScore={};self.subscribePopular={};self.subscribeCoupon={};self.subscribeCouponBBD={};self.subscribeRecommend={};self.subscribeCouponRecommend={};self.subscribeTournamentOutright={};self.loadedSkelOrDemoPage=!1;if("undefined"===typeof self.WEB_API_CACHE){self.WEB_API_CACHE=[]}if("undefined"===typeof self.GA4_PUSH_CACHE){self.GA4_PUSH_CACHE=[]}if("undefined"===typeof self.last_hash){self.last_hash=[]}self.last_hash[self.widget_id]=[];self.webp_support=null;self.text={timecount:"",title:"",content:"",time:"",status:"",marketid:"",marketname:"",marketShortId:"",minute:"",score1:0,score2:0,homeName:"",awayName:"",partName:"",sportId:"",sportName:"",tournamentId:"",tournamentName:"",countryId:"",countryName:"",liveText:"",status_id:"",event_id:"",event_name:"",time_id:""};self.loadedSkelton=!1;self.nowScreen="desktop";if(480>window.innerWidth){self.nowScreen="mobile"}else if(481<=window.innerWidth&&1024>=window.innerWidth){self.nowScreen="tablet"}else if(1024<window.innerWidth){self.nowScreen="desktop"}self.sliderSkelArray=[1,2,3,4];self.interval_main_time=6e4;self.ws_event=[];self.arrEvent=[];self.waitTNoRecords={};self.waitTNoSlide1={};self.waitTNoSlide2={};self.waitTNoSlide3={};self.waitTSliderCheck={};self.waitTIncidentClose={};self.waitTShowName={};self.waitTScreensize={};self.waitTUserRole={};self.waitTDelayIncident={};self.waitTCheckLoginP={};self.waitTPush={};self.waitTRun={};self.waitSliderRm={};self.waitFallback={};self.waitRepeat={};self.waitDuration={};self.waitChange={};self.waitMinute={};self.waitMinsec={};self.waitCTimeout=!1;self.waitSliderRepeat={};self.bettingClass=[];self.eventScoreDetails=[];self.loadingFallback=!1;self.widgetTimeout=-1;self.last_score=null;self.last_yellow_card=null;self.last_red_card=null;self.last_corner=null;self.use_skeleton_img="false";self.default_skeleton="";self.backupMarketName="";self.listInterval=null;self.sportbook={};self.floating_video=!1;self.FLAG_ENDPOINT="";self.FLAG_EXT="";self.SPORT_ENDPOINT="";self.SPORT_EXT="";self.root_auto_link="";self.disableFallback=!1;self.disableApiCallback=!1;self.oddsCheckedArray=[];self.oddsCheckedArrayCount=0;self.oddsCheckedArrayCountOld=0;self.offerCheckedArray=[];self.offerActive="";self.marketsColumn=[];self.xClass1="";self.xClass2="";self.xClass3=self.isMobile()?" isMobile":"";self.autoHeight=!1;self.disableCrop=!1;self.cacheLoading=!1;self.icon={play:"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\"><path id=\"Vector\" d=\"M5 17.3336V6.66698C5 5.78742 5 5.34715 5.18509 5.08691C5.34664 4.85977 5.59564 4.71064 5.87207 4.67499C6.18868 4.63415 6.57701 4.84126 7.35254 5.25487L17.3525 10.5882L17.3562 10.5898C18.2132 11.0469 18.642 11.2756 18.7826 11.5803C18.9053 11.8462 18.9053 12.1531 18.7826 12.4189C18.6418 12.7241 18.212 12.9537 17.3525 13.4121L7.35254 18.7454C6.57645 19.1593 6.1888 19.3657 5.87207 19.3248C5.59564 19.2891 5.34664 19.1401 5.18509 18.9129C5 18.6527 5 18.2132 5 17.3336Z\" stroke=\"#ffffff\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" /></svg>",pause:"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M15 5.5V18.5C15 18.9647 15 19.197 15.0384 19.3902C15.1962 20.1836 15.816 20.8041 16.6094 20.9619C16.8026 21.0003 17.0349 21.0003 17.4996 21.0003C17.9642 21.0003 18.1974 21.0003 18.3906 20.9619C19.184 20.8041 19.8041 20.1836 19.9619 19.3902C20 19.1987 20 18.9687 20 18.5122V5.48777C20 5.03125 20 4.80087 19.9619 4.60938C19.8041 3.81599 19.1836 3.19624 18.3902 3.03843C18.197 3 17.9647 3 17.5 3C17.0353 3 16.8026 3 16.6094 3.03843C15.816 3.19624 15.1962 3.81599 15.0384 4.60938C15 4.80257 15 5.03534 15 5.5Z\" stroke=\"#ffffff\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" /><path d=\"M4 5.5V18.5C4 18.9647 4 19.197 4.03843 19.3902C4.19624 20.1836 4.81599 20.8041 5.60938 20.9619C5.80257 21.0003 6.0349 21.0003 6.49956 21.0003C6.96421 21.0003 7.19743 21.0003 7.39062 20.9619C8.18401 20.8041 8.8041 20.1836 8.96191 19.3902C9 19.1987 9 18.9687 9 18.5122V5.48777C9 5.03125 9 4.80087 8.96191 4.60938C8.8041 3.81599 8.18356 3.19624 7.39018 3.03843C7.19698 3 6.96465 3 6.5 3C6.03535 3 5.80257 3 5.60938 3.03843C4.81599 3.19624 4.19624 3.81599 4.03843 4.60938C4 4.80257 4 5.03534 4 5.5Z\" stroke=\"#ffffff\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" /></svg>",mute:"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\"><path id=\"Vector\" d=\"M16.1716 9.17117L21.8284 14.828M16.1716 14.828L21.8284 9.17117M7.4803 15.4065L9.15553 17.4796C10.0288 18.5603 10.4655 19.1006 10.848 19.1594C11.1792 19.2104 11.5138 19.092 11.7394 18.8443C12 18.5581 12 17.8634 12 16.4739V7.52526C12 6.13581 12 5.44109 11.7394 5.1549C11.5138 4.90715 11.1792 4.78884 10.848 4.83975C10.4655 4.89858 10.0288 5.43893 9.15553 6.51963L7.4803 8.59273C7.30388 8.81105 7.21567 8.92021 7.10652 8.99876C7.00982 9.06835 6.90147 9.1201 6.78656 9.15158C6.65687 9.1871 6.51652 9.1871 6.23583 9.1871H4.8125C4.0563 9.1871 3.6782 9.1871 3.37264 9.28804C2.77131 9.4867 2.2996 9.95841 2.10094 10.5597C2 10.8653 2 11.2434 2 11.9996C2 12.7558 2 13.1339 2.10094 13.4395C2.2996 14.0408 2.77131 14.5125 3.37264 14.7112C3.6782 14.8121 4.0563 14.8121 4.8125 14.8121H6.23583C6.51652 14.8121 6.65687 14.8121 6.78656 14.8476C6.90147 14.8791 7.00982 14.9308 7.10652 15.0004C7.21567 15.079 7.30388 15.1881 7.4803 15.4065Z\" stroke=\"#ffffff\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" /></svg>",unmute:"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\"><path id=\"Vector\" d=\"M18.82 4.68652C19.8191 5.61821 20.6167 6.74472 21.1636 7.99657C21.7105 9.24842 21.9952 10.5991 21.9999 11.9652C22.0047 13.3313 21.7295 14.6838 21.1914 15.9395C20.6532 17.1951 19.8635 18.3272 18.8709 19.2658M16.092 7.61194C16.6915 8.17095 17.17 8.84686 17.4982 9.59797C17.8263 10.3491 17.9971 11.1595 18 11.9791C18.0028 12.7988 17.8377 13.6103 17.5148 14.3637C17.1919 15.1171 16.7181 15.7963 16.1225 16.3595M7.4803 15.4069L9.15553 17.48C10.0288 18.5607 10.4655 19.1011 10.848 19.1599C11.1792 19.2108 11.5138 19.0925 11.7394 18.8448C12 18.5586 12 17.8638 12 16.4744V7.52572C12 6.13627 12 5.44155 11.7394 5.15536C11.5138 4.90761 11.1792 4.78929 10.848 4.84021C10.4655 4.89904 10.0288 5.43939 9.15553 6.52009L7.4803 8.59319C7.30388 8.81151 7.21567 8.92067 7.10652 8.99922C7.00982 9.06881 6.90147 9.12056 6.78656 9.15204C6.65687 9.18756 6.51652 9.18756 6.23583 9.18756H4.8125C4.0563 9.18756 3.6782 9.18756 3.37264 9.2885C2.77131 9.48716 2.2996 9.95887 2.10094 10.5602C2 10.8658 2 11.2439 2 12.0001C2 12.7563 2 13.1344 2.10094 13.4399C2.2996 14.0413 2.77131 14.513 3.37264 14.7116C3.6782 14.8126 4.0563 14.8126 4.8125 14.8126H6.23583C6.51652 14.8126 6.65687 14.8126 6.78656 14.8481C6.90147 14.8796 7.00982 14.9313 7.10652 15.0009C7.21567 15.0794 7.30388 15.1886 7.4803 15.4069Z\" stroke=\"#ffffff\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" /></svg>"}}}window.customElements.define(BannermatrixBannerWebapi.is,BannermatrixBannerWebapi);</script><template><div id="bannermatrix" class$="bm_layout_{{widget_layout}} bm_sport_{{text.sportId}} bm_type_{{tid}} bm_lang_{{language}} {{positionTag}} {{pageTag}} child_{{fromInclude}}{{xClass1}}{{xClass2}}{{xClass3}} {{className}}"><div id="skeletonMain" style="height: 100%;"><section data-slider="slider_skeleton" id="type_slider_skeleton" style="height: 100%;"><div id="primary-skeleton" class="splide skeletonMain"><div class="splide__track"><ul class="splide__list" id="ul_slide_skeleton"><template is="dom-repeat-banner" items="{{sliderSkelArray}}"><li class="splide__slide"><template is="dom-if-banner" if="[[_isEqualTo(use_skeleton_img, 'true')]]"><div class="skeletonMain noborder" style="background-image: url({{default_skeleton}});"></div></template><template is="dom-if-banner" if="[[_isEqualTo(use_skeleton_img, 'false')]]"><div class="skeletonMain"><div style="height: 100%; display: flex;"><div class="bannerContentMain"><div class="layout_id_1"><div class="event_name"><div class="event_name_left"><span class="skeleton-box teamName" style="width:80%;"></span></div><div class="event_name_center event_name_center_live"></div><div class="event_name_right"><span class="skeleton-box teamName" style="width:80%;"></span></div></div></div><div class="slidebanner"><span class="skeleton-box btnSkeleton"></span> <span class="skeleton-box btnSkeleton"></span> <span class="skeleton-box btnSkeleton"></span></div></div></div></div></template></li></template></ul></div></div><div class="cleardiv"></div><div id="secondary-slider-skeleton" class="splide"><div class="splide__track"><ul class="splide__list" id="ul_slide_skeleton2"></ul></div></div></section></div><div class="banner-container" id="slideSource"><div class="banner" id="backgroundBanner" data-bg-img-thumbnail=""><div class$="backgroundBanner2 {{disableCrop}}" id="backgroundBanner2" hidden$="[[_hideSection('background', useSection)]]"><img class="preload" src="" loading="lazy" onload="try{this.getRootNode().host.lazyLoadImage(this)}catch(e){}"></div><div class="backgroundBannerVideo" id="backgroundBannerVideo"><div class="videoControls videoControlsDisable" id="videoControls" on-click="videoControlsActive"><div class="videoControlPlay active disable" id="videoControlPlay" on-click="videoControlPlay"><div class="video-icon play-icon" inner-h-t-m-l="{{icon.play}}"></div><div class="video-icon pause-icon" inner-h-t-m-l="{{icon.pause}}"></div></div><div class="videoControlSound disable" id="videoControlSound" on-click="videoControlSound"><div class="video-icon mute-icon" inner-h-t-m-l="{{icon.mute}}"></div><div class="video-icon unmute-icon" inner-h-t-m-l="{{icon.unmute}}"></div></div></div><video id="backgroundBannerVideoSrc" class="hide" autoplay="" loop="" muted="" playsinline="" poster="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="><source type="video/mp4"></video></div><div class="overlaybanner" id="overlaybanner"><div class="divCloseButton"><template is="dom-if-banner" if="[[_isEqualAndEqual(showSelectPopup, 'false', disableCloseButton, 'false')]]"><span id="closebutton" title="close" on-click="selectClosePanel">X</span></template></div><template is="dom-if-banner" if="[[_isEqualTo(showSelectPopup, 'true')]]"><div class="selectClosePopup"><div class="selectClosePopup_article"><div class="selectClosePopup_text">Click to hide updates from <a href="javascript:void(0);" onclick="this.getRootNode().host.closePanel('0')">This Event</a> or all events for next: <a href="javascript:void(0);" onclick="this.getRootNode().host.closePanel('1d')">1</a> - <a href="javascript:void(0);" onclick="this.getRootNode().host.closePanel('7d')">7</a> - <a href="javascript:void(0);" onclick="this.getRootNode().host.closePanel('30d')">30</a> days</div><div class="divCloseSelectPopup" on-click="closeSelectPopup"><span>X</span></div></div></div></template><section class="buttonNavSection" hidden$="[[_hideSection('buttonNav', useSection)]]"><div class="buttonNavLayout" id="buttonNavLayout" onclick="this.getRootNode().host.bannerClick(event)"><div class="buttonNav_image" id="buttonNav_image"><img class="preload" src="" loading="lazy" onload="try{this.getRootNode().host.lazyLoadImage(this)}catch(e){}"></div><div class="buttonNav_btn" id="buttonNav_btn"></div><div class="buttonNav_title">{{text.title}}</div></div></section><section class="cpSection" hidden$="[[_hideSection('couponBanner', useSection)]]"><div class="cpContainer"><div class="cpHeader"><div class="cpHeader-left"></div><template is="dom-if-banner" if="[[_isEqualTo(widget_layout, '10')]]"><div class="cpHeader-center"><div class="contentMain"><template is="dom-if-banner" if="{{text.title}}"><span class="eventtitle">{{text.title}}</span></template></div><div class="contentMain"><template is="dom-if-banner" if="{{text.content}}"><span class="eventcontent">{{text.content}}</span></template></div></div></template><template is="dom-if-banner" if="[[!_isEqualTo(widget_layout, '10')]]"><div class="cpHeader-center"><div class="contentMain"><div class="cpEvent"><div class="cpItem-sport"><template is="dom-if-banner" if="[[!_isEqualTo(SPORT_ENDPOINT, '')]]"><template is="dom-if-banner" if="[[!_isEqualTo(getMatch(offerList, 'sportId'), '')]]"><span class="sport_icon" title="{{getMatch(offerList, 'sportName')}}"><span style="background-image: url({{SPORT_ENDPOINT}}{{getMatch(offerList, 'sportId')}}{{SPORT_EXT}});"></span> </span><span class="sport_icon_color" title="{{getMatch(offerList, 'sportName')}}"><span style="-webkit-mask-image: url({{SPORT_ENDPOINT}}{{getMatch(offerList, 'sportId')}}{{SPORT_EXT}}); mask-image: url({{SPORT_ENDPOINT}}{{getMatch(offerList, 'sportId')}}{{SPORT_EXT}});"></span></span></template></template></div><span class="cpItem-home">{{getMatch(offerList, 'homeShortParticipantName')}}</span> <span class="cpItem-eventDash">-</span> <span class="cpItem-away">{{getMatch(offerList, 'awayShortParticipantName')}}</span></div></div><div class="contentMain"><template is="dom-if-banner" if="{{text.title}}"><span class="eventtitle">{{text.title}}</span></template></div><div class="contentMain"><template is="dom-if-banner" if="{{text.content}}"><span class="eventcontent">{{text.content}}</span></template></div></div></template><div class="cpHeader-right">{{offerCheckedArray.length}} {{text.couponSelect}}</div></div><div class="cpContent"><template is="dom-repeat-banner" items="{{offerList}}"><div class$="cpItem-item {{_con(item.isAvailable, 'couponHide')}} {{_con2(item.id, offerListIndex, 'item')}}" for="offer_{{item.id}}"><label class="cpItem-left"><div class="cpItem-checkbox"><template is="dom-if-banner" if="[[!_isEqualTo(tid, '16')]]"><input class="cpCheckbox" type="checkbox" id="offer_{{item.id}}" name="offer_{{item.id}}" value="{{item.id}}" data-odds$="{{item.odds}}" on-change="handleCouponCheckboxChange" disabled$="{{!item.isAvailable}}" checked$="{{item.isAvailable}}"></template><template is="dom-if-banner" if="[[_isEqualTo(tid, '16')]]"><input class="cpCheckbox" type="checkbox" id="offer_{{item.ODDBOOST.id}}" name="offer_{{item.ODDBOOST.id}}" value="{{item.ODDBOOST.id}}" data-odds$="{{item.ODDBOOST.odds}}" on-change="handleCouponCheckboxChange" disabled$="{{!item.ODDBOOST.isAvailable}}" checked$="{{item.ODDBOOST.isAvailable}}"></template></div><div class="cpItem-sport"><template is="dom-if-banner" if="[[!_isEqualTo(SPORT_ENDPOINT, '')]]"><template is="dom-if-banner" if="[[!_isEqualTo(item.MATCH.sportId, '')]]"><span class="sport_icon" title="{{item.MATCH.sportName}}"><span style="background-image: url({{SPORT_ENDPOINT}}{{item.MATCH.sportId}}{{SPORT_EXT}});"></span> </span><span class="sport_icon_color" title="{{item.MATCH.sportName}}"><span style="-webkit-mask-image: url({{SPORT_ENDPOINT}}{{item.MATCH.sportId}}{{SPORT_EXT}}); mask-image: url({{SPORT_ENDPOINT}}{{item.MATCH.sportId}}{{SPORT_EXT}});"></span></span></template></template></div></label><div class="cpItem-right"><div class="cpItem-info"><template is="dom-if-banner" if="[[!_isEqualTo(SPORT_ENDPOINT, '')]]"><template is="dom-if-banner" if="[[!_isEqualTo(item.MATCH.sportId, '')]]"><span class="sport_icon" title="{{item.MATCH.sportName}}"><span style="background-image: url({{SPORT_ENDPOINT}}{{item.MATCH.sportId}}{{SPORT_EXT}});"></span> </span><span class="sport_icon_color" title="{{item.MATCH.sportName}}"><span style="-webkit-mask-image: url({{SPORT_ENDPOINT}}{{item.MATCH.sportId}}{{SPORT_EXT}}); mask-image: url({{SPORT_ENDPOINT}}{{item.MATCH.sportId}}{{SPORT_EXT}});"></span></span></template></template><template is="dom-if-banner" if="[[!_isEqualTo(FLAG_ENDPOINT, '')]]"><template is="dom-if-banner" if="[[!_isEqualTo(item.MATCH.venueId, '')]]"><span class="flag_icon" title="{{item.MATCH.venueName}}"><span style="background-image: url({{FLAG_ENDPOINT}}{{item.MATCH.venueId}}{{FLAG_EXT}});"></span></span></template></template><span class="cpItem-short-tournament">{{item.MATCH.shortParentName}}</span> <span class="cpItem-tournament">{{item.MATCH.parentName}}</span> <span class="cpItem-time">{{getDateFormat(item.MATCH.startTime)}}</span></div><div class="cpItem-title"><div class="cpItem-name"><template is="dom-if-banner" if="[[text.isLive]]"><span class$="liveicon liveicon-{{language}}">{{text.liveText}}</span></template><span>{{item.OUTCOME.translatedName}}</span></div><template is="dom-if-banner" if="[[!_isEqualTo(tid, '16')]]"><div class$="cpItem-odd bgButton2 {{_con(item.statusId, 'coupon')}}" id$="outcome_{{item.outcomeId}}" data-event$="{{item.MATCH.id}}" data-price$="{{item.odds}}" data-offer$="{{item.id}}" data-timestamp$="{{item.lastChangedTime}}" disabled$="{{!item.isAvailable}}"><span class="odv" id="{{item.outcomeId}}">{{getNumber(item.odds, 2)}}</span></div></template><template is="dom-if-banner" if="[[_isEqualTo(tid, '16')]]"><div class$="cpItem-odd bgButton2 {{_con(item.ODDBOOST.statusId, 'coupon')}}" id$="outcome_{{item.ODDBOOST.outcomeId}}" data-event$="{{item.MATCH.id}}" data-price$="{{item.ODDBOOST.odds}}" data-offer$="{{item.ODDBOOST.id}}" data-timestamp$="{{item.ODDBOOST.lastChangedTime}}" disabled$="{{!item.ODDBOOST.isAvailable}}"><span class="odvOld" id="{{item.outcomeId}}">{{getNumber(item.odds, 2)}}</span> <span class="odv" id="{{item.ODDBOOST.outcomeId}}">{{getNumber(item.ODDBOOST.odds, 2)}}</span></div></template></div><div class="cpItem-detail"><div class="cpItem-event"><span class="cpItem-displayName">{{item.MARKET.displayName}}</span> <span class="cpItem-comma">, </span><span class="cpItem-eventPartName">{{item.MARKET.eventPartName}}</span></div><div class="cpItem-event" on-click="handleLink" data-link="link" data-event$="{{item.MATCH.id}}"><span class="cpItem-home">{{item.MATCH.homeShortParticipantName}}</span> <span class="cpItem-eventDash">- </span><span class="cpItem-away">{{item.MATCH.awayShortParticipantName}}</span></div></div></div></div></template></div><div class="cpFooter"><div class="cpFooter-main"><div class="cpFooter-center"><button class$="btCoupon {{offerActive}}" on-click="handleCouponAddToBetslip" disabled$="{{!oddsCheckedArrayCount}}"><div>{{text.couponTotal}}<template is="dom-if-banner" if="[[_isEqualTo(tid, '16')]]"><span class="odvOld">{{getNumber(oddsCheckedArrayCountOld, 2)}}</span></template><span>{{getNumber(oddsCheckedArrayCount, 2)}}</span></div><div>{{text.couponAdd}} <span>{{offerCheckedArray.length}}</span> {{text.couponAddBetslip}}</div></button></div></div></div></div></section><div class="fullwidth" hidden$="[[_hideSection('default', useSection)]]"><section class="defaultSection"><template is="dom-if-banner" if="[[_notOrEqual( text.event_id , '0' ,incident_tournament, 'true' )]]"><template is="dom-if-banner" if="[[_isEqualTo2(widget_layout, '2', widget_layout, '4')]]"><div class="layout_id_2 titleTop"><div class="part_name"><div class="part_name_left"><template is="dom-if-banner" if="[[!_isEqualTo(SPORT_ENDPOINT, '')]]"><template is="dom-if-banner" if="[[!_isEqualTo(text.sportId, '')]]"><span class="sport_icon" title="{{text.sportName}}"><span style="background-image: url({{SPORT_ENDPOINT}}{{text.sportId}}{{SPORT_EXT}});"></span> </span><span class="sport_icon_color" title="{{text.sportName}}"><span style="-webkit-mask-image: url({{SPORT_ENDPOINT}}{{text.sportId}}{{SPORT_EXT}}); mask-image: url({{SPORT_ENDPOINT}}{{text.sportId}}{{SPORT_EXT}});"></span></span></template></template><template is="dom-if-banner" if="[[!_isEqualTo(FLAG_ENDPOINT, '')]]"><template is="dom-if-banner" if="[[!_isEqualTo(text.countryId, '')]]"><span class="flag_icon" title="{{text.countryName}}"><span style="background-image: url({{FLAG_ENDPOINT}}{{text.countryId}}{{FLAG_EXT}});"></span></span></template></template><div class="sport_competition"><span title="{{text.sportName}}">{{text.sportName}}</span><template is="dom-if-banner" if="[[!_isEqualTo(text.sportName, '')]]"><span class="separator">-</span></template></div><span class="country_name" title="{{text.countryName}}">{{text.countryName}}</span><template is="dom-if-banner" if="[[!_isEqualTo(text.countryName, '')]]"><span class="separator">-</span></template><span class="tournament_name" title="{{text.tournamentName}}">{{text.tournamentName}}</span></div><div class="part_name_right"><template is="dom-if-banner" if="[[_isEqualTo(text.status_id, '1')]]">{{text.time}}</template><template is="dom-if-banner" if="[[_isEqualTo(text.status_id, '2')]]"><span class$="liveicon liveicon-{{language}}">{{text.liveText}}</span> <span hidden$="[[_showInterval(text.timecount)]]"><span class="liveicon">{{text.timecount}}</span></span></template></div></div></div></template><template is="dom-if-banner" if="[[_isEqualTo3(widget_layout, '7', widget_layout, '8', widget_layout, '13')]]"><div class="titleTop"><div class="part_name"><div class="part_name_left"><template is="dom-if-banner" if="[[!_isEqualTo(SPORT_ENDPOINT, '')]]"><template is="dom-if-banner" if="[[!_isEqualTo(text.sportId, '')]]"><span class="sport_icon" title="{{text.sportName}}"><span style="background-image: url({{SPORT_ENDPOINT}}{{text.sportId}}{{SPORT_EXT}});"></span> </span><span class="sport_icon_color" title="{{text.sportName}}"><span style="-webkit-mask-image: url({{SPORT_ENDPOINT}}{{text.sportId}}{{SPORT_EXT}}); mask-image: url({{SPORT_ENDPOINT}}{{text.sportId}}{{SPORT_EXT}});"></span></span></template></template><template is="dom-if-banner" if="[[!_isEqualTo(FLAG_ENDPOINT, '')]]"><template is="dom-if-banner" if="[[!_isEqualTo(text.countryId, '')]]"><span class="flag_icon" title="{{text.countryName}}"><span style="background-image: url({{FLAG_ENDPOINT}}{{text.countryId}}{{FLAG_EXT}});"></span></span></template></template><div class="sport_competition"><span title="{{text.sportName}}">{{text.sportName}}</span><template is="dom-if-banner" if="[[!_isEqualTo(text.sportName, '')]]"><span class="separator">-</span></template></div><span class="country_name" title="{{text.countryName}}">{{text.countryName}}</span><template is="dom-if-banner" if="[[!_isEqualTo(text.countryName, '')]]"><span class="separator">-</span></template><span class="tournament_name" title="{{text.tournamentName}}">{{text.tournamentName}}</span></div><div class="part_name_right"><template is="dom-if-banner" if="[[_isEqualTo2(widget_layout, '7', widget_layout, '8')]]"><template is="dom-if-banner" if="[[_isEqualTo(text.status_id, '1')]]"><span class="show_time" title="{{text.time}}"><svg xmlns="http://www.w3.org/2000/svg" class="iconcalendar" fill="currentColor" viewBox="0 0 16 16"><path d="M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM1 3.857C1 3.384 1.448 3 2 3h12c.552 0 1 .384 1 .857v10.286c0 .473-.448.857-1 .857H2c-.552 0-1-.384-1-.857V3.857z"></path><path d="M6.5 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"></path></svg> {{text.time}}</span></template><template is="dom-if-banner" if="[[_isEqualTo(text.status_id, '2')]]"><span class$="liveicon liveicon-{{language}}">{{text.liveText}}</span> <span class="part_time" title="{{text.minute}}">{{text.minute}}</span> <span class="part_timesec" title="{{text.minsec}}">{{text.minsec}}</span> <span class="part_name" title="{{text.partName}}">{{text.partName}}</span> <span hidden$="[[_showInterval(text.timecount)]]"><span class="liveicon">{{text.timecount}}</span></span></template></template><template is="dom-if-banner" if="[[_isEqualTo(widget_layout, '13')]]"><span class="show_time" title="{{text.time}}"><svg xmlns="http://www.w3.org/2000/svg" class="iconcalendar" fill="currentColor" viewBox="0 0 16 16"><path d="M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM1 3.857C1 3.384 1.448 3 2 3h12c.552 0 1 .384 1 .857v10.286c0 .473-.448.857-1 .857H2c-.552 0-1-.384-1-.857V3.857z"></path><path d="M6.5 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"></path></svg> {{text.time}}</span></template></div></div></div></template></template><div class="bannerContentMain" id="bannerContentMain" onclick="this.getRootNode().host.bannerClick(event)"><div id="groupslidebanner"><div class="bannerContent" id="banner_content"><template is="dom-if-banner" if="{{text.timecount}}"><div class="countdownMain"></div></template><template is="dom-if-banner" if="[[!_isDetailBottom(widget_layout)]]"><div class="box_of_content"><div onclick="this.getRootNode().host.bannerIdClick('popupClick','')"><template is="dom-if-banner" if="{{text.content}}"><div class="contentMain"><span class="eventcontent">{{text.content}}</span></div></template><template is="dom-if-banner" if="{{text.title}}"><div class="contentMain"><span class="eventtitle">{{text.title}}</span></div></template></div></div></template><div id="buttondetail"></div></div><template is="dom-if-banner" if="[[_isEqualTo(text.status_id, '1')]]"><template is="dom-if-banner" if="[[_isPendingLayout1(widget_layout)]]"><template is="dom-if-banner" if="[[_isEqualTo(widget_layout, '1')]]"><div class="outMatchName pending"><div class="mobile_pending_sportname"><div><span class="show_time" title="{{text.time}}"><svg xmlns="http://www.w3.org/2000/svg" class="iconcalendar" fill="currentColor" viewBox="0 0 16 16"><path d="M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM1 3.857C1 3.384 1.448 3 2 3h12c.552 0 1 .384 1 .857v10.286c0 .473-.448.857-1 .857H2c-.552 0-1-.384-1-.857V3.857z"></path><path d="M6.5 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"></path></svg> {{text.time}}</span></div><div><span title="{{text.sportName}}">{{text.sportName}}</span> <span class="separator">/ </span><span title="{{text.tournamentName}}">{{text.tournamentName}}</span></div></div></div></template><div class="table_detail table_event_part"><ul class="event_table"><li class="event_table_part pendingInMatch"><span class="part_name inMatchName"><span class="show_time" title="{{text.time}}"><svg xmlns="http://www.w3.org/2000/svg" class="iconcalendar" fill="currentColor" viewBox="0 0 16 16"><path d="M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM1 3.857C1 3.384 1.448 3 2 3h12c.552 0 1 .384 1 .857v10.286c0 .473-.448.857-1 .857H2c-.552 0-1-.384-1-.857V3.857z"></path><path d="M6.5 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"></path></svg> {{text.time}} </span><span class="separator">/ </span><span class="sport_name"><span title="{{text.sportName}}">{{text.sportName}}</span></span><template is="dom-if-banner" if="[[_isEqualTo(widget_layout, '1')]]"><span class="separator">/ </span><span title="{{text.tournamentName}}">{{text.tournamentName}}</span></template></span><div class="matchHighlight"><div class="matchHighlightHomeName">{{text.homeName}}</div><div class="matchHighlightVs">vs</div><div class="matchHighlightAwayName">{{text.awayName}}</div></div></li></ul></div><template is="dom-if-banner" if="[[_isEqualTo(widget_layout, '8')]]"><div class="table_detail table_market_name"><ul class="event_table"><li class="event_table_part pendingInMatch"><span class="part_name inMatchName"><div>{{text.marketname}}</div></span></li></ul></div></template></template><template is="dom-if-banner" if="[[_isEqualTo2(widget_layout, '2', widget_layout, '4')]]"><div class="layout_id_2"><div class="event_name"><div class="event_name_left">{{text.homeName}}</div><div class="event_name_center"><div class="event_name_center_circle">vs</div></div><div class="event_name_right">{{text.awayName}}</div></div><template is="dom-if-banner" if="[[_isEqualTo(widget_layout, '4')]]"><div class="event_name"><div class="event_name_center event_market_center_live">{{text.marketname}}</div></div></template></div></template><template is="dom-if-banner" if="[[_isEqualTo(widget_layout, '3')]]"><div class="outMatchName pending"><div class="mobile_pending_sportname"><div>{{text.marketname}}</div></div></div><div class="table_detail"><ul class="event_table"><li class="event_table_part pendingInMatch"><span class="part_name inMatchName"><div>{{text.marketname}}</div></span></li></ul></div></template><div class$="label_name {{text.labelStyle}}"><span>{{text.labelName}}</span></div></template><template is="dom-if-banner" if="[[_isEqualTo2(text.status_id, '2' ,incident_tournament, 'true')]]"><template is="dom-if-banner" if="[[_isEqualTo(widget_layout, '1')]]"><section><template is="dom-if-banner" if="[[_isMenuMobile2(text.content, text.title)]]"><div class="outMatchName livematch"><div><span title="{{text.sportName}}">{{text.sportName}}</span> <span class="separator">/ </span><span title="{{text.tournamentName}}">{{text.tournamentName}}</span></div><div><template is="dom-if-banner" if="[[_isEqualTo(text.status_id, '2')]]"><span class$="liveicon liveicon-{{language}}">{{text.liveText}}</span> <span hidden$="[[_showInterval(text.timecount)]]"><span class="liveicon">{{text.timecount}}</span></span></template><svg viewBox="20 0 130 140" class="icontime"><path d="M63 13c-27.6 0-50 22.4-50 50s22.4 50 50 50 50-22.4 50-50-22.4-50-50-50zm0 90c-22 0-40-18-40-40s18-40 40-40c22.1 0 40 18 40 40s-17.9 40-40 40zm5-37.9l17 17-7.1 7.1L58 69.3V32.1h10v33z"></path></svg> {{text.partName}}{{text.minute}}</div></div></template><template is="dom-if-banner" if="[[_isMenuMobile1(text.content, text.title)]]"><div class="outMatchName livematch"><div class="showtime"><template is="dom-if-banner" if="[[_isEqualTo(text.status_id, '2')]]"><span class$="liveicon liveicon-{{language}}">{{text.liveText}}</span> <span hidden$="[[_showInterval(text.timecount)]]"><span class="liveicon">{{text.timecount}}</span></span></template><svg viewBox="20 0 130 140" class="icontime"><path d="M63 13c-27.6 0-50 22.4-50 50s22.4 50 50 50 50-22.4 50-50-22.4-50-50-50zm0 90c-22 0-40-18-40-40s18-40 40-40c22.1 0 40 18 40 40s-17.9 40-40 40zm5-37.9l17 17-7.1 7.1L58 69.3V32.1h10v33z"></path></svg> <span title="{{text.partName}}{{text.minute}}">{{text.partName}}{{text.minute}}</span></div></div></template><div class="table_detail"><ul class="event_table"><li class="event_table_part"><span class="part_name inMatchName"><template is="dom-if-banner" if="[[_isEqualTo2(text.status_id, '2' ,incident_tournament, 'true' )]]"><span class$="liveicon liveicon-{{language}}">{{text.liveText}}</span> <span hidden$="[[_showInterval(text.timecount)]]"><span class="liveicon">{{text.timecount}}</span></span></template><svg viewBox="20 0 130 140" class="icontime"><path d="M63 13c-27.6 0-50 22.4-50 50s22.4 50 50 50 50-22.4 50-50-22.4-50-50-50zm0 90c-22 0-40-18-40-40s18-40 40-40c22.1 0 40 18 40 40s-17.9 40-40 40zm5-37.9l17 17-7.1 7.1L58 69.3V32.1h10v33z"></path></svg> <span title="{{text.partName}}{{text.minute}}">{{text.partName}}{{text.minute}}</span> / <span title="{{text.sportName}}">{{text.sportName}}</span> / <span title="{{text.tournamentName}}">{{text.tournamentName}}</span> </span><span class="part_home" title="{{text.homeName}}">{{text.homeName}}</span> <span class="part_away" title="{{text.awayName}}">{{text.awayName}}</span></li><template is="dom-repeat-banner" items="{{eventScoreDetails.score_set}}"><template is="dom-if-banner" if="[[!_isEqualTo(index, '0')]]"><li class="event_table_part"><span class="part_name inMatchName" title="{{item.eventPartName}}">{{item.eventPartName}}</span> <span class="part_home" title="{{item.homeScore}}">{{item.homeScore}}</span> <span class="part_away" title="{{item.awayScore}}">{{item.awayScore}}</span></li></template></template><template is="dom-repeat-banner" items="{{eventScoreDetails.score_whole}}"><template is="dom-if-banner" if="[[_isEqualTo(index, '0')]]"><li class="event_table_part event_table_part_whole"><span class="part_name inMatchName" title="{{item.eventPartName}}">{{item.eventPartName}}</span> <span class="part_home" title="{{item.homeScore}}">{{item.homeScore}}</span> <span class="part_away" title="{{item.awayScore}}">{{item.awayScore}}</span></li></template></template><template is="dom-repeat-banner" items="{{eventScoreDetails.score_current}}"><template is="dom-if-banner" if="[[_isEqualTo(index, '0')]]"><li class="event_table_part event_table_part_whole event_table_part_current"><span class="part_name inMatchName" title="{{item.eventPartName}}">{{item.eventPartName}}</span> <span class="part_home" title="{{item.homeScore}}">{{item.homeScore}}</span> <span class="part_away" title="{{item.awayScore}}">{{item.awayScore}}</span></li></template></template></ul></div></section></template><template is="dom-if-banner" if="[[_isEqualTo2(widget_layout, '2', widget_layout, '4')]]"><template is="dom-if-banner" if="[[_isSportForLayout2(text.sportId)]]"><div class="layout_id_2"><div class="event_name"><div class="event_name_left" title="{{text.homeName}}">{{text.homeName}}</div><div class="event_name_center event_name_center_live"><div class="event_name_center_time"><template is="dom-if-banner" if="[[!_isEqualTo(text.minute, '')]]"><svg viewBox="20 0 130 140" class="icontime"><path d="M63 13c-27.6 0-50 22.4-50 50s22.4 50 50 50 50-22.4 50-50-22.4-50-50-50zm0 90c-22 0-40-18-40-40s18-40 40-40c22.1 0 40 18 40 40s-17.9 40-40 40zm5-37.9l17 17-7.1 7.1L58 69.3V32.1h10v33z"></path></svg> {{text.minute}}</template><template is="dom-if-banner" if="[[_isEqualTo(text.minute, '')]]"><span title="{{text.partName}}">{{text.partName}}</span></template></div><div class="event_name_center_score"><template is="dom-repeat-banner" items="{{eventScoreDetails.score_whole}}"><template is="dom-if-banner" if="[[_isEqualTo(index, '0')]]">{{item.homeScore}} - {{item.awayScore}}</template></template></div></div><div class="event_name_right" title="{{text.awayName}}">{{text.awayName}}</div></div><template is="dom-if-banner" if="[[_isEqualTo(widget_layout, '4')]]"><div class="event_name"><div class="event_name_center event_market_center_live nameMarketRender">{{text.marketname}}</div></div></template></div></template><template is="dom-if-banner" if="[[!_isSportForLayout2(text.sportId)]]"><div class="tablescore_layout_id_2"><div class="part_name inMatchName nameMarketRender"><template is="dom-if-banner" if="[[_isEqualTo(widget_layout, '4')]]">{{text.marketname}}</template></div><div class="part_name inMatchName"><svg viewBox="20 0 130 140" class="icontime"><path d="M63 13c-27.6 0-50 22.4-50 50s22.4 50 50 50 50-22.4 50-50-22.4-50-50-50zm0 90c-22 0-40-18-40-40s18-40 40-40c22.1 0 40 18 40 40s-17.9 40-40 40zm5-37.9l17 17-7.1 7.1L58 69.3V32.1h10v33z"></path></svg><template is="dom-if-banner" if="[[!_isEqualTo(text.minute, '')]]">{{text.minute}}</template>{{text.partName}}</div></div><div class="table_detail"><ul class="event_table"><li class="event_table_part"><span class="part_home" title="{{text.homeName}}">{{text.homeName}}</span> <span class="part_away" title="{{text.awayName}}">{{text.awayName}}</span></li><template is="dom-repeat-banner" items="{{eventScoreDetails.score_set}}"><template is="dom-if-banner" if="[[!_isEqualTo(index, '0')]]"><li class="event_table_part"><span class="part_home" title="{{item.homeScore}}">{{item.homeScore}}</span> <span class="part_away" title="{{item.awayScore}}">{{item.awayScore}}</span></li></template></template><template is="dom-repeat-banner" items="{{eventScoreDetails.score_whole}}"><template is="dom-if-banner" if="[[_isEqualTo(index, '0')]]"><li class="event_table_part event_table_part_whole"><span class="part_home" title="{{item.homeScore}}">{{item.homeScore}}</span> <span class="part_away" title="{{item.awayScore}}">{{item.awayScore}}</span></li></template></template><template is="dom-repeat-banner" items="{{eventScoreDetails.score_current}}"><template is="dom-if-banner" if="[[_isEqualTo(index, '0')]]"><li class="event_table_part event_table_part_whole event_table_part_current"><span class="part_home" title="{{item.homeScore}}">{{item.homeScore}}</span> <span class="part_away" title="{{item.awayScore}}">{{item.awayScore}}</span></li></template></template></ul></div></template></template><template is="dom-if-banner" if="[[_isEqualTo(widget_layout, '3')]]"><section><div class="outMatchName livematch layout_id_3_text_center"><div><template is="dom-if-banner" if="[[_isEqualOrIncident(text.status_id, '2', incident_tournament)]]"><span class$="liveicon liveicon-{{language}}">{{text.liveText}}</span> <span hidden$="[[_showInterval(text.timecount)]]"><span class="liveicon">{{text.timecount}}</span></span> <span class="nameMarketRender" title="{{text.marketname}}">{{text.marketname}}</span></template></div></div><div class="layout_id_3 table_detail"><ul class="event_table"><li class="event_table_part"><span class="part_name inMatchName layout_id_3_text_center"><template is="dom-if-banner" if="[[_isEqualOrIncident(text.status_id, '2', incident_tournament)]]"><span class$="liveicon liveicon-{{language}}">{{text.liveText}}</span> <span hidden$="[[_showInterval(text.timecount)]]"><span class="liveicon">{{text.timecount}}</span></span> <span class="nameMarketRender" title="{{text.marketname}}">{{text.marketname}}</span></template></span></li></ul></div></section></template><template is="dom-if-banner" if="[[_isEqualTo2(widget_layout, '7', widget_layout, '8')]]"><section><div class="outMatchName livematch"><div><span class$="liveicon liveicon-{{language}}">{{text.liveText}}</span> <span class="sport_name" title="{{text.sportName}}">{{text.sportName}}</span> <span class="separator">/ </span><span class="part_name" title="{{text.partName}}">{{text.partName}}</span></div></div><div class="table_detail"><ul class="event_table"><li class="event_table_part minute_set"><span class="part_name inMatchName"></span> <span class="part_time" title="{{text.minute}}">{{text.minute}}</span> <span class="part_timesec" title="{{text.minsec}}">{{text.minsec}}</span></li><li class="event_table_part"><span class="part_name inMatchName"></span> <span class="part_home" title="{{text.homeName}}">{{text.homeName}}</span> <span class="part_away" title="{{text.awayName}}">{{text.awayName}}</span></li><template is="dom-repeat-banner" items="{{eventScoreDetails.score_set}}"><template is="dom-if-banner" if="[[!_isEqualTo(index, '0')]]"><li class$="event_table_part score_set {{_con2(index, eventScoreDetails.score_set.length, 'score')}}"><span class="part_name inMatchName" title="{{item.eventPartName}}">{{item.eventPartName}}</span> <span class="part_home" title="{{item.homeScore}}">{{item.homeScore}}</span> <span class="part_away" title="{{item.awayScore}}">{{item.awayScore}}</span></li></template></template><template is="dom-repeat-banner" items="{{eventScoreDetails.score_whole}}"><template is="dom-if-banner" if="[[_isEqualTo(index, '0')]]"><li class="event_table_part event_table_part_whole"><span class="part_name inMatchName" title="{{item.eventPartName}}">{{item.eventPartName}}</span> <span class="part_home" title="{{item.homeScore}}">{{item.homeScore}}</span> <span class="part_away" title="{{item.awayScore}}">{{item.awayScore}}</span></li></template></template><template is="dom-repeat-banner" items="{{eventScoreDetails.score_current}}"><template is="dom-if-banner" if="[[_isEqualTo(index, '0')]]"><li class="event_table_part event_table_part_whole event_table_part_current"><span class="part_name inMatchName" title="{{item.eventPartName}}">{{item.eventPartName}}</span> <span class="part_home" title="{{item.homeScore}}">{{item.homeScore}}</span> <span class="part_away" title="{{item.awayScore}}">{{item.awayScore}}</span></li></template></template></ul></div><template is="dom-if-banner" if="[[_isEqualTo(widget_layout, '8')]]"><div class="table_detail table_market_name"><ul class="event_table"><li class="event_table_part pendingInMatch"><span class="part_name inMatchName"><div>{{text.marketname}}</div></span></li></ul></div></template></section></template><div class$="label_name {{text.labelStyle}}"><span>{{text.labelName}}</span></div></template></div><template is="dom-if-banner" if="[[_isEqualTo2(widget_layout, '9', widget_layout, '13')]]"><div class="top-content"><div class="box_of_content"><template is="dom-if-banner" if="{{text.title}}"><div class="contentMain"><span class="eventtitle">{{text.title}}</span></div></template><template is="dom-if-banner" if="{{text.content}}"><div class="contentMain"><span class="eventcontent">{{text.content}}</span></div></template></div><div class="details"><span class="part_home" title="{{text.homeName}}">{{text.homeName}}</span> - <span class="part_away" title="{{text.awayName}}">{{text.awayName}}</span></div><div class="details"><span class="show_time" title="{{text.time}}">{{text.time}}</span> <span class="tournament_name" title="{{text.tournamentName}}">{{text.tournamentName}}</span></div></div></template><template is="dom-if-banner" if="[[_isEqualTo(widget_layout, '13')]]"><section><div class="table_detail table_market_name"><ul class="event_table"><li class="event_table_part pendingInMatch"><span class="part_name inMatchName"><div>{{text.marketname}}</div></span></li></ul></div></section></template><div id="incident_button" class="incident_button"></div><div id="slidebanner" class="slidebanner"></div><template is="dom-if-banner" if="[[_isEqualTo(tid, '12')]]"><div class="bottom-content"><button class="btViewAll" on-click="handleLink" data-link="link_tournament_outright">{{text.viewAll}}</button></div></template><template is="dom-if-banner" if="[[_isDetailBottom(widget_layout)]]"><div class="bottom-content"><div class="box_of_content"><template is="dom-if-banner" if="{{text.title}}"><div class="contentMain"><span class="eventtitle">{{text.title}}</span></div></template><template is="dom-if-banner" if="{{text.content}}"><div class="contentMain"><span class="eventcontent">{{text.content}}</span></div></template></div><div class="breadcrumb"><span class="sport_name" title="{{text.sportName}}" on-click="handleLink" data-link="link_sport">{{text.sportName}}</span> <span class="separator">&gt; </span><span class="country_name" title="{{text.countryName}}" on-click="handleLink" data-link="link_location">{{text.countryName}}</span> <span class="separator">&gt; </span><span class="tournament_name" title="{{text.tournamentName}}" on-click="handleLink" data-link="link_tournament">{{text.tournamentName}}</span></div><div class="market-container"><div class="market-row"><template is="dom-repeat-banner" items="{{marketsColumn}}"><div class$="market-column market-column-{{marketsColumn.length}} {{item.class}}"><div class="market-column-name">{{item.name}}</div><div class="market-column-value">{{item.value}}%</div><div class="market-column-bar"><div class="market-column-bar-value" style="width:25%" style$="width:[[item.value]]%"></div></div></div></template></div></div></div></template></div></section></div></div></div></div><section data-slider="slider" id="type_slider"><div id="primary-slider" class="splide"><div class="splide__arrows"><button class="splide__arrow splide__arrow--prev"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40"><path d="m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z"></path></svg></button> <button class="splide__arrow splide__arrow--next"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40"><path d="m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z"></path></svg></button></div><div class="splide__track"><ul class="splide__list" id="ul_slide"></ul></div></div><div class="cleardiv"></div><div id="secondary-slider" class="splide"><div class="splide__track"><ul class="splide__list" id="ul_slide2"></ul></div></div></section><style>.fullwidth{width:100%;}.defaultSection{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;}.buttonNav_btn{display:none;}.buttonNavSection{width:100%;}#type_slider .buttonNavSection{height:100%;}.buttonNavLayout{position:relative;padding:6px 0 10px;min-height:58px;box-sizing:border-box;flex-direction:column;align-items:center;justify-content:center;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;height:100%;}.buttonNavLayout .buttonNav_image{min-height:25px;background-repeat:no-repeat;background-position:center;background-size:contain;width:100%;height:100%;}.buttonNavLayout .buttonNav_title{min-height:12px;font-size:12px;color:var(--banner-matrix-navbar-text, #000);text-align:center;font-weight:bold;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.buttonNavLi{display:-webkit-box;display:-ms-flexbox;display:flex;align-items:center;justify-content:center;}.showcursor{cursor:pointer;}.no_link_btn{display:none;}.opacity0{opacity:0;}.show_action_incident{text-align:center;padding:10px 10px;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:22px;font-size:20px;}.li_image{width:100%;height:100%;position:absolute;background-position:center !important;background-repeat:no-repeat !important;background-size:cover !important;}.li_image.disable_crop_background{background-size:contain !important;}.li_image>img.preload, .buttonNav_image>img.preload, #backgroundBanner2>img.preload, .thumbstyle>img.preload{width:1px;height:1px;visibility:hidden;}img.preload[src*=""], img.preload[src=""]{display:none;}.container_video{height:100%;width:100%;}.container_video video{object-fit:cover;height:100%;width:100%;}.linkBanner{cursor:pointer;}.promotionBanner .linkBanner{cursor:auto;}.promotionBanner .showcursor.linkBanner{cursor:pointer;}.widget-mobile-xs.linkcursor .linkBanner{cursor:pointer;}.part_name .sport_competition{display:none;}.contentMain{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0 10px;}.eventcontent, .eventtitle{text-align:center;margin:0 auto;padding:3px 10px;}.eventcontent{font-size:12px;color:var(--banner-matrix-pannel-2-text, #95b9df);background-color:var(--banner-matrix-pannel-2-background, rgba(0, 0, 0, 0.3));margin-top:12px;margin-bottom:3px;}.eventtitle{font-size:20px;color:var(--banner-matrix-pannel-1-text, #fff);background-color:var(--banner-matrix-pannel-1-background, rgba(0, 0, 0, 0.4));margin-bottom:15px;}.bm_layout_13 .eventcontent, .bm_layout_13 .eventtitle{width:100%;text-align:left;background-color:transparent;margin:initial;padding:initial;}.promotionBanner .eventtitle{color:var(--banner-matrix-text-default, #7794b2);}.trbg{background-color:rgba(32, 43, 60, 0.8);}.outMatchName{display:none;color:var(--banner-matrix-text-default, #7794b2);font-family:sans-serif;font-size:14px;}.inMatchName{display:block;}.table_detail .table_name_col{list-style:none;}.table_detail{font-family:sans-serif;color:var(--banner-matrix-text-default, #7794b2);display:-webkit-box;display:-ms-flexbox;display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0 10px;}.table_name_col{flex:0 0 auto;overflow:hidden;max-width:50%;}.event_table{width:100%;padding-left:0px;display:-webkit-box;display:-ms-flexbox;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-end;position:relative;margin-top:0px;margin-bottom:0px;padding:0 1px;}.event_table_part{flex:1 1 auto;max-width:30px;min-width:30px;text-align:center;font-size:14px;transition:transform .3s ease, background-color .3s ease;padding:3px 0;display:-webkit-box;display:-ms-flexbox;display:flex;flex-direction:column;}.event_table_part .part_name{height:36px;line-height:36px;width:100%;margin-bottom:6px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.event_table_part .part_home, .event_table_part .part_away{height:36px;line-height:36px;padding:0px;margin-bottom:2px;color:var(--banner-matrix-pannel-2-text, #95b9df);background-color:var(--banner-matrix-pannel-2-background, rgba(0, 0, 0, 0.3));transition:color .3s ease;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:default;}.linkBanner .event_table_part .part_home, .linkBanner .event_table_part .part_away{cursor:pointer;}.event_table_part:first-child .part_home, .event_table_part:first-child .part_away{color:var(--banner-matrix-pannel-1-text, #fff);background-color:var(--banner-matrix-pannel-1-background, rgba(0, 0, 0, 0.4));padding-left:10px;}.bm_layout_7 .event_table_part:first-child .part_home, .bm_layout_8 .event_table_part:first-child .part_away{background-color:transparent;padding:0px;text-align:center;}.event_table_part.event_table_part_whole .part_home, .event_table_part.event_table_part_whole .part_away{font-weight:700;color:var(--banner-matrix-pannel-3-text, #068f00);background-color:var(--banner-matrix-pannel-3-background, rgba(0, 0, 0, 0.5));}.slidebanner{color:var(--banner-matrix-text-default, #7794b2);display:-webkit-box;display:-ms-flexbox;display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0 10px;margin-bottom:5px;}.bm_type_12 .slidebanner{display:block;}.btLink, .btCoupon, .btViewAll{min-width:70px;outline:none;cursor:pointer;height:inherit;padding:10px;box-sizing:border-box;text-decoration:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:400;font-size:14px;line-height:20px;color:var(--banner-matrix-odd-button-default-text-main, #95b9df);background-color:var(--banner-matrix-odd-button-default-background, #345880);margin:1px;border:none;transition:background .2s ease, color .2s ease, border .2s ease;justify-content:space-between;}.btViewAll{min-width:100%;width:100%;margin:0;}.bgButton2{width:33%;display:-webkit-box;display:-ms-flexbox;display:flex;align-items:center;justify-content:center;position:relative;outline:none;cursor:pointer;height:inherit;padding:0 4px;min-width:40px;box-sizing:border-box;text-decoration:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:400;font-size:13px;color:var(--banner-matrix-odd-button-default-text-main, #95b9df);background-color:var(--banner-matrix-odd-button-default-background, #345880);margin:1px;border:none;transition:background .2s ease, color .2s ease, border .2s ease;line-height:36px;flex:1 1 auto;justify-content:space-between;line-height:40px;}@media (hover: hover) and (pointer: fine){.bgButton2:hover{color:var(--banner-matrix-odd-button-hover-text-main, #fff);background-color:var(--banner-matrix-odd-button-hover-background, #4077b2);}}.bgButton2:nth-child(n+4){display:none;}.bgButton2 .oddButton{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;flex:1 1 auto;justify-content:space-between;}.bgButton2 .oddButtonName{color:var(--banner-matrix-odd-button-default-text-main, #95b9df);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;line-height:14px;}.bgButton2 .oddButtonValue{color:var(--banner-matrix-odd-button-default-text-main, #95b9df);font-size:14px;line-height:16px;}.bgButton2 .oddButtonValue .odvOld, .cpItem-odd.bgButton2 .odvOld, .btCoupon .odvOld{text-decoration:line-through;}@media (hover: hover) and (pointer: fine){.bgButton2:hover .oddButtonName, .bgButton2:hover .oddButtonValue{color:var(--banner-matrix-odd-button-hover-text-main, #fff);}}.bgButton2 .oddButton{display:block;padding:5px 0;}.activeButton, .activeButton:hover{color:var(--banner-matrix-odd-button-selected-text-main, #202b3c);background-color:var(--banner-matrix-odd-button-selected-background, #e7b900);}.activeButton .oddButtonName, .activeButton:hover .oddButtonName, .activeButton .oddButtonValue, .activeButton:hover .oddButtonValue{color:var(--banner-matrix-odd-button-selected-text-main, #202b3c);}.bgButton2.btGreen, .bgButton2.btRed{position:relative;}.bgButton2.btGreen::after, .bgButton2.btRed::after{content:'';position:absolute;right:1px;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;-webkit-animation:Blinker6 .5s infinite alternate;animation:Blinker6 .5s infinite alternate;}.bgButton2.btGreen::after{top:3px;border-bottom:5px solid green;border-bottom-color:var(--banner-matrix-odd-button-default-increasing, green);transform:rotate(45deg);}.bgButton2.btRed::after{bottom:3px;border-top:5px solid red;border-top-color:var(--banner-matrix-odd-button-default-decreasing, red);transform:rotate(-45deg);}.bgButton2.btnDisable.btGreen::after, .bgButton2.btnDisable.btRed::after{display:none;}.bgButton2.activeButton.btGreen::after{border-bottom-color:var(--banner-matrix-odd-button-selected-increasing, green);}.bgButton2.activeButton.btRed::after{border-top-color:var(--banner-matrix-odd-button-selected-decreasing, red);}@-webkit-keyframes Blinker6{to{opacity:.6;}}@keyframes Blinker6{to{opacity:.6;}}.btLink:focus, .bgButton2:focus{outline:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);}.btnDisable, .btnDisable.btRed, .btnDisable.btGreen, .btnDisable.activeButton, .bgButton2.btnDisable:hover, .bgButton2.btnDisable:focus{cursor:default;color:var(--banner-matrix-odd-button-disabled-text, hsla(0, 0%, 50.2%, 0.4));background-color:var(--banner-matrix-odd-button-disabled-background, rgba(30, 30, 30, 0.4));}.btnDisable .oddButtonName, .btnDisable .oddButtonValue, .bgButton2.btnDisable .oddButtonName, .bgButton2.btnDisable .oddButtonValue, .bgButton2.btnDisable.btRed .oddButtonName, .bgButton2.btnDisable.btGreen .oddButtonName, .bgButton2.btnDisable.btRed .oddButtonValue, .bgButton2.btnDisable.btGreen .oddButtonValue, .bgButton2.btnDisable.activeButton .oddButtonName, .bgButton2.btnDisable.activeButton .oddButtonValue{color:var(--banner-matrix-odd-button-disabled-text, hsla(0, 0%, 50.2%, 0.4));}.event_table li:first-child{width:100%;max-width:100%;text-align:left;padding-left:0px;}.bm_layout_7 .event_table li:first-child, .bm_layout_8 .event_table li:first-child, .bm_layout_13 .event_table li:first-child{min-width:45px;width:45px;justify-content:center;}.bm_layout_7 .event_table_part .part_time, .bm_layout_8 .event_table_part .part_time, .bm_layout_7 .event_table_part .event_part, .bm_layout_8 .event_table_part .event_part{color:var(--banner-matrix-pannel-4-text, #ff3f48);text-align:center;}.event_table_part .part_timesec, .part_name_right .part_timesec{display:none;}.bm_layout_7 .event_table li:nth-child(2), .bm_layout_8 .event_table li:nth-child(2){color:var(--banner-matrix-pannel-1-text, #fff);width:100%;max-width:100%;text-align:left;padding-left:0px;}.bm_layout_7 .outMatchName.livematch, .bm_layout_8 .outMatchName.livematch{text-align:center;}.bm_layout_7 .table_detail.table_market_name .part_name.inMatchName div, .bm_layout_8 .table_detail.table_market_name .part_name.inMatchName div, .bm_layout_13 .table_detail.table_market_name .part_name.inMatchName div{width:100%;}.event_table li:first-child .part_name{font-size:12px;font-weight:lighter;}.event_table li:last-child{padding-right:0px;}.widget-tablet .outMatchName{display:none;}.widget-tablet .inMatchName{display:block;}.bm_layout_13 .bottom-content{padding:5px 10px;}.has_bullet:not(.bm_layout_9):not(.bm_layout_13) .slidebanner, .bm_layout_9.has_bullet .bottom-content{margin-bottom:25px;}.has_bullet .cpFooter{padding-bottom:20px;}.bm_layout_13.has_bullet .bottom-content{margin-bottom:20px;}.label_name{display:none;}.liveicon{background-color:var(--banner-matrix-label-background, #068f00);color:var(--banner-matrix-label-text, #fff);font-size:10px;display:inline-block;padding:5px;line-height:7px;}.divCloseSelectPopup{position:absolute;right:0;top:0;padding:5px 10px;z-index:9999;font-size:16px;color:#000;cursor:pointer;}.selectClosePopup{z-index:9999;position:absolute;width:98%;top:8px;right:1%;}.selectClosePopup .selectClosePopup_article{display:-webkit-box;display:-ms-flexbox;display:flex;background-color:rgba(227, 232, 239, 0.6);padding:5px;font-size:14px;}.selectClosePopup .selectClosePopup_article .selectClosePopup_text{flex:1;margin-right:25px;}.selectClosePopup .selectClosePopup_article .selectClosePopup_text a{color:#000;font-weight:bold;}.banner_layout_6 .overlaybanner{background-color:transparent;}@media only screen and (min-width: 576px) and (max-width: 767px){.outMatchName{display:none;}.inMatchName{display:block;}.bgButton2 .oddButton{display:block;padding:5px 0;}.bgButton2 .oddButtonName{font-size:10px;line-height:14px;}.bgButton2 .oddButtonValue{line-height:16px;}}.widget-mobile-xs .outMatchName{display:block;padding:0 10px;font-size:12px;}.widget-mobile-xs .outMatchName .showtime{text-align:right;}.widget-mobile-xs .outMatchName .showtime .liveicon{float:left;line-height:10px;}.widget-mobile-xs .inMatchName{display:none;}.bm_layout_7 .widget-mobile-xs .inMatchName, .bm_layout_8 .widget-mobile-xs .inMatchName, .bm_layout_13 .widget-mobile-xs .inMatchName, .bm_layout_7 .widget-mobile-xxs .inMatchName, .bm_layout_8 .widget-mobile-xxs .inMatchName, .bm_layout_13 .widget-mobile-xxs .inMatchName{display:block;}.widget-mobile-xs .bgButton2 .oddButton{display:block;padding:5px 0;}.widget-mobile-xs .bgButton2 .oddButtonName{font-size:10px;line-height:14px;}.widget-mobile-xs .bgButton2 .oddButtonValue{font-size:12px;line-height:14px;}.widget-mobile-xs .matchHighlight{display:block;text-align:center;}.widget-mobile-xs .matchHighlightHomeName, .widget-mobile-xs .matchHighlightAwayName{width:100%;text-align:center;}.widget-mobile-xs .matchHighlightAwayName{text-align:center;}.widget-mobile-xs .matchHighlightVs{text-align:center;width:100%;}.bm_layout_7 .widget-mobile-xxs .matchHighlightHomeName, .bm_layout_7 .widget-mobile-xxs .matchHighlightAwayName, .bm_layout_8 .widget-mobile-xxs .matchHighlightHomeName, .bm_layout_8 .widget-mobile-xxs .matchHighlightAwayName{line-height:36px;}.bm_layout_7 .outMatchName, .bm_layout_8 .outMatchName{display:block;color:var(--banner-matrix-text-default, #7794b2);font-family:sans-serif;font-size:12px;font-weight:lighter;padding:0px 10px;}.bm_layout_7 .part_name, .bm_layout_8 .part_name, .bm_layout_13 .part_name{color:var(--banner-matrix-text-highlight, #fff);}.bm_sport_26 .event_table_part.event_table_part_whole{width:65px;min-width:65px;}.box_of_content{min-height:25px;}.bm_layout_9 .box_of_content, .bm_layout_13 .box_of_content{display:flex;flex-wrap:wrap;}.bm_layout_9 .top-content .box_of_content .contentMain, .bm_layout_13 .top-content .box_of_content .contentMain{padding:0;}.bm_layout_9 .bottom-content .box_of_content{display:none;}.bm_layout_9 .contentMain, .bm_layout_13 .contentMain{width:100%;}.bm_layout_9 .breadcrumb{font-size:11px;padding:0 10px;margin:2px 0;color:var(--banner-matrix-label-text, #fff);pointer-events:none;}.bm_layout_9 .market-row{display:flex;flex-wrap:wrap;border-top:1px #ccc solid;padding:10px;}.bm_layout_9 .market-column{flex:auto;text-align:center;}.bm_layout_9 .market-column-1{max-width:100%;}.bm_layout_9 .market-column-2{max-width:50%;}.bm_layout_9 .market-column-3{max-width:33.3333%;}.bm_layout_9 .market-column.disabled{opacity:0.2;}.bm_layout_9 .market-column-name{font-size:12px;color:var(--banner-matrix-label-text, #fff);}.bm_layout_9 .market-column-value{font-size:14px;margin-top:2px;margin-bottom:5px;color:#89bc22;}.bm_layout_9 .market-column-bar{width:50%;height:10px;background-color:#637582;margin:0 auto;border-radius:15px;overflow:hidden;}.bm_layout_9 .market-column-bar-value{height:100%;background-color:#89bc22;transition:0.5s cubic-bezier(0.075, 0.82, 0.165, 1);}.bm_layout_9 .top-content, .bm_layout_13 .top-content{font-size:11px;line-height:18px;padding:0 10px;color:var(--banner-matrix-label-text, #fff);}.bm_layout_13 .top-content, .bm_layout_13 .top-content .details{display:none;}.bm_layout_9 .eventtitle, .bm_layout_9 .eventcontent{font-size:16px;background-color:initial;padding:0px;margin:0px;}.bm_layout_9 .eventcontent{font-size:11px;}.cpContainer{width:100%;height:100%;display:flex;flex-direction:column;justify-content:space-between;}.cpContent{overflow:auto;display:flex;flex:1;flex-wrap:wrap;padding:0 10px;align-content:flex-start;height:100%;}.cpItem-checkbox{display:none;}.bm_type_9 .cpItem-checkbox, .bm_type_11 .cpItem-checkbox{display:none !important;}.bm_type_12 .bgButton2{display:inline-flex;width:initial;float:right;padding:5px 10px;min-width:60px;}.bm_type_12 .bgButton2 .oddButtonName{display:none;}.oddOutright{width:100%;display:table;}.oddOutright .oddName{display:inline-flex;padding:5px 0px;}.cpItem-item{display:flex;box-sizing:border-box;color:var(--banner-matrix-label-text, #fff);width:100%;}.cpItem-item.cpItem-hide{display:none;}.cpItem-left{padding:5px;display:flex;align-items:center;justify-content:center;pointer-events:none;}.bm_type_9 .cpItem-left, .bm_type_11 .cpItem-left{pointer-events:none !important;}.bm_layout_11 .cpItem-left, .bm_layout_12 .cpItem-left{width:10px;position:relative;}.bm_layout_11 .cpItem-left::before, .bm_layout_12 .cpItem-left::before{content:'';position:absolute;border-left:solid 1px #fff;height:calc(100% - 10px);margin-top:40px;}.bm_layout_11 .cpItem-item.item-last .cpItem-left::before, .bm_layout_12 .cpItem-item.item-last .cpItem-left::before{border:none;}.bm_layout_11 .cpItem-left::after, .bm_layout_12 .cpItem-left::after{content:'';position:absolute;width:9px;height:9px;border:1px #fff solid;border-radius:50%;top:15px;z-index:1;}.cpItem-right{padding:5px;width:100%;}.cpItem-info{font-size:12px;display:none;}.cpItem-info .cpItem-tournament{display:none;}.cpItem-info .cpItem-time{float:right;}.cpItem-title, .cpHeader{display:flex;padding-top:5px;}.cpItem-name{font-weight:bold;font-size:14px;text-overflow:ellipsis;width:100%;}.cpItem-odd, .cpItem-odd.bgButton2{color:var(--banner-matrix-label-2-text, #ccc);font-weight:normal;font-size:13px;text-align:right;width:auto;background-color:initial;line-height:normal;display:table;}.cpItem-odd:hover, .cpItem-odd.bgButton2:hover{background-color:initial;color:var(--banner-matrix-label-2-text, #ccc);}.bm_layout_11 .cpItem-odd, .bm_layout_12 .cpItem-odd, .bm_type_9 .cpItem-odd, .bm_type_11 .cpItem-odd{display:none;}.cpItem-detail{color:var(--banner-matrix-label-2-text, #ccc);font-size:12px;display:inline-grid;}.cpItem-event{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;}.bm_layout_11 .cpItem-event:last-child, .bm_layout_12 .cpItem-event:last-child, .bm_type_9 .cpItem-event:last-child .bm_type_11 .cpItem-event:last-child{display:none;}.cpItem-comma, .cpItem-eventPartName, .bm_layout_11 .cpItem-left .cpItem-sport, .bm_layout_12 .cpItem-left .cpItem-sport{display:none;}.cpItem-home, .cpItem-away{text-decoration:underline;}.cpEvent{display:flex;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:5px 0px;}.cpEvent .cpItem-home, .cpEvent .cpItem-away, .cpEvent .cpItem-eventDash{font-size:14px;color:var(--banner-matrix-pannel-1-text, #fff);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:20px;}.cpEvent .cpItem-eventDash{margin:0 2px;}.cpFooter{padding:0px 10px;width:100%;box-sizing:border-box;background-color:rgba(0, 0, 0, 0.5);}.bm_layout_11 .cpFooter, .bm_layout_12 .cpFooter{background-color:transparent;}.cpFooter-main{display:flex;margin:0 auto;}.cpFooter-main div{flex:auto;}.cpFooter-center{text-align:center;width:50%;padding:5px 0px;}.btCoupon{color:var(--banner-matrix-odd-button-default-text-main, #95b9df);background-color:var(--banner-matrix-odd-button-default-background, #345880);padding:2px;font-size:12px;width:100%;}.btCoupon.btCouponActive{color:var(--banner-matrix-odd-button-selected-text-main, #202b3c);background-color:var(--banner-matrix-odd-button-selected-background, #e7b900);}.bm_layout_11 .btCoupon, .bm_layout_12 .btCoupon{min-height:44px;}.btCoupon:disabled{color:var(--banner-matrix-odd-button-default-text-main, #95b9df);background-color:var(--banner-matrix-odd-button-default-background, #345880);cursor:initial;opacity:0.4;}.bm_layout_11 .btCoupon div:last-child, .bm_layout_12 .btCoupon div:last-child{display:none;}.cpSection .bgButton2{cursor:initial;background-color:initial;border:none;}.widget-tablet .cpItem-item{width:50%;}.widget-desktop .cpItem-item{width:33%;}.widget-tablet .cpFooter-main{width:80%;}.widget-desktop .cpFooter-main{width:40%;}.cpSection, .cpHeader-center, .widget-mobile .cpHeader-center .contentMain, .widget-mobile .cpFooter-center{width:100%;}.widget-mobile .cpHeader-center{display:flex;flex-wrap:wrap;}.cpHeader-center{overflow:hidden;}.cpHeader-center .eventtitle, .cpHeader-center .eventcontent{padding:0;margin:0;background-color:initial;}.cpHeader-center .eventtitle{font-size:16px;}.bm_layout_11 .cpHeader-center .eventtitle, .bm_layout_12 .cpHeader-center .eventtitle{font-size:14px;}.bm_layout_12 .cpHeader-center .contentMain:first-child, .bm_type_17 .cpHeader-center .contentMain:first-child{display:none;}.cpHeader-left, .cpHeader-right{width:50px;color:var(--banner-matrix-text-highlight, #fff);text-align:right;padding:0 10px;display:none;}.cpContent .bgButton2.btGreen .odv, .cpContent .bgButton2.btRed .odv{color:var(--banner-matrix-text-highlight, #fff);padding:0 2px;}.cpContent .bgButton2.btGreen .odv{background-color:var(--banner-matrix-odd-button-default-increasing, green);}.cpContent .bgButton2.btRed .odv{background-color:var(--banner-matrix-odd-button-default-decreasing, red);}.cpContent .bgButton2.btGreen::after, .cpContent .bgButton2.btRed::after{left:-5px;transform:rotate(0deg);}.cpContent .bgButton2.btRed::after{bottom:5px;}.incident_button{color:var(--banner-matrix-text-default, #7794b2);display:none;flex-direction:row;align-items:center;justify-content:space-between;padding:0px 10px;margin-bottom:5px;}.bm_layout_7 .titleTop, .bm_layout_8 .titleTop, .bm_layout_13 .titleTop, .layout_id_2.titleTop{position:absolute;width:100%;padding-top:5px;}.bm_layout_7 .icontime, .bm_layout_8 .icontime, .bm_layout_13 .icontime, .layout_id_2 .icontime{fill:#fff;}.bm_layout_7 .titleTop .part_name, .bm_layout_8 .titleTop .part_name, .bm_layout_13 .titleTop .part_name, .layout_id_2 .part_name{font-family:sans-serif;color:var(--banner-matrix-text-highlight, #fff);display:-webkit-box;display:-ms-flexbox;display:flex;flex-direction:row;padding:0px 10px 10px 10px;position:relative;font-size:12px;font-weight:lighter;box-sizing:border-box;}.bm_layout_7 .titleTop .part_name_right .part_name, .bm_layout_8 .titleTop .part_name_right .part_name, .bm_layout_13 .titleTop .part_name_right .part_name{display:inline-block;}.bm_layout_7 .titleTop .part_name_right .iconcalendar, .bm_layout_8 .titleTop .part_name_right .iconcalendar, .bm_layout_13 .titleTop .part_name_right .iconcalendar{fill:var(--banner-matrix-text-highlight, #fff);}.bm_layout_7 .part_name .part_name_left, .bm_layout_7 .part_name .part_name_right, .bm_layout_8 .part_name .part_name_left, .bm_layout_8 .part_name .part_name_right, .bm_layout_13 .part_name .part_name_left, .bm_layout_13 .part_name .part_name_right, .layout_id_2 .part_name .part_name_left, .layout_id_2 .part_name .part_name_right{width:50%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.bm_layout_7 .part_name .part_name_left, .bm_layout_8 .part_name .part_name_left, .bm_layout_13 .part_name .part_name_left, .layout_id_2 .part_name .part_name_left{text-align:left;}.bm_layout_7 .widget-mobile-xxs .part_name .part_name_right, .bm_layout_8 .widget-mobile-xxs .part_name .part_name_right{display:none;}.bm_layout_7 .part_name .part_name_right, .bm_layout_8 .part_name .part_name_right, .bm_layout_13 .part_name .part_name_right, .layout_id_2 .part_name .part_name_right{text-align:right;}.layout_id_2 .event_name{font-family:sans-serif;color:var(--banner-matrix-text-highlight, #fff);display:-webkit-box;display:-ms-flexbox;display:flex;flex-direction:row;margin:15px;}.layout_id_2 .event_name .event_name_left, .layout_id_2 .event_name .event_name_right{width:50%;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:bold;font-size:18px;padding-top:5px;}.layout_id_2 .event_name .event_name_center{width:50px;text-align:center;}.layout_id_2 .event_name .event_name_center.event_name_center_live{width:100px;text-align:center;}.layout_id_2 .event_name .event_name_center.event_market_center_live{width:100%;text-align:center;font-size:12px;line-height:12px;}.layout_id_2 .event_name .event_name_center>div.event_name_center_circle{border:1px #fff solid;border-color:var(--banner-matrix-text-highlight, #fff);border-radius:50%;width:22px;height:22px;margin:0 auto;text-align:center;font-size:17px;line-height:normal;}.layout_id_2 .event_name .event_name_center>div.event_name_center_time{font-weight:100;font-size:12px;width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:21px;}.layout_id_2 .event_name .event_name_center>div.event_name_center_score{font-weight:bold;font-size:18px;min-height:21px;}.flag_icon span, .sport_icon span{display:inline-flex;width:10px;height:10px;background-size:cover;border-radius:50%;margin-right:5px;}.sport_icon_color span{display:inline-flex;width:10px;height:10px;margin-right:5px;background-color:var(--banner-matrix-pannel-1-text, #fff);}.bm_layout_10 .sport_icon span, .bm_layout_11 .sport_icon span, .bm_layout_12 .sport_icon span, .bm_layout_10 .sport_icon_color span, .bm_layout_11 .sport_icon_color span, .bm_layout_12 .sport_icon_color span{width:20px;height:20px;}.sport_icon_color, .bm_layout_11 .sport_icon, .bm_layout_12 .sport_icon{display:none;}.bm_layout_11 .sport_icon_color, .bm_layout_12 .sport_icon_color{display:block;}.layout_id_2 .part_name .part_name_left .sport_icon, .layout_id_2 .part_name .part_name_left .sport_icon_color, .layout_id_2 .part_name .part_name_left .flag_icon{display:none;}.bm_layout_7 .matchHighlight, .bm_layout_8 .matchHighlight, .bm_layout_7 .matchHighlightHomeName, .bm_layout_7 .matchHighlightAwayName, .bm_layout_8 .matchHighlightHomeName, .bm_layout_8 .matchHighlightAwayName{text-align:center;width:100%;line-height:36px;box-sizing:border-box;}.bm_layout_7 .matchHighlightVs, .bm_layout_8 .matchHighlightVs, .bm_layout_7 .pendingInMatch .separator, .bm_layout_8 .pendingInMatch .separator, .bm_layout_7 .pendingInMatch .show_time, .bm_layout_8 .pendingInMatch .show_time, .bm_layout_7 .outMatchName.livematch .liveicon, .bm_layout_8 .outMatchName.livematch .liveicon, .bm_layout_7 .outMatchName.livematch .separator, .bm_layout_8 .outMatchName.livematch .separator, .bm_layout_7 .outMatchName.livematch .part_name, .bm_layout_8 .outMatchName.livematch .part_name, .bm_layout_7 .widget-mobile-xxs .part_name_right, .bm_layout_8 .widget-mobile-xxs .part_name_right{display:none;}.bm_layout_7 .widget-mobile-xxs .part_name_left, .bm_layout_8 .widget-mobile-xxs .part_name_left{width:100%;}.bm_layout_7 .widget-mobile-xxs .pendingInMatch .part_name.inMatchName, .bm_layout_8 .widget-mobile-xxs .pendingInMatch .part_name.inMatchName, .bm_layout_7 .widget-mobile-xxs .outMatchName.livematch .separator, .bm_layout_8 .widget-mobile-xxs .outMatchName.livematch .separator, .bm_layout_7 .widget-mobile-xxs .outMatchName.livematch .part_name, .bm_layout_8 .widget-mobile-xxs .outMatchName.livematch .part_name, .bm_layout_7 .widget-mobile-xxs .pendingInMatch .show_time, .bm_layout_8 .widget-mobile-xxs .pendingInMatch .show_time, .bm_layout_7 .widget-mobile-xxs .pendingInMatch .separator, .bm_layout_8 .widget-mobile-xxs .pendingInMatch .separator, .bm_layout_7 .widget-mobile-xxs .outMatchName.livematch .liveicon, .bm_layout_8 .widget-mobile-xxs .outMatchName.livematch .liveicon{display:inline-block;}.bm_layout_7 .widget-mobile-xxs .outMatchName.livematch, .bm_layout_8 .widget-mobile-xxs .outMatchName.livematch{text-align:left;}.bm_layout_7 .titleTop, .bm_layout_8 .titleTop, .bm_layout_13 .titleTop{position:absolute;width:100%;font-family:sans-serif;color:var(--banner-matrix-text-default, #7794b2);font-size:12px;font-weight:lighter;box-sizing:border-box;}.bm_layout_7 .matchHighlight, .bm_layout_8 .matchHighlight{background-color:transparent;padding:0px 10px;}.bm_layout_7 .event_table_part:first-child .part_home, .bm_layout_7 .event_table_part:first-child .part_away, .bm_layout_8 .event_table_part:first-child .part_home, .bm_layout_8 .event_table_part:first-child .part_away, .bm_layout_7 .event_table_part .part_home, .bm_layout_7 .event_table_part .part_away, .bm_layout_8 .event_table_part .part_home, .bm_layout_8 .event_table_part .part_away, .bm_layout_7 .event_table_part.event_table_part_whole .part_home, .bm_layout_7 .event_table_part.event_table_part_whole .part_away, .bm_layout_8 .event_table_part.event_table_part_whole .part_home, .bm_layout_8 .event_table_part.event_table_part_whole .part_away{background-color:transparent;}.type_banner_popup .layout_id_2 .part_name_right, .type_banner_bottom .layout_id_2 .part_name_right{padding-right:20px;}.type_banner_popup .layout_id_2 .part_name, .type_banner_bottom .layout_id_2 .part_name{padding:5px 10px 10px 10px;}.tablescore_layout_id_2{padding:0 10px;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:space-between;}.tablescore_layout_id_2 .icontime{fill:var(--banner-matrix-text-highlight, #fff);}.tablescore_layout_id_2 .inMatchName{text-align:right;display:block;height:20px;line-height:20px;margin-bottom:0px;color:var(--banner-matrix-text-highlight, #fff);font-size:12px;font-weight:lighter;}.layout_id_3 .event_table_part .part_name{height:16px;line-height:16px;margin-bottom:5px;}.layout_id_3_text_center{text-align:center;}@media only screen and (max-width: 575px){.bgButton2 .oddButton{display:block;padding:5px 0;}.bgButton2 .oddButtonName{font-size:10px;line-height:14px;}.bgButton2 .oddButtonValue{font-size:12px;line-height:14px;}}@media only screen and (max-width: 320px){.outMatchName{display:block;padding:0 10px;font-size:12px;}.outMatchName .showtime{text-align:right;}.outMatchName .showtime .liveicon{float:left;line-height:10px;}.inMatchName{display:none;}}.matchHighlight{display:-webkit-box;display:-ms-flexbox;display:flex;flex-direction:row;padding:10px;position:relative;background-color:var(--banner-matrix-pannel-1-background, rgba(0, 0, 0, 0.4));color:var(--banner-matrix-pannel-1-text, #fff);}.matchHighlightHomeName, .matchHighlightAwayName{width:50%;font-size:14px;white-space:nowrap;overflow:hidden;}.matchHighlightAwayName{text-align:right;}.matchHighlightVs{text-align:center;width:6%;font-size:10px;padding-top:2px;}.pendingInMatch .inMatchName{text-align:center;height:26px;line-height:26px;margin-bottom:0px;}.bm_layout_13 .pendingInMatch .inMatchName{text-align:left;}.mobile_pending_sportname{text-align:center;}.mobile_pending_sportname div{margin-bottom:5px;}.countdownMain{height:40px;position:absolute;}.thumbstyle{background-position:center !important;background-repeat:no-repeat !important;background-size:cover !important;height:100%;cursor:pointer;}.backgroundBanner2, .backgroundBannerVideo{height:100%;width:100%;position:absolute;top:0;background-repeat:no-repeat;background-size:cover;background-position:center;overflow:hidden;}.backgroundBanner2.disable_crop_background{background-size:contain;}.backgroundBannerVideo>video{width:100%;}.backgroundBannerVideo>video.hide{display:none;}.videoControls{position:absolute;width:100%;height:100%;z-index:1;}.videoControls.videoControlsDisable{display:none;}.videoControlPlay,
        .videoControlSound{position:absolute;cursor:pointer;color:#fff;-webkit-tap-highlight-color:transparent;}.videoControlPlay{z-index:2;margin:auto;width:100%;height:100%;}.isMobile .videoControlPlay{width:initial;height:initial;bottom:0;left:0;}.videoControlSound{bottom:0;right:0;z-index:3;display:none;}.isMobile .videoControls.active .videoControlPlay:not(.disable), .isMobile .videoControls.active .videoControlSound:not(.disable), .videoControls:hover .videoControlSound{display:block;}.isMobile .videoControls:not(.active) .videoControlPlay, .isMobile .videoControls:not(.active) .videoControlSound, .isMobile .videoControls:not(.active):hover .videoControlSound{display:none;}.videoControlPlay.disable, .videoControlSound.disable{display:none;}.video-icon{padding:5px;width:15px;height:15px;}.video-icon svg{width:15px;height:15px;transform:none;position:relative;}.videoControlPlay .video-icon{bottom:0;left:0;position:absolute;}.isMobile .videoControlPlay .video-icon{position:relative;}.videoControlPlay.active .play-icon, .videoControlSound.active .mute-icon{display:none;}.videoControlPlay:not(.active) .play-icon, .videoControlSound:not(.active) .mute-icon{display:block;}.videoControlPlay.active .pause-icon, .videoControlSound.active .unmute-icon{display:block;}.videoControlPlay:not(.active) .pause-icon, .videoControlSound:not(.active) .unmute-icon{display:none;}#type_slider .thumbLeft{top:0;position:absolute;width:100%;}#type_slider .thumbRight{top:0;right:0;position:absolute;width:100%;}#type_slider::-webkit-scrollbar{width:0px;}.banner::-webkit-scrollbar, .cpContent::-webkit-scrollbar{width:5px;height:5px;}.banner::-webkit-scrollbar-thumb, .cpContent::-webkit-scrollbar-thumb{background-color:var(--banner-matrix-scrollbar-thumb, #4077b2);}.banner::-webkit-scrollbar-track-piece, .cpContent::-webkit-scrollbar-track-piece{background-color:var(--banner-matrix-scrollbar-track, #d4d4d4);}table#demotag{border:1px #666 dashed;width:100%;height:100%;background-color:#f2f2f2;color:#888;}div#slideSource{display:none;}.divCloseButton{position:absolute;right:0;top:0;padding:8px 10px;z-index:9999;}#closebutton{cursor:pointer;color:white;text-decoration:none;top:0;}.banner{position:relative;font-family:sans-serif;width:600px;height:auto;background-repeat:no-repeat;background-size:cover;background-position:center;background-color:var(--banner-matrix-background, #1e3147);}.overlaybanner{position:relative;min-height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;}.promotionBanner #slidebanner{display:none;}.bannerContentMain{width:100%;position:relative;align-self:flex-end;}.bannerContent{width:100%;padding-top:10px;}.promotionBanner .bannerContent{padding-top:20px;padding-bottom:20px;}.bm_layout_13 .bannerContent{padding-top:25px;}.bg-content{width:100%;align-self:flex-end;}.bg-content .body{padding-left:90px;}.bg-content .body.pendingBody{padding-left:0px;text-align:center;}.bg-content .body .detail{padding-bottom:20px;}.container{position:relative;}.sliderBanner{display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;}#buttondetail{display:none;align-items:center;justify-content:center;padding:0 10px;}.promotionBanner #buttondetail{display:-webkit-box;display:-ms-flexbox;display:flex;}#type_slider, .banner-container, .banner{height:100%;}#primary-slider{display:none;}#primary-slider.skeletonMain{background-color:transparent;display:block;border:0;}.type_banner_default{width:auto;z-index:0;border-radius:0px;}.type_banner_default .overlaybanner{border-radius:0px;}.bm_layout_13 .type_banner_default{overflow-y:auto;}.type_banner_bottom{position:fixed;z-index:9999;bottom:0px;left:50%;height:auto;transform:translate(-50%, 0px);border-radius:15px 15px 0px 0px;}.type_banner_bottom .backgroundBanner2, .type_banner_bottom .overlaybanner{border-radius:15px 15px 0px 0px;}.type_banner_popup{position:fixed;z-index:9999;bottom:50%;left:50%;height:auto;transform:translate(-50%, 0px);border-radius:0px;}.type_banner_popup .backgroundBanner2, .type_banner_popup .overlaybanner{border-radius:0px;}.type_stream_popup{position:fixed;z-index:9999;top:0;left:0;height:auto;border-radius:0px;}.banner.type_stream_popup{width:360px;}.type_stream_popup .bannerContentMain{display:none;}#timeCount{color:white;display:inline-block;width:70px;line-height:70px;font-size:25px;font-weight:bold;}svg{position:absolute;top:0;right:0;width:70px;height:70px;transform:rotateY(-180deg) rotateZ(-90deg);}.icontime, .iconcalendar{width:15px;height:15px;position:relative;fill:var(--banner-matrix-text-default, #7794b2);}.icontime{transform:rotateY(-180deg) rotateZ(-90deg);}.iconcalendar{width:10px;height:10px;transform:rotateY(0deg) rotateZ(0deg);}svg circle{stroke-dasharray:221px;stroke-dashoffset:0px;stroke-linecap:round;stroke-width:5px;stroke:#4c7232;fill:none;animation-delay:0s;animation-duration:20s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-timing-function:linear;animation-name:countdown;}@keyframes countdown{from{stroke-dashoffset:0px;}to{stroke-dashoffset:221px;}0%{stroke:#4c7232;}60%{stroke:#4c7232;}75%{stroke:orange;}100%{stroke:#ff0000;}}.cleardiv{clear:both;}.borderradius0{background-color:rgb(0, 0, 0, 0.1);border-radius:0px;}section#type_slider{position:relative;display:none;font-family:sans-serif;}.splide__slide{background-repeat:no-repeat !important;background-size:cover !important;background-position:center !important;}.splide__pagination{width:auto;}.splide--nav>.splide__track>.splide__list>.splide__slide.is-active{border-color:transparent !important;}.slide_id_1 .bg-content .body, .slide_id_2 .bg-content .body, .slide_id_3 .bg-content .body, .slide_id_4 .bg-content .body{padding-left:0px;}.slide_id_5 .bg-content .body{padding-left:0px;}#primary-slider .splide__arrow{background-color:transparent;opacity:1;}.splide__arrow svg{width:1em !important;height:2em !important;fill:var(--banner-matrix-arrow-default, rgb(255, 255, 255, 0.7));}.splide__arrow:hover svg{fill:var(--banner-matrix-arrow-hover, #fff);}.splide__arrow:focus-visible, .splide.is-focus-in .splide__arrow:focus{outline:0 !important;}.splide__arrow--prev svg{transform:scaleX(-1);left:0.5em;right:auto;}.splide__arrow--next svg{transform:scaleX(1);right:0.5em;}.skeleton-box{display:inline-block;position:relative;overflow:hidden;background-color:#dddbdd;}.skeleton-box.teamName{height:15px;}.skeleton-box.btnSkeleton{height:15px;width:100%;margin:2px;}.skeleton-box::after{position:absolute;top:0;right:0;bottom:0;left:0;transform:translateX(-100%);background-image:linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0));-webkit-animation:shimmer 2s infinite;animation:shimmer 2s infinite;content:'';}@-webkit-keyframes shimmer{100%{transform:translateX(100%);}}@keyframes shimmer{100%{transform:translateX(100%);}}#skeletonMain{display:none;}#skeletonMain .splide__slide{display:table;}div.skeletonMain{border:1px #ccc solid;background-color:#f2f2f2;height:100%;display:table-cell;opacity:1;background-size:cover;background-position:center;}#primary-skeleton.skeletonMain{background-color:transparent;display:block;border:0;}div.skeletonMain.noborder{border:none;}div.skeletonMain .layout_id_1{padding:0 10px;}div.skeletonMain .layout_id_1 .event_name{display:-webkit-box;display:-ms-flexbox;display:flex;flex-direction:row;}div.skeletonMain .layout_id_1 .event_name .event_name_left{width:50%;text-align:left;margin:2px;}div.skeletonMain .layout_id_1 .event_name .event_name_right{width:50%;text-align:right;margin:2px;}div.skeletonMain.widget-mobile-xs .layout_id_1 .event_name{display:block;}div.skeletonMain.widget-mobile-xs .layout_id_1 .event_name .event_name_left{width:100%;text-align:center;margin:2px;}div.skeletonMain.widget-mobile-xs .layout_id_1 .event_name .event_name_right{width:100%;text-align:center;margin:2px;}.icon_odd_lock{width:11px;height:11px;position:relative;fill:hsla(0, 0%, 50.2%, .4);transform:rotateY(0deg) rotateZ(0deg);}#streamtag{width:100%;padding-bottom:56.25%;position:relative;}@media screen and (min-width: 60em){#streamtag{padding-bottom:45%;}}#streamtag .streamVideo{position:absolute;display:flex;justify-content:center;align-items:center;top:0;left:0;bottom:0;right:0;}#streamtag iframe{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;width:100%;height:100%;}@media only screen and (max-width:600px){.banner{width:100%;padding-left:0px;padding-right:0px;}.overlaybanner{border-radius:0px !important;}.bg-content .body .eventtitle{font-size:18px;}.bg-content .body .detail{font-size:12px;}#timeCount{font-size:20px;}.widget-mobile-xs .matchHighlight{display:block;text-align:center;}.bm_layout_7 .widget-mobile-xs .matchHighlight, .bm_layout_8 .widget-mobile-xs .matchHighlight{display:flex;}.widget-mobile-xs .matchHighlightHomeName, .widget-mobile-xs .matchHighlightAwayName{width:100%;text-align:center;}.bm_layout_7 .widget-mobile-xxs .matchHighlight, .bm_layout_8 .widget-mobile-xxs .matchHighlight{display:flex;}.bm_layout_7 .table_detail.table_event_part .pendingInMatch .part_name.inMatchName, .bm_layout_8 .table_detail.table_event_part .pendingInMatch .part_name.inMatchName, .bm_layout_13 .table_detail.table_event_part .pendingInMatch .part_name.inMatchName{display:block;}.bm_layout_7 .part_name .part_name_right, .bm_layout_8 .part_name .part_name_right{text-align:right;}.widget-mobile-xs .matchHighlightVs{text-align:center;width:100%;}.eventcontent, .eventtitle{width:100%;max-width:100%;}.eventtitle{font-size:17px;}}@media only screen and (min-width:1025px){div#slideSource.fadebanner.d_desktop, section#type_slider.fadebanner.d_desktop{display:block;}}@media only screen and (min-width:481px) and (max-width:1024px){div#slideSource.fadebanner.d_tablet, section#type_slider.fadebanner.d_tablet{display:block;}}@media only screen and (max-width:480px){#bannermatrix{-webkit-text-size-adjust:100%;}div#slideSource.fadebanner.d_mobile, section#type_slider.fadebanner.d_mobile{display:block;}}</style><div id="custom_style"></div><div id="custom_style_single"></div><style>.splide__container{box-sizing:border-box;position:relative;}.splide__list{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:-ms-flexbox;display:flex;height:100%;margin:0!important;padding:0!important;transform-style:preserve-3d;}.splide.is-initialized:not(.is-active) .splide__list{display:block;}.splide__pagination{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;margin:0;pointer-events:none;}.splide__pagination li{display:inline-block;line-height:1;list-style-type:none;margin:0;pointer-events:auto;}.splide__progress__bar{width:0;}.splide{outline:none;position:relative;visibility:hidden;}.splide.is-initialized,.splide.is-rendered{visibility:visible;}.splide__slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0;list-style-type:none!important;margin:0;outline:none;position:relative;}.splide__slide img{vertical-align:bottom;}.splide__slider{position:relative;}.splide__spinner{animation:splide-loading 1s linear infinite;border:2px solid #999;border-left-color:transparent;border-radius:50%;bottom:0;contain:strict;display:inline-block;height:20px;left:0;margin:auto;position:absolute;right:0;top:0;width:20px;}.splide__track{overflow:hidden;position:relative;z-index:0;}@keyframes splide-loading{0%{transform:rotate(0);}to{transform:rotate(1turn);}}.splide--draggable>.splide__slider>.splide__track,.splide--draggable>.splide__track{-webkit-user-select:none;-ms-user-select:none;user-select:none;}.splide--fade>.splide__slider>.splide__track>.splide__list,.splide--fade>.splide__track>.splide__list{display:block;}.splide--fade>.splide__slider>.splide__track>.splide__list>.splide__slide,.splide--fade>.splide__track>.splide__list>.splide__slide{left:0;opacity:0;position:absolute;top:0;z-index:0;}.splide--fade>.splide__slider>.splide__track>.splide__list>.splide__slide.is-active,.splide--fade>.splide__track>.splide__list>.splide__slide.is-active{opacity:1;position:relative;z-index:1;}.splide--rtl{direction:rtl;}.splide--ttb.is-active>.splide__slider>.splide__track>.splide__list,.splide--ttb.is-active>.splide__track>.splide__list{display:block;}.splide__arrow{-ms-flex-align:center;align-items:center;background:#ccc;border:0;border-radius:50%;cursor:pointer;display:-ms-flexbox;display:flex;height:2em;-ms-flex-pack:center;justify-content:center;opacity:.7;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:2em;z-index:1;}.splide__arrow svg{fill:#000;height:1.2em;width:1.2em;}.splide__arrow:hover{opacity:.9;}.splide__arrow:focus{outline:none;}.splide__arrow--prev{left:1em;}.splide__arrow--prev svg{transform:scaleX(-1);}.splide__arrow--next{right:1em;}.splide__pagination{bottom:.5em;left:0;padding:0 1em;position:absolute;right:0;z-index:1;}.splide__pagination__page{background:#ccc;border:0;border-radius:50%;display:inline-block;height:8px;margin:3px;opacity:.7;padding:0;transition:transform .2s linear;width:8px;}.splide__pagination__page.is-active{background:#fff;transform:scale(1.4);}.splide__pagination__page:hover{cursor:pointer;opacity:.9;}.splide__pagination__page:focus{outline:none;}.splide__progress__bar{background:#ccc;height:3px;}.splide--nav>.splide__slider>.splide__track>.splide__list>.splide__slide,.splide--nav>.splide__track>.splide__list>.splide__slide{border:3px solid transparent;cursor:pointer;}.splide--nav>.splide__slider>.splide__track>.splide__list>.splide__slide.is-active,.splide--nav>.splide__track>.splide__list>.splide__slide.is-active{border:3px solid #000;}.splide--nav>.splide__slider>.splide__track>.splide__list>.splide__slide:focus,.splide--nav>.splide__track>.splide__list>.splide__slide:focus{outline:none;}.splide--rtl>.splide__arrows .splide__arrow--prev,.splide--rtl>.splide__slider>.splide__track>.splide__arrows .splide__arrow--prev,.splide--rtl>.splide__track>.splide__arrows .splide__arrow--prev{left:auto;right:1em;}.splide--rtl>.splide__arrows .splide__arrow--prev svg,.splide--rtl>.splide__slider>.splide__track>.splide__arrows .splide__arrow--prev svg,.splide--rtl>.splide__track>.splide__arrows .splide__arrow--prev svg{transform:scaleX(1);}.splide--rtl>.splide__arrows .splide__arrow--next,.splide--rtl>.splide__slider>.splide__track>.splide__arrows .splide__arrow--next,.splide--rtl>.splide__track>.splide__arrows .splide__arrow--next{left:1em;right:auto;}.splide--rtl>.splide__arrows .splide__arrow--next svg,.splide--rtl>.splide__slider>.splide__track>.splide__arrows .splide__arrow--next svg,.splide--rtl>.splide__track>.splide__arrows .splide__arrow--next svg{transform:scaleX(-1);}.splide--ttb>.splide__arrows .splide__arrow,.splide--ttb>.splide__slider>.splide__track>.splide__arrows .splide__arrow,.splide--ttb>.splide__track>.splide__arrows .splide__arrow{left:50%;transform:translate(-50%);}.splide--ttb>.splide__arrows .splide__arrow--prev,.splide--ttb>.splide__slider>.splide__track>.splide__arrows .splide__arrow--prev,.splide--ttb>.splide__track>.splide__arrows .splide__arrow--prev{top:1em;}.splide--ttb>.splide__arrows .splide__arrow--prev svg,.splide--ttb>.splide__slider>.splide__track>.splide__arrows .splide__arrow--prev svg,.splide--ttb>.splide__track>.splide__arrows .splide__arrow--prev svg{transform:rotate(-90deg);}.splide--ttb>.splide__arrows .splide__arrow--next,.splide--ttb>.splide__slider>.splide__track>.splide__arrows .splide__arrow--next,.splide--ttb>.splide__track>.splide__arrows .splide__arrow--next{bottom:1em;top:auto;}.splide--ttb>.splide__arrows .splide__arrow--next svg,.splide--ttb>.splide__slider>.splide__track>.splide__arrows .splide__arrow--next svg,.splide--ttb>.splide__track>.splide__arrows .splide__arrow--next svg{transform:rotate(90deg);}.splide--ttb>.splide__pagination,.splide--ttb>.splide__slider>.splide__pagination{bottom:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;left:auto;padding:1em 0;right:.5em;top:0;}</style><script>function At(n,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}var n,t;n=this,t=function(){"use strict";var m="splide",a="data-"+m,n={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,DESTROYED:5},R=10;function _(n){n.length=0}function I(n){return!u(n)&&"object"==typeof n}function r(n){return Array.isArray(n)}function D(n){return"string"==typeof n}function O(n){return void 0===n}function u(n){return null===n}function y(n){return n instanceof HTMLElement}function w(n){return r(n)?n:[n]}function b(n,t){w(n).forEach(t)}function x(n,t){return-1<n.indexOf(t)}function k(n,t){return n.push.apply(n,w(t)),n}var o=Array.prototype;function s(n,t,i){return o.slice.call(n,t,i)}function E(t,n,i){t&&b(n,function(n){n&&t.classList[i?"add":"remove"](n)})}function A(n,t){E(n,D(t)?t.split(" "):t,!0)}function L(n,t){b(t,n.appendChild.bind(n))}function S(n,i){b(n,function(n){var t=i.parentNode;t&&t.insertBefore(n,i)})}function W(n,t){return y(n)&&(n.msMatchesSelector||n.matches).call(n,t)}function z(n,t){return n?s(n.children).filter(function(n){return W(n,t)}):[]}function P(n,t){return t?z(n,t)[0]:n.firstElementChild}function e(n,t,i){if(n)for(var r=Object.keys(n),r=i?r.reverse():r,u=0;u<r.length;u++){var o=r[u];if("__proto__"!==o&&!1===t(n[o],o))break}return n}function M(r){return s(arguments,1).forEach(function(i){e(i,function(n,t){r[t]=i[t]})}),r}function l(i,n){return e(n,function(n,t){r(n)?i[t]=n.slice():I(n)?i[t]=l(I(i[t])?i[t]:{},n):i[t]=n}),i}function T(t,n){t&&b(n,function(n){t.removeAttribute(n)})}function j(i,n,t){I(n)?e(n,function(n,t){j(i,t,n)}):u(t)?T(i,n):i.setAttribute(n,String(t))}function F(n,t,i){n=document.createElement(n);return t&&(D(t)?A:j)(n,t),i&&L(i,n),n}function C(n,t,i){if(O(i))return getComputedStyle(n)[t];u(i)||(n=n.style)[t]!==(i=""+i)&&(n[t]=i)}function N(n,t){C(n,"display",t)}function X(n,t){return n.getAttribute(t)}function B(n,t){return n&&n.classList.contains(t)}function G(n){return n.getBoundingClientRect()}function H(n){b(n,function(n){n&&n.parentNode&&n.parentNode.removeChild(n)})}function Y(n){return P((new DOMParser).parseFromString(n,"text/html").body)}function U(n,t){n.preventDefault(),t&&(n.stopPropagation(),n.stopImmediatePropagation())}function q(n,t){return n&&n.querySelector(t)}function J(n,t){return s(n.querySelectorAll(t))}function K(n,t){E(n,t,!1)}function V(n){return D(n)?n:n?n+"px":""}function Q(n,t){if(void 0===t&&(t=""),!n)throw new Error("["+m+"] "+t)}function g(n){setTimeout(n)}function Z(){}function v(n){return requestAnimationFrame(n)}var $=Math.min,nn=Math.max,tn=Math.floor,rn=Math.ceil,un=Math.abs;function on(n,t,i,r){var u=$(t,i),i=nn(t,i);return r?u<n&&n<i:u<=n&&n<=i}function en(n,t,i){var r=$(t,i),i=nn(t,i);return $(nn(r,n),i)}function cn(n){return(0<n)-(n<0)}function fn(t,n){return b(n,function(n){t=t.replace("%s",""+n)}),t}function an(n){return n<10?"0"+n:""+n}var sn={};function c(){var o={};function r(n,r){t(n,function(n,t){var i=o[n];o[n]=i&&i.filter(function(n){return n.n?n.n!==r:r||n.t!==t})})}function t(n,t){w(n).join(" ").split(" ").forEach(function(n){n=n.split(".");t(n[0],n[1])})}return{on:function(n,i,r,u){void 0===u&&(u=R),t(n,function(n,t){o[n]=o[n]||[],k(o[n],{i:n,r:i,t:t,u:u,n:r}).sort(function(n,t){return n.u-t.u})})},off:r,offBy:function(i){e(o,function(n,t){r(t,i)})},emit:function(n){var t=arguments;(o[n]||[]).forEach(function(n){n.r.apply(n,s(t,1))})},destroy:function(){o={}}}}var ln="mounted",dn="move",vn="moved",hn="shifted",pn="click",gn="active",mn="inactive",yn="visible",wn="hidden",_n="slide:keydown",bn="refresh",xn="updated",kn="resize",An="resized",Ln="repositioned",En="scrolled",f="destroy",Sn="navigation:mounted",zn="lazyload:loaded";function Pn(n){var r=n.event,u={},o=[];function t(n,t,r){e(n,t,function(t,i){o=o.filter(function(n){return!!(n[0]!==t||n[1]!==i||r&&n[2]!==r)||(t.removeEventListener(i,n[2],n[3]),!1)})})}function e(n,t,i){b(n,function(n){n&&t.split(" ").forEach(i.bind(null,n))})}function i(){o=o.filter(function(n){return t(n[0],n[1])}),r.offBy(u)}return r.on(f,i,u),{on:function(n,t,i){r.on(n,t,u,i)},off:function(n){r.off(n,u)},emit:r.emit,bind:function(n,t,i,r){e(n,t,function(n,t){o.push([n,t,i,r]),n.addEventListener(t,i,r)})},unbind:t,destroy:i}}function Rn(t,i,r,u){var o,n,e=Date.now,c=0,f=!0,a=0;function s(){if(!f){var n=e()-o;if(t<=n?(c=1,o=e()):c=n/t,r&&r(c),1===c&&(i(),u&&++a>=u))return l();v(s)}}function l(){f=!0}function d(){cancelAnimationFrame(n),f=!(n=c=0)}return{start:function(n){n||d(),o=e()-(n?c*t:0),f=!1,v(s)},rewind:function(){o=e(),c=0,r&&r(c)},pause:l,cancel:d,set:function(n){t=n},isPaused:function(){return f}}}function d(n){var t=n;return{set:function(n){t=n},is:function(n){return x(w(n),t)}}}function Dn(i,r){var u;return function(){var n=arguments,t=this;u||(u=Rn(r||0,function(){i.apply(t,n),u=null},null,1)).start()}}var h={marginRight:["marginBottom","marginLeft"],autoWidth:["autoHeight"],fixedWidth:["fixedHeight"],paddingLeft:["paddingTop","paddingRight"],paddingRight:["paddingBottom","paddingLeft"],width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:["ArrowUp","ArrowRight"],ArrowRight:["ArrowDown","ArrowLeft"]};var On=m,Mn=m+"__slider",Tn=m+"__track",jn=m+"__list",Fn=m+"__slide",In=Fn+"--clone",Wn=Fn+"__container",Cn=m+"__arrows",t=m+"__arrow",Nn=t+"--prev",Xn=t+"--next",i=m+"__pagination",Bn=m+"__progress",Gn=Bn+"__bar",Hn=m+"__autoplay",Yn=m+"__play",Un=m+"__pause",qn="is-active",Jn="is-prev",Kn="is-next",Vn="is-visible",Qn="is-loading",Zn=[qn,Vn,Jn,Kn,Qn];var $n="role",nt="aria-controls",tt="aria-current",it="aria-label",rt="aria-hidden",ut="tabindex",p="aria-orientation",ot=[$n,nt,tt,it,rt,p,ut,"disabled"],et="slide",ct="loop",ft="fade";function at(u,i,r,o){var t,n=Pn(u),e=n.on,c=n.emit,f=n.bind,a=n.destroy,s=u.Components,l=u.root,d=u.options,v=d.isNavigation,h=d.updateOnMove,p=s.Direction.resolve,g=X(o,"style"),m=-1<r,y=P(o,"."+Wn),w=d.focusableNodes&&J(o,d.focusableNodes);function _(){var n=m?r:i,t=fn(d.i18n.slideX,n+1),n=u.splides.map(function(n){return n.splide.root.id}).join(" ");j(o,it,t),j(o,nt,n),j(o,$n,"menuitem"),k(A())}function b(){t||x()}function x(){var n;t||(n=u.index,k(A()),function(n){var t=!n&&(!A()||m);j(o,rt,t||null),j(o,ut,!t&&d.slideFocus?0:null),w&&w.forEach(function(n){j(n,ut,t?-1:null)});n!==B(o,Vn)&&(E(o,Vn,n),c(n?yn:wn,L))}(function(){if(u.is(ft))return A();var n=G(s.Elements.track),t=G(o),i=p("left"),r=p("right");return tn(n[i])<=rn(t[i])&&tn(t[r])<=rn(n[r])}()),E(o,Jn,i===n-1),E(o,Kn,i===n+1))}function k(n){n!==B(o,qn)&&(E(o,qn,n),v&&j(o,tt,n||null),c(n?gn:mn,L))}function A(){var n=u.index;return n===i||d.cloneStatus&&n===r}var L={index:i,slideIndex:r,slide:o,container:y,isClone:m,mount:function(){m||(o.id=l.id+"-slide"+an(i+1)),f(o,"click keydown",function(n){c("click"===n.type?pn:_n,L,n)}),e([bn,Ln,hn,vn,En],x),e(Sn,_),h&&e(dn,b)},destroy:function(){t=!0,a(),K(o,Zn),T(o,ot),j(o,"style",g)},update:x,style:function(n,t,i){C(i&&y||o,n,t)},isWithin:function(n,t){return n=un(n-i),(n=!m&&(d.rewind||u.is(ct))?$(n,u.length-n):n)<=t}};return L}var st=a+"-interval";var lt={passive:!1,capture:!0},dt="touchmove mousemove",vt="touchend touchcancel mouseup";var ht=["Left","Right","Up","Down"],pt="keydown";var gt=a+"-lazy",mt=gt+"-srcset",yt="["+gt+"], ["+mt+"]";var wt=[" ","Enter","Spacebar"];var _t=Object.freeze({__proto__:null,Options:function(t,n,r){var u,o,i,e=Dn(f);function c(n){n&&removeEventListener("resize",e)}function f(){var n=(n=function(n){return n[1].matches},s(o).filter(n)[0]||[]);n[0]!==i&&function(n){n=r.breakpoints[n]||u;n.destroy?(t.options=u,t.destroy("completely"===n.destroy)):(t.state.is(5)&&(c(!0),t.mount()),t.options=n)}(i=n[0])}return{setup:function(){try{l(r,JSON.parse(X(t.root,a)))}catch(n){Q(!1,n.message)}u=l({},r);var i,n=r.breakpoints;n&&(i="min"===r.mediaQuery,o=Object.keys(n).sort(function(n,t){return i?+t-+n:+n-+t}).map(function(n){return[n,matchMedia("("+(i?"min":"max")+"-width:"+n+"px)")]}),f())},mount:function(){o&&addEventListener("resize",e)},destroy:c}},Direction:function(n,t,r){return{resolve:function(n,t){var i=r.direction;return h[n]["rtl"!==i||t?"ttb"===i?0:-1:1]||n},orient:function(n){return n*("rtl"===r.direction?1:-1)}}},Elements:function(n,t,i){var r,u,o,e,c=Pn(n).on,f=n.root,a={},s=[];function l(){var n;!function(){u=P(f,"."+Mn),o=q(f,"."+Tn),e=P(o,"."+jn),Q(o&&e,"A track/list element is missing."),k(s,z(e,"."+Fn+":not(."+In+")"));var n=p("."+Hn),t=p("."+Cn);M(a,{root:f,slider:u,track:o,list:e,slides:s,arrows:t,autoplay:n,prev:q(t,"."+Nn),next:q(t,"."+Xn),bar:q(p("."+Bn),"."+Gn),play:q(n,"."+Yn),pause:q(n,"."+Un)})}(),n=f.id||function(n){return""+n+an(sn[n]=(sn[n]||0)+1)}(m),f.id=n,o.id=o.id||n+"-track",e.id=e.id||n+"-list",A(f,r=g())}function d(){[f,o,e].forEach(function(n){T(n,"style")}),_(s),K(f,r)}function v(){d(),l()}function h(){K(f,r),A(f,r=g())}function p(n){return P(f,n)||P(u,n)}function g(){return[On+"--"+i.type,On+"--"+i.direction,i.drag&&On+"--draggable",i.isNavigation&&On+"--nav",qn]}return M(a,{setup:l,mount:function(){c(bn,v,R-2),c(xn,h)},destroy:d})},Slides:function(r,u,o){var n=Pn(r),t=n.on,e=n.emit,c=n.bind,f=(n=u.Elements).slides,a=n.list,s=[];function i(){f.forEach(function(n,t){v(n,t,-1)})}function l(){p(function(n){n.destroy()}),_(s)}function d(){l(),i()}function v(n,t,i){n=at(r,t,i,n);n.mount(),s.push(n)}function h(n){return n?g(function(n){return!n.isClone}):s}function p(n,t){h(t).forEach(n)}function g(t){return s.filter("function"==typeof t?t:function(n){return D(t)?W(n.slide,t):x(w(t),n.index)})}return{mount:function(){i(),t(bn,d),t([ln,bn],function(){s.sort(function(n,t){return n.index-t.index})})},destroy:l,update:function(){p(function(n){n.update()})},register:v,get:h,getIn:function(n){var t=u.Controller,i=t.toIndex(n),r=t.hasFocus()?1:o.perPage;return g(function(n){return on(n.index,i,i+r-1)})},getAt:function(n){return g(n)[0]},add:function(n,u){b(n,function(n){var t,i,r;y(n=D(n)?Y(n):n)&&((t=f[u])?S(n,t):L(a,n),A(n,o.classes.slide),n=n,i=e.bind(null,kn),n=J(n,"img"),(r=n.length)?n.forEach(function(n){c(n,"load error",function(){--r||i()})}):i())}),e(bn)},remove:function(n){H(g(n).map(function(n){return n.slide})),e(bn)},forEach:p,filter:g,style:function(t,i,r){p(function(n){n.style(t,i,r)})},getLength:function(n){return(n?f:s).length},isEnough:function(){return s.length>o.perPage}}},Layout:function(n,t,i){var r,u,o=Pn(n),e=o.on,c=o.bind,f=o.emit,a=t.Slides,s=t.Direction.resolve,l=(t=t.Elements).root,d=t.track,v=t.list,h=a.getAt;function p(){u=null,r="ttb"===i.direction,C(l,"maxWidth",V(i.width)),C(d,s("paddingLeft"),m(!1)),C(d,s("paddingRight"),m(!0)),g()}function g(){var n=G(l);u&&u.width===n.width&&u.height===n.height||(C(d,"height",function(){var n="";r&&(Q(n=y(),"height or heightRatio is missing."),n="calc("+n+" - "+m(!1)+" - "+m(!0)+")");return n}()),a.style(s("marginRight"),V(i.gap)),a.style("width",(i.autoWidth?"":V(i.fixedWidth)||(r?"":w()))||null),a.style("height",V(i.fixedHeight)||(r?i.autoHeight?"":w():y())||null,!0),u=n,f(An))}function m(n){var t=i.padding,n=s(n?"right":"left");return t&&V(t[n]||(I(t)?0:t))||"0px"}function y(){return V(i.height||G(v).width*i.heightRatio)}function w(){var n=V(i.gap);return"calc((100%"+(n&&" + "+n)+")/"+(i.perPage||1)+(n&&" - "+n)+")"}function _(n,t){var i=h(n);if(i){n=G(i.slide)[s("right")],i=G(v)[s("left")];return un(n-i)+(t?0:b())}return 0}function b(){var n=h(0);return n&&parseFloat(C(n.slide,s("marginRight")))||0}return{mount:function(){p(),c(window,"resize load",Dn(f.bind(this,kn))),e([xn,bn],p),e(kn,g)},listSize:function(){return G(v)[s("width")]},slideSize:function(n,t){return(n=h(n||0))?G(n.slide)[s("width")]+(t?0:b()):0},sliderSize:function(){return _(n.length-1,!0)-_(-1,!0)},totalSize:_,getPadding:function(n){return parseFloat(C(d,s("padding"+(n?"Right":"Left"))))||0}}},Clones:function(c,n,f){var t,i=Pn(c),r=i.on,u=i.emit,a=n.Elements,s=n.Slides,o=n.Direction.resolve,l=[];function e(){(t=p())&&(function(u){var o=s.get().slice(),e=o.length;if(e){for(;o.length<u;)k(o,o);k(o.slice(-u),o.slice(0,u)).forEach(function(n,t){var i=t<u,r=function(n,t){n=n.cloneNode(!0);return A(n,f.classes.clone),n.id=c.root.id+"-clone"+an(t+1),n}(n.slide,t);i?S(r,o[0].slide):L(a.list,r),k(l,r),s.register(r,t-u+(i?0:e),n.index)})}}(t),u(kn))}function d(){H(l),_(l)}function v(){d(),e()}function h(){t<p()&&u(bn)}function p(){var n,t,i=f.clones;return c.is(ct)?i||(n=a.list,D(t=f[o("fixedWidth")])&&(t=G(n=F("div",{style:"width: "+t+"; position: absolute;"},n)).width,H(n)),i=((t=t)&&rn(G(a.track)[o("width")]/t)||f[o("autoWidth")]&&c.length||f.perPage)*(f.drag?(f.flickMaxPages||1)+1:2)):i=0,i}return{mount:function(){e(),r(bn,v),r([xn,kn],h)},destroy:d}},Move:function(e,c,f){var a,n=Pn(e),t=n.on,s=n.emit,r=(n=c.Layout).slideSize,i=n.getPadding,u=n.totalSize,o=n.listSize,l=n.sliderSize,d=(n=c.Direction).resolve,v=n.orient,h=(n=c.Elements).list,p=n.track;function g(){k()||(c.Scroll.cancel(),m(e.index),s(Ln))}function m(n){y(_(n,!0))}function y(n,t){e.is(ft)||(t=t?n:function(n){{var t,i;e.is(ct)&&(i=v(n-b()),t=A(!1,n)&&i<0,i=A(!0,n)&&0<i,(t||i)&&(n=w(n,i)))}return n}(n),h.style.transform="translate"+d("X")+"("+t+"px)",n!==t&&s(hn))}function w(n,t){var i=n-x(t),r=l();return n-=v(r*(rn(un(i)/r)||1))*(t?1:-1)}function _(n,t){var i=v(u(n-1)-(i=n,"center"===(n=f.focus)?(o()-r(i,!0))/2:+n*r(i)||0));return t?function(n){f.trimSpace&&e.is(et)&&(n=en(n,0,v(l()-o())));return n}(i):i}function b(){var n=d("left");return G(h)[n]-G(p)[n]+v(i(!1))}function x(n){return _(n?c.Controller.getEnd():0,!!f.trimSpace)}function k(){return e.state.is(4)&&f.waitForTransition}function A(n,t){t=O(t)?b():t;var i=!0!==n&&v(t)<v(x(!1)),t=!1!==n&&v(t)>v(x(!0));return i||t}return{mount:function(){a=c.Transition,t([ln,An,xn,bn],g)},destroy:function(){T(h,"style")},move:function(n,t,i,r){var u,o;k()||(u=e.state.set,o=b(),n!==t&&(a.cancel(),y(w(o,t<n),!0)),u(4),s(dn,t,i,n),a.start(t,function(){u(3),s(vn,t,i,n),"move"===f.trimSpace&&n!==i&&o===b()?c.Controller.go(i<n?">":"<",!1,r):r&&r()}))},jump:m,translate:y,shift:w,cancel:function(){y(b()),a.cancel()},toIndex:function(n){for(var t=c.Slides.get(),i=0,r=1/0,u=0;u<t.length;u++){var o=t[u].index,e=un(_(o,!0)-n);if(!(e<=r))break;r=e,i=o}return i},toPosition:_,getPosition:b,getLimit:x,isBusy:k,exceededLimit:A}},Controller:function(n,e,u){var o,c,f,t=Pn(n).on,a=e.Move,s=a.getPosition,l=a.getLimit,i=e.Slides,d=i.isEnough,r=i.getLength,v=n.is(ct),h=n.is(et),p=u.start||0,g=p;function m(){o=r(!0),c=u.perMove,f=u.perPage,p=en(p,0,o-1)}function y(n,t,i,r,u){var o=t?n:S(n);e.Scroll.scroll(t||i?a.toPosition(o,!0):n,r,function(){z(a.toIndex(a.getPosition())),u&&u()})}function w(n){return b(!1,n)}function _(n){return b(!0,n)}function b(n,t){var i,r,u=c||(P()?1:f),o=x(p+u*(n?-1:1),p);return-1!==o||!h||(i=s(),r=l(!n),u=1,un(i-r)<u)?t?o:A(o):n?0:k()}function x(n,t,i){var r;return d()?(r=k(),n<0||r<n?n=on(0,n,t,!0)||on(r,t,n,!0)?L(E(n)):v?c||P()?n:n<0?-(o%f||f):o:u.rewind?n<0?r:0:-1:i||n===t||(n=c?n:L(E(t)+(n<t?-1:1)))):n=-1,n}function k(){var n=o-f;return(P()||v&&c)&&(n=o-1),nn(n,0)}function A(n){return v?d()?n%o+(n<0?o:0):-1:n}function L(n){return en(P()?n:f*n,0,k())}function E(n){return P()||(n=on(n,o-f,o-1)?o-1:n,n=tn(n/f)),n}function S(n){n=a.toIndex(n);return h?en(n,0,k()):n}function z(n){n!==p&&(g=p,p=n)}function P(){return!O(u.focus)||u.isNavigation}return{mount:function(){m(),t([xn,bn],m,R-1)},go:function(n,t,i){var r=function(n){var t=p;{var i,r;D(n)?(r=n.match(/([+\-<>])(\d+)?/)||[],i=r[1],r=r[2],"+"===i||"-"===i?t=x(p+ +(""+i+(+r||1)),p,!0):">"===i?t=r?L(+r):w(!0):"<"===i&&(t=_(!0))):t=v?n:en(n,0,k())}return t}(n);u.useScroll?y(r,!0,!0,u.speed,i):-1<(n=A(r))&&!a.isBusy()&&(t||n!==p)&&(z(n),a.move(r,n,g,i))},scroll:y,getNext:w,getPrev:_,getAdjacent:b,getEnd:k,setIndex:z,getIndex:function(n){return n?g:p},toIndex:L,toPage:E,toDest:S,hasFocus:P}},Arrows:function(u,n,i){var r,t=Pn(u),o=t.on,e=t.bind,c=t.emit,f=i.classes,a=i.i18n,s=n.Elements,l=n.Controller,d=s.arrows,v=s.prev,h=s.next,p={};function g(){var n,t;i.arrows&&(v&&h||(d=F("div",f.arrows),v=m(!0),h=m(!1),r=!0,L(d,[v,h]),S(d,P("slider"===i.arrows&&s.slider||u.root)))),v&&h&&(p.prev?N(d,!1===i.arrows?"none":""):(n=s.track.id,j(v,nt,n),j(h,nt,n),p.prev=v,p.next=h,t=l.go,o([ln,vn,xn,bn,En],y),e(h,"click",function(){t(">",!0)}),e(v,"click",function(){t("<",!0)}),c("arrows:mounted",v,h)))}function m(n){return Y('<button class="'+f.arrow+" "+(n?f.prev:f.next)+'" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40"><path d="'+(i.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z")+'" />')}function y(){var n=u.index,t=l.getPrev(),i=l.getNext(),r=-1<t&&n<t?a.last:a.prev,n=-1<i&&i<n?a.first:a.next;v.disabled=t<0,h.disabled=i<0,j(v,it,r),j(h,it,n),c("arrows:updated",v,h,t,i)}return{arrows:p,mount:function(){g(),o(xn,g)},destroy:function(){r?H(d):(T(v,ot),T(h,ot))}}},Autoplay:function(t,i,r){var u,o,e,n=Pn(t),c=n.on,f=n.bind,a=n.emit,s=Rn(r.interval,t.go.bind(t,">"),function(n){var t=d.bar;t&&C(t,"width",100*n+"%"),a("autoplay:playing",n)}),l=s.isPaused,d=i.Elements;function v(n){var t=n?"pause":"play",i=d[t];i&&(j(i,nt,d.track.id),j(i,it,r.i18n[t]),f(i,"click",n?p:h))}function h(){l()&&i.Slides.isEnough()&&(s.start(!r.resetProgress),o=u=e=!1,a("autoplay:play"))}function p(n){void 0===n&&(n=!0),l()||(s.pause(),a("autoplay:pause")),e=n}function g(){e||(u||o?p(!1):h())}function m(){var n=i.Slides.getAt(t.index);s.set(n&&+X(n.slide,st)||r.interval)}return{mount:function(){var n=r.autoplay;n&&(v(!0),v(!1),function(){var n=d.root;r.pauseOnHover&&f(n,"mouseenter mouseleave",function(n){u="mouseenter"===n.type,g()});r.pauseOnFocus&&f(n,"focusin focusout",function(n){o="focusin"===n.type,g()});c([dn,"scroll",bn],s.rewind),c(dn,m)}(),"pause"!==n&&h())},destroy:s.cancel,play:h,pause:p,isPaused:l}},Cover:function(n,t,i){var r=Pn(n).on;function u(i){t.Slides.forEach(function(n){var t=P(n.container||n.slide,"img");t&&t.src&&o(i,t,n)})}function o(n,t,i){i.style("background",n?'center/cover no-repeat url("'+t.src+'")':"",!0),N(t,n?"none":"")}return{mount:function(){i.cover&&(r(zn,function(n,t){o(!0,n,t)}),r([ln,xn,bn],u.bind(null,!0)))},destroy:function(){u(!1)}}},Scroll:function(c,n,f){var a,s,t=Pn(c),i=t.on,l=t.emit,d=n.Move,v=d.getPosition,h=d.getLimit,p=d.exceededLimit;function g(r,n,t,u){var i,o=v(),e=1;n=n||(i=un(r-o),nn(i/1.5,800)),s=t,y(),a=Rn(n,m,function(n){var t=v(),i=(o+(r-o)*(i=n,(n=f.easingFunc)?n(i):1-Math.pow(1-i,4))-v())*e;d.translate(t+i),c.is(et)&&!u&&p()&&(e*=.6,un(i)<10&&(i=p(!1),g(h(!i),600,null,!0)))},1),l("scroll"),a.start()}function m(){var n=v(),t=d.toIndex(n);on(t,0,c.length-1)||d.translate(d.shift(n,0<t),!0),s&&s(),l(En)}function y(){a&&a.cancel()}function r(){a&&!a.isPaused()&&(y(),m())}return{mount:function(){i(dn,y),i([xn,bn],r)},destroy:y,scroll:g,cancel:r}},Drag:function(u,o,e){var c,f,a,s,l,d,v,r,h,n=Pn(u),t=n.on,p=n.emit,g=n.bind,m=n.unbind,y=o.Move,w=o.Scroll,_=o.Controller,b=o.Elements.track,i=(n=o.Direction).resolve,x=n.orient,k=y.getPosition,A=y.exceededLimit,L=!1;function E(){var n=e.drag;F(!n),l="free"===n}function S(n){var t,i;r||(i=e.noDrag,t=j(n),i=!i||!W(n.target,i),v=!1,!i||!t&&n.button||(y.isBusy()?U(n,!0):(h=t?b:window,s=a=null,g(h,dt,z,lt),g(h,vt,P,lt),y.cancel(),w.cancel(),R(n))))}function z(n){var t,i,r;s||p("drag"),(s=n).cancelable&&(t=M(n)-M(f),d?(y.translate(c+t/(L&&u.is(et)?5:1)),i=200<T(n)-T(f),r=L!==(L=A()),(i||r)&&R(n),p("dragging"),v=!0,U(n)):(r=I(r=e.dragMinThreshold)?r:{mouse:0,touch:+r||10},d=un(t)>(j(n)?r.touch:r.mouse),O()&&U(n)))}function P(n){m(h,dt,z),m(h,vt,P);var t,i,r=u.index;s?((d||n.cancelable&&O())&&(t=function(n){if(u.is(ct)||!L){var t=f===s&&a||f,i=M(s)-M(t),t=T(n)-T(t),n=T(n)-T(s)<200;if(t&&n)return i/t}return 0}(n),i=t,i=k()+cn(i)*$(un(i)*(e.flickPower||600),l?1/0:o.Layout.listSize()*(e.flickMaxPages||1)),l?_.scroll(i):u.is(ft)?_.go(r+x(cn(t))):_.go(_.toDest(i),!0),U(n)),p("dragged")):l||k()===y.toPosition(r)||_.go(r,!0),d=!1}function R(n){a=f,f=n,c=k()}function D(n){!r&&v&&U(n,!0)}function O(){var n=un(M(s)-M(f));return un(M(s,!0)-M(f,!0))<n}function M(n,t){return(j(n)?n.touches[0]:n)["page"+i(t?"Y":"X")]}function T(n){return n.timeStamp}function j(n){return"undefined"!=typeof TouchEvent&&n instanceof TouchEvent}function F(n){r=n}return{mount:function(){g(b,dt,Z,lt),g(b,vt,Z,lt),g(b,"touchstart mousedown",S,lt),g(b,"click",D,{capture:!0}),g(b,"dragstart",U),t([ln,xn],E)},disable:F,isDragging:function(){return d}}},Keyboard:function(t,n,i){var r,u,o=Pn(t),e=o.on,c=o.bind,f=o.unbind,a=t.root,s=n.Direction.resolve;function l(){var n=i.keyboard;n&&("focused"===n?j(r=a,ut,0):r=window,c(r,pt,p))}function d(){f(r,pt),y(r)&&T(r,ut)}function v(){var n=u;u=!0,g(function(){u=n})}function h(){d(),l()}function p(n){u||(n=n.key,(n=x(ht,n)?"Arrow"+n:n)===s("ArrowLeft")?t.go("<"):n===s("ArrowRight")&&t.go(">"))}return{mount:function(){l(),e(xn,h),e(dn,v)},destroy:d,disable:function(n){u=n}}},LazyLoad:function(i,n,e){var t=Pn(i),r=t.on,u=t.off,o=t.bind,c=t.emit,f="sequential"===e.lazyLoad,a=[],s=0;function l(){v(),d()}function d(){n.Slides.forEach(function(o){J(o.slide,yt).forEach(function(n){var t,i,r=X(n,gt),u=X(n,mt);r===n.src&&u===n.srcset||(t=e.classes.spinner,j(i=P(i=n.parentElement,"."+t)||F("span",t,i),$n,"presentation"),a.push({o:n,e:o,src:r,srcset:u,c:i}),n.src||N(n,"none"))})}),f&&g()}function v(){s=0,a=[]}function h(){(a=a.filter(function(n){var t=e.perPage*((e.preloadPages||1)+1)-1;return!n.e.isWithin(i.index,t)||p(n)})).length||u(vn)}function p(t){var i=t.o;A(t.e.slide,Qn),o(i,"load error",function(n){!function(n,t){var i=n.e;K(i.slide,Qn),t||(H(n.c),N(n.o,""),c(zn,n.o,i),c(kn));f&&g()}(t,"error"===n.type)}),["srcset","src"].forEach(function(n){t[n]&&(j(i,n,t[n]),T(i,"src"===n?gt:mt))})}function g(){s<a.length&&p(a[s++])}return{mount:function(){e.lazyLoad&&(d(),r(bn,l),f||r([ln,bn,vn,En],h))},destroy:v}},Pagination:function(l,n,d){var v,t=Pn(l),i=t.on,r=t.emit,h=t.bind,u=t.unbind,p=n.Slides,g=n.Elements,o=n.Controller,m=o.hasFocus,e=o.getIndex,y=[];function c(){f(),d.pagination&&p.isEnough()&&(function(){var n=l.length,t=d.classes,i=d.i18n,r=d.perPage,u="slider"===d.pagination&&g.slider||g.root,o=m()?n:rn(n/r);v=F("ul",t.pagination,u);for(var e=0;e<o;e++){var c=F("li",null,v),f=F("button",{class:t.page,type:"button"},c),a=p.getIn(e).map(function(n){return n.slide.id}),s=!m()&&1<r?i.pageX:i.slideX;h(f,"click",w.bind(null,e)),j(f,nt,a.join(" ")),j(f,it,fn(s,e+1)),y.push({li:c,button:f,page:e})}}(),r("pagination:mounted",{list:v,items:y},a(l.index)),s())}function f(){v&&(H(v),y.forEach(function(n){u(n.button,"click")}),_(y),v=null)}function w(t){o.go(">"+t,!0,function(){var n=p.getAt(o.toIndex(t));n&&((n=n.slide).setActive&&n.setActive()||n.focus({preventScroll:!0}))})}function a(n){return y[o.toPage(n)]}function s(){var n=a(e(!0)),t=a(e());n&&(K(n.button,qn),T(n.button,tt)),t&&(A(t.button,qn),j(t.button,tt,!0)),r("pagination:updated",{list:v,items:y},n,t)}return{items:y,mount:function(){c(),i([xn,bn],c),i([dn,En],s)},destroy:f,getAt:a,update:s}},Sync:function(u,n,i){var r=n.Elements.list,o=[];function t(){var n,t;u.splides.forEach(function(n){var i;n.isParent||(i=n.splide,[u,i].forEach(function(n){var t=Pn(n),r=n===u?i:u;t.on(dn,function(n,t,i){r.go(r.is(ct)?i:n)}),o.push(t)}))}),i.isNavigation&&(n=Pn(u),(t=n.on)(pn,f),t(_n,a),t([ln,xn],c),j(r,$n,"menu"),o.push(n),n.emit(Sn,u.splides))}function e(){T(r,ot),o.forEach(function(n){n.destroy()}),_(o)}function c(){j(r,p,"ttb"!==i.direction?"horizontal":null)}function f(n){u.go(n.index)}function a(n,t){x(wt,t.key)&&(f(n),U(t))}return{mount:t,destroy:e,remount:function(){e(),t()}}},Wheel:function(i,r,u){var n=Pn(i).bind;function t(n){var t;!n.cancelable||(t=n.deltaY)&&(i.go((t=t<0)?"<":">"),t=t,u.releaseWheel&&!i.state.is(4)&&-1===r.Controller.getAdjacent(t)||U(n))}return{mount:function(){u.wheel&&n(r.Elements.track,"wheel",t,lt)}}}}),bt={type:"slide",speed:400,waitForTransition:!0,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,keyboard:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",slideFocus:!0,trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",classes:{slide:Fn,clone:In,arrows:Cn,arrow:t,prev:Nn,next:Xn,pagination:i,page:i+"__page",spinner:m+"__spinner"},i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay"}};function xt(n,r,t){var i=Pn(n).on;return{mount:function(){i([ln,bn],function(){g(function(){r.Slides.style("transition","opacity "+t.speed+"ms "+t.easing)})})},start:function(n,t){var i=r.Elements.track;C(i,"height",V(G(i).height)),g(function(){t(),C(i,"height","")})},cancel:Z}}function kt(o,n,e){var c,t=Pn(o).bind,f=n.Move,a=n.Controller,i=n.Elements.list;function r(){s("")}function s(n){C(i,"transition",n)}return{mount:function(){t(i,"transitionend",function(n){n.target===i&&c&&(r(),c())})},start:function(n,t){var i=f.toPosition(n,!0),r=f.getPosition(),u=function(n){var t=e.rewindSpeed;if(o.is(et)&&t){var i=a.getIndex(!0),r=a.getEnd();if(0===i&&r<=n||r<=i&&0===n)return t}return e.speed}(n);1<=un(i-r)&&1<=u?(s("transform "+u+"ms "+e.easing),f.translate(i,!0),c=t):(f.jump(n),t())},cancel:r}}i=function(){function i(n,t){this.event=c(),this.Components={},this.state=d(1),this.splides=[],this.f={},this.a={};n=D(n)?q(document,n):n;Q(n,n+" is invalid."),this.root=n,l(bt,i.defaults),l(l(this.f,bt),t||{})}var n,t,r=i.prototype;return r.mount=function(n,t){var i=this,r=this.state,u=this.Components;return Q(r.is([1,5]),"Already mounted!"),r.set(1),this.s=u,this.l=t||this.l||(this.is(ft)?xt:kt),this.a=n||this.a,e(M({},_t,this.a,{Transition:this.l}),function(n,t){n=n(i,u,i.f);(u[t]=n).setup&&n.setup()}),e(u,function(n){n.mount&&n.mount()}),this.emit(ln),A(this.root,"is-initialized"),r.set(3),this.emit("ready"),this},r.sync=function(n){return this.splides.push({splide:n}),n.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this.s.Sync.remount(),n.Components.Sync.remount()),this},r.go=function(n){return this.s.Controller.go(n),this},r.on=function(n,t){return this.event.on(n,t,null,20),this},r.off=function(n){return this.event.off(n),this},r.emit=function(n){var t;return(t=this.event).emit.apply(t,[n].concat(s(arguments,1))),this},r.add=function(n,t){return this.s.Slides.add(n,t),this},r.remove=function(n){return this.s.Slides.remove(n),this},r.is=function(n){return this.f.type===n},r.refresh=function(){return this.emit(bn),this},r.destroy=function(t){void 0===t&&(t=!0);var n=this.event,i=this.state;return i.is(1)?n.on("ready",this.destroy.bind(this,t),this):(e(this.s,function(n){n.destroy&&n.destroy(t)},!0),n.emit(f),n.destroy(),t&&_(this.splides),i.set(5)),this},n=i,(r=[{key:"options",get:function(){return this.f},set:function(n){var t=this.f;l(t,n),this.state.is(1)||this.emit(xn,t)}},{key:"length",get:function(){return this.s.Slides.getLength(!0)}},{key:"index",get:function(){return this.s.Controller.getIndex()}}])&&At(n.prototype,r),t&&At(n,t),Object.defineProperty(n,"prototype",{writable:!1}),i}();return i.defaults={},i.STATES=n,i},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n="undefined"!=typeof globalThis?globalThis:n||self).Splide=t();</script><script>!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):t.dayjs=n()}(this,function(){"use strict";var t="millisecond",n="second",e="minute",r="hour",i="day",s="week",u="month",o="quarter",a="year",h=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,f=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,c=function(t,n,e){var r=String(t);return!r||r.length>=n?t:""+Array(n+1-r.length).join(e)+t},d={s:c,z:function(t){var n=-t.utcOffset(),e=Math.abs(n),r=Math.floor(e/60),i=e%60;return(n<=0?"+":"-")+c(r,2,"0")+":"+c(i,2,"0")},m:function(t,n){var e=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(e,u),i=n-r<0,s=t.clone().add(e+(i?-1:1),u);return Number(-(e+(n-r)/(i?r-s:s-r))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(h){return{M:u,y:a,w:s,d:i,D:"date",h:r,m:e,s:n,ms:t,Q:o}[h]||String(h||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},l="en",m={};m[l]=$;var y=function(t){return t instanceof v},M=function(t,n,e){var r;if(!t)return l;if("string"==typeof t)m[t]&&(r=t),n&&(m[t]=n,r=t);else{var i=t.name;m[i]=t,r=i}return e||(l=r),r},g=function(t,n,e){if(y(t))return t.clone();var r=n?"string"==typeof n?{format:n,pl:e}:n:{};return r.date=t,new v(r)},D=d;D.l=M,D.i=y,D.w=function(t,n){return g(t,{locale:n.$L,utc:n.$u,$offset:n.$offset})};var v=function(){function c(t){this.$L=this.$L||M(t.locale,null,!0),this.parse(t)}var d=c.prototype;return d.parse=function(t){this.$d=function(t){var n=t.date,e=t.utc;if(null===n)return new Date(NaN);if(D.u(n))return new Date;if(n instanceof Date)return new Date(n);if("string"==typeof n&&!/Z$/i.test(n)){var r=n.match(h);if(r)return e?new Date(Date.UTC(r[1],r[2]-1,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)):new Date(r[1],r[2]-1,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)}return new Date(n)}(t),this.init()},d.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},d.$utils=function(){return D},d.isValid=function(){return!("Invalid Date"===this.$d.toString())},d.isSame=function(t,n){var e=g(t);return this.startOf(n)<=e&&e<=this.endOf(n)},d.isAfter=function(t,n){return g(t)<this.startOf(n)},d.isBefore=function(t,n){return this.endOf(n)<g(t)},d.$g=function(t,n,e){return D.u(t)?this[n]:this.set(e,t)},d.year=function(t){return this.$g(t,"$y",a)},d.month=function(t){return this.$g(t,"$M",u)},d.day=function(t){return this.$g(t,"$W",i)},d.date=function(t){return this.$g(t,"$D","date")},d.hour=function(t){return this.$g(t,"$H",r)},d.minute=function(t){return this.$g(t,"$m",e)},d.second=function(t){return this.$g(t,"$s",n)},d.millisecond=function(n){return this.$g(n,"$ms",t)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(t,o){var h=this,f=!!D.u(o)||o,c=D.p(t),d=function(t,n){var e=D.w(h.$u?Date.UTC(h.$y,n,t):new Date(h.$y,n,t),h);return f?e:e.endOf(i)},$=function(t,n){return D.w(h.toDate()[t].apply(h.toDate(),(f?[0,0,0,0]:[23,59,59,999]).slice(n)),h)},l=this.$W,m=this.$M,y=this.$D,M="set"+(this.$u?"UTC":"");switch(c){case a:return f?d(1,0):d(31,11);case u:return f?d(1,m):d(0,m+1);case s:var g=this.$locale().weekStart||0,v=(l<g?l+7:l)-g;return d(f?y-v:y+(6-v),m);case i:case"date":return $(M+"Hours",0);case r:return $(M+"Minutes",1);case e:return $(M+"Seconds",2);case n:return $(M+"Milliseconds",3);default:return this.clone()}},d.endOf=function(t){return this.startOf(t,!1)},d.$set=function(s,o){var h,f=D.p(s),c="set"+(this.$u?"UTC":""),d=(h={},h[i]=c+"Date",h.date=c+"Date",h[u]=c+"Month",h[a]=c+"FullYear",h[r]=c+"Hours",h[e]=c+"Minutes",h[n]=c+"Seconds",h[t]=c+"Milliseconds",h)[f],$=f===i?this.$D+(o-this.$W):o;if(f===u||f===a){var l=this.clone().set("date",1);l.$d[d]($),l.init(),this.$d=l.set("date",Math.min(this.$D,l.daysInMonth())).toDate()}else d&&this.$d[d]($);return this.init(),this},d.set=function(t,n){return this.clone().$set(t,n)},d.get=function(t){return this[D.p(t)]()},d.add=function(t,o){var h,f=this;t=Number(t);var c=D.p(o),d=function(n){var e=g(f);return D.w(e.date(e.date()+Math.round(n*t)),f)};if(c===u)return this.set(u,this.$M+t);if(c===a)return this.set(a,this.$y+t);if(c===i)return d(1);if(c===s)return d(7);var $=(h={},h[e]=6e4,h[r]=36e5,h[n]=1e3,h)[c]||1,l=this.$d.getTime()+t*$;return D.w(l,this)},d.subtract=function(t,n){return this.add(-1*t,n)},d.format=function(t){var n=this;if(!this.isValid())return"Invalid Date";var e=t||"YYYY-MM-DDTHH:mm:ssZ",r=D.z(this),i=this.$locale(),s=this.$H,u=this.$m,o=this.$M,a=i.weekdays,h=i.months,c=function(t,r,i,s){return t&&(t[r]||t(n,e))||i[r].substr(0,s)},d=function(t){return D.s(s%12||12,t,"0")},$=i.meridiem||function(t,n,e){var r=t<12?"AM":"PM";return e?r.toLowerCase():r},l={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:D.s(o+1,2,"0"),MMM:c(i.monthsShort,o,h,3),MMMM:h[o]||h(this,e),D:this.$D,DD:D.s(this.$D,2,"0"),d:String(this.$W),dd:c(i.weekdaysMin,this.$W,a,2),ddd:c(i.weekdaysShort,this.$W,a,3),dddd:a[this.$W],H:String(s),HH:D.s(s,2,"0"),h:d(1),hh:d(2),a:$(s,u,!0),A:$(s,u,!1),m:String(u),mm:D.s(u,2,"0"),s:String(this.$s),ss:D.s(this.$s,2,"0"),SSS:D.s(this.$ms,3,"0"),Z:r};return e.replace(f,function(t,n){return n||l[t]||r.replace(":","")})},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(t,h,f){var c,d=D.p(h),$=g(t),l=6e4*($.utcOffset()-this.utcOffset()),m=this-$,y=D.m(this,$);return y=(c={},c[a]=y/12,c[u]=y,c[o]=y/3,c[s]=(m-l)/6048e5,c[i]=(m-l)/864e5,c[r]=m/36e5,c[e]=m/6e4,c[n]=m/1e3,c)[d]||m,f?y:D.a(y)},d.daysInMonth=function(){return this.endOf(u).$D},d.$locale=function(){return m[this.$L]},d.locale=function(t,n){if(!t)return this.$L;var e=this.clone(),r=M(t,n,!0);return r&&(e.$L=r),e},d.clone=function(){return D.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},c}();return g.prototype=v.prototype,g.extend=function(t,n){return t(n,v,g),g},g.locale=M,g.isDayjs=y,g.unix=function(t){return g(1e3*t)},g.en=m[l],g.Ls=m,g});</script><script>!function(r){"use strict";var e,t=1e6,n=1e6,i="[big.js] ",o=i+"Invalid ",s=o+"decimal places",c=i+"Division by zero",f={},u=void 0,h=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function l(r,t,n,i){var o=r.c;if(n===u&&(n=e.RM),0!==n&&1!==n&&2!==n&&3!==n)throw Error("[big.js] Invalid rounding mode");if(t<1)i=3===n&&(i||!!o[0])||0===t&&(1===n&&o[0]>=5||2===n&&(o[0]>5||5===o[0]&&(i||o[1]!==u))),o.length=1,i?(r.e=r.e-t+1,o[0]=1):o[0]=r.e=0;else if(t<o.length){if(i=1===n&&o[t]>=5||2===n&&(o[t]>5||5===o[t]&&(i||o[t+1]!==u||1&o[t-1]))||3===n&&(i||!!o[0]),o.length=t--,i)for(;++o[t]>9;)o[t]=0,t--||(++r.e,o.unshift(1));for(t=o.length;!o[--t];)o.pop()}return r}function a(r,e,t){var n=r.e,i=r.c.join(""),o=i.length;if(e)i=i.charAt(0)+(o>1?"."+i.slice(1):"")+(n<0?"e":"e+")+n;else if(n<0){for(;++n;)i="0"+i;i="0."+i}else if(n>0)if(++n>o)for(n-=o;n--;)i+="0";else n<o&&(i=i.slice(0,n)+"."+i.slice(n));else o>1&&(i=i.charAt(0)+"."+i.slice(1));return r.s<0&&t?"-"+i:i}f.abs=function(){var r=new this.constructor(this);return r.s=1,r},f.cmp=function(r){var e,t=this,n=t.c,i=(r=new t.constructor(r)).c,o=t.s,s=r.s,c=t.e,f=r.e;if(!n[0]||!i[0])return n[0]?o:i[0]?-s:0;if(o!=s)return o;if(e=o<0,c!=f)return c>f^e?1:-1;for(s=(c=n.length)<(f=i.length)?c:f,o=-1;++o<s;)if(n[o]!=i[o])return n[o]>i[o]^e?1:-1;return c==f?0:c>f^e?1:-1},f.div=function(r){var e=this,n=e.constructor,i=e.c,o=(r=new n(r)).c,f=e.s==r.s?1:-1,h=n.DP;if(h!==~~h||h<0||h>t)throw Error(s);if(!o[0])throw Error(c);if(!i[0])return new n(0*f);var a,w,p,g,v,d=o.slice(),m=a=o.length,E=i.length,b=i.slice(0,a),P=b.length,M=r,x=M.c=[],D=0,N=h+(M.e=e.e-r.e)+1;for(M.s=f,f=N<0?0:N,d.unshift(0);P++<a;)b.push(0);do{for(p=0;p<10;p++){if(a!=(P=b.length))g=a>P?1:-1;else for(v=-1,g=0;++v<a;)if(o[v]!=b[v]){g=o[v]>b[v]?1:-1;break}if(!(g<0))break;for(w=P==a?o:d;P;){if(b[--P]<w[P]){for(v=P;v&&!b[--v];)b[v]=9;--b[v],b[P]+=10}b[P]-=w[P]}for(;!b[0];)b.shift()}x[D++]=g?p:++p,b[0]&&g?b[P]=i[m]||0:b=[i[m]]}while((m++<E||b[0]!==u)&&f--);return x[0]||1==D||(x.shift(),M.e--,N--),D>N&&l(M,N,n.RM,b[0]!==u),M},f.eq=function(r){return 0===this.cmp(r)},f.gt=function(r){return this.cmp(r)>0},f.gte=function(r){return this.cmp(r)>-1},f.lt=function(r){return this.cmp(r)<0},f.lte=function(r){return this.cmp(r)<1},f.minus=f.sub=function(r){var e,t,n,i,o=this,s=o.constructor,c=o.s,f=(r=new s(r)).s;if(c!=f)return r.s=-f,o.plus(r);var u=o.c.slice(),h=o.e,l=r.c,a=r.e;if(!u[0]||!l[0])return l[0]?(r.s=-f,r):new s(u[0]?o:0);if(c=h-a){for((i=c<0)?(c=-c,n=u):(a=h,n=l),n.reverse(),f=c;f--;)n.push(0);n.reverse()}else for(t=((i=u.length<l.length)?u:l).length,c=f=0;f<t;f++)if(u[f]!=l[f]){i=u[f]<l[f];break}if(i&&(n=u,u=l,l=n,r.s=-r.s),(f=(t=l.length)-(e=u.length))>0)for(;f--;)u[e++]=0;for(f=e;t>c;){if(u[--t]<l[t]){for(e=t;e&&!u[--e];)u[e]=9;--u[e],u[t]+=10}u[t]-=l[t]}for(;0===u[--f];)u.pop();for(;0===u[0];)u.shift(),--a;return u[0]||(r.s=1,u=[a=0]),r.c=u,r.e=a,r},f.mod=function(r){var e,t=this,n=t.constructor,i=t.s,o=(r=new n(r)).s;if(!r.c[0])throw Error(c);return t.s=r.s=1,e=1==r.cmp(t),t.s=i,r.s=o,e?new n(t):(i=n.DP,o=n.RM,n.DP=n.RM=0,t=t.div(r),n.DP=i,n.RM=o,this.minus(t.times(r)))},f.plus=f.add=function(r){var e,t=this,n=t.constructor,i=t.s,o=(r=new n(r)).s;if(i!=o)return r.s=-o,t.minus(r);var s=t.e,c=t.c,f=r.e,u=r.c;if(!c[0]||!u[0])return u[0]?r:new n(c[0]?t:0*i);if(c=c.slice(),i=s-f){for(i>0?(f=s,e=u):(i=-i,e=c),e.reverse();i--;)e.push(0);e.reverse()}for(c.length-u.length<0&&(e=u,u=c,c=e),i=u.length,o=0;i;c[i]%=10)o=(c[--i]=c[i]+u[i]+o)/10|0;for(o&&(c.unshift(o),++f),i=c.length;0===c[--i];)c.pop();return r.c=c,r.e=f,r},f.pow=function(r){var e=this,t=new e.constructor(1),i=t,s=r<0;if(r!==~~r||r<-1e6||r>n)throw Error(o+"exponent");for(s&&(r=-r);1&r&&(i=i.times(e)),r>>=1;)e=e.times(e);return s?t.div(i):i},f.prec=function(r,e){if(r!==~~r||r<1||r>t)throw Error(o+"precision");return l(new this.constructor(this),r,e)},f.round=function(r,e){if(r===u)r=0;else if(r!==~~r||r<-t||r>t)throw Error(s);return l(new this.constructor(this),r+this.e+1,e)},f.sqrt=function(){var r,e,t,n=this,o=n.constructor,s=n.s,c=n.e,f=new o(.5);if(!n.c[0])return new o(n);if(s<0)throw Error(i+"No square root");0===(s=Math.sqrt(n+""))||s===1/0?((e=n.c.join("")).length+c&1||(e+="0"),c=((c+1)/2|0)-(c<0||1&c),r=new o(((s=Math.sqrt(e))==1/0?"5e":(s=s.toExponential()).slice(0,s.indexOf("e")+1))+c)):r=new o(s),c=r.e+(o.DP+=4);do{t=r,r=f.times(t.plus(n.div(t)))}while(t.c.slice(0,c).join("")!==r.c.slice(0,c).join(""));return l(r,(o.DP-=4)+r.e+1,o.RM)},f.times=f.mul=function(r){var e,t=this,n=t.constructor,i=t.c,o=(r=new n(r)).c,s=i.length,c=o.length,f=t.e,u=r.e;if(r.s=t.s==r.s?1:-1,!i[0]||!o[0])return new n(0*r.s);for(r.e=f+u,s<c&&(e=i,i=o,o=e,u=s,s=c,c=u),e=new Array(u=s+c);u--;)e[u]=0;for(f=c;f--;){for(c=0,u=s+f;u>f;)c=e[u]+o[f]*i[u-f-1]+c,e[u--]=c%10,c=c/10|0;e[u]=c}for(c?++r.e:e.shift(),f=e.length;!e[--f];)e.pop();return r.c=e,r},f.toExponential=function(r,e){var n=this,i=n.c[0];if(r!==u){if(r!==~~r||r<0||r>t)throw Error(s);for(n=l(new n.constructor(n),++r,e);n.c.length<r;)n.c.push(0)}return a(n,!0,!!i)},f.toFixed=function(r,e){var n=this,i=n.c[0];if(r!==u){if(r!==~~r||r<0||r>t)throw Error(s);for(r=r+(n=l(new n.constructor(n),r+n.e+1,e)).e+1;n.c.length<r;)n.c.push(0)}return a(n,!1,!!i)},f.toJSON=f.toString=function(){var r=this,e=r.constructor;return a(r,r.e<=e.NE||r.e>=e.PE,!!r.c[0])},f.toNumber=function(){var r=Number(a(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(r.toString()))throw Error(i+"Imprecise conversion");return r},f.toPrecision=function(r,e){var n=this,i=n.constructor,s=n.c[0];if(r!==u){if(r!==~~r||r<1||r>t)throw Error(o+"precision");for(n=l(new i(n),r,e);n.c.length<r;)n.c.push(0)}return a(n,r<=n.e||n.e<=i.NE||n.e>=i.PE,!!s)},f.valueOf=function(){var r=this,e=r.constructor;if(!0===e.strict)throw Error(i+"valueOf disallowed");return a(r,r.e<=e.NE||r.e>=e.PE,!0)},(e=function r(){function e(t){var n=this;if(!(n instanceof e))return t===u?r():new e(t);if(t instanceof e)n.s=t.s,n.e=t.e,n.c=t.c.slice();else{if("string"!=typeof t){if(!0===e.strict)throw TypeError(o+"number");t=0===t&&1/t<0?"-0":String(t)}!function(r,e){var t,n,i;if(!h.test(e))throw Error(o+"number");r.s="-"==e.charAt(0)?(e=e.slice(1),-1):1,(t=e.indexOf("."))>-1&&(e=e.replace(".",""));(n=e.search(/e/i))>0?(t<0&&(t=n),t+=+e.slice(n+1),e=e.substring(0,n)):t<0&&(t=e.length);for(i=e.length,n=0;n<i&&"0"==e.charAt(n);)++n;if(n==i)r.c=[r.e=0];else{for(;i>0&&"0"==e.charAt(--i););for(r.e=t-n-1,r.c=[],t=0;n<=i;)r.c[t++]=+e.charAt(n++)}}(n,t)}n.constructor=e}return e.prototype=f,e.DP=20,e.RM=1,e.NE=-7,e.PE=21,e.strict=false,e}()).default=e.Big=e,"function"==typeof define&&define.amd?define((function(){return e})):"undefined"!=typeof module&&module.exports?module.exports=e:r.Big=e}(this);</script></div></template></dom-module-banner></div><script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'a1b8308b99c319a9',t:'MTc4NDExMjQ1Mg=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script></body></html>