@adstore/templates 2.6.13 → 2.6.15

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @adstore/templates
2
2
 
3
+ ## 2.6.14
4
+
5
+ ### Patch Changes
6
+
7
+ - Pass only ESM module.
8
+
3
9
  ## 2.6.13
4
10
 
5
11
  ### Patch Changes
@@ -1202,7 +1202,7 @@ const Mo = Wo(), ie = ({
1202
1202
  };
1203
1203
  return io(() => {
1204
1204
  const l = t.current.closest(`[data-${o}='${e}']`) || document.body;
1205
- l && (new ResizeObserver(() => i(l)).observe(l), i(l));
1205
+ l && (new ResizeObserver(() => i(l)).observe(l), console.log(l, o), i(l));
1206
1206
  }, []), r;
1207
1207
  }, oo = (e) => console.warn(`[Adstore-templates Deprecated]: ${e}`), Fe = (e, t) => S(e) && !(typeof e == "number" ? e.toString() : e).includes(t) ? `${e}${t}` : e, B_ = (e) => e.startsWith("px_"), q_ = (e) => e.startsWith("percent_"), F_ = (e, t) => {
1208
1208
  let o = e, n = t;
package/package.json CHANGED
@@ -1,14 +1,17 @@
1
1
  {
2
2
  "name": "@adstore/templates",
3
3
  "private": false,
4
- "version": "2.6.13",
4
+ "version": "2.6.15",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
8
8
  ],
9
9
  "types": "./dist/templates.es.d.ts",
10
- "main": "./dist/templates.umd.js",
11
- "module": "./dist/templates.es.js",
10
+ "exports": {
11
+ ".": "./dist/templates.js",
12
+ "./style.css": "./dist/style.css",
13
+ "./package.json": "./package.json"
14
+ },
12
15
  "scripts": {
13
16
  "dev": "vite build --watch",
14
17
  "build": "vite build",
@@ -1,5 +0,0 @@
1
- (function(h,p){typeof exports=="object"&&typeof module!="undefined"?p(exports,require("preact")):typeof define=="function"&&define.amd?define(["exports","preact"],p):(h=typeof globalThis!="undefined"?globalThis:h||self,p(h["@adstore/templates"]={},h.preact))})(this,function(h,p){"use strict";var tu=Object.defineProperty,ou=Object.defineProperties;var nu=Object.getOwnPropertyDescriptors;var ut=Object.getOwnPropertySymbols;var vn=Object.prototype.hasOwnProperty,mn=Object.prototype.propertyIsEnumerable;var hn=(h,p,C)=>p in h?tu(h,p,{enumerable:!0,configurable:!0,writable:!0,value:C}):h[p]=C,g=(h,p)=>{for(var C in p||(p={}))vn.call(p,C)&&hn(h,C,p[C]);if(ut)for(var C of ut(p))mn.call(p,C)&&hn(h,C,p[C]);return h},x=(h,p)=>ou(h,nu(p));var Tt=(h,p)=>{var C={};for(var Z in h)vn.call(h,Z)&&p.indexOf(Z)<0&&(C[Z]=h[Z]);if(h!=null&&ut)for(var Z of ut(h))p.indexOf(Z)<0&&mn.call(h,Z)&&(C[Z]=h[Z]);return C};var We=(h,p,C)=>new Promise((Z,Ge)=>{var T=ee=>{try{w(C.next(ee))}catch(xe){Ge(xe)}},de=ee=>{try{w(C.throw(ee))}catch(xe){Ge(xe)}},w=ee=>ee.done?Z(ee.value):Promise.resolve(ee.value).then(T,de);w((C=C.apply(h,p)).next())});var C=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Z={},Ge={get exports(){return Z},set exports(e){Z=e}};/*!
2
- Copyright (c) 2018 Jed Watson.
3
- Licensed under the MIT License (MIT), see
4
- http://jedwatson.github.io/classnames
5
- */(function(e){(function(){var t={}.hasOwnProperty;function o(){for(var n=[],r=0;r<arguments.length;r++){var a=arguments[r];if(a){var s=typeof a;if(s==="string"||s==="number")n.push(a);else if(Array.isArray(a)){if(a.length){var l=o.apply(null,a);l&&n.push(l)}}else if(s==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){n.push(a.toString());continue}for(var d in a)t.call(a,d)&&a[d]&&n.push(d)}}}return n.join(" ")}e.exports?(o.default=o,e.exports=o):window.classNames=o})()})(Ge);const T=Z;var de,w,ee,xe,Ne=0,Ot=[],Ue=[],St=p.options.__b,Lt=p.options.__r,At=p.options.diffed,It=p.options.__c,Rt=p.options.unmount;function Re(e,t){p.options.__h&&p.options.__h(w,e,Ne||t),Ne=0;var o=w.__H||(w.__H={__:[],__h:[]});return e>=o.__.length&&o.__.push({__V:Ue}),o.__[e]}function se(e){return Ne=1,bn(Bt,e)}function bn(e,t,o){var n=Re(de++,2);if(n.t=e,!n.__c&&(n.__=[o?o(t):Bt(void 0,t),function(l){var d=n.__N?n.__N[0]:n.__[0],c=n.t(d,l);d!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=w,!w.u)){var r=function(l,d,c){if(!n.__c.__H)return!0;var _=n.__c.__H.__.filter(function(u){return u.__c});if(_.every(function(u){return!u.__N}))return!a||a.call(this,l,d,c);var f=!1;return _.forEach(function(u){if(u.__N){var v=u.__[0];u.__=u.__N,u.__N=void 0,v!==u.__[0]&&(f=!0)}}),!(!f&&n.__c.props===l)&&(!a||a.call(this,l,d,c))};w.u=!0;var a=w.shouldComponentUpdate,s=w.componentWillUpdate;w.componentWillUpdate=function(l,d,c){if(this.__e){var _=a;a=void 0,r(l,d,c),a=_}s&&s.call(this,l,d,c)},w.shouldComponentUpdate=r}return n.__N||n.__}function F(e,t){var o=Re(de++,3);!p.options.__s&&ft(o.__H,t)&&(o.__=e,o.i=t,w.__H.__h.push(o))}function Et(e,t){var o=Re(de++,4);!p.options.__s&&ft(o.__H,t)&&(o.__=e,o.i=t,w.__h.push(o))}function U(e){return Ne=5,je(function(){return{current:e}},[])}function Ee(e,t,o){Ne=6,Et(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},o==null?o:o.concat(e))}function je(e,t){var o=Re(de++,7);return ft(o.__H,t)?(o.__V=e(),o.i=t,o.__h=e,o.__V):o.__}function yn(e,t){return Ne=8,je(function(){return e},t)}function $n(e){var t=w.context[e.__c],o=Re(de++,9);return o.c=e,t?(o.__==null&&(o.__=!0,t.sub(w)),t.props.value):e.__}function kn(){for(var e;e=Ot.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Xe),e.__H.__h.forEach(pt),e.__H.__h=[]}catch(t){e.__H.__h=[],p.options.__e(t,e.__v)}}p.options.__b=function(e){w=null,St&&St(e)},p.options.__r=function(e){Lt&&Lt(e),de=0;var t=(w=e.__c).__H;t&&(ee===w?(t.__h=[],w.__h=[],t.__.forEach(function(o){o.__N&&(o.__=o.__N),o.__V=Ue,o.__N=o.i=void 0})):(t.__h.forEach(Xe),t.__h.forEach(pt),t.__h=[])),ee=w},p.options.diffed=function(e){At&&At(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ot.push(t)!==1&&xe===p.options.requestAnimationFrame||((xe=p.options.requestAnimationFrame)||wn)(kn)),t.__H.__.forEach(function(o){o.i&&(o.__H=o.i),o.__V!==Ue&&(o.__=o.__V),o.i=void 0,o.__V=Ue})),ee=w=null},p.options.__c=function(e,t){t.some(function(o){try{o.__h.forEach(Xe),o.__h=o.__h.filter(function(n){return!n.__||pt(n)})}catch(n){t.some(function(r){r.__h&&(r.__h=[])}),t=[],p.options.__e(n,o.__v)}}),It&&It(e,t)},p.options.unmount=function(e){Rt&&Rt(e);var t,o=e.__c;o&&o.__H&&(o.__H.__.forEach(function(n){try{Xe(n)}catch(r){t=r}}),o.__H=void 0,t&&p.options.__e(t,o.__v))};var jt=typeof requestAnimationFrame=="function";function wn(e){var t,o=function(){clearTimeout(n),jt&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(o,100);jt&&(t=requestAnimationFrame(o))}function Xe(e){var t=w,o=e.__c;typeof o=="function"&&(e.__c=void 0,o()),w=t}function pt(e){var t=w;e.__c=e.__(),w=t}function ft(e,t){return!e||e.length!==t.length||t.some(function(o,n){return o!==e[n]})}function Bt(e,t){return typeof t=="function"?t(e):t}function zt(e,t){for(var o in t)e[o]=t[o];return e}function Pt(e,t){for(var o in e)if(o!=="__source"&&!(o in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function Mt(e){this.props=e}(Mt.prototype=new p.Component).isPureReactComponent=!0,Mt.prototype.shouldComponentUpdate=function(e,t){return Pt(this.props,e)||Pt(this.state,t)};var Ht=p.options.__b;p.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ht&&Ht(e)};var xn=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function _e(e){function t(o){var n=zt({},o);return delete n.ref,e(n,o.ref||null)}return t.$$typeof=xn,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Nn=p.options.__e;p.options.__e=function(e,t,o,n){if(e.then){for(var r,a=t;a=a.__;)if((r=a.__c)&&r.__c)return t.__e==null&&(t.__e=o.__e,t.__k=o.__k),r.__c(e,t)}Nn(e,t,o,n)};var Vt=p.options.unmount;function Dt(e,t,o){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=zt({},e)).__c!=null&&(e.__c.__P===o&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Dt(n,t,o)})),e}function qt(e,t,o){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return qt(n,t,o)}),e.__c&&e.__c.__P===t&&(e.__e&&o.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=o)),e}function gt(){this.__u=0,this.t=null,this.__b=null}function Ft(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ze(){this.u=null,this.o=null}p.options.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Vt&&Vt(e)},(gt.prototype=new p.Component).__c=function(e,t){var o=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(o);var r=Ft(n.__v),a=!1,s=function(){a||(a=!0,o.__R=null,r?r(l):l())};o.__R=s;var l=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=qt(c,c.__c.__P,c.__c.__O)}var _;for(n.setState({__a:n.__b=null});_=n.t.pop();)_.forceUpdate()}},d=t.__h===!0;n.__u++||d||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(s,s)},gt.prototype.componentWillUnmount=function(){this.t=[]},gt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Dt(this.__b,o,n.__O=n.__P)}this.__b=null}var r=t.__a&&p.createElement(p.Fragment,null,e.fallback);return r&&(r.__h=null),[p.createElement(p.Fragment,null,t.__a?null:e.children),r]};var Wt=function(e,t,o){if(++o[1]===o[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(o=e.u;o;){for(;o.length>3;)o.pop()();if(o[1]<o[0])break;e.u=o=o[2]}};(Ze.prototype=new p.Component).__a=function(e){var t=this,o=Ft(t.__v),n=t.o.get(e);return n[0]++,function(r){var a=function(){t.props.revealOrder?(n.push(r),Wt(t,e,n)):r()};o?o(a):a()}},Ze.prototype.render=function(e){this.u=null,this.o=new Map;var t=p.toChildArray(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var o=t.length;o--;)this.o.set(t[o],this.u=[1,0,this.u]);return e.children},Ze.prototype.componentDidUpdate=Ze.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,o){Wt(e,o,t)})};var Cn=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,Tn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,On=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Sn=/[A-Z0-9]/g,Ln=typeof document!="undefined",An=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};p.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(p.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Gt=p.options.event;function In(){}function Rn(){return this.cancelBubble}function En(){return this.defaultPrevented}p.options.event=function(e){return Gt&&(e=Gt(e)),e.persist=In,e.isPropagationStopped=Rn,e.isDefaultPrevented=En,e.nativeEvent=e};var jn={enumerable:!1,configurable:!0,get:function(){return this.class}},Ut=p.options.vnode;p.options.vnode=function(e){typeof e.type=="string"&&function(t){var o=t.props,n=t.type,r={};for(var a in o){var s=o[a];if(!(a==="value"&&"defaultValue"in o&&s==null||Ln&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in o&&o.value==null?a="value":a==="download"&&s===!0?s="":l==="ondoubleclick"?a="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||An(o.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":On.test(a)?a=l:n.indexOf("-")===-1&&Tn.test(a)?a=a.replace(Sn,"-$&").toLowerCase():s===null&&(s=void 0):l=a="oninput",l==="oninput"&&r[a=l]&&(a="oninputCapture"),r[a]=s}}n=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=p.toChildArray(o.children).forEach(function(d){d.props.selected=r.value.indexOf(d.props.value)!=-1})),n=="select"&&r.defaultValue!=null&&(r.value=p.toChildArray(o.children).forEach(function(d){d.props.selected=r.multiple?r.defaultValue.indexOf(d.props.value)!=-1:r.defaultValue==d.props.value})),o.class&&!o.className?(r.class=o.class,Object.defineProperty(r,"className",jn)):(o.className&&!o.class||o.class&&o.className)&&(r.class=r.className=o.className),t.props=r}(e),e.$$typeof=Cn,Ut&&Ut(e)};var Xt=p.options.__r;p.options.__r=function(e){Xt&&Xt(e),e.__c};var Zt=p.options.diffed;p.options.diffed=function(e){Zt&&Zt(e);var t=e.props,o=e.__e;o!=null&&e.type==="textarea"&&"value"in t&&t.value!==o.value&&(o.value=t.value==null?"":t.value)};function Bn(){this.__data__=[],this.size=0}var zn=Bn;function Pn(e,t){return e===t||e!==e&&t!==t}var Ke=Pn,Mn=Ke;function Hn(e,t){for(var o=e.length;o--;)if(Mn(e[o][0],t))return o;return-1}var Je=Hn,Vn=Je,Dn=Array.prototype,qn=Dn.splice;function Fn(e){var t=this.__data__,o=Vn(t,e);if(o<0)return!1;var n=t.length-1;return o==n?t.pop():qn.call(t,o,1),--this.size,!0}var Wn=Fn,Gn=Je;function Un(e){var t=this.__data__,o=Gn(t,e);return o<0?void 0:t[o][1]}var Xn=Un,Zn=Je;function Kn(e){return Zn(this.__data__,e)>-1}var Jn=Kn,Yn=Je;function Qn(e,t){var o=this.__data__,n=Yn(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this}var er=Qn,tr=zn,or=Wn,nr=Xn,rr=Jn,ar=er;function Ce(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}Ce.prototype.clear=tr,Ce.prototype.delete=or,Ce.prototype.get=nr,Ce.prototype.has=rr,Ce.prototype.set=ar;var Ye=Ce,sr=Ye;function ir(){this.__data__=new sr,this.size=0}var cr=ir;function lr(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}var dr=lr;function _r(e){return this.__data__.get(e)}var ur=_r;function pr(e){return this.__data__.has(e)}var fr=pr,gr=typeof C=="object"&&C&&C.Object===Object&&C,Kt=gr,hr=Kt,vr=typeof self=="object"&&self&&self.Object===Object&&self,mr=hr||vr||Function("return this")(),Te=mr,br=Te,yr=br.Symbol,Jt=yr,Yt=Jt,Qt=Object.prototype,$r=Qt.hasOwnProperty,kr=Qt.toString,Be=Yt?Yt.toStringTag:void 0;function wr(e){var t=$r.call(e,Be),o=e[Be];try{e[Be]=void 0;var n=!0}catch(a){}var r=kr.call(e);return n&&(t?e[Be]=o:delete e[Be]),r}var xr=wr,Nr=Object.prototype,Cr=Nr.toString;function Tr(e){return Cr.call(e)}var Or=Tr,eo=Jt,Sr=xr,Lr=Or,Ar="[object Null]",Ir="[object Undefined]",to=eo?eo.toStringTag:void 0;function Rr(e){return e==null?e===void 0?Ir:Ar:to&&to in Object(e)?Sr(e):Lr(e)}var Qe=Rr;function Er(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var me=Er,jr=Qe,Br=me,zr="[object AsyncFunction]",Pr="[object Function]",Mr="[object GeneratorFunction]",Hr="[object Proxy]";function Vr(e){if(!Br(e))return!1;var t=jr(e);return t==Pr||t==Mr||t==zr||t==Hr}var ht=Vr,Dr=Te,qr=Dr["__core-js_shared__"],Fr=qr,vt=Fr,oo=function(){var e=/[^.]+$/.exec(vt&&vt.keys&&vt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Wr(e){return!!oo&&oo in e}var Gr=Wr,Ur=Function.prototype,Xr=Ur.toString;function Zr(e){if(e!=null){try{return Xr.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Kr=Zr,Jr=ht,Yr=Gr,Qr=me,ea=Kr,ta=/[\\^$.*+?()[\]{}|]/g,oa=/^\[object .+?Constructor\]$/,na=Function.prototype,ra=Object.prototype,aa=na.toString,sa=ra.hasOwnProperty,ia=RegExp("^"+aa.call(sa).replace(ta,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ca(e){if(!Qr(e)||Yr(e))return!1;var t=Jr(e)?ia:oa;return t.test(ea(e))}var la=ca;function da(e,t){return e==null?void 0:e[t]}var _a=da,ua=la,pa=_a;function fa(e,t){var o=pa(e,t);return ua(o)?o:void 0}var mt=fa,ga=mt,ha=Te,va=ga(ha,"Map"),no=va,ma=mt,ba=ma(Object,"create"),et=ba,ro=et;function ya(){this.__data__=ro?ro(null):{},this.size=0}var $a=ya;function ka(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var wa=ka,xa=et,Na="__lodash_hash_undefined__",Ca=Object.prototype,Ta=Ca.hasOwnProperty;function Oa(e){var t=this.__data__;if(xa){var o=t[e];return o===Na?void 0:o}return Ta.call(t,e)?t[e]:void 0}var Sa=Oa,La=et,Aa=Object.prototype,Ia=Aa.hasOwnProperty;function Ra(e){var t=this.__data__;return La?t[e]!==void 0:Ia.call(t,e)}var Ea=Ra,ja=et,Ba="__lodash_hash_undefined__";function za(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=ja&&t===void 0?Ba:t,this}var Pa=za,Ma=$a,Ha=wa,Va=Sa,Da=Ea,qa=Pa;function Oe(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}Oe.prototype.clear=Ma,Oe.prototype.delete=Ha,Oe.prototype.get=Va,Oe.prototype.has=Da,Oe.prototype.set=qa;var Fa=Oe,ao=Fa,Wa=Ye,Ga=no;function Ua(){this.size=0,this.__data__={hash:new ao,map:new(Ga||Wa),string:new ao}}var Xa=Ua;function Za(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Ka=Za,Ja=Ka;function Ya(e,t){var o=e.__data__;return Ja(t)?o[typeof t=="string"?"string":"hash"]:o.map}var tt=Ya,Qa=tt;function es(e){var t=Qa(this,e).delete(e);return this.size-=t?1:0,t}var ts=es,os=tt;function ns(e){return os(this,e).get(e)}var rs=ns,as=tt;function ss(e){return as(this,e).has(e)}var is=ss,cs=tt;function ls(e,t){var o=cs(this,e),n=o.size;return o.set(e,t),this.size+=o.size==n?0:1,this}var ds=ls,_s=Xa,us=ts,ps=rs,fs=is,gs=ds;function Se(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}Se.prototype.clear=_s,Se.prototype.delete=us,Se.prototype.get=ps,Se.prototype.has=fs,Se.prototype.set=gs;var hs=Se,vs=Ye,ms=no,bs=hs,ys=200;function $s(e,t){var o=this.__data__;if(o instanceof vs){var n=o.__data__;if(!ms||n.length<ys-1)return n.push([e,t]),this.size=++o.size,this;o=this.__data__=new bs(n)}return o.set(e,t),this.size=o.size,this}var ks=$s,ws=Ye,xs=cr,Ns=dr,Cs=ur,Ts=fr,Os=ks;function Le(e){var t=this.__data__=new ws(e);this.size=t.size}Le.prototype.clear=xs,Le.prototype.delete=Ns,Le.prototype.get=Cs,Le.prototype.has=Ts,Le.prototype.set=Os;var Ss=Le,Ls=mt,As=function(){try{var e=Ls(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),so=As,io=so;function Is(e,t,o){t=="__proto__"&&io?io(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}var bt=Is,Rs=bt,Es=Ke;function js(e,t,o){(o!==void 0&&!Es(e[t],o)||o===void 0&&!(t in e))&&Rs(e,t,o)}var co=js;function Bs(e){return function(t,o,n){for(var r=-1,a=Object(t),s=n(t),l=s.length;l--;){var d=s[e?l:++r];if(o(a[d],d,a)===!1)break}return t}}var zs=Bs,Ps=zs,Ms=Ps(),Hs=Ms,ot={},Vs={get exports(){return ot},set exports(e){ot=e}};(function(e,t){var o=Te,n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,a=r&&r.exports===n,s=a?o.Buffer:void 0,l=s?s.allocUnsafe:void 0;function d(c,_){if(_)return c.slice();var f=c.length,u=l?l(f):new c.constructor(f);return c.copy(u),u}e.exports=d})(Vs,ot);var Ds=Te,qs=Ds.Uint8Array,Fs=qs,lo=Fs;function Ws(e){var t=new e.constructor(e.byteLength);return new lo(t).set(new lo(e)),t}var Gs=Ws,Us=Gs;function Xs(e,t){var o=t?Us(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}var Zs=Xs;function Ks(e,t){var o=-1,n=e.length;for(t||(t=Array(n));++o<n;)t[o]=e[o];return t}var Js=Ks,Ys=me,_o=Object.create,Qs=function(){function e(){}return function(t){if(!Ys(t))return{};if(_o)return _o(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}(),ei=Qs;function ti(e,t){return function(o){return e(t(o))}}var oi=ti,ni=oi,ri=ni(Object.getPrototypeOf,Object),uo=ri,ai=Object.prototype;function si(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||ai;return e===o}var po=si,ii=ei,ci=uo,li=po;function di(e){return typeof e.constructor=="function"&&!li(e)?ii(ci(e)):{}}var _i=di;function ui(e){return e!=null&&typeof e=="object"}var ze=ui,pi=Qe,fi=ze,gi="[object Arguments]";function hi(e){return fi(e)&&pi(e)==gi}var vi=hi,fo=vi,mi=ze,go=Object.prototype,bi=go.hasOwnProperty,yi=go.propertyIsEnumerable,$i=fo(function(){return arguments}())?fo:function(e){return mi(e)&&bi.call(e,"callee")&&!yi.call(e,"callee")},ho=$i,ki=Array.isArray,vo=ki,wi=9007199254740991;function xi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=wi}var mo=xi,Ni=ht,Ci=mo;function Ti(e){return e!=null&&Ci(e.length)&&!Ni(e)}var yt=Ti,Oi=yt,Si=ze;function Li(e){return Si(e)&&Oi(e)}var Ai=Li,Pe={},Ii={get exports(){return Pe},set exports(e){Pe=e}};function Ri(){return!1}var Ei=Ri;(function(e,t){var o=Te,n=Ei,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===r,l=s?o.Buffer:void 0,d=l?l.isBuffer:void 0,c=d||n;e.exports=c})(Ii,Pe);var ji=Qe,Bi=uo,zi=ze,Pi="[object Object]",Mi=Function.prototype,Hi=Object.prototype,bo=Mi.toString,Vi=Hi.hasOwnProperty,Di=bo.call(Object);function qi(e){if(!zi(e)||ji(e)!=Pi)return!1;var t=Bi(e);if(t===null)return!0;var o=Vi.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&bo.call(o)==Di}var Fi=qi,Wi=Qe,Gi=mo,Ui=ze,Xi="[object Arguments]",Zi="[object Array]",Ki="[object Boolean]",Ji="[object Date]",Yi="[object Error]",Qi="[object Function]",ec="[object Map]",tc="[object Number]",oc="[object Object]",nc="[object RegExp]",rc="[object Set]",ac="[object String]",sc="[object WeakMap]",ic="[object ArrayBuffer]",cc="[object DataView]",lc="[object Float32Array]",dc="[object Float64Array]",_c="[object Int8Array]",uc="[object Int16Array]",pc="[object Int32Array]",fc="[object Uint8Array]",gc="[object Uint8ClampedArray]",hc="[object Uint16Array]",vc="[object Uint32Array]",N={};N[lc]=N[dc]=N[_c]=N[uc]=N[pc]=N[fc]=N[gc]=N[hc]=N[vc]=!0,N[Xi]=N[Zi]=N[ic]=N[Ki]=N[cc]=N[Ji]=N[Yi]=N[Qi]=N[ec]=N[tc]=N[oc]=N[nc]=N[rc]=N[ac]=N[sc]=!1;function mc(e){return Ui(e)&&Gi(e.length)&&!!N[Wi(e)]}var bc=mc;function yc(e){return function(t){return e(t)}}var $c=yc,nt={},kc={get exports(){return nt},set exports(e){nt=e}};(function(e,t){var o=Kt,n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,a=r&&r.exports===n,s=a&&o.process,l=function(){try{var d=r&&r.require&&r.require("util").types;return d||s&&s.binding&&s.binding("util")}catch(c){}}();e.exports=l})(kc,nt);var wc=bc,xc=$c,yo=nt,$o=yo&&yo.isTypedArray,Nc=$o?xc($o):wc,ko=Nc;function Cc(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var wo=Cc,Tc=bt,Oc=Ke,Sc=Object.prototype,Lc=Sc.hasOwnProperty;function Ac(e,t,o){var n=e[t];(!(Lc.call(e,t)&&Oc(n,o))||o===void 0&&!(t in e))&&Tc(e,t,o)}var Ic=Ac,Rc=Ic,Ec=bt;function jc(e,t,o,n){var r=!o;o||(o={});for(var a=-1,s=t.length;++a<s;){var l=t[a],d=n?n(o[l],e[l],l,o,e):void 0;d===void 0&&(d=e[l]),r?Ec(o,l,d):Rc(o,l,d)}return o}var Bc=jc;function zc(e,t){for(var o=-1,n=Array(e);++o<e;)n[o]=t(o);return n}var Pc=zc,Mc=9007199254740991,Hc=/^(?:0|[1-9]\d*)$/;function Vc(e,t){var o=typeof e;return t=t==null?Mc:t,!!t&&(o=="number"||o!="symbol"&&Hc.test(e))&&e>-1&&e%1==0&&e<t}var xo=Vc,Dc=Pc,qc=ho,Fc=vo,Wc=Pe,Gc=xo,Uc=ko,Xc=Object.prototype,Zc=Xc.hasOwnProperty;function Kc(e,t){var o=Fc(e),n=!o&&qc(e),r=!o&&!n&&Wc(e),a=!o&&!n&&!r&&Uc(e),s=o||n||r||a,l=s?Dc(e.length,String):[],d=l.length;for(var c in e)(t||Zc.call(e,c))&&!(s&&(c=="length"||r&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Gc(c,d)))&&l.push(c);return l}var Jc=Kc;function Yc(e){var t=[];if(e!=null)for(var o in Object(e))t.push(o);return t}var Qc=Yc,el=me,tl=po,ol=Qc,nl=Object.prototype,rl=nl.hasOwnProperty;function al(e){if(!el(e))return ol(e);var t=tl(e),o=[];for(var n in e)n=="constructor"&&(t||!rl.call(e,n))||o.push(n);return o}var sl=al,il=Jc,cl=sl,ll=yt;function dl(e){return ll(e)?il(e,!0):cl(e)}var No=dl,_l=Bc,ul=No;function pl(e){return _l(e,ul(e))}var fl=pl,Co=co,gl=ot,hl=Zs,vl=Js,ml=_i,To=ho,Oo=vo,bl=Ai,yl=Pe,$l=ht,kl=me,wl=Fi,xl=ko,So=wo,Nl=fl;function Cl(e,t,o,n,r,a,s){var l=So(e,o),d=So(t,o),c=s.get(d);if(c){Co(e,o,c);return}var _=a?a(l,d,o+"",e,t,s):void 0,f=_===void 0;if(f){var u=Oo(d),v=!u&&yl(d),b=!u&&!v&&xl(d);_=d,u||v||b?Oo(l)?_=l:bl(l)?_=vl(l):v?(f=!1,_=gl(d,!0)):b?(f=!1,_=hl(d,!0)):_=[]:wl(d)||To(d)?(_=l,To(l)?_=Nl(l):(!kl(l)||$l(l))&&(_=ml(d))):f=!1}f&&(s.set(d,_),r(_,d,n,a,s),s.delete(d)),Co(e,o,_)}var Tl=Cl,Ol=Ss,Sl=co,Ll=Hs,Al=Tl,Il=me,Rl=No,El=wo;function Lo(e,t,o,n,r){e!==t&&Ll(t,function(a,s){if(r||(r=new Ol),Il(a))Al(e,t,s,o,Lo,n,r);else{var l=n?n(El(e,s),a,s+"",e,t,r):void 0;l===void 0&&(l=a),Sl(e,s,l)}},Rl)}var jl=Lo;function Bl(e){return e}var Ao=Bl;function zl(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}var Pl=zl,Ml=Pl,Io=Math.max;function Hl(e,t,o){return t=Io(t===void 0?e.length-1:t,0),function(){for(var n=arguments,r=-1,a=Io(n.length-t,0),s=Array(a);++r<a;)s[r]=n[t+r];r=-1;for(var l=Array(t+1);++r<t;)l[r]=n[r];return l[t]=o(s),Ml(e,this,l)}}var Vl=Hl;function Dl(e){return function(){return e}}var ql=Dl,Fl=ql,Ro=so,Wl=Ao,Gl=Ro?function(e,t){return Ro(e,"toString",{configurable:!0,enumerable:!1,value:Fl(t),writable:!0})}:Wl,Ul=Gl,Xl=800,Zl=16,Kl=Date.now;function Jl(e){var t=0,o=0;return function(){var n=Kl(),r=Zl-(n-o);if(o=n,r>0){if(++t>=Xl)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Yl=Jl,Ql=Ul,ed=Yl,td=ed(Ql),od=td,nd=Ao,rd=Vl,ad=od;function sd(e,t){return ad(rd(e,t,nd),e+"")}var id=sd,cd=Ke,ld=yt,dd=xo,_d=me;function ud(e,t,o){if(!_d(o))return!1;var n=typeof t;return(n=="number"?ld(o)&&dd(t,o.length):n=="string"&&t in o)?cd(o[t],e):!1}var pd=ud,fd=id,gd=pd;function hd(e){return fd(function(t,o){var n=-1,r=o.length,a=r>1?o[r-1]:void 0,s=r>2?o[2]:void 0;for(a=e.length>3&&typeof a=="function"?(r--,a):void 0,s&&gd(o[0],o[1],s)&&(a=r<3?void 0:a,r=1),t=Object(t);++n<r;){var l=o[n];l&&e(t,l,n,a)}return t})}var vd=hd,md=jl,bd=vd;bd(function(e,t,o){md(e,t,o)});const be=(e,t,o)=>Array.isArray(e)?e.map((n,r)=>{const a=[o,r].filter(M).join(".");return be(t(r,n,a),t,a)}):typeof e=="object"&&e?Object.entries(e).reduce((n,[r,a])=>{const s=[o,r].filter(M).join(".");return n[r]=be(t(r,a,s),t,s),n},{}):e,yd=e=>{const t=document.getElementsByTagName("head")[0],o=document.createElement("link");Object.entries(e).forEach(([n,r])=>o.setAttribute(n,r)),t.appendChild(o)},Me=()=>{let e={};return{on:(s,l)=>{s in e?e[s].push(l):e[s]=[l]},has:s=>s in e,get:s=>e[s],emit:(s,...l)=>s in e?e[s].map(d=>d(...l)).filter(Boolean):[],reset:()=>e={}}},$d=()=>({name:null,logo:null}),Eo=()=>({name:null,logo:null}),kd=()=>({factor:null,type:null,outcome:null,value:null}),wd=()=>({w1:null,x:null,w2:null}),xd=()=>({w1:null,w2:null}),Nd=()=>({one_x_two:wd(),one_two:xd()}),jo=(e,t)=>{var n;const o={slug:(e==null?void 0:e.slug)||null,sportSlug:(e==null?void 0:e.sport_slug)||null,matchDate:(e==null?void 0:e.match_date)||null,teams:g({},(e==null?void 0:e.teams)||{0:Eo(),1:Eo()}),league:(e==null?void 0:e.unique_tournament)||$d(),prediction:(e==null?void 0:e.prediction)||kd(),isNational:(n=e==null?void 0:e.is_national)!=null?n:null};if(t!=null&&t.markets){const r=t.markets.reduce((a,s)=>(a[s]=m(e||{},`markets.${s}`,Nd()[s||"one_two"]),a),{});He(o,"markets",r)}return o},Cd=(e=300,t)=>new Promise(o=>setTimeout(()=>o(t),e)),Td=e=>!e&&e==null,M=e=>!Td(e),Bo=e=>typeof e!="object"&&typeof e!="function"||e===null,Od=e=>typeof e=="object"&&!Array.isArray(e)&&M(e),Sd=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,o)=>(o?"-":"")+t.toLowerCase()),te=(e,...t)=>t.reduce((o,n)=>(o[n]=e[n],o),{});function ie(e,...t){const o=g({},e);return t.forEach(n=>{delete o[n]}),o}const m=(e,t,o)=>{if(!t)return;const r=(Array.isArray(t)?t:t.match(/([^[.\]])+/g)).reduce((a,s)=>a&&a[s],e);return r===void 0?o:r},He=(e,t,o)=>{const n=Array.isArray(t)?t:t.match(/([^[.\]])+/g);return n.reduce((r,a,s)=>(r[a]===void 0&&(r[a]={}),s===n.length-1&&(r[a]=o),r[a]),e)},Ld=e=>{const t=e.slice(1);return t.length===3&&(e="#"+t.split("").map(o=>`${o}${o}`).join("")),e},Ad=e=>{const t=Ld(e),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return o?{r:parseInt(o[1],16),g:parseInt(o[2],16),b:parseInt(o[3],16)}:void 0},zo=(...e)=>e.map(t=>JSON.stringify(t)).every((t,o,n)=>t===n[0]),Id=e=>"id"in e&&"root"in e,Rd=(e,t=1)=>e.replace(")",`, ${t})`).replace("rgb","rgba"),Po=(e,t,o)=>be(e,(n,r,a)=>Bo(r)||Array.isArray(r)&&r.every(Bo)?o?o(n,[r,m(t,a)],a)?m(t,a,r):r:m(t,a,r):r),Ed=(e,t)=>{try{be(e,(o,n,r)=>{if(t(o,n,r))throw{key:o,value:n,path:r};return n})}catch(o){return o}},jd=(e,t)=>{const o=[];return be(e,(n,r,a)=>(t(n,r,a,o)&&o.push({key:n,value:r,path:a}),r)),o},Mo=["desktop","laptop","tablet","mobile"],Bd={mobile:320,tablet:768,laptop:1024,desktop:1920},O={root:"_root_90dqc_1",icon:"_icon_90dqc_5",iconTarget:"_iconTarget_90dqc_17",body:"_body_90dqc_23",bodyOpen:"_bodyOpen_90dqc_31",simpleGift_in:"_simpleGift_in_90dqc_1",close:"_close_90dqc_44",arrow:"_arrow_90dqc_56",container:"_container_90dqc_67",inner:"_inner_90dqc_73",logo:"_logo_90dqc_80",text:"_text_90dqc_87",button:"_button_90dqc_94",buttonAnimated:"_buttonAnimated_90dqc_103",increase:"_increase_90dqc_1",legalGap:"_legalGap_90dqc_107",legalOpen:"_legalOpen_90dqc_111",legal:"_legal_90dqc_107",legalText:"_legalText_90dqc_139",legalButton:"_legalButton_90dqc_157",fadein:"_fadein_90dqc_1",pulse:"_pulse_90dqc_1",gradient:"_gradient_90dqc_1",wiggle:"_wiggle_90dqc_1"};var zd=0;function i(e,t,o,n,r,a){var s,l,d={};for(l in t)l=="ref"?s=t[l]:d[l]=t[l];var c={type:e,props:d,key:o,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--zd,__source:r,__self:a};if(typeof e=="function"&&(s=e.defaultProps))for(l in s)d[l]===void 0&&(d[l]=s[l]);return p.options.vnode&&p.options.vnode(c),c}const Ho=p.createContext(),ue=({children:e,value:t})=>i(Ho.Provider,{value:t,children:e}),pe=e=>s=>We(this,null,function*(){var l=s,{target:t,id:o,ref:n,state:r}=l,a=Tt(l,["target","id","ref","state"]);if(!("ResizeObserver"in window)){const d=yield Promise.resolve().then(()=>Q_);window.ResizeObserver=d.ResizeObserver}return p.render(i(ue,{value:r,children:p.cloneElement(e,g({ref:n,id:o},a))}),t)}),H=()=>$n(Ho),Pd=(e={})=>typeof e=="object"&&M(e)&&Mo.every(t=>t in e),Md=(e,t)=>e&&be(e,(o,n)=>{if(Pd(n)){const r=n[t];return r&&"parent"in r&&M(r.parent)?g(g({},n[r.parent]),ie(r,"parent")):r}return n}),fe=(e,t)=>Md(e,t),ye=({id:e,targetRef:t,parentKey:o="device-container",breakpoints:n=Bd})=>{const[r,a]=se("desktop"),s=l=>{var f;const d=l.getBoundingClientRect().width||0,c=Object.entries(g({},n)).sort(([u,v],[b,$])=>v-$),_=((f=c.find(([u,v],b)=>{const[$,y]=c[b+1]||[];return d>=v&&d<y}))==null?void 0:f[0])||"desktop";a(_)};return Et(()=>{const l=t.current.closest(`[data-${o}='${e}']`)||document.body;l&&(new ResizeObserver(()=>s(l)).observe(l),s(l))},[]),r},Vo=e=>console.warn(`[Adstore-templates Deprecated]: ${e}`),rt=(e,t)=>M(e)&&!(typeof e=="number"?e.toString():e).includes(t)?`${e}${t}`:e,Hd=e=>e.startsWith("px_"),Vd=e=>e.startsWith("percent_"),Dd=(e,t)=>{let o=e,n=t;return Hd(o)&&(o=o.replace("px_",""),n=rt(t,"px")),Vd(o)&&(o=o.replace("percent_",""),n=rt(t,"%")),{key:o,value:n}},qd="-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,'Noto Sans',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji'",Fd=["borderWidth","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","minHeight","minWidth","maxWidth","maxHeight","fontSize","height","width","letterSpacing","fontSize","left","right","top","bottom","marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"],Do=e=>{const t=Object.keys(e);return(t.includes("innerHTML")||t.includes("innerText"))&&console.warn('Warning! InnerHTML and innerText is deprecated. Use "children" property.'),typeof e!="object"?e:Object.entries(e).reduce((o,[n,r])=>{Fd.includes(n)&&(r=rt(r,"px"));const{key:a,value:s}=Dd(n,r);if(Od(s)&&(o[a]=Do(s)),o[a]=s,a==="hidden"&&s)return o.display="none",o;if(a==="innerHTML"&&(o.innerHTML=M(s)?`${s}`:""),a==="innerText"&&(o.innerText=M(s)?`${s}`:""),a==="children"&&(o.children=typeof s=="string"?M(s)?`${s}`:"":s),a.includes("borderWidth")&&(o.borderStyle="solid"),a==="corner"&&(o.borderRadius=rt(s,"px")),a==="backgroundFit"&&(Vo("Property 'backgroundFit' is deprecated. Use 'objectFit' instead."),o.backgroundSize=s,o.objectFit=s),a==="backgroundImage"&&M(s)&&(o.backgroundImage=`url(${s})`,o.backgroundRepeat="no-repeat",o.imageSource=s,Vo("Property 'backgroundImage' is deprecated. Use 'imageSource' instead.")),a==="backgroundColorOpacity"&&M(o.backgroundColorOpacity)&&M(o.backgroundColor)){const l=Ad(o.backgroundColor);l&&(o.backgroundColor=Rd(`rgb(${l.r}, ${l.g}, ${l.b})`,+o.backgroundColorOpacity/100))}return a==="fontFamily"&&/auto/i.test(s)&&(o.fontFamily=qd),a==="isBold"&&(o.fontWeight=s?"bold":"initial"),a==="isItalic"&&(o.fontStyle=s?"italic":"initial"),a==="isThrough"&&(o.textDecoration=s?"line-through":"initial"),o},e)},Wd=e=>typeof e=="object"&&!Array.isArray(e)&&"parent"in e,L=e=>M(e)?Object.entries(e).reduce((t,[o,n])=>(t[o]=Wd(n)?Do(g({},e[o])):n,t),{}):e,Gd=e=>e in document.createElement("div").style||e.startsWith("--"),J=r=>{var a=r,{children:e,typography:t,accentTypography:o}=a,n=Tt(a,["children","typography","accentTypography"]);var d;const s=je(()=>{if(!o)return{};let c="";return Object.entries(o).forEach(([_,f])=>{Gd(_)&&(c+=`${Sd(_)}: ${f}; `)}),c},[o]),l=(d=e==null?void 0:e.replace(/script|\n/g,""))==null?void 0:d.replace(/{{(.*?)}}/g,`<span style="${s}">$1</span>`);return i("div",x(g({},n),{style:g(g({},t),n.style||{}),dangerouslySetInnerHTML:{__html:l}}))},at=()=>{const[e,t]=se(!1);return[e,()=>t(o=>!o)]},Ae=()=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 24 24",children:i("path",{d:"M17.659 4.929a1 1 0 1 1 1.414 1.414L13.416 12l5.657 5.657a1 1 0 0 1-1.415 1.414l-5.656-5.657-5.657 5.657a1 1 0 0 1-1.414-1.414L10.587 12 4.931 6.343A1 1 0 1 1 6.345 4.93l5.657 5.657 5.656-5.657Z",fill:"currentColor"})}),$t=()=>i("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i("path",{d:"M5.95312 2.15L7.04063 4H7H4.75C4.05937 4 3.5 3.44062 3.5 2.75C3.5 2.05938 4.05937 1.5 4.75 1.5H4.81875C5.28437 1.5 5.71875 1.74688 5.95312 2.15ZM2 2.75C2 3.2 2.10938 3.625 2.3 4H1C0.446875 4 0 4.44688 0 5V7C0 7.55312 0.446875 8 1 8H15C15.5531 8 16 7.55312 16 7V5C16 4.44688 15.5531 4 15 4H13.7C13.8906 3.625 14 3.2 14 2.75C14 1.23125 12.7688 0 11.25 0H11.1812C10.1844 0 9.25938 0.528125 8.75313 1.3875L8 2.67188L7.24687 1.39062C6.74062 0.528125 5.81562 0 4.81875 0H4.75C3.23125 0 2 1.23125 2 2.75ZM12.5 2.75C12.5 3.44062 11.9406 4 11.25 4H9H8.95938L10.0469 2.15C10.2844 1.74688 10.7156 1.5 11.1812 1.5H11.25C11.9406 1.5 12.5 2.05938 12.5 2.75ZM1 9V14.5C1 15.3281 1.67188 16 2.5 16H7V9H1ZM9 16H13.5C14.3281 16 15 15.3281 15 14.5V9H9V16Z",fill:"currentColor"})}),Ud=e=>({fade:`${e.fade} 2s linear infinite`,pulse:`${e.pulse} .3s linear 0s infinite alternate forwards`,wiggle:`${e.wiggle} 2s linear infinite`,gradient:`${e.gradient} 3s ease infinite`}),qo=(e,t)=>{var _,f,u,v,b,$,y,V,D,S,j,B,z;const o=Ud(t),n=L(e),r=(_=n==null?void 0:n.icon)==null?void 0:_.hasIcon,a={left:`${+(((f=e==null?void 0:e.container)==null?void 0:f.left)||0)*-1+8}px`,backgroundColor:(u=n==null?void 0:n.container)==null?void 0:u.backgroundColor,borderTopWidth:(v=n==null?void 0:n.container)==null?void 0:v.borderWidth,borderTopColor:(b=n==null?void 0:n.container)==null?void 0:b.borderColor,borderTopStyle:"solid",borderLeftWidth:($=n==null?void 0:n.container)==null?void 0:$.borderWidth,borderLeftColor:(y=n==null?void 0:n.container)==null?void 0:y.borderColor,borderLeftStyle:"solid"},s={left:(V=n==null?void 0:n.container)==null?void 0:V.left},l=(((D=n==null?void 0:n.icon)==null?void 0:D.animations)||[]).map(k=>o[k]).join(", "),d=M((S=n==null?void 0:n.icon)==null?void 0:S.gradientColor)&&((j=n==null?void 0:n.icon)!=null&&j.animations.includes("gradient"))?{background:`linear-gradient(-90deg, ${(B=n.icon)==null?void 0:B.backgroundColor} 0%, ${(z=n==null?void 0:n.icon)==null?void 0:z.gradientColor} 100%) 0% 0% / 400% 400%`,backgroundSize:"400% 400%"}:n==null?void 0:n.icon,c=g(x(g({},(n==null?void 0:n.icon)||{}),{animation:l}),d);return{hasIcon:r,arrowRules:a,bodyRules:s,iconRules:c}},ge=e=>{const t=new Set([]);be(e,(n,r)=>(n==="fontFamily"&&t.add(r),r));const o=je(()=>Array.from(t.values()).filter(n=>!/auto/i.test(n)).map(n=>({rel:"stylesheet",href:`https://fonts.googleapis.com/css?family=${n}:300,400,500,700&display=swap`})),[t]);F(()=>{o.forEach(yd)},[o])},Y=["backgroundColor","backgroundColorOpacity","backgroundImage","backgroundSize","backgroundRepeat"],Xd=["borderWidth","borderColor","borderStyle"],Fo=["imageSource","objectFit"],st=["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"],Zd=({delay:e,openEmitter:t,autoOpenEmitter:o,closeEmitter:n,crossCloseEmitter:r,disableAutoOpen:a})=>{const[s,l]=se(!1),d=U(null),c=u=>{clearTimeout(d.current),d.current=null},_=()=>{c(d.current),l(u=>(u&&n&&n(),!u))},f=()=>{_(),r&&r()};return F(()=>{if(!a)return d.current=setTimeout(()=>{l(!0),o&&o()},e||1e3),()=>c(d.current)},[e,a]),F(()=>{s&&!d.current&&t&&t()},[s]),{isOpen:s,toggle:_,onCrossClick:f}},Wo=({ref:e,openDelay:t,disableAutoOpen:o})=>{const n=U(Me()),r=u=>n.current.on("open",u),a=u=>n.current.on("click",u),s=u=>n.current.on("autoOpen",u),l=u=>n.current.on("close",u),d=u=>n.current.on("crossClose",u),{isOpen:c,toggle:_,onCrossClick:f}=Zd({delay:t,disableAutoOpen:o,openEmitter:()=>n.current.emit("open"),autoOpenEmitter:()=>n.current.emit("autoOpen"),closeEmitter:()=>n.current.emit("close"),crossCloseEmitter:()=>n.current.emit("crossClose")});return Ee(e,()=>({toggle:_,onCrossClose:d,onOpen:r,onClick:a,onClose:l,onAutoOpen:s,resetListeners:n.current.reset})),F(()=>n.current.reset,[]),{isOpen:c,toggle:_,onCrossClick:f,click:(...u)=>n.current.emit("click",...u)}},Kd=_e(({id:e,disableAutoOpen:t},o)=>{var S,j,B,z,k,q,P,G,le;const n=U(null),[r,a]=at(),s=H(),l=ye({targetRef:n,id:e}),d=fe(s,l),c=L(d),{hasIcon:_,iconRules:f,bodyRules:u,arrowRules:v}=qo(d,{fade:O.fadein,pulse:O.pulse,wiggle:O.wiggle,gradient:O.gradient}),{isOpen:b,toggle:$,click:y,onCrossClick:V}=Wo({ref:o,openDelay:(S=d==null?void 0:d.container)==null?void 0:S.delay,disableAutoOpen:t});ge(d);const D=r?te(c.container,...Xd):{};return i("div",{className:T(O.root,{[O.legalOpen]:r}),ref:n,children:[i("div",{className:O.icon,style:f,onClick:$,children:_&&i("div",{className:O.iconTarget,children:i($t,{})})}),i("div",{className:T(O.body,{[O.bodyOpen]:b}),style:u,children:[i("div",{className:O.arrow,style:v}),i("div",{className:O.close,style:ve(c==null?void 0:c.close),onClick:V,children:i(Ae,{})}),i("div",{className:O.container,style:c==null?void 0:c.container,children:[i("a",{href:(j=c==null?void 0:c.root)==null?void 0:j.offer,target:"_blank",rel:"nofollow noopener noreferrer",onClick:()=>y(c.id),children:[i("div",{className:O.inner,children:[i("div",{className:O.logo,style:c==null?void 0:c.logo}),i(J,{className:O.text,style:c==null?void 0:c.text,typography:(B=c.text)==null?void 0:B.typography,accentTypography:(z=c.text)==null?void 0:z.accentTypography,children:(k=c==null?void 0:c.text)==null?void 0:k.children})]}),i("div",{className:T(O.button,{[O.buttonAnimated]:c==null?void 0:c.button.isAnimated}),style:c==null?void 0:c.button,children:(q=c==null?void 0:c.button)==null?void 0:q.children})]}),i("div",{className:O.legalGap}),i("div",{className:O.legal,style:g(g({},c==null?void 0:c.legal),D),children:i("span",{className:O.legalText,children:i("span",{children:[i("span",{children:(P=c==null?void 0:c.legal)==null?void 0:P.children}),i("span",{className:O.legalButton,onClick:a,children:r?(G=c==null?void 0:c.legal)==null?void 0:G.buttonOpenText:(le=c==null?void 0:c.legal)==null?void 0:le.buttonHideText})]})})})]})]})]})}),Jd=pe(i(Kd,{})),A={root:"_root_9zg53_1",icon:"_icon_9zg53_5",iconTarget:"_iconTarget_9zg53_17",body:"_body_9zg53_23",desktop:"_desktop_9zg53_30",tablet:"_tablet_9zg53_30",laptop:"_laptop_9zg53_30",bodyOpen:"_bodyOpen_9zg53_34",complexGift_in:"_complexGift_in_9zg53_1",arrow:"_arrow_9zg53_47",container:"_container_9zg53_57",promotion:"_promotion_9zg53_62",close:"_close_9zg53_68",head:"_head_9zg53_80",headIcon:"_headIcon_9zg53_86",headTitle:"_headTitle_9zg53_92",inner:"_inner_9zg53_99",fadein:"_fadein_9zg53_1",pulse:"_pulse_9zg53_1",gradient:"_gradient_9zg53_1",wiggle:"_wiggle_9zg53_1"},oe={root:"_root_1y96a_1",body:"_body_1y96a_30",bodyInner:"_bodyInner_1y96a_38",line:"_line_1y96a_43",text:"_text_1y96a_53",button:"_button_1y96a_61",logo:"_logo_1y96a_73",variant2:"_variant2_1y96a_79",buttonText:"_buttonText_1y96a_83",legal:"_legal_1y96a_100"},Yd=({onClick:e})=>{var n,r,a,s,l,d,c;const t=H(),o=L(t);return i("a",{href:(n=o.root)==null?void 0:n.offer,target:"_blank",rel:"nofollow noopener noreferrer",className:T(oe.root,{[oe.variant2]:((r=o.root)==null?void 0:r.variant)==="variant2"}),style:o.root,onClick:()=>e(o.id),children:[i("div",{className:oe.body,children:[i("div",{className:oe.line,style:o.line}),i("div",{className:oe.bodyInner,children:[i("div",{className:oe.logo,style:o.logo}),i("div",{className:oe.text,style:o.text,children:i(J,{typography:(a=o.text)==null?void 0:a.typography,accentTypography:(s=o.text)==null?void 0:s.accentTypography,children:(l=o.text)==null?void 0:l.children})})]}),i("div",{className:oe.button,style:o.button,children:[i("div",{className:oe.logo,style:o.logo}),i("div",{className:oe.buttonText,children:(d=o.button)==null?void 0:d.children})]})]}),i("div",{className:oe.legal,style:o.legal,children:(c=o.legal)==null?void 0:c.children})]})},Qd=_e(({id:e,disableAutoOpen:t},o)=>{var S,j,B,z;const n=U(null),r=H(),a=ye({targetRef:n,id:e}),s=fe(r,a),l=L(s),{isOpen:d,click:c,toggle:_,onCrossClick:f}=Wo({ref:o,openDelay:(S=s==null?void 0:s.container)==null?void 0:S.delay,disableAutoOpen:t});ge(s);const{hasIcon:u,iconRules:v,bodyRules:b,arrowRules:$}=qo(s,{fade:A.fadein,pulse:A.pulse,wiggle:A.wiggle,gradient:A.gradient}),y=(j=l==null?void 0:l.title)==null?void 0:j.hasIcon,V=te(l==null?void 0:l.title,...st),D=ie(l==null?void 0:l.title,...st);return i("div",{ref:n,className:T(A.root,{[A.desktop]:a==="desktop",[A.laptop]:a==="laptop",[A.tablet]:a==="tablet"}),children:[i("div",{className:A.icon,style:v,onClick:_,children:u&&i("div",{className:A.iconTarget,children:i($t,{})})}),i("div",{className:T(A.body,{[A.bodyOpen]:d}),style:b,children:[i("div",{className:A.arrow,style:$}),i("div",{className:A.container,style:l.container,children:[i("div",{className:A.close,style:ve(l==null?void 0:l.close),onClick:f,children:i(Ae,{})}),i("div",{className:A.head,style:V,children:[y&&i("div",{className:A.headIcon,style:te(l.title,"color"),children:i($t,{})}),i("div",{className:A.headTitle,style:D,children:(B=l.title)==null?void 0:B.children})]}),i("div",{className:A.inner,children:(l.children||[]).map(k=>i(ue,{value:k,children:i(Yd,{onClick:c})}))}),i("div",{className:A.promotion,style:l.promotion,children:(z=l.promotion)==null?void 0:z.children})]})]})]})}),e_=pe(i(Qd,{})),K={root:"_root_byy1w_1",background:"_background_byy1w_11",content:"_content_byy1w_19",desktop:"_desktop_byy1w_28",laptop:"_laptop_byy1w_28",wrapper:"_wrapper_byy1w_33",overlay:"_overlay_byy1w_37",close:"_close_byy1w_43",body:"_body_byy1w_54",logo:"_logo_byy1w_63",text:"_text_byy1w_69",button:"_button_byy1w_73",legal:"_legal_byy1w_88"},$e=e=>e&&{left:"flex-start",center:"center",right:"flex-end"}[e],t_={root:"_root_mj8hr_1"},o_=()=>{var o,n,r;const e=H(),t=L(e);return i("div",{className:t_.root,style:t.root,children:i(J,{typography:(o=t.root)==null?void 0:o.typography,accentTypography:(n=t.root)==null?void 0:n.accentTypography,children:(r=t==null?void 0:t.root)==null?void 0:r.children})})},kt=(e,t=0,o=!1)=>{const n=U(Me()),[r,a]=se(!1),[s,l]=se(),[d,c]=se(o),_=y=>n.current.on("visible",y),f=y=>n.current.on("click",y),u=y=>n.current.on("clickHide",y),v=()=>We(this,null,function*(){yield Cd(+t),a(!0)}),b=()=>a(!1),$=()=>{n.current.emit("clickHide"),b()};return F(()=>{d&&n.current.emit("visible",r)},[r,d]),Ee(e,()=>({onVisible:_,onClick:f,onClickHide:u,show:v,hide:b,setApiHost:l,resetListeners:n.current.reset})),F(()=>n.current.reset,[]),{isReady:d,isOpen:r,apiHost:s,show:v,hide:b,clickHide:$,setIsReady:c,click:(...y)=>{b(),n.current.emit("click",...y)}}};function n_(e){return!(!e.complete||typeof e.naturalWidth!="undefined"&&e.naturalWidth===0)}const r_=_e(({id:e,className:t},o)=>{var j,B,z,k,q,P;const n=U(null),r=U(null),a=ye({targetRef:n,id:e}),s=H(),l=fe(s,a);ge(l),He(l,"button.percent_width",(j=l==null?void 0:l.button)==null?void 0:j.width),He(l,"legal.percent_width",(B=l==null?void 0:l.legal)==null?void 0:B.width);const d=L(l),c=m(d,"root.delay",0),{isOpen:_,isReady:f,setIsReady:u,clickHide:v,click:b}=kt(o,c);F(()=>{const G=r.current;if(!G)return;if(n_(G)){u(!0);return}const le=()=>u(!0);return G.addEventListener("load",le),()=>{G.removeEventListener("load",le)}},[d]);const $={alignItems:$e((z=d.root)==null?void 0:z.align)},y=x(g({},d==null?void 0:d.button),{justifyContent:$e((k=d.root)==null?void 0:k.textAlign)}),V=x(g({},d==null?void 0:d.legal),{justifyContent:$e((q=d.root)==null?void 0:q.textAlign)}),D=ie(d.root,...Fo,...Y),S=te(d.root,...Fo);return i("div",{className:T(K.root,t,{[K.desktop]:a==="desktop",[K.tablet]:a==="tablet",[K.laptop]:a==="laptop"}),ref:n,style:{display:_&&f?"flex":"none"},children:[i("div",{className:K.overlay,style:d.overlay,onClick:v}),i("div",{className:K.wrapper,children:[i("div",{className:K.close,style:ve(d.close),onClick:v,children:i(Ae,{})}),i("a",{href:(P=d.root)==null?void 0:P.offer,target:"_blank",rel:"nofollow noopener noreferrer",className:K.content,style:D,onClick:()=>b(d.id),children:[i("img",{ref:r,className:K.background,src:S.imageSource,alt:"",style:S}),i("div",{className:K.body,style:$,children:[i("div",{className:K.logo,style:d.logo}),i("div",{className:K.text,children:((d==null?void 0:d.children)||[]).map(G=>i(ue,{value:G,children:i(o_,{})}))}),i("div",{className:K.button,style:y,children:y==null?void 0:y.children}),i("div",{className:K.legal,style:V,children:V==null?void 0:V.children})]})]})]})]})}),a_=pe(i(r_,{})),he={root:"_root_1v94r_1",content:"_content_1v94r_11",desktop:"_desktop_1v94r_23",laptop:"_laptop_1v94r_23",overlay:"_overlay_1v94r_28",close:"_close_1v94r_34",title:"_title_1v94r_47",wrapper:"_wrapper_1v94r_62"},Q={root:"_root_1q0qc_1",desktop:"_desktop_1q0qc_9",laptop:"_laptop_1q0qc_9",header:"_header_1q0qc_14",logo:"_logo_1q0qc_25",container:"_container_1q0qc_32",body:"_body_1q0qc_43",logoWrapper:"_logoWrapper_1q0qc_51",text:"_text_1q0qc_64",button:"_button_1q0qc_79",legal:"_legal_1q0qc_97"},s_=({onClick:e})=>{var a,s,l,d,c,_;const t=H(),o=L(t),n=(t==null?void 0:t.device)||"desktop",r=te(o.header,...Y);return i("a",{href:(a=o.root)==null?void 0:a.offer,target:"_blank",rel:"nofollow noopener noreferrer",className:T(Q.root,{[Q.desktop]:n==="desktop",[Q.laptop]:n==="laptop"}),style:ie(o.root,...st),onClick:()=>e(o.id),children:[i("div",{className:Q.header,style:o.header,children:i("div",{className:Q.logo,style:o.logo})}),i("div",{className:Q.container,style:te(o.root,...st),children:[i("div",{className:Q.body,children:[i("div",{className:Q.logoWrapper,style:r,children:i("div",{className:Q.logo,style:o.logo})}),i(J,{className:Q.text,style:o.text,typography:(s=o.text)==null?void 0:s.typography,accentTypography:(l=o.text)==null?void 0:l.accentTypography,children:(d=o.text)==null?void 0:d.children})]}),i("div",{children:[i(J,{className:Q.button,style:o.button,children:(c=o.button)==null?void 0:c.children}),i(J,{className:Q.legal,style:o.legal,children:(_=o.legal)==null?void 0:_.children})]})]})]})},i_=_e(({id:e},t)=>{var f;const o=U(null),n=ye({targetRef:o,id:e}),r=H(),a=fe(r,n),s=L(a);ge(a);const l=m(s,"root.delay",0),{isOpen:d,clickHide:c,click:_}=kt(t,l,!0);return i("div",{className:he.root,style:{display:d?"flex":"none"},children:[i("div",{className:he.overlay,style:s.overlay,onClick:c}),i("div",{ref:o,className:T(he.content,{[he.desktop]:n==="desktop",[he.laptop]:n==="laptop"}),style:s.root,children:[i("div",{className:he.close,style:ve(s.close),onClick:c,children:i(Ae,{})}),i(J,{className:he.title,style:s.title,children:(f=s.title)==null?void 0:f.children}),i("div",{className:he.wrapper,children:(s.children||[]).map(u=>i(ue,{value:x(g({},u),{device:n}),children:i(s_,{onClick:_})}))})]})]})}),c_=pe(i(i_,{})),W={root:"_root_1xp54_1",content:"_content_1xp54_11",close:"_close_1xp54_19",overlay:"_overlay_1xp54_32",body:"_body_1xp54_38",desktop:"_desktop_1xp54_46",laptop:"_laptop_1xp54_46",tablet:"_tablet_1xp54_50",head:"_head_1xp54_55",title:"_title_1xp54_65",logo:"_logo_1xp54_78",wrapper:"_wrapper_1xp54_85",text:"_text_1xp54_92",button:"_button_1xp54_100",buttonHead:"_buttonHead_1xp54_115",buttonTarget:"_buttonTarget_1xp54_132",legal:"_legal_1xp54_146"},I={root:"_root_16jvv_1",left:"_left_16jvv_8",desktop:"_desktop_16jvv_15",laptop:"_laptop_16jvv_15",teams:"_teams_16jvv_19",logo:"_logo_16jvv_25",league:"_league_16jvv_32",name:"_name_16jvv_37",right:"_right_16jvv_43",odd:"_odd_16jvv_54",oddLabel:"_oddLabel_16jvv_67",oddValue:"_oddValue_16jvv_76",team:"_team_16jvv_19",teamLogo:"_teamLogo_16jvv_100",teamName:"_teamName_16jvv_107"},l_=()=>{const e=H(),t=L(e),o=(e==null?void 0:e.device)||"desktop",n=x(g({},t==null?void 0:t.teamALogo),{backgroundImage:m(t,"match.teams[0].logo")}),r=x(g({},t==null?void 0:t.teamBLogo),{backgroundImage:m(t,"match.teams[1].logo")});return i("div",{className:T(I.root,{[I.desktop]:o==="desktop",[I.laptop]:o==="laptop"}),children:[i("div",{className:I.left,children:[i("div",{className:I.teams,children:[i("img",{className:I.logo,src:n.backgroundImage,style:n,alt:""}),i("img",{className:I.logo,src:r.backgroundImage,style:r})]}),i("div",{className:I.body,children:[i("div",{className:I.league,style:t.league,children:m(t,"match.league.name")}),i("div",{className:I.name,style:t.teams,children:[m(t,"match.teams[0].name")," — ",m(t,"match.teams[1].name")]})]})]}),i("div",{className:I.right,children:[i("div",{className:I.team,children:[i("img",{className:I.teamLogo,style:n,src:n.backgroundImage}),i("div",{className:I.teamName,style:t.teams,children:m(t,"match.teams[0].name")})]}),i("div",{className:I.odd,children:[i("div",{className:I.oddLabel,style:t.oddLabel,children:m(t,"match.prediction.value")}),i("div",{className:I.oddValue,style:t.oddValue,children:m(t,"match.prediction.factor")})]}),i("div",{className:I.team,children:[i("img",{className:I.teamLogo,style:r,src:r.backgroundImage}),i("div",{className:I.teamName,style:t.teams,children:m(t,"match.teams[1].name")})]})]})]})},Go=(e,{pause:t,params:o,method:n,body:r})=>{const[a,s]=se(),l=je(()=>{let c=e;if(o){const _=new URLSearchParams(c);Object.entries(o).forEach(([f,u])=>{_.append(f,u)}),c+=_}return c},[e,o]),d=yn(()=>We(this,null,function*(){if(t)return;const c=yield fetch(l,{method:n||"GET",body:r?JSON.stringify(r):void 0,headers:{"Content-Type":"application/json"}}).then(_=>_.json());s(c.data)}),[l,t,n,r]);return F(()=>{t||d()},[l,t]),{data:a,execute:d}};function Uo(e){const t=U();return F(()=>{t.current=e},[e]),t.current}const d_=(e,t)=>{const o=c=>{var _;return M(c==null?void 0:c.matchSlug)&&((_=c==null?void 0:c.matchSlug)==null?void 0:_.length)>0},n=e.children||[],r=n.filter(c=>o(c.root.targetMatch)).map(c=>c.root.targetMatch),a=Uo(r),{data:s,execute:l}=Go(`${t}/match-list`,{method:"POST",body:{matches:r.map(c=>({slug:c.matchSlug,sport_slug:c.sportSlug,lang:c.langSlug,bookmaker_slug:c.bookmaker,offset:c.offset,markets:c.markets}))},pause:!t||r.length===0});return F(()=>{zo(a,r)||l()},[r]),n.map(c=>{const _=(s||[]).find(v=>v.slug===c.root.targetMatch.matchSlug);if(!_)return;const f=jo(_),u=Po(f,c.root.customMatch,(v,[b,$])=>M($));return x(g({},c),{match:u})}).filter(Boolean)},__=_e(({id:e},t)=>{var D,S,j,B,z,k,q,P,G,le,Fe,fn,gn;const o=U(null),n=ye({targetRef:o,id:e}),r=H(),a=fe(r,n);He(a,"buttonWrapper.percent_width",(D=a==null?void 0:a.buttonWrapper)==null?void 0:D.width),He(a,"legal.percent_width",(S=a==null?void 0:a.legal)==null?void 0:S.width);const s=L(a);ge(a);const l=m(s,"root.delay",0),{isOpen:d,apiHost:c,clickHide:_,click:f}=kt(t,l,!0),u=d_(a,c),v=x(g({},s.root),{alignItems:$e((j=s.root)==null?void 0:j.align)}),b=x(g({},s.content),{alignItems:$e((B=s.root)==null?void 0:B.align)}),$=x(g({},s.text),{textAlign:(z=s.root)==null?void 0:z.align}),y=x(g({},s==null?void 0:s.button),{justifyContent:$e((k=s.root)==null?void 0:k.textAlign)}),V=x(g({},s==null?void 0:s.legal),{justifyContent:$e((q=s.root)==null?void 0:q.textAlign)});return i("div",{className:T(W.root,{[W.desktop]:n==="desktop",[W.laptop]:n==="laptop",[W.tablet]:n==="tablet"}),ref:o,style:{display:d?"flex":"none"},children:[i("div",{className:W.overlay,style:s.overlay,onClick:_}),i("div",{className:W.content,children:[i("div",{className:W.close,style:ve(s.close),onClick:_,children:i(Ae,{})}),i("a",{ref:o,href:(P=s.root)==null?void 0:P.offer,target:"_blank",rel:"nofollow noopener noreferrer",onClick:()=>f(s.id),children:i("div",{className:W.body,style:v,children:[i("div",{className:W.head,children:[i("div",{className:W.title,style:s.title,children:(G=s.title)==null?void 0:G.children}),i("div",{className:W.logo,style:s.logo})]}),i("div",{className:W.wrapper,style:b,children:(u||[]).map(eu=>i(ue,{value:x(g({},eu),{device:n}),children:i(l_,{})}))}),i(J,{className:W.text,style:$,typography:$.typography,accentTypography:$.accentTypography,children:(le=s.text)==null?void 0:le.children}),i("div",{className:W.button,style:s.buttonWrapper,children:[i("div",{className:W.buttonHead,style:s.buttonHead,children:(Fe=s.buttonHead)==null?void 0:Fe.children}),i("div",{className:W.buttonTarget,style:y,children:(fn=s.button)==null?void 0:fn.children})]}),i(J,{className:W.legal,style:V,children:(gn=s.legal)==null?void 0:gn.children})]})})]})]})}),u_=pe(i(__,{})),ne={root:"_root_x31x3_1",background:"_background_x31x3_18",body:"_body_x31x3_27",bookmaker:"_bookmaker_x31x3_36",button:"_button_x31x3_43",rowFirst:"_rowFirst_x31x3_57",rowSecond:"_rowSecond_x31x3_63",legal:"_legal_x31x3_69",legalText:"_legalText_x31x3_86",legalOpen:"_legalOpen_x31x3_96",legalButton:"_legalButton_x31x3_101"},p_=({onClick:e})=>{var a,s,l,d,c,_,f,u;const t=H(),o=L(t),[n,r]=at();return i("div",{className:ne.root,style:ie(o.root,...Y),children:[i("div",{className:ne.background,style:te(o.root,...Y)}),i("a",{href:(a=o.root)==null?void 0:a.offer,target:"_blank",rel:"nofollow noopener noreferrer",className:ne.body,onClick:()=>e(o.id),children:[i("div",{children:[i("div",{className:ne.rowFirst,style:o.rowFirst,children:(s=o.rowFirst)==null?void 0:s.children}),i("div",{className:ne.rowSecond,style:o.rowSecond,children:(l=o.rowSecond)==null?void 0:l.children}),i("div",{className:ne.bookmaker,style:o.bookmaker,children:(d=o.bookmaker)==null?void 0:d.children})]}),i("div",{className:ne.button,style:o.button,children:(c=o.button)==null?void 0:c.children})]}),i("div",{className:T(ne.legal,{[ne.legalOpen]:n}),style:o.legalInfo,children:i("span",{className:ne.legalText,children:[i("span",{children:(_=o.legalInfo)==null?void 0:_.children}),i("span",{className:ne.legalButton,style:o.legalInfoButton,onClick:r,children:n?(f=o.legalInfoButton)==null?void 0:f.openText:(u=o.legalInfoButton)==null?void 0:u.closeText})]})})]})},f_=e=>{const t=U(Me()),o=n=>t.current.on("click",n);return Ee(e,()=>({promoId:"ContentCards",onClick:o,resetListeners:t.current.reset})),F(()=>t.current.reset,[]),{click:(...n)=>t.current.emit("click",...n),onClick:o}},g_=_e((e,t)=>{const o=U(null),n=H(),a=fe(n,"mobile"),s=L(a);ge(a);const{click:l}=f_(t);return i("div",{ref:o,children:((s==null?void 0:s.children)||[]).map(d=>i(ue,{value:d,children:i(p_,{onClick:l})}))})}),h_=pe(i(g_,{})),R={root:"_root_woisr_1",desktop:"_desktop_woisr_13",laptop:"_laptop_woisr_14",promotion:"_promotion_woisr_18",background:"_background_woisr_34",close:"_close_woisr_43",content:"_content_woisr_52",variant2:"_variant2_woisr_65",logo:"_logo_woisr_69",left:"_left_woisr_81",center:"_center_woisr_94",slide:"_slide_woisr_100",slide_animated_default:"_slide_animated_default_woisr_114","fade-in-out":"_fade-in-out_woisr_1","slide_animated_bottom-top":"_slide_animated_bottom-top_woisr_117","fade-in-bottom-out-top":"_fade-in-bottom-out-top_woisr_1","slide_animated_top-bottom":"_slide_animated_top-bottom_woisr_120",right:"_right_woisr_124",buttonWrapper:"_buttonWrapper_woisr_139",button:"_button_woisr_139",button_animated:"_button_animated_woisr_173",increase:"_increase_woisr_1","fade-in-top-out-bottom":"_fade-in-top-out-bottom_woisr_1"},Xo={root:"_root_1c4sr_1",desktop:"_desktop_1c4sr_11"},v_=()=>{var o,n,r;const e=H(),t=L(e);return i("div",{className:T(Xo.root,{[Xo.desktop]:(e==null?void 0:e.device)==="desktop"}),style:ie(t.root,...Y),children:i(J,{accentTypography:(o=t.root)==null?void 0:o.accentTypography,typography:(n=t.root)==null?void 0:n.typography,children:(r=t.root)==null?void 0:r.children})})},E={root:"_root_gohhp_1",title:"_title_gohhp_8",desktop:"_desktop_gohhp_13",laptop:"_laptop_gohhp_13",titleLabel:"_titleLabel_gohhp_17",tablet:"_tablet_gohhp_20",titleValue:"_titleValue_gohhp_27",teamLogo:"_teamLogo_gohhp_38",teams:"_teams_gohhp_49",teamName:"_teamName_gohhp_57",odds:"_odds_gohhp_64",odd:"_odd_gohhp_64",oddX:"_oddX_gohhp_76",oddValue:"_oddValue_gohhp_84"},it=(e,t,o=1,n=!1)=>{var l;const[r,a]=[t[0],t[1]||t[0]].map(d=>d*o),s=`w${r}-h${a}${n?"-c":""}`;return(l=e==null?void 0:e.replace(/(\/(?:upload|user-avatars)\/[\w\d]+\/)origin(\/)/,`$1${s}$2`))!=null?l:e},m_=()=>{var a,s;const e=H(),t=L(e),o=ie(t.root,...Y),n=x(g({},t.teamLogo),{backgroundImage:it(m(t,"match.teams[0].logo"),[120,120]),backgroundColor:"transparent"}),r=x(g({},t.teamLogo),{backgroundImage:it(m(t,"match.teams[1].logo"),[120,120]),backgroundColor:"transparent"});return i("div",{className:T(E.root,{[E.desktop]:e.device==="desktop",[E.laptop]:e.device==="laptop",[E.tablet]:e.device==="tablet"}),style:o,children:[i("div",{className:E.title,children:[i("div",{className:E.titleLabel,style:t.titleLabel,children:(a=t.titleLabel)==null?void 0:a.children}),i("div",{className:E.titleValue,style:t.titleValue,children:(s=t.titleValue)==null?void 0:s.children})]}),i("div",{className:E.odds,children:[i("div",{className:E.odd,children:[i("img",{className:E.teamLogo,src:n.backgroundImage,style:n}),i("div",{className:E.oddValue,style:t.value,children:m(t,"match.markets.one_x_two.w1")})]}),i("div",{className:E.odd,children:[i("div",{className:E.oddX,style:t.coef,children:"X"}),i("div",{className:E.oddValue,style:t.value,children:m(t,"match.markets.one_x_two.x")})]}),i("div",{className:E.odd,children:[i("img",{className:E.teamLogo,src:r.backgroundImage,style:r}),i("div",{className:E.oddValue,style:t.value,children:m(t,"match.markets.one_x_two.w2")})]})]}),i("div",{className:E.teams,children:[i("div",{className:E.teamName,style:t.teamName,children:m(t,"match.teams[0].name")}),i("div",{className:E.teamName,style:t.teamName,children:m(t,"match.teams[1].name")})]})]})},X={root:"_root_1bycs_1",title:"_title_1bycs_8",titleLabel:"_titleLabel_1bycs_13",tablet:"_tablet_1bycs_16",desktop:"_desktop_1bycs_19",laptop:"_laptop_1bycs_19",titleValue:"_titleValue_1bycs_23",team:"_team_1bycs_34",teamLogo:"_teamLogo_1bycs_45",national:"_national_1bycs_56",teamName:"_teamName_1bycs_77",teamValue:"_teamValue_1bycs_89"},b_=()=>{var r,a;const e=H(),t=L(e),o=x(g(g({},te(t.root,...Y)),t.teamLogo),{backgroundColor:"transparent",backgroundImage:it(m(t,"match.teams[0].logo"),[120,120])}),n=x(g(g({},te(t.root,...Y)),t.teamLogo),{backgroundColor:"transparent",backgroundImage:it(m(t,"match.teams[1].logo"),[120,120])});return i("div",{className:T(X.root,{[X.desktop]:(e==null?void 0:e.device)==="desktop",[X.laptop]:(e==null?void 0:e.device)==="laptop",[X.tablet]:(e==null?void 0:e.device)==="tablet",[X.national]:m(t,"match.isNational")}),style:ie(t.root,...Y),children:[i("div",{className:X.title,children:[i("div",{className:X.titleLabel,style:t.titleLabel,children:(r=t.titleLabel)==null?void 0:r.children}),i("div",{className:X.titleValue,style:t.titleValue,children:(a=t.titleValue)==null?void 0:a.children})]}),i("div",{children:[i("div",{className:X.team,children:[i("img",{className:X.teamLogo,src:o.backgroundImage,style:o}),i("div",{className:X.teamName,style:t.teamName,children:m(t,"match.teams[0].name")}),i("div",{className:X.teamValue,style:t.value,children:m(t,"match.markets.one_two.w1")})]}),i("div",{className:X.team,children:[i("img",{className:X.teamLogo,src:n.backgroundImage,style:n}),i("div",{className:X.teamName,style:t.teamName,children:m(t,"match.teams[1].name")}),i("div",{className:X.teamValue,style:t.value,children:m(t,"match.markets.one_two.w2")})]})]})]})},y_=(e=[])=>{var a;const t=e.length,[o,n]=se(0),r=(a=e[o||0])==null?void 0:a.animationDuration;return F(()=>{const l=setTimeout(()=>{n(d=>d+1<t?d+1:0)},r);return()=>clearTimeout(l)},[n,t,r,o]),o},$_={matches:"one_x_two",matchesOneTwo:"one_two"},Zo=e=>[$_[e]],k_=(e,t)=>{const o=c=>{var _;return M(c==null?void 0:c.matchSlug)&&((_=c==null?void 0:c.matchSlug)==null?void 0:_.length)>0},n=(e==null?void 0:e.children)||[],r=n.filter(c=>o(c.root.targetMatch)).map(c=>x(g({},c.root.targetMatch),{markets:Zo(c.name)})),a=Uo(r),{data:s,execute:l}=Go(`${t}/match-list`,{method:"POST",body:{matches:r.map(c=>({slug:c.matchSlug,sport_slug:c.sportSlug,lang:c.langSlug,bookmaker_slug:c.bookmaker,offset:c.offset,markets:c.markets}))},pause:!t||r.length===0});return F(()=>{zo(a,r)||l()},[r]),n.map(c=>{if("targetMatch"in c.root){const _=(s||[]).find(b=>b.slug===c.root.targetMatch.matchSlug);if(!_)return;const f=Zo(c.name),u=jo(_,{markets:f}),v=Po(u,c.root.customMatch,(b,[$,y])=>M(y));return x(g({},c),{match:v})}return c}).filter(Boolean)},w_=e=>{const t=U(Me()),[o,n]=se(!1),[r,a]=se(),s=u=>t.current.on("visible",u),l=u=>t.current.on("click",u),d=u=>t.current.on("clickHide",u),c=()=>We(this,null,function*(){n(!0)}),_=()=>n(!1),f=()=>{t.current.emit("clickHide"),_()};return F(()=>{t.current.emit("visible",o)},[o]),Ee(e,()=>({onVisible:s,onClick:l,onClickHide:d,show:c,hide:_,setApiHost:a,resetListeners:t.current.reset})),F(()=>t.current.reset,[]),{isOpen:o,apiHost:r,show:c,hide:_,clickHide:f,click:(...u)=>{t.current.emit("click",...u)}}},x_=3700,N_=_e(({id:e},t)=>{var D,S,j,B,z;const o=U(null),n=H(),r=ye({id:e,targetRef:o}),a=fe(n,r),s=L(a);ge(a);const{apiHost:l,isOpen:d,click:c,clickHide:_}=w_(t),f=k_(s,l),u=k=>({text:i(v_,{}),matches:i(m_,{}),matchesOneTwo:i(b_,{})})[k],v=f.filter(Boolean).map(k=>{var q,P;return x(g({},k),{animationName:(q=k==null?void 0:k.root)==null?void 0:q.animationName,animationDuration:((P=k==null?void 0:k.root)==null?void 0:P.animationDuration)||x_})}),b=y_(v),$=L(v[b]||{}),y=ie(s.root,...Y),V=(D=$==null?void 0:$.root)!=null&&D.hasCustomBackground?te(($==null?void 0:$.root)||{},...Y):te(s.root,...Y);return i("div",{ref:o,className:T(R.root,{[R.desktop]:r==="desktop",[R.laptop]:r==="laptop",[R.tablet]:r==="tablet",[R.variant2]:((S=s.root)==null?void 0:S.variant)==="variant2"}),style:x(g({},y),{display:d?"block":"none"}),children:[i("div",{className:R.close,style:ve(s.close),onClick:_,children:i(Ae,{})}),i("a",{href:(j=s.root)==null?void 0:j.offer,target:"_blank",rel:"nofollow noopener noreferrer",onClick:c,children:[i("div",{className:R.background,style:V}),i("div",{className:R.promotion,style:s.promotion,children:(B=s.promotion)==null?void 0:B.children}),i("div",{className:R.content,children:[i("div",{className:R.left,children:i("div",{className:R.logo,style:s.logo})}),i("div",{className:R.center,children:(v||[]).map((k,q)=>{var P,G;return i("div",{className:R.slide,style:{animationName:b===q?R[((P=k.root)==null?void 0:P.animationName)||"fade-in-out"]:"none",animationDuration:`${(G=k.root)==null?void 0:G.animationDuration}ms`},children:i(ue,{value:x(g({},k),{device:r}),children:u(k.name)})})})}),i("div",{className:R.right,children:[i("div",{className:R.logo,style:s.logo}),i("div",{className:R.buttonWrapper,children:i("div",{className:T(R.button,{[R.button_animated]:s.button.$animated}),style:s.button,children:[i("div",{className:R.logo,style:s.logo}),(z=s.button)==null?void 0:z.children]})})]})]})]})]})}),C_=pe(i(N_,{})),Ve={content:"_content_c8kee_1",desktop:"_desktop_c8kee_6",laptop:"_laptop_c8kee_6",tablet:"_tablet_c8kee_6"},re={root:"_root_t1sch_1",content:"_content_t1sch_8",textContent:"_textContent_t1sch_15",backgroundLine:"_backgroundLine_t1sch_20",button:"_button_t1sch_26",link:"_link_t1sch_32",legal:"_legal_t1sch_38",legalText:"_legalText_t1sch_47",open:"_open_t1sch_56",legalMore:"_legalMore_t1sch_61"},T_=(e,t,o,n,r=Mo)=>{const a=g({},e);return r.forEach(s=>{a[t]=x(g({},a[t]),{[s]:x(g({},a[t][s]),{[o]:typeof n=="function"?n(m(a,`${t}.${s}.${o}`)):n})})}),a},ve=e=>{const t=e==null?void 0:e.backgroundColor;if(!t)return e;const o=x(g({},e),{color:t});return ie(o,"backgroundColor")},O_=()=>i("svg",{width:"81",height:"100%",viewBox:"0 0 81 76",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i("path",{d:"M63.0344 7.99989L7.38354 67.5171L9.86897 69.8401L65.5198 10.3229L63.0344 7.99989Z",fill:"currentColor"}),i("path",{d:"M77.8771 -23.0001L22.2263 36.5171L24.7117 38.8401L80.3626 -20.6771L77.8771 -23.0001Z",fill:"#E3E3E3"}),i("path",{d:"M66.7199 20.9999L11.0691 80.5171L13.5545 82.8401L69.2053 23.3229L66.7199 20.9999Z",fill:"#E3E3E3"}),i("path",{d:"M55.808 20.5258L0.157227 80.043L2.64266 82.366L58.2935 22.8487L55.808 20.5258Z",fill:"currentColor"}),i("path",{d:"M70.6508 -10.4742L15 49.043L17.4854 51.366L73.1362 -8.15125L70.6508 -10.4742Z",fill:"#E3E3E3"}),i("path",{d:"M72.426 8.99995L61 21.2163L62.5379 22.6541L73.9638 10.4377L72.426 8.99995Z",fill:"#E3E3E3"})]}),S_=({onClick:e})=>{var a,s,l,d,c,_,f,u,v;const t=H(),o=L(t),[n,r]=at();return i("div",{className:re.root,style:o.root,children:[i("div",{className:re.content,children:[i("div",{className:re.textContent,children:[i(J,{className:re.text,style:o.text,typography:(a=o.text)==null?void 0:a.typography,accentTypography:(s=o.text)==null?void 0:s.accentTypography,children:(l=o.text)==null?void 0:l.children}),i("div",{style:o.bookmaker,children:(d=o.bookmaker)==null?void 0:d.children})]}),i("div",{className:re.button,style:o.button,children:o.button.children}),i("div",{className:re.backgroundLine,style:x(g({},ve(o.line)),{left:`calc(50% - ${(c=o.line)==null?void 0:c.left})`}),children:i(O_,{})}),i("a",{className:re.link,target:"_blank",href:(_=o.root)==null?void 0:_.offer,onClick:()=>e(o.id),rel:"noreferrer"})]}),i("div",{className:T(re.legal,{[re.open]:n}),style:o.legalInfo,children:i("div",{className:re.legalText,children:[(f=o.legalInfo)==null?void 0:f.children,i("span",{className:re.legalMore,style:o.legalInfoButton,onClick:r,children:n?(u=o.legalInfoButton)==null?void 0:u.openText:(v=o.legalInfoButton)==null?void 0:v.closeText})]})})]})},ae={root:"_root_ka6mq_1",content:"_content_ka6mq_8",backgroundLine:"_backgroundLine_ka6mq_14",link:"_link_ka6mq_20",button:"_button_ka6mq_26",logo:"_logo_ka6mq_31",legal:"_legal_ka6mq_37",open:"_open_ka6mq_49",legalText:"_legalText_ka6mq_53",legalMore:"_legalMore_ka6mq_66"},L_=({onClick:e})=>{var a,s,l,d,c,_,f,u;const t=H(),o=L(t),[n,r]=at();return i("div",{className:ae.root,style:o.root,children:[i("div",{className:ae.content,children:[i(J,{className:ae.text,style:o.text,typography:(a=o.text)==null?void 0:a.typography,accentTypography:(s=o.text)==null?void 0:s.accentTypography,children:(l=o.text)==null?void 0:l.children}),i("div",{className:ae.button,style:o.button,children:[i("div",{className:ae.logo,style:o.logo}),o.button.children]}),i("a",{className:ae.link,href:(d=o.root)==null?void 0:d.offer})]}),i("a",{className:ae.link,href:(c=o.root)==null?void 0:c.offer,target:"_blank",onClick:()=>e(o.id),rel:"noreferrer"}),i("div",{className:T(ae.legal,{[ae.open]:n}),style:o.legalInfo,children:[i("div",{className:ae.legalText,children:(_=o.legalInfo)==null?void 0:_.children}),i("div",{className:ae.legalMore,style:o.legalInfoButton,onClick:r,children:n?(f=o.legalInfoButton)==null?void 0:f.openText:(u=o.legalInfoButton)==null?void 0:u.closeText})]})]})},A_=e=>{const t=U(Me()),o=r=>t.current.on("click",r),n=r=>t.current.on("visible",r);return Ee(e,()=>({promoId:"ContentCards",onClick:o,onVisible:n,resetListeners:t.current.reset})),F(()=>{t.current.emit("visible")},[]),F(()=>t.current.reset,[]),{click:(...r)=>t.current.emit("click",...r),onClick:o}},I_=_e(({id:e},t)=>{const o=U(null),n=H(),r=ye({targetRef:o,id:e}),a=fe(n,r),s=L(a);ge(a);const{click:l}=A_(t),d=c=>({cardVariant1:i(S_,{onClick:l}),cardVariant2:i(L_,{onClick:l})})[c];return i("div",{ref:o,className:T(Ve.root,{[Ve.desktop]:r==="desktop",[Ve.laptop]:r==="laptop",[Ve.tablet]:r==="tablet"}),children:i("div",{className:Ve.content,children:((s==null?void 0:s.children)||[]).map(c=>i(ue,{value:c,children:d(c.name)}))})})}),R_=pe(i(I_,{}));var ke=[],E_=function(){return ke.some(function(e){return e.activeTargets.length>0})},j_=function(){return ke.some(function(e){return e.skippedTargets.length>0})},Ko="ResizeObserver loop completed with undelivered notifications.",B_=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Ko}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Ko),window.dispatchEvent(e)},De;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(De||(De={}));var we=function(e){return Object.freeze(e)},Jo=function(){function e(t,o){this.inlineSize=t,this.blockSize=o,we(this)}return e}(),Yo=function(){function e(t,o,n,r){return this.x=t,this.y=o,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,we(this)}return e.prototype.toJSON=function(){var t=this,o=t.x,n=t.y,r=t.top,a=t.right,s=t.bottom,l=t.left,d=t.width,c=t.height;return{x:o,y:n,top:r,right:a,bottom:s,left:l,width:d,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),wt=function(e){return e instanceof SVGElement&&"getBBox"in e},Qo=function(e){if(wt(e)){var t=e.getBBox(),o=t.width,n=t.height;return!o&&!n}var r=e,a=r.offsetWidth,s=r.offsetHeight;return!(a||s||e.getClientRects().length)},en=function(e){var t;if(e instanceof Element)return!0;var o=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(o&&e instanceof o.Element)},z_=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},qe=typeof window!="undefined"?window:{},ct=new WeakMap,tn=/auto|scroll/,P_=/^tb|vertical/,M_=/msie|trident/i.test(qe.navigator&&qe.navigator.userAgent),ce=function(e){return parseFloat(e||"0")},Ie=function(e,t,o){return e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=!1),new Jo((o?t:e)||0,(o?e:t)||0)},on=we({devicePixelContentBoxSize:Ie(),borderBoxSize:Ie(),contentBoxSize:Ie(),contentRect:new Yo(0,0,0,0)}),nn=function(e,t){if(t===void 0&&(t=!1),ct.has(e)&&!t)return ct.get(e);if(Qo(e))return ct.set(e,on),on;var o=getComputedStyle(e),n=wt(e)&&e.ownerSVGElement&&e.getBBox(),r=!M_&&o.boxSizing==="border-box",a=P_.test(o.writingMode||""),s=!n&&tn.test(o.overflowY||""),l=!n&&tn.test(o.overflowX||""),d=n?0:ce(o.paddingTop),c=n?0:ce(o.paddingRight),_=n?0:ce(o.paddingBottom),f=n?0:ce(o.paddingLeft),u=n?0:ce(o.borderTopWidth),v=n?0:ce(o.borderRightWidth),b=n?0:ce(o.borderBottomWidth),$=n?0:ce(o.borderLeftWidth),y=f+c,V=d+_,D=$+v,S=u+b,j=l?e.offsetHeight-S-e.clientHeight:0,B=s?e.offsetWidth-D-e.clientWidth:0,z=r?y+D:0,k=r?V+S:0,q=n?n.width:ce(o.width)-z-B,P=n?n.height:ce(o.height)-k-j,G=q+y+B+D,le=P+V+j+S,Fe=we({devicePixelContentBoxSize:Ie(Math.round(q*devicePixelRatio),Math.round(P*devicePixelRatio),a),borderBoxSize:Ie(G,le,a),contentBoxSize:Ie(q,P,a),contentRect:new Yo(f,d,q,P)});return ct.set(e,Fe),Fe},rn=function(e,t,o){var n=nn(e,o),r=n.borderBoxSize,a=n.contentBoxSize,s=n.devicePixelContentBoxSize;switch(t){case De.DEVICE_PIXEL_CONTENT_BOX:return s;case De.BORDER_BOX:return r;default:return a}},an=function(){function e(t){var o=nn(t);this.target=t,this.contentRect=o.contentRect,this.borderBoxSize=we([o.borderBoxSize]),this.contentBoxSize=we([o.contentBoxSize]),this.devicePixelContentBoxSize=we([o.devicePixelContentBoxSize])}return e}(),sn=function(e){if(Qo(e))return 1/0;for(var t=0,o=e.parentNode;o;)t+=1,o=o.parentNode;return t},H_=function(){var e=1/0,t=[];ke.forEach(function(s){if(s.activeTargets.length!==0){var l=[];s.activeTargets.forEach(function(c){var _=new an(c.target),f=sn(c.target);l.push(_),c.lastReportedSize=rn(c.target,c.observedBox),f<e&&(e=f)}),t.push(function(){s.callback.call(s.observer,l,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var o=0,n=t;o<n.length;o++){var r=n[o];r()}return e},cn=function(e){ke.forEach(function(o){o.activeTargets.splice(0,o.activeTargets.length),o.skippedTargets.splice(0,o.skippedTargets.length),o.observationTargets.forEach(function(r){r.isActive()&&(sn(r.target)>e?o.activeTargets.push(r):o.skippedTargets.push(r))})})},V_=function(){var e=0;for(cn(e);E_();)e=H_(),cn(e);return j_()&&B_(),e>0},xt,ln=[],D_=function(){return ln.splice(0).forEach(function(e){return e()})},q_=function(e){if(!xt){var t=0,o=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return D_()}).observe(o,n),xt=function(){o.textContent="".concat(t?t--:t++)}}ln.push(e),xt()},F_=function(e){q_(function(){requestAnimationFrame(e)})},lt=0,W_=function(){return!!lt},G_=250,U_={attributes:!0,characterData:!0,childList:!0,subtree:!0},dn=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],_n=function(e){return e===void 0&&(e=0),Date.now()+e},Nt=!1,X_=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var o=this;if(t===void 0&&(t=G_),!Nt){Nt=!0;var n=_n(t);F_(function(){var r=!1;try{r=V_()}finally{if(Nt=!1,t=n-_n(),!W_())return;r?o.run(1e3):t>0?o.run(t):o.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,o=function(){return t.observer&&t.observer.observe(document.body,U_)};document.body?o():qe.addEventListener("DOMContentLoaded",o)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),dn.forEach(function(o){return qe.addEventListener(o,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),dn.forEach(function(o){return qe.removeEventListener(o,t.listener,!0)}),this.stopped=!0)},e}(),Ct=new X_,un=function(e){!lt&&e>0&&Ct.start(),lt+=e,!lt&&Ct.stop()},Z_=function(e){return!wt(e)&&!z_(e)&&getComputedStyle(e).display==="inline"},K_=function(){function e(t,o){this.target=t,this.observedBox=o||De.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=rn(this.target,this.observedBox,!0);return Z_(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),J_=function(){function e(t,o){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=o}return e}(),dt=new WeakMap,pn=function(e,t){for(var o=0;o<e.length;o+=1)if(e[o].target===t)return o;return-1},_t=function(){function e(){}return e.connect=function(t,o){var n=new J_(t,o);dt.set(t,n)},e.observe=function(t,o,n){var r=dt.get(t),a=r.observationTargets.length===0;pn(r.observationTargets,o)<0&&(a&&ke.push(r),r.observationTargets.push(new K_(o,n&&n.box)),un(1),Ct.schedule())},e.unobserve=function(t,o){var n=dt.get(t),r=pn(n.observationTargets,o),a=n.observationTargets.length===1;r>=0&&(a&&ke.splice(ke.indexOf(n),1),n.observationTargets.splice(r,1),un(-1))},e.disconnect=function(t){var o=this,n=dt.get(t);n.observationTargets.slice().forEach(function(r){return o.unobserve(t,r.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Y_=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");_t.connect(this,t)}return e.prototype.observe=function(t,o){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!en(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");_t.observe(this,t,o)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!en(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");_t.unobserve(this,t)},e.prototype.disconnect=function(){_t.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const Q_=Object.freeze(Object.defineProperty({__proto__:null,ResizeObserver:Y_,ResizeObserverEntry:an,ResizeObserverSize:Jo},Symbol.toStringTag,{value:"Module"}));h.BonusCard=h_,h.ComplexGift=e_,h.ComplexPopup=c_,h.ContentCards=R_,h.ExpressPopup=u_,h.SimpleGift=Jd,h.SimplePopup=a_,h.WideCard=C_,h.backgroundToColor=ve,h.filterDeep=jd,h.findDeep=Ed,h.isValidTemplate=Id,h.modifyState=T_,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});