@golstats/gsc-reports 1.0.41 → 1.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4070,7 +4070,7 @@ uniform ${Be} ${We} u_${at};
4070
4070
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...i){const y=new this(r);return i.forEach(F=>y.set(F)),y}static accessor(r){const i=(this[Y4]=this[Y4]={accessors:{}}).accessors,y=this.prototype;function F(K){const L=tm(K);i[L]||(mie(y,K),i[L]=!0)}return Gn.isArray(r)?r.forEach(F):F(r),this}};pu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Gn.reduceDescriptors(pu.prototype,({value:r},i)=>{let y=i[0].toUpperCase()+i.slice(1);return{get:()=>r,set(F){this[y]=F}}}),Gn.freezeMethods(pu);function D2(r,i){const y=this||em,F=i||y,K=pu.from(F.headers);let L=F.data;return Gn.forEach(r,function(w){L=w.call(y,L,K.normalize(),i?i.status:void 0)}),K.normalize(),L}function Q4(r){return!!(r&&r.__CANCEL__)}function Vp(r,i,y){yi.call(this,r??"canceled",yi.ERR_CANCELED,i,y),this.name="CanceledError"}Gn.inherits(Vp,yi,{__CANCEL__:!0});function $4(r,i,y){const F=y.config.validateStatus;!y.status||!F||F(y.status)?r(y):i(new yi("Request failed with status code "+y.status,[yi.ERR_BAD_REQUEST,yi.ERR_BAD_RESPONSE][Math.floor(y.status/100)-4],y.config,y.request,y))}function gie(r){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return i&&i[1]||""}function yie(r,i){r=r||10;const y=new Array(r),F=new Array(r);let K=0,L=0,w;return i=i!==void 0?i:1e3,function(t){const v=Date.now(),d=F[L];w||(w=v),y[K]=t,F[K]=v;let e=L,x=0;for(;e!==K;)x+=y[e++],e=e%r;if(K=(K+1)%r,K===L&&(L=(L+1)%r),v-w<i)return;const m=d&&v-d;return m?Math.round(x*1e3/m):void 0}}function vie(r,i){let y=0,F=1e3/i,K,L;const w=(t,v=Date.now())=>{y=v,K=null,L&&(clearTimeout(L),L=null),r(...t)};return[(...t)=>{const v=Date.now(),d=v-y;d>=F?w(t,v):(K=t,L||(L=setTimeout(()=>{L=null,w(K)},F-d)))},()=>K&&w(K)]}const Wg=(r,i,y=3)=>{let F=0;const K=yie(50,250);return vie(L=>{const w=L.loaded,t=L.lengthComputable?L.total:void 0,v=w-F,d=K(v),e=w<=t;F=w;const x={loaded:w,total:t,progress:t?w/t:void 0,bytes:v,rate:d||void 0,estimated:d&&t&&e?(t-w)/d:void 0,event:L,lengthComputable:t!=null,[i?"download":"upload"]:!0};r(x)},y)},e6=(r,i)=>{const y=r!=null;return[F=>i[0]({lengthComputable:y,total:r,loaded:F}),i[1]]},t6=r=>(...i)=>Gn.asap(()=>r(...i)),bie=Lc.hasStandardBrowserEnv?((r,i)=>y=>(y=new URL(y,Lc.origin),r.protocol===y.protocol&&r.host===y.host&&(i||r.port===y.port)))(new URL(Lc.origin),Lc.navigator&&/(msie|trident)/i.test(Lc.navigator.userAgent)):()=>!0,xie=Lc.hasStandardBrowserEnv?{write(r,i,y,F,K,L){const w=[r+"="+encodeURIComponent(i)];Gn.isNumber(y)&&w.push("expires="+new Date(y).toGMTString()),Gn.isString(F)&&w.push("path="+F),Gn.isString(K)&&w.push("domain="+K),L===!0&&w.push("secure"),document.cookie=w.join("; ")},read(r){const i=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove(r){this.write(r,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function _ie(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function wie(r,i){return i?r.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):r}function r6(r,i,y){let F=!_ie(i);return r&&(F||y==!1)?wie(r,i):i}const n6=r=>r instanceof pu?{...r}:r;function Jh(r,i){i=i||{};const y={};function F(d,e,x,m){return Gn.isPlainObject(d)&&Gn.isPlainObject(e)?Gn.merge.call({caseless:m},d,e):Gn.isPlainObject(e)?Gn.merge({},e):Gn.isArray(e)?e.slice():e}function K(d,e,x,m){if(Gn.isUndefined(e)){if(!Gn.isUndefined(d))return F(void 0,d,x,m)}else return F(d,e,x,m)}function L(d,e){if(!Gn.isUndefined(e))return F(void 0,e)}function w(d,e){if(Gn.isUndefined(e)){if(!Gn.isUndefined(d))return F(void 0,d)}else return F(void 0,e)}function t(d,e,x){if(x in i)return F(d,e);if(x in r)return F(void 0,d)}const v={url:L,method:L,data:L,baseURL:w,transformRequest:w,transformResponse:w,paramsSerializer:w,timeout:w,timeoutMessage:w,withCredentials:w,withXSRFToken:w,adapter:w,responseType:w,xsrfCookieName:w,xsrfHeaderName:w,onUploadProgress:w,onDownloadProgress:w,decompress:w,maxContentLength:w,maxBodyLength:w,beforeRedirect:w,transport:w,httpAgent:w,httpsAgent:w,cancelToken:w,socketPath:w,responseEncoding:w,validateStatus:t,headers:(d,e,x)=>K(n6(d),n6(e),x,!0)};return Gn.forEach(Object.keys({...r,...i}),function(d){const e=v[d]||K,x=e(r[d],i[d],d);Gn.isUndefined(x)&&e!==t||(y[d]=x)}),y}const a6=r=>{const i=Jh({},r);let{data:y,withXSRFToken:F,xsrfHeaderName:K,xsrfCookieName:L,headers:w,auth:t}=i;i.headers=w=pu.from(w),i.url=H4(r6(i.baseURL,i.url,i.allowAbsoluteUrls),r.params,r.paramsSerializer),t&&w.set("Authorization","Basic "+btoa((t.username||"")+":"+(t.password?unescape(encodeURIComponent(t.password)):"")));let v;if(Gn.isFormData(y)){if(Lc.hasStandardBrowserEnv||Lc.hasStandardBrowserWebWorkerEnv)w.setContentType(void 0);else if((v=w.getContentType())!==!1){const[d,...e]=v?v.split(";").map(x=>x.trim()).filter(Boolean):[];w.setContentType([d||"multipart/form-data",...e].join("; "))}}if(Lc.hasStandardBrowserEnv&&(F&&Gn.isFunction(F)&&(F=F(i)),F||F!==!1&&bie(i.url))){const d=K&&L&&xie.read(L);d&&w.set(K,d)}return i},Tie=typeof XMLHttpRequest<"u",kie=Tie&&function(r){return new Promise(function(i,y){const F=a6(r);let K=F.data;const L=pu.from(F.headers).normalize();let{responseType:w,onUploadProgress:t,onDownloadProgress:v}=F,d,e,x,m,b;function h(){m&&m(),b&&b(),F.cancelToken&&F.cancelToken.unsubscribe(d),F.signal&&F.signal.removeEventListener("abort",d)}let n=new XMLHttpRequest;n.open(F.method.toUpperCase(),F.url,!0),n.timeout=F.timeout;function a(){if(!n)return;const s=pu.from("getAllResponseHeaders"in n&&n.getAllResponseHeaders()),l={data:!w||w==="text"||w==="json"?n.responseText:n.response,status:n.status,statusText:n.statusText,headers:s,config:r,request:n};$4(function(f){i(f),h()},function(f){y(f),h()},l),n=null}"onloadend"in n?n.onloadend=a:n.onreadystatechange=function(){!n||n.readyState!==4||n.status===0&&!(n.responseURL&&n.responseURL.indexOf("file:")===0)||setTimeout(a)},n.onabort=function(){n&&(y(new yi("Request aborted",yi.ECONNABORTED,r,n)),n=null)},n.onerror=function(){y(new yi("Network Error",yi.ERR_NETWORK,r,n)),n=null},n.ontimeout=function(){let s=F.timeout?"timeout of "+F.timeout+"ms exceeded":"timeout exceeded";const l=F.transitional||Z4;F.timeoutErrorMessage&&(s=F.timeoutErrorMessage),y(new yi(s,l.clarifyTimeoutError?yi.ETIMEDOUT:yi.ECONNABORTED,r,n)),n=null},K===void 0&&L.setContentType(null),"setRequestHeader"in n&&Gn.forEach(L.toJSON(),function(s,l){n.setRequestHeader(l,s)}),Gn.isUndefined(F.withCredentials)||(n.withCredentials=!!F.withCredentials),w&&w!=="json"&&(n.responseType=F.responseType),v&&([x,b]=Wg(v,!0),n.addEventListener("progress",x)),t&&n.upload&&([e,m]=Wg(t),n.upload.addEventListener("progress",e),n.upload.addEventListener("loadend",m)),(F.cancelToken||F.signal)&&(d=s=>{n&&(y(!s||s.type?new Vp(null,r,n):s),n.abort(),n=null)},F.cancelToken&&F.cancelToken.subscribe(d),F.signal&&(F.signal.aborted?d():F.signal.addEventListener("abort",d)));const u=gie(F.url);if(u&&Lc.protocols.indexOf(u)===-1){y(new yi("Unsupported protocol "+u+":",yi.ERR_BAD_REQUEST,r));return}n.send(K||null)})},Sie=(r,i)=>{const{length:y}=r=r?r.filter(Boolean):[];if(i||y){let F=new AbortController,K;const L=function(d){if(!K){K=!0,t();const e=d instanceof Error?d:this.reason;F.abort(e instanceof yi?e:new Vp(e instanceof Error?e.message:e))}};let w=i&&setTimeout(()=>{w=null,L(new yi(`timeout ${i} of ms exceeded`,yi.ETIMEDOUT))},i);const t=()=>{r&&(w&&clearTimeout(w),w=null,r.forEach(d=>{d.unsubscribe?d.unsubscribe(L):d.removeEventListener("abort",L)}),r=null)};r.forEach(d=>d.addEventListener("abort",L));const{signal:v}=F;return v.unsubscribe=()=>Gn.asap(t),v}},Eie=function*(r,i){let y=r.byteLength;if(y<i){yield r;return}let F=0,K;for(;F<y;)K=F+i,yield r.slice(F,K),F=K},Cie=async function*(r,i){for await(const y of Aie(r))yield*Eie(y,i)},Aie=async function*(r){if(r[Symbol.asyncIterator]){yield*r;return}const i=r.getReader();try{for(;;){const{done:y,value:F}=await i.read();if(y)break;yield F}}finally{await i.cancel()}},i6=(r,i,y,F)=>{const K=Cie(r,i);let L=0,w,t=v=>{w||(w=!0,F&&F(v))};return new ReadableStream({async pull(v){try{const{done:d,value:e}=await K.next();if(d){t(),v.close();return}let x=e.byteLength;if(y){let m=L+=x;y(m)}v.enqueue(new Uint8Array(e))}catch(d){throw t(d),d}},cancel(v){return t(v),K.return()}},{highWaterMark:2})},Gg=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",o6=Gg&&typeof ReadableStream=="function",Mie=Gg&&(typeof TextEncoder=="function"?(r=>i=>r.encode(i))(new TextEncoder):async r=>new Uint8Array(await new Response(r).arrayBuffer())),s6=(r,...i)=>{try{return!!r(...i)}catch{return!1}},Lie=o6&&s6(()=>{let r=!1;const i=new Request(Lc.origin,{body:new ReadableStream,method:"POST",get duplex(){return r=!0,"half"}}).headers.has("Content-Type");return r&&!i}),l6=64*1024,I2=o6&&s6(()=>Gn.isReadableStream(new Response("").body)),Xg={stream:I2&&(r=>r.body)};Gg&&(r=>{["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!Xg[i]&&(Xg[i]=Gn.isFunction(r[i])?y=>y[i]():(y,F)=>{throw new yi(`Response type '${i}' is not supported`,yi.ERR_NOT_SUPPORT,F)})})})(new Response);const Pie=async r=>{if(r==null)return 0;if(Gn.isBlob(r))return r.size;if(Gn.isSpecCompliantForm(r))return(await new Request(Lc.origin,{method:"POST",body:r}).arrayBuffer()).byteLength;if(Gn.isArrayBufferView(r)||Gn.isArrayBuffer(r))return r.byteLength;if(Gn.isURLSearchParams(r)&&(r=r+""),Gn.isString(r))return(await Mie(r)).byteLength},Nie=async(r,i)=>Gn.toFiniteNumber(r.getContentLength())??Pie(i),Oie=Gg&&(async r=>{let{url:i,method:y,data:F,signal:K,cancelToken:L,timeout:w,onDownloadProgress:t,onUploadProgress:v,responseType:d,headers:e,withCredentials:x="same-origin",fetchOptions:m}=a6(r);d=d?(d+"").toLowerCase():"text";let b=Sie([K,L&&L.toAbortSignal()],w),h;const n=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let a;try{if(v&&Lie&&y!=="get"&&y!=="head"&&(a=await Nie(e,F))!==0){let g=new Request(i,{method:"POST",body:F,duplex:"half"}),k;if(Gn.isFormData(F)&&(k=g.headers.get("content-type"))&&e.setContentType(k),g.body){const[E,S]=e6(a,Wg(t6(v)));F=i6(g.body,l6,E,S)}}Gn.isString(x)||(x=x?"include":"omit");const u="credentials"in Request.prototype;h=new Request(i,{...m,signal:b,method:y.toUpperCase(),headers:e.normalize().toJSON(),body:F,duplex:"half",credentials:u?x:void 0});let s=await fetch(h,m);const l=I2&&(d==="stream"||d==="response");if(I2&&(t||l&&n)){const g={};["status","statusText","headers"].forEach(M=>{g[M]=s[M]});const k=Gn.toFiniteNumber(s.headers.get("content-length")),[E,S]=t&&e6(k,Wg(t6(t),!0))||[];s=new Response(i6(s.body,l6,E,()=>{S&&S(),n&&n()}),g)}d=d||"text";let f=await Xg[Gn.findKey(Xg,d)||"text"](s,r);return!l&&n&&n(),await new Promise((g,k)=>{$4(g,k,{data:f,headers:pu.from(s.headers),status:s.status,statusText:s.statusText,config:r,request:h})})}catch(u){throw n&&n(),u&&u.name==="TypeError"&&/Load failed|fetch/i.test(u.message)?Object.assign(new yi("Network Error",yi.ERR_NETWORK,r,h),{cause:u.cause||u}):yi.from(u,u&&u.code,r,h)}}),F2={http:Jae,xhr:kie,fetch:Oie};Gn.forEach(F2,(r,i)=>{if(r){try{Object.defineProperty(r,"name",{value:i})}catch{}Object.defineProperty(r,"adapterName",{value:i})}});const c6=r=>`- ${r}`,Rie=r=>Gn.isFunction(r)||r===null||r===!1,u6={getAdapter:r=>{r=Gn.isArray(r)?r:[r];const{length:i}=r;let y,F;const K={};for(let L=0;L<i;L++){y=r[L];let w;if(F=y,!Rie(y)&&(F=F2[(w=String(y)).toLowerCase()],F===void 0))throw new yi(`Unknown adapter '${w}'`);if(F)break;K[w||"#"+L]=F}if(!F){const L=Object.entries(K).map(([t,v])=>`adapter ${t} `+(v===!1?"is not supported by the environment":"is not available in the build"));let w=i?L.length>1?`since :
4071
4071
  `+L.map(c6).join(`
4072
4072
  `):" "+c6(L[0]):"as no adapter specified";throw new yi("There is no suitable adapter to dispatch the request "+w,"ERR_NOT_SUPPORT")}return F},adapters:F2};function B2(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new Vp(null,r)}function d6(r){return B2(r),r.headers=pu.from(r.headers),r.data=D2.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),u6.getAdapter(r.adapter||em.adapter)(r).then(function(i){return B2(r),i.data=D2.call(r,r.transformResponse,i),i.headers=pu.from(i.headers),i},function(i){return Q4(i)||(B2(r),i&&i.response&&(i.response.data=D2.call(r,r.transformResponse,i.response),i.response.headers=pu.from(i.response.headers))),Promise.reject(i)})}const h6="1.11.0",Hg={};["object","boolean","number","function","string","symbol"].forEach((r,i)=>{Hg[r]=function(y){return typeof y===r||"a"+(i<1?"n ":" ")+r}});const p6={};Hg.transitional=function(r,i,y){function F(K,L){return"[Axios v"+h6+"] Transitional option '"+K+"'"+L+(y?". "+y:"")}return(K,L,w)=>{if(r===!1)throw new yi(F(L," has been removed"+(i?" in "+i:"")),yi.ERR_DEPRECATED);return i&&!p6[L]&&(p6[L]=!0,console.warn(F(L," has been deprecated since v"+i+" and will be removed in the near future"))),r?r(K,L,w):!0}},Hg.spelling=function(r){return(i,y)=>(console.warn(`${y} is likely a misspelling of ${r}`),!0)};function zie(r,i,y){if(typeof r!="object")throw new yi("options must be an object",yi.ERR_BAD_OPTION_VALUE);const F=Object.keys(r);let K=F.length;for(;K-- >0;){const L=F[K],w=i[L];if(w){const t=r[L],v=t===void 0||w(t,L,r);if(v!==!0)throw new yi("option "+L+" must be "+v,yi.ERR_BAD_OPTION_VALUE);continue}if(y!==!0)throw new yi("Unknown option "+L,yi.ERR_BAD_OPTION)}}const Jg={assertOptions:zie,validators:Hg},bd=Jg.validators;let Zh=class{constructor(r){this.defaults=r||{},this.interceptors={request:new J4,response:new J4}}async request(r,i){try{return await this._request(r,i)}catch(y){if(y instanceof Error){let F={};Error.captureStackTrace?Error.captureStackTrace(F):F=new Error;const K=F.stack?F.stack.replace(/^.+\n/,""):"";try{y.stack?K&&!String(y.stack).endsWith(K.replace(/^.+\n.+\n/,""))&&(y.stack+=`
4073
- `+K):y.stack=K}catch{}}throw y}}_request(r,i){typeof r=="string"?(i=i||{},i.url=r):i=r||{},i=Jh(this.defaults,i);const{transitional:y,paramsSerializer:F,headers:K}=i;y!==void 0&&Jg.assertOptions(y,{silentJSONParsing:bd.transitional(bd.boolean),forcedJSONParsing:bd.transitional(bd.boolean),clarifyTimeoutError:bd.transitional(bd.boolean)},!1),F!=null&&(Gn.isFunction(F)?i.paramsSerializer={serialize:F}:Jg.assertOptions(F,{encode:bd.function,serialize:bd.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),Jg.assertOptions(i,{baseUrl:bd.spelling("baseURL"),withXsrfToken:bd.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let L=K&&Gn.merge(K.common,K[i.method]);K&&Gn.forEach(["delete","get","head","post","put","patch","common"],b=>{delete K[b]}),i.headers=pu.concat(L,K);const w=[];let t=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(i)===!1||(t=t&&b.synchronous,w.unshift(b.fulfilled,b.rejected))});const v=[];this.interceptors.response.forEach(function(b){v.push(b.fulfilled,b.rejected)});let d,e=0,x;if(!t){const b=[d6.bind(this),void 0];for(b.unshift(...w),b.push(...v),x=b.length,d=Promise.resolve(i);e<x;)d=d.then(b[e++],b[e++]);return d}x=w.length;let m=i;for(e=0;e<x;){const b=w[e++],h=w[e++];try{m=b(m)}catch(n){h.call(this,n);break}}try{d=d6.call(this,m)}catch(b){return Promise.reject(b)}for(e=0,x=v.length;e<x;)d=d.then(v[e++],v[e++]);return d}getUri(r){r=Jh(this.defaults,r);const i=r6(r.baseURL,r.url,r.allowAbsoluteUrls);return H4(i,r.params,r.paramsSerializer)}};Gn.forEach(["delete","get","head","options"],function(r){Zh.prototype[r]=function(i,y){return this.request(Jh(y||{},{method:r,url:i,data:(y||{}).data}))}}),Gn.forEach(["post","put","patch"],function(r){function i(y){return function(F,K,L){return this.request(Jh(L||{},{method:r,headers:y?{"Content-Type":"multipart/form-data"}:{},url:F,data:K}))}}Zh.prototype[r]=i(),Zh.prototype[r+"Form"]=i(!0)});let Die=class UT{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let y;this.promise=new Promise(function(K){y=K});const F=this;this.promise.then(K=>{if(!F._listeners)return;let L=F._listeners.length;for(;L-- >0;)F._listeners[L](K);F._listeners=null}),this.promise.then=K=>{let L;const w=new Promise(t=>{F.subscribe(t),L=t}).then(K);return w.cancel=function(){F.unsubscribe(L)},w},i(function(K,L,w){F.reason||(F.reason=new Vp(K,L,w),y(F.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const y=this._listeners.indexOf(i);y!==-1&&this._listeners.splice(y,1)}toAbortSignal(){const i=new AbortController,y=F=>{i.abort(F)};return this.subscribe(y),i.signal.unsubscribe=()=>this.unsubscribe(y),i.signal}static source(){let i;return{token:new UT(function(y){i=y}),cancel:i}}};function Iie(r){return function(i){return r.apply(null,i)}}function Fie(r){return Gn.isObject(r)&&r.isAxiosError===!0}const V2={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(V2).forEach(([r,i])=>{V2[i]=r});function f6(r){const i=new Zh(r),y=N4(Zh.prototype.request,i);return Gn.extend(y,Zh.prototype,i,{allOwnKeys:!0}),Gn.extend(y,i,null,{allOwnKeys:!0}),y.create=function(F){return f6(Jh(r,F))},y}const rl=f6(em);rl.Axios=Zh,rl.CanceledError=Vp,rl.CancelToken=Die,rl.isCancel=Q4,rl.VERSION=h6,rl.toFormData=jg,rl.AxiosError=yi,rl.Cancel=rl.CanceledError,rl.all=function(r){return Promise.all(r)},rl.spread=Iie,rl.isAxiosError=Fie,rl.mergeConfig=Jh,rl.AxiosHeaders=pu,rl.formToJSON=r=>K4(Gn.isHTMLForm(r)?new FormData(r):r),rl.getAdapter=u6.getAdapter,rl.HttpStatusCode=V2,rl.default=rl;const{Axios:sve,AxiosError:lve,CanceledError:cve,isCancel:uve,CancelToken:dve,VERSION:hve,all:pve,Cancel:fve,isAxiosError:mve,spread:gve,toFormData:yve,AxiosHeaders:vve,HttpStatusCode:bve,formToJSON:xve,getAdapter:_ve,mergeConfig:wve}=rl,Bie=(r,i)=>{const y=r.__vccOpts||r;for(const[F,K]of i)y[F]=K;return y},Vie={class:"header"},Uie={class:"team-logo left-team"},jie=["src"],qie={class:"team-logo right-team"},Wie=["src"],Gie={class:"stats-container"},Xie={class:"stat-bar-container"},Hie={class:"stat-label"},Jie={class:"stat-bars"},Zie={class:"bar-section"},Kie={class:"bar-number"},Yie={class:"bar-section"},Qie={class:"bar-number"},$ie={__name:"gsc-comparative-reports",props:{type:{type:String,required:!0,validator:r=>["general","offensive","defensive","possession","stoppedBall","penalties"].includes(r)},gameId:{type:String,required:!0},seasonId:{type:String,required:!0},token:{type:String,required:!0,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},homeLogo:{type:String,required:!0},awayLogo:{type:String,required:!0},typegame:{type:String,required:!0},default:{type:Boolean,default:!1}},setup(r){const i=r,y=p.ref([]),F=p.ref(!0),K=p.ref(null),L=p.computed(()=>i.default?"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/escudo1.png":i.homeLogo),w=p.computed(()=>i.default?"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/escudo2.png":i.awayLogo);p.computed(()=>({general:"General",offensive:"Ofensivo",defensive:"Defensivo",possession:"Posesión",stoppedBall:"Balón parado",penalties:"Infracciones"})[i.type]||"General");const t=p.ref(null),v=async()=>{try{if(F.value=!0,K.value=null,i.default){console.log("Modo default activado - usando categorías estáticas");const a=d[i.type]||d.general;y.value=a.map(u=>({label:u,local:0,away:0})),F.value=!1;return}const h=`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsTeamBySeason/${i.seasonId}/games/${i.gameId}?type=${i.typegame}`,n=await rl.get(h,{headers:{Authorization:`${i.token}`,"Content-Type":"application/json"}});console.log("API Response:",n.data.result),y.value=e(n.data.result,i.type)}catch(h){K.value=h.message,console.error("Error loading statistics:",h)}finally{F.value=!1}},d={general:["Goles","Remates a destino","Tarjetas amarillas","Tarjetas rojas","Centros totales"],offensive:["Tiros a gol","Tiros a gol destino","Remates a destino","Balones ganados área rival","Centros por derecha","Centros por izquierda","Enfrentamientos ofensivos exitosos","Enfrentamientos ofensivos no exitosos"],defensive:["Atajadas","Balones ganados área propia","Enfrentamientos defensivos exitosos","Enfrentamientos defensivos no exitosos","Juego aéreo resto del campo","Rechaces"],possession:["Pases totales","Pases acertados","Pases acertados en cancha rival","Balones recuperados en disputa","Balones recuperados sin disputa","Balones perdidos en disputa","Balones perdidos sin disputa"],stoppedBall:["Tiros libres 4/4","Tiros libres 3/4","Tiros libres cancha propia","Tiros de esquina por derecha","Tiros de esquina por izquierda","Saques de meta"],penalties:["Faltas totales","Faltas cerca de su propia portería","Faltas resto del campo","Penales cometidos","Fueras de lugar"]},e=(h,n)=>{if(console.log("Transformando datos para tipo:",n,"Datos recibidos:",h[i.type]),i.default){const u=d[i.type]||d.general;return console.log(`Modo default - categorías para tipo '${i.type}':`,u),u.map(s=>({label:s,local:0,away:0}))}const a=h[i.type];return!a||!Array.isArray(a)?(console.warn(`No se encontraron datos para el tipo: ${i.type}`,a),[]):(console.log(`Estadísticas para tipo '${i.type}':`,a),a.map(u=>({label:u.category_name,local:u.home,away:u.away})))},x=(h,n,a)=>{const u=h+n;return u===0?0:Math.round(a==="local"?h/u*100:n/u*100)},m=()=>{if(!t.value)return;const h=t.value.offsetWidth,n=t.value;n.classList.remove("size-large","size-medium","size-small","size-tiny"),h>=1024?n.classList.add("size-large"):h>=768?n.classList.add("size-medium"):h>=580?n.classList.add("size-small"):n.classList.add("size-tiny")};let b=null;return p.onMounted(()=>{m(),v(),b=new ResizeObserver(()=>{m()}),t.value&&b.observe(t.value)}),p.watch([()=>i.type,()=>i.typegame,()=>i.gameId,()=>i.seasonId,()=>i.token,()=>i.homeLogo,()=>i.awayLogo,()=>i.default],()=>{v()}),p.onUnmounted(()=>{b&&b.disconnect()}),(h,n)=>(p.openBlock(),p.createElementBlock("div",{class:"comparative-reports",ref_key:"containerRef",ref:t},[p.createElementVNode("div",Vie,[p.createElementVNode("div",Uie,[p.createElementVNode("img",{src:L.value,alt:"Equipo local",class:p.normalizeClass(["logo",{"default-logo":i.default}])},null,10,jie)]),p.createElementVNode("div",qie,[p.createElementVNode("img",{src:w.value,alt:"Equipo visitante",class:p.normalizeClass(["logo",{"default-logo":i.default}])},null,10,Wie)])]),p.createElementVNode("div",Gie,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(y.value,a=>(p.openBlock(),p.createElementBlock("div",{class:"stat-item",key:a.label},[p.createElementVNode("div",Xie,[p.createElementVNode("div",Hie,p.toDisplayString(a.label),1),p.createElementVNode("div",Jie,[p.createElementVNode("div",Zie,[p.createElementVNode("span",Kie,p.toDisplayString(a.local),1),p.createElementVNode("div",{class:"bar left-bar",style:p.normalizeStyle({width:x(a.local,a.away,"local")+"%"})},null,4)]),p.createElementVNode("div",Yie,[p.createElementVNode("span",Qie,p.toDisplayString(a.away),1),p.createElementVNode("div",{class:"bar right-bar",style:p.normalizeStyle({width:x(a.local,a.away,"away")+"%"})},null,4)])])])]))),128))])],512))}},m6=Bie($ie,[["__scopeId","data-v-06db22db"]]),Zg=(r,i)=>{const y=r.__vccOpts||r;for(const[F,K]of i)y[F]=K;return y},eoe={name:"SoccerBall",props:{play:{type:Object,require:!0}},data(){return{currentPlayId:0}},computed:{idGradient(){let r;switch(this.play.st){case"st1g":r="green";break;case"st1y":r="yellow";break;case"st1r":r="red";break;case"st1b":r="blue";break}return r},x(){if(this.isLeftArea)return this.play.x*2.66666666667*58-135;if(this.isLeftPost)return-57;if(this.isGoalArea)return(this.play.x-.391)*4.31034482759*637-37;if(this.isRightPost)return 620;if(this.isRightArea)return(this.play.x-.639)*2.77008310249*65+640},y(){return this.isSuperiorPost?128:340-this.play.y*1371.42857143},isLeftArea(){return this.play.x>=0&&this.play.x<.3738},isLeftPost(){return this.play.x>=.3738&&this.play.x<=.3822},isGoalArea(){return this.play.x>.3822&&this.play.x<.6232},isRightPost(){return this.play.x>=.6232&&this.play.x<=.6266},isRightArea(){return this.play.x>.6266&&this.play.x<=1},isSuperiorPost(){return this.play.x>=.3738&&this.play.x<=.6266&&this.play.y>=.1384&&this.play.y<=.1442}},methods:{onClickOver(r,i){let y={x:this.x<350?r.pageX:r.pageX-120,y:r.clientY,playerName:this.play.playerName,minute:parseInt(this.play.time.split(":")[0])||"",rivalName:this.play.rivalName,rivalLogo:this.play.rivalLogo,playInfo:i};this.$emit("getDataTooltip",y)},onMouseOver(r,i){if(this.currentPlayId!==i.play_id){let y={x:r.pageX+120>=window.innerWidth?r.layerX-120:r.layerX,y:r.layerY+20,playerName:this.play.playerName,minute:parseInt(this.play.time.split(":")[0])||"",rivalName:this.play.rivalName,rivalLogo:this.play.rivalLogo,playInfo:i};this.$emit("show-tooltip",y)}},onMouseLeave(){this.$emit("hide-tooltip")}}},toe=["x","y"],roe=["xlink:href"];function noe(r,i,y,F,K,L){return p.openBlock(),p.createElementBlock("svg",{onMouseover:i[0]||(i[0]=w=>L.onMouseOver(w,y.play)),onMouseleave:i[1]||(i[1]=w=>L.onMouseLeave()),onClick:i[2]||(i[2]=w=>L.onClickOver(w,y.play)),version:"1.1",id:"ball","xmlns:cc":"http://creativecommons.org/ns#","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:rdf":"http://www.w3.org/1999/02/22-rdf-syntax-ns#","xmlns:svg":"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:L.x,y:L.y,viewBox:"0 0 6753 7174.5",style:{"enable-background":"new 0 0 450.2 478.3",cursor:"pointer"},"xml:space":"preserve"},[p.createElementVNode("image",{width:"400",height:"400","xlink:href":y.play.imgData},null,8,roe)],40,toe)}const aoe=Zg(eoe,[["render",noe],["__scopeId","data-v-f203fd76"]]),ioe={key:0,class:"soccer-goal-tooltip__button-play"},ooe={class:"soccer-goal-tooltip__game"},soe={key:0,class:"soccer-goal-tooltip__game__teams-logos"},loe={class:"soccer-goal-tooltip__game__teams-logos__logo"},coe=["src"],uoe={class:"soccer-goal-tooltip__game__teams-logos__logo"},doe=["src"],hoe={class:"soccer-goal-tooltip__game__info"},poe={key:0,class:"soccer-goal-tooltip__game__info__score"},foe={class:"soccer-goal-tooltip__game__info__match-day"},moe={class:"soccer-goal-tooltip__player-and-minute"},goe={class:"soccer-goal-tooltip__player-and-minute__player"},yoe={class:"soccer-goal-tooltip__player-and-minute__player__photo"},voe=["src"],boe={class:"soccer-goal-tooltip__player-and-minute__player__name"},xoe={class:"soccer-goal-tooltip__player-and-minute__minute"},_oe={__name:"SoccerGoalTooltip",props:{play:{type:Object,required:!0},isMobileDevice:{type:Boolean,default:!1}},emits:["close","play"],setup(r,{emit:i}){const y=i;function F(){y("close")}function K(){y("play")}function L(){return null}return p.onBeforeMount(()=>{document.body.addEventListener("click",F,!1)}),p.onBeforeUnmount(()=>{document.body.removeEventListener("click",F,!1)}),(w,t)=>(p.openBlock(),p.createElementBlock("div",{class:"soccer-goal-tooltip",onClick:p.withModifiers(L,["stop","prevent"])},[r.isMobileDevice?(p.openBlock(),p.createElementBlock("div",ioe,[p.createElementVNode("div",{role:"button",class:"soccer-goal-tooltip__button-play__button",onClick:p.withModifiers(K,["stop","prevent"])},t[0]||(t[0]=[p.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10",fill:"none"},[p.createElementVNode("path",{d:"M3.0492 8.92004C2.9831 8.88243 2.92785 8.82624 2.88941 8.75753C2.85097 8.68882 2.83079 8.61018 2.83106 8.53011V1.46888C2.83115 1.38908 2.85146 1.3108 2.88982 1.24236C2.92819 1.17392 2.98318 1.11788 3.04895 1.08019C3.11472 1.0425 3.18881 1.02458 3.26334 1.02832C3.33788 1.03206 3.41007 1.05733 3.47225 1.10145L8.4249 4.63248C8.48147 4.67271 8.52786 4.72726 8.55995 4.79129C8.59204 4.85533 8.60883 4.92685 8.60883 4.9995C8.60883 5.07214 8.59204 5.14367 8.55995 5.2077C8.52786 5.27173 8.48147 5.32629 8.4249 5.36651L3.47225 8.89838C3.41016 8.94259 3.33803 8.96796 3.26352 8.97177C3.18902 8.97559 3.11495 8.95771 3.0492 8.92004ZM3.24397 8.53095L8.19663 4.99991L3.24397 8.53095Z",fill:"#CBEE6B"})],-1)]))])):p.createCommentVNode("",!0),p.createElementVNode("div",ooe,[r.play.homeTeam?(p.openBlock(),p.createElementBlock("div",soe,[p.createElementVNode("div",loe,[p.createElementVNode("img",{src:`https://golstatsimages.blob.core.windows.net/teams-80/${r.play.homeTeam.id}.png`},null,8,coe)]),p.createElementVNode("div",uoe,[p.createElementVNode("img",{src:`https://golstatsimages.blob.core.windows.net/teams-80/${r.play.awayTeam.id}.png`},null,8,doe)])])):p.createCommentVNode("",!0),p.createElementVNode("div",hoe,[r.play.homeTeam?(p.openBlock(),p.createElementBlock("div",poe,p.toDisplayString(r.play.homeTeam.acronym)+" "+p.toDisplayString(r.play.score[0])+":"+p.toDisplayString(r.play.score[1])+" "+p.toDisplayString(r.play.awayTeam.acronym),1)):p.createCommentVNode("",!0),p.createElementVNode("div",foe,p.toDisplayString(r.play.roundAbbreviation),1)])]),p.createElementVNode("div",moe,[p.createElementVNode("div",goe,[p.createElementVNode("div",yoe,[p.createElementVNode("img",{src:`https://golstatsimages.blob.core.windows.net/players-profile/${r.play.playerId}.png`},null,8,voe)]),p.createElementVNode("div",boe,p.toDisplayString(r.play.playerShortName),1)]),p.createElementVNode("div",xoe,p.toDisplayString(r.play.minute)+'"',1)])]))}},woe=Zg(_oe,[["__scopeId","data-v-74a34e4c"]]);function Toe(r){return r.reduce((i,y,F)=>(i[y]=F,i),{})}const koe=["playId","gameId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinateX","coordinateY"];let U2=null;function g6(){return U2||(U2=Toe(koe)),U2}const y6={2:[{category_id:12e3,category_name:"Gol",category_color:"#00FF00",categoryColorName:"green",st:"st1g",translationKey:"goal.goal",generalName:"Goles",singleName:"Gol",imgData:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABU4SURBVHgB7Vt7dJTlnX6++9xnciV3EgyEi1wEVKiIwdpW0Va6ra5ne6y0p931tLZ1u91z9uy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cxpsprLJFOoZHkJPbwLp7TxdJz4Ok2vKPD4b/IXfO//+8u7Ht3+jyOVjRtjq0M86hxd/uukZwoxZlihcK2uK4DkbdMegDvmxb1sOjf4sqqtFpNRzo0HVNfhSPuTD57j92ZT00tlm17UbAqi+SUUj8a40KCOd1zj7otzEAEYP+DHyCplOJ+v4iPRe1RJnw7Pf3PlrzMAu+8j6vl03b6Ri861oIlvXcOKk8Hq2Gm88TeGqP4+bN0hY/XENnaWlpHwygiNhJCvjU15Lo3OGKI07zboM8GTN6sljtFfHCJWCVJYneG7MCjcKj4ZuwD//al1bGjO0Kzqbf/gHrbFFwvsPKsHUF153o3WD7ZLw2vYIEsNZlITzWHM7jyMb/OheU1HU9VTPYab9WfJQ6OSe0CsKv5Al4R9/vqqtB5dpV+VLCBufWRbbsSP+Sck271VHSm8bO6khM2QKBkfJrHILtz8YhLMoiIw6AxXfRSdXt9kxxZ8xgsdxhXbVv23R+PD8xkyfcpfvlLbeSaE1lTF9HhW7aWkOS9aXCoOLNGSVizrsdSnvi4sv8Ljwxc03727DVbQ/2v8lcdYaV61qlF23SlGtqsGh0bpFVapUt6ICsdYwRkPpMSrVnUQRnbruS2xd11b0F43/ZFPY/wGvrSx99fSrawAAAABJRU5ErkJggg=="},{category_id:59800,category_name:"Poste",category_color:"#FFFF00",categoryColorName:"yellow",st:"st1y",translationKey:"goal.goal_post",generalName:"Remates al poste",singleName:"Remate al poste",imgData:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA7CAYAAAAq55mNAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABl2SURBVHgB7Vt5nFTVmT33vnpV1dVNd9NNA91szSKLgqBERREFxSWKiRiXqIlLZjRGTUJinIzJzKhJTOLEySTRmGh0olncoxKNoJEBF0BUFLRlUXYEGpqG3mt5y51z732vqjFiiDp/zG/y/BVVXfXefffcbzvfuU/g78ffj/+Th8D/wnHDnOrqi49vm+4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88nyI2t4U2PPe5d/9dw/FWg+vjDfO/Vi89JvZXvUadxSy/p0K1OZEexRIbYw4kvfpllZwhZRoVjJvbefjYG3UUvkOUJOPo5Ilp3BGmf1p12sGw1d3FjVxuQUudKeszTlEHTdPUpSY7bFRjm44XSyKs5Ct4PLPDU4P742i/v8X9wIBgOCKg+HniisOqic5Lzcll1KjNxdZIdzTFskV5lS7WH2XT5amBqfyadCsasEvuC1EIXuxCXHFQ/KpDVe6o8J8m47UO6d9w4SipDrIe0asmTpJ+nYzE/zyVZeXsJY5HdUR33MANKKY8uwdaRg9RnvnObf/+Bzv+AgerjwSe85nPPLvs9u4xBNMqhqZTEVP1MUDrE7maJh+nPI1MeBpG/eo7ch4DrmNLP+pnKoIHTRFmdpHTc8qTBdNcZ1J76s2ZmqfG2e7qdIZMiS9qyjnsrG7g5XBCKu2yLPnW0f/aXfxgu/1vmLvAhj8du73Nm617/P2V30Kh7Vv3I241PCLP9fwHVBq27dlMZ15KI3oUrr4gonCw9xBHXxjKeVU7VMEMpgeqMUSHWc5xVtPB68uGuHNRIid3HjHGuO+c67258iONDA9XHwvv69Gtp6pmV7Qqub/LQuIXy+KLVFLU4yVp2ItMoPU4cTk1pnBvx0nj/pSR7Fh/F0fotU6oGmwopgjP+9Q4mM1sbBY5bEvnw9sPm4EM/jf2RgPY+JlzmXNLZhovddkxp24l0drdtqeoYg1fP4m5XI+lgDFTYzicGHYONqxPFb5/a7osVafyprCJzx4xzW7rwEY+PDWh83HJHn353/rFnptgtz8y1qYkdPWpsnuVjGomC3jcZPozSRzJ+lKx4maL80UxC8SKNuiAfJB+8ZM7H8yx9fHzsQN97zJlTXb10adf4na2kvewHxlSr9MlHOqjXFg5lW2WVzKUzwabTL/n4/8+I/5fH/wDRbtt32OccVQAAAABJRU5ErkJggg=="},{category_id:53800,category_name:"Fuera",category_color:"#DADADA",categoryColorName:"grey",st:"st1r",translationKey:"goal.missed",generalName:"Remates desviados",singleName:"Remate desviado",imgData:"data:image/png;base64,i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id:6e4,category_name:"Parado por el portero",category_name_femenil:"Parado por la portera",category_color:"#00B8FF",categoryColorName:"blue",st:"st1b",translationKey:"goal.saved_by_goalkeeper",generalName:"Atajadas de portero",singleName:"Atajada",imgData:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABqKSURBVHgB7VpplFxlmX7uVrequvbeO71lX0hCQkAWgZEgiONyBhfE7bhvnMFt9LjNCI6j4/Eojjpu44IOLqOICiOIKCAoBIEECEmAkK27093VXdXdtW93m+f77q1K8ICA4PyZuUl1bffe73u+932f932fr4D/I4eC/4Vj9F2700NmPNn5wOSjyf+a6ZX3DWYP/Epp4q98/FWADm9/8XNWnLB4Tkv74JmqmtnmqUMDihJS/NH4xwsGFy891XM8HFRU7Fag/rpWNX73wFd69+NZPp49oAMX/k26b+RV6dGxlwyMTQx7oZfBUwYh0HmeC0UNEZgq0SmqRqz8zLP57TwvniLiBr8yeG6G16l7Xa/nppY3/pWdn0sdxLNwPGOg+tirtyd7uv9pYPWZz4sPbuFkNf+2AhCBeeLZawHuYT4e5mdpQI1B9X7Az++E51RgN1S4rs5rwjBCFbh2VC6GamR4r6n/tJzIF+/6yswuPIPjLwZqrLjklJBW+NrIpu3bUqNncmLqsdtxksIt4dWgud+E4l7Fb5akyzqugmatB0szQyjmR1FeSsG2aEk4UHmWpouFstCqNRDqSiHaVUG8ewHR7uZ/JZft+Mhd/9Y4gr/geNpAV136woS1L3eZ617wvoG1L1S0MFedllMEMuGaYrrKUQK8Eqp7DcGVCURFcW4QS9kRFBaGUS8b0tJqyAcIj9d5ImAdaFyw7oElDI4/iOkDI4jEB/hxHLWiA8dLZ/Vo9Iu5HZ/6DJ7m8bSAJs+8YoVe2XVj/6ozV8eXndUB57soXQ01gvseQX6FsdaEYykoZrtxePcG1KtpaCEN8d4yGl4IUXOJoKIo8dE0PSg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ZcFMNyiHsRSPMsUtJJMtppCj9pPpo7WoL+fzobalV+mv3X33L9FOd+1OyaPvI77m24Gz9yJUxZ55NlXa2oq1UUrRA1LifClwG2QMWO53rWREp/j6M6ysSTiMP1YjIFsoLWNnBWpaTz+d7Np7OYYTCLepPJKsIy8U6ZZpWkm5OkUzl60IataUUmo1EyVVCH50d/8MlC1e/sfh05v60LHr8Mfqya58bdie+FGpdu9Wt3KK0rASmDg5y26CF3mVl9Kw+A3r8XO64Mc1oYSqGomwMsln7RxueL6BqeISu/CtmnXuYTepST241NVQbXdxG7JIxryl910fT7of2XfPAk/4c7lkF2j7WX7DmYsWdvXyxoazxqimlMNNHsBUY7DNjyTr6BODMhVII6+TEzu8ZfFHbLwQEeTXkjp3m7Sa4rOyHufd5q+IufuKeH2VvwzM4njHQ9mGcuWmb2mq9yytpL/Sq5qAn5B72jToVguH16xAbOo/u3BPUpu1fabdLuHbq8K3sQJvgOd9zPe07D/3wRRN4Fo5nDejxh75x+3la2XuBV28sJ9hxz3Y2pjJ1Iz4wppipk6lgDLIgEDqw0In0qgf9MIu4exnRhyzPvHH/j196D57l468C9PGO2OYL+1qLxQFvaUpNjw976ZUXNAralqW5n79gHv9/PHvH/wAARBI8ZVjYSQAAAABJRU5ErkJggg=="}],3:[{category_id:12e3,category_name:"Gol Recibido",category_color:"#FF0000",categoryColorName:"red",st:"st1r",translationKey:"goal.goal_received",generalName:"Goles recibidos",singleName:"Gol recibido",imgData:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADkAAAA5CAYAAACMGIOFAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABf/SURBVHgB5Vp5tF1Vef/2PsOd3n33jXkvCSFkQWJ0AREhWWHQimltIeKqZRDFVrtWHUqxtsvaVVuwWkBFlqVYdHWJFau2pShasS4kihWWAYEQDGGSMUrGN9333p3OPefsvfv79hnuDUMMAfuPJ+/mTufss3/7+77f9/u+fYl+Aw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Ipqn3ezydjf5O2ESrof0u4ZgG3BTX0I/RMdoTf7zvTJTuny2v79nz/c+R4RyOzYMzHx57sovIxEoxZgN/ApNJ7+HS36qUjbfcZ3YatlxEX9J7GV5rjphnuWwvt+ydwHtgJIRZstk0zKZRSIx9RMoT6oS7dCBF8B6z1GL+F4WSD5YKtK373kPhW85wYVjLZj4y1ELuIG1YvizRdNlwwVIA0HcDenpz/7fgIjKNmjNGlPN6ku0DkysR7XenbEuLe5Rn5uaP/+++gIjpcNkvrAOo6zfquJP/Kgitc8GKmBX0a62NZkOXED9hzOLHs04FbyJJ/vV/a1UzxjIvQgFirGHBgx5hZ0DL59pOCy4xUD2X8A8FoPgPdhv+aJWL32aaWW7NXan1WxuwobFWv9Ao27vt0I9vlncQAGUOGAMdurxtyFOL69FsePvdCPAY/k+D9q7vgxYZEy9AAAAABJRU5ErkJggg=="},{category_id:59800,category_name:"Poste",category_color:"#FFFF00",categoryColorName:"yellow",st:"st1y",translationKey:"goal.goal_post",generalName:"Remates al poste",singleName:"Remate al poste",imgData:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA7CAYAAAAq55mNAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABl2SURBVHgB7Vt5nFTVmT33vnpV1dVNd9NNA91szSKLgqBERREFxSWKiRiXqIlLZjRGTUJinIzJzKhJTOLEySTRmGh0olncoxKNoJEBF0BUFLRlUXYEGpqG3mt5y51z732vqjFiiDp/zG/y/BVVXfXefffcbzvfuU/g78ffj/+Th8D/wnHDnOrqi49vm+4nMpO8lDNICjEpAAZLoaoVRDq+sxRoDkO1yXFksx+qlSkp1jjwFw2f0d2Mj/n42IDecAPSj76QnHVwf3HVl2cGU6rr3HTecfmLgiSihBPdUCAGCaXsF5LnCCh7gn5LiBch1F3JSmfu8MPa2vAxHB8Z6OTp6Bcg9c3TD5NXnHqMU1FeLuFI+5uMQIUh5x8SMD9o0IqvCunB9X04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S7WH2XT5amBqfyadCsasEvuC1EIXuxCXHFQ/KpDVe6o8J8m47UO6d9w4SipDrIe0asmTpJ+nYzE/zyVZeXsJY5HdUR33MANKKY8uwdaRg9RnvnObf/+Bzv+AgerjwSe85nPPLvs9u4xBNMqhqZTEVP1MUDrE7maJh+nPI1MeBpG/eo7ch4DrmNLP+pnKoIHTRFmdpHTc8qTBdNcZ1J76s2ZmqfG2e7qdIZMiS9qyjnsrG7g5XBCKu2yLPnW0f/aXfxgu/1vmLvAhj8du73Nm617/P2V30Kh7Vv3I241PCLP9fwHVBq27dlMZ15KI3oUrr4gonCw9xBHXxjKeVU7VMEMpgeqMUSHWc5xVtPB68uGuHNRIid3HjHGuO+c67258iONDA9XHwvv69Gtp6pmV7Qqub/LQuIXy+KLVFLU4yVp2ItMoPU4cTk1pnBvx0nj/pSR7Fh/F0fotU6oGmwopgjP+9Q4mM1sbBY5bEvnw9sPm4EM/jf2RgPY+JlzmXNLZhovddkxp24l0drdtqeoYg1fP4m5XI+lgDFTYzicGHYONqxPFb5/a7osVafyprCJzx4xzW7rwEY+PDWh83HJHn353/rFnptgtz8y1qYkdPWpsnuVjGomC3jcZPozSRzJ+lKx4maL80UxC8SKNuiAfJB+8ZM7H8yx9fHzsQN97zJlTXb10adf4na2kvewHxlSr9MlHOqjXFg5lW2WVzKUzwabTL/n4/8+I/5fH/wDRbtt32OccVQAAAABJRU5ErkJggg=="},{category_id:53800,category_name:"Fuera",category_color:"#DADADA",categoryColorName:"grey",st:"st1b",translationKey:"goal.missed",generalName:"Remates desviados",singleName:"Remate desviado",imgData:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA7CAYAAAAq55mNAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABwdSURBVHgB7Vt3fFRlun5Omd7Se0ISeglEigpKUxELC0i/IKsLrnLFVdfVu+oWdW13vateu7J2ViyAqCBLEZDeRIIQWoB00jPJZNqZM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0WAzVWxaaDPuK1uP0/vp9mddeGhyJwZevAiSdajRKAvnxiesdAwFfPCkZOivOSJbkRZ+GSYTzZuo8f6C5kxLN9qxq92FQE/KrcltlOaiMKfKuHJfPiYOjKBvfjLSnX6s2J2hNfiUR5e8uucP33Xv38mj8bVy5erAoMGlS1I8LtagjeWEAu7SVCvs9joq5SQs2+yBNbQDpUVhREwD9XzKFjvi6+pshzspRT/OY2ocoflwQBxHDW0X5WTqNVNDuKy0E31TyCAtdnh9HnqXDRHKs6c7MrD98xQ6qrBoVS18tWr2z3nxpYOvfo+t//CvsS5d+lpfkVPfo/6y1N71OnUvzXhqbTb2HFbJ+kHMmzIYjpzroIhJkEN+2EhmRZNVT+zGcT6vf82OtVOmaDmNXN6BRS2HlQp7moziZIsFXzS7UO5z0iDOg7RWTSrJVt6aNqL6/gHTfG3fc7s//ovJbz6YOys/ueHR416hV22nHe9uLUbjWTo0IkpOGamhb14qCofdqk8r2Let9YHWN0wFGZ1NVNnY1e1wqPuIzcQSnn3R1Q2RC3/ERTt/O2AGKvAD10/2VfPeiwsmdUqhGZY2+3S5Md0ZbKYhWCCif7Nk0eQBGDriChKiVP0cx1Dic03Bua8ExL63y77fx2tNotb0EhdqXH3N3IcP4keun/x/Hki+otgjJluuEuusM7Q2rn9IVnpJ4ahlVHEE1105GNkFI6BZswmQ+Vydxr4eBK6JYrmZ/PyZwIurD5WXb3vwwQdV/ETr/+z/kogv2iz/9sr1AwVBzWpqas6ym+GZMTpfuHjUFZLFU9AV5YWaYDByeuHChWfxr/Xj1/8AcWYIcU4PRoUAAAAASUVORK5CYII="},{category_id:6e4,category_name:"Parado por el portero",category_name_femenil:"Parado por la portera",category_color:"#00B8FF",categoryColorName:"blue",st:"st1g",translationKey:"goal.saved_by_goalkeeper",generalName:"Atajadas de portero",singleName:"Atajada",imgData:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXN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Mfqya58bdie+FGpdu9Wt3KK0rASmDg5y26CF3mVl9Kw+A3r8XO64Mc1oYSqGomwMsln7RxueL6BqeISu/CtmnXuYTepST241NVQbXdxG7JIxryl910fT7of2XfPAk/4c7lkF2j7WX7DmYsWdvXyxoazxqimlMNNHsBUY7DNjyTr6BODMhVII6+TEzu8ZfFHbLwQEeTXkjp3m7Sa4rOyHufd5q+IufuKeH2VvwzM4njHQ9mGcuWmb2mq9yytpL/Sq5qAn5B72jToVguH16xAbOo/u3BPUpu1fabdLuHbq8K3sQJvgOd9zPe07D/3wRRN4Fo5nDejxh75x+3la2XuBV28sJ9hxz3Y2pjJ1Iz4wppipk6lgDLIgEDqw0In0qgf9MIu4exnRhyzPvHH/j196D57l468C9PGO2OYL+1qLxQFvaUpNjw976ZUXNAralqW5n79gHv9/PHvH/wAARBI8ZVjYSQAAAABJRU5ErkJggg=="}]},Soe={id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 888.5 651.6",style:{"enable-background":"new 0 0 888.5 651.6"},"xml:space":"preserve"},Eoe={__name:"SoccerGoal",props:{game:{type:Object,default:()=>({})},players:{type:Array,default:()=>[]},teams:{type:Array,default:()=>[]},plays:{type:Array,default:()=>[]},visualizationType:{type:String,default:"game"},type:{type:String,default:"offensive"},categoriesSelected:{type:Array,default:()=>[]}},emits:["openmedia"],setup(r,{emit:i}){const y=g6(),F=i,K=r,L=p.ref({}),w=p.ref(!1),t=p.ref({left:"0"}),v=p.ref(null),d=p.ref(null),e=p.ref([]),x=p.computed(()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)),m=p.computed(()=>K.plays),b=p.computed(()=>m.value.map(f=>{let g={},k=0,E=null,S=null,M="",N="";if(f[y.momentOfPlay]){const A=f[y.momentOfPlay].split(":");N=Number(A[0])}if(K.game){const A=f[y.playingAs]===1?K.game.awayTeam.team_id:K.game.homeTeam.team_id;k=f[y.playingAs]===1?K.game.homeTeam.team_id:K.game.awayTeam.team_id,g=K.teams.find(T=>T.team_id===A),g=g||{},E={id:K.game.homeTeam.team_id,acronym:K.game.homeTeam.acronym,name:K.game.homeTeam.team_name},S={id:K.game.awayTeam.team_id,acronym:K.game.awayTeam.acronym,name:K.game.awayTeam.team_name}}const C=K.players.find(A=>A.player_id===f[y.playerId]),P=e.value.find(A=>A.category_id===f[y.categoryId]);if(C){const A=C.player_name||C.name||",";let[T,O]=A.split(",");O=O.trim(),M=`${O.charAt(0)}. ${T.split(" ")[0].trim()}`}return{play_id:f[y.playId],playerName:C?C.player_name:"",playerShortName:M,playerId:C?C.player_id:"",time:f[y.momentOfPlay],minute:N,category_id:f[y.categoryId],category_color:e.value.find(A=>A.category_id===f[y.categoryId]).category_color,st:e.value.find(A=>A.category_id===f[y.categoryId]).st,category_type:f[y.categoryType],x:f[y.coordinateX],y:f[y.coordinateY],rivalName:g.team_name||"",rivalLogo:g.logo||"",rivalId:g.team_id||"",homeTeam:E,awayTeam:S,score:K.game?K.game.score:["",""],roundAbbreviation:K.game?K.game.roundAbbreviation:"",categoryColorName:P.categoryColorName,generalName:P.generalName,singleName:P.singleName,imgData:P.imgData,teamId:k}}));p.watch(()=>K.type,f=>{e.value=y6[f==="offensive"?2:3]},{immediate:!0});function h(f){const g=x.value?126:80;if(d.value=f.playInfo,L.value=f.playInfo,v.value){const k=v.value.getBoundingClientRect();t.value.left=f.x+77>k.width?`${k.width-158}px`:f.x-77<0?"4px":`${f.x-77}px`,f.y+g>k.height?t.value.top=`${f.y-g-30}px`:t.value.top=`${f.y}px`}w.value=!0}function n(){L.value={},t.value={top:"0",left:"0"},w.value=!1}function a(f){x.value||u(f.playInfo)}function u(f){if(!f)return;let g=[];if(K.sectionType==="team")if(K.type==="offensive")switch(f.category_id){case 12e3:g=[12,55,"35_r","54_r"];break;case 53800:g=[538,541,545,548,159,168,177,331,334];break;case 59800:g=[598,600,602,604,582,580,572,574,578];break;case 6e4:g=[598,600,602,604,582,580,572,574,578];break}else switch(f.category_id){case 12e3:g=[257,40];break;case 53800:g=["538_r","541_r","545_r","548_r","159_r","168_r","177_r","331_r","334_r"];break;case 59800:g=["598_r","600_r","602_r","604_r","582_r","580_r","572_r","574_r","578_r"];break;case 6e4:g=[39];break}else switch(f.category_id){case 12e3:g=K.players[0].position_id==1?[40]:[12,55];break;case 53800:g=[538,541,545,548,159,168,177,331,334];break;case 59800:g=[598,600,602,604,582,580,572,574,578];break;case 6e4:g=K.players[0].position_id==1?[39]:[598,600,602,604,582,580,572,574,578];break}const k={tournaments:[],categoryIds:g,categorySingleName:K.type==="offensive"&&K.sectionType==="player"&&f.category_id===6e4?"Remate a destino":f.generalName,mainSectionType:1,playListType:K.sectionType==="team"?3:2,matchResult:[1,2],playData:{playId:f.play_id},isPost:f.category_id===59800?1:0,advancedFilter:{playListTitle:K.type==="offensive"&&K.sectionType==="player"&&f.category_id===6e4?"Remates a destino":f.generalName,mainCategoryId:{},fieldSections:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]}};K.sectionType==="team"?(k.playerIds=[],k.teamId=f.teamId):(k.playerIds=[K.players[0].player_id],k.teamId=0),n(),F("open-media",k)}function s(){u(d.value)}function l(){n()}return(f,g)=>(p.openBlock(),p.createElementBlock("div",{class:"soccer-goal",ref_key:"soccerGoal",ref:v},[w.value?(p.openBlock(),p.createElementBlock("div",{key:0,class:"soccer-goal__tooltip",style:p.normalizeStyle(t.value)},[p.createVNode(woe,{"is-mobile-device":x.value,play:L.value,onPlay:s,onClose:l},null,8,["is-mobile-device","play"])],4)):p.createCommentVNode("",!0),(p.openBlock(),p.createElementBlock("svg",Soe,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(b.value,(k,E)=>(p.openBlock(),p.createBlock(aoe,{class:"hover-ball",play:k,key:E,onShowTooltip:h,onHideTooltip:n,onGetDataTooltip:a},null,8,["play"]))),128))]))],512))}},Coe=Zg(Eoe,[["__scopeId","data-v-db547071"]]),Aoe=(r,i)=>{const y=r.__vccOpts||r;for(const[F,K]of i)y[F]=K;return y},Moe={key:1},Loe={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Poe=["fill"],Noe={key:0,class:"checkbox__teams"},Ooe={class:"checkbox__teams__logo"},Roe=["src"],zoe={class:"checkbox__teams__logo"},Doe=["src"],Ioe={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(r){return["left","right","top","bottom"].includes(r)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(r,{emit:i}){const y=r;p.useCssVars(d=>({"7bd9d47b":r.width,"34dc7ddc":r.height}));const F=p.ref(!1),K=p.computed(()=>{const d={color:y.boxValueColor,"font-family":y.fontFamily,height:y.boxWidthAndHeight,width:y.boxWidthAndHeight,minWidth:y.boxWidthAndHeight,"border-radius":y.boxBorderRadius,"margin-top":y.boxMarginTop};return F.value?(d["background-color"]=y.boxBackgroundColor,d.border=`solid ${y.boxBorderWidth} ${y.boxBackgroundColor}`):d.border=`solid ${y.boxBorderWidth} ${y.boxBorderColor}`,d}),L=p.computed(()=>({"font-family":y.boxValueFontFamily,"font-size":y.boxValueFontSize,color:y.boxValueColor,"line-height":1})),w=p.computed(()=>{const d={color:y.labelColor,"font-family":y.fontFamily,"font-size":y.labelFontSize,"white-space":y.labelWhiteSpace,"text-align":y.boxPosition==="top"||y.boxPosition==="bottom"?"center":y.boxPosition};return(y.boxPosition==="left"||y.boxPosition==="right")&&(d[`margin-${y.boxPosition}`]=y.isBoxOnly?"0":y.teamsIds?"8px":"10px"),d});p.watch(()=>y.modelValue,d=>{d!==F.value&&(F.value=d)},{immediate:!0});function t(){y.avoidInteraction||!F.value&&y.avoidToCheck||(F.value=!F.value,i("update:modelValue",F.value))}function v(d){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${d}.png`}return(d,e)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["checkbox",`box-${r.boxPosition}`]),onClick:t},[p.createElementVNode("div",{class:"checkbox__box",style:p.normalizeStyle(K.value)},[F.value?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[y.boxValue?(p.openBlock(),p.createElementBlock("div",{key:0,class:"checkbox__box__value",style:p.normalizeStyle(L.value)},p.toDisplayString(r.boxValue),5)):(p.openBlock(),p.createElementBlock("div",Moe,[(p.openBlock(),p.createElementBlock("svg",Loe,[p.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:r.boxValueColor},null,8,Poe)]))]))],64)):p.createCommentVNode("",!0)],4),r.teamsIds&&r.teamsIds.length?(p.openBlock(),p.createElementBlock("div",Noe,[p.createElementVNode("div",Ooe,[p.createElementVNode("img",{src:v(r.teamsIds[0]),alt:""},null,8,Roe)]),p.createElementVNode("div",zoe,[p.createElementVNode("img",{src:v(r.teamsIds[1]),alt:""},null,8,Doe)])])):p.createCommentVNode("",!0),p.createElementVNode("div",{class:"checkbox__label",style:p.normalizeStyle(w.value)},p.toDisplayString(r.label),5)],2))}},Foe=Aoe(Ioe,[["__scopeId","data-v-b6f124d8"]]);function Boe(r,i){return r.reduce((y,F)=>{switch(F[i.categoryType]){case 1:y.possession.push(F);break;case 2:y.offensive.push(F);break;case 3:y.defensive.push(F);break}return y},{possession:[],offensive:[],defensive:[]})}const Voe={key:0,class:"goal-data__title"},Uoe={class:"goal-data__filters"},joe={key:1},qoe=["src"],Woe={__name:"GSC-GoalData",props:{isPreMatch:{type:Boolean,default:!1},game:{type:Object,default:()=>null},team:{type:Object,default:()=>({})},player:{type:Object,default:()=>({})},visualizationType:{type:String,default:"game"},isHomeTeamForAnalysis:{type:Boolean,default:!0},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},analysisType:{type:String,default:"offensive"},canPlayVideos:{type:Boolean,default:!0},canInteract:{type:Boolean,default:!0}},emits:["openmedia"],setup(r,{emit:i}){let y=null;const F=i,K=r,L={gameId:90209,id:90209,seasonId:1943,regularSeasonId:1933,matchday_name:"Playoffs 6",status:1,score:[2,0],game_status:1,dateTimeUTC:"2025-05-26T00:00:00Z",homeTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/18.png",team_id:18,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/2.png",team_id:2,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/2.png",colloquial_name:"América",acronym:"AME",team_name:"America"},is_live:0,minutes:{home_goals_minutes:["L. Garcia 65'","A. Vega 82'"],visiting_goals_minutes:[],home_yellow_cards_minutes:["L. Garcia 90'","A. Vega 90 + 3'"],away_yellow_cards_minutes:["S. Caceres 78'"],home_red_cards_minutes:[],away_red_cards_minutes:[]}},w=p.ref([]),t=p.ref(null),v=p.ref(0),d=p.ref({home:{offensive:[],defensive:[]},away:{offensive:[],defensive:[]}}),e=p.computed(()=>K.game||L),x=p.computed(()=>e.value?K.isHomeTeamForAnalysis?e.value.homeTeam.team_id:e.value.awayTeam.team_id:0),m=p.computed(()=>w.value.reduce((f,g)=>(g.isSelected&&f.push(g.id),f),[])),b=p.computed(()=>({"--filters-gap":v.value>440?"16px":"8px"})),h=p.computed(()=>{const f=K.visualizationType==="game"?e.value.homeTeam.team_id===x.value:!1;return d.value[f?"home":"away"][K.analysisType].map(g=>({...g,isSelected:m.value.includes(g.category_id),teamId:K.team.teamId||e.value.homeTeam.team_id,playerId:K.player.playerId||0,gameId:e.value.id||0}))});p.watch(()=>K.analysisType,f=>{w.value=y6[f==="offensive"?2:3].map(g=>({id:g.category_id,name:e.value.isFemale&&g.category_id==6e4?g.category_name_femenil:g.category_name,isSelected:!0,imgData:g.imgData}))},{immediate:!0}),p.watch(()=>e.value.id,f=>{f&&l()},{immediate:!0});function n(){y=new ResizeObserver(f=>{for(const g of f)v.value=g.contentRect.width}),y.observe(t.value)}function a(f){K.canPlayVideos&&(f.seasonId=e.value.seasonId,F("openmedia",f))}async function u({seasonId:f,teamId:g}){try{const k=`https://3xbsvx7zre.execute-api.us-west-2.amazonaws.com/prod/goalsTeamBySeason/${f}/${g||""}`;return(await(await fetch(k,{method:"GET",headers:{Authorization:K.token||""}})).json())[0]}catch(k){return Promise.reject(k)}}async function s({seasonId:f,gameId:g,teamId:k}){try{return(await(await fetch(`https://3xbsvx7zre.execute-api.us-west-2.amazonaws.com/prod/goalsTeamBySeason/${f}/games/${g}/teams/${k}`,{headers:{Authorization:K.token||""}})).json())[0]}catch(E){return Promise.reject(E)}}async function l(){if(e.value.homeTeam&&e.value.awayTeam&&K.token){const f=[];K.isPreMatch?(f.push(u({seasonId:e.value.seasonId,teamId:e.value.homeTeam.team_id})),f.push(u({seasonId:e.value.seasonId,teamId:e.value.awayTeam.team_id}))):(f.push(s({seasonId:e.value.seasonId,gameId:e.value.id,teamId:e.value.homeTeam.team_id})),f.push(s({seasonId:e.value.seasonId,gameId:e.value.id,teamId:e.value.awayTeam.team_id})));const g=await Promise.all(f);for(const k of g){const{offensive:E,defensive:S}=Boe(k.data_combination,g6());k.team_id===e.value.homeTeam.team_id?(d.value.home.offensive=E,d.value.home.defensive=S):(d.value.away.offensive=E,d.value.away.defensive=S)}}}return p.onMounted(()=>{n()}),(f,g)=>(p.openBlock(),p.createElementBlock("div",{ref_key:"goalData",ref:t,class:"goal-data",style:p.normalizeStyle(b.value)},[r.canPlayVideos?(p.openBlock(),p.createElementBlock("div",Voe,"Haz click en un balón para ver el video")):p.createCommentVNode("",!0),p.createVNode(Coe,p.mergeProps(K,{plays:h.value,"categories-selected":m.value,onOpenMedia:a}),null,16,["plays","categories-selected"]),p.createElementVNode("div",Uoe,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(w.value,k=>(p.openBlock(),p.createElementBlock("div",{key:k.id,class:"goal-data__filters__filter"},[r.canInteract?(p.openBlock(),p.createBlock(p.unref(Foe),{key:0,modelValue:k.isSelected,"onUpdate:modelValue":E=>k.isSelected=E,label:k.name,"label-font-size":v.value>440?"11px":"9px"},null,8,["modelValue","onUpdate:modelValue","label","label-font-size"])):(p.openBlock(),p.createElementBlock("div",joe,p.toDisplayString(k.name),1)),p.createElementVNode("img",{src:k.imgData},null,8,qoe)]))),128))])],4))}},v6=Zg(Woe,[["__scopeId","data-v-479a65b2"]]),Kg=(r,i)=>{const y=r.__vccOpts||r;for(const[F,K]of i)y[F]=K;return y},Goe={name:"tooltip",props:{data:{type:Object,required:!0}},computed:{positionTooltip(){return{top:`${this.data.y}px`,left:`${this.data.x}px`}},showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(r){this.visible=!1}}};function Xoe(r,i,y,F,K,L){return p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["box-tooltip",L.showTooltip]),style:p.normalizeStyle(L.positionTooltip),onClick:i[0]||(i[0]=(...w)=>L.tooltipClick&&L.tooltipClick(...w))},[p.renderSlot(r.$slots,"default",{},void 0,!0)],6)}const Hoe=Kg(Goe,[["render",Xoe],["__scopeId","data-v-740977d0"]]),Joe={name:"SoccerChalkboardXg",components:{Tooltip:Hoe},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:Object,default:()=>({})},rivalTeam:{type:Object,default:()=>({})}},data(){return{negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}},computed:{preparedPlays(){return this.plays.map(r=>({...r,playingAs:r.playing_as,teamId:r.team_id,photo:r.photo,categoryId:r.category_id,matchResult:r.match_result,matchLapse:r.matchlapse,x1:r.x1*100,y1:r.y1*100,x2:r.x2*100,y2:r.y2*100,x3:r.x3*100,y3:r.y3*100,xGi:r.xG1,xGf:r.xG2}))},localCategories(){return this.categories.map((r,i)=>({id:i,name:r.name,negative:r.negative||!1,color:r.color,points:r.points,numPoints:r.points.length,categories:r.categories,invert:r.invert||[]}))},graphPlays(){let r=this.localCategories.reduce((i,y)=>[...i,y.categories],[]);return this.preparedPlays.filter(i=>this.findCategoryInPlay(r,i)).reduce((i,y)=>{let F=this.localCategories.find(K=>this.findCategoryInPlay(K.categories,y));if(F){let K={category:F.id,categoryName:F.name,arrowColor:F.negative?this.negativeColor:F.color,arrowMarkerColor:F.negative?"url(#arrow-negative)":`url(#arrow-${F.id})`,markerColor:F.color,jersey:y.jersey_number,matchlapse:y.matchLapse,playerName:y.player_name,photo:y.photo,rivalLogo:y.rival_id,x1:F.invert.includes(y.categoryId)?100-y[`x${F.points[0]}`]:y[`x${F.points[0]}`],y1:F.invert.includes(y.categoryId)?100-y[`y${F.points[0]}`]:y[`y${F.points[0]}`],x2:F.invert.includes(y.categoryId)?100-y[`x${F.points[1]}`]:y[`x${F.points[1]}`],y2:F.invert.includes(y.categoryId)?100-y[`y${F.points[1]}`]:y[`y${F.points[1]}`],x3:F.invert.includes(y.categoryId)?100-y[`x${F.points[2]}`]:y[`x${F.points[2]}`],y3:F.invert.includes(y.categoryId)?100-y[`y${F.points[2]}`]:y[`y${F.points[2]}`],momentOfPlay:y.moment_of_play,isOwnGoal:F.invert.includes(y.categoryId),xGi:y.xGi,xGf:y.xGf};i.push(K)}return i},[])}},methods:{findCategoryInPlay(r,i){return r.find(y=>typeof y=="number"?y===i.categoryId:y.includes(i.categoryId))},onMouseOver(r,i){this.dataPlay.playerName=i.playerName||"",this.dataPlay.photo=i.photo||"",this.dataPlay.minute=parseInt(i.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=i.rivalLogo||"",this.dataPlay.categoryName=i.categoryName||"",this.dataPlay.rivalName=this.rivalTeam.colloquial_name,this.dataPlay.xGi=String(i.xGi),this.dataPlay.xGf=String(i.xGf),this.dataPlay.isOwnGoal=i.isOwnGoal,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Zoe={class:"soccer-chalkboard-xg"},Koe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},Yoe={xmlns:"http://www.w3.org/2000/svg",viewBox:"30 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},Qoe=["id"],$oe=["fill"],ese=["id"],tse=["x1","y1","x2","y2","stroke"],rse=["x1","y1","x2","y2","stroke","marker-end"],nse=["onMouseover"],ase=["x","y","fill"],ise=["x","y"];function ose(r,i,y,F,K,L){return p.resolveComponent("Tooltip"),p.openBlock(),p.createElementBlock("div",Zoe,[(p.openBlock(),p.createElementBlock("svg",Koe,[(p.openBlock(),p.createElementBlock("svg",Yoe,[p.createElementVNode("defs",null,[i[1]||(i[1]=p.createElementVNode("marker",{id:"arrow-negative",viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[p.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:"red"})],-1)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(L.localCategories,w=>(p.openBlock(),p.createElementBlock("marker",{key:`arrow-color-${w.id}`,id:`arrow-${w.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[p.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:w.color},null,8,$oe)],8,Qoe))),128)),i[2]||(i[2]=p.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[p.createElementVNode("image",{"xlink:href":"https://golstatsimages.blob.core.windows.net/todoelfut/fieldbg.png",width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1))]),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(L.graphPlays,w=>(p.openBlock(),p.createElementBlock("g",{key:w.id,id:`play-${w.playId}`},[p.createElementVNode("line",{x1:`${w.x1}%`,y1:`${w.y1}%`,x2:`${w.x2}%`,y2:`${w.y2}%`,stroke:w.arrowColor,"stroke-width":"2"},null,8,tse),p.createElementVNode("line",{x1:`${w.x2}%`,y1:`${w.y2}%`,x2:`${w.x3}%`,y2:`${w.y3}%`,stroke:w.arrowColor,"stroke-width":"2","marker-end":w.arrowMarkerColor},null,8,rse),p.createElementVNode("g",{onMouseover:t=>L.onMouseOver(t,w),onMouseleave:i[0]||(i[0]=(...t)=>L.onMouseLeave&&L.onMouseLeave(...t)),class:"is-pointer"},[p.createElementVNode("rect",{x:`${w.x1}%`,y:`${w.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:w.markerColor,stroke:"#999",rx:"14",ry:"14"},null,8,ase),p.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${w.x1}%`,y:`${w.y1}%`,dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif"},p.toDisplayString(w.jersey),9,ise)],40,nse)],8,ese))),128))]))])),p.createCommentVNode("",!0)])}const sse=Kg(Joe,[["render",ose],["__scopeId","data-v-0b19a10a"]]),b6=(r,i)=>{let y={};return r.forEach((F,K)=>{K==3&&(i[0]==35||i[0]==54)&&(i[K]==2?i[K]=1:i[K]=2),K==2&&(i[0]==35||i[0]==54)&&(i[K]==1?i[K]=2:i[K]==2&&(i[K]=1)),y[F]=i[K]}),y};(function(){function r(i,y,F){return typeof F>"u"||+F==0?Math[i](y):(y=+y,F=+F,isNaN(y)||!(typeof F=="number"&&F%1===0)?NaN:(y=y.toString().split("e"),y=Math[i](+(y[0]+"e"+(y[1]?+y[1]-F:-F))),y=y.toString().split("e"),+(y[0]+"e"+(y[1]?+y[1]+F:F))))}Math.ceil10||(Math.ceil10=function(i,y){return r("ceil",i,y)})})();function lse(r,i){let y=i*-1;return Math.ceil10(r,y)}const x6=[12,55,35,54],_6=[510],w6=[330,331,333,334,423,424,343,344],T6=new Set(x6),k6=new Set(_6),S6=new Set(w6),j2=[{name:"Goles",color:"#336DFF",points:[1,2,3],categories:x6,invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#7ED321",points:[1,2,3],categories:_6},{name:"Remates con cabeza",color:"#990BFF",points:[1,2,3],categories:w6}],cse={name:"XgLocal",components:{SoccerChalkboard:sse},props:{game:{type:Object,default:()=>({})},isTitleVisible:{type:Boolean,default:!0},isPostMatch:{type:Boolean,default:!0},containerWidth:{type:Number,default:0},isHomeTeamForAnalysis:{type:Boolean,default:!0},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},data(){return{categories:j2,xgData:[],xgLocalPlays:[],xgAwayPlays:[]}},computed:{style(){return{"--flex-direction":this.containerWidth<480?"column":"row","--width-info":this.containerWidth<480?"100%":"40%"}},team(){return!this.game||!this.game.homeTeam||!this.game.awayTeam?{}:this.isHomeTeamForAnalysis?this.game.homeTeam:this.game.awayTeam},rivalTeam(){return!this.game||!this.game.homeTeam||!this.game.awayTeam?{}:this.isHomeTeamForAnalysis?this.game.awayTeam:this.game.homeTeam},xgPlays(){return this.isHomeTeamForAnalysis?this.xgLocalPlays:this.xgAwayPlays},goalsQty(){const r=j2.find(i=>i.name==="Goles");return this.xgPlays.filter(i=>r.categories.includes(i.category_id)).length},shotsOnGoalQty(){return this.xgPlays.filter(r=>r.category_id===510).length},headQty(){const r=j2.find(i=>i.name==="Remates con cabeza");return this.xgPlays.filter(i=>r.categories.includes(i.category_id)).length},xGLocal(){const r=new Set;let i=this.xgPlays.reduce((y,F)=>(r.has(F.moment_of_play)||(r.add(F.moment_of_play),y+=F.xG2),y),0);return lse(i,2)},gxInfoItems(){return[{title:"Goles",value:this.goalsQty},{title:"Tiros a Gol",value:this.shotsOnGoalQty},{title:"Remates con cabeza",value:this.headQty},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{game:{handler(r,i){r&&r.id&&(!i||i.id!==r.id)&&this.fillXgData()},immediate:!0,deep:!0}},methods:{async fetchXgData(){try{const r=this.isPostMatch?`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${this.game.id}/teams/${this.game.homeTeam.team_id}/${this.game.awayTeam.team_id}`:`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${this.game.seasonId}/teams/${this.game.homeTeam.team_id}/${this.game.awayTeam.team_id}`,i=await(await fetch(r,{method:"GET",headers:{Authorization:this.token}})).json();return console.log("Fetched xG data:",i),i||{local_team:[],visiting_team:[],data_headers:[]}}catch(r){console.error("Error fetching xG data:",r)}},async fillXgData(){try{const r=await this.fetchXgData(),i=r.local_team.map(x=>b6(r.data_headers,x)),y=[],F=[],K=[],L=new Set;i.forEach(x=>{T6.has(x.category_id)?L.has(x.moment_of_play)||(L.add(x.moment_of_play),y.push(x)):k6.has(x.category_id)?F.push(x):S6.has(x.category_id)&&K.push(x)}),this.xgLocalPlays=[...F,...y,...K];const w=r.visiting_team.map(x=>b6(r.data_headers,x)),t=new Set,v=[],d=[],e=[];w.forEach(x=>{T6.has(x.category_id)?t.has(x.moment_of_play)||(t.add(x.moment_of_play),v.push(x)):k6.has(x.category_id)?d.push(x):S6.has(x.category_id)&&e.push(x)}),this.xgAwayPlays=[...d,...v,...e]}catch(r){console.error("Error filling xG data:",r)}}},beforeMount(){if(!this.game||!this.game.id){console.warn("No game data provided for xG analysis.");return}this.fillXgData()}},use={class:"xg-container__info"},dse={key:0,class:"title"},hse={class:"table"},pse={class:"table__row"},fse={class:"table__row__title"},mse={class:"table__row__value"},gse=["src"],yse={class:"table__row"},vse={class:"table__row__title"},bse={class:"table__row__value"},xse={class:"table__row"},_se={class:"table__row__title"},wse={class:"table__row__value"},Tse={class:"xg-container__field"};function kse(r,i,y,F,K,L){const w=p.resolveComponent("SoccerChalkboard");return p.openBlock(),p.createElementBlock("div",{class:"xg-container",style:p.normalizeStyle(L.style)},[p.createElementVNode("div",use,[y.isTitleVisible?(p.openBlock(),p.createElementBlock("div",dse,"Goles esperados (xG)")):p.createCommentVNode("",!0),p.createElementVNode("div",hse,[p.createElementVNode("div",pse,[p.createElementVNode("div",fse,p.toDisplayString(L.gxInfoItems[0].title),1),p.createElementVNode("div",mse,[p.createTextVNode(p.toDisplayString(L.gxInfoItems[0].value),1),p.createElementVNode("img",{class:"img-abs",src:r.stringSelectedTeamLogo},null,8,gse)])]),p.createElementVNode("div",yse,[p.createElementVNode("div",vse,p.toDisplayString(L.gxInfoItems[1].title),1),p.createElementVNode("div",bse,p.toDisplayString(L.gxInfoItems[1].value),1)]),p.createElementVNode("div",xse,[p.createElementVNode("div",_se,p.toDisplayString(L.gxInfoItems[3].title),1),p.createElementVNode("div",wse,p.toDisplayString(L.gxInfoItems[3].value),1)])]),i[0]||(i[0]=p.createElementVNode("div",{class:"table-description"},[p.createElementVNode("span",null,"xG:"),p.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1))]),p.createElementVNode("div",Tse,[p.createVNode(w,{plays:L.xgPlays,categories:K.categories,team:L.team,"rival-team":L.rivalTeam},null,8,["plays","categories","team","rival-team"])])],4)}const Sse=Kg(cse,[["render",kse],["__scopeId","data-v-878a0e01"]]);let E6=null;const Ese={name:"XgMain",components:{SoccerChalkboard:Sse},props:{game:{type:Object,default:()=>({})},isHomeTeamForAnalysis:{type:Boolean,default:!0},isTitleVisible:{type:Boolean,default:!1},isPostMatch:{type:Boolean,default:!0},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},data(){return{gamesContainerWidth:0}},methods:{setUpResizeObserver(){if(window.ResizeObserver)E6=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,console.log("ResizeObserver triggered, width:",this.gamesContainerWidth)}),E6.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Cse={class:"xg",ref:"gamesContainer"};function Ase(r,i,y,F,K,L){const w=p.resolveComponent("SoccerChalkboard");return p.openBlock(),p.createElementBlock("div",Cse,[p.createVNode(w,{game:y.game,"container-width":K.gamesContainerWidth,"is-home-team-for-analysis":y.isHomeTeamForAnalysis,"is-title-visible":y.isTitleVisible,"is-post-match":y.isPostMatch,token:y.token,class:"local"},null,8,["game","container-width","is-home-team-for-analysis","is-title-visible","is-post-match","token"])],512)}const C6=Kg(Ese,[["render",Ase],["__scopeId","data-v-d379e69f"]]),Mse={class:"tooltip-options"},Lse={__name:"TooltipOptions",props:{optionsType:{type:String,default:"page"}},emits:["close-tooltip","change-sort","delete-page","edit","clone","delete"],setup(r,{emit:i}){const y=r,F=i,K=p.computed(()=>y.optionsType==="page");function L(){F("close-tooltip")}function w(t){F(t),L()}return(t,v)=>(p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createElementVNode("div",{class:"tooltip-overlay",onClick:L}),p.createElementVNode("div",Mse,[p.createElementVNode("ul",null,[K.value?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createElementVNode("li",{class:"option",onClick:v[0]||(v[0]=d=>w("change-sort"))},v[4]||(v[4]=[p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/report-maker/icn-rename.svg",alt:"Renombrar template",class:"icon"},null,-1),p.createTextVNode(" Cambiar orden ",-1)])),p.createElementVNode("li",{class:"option",onClick:v[1]||(v[1]=d=>w("delete-page"))},v[5]||(v[5]=[p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/report-maker/icn-delete.svg",alt:"Eliminar template",class:"icon"},null,-1),p.createTextVNode(" Eliminar ",-1)]))],64)):(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[p.createElementVNode("li",{class:"option",onClick:v[2]||(v[2]=d=>w("edit"))},v[6]||(v[6]=[p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/report-maker/icn-rename.svg",alt:"Renombrar template",class:"icon"},null,-1),p.createTextVNode(" Editar ",-1)])),p.createElementVNode("li",{class:"option",onClick:v[3]||(v[3]=d=>w("delete"))},v[7]||(v[7]=[p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/report-maker/icn-delete.svg",alt:"Eliminar template",class:"icon"},null,-1),p.createTextVNode(" Eliminar ",-1)]))],64))])])],64))}},A6=zd(Lse,[["__scopeId","data-v-998e2429"]]),Pse={class:"report-view"},Nse={class:"report-view__header"},Ose={class:"report-view__header__team-and-name"},Rse={key:0,class:"report-view__header__logo"},zse=["src"],Dse={class:"report-view__header__name"},Ise={class:"report-view__content"},Fse={__name:"ReportView",props:{title:{type:String,default:"Item name"},isEmpty:{type:Boolean,default:!1},isTemplateMode:{type:Boolean,default:!1},game:{type:Object,default:()=>null},isHomeTeam:{type:Boolean,default:!0},isFilterVisible:{type:Boolean,default:!1},viewId:{type:Number,default:0}},emits:["edit","delete"],setup(r,{emit:i}){const y=r,F=p.ref(!1),K=i,L=[1,3,4,8],w=p.computed(()=>!L.includes(y.viewId)),t=p.computed(()=>{if(y.game){const x=y.isHomeTeam?y.game.homeTeam:y.game.awayTeam;if(x&&x.logo)return x.logo}return""});function v(){e(),K("edit")}function d(){e(),K("delete")}function e(){F.value=!1}return(x,m)=>(p.openBlock(),p.createElementBlock("div",Pse,[p.createElementVNode("div",Nse,[F.value?(p.openBlock(),p.createBlock(A6,{key:0,"options-type":"view",onClick:m[0]||(m[0]=p.withModifiers(b=>F.value=!1,["self"])),onMouseleave:m[1]||(m[1]=b=>F.value=!1),onCloseTooltip:e,onEdit:v,onDelete:d})):p.createCommentVNode("",!0),p.createElementVNode("div",Ose,[t.value&&w.value?(p.openBlock(),p.createElementBlock("div",Rse,[p.createElementVNode("img",{src:t.value,alt:""},null,8,zse)])):p.createCommentVNode("",!0),p.createElementVNode("div",Dse,p.toDisplayString(r.title),1)]),p.withDirectives(p.createElementVNode("div",{role:"button",class:"report-view__header__actions",onClick:m[2]||(m[2]=b=>F.value=!0)},m[3]||(m[3]=[p.createElementVNode("svg",{width:"17",height:"13",viewBox:"0 0 17 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("path",{d:"M3.56953 6.28672C3.56953 7.19972 2.83253 7.93672 1.91953 7.93672C1.00653 7.93672 0.269531 7.19972 0.269531 6.28672C0.269531 5.37372 1.00653 4.63672 1.91953 4.63672C2.83253 4.63672 3.56953 5.37372 3.56953 6.28672ZM8.51953 4.63672C7.60653 4.63672 6.86953 5.37372 6.86953 6.28672C6.86953 7.19972 7.60653 7.93672 8.51953 7.93672C9.43253 7.93672 10.1695 7.19972 10.1695 6.28672C10.1695 5.37372 9.43253 4.63672 8.51953 4.63672ZM15.1195 4.63672C14.2065 4.63672 13.4695 5.37372 13.4695 6.28672C13.4695 7.19972 14.2065 7.93672 15.1195 7.93672C16.0325 7.93672 16.7695 7.19972 16.7695 6.28672C16.7695 5.37372 16.0325 4.63672 15.1195 4.63672Z",fill:"white"})],-1)]),512),[[p.vShow,r.isTemplateMode&&!r.isFilterVisible]])]),p.createElementVNode("div",Ise,[p.renderSlot(x.$slots,"default",{},void 0,!0)])]))}},Bse=zd(Fse,[["__scopeId","data-v-deff1407"]]);function Vse(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Yg={exports:{}},M6;function Use(){if(M6)return Yg.exports;M6=1;function r(){}return r.prototype={on:function(i,y,F){var K=this.e||(this.e={});return(K[i]||(K[i]=[])).push({fn:y,ctx:F}),this},once:function(i,y,F){var K=this;function L(){K.off(i,L),y.apply(F,arguments)}return L._=y,this.on(i,L,F)},emit:function(i){var y=[].slice.call(arguments,1),F=((this.e||(this.e={}))[i]||[]).slice(),K=0,L=F.length;for(K;K<L;K++)F[K].fn.apply(F[K].ctx,y);return this},off:function(i,y){var F=this.e||(this.e={}),K=F[i],L=[];if(K&&y)for(var w=0,t=K.length;w<t;w++)K[w].fn!==y&&K[w].fn._!==y&&L.push(K[w]);return L.length?F[i]=L:delete F[i],this}},Yg.exports=r,Yg.exports.TinyEmitter=r,Yg.exports}var q2,L6;function jse(){if(L6)return q2;L6=1;var r=Use();return q2=new r,q2}var qse=jse();const li=Vse(qse);function Wse(r,i,y,F,K){const L=(...w)=>(console.warn("gridstack.js: Function `"+y+"` is deprecated in "+K+" and has been replaced with `"+F+"`. It will be **removed** in a future release"),i.apply(r,w));return L.prototype=i.prototype,L}class In{static getElements(i,y=document){if(typeof i=="string"){const F="getElementById"in y?y:void 0;if(F&&!isNaN(+i[0])){const L=F.getElementById(i);return L?[L]:[]}let K=y.querySelectorAll(i);return!K.length&&i[0]!=="."&&i[0]!=="#"&&(K=y.querySelectorAll("."+i),K.length||(K=y.querySelectorAll("#"+i))),Array.from(K)}return[i]}static getElement(i,y=document){if(typeof i=="string"){const F="getElementById"in y?y:void 0;if(!i.length)return null;if(F&&i[0]==="#")return F.getElementById(i.substring(1));if(i[0]==="#"||i[0]==="."||i[0]==="[")return y.querySelector(i);if(F&&!isNaN(+i[0]))return F.getElementById(i);let K=y.querySelector(i);return F&&!K&&(K=F.getElementById(i)),K||(K=y.querySelector("."+i)),K}return i}static lazyLoad(i){var y,F;return i.lazyLoad||((F=(y=i.grid)==null?void 0:y.opts)==null?void 0:F.lazyLoad)&&i.lazyLoad!==!1}static createDiv(i,y){const F=document.createElement("div");return i.forEach(K=>{K&&F.classList.add(K)}),y==null||y.appendChild(F),F}static shouldSizeToContent(i,y=!1){return(i==null?void 0:i.grid)&&(y?i.sizeToContent===!0||i.grid.opts.sizeToContent===!0&&i.sizeToContent===void 0:!!i.sizeToContent||i.grid.opts.sizeToContent&&i.sizeToContent!==!1)}static isIntercepted(i,y){return!(i.y>=y.y+y.h||i.y+i.h<=y.y||i.x+i.w<=y.x||i.x>=y.x+y.w)}static isTouching(i,y){return In.isIntercepted(i,{x:y.x-.5,y:y.y-.5,w:y.w+1,h:y.h+1})}static areaIntercept(i,y){const F=i.x>y.x?i.x:y.x,K=i.x+i.w<y.x+y.w?i.x+i.w:y.x+y.w;if(K<=F)return 0;const L=i.y>y.y?i.y:y.y,w=i.y+i.h<y.y+y.h?i.y+i.h:y.y+y.h;return w<=L?0:(K-F)*(w-L)}static area(i){return i.w*i.h}static sort(i,y=1){return i.sort((F,K)=>{const L=y*((F.y??1e4)-(K.y??1e4));return L===0?y*((F.x??1e4)-(K.x??1e4)):L})}static find(i,y){return y?i.find(F=>F.id===y):void 0}static toBool(i){return typeof i=="boolean"?i:typeof i=="string"?(i=i.toLowerCase(),!(i===""||i==="no"||i==="false"||i==="0")):!!i}static toNumber(i){return i===null||i.length===0?void 0:Number(i)}static parseHeight(i){let y,F="px";if(typeof i=="string")if(i==="auto"||i==="")y=0;else{const K=i.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw|%|cm|mm)?$/);if(!K)throw new Error(`Invalid height val = ${i}`);F=K[2]||"px",y=parseFloat(K[1])}else y=i;return{h:y,unit:F}}static defaults(i,...y){return y.forEach(F=>{for(const K in F){if(!F.hasOwnProperty(K))return;i[K]===null||i[K]===void 0?i[K]=F[K]:typeof F[K]=="object"&&typeof i[K]=="object"&&this.defaults(i[K],F[K])}}),i}static same(i,y){if(typeof i!="object")return i==y;if(typeof i!=typeof y||Object.keys(i).length!==Object.keys(y).length)return!1;for(const F in i)if(i[F]!==y[F])return!1;return!0}static copyPos(i,y,F=!1){return y.x!==void 0&&(i.x=y.x),y.y!==void 0&&(i.y=y.y),y.w!==void 0&&(i.w=y.w),y.h!==void 0&&(i.h=y.h),F&&(y.minW&&(i.minW=y.minW),y.minH&&(i.minH=y.minH),y.maxW&&(i.maxW=y.maxW),y.maxH&&(i.maxH=y.maxH)),i}static samePos(i,y){return i&&y&&i.x===y.x&&i.y===y.y&&(i.w||1)===(y.w||1)&&(i.h||1)===(y.h||1)}static sanitizeMinMax(i){i.minW||delete i.minW,i.minH||delete i.minH,i.maxW||delete i.maxW,i.maxH||delete i.maxH}static removeInternalAndSame(i,y){if(!(typeof i!="object"||typeof y!="object"))for(let F in i){const K=i[F],L=y[F];F[0]==="_"||K===L?delete i[F]:K&&typeof K=="object"&&L!==void 0&&(In.removeInternalAndSame(K,L),Object.keys(K).length||delete i[F])}}static removeInternalForSave(i,y=!0){for(let F in i)(F[0]==="_"||i[F]===null||i[F]===void 0)&&delete i[F];delete i.grid,y&&delete i.el,i.autoPosition||delete i.autoPosition,i.noResize||delete i.noResize,i.noMove||delete i.noMove,i.locked||delete i.locked,(i.w===1||i.w===i.minW)&&delete i.w,(i.h===1||i.h===i.minH)&&delete i.h}static throttle(i,y){let F=!1;return(...K)=>{F||(F=!0,setTimeout(()=>{i(...K),F=!1},y))}}static removePositioningStyles(i){const y=i.style;y.position&&y.removeProperty("position"),y.left&&y.removeProperty("left"),y.top&&y.removeProperty("top"),y.width&&y.removeProperty("width"),y.height&&y.removeProperty("height")}static getScrollElement(i){if(!i)return document.scrollingElement||document.documentElement;const y=getComputedStyle(i);return/(auto|scroll)/.test(y.overflow+y.overflowY)?i:this.getScrollElement(i.parentElement)}static updateScrollPosition(i,y,F){const K=i.getBoundingClientRect(),L=window.innerHeight||document.documentElement.clientHeight;if(K.top<0||K.bottom>L){const w=K.bottom-L,t=K.top,v=this.getScrollElement(i);if(v!==null){const d=v.scrollTop;K.top<0&&F<0?i.offsetHeight>L?v.scrollTop+=F:v.scrollTop+=Math.abs(t)>Math.abs(F)?F:t:F>0&&(i.offsetHeight>L?v.scrollTop+=F:v.scrollTop+=w>F?F:w),y.top+=v.scrollTop-d}}}static updateScrollResize(i,y,F){const K=this.getScrollElement(y),L=K.clientHeight,w=K===this.getScrollElement()?0:K.getBoundingClientRect().top,t=i.clientY-w,v=t<F,d=t>L-F;v?K.scrollBy({behavior:"smooth",top:t-F}):d&&K.scrollBy({behavior:"smooth",top:F-(L-t)})}static clone(i){return i==null||typeof i!="object"?i:i instanceof Array?[...i]:{...i}}static cloneDeep(i){const y=["parentGrid","el","grid","subGrid","engine"],F=In.clone(i);for(const K in F)F.hasOwnProperty(K)&&typeof F[K]=="object"&&K.substring(0,2)!=="__"&&!y.find(L=>L===K)&&(F[K]=In.cloneDeep(i[K]));return F}static cloneNode(i){const y=i.cloneNode(!0);return y.removeAttribute("id"),y}static appendTo(i,y){let F;typeof y=="string"?F=In.getElement(y):F=y,F&&F.appendChild(i)}static addElStyles(i,y){if(y instanceof Object)for(const F in y)y.hasOwnProperty(F)&&(Array.isArray(y[F])?y[F].forEach(K=>{i.style[F]=K}):i.style[F]=y[F])}static initEvent(i,y){const F={type:y.type},K={button:0,which:0,buttons:1,bubbles:!0,cancelable:!0,target:y.target?y.target:i.target};return["altKey","ctrlKey","metaKey","shiftKey"].forEach(L=>F[L]=i[L]),["pageX","pageY","clientX","clientY","screenX","screenY"].forEach(L=>F[L]=i[L]),{...F,...K}}static simulateMouseEvent(i,y,F){const K=i,L=new MouseEvent(y,{bubbles:!0,composed:!0,cancelable:!0,view:window,detail:1,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY,ctrlKey:K.ctrlKey??!1,altKey:K.altKey??!1,shiftKey:K.shiftKey??!1,metaKey:K.metaKey??!1,button:0,relatedTarget:i.target});(F||i.target).dispatchEvent(L)}static getValuesFromTransformedElement(i){const y=document.createElement("div");In.addElStyles(y,{opacity:"0",position:"fixed",top:"0px",left:"0px",width:"1px",height:"1px",zIndex:"-999999"}),i.appendChild(y);const F=y.getBoundingClientRect();return i.removeChild(y),y.remove(),{xScale:1/F.width,yScale:1/F.height,xOffset:F.left,yOffset:F.top}}static swap(i,y,F){if(!i)return;const K=i[y];i[y]=i[F],i[F]=K}static canBeRotated(i){var y;return!(!i||i.w===i.h||i.locked||i.noResize||(y=i.grid)!=null&&y.opts.disableResize||i.minW&&i.minW===i.maxW||i.minH&&i.minH===i.maxH)}}class Fd{constructor(i={}){this.addedNodes=[],this.removedNodes=[],this.defaultColumn=12,this.column=i.column||this.defaultColumn,this.column>this.defaultColumn&&(this.defaultColumn=this.column),this.maxRow=i.maxRow,this._float=i.float,this.nodes=i.nodes||[],this.onChange=i.onChange}batchUpdate(i=!0,y=!0){return!!this.batchMode===i?this:(this.batchMode=i,i?(this._prevFloat=this._float,this._float=!0,this.cleanNodes(),this.saveInitial()):(this._float=this._prevFloat,delete this._prevFloat,y&&this._packNodes(),this._notify()),this)}_useEntireRowArea(i,y){return(!this.float||this.batchMode&&!this._prevFloat)&&!this._hasLocked&&(!i._moving||i._skipDown||y.y<=i.y)}_fixCollisions(i,y=i,F,K={}){if(this.sortNodes(-1),F=F||this.collide(i,y),!F)return!1;if(i._moving&&!K.nested&&!this.float&&this.swap(i,F))return!0;let L=y;!this._loading&&this._useEntireRowArea(i,y)&&(L={x:0,w:this.column,y:y.y,h:y.h},F=this.collide(i,L,K.skip));let w=!1;const t={nested:!0,pack:!1};let v=0;for(;F=F||this.collide(i,L,K.skip);){if(v++>this.nodes.length*2)throw new Error("Infinite collide check");let d;if(F.locked||this._loading||i._moving&&!i._skipDown&&y.y>i.y&&!this.float&&(!this.collide(F,{...F,y:i.y},i)||!this.collide(F,{...F,y:y.y-F.h},i))){i._skipDown=i._skipDown||y.y>i.y;const e={...y,y:F.y+F.h,...t};d=this._loading&&In.samePos(i,e)?!0:this.moveNode(i,e),(F.locked||this._loading)&&d?In.copyPos(y,i):!F.locked&&d&&K.pack&&(this._packNodes(),y.y=F.y+F.h,In.copyPos(i,y)),w=w||d}else d=this.moveNode(F,{...F,y:y.y+y.h,skip:i,...t});if(!d)return w;F=void 0}return w}collide(i,y=i,F){const K=i._id,L=F==null?void 0:F._id;return this.nodes.find(w=>w._id!==K&&w._id!==L&&In.isIntercepted(w,y))}collideAll(i,y=i,F){const K=i._id,L=F==null?void 0:F._id;return this.nodes.filter(w=>w._id!==K&&w._id!==L&&In.isIntercepted(w,y))}directionCollideCoverage(i,y,F){if(!y.rect||!i._rect)return;const K=i._rect,L={...y.rect};L.y>K.y?(L.h+=L.y-K.y,L.y=K.y):L.h+=K.y-L.y,L.x>K.x?(L.w+=L.x-K.x,L.x=K.x):L.w+=K.x-L.x;let w,t=.5;for(let v of F){if(v.locked||!v._rect)break;const d=v._rect;let e=Number.MAX_VALUE,x=Number.MAX_VALUE;K.y<d.y?e=(L.y+L.h-d.y)/d.h:K.y+K.h>d.y+d.h&&(e=(d.y+d.h-L.y)/d.h),K.x<d.x?x=(L.x+L.w-d.x)/d.w:K.x+K.w>d.x+d.w&&(x=(d.x+d.w-L.x)/d.w);const m=Math.min(x,e);m>t&&(t=m,w=v)}return y.collide=w,w}cacheRects(i,y,F,K,L,w){return this.nodes.forEach(t=>t._rect={y:t.y*y+F,x:t.x*i+w,w:t.w*i-w-K,h:t.h*y-F-L}),this}swap(i,y){if(!y||y.locked||!i||i.locked)return!1;function F(){const L=y.x,w=y.y;return y.x=i.x,y.y=i.y,i.h!=y.h?(i.x=L,i.y=y.y+y.h):i.w!=y.w?(i.x=y.x+y.w,i.y=w):(i.x=L,i.y=w),i._dirty=y._dirty=!0,!0}let K;if(i.w===y.w&&i.h===y.h&&(i.x===y.x||i.y===y.y)&&(K=In.isTouching(i,y)))return F();if(K!==!1){if(i.w===y.w&&i.x===y.x&&(K||(K=In.isTouching(i,y)))){if(y.y<i.y){const L=i;i=y,y=L}return F()}if(K!==!1){if(i.h===y.h&&i.y===y.y&&(K||(K=In.isTouching(i,y)))){if(y.x<i.x){const L=i;i=y,y=L}return F()}return!1}}}isAreaEmpty(i,y,F,K){const L={x:i||0,y:y||0,w:F||1,h:K||1};return!this.collide(L)}compact(i="compact",y=!0){if(this.nodes.length===0)return this;y&&this.sortNodes();const F=this.batchMode;F||this.batchUpdate();const K=this._inColumnResize;K||(this._inColumnResize=!0);const L=this.nodes;return this.nodes=[],L.forEach((w,t,v)=>{let d;w.locked||(w.autoPosition=!0,i==="list"&&t&&(d=v[t-1])),this.addNode(w,!1,d)}),K||delete this._inColumnResize,F||this.batchUpdate(!1),this}set float(i){this._float!==i&&(this._float=i||!1,i||this._packNodes()._notify())}get float(){return this._float||!1}sortNodes(i=1){return this.nodes=In.sort(this.nodes,i),this}_packNodes(){return this.batchMode?this:(this.sortNodes(),this.float?this.nodes.forEach(i=>{if(i._updating||i._orig===void 0||i.y===i._orig.y)return;let y=i.y;for(;y>i._orig.y;)--y,this.collide(i,{x:i.x,y,w:i.w,h:i.h})||(i._dirty=!0,i.y=y)}):this.nodes.forEach((i,y)=>{if(!i.locked)for(;i.y>0;){const F=y===0?0:i.y-1;if(!(y===0||!this.collide(i,{x:i.x,y:F,w:i.w,h:i.h})))break;i._dirty=i.y!==F,i.y=F}}),this)}prepareNode(i,y){i._id=i._id??Fd._idSeq++;const F=i.id;if(F){let L=1;for(;this.nodes.find(w=>w.id===i.id&&w!==i);)i.id=F+"_"+L++}(i.x===void 0||i.y===void 0||i.x===null||i.y===null)&&(i.autoPosition=!0);const K={x:0,y:0,w:1,h:1};return In.defaults(i,K),i.autoPosition||delete i.autoPosition,i.noResize||delete i.noResize,i.noMove||delete i.noMove,In.sanitizeMinMax(i),typeof i.x=="string"&&(i.x=Number(i.x)),typeof i.y=="string"&&(i.y=Number(i.y)),typeof i.w=="string"&&(i.w=Number(i.w)),typeof i.h=="string"&&(i.h=Number(i.h)),isNaN(i.x)&&(i.x=K.x,i.autoPosition=!0),isNaN(i.y)&&(i.y=K.y,i.autoPosition=!0),isNaN(i.w)&&(i.w=K.w),isNaN(i.h)&&(i.h=K.h),this.nodeBoundFix(i,y),i}nodeBoundFix(i,y){const F=i._orig||In.copyPos({},i);if(i.maxW&&(i.w=Math.min(i.w||1,i.maxW)),i.maxH&&(i.h=Math.min(i.h||1,i.maxH)),i.minW&&(i.w=Math.max(i.w||1,i.minW)),i.minH&&(i.h=Math.max(i.h||1,i.minH)),(i.x||0)+(i.w||1)>this.column&&this.column<this.defaultColumn&&!this._inColumnResize&&!this.skipCacheUpdate&&i._id!=null&&this.findCacheLayout(i,this.defaultColumn)===-1){const K={...i};K.autoPosition||K.x===void 0?(delete K.x,delete K.y):K.x=Math.min(this.defaultColumn-1,K.x),K.w=Math.min(this.defaultColumn,K.w||1),this.cacheOneLayout(K,this.defaultColumn)}return i.w>this.column?i.w=this.column:i.w<1&&(i.w=1),this.maxRow&&i.h>this.maxRow?i.h=this.maxRow:i.h<1&&(i.h=1),i.x<0&&(i.x=0),i.y<0&&(i.y=0),i.x+i.w>this.column&&(y?i.w=this.column-i.x:i.x=this.column-i.w),this.maxRow&&i.y+i.h>this.maxRow&&(y?i.h=this.maxRow-i.y:i.y=this.maxRow-i.h),In.samePos(i,F)||(i._dirty=!0),this}getDirtyNodes(i){return i?this.nodes.filter(y=>y._dirty&&!In.samePos(y,y._orig)):this.nodes.filter(y=>y._dirty)}_notify(i){if(this.batchMode||!this.onChange)return this;const y=(i||[]).concat(this.getDirtyNodes());return this.onChange(y),this}cleanNodes(){return this.batchMode?this:(this.nodes.forEach(i=>{delete i._dirty,delete i._lastTried}),this)}saveInitial(){return this.nodes.forEach(i=>{i._orig=In.copyPos({},i),delete i._dirty}),this._hasLocked=this.nodes.some(i=>i.locked),this}restoreInitial(){return this.nodes.forEach(i=>{!i._orig||In.samePos(i,i._orig)||(In.copyPos(i,i._orig),i._dirty=!0)}),this._notify(),this}findEmptyPosition(i,y=this.nodes,F=this.column,K){const L=K?K.y*F+(K.x+K.w):0;let w=!1;for(let t=L;!w;++t){const v=t%F,d=Math.floor(t/F);if(v+i.w>F)continue;const e={x:v,y:d,w:i.w,h:i.h};y.find(x=>In.isIntercepted(e,x))||((i.x!==v||i.y!==d)&&(i._dirty=!0),i.x=v,i.y=d,delete i.autoPosition,w=!0)}return w}addNode(i,y=!1,F){const K=this.nodes.find(w=>w._id===i._id);if(K)return K;this._inColumnResize?this.nodeBoundFix(i):this.prepareNode(i),delete i._temporaryRemoved,delete i._removeDOM;let L;return i.autoPosition&&this.findEmptyPosition(i,this.nodes,this.column,F)&&(delete i.autoPosition,L=!0),this.nodes.push(i),y&&this.addedNodes.push(i),L||this._fixCollisions(i),this.batchMode||this._packNodes()._notify(),i}removeNode(i,y=!0,F=!1){return this.nodes.find(K=>K._id===i._id)?(F&&this.removedNodes.push(i),y&&(i._removeDOM=!0),this.nodes=this.nodes.filter(K=>K._id!==i._id),i._isAboutToRemove||this._packNodes(),this._notify([i]),this):this}removeAll(i=!0,y=!0){if(delete this._layouts,!this.nodes.length)return this;i&&this.nodes.forEach(K=>K._removeDOM=!0);const F=this.nodes;return this.removedNodes=y?F:[],this.nodes=[],this._notify(F)}moveNodeCheck(i,y){if(!this.changedPosConstrain(i,y))return!1;if(y.pack=!0,!this.maxRow)return this.moveNode(i,y);let F;const K=new Fd({column:this.column,float:this.float,nodes:this.nodes.map(w=>w._id===i._id?(F={...w},F):{...w})});if(!F)return!1;const L=K.moveNode(F,y)&&K.getRow()<=Math.max(this.getRow(),this.maxRow);if(!L&&!y.resizing&&y.collide){const w=y.collide.el.gridstackNode;if(this.swap(i,w))return this._notify(),!0}return L?(K.nodes.filter(w=>w._dirty).forEach(w=>{const t=this.nodes.find(v=>v._id===w._id);t&&(In.copyPos(t,w),t._dirty=!0)}),this._notify(),!0):!1}willItFit(i){if(delete i._willFitPos,!this.maxRow)return!0;const y=new Fd({column:this.column,float:this.float,nodes:this.nodes.map(K=>({...K}))}),F={...i};return this.cleanupNode(F),delete F.el,delete F._id,delete F.content,delete F.grid,y.addNode(F),y.getRow()<=this.maxRow?(i._willFitPos=In.copyPos({},F),!0):!1}changedPosConstrain(i,y){return y.w=y.w||i.w,y.h=y.h||i.h,i.x!==y.x||i.y!==y.y?!0:(i.maxW&&(y.w=Math.min(y.w,i.maxW)),i.maxH&&(y.h=Math.min(y.h,i.maxH)),i.minW&&(y.w=Math.max(y.w,i.minW)),i.minH&&(y.h=Math.max(y.h,i.minH)),i.w!==y.w||i.h!==y.h)}moveNode(i,y){var F,K;if(!i||!y)return!1;let L;y.pack===void 0&&!this.batchMode&&(L=y.pack=!0),typeof y.x!="number"&&(y.x=i.x),typeof y.y!="number"&&(y.y=i.y),typeof y.w!="number"&&(y.w=i.w),typeof y.h!="number"&&(y.h=i.h);const w=i.w!==y.w||i.h!==y.h,t=In.copyPos({},i,!0);if(In.copyPos(t,y),this.nodeBoundFix(t,w),In.copyPos(y,t),!y.forceCollide&&In.samePos(i,y))return!1;const v=In.copyPos({},i),d=this.collideAll(i,t,y.skip);let e=!0;if(d.length){const x=i._moving&&!y.nested;let m=x?this.directionCollideCoverage(i,y,d):d[0];if(x&&m&&(K=(F=i.grid)==null?void 0:F.opts)!=null&&K.subGridDynamic&&!i.grid._isTemp){const b=In.areaIntercept(y.rect,m._rect),h=In.area(y.rect),n=In.area(m._rect);b/(h<n?h:n)>.8&&(m.grid.makeSubGrid(m.el,void 0,i),m=void 0)}m?e=!this._fixCollisions(i,t,m,y):(e=!1,L&&delete y.pack)}return e&&!In.samePos(i,t)&&(i._dirty=!0,In.copyPos(i,t)),y.pack&&this._packNodes()._notify(),!In.samePos(i,v)}getRow(){return this.nodes.reduce((i,y)=>Math.max(i,y.y+y.h),0)}beginUpdate(i){return i._updating||(i._updating=!0,delete i._skipDown,this.batchMode||this.saveInitial()),this}endUpdate(){const i=this.nodes.find(y=>y._updating);return i&&(delete i._updating,delete i._skipDown),this}save(i=!0,y){var F;const K=(F=this._layouts)==null?void 0:F.length,L=K&&this.column!==K-1?this._layouts[K-1]:null,w=[];return this.sortNodes(),this.nodes.forEach(t=>{const v=L==null?void 0:L.find(e=>e._id===t._id),d={...t,...v||{}};In.removeInternalForSave(d,!i),y&&y(t,d),w.push(d)}),w}layoutsNodesChange(i){return!this._layouts||this._inColumnResize?this:(this._layouts.forEach((y,F)=>{if(!y||F===this.column)return this;if(F<this.column)this._layouts[F]=void 0;else{const K=F/this.column;i.forEach(L=>{if(!L._orig)return;const w=y.find(t=>t._id===L._id);w&&(w.y>=0&&L.y!==L._orig.y&&(w.y+=L.y-L._orig.y),L.x!==L._orig.x&&(w.x=Math.round(L.x*K)),L.w!==L._orig.w&&(w.w=Math.round(L.w*K)))})}}),this)}columnChanged(i,y,F="moveScale"){var K;if(!this.nodes.length||!y||i===y)return this;const L=F==="compact"||F==="list";L&&this.sortNodes(1),y<i&&this.cacheLayout(this.nodes,i),this.batchUpdate();let w=[],t=L?this.nodes:In.sort(this.nodes,-1);if(y>i&&this._layouts){const v=this._layouts[y]||[],d=this._layouts.length-1;!v.length&&i!==d&&(K=this._layouts[d])!=null&&K.length&&(i=d,this._layouts[d].forEach(e=>{const x=t.find(m=>m._id===e._id);x&&(!L&&!e.autoPosition&&(x.x=e.x??x.x,x.y=e.y??x.y),x.w=e.w??x.w,(e.x==null||e.y===void 0)&&(x.autoPosition=!0))})),v.forEach(e=>{const x=t.findIndex(m=>m._id===e._id);if(x!==-1){const m=t[x];if(L){m.w=e.w;return}(e.autoPosition||isNaN(e.x)||isNaN(e.y))&&this.findEmptyPosition(e,w),e.autoPosition||(m.x=e.x??m.x,m.y=e.y??m.y,m.w=e.w??m.w,w.push(m)),t.splice(x,1)}})}if(L)this.compact(F,!1);else{if(t.length)if(typeof F=="function")F(y,i,w,t);else{const v=L||F==="none"?1:y/i,d=F==="move"||F==="moveScale",e=F==="scale"||F==="moveScale";t.forEach(x=>{x.x=y===1?0:d?Math.round(x.x*v):Math.min(x.x,y-1),x.w=y===1||i===1?1:e?Math.round(x.w*v)||1:Math.min(x.w,y),w.push(x)}),t=[]}w=In.sort(w,-1),this._inColumnResize=!0,this.nodes=[],w.forEach(v=>{this.addNode(v,!1),delete v._orig})}return this.nodes.forEach(v=>delete v._orig),this.batchUpdate(!1,!L),delete this._inColumnResize,this}cacheLayout(i,y,F=!1){const K=[];return i.forEach((L,w)=>{if(L._id===void 0){const t=L.id?this.nodes.find(v=>v.id===L.id):void 0;L._id=(t==null?void 0:t._id)??Fd._idSeq++}K[w]={x:L.x,y:L.y,w:L.w,_id:L._id}}),this._layouts=F?[]:this._layouts||[],this._layouts[y]=K,this}cacheOneLayout(i,y){i._id=i._id??Fd._idSeq++;const F={x:i.x,y:i.y,w:i.w,_id:i._id};(i.autoPosition||i.x===void 0)&&(delete F.x,delete F.y,i.autoPosition&&(F.autoPosition=!0)),this._layouts=this._layouts||[],this._layouts[y]=this._layouts[y]||[];const K=this.findCacheLayout(i,y);return K===-1?this._layouts[y].push(F):this._layouts[y][K]=F,this}findCacheLayout(i,y){var F,K;return((K=(F=this._layouts)==null?void 0:F[y])==null?void 0:K.findIndex(L=>L._id===i._id))??-1}removeNodeFromLayoutCache(i){if(this._layouts)for(let y=0;y<this._layouts.length;y++){const F=this.findCacheLayout(i,y);F!==-1&&this._layouts[y].splice(F,1)}}cleanupNode(i){for(const y in i)y[0]==="_"&&y!=="_id"&&delete i[y];return this}}Fd._idSeq=0;const Au={alwaysShowResizeHandle:"mobile",animate:!0,auto:!0,cellHeight:"auto",cellHeightThrottle:100,cellHeightUnit:"px",column:12,draggable:{handle:".grid-stack-item-content",appendTo:"body",scroll:!0},handle:".grid-stack-item-content",itemClass:"grid-stack-item",margin:10,marginUnit:"px",maxRow:0,minRow:0,placeholderClass:"grid-stack-placeholder",placeholderText:"",removableOptions:{accept:"grid-stack-item",decline:"grid-stack-non-removable"},resizable:{handles:"se"},rtl:"auto"};class Za{}const $u=typeof window<"u"&&typeof document<"u"&&("ontouchstart"in document||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0);class xd{}function Qg(r,i){r.touches.length>1||(r.cancelable&&r.preventDefault(),In.simulateMouseEvent(r.changedTouches[0],i))}function P6(r,i){r.cancelable&&r.preventDefault(),In.simulateMouseEvent(r,i)}function $g(r){xd.touchHandled||(xd.touchHandled=!0,Qg(r,"mousedown"))}function ey(r){xd.touchHandled&&Qg(r,"mousemove")}function ty(r){if(!xd.touchHandled)return;xd.pointerLeaveTimeout&&(window.clearTimeout(xd.pointerLeaveTimeout),delete xd.pointerLeaveTimeout);const i=!!Za.dragElement;Qg(r,"mouseup"),i||Qg(r,"click"),xd.touchHandled=!1}function ry(r){r.pointerType!=="mouse"&&r.target.releasePointerCapture(r.pointerId)}function N6(r){Za.dragElement&&r.pointerType!=="mouse"&&P6(r,"mouseenter")}function O6(r){Za.dragElement&&r.pointerType!=="mouse"&&(xd.pointerLeaveTimeout=window.setTimeout(()=>{delete xd.pointerLeaveTimeout,P6(r,"mouseleave")},10))}class ny{constructor(i,y,F){this.host=i,this.dir=y,this.option=F,this.moving=!1,this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this._keyEvent=this._keyEvent.bind(this),this._init()}_init(){const i=this.el=document.createElement("div");return i.classList.add("ui-resizable-handle"),i.classList.add(`${ny.prefix}${this.dir}`),i.style.zIndex="100",i.style.userSelect="none",this.host.appendChild(this.el),this.el.addEventListener("mousedown",this._mouseDown),$u&&(this.el.addEventListener("touchstart",$g),this.el.addEventListener("pointerdown",ry)),this}destroy(){return this.moving&&this._mouseUp(this.mouseDownEvent),this.el.removeEventListener("mousedown",this._mouseDown),$u&&(this.el.removeEventListener("touchstart",$g),this.el.removeEventListener("pointerdown",ry)),this.host.removeChild(this.el),delete this.el,delete this.host,this}_mouseDown(i){this.mouseDownEvent=i,document.addEventListener("mousemove",this._mouseMove,{capture:!0,passive:!0}),document.addEventListener("mouseup",this._mouseUp,!0),$u&&(this.el.addEventListener("touchmove",ey),this.el.addEventListener("touchend",ty)),i.stopPropagation(),i.preventDefault()}_mouseMove(i){const y=this.mouseDownEvent;this.moving?this._triggerEvent("move",i):Math.abs(i.x-y.x)+Math.abs(i.y-y.y)>2&&(this.moving=!0,this._triggerEvent("start",this.mouseDownEvent),this._triggerEvent("move",i),document.addEventListener("keydown",this._keyEvent)),i.stopPropagation()}_mouseUp(i){this.moving&&(this._triggerEvent("stop",i),document.removeEventListener("keydown",this._keyEvent)),document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),$u&&(this.el.removeEventListener("touchmove",ey),this.el.removeEventListener("touchend",ty)),delete this.moving,delete this.mouseDownEvent,i.stopPropagation(),i.preventDefault()}_keyEvent(i){var y,F;i.key==="Escape"&&((F=(y=this.host.gridstackNode)==null?void 0:y.grid)==null||F.engine.restoreInitial(),this._mouseUp(this.mouseDownEvent))}_triggerEvent(i,y){return this.option[i]&&this.option[i](y),this}}ny.prefix="ui-resizable-";class W2{constructor(){this._eventRegister={}}get disabled(){return this._disabled}on(i,y){this._eventRegister[i]=y}off(i){delete this._eventRegister[i]}enable(){this._disabled=!1}disable(){this._disabled=!0}destroy(){delete this._eventRegister}triggerEvent(i,y){if(!this.disabled&&this._eventRegister&&this._eventRegister[i])return this._eventRegister[i](y)}}class rm extends W2{constructor(i,y={}){super(),this.el=i,this.option=y,this.rectScale={x:1,y:1},this._ui=()=>{const F=this.el.parentElement.getBoundingClientRect(),K={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,top:this.originalRect.top-this.scrolled},L=this.temporalRect||K;return{position:{left:(L.left-F.left)*this.rectScale.x,top:(L.top-F.top)*this.rectScale.y},size:{width:L.width*this.rectScale.x,height:L.height*this.rectScale.y}}},this._mouseOver=this._mouseOver.bind(this),this._mouseOut=this._mouseOut.bind(this),this.enable(),this._setupAutoHide(this.option.autoHide),this._setupHandlers()}on(i,y){super.on(i,y)}off(i){super.off(i)}enable(){super.enable(),this.el.classList.remove("ui-resizable-disabled"),this._setupAutoHide(this.option.autoHide)}disable(){super.disable(),this.el.classList.add("ui-resizable-disabled"),this._setupAutoHide(!1)}destroy(){this._removeHandlers(),this._setupAutoHide(!1),delete this.el,super.destroy()}updateOption(i){const y=i.handles&&i.handles!==this.option.handles,F=i.autoHide&&i.autoHide!==this.option.autoHide;return Object.keys(i).forEach(K=>this.option[K]=i[K]),y&&(this._removeHandlers(),this._setupHandlers()),F&&this._setupAutoHide(this.option.autoHide),this}_setupAutoHide(i){return i?(this.el.classList.add("ui-resizable-autohide"),this.el.addEventListener("mouseover",this._mouseOver),this.el.addEventListener("mouseout",this._mouseOut)):(this.el.classList.remove("ui-resizable-autohide"),this.el.removeEventListener("mouseover",this._mouseOver),this.el.removeEventListener("mouseout",this._mouseOut),Za.overResizeElement===this&&delete Za.overResizeElement),this}_mouseOver(i){Za.overResizeElement||Za.dragElement||(Za.overResizeElement=this,this.el.classList.remove("ui-resizable-autohide"))}_mouseOut(i){Za.overResizeElement===this&&(delete Za.overResizeElement,this.el.classList.add("ui-resizable-autohide"))}_setupHandlers(){return this.handlers=this.option.handles.split(",").map(i=>i.trim()).map(i=>new ny(this.el,i,{start:y=>{this._resizeStart(y)},stop:y=>{this._resizeStop(y)},move:y=>{this._resizing(y,i)}})),this}_resizeStart(i){this.sizeToContent=In.shouldSizeToContent(this.el.gridstackNode,!0),this.originalRect=this.el.getBoundingClientRect(),this.scrollEl=In.getScrollElement(this.el),this.scrollY=this.scrollEl.scrollTop,this.scrolled=0,this.startEvent=i,this._setupHelper(),this._applyChange();const y=In.initEvent(i,{type:"resizestart",target:this.el});return this.option.start&&this.option.start(y,this._ui()),this.el.classList.add("ui-resizable-resizing"),this.triggerEvent("resizestart",y),this}_resizing(i,y){this.scrolled=this.scrollEl.scrollTop-this.scrollY,this.temporalRect=this._getChange(i,y),this._applyChange();const F=In.initEvent(i,{type:"resize",target:this.el});return this.option.resize&&this.option.resize(F,this._ui()),this.triggerEvent("resize",F),this}_resizeStop(i){const y=In.initEvent(i,{type:"resizestop",target:this.el});return this._cleanHelper(),this.option.stop&&this.option.stop(y),this.el.classList.remove("ui-resizable-resizing"),this.triggerEvent("resizestop",y),delete this.startEvent,delete this.originalRect,delete this.temporalRect,delete this.scrollY,delete this.scrolled,this}_setupHelper(){this.elOriginStyleVal=rm._originStyleProp.map(F=>this.el.style[F]),this.parentOriginStylePosition=this.el.parentElement.style.position;const i=this.el.parentElement,y=In.getValuesFromTransformedElement(i);return this.rectScale={x:y.xScale,y:y.yScale},getComputedStyle(this.el.parentElement).position.match(/static/)&&(this.el.parentElement.style.position="relative"),this.el.style.position="absolute",this.el.style.opacity="0.8",this}_cleanHelper(){return rm._originStyleProp.forEach((i,y)=>{this.el.style[i]=this.elOriginStyleVal[y]||null}),this.el.parentElement.style.position=this.parentOriginStylePosition||null,this}_getChange(i,y){const F=this.startEvent,K={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,top:this.originalRect.top-this.scrolled},L=i.clientX-F.clientX,w=this.sizeToContent?0:i.clientY-F.clientY;let t,v;y.indexOf("e")>-1?K.width+=L:y.indexOf("w")>-1&&(K.width-=L,K.left+=L,t=!0),y.indexOf("s")>-1?K.height+=w:y.indexOf("n")>-1&&(K.height-=w,K.top+=w,v=!0);const d=this._constrainSize(K.width,K.height,t,v);return Math.round(K.width)!==Math.round(d.width)&&(y.indexOf("w")>-1&&(K.left+=K.width-d.width),K.width=d.width),Math.round(K.height)!==Math.round(d.height)&&(y.indexOf("n")>-1&&(K.top+=K.height-d.height),K.height=d.height),K}_constrainSize(i,y,F,K){const L=this.option,w=(F?L.maxWidthMoveLeft:L.maxWidth)||Number.MAX_SAFE_INTEGER,t=L.minWidth/this.rectScale.x||i,v=(K?L.maxHeightMoveUp:L.maxHeight)||Number.MAX_SAFE_INTEGER,d=L.minHeight/this.rectScale.y||y,e=Math.min(w,Math.max(t,i)),x=Math.min(v,Math.max(d,y));return{width:e,height:x}}_applyChange(){let i={left:0,top:0,width:0,height:0};if(this.el.style.position==="absolute"){const y=this.el.parentElement,{left:F,top:K}=y.getBoundingClientRect();i={left:F,top:K,width:0,height:0}}return this.temporalRect?(Object.keys(this.temporalRect).forEach(y=>{const F=this.temporalRect[y],K=y==="width"||y==="left"?this.rectScale.x:y==="height"||y==="top"?this.rectScale.y:1;this.el.style[y]=(F-i[y])*K+"px"}),this):this}_removeHandlers(){return this.handlers.forEach(i=>i.destroy()),delete this.handlers,this}}rm._originStyleProp=["width","height","position","left","top","opacity","zIndex"];const Gse='input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle';class nm extends W2{constructor(i,y={}){var F;super(),this.el=i,this.option=y,this.dragTransform={xScale:1,yScale:1,xOffset:0,yOffset:0};const K=(F=y==null?void 0:y.handle)==null?void 0:F.substring(1),L=i.gridstackNode;this.dragEls=!K||i.classList.contains(K)?[i]:L!=null&&L.subGrid?[i.querySelector(y.handle)||i]:Array.from(i.querySelectorAll(y.handle)),this.dragEls.length===0&&(this.dragEls=[i]),this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this._keyEvent=this._keyEvent.bind(this),this.enable()}on(i,y){super.on(i,y)}off(i){super.off(i)}enable(){this.disabled!==!1&&(super.enable(),this.dragEls.forEach(i=>{i.addEventListener("mousedown",this._mouseDown),$u&&(i.addEventListener("touchstart",$g),i.addEventListener("pointerdown",ry))}),this.el.classList.remove("ui-draggable-disabled"))}disable(i=!1){this.disabled!==!0&&(super.disable(),this.dragEls.forEach(y=>{y.removeEventListener("mousedown",this._mouseDown),$u&&(y.removeEventListener("touchstart",$g),y.removeEventListener("pointerdown",ry))}),i||this.el.classList.add("ui-draggable-disabled"))}destroy(){this.dragTimeout&&window.clearTimeout(this.dragTimeout),delete this.dragTimeout,this.mouseDownEvent&&this._mouseUp(this.mouseDownEvent),this.disable(!0),delete this.el,delete this.helper,delete this.option,super.destroy()}updateOption(i){return Object.keys(i).forEach(y=>this.option[y]=i[y]),this}_mouseDown(i){if(!Za.mouseHandled)return i.button!==0||!this.dragEls.find(y=>y===i.target)&&i.target.closest(Gse)||this.option.cancel&&i.target.closest(this.option.cancel)||(this.mouseDownEvent=i,delete this.dragging,delete Za.dragElement,delete Za.dropElement,document.addEventListener("mousemove",this._mouseMove,{capture:!0,passive:!0}),document.addEventListener("mouseup",this._mouseUp,!0),$u&&(i.currentTarget.addEventListener("touchmove",ey),i.currentTarget.addEventListener("touchend",ty)),i.preventDefault(),document.activeElement&&document.activeElement.blur(),Za.mouseHandled=!0),!0}_callDrag(i){if(!this.dragging)return;const y=In.initEvent(i,{target:this.el,type:"drag"});this.option.drag&&this.option.drag(y,this.ui()),this.triggerEvent("drag",y)}_mouseMove(i){var y;const F=this.mouseDownEvent;if(this.lastDrag=i,this.dragging)if(this._dragFollow(i),Za.pauseDrag){const K=Number.isInteger(Za.pauseDrag)?Za.pauseDrag:100;this.dragTimeout&&window.clearTimeout(this.dragTimeout),this.dragTimeout=window.setTimeout(()=>this._callDrag(i),K)}else this._callDrag(i);else if(Math.abs(i.x-F.x)+Math.abs(i.y-F.y)>3){this.dragging=!0,Za.dragElement=this;const K=(y=this.el.gridstackNode)==null?void 0:y.grid;K?Za.dropElement=K.el.ddElement.ddDroppable:delete Za.dropElement,this.helper=this._createHelper(),this._setupHelperContainmentStyle(),this.dragTransform=In.getValuesFromTransformedElement(this.helperContainment),this.dragOffset=this._getDragOffset(i,this.el,this.helperContainment),this._setupHelperStyle(i);const L=In.initEvent(i,{target:this.el,type:"dragstart"});this.option.start&&this.option.start(L,this.ui()),this.triggerEvent("dragstart",L),document.addEventListener("keydown",this._keyEvent)}return!0}_mouseUp(i){var y,F;if(document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),$u&&i.currentTarget&&(i.currentTarget.removeEventListener("touchmove",ey,!0),i.currentTarget.removeEventListener("touchend",ty,!0)),this.dragging){delete this.dragging,(y=this.el.gridstackNode)==null||delete y._origRotate,document.removeEventListener("keydown",this._keyEvent),((F=Za.dropElement)==null?void 0:F.el)===this.el.parentElement&&delete Za.dropElement,this.helperContainment.style.position=this.parentOriginStylePosition||null,this.helper!==this.el&&this.helper.remove(),this._removeHelperStyle();const K=In.initEvent(i,{target:this.el,type:"dragstop"});this.option.stop&&this.option.stop(K),this.triggerEvent("dragstop",K),Za.dropElement&&Za.dropElement.drop(i)}delete this.helper,delete this.mouseDownEvent,delete Za.dragElement,delete Za.dropElement,delete Za.mouseHandled,i.preventDefault()}_keyEvent(i){var y,F;const K=this.el.gridstackNode,L=(K==null?void 0:K.grid)||((F=(y=Za.dropElement)==null?void 0:y.el)==null?void 0:F.gridstack);if(i.key==="Escape")K&&K._origRotate&&(K._orig=K._origRotate,delete K._origRotate),L==null||L.cancelDrag(),this._mouseUp(this.mouseDownEvent);else if(K&&L&&(i.key==="r"||i.key==="R")){if(!In.canBeRotated(K))return;K._origRotate=K._origRotate||{...K._orig},delete K._moving,L.setAnimation(!1).rotate(K.el,{top:-this.dragOffset.offsetTop,left:-this.dragOffset.offsetLeft}).setAnimation(),K._moving=!0,this.dragOffset=this._getDragOffset(this.lastDrag,K.el,this.helperContainment),this.helper.style.width=this.dragOffset.width+"px",this.helper.style.height=this.dragOffset.height+"px",In.swap(K._orig,"w","h"),delete K._rect,this._mouseMove(this.lastDrag)}}_createHelper(){let i=this.el;return typeof this.option.helper=="function"?i=this.option.helper(this.el):this.option.helper==="clone"&&(i=In.cloneNode(this.el)),i.parentElement||In.appendTo(i,this.option.appendTo==="parent"?this.el.parentElement:this.option.appendTo),this.dragElementOriginStyle=nm.originStyleProp.map(y=>this.el.style[y]),i}_setupHelperStyle(i){this.helper.classList.add("ui-draggable-dragging");const y=this.helper.style;return y.pointerEvents="none",y.width=this.dragOffset.width+"px",y.height=this.dragOffset.height+"px",y.willChange="left, top",y.position="fixed",this._dragFollow(i),y.transition="none",setTimeout(()=>{this.helper&&(y.transition=null)},0),this}_removeHelperStyle(){var i;this.helper.classList.remove("ui-draggable-dragging");const y=(i=this.helper)==null?void 0:i.gridstackNode;if(!(y!=null&&y._isAboutToRemove)&&this.dragElementOriginStyle){const F=this.helper,K=this.dragElementOriginStyle.transition||null;F.style.transition=this.dragElementOriginStyle.transition="none",nm.originStyleProp.forEach(L=>F.style[L]=this.dragElementOriginStyle[L]||null),setTimeout(()=>F.style.transition=K,50)}return delete this.dragElementOriginStyle,this}_dragFollow(i){const y={left:0,top:0},F=this.helper.style,K=this.dragOffset;F.left=(i.clientX+K.offsetLeft-y.left)*this.dragTransform.xScale+"px",F.top=(i.clientY+K.offsetTop-y.top)*this.dragTransform.yScale+"px"}_setupHelperContainmentStyle(){return this.helperContainment=this.helper.parentElement,this.helper.style.position!=="fixed"&&(this.parentOriginStylePosition=this.helperContainment.style.position,getComputedStyle(this.helperContainment).position.match(/static/)&&(this.helperContainment.style.position="relative")),this}_getDragOffset(i,y,F){let K=0,L=0;F&&(K=this.dragTransform.xOffset,L=this.dragTransform.yOffset);const w=y.getBoundingClientRect();return{left:w.left,top:w.top,offsetLeft:-i.clientX+w.left-K,offsetTop:-i.clientY+w.top-L,width:w.width*this.dragTransform.xScale,height:w.height*this.dragTransform.yScale}}ui(){const i=this.el.parentElement.getBoundingClientRect(),y=this.helper.getBoundingClientRect();return{position:{top:(y.top-i.top)*this.dragTransform.yScale,left:(y.left-i.left)*this.dragTransform.xScale}}}}nm.originStyleProp=["width","height","transform","transform-origin","transition","pointerEvents","position","left","top","minWidth","willChange"];class Xse extends W2{constructor(i,y={}){super(),this.el=i,this.option=y,this._mouseEnter=this._mouseEnter.bind(this),this._mouseLeave=this._mouseLeave.bind(this),this.enable(),this._setupAccept()}on(i,y){super.on(i,y)}off(i){super.off(i)}enable(){this.disabled!==!1&&(super.enable(),this.el.classList.add("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),this.el.addEventListener("mouseenter",this._mouseEnter),this.el.addEventListener("mouseleave",this._mouseLeave),$u&&(this.el.addEventListener("pointerenter",N6),this.el.addEventListener("pointerleave",O6)))}disable(i=!1){this.disabled!==!0&&(super.disable(),this.el.classList.remove("ui-droppable"),i||this.el.classList.add("ui-droppable-disabled"),this.el.removeEventListener("mouseenter",this._mouseEnter),this.el.removeEventListener("mouseleave",this._mouseLeave),$u&&(this.el.removeEventListener("pointerenter",N6),this.el.removeEventListener("pointerleave",O6)))}destroy(){this.disable(!0),this.el.classList.remove("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),super.destroy()}updateOption(i){return Object.keys(i).forEach(y=>this.option[y]=i[y]),this._setupAccept(),this}_mouseEnter(i){if(!Za.dragElement||!this._canDrop(Za.dragElement.el))return;i.preventDefault(),i.stopPropagation(),Za.dropElement&&Za.dropElement!==this&&Za.dropElement._mouseLeave(i,!0),Za.dropElement=this;const y=In.initEvent(i,{target:this.el,type:"dropover"});this.option.over&&this.option.over(y,this._ui(Za.dragElement)),this.triggerEvent("dropover",y),this.el.classList.add("ui-droppable-over")}_mouseLeave(i,y=!1){var F;if(!Za.dragElement||Za.dropElement!==this)return;i.preventDefault(),i.stopPropagation();const K=In.initEvent(i,{target:this.el,type:"dropout"});if(this.option.out&&this.option.out(K,this._ui(Za.dragElement)),this.triggerEvent("dropout",K),Za.dropElement===this&&(delete Za.dropElement,!y)){let L,w=this.el.parentElement;for(;!L&&w;)L=(F=w.ddElement)==null?void 0:F.ddDroppable,w=w.parentElement;L&&L._mouseEnter(i)}}drop(i){i.preventDefault();const y=In.initEvent(i,{target:this.el,type:"drop"});this.option.drop&&this.option.drop(y,this._ui(Za.dragElement)),this.triggerEvent("drop",y)}_canDrop(i){return i&&(!this.accept||this.accept(i))}_setupAccept(){return this.option.accept?(typeof this.option.accept=="string"?this.accept=i=>i.classList.contains(this.option.accept)||i.matches(this.option.accept):this.accept=this.option.accept,this):this}_ui(i){return{draggable:i.el,...i.ui()}}}class G2{static init(i){return i.ddElement||(i.ddElement=new G2(i)),i.ddElement}constructor(i){this.el=i}on(i,y){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(i)>-1?this.ddDraggable.on(i,y):this.ddDroppable&&["drop","dropover","dropout"].indexOf(i)>-1?this.ddDroppable.on(i,y):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(i)>-1&&this.ddResizable.on(i,y),this}off(i){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(i)>-1?this.ddDraggable.off(i):this.ddDroppable&&["drop","dropover","dropout"].indexOf(i)>-1?this.ddDroppable.off(i):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(i)>-1&&this.ddResizable.off(i),this}setupDraggable(i){return this.ddDraggable?this.ddDraggable.updateOption(i):this.ddDraggable=new nm(this.el,i),this}cleanDraggable(){return this.ddDraggable&&(this.ddDraggable.destroy(),delete this.ddDraggable),this}setupResizable(i){return this.ddResizable?this.ddResizable.updateOption(i):this.ddResizable=new rm(this.el,i),this}cleanResizable(){return this.ddResizable&&(this.ddResizable.destroy(),delete this.ddResizable),this}setupDroppable(i){return this.ddDroppable?this.ddDroppable.updateOption(i):this.ddDroppable=new Xse(this.el,i),this}cleanDroppable(){return this.ddDroppable&&(this.ddDroppable.destroy(),delete this.ddDroppable),this}}class Hse{resizable(i,y,F,K){return this._getDDElements(i,y).forEach(L=>{if(y==="disable"||y==="enable")L.ddResizable&&L.ddResizable[y]();else if(y==="destroy")L.ddResizable&&L.cleanResizable();else if(y==="option")L.setupResizable({[F]:K});else{const w=L.el.gridstackNode.grid;let t=L.el.getAttribute("gs-resize-handles")||w.opts.resizable.handles||"e,s,se";t==="all"&&(t="n,e,s,w,se,sw,ne,nw");const v=!w.opts.alwaysShowResizeHandle;L.setupResizable({...w.opts.resizable,handles:t,autoHide:v,start:y.start,stop:y.stop,resize:y.resize})}}),this}draggable(i,y,F,K){return this._getDDElements(i,y).forEach(L=>{if(y==="disable"||y==="enable")L.ddDraggable&&L.ddDraggable[y]();else if(y==="destroy")L.ddDraggable&&L.cleanDraggable();else if(y==="option")L.setupDraggable({[F]:K});else{const w=L.el.gridstackNode.grid;L.setupDraggable({...w.opts.draggable,start:y.start,stop:y.stop,drag:y.drag})}}),this}dragIn(i,y){return this._getDDElements(i).forEach(F=>F.setupDraggable(y)),this}droppable(i,y,F,K){return typeof y.accept=="function"&&!y._accept&&(y._accept=y.accept,y.accept=L=>y._accept(L)),this._getDDElements(i,y).forEach(L=>{y==="disable"||y==="enable"?L.ddDroppable&&L.ddDroppable[y]():y==="destroy"?L.ddDroppable&&L.cleanDroppable():y==="option"?L.setupDroppable({[F]:K}):L.setupDroppable(y)}),this}isDroppable(i){var y;return!!((y=i==null?void 0:i.ddElement)!=null&&y.ddDroppable&&!i.ddElement.ddDroppable.disabled)}isDraggable(i){var y;return!!((y=i==null?void 0:i.ddElement)!=null&&y.ddDraggable&&!i.ddElement.ddDraggable.disabled)}isResizable(i){var y;return!!((y=i==null?void 0:i.ddElement)!=null&&y.ddResizable&&!i.ddElement.ddResizable.disabled)}on(i,y,F){return this._getDDElements(i).forEach(K=>K.on(y,L=>{F(L,Za.dragElement?Za.dragElement.el:L.target,Za.dragElement?Za.dragElement.helper:null)})),this}off(i,y){return this._getDDElements(i).forEach(F=>F.off(y)),this}_getDDElements(i,y){const F=i.gridstack||y!=="destroy"&&y!=="disable",K=In.getElements(i);return K.length?K.map(L=>L.ddElement||(F?G2.init(L):null)).filter(L=>L):[]}}/*!
4073
+ `+K):y.stack=K}catch{}}throw y}}_request(r,i){typeof r=="string"?(i=i||{},i.url=r):i=r||{},i=Jh(this.defaults,i);const{transitional:y,paramsSerializer:F,headers:K}=i;y!==void 0&&Jg.assertOptions(y,{silentJSONParsing:bd.transitional(bd.boolean),forcedJSONParsing:bd.transitional(bd.boolean),clarifyTimeoutError:bd.transitional(bd.boolean)},!1),F!=null&&(Gn.isFunction(F)?i.paramsSerializer={serialize:F}:Jg.assertOptions(F,{encode:bd.function,serialize:bd.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),Jg.assertOptions(i,{baseUrl:bd.spelling("baseURL"),withXsrfToken:bd.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let L=K&&Gn.merge(K.common,K[i.method]);K&&Gn.forEach(["delete","get","head","post","put","patch","common"],b=>{delete K[b]}),i.headers=pu.concat(L,K);const w=[];let t=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(i)===!1||(t=t&&b.synchronous,w.unshift(b.fulfilled,b.rejected))});const v=[];this.interceptors.response.forEach(function(b){v.push(b.fulfilled,b.rejected)});let d,e=0,x;if(!t){const b=[d6.bind(this),void 0];for(b.unshift(...w),b.push(...v),x=b.length,d=Promise.resolve(i);e<x;)d=d.then(b[e++],b[e++]);return d}x=w.length;let m=i;for(e=0;e<x;){const b=w[e++],h=w[e++];try{m=b(m)}catch(n){h.call(this,n);break}}try{d=d6.call(this,m)}catch(b){return Promise.reject(b)}for(e=0,x=v.length;e<x;)d=d.then(v[e++],v[e++]);return d}getUri(r){r=Jh(this.defaults,r);const i=r6(r.baseURL,r.url,r.allowAbsoluteUrls);return H4(i,r.params,r.paramsSerializer)}};Gn.forEach(["delete","get","head","options"],function(r){Zh.prototype[r]=function(i,y){return this.request(Jh(y||{},{method:r,url:i,data:(y||{}).data}))}}),Gn.forEach(["post","put","patch"],function(r){function i(y){return function(F,K,L){return this.request(Jh(L||{},{method:r,headers:y?{"Content-Type":"multipart/form-data"}:{},url:F,data:K}))}}Zh.prototype[r]=i(),Zh.prototype[r+"Form"]=i(!0)});let Die=class UT{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let y;this.promise=new Promise(function(K){y=K});const F=this;this.promise.then(K=>{if(!F._listeners)return;let L=F._listeners.length;for(;L-- >0;)F._listeners[L](K);F._listeners=null}),this.promise.then=K=>{let L;const w=new Promise(t=>{F.subscribe(t),L=t}).then(K);return w.cancel=function(){F.unsubscribe(L)},w},i(function(K,L,w){F.reason||(F.reason=new Vp(K,L,w),y(F.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const y=this._listeners.indexOf(i);y!==-1&&this._listeners.splice(y,1)}toAbortSignal(){const i=new AbortController,y=F=>{i.abort(F)};return this.subscribe(y),i.signal.unsubscribe=()=>this.unsubscribe(y),i.signal}static source(){let i;return{token:new UT(function(y){i=y}),cancel:i}}};function Iie(r){return function(i){return r.apply(null,i)}}function Fie(r){return Gn.isObject(r)&&r.isAxiosError===!0}const V2={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(V2).forEach(([r,i])=>{V2[i]=r});function f6(r){const i=new Zh(r),y=N4(Zh.prototype.request,i);return Gn.extend(y,Zh.prototype,i,{allOwnKeys:!0}),Gn.extend(y,i,null,{allOwnKeys:!0}),y.create=function(F){return f6(Jh(r,F))},y}const rl=f6(em);rl.Axios=Zh,rl.CanceledError=Vp,rl.CancelToken=Die,rl.isCancel=Q4,rl.VERSION=h6,rl.toFormData=jg,rl.AxiosError=yi,rl.Cancel=rl.CanceledError,rl.all=function(r){return Promise.all(r)},rl.spread=Iie,rl.isAxiosError=Fie,rl.mergeConfig=Jh,rl.AxiosHeaders=pu,rl.formToJSON=r=>K4(Gn.isHTMLForm(r)?new FormData(r):r),rl.getAdapter=u6.getAdapter,rl.HttpStatusCode=V2,rl.default=rl;const{Axios:sve,AxiosError:lve,CanceledError:cve,isCancel:uve,CancelToken:dve,VERSION:hve,all:pve,Cancel:fve,isAxiosError:mve,spread:gve,toFormData:yve,AxiosHeaders:vve,HttpStatusCode:bve,formToJSON:xve,getAdapter:_ve,mergeConfig:wve}=rl,Bie=(r,i)=>{const y=r.__vccOpts||r;for(const[F,K]of i)y[F]=K;return y},Vie={class:"header"},Uie={class:"team-logo left-team"},jie=["src"],qie={class:"team-logo right-team"},Wie=["src"],Gie={class:"stats-container"},Xie={class:"stat-bar-container"},Hie={class:"stat-label"},Jie={class:"stat-bars"},Zie={class:"bar-section"},Kie={class:"bar-number"},Yie={class:"bar-section"},Qie={class:"bar-number"},$ie={__name:"gsc-comparative-reports",props:{type:{type:String,required:!0,validator:r=>["general","offensive","defensive","possession","stoppedBall","penalties"].includes(r)},gameId:{type:String,required:!0},seasonId:{type:String,required:!0},token:{type:String,required:!0,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},homeLogo:{type:String,required:!0},awayLogo:{type:String,required:!0},typegame:{type:String,required:!0},default:{type:Boolean,default:!1}},setup(r){const i=r,y=p.ref([]),F=p.ref(!0),K=p.ref(null),L=p.computed(()=>i.default||!i.gameId?"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/escudo1.png":i.homeLogo),w=p.computed(()=>i.default||!i.gameId?"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/escudo2.png":i.awayLogo);p.computed(()=>({general:"General",offensive:"Ofensivo",defensive:"Defensivo",possession:"Posesión",stoppedBall:"Balón parado",penalties:"Infracciones"})[i.type]||"General");const t=p.ref(null),v=async()=>{try{if(F.value=!0,K.value=null,i.default||!i.gameId){const a=d[i.type]||d.general;y.value=a.map(u=>({label:u,local:0,away:0})),F.value=!1;return}const h=`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsTeamBySeason/${i.seasonId}/games/${i.gameId}?type=${i.typegame}`,n=await rl.get(h,{headers:{Authorization:`${i.token}`,"Content-Type":"application/json"}});console.log("API Response:",n.data.result),y.value=e(n.data.result,i.type)}catch(h){K.value=h.message,console.error("Error loading statistics:",h)}finally{F.value=!1}},d={general:["Goles","Remates a destino","Tarjetas amarillas","Tarjetas rojas","Centros totales"],offensive:["Tiros a gol","Tiros a gol destino","Remates a destino","Balones ganados área rival","Centros por derecha","Centros por izquierda","Enfrentamientos ofensivos exitosos","Enfrentamientos ofensivos no exitosos"],defensive:["Atajadas","Balones ganados área propia","Enfrentamientos defensivos exitosos","Enfrentamientos defensivos no exitosos","Juego aéreo resto del campo","Rechaces"],possession:["Pases totales","Pases acertados","Pases acertados en cancha rival","Balones recuperados en disputa","Balones recuperados sin disputa","Balones perdidos en disputa","Balones perdidos sin disputa"],stoppedBall:["Tiros libres 4/4","Tiros libres 3/4","Tiros libres cancha propia","Tiros de esquina por derecha","Tiros de esquina por izquierda","Saques de meta"],penalties:["Faltas totales","Faltas cerca de su propia portería","Faltas resto del campo","Penales cometidos","Fueras de lugar"]},e=(h,n)=>{if(console.log("Transformando datos para tipo:",n,"Datos recibidos:",h[i.type]),i.default){const u=d[i.type]||d.general;return console.log(`Modo default - categorías para tipo '${i.type}':`,u),u.map(s=>({label:s,local:0,away:0}))}const a=h[i.type];return!a||!Array.isArray(a)?(console.warn(`No se encontraron datos para el tipo: ${i.type}`,a),[]):(console.log(`Estadísticas para tipo '${i.type}':`,a),a.map(u=>({label:u.category_name,local:u.home,away:u.away})))},x=(h,n,a)=>{const u=h+n;return u===0?0:Math.round(a==="local"?h/u*100:n/u*100)},m=()=>{if(!t.value)return;const h=t.value.offsetWidth,n=t.value;n.classList.remove("size-large","size-medium","size-small","size-tiny"),h>=1024?n.classList.add("size-large"):h>=768?n.classList.add("size-medium"):h>=580?n.classList.add("size-small"):n.classList.add("size-tiny")};let b=null;return p.onMounted(()=>{m(),v(),b=new ResizeObserver(()=>{m()}),t.value&&b.observe(t.value)}),p.watch([()=>i.type,()=>i.typegame,()=>i.gameId,()=>i.seasonId,()=>i.token,()=>i.homeLogo,()=>i.awayLogo,()=>i.default],()=>{v()}),p.onUnmounted(()=>{b&&b.disconnect()}),(h,n)=>(p.openBlock(),p.createElementBlock("div",{class:"comparative-reports",ref_key:"containerRef",ref:t},[p.createElementVNode("div",Vie,[p.createElementVNode("div",Uie,[p.createElementVNode("img",{src:L.value,alt:"Equipo local",class:p.normalizeClass(["logo",{"default-logo":i.default||!r.gameId}])},null,10,jie)]),p.createElementVNode("div",qie,[p.createElementVNode("img",{src:w.value,alt:"Equipo visitante",class:p.normalizeClass(["logo",{"default-logo":i.default||!r.gameId}])},null,10,Wie)])]),p.createElementVNode("div",Gie,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(y.value,a=>(p.openBlock(),p.createElementBlock("div",{class:"stat-item",key:a.label},[p.createElementVNode("div",Xie,[p.createElementVNode("div",Hie,p.toDisplayString(a.label),1),p.createElementVNode("div",Jie,[p.createElementVNode("div",Zie,[p.createElementVNode("span",Kie,p.toDisplayString(a.local),1),p.createElementVNode("div",{class:"bar left-bar",style:p.normalizeStyle({width:x(a.local,a.away,"local")+"%"})},null,4)]),p.createElementVNode("div",Yie,[p.createElementVNode("span",Qie,p.toDisplayString(a.away),1),p.createElementVNode("div",{class:"bar right-bar",style:p.normalizeStyle({width:x(a.local,a.away,"away")+"%"})},null,4)])])])]))),128))])],512))}},m6=Bie($ie,[["__scopeId","data-v-06bbe73e"]]),Zg=(r,i)=>{const y=r.__vccOpts||r;for(const[F,K]of i)y[F]=K;return y},eoe={name:"SoccerBall",props:{play:{type:Object,require:!0}},data(){return{currentPlayId:0}},computed:{idGradient(){let r;switch(this.play.st){case"st1g":r="green";break;case"st1y":r="yellow";break;case"st1r":r="red";break;case"st1b":r="blue";break}return r},x(){if(this.isLeftArea)return this.play.x*2.66666666667*58-135;if(this.isLeftPost)return-57;if(this.isGoalArea)return(this.play.x-.391)*4.31034482759*637-37;if(this.isRightPost)return 620;if(this.isRightArea)return(this.play.x-.639)*2.77008310249*65+640},y(){return this.isSuperiorPost?128:340-this.play.y*1371.42857143},isLeftArea(){return this.play.x>=0&&this.play.x<.3738},isLeftPost(){return this.play.x>=.3738&&this.play.x<=.3822},isGoalArea(){return this.play.x>.3822&&this.play.x<.6232},isRightPost(){return this.play.x>=.6232&&this.play.x<=.6266},isRightArea(){return this.play.x>.6266&&this.play.x<=1},isSuperiorPost(){return this.play.x>=.3738&&this.play.x<=.6266&&this.play.y>=.1384&&this.play.y<=.1442}},methods:{onClickOver(r,i){let y={x:this.x<350?r.pageX:r.pageX-120,y:r.clientY,playerName:this.play.playerName,minute:parseInt(this.play.time.split(":")[0])||"",rivalName:this.play.rivalName,rivalLogo:this.play.rivalLogo,playInfo:i};this.$emit("getDataTooltip",y)},onMouseOver(r,i){if(this.currentPlayId!==i.play_id){let y={x:r.pageX+120>=window.innerWidth?r.layerX-120:r.layerX,y:r.layerY+20,playerName:this.play.playerName,minute:parseInt(this.play.time.split(":")[0])||"",rivalName:this.play.rivalName,rivalLogo:this.play.rivalLogo,playInfo:i};this.$emit("show-tooltip",y)}},onMouseLeave(){this.$emit("hide-tooltip")}}},toe=["x","y"],roe=["xlink:href"];function noe(r,i,y,F,K,L){return p.openBlock(),p.createElementBlock("svg",{onMouseover:i[0]||(i[0]=w=>L.onMouseOver(w,y.play)),onMouseleave:i[1]||(i[1]=w=>L.onMouseLeave()),onClick:i[2]||(i[2]=w=>L.onClickOver(w,y.play)),version:"1.1",id:"ball","xmlns:cc":"http://creativecommons.org/ns#","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:rdf":"http://www.w3.org/1999/02/22-rdf-syntax-ns#","xmlns:svg":"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:L.x,y:L.y,viewBox:"0 0 6753 7174.5",style:{"enable-background":"new 0 0 450.2 478.3",cursor:"pointer"},"xml:space":"preserve"},[p.createElementVNode("image",{width:"400",height:"400","xlink:href":y.play.imgData},null,8,roe)],40,toe)}const aoe=Zg(eoe,[["render",noe],["__scopeId","data-v-f203fd76"]]),ioe={key:0,class:"soccer-goal-tooltip__button-play"},ooe={class:"soccer-goal-tooltip__game"},soe={key:0,class:"soccer-goal-tooltip__game__teams-logos"},loe={class:"soccer-goal-tooltip__game__teams-logos__logo"},coe=["src"],uoe={class:"soccer-goal-tooltip__game__teams-logos__logo"},doe=["src"],hoe={class:"soccer-goal-tooltip__game__info"},poe={key:0,class:"soccer-goal-tooltip__game__info__score"},foe={class:"soccer-goal-tooltip__game__info__match-day"},moe={class:"soccer-goal-tooltip__player-and-minute"},goe={class:"soccer-goal-tooltip__player-and-minute__player"},yoe={class:"soccer-goal-tooltip__player-and-minute__player__photo"},voe=["src"],boe={class:"soccer-goal-tooltip__player-and-minute__player__name"},xoe={class:"soccer-goal-tooltip__player-and-minute__minute"},_oe={__name:"SoccerGoalTooltip",props:{play:{type:Object,required:!0},isMobileDevice:{type:Boolean,default:!1}},emits:["close","play"],setup(r,{emit:i}){const y=i;function F(){y("close")}function K(){y("play")}function L(){return null}return p.onBeforeMount(()=>{document.body.addEventListener("click",F,!1)}),p.onBeforeUnmount(()=>{document.body.removeEventListener("click",F,!1)}),(w,t)=>(p.openBlock(),p.createElementBlock("div",{class:"soccer-goal-tooltip",onClick:p.withModifiers(L,["stop","prevent"])},[r.isMobileDevice?(p.openBlock(),p.createElementBlock("div",ioe,[p.createElementVNode("div",{role:"button",class:"soccer-goal-tooltip__button-play__button",onClick:p.withModifiers(K,["stop","prevent"])},t[0]||(t[0]=[p.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10",fill:"none"},[p.createElementVNode("path",{d:"M3.0492 8.92004C2.9831 8.88243 2.92785 8.82624 2.88941 8.75753C2.85097 8.68882 2.83079 8.61018 2.83106 8.53011V1.46888C2.83115 1.38908 2.85146 1.3108 2.88982 1.24236C2.92819 1.17392 2.98318 1.11788 3.04895 1.08019C3.11472 1.0425 3.18881 1.02458 3.26334 1.02832C3.33788 1.03206 3.41007 1.05733 3.47225 1.10145L8.4249 4.63248C8.48147 4.67271 8.52786 4.72726 8.55995 4.79129C8.59204 4.85533 8.60883 4.92685 8.60883 4.9995C8.60883 5.07214 8.59204 5.14367 8.55995 5.2077C8.52786 5.27173 8.48147 5.32629 8.4249 5.36651L3.47225 8.89838C3.41016 8.94259 3.33803 8.96796 3.26352 8.97177C3.18902 8.97559 3.11495 8.95771 3.0492 8.92004ZM3.24397 8.53095L8.19663 4.99991L3.24397 8.53095Z",fill:"#CBEE6B"})],-1)]))])):p.createCommentVNode("",!0),p.createElementVNode("div",ooe,[r.play.homeTeam?(p.openBlock(),p.createElementBlock("div",soe,[p.createElementVNode("div",loe,[p.createElementVNode("img",{src:`https://golstatsimages.blob.core.windows.net/teams-80/${r.play.homeTeam.id}.png`},null,8,coe)]),p.createElementVNode("div",uoe,[p.createElementVNode("img",{src:`https://golstatsimages.blob.core.windows.net/teams-80/${r.play.awayTeam.id}.png`},null,8,doe)])])):p.createCommentVNode("",!0),p.createElementVNode("div",hoe,[r.play.homeTeam?(p.openBlock(),p.createElementBlock("div",poe,p.toDisplayString(r.play.homeTeam.acronym)+" "+p.toDisplayString(r.play.score[0])+":"+p.toDisplayString(r.play.score[1])+" "+p.toDisplayString(r.play.awayTeam.acronym),1)):p.createCommentVNode("",!0),p.createElementVNode("div",foe,p.toDisplayString(r.play.roundAbbreviation),1)])]),p.createElementVNode("div",moe,[p.createElementVNode("div",goe,[p.createElementVNode("div",yoe,[p.createElementVNode("img",{src:`https://golstatsimages.blob.core.windows.net/players-profile/${r.play.playerId}.png`},null,8,voe)]),p.createElementVNode("div",boe,p.toDisplayString(r.play.playerShortName),1)]),p.createElementVNode("div",xoe,p.toDisplayString(r.play.minute)+'"',1)])]))}},woe=Zg(_oe,[["__scopeId","data-v-74a34e4c"]]);function Toe(r){return r.reduce((i,y,F)=>(i[y]=F,i),{})}const koe=["playId","gameId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinateX","coordinateY"];let U2=null;function g6(){return U2||(U2=Toe(koe)),U2}const y6={2:[{category_id:12e3,category_name:"Gol",category_color:"#00FF00",categoryColorName:"green",st:"st1g",translationKey:"goal.goal",generalName:"Goles",singleName:"Gol",imgData:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABU4SURBVHgB7Vt7dJTlnX6++9xnciV3EgyEi1wEVKiIwdpW0Va6ra5ne6y0p931tLZ1u91z9uy2u912265ne051u9t211bxHLultD1yrEVFXCKigGJRIRAQJCEh92Qmc/3mu+7zTSCQQsIE6D97+tOYmcnM972/93d7nucdgT/Z/y8T8Eeye3a2LhMke5UgiSsEOD7XRTNcoers310BFm8+LMBN8HE/HOGoAHHv5pvb2vBHsKvmaOvOVvnId/wrS8rcuxf8RX6jWmZX4fIsLbjuVlvE5iFTermttU3HVbArdrT1P+8JnXwp+Vc1862Hqpa6jWq9hatoCf5sEkzjsc3r9nbiCuyKHK1e+7GvVF+nP8Sf5lDzjD4KKykh2RHBWG8Q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MCjcKj4ZuwD//al1bGjO0Kzqbf/gHrbFFwvsPKsHUF153o3WD7ZLw2vYIEsNZlITzWHM7jyMb/OheU1HU9VTPYab9WfJQ6OSe0CsKv5Al4R9/vqqtB5dpV+VLCBufWRbbsSP+Sck271VHSm8bO6khM2QKBkfJrHILtz8YhLMoiIw6AxXfRSdXt9kxxZ8xgsdxhXbVv23R+PD8xkyfcpfvlLbeSaE1lTF9HhW7aWkOS9aXCoOLNGSVizrsdSnvi4sv8Ljwxc03727DVbQ/2v8lcdYaV61qlF23SlGtqsGh0bpFVapUt6ICsdYwRkPpMSrVnUQRnbruS2xd11b0F43/ZFPY/wGvrSx99fSrawAAAABJRU5ErkJggg=="},{category_id:59800,category_name:"Poste",category_color:"#FFFF00",categoryColorName:"yellow",st:"st1y",translationKey:"goal.goal_post",generalName:"Remates al poste",singleName:"Remate al poste",imgData:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA7CAYAAAAq55mNAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABl2SURBVHgB7Vt5nFTVmT33vnpV1dVNd9NNA91szSKLgqBERREFxSWKiRiXqIlLZjRGTUJinIzJzKhJTOLEySTRmGh0olncoxKNoJEBF0BUFLRlUXYEGpqG3mt5y51z732vqjFiiDp/zG/y/BVVXfXefffcbzvfuU/g78ffj/+Th8D/wnHDnOrqi49vm+4nMpO8lDNICjEpAAZLoaoVRDq+sxRoDkO1yXFksx+qlSkp1jjwFw2f0d2Mj/n42IDecAPSj76QnHVwf3HVl2cGU6rr3HTecfmLgiSihBPdUCAGCaXsF5LnCCh7gn5LiBch1F3JSmfu8MPa2vAxHB8Z6OTp6Bcg9c3TD5NXnHqMU1FeLuFI+5uMQIUh5x8SMD9o0IqvCunB9X04QYAgtOeHEVapLxL8g6sTKnWP6wU31s/GJnyE40MDbZyEatdNXjNzspxz1tRERU1fTk/qScK+Szt4MvCRVB6SBKWt5nP+3QWBl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KY8uwdaRg9RnvnObf/+Bzv+AgerjwSe85nPPLvs9u4xBNMqhqZTEVP1MUDrE7maJh+nPI1MeBpG/eo7ch4DrmNLP+pnKoIHTRFmdpHTc8qTBdNcZ1J76s2ZmqfG2e7qdIZMiS9qyjnsrG7g5XBCKu2yLPnW0f/aXfxgu/1vmLvAhj8du73Nm617/P2V30Kh7Vv3I241PCLP9fwHVBq27dlMZ15KI3oUrr4gonCw9xBHXxjKeVU7VMEMpgeqMUSHWc5xVtPB68uGuHNRIid3HjHGuO+c67258iONDA9XHwvv69Gtp6pmV7Qqub/LQuIXy+KLVFLU4yVp2ItMoPU4cTk1pnBvx0nj/pSR7Fh/F0fotU6oGmwopgjP+9Q4mM1sbBY5bEvnw9sPm4EM/jf2RgPY+JlzmXNLZhovddkxp24l0drdtqeoYg1fP4m5XI+lgDFTYzicGHYONqxPFb5/a7osVafyprCJzx4xzW7rwEY+PDWh83HJHn353/rFnptgtz8y1qYkdPWpsnuVjGomC3jcZPozSRzJ+lKx4maL80UxC8SKNuiAfJB+8ZM7H8yx9fHzsQN97zJlTXb10adf4na2kvewHxlSr9MlHOqjXFg5lW2WVzKUzwabTL/n4/8+I/5fH/wDRbtt32OccVQAAAABJRU5ErkJggg=="},{category_id:53800,category_name:"Fuera",category_color:"#DADADA",categoryColorName:"grey",st:"st1r",translationKey:"goal.missed",generalName:"Remates desviados",singleName:"Remate desviado",imgData:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA7CAYAAAAq55mNAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABwdSURBVHgB7Vt3fFRlun5Omd7Se0ISeglEigpKUxELC0i/IKsLrnLFVdfVu+oWdW13vateu7J2ViyAqCBLEZDeRIIQWoB00jPJZNqZM+ec+37nzAzB1bu2+8f9/fbjNyaZcs73vO/zPm/5RuBf61/r/+Xi8H+0Tq3PzEjLHDo+aLnhwqi1fy+Oc/XTOMGsxW/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KrcltlOaiMKfKuHJfPiYOjKBvfjLSnX6s2J2hNfiUR5e8uucP33Xv38mj8bVy5erAoMGlS1I8LtagjeWEAu7SVCvs9joq5SQs2+yBNbQDpUVhREwD9XzKFjvi6+pshzspRT/OY2ocoflwQBxHDW0X5WTqNVNDuKy0E31TyCAtdnh9HnqXDRHKs6c7MrD98xQ6qrBoVS18tWr2z3nxpYOvfo+t//CvsS5d+lpfkVPfo/6y1N71OnUvzXhqbTb2HFbJ+kHMmzIYjpzroIhJkEN+2EhmRZNVT+zGcT6vf82OtVOmaDmNXN6BRS2HlQp7moziZIsFXzS7UO5z0iDOg7RWTSrJVt6aNqL6/gHTfG3fc7s//ovJbz6YOys/ueHR416hV22nHe9uLUbjWTo0IkpOGamhb14qCofdqk8r2Let9YHWN0wFGZ1NVNnY1e1wqPuIzcQSnn3R1Q2RC3/ERTt/O2AGKvAD10/2VfPeiwsmdUqhGZY2+3S5Md0ZbKYhWCCif7Nk0eQBGDriChKiVP0cx1Dic03Bua8ExL63y77fx2tNotb0EhdqXH3N3IcP4keun/x/Hki+otgjJluuEuusM7Q2rn9IVnpJ4ahlVHEE1105GNkFI6BZswmQ+Vydxr4eBK6JYrmZ/PyZwIurD5WXb3vwwQdV/ETr/+z/kogv2iz/9sr1AwVBzWpqas6ym+GZMTpfuHjUFZLFU9AV5YWaYDByeuHChWfxr/Xj1/8AcWYIcU4PRoUAAAAASUVORK5CYII="},{category_id:6e4,category_name:"Parado por el portero",category_name_femenil:"Parado por la portera",category_color:"#00B8FF",categoryColorName:"blue",st:"st1b",translationKey:"goal.saved_by_goalkeeper",generalName:"Atajadas de portero",singleName:"Atajada",imgData:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABqKSURBVHgB7VpplFxlmX7uVrequvbeO71lX0hCQkAWgZEgiONyBhfE7bhvnMFt9Lj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XdxG7JIxryl910fT7of2XfPAk/4c7lkF2j7WX7DmYsWdvXyxoazxqimlMNNHsBUY7DNjyTr6BODMhVII6+TEzu8ZfFHbLwQEeTXkjp3m7Sa4rOyHufd5q+IufuKeH2VvwzM4njHQ9mGcuWmb2mq9yytpL/Sq5qAn5B72jToVguH16xAbOo/u3BPUpu1fabdLuHbq8K3sQJvgOd9zPe07D/3wRRN4Fo5nDejxh75x+3la2XuBV28sJ9hxz3Y2pjJ1Iz4wppipk6lgDLIgEDqw0In0qgf9MIu4exnRhyzPvHH/j196D57l468C9PGO2OYL+1qLxQFvaUpNjw976ZUXNAralqW5n79gHv9/PHvH/wAARBI8ZVjYSQAAAABJRU5ErkJggg=="}],3:[{category_id:12e3,category_name:"Gol Recibido",category_color:"#FF0000",categoryColorName:"red",st:"st1r",translationKey:"goal.goal_received",generalName:"Goles recibidos",singleName:"Gol recibido",imgData:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADkAAAA5CAYAAACMGIOFAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABf/SURBVHgB5Vp5tF1Vef/2PsOd3n33jXkvCSFkQWJ0AREhWWHQimltIeKqZRDFVrtWHUqxtsvaVVuwWkBFlqVYdHWJFau2pShasS4kihWWAYEQDGGSMUrGN9333p3OPefsvfv79hnuDUMMAfuPJ+/mTufss3/7+77f9/u+fYl+Aw5B/0+HGRur4qnadt3l2WdKiEY1ihbFzMxe+jUevxaQDAhg1ipjNhnHnKCkfK2S/ogW0tOCHIlzNB6ScRqjHKW6eLtTxvHTjta343Fv5RUE/oqCbE1Orn9W6w89acKNp5SjpbE7WIpFRUghyJAFZZ9F32vCd7JvDKlUR+q45UTqPi8Mv/hKAH7ZINlq08J99xYV/ZlwnaM6jlc5s+wI/MO3DmmAgLWSc3E3gZcM2sULz3RxRheTiPG5IravsZDxEB4ZpQI3ojps/TUv1NceKdiXBbI5MbHpW1H8yZ3GnPTWwao36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XED9hzOLHs04FbyJJ/vV/a1UzxjIvQgFirGHBgx5hZ0DL59pOCy4xUD2X8A8FoPgPdhv+aJWL32aaWW7NXan1WxuwobFWv9Ao27vt0I9vlncQAGUOGAMdurxtyFOL69FsePvdCPAY/k+D9q7vgxYZEy9AAAAABJRU5ErkJggg=="},{category_id:59800,category_name:"Poste",category_color:"#FFFF00",categoryColorName:"yellow",st:"st1y",translationKey:"goal.goal_post",generalName:"Remates al poste",singleName:"Remate al poste",imgData:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA7CAYAAAAq55mNAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABl2SURBVHgB7Vt5nFTVmT33vnpV1dVNd9NNA91szSKLgqBERREFxSWKiRiXqIlLZjRGTUJinIzJzKhJTOLEySTRmGh0olncoxKNoJEBF0BUFLRlUXYEGpqG3mt5y51z732vqjFiiDp/zG/y/BVVXfXefffcbzvfuU/g78ffj/+Th8D/wnHDnOrqi49vm+4nMpO8lDNICjEpAAZLoaoVRDq+sxRoDkO1yXFksx+qlSkp1jjwFw2f0d2Mj/n42IDecAPSj76QnHVwf3HVl2cGU6rr3HTecfmLgiSihBPdUCAGCaXsF5LnCCh7gn5LiBch1F3JSmfu8MPa2vAxHB8Z6OTp6Bcg9c3TD5NXnHqMU1FeLuFI+5uMQIUh5x8SMD9o0IqvCunB9X04QYAgtOeHEVapLxL8g6sTKnWP6wU31s/GJnyE40MDbZyEatdNXjNzspxz1tRERU1fTk/qScK+Szt4MvCRVB6SBKWt5nP+3QWBlVsF3uBr3S6J1bsEWjrtNWPqFAp5YG8WaOgnMLw6xJgBwNhB6p4RDcGN4z4k4A8F9O4bEjN/+yJ+feWnU4Mbh0ljJW097ZaOY10yrXxkgjwcRYsxQPd0AUvXScxnFC5eJ7A3b++urwmicRPapXnxyCqBb5wc4vtPAFUVAjUpgR3twMHD0DmyXn79+/+Ruwt/4/E3AV34UF3FD+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fwHVBq27dlMZ15KI3oUrr4gonCw9xBHXxjKeVU7VMEMpgeqMUSHWc5xVtPB68uGuHNRIid3HjHGuO+c67258iONDA9XHwvv69Gtp6pmV7Qqub/LQuIXy+KLVFLU4yVp2ItMoPU4cTk1pnBvx0nj/pSR7Fh/F0fotU6oGmwopgjP+9Q4mM1sbBY5bEvnw9sPm4EM/jf2RgPY+JlzmXNLZhovddkxp24l0drdtqeoYg1fP4m5XI+lgDFTYzicGHYONqxPFb5/a7osVafyprCJzx4xzW7rwEY+PDWh83HJHn353/rFnptgtz8y1qYkdPWpsnuVjGomC3jcZPozSRzJ+lKx4maL80UxC8SKNuiAfJB+8ZM7H8yx9fHzsQN97zJlTXb10adf4na2kvewHxlSr9MlHOqjXFg5lW2WVzKUzwabTL/n4/8+I/5fH/wDRbtt32OccVQAAAABJRU5ErkJggg=="},{category_id:53800,category_name:"Fuera",category_color:"#DADADA",categoryColorName:"grey",st:"st1b",translationKey:"goal.missed",generalName:"Remates desviados",singleName:"Remate desviado",imgData:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA7CAYAAAAq55mNAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABwdSURBVHgB7Vt3fFRlun5Omd7Se0ISeglEigpKUxELC0i/IKsLrnLFVdfVu+oWdW13vateu7J2ViyAqCBLEZDeRIIQWoB00jPJZNqZM+ec+37nzAzB1bu2+8f9/fbjNyaZcs73vO/zPm/5RuBf61/r/+Xi8H+0Tq3PzEjLHDo+aLnhwqi1fy+Oc/XTOMGsxW/M6bdmfzbToxE8v0/guH1er3fboEGDIviJ108K1FY64ZJLeuaPXnCNd/Klw3JHyvabEYUZomCCwPMGOHpwsYdG/zheBK+pBNlHjyC7iqQK7rUQbas4Ofx5Xl5eLX6C9ZMAtZZOHTd1eN4DU64aP650UH+YRStdWYt7DRoBUch3nOoDDwUQ02ETDsGmrIMY3QGodfRQCbZA77XT5ywAnwp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YOvfo+t//CvsS5d+lpfkVPfo/6y1N71OnUvzXhqbTb2HFbJ+kHMmzIYjpzroIhJkEN+2EhmRZNVT+zGcT6vf82OtVOmaDmNXN6BRS2HlQp7moziZIsFXzS7UO5z0iDOg7RWTSrJVt6aNqL6/gHTfG3fc7s//ovJbz6YOys/ueHR416hV22nHe9uLUbjWTo0IkpOGamhb14qCofdqk8r2Let9YHWN0wFGZ1NVNnY1e1wqPuIzcQSnn3R1Q2RC3/ERTt/O2AGKvAD10/2VfPeiwsmdUqhGZY2+3S5Md0ZbKYhWCCif7Nk0eQBGDriChKiVP0cx1Dic03Bua8ExL63y77fx2tNotb0EhdqXH3N3IcP4keun/x/Hki+otgjJluuEuusM7Q2rn9IVnpJ4ahlVHEE1105GNkFI6BZswmQ+Vydxr4eBK6JYrmZ/PyZwIurD5WXb3vwwQdV/ETr/+z/kogv2iz/9sr1AwVBzWpqas6ym+GZMTpfuHjUFZLFU9AV5YWaYDByeuHChWfxr/Xj1/8AcWYIcU4PRoUAAAAASUVORK5CYII="},{category_id:6e4,category_name:"Parado por el portero",category_name_femenil:"Parado por la portera",category_color:"#00B8FF",categoryColorName:"blue",st:"st1g",translationKey:"goal.saved_by_goalkeeper",generalName:"Atajadas de portero",singleName:"Atajada",imgData:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABqKSURBVHgB7VpplFxlmX7uVrequvbeO71lX0hCQkAWgZEgiONyBhfE7bhvnMFt9LjNCI6j4/Eojjpu44IOLqOICiOIKCAoBIEECEmAkK27093VXdXdtW93m+f77q1K8ICA4PyZuUl1bffe73u+932f932fr4D/I4eC/4Vj9F2700NmPNn5wOSjyf+a6ZX3DWYP/Epp4q98/FWADm9/8XNWnLB4Tkv74JmqmtnmqUMDihJS/NH4xwsGFy891XM8HFRU7Fag/rpWNX73wFd69+NZPp49oAM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D/3wRRN4Fo5nDejxh75x+3la2XuBV28sJ9hxz3Y2pjJ1Iz4wppipk6lgDLIgEDqw0In0qgf9MIu4exnRhyzPvHH/j196D57l468C9PGO2OYL+1qLxQFvaUpNjw976ZUXNAralqW5n79gHv9/PHvH/wAARBI8ZVjYSQAAAABJRU5ErkJggg=="}]},Soe={id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 888.5 651.6",style:{"enable-background":"new 0 0 888.5 651.6"},"xml:space":"preserve"},Eoe={__name:"SoccerGoal",props:{game:{type:Object,default:()=>({})},players:{type:Array,default:()=>[]},teams:{type:Array,default:()=>[]},plays:{type:Array,default:()=>[]},visualizationType:{type:String,default:"game"},type:{type:String,default:"offensive"},categoriesSelected:{type:Array,default:()=>[]}},emits:["openmedia"],setup(r,{emit:i}){const y=g6(),F=i,K=r,L=p.ref({}),w=p.ref(!1),t=p.ref({left:"0"}),v=p.ref(null),d=p.ref(null),e=p.ref([]),x=p.computed(()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)),m=p.computed(()=>K.plays),b=p.computed(()=>m.value.map(f=>{let g={},k=0,E=null,S=null,M="",N="";if(f[y.momentOfPlay]){const A=f[y.momentOfPlay].split(":");N=Number(A[0])}if(K.game){const A=f[y.playingAs]===1?K.game.awayTeam.team_id:K.game.homeTeam.team_id;k=f[y.playingAs]===1?K.game.homeTeam.team_id:K.game.awayTeam.team_id,g=K.teams.find(T=>T.team_id===A),g=g||{},E={id:K.game.homeTeam.team_id,acronym:K.game.homeTeam.acronym,name:K.game.homeTeam.team_name},S={id:K.game.awayTeam.team_id,acronym:K.game.awayTeam.acronym,name:K.game.awayTeam.team_name}}const C=K.players.find(A=>A.player_id===f[y.playerId]),P=e.value.find(A=>A.category_id===f[y.categoryId]);if(C){const A=C.player_name||C.name||",";let[T,O]=A.split(",");O=O.trim(),M=`${O.charAt(0)}. ${T.split(" ")[0].trim()}`}return{play_id:f[y.playId],playerName:C?C.player_name:"",playerShortName:M,playerId:C?C.player_id:"",time:f[y.momentOfPlay],minute:N,category_id:f[y.categoryId],category_color:e.value.find(A=>A.category_id===f[y.categoryId]).category_color,st:e.value.find(A=>A.category_id===f[y.categoryId]).st,category_type:f[y.categoryType],x:f[y.coordinateX],y:f[y.coordinateY],rivalName:g.team_name||"",rivalLogo:g.logo||"",rivalId:g.team_id||"",homeTeam:E,awayTeam:S,score:K.game?K.game.score:["",""],roundAbbreviation:K.game?K.game.roundAbbreviation:"",categoryColorName:P.categoryColorName,generalName:P.generalName,singleName:P.singleName,imgData:P.imgData,teamId:k}}));p.watch(()=>K.type,f=>{e.value=y6[f==="offensive"?2:3]},{immediate:!0});function h(f){const g=x.value?126:80;if(d.value=f.playInfo,L.value=f.playInfo,v.value){const k=v.value.getBoundingClientRect();t.value.left=f.x+77>k.width?`${k.width-158}px`:f.x-77<0?"4px":`${f.x-77}px`,f.y+g>k.height?t.value.top=`${f.y-g-30}px`:t.value.top=`${f.y}px`}w.value=!0}function n(){L.value={},t.value={top:"0",left:"0"},w.value=!1}function a(f){x.value||u(f.playInfo)}function u(f){if(!f)return;let g=[];if(K.sectionType==="team")if(K.type==="offensive")switch(f.category_id){case 12e3:g=[12,55,"35_r","54_r"];break;case 53800:g=[538,541,545,548,159,168,177,331,334];break;case 59800:g=[598,600,602,604,582,580,572,574,578];break;case 6e4:g=[598,600,602,604,582,580,572,574,578];break}else switch(f.category_id){case 12e3:g=[257,40];break;case 53800:g=["538_r","541_r","545_r","548_r","159_r","168_r","177_r","331_r","334_r"];break;case 59800:g=["598_r","600_r","602_r","604_r","582_r","580_r","572_r","574_r","578_r"];break;case 6e4:g=[39];break}else switch(f.category_id){case 12e3:g=K.players[0].position_id==1?[40]:[12,55];break;case 53800:g=[538,541,545,548,159,168,177,331,334];break;case 59800:g=[598,600,602,604,582,580,572,574,578];break;case 6e4:g=K.players[0].position_id==1?[39]:[598,600,602,604,582,580,572,574,578];break}const k={tournaments:[],categoryIds:g,categorySingleName:K.type==="offensive"&&K.sectionType==="player"&&f.category_id===6e4?"Remate a destino":f.generalName,mainSectionType:1,playListType:K.sectionType==="team"?3:2,matchResult:[1,2],playData:{playId:f.play_id},isPost:f.category_id===59800?1:0,advancedFilter:{playListTitle:K.type==="offensive"&&K.sectionType==="player"&&f.category_id===6e4?"Remates a destino":f.generalName,mainCategoryId:{},fieldSections:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]}};K.sectionType==="team"?(k.playerIds=[],k.teamId=f.teamId):(k.playerIds=[K.players[0].player_id],k.teamId=0),n(),F("open-media",k)}function s(){u(d.value)}function l(){n()}return(f,g)=>(p.openBlock(),p.createElementBlock("div",{class:"soccer-goal",ref_key:"soccerGoal",ref:v},[w.value?(p.openBlock(),p.createElementBlock("div",{key:0,class:"soccer-goal__tooltip",style:p.normalizeStyle(t.value)},[p.createVNode(woe,{"is-mobile-device":x.value,play:L.value,onPlay:s,onClose:l},null,8,["is-mobile-device","play"])],4)):p.createCommentVNode("",!0),(p.openBlock(),p.createElementBlock("svg",Soe,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(b.value,(k,E)=>(p.openBlock(),p.createBlock(aoe,{class:"hover-ball",play:k,key:E,onShowTooltip:h,onHideTooltip:n,onGetDataTooltip:a},null,8,["play"]))),128))]))],512))}},Coe=Zg(Eoe,[["__scopeId","data-v-db547071"]]),Aoe=(r,i)=>{const y=r.__vccOpts||r;for(const[F,K]of i)y[F]=K;return y},Moe={key:1},Loe={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Poe=["fill"],Noe={key:0,class:"checkbox__teams"},Ooe={class:"checkbox__teams__logo"},Roe=["src"],zoe={class:"checkbox__teams__logo"},Doe=["src"],Ioe={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(r){return["left","right","top","bottom"].includes(r)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(r,{emit:i}){const y=r;p.useCssVars(d=>({"7bd9d47b":r.width,"34dc7ddc":r.height}));const F=p.ref(!1),K=p.computed(()=>{const d={color:y.boxValueColor,"font-family":y.fontFamily,height:y.boxWidthAndHeight,width:y.boxWidthAndHeight,minWidth:y.boxWidthAndHeight,"border-radius":y.boxBorderRadius,"margin-top":y.boxMarginTop};return F.value?(d["background-color"]=y.boxBackgroundColor,d.border=`solid ${y.boxBorderWidth} ${y.boxBackgroundColor}`):d.border=`solid ${y.boxBorderWidth} ${y.boxBorderColor}`,d}),L=p.computed(()=>({"font-family":y.boxValueFontFamily,"font-size":y.boxValueFontSize,color:y.boxValueColor,"line-height":1})),w=p.computed(()=>{const d={color:y.labelColor,"font-family":y.fontFamily,"font-size":y.labelFontSize,"white-space":y.labelWhiteSpace,"text-align":y.boxPosition==="top"||y.boxPosition==="bottom"?"center":y.boxPosition};return(y.boxPosition==="left"||y.boxPosition==="right")&&(d[`margin-${y.boxPosition}`]=y.isBoxOnly?"0":y.teamsIds?"8px":"10px"),d});p.watch(()=>y.modelValue,d=>{d!==F.value&&(F.value=d)},{immediate:!0});function t(){y.avoidInteraction||!F.value&&y.avoidToCheck||(F.value=!F.value,i("update:modelValue",F.value))}function v(d){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${d}.png`}return(d,e)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["checkbox",`box-${r.boxPosition}`]),onClick:t},[p.createElementVNode("div",{class:"checkbox__box",style:p.normalizeStyle(K.value)},[F.value?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[y.boxValue?(p.openBlock(),p.createElementBlock("div",{key:0,class:"checkbox__box__value",style:p.normalizeStyle(L.value)},p.toDisplayString(r.boxValue),5)):(p.openBlock(),p.createElementBlock("div",Moe,[(p.openBlock(),p.createElementBlock("svg",Loe,[p.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:r.boxValueColor},null,8,Poe)]))]))],64)):p.createCommentVNode("",!0)],4),r.teamsIds&&r.teamsIds.length?(p.openBlock(),p.createElementBlock("div",Noe,[p.createElementVNode("div",Ooe,[p.createElementVNode("img",{src:v(r.teamsIds[0]),alt:""},null,8,Roe)]),p.createElementVNode("div",zoe,[p.createElementVNode("img",{src:v(r.teamsIds[1]),alt:""},null,8,Doe)])])):p.createCommentVNode("",!0),p.createElementVNode("div",{class:"checkbox__label",style:p.normalizeStyle(w.value)},p.toDisplayString(r.label),5)],2))}},Foe=Aoe(Ioe,[["__scopeId","data-v-b6f124d8"]]);function Boe(r,i){return r.reduce((y,F)=>{switch(F[i.categoryType]){case 1:y.possession.push(F);break;case 2:y.offensive.push(F);break;case 3:y.defensive.push(F);break}return y},{possession:[],offensive:[],defensive:[]})}const Voe={key:0,class:"goal-data__title"},Uoe={class:"goal-data__filters"},joe={key:1},qoe=["src"],Woe={__name:"GSC-GoalData",props:{isPreMatch:{type:Boolean,default:!1},game:{type:Object,default:()=>null},team:{type:Object,default:()=>({})},player:{type:Object,default:()=>({})},visualizationType:{type:String,default:"game"},isHomeTeamForAnalysis:{type:Boolean,default:!0},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},analysisType:{type:String,default:"offensive"},canPlayVideos:{type:Boolean,default:!0},canInteract:{type:Boolean,default:!0}},emits:["openmedia"],setup(r,{emit:i}){let y=null;const F=i,K=r,L={gameId:90209,id:90209,seasonId:1943,regularSeasonId:1933,matchday_name:"Playoffs 6",status:1,score:[2,0],game_status:1,dateTimeUTC:"2025-05-26T00:00:00Z",homeTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/18.png",team_id:18,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/2.png",team_id:2,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/2.png",colloquial_name:"América",acronym:"AME",team_name:"America"},is_live:0,minutes:{home_goals_minutes:["L. Garcia 65'","A. Vega 82'"],visiting_goals_minutes:[],home_yellow_cards_minutes:["L. Garcia 90'","A. Vega 90 + 3'"],away_yellow_cards_minutes:["S. Caceres 78'"],home_red_cards_minutes:[],away_red_cards_minutes:[]}},w=p.ref([]),t=p.ref(null),v=p.ref(0),d=p.ref({home:{offensive:[],defensive:[]},away:{offensive:[],defensive:[]}}),e=p.computed(()=>K.game||L),x=p.computed(()=>e.value?K.isHomeTeamForAnalysis?e.value.homeTeam.team_id:e.value.awayTeam.team_id:0),m=p.computed(()=>w.value.reduce((f,g)=>(g.isSelected&&f.push(g.id),f),[])),b=p.computed(()=>({"--filters-gap":v.value>440?"16px":"8px"})),h=p.computed(()=>{const f=K.visualizationType==="game"?e.value.homeTeam.team_id===x.value:!1;return d.value[f?"home":"away"][K.analysisType].map(g=>({...g,isSelected:m.value.includes(g.category_id),teamId:K.team.teamId||e.value.homeTeam.team_id,playerId:K.player.playerId||0,gameId:e.value.id||0}))});p.watch(()=>K.analysisType,f=>{w.value=y6[f==="offensive"?2:3].map(g=>({id:g.category_id,name:e.value.isFemale&&g.category_id==6e4?g.category_name_femenil:g.category_name,isSelected:!0,imgData:g.imgData}))},{immediate:!0}),p.watch(()=>e.value.id,f=>{f&&l()},{immediate:!0});function n(){y=new ResizeObserver(f=>{for(const g of f)v.value=g.contentRect.width}),y.observe(t.value)}function a(f){K.canPlayVideos&&(f.seasonId=e.value.seasonId,F("openmedia",f))}async function u({seasonId:f,teamId:g}){try{const k=`https://3xbsvx7zre.execute-api.us-west-2.amazonaws.com/prod/goalsTeamBySeason/${f}/${g||""}`;return(await(await fetch(k,{method:"GET",headers:{Authorization:K.token||""}})).json())[0]}catch(k){return Promise.reject(k)}}async function s({seasonId:f,gameId:g,teamId:k}){try{return(await(await fetch(`https://3xbsvx7zre.execute-api.us-west-2.amazonaws.com/prod/goalsTeamBySeason/${f}/games/${g}/teams/${k}`,{headers:{Authorization:K.token||""}})).json())[0]}catch(E){return Promise.reject(E)}}async function l(){if(e.value.homeTeam&&e.value.awayTeam&&K.token){const f=[];K.isPreMatch?(f.push(u({seasonId:e.value.seasonId,teamId:e.value.homeTeam.team_id})),f.push(u({seasonId:e.value.seasonId,teamId:e.value.awayTeam.team_id}))):(f.push(s({seasonId:e.value.seasonId,gameId:e.value.id,teamId:e.value.homeTeam.team_id})),f.push(s({seasonId:e.value.seasonId,gameId:e.value.id,teamId:e.value.awayTeam.team_id})));const g=await Promise.all(f);for(const k of g){const{offensive:E,defensive:S}=Boe(k.data_combination,g6());k.team_id===e.value.homeTeam.team_id?(d.value.home.offensive=E,d.value.home.defensive=S):(d.value.away.offensive=E,d.value.away.defensive=S)}}}return p.onMounted(()=>{n()}),(f,g)=>(p.openBlock(),p.createElementBlock("div",{ref_key:"goalData",ref:t,class:"goal-data",style:p.normalizeStyle(b.value)},[r.canPlayVideos?(p.openBlock(),p.createElementBlock("div",Voe,"Haz click en un balón para ver el video")):p.createCommentVNode("",!0),p.createVNode(Coe,p.mergeProps(K,{plays:h.value,"categories-selected":m.value,onOpenMedia:a}),null,16,["plays","categories-selected"]),p.createElementVNode("div",Uoe,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(w.value,k=>(p.openBlock(),p.createElementBlock("div",{key:k.id,class:"goal-data__filters__filter"},[r.canInteract?(p.openBlock(),p.createBlock(p.unref(Foe),{key:0,modelValue:k.isSelected,"onUpdate:modelValue":E=>k.isSelected=E,label:k.name,"label-font-size":v.value>440?"11px":"9px"},null,8,["modelValue","onUpdate:modelValue","label","label-font-size"])):(p.openBlock(),p.createElementBlock("div",joe,p.toDisplayString(k.name),1)),p.createElementVNode("img",{src:k.imgData},null,8,qoe)]))),128))])],4))}},v6=Zg(Woe,[["__scopeId","data-v-479a65b2"]]),Kg=(r,i)=>{const y=r.__vccOpts||r;for(const[F,K]of i)y[F]=K;return y},Goe={name:"tooltip",props:{data:{type:Object,required:!0}},computed:{positionTooltip(){return{top:`${this.data.y}px`,left:`${this.data.x}px`}},showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(r){this.visible=!1}}};function Xoe(r,i,y,F,K,L){return p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["box-tooltip",L.showTooltip]),style:p.normalizeStyle(L.positionTooltip),onClick:i[0]||(i[0]=(...w)=>L.tooltipClick&&L.tooltipClick(...w))},[p.renderSlot(r.$slots,"default",{},void 0,!0)],6)}const Hoe=Kg(Goe,[["render",Xoe],["__scopeId","data-v-740977d0"]]),Joe={name:"SoccerChalkboardXg",components:{Tooltip:Hoe},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:Object,default:()=>({})},rivalTeam:{type:Object,default:()=>({})}},data(){return{negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}},computed:{preparedPlays(){return this.plays.map(r=>({...r,playingAs:r.playing_as,teamId:r.team_id,photo:r.photo,categoryId:r.category_id,matchResult:r.match_result,matchLapse:r.matchlapse,x1:r.x1*100,y1:r.y1*100,x2:r.x2*100,y2:r.y2*100,x3:r.x3*100,y3:r.y3*100,xGi:r.xG1,xGf:r.xG2}))},localCategories(){return this.categories.map((r,i)=>({id:i,name:r.name,negative:r.negative||!1,color:r.color,points:r.points,numPoints:r.points.length,categories:r.categories,invert:r.invert||[]}))},graphPlays(){let r=this.localCategories.reduce((i,y)=>[...i,y.categories],[]);return this.preparedPlays.filter(i=>this.findCategoryInPlay(r,i)).reduce((i,y)=>{let F=this.localCategories.find(K=>this.findCategoryInPlay(K.categories,y));if(F){let K={category:F.id,categoryName:F.name,arrowColor:F.negative?this.negativeColor:F.color,arrowMarkerColor:F.negative?"url(#arrow-negative)":`url(#arrow-${F.id})`,markerColor:F.color,jersey:y.jersey_number,matchlapse:y.matchLapse,playerName:y.player_name,photo:y.photo,rivalLogo:y.rival_id,x1:F.invert.includes(y.categoryId)?100-y[`x${F.points[0]}`]:y[`x${F.points[0]}`],y1:F.invert.includes(y.categoryId)?100-y[`y${F.points[0]}`]:y[`y${F.points[0]}`],x2:F.invert.includes(y.categoryId)?100-y[`x${F.points[1]}`]:y[`x${F.points[1]}`],y2:F.invert.includes(y.categoryId)?100-y[`y${F.points[1]}`]:y[`y${F.points[1]}`],x3:F.invert.includes(y.categoryId)?100-y[`x${F.points[2]}`]:y[`x${F.points[2]}`],y3:F.invert.includes(y.categoryId)?100-y[`y${F.points[2]}`]:y[`y${F.points[2]}`],momentOfPlay:y.moment_of_play,isOwnGoal:F.invert.includes(y.categoryId),xGi:y.xGi,xGf:y.xGf};i.push(K)}return i},[])}},methods:{findCategoryInPlay(r,i){return r.find(y=>typeof y=="number"?y===i.categoryId:y.includes(i.categoryId))},onMouseOver(r,i){this.dataPlay.playerName=i.playerName||"",this.dataPlay.photo=i.photo||"",this.dataPlay.minute=parseInt(i.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=i.rivalLogo||"",this.dataPlay.categoryName=i.categoryName||"",this.dataPlay.rivalName=this.rivalTeam.colloquial_name,this.dataPlay.xGi=String(i.xGi),this.dataPlay.xGf=String(i.xGf),this.dataPlay.isOwnGoal=i.isOwnGoal,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Zoe={class:"soccer-chalkboard-xg"},Koe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},Yoe={xmlns:"http://www.w3.org/2000/svg",viewBox:"30 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},Qoe=["id"],$oe=["fill"],ese=["id"],tse=["x1","y1","x2","y2","stroke"],rse=["x1","y1","x2","y2","stroke","marker-end"],nse=["onMouseover"],ase=["x","y","fill"],ise=["x","y"];function ose(r,i,y,F,K,L){return p.resolveComponent("Tooltip"),p.openBlock(),p.createElementBlock("div",Zoe,[(p.openBlock(),p.createElementBlock("svg",Koe,[(p.openBlock(),p.createElementBlock("svg",Yoe,[p.createElementVNode("defs",null,[i[1]||(i[1]=p.createElementVNode("marker",{id:"arrow-negative",viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[p.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:"red"})],-1)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(L.localCategories,w=>(p.openBlock(),p.createElementBlock("marker",{key:`arrow-color-${w.id}`,id:`arrow-${w.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[p.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:w.color},null,8,$oe)],8,Qoe))),128)),i[2]||(i[2]=p.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[p.createElementVNode("image",{"xlink:href":"https://golstatsimages.blob.core.windows.net/todoelfut/fieldbg.png",width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1))]),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(L.graphPlays,w=>(p.openBlock(),p.createElementBlock("g",{key:w.id,id:`play-${w.playId}`},[p.createElementVNode("line",{x1:`${w.x1}%`,y1:`${w.y1}%`,x2:`${w.x2}%`,y2:`${w.y2}%`,stroke:w.arrowColor,"stroke-width":"2"},null,8,tse),p.createElementVNode("line",{x1:`${w.x2}%`,y1:`${w.y2}%`,x2:`${w.x3}%`,y2:`${w.y3}%`,stroke:w.arrowColor,"stroke-width":"2","marker-end":w.arrowMarkerColor},null,8,rse),p.createElementVNode("g",{onMouseover:t=>L.onMouseOver(t,w),onMouseleave:i[0]||(i[0]=(...t)=>L.onMouseLeave&&L.onMouseLeave(...t)),class:"is-pointer"},[p.createElementVNode("rect",{x:`${w.x1}%`,y:`${w.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:w.markerColor,stroke:"#999",rx:"14",ry:"14"},null,8,ase),p.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${w.x1}%`,y:`${w.y1}%`,dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif"},p.toDisplayString(w.jersey),9,ise)],40,nse)],8,ese))),128))]))])),p.createCommentVNode("",!0)])}const sse=Kg(Joe,[["render",ose],["__scopeId","data-v-0b19a10a"]]),b6=(r,i)=>{let y={};return r.forEach((F,K)=>{K==3&&(i[0]==35||i[0]==54)&&(i[K]==2?i[K]=1:i[K]=2),K==2&&(i[0]==35||i[0]==54)&&(i[K]==1?i[K]=2:i[K]==2&&(i[K]=1)),y[F]=i[K]}),y};(function(){function r(i,y,F){return typeof F>"u"||+F==0?Math[i](y):(y=+y,F=+F,isNaN(y)||!(typeof F=="number"&&F%1===0)?NaN:(y=y.toString().split("e"),y=Math[i](+(y[0]+"e"+(y[1]?+y[1]-F:-F))),y=y.toString().split("e"),+(y[0]+"e"+(y[1]?+y[1]+F:F))))}Math.ceil10||(Math.ceil10=function(i,y){return r("ceil",i,y)})})();function lse(r,i){let y=i*-1;return Math.ceil10(r,y)}const x6=[12,55,35,54],_6=[510],w6=[330,331,333,334,423,424,343,344],T6=new Set(x6),k6=new Set(_6),S6=new Set(w6),j2=[{name:"Goles",color:"#336DFF",points:[1,2,3],categories:x6,invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#7ED321",points:[1,2,3],categories:_6},{name:"Remates con cabeza",color:"#990BFF",points:[1,2,3],categories:w6}],cse={name:"XgLocal",components:{SoccerChalkboard:sse},props:{game:{type:Object,default:()=>({})},isTitleVisible:{type:Boolean,default:!0},isPostMatch:{type:Boolean,default:!0},containerWidth:{type:Number,default:0},isHomeTeamForAnalysis:{type:Boolean,default:!0},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},data(){return{categories:j2,xgData:[],xgLocalPlays:[],xgAwayPlays:[]}},computed:{style(){return{"--flex-direction":this.containerWidth<480?"column":"row","--width-info":this.containerWidth<480?"100%":"40%"}},team(){return!this.game||!this.game.homeTeam||!this.game.awayTeam?{}:this.isHomeTeamForAnalysis?this.game.homeTeam:this.game.awayTeam},rivalTeam(){return!this.game||!this.game.homeTeam||!this.game.awayTeam?{}:this.isHomeTeamForAnalysis?this.game.awayTeam:this.game.homeTeam},xgPlays(){return this.isHomeTeamForAnalysis?this.xgLocalPlays:this.xgAwayPlays},goalsQty(){const r=j2.find(i=>i.name==="Goles");return this.xgPlays.filter(i=>r.categories.includes(i.category_id)).length},shotsOnGoalQty(){return this.xgPlays.filter(r=>r.category_id===510).length},headQty(){const r=j2.find(i=>i.name==="Remates con cabeza");return this.xgPlays.filter(i=>r.categories.includes(i.category_id)).length},xGLocal(){const r=new Set;let i=this.xgPlays.reduce((y,F)=>(r.has(F.moment_of_play)||(r.add(F.moment_of_play),y+=F.xG2),y),0);return lse(i,2)},gxInfoItems(){return[{title:"Goles",value:this.goalsQty},{title:"Tiros a Gol",value:this.shotsOnGoalQty},{title:"Remates con cabeza",value:this.headQty},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{game:{handler(r,i){r&&r.id&&(!i||i.id!==r.id)&&this.fillXgData()},immediate:!0,deep:!0}},methods:{async fetchXgData(){try{const r=this.isPostMatch?`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${this.game.id}/teams/${this.game.homeTeam.team_id}/${this.game.awayTeam.team_id}`:`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${this.game.seasonId}/teams/${this.game.homeTeam.team_id}/${this.game.awayTeam.team_id}`,i=await(await fetch(r,{method:"GET",headers:{Authorization:this.token}})).json();return console.log("Fetched xG data:",i),i||{local_team:[],visiting_team:[],data_headers:[]}}catch(r){console.error("Error fetching xG data:",r)}},async fillXgData(){try{const r=await this.fetchXgData(),i=r.local_team.map(x=>b6(r.data_headers,x)),y=[],F=[],K=[],L=new Set;i.forEach(x=>{T6.has(x.category_id)?L.has(x.moment_of_play)||(L.add(x.moment_of_play),y.push(x)):k6.has(x.category_id)?F.push(x):S6.has(x.category_id)&&K.push(x)}),this.xgLocalPlays=[...F,...y,...K];const w=r.visiting_team.map(x=>b6(r.data_headers,x)),t=new Set,v=[],d=[],e=[];w.forEach(x=>{T6.has(x.category_id)?t.has(x.moment_of_play)||(t.add(x.moment_of_play),v.push(x)):k6.has(x.category_id)?d.push(x):S6.has(x.category_id)&&e.push(x)}),this.xgAwayPlays=[...d,...v,...e]}catch(r){console.error("Error filling xG data:",r)}}},beforeMount(){if(!this.game||!this.game.id){console.warn("No game data provided for xG analysis.");return}this.fillXgData()}},use={class:"xg-container__info"},dse={key:0,class:"title"},hse={class:"table"},pse={class:"table__row"},fse={class:"table__row__title"},mse={class:"table__row__value"},gse=["src"],yse={class:"table__row"},vse={class:"table__row__title"},bse={class:"table__row__value"},xse={class:"table__row"},_se={class:"table__row__title"},wse={class:"table__row__value"},Tse={class:"xg-container__field"};function kse(r,i,y,F,K,L){const w=p.resolveComponent("SoccerChalkboard");return p.openBlock(),p.createElementBlock("div",{class:"xg-container",style:p.normalizeStyle(L.style)},[p.createElementVNode("div",use,[y.isTitleVisible?(p.openBlock(),p.createElementBlock("div",dse,"Goles esperados (xG)")):p.createCommentVNode("",!0),p.createElementVNode("div",hse,[p.createElementVNode("div",pse,[p.createElementVNode("div",fse,p.toDisplayString(L.gxInfoItems[0].title),1),p.createElementVNode("div",mse,[p.createTextVNode(p.toDisplayString(L.gxInfoItems[0].value),1),p.createElementVNode("img",{class:"img-abs",src:r.stringSelectedTeamLogo},null,8,gse)])]),p.createElementVNode("div",yse,[p.createElementVNode("div",vse,p.toDisplayString(L.gxInfoItems[1].title),1),p.createElementVNode("div",bse,p.toDisplayString(L.gxInfoItems[1].value),1)]),p.createElementVNode("div",xse,[p.createElementVNode("div",_se,p.toDisplayString(L.gxInfoItems[3].title),1),p.createElementVNode("div",wse,p.toDisplayString(L.gxInfoItems[3].value),1)])]),i[0]||(i[0]=p.createElementVNode("div",{class:"table-description"},[p.createElementVNode("span",null,"xG:"),p.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1))]),p.createElementVNode("div",Tse,[p.createVNode(w,{plays:L.xgPlays,categories:K.categories,team:L.team,"rival-team":L.rivalTeam},null,8,["plays","categories","team","rival-team"])])],4)}const Sse=Kg(cse,[["render",kse],["__scopeId","data-v-878a0e01"]]);let E6=null;const Ese={name:"XgMain",components:{SoccerChalkboard:Sse},props:{game:{type:Object,default:()=>({})},isHomeTeamForAnalysis:{type:Boolean,default:!0},isTitleVisible:{type:Boolean,default:!1},isPostMatch:{type:Boolean,default:!0},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},data(){return{gamesContainerWidth:0}},methods:{setUpResizeObserver(){if(window.ResizeObserver)E6=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,console.log("ResizeObserver triggered, width:",this.gamesContainerWidth)}),E6.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Cse={class:"xg",ref:"gamesContainer"};function Ase(r,i,y,F,K,L){const w=p.resolveComponent("SoccerChalkboard");return p.openBlock(),p.createElementBlock("div",Cse,[p.createVNode(w,{game:y.game,"container-width":K.gamesContainerWidth,"is-home-team-for-analysis":y.isHomeTeamForAnalysis,"is-title-visible":y.isTitleVisible,"is-post-match":y.isPostMatch,token:y.token,class:"local"},null,8,["game","container-width","is-home-team-for-analysis","is-title-visible","is-post-match","token"])],512)}const C6=Kg(Ese,[["render",Ase],["__scopeId","data-v-d379e69f"]]),Mse={class:"tooltip-options"},Lse={__name:"TooltipOptions",props:{optionsType:{type:String,default:"page"}},emits:["close-tooltip","change-sort","delete-page","edit","clone","delete"],setup(r,{emit:i}){const y=r,F=i,K=p.computed(()=>y.optionsType==="page");function L(){F("close-tooltip")}function w(t){F(t),L()}return(t,v)=>(p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createElementVNode("div",{class:"tooltip-overlay",onClick:L}),p.createElementVNode("div",Mse,[p.createElementVNode("ul",null,[K.value?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createElementVNode("li",{class:"option",onClick:v[0]||(v[0]=d=>w("change-sort"))},v[4]||(v[4]=[p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/report-maker/icn-rename.svg",alt:"Renombrar template",class:"icon"},null,-1),p.createTextVNode(" Cambiar orden ",-1)])),p.createElementVNode("li",{class:"option",onClick:v[1]||(v[1]=d=>w("delete-page"))},v[5]||(v[5]=[p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/report-maker/icn-delete.svg",alt:"Eliminar template",class:"icon"},null,-1),p.createTextVNode(" Eliminar ",-1)]))],64)):(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[p.createElementVNode("li",{class:"option",onClick:v[2]||(v[2]=d=>w("edit"))},v[6]||(v[6]=[p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/report-maker/icn-rename.svg",alt:"Renombrar template",class:"icon"},null,-1),p.createTextVNode(" Editar ",-1)])),p.createElementVNode("li",{class:"option",onClick:v[3]||(v[3]=d=>w("delete"))},v[7]||(v[7]=[p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/report-maker/icn-delete.svg",alt:"Eliminar template",class:"icon"},null,-1),p.createTextVNode(" Eliminar ",-1)]))],64))])])],64))}},A6=zd(Lse,[["__scopeId","data-v-998e2429"]]),Pse={class:"report-view"},Nse={class:"report-view__header"},Ose={class:"report-view__header__team-and-name"},Rse={key:0,class:"report-view__header__logo"},zse=["src"],Dse={class:"report-view__header__name"},Ise={class:"report-view__content"},Fse={__name:"ReportView",props:{title:{type:String,default:"Item name"},isEmpty:{type:Boolean,default:!1},isTemplateMode:{type:Boolean,default:!1},game:{type:Object,default:()=>null},isHomeTeam:{type:Boolean,default:!0},isFilterVisible:{type:Boolean,default:!1},viewId:{type:Number,default:0}},emits:["edit","delete"],setup(r,{emit:i}){const y=r,F=p.ref(!1),K=i,L=[1,3,4,8],w=p.computed(()=>!L.includes(y.viewId)),t=p.computed(()=>{if(y.game){const x=y.isHomeTeam?y.game.homeTeam:y.game.awayTeam;if(x&&x.logo)return x.logo}return""});function v(){e(),K("edit")}function d(){e(),K("delete")}function e(){F.value=!1}return(x,m)=>(p.openBlock(),p.createElementBlock("div",Pse,[p.createElementVNode("div",Nse,[F.value?(p.openBlock(),p.createBlock(A6,{key:0,"options-type":"view",onClick:m[0]||(m[0]=p.withModifiers(b=>F.value=!1,["self"])),onMouseleave:m[1]||(m[1]=b=>F.value=!1),onCloseTooltip:e,onEdit:v,onDelete:d})):p.createCommentVNode("",!0),p.createElementVNode("div",Ose,[t.value&&w.value?(p.openBlock(),p.createElementBlock("div",Rse,[p.createElementVNode("img",{src:t.value,alt:""},null,8,zse)])):p.createCommentVNode("",!0),p.createElementVNode("div",Dse,p.toDisplayString(r.title),1)]),p.withDirectives(p.createElementVNode("div",{role:"button",class:"report-view__header__actions",onClick:m[2]||(m[2]=b=>F.value=!0)},m[3]||(m[3]=[p.createElementVNode("svg",{width:"17",height:"13",viewBox:"0 0 17 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("path",{d:"M3.56953 6.28672C3.56953 7.19972 2.83253 7.93672 1.91953 7.93672C1.00653 7.93672 0.269531 7.19972 0.269531 6.28672C0.269531 5.37372 1.00653 4.63672 1.91953 4.63672C2.83253 4.63672 3.56953 5.37372 3.56953 6.28672ZM8.51953 4.63672C7.60653 4.63672 6.86953 5.37372 6.86953 6.28672C6.86953 7.19972 7.60653 7.93672 8.51953 7.93672C9.43253 7.93672 10.1695 7.19972 10.1695 6.28672C10.1695 5.37372 9.43253 4.63672 8.51953 4.63672ZM15.1195 4.63672C14.2065 4.63672 13.4695 5.37372 13.4695 6.28672C13.4695 7.19972 14.2065 7.93672 15.1195 7.93672C16.0325 7.93672 16.7695 7.19972 16.7695 6.28672C16.7695 5.37372 16.0325 4.63672 15.1195 4.63672Z",fill:"white"})],-1)]),512),[[p.vShow,r.isTemplateMode&&!r.isFilterVisible]])]),p.createElementVNode("div",Ise,[p.renderSlot(x.$slots,"default",{},void 0,!0)])]))}},Bse=zd(Fse,[["__scopeId","data-v-deff1407"]]);function Vse(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Yg={exports:{}},M6;function Use(){if(M6)return Yg.exports;M6=1;function r(){}return r.prototype={on:function(i,y,F){var K=this.e||(this.e={});return(K[i]||(K[i]=[])).push({fn:y,ctx:F}),this},once:function(i,y,F){var K=this;function L(){K.off(i,L),y.apply(F,arguments)}return L._=y,this.on(i,L,F)},emit:function(i){var y=[].slice.call(arguments,1),F=((this.e||(this.e={}))[i]||[]).slice(),K=0,L=F.length;for(K;K<L;K++)F[K].fn.apply(F[K].ctx,y);return this},off:function(i,y){var F=this.e||(this.e={}),K=F[i],L=[];if(K&&y)for(var w=0,t=K.length;w<t;w++)K[w].fn!==y&&K[w].fn._!==y&&L.push(K[w]);return L.length?F[i]=L:delete F[i],this}},Yg.exports=r,Yg.exports.TinyEmitter=r,Yg.exports}var q2,L6;function jse(){if(L6)return q2;L6=1;var r=Use();return q2=new r,q2}var qse=jse();const li=Vse(qse);function Wse(r,i,y,F,K){const L=(...w)=>(console.warn("gridstack.js: Function `"+y+"` is deprecated in "+K+" and has been replaced with `"+F+"`. It will be **removed** in a future release"),i.apply(r,w));return L.prototype=i.prototype,L}class In{static getElements(i,y=document){if(typeof i=="string"){const F="getElementById"in y?y:void 0;if(F&&!isNaN(+i[0])){const L=F.getElementById(i);return L?[L]:[]}let K=y.querySelectorAll(i);return!K.length&&i[0]!=="."&&i[0]!=="#"&&(K=y.querySelectorAll("."+i),K.length||(K=y.querySelectorAll("#"+i))),Array.from(K)}return[i]}static getElement(i,y=document){if(typeof i=="string"){const F="getElementById"in y?y:void 0;if(!i.length)return null;if(F&&i[0]==="#")return F.getElementById(i.substring(1));if(i[0]==="#"||i[0]==="."||i[0]==="[")return y.querySelector(i);if(F&&!isNaN(+i[0]))return F.getElementById(i);let K=y.querySelector(i);return F&&!K&&(K=F.getElementById(i)),K||(K=y.querySelector("."+i)),K}return i}static lazyLoad(i){var y,F;return i.lazyLoad||((F=(y=i.grid)==null?void 0:y.opts)==null?void 0:F.lazyLoad)&&i.lazyLoad!==!1}static createDiv(i,y){const F=document.createElement("div");return i.forEach(K=>{K&&F.classList.add(K)}),y==null||y.appendChild(F),F}static shouldSizeToContent(i,y=!1){return(i==null?void 0:i.grid)&&(y?i.sizeToContent===!0||i.grid.opts.sizeToContent===!0&&i.sizeToContent===void 0:!!i.sizeToContent||i.grid.opts.sizeToContent&&i.sizeToContent!==!1)}static isIntercepted(i,y){return!(i.y>=y.y+y.h||i.y+i.h<=y.y||i.x+i.w<=y.x||i.x>=y.x+y.w)}static isTouching(i,y){return In.isIntercepted(i,{x:y.x-.5,y:y.y-.5,w:y.w+1,h:y.h+1})}static areaIntercept(i,y){const F=i.x>y.x?i.x:y.x,K=i.x+i.w<y.x+y.w?i.x+i.w:y.x+y.w;if(K<=F)return 0;const L=i.y>y.y?i.y:y.y,w=i.y+i.h<y.y+y.h?i.y+i.h:y.y+y.h;return w<=L?0:(K-F)*(w-L)}static area(i){return i.w*i.h}static sort(i,y=1){return i.sort((F,K)=>{const L=y*((F.y??1e4)-(K.y??1e4));return L===0?y*((F.x??1e4)-(K.x??1e4)):L})}static find(i,y){return y?i.find(F=>F.id===y):void 0}static toBool(i){return typeof i=="boolean"?i:typeof i=="string"?(i=i.toLowerCase(),!(i===""||i==="no"||i==="false"||i==="0")):!!i}static toNumber(i){return i===null||i.length===0?void 0:Number(i)}static parseHeight(i){let y,F="px";if(typeof i=="string")if(i==="auto"||i==="")y=0;else{const K=i.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw|%|cm|mm)?$/);if(!K)throw new Error(`Invalid height val = ${i}`);F=K[2]||"px",y=parseFloat(K[1])}else y=i;return{h:y,unit:F}}static defaults(i,...y){return y.forEach(F=>{for(const K in F){if(!F.hasOwnProperty(K))return;i[K]===null||i[K]===void 0?i[K]=F[K]:typeof F[K]=="object"&&typeof i[K]=="object"&&this.defaults(i[K],F[K])}}),i}static same(i,y){if(typeof i!="object")return i==y;if(typeof i!=typeof y||Object.keys(i).length!==Object.keys(y).length)return!1;for(const F in i)if(i[F]!==y[F])return!1;return!0}static copyPos(i,y,F=!1){return y.x!==void 0&&(i.x=y.x),y.y!==void 0&&(i.y=y.y),y.w!==void 0&&(i.w=y.w),y.h!==void 0&&(i.h=y.h),F&&(y.minW&&(i.minW=y.minW),y.minH&&(i.minH=y.minH),y.maxW&&(i.maxW=y.maxW),y.maxH&&(i.maxH=y.maxH)),i}static samePos(i,y){return i&&y&&i.x===y.x&&i.y===y.y&&(i.w||1)===(y.w||1)&&(i.h||1)===(y.h||1)}static sanitizeMinMax(i){i.minW||delete i.minW,i.minH||delete i.minH,i.maxW||delete i.maxW,i.maxH||delete i.maxH}static removeInternalAndSame(i,y){if(!(typeof i!="object"||typeof y!="object"))for(let F in i){const K=i[F],L=y[F];F[0]==="_"||K===L?delete i[F]:K&&typeof K=="object"&&L!==void 0&&(In.removeInternalAndSame(K,L),Object.keys(K).length||delete i[F])}}static removeInternalForSave(i,y=!0){for(let F in i)(F[0]==="_"||i[F]===null||i[F]===void 0)&&delete i[F];delete i.grid,y&&delete i.el,i.autoPosition||delete i.autoPosition,i.noResize||delete i.noResize,i.noMove||delete i.noMove,i.locked||delete i.locked,(i.w===1||i.w===i.minW)&&delete i.w,(i.h===1||i.h===i.minH)&&delete i.h}static throttle(i,y){let F=!1;return(...K)=>{F||(F=!0,setTimeout(()=>{i(...K),F=!1},y))}}static removePositioningStyles(i){const y=i.style;y.position&&y.removeProperty("position"),y.left&&y.removeProperty("left"),y.top&&y.removeProperty("top"),y.width&&y.removeProperty("width"),y.height&&y.removeProperty("height")}static getScrollElement(i){if(!i)return document.scrollingElement||document.documentElement;const y=getComputedStyle(i);return/(auto|scroll)/.test(y.overflow+y.overflowY)?i:this.getScrollElement(i.parentElement)}static updateScrollPosition(i,y,F){const K=i.getBoundingClientRect(),L=window.innerHeight||document.documentElement.clientHeight;if(K.top<0||K.bottom>L){const w=K.bottom-L,t=K.top,v=this.getScrollElement(i);if(v!==null){const d=v.scrollTop;K.top<0&&F<0?i.offsetHeight>L?v.scrollTop+=F:v.scrollTop+=Math.abs(t)>Math.abs(F)?F:t:F>0&&(i.offsetHeight>L?v.scrollTop+=F:v.scrollTop+=w>F?F:w),y.top+=v.scrollTop-d}}}static updateScrollResize(i,y,F){const K=this.getScrollElement(y),L=K.clientHeight,w=K===this.getScrollElement()?0:K.getBoundingClientRect().top,t=i.clientY-w,v=t<F,d=t>L-F;v?K.scrollBy({behavior:"smooth",top:t-F}):d&&K.scrollBy({behavior:"smooth",top:F-(L-t)})}static clone(i){return i==null||typeof i!="object"?i:i instanceof Array?[...i]:{...i}}static cloneDeep(i){const y=["parentGrid","el","grid","subGrid","engine"],F=In.clone(i);for(const K in F)F.hasOwnProperty(K)&&typeof F[K]=="object"&&K.substring(0,2)!=="__"&&!y.find(L=>L===K)&&(F[K]=In.cloneDeep(i[K]));return F}static cloneNode(i){const y=i.cloneNode(!0);return y.removeAttribute("id"),y}static appendTo(i,y){let F;typeof y=="string"?F=In.getElement(y):F=y,F&&F.appendChild(i)}static addElStyles(i,y){if(y instanceof Object)for(const F in y)y.hasOwnProperty(F)&&(Array.isArray(y[F])?y[F].forEach(K=>{i.style[F]=K}):i.style[F]=y[F])}static initEvent(i,y){const F={type:y.type},K={button:0,which:0,buttons:1,bubbles:!0,cancelable:!0,target:y.target?y.target:i.target};return["altKey","ctrlKey","metaKey","shiftKey"].forEach(L=>F[L]=i[L]),["pageX","pageY","clientX","clientY","screenX","screenY"].forEach(L=>F[L]=i[L]),{...F,...K}}static simulateMouseEvent(i,y,F){const K=i,L=new MouseEvent(y,{bubbles:!0,composed:!0,cancelable:!0,view:window,detail:1,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY,ctrlKey:K.ctrlKey??!1,altKey:K.altKey??!1,shiftKey:K.shiftKey??!1,metaKey:K.metaKey??!1,button:0,relatedTarget:i.target});(F||i.target).dispatchEvent(L)}static getValuesFromTransformedElement(i){const y=document.createElement("div");In.addElStyles(y,{opacity:"0",position:"fixed",top:"0px",left:"0px",width:"1px",height:"1px",zIndex:"-999999"}),i.appendChild(y);const F=y.getBoundingClientRect();return i.removeChild(y),y.remove(),{xScale:1/F.width,yScale:1/F.height,xOffset:F.left,yOffset:F.top}}static swap(i,y,F){if(!i)return;const K=i[y];i[y]=i[F],i[F]=K}static canBeRotated(i){var y;return!(!i||i.w===i.h||i.locked||i.noResize||(y=i.grid)!=null&&y.opts.disableResize||i.minW&&i.minW===i.maxW||i.minH&&i.minH===i.maxH)}}class Fd{constructor(i={}){this.addedNodes=[],this.removedNodes=[],this.defaultColumn=12,this.column=i.column||this.defaultColumn,this.column>this.defaultColumn&&(this.defaultColumn=this.column),this.maxRow=i.maxRow,this._float=i.float,this.nodes=i.nodes||[],this.onChange=i.onChange}batchUpdate(i=!0,y=!0){return!!this.batchMode===i?this:(this.batchMode=i,i?(this._prevFloat=this._float,this._float=!0,this.cleanNodes(),this.saveInitial()):(this._float=this._prevFloat,delete this._prevFloat,y&&this._packNodes(),this._notify()),this)}_useEntireRowArea(i,y){return(!this.float||this.batchMode&&!this._prevFloat)&&!this._hasLocked&&(!i._moving||i._skipDown||y.y<=i.y)}_fixCollisions(i,y=i,F,K={}){if(this.sortNodes(-1),F=F||this.collide(i,y),!F)return!1;if(i._moving&&!K.nested&&!this.float&&this.swap(i,F))return!0;let L=y;!this._loading&&this._useEntireRowArea(i,y)&&(L={x:0,w:this.column,y:y.y,h:y.h},F=this.collide(i,L,K.skip));let w=!1;const t={nested:!0,pack:!1};let v=0;for(;F=F||this.collide(i,L,K.skip);){if(v++>this.nodes.length*2)throw new Error("Infinite collide check");let d;if(F.locked||this._loading||i._moving&&!i._skipDown&&y.y>i.y&&!this.float&&(!this.collide(F,{...F,y:i.y},i)||!this.collide(F,{...F,y:y.y-F.h},i))){i._skipDown=i._skipDown||y.y>i.y;const e={...y,y:F.y+F.h,...t};d=this._loading&&In.samePos(i,e)?!0:this.moveNode(i,e),(F.locked||this._loading)&&d?In.copyPos(y,i):!F.locked&&d&&K.pack&&(this._packNodes(),y.y=F.y+F.h,In.copyPos(i,y)),w=w||d}else d=this.moveNode(F,{...F,y:y.y+y.h,skip:i,...t});if(!d)return w;F=void 0}return w}collide(i,y=i,F){const K=i._id,L=F==null?void 0:F._id;return this.nodes.find(w=>w._id!==K&&w._id!==L&&In.isIntercepted(w,y))}collideAll(i,y=i,F){const K=i._id,L=F==null?void 0:F._id;return this.nodes.filter(w=>w._id!==K&&w._id!==L&&In.isIntercepted(w,y))}directionCollideCoverage(i,y,F){if(!y.rect||!i._rect)return;const K=i._rect,L={...y.rect};L.y>K.y?(L.h+=L.y-K.y,L.y=K.y):L.h+=K.y-L.y,L.x>K.x?(L.w+=L.x-K.x,L.x=K.x):L.w+=K.x-L.x;let w,t=.5;for(let v of F){if(v.locked||!v._rect)break;const d=v._rect;let e=Number.MAX_VALUE,x=Number.MAX_VALUE;K.y<d.y?e=(L.y+L.h-d.y)/d.h:K.y+K.h>d.y+d.h&&(e=(d.y+d.h-L.y)/d.h),K.x<d.x?x=(L.x+L.w-d.x)/d.w:K.x+K.w>d.x+d.w&&(x=(d.x+d.w-L.x)/d.w);const m=Math.min(x,e);m>t&&(t=m,w=v)}return y.collide=w,w}cacheRects(i,y,F,K,L,w){return this.nodes.forEach(t=>t._rect={y:t.y*y+F,x:t.x*i+w,w:t.w*i-w-K,h:t.h*y-F-L}),this}swap(i,y){if(!y||y.locked||!i||i.locked)return!1;function F(){const L=y.x,w=y.y;return y.x=i.x,y.y=i.y,i.h!=y.h?(i.x=L,i.y=y.y+y.h):i.w!=y.w?(i.x=y.x+y.w,i.y=w):(i.x=L,i.y=w),i._dirty=y._dirty=!0,!0}let K;if(i.w===y.w&&i.h===y.h&&(i.x===y.x||i.y===y.y)&&(K=In.isTouching(i,y)))return F();if(K!==!1){if(i.w===y.w&&i.x===y.x&&(K||(K=In.isTouching(i,y)))){if(y.y<i.y){const L=i;i=y,y=L}return F()}if(K!==!1){if(i.h===y.h&&i.y===y.y&&(K||(K=In.isTouching(i,y)))){if(y.x<i.x){const L=i;i=y,y=L}return F()}return!1}}}isAreaEmpty(i,y,F,K){const L={x:i||0,y:y||0,w:F||1,h:K||1};return!this.collide(L)}compact(i="compact",y=!0){if(this.nodes.length===0)return this;y&&this.sortNodes();const F=this.batchMode;F||this.batchUpdate();const K=this._inColumnResize;K||(this._inColumnResize=!0);const L=this.nodes;return this.nodes=[],L.forEach((w,t,v)=>{let d;w.locked||(w.autoPosition=!0,i==="list"&&t&&(d=v[t-1])),this.addNode(w,!1,d)}),K||delete this._inColumnResize,F||this.batchUpdate(!1),this}set float(i){this._float!==i&&(this._float=i||!1,i||this._packNodes()._notify())}get float(){return this._float||!1}sortNodes(i=1){return this.nodes=In.sort(this.nodes,i),this}_packNodes(){return this.batchMode?this:(this.sortNodes(),this.float?this.nodes.forEach(i=>{if(i._updating||i._orig===void 0||i.y===i._orig.y)return;let y=i.y;for(;y>i._orig.y;)--y,this.collide(i,{x:i.x,y,w:i.w,h:i.h})||(i._dirty=!0,i.y=y)}):this.nodes.forEach((i,y)=>{if(!i.locked)for(;i.y>0;){const F=y===0?0:i.y-1;if(!(y===0||!this.collide(i,{x:i.x,y:F,w:i.w,h:i.h})))break;i._dirty=i.y!==F,i.y=F}}),this)}prepareNode(i,y){i._id=i._id??Fd._idSeq++;const F=i.id;if(F){let L=1;for(;this.nodes.find(w=>w.id===i.id&&w!==i);)i.id=F+"_"+L++}(i.x===void 0||i.y===void 0||i.x===null||i.y===null)&&(i.autoPosition=!0);const K={x:0,y:0,w:1,h:1};return In.defaults(i,K),i.autoPosition||delete i.autoPosition,i.noResize||delete i.noResize,i.noMove||delete i.noMove,In.sanitizeMinMax(i),typeof i.x=="string"&&(i.x=Number(i.x)),typeof i.y=="string"&&(i.y=Number(i.y)),typeof i.w=="string"&&(i.w=Number(i.w)),typeof i.h=="string"&&(i.h=Number(i.h)),isNaN(i.x)&&(i.x=K.x,i.autoPosition=!0),isNaN(i.y)&&(i.y=K.y,i.autoPosition=!0),isNaN(i.w)&&(i.w=K.w),isNaN(i.h)&&(i.h=K.h),this.nodeBoundFix(i,y),i}nodeBoundFix(i,y){const F=i._orig||In.copyPos({},i);if(i.maxW&&(i.w=Math.min(i.w||1,i.maxW)),i.maxH&&(i.h=Math.min(i.h||1,i.maxH)),i.minW&&(i.w=Math.max(i.w||1,i.minW)),i.minH&&(i.h=Math.max(i.h||1,i.minH)),(i.x||0)+(i.w||1)>this.column&&this.column<this.defaultColumn&&!this._inColumnResize&&!this.skipCacheUpdate&&i._id!=null&&this.findCacheLayout(i,this.defaultColumn)===-1){const K={...i};K.autoPosition||K.x===void 0?(delete K.x,delete K.y):K.x=Math.min(this.defaultColumn-1,K.x),K.w=Math.min(this.defaultColumn,K.w||1),this.cacheOneLayout(K,this.defaultColumn)}return i.w>this.column?i.w=this.column:i.w<1&&(i.w=1),this.maxRow&&i.h>this.maxRow?i.h=this.maxRow:i.h<1&&(i.h=1),i.x<0&&(i.x=0),i.y<0&&(i.y=0),i.x+i.w>this.column&&(y?i.w=this.column-i.x:i.x=this.column-i.w),this.maxRow&&i.y+i.h>this.maxRow&&(y?i.h=this.maxRow-i.y:i.y=this.maxRow-i.h),In.samePos(i,F)||(i._dirty=!0),this}getDirtyNodes(i){return i?this.nodes.filter(y=>y._dirty&&!In.samePos(y,y._orig)):this.nodes.filter(y=>y._dirty)}_notify(i){if(this.batchMode||!this.onChange)return this;const y=(i||[]).concat(this.getDirtyNodes());return this.onChange(y),this}cleanNodes(){return this.batchMode?this:(this.nodes.forEach(i=>{delete i._dirty,delete i._lastTried}),this)}saveInitial(){return this.nodes.forEach(i=>{i._orig=In.copyPos({},i),delete i._dirty}),this._hasLocked=this.nodes.some(i=>i.locked),this}restoreInitial(){return this.nodes.forEach(i=>{!i._orig||In.samePos(i,i._orig)||(In.copyPos(i,i._orig),i._dirty=!0)}),this._notify(),this}findEmptyPosition(i,y=this.nodes,F=this.column,K){const L=K?K.y*F+(K.x+K.w):0;let w=!1;for(let t=L;!w;++t){const v=t%F,d=Math.floor(t/F);if(v+i.w>F)continue;const e={x:v,y:d,w:i.w,h:i.h};y.find(x=>In.isIntercepted(e,x))||((i.x!==v||i.y!==d)&&(i._dirty=!0),i.x=v,i.y=d,delete i.autoPosition,w=!0)}return w}addNode(i,y=!1,F){const K=this.nodes.find(w=>w._id===i._id);if(K)return K;this._inColumnResize?this.nodeBoundFix(i):this.prepareNode(i),delete i._temporaryRemoved,delete i._removeDOM;let L;return i.autoPosition&&this.findEmptyPosition(i,this.nodes,this.column,F)&&(delete i.autoPosition,L=!0),this.nodes.push(i),y&&this.addedNodes.push(i),L||this._fixCollisions(i),this.batchMode||this._packNodes()._notify(),i}removeNode(i,y=!0,F=!1){return this.nodes.find(K=>K._id===i._id)?(F&&this.removedNodes.push(i),y&&(i._removeDOM=!0),this.nodes=this.nodes.filter(K=>K._id!==i._id),i._isAboutToRemove||this._packNodes(),this._notify([i]),this):this}removeAll(i=!0,y=!0){if(delete this._layouts,!this.nodes.length)return this;i&&this.nodes.forEach(K=>K._removeDOM=!0);const F=this.nodes;return this.removedNodes=y?F:[],this.nodes=[],this._notify(F)}moveNodeCheck(i,y){if(!this.changedPosConstrain(i,y))return!1;if(y.pack=!0,!this.maxRow)return this.moveNode(i,y);let F;const K=new Fd({column:this.column,float:this.float,nodes:this.nodes.map(w=>w._id===i._id?(F={...w},F):{...w})});if(!F)return!1;const L=K.moveNode(F,y)&&K.getRow()<=Math.max(this.getRow(),this.maxRow);if(!L&&!y.resizing&&y.collide){const w=y.collide.el.gridstackNode;if(this.swap(i,w))return this._notify(),!0}return L?(K.nodes.filter(w=>w._dirty).forEach(w=>{const t=this.nodes.find(v=>v._id===w._id);t&&(In.copyPos(t,w),t._dirty=!0)}),this._notify(),!0):!1}willItFit(i){if(delete i._willFitPos,!this.maxRow)return!0;const y=new Fd({column:this.column,float:this.float,nodes:this.nodes.map(K=>({...K}))}),F={...i};return this.cleanupNode(F),delete F.el,delete F._id,delete F.content,delete F.grid,y.addNode(F),y.getRow()<=this.maxRow?(i._willFitPos=In.copyPos({},F),!0):!1}changedPosConstrain(i,y){return y.w=y.w||i.w,y.h=y.h||i.h,i.x!==y.x||i.y!==y.y?!0:(i.maxW&&(y.w=Math.min(y.w,i.maxW)),i.maxH&&(y.h=Math.min(y.h,i.maxH)),i.minW&&(y.w=Math.max(y.w,i.minW)),i.minH&&(y.h=Math.max(y.h,i.minH)),i.w!==y.w||i.h!==y.h)}moveNode(i,y){var F,K;if(!i||!y)return!1;let L;y.pack===void 0&&!this.batchMode&&(L=y.pack=!0),typeof y.x!="number"&&(y.x=i.x),typeof y.y!="number"&&(y.y=i.y),typeof y.w!="number"&&(y.w=i.w),typeof y.h!="number"&&(y.h=i.h);const w=i.w!==y.w||i.h!==y.h,t=In.copyPos({},i,!0);if(In.copyPos(t,y),this.nodeBoundFix(t,w),In.copyPos(y,t),!y.forceCollide&&In.samePos(i,y))return!1;const v=In.copyPos({},i),d=this.collideAll(i,t,y.skip);let e=!0;if(d.length){const x=i._moving&&!y.nested;let m=x?this.directionCollideCoverage(i,y,d):d[0];if(x&&m&&(K=(F=i.grid)==null?void 0:F.opts)!=null&&K.subGridDynamic&&!i.grid._isTemp){const b=In.areaIntercept(y.rect,m._rect),h=In.area(y.rect),n=In.area(m._rect);b/(h<n?h:n)>.8&&(m.grid.makeSubGrid(m.el,void 0,i),m=void 0)}m?e=!this._fixCollisions(i,t,m,y):(e=!1,L&&delete y.pack)}return e&&!In.samePos(i,t)&&(i._dirty=!0,In.copyPos(i,t)),y.pack&&this._packNodes()._notify(),!In.samePos(i,v)}getRow(){return this.nodes.reduce((i,y)=>Math.max(i,y.y+y.h),0)}beginUpdate(i){return i._updating||(i._updating=!0,delete i._skipDown,this.batchMode||this.saveInitial()),this}endUpdate(){const i=this.nodes.find(y=>y._updating);return i&&(delete i._updating,delete i._skipDown),this}save(i=!0,y){var F;const K=(F=this._layouts)==null?void 0:F.length,L=K&&this.column!==K-1?this._layouts[K-1]:null,w=[];return this.sortNodes(),this.nodes.forEach(t=>{const v=L==null?void 0:L.find(e=>e._id===t._id),d={...t,...v||{}};In.removeInternalForSave(d,!i),y&&y(t,d),w.push(d)}),w}layoutsNodesChange(i){return!this._layouts||this._inColumnResize?this:(this._layouts.forEach((y,F)=>{if(!y||F===this.column)return this;if(F<this.column)this._layouts[F]=void 0;else{const K=F/this.column;i.forEach(L=>{if(!L._orig)return;const w=y.find(t=>t._id===L._id);w&&(w.y>=0&&L.y!==L._orig.y&&(w.y+=L.y-L._orig.y),L.x!==L._orig.x&&(w.x=Math.round(L.x*K)),L.w!==L._orig.w&&(w.w=Math.round(L.w*K)))})}}),this)}columnChanged(i,y,F="moveScale"){var K;if(!this.nodes.length||!y||i===y)return this;const L=F==="compact"||F==="list";L&&this.sortNodes(1),y<i&&this.cacheLayout(this.nodes,i),this.batchUpdate();let w=[],t=L?this.nodes:In.sort(this.nodes,-1);if(y>i&&this._layouts){const v=this._layouts[y]||[],d=this._layouts.length-1;!v.length&&i!==d&&(K=this._layouts[d])!=null&&K.length&&(i=d,this._layouts[d].forEach(e=>{const x=t.find(m=>m._id===e._id);x&&(!L&&!e.autoPosition&&(x.x=e.x??x.x,x.y=e.y??x.y),x.w=e.w??x.w,(e.x==null||e.y===void 0)&&(x.autoPosition=!0))})),v.forEach(e=>{const x=t.findIndex(m=>m._id===e._id);if(x!==-1){const m=t[x];if(L){m.w=e.w;return}(e.autoPosition||isNaN(e.x)||isNaN(e.y))&&this.findEmptyPosition(e,w),e.autoPosition||(m.x=e.x??m.x,m.y=e.y??m.y,m.w=e.w??m.w,w.push(m)),t.splice(x,1)}})}if(L)this.compact(F,!1);else{if(t.length)if(typeof F=="function")F(y,i,w,t);else{const v=L||F==="none"?1:y/i,d=F==="move"||F==="moveScale",e=F==="scale"||F==="moveScale";t.forEach(x=>{x.x=y===1?0:d?Math.round(x.x*v):Math.min(x.x,y-1),x.w=y===1||i===1?1:e?Math.round(x.w*v)||1:Math.min(x.w,y),w.push(x)}),t=[]}w=In.sort(w,-1),this._inColumnResize=!0,this.nodes=[],w.forEach(v=>{this.addNode(v,!1),delete v._orig})}return this.nodes.forEach(v=>delete v._orig),this.batchUpdate(!1,!L),delete this._inColumnResize,this}cacheLayout(i,y,F=!1){const K=[];return i.forEach((L,w)=>{if(L._id===void 0){const t=L.id?this.nodes.find(v=>v.id===L.id):void 0;L._id=(t==null?void 0:t._id)??Fd._idSeq++}K[w]={x:L.x,y:L.y,w:L.w,_id:L._id}}),this._layouts=F?[]:this._layouts||[],this._layouts[y]=K,this}cacheOneLayout(i,y){i._id=i._id??Fd._idSeq++;const F={x:i.x,y:i.y,w:i.w,_id:i._id};(i.autoPosition||i.x===void 0)&&(delete F.x,delete F.y,i.autoPosition&&(F.autoPosition=!0)),this._layouts=this._layouts||[],this._layouts[y]=this._layouts[y]||[];const K=this.findCacheLayout(i,y);return K===-1?this._layouts[y].push(F):this._layouts[y][K]=F,this}findCacheLayout(i,y){var F,K;return((K=(F=this._layouts)==null?void 0:F[y])==null?void 0:K.findIndex(L=>L._id===i._id))??-1}removeNodeFromLayoutCache(i){if(this._layouts)for(let y=0;y<this._layouts.length;y++){const F=this.findCacheLayout(i,y);F!==-1&&this._layouts[y].splice(F,1)}}cleanupNode(i){for(const y in i)y[0]==="_"&&y!=="_id"&&delete i[y];return this}}Fd._idSeq=0;const Au={alwaysShowResizeHandle:"mobile",animate:!0,auto:!0,cellHeight:"auto",cellHeightThrottle:100,cellHeightUnit:"px",column:12,draggable:{handle:".grid-stack-item-content",appendTo:"body",scroll:!0},handle:".grid-stack-item-content",itemClass:"grid-stack-item",margin:10,marginUnit:"px",maxRow:0,minRow:0,placeholderClass:"grid-stack-placeholder",placeholderText:"",removableOptions:{accept:"grid-stack-item",decline:"grid-stack-non-removable"},resizable:{handles:"se"},rtl:"auto"};class Za{}const $u=typeof window<"u"&&typeof document<"u"&&("ontouchstart"in document||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0);class xd{}function Qg(r,i){r.touches.length>1||(r.cancelable&&r.preventDefault(),In.simulateMouseEvent(r.changedTouches[0],i))}function P6(r,i){r.cancelable&&r.preventDefault(),In.simulateMouseEvent(r,i)}function $g(r){xd.touchHandled||(xd.touchHandled=!0,Qg(r,"mousedown"))}function ey(r){xd.touchHandled&&Qg(r,"mousemove")}function ty(r){if(!xd.touchHandled)return;xd.pointerLeaveTimeout&&(window.clearTimeout(xd.pointerLeaveTimeout),delete xd.pointerLeaveTimeout);const i=!!Za.dragElement;Qg(r,"mouseup"),i||Qg(r,"click"),xd.touchHandled=!1}function ry(r){r.pointerType!=="mouse"&&r.target.releasePointerCapture(r.pointerId)}function N6(r){Za.dragElement&&r.pointerType!=="mouse"&&P6(r,"mouseenter")}function O6(r){Za.dragElement&&r.pointerType!=="mouse"&&(xd.pointerLeaveTimeout=window.setTimeout(()=>{delete xd.pointerLeaveTimeout,P6(r,"mouseleave")},10))}class ny{constructor(i,y,F){this.host=i,this.dir=y,this.option=F,this.moving=!1,this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this._keyEvent=this._keyEvent.bind(this),this._init()}_init(){const i=this.el=document.createElement("div");return i.classList.add("ui-resizable-handle"),i.classList.add(`${ny.prefix}${this.dir}`),i.style.zIndex="100",i.style.userSelect="none",this.host.appendChild(this.el),this.el.addEventListener("mousedown",this._mouseDown),$u&&(this.el.addEventListener("touchstart",$g),this.el.addEventListener("pointerdown",ry)),this}destroy(){return this.moving&&this._mouseUp(this.mouseDownEvent),this.el.removeEventListener("mousedown",this._mouseDown),$u&&(this.el.removeEventListener("touchstart",$g),this.el.removeEventListener("pointerdown",ry)),this.host.removeChild(this.el),delete this.el,delete this.host,this}_mouseDown(i){this.mouseDownEvent=i,document.addEventListener("mousemove",this._mouseMove,{capture:!0,passive:!0}),document.addEventListener("mouseup",this._mouseUp,!0),$u&&(this.el.addEventListener("touchmove",ey),this.el.addEventListener("touchend",ty)),i.stopPropagation(),i.preventDefault()}_mouseMove(i){const y=this.mouseDownEvent;this.moving?this._triggerEvent("move",i):Math.abs(i.x-y.x)+Math.abs(i.y-y.y)>2&&(this.moving=!0,this._triggerEvent("start",this.mouseDownEvent),this._triggerEvent("move",i),document.addEventListener("keydown",this._keyEvent)),i.stopPropagation()}_mouseUp(i){this.moving&&(this._triggerEvent("stop",i),document.removeEventListener("keydown",this._keyEvent)),document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),$u&&(this.el.removeEventListener("touchmove",ey),this.el.removeEventListener("touchend",ty)),delete this.moving,delete this.mouseDownEvent,i.stopPropagation(),i.preventDefault()}_keyEvent(i){var y,F;i.key==="Escape"&&((F=(y=this.host.gridstackNode)==null?void 0:y.grid)==null||F.engine.restoreInitial(),this._mouseUp(this.mouseDownEvent))}_triggerEvent(i,y){return this.option[i]&&this.option[i](y),this}}ny.prefix="ui-resizable-";class W2{constructor(){this._eventRegister={}}get disabled(){return this._disabled}on(i,y){this._eventRegister[i]=y}off(i){delete this._eventRegister[i]}enable(){this._disabled=!1}disable(){this._disabled=!0}destroy(){delete this._eventRegister}triggerEvent(i,y){if(!this.disabled&&this._eventRegister&&this._eventRegister[i])return this._eventRegister[i](y)}}class rm extends W2{constructor(i,y={}){super(),this.el=i,this.option=y,this.rectScale={x:1,y:1},this._ui=()=>{const F=this.el.parentElement.getBoundingClientRect(),K={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,top:this.originalRect.top-this.scrolled},L=this.temporalRect||K;return{position:{left:(L.left-F.left)*this.rectScale.x,top:(L.top-F.top)*this.rectScale.y},size:{width:L.width*this.rectScale.x,height:L.height*this.rectScale.y}}},this._mouseOver=this._mouseOver.bind(this),this._mouseOut=this._mouseOut.bind(this),this.enable(),this._setupAutoHide(this.option.autoHide),this._setupHandlers()}on(i,y){super.on(i,y)}off(i){super.off(i)}enable(){super.enable(),this.el.classList.remove("ui-resizable-disabled"),this._setupAutoHide(this.option.autoHide)}disable(){super.disable(),this.el.classList.add("ui-resizable-disabled"),this._setupAutoHide(!1)}destroy(){this._removeHandlers(),this._setupAutoHide(!1),delete this.el,super.destroy()}updateOption(i){const y=i.handles&&i.handles!==this.option.handles,F=i.autoHide&&i.autoHide!==this.option.autoHide;return Object.keys(i).forEach(K=>this.option[K]=i[K]),y&&(this._removeHandlers(),this._setupHandlers()),F&&this._setupAutoHide(this.option.autoHide),this}_setupAutoHide(i){return i?(this.el.classList.add("ui-resizable-autohide"),this.el.addEventListener("mouseover",this._mouseOver),this.el.addEventListener("mouseout",this._mouseOut)):(this.el.classList.remove("ui-resizable-autohide"),this.el.removeEventListener("mouseover",this._mouseOver),this.el.removeEventListener("mouseout",this._mouseOut),Za.overResizeElement===this&&delete Za.overResizeElement),this}_mouseOver(i){Za.overResizeElement||Za.dragElement||(Za.overResizeElement=this,this.el.classList.remove("ui-resizable-autohide"))}_mouseOut(i){Za.overResizeElement===this&&(delete Za.overResizeElement,this.el.classList.add("ui-resizable-autohide"))}_setupHandlers(){return this.handlers=this.option.handles.split(",").map(i=>i.trim()).map(i=>new ny(this.el,i,{start:y=>{this._resizeStart(y)},stop:y=>{this._resizeStop(y)},move:y=>{this._resizing(y,i)}})),this}_resizeStart(i){this.sizeToContent=In.shouldSizeToContent(this.el.gridstackNode,!0),this.originalRect=this.el.getBoundingClientRect(),this.scrollEl=In.getScrollElement(this.el),this.scrollY=this.scrollEl.scrollTop,this.scrolled=0,this.startEvent=i,this._setupHelper(),this._applyChange();const y=In.initEvent(i,{type:"resizestart",target:this.el});return this.option.start&&this.option.start(y,this._ui()),this.el.classList.add("ui-resizable-resizing"),this.triggerEvent("resizestart",y),this}_resizing(i,y){this.scrolled=this.scrollEl.scrollTop-this.scrollY,this.temporalRect=this._getChange(i,y),this._applyChange();const F=In.initEvent(i,{type:"resize",target:this.el});return this.option.resize&&this.option.resize(F,this._ui()),this.triggerEvent("resize",F),this}_resizeStop(i){const y=In.initEvent(i,{type:"resizestop",target:this.el});return this._cleanHelper(),this.option.stop&&this.option.stop(y),this.el.classList.remove("ui-resizable-resizing"),this.triggerEvent("resizestop",y),delete this.startEvent,delete this.originalRect,delete this.temporalRect,delete this.scrollY,delete this.scrolled,this}_setupHelper(){this.elOriginStyleVal=rm._originStyleProp.map(F=>this.el.style[F]),this.parentOriginStylePosition=this.el.parentElement.style.position;const i=this.el.parentElement,y=In.getValuesFromTransformedElement(i);return this.rectScale={x:y.xScale,y:y.yScale},getComputedStyle(this.el.parentElement).position.match(/static/)&&(this.el.parentElement.style.position="relative"),this.el.style.position="absolute",this.el.style.opacity="0.8",this}_cleanHelper(){return rm._originStyleProp.forEach((i,y)=>{this.el.style[i]=this.elOriginStyleVal[y]||null}),this.el.parentElement.style.position=this.parentOriginStylePosition||null,this}_getChange(i,y){const F=this.startEvent,K={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,top:this.originalRect.top-this.scrolled},L=i.clientX-F.clientX,w=this.sizeToContent?0:i.clientY-F.clientY;let t,v;y.indexOf("e")>-1?K.width+=L:y.indexOf("w")>-1&&(K.width-=L,K.left+=L,t=!0),y.indexOf("s")>-1?K.height+=w:y.indexOf("n")>-1&&(K.height-=w,K.top+=w,v=!0);const d=this._constrainSize(K.width,K.height,t,v);return Math.round(K.width)!==Math.round(d.width)&&(y.indexOf("w")>-1&&(K.left+=K.width-d.width),K.width=d.width),Math.round(K.height)!==Math.round(d.height)&&(y.indexOf("n")>-1&&(K.top+=K.height-d.height),K.height=d.height),K}_constrainSize(i,y,F,K){const L=this.option,w=(F?L.maxWidthMoveLeft:L.maxWidth)||Number.MAX_SAFE_INTEGER,t=L.minWidth/this.rectScale.x||i,v=(K?L.maxHeightMoveUp:L.maxHeight)||Number.MAX_SAFE_INTEGER,d=L.minHeight/this.rectScale.y||y,e=Math.min(w,Math.max(t,i)),x=Math.min(v,Math.max(d,y));return{width:e,height:x}}_applyChange(){let i={left:0,top:0,width:0,height:0};if(this.el.style.position==="absolute"){const y=this.el.parentElement,{left:F,top:K}=y.getBoundingClientRect();i={left:F,top:K,width:0,height:0}}return this.temporalRect?(Object.keys(this.temporalRect).forEach(y=>{const F=this.temporalRect[y],K=y==="width"||y==="left"?this.rectScale.x:y==="height"||y==="top"?this.rectScale.y:1;this.el.style[y]=(F-i[y])*K+"px"}),this):this}_removeHandlers(){return this.handlers.forEach(i=>i.destroy()),delete this.handlers,this}}rm._originStyleProp=["width","height","position","left","top","opacity","zIndex"];const Gse='input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle';class nm extends W2{constructor(i,y={}){var F;super(),this.el=i,this.option=y,this.dragTransform={xScale:1,yScale:1,xOffset:0,yOffset:0};const K=(F=y==null?void 0:y.handle)==null?void 0:F.substring(1),L=i.gridstackNode;this.dragEls=!K||i.classList.contains(K)?[i]:L!=null&&L.subGrid?[i.querySelector(y.handle)||i]:Array.from(i.querySelectorAll(y.handle)),this.dragEls.length===0&&(this.dragEls=[i]),this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this._keyEvent=this._keyEvent.bind(this),this.enable()}on(i,y){super.on(i,y)}off(i){super.off(i)}enable(){this.disabled!==!1&&(super.enable(),this.dragEls.forEach(i=>{i.addEventListener("mousedown",this._mouseDown),$u&&(i.addEventListener("touchstart",$g),i.addEventListener("pointerdown",ry))}),this.el.classList.remove("ui-draggable-disabled"))}disable(i=!1){this.disabled!==!0&&(super.disable(),this.dragEls.forEach(y=>{y.removeEventListener("mousedown",this._mouseDown),$u&&(y.removeEventListener("touchstart",$g),y.removeEventListener("pointerdown",ry))}),i||this.el.classList.add("ui-draggable-disabled"))}destroy(){this.dragTimeout&&window.clearTimeout(this.dragTimeout),delete this.dragTimeout,this.mouseDownEvent&&this._mouseUp(this.mouseDownEvent),this.disable(!0),delete this.el,delete this.helper,delete this.option,super.destroy()}updateOption(i){return Object.keys(i).forEach(y=>this.option[y]=i[y]),this}_mouseDown(i){if(!Za.mouseHandled)return i.button!==0||!this.dragEls.find(y=>y===i.target)&&i.target.closest(Gse)||this.option.cancel&&i.target.closest(this.option.cancel)||(this.mouseDownEvent=i,delete this.dragging,delete Za.dragElement,delete Za.dropElement,document.addEventListener("mousemove",this._mouseMove,{capture:!0,passive:!0}),document.addEventListener("mouseup",this._mouseUp,!0),$u&&(i.currentTarget.addEventListener("touchmove",ey),i.currentTarget.addEventListener("touchend",ty)),i.preventDefault(),document.activeElement&&document.activeElement.blur(),Za.mouseHandled=!0),!0}_callDrag(i){if(!this.dragging)return;const y=In.initEvent(i,{target:this.el,type:"drag"});this.option.drag&&this.option.drag(y,this.ui()),this.triggerEvent("drag",y)}_mouseMove(i){var y;const F=this.mouseDownEvent;if(this.lastDrag=i,this.dragging)if(this._dragFollow(i),Za.pauseDrag){const K=Number.isInteger(Za.pauseDrag)?Za.pauseDrag:100;this.dragTimeout&&window.clearTimeout(this.dragTimeout),this.dragTimeout=window.setTimeout(()=>this._callDrag(i),K)}else this._callDrag(i);else if(Math.abs(i.x-F.x)+Math.abs(i.y-F.y)>3){this.dragging=!0,Za.dragElement=this;const K=(y=this.el.gridstackNode)==null?void 0:y.grid;K?Za.dropElement=K.el.ddElement.ddDroppable:delete Za.dropElement,this.helper=this._createHelper(),this._setupHelperContainmentStyle(),this.dragTransform=In.getValuesFromTransformedElement(this.helperContainment),this.dragOffset=this._getDragOffset(i,this.el,this.helperContainment),this._setupHelperStyle(i);const L=In.initEvent(i,{target:this.el,type:"dragstart"});this.option.start&&this.option.start(L,this.ui()),this.triggerEvent("dragstart",L),document.addEventListener("keydown",this._keyEvent)}return!0}_mouseUp(i){var y,F;if(document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),$u&&i.currentTarget&&(i.currentTarget.removeEventListener("touchmove",ey,!0),i.currentTarget.removeEventListener("touchend",ty,!0)),this.dragging){delete this.dragging,(y=this.el.gridstackNode)==null||delete y._origRotate,document.removeEventListener("keydown",this._keyEvent),((F=Za.dropElement)==null?void 0:F.el)===this.el.parentElement&&delete Za.dropElement,this.helperContainment.style.position=this.parentOriginStylePosition||null,this.helper!==this.el&&this.helper.remove(),this._removeHelperStyle();const K=In.initEvent(i,{target:this.el,type:"dragstop"});this.option.stop&&this.option.stop(K),this.triggerEvent("dragstop",K),Za.dropElement&&Za.dropElement.drop(i)}delete this.helper,delete this.mouseDownEvent,delete Za.dragElement,delete Za.dropElement,delete Za.mouseHandled,i.preventDefault()}_keyEvent(i){var y,F;const K=this.el.gridstackNode,L=(K==null?void 0:K.grid)||((F=(y=Za.dropElement)==null?void 0:y.el)==null?void 0:F.gridstack);if(i.key==="Escape")K&&K._origRotate&&(K._orig=K._origRotate,delete K._origRotate),L==null||L.cancelDrag(),this._mouseUp(this.mouseDownEvent);else if(K&&L&&(i.key==="r"||i.key==="R")){if(!In.canBeRotated(K))return;K._origRotate=K._origRotate||{...K._orig},delete K._moving,L.setAnimation(!1).rotate(K.el,{top:-this.dragOffset.offsetTop,left:-this.dragOffset.offsetLeft}).setAnimation(),K._moving=!0,this.dragOffset=this._getDragOffset(this.lastDrag,K.el,this.helperContainment),this.helper.style.width=this.dragOffset.width+"px",this.helper.style.height=this.dragOffset.height+"px",In.swap(K._orig,"w","h"),delete K._rect,this._mouseMove(this.lastDrag)}}_createHelper(){let i=this.el;return typeof this.option.helper=="function"?i=this.option.helper(this.el):this.option.helper==="clone"&&(i=In.cloneNode(this.el)),i.parentElement||In.appendTo(i,this.option.appendTo==="parent"?this.el.parentElement:this.option.appendTo),this.dragElementOriginStyle=nm.originStyleProp.map(y=>this.el.style[y]),i}_setupHelperStyle(i){this.helper.classList.add("ui-draggable-dragging");const y=this.helper.style;return y.pointerEvents="none",y.width=this.dragOffset.width+"px",y.height=this.dragOffset.height+"px",y.willChange="left, top",y.position="fixed",this._dragFollow(i),y.transition="none",setTimeout(()=>{this.helper&&(y.transition=null)},0),this}_removeHelperStyle(){var i;this.helper.classList.remove("ui-draggable-dragging");const y=(i=this.helper)==null?void 0:i.gridstackNode;if(!(y!=null&&y._isAboutToRemove)&&this.dragElementOriginStyle){const F=this.helper,K=this.dragElementOriginStyle.transition||null;F.style.transition=this.dragElementOriginStyle.transition="none",nm.originStyleProp.forEach(L=>F.style[L]=this.dragElementOriginStyle[L]||null),setTimeout(()=>F.style.transition=K,50)}return delete this.dragElementOriginStyle,this}_dragFollow(i){const y={left:0,top:0},F=this.helper.style,K=this.dragOffset;F.left=(i.clientX+K.offsetLeft-y.left)*this.dragTransform.xScale+"px",F.top=(i.clientY+K.offsetTop-y.top)*this.dragTransform.yScale+"px"}_setupHelperContainmentStyle(){return this.helperContainment=this.helper.parentElement,this.helper.style.position!=="fixed"&&(this.parentOriginStylePosition=this.helperContainment.style.position,getComputedStyle(this.helperContainment).position.match(/static/)&&(this.helperContainment.style.position="relative")),this}_getDragOffset(i,y,F){let K=0,L=0;F&&(K=this.dragTransform.xOffset,L=this.dragTransform.yOffset);const w=y.getBoundingClientRect();return{left:w.left,top:w.top,offsetLeft:-i.clientX+w.left-K,offsetTop:-i.clientY+w.top-L,width:w.width*this.dragTransform.xScale,height:w.height*this.dragTransform.yScale}}ui(){const i=this.el.parentElement.getBoundingClientRect(),y=this.helper.getBoundingClientRect();return{position:{top:(y.top-i.top)*this.dragTransform.yScale,left:(y.left-i.left)*this.dragTransform.xScale}}}}nm.originStyleProp=["width","height","transform","transform-origin","transition","pointerEvents","position","left","top","minWidth","willChange"];class Xse extends W2{constructor(i,y={}){super(),this.el=i,this.option=y,this._mouseEnter=this._mouseEnter.bind(this),this._mouseLeave=this._mouseLeave.bind(this),this.enable(),this._setupAccept()}on(i,y){super.on(i,y)}off(i){super.off(i)}enable(){this.disabled!==!1&&(super.enable(),this.el.classList.add("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),this.el.addEventListener("mouseenter",this._mouseEnter),this.el.addEventListener("mouseleave",this._mouseLeave),$u&&(this.el.addEventListener("pointerenter",N6),this.el.addEventListener("pointerleave",O6)))}disable(i=!1){this.disabled!==!0&&(super.disable(),this.el.classList.remove("ui-droppable"),i||this.el.classList.add("ui-droppable-disabled"),this.el.removeEventListener("mouseenter",this._mouseEnter),this.el.removeEventListener("mouseleave",this._mouseLeave),$u&&(this.el.removeEventListener("pointerenter",N6),this.el.removeEventListener("pointerleave",O6)))}destroy(){this.disable(!0),this.el.classList.remove("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),super.destroy()}updateOption(i){return Object.keys(i).forEach(y=>this.option[y]=i[y]),this._setupAccept(),this}_mouseEnter(i){if(!Za.dragElement||!this._canDrop(Za.dragElement.el))return;i.preventDefault(),i.stopPropagation(),Za.dropElement&&Za.dropElement!==this&&Za.dropElement._mouseLeave(i,!0),Za.dropElement=this;const y=In.initEvent(i,{target:this.el,type:"dropover"});this.option.over&&this.option.over(y,this._ui(Za.dragElement)),this.triggerEvent("dropover",y),this.el.classList.add("ui-droppable-over")}_mouseLeave(i,y=!1){var F;if(!Za.dragElement||Za.dropElement!==this)return;i.preventDefault(),i.stopPropagation();const K=In.initEvent(i,{target:this.el,type:"dropout"});if(this.option.out&&this.option.out(K,this._ui(Za.dragElement)),this.triggerEvent("dropout",K),Za.dropElement===this&&(delete Za.dropElement,!y)){let L,w=this.el.parentElement;for(;!L&&w;)L=(F=w.ddElement)==null?void 0:F.ddDroppable,w=w.parentElement;L&&L._mouseEnter(i)}}drop(i){i.preventDefault();const y=In.initEvent(i,{target:this.el,type:"drop"});this.option.drop&&this.option.drop(y,this._ui(Za.dragElement)),this.triggerEvent("drop",y)}_canDrop(i){return i&&(!this.accept||this.accept(i))}_setupAccept(){return this.option.accept?(typeof this.option.accept=="string"?this.accept=i=>i.classList.contains(this.option.accept)||i.matches(this.option.accept):this.accept=this.option.accept,this):this}_ui(i){return{draggable:i.el,...i.ui()}}}class G2{static init(i){return i.ddElement||(i.ddElement=new G2(i)),i.ddElement}constructor(i){this.el=i}on(i,y){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(i)>-1?this.ddDraggable.on(i,y):this.ddDroppable&&["drop","dropover","dropout"].indexOf(i)>-1?this.ddDroppable.on(i,y):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(i)>-1&&this.ddResizable.on(i,y),this}off(i){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(i)>-1?this.ddDraggable.off(i):this.ddDroppable&&["drop","dropover","dropout"].indexOf(i)>-1?this.ddDroppable.off(i):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(i)>-1&&this.ddResizable.off(i),this}setupDraggable(i){return this.ddDraggable?this.ddDraggable.updateOption(i):this.ddDraggable=new nm(this.el,i),this}cleanDraggable(){return this.ddDraggable&&(this.ddDraggable.destroy(),delete this.ddDraggable),this}setupResizable(i){return this.ddResizable?this.ddResizable.updateOption(i):this.ddResizable=new rm(this.el,i),this}cleanResizable(){return this.ddResizable&&(this.ddResizable.destroy(),delete this.ddResizable),this}setupDroppable(i){return this.ddDroppable?this.ddDroppable.updateOption(i):this.ddDroppable=new Xse(this.el,i),this}cleanDroppable(){return this.ddDroppable&&(this.ddDroppable.destroy(),delete this.ddDroppable),this}}class Hse{resizable(i,y,F,K){return this._getDDElements(i,y).forEach(L=>{if(y==="disable"||y==="enable")L.ddResizable&&L.ddResizable[y]();else if(y==="destroy")L.ddResizable&&L.cleanResizable();else if(y==="option")L.setupResizable({[F]:K});else{const w=L.el.gridstackNode.grid;let t=L.el.getAttribute("gs-resize-handles")||w.opts.resizable.handles||"e,s,se";t==="all"&&(t="n,e,s,w,se,sw,ne,nw");const v=!w.opts.alwaysShowResizeHandle;L.setupResizable({...w.opts.resizable,handles:t,autoHide:v,start:y.start,stop:y.stop,resize:y.resize})}}),this}draggable(i,y,F,K){return this._getDDElements(i,y).forEach(L=>{if(y==="disable"||y==="enable")L.ddDraggable&&L.ddDraggable[y]();else if(y==="destroy")L.ddDraggable&&L.cleanDraggable();else if(y==="option")L.setupDraggable({[F]:K});else{const w=L.el.gridstackNode.grid;L.setupDraggable({...w.opts.draggable,start:y.start,stop:y.stop,drag:y.drag})}}),this}dragIn(i,y){return this._getDDElements(i).forEach(F=>F.setupDraggable(y)),this}droppable(i,y,F,K){return typeof y.accept=="function"&&!y._accept&&(y._accept=y.accept,y.accept=L=>y._accept(L)),this._getDDElements(i,y).forEach(L=>{y==="disable"||y==="enable"?L.ddDroppable&&L.ddDroppable[y]():y==="destroy"?L.ddDroppable&&L.cleanDroppable():y==="option"?L.setupDroppable({[F]:K}):L.setupDroppable(y)}),this}isDroppable(i){var y;return!!((y=i==null?void 0:i.ddElement)!=null&&y.ddDroppable&&!i.ddElement.ddDroppable.disabled)}isDraggable(i){var y;return!!((y=i==null?void 0:i.ddElement)!=null&&y.ddDraggable&&!i.ddElement.ddDraggable.disabled)}isResizable(i){var y;return!!((y=i==null?void 0:i.ddElement)!=null&&y.ddResizable&&!i.ddElement.ddResizable.disabled)}on(i,y,F){return this._getDDElements(i).forEach(K=>K.on(y,L=>{F(L,Za.dragElement?Za.dragElement.el:L.target,Za.dragElement?Za.dragElement.helper:null)})),this}off(i,y){return this._getDDElements(i).forEach(F=>F.off(y)),this}_getDDElements(i,y){const F=i.gridstack||y!=="destroy"&&y!=="disable",K=In.getElements(i);return K.length?K.map(L=>L.ddElement||(F?G2.init(L):null)).filter(L=>L):[]}}/*!
4074
4074
  * GridStack 12.2.2
4075
4075
  * https://gridstackjs.com/
4076
4076
  *
@@ -4078,7 +4078,7 @@ uniform ${Be} ${We} u_${at};
4078
4078
  * see root license https://github.com/gridstack/gridstack.js/tree/master/LICENSE
4079
4079
  */const jc=new Hse;class qa{static init(i={},y=".grid-stack"){if(typeof document>"u")return null;const F=qa.getGridElement(y);return F?(F.gridstack||(F.gridstack=new qa(F,In.cloneDeep(i))),F.gridstack):(console.error(typeof y=="string"?'GridStack.initAll() no grid was found with selector "'+y+`" - element missing or wrong selector ?
4080
4080
  Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`:"GridStack.init() no grid element was passed."),null)}static initAll(i={},y=".grid-stack"){const F=[];return typeof document>"u"||(qa.getGridElements(y).forEach(K=>{K.gridstack||(K.gridstack=new qa(K,In.cloneDeep(i))),F.push(K.gridstack)}),F.length===0&&console.error('GridStack.initAll() no grid was found with selector "'+y+`" - element missing or wrong selector ?
4081
- Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`)),F}static addGrid(i,y={}){if(!i)return null;let F=i;if(F.gridstack){const K=F.gridstack;return y&&(K.opts={...K.opts,...y}),y.children!==void 0&&K.load(y.children),K}return(!i.classList.contains("grid-stack")||qa.addRemoveCB)&&(qa.addRemoveCB?F=qa.addRemoveCB(i,y,!0,!0):F=In.createDiv(["grid-stack",y.class],i)),qa.init(y,F)}static registerEngine(i){qa.engineClass=i}get placeholder(){if(!this._placeholder){this._placeholder=In.createDiv([this.opts.placeholderClass,Au.itemClass,this.opts.itemClass]);const i=In.createDiv(["placeholder-content"],this._placeholder);this.opts.placeholderText&&(i.textContent=this.opts.placeholderText)}return this._placeholder}constructor(i,y={}){var F;this.el=i,this.opts=y,this.animationDelay=310,this._gsEventHandler={},this._extraDragRow=0,this.dragTransform={xScale:1,yScale:1,xOffset:0,yOffset:0},i.gridstack=this,this.opts=y=y||{},i.classList.contains("grid-stack")||this.el.classList.add("grid-stack"),y.row&&(y.minRow=y.maxRow=y.row,delete y.row);const K=In.toNumber(i.getAttribute("gs-row"));y.column==="auto"&&delete y.column,y.alwaysShowResizeHandle!==void 0&&(y._alwaysShowResizeHandle=y.alwaysShowResizeHandle);const L=y.columnOpts;if(L){const e=L.breakpoints;!L.columnWidth&&!(e!=null&&e.length)?delete y.columnOpts:(L.columnMax=L.columnMax||12,(e==null?void 0:e.length)>1&&e.sort((x,m)=>(m.w||0)-(x.w||0)))}const w={...In.cloneDeep(Au),column:In.toNumber(i.getAttribute("gs-column"))||Au.column,minRow:K||In.toNumber(i.getAttribute("gs-min-row"))||Au.minRow,maxRow:K||In.toNumber(i.getAttribute("gs-max-row"))||Au.maxRow,staticGrid:In.toBool(i.getAttribute("gs-static"))||Au.staticGrid,sizeToContent:In.toBool(i.getAttribute("gs-size-to-content"))||void 0,draggable:{handle:(y.handleClass?"."+y.handleClass:y.handle?y.handle:"")||Au.draggable.handle},removableOptions:{accept:y.itemClass||Au.removableOptions.accept,decline:Au.removableOptions.decline}};i.getAttribute("gs-animate")&&(w.animate=In.toBool(i.getAttribute("gs-animate"))),y=In.defaults(y,w),this._initMargin(),this.checkDynamicColumn(),this._updateColumnVar(y),y.rtl==="auto"&&(y.rtl=i.style.direction==="rtl"),y.rtl&&this.el.classList.add("grid-stack-rtl");const t=this.el.closest("."+Au.itemClass),v=t==null?void 0:t.gridstackNode;if(v&&(v.subGrid=this,this.parentGridNode=v,this.el.classList.add("grid-stack-nested"),v.el.classList.add("grid-stack-sub-grid")),this._isAutoCellHeight=y.cellHeight==="auto",this._isAutoCellHeight||y.cellHeight==="initial")this.cellHeight(void 0);else{typeof y.cellHeight=="number"&&y.cellHeightUnit&&y.cellHeightUnit!==Au.cellHeightUnit&&(y.cellHeight=y.cellHeight+y.cellHeightUnit,delete y.cellHeightUnit);const e=y.cellHeight;delete y.cellHeight,this.cellHeight(e)}y.alwaysShowResizeHandle==="mobile"&&(y.alwaysShowResizeHandle=$u),this._setStaticClass();const d=y.engineClass||qa.engineClass||Fd;if(this.engine=new d({column:this.getColumn(),float:y.float,maxRow:y.maxRow,onChange:e=>{e.forEach(x=>{const m=x.el;m&&(x._removeDOM?(m&&m.remove(),delete x._removeDOM):this._writePosAttr(m,x))}),this._updateContainerHeight()}}),y.auto&&(this.batchUpdate(),this.engine._loading=!0,this.getGridItems().forEach(e=>this._prepareElement(e)),delete this.engine._loading,this.batchUpdate(!1)),y.children){const e=y.children;delete y.children,e.length&&this.load(e)}this.setAnimation(),y.subGridDynamic&&!Za.pauseDrag&&(Za.pauseDrag=!0),((F=y.draggable)==null?void 0:F.pause)!==void 0&&(Za.pauseDrag=y.draggable.pause),this._setupRemoveDrop(),this._setupAcceptWidget(),this._updateResizeEvent()}_updateColumnVar(i=this.opts){this.el.classList.add("gs-"+i.column),typeof i.column=="number"&&this.el.style.setProperty("--gs-column-width",`${100/i.column}%`)}addWidget(i){if(typeof i=="string"){console.error("V11: GridStack.addWidget() does not support string anymore. see #2736");return}if(i.ELEMENT_NODE)return console.error("V11: GridStack.addWidget() does not support HTMLElement anymore. use makeWidget()"),this.makeWidget(i);let y,F=i;if(F.grid=this,F!=null&&F.el?y=F.el:qa.addRemoveCB?y=qa.addRemoveCB(this.el,i,!0,!1):y=this.createWidgetDivs(F),!y)return;if(F=y.gridstackNode,F&&y.parentElement===this.el&&this.engine.nodes.find(L=>L._id===F._id))return y;const K=this._readAttr(y);return In.defaults(i,K),this.engine.prepareNode(i),this.el.appendChild(y),this.makeWidget(y,i),y}createWidgetDivs(i){const y=In.createDiv(["grid-stack-item",this.opts.itemClass]),F=In.createDiv(["grid-stack-item-content"],y);return In.lazyLoad(i)?i.visibleObservable||(i.visibleObservable=new IntersectionObserver(([K])=>{var L,w;K.isIntersecting&&((L=i.visibleObservable)==null||L.disconnect(),delete i.visibleObservable,qa.renderCB(F,i),(w=i.grid)==null||w.prepareDragDrop(i.el))}),window.setTimeout(()=>{var K;return(K=i.visibleObservable)==null?void 0:K.observe(y)})):qa.renderCB(F,i),y}makeSubGrid(i,y,F,K=!0){var L,w,t;let v=i.gridstackNode;if(v||(v=this.makeWidget(i).gridstackNode),(L=v.subGrid)!=null&&L.el)return v.subGrid;let d,e=this;for(;e&&!d;)d=(w=e.opts)==null?void 0:w.subGridOpts,e=(t=e.parentGridNode)==null?void 0:t.grid;y=In.cloneDeep({...this.opts,id:void 0,children:void 0,column:"auto",columnOpts:void 0,layout:"list",subGridOpts:void 0,...d||{},...y||v.subGridOpts||{}}),v.subGridOpts=y;let x;y.column==="auto"&&(x=!0,y.column=Math.max(v.w||1,(F==null?void 0:F.w)||1),delete y.columnOpts);let m=v.el.querySelector(".grid-stack-item-content"),b,h;if(K&&(this._removeDD(v.el),h={...v,x:0,y:0},In.removeInternalForSave(h),delete h.subGridOpts,v.content&&(h.content=v.content,delete v.content),qa.addRemoveCB?b=qa.addRemoveCB(this.el,h,!0,!1):(b=In.createDiv(["grid-stack-item"]),b.appendChild(m),m=In.createDiv(["grid-stack-item-content"],v.el)),this.prepareDragDrop(v.el)),F){const a=x?y.column:v.w,u=v.h+F.h,s=v.el.style;s.transition="none",this.update(v.el,{w:a,h:u}),setTimeout(()=>s.transition=null)}const n=v.subGrid=qa.addGrid(m,y);return F!=null&&F._moving&&(n._isTemp=!0),x&&(n._autoColumn=!0),K&&n.makeWidget(b,h),F&&(F._moving?window.setTimeout(()=>In.simulateMouseEvent(F._event,"mouseenter",n.el),0):n.makeWidget(v.el,v)),this.resizeToContentCheck(!1,v),n}removeAsSubGrid(i){var y;const F=(y=this.parentGridNode)==null?void 0:y.grid;F&&(F.batchUpdate(),F.removeWidget(this.parentGridNode.el,!0,!0),this.engine.nodes.forEach(K=>{K.x+=this.parentGridNode.x,K.y+=this.parentGridNode.y,F.makeWidget(K.el,K)}),F.batchUpdate(!1),this.parentGridNode&&delete this.parentGridNode.subGrid,delete this.parentGridNode,i&&window.setTimeout(()=>In.simulateMouseEvent(i._event,"mouseenter",F.el),0))}save(i=!0,y=!1,F=qa.saveCB){const K=this.engine.save(i,F);if(K.forEach(L=>{var w;if(i&&L.el&&!L.subGrid&&!F){const t=L.el.querySelector(".grid-stack-item-content");L.content=t==null?void 0:t.innerHTML,L.content||delete L.content}else if(!i&&!F&&delete L.content,(w=L.subGrid)!=null&&w.el){const t=L.subGrid.save(i,y,F);L.subGridOpts=y?t:{children:t},delete L.subGrid}delete L.el}),y){const L=In.cloneDeep(this.opts);L.marginBottom===L.marginTop&&L.marginRight===L.marginLeft&&L.marginTop===L.marginRight&&(L.margin=L.marginTop,delete L.marginTop,delete L.marginRight,delete L.marginBottom,delete L.marginLeft),L.rtl===(this.el.style.direction==="rtl")&&(L.rtl="auto"),this._isAutoCellHeight&&(L.cellHeight="auto"),this._autoColumn&&(L.column="auto");const w=L._alwaysShowResizeHandle;return delete L._alwaysShowResizeHandle,w!==void 0?L.alwaysShowResizeHandle=w:delete L.alwaysShowResizeHandle,In.removeInternalAndSame(L,Au),L.children=K,L}return K}load(i,y=qa.addRemoveCB||!0){i=In.cloneDeep(i);const F=this.getColumn();i.forEach(e=>{e.w=e.w||1,e.h=e.h||1}),i=In.sort(i),this.engine.skipCacheUpdate=this._ignoreLayoutsNodeChange=!0;let K=0;i.forEach(e=>{K=Math.max(K,(e.x||0)+e.w)}),K>this.engine.defaultColumn&&(this.engine.defaultColumn=K),K>F&&(this.engine.nodes.length===0&&this.responseLayout?(this.engine.nodes=i,this.engine.columnChanged(K,F,this.responseLayout),i=this.engine.nodes,this.engine.nodes=[],delete this.responseLayout):this.engine.cacheLayout(i,K,!0));const L=qa.addRemoveCB;typeof y=="function"&&(qa.addRemoveCB=y);const w=[];this.batchUpdate();const t=!this.engine.nodes.length,v=t&&this.opts.animate;v&&this.setAnimation(!1),!t&&y&&[...this.engine.nodes].forEach(e=>{e.id&&(In.find(i,e.id)||(qa.addRemoveCB&&qa.addRemoveCB(this.el,e,!1,!1),w.push(e),this.removeWidget(e.el,!0,!1)))}),this.engine._loading=!0;const d=[];return this.engine.nodes=this.engine.nodes.filter(e=>In.find(i,e.id)?(d.push(e),!1):!0),i.forEach(e=>{var x;const m=In.find(d,e.id);if(m){if(In.shouldSizeToContent(m)&&(e.h=m.h),this.engine.nodeBoundFix(e),(e.autoPosition||e.x===void 0||e.y===void 0)&&(e.w=e.w||m.w,e.h=e.h||m.h,this.engine.findEmptyPosition(e)),this.engine.nodes.push(m),In.samePos(m,e)&&this.engine.nodes.length>1&&(this.moveNode(m,{...e,forceCollide:!0}),In.copyPos(e,m)),this.update(m.el,e),(x=e.subGridOpts)!=null&&x.children){const b=m.el.querySelector(".grid-stack");b&&b.gridstack&&b.gridstack.load(e.subGridOpts.children)}}else y&&this.addWidget(e)}),delete this.engine._loading,this.engine.removedNodes=w,this.batchUpdate(!1),delete this._ignoreLayoutsNodeChange,delete this.engine.skipCacheUpdate,L?qa.addRemoveCB=L:delete qa.addRemoveCB,v&&this.setAnimation(!0,!0),this}batchUpdate(i=!0){return this.engine.batchUpdate(i),i||(this._updateContainerHeight(),this._triggerRemoveEvent(),this._triggerAddEvent(),this._triggerChangeEvent()),this}getCellHeight(i=!1){if(this.opts.cellHeight&&this.opts.cellHeight!=="auto"&&(!i||!this.opts.cellHeightUnit||this.opts.cellHeightUnit==="px"))return this.opts.cellHeight;if(this.opts.cellHeightUnit==="rem")return this.opts.cellHeight*parseFloat(getComputedStyle(document.documentElement).fontSize);if(this.opts.cellHeightUnit==="em")return this.opts.cellHeight*parseFloat(getComputedStyle(this.el).fontSize);if(this.opts.cellHeightUnit==="cm")return this.opts.cellHeight*(96/2.54);if(this.opts.cellHeightUnit==="mm")return this.opts.cellHeight*(96/2.54)/10;const y=this.el.querySelector("."+this.opts.itemClass);if(y){const K=In.toNumber(y.getAttribute("gs-h"))||1;return Math.round(y.offsetHeight/K)}const F=parseInt(this.el.getAttribute("gs-current-row"));return F?Math.round(this.el.getBoundingClientRect().height/F):this.opts.cellHeight}cellHeight(i){if(i!==void 0&&this._isAutoCellHeight!==(i==="auto")&&(this._isAutoCellHeight=i==="auto",this._updateResizeEvent()),(i==="initial"||i==="auto")&&(i=void 0),i===void 0){const F=-this.opts.marginRight-this.opts.marginLeft+this.opts.marginTop+this.opts.marginBottom;i=this.cellWidth()+F}const y=In.parseHeight(i);return this.opts.cellHeightUnit===y.unit&&this.opts.cellHeight===y.h?this:(this.opts.cellHeightUnit=y.unit,this.opts.cellHeight=y.h,this.el.style.setProperty("--gs-cell-height",`${this.opts.cellHeight}${this.opts.cellHeightUnit}`),this._updateContainerHeight(),this.resizeToContentCheck(),this)}cellWidth(){return this._widthOrContainer()/this.getColumn()}_widthOrContainer(i=!1){var y;return i&&(y=this.opts.columnOpts)!=null&&y.breakpointForWindow?window.innerWidth:this.el.clientWidth||this.el.parentElement.clientWidth||window.innerWidth}checkDynamicColumn(){var i,y;const F=this.opts.columnOpts;if(!F||!F.columnWidth&&!((i=F.breakpoints)!=null&&i.length))return!1;const K=this.getColumn();let L=K;const w=this._widthOrContainer(!0);if(F.columnWidth)L=Math.min(Math.round(w/F.columnWidth)||1,F.columnMax);else{L=F.columnMax;let t=0;for(;t<F.breakpoints.length&&w<=F.breakpoints[t].w;)L=F.breakpoints[t++].c||K}if(L!==K){const t=(y=F.breakpoints)==null?void 0:y.find(v=>v.c===L);return this.column(L,(t==null?void 0:t.layout)||F.layout),!0}return!1}compact(i="compact",y=!0){return this.engine.compact(i,y),this._triggerChangeEvent(),this}column(i,y="moveScale"){if(!i||i<1||this.opts.column===i)return this;const F=this.getColumn();return this.opts.column=i,this.engine?(this.engine.column=i,this.el.classList.remove("gs-"+F),this._updateColumnVar(),this.engine.columnChanged(F,i,y),this._isAutoCellHeight&&this.cellHeight(),this.resizeToContentCheck(!0),this._ignoreLayoutsNodeChange=!0,this._triggerChangeEvent(),delete this._ignoreLayoutsNodeChange,this):(this.responseLayout=y,this)}getColumn(){return this.opts.column}getGridItems(){return Array.from(this.el.children).filter(i=>i.matches("."+this.opts.itemClass)&&!i.matches("."+this.opts.placeholderClass))}isIgnoreChangeCB(){return this._ignoreLayoutsNodeChange}destroy(i=!0){var y;if(this.el)return this.offAll(),this._updateResizeEvent(!0),this.setStatic(!0,!1),this.setAnimation(!1),i?this.el.parentNode.removeChild(this.el):(this.removeAll(i),this.el.removeAttribute("gs-current-row")),this.parentGridNode&&delete this.parentGridNode.subGrid,delete this.parentGridNode,delete this.opts,(y=this._placeholder)==null||delete y.gridstackNode,delete this._placeholder,delete this.engine,delete this.el.gridstack,delete this.el,this}float(i){return this.opts.float!==i&&(this.opts.float=this.engine.float=i,this._triggerChangeEvent()),this}getFloat(){return this.engine.float}getCellFromPixel(i,y=!1){const F=this.el.getBoundingClientRect();let K;y?K={top:F.top+document.documentElement.scrollTop,left:F.left}:K={top:this.el.offsetTop,left:this.el.offsetLeft};const L=i.left-K.left,w=i.top-K.top,t=F.width/this.getColumn(),v=F.height/parseInt(this.el.getAttribute("gs-current-row"));return{x:Math.floor(L/t),y:Math.floor(w/v)}}getRow(){return Math.max(this.engine.getRow(),this.opts.minRow||0)}isAreaEmpty(i,y,F,K){return this.engine.isAreaEmpty(i,y,F,K)}makeWidget(i,y){const F=qa.getElement(i);if(!F||F.gridstackNode)return F;F.parentElement||this.el.appendChild(F),this._prepareElement(F,!0,y);const K=F.gridstackNode;this._updateContainerHeight(),K.subGridOpts&&this.makeSubGrid(F,K.subGridOpts,void 0,!1);let L;return this.opts.column===1&&!this._ignoreLayoutsNodeChange&&(L=this._ignoreLayoutsNodeChange=!0),this._triggerAddEvent(),this._triggerChangeEvent(),L&&delete this._ignoreLayoutsNodeChange,F}on(i,y){return i.indexOf(" ")!==-1?(i.split(" ").forEach(F=>this.on(F,y)),this):(i==="change"||i==="added"||i==="removed"||i==="enable"||i==="disable"?(i==="enable"||i==="disable"?this._gsEventHandler[i]=F=>y(F):this._gsEventHandler[i]=F=>{F.detail&&y(F,F.detail)},this.el.addEventListener(i,this._gsEventHandler[i])):i==="drag"||i==="dragstart"||i==="dragstop"||i==="resizestart"||i==="resize"||i==="resizestop"||i==="dropped"||i==="resizecontent"?this._gsEventHandler[i]=y:console.error("GridStack.on("+i+") event not supported"),this)}off(i){return i.indexOf(" ")!==-1?(i.split(" ").forEach(y=>this.off(y)),this):((i==="change"||i==="added"||i==="removed"||i==="enable"||i==="disable")&&this._gsEventHandler[i]&&this.el.removeEventListener(i,this._gsEventHandler[i]),delete this._gsEventHandler[i],this)}offAll(){return Object.keys(this._gsEventHandler).forEach(i=>this.off(i)),this}removeWidget(i,y=!0,F=!0){return i?(qa.getElements(i).forEach(K=>{if(K.parentElement&&K.parentElement!==this.el)return;let L=K.gridstackNode;L||(L=this.engine.nodes.find(w=>K===w.el)),L&&(y&&qa.addRemoveCB&&qa.addRemoveCB(this.el,L,!1,!1),delete K.gridstackNode,this._removeDD(K),this.engine.removeNode(L,y,F),y&&K.parentElement&&K.remove())}),F&&(this._triggerRemoveEvent(),this._triggerChangeEvent()),this):(console.error("Error: GridStack.removeWidget(undefined) called"),this)}removeAll(i=!0,y=!0){return this.engine.nodes.forEach(F=>{i&&qa.addRemoveCB&&qa.addRemoveCB(this.el,F,!1,!1),delete F.el.gridstackNode,this.opts.staticGrid||this._removeDD(F.el)}),this.engine.removeAll(i,y),y&&this._triggerRemoveEvent(),this}setAnimation(i=this.opts.animate,y){return y?setTimeout(()=>{this.opts&&this.setAnimation(i)}):i?this.el.classList.add("grid-stack-animate"):this.el.classList.remove("grid-stack-animate"),this.opts.animate=i,this}hasAnimationCSS(){return this.el.classList.contains("grid-stack-animate")}setStatic(i,y=!0,F=!0){return!!this.opts.staticGrid===i?this:(i?this.opts.staticGrid=!0:delete this.opts.staticGrid,this._setupRemoveDrop(),this._setupAcceptWidget(),this.engine.nodes.forEach(K=>{this.prepareDragDrop(K.el),K.subGrid&&F&&K.subGrid.setStatic(i,y,F)}),y&&this._setStaticClass(),this)}updateOptions(i){var y;const F=this.opts;return i===F?this:(i.acceptWidgets!==void 0&&(F.acceptWidgets=i.acceptWidgets,this._setupAcceptWidget()),i.animate!==void 0&&this.setAnimation(i.animate),i.cellHeight&&this.cellHeight(i.cellHeight),i.class!==void 0&&i.class!==F.class&&(F.class&&this.el.classList.remove(F.class),i.class&&this.el.classList.add(i.class)),i.columnOpts?(this.opts.columnOpts=i.columnOpts,this.checkDynamicColumn()):i.columnOpts===null&&this.opts.columnOpts?(delete this.opts.columnOpts,this._updateResizeEvent()):typeof i.column=="number"&&this.column(i.column),i.margin!==void 0&&this.margin(i.margin),i.staticGrid!==void 0&&this.setStatic(i.staticGrid),i.disableDrag!==void 0&&!i.staticGrid&&this.enableMove(!i.disableDrag),i.disableResize!==void 0&&!i.staticGrid&&this.enableResize(!i.disableResize),i.float!==void 0&&this.float(i.float),i.row!==void 0?(F.minRow=F.maxRow=F.row=i.row,this._updateContainerHeight()):(i.minRow!==void 0&&(F.minRow=i.minRow,this._updateContainerHeight()),i.maxRow!==void 0&&(F.maxRow=i.maxRow)),(y=i.children)!=null&&y.length&&this.load(i.children),this)}update(i,y){return qa.getElements(i).forEach(F=>{var K;const L=F==null?void 0:F.gridstackNode;if(!L)return;const w={...In.copyPos({},L),...In.cloneDeep(y)};this.engine.nodeBoundFix(w),delete w.autoPosition;const t=["x","y","w","h"];let v;if(t.some(x=>w[x]!==void 0&&w[x]!==L[x])&&(v={},t.forEach(x=>{v[x]=w[x]!==void 0?w[x]:L[x],delete w[x]})),!v&&(w.minW||w.minH||w.maxW||w.maxH)&&(v={}),w.content!==void 0){const x=F.querySelector(".grid-stack-item-content");x&&x.textContent!==w.content&&(L.content=w.content,qa.renderCB(x,w),(K=L.subGrid)!=null&&K.el&&(x.appendChild(L.subGrid.el),L.subGrid._updateContainerHeight())),delete w.content}let d=!1,e=!1;for(const x in w)x[0]!=="_"&&L[x]!==w[x]&&(L[x]=w[x],d=!0,e=e||!this.opts.staticGrid&&(x==="noResize"||x==="noMove"||x==="locked"));if(In.sanitizeMinMax(L),v){const x=v.w!==void 0&&v.w!==L.w;this.moveNode(L,v),x&&L.subGrid?L.subGrid.onResize(this.hasAnimationCSS()?L.w:void 0):this.resizeToContentCheck(x,L),delete L._orig}(v||d)&&this._writeAttr(F,L),e&&this.prepareDragDrop(L.el),qa.updateCB&&qa.updateCB(L)}),this}moveNode(i,y){const F=i._updating;F||this.engine.cleanNodes().beginUpdate(i),this.engine.moveNode(i,y),this._updateContainerHeight(),F||(this._triggerChangeEvent(),this.engine.endUpdate())}resizeToContent(i){var y,F;if(!i||(i.classList.remove("size-to-content-max"),!i.clientHeight))return;const K=i.gridstackNode;if(!K)return;const L=K.grid;if(!L||i.parentElement!==L.el)return;const w=L.getCellHeight(!0);if(!w)return;let t=K.h?K.h*w:i.clientHeight,v;if(K.resizeToContentParent&&(v=i.querySelector(K.resizeToContentParent)),v||(v=i.querySelector(qa.resizeToContentParent)),!v)return;const d=i.clientHeight-v.clientHeight,e=K.h?K.h*w-d:v.clientHeight;let x;if(K.subGrid){x=K.subGrid.getRow()*K.subGrid.getCellHeight(!0);const h=K.subGrid.el.getBoundingClientRect(),n=i.getBoundingClientRect();x+=h.top-n.top}else{if((F=(y=K.subGridOpts)==null?void 0:y.children)!=null&&F.length)return;{const h=v.firstElementChild;if(!h){console.error(`Error: GridStack.resizeToContent() widget id:${K.id} '${qa.resizeToContentParent}'.firstElementChild is null, make sure to have a div like container. Skipping sizing.`);return}x=h.getBoundingClientRect().height||e}}if(e===x)return;t+=x-e;let m=Math.ceil(t/w);const b=Number.isInteger(K.sizeToContent)?K.sizeToContent:0;b&&m>b&&(m=b,i.classList.add("size-to-content-max")),K.minH&&m<K.minH?m=K.minH:K.maxH&&m>K.maxH&&(m=K.maxH),m!==K.h&&(L._ignoreLayoutsNodeChange=!0,L.moveNode(K,{h:m}),delete L._ignoreLayoutsNodeChange)}resizeToContentCBCheck(i){qa.resizeToContentCB?qa.resizeToContentCB(i):this.resizeToContent(i)}rotate(i,y){return qa.getElements(i).forEach(F=>{const K=F.gridstackNode;if(!In.canBeRotated(K))return;const L={w:K.h,h:K.w,minH:K.minW,minW:K.minH,maxH:K.maxW,maxW:K.maxH};if(y){const t=y.left>0?Math.floor(y.left/this.cellWidth()):0,v=y.top>0?Math.floor(y.top/this.opts.cellHeight):0;L.x=K.x+t-(K.h-(v+1)),L.y=K.y+v-t}Object.keys(L).forEach(t=>{L[t]===void 0&&delete L[t]});const w=K._orig;this.update(F,L),K._orig=w}),this}margin(i){if(!(typeof i=="string"&&i.split(" ").length>1)){const y=In.parseHeight(i);if(this.opts.marginUnit===y.unit&&this.opts.margin===y.h)return}return this.opts.margin=i,this.opts.marginTop=this.opts.marginBottom=this.opts.marginLeft=this.opts.marginRight=void 0,this._initMargin(),this}getMargin(){return this.opts.margin}willItFit(i){if(arguments.length>1){console.warn("gridstack.ts: `willItFit(x,y,w,h,autoPosition)` is deprecated. Use `willItFit({x, y,...})`. It will be removed soon");const y=arguments;let F=0,K={x:y[F++],y:y[F++],w:y[F++],h:y[F++],autoPosition:y[F++]};return this.willItFit(K)}return this.engine.willItFit(i)}_triggerChangeEvent(){if(this.engine.batchMode)return this;const i=this.engine.getDirtyNodes(!0);return i&&i.length&&(this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(i),this._triggerEvent("change",i)),this.engine.saveInitial(),this}_triggerAddEvent(){var i;if(this.engine.batchMode)return this;if((i=this.engine.addedNodes)!=null&&i.length){this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(this.engine.addedNodes),this.engine.addedNodes.forEach(F=>{delete F._dirty});const y=[...this.engine.addedNodes];this.engine.addedNodes=[],this._triggerEvent("added",y)}return this}_triggerRemoveEvent(){var i;if(this.engine.batchMode)return this;if((i=this.engine.removedNodes)!=null&&i.length){const y=[...this.engine.removedNodes];this.engine.removedNodes=[],this._triggerEvent("removed",y)}return this}_triggerEvent(i,y){const F=y?new CustomEvent(i,{bubbles:!1,detail:y}):new Event(i);let K=this;for(;K.parentGridNode;)K=K.parentGridNode.grid;return K.el.dispatchEvent(F),this}_updateContainerHeight(){if(!this.engine||this.engine.batchMode)return this;const i=this.parentGridNode;let y=this.getRow()+this._extraDragRow;const F=this.opts.cellHeight,K=this.opts.cellHeightUnit;if(!F)return this;if(!i&&!this.opts.minRow){const L=In.parseHeight(getComputedStyle(this.el).minHeight);if(L.h>0&&L.unit===K){const w=Math.floor(L.h/F);y<w&&(y=w)}}return this.el.setAttribute("gs-current-row",String(y)),this.el.style.removeProperty("min-height"),this.el.style.removeProperty("height"),y&&(this.el.style[i?"minHeight":"height"]=y*F+K),i&&In.shouldSizeToContent(i)&&i.grid.resizeToContentCBCheck(i.el),this}_prepareElement(i,y=!1,F){F=F||this._readAttr(i),i.gridstackNode=F,F.el=i,F.grid=this,F=this.engine.addNode(F,y),this._writeAttr(i,F),i.classList.add(Au.itemClass,this.opts.itemClass);const K=In.shouldSizeToContent(F);return K?i.classList.add("size-to-content"):i.classList.remove("size-to-content"),K&&this.resizeToContentCheck(!1,F),In.lazyLoad(F)||this.prepareDragDrop(F.el),this}_writePosAttr(i,y){return(!y._moving&&!y._resizing||this._placeholder===i)&&(i.style.top=y.y?y.y===1?"var(--gs-cell-height)":`calc(${y.y} * var(--gs-cell-height))`:null,i.style.left=y.x?y.x===1?"var(--gs-column-width)":`calc(${y.x} * var(--gs-column-width))`:null,i.style.width=y.w>1?`calc(${y.w} * var(--gs-column-width))`:null,i.style.height=y.h>1?`calc(${y.h} * var(--gs-cell-height))`:null),y.x>0?i.setAttribute("gs-x",String(y.x)):i.removeAttribute("gs-x"),y.y>0?i.setAttribute("gs-y",String(y.y)):i.removeAttribute("gs-y"),y.w>1?i.setAttribute("gs-w",String(y.w)):i.removeAttribute("gs-w"),y.h>1?i.setAttribute("gs-h",String(y.h)):i.removeAttribute("gs-h"),this}_writeAttr(i,y){if(!y)return this;this._writePosAttr(i,y);const F={noResize:"gs-no-resize",noMove:"gs-no-move",locked:"gs-locked",id:"gs-id",sizeToContent:"gs-size-to-content"};for(const K in F)y[K]?i.setAttribute(F[K],String(y[K])):i.removeAttribute(F[K]);return this}_readAttr(i,y=!0){const F={};F.x=In.toNumber(i.getAttribute("gs-x")),F.y=In.toNumber(i.getAttribute("gs-y")),F.w=In.toNumber(i.getAttribute("gs-w")),F.h=In.toNumber(i.getAttribute("gs-h")),F.autoPosition=In.toBool(i.getAttribute("gs-auto-position")),F.noResize=In.toBool(i.getAttribute("gs-no-resize")),F.noMove=In.toBool(i.getAttribute("gs-no-move")),F.locked=In.toBool(i.getAttribute("gs-locked"));const K=i.getAttribute("gs-size-to-content");K&&(K==="true"||K==="false"?F.sizeToContent=In.toBool(K):F.sizeToContent=parseInt(K,10)),F.id=i.getAttribute("gs-id"),F.maxW=In.toNumber(i.getAttribute("gs-max-w")),F.minW=In.toNumber(i.getAttribute("gs-min-w")),F.maxH=In.toNumber(i.getAttribute("gs-max-h")),F.minH=In.toNumber(i.getAttribute("gs-min-h")),y&&(F.w===1&&i.removeAttribute("gs-w"),F.h===1&&i.removeAttribute("gs-h"),F.maxW&&i.removeAttribute("gs-max-w"),F.minW&&i.removeAttribute("gs-min-w"),F.maxH&&i.removeAttribute("gs-max-h"),F.minH&&i.removeAttribute("gs-min-h"));for(const L in F){if(!F.hasOwnProperty(L))return;!F[L]&&F[L]!==0&&L!=="sizeToContent"&&delete F[L]}return F}_setStaticClass(){const i=["grid-stack-static"];return this.opts.staticGrid?(this.el.classList.add(...i),this.el.setAttribute("gs-static","true")):(this.el.classList.remove(...i),this.el.removeAttribute("gs-static")),this}onResize(i=(y=>(y=this.el)==null?void 0:y.clientWidth)()){if(!i||this.prevWidth===i)return;this.prevWidth=i,this.batchUpdate();let y=!1;return this._autoColumn&&this.parentGridNode?this.opts.column!==this.parentGridNode.w&&(this.column(this.parentGridNode.w,this.opts.layout||"list"),y=!0):y=this.checkDynamicColumn(),this._isAutoCellHeight&&this.cellHeight(),this.engine.nodes.forEach(F=>{F.subGrid&&F.subGrid.onResize()}),this._skipInitialResize||this.resizeToContentCheck(y),delete this._skipInitialResize,this.batchUpdate(!1),this}resizeToContentCheck(i=!1,y=void 0){if(this.engine){if(i&&this.hasAnimationCSS())return setTimeout(()=>this.resizeToContentCheck(!1,y),this.animationDelay);if(y)In.shouldSizeToContent(y)&&this.resizeToContentCBCheck(y.el);else if(this.engine.nodes.some(F=>In.shouldSizeToContent(F))){const F=[...this.engine.nodes];this.batchUpdate(),F.forEach(K=>{In.shouldSizeToContent(K)&&this.resizeToContentCBCheck(K.el)}),this._ignoreLayoutsNodeChange=!0,this.batchUpdate(!1),this._ignoreLayoutsNodeChange=!1}this._gsEventHandler.resizecontent&&this._gsEventHandler.resizecontent(null,y?[y]:this.engine.nodes)}}_updateResizeEvent(i=!1){const y=!this.parentGridNode&&(this._isAutoCellHeight||this.opts.sizeToContent||this.opts.columnOpts||this.engine.nodes.find(F=>F.sizeToContent));return!i&&y&&!this.resizeObserver?(this._sizeThrottle=In.throttle(()=>this.onResize(),this.opts.cellHeightThrottle),this.resizeObserver=new ResizeObserver(()=>this._sizeThrottle()),this.resizeObserver.observe(this.el),this._skipInitialResize=!0):(i||!y)&&this.resizeObserver&&(this.resizeObserver.disconnect(),delete this.resizeObserver,delete this._sizeThrottle),this}static getElement(i=".grid-stack-item"){return In.getElement(i)}static getElements(i=".grid-stack-item"){return In.getElements(i)}static getGridElement(i){return qa.getElement(i)}static getGridElements(i){return In.getElements(i)}_initMargin(){let i,y=0,F=[];typeof this.opts.margin=="string"&&(F=this.opts.margin.split(" ")),F.length===2?(this.opts.marginTop=this.opts.marginBottom=F[0],this.opts.marginLeft=this.opts.marginRight=F[1]):F.length===4?(this.opts.marginTop=F[0],this.opts.marginRight=F[1],this.opts.marginBottom=F[2],this.opts.marginLeft=F[3]):(i=In.parseHeight(this.opts.margin),this.opts.marginUnit=i.unit,y=this.opts.margin=i.h),["marginTop","marginRight","marginBottom","marginLeft"].forEach(L=>{this.opts[L]===void 0?this.opts[L]=y:(i=In.parseHeight(this.opts[L]),this.opts[L]=i.h,delete this.opts.margin)}),this.opts.marginUnit=i.unit,this.opts.marginTop===this.opts.marginBottom&&this.opts.marginLeft===this.opts.marginRight&&this.opts.marginTop===this.opts.marginRight&&(this.opts.margin=this.opts.marginTop);const K=this.el.style;return K.setProperty("--gs-item-margin-top",`${this.opts.marginTop}${this.opts.marginUnit}`),K.setProperty("--gs-item-margin-bottom",`${this.opts.marginBottom}${this.opts.marginUnit}`),K.setProperty("--gs-item-margin-right",`${this.opts.marginRight}${this.opts.marginUnit}`),K.setProperty("--gs-item-margin-left",`${this.opts.marginLeft}${this.opts.marginUnit}`),this}static getDD(){return jc}static setupDragIn(i,y,F,K=document){(y==null?void 0:y.pause)!==void 0&&(Za.pauseDrag=y.pause),y={appendTo:"body",helper:"clone",...y||{}},(typeof i=="string"?In.getElements(i,K):i).forEach((L,w)=>{jc.isDraggable(L)||jc.dragIn(L,y),F!=null&&F[w]&&(L.gridstackNode=F[w])})}movable(i,y){return this.opts.staticGrid?this:(qa.getElements(i).forEach(F=>{const K=F.gridstackNode;K&&(y?delete K.noMove:K.noMove=!0,this.prepareDragDrop(K.el))}),this)}resizable(i,y){return this.opts.staticGrid?this:(qa.getElements(i).forEach(F=>{const K=F.gridstackNode;K&&(y?delete K.noResize:K.noResize=!0,this.prepareDragDrop(K.el))}),this)}disable(i=!0){if(!this.opts.staticGrid)return this.enableMove(!1,i),this.enableResize(!1,i),this._triggerEvent("disable"),this}enable(i=!0){if(!this.opts.staticGrid)return this.enableMove(!0,i),this.enableResize(!0,i),this._triggerEvent("enable"),this}enableMove(i,y=!0){return this.opts.staticGrid?this:(i?delete this.opts.disableDrag:this.opts.disableDrag=!0,this.engine.nodes.forEach(F=>{this.prepareDragDrop(F.el),F.subGrid&&y&&F.subGrid.enableMove(i,y)}),this)}enableResize(i,y=!0){return this.opts.staticGrid?this:(i?delete this.opts.disableResize:this.opts.disableResize=!0,this.engine.nodes.forEach(F=>{this.prepareDragDrop(F.el),F.subGrid&&y&&F.subGrid.enableResize(i,y)}),this)}cancelDrag(){var i;const y=(i=this._placeholder)==null?void 0:i.gridstackNode;y&&(y._isExternal?(y._isAboutToRemove=!0,this.engine.removeNode(y)):y._isAboutToRemove&&qa._itemRemoving(y.el,!1),this.engine.restoreInitial())}_removeDD(i){return jc.draggable(i,"destroy").resizable(i,"destroy"),i.gridstackNode&&delete i.gridstackNode._initDD,delete i.ddElement,this}_setupAcceptWidget(){if(this.opts.staticGrid||!this.opts.acceptWidgets&&!this.opts.removable)return jc.droppable(this.el,"destroy"),this;let i,y;const F=(K,L,w)=>{var t;w=w||L;const v=w.gridstackNode;if(!v)return;if(!((t=v.grid)!=null&&t.el)){w.style.transform=`scale(${1/this.dragTransform.xScale},${1/this.dragTransform.yScale})`;const b=w.getBoundingClientRect();w.style.left=b.x+(this.dragTransform.xScale-1)*(K.clientX-b.x)/this.dragTransform.xScale+"px",w.style.top=b.y+(this.dragTransform.yScale-1)*(K.clientY-b.y)/this.dragTransform.yScale+"px",w.style.transformOrigin="0px 0px"}let{top:d,left:e}=w.getBoundingClientRect();const x=this.el.getBoundingClientRect();e-=x.left,d-=x.top;const m={position:{top:d*this.dragTransform.xScale,left:e*this.dragTransform.yScale}};if(v._temporaryRemoved){if(v.x=Math.max(0,Math.round(e/y)),v.y=Math.max(0,Math.round(d/i)),delete v.autoPosition,this.engine.nodeBoundFix(v),!this.engine.willItFit(v)){if(v.autoPosition=!0,!this.engine.willItFit(v)){jc.off(L,"drag");return}v._willFitPos&&(In.copyPos(v,v._willFitPos),delete v._willFitPos)}this._onStartMoving(w,K,m,v,y,i)}else this._dragOrResize(w,K,m,v,y,i)};return jc.droppable(this.el,{accept:K=>{const L=K.gridstackNode||this._readAttr(K,!1);if((L==null?void 0:L.grid)===this)return!0;if(!this.opts.acceptWidgets)return!1;let w=!0;if(typeof this.opts.acceptWidgets=="function")w=this.opts.acceptWidgets(K);else{const t=this.opts.acceptWidgets===!0?".grid-stack-item":this.opts.acceptWidgets;w=K.matches(t)}if(w&&L&&this.opts.maxRow){const t={w:L.w,h:L.h,minW:L.minW,minH:L.minH};w=this.engine.willItFit(t)}return w}}).on(this.el,"dropover",(K,L,w)=>{let t=(w==null?void 0:w.gridstackNode)||L.gridstackNode;if((t==null?void 0:t.grid)===this&&!t._temporaryRemoved)return!1;if(t!=null&&t._sidebarOrig&&(t.w=t._sidebarOrig.w,t.h=t._sidebarOrig.h),t!=null&&t.grid&&t.grid!==this&&!t._temporaryRemoved&&t.grid._leave(L,w),w=w||L,y=this.cellWidth(),i=this.getCellHeight(!0),!t){const e=w.getAttribute("data-gs-widget")||w.getAttribute("gridstacknode");if(e){try{t=JSON.parse(e)}catch{console.error("Gridstack dropover: Bad JSON format: ",e)}w.removeAttribute("data-gs-widget"),w.removeAttribute("gridstacknode")}t||(t=this._readAttr(w)),t._sidebarOrig={w:t.w,h:t.h}}t.grid||(t.el||(t={...t}),t._isExternal=!0,w.gridstackNode=t);const v=t.w||Math.round(w.offsetWidth/y)||1,d=t.h||Math.round(w.offsetHeight/i)||1;return t.grid&&t.grid!==this?(L._gridstackNodeOrig||(L._gridstackNodeOrig=t),L.gridstackNode=t={...t,w:v,h:d,grid:this},delete t.x,delete t.y,this.engine.cleanupNode(t).nodeBoundFix(t),t._initDD=t._isExternal=t._temporaryRemoved=!0):(t.w=v,t.h=d,t._temporaryRemoved=!0),qa._itemRemoving(t.el,!1),jc.on(L,"drag",F),F(K,L,w),!1}).on(this.el,"dropout",(K,L,w)=>{const t=(w==null?void 0:w.gridstackNode)||L.gridstackNode;return t&&(!t.grid||t.grid===this)&&(this._leave(L,w),this._isTemp&&this.removeAsSubGrid(t)),!1}).on(this.el,"drop",(K,L,w)=>{var t,v,d;const e=(w==null?void 0:w.gridstackNode)||L.gridstackNode;if((e==null?void 0:e.grid)===this&&!e._isExternal)return!1;const x=!!this.placeholder.parentElement,m=L!==w;this.placeholder.remove(),delete this.placeholder.gridstackNode,x&&this.opts.animate&&(this.setAnimation(!1),this.setAnimation(!0,!0));const b=L._gridstackNodeOrig;if(delete L._gridstackNodeOrig,x&&b!=null&&b.grid&&b.grid!==this){const n=b.grid;n.engine.removeNodeFromLayoutCache(b),n.engine.removedNodes.push(b),n._triggerRemoveEvent()._triggerChangeEvent(),n.parentGridNode&&!n.engine.nodes.length&&n.opts.subGridDynamic&&n.removeAsSubGrid()}if(!e||(x&&(this.engine.cleanupNode(e),e.grid=this),(t=e.grid)==null||delete t._isTemp,jc.off(L,"drag"),w!==L?(w.remove(),L=w):L.remove(),this._removeDD(L),!x))return!1;const h=(d=(v=e.subGrid)==null?void 0:v.el)==null?void 0:d.gridstack;return In.copyPos(e,this._readAttr(this.placeholder)),In.removePositioningStyles(L),m&&(e.content||e.subGridOpts||qa.addRemoveCB)?(delete e.el,L=this.addWidget(e)):(this._prepareElement(L,!0,e),this.el.appendChild(L),this.resizeToContentCheck(!1,e),h&&(h.parentGridNode=e),this._updateContainerHeight()),this.engine.addedNodes.push(e),this._triggerAddEvent(),this._triggerChangeEvent(),this.engine.endUpdate(),this._gsEventHandler.dropped&&this._gsEventHandler.dropped({...K,type:"dropped"},b&&b.grid?b:void 0,e),!1}),this}static _itemRemoving(i,y){if(!i)return;const F=i?i.gridstackNode:void 0;!(F!=null&&F.grid)||i.classList.contains(F.grid.opts.removableOptions.decline)||(y?F._isAboutToRemove=!0:delete F._isAboutToRemove,y?i.classList.add("grid-stack-item-removing"):i.classList.remove("grid-stack-item-removing"))}_setupRemoveDrop(){if(typeof this.opts.removable!="string")return this;const i=document.querySelector(this.opts.removable);return i?(!this.opts.staticGrid&&!jc.isDroppable(i)&&jc.droppable(i,this.opts.removableOptions).on(i,"dropover",(y,F)=>qa._itemRemoving(F,!0)).on(i,"dropout",(y,F)=>qa._itemRemoving(F,!1)),this):this}prepareDragDrop(i,y=!1){const F=i==null?void 0:i.gridstackNode;if(!F)return;const K=F.noMove||this.opts.disableDrag,L=F.noResize||this.opts.disableResize,w=this.opts.staticGrid||K&&L;if((y||w)&&(F._initDD&&(this._removeDD(i),delete F._initDD),w&&i.classList.add("ui-draggable-disabled","ui-resizable-disabled"),!y))return this;if(!F._initDD){let t,v;const d=(m,b)=>{this.triggerEvent(m,m.target),t=this.cellWidth(),v=this.getCellHeight(!0),this._onStartMoving(i,m,b,F,t,v)},e=(m,b)=>{this._dragOrResize(i,m,b,F,t,v)},x=m=>{this.placeholder.remove(),delete this.placeholder.gridstackNode,delete F._moving,delete F._resizing,delete F._event,delete F._lastTried;const b=F.w!==F._orig.w,h=m.target;if(!(!h.gridstackNode||h.gridstackNode.grid!==this)){if(F.el=h,F._isAboutToRemove){const n=i.gridstackNode.grid;n._gsEventHandler[m.type]&&n._gsEventHandler[m.type](m,h),n.engine.nodes.push(F),n.removeWidget(i,!0,!0)}else In.removePositioningStyles(h),F._temporaryRemoved?(In.copyPos(F,F._orig),this._writePosAttr(h,F),this.engine.addNode(F)):this._writePosAttr(h,F),this.triggerEvent(m,h);this._extraDragRow=0,this._updateContainerHeight(),this._triggerChangeEvent(),this.engine.endUpdate(),m.type==="resizestop"&&(Number.isInteger(F.sizeToContent)&&(F.sizeToContent=F.h),this.resizeToContentCheck(b,F))}};jc.draggable(i,{start:d,stop:x,drag:e}).resizable(i,{start:d,stop:x,resize:e}),F._initDD=!0}return jc.draggable(i,K?"disable":"enable").resizable(i,L?"disable":"enable"),this}_onStartMoving(i,y,F,K,L,w){var t;if(this.engine.cleanNodes().beginUpdate(K),this._writePosAttr(this.placeholder,K),this.el.appendChild(this.placeholder),this.placeholder.gridstackNode=K,(t=K.grid)!=null&&t.el)this.dragTransform=In.getValuesFromTransformedElement(i);else if(this.placeholder&&this.placeholder.closest(".grid-stack")){const v=this.placeholder.closest(".grid-stack");this.dragTransform=In.getValuesFromTransformedElement(v)}else this.dragTransform={xScale:1,xOffset:0,yScale:1,yOffset:0};if(K.el=this.placeholder,K._lastUiPosition=F.position,K._prevYPix=F.position.top,K._moving=y.type==="dragstart",K._resizing=y.type==="resizestart",delete K._lastTried,y.type==="dropover"&&K._temporaryRemoved&&(this.engine.addNode(K),K._moving=!0),this.engine.cacheRects(L,w,this.opts.marginTop,this.opts.marginRight,this.opts.marginBottom,this.opts.marginLeft),y.type==="resizestart"){const v=this.getColumn()-K.x,d=(this.opts.maxRow||Number.MAX_SAFE_INTEGER)-K.y;jc.resizable(i,"option","minWidth",L*Math.min(K.minW||1,v)).resizable(i,"option","minHeight",w*Math.min(K.minH||1,d)).resizable(i,"option","maxWidth",L*Math.min(K.maxW||Number.MAX_SAFE_INTEGER,v)).resizable(i,"option","maxWidthMoveLeft",L*Math.min(K.maxW||Number.MAX_SAFE_INTEGER,K.x+K.w)).resizable(i,"option","maxHeight",w*Math.min(K.maxH||Number.MAX_SAFE_INTEGER,d)).resizable(i,"option","maxHeightMoveUp",w*Math.min(K.maxH||Number.MAX_SAFE_INTEGER,K.y+K.h))}}_dragOrResize(i,y,F,K,L,w){const t={...K._orig};let v,d=this.opts.marginLeft,e=this.opts.marginRight,x=this.opts.marginTop,m=this.opts.marginBottom;const b=Math.round(w*.1),h=Math.round(L*.1);if(d=Math.min(d,h),e=Math.min(e,h),x=Math.min(x,b),m=Math.min(m,b),y.type==="drag"){if(K._temporaryRemoved)return;const a=F.position.top-K._prevYPix;K._prevYPix=F.position.top,this.opts.draggable.scroll!==!1&&In.updateScrollPosition(i,F.position,a);const u=F.position.left+(F.position.left>K._lastUiPosition.left?-e:d),s=F.position.top+(F.position.top>K._lastUiPosition.top?-m:x);t.x=Math.round(u/L),t.y=Math.round(s/w);const l=this._extraDragRow;if(this.engine.collide(K,t)){const f=this.getRow();let g=Math.max(0,t.y+K.h-f);this.opts.maxRow&&f+g>this.opts.maxRow&&(g=Math.max(0,this.opts.maxRow-f)),this._extraDragRow=g}else this._extraDragRow=0;if(this._extraDragRow!==l&&this._updateContainerHeight(),K.x===t.x&&K.y===t.y)return}else if(y.type==="resize"){if(t.x<0||(In.updateScrollResize(y,i,w),t.w=Math.round((F.size.width-d)/L),t.h=Math.round((F.size.height-x)/w),K.w===t.w&&K.h===t.h)||K._lastTried&&K._lastTried.w===t.w&&K._lastTried.h===t.h)return;const a=F.position.left+d,u=F.position.top+x;t.x=Math.round(a/L),t.y=Math.round(u/w),v=!0}K._event=y,K._lastTried=t;const n={x:F.position.left+d,y:F.position.top+x,w:(F.size?F.size.width:K.w*L)-d-e,h:(F.size?F.size.height:K.h*w)-x-m};if(this.engine.moveNodeCheck(K,{...t,cellWidth:L,cellHeight:w,rect:n,resizing:v})){K._lastUiPosition=F.position,this.engine.cacheRects(L,w,x,e,m,d),delete K._skipDown,v&&K.subGrid&&K.subGrid.onResize(),this._extraDragRow=0,this._updateContainerHeight();const a=y.target;K._sidebarOrig||this._writePosAttr(a,K),this.triggerEvent(y,a)}}triggerEvent(i,y){let F=this;for(;F.parentGridNode;)F=F.parentGridNode.grid;F._gsEventHandler[i.type]&&F._gsEventHandler[i.type](i,y)}_leave(i,y){y=y||i;const F=y.gridstackNode;if(!F||(y.style.transform=y.style.transformOrigin=null,jc.off(i,"drag"),F._temporaryRemoved))return;F._temporaryRemoved=!0,this.engine.removeNode(F),F.el=F._isExternal&&y?y:i;const K=F._sidebarOrig;F._isExternal&&this.engine.cleanupNode(F),F._sidebarOrig=K,this.opts.removable===!0&&qa._itemRemoving(i,!0),i._gridstackNodeOrig?(i.gridstackNode=i._gridstackNodeOrig,delete i._gridstackNodeOrig):F._isExternal&&this.engine.restoreInitial()}commit(){return Wse(this,this.batchUpdate(!1),"commit","batchUpdate","5.2"),this}}qa.renderCB=(r,i)=>{r&&i!=null&&i.content&&(r.textContent=i.content)},qa.resizeToContentParent=".grid-stack-item-content",qa.Utils=In,qa.Engine=Fd,qa.GDRev="12.2.2";const Jse=[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Pases acertados",isSelected:!1},{id:23,name:"Tiros de Esquina",isSelected:!1},{id:3,name:"Balones recuperados en disputa",isSelected:!1},{id:4,name:"Asistencias",isSelected:!1},{id:5,name:"Participaciones en gol",isSelected:!1},{id:6,name:"Tiros a gol",isSelected:!1},{id:7,name:"Tiros a gol que llegaron a la portería",isSelected:!1},{id:8,name:"Cabeceos en área rival",isSelected:!1},{id:9,name:"Cabeceos en área propia",isSelected:!1},{id:10,name:"Centros",isSelected:!1},{id:11,name:"Centros acertados",isSelected:!1},{id:12,name:"1vs1 exitosos ofensivos",isSelected:!1},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol",isSelected:!1},{id:14,name:"1vs1 defensivos exitoso",isSelected:!1},{id:15,name:"Rechaces",isSelected:!1},{id:16,name:"Balones ganados en área propia",isSelected:!1},{id:17,name:"Balones ganados en área rival",isSelected:!1},{id:18,name:"Faltas cometidas",isSelected:!1},{id:19,name:"Faltas recibidas",isSelected:!1},{id:20,name:"Tarjetas amarillas",isSelected:!1},{id:21,name:"Tarjetas rojas",isSelected:!1},{id:22,name:"Atajadas",isSelected:!1}],ih=r=>Jse.find(i=>i.id===r),Up=new Map([[9,{id:9,analysisTypes:new Map([["2-20",{analysisType:"successfulPasses",name:"Pases acertados",title:"Mapeo de pases acertados"}],["3-21",{analysisType:"unsuccessfulPasses",name:"Pases no acertados",title:"Mapeo de pases no acertados"}],["222-223-224-225",{analysisType:"recoveredBalls",name:"Balones recuperados",title:"Mapeo de balones recuperados"}],["226-227-228-229",{analysisType:"lostBalls",name:"Balones perdidos",title:"Mapeo de balones perdidos"}]])}],[1,{general:"general",offensive:"ofensivo",defensive:"defensivo",possession:"posesión",stoppedBall:"balón parado",penalties:"infracción"}]]);class ay{constructor(i,y=new Map,F,K=null,L=!1,w=!1,t=null,v=null){ud(this,"id",""),ud(this,"childViews",[]),ud(this,"viewId",0),ud(this,"dynamicFilters",null),ud(this,"componentSpecificFilters",new Map),ud(this,"isPostMatch",!1),ud(this,"isTemplateMode",!1),ud(this,"filtresJSON",null),ud(this,"token",null),ud(this,"_isUpdating",!1),this.id=i,this.viewId=F,this.childViews=y,this.dynamicFilters=K,this.isPostMatch=L,this.isTemplateMode=w,this.filtresJSON=t,this.token=v,this.componentSpecificFilters=new Map}hasEventTypeId(i,y){return!i||!Array.isArray(i)?!1:i.some(F=>F&&F.event_type_id===y)}hasCategoryId(i,y){return!i||!Array.isArray(i)?!1:i.some(F=>F&&F.category_id===y)}getId(){return this.id}setDynamicFilters(i,y=null){y?this.componentSpecificFilters.set(y,[...i]):this.dynamicFilters=i}getComponentDynamicFilters(i){return i&&this.componentSpecificFilters.has(i)?this.componentSpecificFilters.get(i):this.dynamicFilters}getAllComponentFilters(){return this.componentSpecificFilters}debugComponentFilters(){this.componentSpecificFilters.forEach((i,y)=>{console.log(` Component ${y}:`,i)})}static debugAllComponentFilters(){document.querySelectorAll("[data-container-id]").forEach(i=>{const y=i.getAttribute("data-container-id");console.log(`Container ${y}:`,i)})}clearAllComponentFilters(){this.componentSpecificFilters.clear(),console.log("Cleared all component specific filters")}getDynamicFilters(){return this.dynamicFilters}getHomeTeamViews(){return this.childViews.filter(i=>i.view.isHomeTeam)}getAwayTeamViews(){return this.childViews.filter(i=>!i.view.isHomeTeam)}addView(i,y=!1){var F,K,L,w,t,v,d,e,x,m;if(i.view.filterAndViewsContainer=this,li.emit("component-added-to-container",this),this.viewId===5&&(i.view.componentProps&&!y&&(i.view.componentProps.preMatchType=this.dynamicFilters[0]!==3&&this.dynamicFilters[0]||1),console.log("view.view.componentProps",i.view.componentProps)),this.viewId===10&&i.view.componentProps&&!y&&(i.view.componentProps.isHomeTeamForAnalysis=this.dynamicFilters[0]!==3?this.dynamicFilters[0]===1:1),this.viewId===7&&i.view.componentProps&&!y){const b=this.dynamicFilters[1];i.view.componentProps.analysisType=this.dynamicFilters[0]===1?"offensive":"defensive",i.view.componentProps.isHomeTeamForAnalysis=b===1,i.isHomeTeam=i.view.componentProps.isHomeTeamForAnalysis}if(this.viewId===1&&i.view.componentProps&&!y){const b=this.dynamicFilters[0]||[],h=Up.get(this.viewId);let n=0;for(const a of b)n=this.childViews.findIndex(u=>u.view.componentProps.type===a),n===-1&&(i.view.componentProps.type=a,i.view.componentProps.default=!1,i.view.title=`Comparativa ${h[a]}`,i.view.filterMultiple={category:a})}if(this.viewId===9&&i.view.componentProps&&!y){const b=this.dynamicFilters[0].map(u=>u.join("-"));let h="";const n=this.dynamicFilters[1],a=Up.get(this.viewId);if(n===3){this.getHomeTeamViews().length===0&&this.getAwayTeamViews().length>0&&this.getAwayTeamViews().forEach(g=>{g.view.componentProps.isHomeTeamForAnalysis=!0,g.view.isHomeTeam=!0});let u=null;const s=this.getHomeTeamViews(),l=this.getAwayTeamViews();let f=!0;for(let g=0;g<b.length;g++){console.log("categoriesIdsString[i]",b[g]),h=b[g],u=a.analysisTypes.get(b[g]);const k=s.find(S=>S.view.componentProps.analysisType===u.analysisType),E=l.find(S=>S.view.componentProps.analysisType===u.analysisType);if(console.log("homeTeamView",k),console.log("awayTeamView",E),!k||!E){f=!k;break}}console.log("isNewViewHomeTeam",f),f?this.childViews.length===0?(i.view.componentProps.analysisType=u.analysisType,i.view.componentProps.isHomeTeamForAnalysis=!0,i.view.title=u.title,i.view.isHomeTeam=!0):this.childViews.reduce((g,k,E,S)=>{let M={analysisType:k.view.componentProps.analysisType,title:k.view.title,isHomeTeamForAnalysis:k.view.componentProps.isHomeTeamForAnalysis,isHomeTeam:k.view.isHomeTeam};return g&&(g.isHomeTeam&&!k.view.isHomeTeam?(k.view.componentProps.analysisType=u.analysisType,k.view.componentProps.isHomeTeamForAnalysis=!0,k.view.title=u.title,k.view.isHomeTeam=!0):!g.isHomeTeam&&!k.view.isHomeTeam&&(k.view.componentProps.analysisType=g.analysisType,k.view.componentProps.isHomeTeamForAnalysis=g.isHomeTeamForAnalysis,k.view.title=g.title,k.view.isHomeTeam=g.isHomeTeam),E===S.length-1&&(i.view.componentProps.analysisType=M.analysisType,i.view.componentProps.isHomeTeamForAnalysis=M.isHomeTeamForAnalysis,i.view.title=M.title,i.view.isHomeTeam=M.isHomeTeam)),M},null):(i.view.componentProps.analysisType=u.analysisType,i.view.componentProps.isHomeTeamForAnalysis=!1,i.view.title=u.title,i.view.isHomeTeam=!1)}else{const u=n===1,s=u?this.getHomeTeamViews():this.getAwayTeamViews();i.view.componentProps.isHomeTeamForAnalysis=u,i.view.isHomeTeam=u;for(let l=0;l<b.length;l++){const f=a.analysisTypes.get(b[l]);if(!s.find(g=>g.view.componentProps.analysisType===f.analysisType)){i.view.componentProps.analysisType=f.analysisType,i.view.title=f.title;break}}}console.log("999999999999999999999"),console.log("categoriesIdsString",b),h&&(i.view.filterMultiple={categoryIds:h.split("-").map(u=>parseInt(u)),team:i.view.isHomeTeam?1:2})}if(this.viewId===2&&!y&&i.view.componentProps){i.view.componentProps.game&&(i.view.componentProps.gameid=i.view.componentProps.game.id,i.view.componentProps.season=i.view.componentProps.game.season_id,i.view.componentProps.teamView=this.dynamicFilters[1]===2?i.view.componentProps.game.awayTeam.team_id:this.dynamicFilters[1]===1?i.view.componentProps.game.homeTeam.team_id:0);const b=this.dynamicFilters[0]||[];console.log("GSCtops addView - categoriesIdsSelected:",b),console.log("GSCtops addView - childViews.length:",this.childViews.length);let h=null;if(Array.isArray(b)){if(b.length>0){const a=this.childViews.map(s=>{var l;const f=(l=s.view.componentProps)==null?void 0:l.categoryView;return f&&f.length>0?f[0].id:null}).filter(s=>s!==null),u=b.filter(s=>!a.includes(s));console.log("GSCtops addView (array mode) - existingCategories:",a),console.log("GSCtops addView (array mode) - categoriesWithoutComponent:",u),u.length>0?(h=u[0],console.log("GSCtops addView (array mode) - will create new component with categoryId:",h)):console.log("GSCtops addView (array mode) - all categories already have components")}}else{const a=b;if(a){const u=this.childViews.find(s=>{var l;const f=(l=s.view.componentProps)==null?void 0:l.categoryView;return f&&f.length>0&&f[0].id===a});console.log("GSCtops addView (single mode) - existingComponent:",u),u?console.log("GSCtops addView (single mode) - component already exists, skipping creation"):(h=a,console.log("GSCtops addView (single mode) - will create new component with categoryId:",h))}}let n=null;if(h)try{n=ih(h)}catch(a){console.warn("Error getting category by ID:",a)}console.log("newCategory",n),i.view.filterMultiple={categoryId:h},i.view.componentProps.categoryView=n?[{id:h,name:n.name}]:h?[{id:h,name:`Category ${h}`}]:[{id:0,name:"Category"}],console.log("view.view.componentProps.categoryView",i.view.componentProps.categoryView)}if(this.viewId===8&&i.view.componentProps&&!y&&i.view.game&&(i.view.componentProps._isReactive||(i.view.componentProps=p.reactive(i.view.componentProps),i.view.componentProps._isReactive=!0),i.view.componentProps.areInactiveVisible=this.dynamicFilters[0]||!1,i.view.componentProps.game=(F=i.view)==null?void 0:F.game,i.view.componentProps.teamSelected={teamId:(L=(K=i.view)==null?void 0:K.game)==null?void 0:L.home_team},i.view.componentProps.isDefault=!1,li.emit("component-props-updated",{viewId:i.view.id,componentProps:i.view.componentProps,dynamicFilters:this.dynamicFilters})),this.viewId===6&&i.view.componentProps&&!y){const b=this.dynamicFilters[0];if(b){let h=0;for(const n of b)if(!this.childViews.find(a=>a.view.componentProps.gameNumber===n)){h=n;break}h&&(i.view.componentProps.gameNumber=h,i.view.filterMultiple={gameNumber:h})}}if(this.viewId===3&&i.view.componentProps&&!y&&i.view.game){i.view.componentProps._isReactive||(i.view.componentProps=p.reactive(i.view.componentProps),i.view.componentProps._isReactive=!0);const b=this.getComponentDynamicFilters(i.view.id),h=b||this.dynamicFilters;!b&&this.dynamicFilters&&this.dynamicFilters.length>0&&(this.setDynamicFilters(this.dynamicFilters,i.view.id),console.log(`GSCMatchSummary - initialized specific filters for component ${i.view.id} with default filters:`,this.dynamicFilters));const n=h&&h.length>0?h[0]:!1;i.view.componentProps.desplegable=n,i.view.componentProps.key=n,i.view.componentProps.game=(w=i.view)==null?void 0:w.game,i.view.componentProps.defaultShields=!1,console.log(`GSCMatchSummary - component ${i.view.id} initialized with:`,{desplegable:n,usingSpecificFilters:!!b,filtersToUse:h}),li.emit("component-props-updated",{viewId:i.view.id,componentProps:i.view.componentProps,dynamicFilters:h})}if(this.viewId===4&&(console.log("TIMELINE TIMELINE - TIMELINE TIMELINE - TIMELINE TIMELINE - TIMELINE TIMELINE - TIMELINE TIMELINE - TIMELINE TIMELINE"),console.log("*********************** *********************** this.token *********************** *********************** ",this.token),i.view.componentProps&&!y&&i.view.game)){if(i.view.componentProps._isReactive||(i.view.componentProps=p.reactive(i.view.componentProps),i.view.componentProps._isReactive=!0),this.isPostMatch){console.log("view.view.this.dynamicFilters",this.dynamicFilters),i.view.componentProps.key=!1,i.view.componentProps.isDefault=!1,i.view.componentProps.token=this.token,i.view.componentProps.gameId=(v=(t=i.view)==null?void 0:t.game)==null?void 0:v.game_id,i.view.componentProps.homeTeam=(e=(d=i.view)==null?void 0:d.game)==null?void 0:e.home_team,i.view.componentProps.awayTeam=(m=(x=i.view)==null?void 0:x.game)==null?void 0:m.visiting_team;const n=this.getComponentDynamicFilters(i.view.id),a=n||this.dynamicFilters;!n&&this.dynamicFilters&&this.dynamicFilters.length>0&&(this.setDynamicFilters(this.dynamicFilters,i.view.id),console.log(`Timeline - initialized specific filters for component ${i.view.id} with default filters:`,this.dynamicFilters));const u=a&&a.length>0?a[0]:[],s=this.hasEventTypeId(u,1),l=this.hasCategoryId(u,8),f=this.hasCategoryId(u,9),g=this.hasEventTypeId(u,3);console.log("Timeline - Events check:",{goals:s,yellowCards:l,redCards:f,substitutions:g,selectedEvents:u,componentId:i.view.id,usingSpecificFilters:!!n}),i.view.componentProps.goals=s,i.view.componentProps.yellowCards=l,i.view.componentProps.redCards=f,i.view.componentProps.substitutions=g}const b=this.getComponentDynamicFilters(i.view.id)||this.dynamicFilters,h=b&&b.length>0?b[0]:[];i.view.componentProps.selectedEvents=h,i.view.componentProps.key=h.length>0,li.emit("component-props-updated",{viewId:i.view.id,componentProps:i.view.componentProps,dynamicFilters:b})}this.childViews.push(i),console.log("this.childViews",this.childViews)}getHowManyViewsToAdd(i){if(this.viewId===5)return 1;if(this.viewId===6){const y=i[0];return y===2||y===3?y:1}if(this.viewId===4){const y=i&&i.length>0&&Array.isArray(i[0])&&i[0].length>0,F=this.childViews.length===0&&y;return console.log("Timeline getHowManyViewsToAdd:",{hasSelectedEvents:y,childViewsLength:this.childViews.length,shouldAdd:F,dynamicFilters:i}),y?1:0}if(this.viewId===9){const y=i[0],F=i[1];if(F===1||F===2){const K=F===1?this.getHomeTeamViews():this.getAwayTeamViews();return y.length-K.length}else return y*2-(this.getHomeTeamViews().length+this.getAwayTeamViews().length)}return 0}getRequiresAddView(i){if(console.log("getRequiresAddView",this.viewId,i),this.viewId===5)return i[0]===3&&this.childViews.length<2;if(this.viewId===10)return i[0]===3&&this.childViews.length<2;if(this.viewId===7)return i[1]===3&&this.childViews.length<2;if(this.viewId===6){const y=i[0];return y?y.length>this.childViews.length:this.childViews.length===0}if(this.viewId===4){const y=i&&i.length>0&&Array.isArray(i[0])&&i[0].length>0,F=this.childViews.length===0&&y;return console.log("Timeline getRequiresAddView:",{hasSelectedEvents:y,childViewsLength:this.childViews.length,shouldAdd:F,dynamicFilters:i}),F}if(this.viewId===9)return this.getRequiresAddViewMultipleAndBothTeams(i);if(this.viewId===1){const y=i[0]||[];let F=0;for(const K of y)F=this.childViews.findIndex(L=>L.view.componentProps.type===K);if(F===-1||this.childViews.length<y.length)return!0}if(this.viewId===2){const y=i[0]||[];if(console.log("GSCtops getRequiresAddView - categoriesIdsSelected:",y),console.log("GSCtops getRequiresAddView - childViews.length:",this.childViews.length),console.log("GSCtops getRequiresAddView - childViews:",this.childViews.map(F=>{var K,L,w;return{id:F.view.id,categoryId:(w=(L=(K=F.view.componentProps)==null?void 0:K.categoryView)==null?void 0:L[0])==null?void 0:w.id}})),Array.isArray(y)){if(y.length>0){const F=this.childViews.map(w=>{var t;const v=(t=w.view.componentProps)==null?void 0:t.categoryView;return v&&v.length>0?v[0].id:null}).filter(w=>w!==null),K=y.filter(w=>!F.includes(w));console.log("GSCtops getRequiresAddView (array mode) - existingCategories:",F),console.log("GSCtops getRequiresAddView (array mode) - categoriesWithoutComponent:",K);const L=K.length>0;return console.log("GSCtops getRequiresAddView (array mode) - shouldAdd:",L),L}return!1}else{const F=y;if(F){const K=this.childViews.find(w=>{var t;const v=(t=w.view.componentProps)==null?void 0:t.categoryView;return v&&v.length>0&&v[0].id===F});console.log("GSCtops getRequiresAddView (single mode) - existingComponent:",K);const L=!K&&this.childViews.length===0;return console.log("GSCtops getRequiresAddView (single mode) - shouldAdd:",L),L}return!1}}return!1}getRequiresAddViewMultipleAndBothTeams(i){console.log("*******************************************************"),console.log("dynamicFilters",i);const y=this.childViews.filter(v=>v.view.isHomeTeam),F=this.childViews.filter(v=>!v.view.isHomeTeam),K=i[0].length,L=i[1],w=K*(L===1||L===2?1:2),t=L===3?y.length+F.length:y.length||F.length;return w>t}getRequiresLessViews(i){if(this.viewId===5)return i[0]!==3&&this.childViews.length>1;if(this.viewId===6){const y=i[0];return y===2||y===3}return this.viewId,!1}updateDynamicFilters(i,y=null){if(this._isUpdating){console.log("Skipping updateDynamicFilters due to update in progress");return}this._isUpdating=!0,y?(this.componentSpecificFilters.set(y,[...i]),console.log(`Updated specific filters for component ${y}:`,i)):this.dynamicFilters=i,li.emit("component-added-to-container",this);try{if(this.viewId===5){const F=i[0]||1;if(F<3)if(this.childViews.length===1){const K=this.childViews[0];K.view.componentProps&&(K.view.componentProps.preMatchType=F)}else{const K=this.childViews.pop(),L=K.grid,w=K.page,t=document.querySelector(`[gs-id="${K.view.id}"]`);if(L&&t&&(L.removeWidget(t),w)){const d=w.items.findIndex(e=>e.id===K.view.id);d!==-1&&w.items.splice(d,1)}const v=this.childViews[0];v.view.componentProps&&(v.view.componentProps.preMatchType=F)}else this.childViews.forEach((K,L)=>{K.view.componentProps.preMatchType=L+1})}if(this.viewId===10){const F=i[0]||1;if(F<3)if(this.childViews.length===1){const K=this.childViews[0];K.view.componentProps&&(K.view.componentProps.isHomeTeamForAnalysis=F===1)}else{const K=this.childViews.pop(),L=K.grid,w=K.page,t=document.querySelector(`[gs-id="${K.view.id}"]`);if(L&&t&&(L.removeWidget(t),w)){const d=w.items.findIndex(e=>e.id===K.view.id);d!==-1&&w.items.splice(d,1)}const v=this.childViews[0];v.view.componentProps&&(v.view.componentProps.isHomeTeamForAnalysis=F===1)}else this.childViews.forEach((K,L)=>{K.view.componentProps.isHomeTeamForAnalysis=L%2===0})}if(this.viewId===7){const F=i[1];if(F===3)this.childViews.forEach((K,L)=>{K.view.componentProps.isHomeTeamForAnalysis=L%2===0,K.view.isHomeTeam=L%2===0,K.view.componentProps.analysisType=this.dynamicFilters[0]===1?"offensive":"defensive"});else{const K=F===1;if(this.childViews.length>0){const L=this.childViews[0];L.view.componentProps.isHomeTeamForAnalysis=K,L.view.isHomeTeam=K,L.view.componentProps.analysisType=this.dynamicFilters[0]===1?"offensive":"defensive",this.childViews.length>1&&this.removeChildView(this.childViews[1])}}}if(this.viewId===9){const F=i[0],K=i[1];if(K===3){if(this.childViews.length>F.length){const L=F.map(w=>{const t=w.join("-");return Up.get(this.viewId).analysisTypes.get(t).analysisType});this.childViews.reduce((w,t)=>(L.includes(t.view.componentProps.analysisType)||w.push(t.view.componentProps.analysisType),w),[]).forEach(w=>{const t=this.childViews.findIndex(v=>v.view.componentProps.analysisType===w);if(t!==-1){for(let v=t;v<this.childViews.length;v++){const d=this.childViews[v+1],e=this.childViews[v];d&&(e.view.componentProps.analysisType=d.view.componentProps.analysisType,e.view.componentProps.isHomeTeamForAnalysis=d.view.componentProps.isHomeTeamForAnalysis,e.view.title=d.view.title,e.view.isHomeTeam=d.view.isHomeTeam)}this.removeChildView(this.childViews[this.childViews.length-1])}})}}else{const L=K===1,w=this.getHomeTeamViews(),t=this.getHomeTeamViews();if(L&&w.length===0)t.forEach(v=>{v.view.componentProps.isHomeTeamForAnalysis=!0,v.view.isHomeTeam=!0});else if(!L&&t.length===0)w.forEach(v=>{v.view.componentProps.isHomeTeamForAnalysis=!1,v.view.isHomeTeam=!1});else{const v=L?this.getHomeTeamViews():this.getAwayTeamViews();if(v.length>F.length){const d=F.map(e=>{const x=e.join("-");return Up.get(this.viewId).analysisTypes.get(x).analysisType});v.forEach(e=>{d.includes(e.view.componentProps.analysisType)||this.removeChildView(e)})}}}}if(this.viewId===2){console.log("GSCtops updateDynamicFilters - processing category changes");const F=i[0]||[];if(Array.isArray(F)){console.log("GSCtops updateDynamicFilters - array mode, selected categories:",F);const K=this.childViews.map(w=>{var t;const v=(t=w.view.componentProps)==null?void 0:t.categoryView;return v&&v.length>0?v[0].id:null}).filter(w=>w!==null);console.log("GSCtops updateDynamicFilters - existing category IDs:",K);const L=K.filter(w=>!F.includes(w));if(console.log("GSCtops updateDynamicFilters - categories to remove:",L),L.forEach(w=>{const t=this.childViews.find(v=>{var d;const e=(d=v.view.componentProps)==null?void 0:d.categoryView;return e&&e.length>0&&e[0].id===w});t?(console.log("GSCtops updateDynamicFilters - removing component for category:",w),console.log("GSCtops updateDynamicFilters - view to remove:",t.view.id),this.removeChildView(t),li.emit("component-removed",{viewId:t.view.id,categoryId:w})):console.log("GSCtops updateDynamicFilters - no view found to remove for category:",w)}),y){const w=F[0];if(w){const t=this.childViews.find(v=>v.view.id===y);if(t){let v=null;try{v=ih(w)}catch(d){console.warn("Error getting category by ID:",d)}t.view.filterMultiple={categoryId:w},t.view.componentProps.categoryView=v?[{id:w,name:v.name}]:[{id:w,name:`Category ${w}`}]}}}}else{const K=F;if(K&&y){const L=this.childViews.find(w=>w.view.id===y);if(L){let w=null;try{w=ih(K)}catch(t){console.warn("Error getting category by ID:",t)}L.view.filterMultiple={categoryId:K},L.view.componentProps.categoryView=w?[{id:K,name:w.name}]:[{id:K,name:`Category ${K}`}]}}}}if(this.viewId===8){const F=i[0]||!1;this.childViews.forEach(K=>{K.view.componentProps&&(K.view.componentProps._isReactive||(K.view.componentProps=p.reactive(K.view.componentProps),K.view.componentProps._isReactive=!0),K.view.componentProps.areInactiveVisible=F,K.view.componentProps.key=F,li.emit("component-props-updated",{viewId:K.view.id,componentProps:K.view.componentProps,dynamicFilters:i}),li.emit("dynamic-filters-changed",{containerViewId:this.viewId,viewId:K.view.id,dynamicFilters:i}))})}if(this.viewId===1){const F=i[0]||[];this.childViews.reduce((K,L)=>(F.includes(L.view.componentProps.type)||K.push(L.view.componentProps.type),K),[]).forEach(K=>{const L=this.childViews.findIndex(w=>w.view.componentProps.type===K);if(L!==-1){for(let w=L;w<this.childViews.length;w++){const t=this.childViews[w+1],v=this.childViews[w];t&&(v.view.componentProps.type=t.view.componentProps.type,v.view.title=t.view.title)}this.removeChildView(this.childViews[this.childViews.length-1])}})}if(this.viewId===6){const F=i[0]||[];this.childViews.reduce((K,L)=>(F.includes(L.view.componentProps.gameNumber)||K.push(L.view.componentProps.gameNumber),K),[]).forEach(K=>{const L=this.childViews.findIndex(w=>w.view.componentProps.gameNumber===K);if(L!==-1){for(let w=L;w<this.childViews.length;w++){const t=this.childViews[w+1],v=this.childViews[w];t&&(v.view.componentProps.gameNumber=t.view.componentProps.gameNumber,v.view.filterMultiple={gameNumber:t.view.componentProps.gameNumber})}this.removeChildView(this.childViews[this.childViews.length-1])}})}if(this.viewId===3)if(console.log("GSCMatchSummary updateDynamicFilters:",{dynamicFilters:i,componentId:y,childViewsLength:this.childViews.length}),y){console.log(`GSCMatchSummary - updating specific filters for component ${y}`),this.setDynamicFilters(i,y);const F=this.childViews.find(K=>K.view.id===y);F&&this.updateMatchSummary(F,i)}else{console.log("GSCMatchSummary - updating all components with global filters");const F=i[0]||!1;this.childViews.forEach(K=>{K.view.componentProps&&(K.view.componentProps._isReactive||(K.view.componentProps=p.reactive(K.view.componentProps),K.view.componentProps._isReactive=!0),K.view.componentProps.desplegable=F,K.view.componentProps.key=F,li.emit("component-props-updated",{viewId:K.view.id,componentProps:K.view.componentProps,dynamicFilters:i}),li.emit("dynamic-filters-changed",{containerViewId:this.viewId,viewId:K.view.id,dynamicFilters:i}))})}if(this.viewId===4){const F=i&&i.length>0&&Array.isArray(i[0])&&i[0].length>0;if(console.log("Timeline updateDynamicFilters:",{hasSelectedEvents:F,childViewsLength:this.childViews.length,dynamicFilters:i,componentId:y}),y){console.log(`Timeline - updating specific filters for component ${y}`),this.setDynamicFilters(i,y);const K=this.childViews.find(L=>L.view.id===y);K&&this.updateTimeline(K,i)}else if(console.log("Timeline - updating all components with global filters"),!F&&this.childViews.length>0)console.log("Timeline - removing views due to no events"),this.childViews.forEach(K=>{this.removeChildView(K)});else if(F&&this.childViews.length===0){console.log("Timeline - emitting add-view event");const K={pageId:null,view:{id:this.viewId,name:"Timeline",title:"Timeline",colspan:12,rowspan:6,max_column:12,max_row:12,min_column:6,min_row:4},filterAndWidgetContainer:this};li.emit("add-view",K)}else this.childViews.forEach(K=>{this.updateTimeline(K,i)})}}finally{this._isUpdating=!1}}removeChildView(i){const y=this.childViews.findIndex(F=>F.view.id===i.view.id);if(y!==-1){const F=this.childViews[y];this.childViews.splice(y,1),F.view.id&&(this.componentSpecificFilters.delete(F.view.id),console.log(`Cleaned specific filters for component ${F.view.id}`));const K=F.grid,L=F.page,w=document.querySelector(`[gs-id="${F.view.id}"]`);if(K&&w&&(K.removeWidget(w),L)){const t=L.items.findIndex(v=>v.id===F.view.id);t!==-1&&(L.items.splice(t,1),L.items.length===0&&li.emit("empty-page",L))}}}updateView({view:i,dynamicFilters:y,filtersJSON:F}){this.dynamicFilters=y;const K=this.childViews.find(L=>L.view.id===i.view.id);if(K){K.view.filtersJSON=F,K.view.coreView&&(K.view.coreView.filtersJSON=F);let L=y;if(this.viewId===4){const w=this.getComponentDynamicFilters(i.view.id);w&&(L=w,console.log(`Timeline updateView - using specific filters for component ${i.view.id}:`,L))}else if(this.viewId===8){const w=this.getComponentDynamicFilters(i.view.id);w&&(L=w,console.log(`FieldPosesion updateView - using specific filters for component ${i.view.id}:`,L))}else if(this.viewId===3){const w=this.getComponentDynamicFilters(i.view.id);console.log(`GSCMatchSummary updateView - component ${i.view.id}:`,{componentSpecificFilters:w,dynamicFilters:y,willUseSpecific:!!w}),w?(L=w,console.log(`GSCMatchSummary updateView - using specific filters for component ${i.view.id}:`,L)):console.log("GSCMatchSummary updateView - no specific filters found, using dynamicFilters:",L)}this.viewId===5?this.updateVolumetricField(K,L):this.viewId===7?this.updateGoalData(K,L):this.viewId===9?this.updateFieldDataByZones(K,L):this.viewId===10?this.updateXg(K,L):this.viewId===3?this.updateMatchSummary(K,L):this.viewId===4?this.updateTimeline(K,L):this.viewId===8?this.updateFieldPosesion(K,L):this.viewId===1?this.updateComparative(K,L):this.viewId===2&&this.updateGSCtops(K,L)}else console.log("viewToUpdate not found")}updateComparative(i,y){if(console.log("update comparative",y),i.view.componentProps){const F=y[0]||"";i.view.componentProps.type=F,i.view.filterMultiple={category:F}}}updateVolumetricField(i,y){i.view.componentProps&&(i.view.isHomeTeam=y[0]===1,i.view.componentProps.preMatchType=y[0]||1)}updateGoalData(i,y){if(i.view.componentProps){const F=y[0]===1;i.view.componentProps.isHomeTeamForAnalysis=F,i.view.isHomeTeam=F,i.view.componentProps.analysisType=y[0]===1?"offensive":"defensive"}}updateFieldDataByZones(i,y){if(i.view.componentProps){const F=y[0],K=y[1]===1;if(i.view.componentProps.isHomeTeamForAnalysis=K,i.view.isHomeTeam=K,F&&F.length){const L=F.join("-"),w=Up.get(this.viewId).analysisTypes.get(L).analysisType;w&&(i.view.componentProps.analysisType=w,i.view.title=Up.get(this.viewId).analysisTypes.get(w).title)}}}updateXg(i,y){i.view.componentProps&&(i.view.isHomeTeam=y[0]===1,i.view.componentProps.isHomeTeamForAnalysis=y[0]||1)}updateMatchSummary(i,y){if(i.view.componentProps){i.view.componentProps._isReactive||(i.view.componentProps=p.reactive(i.view.componentProps),i.view.componentProps._isReactive=!0);const F=y&&y.length>0?y[0]:!1;i.view.componentProps.desplegable=F,i.view.componentProps.key=F,li.emit("component-props-updated",{viewId:i.view.id,componentProps:i.view.componentProps,dynamicFilters:y}),li.emit("dynamic-filters-changed",{containerViewId:this.viewId,viewId:i.view.id,dynamicFilters:y})}}updateTimeline(i,y){if(i.view.componentProps){i.view.componentProps._isReactive||(i.view.componentProps=p.reactive(i.view.componentProps),i.view.componentProps._isReactive=!0);const F=this.getComponentDynamicFilters(i.view.id),K=F||y,L=K&&K.length>0?K[0]:[];i.view.componentProps.selectedEvents=L,i.view.componentProps.key=L.length>0;const w=this.hasEventTypeId(L,1),t=this.hasCategoryId(L,8),v=this.hasCategoryId(L,9),d=this.hasEventTypeId(L,3);console.log("Timeline update - Events check:",{goals:w,yellowCards:t,redCards:v,substitutions:d,selectedEvents:L,componentId:i.view.id,usingSpecificFilters:!!F}),i.view.componentProps.goals=w,i.view.componentProps.yellowCards=t,i.view.componentProps.redCards=v,i.view.componentProps.substitutions=d,i.view.componentProps._updateKey=Date.now(),li.emit("component-props-updated",{viewId:i.view.id,componentProps:i.view.componentProps,dynamicFilters:K}),li.emit("dynamic-filters-changed",{containerViewId:this.viewId,viewId:i.view.id,dynamicFilters:K}),li.emit("force-component-update",{itemId:i.view.id,componentProps:i.view.componentProps})}}updateFieldPosesion(i,y){if(i.view.componentProps){i.view.componentProps._isReactive||(i.view.componentProps=p.reactive(i.view.componentProps),i.view.componentProps._isReactive=!0);const F=y&&y.length>0?y[0]:!1;i.view.componentProps.areInactiveVisible=F,i.view.componentProps.key=F,li.emit("component-props-updated",{viewId:i.view.id,componentProps:i.view.componentProps,dynamicFilters:y}),li.emit("dynamic-filters-changed",{containerViewId:this.viewId,viewId:i.view.id,dynamicFilters:y})}}updateGSCtops(i,y){if(console.log("updateGSCtops",y),i.view.componentProps){const F=y[0]||[];if(Array.isArray(F)){if(console.log("GSCtops updateGSCtops (array mode) - skipping removal logic to prevent cross-page deletions"),F.length>0){const K=F[0];let L=null;try{L=ih(K)}catch(w){console.warn("Error getting category by ID:",w)}i.view.filterMultiple={categoryId:K},i.view.componentProps.categoryView=L?[{id:K,name:L.name}]:[{id:K,name:`Category ${K}`}]}}else{const K=F;if(K){let L=null;try{L=ih(K)}catch(w){console.warn("Error getting category by ID:",w)}i.view.filterMultiple={categoryId:K},i.view.componentProps.categoryView=L?[{id:K,name:L.name}]:[{id:K,name:`Category ${K}`}]}}}}}const Zse={class:"template-page__header"},Kse={class:"template-page__header__name"},Yse=["value"],Qse={class:"template-page__header__details"},$se={class:"template-page__header__details__teams"},ele={class:"template-page__header__details__teams__team"},tle={key:0,class:"template-page__header__details__teams__team__logo"},rle=["src"],nle={key:1,width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ale={class:"template-page__header__details__teams__team"},ile={key:0,class:"template-page__header__details__teams__team__logo"},ole=["src"],sle={key:1,width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lle={class:"template-page__content"},cle=["id"],ule=["gs-id","gs-x","gs-y","gs-w","gs-h","gs-max-w","gs-max-h","gs-min-w","gs-min-h","gs-no-resize","gs-no-move","gs-auto-position"],dle=p.defineComponent({__name:"TemplateReportPage",props:{token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},game:{type:Object,default:()=>null},lastGames:{type:Array,default:()=>null},id:{type:[String,Number],default:()=>String(Date.now())},page:{type:Object,default:()=>({title:"Page 1",items:[{name:"Tabla jugadores",id:`w-${String(Date.now())}`,x:0,y:0,w:4,h:4,maxWidth:4,maxHeight:4,noResize:!1,noMove:!1,componentProps:{}}]})},isPostMatch:{type:Boolean,default:!1},isTemplateMode:{type:Boolean,default:!1},isFilterVisible:{type:Boolean,default:!1}},emits:["intersection-changed","delete-page","change-sort","edit-view","view-changed","component-props-updated","delete-view","dynamic-filters-changed"],setup(r,{emit:i}){var y,F;const K=p.ref(null);let L=null;const w=r,t=p.ref(!1),v=i,d=p.computed(()=>w.page.items.reduce((P,A)=>(P.set(A.id,A),P),new Map)),e=p.computed(()=>{var P,A,T,O;return w.game&&w.game.homeTeam&&w.game.awayTeam?{homeTeam:{name:((P=w.game.homeTeam)==null?void 0:P.acronym)||"LOC",logo:((A=w.game.homeTeam)==null?void 0:A.logo)||null},awayTeam:{name:((T=w.game.awayTeam)==null?void 0:T.acronym)||"VIS",logo:((O=w.game.awayTeam)==null?void 0:O.logo)||null}}:{homeTeam:{name:"LOC"},awayTeam:{name:"VIS"}}});let x=null,m=null,b=!1,h=null;function n(){b=!0,h&&clearTimeout(h),h=setTimeout(()=>{b=!1},150)}function a(){const P={root:null,rootMargin:"0px",threshold:.7};x=new IntersectionObserver(O=>{O.forEach(_=>{b||(m&&clearTimeout(m),m=setTimeout(()=>{v("intersection-changed",_.isIntersecting)},50))})},P);const A=K.value;A&&x.observe(A);const T=document.querySelector(".container-main");T&&T.addEventListener("scroll",n,{passive:!0})}function u(){v("view-changed")}const s={game_id:0,season_id:0,prematch:!1},l={gameId:90209,id:90209,seasonId:1909,regularSeasonId:1909,matchday_name:"Matchday 1",status:1,score:[1,3],game_status:1,dateTimeUTC:"2024-09-05T22:00:00Z",homeTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/2936.png",team_id:2936,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/2936.png",colloquial_name:"Guyana",acronym:"GUY",team_name:"Guyana"},awayTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/3279.png",team_id:3279,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/3279.png",colloquial_name:"Surinam",acronym:"SUR",team_name:"Surinam"},is_live:0,minutes:{home_goals_minutes:[],visiting_goals_minutes:[],home_yellow_cards_minutes:[],away_yellow_cards_minutes:[],home_red_cards_minutes:[],away_red_cards_minutes:[]}},f=new Map([[5,{component:Ox,componentName:"GSCVolumetricField",props:{isGamePreMatch:!w.isPostMatch,areTeamsVisible:!1,isTitleVisible:!1,isGhostEffect:w.isTemplateMode,isTemplateMode:w.isTemplateMode}}],[2,{component:Tw,componentName:"GscTopPlayer",props:{categoryView:[{id:0,name:"Category"}],gamed:w.game?w.game.id:l.gameId,game:w.game,season:w.game?(y=w==null?void 0:w.game)==null?void 0:y.season_id:l.seasonId,teamView:0,useDummyData:w.isTemplateMode}}],[8,{component:E3,componentName:"FieldPosesion",props:{widthSection:600,game:l,teamSelected:{teamId:0},areInactiveVisible:!0,showTitle:!1,isDefault:!0,key:!1}}],[6,{component:L4,componentName:"GSCLineupsReports",props:{selectedOption:w.isPostMatch?"Postmatch":"Prematch",game:s,gamehome:s,gameaway:s}}],[3,{component:M3,componentName:"GSCMatchSummary",props:{game:l,defaultShields:!0,desplegable:!1}}],[4,{component:p5,componentName:"GSCTimelineReports",props:{key:!0,isDefault:!0,gameId:l.gameId,homeTeam:l.homeTeam.team_id,awayTeam:l.awayTeam.team_id,token:w.token,goals:!0,yellowCards:!0,redCards:!0,substitutions:!0}}],[7,{component:v6,componentName:"GSCGoalData",props:{game:w.game,isHomeTeamForAnalysis:!0,canInteract:!1,canPlayVideos:!1,isPreMatch:!w.isPostMatch,analysisType:1}}],[9,{component:P4,componentName:"GSCFieldDataByZones",props:{game:w.game,isHomeTeamForAnalysis:!0,analysisType:"successfulPasses",canPlayVideos:!1,isPreMatch:!w.isPostMatch}}],[10,{component:C6,componentName:"GSCGameXg",props:{game:w.game,isHomeTeamForAnalysis:!0,isPostMatch:w.isPostMatch}}],[1,{component:m6,componentName:"GSCComparativeReports",props:{gameId:w.game?w.game.id:"",homeLogo:w.game?w.game.homeTeam.logo:"",awayLogo:w.game?w.game.awayTeam.logo:"",seasonId:w.game?(F=w==null?void 0:w.game)==null?void 0:F.season_id:0,typeGame:w.isPostMatch,type:"stoppedBall",default:w.isTemplateMode}}]]);function g(P){if(P)if(typeof P=="string"){let A=null;switch(P){case"GSCVolumetricField":A=Ox;break;case"GSCGoalData":A=v6;break;case"GscTopPlayer":A=Tw;break;case"FieldPosesion":A=E3;break;case"GSCLineupsReports":A=L4;break;case"GSCMatchSummary":A=M3;break;case"GSCTimelineReports":A=p5;break;case"GSCFieldDataByZones":A=P4;break;case"GSCGameXg":A=C6;break;case"GSCComparativeReports":A=m6;break;default:A=null}return A}else return P;return null}function k({pageId:P,view:A,filterAndWidgetContainer:T,applyMinimumSize:O=!1}){if(w.page.id===P&&L){const _={w:O?A.min_column:A.colspan,h:O?A.min_row:A.rowspan};if(L.willItFit(0,0,_.w,_.h,!0)){const R=L.addWidget(_),I=Number(R.getAttribute("gs-x")||0),V=Number(R.getAttribute("gs-y")||0);L.removeWidget(R);const j=f.get(A.id),G=p.reactive({...JSON.parse(JSON.stringify(j.props))||{},_isReactive:!0}),q=p.reactive({pageId:P,grid:L,page:w.page,view:{name:A.name,title:A.title,id:`w-${String(Date.now())}`,x:I,y:V,w:_.w,h:_.h,maxWidth:A.max_column,maxHeight:A.max_row,minWidth:A.min_column,minHeight:A.min_row,componentName:j.componentName,componentProps:G,pageId:P,coreView:A}});T.addView(q),li.emit("add-page-view",q)}else li.emit("add-page-and-view",{pageId:P,view:A,filterAndWidgetContainer:T})}}function E(P){if(L){const A=document.querySelector(`[gs-id="${P.id}"]`);A&&(L.removeWidget(A),v("delete-view",P))}v("view-changed")}function S(P){if(!P.filterAndViewsContainer&&P.coreView){const A=new ay(`FAWC-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,[P],P.coreView.id,P.dynamicFilters||[],w.isPostMatch,w.isTemplateMode,P.filtersJSON);P.filterAndViewsContainer=A}v("edit-view",P)}function M(){v("delete-page",w.page)}function N(){li.emit("change-sort",w.page)}const C=function(){li.off("add-view",k),li.off("force-component-update"),li.off("component-props-updated"),li.off("dynamic-filters-changed");const P=document.querySelector(".container-main");P&&P.removeEventListener("scroll",n),m&&clearTimeout(m),h&&clearTimeout(h)};return li.on("add-view",k),li.on("force-component-update",P=>{if(b)return;const A=w.page.items.find(T=>T.id===P.itemId);A&&(Object.assign(A.componentProps,P.componentProps),A._updateKey=Date.now())}),li.on("component-props-updated",P=>{if(b)return;const A=w.page.items.find(T=>T.id===P.viewId);A&&(Object.assign(A.componentProps,P.componentProps),A._updateKey=Date.now())}),li.on("dynamic-filters-changed",P=>{if(b)return;const A=w.page.items.find(T=>T.id===P.viewId);A&&(Object.assign(A.componentProps,P.componentProps||{}),A._updateKey=Date.now())}),p.onMounted(async()=>{await p.nextTick(),L=qa.init({column:12,row:12,maxRow:12,cellHeight:60,float:!0,resizable:{handles:"e, se, s, sw, w"}},`#grid-stack-${w.id}`),L.on("change",(P,A)=>{const T=A[0];if(T){const O=d.value.get(T.id);O&&(O.x=T.x,O.y=T.y,O.w=T.w,O.h=T.h,v("view-changed"))}}),a(),w.page.grid=L,w.page.offListeners=C}),p.onUnmounted(()=>{x&&x.disconnect(),C(),m&&clearTimeout(m),h&&clearTimeout(h)}),(P,A)=>(p.openBlock(),p.createElementBlock("div",{ref_key:"templatePage",ref:K,class:"template-page"},[p.createElementVNode("div",Zse,[t.value?(p.openBlock(),p.createBlock(A6,{key:0,"options-type":"page",onClick:A[0]||(A[0]=p.withModifiers(T=>t.value=!1,["self"])),onMouseleave:A[1]||(A[1]=T=>t.value=!1),onCloseTooltip:A[2]||(A[2]=T=>t.value=!1),onDeletePage:M,onChangeSort:N})):p.createCommentVNode("",!0),p.createElementVNode("div",Kse,[A[4]||(A[4]=p.createElementVNode("div",null,[p.createElementVNode("svg",{width:"19",height:"21",viewBox:"0 0 19 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("path",{d:"M11.2986 12.9994C7.62909 14.8341 4.11744 16.0178 1.35547 16.4518L9.18763 20.0029C9.34545 20.0818 9.60192 20.0818 9.74002 20.0029L17.8878 16.3137C18.0457 16.2348 18.164 16.0572 18.164 15.8797V8.75781C16.2898 10.2177 13.9422 11.6776 11.2986 12.9994Z",fill:"white"}),p.createElementVNode("path",{d:"M4.7152 8.89735C4.7152 8.89735 10.9494 3.76802 16.8482 1.20335C15.0529 0.946887 11.3637 0.43395 9.3711 0.453678C4.41928 0.493135 1.06546 1.34145 1.06546 1.34145C0.90763 1.3809 0.769531 1.55846 0.769531 1.71629V8.12795C3.01857 6.56942 5.34651 5.56329 5.34651 5.56329C5.34651 5.56329 2.72264 7.06263 0.769531 8.81844V9.41028V14.1648C3.09748 13.9675 6.62886 12.7641 10.3575 10.7321C13.6719 8.91707 16.4733 6.84562 18.17 5.05035V2.40677C14.3032 3.37346 4.7152 8.89735 4.7152 8.89735Z",fill:"white"})])],-1)),A[5]||(A[5]=p.createElementVNode("div",{class:"separator"},null,-1)),p.createElementVNode("input",{value:r.page.title,type:"text",class:"page-title-input",onclick:"this.select()",onInput:u},null,40,Yse)]),p.createElementVNode("div",Qse,[p.createElementVNode("div",$se,[p.createElementVNode("div",ele,[e.value.homeTeam.logo?(p.openBlock(),p.createElementBlock("div",tle,[p.createElementVNode("img",{src:e.value.homeTeam.logo,alt:"Home Team Logo",width:"25",height:"25"},null,8,rle)])):(p.openBlock(),p.createElementBlock("svg",nle,A[6]||(A[6]=[p.createElementVNode("path",{opacity:"0.4",d:"M12.0153 0.261719C12.0153 0.261719 13.6664 1.94994 17.7355 2.06744C21.149 2.16638 22.3796 1.30063 22.3796 1.30063C22.3796 1.30063 25.4902 10.2488 20.3822 17.7005C17.6983 21.615 12.5533 24.1504 12.0091 24.2617C11.4711 24.1504 6.31984 21.615 3.636 17.7005C-1.4596 10.2488 1.65094 1.30063 1.65094 1.30063C1.65094 1.30063 2.88155 2.16638 6.2951 2.06744C10.3642 1.94994 12.0153 0.261719 12.0153 0.261719Z",fill:"#54728B"},null,-1)]))),p.createElementVNode("span",null,p.toDisplayString(e.value.homeTeam.name),1)]),A[8]||(A[8]=p.createElementVNode("div",{class:"template-page__header__details__teams__vs"}," VS ",-1)),p.createElementVNode("div",ale,[p.createElementVNode("span",null,p.toDisplayString(e.value.awayTeam.name),1),e.value.awayTeam.logo?(p.openBlock(),p.createElementBlock("div",ile,[p.createElementVNode("img",{src:e.value.awayTeam.logo,alt:"Away Team Logo",width:"25",height:"25"},null,8,ole)])):(p.openBlock(),p.createElementBlock("svg",sle,A[7]||(A[7]=[p.createElementVNode("path",{opacity:"0.4",d:"M12.0153 0.261719C12.0153 0.261719 13.6664 1.94994 17.7355 2.06744C21.149 2.16638 22.3796 1.30063 22.3796 1.30063C22.3796 1.30063 25.4902 10.2488 20.3822 17.7005C17.6983 21.615 12.5533 24.1504 12.0091 24.2617C11.4711 24.1504 6.31984 21.615 3.636 17.7005C-1.4596 10.2488 1.65094 1.30063 1.65094 1.30063C1.65094 1.30063 2.88155 2.16638 6.2951 2.06744C10.3642 1.94994 12.0153 0.261719 12.0153 0.261719Z",fill:"#54728B"},null,-1)])))])]),r.isTemplateMode&&!r.isFilterVisible?(p.openBlock(),p.createElementBlock("div",{key:0,class:"template-page__header__details__options",onClick:A[3]||(A[3]=T=>t.value=!0)},A[9]||(A[9]=[p.createElementVNode("svg",{width:"17",height:"13",viewBox:"0 0 17 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("path",{d:"M3.56953 6.28672C3.56953 7.19972 2.83253 7.93672 1.91953 7.93672C1.00653 7.93672 0.269531 7.19972 0.269531 6.28672C0.269531 5.37372 1.00653 4.63672 1.91953 4.63672C2.83253 4.63672 3.56953 5.37372 3.56953 6.28672ZM8.51953 4.63672C7.60653 4.63672 6.86953 5.37372 6.86953 6.28672C6.86953 7.19972 7.60653 7.93672 8.51953 7.93672C9.43253 7.93672 10.1695 7.19972 10.1695 6.28672C10.1695 5.37372 9.43253 4.63672 8.51953 4.63672ZM15.1195 4.63672C14.2065 4.63672 13.4695 5.37372 13.4695 6.28672C13.4695 7.19972 14.2065 7.93672 15.1195 7.93672C16.0325 7.93672 16.7695 7.19972 16.7695 6.28672C16.7695 5.37372 16.0325 4.63672 15.1195 4.63672Z",fill:"white"})],-1)]))):p.createCommentVNode("",!0)])]),p.createElementVNode("div",lle,[p.createElementVNode("div",{id:`grid-stack-${r.id}`,class:"grid-stack"},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.page.items,T=>{var O,_,R;return p.openBlock(),p.createElementBlock("div",{class:"grid-stack-item",key:T.id,"gs-id":T.id,"gs-x":T.x,"gs-y":T.y,"gs-w":T.w,"gs-h":T.h,"gs-max-w":T.maxWidth,"gs-max-h":T.maxHeight,"gs-min-w":T.minWidth,"gs-min-h":T.minHeight,"gs-no-resize":!r.isTemplateMode,"gs-no-move":!w.isTemplateMode,"gs-auto-position":T.x===0&&T.y===0},[p.createElementVNode("div",{class:p.normalizeClass(["grid-stack-item-content",{"is-selected":T.isSelected}])},[p.createVNode(Bse,{title:T.title,"is-template-mode":r.isTemplateMode,game:r.game,lastGames:r.lastGames,"is-home-team":(O=T.componentProps)!=null&&O.preMatchType?((_=T.componentProps)==null?void 0:_.preMatchType)===1:T.isHomeTeam,"is-filter-visible":r.isFilterVisible,"view-id":((R=T==null?void 0:T.coreView)==null?void 0:R.id)||0,onEdit:I=>S(T),onDelete:I=>E(T)},{default:p.withCtx(()=>[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(g(T.componentName)),p.mergeProps({ref_for:!0},T.componentProps,{key:`${T.id}-${T._updateKey||Date.now()}`}),null,16))]),_:2},1032,["title","is-template-mode","game","lastGames","is-home-team","is-filter-visible","view-id","onEdit","onDelete"])],2)],8,ule)}),128))],8,cle)])],512))}}),hle=zd(dle,[["__scopeId","data-v-69afd78a"]]),ple={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},fle={class:"cover__title-subtitle"},mle={class:"cover__title-subtitle__title"},gle={class:"cover__title-subtitle__subtitle"},yle={key:0,class:"cover-type-one"},vle={class:"team-info-one"},ble={class:"team-data"},xle={key:0,class:"team-logo"},_le=["src"],wle={key:1,width:"160",height:"161",viewBox:"0 0 160 161",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Tle=["fill","opacity"],kle={class:"team-name"},Sle={key:0,class:"team-events"},Ele={class:"score-one"},Cle={key:0},Ale={class:"team-info-one"},Mle={class:"team-data"},Lle={key:0,class:"team-logo"},Ple=["src"],Nle={key:1,width:"161",height:"161",viewBox:"0 0 161 161",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ole=["fill","opacity"],Rle={class:"team-name"},zle={key:0,class:"team-events"},Dle={key:1,class:"cover-type-two"},Ile={class:"team-data"},Fle={class:"team-info"},Ble={key:0,class:"team-logo"},Vle=["src"],Ule={key:1,width:"160",height:"161",viewBox:"0 0 160 161",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jle=["fill","opacity"],qle={key:2,class:"team-score-two"},Wle={key:0,class:"team-goals"},Gle={class:"team-data"},Xle={class:"team-info"},Hle={key:0,class:"team-score-two"},Jle={key:1,class:"team-logo"},Zle=["src"],Kle={key:2,width:"161",height:"161",viewBox:"0 0 161 161",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yle=["fill","opacity"],Qle={key:0,class:"team-goals"},$le={__name:"CoverPage",props:{game:{type:Object,default:()=>null},coverId:{type:Number,default:1},isPostMatch:{type:Boolean,default:!0}},emits:["intersection-changed"],setup(r,{emit:i}){const y=r,F=i,K=p.ref(null),L=p.computed(()=>[1,2].includes(y.coverId)),w=p.computed(()=>[1,3].includes(y.coverId)),t=p.computed(()=>y.coverId===1?{homeTeam:"#1558CC",awayTeam:"#0046BF",opacity:1}:y.coverId===3?{homeTeam:"#000A1A",awayTeam:"#000A1A",opacity:.4}:{homeTeam:"#576883",awayTeam:"#576883",opacity:.4}),v=p.computed(()=>y.game&&y.game.score?y.game.score:["0","0"]),d=p.computed(()=>{var k,E,S,M,N,C,P,A;if(y.game&&y.game.homeTeam&&y.game.awayTeam){const T={homeTeam:{name:((k=y.game.homeTeam)==null?void 0:k.acronym)||"LOC",logo:((E=y.game.homeTeam)==null?void 0:E.logo)||null},awayTeam:{name:((S=y.game.awayTeam)==null?void 0:S.acronym)||"VIS",logo:((M=y.game.awayTeam)==null?void 0:M.logo)||null}};return L.value?(T.homeTeam.goalsMinutes=n(y.game.minutes.home_goals_minutes),T.homeTeam.totalYellowCards=((N=y.game.minutes.home_yellow_cards_minutes)==null?void 0:N.length)||0,T.homeTeam.totalRedCards=((C=y.game.minutes.home_red_cards_minutes)==null?void 0:C.length)||0,T.awayTeam.goalsMinutes=n(y.game.minutes.visiting_goals_minutes),T.awayTeam.totalYellowCards=((P=y.game.minutes.away_yellow_cards_minutes)==null?void 0:P.length)||0,T.awayTeam.totalRedCards=((A=y.game.minutes.away_red_cards_minutes)==null?void 0:A.length)||0):(T.homeTeam.goalsEvents=h(y.game.report_minutes.home_goals_minutes),T.awayTeam.goalsEvents=h(y.game.report_minutes.visiting_goals_minutes)),T}return{homeTeam:{name:"LOC",logo:null,goalsMinutes:"00'",totalYellowCards:0,totalRedCards:0,goalsEvents:[{playerName:"Nombre",goalTime:"00'"}]},awayTeam:{name:"VIS",logo:null,goalsMinutes:"00'",totalYellowCards:0,totalRedCards:0,goalsEvents:[{playerName:"Nombre",goalTime:"00'"}]}}}),e=p.computed(()=>({"--background-image":w.value?"url(https://golstatsimages.blob.core.windows.net/report-maker/background-postmatch-template-01@2x.jpg)":"url(https://golstatsimages.blob.core.windows.net/report-maker/background-postmatch-template-02@2x.jpg)","--grid-template-columns-type-one":y.isPostMatch?"1fr min-content 1fr":"320px min-content 320px","--width-type-one":y.isPostMatch?"100%":"fit-content","--grid-template-columns-type-two":y.isPostMatch?"1fr min-content 1fr":"320px min-content 320px","--width-type-two":y.isPostMatch?"100%":"fit-content"})),x=p.computed(()=>y.isPostMatch?"Postmatch":"Prematch"),m=["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],b=p.computed(()=>{if(y.game){let k=ple[y.game.matchday_abbreviation];k||(k=y.game.matchday_abbreviation.replace("M","J"));const[E,S,M]=y.game.date.split("-");return`${k} - ${M} ${m[Number(S)-1]}, ${E}`}return"Jornada - Día 00 Mes"});function h(k){return!k||!Array.isArray(k)||k.length===0?"":(console.log("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"),console.log("goalsDetails",k),k.map(E=>{const S=E.split(", ");let M=S[0].replace("'","");M=M.replace("+",""),M=M.replace("’",""),console.log("playerGoalsArray",S);const N=M.split(" "),{strings:C,numbers:P}=N.reduce((O,_)=>(isNaN(Number(_))?O.strings.push(_):O.numbers.push(_),O),{strings:[],numbers:[]}),A=C.join(" "),T=P.length===1?`${P[0]}'`:`${P[0]}' ${P.slice(1).join(" + ")}'`;return{playerName:A,goalTime:S.length===1?T:`${T}, ${S.reduce((O,_,R)=>R===0?O:`${O}${_}${R<S.length-1?", ":""}`,"")}`}}))}function n(k){return!k||!Array.isArray(k)||k.length===0?"":k.reduce((E,S,M)=>{const N=S.split(" ");let C="";return N.length===3?C=N[2]:N.length===5&&(C=`${N[2]} ${N[3]} ${N[4]}`),C&&(E+=`${C}${M<k.length-1?", ":""}`),E},"")}let a=null,u=null,s=!1,l=null;function f(){s=!0,l&&clearTimeout(l),l=setTimeout(()=>{s=!1},150)}function g(){const k={root:null,rootMargin:"0px",threshold:.7};a=new IntersectionObserver(M=>{M.forEach(N=>{s||(u&&clearTimeout(u),u=setTimeout(()=>{F("intersection-changed",N.isIntersecting)},50))})},k);const E=K.value;E&&a.observe(E);const S=document.querySelector(".container-main");S&&S.addEventListener("scroll",f,{passive:!0})}return p.onMounted(()=>{g()}),p.onUnmounted(()=>{a&&a.disconnect();const k=document.querySelector(".container-main");k&&k.removeEventListener("scroll",f),u&&clearTimeout(u),l&&clearTimeout(l)}),(k,E)=>(p.openBlock(),p.createElementBlock("div",{ref_key:"coverPage",ref:K,class:"cover",style:p.normalizeStyle(e.value)},[p.createElementVNode("div",fle,[p.createElementVNode("div",mle,[E[0]||(E[0]=p.createElementVNode("div",null,"Análisis",-1)),p.createElementVNode("div",null,p.toDisplayString(x.value),1)]),p.createElementVNode("div",gle,p.toDisplayString(b.value),1)]),L.value?(p.openBlock(),p.createElementBlock("div",yle,[p.createElementVNode("div",vle,[p.createElementVNode("div",ble,[d.value.homeTeam.logo?(p.openBlock(),p.createElementBlock("div",xle,[p.createElementVNode("img",{src:d.value.homeTeam.logo||"/default-logo.png",alt:"Team 1 Logo"},null,8,_le)])):(p.openBlock(),p.createElementBlock("svg",wle,[p.createElementVNode("path",{d:"M80.0068 0.953125C80.0068 0.953125 91.0143 12.208 118.141 12.9913C140.898 13.6509 149.102 7.87917 149.102 7.87917C149.102 7.87917 169.839 67.5339 135.786 117.212C117.894 143.308 83.5935 160.211 79.9656 160.953C76.3789 160.211 42.0372 143.308 24.1449 117.212C-9.8257 67.5339 10.9112 7.87917 10.9112 7.87917C10.9112 7.87917 19.1153 13.6509 41.8723 12.9913C68.9993 12.208 80.0068 0.953125 80.0068 0.953125Z",fill:t.value.homeTeam,opacity:t.value.opacity},null,8,Tle)])),p.createElementVNode("div",kle,p.toDisplayString(d.value.homeTeam.name),1)]),r.isPostMatch?(p.openBlock(),p.createElementBlock("div",Sle,[E[1]||(E[1]=p.createStaticVNode('<svg class="ball" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-f88a509b><path fill-rule="evenodd" clip-rule="evenodd" d="M10.0268 2.83594C6.09038 2.83594 2.89844 6.01986 2.89844 9.94705C2.89844 13.8742 6.09038 17.0582 10.0268 17.0582C13.9632 17.0582 17.1551 13.8742 17.1551 9.94705C17.1551 6.01986 13.9632 2.83594 10.0268 2.83594V2.83594Z" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path fill-rule="evenodd" clip-rule="evenodd" d="M8.0826 12.9597L6.87109 9.2304L10.0401 6.92578L13.2097 9.2304L11.9995 12.9597H8.0826Z" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M12.7277 3.39453L10.0276 4.54375L7.32812 3.39453" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M4.65662 5.34766L4.91603 8.27341L2.98828 10.4871" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M4.01562 13.6523L6.87533 14.3093L8.38436 16.8279" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M11.7031 16.8213L13.2109 14.3015L16.0697 13.6445" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M17.1051 10.4865L15.1758 8.27156L15.4349 5.34766" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M10.0456 4.54688V6.92693" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M13.2109 9.32248L15.1681 8.27344" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M11.9961 12.9609L13.2064 14.3086" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M8.08198 12.9609L6.87109 14.3099" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M4.91797 8.27344L6.87609 9.22818" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path></svg>',1)),p.createElementVNode("div",null,p.toDisplayString(d.value.homeTeam.goalsMinutes),1),E[2]||(E[2]=p.createElementVNode("div",{class:"separator"},null,-1)),E[3]||(E[3]=p.createElementVNode("svg",{class:"card",width:"10",height:"14",viewBox:"0 0 10 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("rect",{x:"0.367188",y:"0.09375",width:"9.14286",height:"13.7143",rx:"2.28571",fill:"#F7C330"})],-1)),p.createElementVNode("div",null,p.toDisplayString(d.value.homeTeam.totalYellowCards),1),E[4]||(E[4]=p.createElementVNode("svg",{class:"card",width:"10",height:"14",viewBox:"0 0 10 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("rect",{x:"0.109375",y:"0.09375",width:"9.14286",height:"13.7143",rx:"1.82857",fill:"#FF0000"})],-1)),p.createElementVNode("div",null,p.toDisplayString(d.value.homeTeam.totalRedCards),1)])):p.createCommentVNode("",!0)]),p.createElementVNode("div",Ele,[r.isPostMatch?(p.openBlock(),p.createElementBlock("div",Cle,p.toDisplayString(v.value[0])+" : "+p.toDisplayString(v.value[1]),1)):p.createCommentVNode("",!0)]),p.createElementVNode("div",Ale,[p.createElementVNode("div",Mle,[d.value.awayTeam.logo?(p.openBlock(),p.createElementBlock("div",Lle,[p.createElementVNode("img",{src:d.value.awayTeam.logo||"/default-logo.png",alt:"Team 2 Logo"},null,8,Ple)])):(p.openBlock(),p.createElementBlock("svg",Nle,[p.createElementVNode("path",{d:"M80.8504 0.953125C80.8504 0.953125 92.9822 3.39499 119.261 10.1779C144.106 16.5733 152.827 19.1314 152.827 19.1314C152.827 19.1314 156.936 44.2089 145.657 90.5655C136.548 127.969 106.742 152.038 80.8504 160.953C54.9977 152.038 25.1527 128.007 16.0442 90.5655C4.8039 44.2477 8.91243 19.1314 8.91243 19.1314C8.91243 19.1314 17.6334 16.5733 42.4783 10.1779C68.7574 3.39499 80.8504 0.953125 80.8504 0.953125Z",fill:t.value.awayTeam,opacity:t.value.opacity},null,8,Ole)])),p.createElementVNode("div",Rle,p.toDisplayString(d.value.awayTeam.name),1)]),r.isPostMatch?(p.openBlock(),p.createElementBlock("div",zle,[p.createElementVNode("div",null,p.toDisplayString(d.value.awayTeam.totalYellowCards),1),E[5]||(E[5]=p.createElementVNode("svg",{width:"10",height:"14",viewBox:"0 0 10 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("rect",{x:"0.367188",y:"0.09375",width:"9.14286",height:"13.7143",rx:"2.28571",fill:"#F7C330"})],-1)),p.createElementVNode("div",null,p.toDisplayString(d.value.awayTeam.totalRedCards),1),E[6]||(E[6]=p.createElementVNode("svg",{width:"10",height:"14",viewBox:"0 0 10 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("rect",{x:"0.109375",y:"0.09375",width:"9.14286",height:"13.7143",rx:"1.82857",fill:"#FF0000"})],-1)),E[7]||(E[7]=p.createElementVNode("div",{class:"separator"},null,-1)),p.createElementVNode("div",null,p.toDisplayString(d.value.awayTeam.goalsMinutes),1),E[8]||(E[8]=p.createStaticVNode('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-f88a509b><path fill-rule="evenodd" clip-rule="evenodd" d="M10.0268 2.83594C6.09038 2.83594 2.89844 6.01986 2.89844 9.94705C2.89844 13.8742 6.09038 17.0582 10.0268 17.0582C13.9632 17.0582 17.1551 13.8742 17.1551 9.94705C17.1551 6.01986 13.9632 2.83594 10.0268 2.83594V2.83594Z" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path fill-rule="evenodd" clip-rule="evenodd" d="M8.0826 12.9597L6.87109 9.2304L10.0401 6.92578L13.2097 9.2304L11.9995 12.9597H8.0826Z" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M12.7277 3.39453L10.0276 4.54375L7.32812 3.39453" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M4.65662 5.34766L4.91603 8.27341L2.98828 10.4871" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M4.01562 13.6523L6.87533 14.3093L8.38436 16.8279" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M11.7031 16.8213L13.2109 14.3015L16.0697 13.6445" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M17.1051 10.4865L15.1758 8.27156L15.4349 5.34766" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M10.0456 4.54688V6.92693" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M13.2109 9.32248L15.1681 8.27344" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M11.9961 12.9609L13.2064 14.3086" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M8.08198 12.9609L6.87109 14.3099" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M4.91797 8.27344L6.87609 9.22818" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path></svg>',1))])):p.createCommentVNode("",!0)])])):(p.openBlock(),p.createElementBlock("div",Dle,[p.createElementVNode("div",Ile,[p.createElementVNode("div",Fle,[d.value.homeTeam.logo?(p.openBlock(),p.createElementBlock("div",Ble,[p.createElementVNode("img",{src:d.value.homeTeam.logo||"/default-logo.png",alt:"Team 1 Logo"},null,8,Vle)])):(p.openBlock(),p.createElementBlock("svg",Ule,[p.createElementVNode("path",{d:"M80.0068 0.953125C80.0068 0.953125 91.0143 12.208 118.141 12.9913C140.898 13.6509 149.102 7.87917 149.102 7.87917C149.102 7.87917 169.839 67.5339 135.786 117.212C117.894 143.308 83.5935 160.211 79.9656 160.953C76.3789 160.211 42.0372 143.308 24.1449 117.212C-9.8257 67.5339 10.9112 7.87917 10.9112 7.87917C10.9112 7.87917 19.1153 13.6509 41.8723 12.9913C68.9993 12.208 80.0068 0.953125 80.0068 0.953125Z",fill:t.value.homeTeam,opacity:t.value.opacity},null,8,jle)])),r.isPostMatch?(p.openBlock(),p.createElementBlock("div",qle,p.toDisplayString(v.value[0]),1)):p.createCommentVNode("",!0)]),r.isPostMatch?(p.openBlock(),p.createElementBlock("div",Wle,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(d.value.homeTeam.goalsEvents,(S,M)=>(p.openBlock(),p.createElementBlock("div",{key:`goal-${M}`,class:"goal"},[p.createElementVNode("div",null,p.toDisplayString(S.playerName),1),E[9]||(E[9]=p.createElementVNode("div",{class:"bullet"},null,-1)),p.createElementVNode("div",null,p.toDisplayString(S.goalTime),1),E[10]||(E[10]=p.createStaticVNode('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-f88a509b><path fill-rule="evenodd" clip-rule="evenodd" d="M10.0268 2.83594C6.09038 2.83594 2.89844 6.01986 2.89844 9.94705C2.89844 13.8742 6.09038 17.0582 10.0268 17.0582C13.9632 17.0582 17.1551 13.8742 17.1551 9.94705C17.1551 6.01986 13.9632 2.83594 10.0268 2.83594V2.83594Z" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path fill-rule="evenodd" clip-rule="evenodd" d="M8.0826 12.9597L6.87109 9.2304L10.0401 6.92578L13.2097 9.2304L11.9995 12.9597H8.0826Z" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M12.7277 3.39453L10.0276 4.54375L7.32812 3.39453" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M4.65662 5.34766L4.91603 8.27341L2.98828 10.4871" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M4.01562 13.6523L6.87533 14.3093L8.38436 16.8279" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M11.7031 16.8213L13.2109 14.3015L16.0697 13.6445" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M17.1051 10.4865L15.1758 8.27156L15.4349 5.34766" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M10.0456 4.54688V6.92693" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M13.2109 9.32248L15.1681 8.27344" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M11.9961 12.9609L13.2064 14.3086" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M8.08198 12.9609L6.87109 14.3099" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M4.91797 8.27344L6.87609 9.22818" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path></svg>',1))]))),128))])):p.createCommentVNode("",!0)]),E[13]||(E[13]=p.createElementVNode("div",{class:"separator"},null,-1)),p.createElementVNode("div",Gle,[p.createElementVNode("div",Xle,[r.isPostMatch?(p.openBlock(),p.createElementBlock("div",Hle,p.toDisplayString(v.value[1]),1)):p.createCommentVNode("",!0),d.value.awayTeam.logo?(p.openBlock(),p.createElementBlock("div",Jle,[p.createElementVNode("img",{src:d.value.awayTeam.logo||"/default-logo.png",alt:"Team 2 Logo"},null,8,Zle)])):(p.openBlock(),p.createElementBlock("svg",Kle,[p.createElementVNode("path",{d:"M80.8504 0.953125C80.8504 0.953125 92.9822 3.39499 119.261 10.1779C144.106 16.5733 152.827 19.1314 152.827 19.1314C152.827 19.1314 156.936 44.2089 145.657 90.5655C136.548 127.969 106.742 152.038 80.8504 160.953C54.9977 152.038 25.1527 128.007 16.0442 90.5655C4.8039 44.2477 8.91243 19.1314 8.91243 19.1314C8.91243 19.1314 17.6334 16.5733 42.4783 10.1779C68.7574 3.39499 80.8504 0.953125 80.8504 0.953125Z",fill:t.value.awayTeam,opacity:t.value.opacity},null,8,Yle)]))]),r.isPostMatch?(p.openBlock(),p.createElementBlock("div",Qle,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(d.value.awayTeam.goalsEvents,(S,M)=>(p.openBlock(),p.createElementBlock("div",{key:`goal-a-${M}`,class:"goal"},[E[11]||(E[11]=p.createStaticVNode('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-f88a509b><path fill-rule="evenodd" clip-rule="evenodd" d="M10.0268 2.83594C6.09038 2.83594 2.89844 6.01986 2.89844 9.94705C2.89844 13.8742 6.09038 17.0582 10.0268 17.0582C13.9632 17.0582 17.1551 13.8742 17.1551 9.94705C17.1551 6.01986 13.9632 2.83594 10.0268 2.83594V2.83594Z" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path fill-rule="evenodd" clip-rule="evenodd" d="M8.0826 12.9597L6.87109 9.2304L10.0401 6.92578L13.2097 9.2304L11.9995 12.9597H8.0826Z" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M12.7277 3.39453L10.0276 4.54375L7.32812 3.39453" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M4.65662 5.34766L4.91603 8.27341L2.98828 10.4871" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M4.01562 13.6523L6.87533 14.3093L8.38436 16.8279" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M11.7031 16.8213L13.2109 14.3015L16.0697 13.6445" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M17.1051 10.4865L15.1758 8.27156L15.4349 5.34766" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M10.0456 4.54688V6.92693" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M13.2109 9.32248L15.1681 8.27344" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M11.9961 12.9609L13.2064 14.3086" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M8.08198 12.9609L6.87109 14.3099" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M4.91797 8.27344L6.87609 9.22818" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path></svg>',1)),p.createElementVNode("div",null,p.toDisplayString(S.goalTime),1),E[12]||(E[12]=p.createElementVNode("div",{class:"bullet"},null,-1)),p.createElementVNode("div",null,p.toDisplayString(S.playerName),1)]))),128))])):p.createCommentVNode("",!0)])]))],4))}},ece=zd($le,[["__scopeId","data-v-f88a509b"]]),tce={class:"floating-bar"},rce={class:"tab active"},nce={class:"select-display"},ace={class:"select-icon"},ice=["src"],oce={key:1,src:"https://golstatsimages.blob.core.windows.net/images-library/vector2.png",alt:"icono",class:"option-img-default"},sce={key:0,class:"select-placeholder select-label"},lce={key:1,class:"select-label"},cce={key:0,class:"dropdown-menu field-menu"},uce=["onClick"],dce={class:"option-icon"},hce=["src","data-hover-src"],pce={class:"option-content"},fce={class:"option-title"},mce={key:0,class:"option-description"},gce={class:"select-display"},yce={class:"select-icon"},vce=["src"],bce=["src"],xce={class:"select-label"},_ce={key:0,class:"dropdown-menu type-menu type-menu-grid"},wce={class:"option-grid"},Tce=["onClick"],kce={class:"option-grid-title"},Sce={class:"option-grid-icon"},Ece=["src"],Cce={key:1,class:"filter-separator"},Ace=["onClick"],Mce={class:"select-display"},Lce={key:0,class:"badge-categorias"},Pce={key:0,class:"dropdown-menu type-menu multi-select-menu"},Nce={class:"multi-select-scroll-area"},Oce={class:"select-all-checkbox"},Rce=["checked","indeterminate","onChange"],zce={class:"option-checkbox"},Dce=["checked","onChange"],Ice=["onClick"],Fce={class:"option-title"},Bce={class:"multi-select-footer"},Vce={key:1,class:"custom-radio-group filter-inline"},Uce={class:"radio-label"},jce={class:"radio-options"},qce=["name","value","onUpdate:modelValue","disabled","onChange"],Wce={key:2,class:"check-group filter-inline"},Gce=["onUpdate:modelValue","checked","onChange"],Xce=["data-filter-type","onClick"],Hce={class:"select-display"},Jce={key:0,class:"badge-categorias"},Zce={key:0,class:"dropdown-menu type-menu simple-select-menu"},Kce={class:"simple-select-scroll-area"},Yce=["onMouseenter","onClick"],Qce={class:"option-content"},$ce={class:"option-title"},eue={key:0,class:"option-checkmark"},tue={key:4,class:"filter-separator"},rue=Object.assign({name:"FloatingFiltersBar"},{__name:"filters",props:{token:{type:String,required:!0},view:{type:Object,default:()=>null},isPostMatch:{type:Boolean,default:!1},filters_edition_mode:{type:Array,default:()=>null}},emits:["filters-changed","close"],setup(r,{expose:i,emit:y}){const F=r,K=y,L=p.ref([]);let w=null,t=null,v=null;const d=p.ref(!1),e=p.ref(!1),x=p.ref(!1),m=p.ref(!1),b=p.computed(()=>L.value),h=p.ref(null),n=p.computed(()=>b.value[h.value]||null),a=p.computed(()=>{var ze;const Se=((ze=n.value)==null?void 0:ze.views)||[];return N(Se)}),u=p.ref(null),s=p.computed(()=>a.value.find(ze=>ze.id===u.value)||null),l=p.ref([]),f=p.computed(()=>{var ze,Se;return d.value?((ze=s.value)==null?void 0:ze.filters_edition_mode)||[]:((Se=s.value)==null?void 0:Se.filters)||[]});p.watch(s,ze=>{var Se,Fe;if(!ze){l.value=[];return}const Le=ze.id===6&&F.isPostMatch;if(!Array.isArray(f.value)&&!Le){l.value=[];return}if(e.value)return;Le?l.value=[]:l.value=f.value.map((Ce,_e)=>{var Ue,Re,je,Xe,Ze,Te,De;if(Ce.type==="select"){if(d.value&&v&&v.dynamicFilters){const Ve=v.dynamicFilters[_e];if(Ve){if(Ve.selectedOptions&&Array.isArray(Ve.selectedOptions)){const Ge=Ve.selectedOptions.map(et=>et.value);return console.log(`Using saved select values for filter ${_e}:`,Ge),Ge}else if(Ve.selectedValue&&Array.isArray(Ve.selectedValue))if(Ve.selectedValue.length>0&&Ve.selectedValue[0]&&typeof Ve.selectedValue[0]=="object"){const Ge=Me(Ve.selectedValue);return console.log(`Using saved Timeline values for filter ${_e}:`,Ge),Ge}else return console.log(`Using saved selectedValue for filter ${_e}:`,Ve.selectedValue),Ve.selectedValue}}if(ze.id===4&&Ce.options&&Array.isArray(Ce.options)){const Ve=Ce.options.map(Ge=>Ge.value);return console.log(`Timeline detected - preselecting all options for filter ${_e}:`,Ve),console.log("Timeline - filter options:",Ce.options),console.log("Timeline - filter type:",Ce.type),Ve}return[]}else{if(Ce.type==="radio-button")return((Re=(Ue=Ce.options)==null?void 0:Ue[0])==null?void 0:Re.value)??null;if(Ce.type==="select-simple"){if(d.value&&v&&v.dynamicFilters){const Ve=v.dynamicFilters[_e];if(Ve&&Ve.selectedValue!==void 0){console.log(`Using saved select-simple value for filter ${_e}:`,Ve.selectedValue),console.log("Saved selectedValue type:",typeof Ve.selectedValue),console.log("Saved selectedValue is array:",Array.isArray(Ve.selectedValue));let Ge;return ze.id===2&&(Xe=(je=t==null?void 0:t.view)==null?void 0:je.filterMultiple)!=null&&Xe.categoryId?(Ge=t.view.filterMultiple.categoryId,console.log("GSCtops - using filterMultiple.categoryId in initialization:",Ge)):Ge=Array.isArray(Ve.selectedValue)?Ve.selectedValue[0]:Ve.selectedValue,console.log(`Returning select-simple value for filter ${_e}:`,Ge),Ge}}if(ze.id===2&&d.value&&(Ze=t==null?void 0:t.view)!=null&&Ze.filterMultiple&&(console.log(`GSCtops - checking filterMultiple in initialization for filter ${_e}:`,t.view.filterMultiple),t.view.filterMultiple.categoryId)){const Ve=t.view.filterMultiple.categoryId;console.log(`GSCtops - setting select-simple filter ${_e} to categoryId:`,Ve),console.log("GSCtops - categoryId type in initialization:",typeof Ve),console.log("GSCtops - filter options in initialization:",Ce.options);const Ge=(Ce.options||[]).find(et=>et.value==Ve);return console.log("GSCtops - matching option in initialization:",Ge),Ve}return((De=(Te=Ce.options)==null?void 0:Te[0])==null?void 0:De.value)??null}else if(Ce.type==="check"){if(d.value&&v&&v.dynamicFilters){const Ve=v.dynamicFilters[_e];if(Ve&&Ve.isChecked!==void 0)return console.log(`Using saved checkbox value for filter ${_e}:`,Ve.isChecked),Ve.isChecked}if(ze.id===8)return!0;if(ze.id===3){if(d.value&&v&&v.dynamicFilters){const Ve=v.dynamicFilters[_e];if(Ve&&Ve.isChecked!==void 0)return console.log(`GSCMatchSummary - Using saved checkbox value for filter ${_e}:`,Ve.isChecked),Ve.isChecked}return!1}return!1}}return null});const ge=((Se=ze.name)==null?void 0:Se.toLowerCase().includes("tops players"))||((Fe=ze.title)==null?void 0:Fe.toLowerCase().includes("tops players"));!ge&&(!d.value||Le)&&p.nextTick(()=>{var Ce,_e,Ue;console.log("Timeline - about to emit change:",{esTopsPlayers:ge,isEditMode:d.value,selectedSecond:(Ce=s.value)==null?void 0:Ce.id}),ze.id===4&&d.value&&(_e=t==null?void 0:t.view)!=null&&_e.id&&(console.log("Timeline - saving specific filters for component:",t.view.id),w&&w.setDynamicFilters(l.value,t.view.id)),ze.id===3&&d.value&&(Ue=t==null?void 0:t.view)!=null&&Ue.id&&(console.log("GSCMatchSummary - saving specific filters for component:",t.view.id),w&&w.setDynamicFilters(l.value,t.view.id)),le()})},{immediate:!0}),p.watch(()=>w,ze=>{ze&&ze.dynamicFilters&&(console.log("FilterAndViewsContainer changed, updating dynamicFilters:",ze.dynamicFilters),Array.isArray(ze.dynamicFilters)&&(e.value=!0,l.value=[...ze.dynamicFilters],p.nextTick(()=>{e.value=!1})))},{deep:!0}),p.watch(()=>w==null?void 0:w.dynamicFilters,ze=>{if(ze&&Array.isArray(ze)){if(console.log("Container dynamicFilters changed, updating:",ze),x.value){console.log("Skipping container update due to user update in progress");return}e.value=!0,l.value=[...ze],p.nextTick(()=>{e.value=!1})}},{deep:!0}),p.watch(()=>s.value,ze=>{if(d.value&&v&&ze&&ze.filters){if(e.value)return;if(m.value){console.log("Skipping force updates in selectedSecond watcher - already in force update");return}if(ze.id===3){if(console.log("GSCMatchSummary detected in edit mode, loading saved filters"),x.value||m.value){console.log("GSCMatchSummary - Skipping due to update in progress");return}const Se=v.dynamicFilters.find(Fe=>Fe.filterType==="check");Se&&Se.isChecked!==void 0&&(console.log("GSCMatchSummary - Found saved checkbox value:",Se.isChecked),l.value&&l.value.length>0&&(x.value=!0,l.value[0]=Se.isChecked,console.log("GSCMatchSummary - Updated dynamicFilters:",l.value),p.nextTick(()=>{l.value=[...l.value],console.log("GSCMatchSummary - Forced UI update"),x.value=!1})))}setTimeout(()=>{(!l.value||l.value.length===0)&&(ye(),Ae(),Pe()),ze.id===4&&we()},100)}},{deep:!0}),p.watch(()=>{var ze;return(ze=s.value)==null?void 0:ze.id},ze=>{if(d.value&&v&&ze===4){if(console.log("Timeline detected, preselecting filters"),e.value)return;if(m.value){console.log("Skipping force updates in Timeline watcher - already in force update");return}setTimeout(()=>{we()},200)}}),p.watch(()=>l.value,ze=>{if(d.value&&v&&ze&&ze.length>0){if(console.log("(((((((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))",v),console.log("Dynamic filters initialized, forcing update"),e.value||x.value)return;if(m.value){console.log("Skipping force updates - already in force update");return}setTimeout(()=>{var Se;Ie()&&(ye(),Ae(),Pe(),((Se=s.value)==null?void 0:Se.id)===4&&we())},50)}},{deep:!0});function g(ze,Se){var Fe,Le,ge;const Ce=l.value[ze];if(((Fe=s.value)==null?void 0:Fe.id)===4&&ze===0&&console.log("Timeline filter check - optionValue:",Se,"selectedValues:",Ce),Array.isArray(Ce)){if(((Le=s.value)==null?void 0:Le.id)===4&&ze===0){const _e=Ce.some(Ue=>Se.category_id&&Se.event_type_id?Ue.category_id===Se.category_id&&Ue.event_type_id===Se.event_type_id:Se.event_type_id?Ue.event_type_id===Se.event_type_id:Se.category_id?Ue.category_id===Se.category_id:!1);return((ge=s.value)==null?void 0:ge.id)===4&&ze===0&&console.log("Timeline comparison (IDs) - optionValue:",Se,"selectedValues:",Ce,"isSelected:",_e),_e}return Ce.includes(Se)}return!1}function k(ze,Se){Array.isArray(l.value[ze])||(l.value[ze]=[]);const Fe=l.value[ze],Le=Fe.indexOf(Se);Le>-1?Fe.splice(Le,1):Fe.push(Se),d.value&&Ne(),le()}function E(ze){var Se,Fe;const Le=l.value[ze],ge=(Fe=(Se=s.value)==null?void 0:Se.filters)==null?void 0:Fe[ze];return!ge||!ge.options||!Array.isArray(Le)?!1:Le.length===ge.options.length}function S(ze){var Se,Fe;const Le=l.value[ze],ge=(Fe=(Se=s.value)==null?void 0:Se.filters)==null?void 0:Fe[ze];return!ge||!ge.options||!Array.isArray(Le)?!1:Le.length>0&&Le.length<ge.options.length}function M(){var ze;return console.log("props.isPostMatch",F.isPostMatch),!(((ze=s.value)==null?void 0:ze.id)===6&&F.isPostMatch)}function N(ze){return!ze||!Array.isArray(ze)?ze:ze.filter(Se=>{const Fe=(Se.name||Se.title||"").toLowerCase();return F.isPostMatch?F.isPostMatch?!["fortalezas","tabla general"].some(Le=>Fe.includes(Le)):!0:!["resumen general","timeline","datos relevantes"].some(Le=>Fe.includes(Le))})}function C(){var ze,Se;const Fe=((Se=(ze=n.value)==null?void 0:ze.name)==null?void 0:Se.toLowerCase())||"";return Fe.includes("cancha")||Fe.includes("volumétrica")||Fe.includes("volumetric")}function P(ze,Se){if(!d.value||!C())return!1;const Fe=String(ze||"").toLowerCase(),Le=String(Se||"").toLowerCase();return Fe.includes("ambos")||Le.includes("ambos")}function A(ze){var Se,Fe;const Le=(Fe=(Se=s.value)==null?void 0:Se.filters)==null?void 0:Fe[ze];if(!Le||!Le.options)return;const ge=Le.options.map(Ce=>Ce.value);Array.isArray(l.value[ze])||(l.value[ze]=[]),E(ze)?l.value[ze]=[]:l.value[ze]=[...ge],R.value=ze,le()}const T=p.ref("ambos"),O=p.ref(!1),_=p.ref(!1),R=p.ref(null),I=p.ref(null);function V(ze,Se=!1){const Fe="https://golstatsimages.blob.core.windows.net/images-library/",Le="https://golstatsimages.blob.core.windows.net/reports-images/",ge={cancha:"icn_cancha",grafico:"icn_grafico",gráfico:"icn_grafico",chart:"icn_grafico",volumetrica:"icn_cancha",volumétrica:"icn_cancha",volumetric:"icn_cancha",tabla:"icn_tabla",tablas:"icn_tabla",Tablas:"icn_tabla"},Ce=Object.keys(ge).find(_e=>ze==null?void 0:ze.toLowerCase().includes(_e.toLowerCase()));if(Ce){const _e=ge[Ce],Ue=Se?"":"-def";return Ce.toLowerCase().includes("tabla")?`${Le}${_e}${Ue}@2x.png`:`${Fe}${_e}${Ue}@2x.png`}return`${Fe}icn_default${Se?"":"-def"}.png`}function j(){return n.value?n.value.name:"Tipo de vista"}function G(){return s.value?s.value.name||s.value.title:"Visualización"}function q(){d.value||(O.value=!O.value,O.value&&(_.value=!1,p.nextTick(()=>{ie()})))}function Y(){d.value||n.value&&(_.value=!_.value,_.value&&(O.value=!1))}function ne(ze){d.value||(h.value=ze,O.value=!1,u.value=null,le())}function H(ze){var Se,Fe;d.value||(u.value=ze.id,_.value=!1,(Se=ze.name)!=null&&Se.toLowerCase().includes("tops players")||(Fe=ze.title)==null||Fe.toLowerCase().includes("tops players"))}function re(ze){var Se;R.value=R.value===ze?null:ze,((Se=s.value)==null?void 0:Se.id)===4&&d.value&&ze===0&&(console.log("Timeline dropdown opened, forcing checkbox update"),setTimeout(()=>{l.value=[...l.value]},50))}function te(ze){I.value=I.value===ze?null:ze}function Z(ze,Se){var Fe;if(console.log("selectSimpleOption called:",{idx:ze,optionValue:Se,isEditMode:d.value}),((Fe=s.value)==null?void 0:Fe.id)===2){console.log("GSCtops - selectSimpleOption for GSCtops");const Le=f.value.findIndex(ge=>ge.type==="select-simple"&&ge.label==="Tipo de análisis");ze===Le?(l.value[0]=Se,console.log("GSCtops - updated dynamicFilters[0] (category) to:",Se)):(l.value[ze]=Se,console.log("GSCtops - updated dynamicFilters["+ze+"] to:",Se))}else l.value[ze]=Se;I.value=null,console.log("GSCtops - dynamicFilters after selectSimpleOption:",l.value),d.value&&(console.log("GSCtops - calling updateContainerOnUserChange"),Ne()),console.log("GSCtops - calling emitChange"),le()}function ee(ze){ze.target.closest(".custom-select")||(O.value=!1,_.value=!1,I.value=null)}function le(){var ze,Se,Fe,Le,ge,Ce,_e,Ue,Re,je,Xe,Ze,Te,De,Ve,Ge,et,nt,ht,Tt,wt,Ft,Ut;if(console.log("emitChange called"),console.log("isEditMode.value:",d.value),console.log("viewToEdit:",t),console.log("dynamicFilters.value:",l.value),e.value){console.log("Skipping emitChange due to container update in progress");return}((ze=s.value)==null?void 0:ze.id)===8&&(console.log("FieldPosesion detected - dynamicFilters:",l.value),console.log("Current filters:",f.value)),((Se=s.value)==null?void 0:Se.id)===4&&(console.log("Timeline detected - dynamicFilters:",l.value),console.log("Current filters:",f.value),console.log("Timeline - will emit change:",!e.value)),((Fe=s.value)==null?void 0:Fe.id)===2&&(console.log("GSCtops detected - dynamicFilters:",l.value),console.log("Current filters:",f.value),console.log("GSCtops - will emit change:",!e.value));let qt=[],ot=[];s.value&&Array.isArray(f.value)&&f.value.forEach((tt,st)=>{if(tt.type==="select"&&tt.label==="Tipo de análisis"&&tt.id===2){const Je=l.value[st]||[];Array.isArray(Je)&&Je.length>0&&(qt=Je.map(lt=>{var xt;const mt=(xt=tt.options)==null?void 0:xt.find(Lt=>Lt.value===lt);return{value:lt,label:(mt==null?void 0:mt.label)||lt}}))}});const Qe=((ge=(Le=s.value)==null?void 0:Le.name)==null?void 0:ge.toLowerCase().includes("tops players"))||((_e=(Ce=s.value)==null?void 0:Ce.title)==null?void 0:_e.toLowerCase().includes("tops players")),dt=((Ue=s.value)==null?void 0:Ue.id)===4,gt=s.value&&Array.isArray(s.value.filters)?s.value.filters.some(tt=>tt.type==="select"&&tt.label==="Tipo de análisis"&&tt.id===2):!1;if(Qe&&gt&&qt.length===0||gt&&qt.length===0&&!dt)return;if(dt&&l.value&&l.value.length>0){const tt=l.value[0];Array.isArray(tt)&&tt.length>0&&console.log("Timeline - emitting change with events:",tt)}ot=((Re=f.value)==null?void 0:Re.map((tt,st)=>{var Je,lt,xt,mt,Lt;const It=l.value[st];((Je=s.value)==null?void 0:Je.id)===8&&console.log(`FieldPosesion filter ${st}:`,{type:tt.type,label:tt.label,selectedValue:It,selectedValueType:typeof It,isRadioButton:tt.type==="radio-button"});let rt=tt.id||`filter_${st}`;return((lt=s.value)==null?void 0:lt.id)===3&&d.value&&(xt=t==null?void 0:t.view)!=null&&xt.id&&(rt=`filter_${st}_component_${t.view.id}`,console.log(`GSCMatchSummary - Generated unique filterId: ${rt} for component ${t.view.id}`)),{filterId:rt,filterType:tt.type,filterLabel:tt.label,filterIcon:tt.icon||null,selectedValue:It,selectedOptions:tt.type==="select"&&Array.isArray(It)&&It.length>0?It.map($e=>{var kt;const Dt=(kt=tt.options)==null?void 0:kt.find(Rt=>Rt.value===$e);return{value:$e,label:(Dt==null?void 0:Dt.label)||$e,icon:(Dt==null?void 0:Dt.icon)||null}}):null,selectedOption:tt.type==="radio-button"&&It!=null?{value:It,label:((Lt=(mt=tt.options)==null?void 0:mt.find($e=>$e.value===It))==null?void 0:Lt.label)||It}:null,isChecked:tt.type==="check"?It:null}}))||[];const Nt={mainSelector:{id:((je=n.value)==null?void 0:je.id)||null,name:((Xe=n.value)==null?void 0:Xe.name)||null,url:((Ze=n.value)==null?void 0:Ze.url)||null},viewSelector:{id:((Te=s.value)==null?void 0:Te.id)||null,name:((De=s.value)==null?void 0:De.name)||((Ve=s.value)==null?void 0:Ve.title)||null,url:((Ge=s.value)==null?void 0:Ge.url)||null},team:T.value,dynamicFilters:ot,categoriasSeleccionadas:qt,timestamp:new Date().toISOString(),summary:{mainSelected:!!n.value,viewSelected:!!s.value,totalDynamicFilters:((et=f.value)==null?void 0:et.length)||0,activeFilters:((nt=f.value)==null?void 0:nt.filter((tt,st)=>{const Je=l.value[st];return Array.isArray(Je)?Je.length>0:Je!=null&&Je!==!1}).length)||0}};t&&(console.log("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"),console.log("viewToEdit.view.filterAndViewsContainer",t.view.filterAndViewsContainer),console.log("viewToEdit.view.filterAndViewsContainer.childViews.length",t.view.filterAndViewsContainer.childViews.length));const At={main:n.value,view:s.value,team:T.value,dynamicFilters:l.value,filtersJSON:Nt,filterAndViewsContainer:w,viewToEdit:t};if(console.log("GSCtops - emitting filters-changed with data:",At),K("filters-changed",At),d.value&&t&&(v=Nt,console.log("Updated editFiltersJSON:",v),((ht=s.value)==null?void 0:ht.id)===8&&(console.log("FieldPosesion - editFiltersJSON updated:",v),console.log("FieldPosesion - dynamicFilters in JSON:",v.dynamicFilters)),((Tt=s.value)==null?void 0:Tt.id)===2)){console.log("GSCtops - editFiltersJSON updated:",v),console.log("GSCtops - dynamicFilters in JSON:",v.dynamicFilters),console.log("GSCtops - viewToEdit.filterMultiple:",(wt=t.view)==null?void 0:wt.filterMultiple);const tt=v.dynamicFilters.findIndex(st=>st.filterType==="select-simple"&&st.filterLabel==="Tipo de análisis");tt!==-1&&(Ut=(Ft=t.view)==null?void 0:Ft.filterMultiple)!=null&&Ut.categoryId&&(v.dynamicFilters[tt].selectedValue=t.view.filterMultiple.categoryId,console.log("GSCtops - updated editFiltersJSON with filterMultiple.categoryId:",t.view.filterMultiple.categoryId))}w&&!d.value?(w.setDynamicFilters(l.value),console.log("Updated container with new dynamicFilters:",l.value)):w&&d.value&&console.log("In edit mode, not updating container automatically")}function ce(){t=null,v=null,w=null,h.value=null,u.value=null,T.value="ambos",l.value=[],O.value=!1,_.value=!1,R.value=null,I.value=null,d.value=!1}function he(ze){if(ze&&ze.dynamicFilters){if(console.log("Updating filters from container:",ze.dynamicFilters),x.value){console.log("Skipping container update due to user update in progress");return}Array.isArray(ze.dynamicFilters)&&ze.dynamicFilters.length>0&&(e.value=!0,l.value=[...ze.dynamicFilters],p.nextTick(()=>{e.value=!1}))}}function fe(ze){if(console.log("preselectFiltersFromJSON called with:",ze),d.value=!0,ze.mainSelector&&ze.mainSelector.id){const Se=L.value.findIndex(Fe=>Fe.id===ze.mainSelector.id);Se!==-1&&(h.value=Se,console.log("Selected main index:",Se))}ze.viewSelector&&ze.viewSelector.id&&n.value&&n.value.views.findIndex(Se=>Se.id===ze.viewSelector.id)!==-1&&(u.value=ze.viewSelector.id,console.log("Selected second id:",ze.viewSelector.id)),ze.dynamicFilters&&Array.isArray(ze.dynamicFilters)&&(console.log("Processing dynamic filters:",ze.dynamicFilters),p.nextTick(()=>{setTimeout(()=>{var Se,Fe,Le,ge,Ce,_e;if(console.log("Processing filters after delay"),console.log("selectedSecond.value:",s.value),s.value&&f.value){if(console.log("Filters available:",f.value),e.value){console.log("Skipping preselect due to container update in progress");return}if(x.value=!0,console.log("&666&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&",ze.dynamicFilters),ze.dynamicFilters.forEach((Ue,Re)=>{var je,Xe,Ze,Te,De;if(console.log(`????????????????????????????????????????????????????????????????????????????????????Processing filter data ${Re}:`,Ue),Re<f.value.length){const Ve=f.value[Re];if(console.log(`********************Filter******************** ******************** ******************** ${Re}:`,Ve),((je=s.value)==null?void 0:je.id)===3&&d.value&&console.log(`GSCMatchSummary - Processing filter ${Re} for component ${((Xe=t==null?void 0:t.view)==null?void 0:Xe.id)||"unknown"}`),Ve.type==="check"){const Ge=Ue.isChecked;console.log(`Setting check filter ${Re} to:`,Ge),typeof Ge=="boolean"?(l.value[Re]=Ge,console.log(`Successfully set check filter ${Re} to:`,Ge)):console.log(`Invalid isChecked value for filter ${Re}:`,Ge)}else if(Ve.type==="select"&&Ue.selectedOptions){const Ge=Ue.selectedOptions.map(et=>et.value);console.log(`Setting select filter ${Re} to:`,Ge),l.value[Re]=Ge,console.log(`Successfully set select filter ${Re} to:`,Ge)}else if(Ve.type==="select"&&Ue.selectedValue&&Array.isArray(Ue.selectedValue))if(Ue.selectedValue.length>0&&Ue.selectedValue[0]&&typeof Ue.selectedValue[0]=="object"){const Ge=Me(Ue.selectedValue);console.log(`Setting Timeline select filter ${Re} to:`,Ge),l.value[Re]=Ge,console.log(`Successfully set Timeline select filter ${Re} to:`,Ge)}else console.log(`Setting select filter ${Re} to:`,Ue.selectedValue),l.value[Re]=Ue.selectedValue,console.log(`Successfully set select filter ${Re} to:`,Ue.selectedValue);else if(Ve.type==="radio-button"&&Ue.selectedOption)console.log(`Setting radio filter ${Re} to:`,Ue.selectedOption.value),l.value[Re]=Ue.selectedOption.value;else if(Ve.type==="select-simple"&&Ue.selectedValue!==void 0){console.log(`Setting select-simple filter ${Re} to:`,Ue.selectedValue),console.log("select-simple filterData.selectedValue type:",typeof Ue.selectedValue),console.log("select-simple filterData.selectedValue is array:",Array.isArray(Ue.selectedValue));let Ge;((Ze=s.value)==null?void 0:Ze.id)===2&&(De=(Te=t==null?void 0:t.view)==null?void 0:Te.filterMultiple)!=null&&De.categoryId?(Ge=t.view.filterMultiple.categoryId,console.log("GSCtops - using filterMultiple.categoryId instead of selectedValue:",Ge)):Ge=Array.isArray(Ue.selectedValue)?Ue.selectedValue[0]:Ue.selectedValue,l.value[Re]=Ge,console.log(`Successfully set select-simple filter ${Re} to:`,Ge)}}else console.log(`Filter index ${Re} out of range`)}),console.log("Final dynamicFilters.value:",l.value),((Se=s.value)==null?void 0:Se.id)===3&&d.value&&console.log("GSCMatchSummary - Final dynamicFilters after processing:",l.value),((Fe=s.value)==null?void 0:Fe.id)===2&&d.value&&(Le=t==null?void 0:t.view)!=null&&Le.filterMultiple&&(console.log("GSCtops - checking filterMultiple after preselecting filters:",t.view.filterMultiple),console.log("GSCtops - currentFilters:",f.value),console.log("GSCtops - dynamicFilters before:",l.value),t.view.filterMultiple.categoryId)){console.log("GSCtops - found categoryId in filterMultiple:",t.view.filterMultiple.categoryId);const Ue=f.value.findIndex(Re=>Re.type==="select-simple"&&Re.label==="Tipo de análisis");if(console.log("GSCtops - categoryFilterIndex:",Ue),console.log("GSCtops - all filters:",f.value.map((Re,je)=>({index:je,type:Re.type,label:Re.label}))),Ue!==-1){console.log("GSCtops - found category filter at index:",Ue);const Re=t.view.filterMultiple.categoryId;if(console.log("GSCtops - setting category filter directly from filterMultiple.categoryId:",Re),l.value[0]=Re,t.view.componentProps&&Re){let Xe=`Category ${Re}`,Ze=null;try{Ze=ih(Re),Ze&&(Xe=Ze.name,console.log("GSCtops - found category info from getCategoryById in preselectFiltersFromJSON:",Ze))}catch{console.log("GSCtops - getCategoryById failed in preselectFiltersFromJSON, using filter options");const Te=f.value.findIndex(De=>De.type==="select-simple"&&De.label==="Tipo de análisis");if(Te!==-1){const De=(((ge=f.value[Te])==null?void 0:ge.options)||[]).find(Ve=>Ve.value==Re);De&&(Xe=De.label,console.log("GSCtops - found category name from options in preselectFiltersFromJSON:",Xe))}}t.view.componentProps.categoryView=[{id:Re,name:Xe}],console.log("GSCtops - updated componentProps.categoryView in preselectFiltersFromJSON:",t.view.componentProps.categoryView)}console.log("GSCtops - automatically set category filter to:",Re),console.log("GSCtops - categoryId type:",typeof Re),console.log("GSCtops - updated dynamicFilters:",l.value),console.log("GSCtops - filter options:",(Ce=f.value[Ue])==null?void 0:Ce.options);const je=(((_e=f.value[Ue])==null?void 0:_e.options)||[]).find(Xe=>Xe.value==Re);console.log("GSCtops - matching option:",je),p.nextTick(()=>{l.value=[...l.value],console.log("GSCtops - forced reactivity update")})}else console.log("GSCtops - category filter not found!")}p.nextTick(()=>{x.value=!1})}},100)}))}function se(){var ze,Se,Fe,Le,ge,Ce,_e,Ue,Re,je;return{mainSelector:{id:((ze=n.value)==null?void 0:ze.id)||null,name:((Se=n.value)==null?void 0:Se.name)||null,url:((Fe=n.value)==null?void 0:Fe.url)||null},viewSelector:{id:((Le=s.value)==null?void 0:Le.id)||null,name:((ge=s.value)==null?void 0:ge.name)||((Ce=s.value)==null?void 0:Ce.title)||null,url:((_e=s.value)==null?void 0:_e.url)||null},team:T.value,dynamicFilters:((Ue=f.value)==null?void 0:Ue.map((Xe,Ze)=>{var Te,De;const Ve=l.value[Ze];return{filterId:Xe.id||`filter_${Ze}`,filterType:Xe.type,filterLabel:Xe.label,filterIcon:Xe.icon||null,selectedValue:Ve,selectedOptions:Xe.type==="select"&&Array.isArray(Ve)&&Ve.length>0?Ve.map(Ge=>{var et;const nt=(et=Xe.options)==null?void 0:et.find(ht=>ht.value===Ge);return{value:Ge,label:(nt==null?void 0:nt.label)||Ge,icon:(nt==null?void 0:nt.icon)||null}}):null,selectedOption:Xe.type==="radio-button"&&Ve?{value:Ve,label:((De=(Te=Xe.options)==null?void 0:Te.find(Ge=>Ge.value===Ve))==null?void 0:De.label)||Ve}:null,isChecked:Xe.type==="check"?Ve:null}}))||[],timestamp:new Date().toISOString(),summary:{mainSelected:!!n.value,viewSelected:!!s.value,totalDynamicFilters:((Re=f.value)==null?void 0:Re.length)||0,activeFilters:((je=f.value)==null?void 0:je.filter((Xe,Ze)=>{const Te=l.value[Ze];return Array.isArray(Te)?Te.length>0:Te!=null&&Te!==!1}).length)||0}}}i({getCurrentFiltersJSON:se});function de(){ce(),K("close")}p.onMounted(async()=>{document.addEventListener("click",ee),p.nextTick(()=>{ie()});try{const ze=await(await fetch("https://m9qip57rsh.execute-api.us-east-2.amazonaws.com/prod/views",{headers:{Authorization:`${F.token}`}})).json();L.value=ze.data||[]}catch(ze){console.error("Error al obtener datos:",ze)}});function ie(){document.querySelectorAll(".field-menu .option-card").forEach(ze=>{const Se=ze.querySelector(".option-img");if(!Se||!Se.dataset.hoverSrc)return;const Fe=Se.src,Le=Se.dataset.hoverSrc;ze.addEventListener("mouseenter",()=>{Se.src=Le}),ze.addEventListener("mouseleave",()=>{Se.src=Fe})})}p.onUnmounted(()=>{document.removeEventListener("click",ee)}),li.on("set-filter-and-views-container",ze=>{w=ze,ze&&he(ze)}),li.on("component-added-to-container",ze=>{console.log("Component added to container, updating filters, container:",ze),!d.value||w&&ze.id===w.id?he(ze):console.log("Skipping container update - edit mode or different container")}),li.on("edit-view",ze=>{var Se,Fe,Le,ge,Ce,_e,Ue,Re,je;console.log("edit-view received:",ze),t=ze,w=((Se=ze.view)==null?void 0:Se.filterAndViewsContainer)||null,v=null;const Xe=[(Le=(Fe=ze.view)==null?void 0:Fe.coreView)==null?void 0:Le.filtersJSON,(ge=ze.view)==null?void 0:ge.filtersJSON,(Ce=ze.coreView)==null?void 0:Ce.filtersJSON,ze.filtersJSON,(Ue=(_e=ze.view)==null?void 0:_e.componentProps)==null?void 0:Ue.filtersJSON];for(const Ze of Xe)if(Ze){v=Ze,console.log("Found editFiltersJSON in:",Ze);break}if(w&&(w.viewId===4||w.viewId===8||w.viewId===3)&&(Re=ze.view)!=null&&Re.id){const Ze=w.getComponentDynamicFilters(ze.view.id);if(Ze){let Te="Unknown";w.viewId===4?Te="Timeline":w.viewId===8?Te="FieldPosesion":w.viewId===3&&(Te="GSCMatchSummary"),console.log(`${Te} - found component specific filters:`,Ze),v&&(v={...v,dynamicFilters:Ze.map(De=>Array.isArray(De)?{selectedValue:De,selectedOptions:De.map(Ve=>({value:Ve,label:Ve}))}:typeof De=="boolean"?{isChecked:De}:{selectedOption:{value:De,label:De}})},console.log(`${Te} - updated editFiltersJSON with component specific filters:`,v))}}if(w&&w.viewId===2&&(je=ze.view)!=null&&je.filterMultiple&&(console.log("GSCtops detected - checking filterMultiple:",ze.view.filterMultiple),ze.view.filterMultiple.categoryId&&v)){console.log("GSCtops - found categoryId in filterMultiple:",ze.view.filterMultiple.categoryId);const Ze=v.dynamicFilters.findIndex(Te=>Te.filterType==="select-simple"&&Te.filterLabel==="Tipo de análisis");Ze!==-1&&(console.log("GSCtops - found category filter at index:",Ze),v.dynamicFilters[Ze]={...v.dynamicFilters[Ze],selectedValue:ze.view.filterMultiple.categoryId,selectedOptions:[{value:ze.view.filterMultiple.categoryId,label:`Category ${ze.view.filterMultiple.categoryId}`}]},console.log("GSCtops - updated filter with single value:",ze.view.filterMultiple.categoryId),console.log("GSCtops - updated filter structure:",v.dynamicFilters[Ze]),console.log("GSCtops - updated category filter with filterMultiple.categoryId:",ze.view.filterMultiple.categoryId))}console.log("Final editFiltersJSON:",v),v?fe(v):console.log("No editFiltersJSON found, cannot preselect filters")});function me(){R.value=null}function ve(ze,Se){var Fe;((Fe=s.value)==null?void 0:Fe.id)===2&&console.log("GSCtops - debugSelectSimple:",{idx:ze,optionValue:Se,optionValueType:typeof Se,dynamicFiltersValue:l.value[ze],dynamicFiltersValueType:typeof l.value[ze],isEqual:l.value[ze]===Se,isEqualLoose:l.value[ze]==Se})}function ye(){var ze;if(d.value&&v&&v.dynamicFilters){if(console.log("Forcing checkbox and select filter update from editFiltersJSON"),((ze=s.value)==null?void 0:ze.id)===8&&(console.log("FieldPosesion - forceCheckboxUpdate called"),console.log("FieldPosesion - viewToEdit:",t),console.log("FieldPosesion - editFiltersJSON:",v)),m.value){console.log("Skipping forceCheckboxUpdate - already in force update");return}if(e.value)return;m.value=!0,x.value=!0,v.dynamicFilters.forEach((Se,Fe)=>{var Le,ge,Ce;if(Se&&(Le=f.value)!=null&&Le[Fe]){const _e=f.value[Fe];if(_e.type==="check"&&Se.isChecked!==void 0)console.log(`Forcing checkbox ${Fe} to:`,Se.isChecked),l.value[Fe]=Se.isChecked,((ge=s.value)==null?void 0:ge.id)===8&&console.log("FieldPosesion - Checkbox filter updated:",{index:Fe,value:Se.isChecked,componentId:(Ce=t==null?void 0:t.view)==null?void 0:Ce.id});else if(_e.type==="select"&&Se.selectedOptions){const Ue=Se.selectedOptions.map(Re=>Re.value);console.log(`Forcing select filter ${Fe} to:`,Ue),l.value[Fe]=Ue}else _e.type==="select"&&Se.selectedValue&&Array.isArray(Se.selectedValue)&&(console.log(`Forcing select filter ${Fe} to:`,Se.selectedValue),l.value[Fe]=Se.selectedValue)}}),p.nextTick(()=>{x.value=!1,m.value=!1})}}function we(){var ze;if(d.value&&v&&v.dynamicFilters&&((ze=s.value)==null?void 0:ze.id)===4){if(console.log("Preselecting Timeline filters specifically"),m.value){console.log("Skipping preselectTimelineFilters - already in force update");return}if(e.value)return;m.value=!0,x.value=!0,v.dynamicFilters.forEach((Se,Fe)=>{var Le,ge;if(Se&&((ge=(Le=f.value)==null?void 0:Le[Fe])==null?void 0:ge.type)==="select"){if(Se.selectedOptions){const Ce=Se.selectedOptions.map(_e=>_e.value);console.log(`Preselecting Timeline select filter ${Fe} to:`,Ce),l.value[Fe]=Ce}else if(Se.selectedValue&&Array.isArray(Se.selectedValue))if(Se.selectedValue.length>0&&Se.selectedValue[0]&&typeof Se.selectedValue[0]=="object"){const Ce=Me(Se.selectedValue);console.log(`Preselecting Timeline select filter ${Fe} to:`,Ce),l.value[Fe]=Ce}else console.log(`Preselecting Timeline select filter ${Fe} to:`,Se.selectedValue),l.value[Fe]=Se.selectedValue}}),setTimeout(()=>{console.log("Forcing UI update after preselecting Timeline filters"),l.value=[...l.value]},200),p.nextTick(()=>{x.value=!1,m.value=!1})}}function Me(ze){return!Array.isArray(ze)||ze.length===0?[]:ze.map(Se=>{if(Se&&typeof Se=="object"){if(Se.event_type_id&&Se.category_id)return`${Se.category_id}-${Se.event_type_id}`;if(Se.event_type_id)return Se.event_type_id.toString();if(Se.category_id)return Se.category_id.toString()}return Se})}function Ae(){var ze,Se,Fe,Le,ge,Ce;if(d.value&&v&&v.dynamicFilters&&f.value){if(console.log("Force updating select filters immediately"),m.value){console.log("Skipping forceSelectFilterUpdate - already in force update");return}if(e.value)return;if(m.value=!0,x.value=!0,v.dynamicFilters.forEach((_e,Ue)=>{var Re,je,Xe,Ze,Te;if(_e&&((Re=f.value[Ue])==null?void 0:Re.type)==="select"){if(_e.selectedOptions){const De=_e.selectedOptions.map(Ve=>Ve.value);console.log(`Force setting select filter ${Ue} to:`,De),l.value[Ue]=De}else if(_e.selectedValue&&Array.isArray(_e.selectedValue))if(_e.selectedValue.length>0&&_e.selectedValue[0]&&typeof _e.selectedValue[0]=="object"){const De=Me(_e.selectedValue);console.log(`Force setting Timeline select filter ${Ue} to:`,De),l.value[Ue]=De}else console.log(`Force setting select filter ${Ue} to:`,_e.selectedValue),l.value[Ue]=_e.selectedValue}else if(_e&&((je=f.value[Ue])==null?void 0:je.type)==="select-simple"&&_e.selectedValue!==void 0){console.log(`Force setting select-simple filter ${Ue} to:`,_e.selectedValue),console.log("forceSelectFilterUpdate - selectedValue type:",typeof _e.selectedValue),console.log("forceSelectFilterUpdate - selectedValue is array:",Array.isArray(_e.selectedValue));let De;((Xe=s.value)==null?void 0:Xe.id)===2&&(Te=(Ze=t==null?void 0:t.view)==null?void 0:Ze.filterMultiple)!=null&&Te.categoryId?(De=t.view.filterMultiple.categoryId,console.log("GSCtops - using filterMultiple.categoryId in forceSelectFilterUpdate:",De)):De=Array.isArray(_e.selectedValue)?_e.selectedValue[0]:_e.selectedValue,l.value[Ue]=De,console.log(`Force setting select-simple filter ${Ue} to:`,De)}}),((ze=s.value)==null?void 0:ze.id)===4&&setTimeout(()=>{console.log("Forcing UI update for Timeline filters"),l.value=[...l.value]},100),((Se=s.value)==null?void 0:Se.id)===2&&(Fe=t==null?void 0:t.view)!=null&&Fe.filterMultiple&&(console.log("GSCtops - checking filterMultiple in forceSelectFilterUpdate:",t.view.filterMultiple),console.log("GSCtops - currentFilters in forceSelectFilterUpdate:",f.value),t.view.filterMultiple.categoryId)){console.log("GSCtops - found categoryId in filterMultiple:",t.view.filterMultiple.categoryId);const _e=f.value.findIndex(Ue=>Ue.type==="select-simple"&&Ue.label==="Tipo de análisis");if(console.log("GSCtops - categoryFilterIndex in forceSelectFilterUpdate:",_e),console.log("GSCtops - all filters in forceSelectFilterUpdate:",f.value.map((Ue,Re)=>({index:Re,type:Ue.type,label:Ue.label}))),_e!==-1){console.log("GSCtops - found category filter at index:",_e);const Ue=t.view.filterMultiple.categoryId;if(console.log("GSCtops - setting category filter directly from filterMultiple.categoryId in forceSelectFilterUpdate:",Ue),l.value[0]=Ue,t.view.componentProps&&Ue){let je=`Category ${Ue}`,Xe=null;try{Xe=ih(Ue),Xe&&(je=Xe.name,console.log("GSCtops - found category info from getCategoryById in forceSelectFilterUpdate:",Xe))}catch{console.log("GSCtops - getCategoryById failed in forceSelectFilterUpdate, using filter options");const Ze=f.value.findIndex(Te=>Te.type==="select-simple"&&Te.label==="Tipo de análisis");if(Ze!==-1){const Te=(((Le=f.value[Ze])==null?void 0:Le.options)||[]).find(De=>De.value==Ue);Te&&(je=Te.label,console.log("GSCtops - found category name from options in forceSelectFilterUpdate:",je))}}t.view.componentProps.categoryView=[{id:Ue,name:je}],console.log("GSCtops - updated componentProps.categoryView in forceSelectFilterUpdate:",t.view.componentProps.categoryView)}console.log("GSCtops - automatically set category filter to:",Ue),console.log("GSCtops - categoryId type:",typeof Ue),console.log("GSCtops - updated dynamicFilters:",l.value),console.log("GSCtops - filter options:",(ge=f.value[_e])==null?void 0:ge.options);const Re=(((Ce=f.value[_e])==null?void 0:Ce.options)||[]).find(je=>je.value==Ue);console.log("GSCtops - matching option:",Re),p.nextTick(()=>{l.value=[...l.value],console.log("GSCtops - forced reactivity update in forceSelectFilterUpdate")})}else console.log("GSCtops - category filter not found in forceSelectFilterUpdate!")}p.nextTick(()=>{x.value=!1,m.value=!1})}}function Pe(){if(console.log("FUNCION: forceRadioFilterUpdate"),m.value){console.log("Skipping forceRadioFilterUpdate - already in force update");return}if(d.value&&v&&v.dynamicFilters&&f.value){if(console.log("1"),e.value)return;m.value=!0,x.value=!0,v.dynamicFilters.forEach((ze,Se)=>{var Fe,Le;if(ze&&((Fe=f.value[Se])==null?void 0:Fe.type)==="radio-button"&&(console.log("2"),ze.selectedOption&&ze.selectedOption.value!==void 0)){console.log("3"),console.log("filterData: ----------------->",ze),console.log("editFiltersJSON: ",v),console.log(`Force setting radio filter ${Se} to:`,ze.selectedOption.value);const ge=ze.selectedOption.value;l.value[Se]=ge,console.log(`Radio filter ${Se} set to:`,ge,"Type:",typeof ge),((Le=s.value)==null?void 0:Le.id)===8&&(console.log("FieldPosesion - Radio filter updated to:",ze.selectedOption.value),console.log("FieldPosesion - Current dynamicFilters after update:",l.value))}}),p.nextTick(()=>{x.value=!1,m.value=!1})}}function Ne(){var ze,Se,Fe,Le,ge,Ce,_e,Ue,Re,je,Xe,Ze,Te,De,Ve,Ge,et,nt,ht;if(w&&d.value&&t){if(console.log("User made changes, updating container for specific component"),console.log("Current dynamicFilters:",l.value),console.log("Component ID:",(ze=t.view)==null?void 0:ze.id),e.value){console.log("Skipping container update due to container update in progress");return}if(x.value=!0,((Se=s.value)==null?void 0:Se.id)===4)w.setDynamicFilters(l.value,(Fe=t.view)==null?void 0:Fe.id),w.updateDynamicFilters(l.value,(Le=t.view)==null?void 0:Le.id),console.log("Timeline - updated specific filters for component:",(ge=t.view)==null?void 0:ge.id);else if(((Ce=s.value)==null?void 0:Ce.id)===8)w.setDynamicFilters(l.value,(_e=t.view)==null?void 0:_e.id),w.updateDynamicFilters(l.value,(Ue=t.view)==null?void 0:Ue.id),console.log("FieldPosesion - updated specific filters for component:",(Re=t.view)==null?void 0:Re.id);else if(((je=s.value)==null?void 0:je.id)===3)w.setDynamicFilters(l.value,(Xe=t.view)==null?void 0:Xe.id),w.updateDynamicFilters(l.value,(Ze=t.view)==null?void 0:Ze.id),console.log("GSCMatchSummary - updated specific filters for component:",(Te=t.view)==null?void 0:Te.id);else if(((De=s.value)==null?void 0:De.id)===2){console.log("GSCtops - updateContainerOnUserChange - starting GSCtops logic"),console.log("GSCtops - current dynamicFilters:",l.value),console.log("GSCtops - currentFilters:",f.value),w.setDynamicFilters(l.value),w.updateDynamicFilters(l.value);const Tt=l.value[0];if(console.log("GSCtops - newCategoryId from dynamicFilters[0]:",Tt),Tt!==void 0){t.view.filterMultiple||(t.view.filterMultiple={},console.log("GSCtops - created new filterMultiple object"));const wt=t.view.filterMultiple.categoryId;if(t.view.filterMultiple.categoryId=Tt,console.log("GSCtops - updated filterMultiple.categoryId from",wt,"to:",Tt),console.log("GSCtops - updated component filterMultiple:",t.view.filterMultiple),t.view.componentProps){let Ft=`Category ${Tt}`,Ut=null;try{Ut=ih(Tt),Ut&&(Ft=Ut.name,console.log("GSCtops - found category info from getCategoryById:",Ut))}catch{console.log("GSCtops - getCategoryById failed, using filter options");const qt=f.value.findIndex(ot=>ot.type==="select-simple"&&ot.label==="Tipo de análisis");if(qt!==-1){const ot=(((Ve=f.value[qt])==null?void 0:Ve.options)||[]).find(Qe=>Qe.value==Tt);ot&&(Ft=ot.label,console.log("GSCtops - found category name from options:",Ft))}}t.view.componentProps.categoryView=[{id:Tt,name:Ft}],console.log("GSCtops - updated componentProps.categoryView:",t.view.componentProps.categoryView),li.emit("force-component-update",{itemId:t.view.id,componentProps:t.view.componentProps,filterMultiple:t.view.filterMultiple}),console.log("GSCtops - emitted force-component-update event")}}else console.log("GSCtops - newCategoryId is undefined!");console.log("GSCtops - updated specific filters for component:",(Ge=t.view)==null?void 0:Ge.id)}else w.setDynamicFilters(l.value),w.updateDynamicFilters(l.value);((et=s.value)==null?void 0:et.id)===8&&console.log("FieldPosesion - Container updated with dynamicFilters:",l.value),((nt=s.value)==null?void 0:nt.id)===3&&console.log("GSCMatchSummary - Container updated with dynamicFilters:",l.value),((ht=s.value)==null?void 0:ht.id)===2&&console.log("GSCtops - Container updated with dynamicFilters:",l.value),p.nextTick(()=>{x.value=!1})}}function Ie(){var ze,Se,Fe;if(!v||!v.dynamicFilters||!f.value)return!1;for(let Le=0;Le<v.dynamicFilters.length;Le++){const ge=v.dynamicFilters[Le],Ce=f.value[Le],_e=l.value[Le];if(!(!ge||!Ce)){if(Ce.type==="check"){if(ge.isChecked!==_e)return console.log(`Check filter ${Le} needs update: saved=${ge.isChecked}, current=${_e}`),!0}else if(Ce.type==="radio-button"){if(((ze=ge.selectedOption)==null?void 0:ze.value)!==_e)return console.log(`Radio filter ${Le} needs update: saved=${(Se=ge.selectedOption)==null?void 0:Se.value}, current=${_e}`),!0}else if(Ce.type==="select"){const Ue=((Fe=ge.selectedOptions)==null?void 0:Fe.map(je=>je.value))||ge.selectedValue||[],Re=Array.isArray(_e)?_e:[];if(JSON.stringify(Ue)!==JSON.stringify(Re))return console.log(`Select filter ${Le} needs update: saved=${JSON.stringify(Ue)}, current=${JSON.stringify(Re)}`),!0}}}return console.log("No force update needed - values already match"),!1}return(ze,Se)=>(p.openBlock(),p.createElementBlock("div",tce,[p.createElementVNode("button",rce,p.toDisplayString(d.value?"Editando visualización":"Nueva visualización"),1),p.createElementVNode("div",{class:p.normalizeClass(["custom-select main-select",{disabled:d.value}]),onClick:q},[p.createElementVNode("div",nce,[p.createElementVNode("span",ace,[n.value?(p.openBlock(),p.createElementBlock("img",{key:0,src:V(n.value.name,!1),alt:"icono",class:"option-img"},null,8,ice)):(p.openBlock(),p.createElementBlock("img",oce))]),n.value?(p.openBlock(),p.createElementBlock("span",lce,p.toDisplayString(j()),1)):(p.openBlock(),p.createElementBlock("span",sce,"Tipo de vista")),p.createElementVNode("span",{class:p.normalizeClass(["arrow",{open:O.value}])},Se[4]||(Se[4]=[p.createElementVNode("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none"},[p.createElementVNode("path",{d:"M3 5L8 10L13 5",stroke:"#AAB4BE","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),2)]),O.value?(p.openBlock(),p.createElementBlock("div",cce,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(b.value,(Fe,Le)=>(p.openBlock(),p.createElementBlock("div",{key:Fe.id,class:p.normalizeClass(["option-card",{active:h.value===Le}]),onClick:p.withModifiers(ge=>ne(Le),["stop"])},[p.createElementVNode("div",dce,[p.createElementVNode("img",{src:V(Fe.name,!1),"data-hover-src":V(Fe.name,!0),alt:"icono",class:"option-img-34"},null,8,hce)]),p.createElementVNode("div",pce,[p.createElementVNode("div",fce,p.toDisplayString(Fe.name),1),Fe.description?(p.openBlock(),p.createElementBlock("div",mce,p.toDisplayString(Fe.description),1)):p.createCommentVNode("",!0)])],10,uce))),128))])):p.createCommentVNode("",!0)],2),n.value?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(["custom-select second-select",{disabled:d.value}]),onClick:Y},[p.createElementVNode("div",gce,[p.createElementVNode("span",yce,[s.value?(p.openBlock(),p.createElementBlock("img",{key:0,src:s.value.url,alt:"icono",class:"option-img-graph2"},null,8,vce)):n.value?(p.openBlock(),p.createElementBlock("img",{key:1,src:V(n.value.name,!1),alt:"icono",class:"option-img"},null,8,bce)):p.createCommentVNode("",!0)]),p.createElementVNode("span",xce,p.toDisplayString(G()),1),p.createElementVNode("span",{class:p.normalizeClass(["arrow",{open:_.value}])},Se[5]||(Se[5]=[p.createElementVNode("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none"},[p.createElementVNode("path",{d:"M3 5L8 10L13 5",stroke:"#AAB4BE","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),2)]),_.value&&n.value?(p.openBlock(),p.createElementBlock("div",_ce,[p.createElementVNode("div",wce,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.value,Fe=>(p.openBlock(),p.createElementBlock("div",{key:Fe.id,class:p.normalizeClass(["option-card-grid",{active:u.value===Fe.id}]),onClick:p.withModifiers(Le=>H(Fe),["stop"])},[p.createElementVNode("div",kce,p.toDisplayString(Fe.name||Fe.title),1),p.createElementVNode("div",Sce,[p.createElementVNode("img",{src:Fe.url,alt:"icono",class:"option-img-grid"},null,8,Ece)])],10,Tce))),128))])])):p.createCommentVNode("",!0)],2)):p.createCommentVNode("",!0),s.value?(p.openBlock(),p.createElementBlock("div",Cce)):p.createCommentVNode("",!0),s.value&&f.value&&M()?(p.openBlock(),p.createElementBlock("div",{key:2,class:p.normalizeClass(["dynamic-filters",{"dynamic-filters-wide":f.value.length>=2}])},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(f.value,(Fe,Le)=>(p.openBlock(),p.createElementBlock(p.Fragment,{key:Le},[Fe.type==="select"?(p.openBlock(),p.createElementBlock("div",{key:0,class:"custom-select dynamic-select filter-inline",onClick:p.withModifiers(ge=>re(Le),["stop"])},[p.createElementVNode("div",Mce,[Se[7]||(Se[7]=p.createElementVNode("span",{class:"select-icon select-analisis-icon"},[p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/report-maker/iconocategorias.png",alt:"icono categorías",style:{width:"18px",height:"18px","object-fit":"contain"}})],-1)),Se[8]||(Se[8]=p.createElementVNode("span",{class:"select-label"}," Tipo de análisis ",-1)),Array.isArray(l.value[Le])&&l.value[Le].length>0?(p.openBlock(),p.createElementBlock("span",Lce,p.toDisplayString(l.value[Le].length),1)):p.createCommentVNode("",!0),p.createElementVNode("span",{class:p.normalizeClass(["arrow",{open:R.value===Le}])},Se[6]||(Se[6]=[p.createElementVNode("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none"},[p.createElementVNode("path",{d:"M3 5L8 10L13 5",stroke:"#AAB4BE","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),2)]),R.value===Le?(p.openBlock(),p.createElementBlock("div",Pce,[p.createElementVNode("div",Nce,[p.createElementVNode("div",{class:"multi-select-header",onClick:Se[1]||(Se[1]=p.withModifiers(()=>{},["stop"]))},[p.createElementVNode("label",Oce,[p.createElementVNode("input",{type:"checkbox",checked:E(Le),indeterminate:S(Le),onChange:p.withModifiers(ge=>A(Le),["stop"]),onClick:Se[0]||(Se[0]=p.withModifiers(()=>{},["stop"]))},null,40,Rce),Se[9]||(Se[9]=p.createElementVNode("span",{class:"select-all-label"},"Agregar todas",-1))])]),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(Fe.options,ge=>(p.openBlock(),p.createElementBlock("div",{key:ge.value,class:p.normalizeClass(["option-card multi-select-option",{active:g(Le,ge.value)}]),onClick:Se[2]||(Se[2]=p.withModifiers(()=>{},["stop"]))},[p.createElementVNode("div",zce,[p.createElementVNode("input",{type:"checkbox",checked:g(Le,ge.value),onChange:p.withModifiers(Ce=>k(Le,ge.value),["stop"])},null,40,Dce)]),p.createElementVNode("div",{class:"option-content",onClick:Ce=>k(Le,ge.value)},[p.createElementVNode("div",Fce,p.toDisplayString(ge.label),1)],8,Ice)],2))),128))]),p.createElementVNode("div",Bce,[p.createElementVNode("button",{class:"btn-listo",onClick:Se[3]||(Se[3]=p.withModifiers(ge=>me(),["stop"]))},"Listo")])])):p.createCommentVNode("",!0)],8,Ace)):Fe.type==="radio-button"?(p.openBlock(),p.createElementBlock("div",Vce,[p.createElementVNode("div",Uce,p.toDisplayString(Fe.label),1),p.createElementVNode("div",jce,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(Fe.options,ge=>(p.openBlock(),p.createElementBlock("label",{key:ge.value,class:p.normalizeClass(["radio-option-card",{active:l.value[Le]===ge.value}])},[p.withDirectives(p.createElementVNode("input",{type:"radio",name:"dynamic-radio-"+Le,value:ge.value,"onUpdate:modelValue":Ce=>l.value[Le]=Ce,disabled:P(ge.value,ge.label),onChange:()=>{console.log("Radio button changed for FieldPosesion:",l.value[Le]),d.value.value&&Ne(),le()}},null,40,qce),[[p.vModelRadio,l.value[Le]]]),p.createElementVNode("span",null,p.toDisplayString(ge.label),1)],2))),128))])])):Fe.type==="check"?(p.openBlock(),p.createElementBlock("div",Wce,[p.createElementVNode("label",null,[p.withDirectives(p.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":ge=>l.value[Le]=ge,checked:l.value[Le],onChange:()=>{console.log(`Checkbox ${Le} changed to:`,l.value[Le]),d.value.value&&Ne(),le()}},null,40,Gce),[[p.vModelCheckbox,l.value[Le]]]),p.createTextVNode(" "+p.toDisplayString(Fe.label),1)])])):Fe.type==="select-simple"?(p.openBlock(),p.createElementBlock("div",{key:3,class:"custom-select dynamic-select filter-inline","data-filter-type":Fe.type,onClick:p.withModifiers(ge=>te(Le),["stop"])},[p.createElementVNode("div",Hce,[Se[11]||(Se[11]=p.createElementVNode("span",{class:"select-icon select-analisis-icon"},[p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/report-maker/iconocategorias.png",alt:"icono categorías",style:{width:"18px",height:"18px","object-fit":"contain"}})],-1)),Se[12]||(Se[12]=p.createElementVNode("span",{class:"select-label"}," Tipo de análisis ",-1)),Array.isArray(l.value[Le])&&l.value[Le].length>0?(p.openBlock(),p.createElementBlock("span",Jce,p.toDisplayString(l.value[Le].length),1)):p.createCommentVNode("",!0),p.createElementVNode("span",{class:p.normalizeClass(["arrow",{open:I.value===Le}])},Se[10]||(Se[10]=[p.createElementVNode("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none"},[p.createElementVNode("path",{d:"M3 5L8 10L13 5",stroke:"#AAB4BE","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),2)]),I.value===Le?(p.openBlock(),p.createElementBlock("div",Zce,[p.createElementVNode("div",Kce,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(Fe.options,ge=>(p.openBlock(),p.createElementBlock("div",{key:ge.value,class:p.normalizeClass(["option-card simple-select-option",{active:l.value[Le]===ge.value}]),onMouseenter:Ce=>ve(Le,ge.value),onClick:p.withModifiers(Ce=>Z(Le,ge.value),["stop"])},[p.createElementVNode("div",Qce,[p.createElementVNode("div",$ce,p.toDisplayString(ge.label),1)]),l.value[Le]===ge.value?(p.openBlock(),p.createElementBlock("div",eue,Se[13]||(Se[13]=[p.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[p.createElementVNode("path",{d:"M13.5 4.5L6 12L2.5 8.5",stroke:"#cbee6b","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))):p.createCommentVNode("",!0)],42,Yce))),128))])])):p.createCommentVNode("",!0)],8,Xce)):p.createCommentVNode("",!0),Le===1&&f.value.length>2?(p.openBlock(),p.createElementBlock("div",tue)):p.createCommentVNode("",!0)],64))),128))],2)):p.createCommentVNode("",!0),p.createElementVNode("button",{class:"close-btn",onClick:de},"✕")]))}}),nue=zd(rue,[["__scopeId","data-v-a3ae9bf8"]]),aue={key:0,class:"modal-simple"},iue={class:"modal-simple__content"},oue={class:"modal-simple__content__header"},sue={class:"modal-simple__content__body"},lue={class:"modal-simple__content__footer"},cue={__name:"ModalSimple",props:{modelValue:{type:Boolean,default:!1}},setup(r){return(i,y)=>(p.openBlock(),p.createBlock(p.Teleport,{to:"body"},[r.modelValue?(p.openBlock(),p.createElementBlock("div",aue,[p.createElementVNode("div",iue,[p.createElementVNode("div",oue,[p.renderSlot(i.$slots,"header",{},void 0,!0)]),p.createElementVNode("div",sue,[p.renderSlot(i.$slots,"body",{},void 0,!0)]),p.createElementVNode("div",lue,[p.renderSlot(i.$slots,"footer",{},void 0,!0)])])])):p.createCommentVNode("",!0)]))}},uue=zd(cue,[["__scopeId","data-v-1cc4f590"]]),due={class:"footer"},hue={__name:"ModalCautionClose",props:{value:{type:Boolean,default:!1}},emits:["update:modelValue","action"],setup(r,{emit:i}){const y=i;function F(L){y("update:modelValue",L)}function K(L){y("action",L),y("update:modelValue",!1)}return(L,w)=>(p.openBlock(),p.createBlock(uue,{"modle-value":r.value,"onUpdate:modelValue":F},{header:p.withCtx(()=>w[2]||(w[2]=[p.createElementVNode("div",{class:"header"},"Descartar template",-1)])),body:p.withCtx(()=>w[3]||(w[3]=[p.createElementVNode("div",{class:"body"},"¿Estás seguro que deseas abandonar el proceso?",-1)])),footer:p.withCtx(()=>[p.createElementVNode("div",due,[p.createElementVNode("div",{role:"button",class:"btn btn-cancel",onClick:w[0]||(w[0]=t=>K(!1))}," Seguir editando "),p.createElementVNode("div",{role:"button",class:"btn btn-confirm",onClick:w[1]||(w[1]=t=>K(!0))}," Descartar ")])]),_:1},8,["modle-value"]))}},pue=zd(hue,[["__scopeId","data-v-ed9b5088"]]),fue={class:"template-maker__header"},mue={key:0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gue={class:"template-maker__content"},yue={class:"template-maker__content__main"},vue={id:"containerMain",class:"container-main"},bue={class:"template-maker__content__main__cover-selector"},xue=["id"],_ue={class:"page-indicator"},wue={class:"page-indicator__index"},Tue=["onClick"],kue=["onClick"],Sue={key:0,class:"template-maker__content__main__footer"},Eue={class:"template-maker__content__main__footer__paginator"},Cue={class:"template-maker__content__main__footer__paginator__nav"},Aue={class:"template-maker__content__main__footer__paginator__numbers"},Mue=["onClick"],Lue={__name:"GSC-TemplateReportMaker",props:{token:{type:String,default:""}},emits:["close"],setup(r,{expose:i,emit:y}){const F=new Map,K=p.ref([{title:"Page 1",id:String(Date.now()),items:[{name:"Volumetrica",id:`w-${String(Date.now())}`,x:0,y:0,w:4,h:6,maxWidth:4,maxHeight:4,noResize:!1,noMove:!1,componentProps:{}},{name:"Volumetrica",id:String(Date.now()),x:4,y:0,w:4,h:4,maxWidth:4,maxHeight:4,noResize:!1,noMove:!1,componentProps:{}}]}]),L=p.ref(null),w=p.ref(0),t=p.ref(!1),v=p.ref(null),d=p.ref(null),e=p.ref(!0),x=p.ref(!1),m=p.ref(!1),b=p.ref(0),h=p.ref(!1),n=p.ref(null);p.ref(null);const a=p.ref(new Map),u=p.ref(null),s=p.ref(null),l=p.ref(!1),f=p.ref(!1);p.ref({updated_at:"2025-07-11T21:37:27.950Z",main_team:1,visible:!0,user_id:24254,created_at:"2025-07-11T21:35:44.847Z",report_name:"reporte modificado",team_id:1,id:"1adc5b32-24ae-4a26-8304-0369a7308f3f",game:{date:"2025-01-11",visiting_team_goals:12,home_team_name:"Guadalajara",visiting_team_xg:12.614200000000002,has_tracking:1,penalties_score_home_team:0,has_video:1,game_status:1,score:[1,0],date_time_utc:"2025-01-12T01:05:00Z",referee_id:391,video_types:[[1,2],[2,2],[3,2]],live_stats:1,home_team_goals:24,matchday_name:"Matchday 1",draw_probability:18,home_team_probability:72,matchday_abbreviation:"M1",game_id:88138,time_active:{home_te:"32:22",home_ti:"21:11",xta:"00:00",home_ta_average:"00:00",total_ti:"46:02",visiting_te:"21:14",visiting_ta_average:"00:00",total_te:"53:36",visiting_ti:"23:43",referee_ta_average:"-",others:"01:09"},matchday_id:1,minutes:{home_yellow_cards_minutes:["J. Rangel 32'"],away_yellow_cards_minutes:["A. Lozano 81'"],home_goals_minutes:["R. Alvarado 75'"],home_red_cards_minutes:[],away_red_cards_minutes:["A. Lozano 89'"],visiting_goals_minutes:[]},alt_minutes:{home_yellow_cards_minutes:["32'"],away_yellow_cards_minutes:["81'"],home_goals_minutes:["75'"],home_red_cards_minutes:[],away_red_cards_minutes:["89'"],visiting_goals_minutes:[]},tv_stations:[],season_id:1933,home_team_xg:24.784200000000002,visiting_team_name:"Santos Laguna",schedule:"19:05:00",visiting_team_acronym:"SAN",home_team_acronym:"CHI",referee_name:"Quintero Huitron, Daniel",is_live:0,home_games_played:0,visiting_team:14,penalties_score_visiting_team:0,home_team:1,away_games_played:0,visiting_team_probability:10},name:"VALOR 45",template_type:2,pages:[{is_front_page:!0,type:1,template_type:2},{components:[{min_row:1,min_column:1,column:1,max_row:4,filters:[{options:[{value:1,label:"Mi equipo"},{value:2,label:"Rival"},{value:3,label:"Ambos"}],type:"radio-button"}],title:"Hacia donde fueron los pases",url:"https://example.com/grafico.png",colspan:3,rowspan:2,name:"Volumétrica",show_extra_teams_logos:!0,id:5,row:1,allowed_templates_types:[1,2],max_column:4},{min_row:1,min_column:1,column:1,max_row:4,filters:[{options:[{value:1,label:"Ultimo juego"},{value:2,label:"2"},{value:3,label:"3"}],type:"radio-button",label:"Juegos"}],title:"Alineaciones iniciales",url:"https://example.com/grafico.png",colspan:3,rowspan:2,name:"Alineaciones iniciales",show_extra_teams_logos:!0,id:6,row:1,allowed_templates_types:[1,2],max_column:4},{min_row:1,min_column:1,column:1,max_row:4,filters:[{options:[{value:!0,label:"Si"},{value:!1,label:"No"}],type:"radio-button",label:"Ver tiempo inactivo"}],title:"Posesión de balón",url:"https://example.com/grafico.png",colspan:3,rowspan:2,name:"Posesión de balón",show_extra_teams_logos:!1,id:8,row:1,allowed_templates_types:[1,2],max_column:4}],columns:12,gap:10,name:"Pag 01",width:968,rows:12,height:702}]});const g=p.computed(()=>({"--overflow-y-template-maker":x.value?"scroll":"hidden","--height-container-main":x.value?"fit-content":"calc(100vh - 64px)","--margin-bottom-container-main":(x.value,"0")}));p.watch(()=>t.value,ie=>{const me=document.getElementById("app");ie?(w.value=0,document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",me&&(me.style.overflow="hidden")):(document.body.style.overflow="",document.documentElement.style.overflow="",me&&(me.style.overflow=""))});function k(ie){return ie<10?`0${ie}`:ie}async function E({templateId:ie,userId:me}){try{return(await(await fetch(`https://m9qip57rsh.execute-api.us-east-2.amazonaws.com/prod/users/${me}/templates/${ie}`,{method:"GET",headers:{Authorization:q.token}})).json()).data}catch(ve){console.error("Error fetching template by ID:",ve)}}async function S({reportId:ie,userId:me}){try{return(await(await fetch(`https://m9qip57rsh.execute-api.us-east-2.amazonaws.com/prod/users/${me}/reports/${ie}`,{method:"GET",headers:{Authorization:q.token}})).json()).data}catch(ve){console.error("Error fetching report by ID:",ve)}}let M=0;function N(ie){L.value=ie,M>0&&(l.value=!0),M++}function C(ie){ie&&H(null,!0)}let P=null;function A(ie,me){let ve=ie.getBoundingClientRect(),ye={height:ie.clientHeight,width:ie.clientWidth},we=me.getBoundingClientRect();if(!(we.top>=ve.top&&we.bottom<=ve.top+ye.height)){const Me=we.top-ve.top,Ae=we.bottom-ve.bottom;Math.abs(Me)<Math.abs(Ae)?ie.scrollTop+=Me:ie.scrollTop+=Ae}}function T(ie,me=!1){const ve={title:`Page ${K.value.length+1}`,id:`p-${Date.now()}`,items:[]};if(ce(),ie!==void 0&&ie>=-1?K.value.splice(ie+1,0,ve):K.value.push(ve),p.nextTick(()=>{const ye=K.value.findIndex(Me=>Me.id===ve.id),we=document.getElementById(`page-${ye+1}`);P||(P=document.getElementById("containerMain")),we&&P?A(P,we):console.error("Page element or container main element not found")}),me)return ve;l.value=!0}function O(ie){if(ie<-1||ie>=K.value.length+1)return;const me=document.getElementById(`page-${ie}`);P||(P=document.getElementById("containerMain")),me&&P&&A(P,me)}function _(ie){u.value=ie,h.value=!0}function R(ie,me){const ve=me+1;ie&&w.value!==ve&&(w.value=ve)}function I(ie){h.value=!0,li.emit("edit-view",{view:ie})}async function V({templateReportId:ie,userId:me,isTemplateMode:ve}){try{return ve?E({templateId:ie,userId:me}):S({reportId:ie,userId:me})}catch(ye){throw new Error("Error fetching template or report by ID: "+ye.message)}}async function j(ie){if(console.log("show, initialConfig",ie),h.value=!1,M=0,a.value.clear(),e.value=ie.isTemplateMode,console.log("****************************************** isTemplateMode.value",e.value),x.value=!!ie.isPDFMode,ie.isPDFMode?v.value=await S({reportId:ie.reportId,userId:ie.userId}):(v.value=ie.template,v.value=await V({templateReportId:ie.template.id,userId:ie.template.user_id,isTemplateMode:ie.isTemplateMode})),!v.value)return;v.value&&v.value.game&&(v.value.game=ne(v.value.game)),console.log("templateToEdit.value",v.value),d.value=JSON.parse(JSON.stringify(v.value)),m.value=v.value.template_type===2;const me=v.value.pages.find(ve=>ve.is_front_page);b.value=me?me.type:1,t.value=!0,K.value=v.value.pages.reduce((ve,ye,we)=>{if(!ye.is_front_page){ye.name||(ye.name="");const Me={originalPage:JSON.parse(JSON.stringify(ye)),title:ye.name,id:`p-${Date.now()-we*9}`,items:[],components:ye.components};ye.components&&ye.components.length>0&&(Me.items=ye.components.map((Ae,Pe)=>{const Ne=new ay(`FAWC-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,[],Ae.coreView.id,Ae.dynamicFilters,m.value,e.value,Ae.filtersJSON||null,q.token),Ie={originalComponent:JSON.parse(JSON.stringify(Ae)),title:Ae.title,game:v.value.game,idAux:Ae.id,id:`w-${Date.now()-Pe*7}`,x:Ae.column,y:Ae.row,w:Ae.colspan,h:Ae.rowspan,maxWidth:Ae.max_column,maxHeight:Ae.max_row,minWidth:Ae.min_column,minHeight:Ae.min_row,noResize:!e.value,noMove:!e.value,coreView:Ae.coreView||null,isTemplateMode:e.value,componentName:Ae.componentName,componentProps:G({currentProps:Ae.componentProps,coreView:Ae.coreView,isTemplateMode:e.value,game:v.value.game||null})||{},filterMultiple:Ae.filterMultiple,isHomeTeam:Ae.isHomeTeam||Ae.componentProps.isHomeTeamForAnalysis,filtersJSON:Ae.filtersJSON||null,dynamicFilters:Ae.dynamicFilters||[],filterAndViewsContainer:Ne},ze=p.reactive({view:Ie});return Ne.addView(ze,!0),a.value.set(Ne.getId(),Ne),Ie})),ve.push(Me)}return ve},[]),console.log("pages.value",K.value),console.log("isvisible.value",t.value)}function G({currentProps:ie,coreView:me,isTemplateMode:ve,game:ye}){if(!ie||!me)return ie||{};const we={...ie};return me.id===5&&(we.isGhostEffect=ve),me.id===1&&(we.gameId=ye?ye.id:"",we.homeLogo=ye?ye.homeTeam.logo:"",we.awayLogo=ye?ye.awayTeam.logo:"",we.seasonId=ye?ye.season_id:0,we.default=ve),me.id===6&&(we.game=ye||""),me.id===2&&(we.gamed=ye?ye.id:"",we.game=ye||"",we.season=ye?ye.season_id:0,we.useDummyData=ve),ye&&(we.game=ye),we}const q=r,Y=y;p.watch(()=>q.token,(ie,me)=>{console.log("Token changed:",{newToken:ie,oldToken:me})},{immediate:!0}),i({show:j}),li.on("add-page-view",ie=>{F.set(ie.view.id,ie.view);const me=K.value.find(ve=>ve.id===ie.pageId);me&&(me.items||(me.items=[]),me.items.push(ie.view),p.nextTick(()=>{const ve=document.querySelector(`[gs-id="${ie.view.id}"]`);ie.grid.makeWidget(ve)}))}),li.on("add-page-and-view",ie=>{const me=K.value.findIndex(ve=>ve.id===ie.pageId);if(me>-1){const ve=T(me,!0);setTimeout(()=>{li.emit("add-view",{pageId:ve.id,view:ie.view,filterAndWidgetContainer:ie.filterAndWidgetContainer}),s.value&&(ve.stepBackPage=s.value),s.value=ve},500)}else console.error("Page not found for adding view:",ie.pageId)}),li.on("empty-page",ie=>{he(ie),s.value&&s.value.id===ie.id&&(s.value.stepBackPage?s.value=s.value.stepBackPage:s.value=null)});function ne(ie){return{...ie,gameId:ie.game_id,id:ie.game_id,seasonId:ie.season_id,status:ie.game_status,homeTeam:{logo:`https://golstatsimages.blob.core.windows.net/teams-150/${ie.home_team}.png`,team_id:ie.home_team,provisional_logo:`https://golstatsimages.blob.core.windows.net/teams-provisional/${ie.home_team}.png`,colloquial_name:ie.home_team_name,acronym:ie.home_team_acronym,team_name:ie.home_team_name},awayTeam:{logo:`https://golstatsimages.blob.core.windows.net/teams-150/${ie.visiting_team}.png`,team_id:ie.visiting_team,provisional_logo:`https://golstatsimages.blob.core.windows.net/teams-provisional/${ie.visiting_team}.png`,colloquial_name:ie.visiting_team_name,acronym:ie.visiting_team_acronym,team_name:ie.visiting_team_name}}}function H(ie,me=!1){me||!e.value?(t.value=!1,Y("close")):l.value?f.value=!0:(t.value=!1,Y("close"))}function re(){n.value=null,h.value=!1}function te({page:ie,view:me,applyMinimumSize:ve=!1}){const ye=ie.grid;if(!ie||!me||!ye)return null;const we=ve?{w:me.min_column,h:me.min_row}:{w:me.colspan,h:me.rowspan},Me=ye.willItFit(0,0,we.w,we.h,!0);return Me?{willFit:Me,applyMinimumSize:ve}:ve?null:te({page:ie,view:me,applyMinimumSize:!0})}const Z=new Set([9]);function ee(ie){var me,ve,ye,we,Me,Ae,Pe;if(console.log("onFiltersChanged",ie),ie.dynamicFilters&&ie.dynamicFilters.length>0&&ie.viewToEdit&&ie.viewToEdit.view){const Ne=ie.viewToEdit.view.id;K.value.forEach(Ie=>{Ie.items.forEach(ze=>{ze.id===Ne&&ze.coreView&&ze.coreView.id===3&&(ze.componentProps.desplegable=ie.dynamicFilters[0]||!1,ze.componentProps.key=ie.dynamicFilters[0]||!1,p.nextTick(()=>{li.emit("force-component-update",{itemId:ze.id,componentProps:ze.componentProps})}))})})}if(ie.viewToEdit){if(!ie.viewToEdit.view.filterAndViewsContainer){const Ne=new ay(`FAWC-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,[ie.viewToEdit.view],((me=ie.viewToEdit.view.coreView)==null?void 0:me.id)||ie.viewToEdit.view.id,ie.dynamicFilters||[],m.value,e.value,ie.filtersJSON,q.token);ie.viewToEdit.view.filterAndViewsContainer=Ne}ie.viewToEdit.view.filterAndViewsContainer.updateView({view:ie.viewToEdit,dynamicFilters:ie.dynamicFilters||[],filtersJSON:ie.filtersJSON||null}),l.value=!0}else if(ie.view){ie.view.id&&Z.has(ie.view.id)&&ie.dynamicFilters[0]&&ie.dynamicFilters[0].length===0&&ie.filterAndViewsContainer&&(ie.filterAndViewsContainer.updateDynamicFilters(ie.dynamicFilters,(ye=(ve=ie.viewToEdit)==null?void 0:ve.view)==null?void 0:ye.id),l.value=!0);const Ne=s.value||u.value,Ie=te({page:Ne,view:ie.view,applyMinimumSize:!1});ie.view.filtersJSON=ie.filtersJSON||null;const ze=ie.filterAndViewsContainer,Se=K.value.findIndex(Fe=>Fe.id===Ne.id);if(ze)ie.filterAndViewsContainer.getRequiresAddView(ie.dynamicFilters)?(ze.setDynamicFilters(ie.dynamicFilters),(Ie||Se===K.value.length-1)&&(li.emit("add-view",{pageId:Ne.id,view:ie.view,filterAndWidgetContainer:ze,avoidWillFit:!1,applyMinimumSize:Ie?Ie.applyMinimumSize:!1}),ie.filterAndViewsContainer.updateDynamicFilters(ie.dynamicFilters,(Me=(we=ie.viewToEdit)==null?void 0:we.view)==null?void 0:Me.id),l.value=!0,setTimeout(()=>{ie.filterAndViewsContainer.getRequiresAddView(ie.dynamicFilters)?(console.log("GSCtops - still requires add view, calling recursively"),ee(ie)):console.log("GSCtops - no more views needed, stopping recursion")},1e3))):(ie.filterAndViewsContainer.updateDynamicFilters(ie.dynamicFilters,(Pe=(Ae=ie.viewToEdit)==null?void 0:Ae.view)==null?void 0:Pe.id),l.value=!0);else if(Ie||Se===K.value.length-1){const Fe=new ay(`FAWC-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,[],ie.view.id,ie.dynamicFilters,m.value,e.value,ie.filtersJSON,q.token);li.emit("set-filter-and-views-container",Fe),a.value.set(Fe.getId(),Fe),ie.dynamicFilters&&Array.isArray(ie.dynamicFilters[0])?(ie.filterAndViewsContainer=Fe,ee(ie)):li.emit("add-view",{pageId:Ne.id,view:ie.view,filterAndWidgetContainer:Fe,avoidWillFit:!1,applyMinimumSize:Ie?Ie.applyMinimumSize:!1}),l.value=!0}}}async function le(){if(l.value)try{const ie=[{is_front_page:!0,template_type:L.value.isPostMatch?2:1,type:L.value.id},...K.value.map(ve=>({columns:ve.originalPage?ve.originalPage.columns:12,rows:ve.originalPage?ve.originalPage.rows:12,gap:ve.originalPage?ve.originalPage.gap:10,name:ve.title,width:ve.originalPage?ve.originalPage.width:968,height:ve.originalPage?ve.originalPage.height:702,components:ve.items.map(ye=>({min_column:ye.minWidth,min_row:ye.minHeight,max_column:ye.maxWidth,max_row:ye.maxHeight,column:ye.x,row:ye.y,colspan:ye.w,rowspan:ye.h,name:ye.name,title:ye.title,dynamicFilters:ye.filterAndViewsContainer.getComponentDynamicFilters(ye.id)||ye.filterAndViewsContainer.getDynamicFilters()||[],coreView:ye.coreView||null,componentName:ye.componentName,componentProps:ye.componentProps||{},isHomeTeam:ye.isHomeTeam||ye.componentProps.isHomeTeamForAnalysis,filterMultiple:ye.filterMultiple}))}))];console.log("pagesAux",ie);const me=await(await fetch(`https://m9qip57rsh.execute-api.us-east-2.amazonaws.com/prod/users/${v.value.user_id}/templates/${v.value.id}/pages`,{method:"PATCH",headers:{Authorization:q.token},body:JSON.stringify({pages:ie})})).json();l.value=!1}catch(ie){console.error("Error saving template:",ie)}}function ce(){K.value.forEach(ie=>{ie.offListeners&&ie.offListeners()})}function he(ie){const me=K.value.findIndex(ve=>ve.id===ie.id);me>-1&&(ce(),K.value=K.value.filter(ve=>ve.id!==ie.id),w.value>=me&&(w.value=Math.max(0,w.value-1)),l.value=!0)}function fe(){l.value=!0}function se(ie){const me=K.value.find(ve=>ve.items.some(ye=>ye.id===ie.id));if(me){const ve=me.items.findIndex(ye=>ye.id===ie.id);ve!==-1&&(me.items.splice(ve,1),l.value=!0)}}function de(ie){console.log("onChangeSort",ie)}return(ie,me)=>(p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createVNode(pue,{modelValue:f.value,"onUpdate:modelValue":me[0]||(me[0]=ve=>f.value=ve),onAction:C},null,8,["modelValue"]),(p.openBlock(),p.createBlock(p.Teleport,{to:"body"},[t.value&&v.value?(p.openBlock(),p.createElementBlock("div",{key:0,class:"template-maker",style:p.normalizeStyle(g.value)},[p.withDirectives(p.createVNode(nue,{token:r.token,view:n.value,"is-post-match":m.value,onClose:re,onFiltersChanged:ee},null,8,["token","view","is-post-match"]),[[p.vShow,e.value&&h.value]]),p.createElementVNode("div",fue,[p.createTextVNode(p.toDisplayString(v.value?v.value.name:"Nuevo template")+" ",1),p.createElementVNode("div",{class:"template-maker__header__close",onClick:H},[x.value?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("svg",mue,me[6]||(me[6]=[p.createElementVNode("path",{d:"M1.33398 1.33398L14.6673 14.6673",stroke:"#FFFFFF","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),p.createElementVNode("path",{d:"M14.666 1.33398L1.33268 14.6673",stroke:"#FFFFFF","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))])]),p.createElementVNode("div",gue,[me[14]||(me[14]=p.createElementVNode("div",{class:"template-maker__content__sidebar"},null,-1)),p.createElementVNode("div",yue,[p.createElementVNode("div",vue,[p.createElementVNode("div",bue,[p.withDirectives(p.createVNode(KT,{"is-post-match":m.value,"initial-cover-id":b.value,onSelectCover:N},null,8,["is-post-match","initial-cover-id"]),[[p.vShow,e.value]])]),(p.openBlock(),p.createElementBlock("div",{class:"template-maker__content__main__pages",key:K.value.length},[L.value?(p.openBlock(),p.createBlock(ece,{key:0,id:"page-0",game:v.value.game||null,"cover-id":L.value.id,"is-post-match":L.value.isPostMatch,onIntersectionChanged:me[1]||(me[1]=ve=>R(ve,-1))},null,8,["game","cover-id","is-post-match"])):p.createCommentVNode("",!0),e.value?(p.openBlock(),p.createElementBlock("div",{key:1,class:"new-items-buttons",style:p.normalizeStyle({"margin-bottom":K.value.length===0?"30px":"0"})},[h.value?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("div",{key:0,class:"new-items-buttons__add-page new-item-button",onClick:me[2]||(me[2]=ve=>T(-1))},me[7]||(me[7]=[p.createElementVNode("div",null,"+ Nueva página",-1),p.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("path",{d:"M8.66797 1.33203H4.0013C3.64768 1.33203 3.30854 1.47251 3.05849 1.72256C2.80844 1.9726 2.66797 2.31174 2.66797 2.66536V13.332C2.66797 13.6857 2.80844 14.0248 3.05849 14.2748C3.30854 14.5249 3.64768 14.6654 4.0013 14.6654H12.0013C12.3549 14.6654 12.6941 14.5249 12.9441 14.2748C13.1942 14.0248 13.3346 13.6857 13.3346 13.332V5.9987L8.66797 1.33203Z",stroke:"white","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"}),p.createElementVNode("path",{d:"M8.66797 1.33203V5.9987H13.3346",stroke:"white","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])))],4)):p.createCommentVNode("",!0),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(K.value,(ve,ye)=>(p.openBlock(),p.createElementBlock("div",{key:ye,id:`page-${ye+1}`,class:"template-maker__content__main__pages__page"},[p.createElementVNode("div",_ue,[p.createElementVNode("div",wue,"Pag "+p.toDisplayString(k(ye+2)),1)]),L.value?(p.openBlock(),p.createBlock(hle,{key:0,page:ve,"is-template-mode":e.value,"is-post-match":L.value.isPostMatch,game:v.value.game||null,lastGames:v.value.lastGames||[],"is-filter-visible":h.value,onEditView:I,onIntersectionChanged:we=>R(we,ye),onChangeSort:de,onDeletePage:he,onViewChanged:fe,onDeleteView:se},null,8,["page","is-template-mode","is-post-match","game","lastGames","is-filter-visible","onIntersectionChanged"])):p.createCommentVNode("",!0),e.value&&!h.value?(p.openBlock(),p.createElementBlock("div",{key:1,class:"new-items-buttons",style:p.normalizeStyle({"margin-bottom":ye+1===K.value.length?"30px":"0","margin-top":"10px"})},[p.createElementVNode("div",{class:"new-items-buttons__add-page new-item-button",onClick:we=>T(ye)},me[8]||(me[8]=[p.createElementVNode("div",null,"+ Nueva página",-1),p.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("path",{d:"M8.66797 1.33203H4.0013C3.64768 1.33203 3.30854 1.47251 3.05849 1.72256C2.80844 1.9726 2.66797 2.31174 2.66797 2.66536V13.332C2.66797 13.6857 2.80844 14.0248 3.05849 14.2748C3.30854 14.5249 3.64768 14.6654 4.0013 14.6654H12.0013C12.3549 14.6654 12.6941 14.5249 12.9441 14.2748C13.1942 14.0248 13.3346 13.6857 13.3346 13.332V5.9987L8.66797 1.33203Z",stroke:"white","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"}),p.createElementVNode("path",{d:"M8.66797 1.33203V5.9987H13.3346",stroke:"white","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),8,Tue),p.createElementVNode("div",{class:"new-items-buttons__add-item new-item-button",onClick:we=>_(ve)},me[9]||(me[9]=[p.createElementVNode("div",null,"+ Agregar gráfico",-1),p.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("path",{d:"M12 13.3346V6.66797",stroke:"white","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"}),p.createElementVNode("path",{d:"M8 13.3346V2.66797",stroke:"white","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"}),p.createElementVNode("path",{d:"M4 13.332V9.33203",stroke:"white","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),8,kue)],4)):p.createCommentVNode("",!0)],8,xue))),128))]))]),x.value?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("div",Sue,[p.createElementVNode("div",Eue,[p.createElementVNode("div",Cue,[me[12]||(me[12]=p.createElementVNode("div",null,"Páginas",-1)),p.createElementVNode("div",{class:"template-maker__content__main__footer__paginator__nav__arrow",onClick:me[3]||(me[3]=ve=>O(w.value-1))},me[10]||(me[10]=[p.createElementVNode("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.22444 5L5.29079 8.57741C5.56974 8.90285 5.56974 9.43049 5.29079 9.75592C5.01184 10.0814 4.55958 10.0814 4.28064 9.75592L0.709209 5.58926C0.430263 5.26382 0.430263 4.73618 0.709209 4.41074L4.28064 0.244078C4.55958 -0.0813593 5.01184 -0.0813592 5.29079 0.244078C5.56974 0.569515 5.56974 1.09715 5.29079 1.42259L2.22444 5Z",fill:"#92929D"})],-1)])),p.createElementVNode("div",{class:"template-maker__content__main__footer__paginator__nav__arrow",onClick:me[4]||(me[4]=ve=>O(w.value+1))},me[11]||(me[11]=[p.createElementVNode("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.77556 5L0.70921 8.57741C0.430264 8.90285 0.430264 9.43049 0.70921 9.75592C0.988156 10.0814 1.44042 10.0814 1.71936 9.75592L5.29079 5.58926C5.56974 5.26382 5.56974 4.73618 5.29079 4.41074L1.71936 0.244078C1.44042 -0.0813593 0.988155 -0.0813592 0.709209 0.244078C0.430264 0.569515 0.430264 1.09715 0.70921 1.42259L3.77556 5Z",fill:"#92929D"})],-1)]))]),p.createElementVNode("div",Aue,[p.createElementVNode("div",{role:"button",class:p.normalizeClass({active:w.value===0}),onClick:me[5]||(me[5]=ve=>O(0))},p.toDisplayString(k(1)),3),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(K.value,(ve,ye)=>(p.openBlock(),p.createElementBlock("div",{role:"button",key:ye,class:p.normalizeClass({active:ye+1===w.value}),onClick:we=>O(ye+1)},p.toDisplayString(k(ye+2)),11,Mue))),128))])]),e.value?(p.openBlock(),p.createElementBlock("div",{key:0,role:"button",class:p.normalizeClass(["template-maker__content__main__footer__save save-button",{disabled:!l.value}]),onClick:le},me[13]||(me[13]=[p.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("path",{d:"M12.6667 14H3.33333C2.97971 14 2.64057 13.8595 2.39052 13.6095C2.14048 13.3594 2 13.0203 2 12.6667V3.33333C2 2.97971 2.14048 2.64057 2.39052 2.39052C2.64057 2.14048 2.97971 2 3.33333 2H10.6667L14 5.33333V12.6667C14 13.0203 13.8595 13.3594 13.6095 13.6095C13.3594 13.8595 13.0203 14 12.6667 14Z",stroke:"white","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"}),p.createElementVNode("path",{d:"M11.3346 14.0013V8.66797H4.66797V14.0013",stroke:"white","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"}),p.createElementVNode("path",{d:"M4.66797 2V5.33333H10.0013",stroke:"white","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"})],-1),p.createElementVNode("div",null,"Guardar",-1)]),2)):p.createCommentVNode("",!0)]))])])],4)):p.createCommentVNode("",!0)]))],64))}},Pue=zd(Lue,[["__scopeId","data-v-526ec44f"]]);function R6(r,i){return function(){return r.apply(i,arguments)}}const{toString:Nue}=Object.prototype,{getPrototypeOf:X2}=Object,{iterator:iy,toStringTag:z6}=Symbol,oy=(r=>i=>{const y=Nue.call(i);return r[y]||(r[y]=y.slice(8,-1).toLowerCase())})(Object.create(null)),ed=r=>(r=r.toLowerCase(),i=>oy(i)===r),sy=r=>i=>typeof i===r,{isArray:jp}=Array,am=sy("undefined");function im(r){return r!==null&&!am(r)&&r.constructor!==null&&!am(r.constructor)&&fu(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const D6=ed("ArrayBuffer");function Oue(r){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(r):i=r&&r.buffer&&D6(r.buffer),i}const Rue=sy("string"),fu=sy("function"),I6=sy("number"),om=r=>r!==null&&typeof r=="object",zue=r=>r===!0||r===!1,ly=r=>{if(oy(r)!=="object")return!1;const i=X2(r);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(z6 in r)&&!(iy in r)},Due=r=>{if(!om(r)||im(r))return!1;try{return Object.keys(r).length===0&&Object.getPrototypeOf(r)===Object.prototype}catch{return!1}},Iue=ed("Date"),Fue=ed("File"),Bue=ed("Blob"),Vue=ed("FileList"),Uue=r=>om(r)&&fu(r.pipe),jue=r=>{let i;return r&&(typeof FormData=="function"&&r instanceof FormData||fu(r.append)&&((i=oy(r))==="formdata"||i==="object"&&fu(r.toString)&&r.toString()==="[object FormData]"))},que=ed("URLSearchParams"),[Wue,Gue,Xue,Hue]=["ReadableStream","Request","Response","Headers"].map(ed),Jue=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function sm(r,i,{allOwnKeys:y=!1}={}){if(r===null||typeof r>"u")return;let F,K;if(typeof r!="object"&&(r=[r]),jp(r))for(F=0,K=r.length;F<K;F++)i.call(null,r[F],F,r);else{if(im(r))return;const L=y?Object.getOwnPropertyNames(r):Object.keys(r),w=L.length;let t;for(F=0;F<w;F++)t=L[F],i.call(null,r[t],t,r)}}function F6(r,i){if(im(r))return null;i=i.toLowerCase();const y=Object.keys(r);let F=y.length,K;for(;F-- >0;)if(K=y[F],i===K.toLowerCase())return K;return null}const Kh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,B6=r=>!am(r)&&r!==Kh;function H2(){const{caseless:r}=B6(this)&&this||{},i={},y=(F,K)=>{const L=r&&F6(i,K)||K;ly(i[L])&&ly(F)?i[L]=H2(i[L],F):ly(F)?i[L]=H2({},F):jp(F)?i[L]=F.slice():i[L]=F};for(let F=0,K=arguments.length;F<K;F++)arguments[F]&&sm(arguments[F],y);return i}const Zue=(r,i,y,{allOwnKeys:F}={})=>(sm(i,(K,L)=>{y&&fu(K)?r[L]=R6(K,y):r[L]=K},{allOwnKeys:F}),r),Kue=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),Yue=(r,i,y,F)=>{r.prototype=Object.create(i.prototype,F),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:i.prototype}),y&&Object.assign(r.prototype,y)},Que=(r,i,y,F)=>{let K,L,w;const t={};if(i=i||{},r==null)return i;do{for(K=Object.getOwnPropertyNames(r),L=K.length;L-- >0;)w=K[L],(!F||F(w,r,i))&&!t[w]&&(i[w]=r[w],t[w]=!0);r=y!==!1&&X2(r)}while(r&&(!y||y(r,i))&&r!==Object.prototype);return i},$ue=(r,i,y)=>{r=String(r),(y===void 0||y>r.length)&&(y=r.length),y-=i.length;const F=r.indexOf(i,y);return F!==-1&&F===y},ede=r=>{if(!r)return null;if(jp(r))return r;let i=r.length;if(!I6(i))return null;const y=new Array(i);for(;i-- >0;)y[i]=r[i];return y},tde=(r=>i=>r&&i instanceof r)(typeof Uint8Array<"u"&&X2(Uint8Array)),rde=(r,i)=>{const F=(r&&r[iy]).call(r);let K;for(;(K=F.next())&&!K.done;){const L=K.value;i.call(r,L[0],L[1])}},nde=(r,i)=>{let y;const F=[];for(;(y=r.exec(i))!==null;)F.push(y);return F},ade=ed("HTMLFormElement"),ide=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(y,F,K){return F.toUpperCase()+K}),V6=(({hasOwnProperty:r})=>(i,y)=>r.call(i,y))(Object.prototype),ode=ed("RegExp"),U6=(r,i)=>{const y=Object.getOwnPropertyDescriptors(r),F={};sm(y,(K,L)=>{let w;(w=i(K,L,r))!==!1&&(F[L]=w||K)}),Object.defineProperties(r,F)},sde=r=>{U6(r,(i,y)=>{if(fu(r)&&["arguments","caller","callee"].indexOf(y)!==-1)return!1;const F=r[y];if(fu(F)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+y+"'")})}})},lde=(r,i)=>{const y={},F=K=>{K.forEach(L=>{y[L]=!0})};return jp(r)?F(r):F(String(r).split(i)),y},cde=()=>{},ude=(r,i)=>r!=null&&Number.isFinite(r=+r)?r:i;function dde(r){return!!(r&&fu(r.append)&&r[z6]==="FormData"&&r[iy])}const hde=r=>{const i=new Array(10),y=(F,K)=>{if(om(F)){if(i.indexOf(F)>=0)return;if(im(F))return F;if(!("toJSON"in F)){i[K]=F;const L=jp(F)?[]:{};return sm(F,(w,t)=>{const v=y(w,K+1);!am(v)&&(L[t]=v)}),i[K]=void 0,L}}return F};return y(r,0)},pde=ed("AsyncFunction"),fde=r=>r&&(om(r)||fu(r))&&fu(r.then)&&fu(r.catch),j6=((r,i)=>r?setImmediate:i?((y,F)=>(Kh.addEventListener("message",({source:K,data:L})=>{K===Kh&&L===y&&F.length&&F.shift()()},!1),K=>{F.push(K),Kh.postMessage(y,"*")}))(`axios@${Math.random()}`,[]):y=>setTimeout(y))(typeof setImmediate=="function",fu(Kh.postMessage)),mde=typeof queueMicrotask<"u"?queueMicrotask.bind(Kh):typeof process<"u"&&process.nextTick||j6,Xn={isArray:jp,isArrayBuffer:D6,isBuffer:im,isFormData:jue,isArrayBufferView:Oue,isString:Rue,isNumber:I6,isBoolean:zue,isObject:om,isPlainObject:ly,isEmptyObject:Due,isReadableStream:Wue,isRequest:Gue,isResponse:Xue,isHeaders:Hue,isUndefined:am,isDate:Iue,isFile:Fue,isBlob:Bue,isRegExp:ode,isFunction:fu,isStream:Uue,isURLSearchParams:que,isTypedArray:tde,isFileList:Vue,forEach:sm,merge:H2,extend:Zue,trim:Jue,stripBOM:Kue,inherits:Yue,toFlatObject:Que,kindOf:oy,kindOfTest:ed,endsWith:$ue,toArray:ede,forEachEntry:rde,matchAll:nde,isHTMLForm:ade,hasOwnProperty:V6,hasOwnProp:V6,reduceDescriptors:U6,freezeMethods:sde,toObjectSet:lde,toCamelCase:ide,noop:cde,toFiniteNumber:ude,findKey:F6,global:Kh,isContextDefined:B6,isSpecCompliantForm:dde,toJSONObject:hde,isAsyncFn:pde,isThenable:fde,setImmediate:j6,asap:mde,isIterable:r=>r!=null&&fu(r[iy])};function vi(r,i,y,F,K){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",i&&(this.code=i),y&&(this.config=y),F&&(this.request=F),K&&(this.response=K,this.status=K.status?K.status:null)}Xn.inherits(vi,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Xn.toJSONObject(this.config),code:this.code,status:this.status}}});const q6=vi.prototype,W6={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{W6[r]={value:r}}),Object.defineProperties(vi,W6),Object.defineProperty(q6,"isAxiosError",{value:!0}),vi.from=(r,i,y,F,K,L)=>{const w=Object.create(q6);return Xn.toFlatObject(r,w,function(v){return v!==Error.prototype},t=>t!=="isAxiosError"),vi.call(w,r.message,i,y,F,K),w.cause=r,w.name=r.name,L&&Object.assign(w,L),w};const gde=null;function J2(r){return Xn.isPlainObject(r)||Xn.isArray(r)}function G6(r){return Xn.endsWith(r,"[]")?r.slice(0,-2):r}function X6(r,i,y){return r?r.concat(i).map(function(K,L){return K=G6(K),!y&&L?"["+K+"]":K}).join(y?".":""):i}function yde(r){return Xn.isArray(r)&&!r.some(J2)}const vde=Xn.toFlatObject(Xn,{},null,function(i){return/^is[A-Z]/.test(i)});function cy(r,i,y){if(!Xn.isObject(r))throw new TypeError("target must be an object");i=i||new FormData,y=Xn.toFlatObject(y,{metaTokens:!0,dots:!1,indexes:!1},!1,function(n,a){return!Xn.isUndefined(a[n])});const F=y.metaTokens,K=y.visitor||e,L=y.dots,w=y.indexes,v=(y.Blob||typeof Blob<"u"&&Blob)&&Xn.isSpecCompliantForm(i);if(!Xn.isFunction(K))throw new TypeError("visitor must be a function");function d(h){if(h===null)return"";if(Xn.isDate(h))return h.toISOString();if(Xn.isBoolean(h))return h.toString();if(!v&&Xn.isBlob(h))throw new vi("Blob is not supported. Use a Buffer instead.");return Xn.isArrayBuffer(h)||Xn.isTypedArray(h)?v&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function e(h,n,a){let u=h;if(h&&!a&&typeof h=="object"){if(Xn.endsWith(n,"{}"))n=F?n:n.slice(0,-2),h=JSON.stringify(h);else if(Xn.isArray(h)&&yde(h)||(Xn.isFileList(h)||Xn.endsWith(n,"[]"))&&(u=Xn.toArray(h)))return n=G6(n),u.forEach(function(l,f){!(Xn.isUndefined(l)||l===null)&&i.append(w===!0?X6([n],f,L):w===null?n:n+"[]",d(l))}),!1}return J2(h)?!0:(i.append(X6(a,n,L),d(h)),!1)}const x=[],m=Object.assign(vde,{defaultVisitor:e,convertValue:d,isVisitable:J2});function b(h,n){if(!Xn.isUndefined(h)){if(x.indexOf(h)!==-1)throw Error("Circular reference detected in "+n.join("."));x.push(h),Xn.forEach(h,function(u,s){(!(Xn.isUndefined(u)||u===null)&&K.call(i,u,Xn.isString(s)?s.trim():s,n,m))===!0&&b(u,n?n.concat(s):[s])}),x.pop()}}if(!Xn.isObject(r))throw new TypeError("data must be an object");return b(r),i}function H6(r){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(F){return i[F]})}function Z2(r,i){this._pairs=[],r&&cy(r,this,i)}const J6=Z2.prototype;J6.append=function(i,y){this._pairs.push([i,y])},J6.toString=function(i){const y=i?function(F){return i.call(this,F,H6)}:H6;return this._pairs.map(function(K){return y(K[0])+"="+y(K[1])},"").join("&")};function bde(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Z6(r,i,y){if(!i)return r;const F=y&&y.encode||bde;Xn.isFunction(y)&&(y={serialize:y});const K=y&&y.serialize;let L;if(K?L=K(i,y):L=Xn.isURLSearchParams(i)?i.toString():new Z2(i,y).toString(F),L){const w=r.indexOf("#");w!==-1&&(r=r.slice(0,w)),r+=(r.indexOf("?")===-1?"?":"&")+L}return r}class K6{constructor(){this.handlers=[]}use(i,y,F){return this.handlers.push({fulfilled:i,rejected:y,synchronous:F?F.synchronous:!1,runWhen:F?F.runWhen:null}),this.handlers.length-1}eject(i){this.handlers[i]&&(this.handlers[i]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(i){Xn.forEach(this.handlers,function(F){F!==null&&i(F)})}}const Y6={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xde={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Z2,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},K2=typeof window<"u"&&typeof document<"u",Y2=typeof navigator=="object"&&navigator||void 0,_de=K2&&(!Y2||["ReactNative","NativeScript","NS"].indexOf(Y2.product)<0),wde=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Tde=K2&&window.location.href||"http://localhost",Pc={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:K2,hasStandardBrowserEnv:_de,hasStandardBrowserWebWorkerEnv:wde,navigator:Y2,origin:Tde},Symbol.toStringTag,{value:"Module"})),...xde};function kde(r,i){return cy(r,new Pc.classes.URLSearchParams,{visitor:function(y,F,K,L){return Pc.isNode&&Xn.isBuffer(y)?(this.append(F,y.toString("base64")),!1):L.defaultVisitor.apply(this,arguments)},...i})}function Sde(r){return Xn.matchAll(/\w+|\[(\w*)]/g,r).map(i=>i[0]==="[]"?"":i[1]||i[0])}function Ede(r){const i={},y=Object.keys(r);let F;const K=y.length;let L;for(F=0;F<K;F++)L=y[F],i[L]=r[L];return i}function Q6(r){function i(y,F,K,L){let w=y[L++];if(w==="__proto__")return!0;const t=Number.isFinite(+w),v=L>=y.length;return w=!w&&Xn.isArray(K)?K.length:w,v?(Xn.hasOwnProp(K,w)?K[w]=[K[w],F]:K[w]=F,!t):((!K[w]||!Xn.isObject(K[w]))&&(K[w]=[]),i(y,F,K[w],L)&&Xn.isArray(K[w])&&(K[w]=Ede(K[w])),!t)}if(Xn.isFormData(r)&&Xn.isFunction(r.entries)){const y={};return Xn.forEachEntry(r,(F,K)=>{i(Sde(F),K,y,0)}),y}return null}function Cde(r,i,y){if(Xn.isString(r))try{return(i||JSON.parse)(r),Xn.trim(r)}catch(F){if(F.name!=="SyntaxError")throw F}return(y||JSON.stringify)(r)}const lm={transitional:Y6,adapter:["xhr","http","fetch"],transformRequest:[function(i,y){const F=y.getContentType()||"",K=F.indexOf("application/json")>-1,L=Xn.isObject(i);if(L&&Xn.isHTMLForm(i)&&(i=new FormData(i)),Xn.isFormData(i))return K?JSON.stringify(Q6(i)):i;if(Xn.isArrayBuffer(i)||Xn.isBuffer(i)||Xn.isStream(i)||Xn.isFile(i)||Xn.isBlob(i)||Xn.isReadableStream(i))return i;if(Xn.isArrayBufferView(i))return i.buffer;if(Xn.isURLSearchParams(i))return y.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),i.toString();let t;if(L){if(F.indexOf("application/x-www-form-urlencoded")>-1)return kde(i,this.formSerializer).toString();if((t=Xn.isFileList(i))||F.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return cy(t?{"files[]":i}:i,v&&new v,this.formSerializer)}}return L||K?(y.setContentType("application/json",!1),Cde(i)):i}],transformResponse:[function(i){const y=this.transitional||lm.transitional,F=y&&y.forcedJSONParsing,K=this.responseType==="json";if(Xn.isResponse(i)||Xn.isReadableStream(i))return i;if(i&&Xn.isString(i)&&(F&&!this.responseType||K)){const w=!(y&&y.silentJSONParsing)&&K;try{return JSON.parse(i)}catch(t){if(w)throw t.name==="SyntaxError"?vi.from(t,vi.ERR_BAD_RESPONSE,this,null,this.response):t}}return i}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pc.classes.FormData,Blob:Pc.classes.Blob},validateStatus:function(i){return i>=200&&i<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Xn.forEach(["delete","get","head","post","put","patch"],r=>{lm.headers[r]={}});const Ade=Xn.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Mde=r=>{const i={};let y,F,K;return r&&r.split(`
4081
+ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`)),F}static addGrid(i,y={}){if(!i)return null;let F=i;if(F.gridstack){const K=F.gridstack;return y&&(K.opts={...K.opts,...y}),y.children!==void 0&&K.load(y.children),K}return(!i.classList.contains("grid-stack")||qa.addRemoveCB)&&(qa.addRemoveCB?F=qa.addRemoveCB(i,y,!0,!0):F=In.createDiv(["grid-stack",y.class],i)),qa.init(y,F)}static registerEngine(i){qa.engineClass=i}get placeholder(){if(!this._placeholder){this._placeholder=In.createDiv([this.opts.placeholderClass,Au.itemClass,this.opts.itemClass]);const i=In.createDiv(["placeholder-content"],this._placeholder);this.opts.placeholderText&&(i.textContent=this.opts.placeholderText)}return this._placeholder}constructor(i,y={}){var F;this.el=i,this.opts=y,this.animationDelay=310,this._gsEventHandler={},this._extraDragRow=0,this.dragTransform={xScale:1,yScale:1,xOffset:0,yOffset:0},i.gridstack=this,this.opts=y=y||{},i.classList.contains("grid-stack")||this.el.classList.add("grid-stack"),y.row&&(y.minRow=y.maxRow=y.row,delete y.row);const K=In.toNumber(i.getAttribute("gs-row"));y.column==="auto"&&delete y.column,y.alwaysShowResizeHandle!==void 0&&(y._alwaysShowResizeHandle=y.alwaysShowResizeHandle);const L=y.columnOpts;if(L){const e=L.breakpoints;!L.columnWidth&&!(e!=null&&e.length)?delete y.columnOpts:(L.columnMax=L.columnMax||12,(e==null?void 0:e.length)>1&&e.sort((x,m)=>(m.w||0)-(x.w||0)))}const w={...In.cloneDeep(Au),column:In.toNumber(i.getAttribute("gs-column"))||Au.column,minRow:K||In.toNumber(i.getAttribute("gs-min-row"))||Au.minRow,maxRow:K||In.toNumber(i.getAttribute("gs-max-row"))||Au.maxRow,staticGrid:In.toBool(i.getAttribute("gs-static"))||Au.staticGrid,sizeToContent:In.toBool(i.getAttribute("gs-size-to-content"))||void 0,draggable:{handle:(y.handleClass?"."+y.handleClass:y.handle?y.handle:"")||Au.draggable.handle},removableOptions:{accept:y.itemClass||Au.removableOptions.accept,decline:Au.removableOptions.decline}};i.getAttribute("gs-animate")&&(w.animate=In.toBool(i.getAttribute("gs-animate"))),y=In.defaults(y,w),this._initMargin(),this.checkDynamicColumn(),this._updateColumnVar(y),y.rtl==="auto"&&(y.rtl=i.style.direction==="rtl"),y.rtl&&this.el.classList.add("grid-stack-rtl");const t=this.el.closest("."+Au.itemClass),v=t==null?void 0:t.gridstackNode;if(v&&(v.subGrid=this,this.parentGridNode=v,this.el.classList.add("grid-stack-nested"),v.el.classList.add("grid-stack-sub-grid")),this._isAutoCellHeight=y.cellHeight==="auto",this._isAutoCellHeight||y.cellHeight==="initial")this.cellHeight(void 0);else{typeof y.cellHeight=="number"&&y.cellHeightUnit&&y.cellHeightUnit!==Au.cellHeightUnit&&(y.cellHeight=y.cellHeight+y.cellHeightUnit,delete y.cellHeightUnit);const e=y.cellHeight;delete y.cellHeight,this.cellHeight(e)}y.alwaysShowResizeHandle==="mobile"&&(y.alwaysShowResizeHandle=$u),this._setStaticClass();const d=y.engineClass||qa.engineClass||Fd;if(this.engine=new d({column:this.getColumn(),float:y.float,maxRow:y.maxRow,onChange:e=>{e.forEach(x=>{const m=x.el;m&&(x._removeDOM?(m&&m.remove(),delete x._removeDOM):this._writePosAttr(m,x))}),this._updateContainerHeight()}}),y.auto&&(this.batchUpdate(),this.engine._loading=!0,this.getGridItems().forEach(e=>this._prepareElement(e)),delete this.engine._loading,this.batchUpdate(!1)),y.children){const e=y.children;delete y.children,e.length&&this.load(e)}this.setAnimation(),y.subGridDynamic&&!Za.pauseDrag&&(Za.pauseDrag=!0),((F=y.draggable)==null?void 0:F.pause)!==void 0&&(Za.pauseDrag=y.draggable.pause),this._setupRemoveDrop(),this._setupAcceptWidget(),this._updateResizeEvent()}_updateColumnVar(i=this.opts){this.el.classList.add("gs-"+i.column),typeof i.column=="number"&&this.el.style.setProperty("--gs-column-width",`${100/i.column}%`)}addWidget(i){if(typeof i=="string"){console.error("V11: GridStack.addWidget() does not support string anymore. see #2736");return}if(i.ELEMENT_NODE)return console.error("V11: GridStack.addWidget() does not support HTMLElement anymore. use makeWidget()"),this.makeWidget(i);let y,F=i;if(F.grid=this,F!=null&&F.el?y=F.el:qa.addRemoveCB?y=qa.addRemoveCB(this.el,i,!0,!1):y=this.createWidgetDivs(F),!y)return;if(F=y.gridstackNode,F&&y.parentElement===this.el&&this.engine.nodes.find(L=>L._id===F._id))return y;const K=this._readAttr(y);return In.defaults(i,K),this.engine.prepareNode(i),this.el.appendChild(y),this.makeWidget(y,i),y}createWidgetDivs(i){const y=In.createDiv(["grid-stack-item",this.opts.itemClass]),F=In.createDiv(["grid-stack-item-content"],y);return In.lazyLoad(i)?i.visibleObservable||(i.visibleObservable=new IntersectionObserver(([K])=>{var L,w;K.isIntersecting&&((L=i.visibleObservable)==null||L.disconnect(),delete i.visibleObservable,qa.renderCB(F,i),(w=i.grid)==null||w.prepareDragDrop(i.el))}),window.setTimeout(()=>{var K;return(K=i.visibleObservable)==null?void 0:K.observe(y)})):qa.renderCB(F,i),y}makeSubGrid(i,y,F,K=!0){var L,w,t;let v=i.gridstackNode;if(v||(v=this.makeWidget(i).gridstackNode),(L=v.subGrid)!=null&&L.el)return v.subGrid;let d,e=this;for(;e&&!d;)d=(w=e.opts)==null?void 0:w.subGridOpts,e=(t=e.parentGridNode)==null?void 0:t.grid;y=In.cloneDeep({...this.opts,id:void 0,children:void 0,column:"auto",columnOpts:void 0,layout:"list",subGridOpts:void 0,...d||{},...y||v.subGridOpts||{}}),v.subGridOpts=y;let x;y.column==="auto"&&(x=!0,y.column=Math.max(v.w||1,(F==null?void 0:F.w)||1),delete y.columnOpts);let m=v.el.querySelector(".grid-stack-item-content"),b,h;if(K&&(this._removeDD(v.el),h={...v,x:0,y:0},In.removeInternalForSave(h),delete h.subGridOpts,v.content&&(h.content=v.content,delete v.content),qa.addRemoveCB?b=qa.addRemoveCB(this.el,h,!0,!1):(b=In.createDiv(["grid-stack-item"]),b.appendChild(m),m=In.createDiv(["grid-stack-item-content"],v.el)),this.prepareDragDrop(v.el)),F){const a=x?y.column:v.w,u=v.h+F.h,s=v.el.style;s.transition="none",this.update(v.el,{w:a,h:u}),setTimeout(()=>s.transition=null)}const n=v.subGrid=qa.addGrid(m,y);return F!=null&&F._moving&&(n._isTemp=!0),x&&(n._autoColumn=!0),K&&n.makeWidget(b,h),F&&(F._moving?window.setTimeout(()=>In.simulateMouseEvent(F._event,"mouseenter",n.el),0):n.makeWidget(v.el,v)),this.resizeToContentCheck(!1,v),n}removeAsSubGrid(i){var y;const F=(y=this.parentGridNode)==null?void 0:y.grid;F&&(F.batchUpdate(),F.removeWidget(this.parentGridNode.el,!0,!0),this.engine.nodes.forEach(K=>{K.x+=this.parentGridNode.x,K.y+=this.parentGridNode.y,F.makeWidget(K.el,K)}),F.batchUpdate(!1),this.parentGridNode&&delete this.parentGridNode.subGrid,delete this.parentGridNode,i&&window.setTimeout(()=>In.simulateMouseEvent(i._event,"mouseenter",F.el),0))}save(i=!0,y=!1,F=qa.saveCB){const K=this.engine.save(i,F);if(K.forEach(L=>{var w;if(i&&L.el&&!L.subGrid&&!F){const t=L.el.querySelector(".grid-stack-item-content");L.content=t==null?void 0:t.innerHTML,L.content||delete L.content}else if(!i&&!F&&delete L.content,(w=L.subGrid)!=null&&w.el){const t=L.subGrid.save(i,y,F);L.subGridOpts=y?t:{children:t},delete L.subGrid}delete L.el}),y){const L=In.cloneDeep(this.opts);L.marginBottom===L.marginTop&&L.marginRight===L.marginLeft&&L.marginTop===L.marginRight&&(L.margin=L.marginTop,delete L.marginTop,delete L.marginRight,delete L.marginBottom,delete L.marginLeft),L.rtl===(this.el.style.direction==="rtl")&&(L.rtl="auto"),this._isAutoCellHeight&&(L.cellHeight="auto"),this._autoColumn&&(L.column="auto");const w=L._alwaysShowResizeHandle;return delete L._alwaysShowResizeHandle,w!==void 0?L.alwaysShowResizeHandle=w:delete L.alwaysShowResizeHandle,In.removeInternalAndSame(L,Au),L.children=K,L}return K}load(i,y=qa.addRemoveCB||!0){i=In.cloneDeep(i);const F=this.getColumn();i.forEach(e=>{e.w=e.w||1,e.h=e.h||1}),i=In.sort(i),this.engine.skipCacheUpdate=this._ignoreLayoutsNodeChange=!0;let K=0;i.forEach(e=>{K=Math.max(K,(e.x||0)+e.w)}),K>this.engine.defaultColumn&&(this.engine.defaultColumn=K),K>F&&(this.engine.nodes.length===0&&this.responseLayout?(this.engine.nodes=i,this.engine.columnChanged(K,F,this.responseLayout),i=this.engine.nodes,this.engine.nodes=[],delete this.responseLayout):this.engine.cacheLayout(i,K,!0));const L=qa.addRemoveCB;typeof y=="function"&&(qa.addRemoveCB=y);const w=[];this.batchUpdate();const t=!this.engine.nodes.length,v=t&&this.opts.animate;v&&this.setAnimation(!1),!t&&y&&[...this.engine.nodes].forEach(e=>{e.id&&(In.find(i,e.id)||(qa.addRemoveCB&&qa.addRemoveCB(this.el,e,!1,!1),w.push(e),this.removeWidget(e.el,!0,!1)))}),this.engine._loading=!0;const d=[];return this.engine.nodes=this.engine.nodes.filter(e=>In.find(i,e.id)?(d.push(e),!1):!0),i.forEach(e=>{var x;const m=In.find(d,e.id);if(m){if(In.shouldSizeToContent(m)&&(e.h=m.h),this.engine.nodeBoundFix(e),(e.autoPosition||e.x===void 0||e.y===void 0)&&(e.w=e.w||m.w,e.h=e.h||m.h,this.engine.findEmptyPosition(e)),this.engine.nodes.push(m),In.samePos(m,e)&&this.engine.nodes.length>1&&(this.moveNode(m,{...e,forceCollide:!0}),In.copyPos(e,m)),this.update(m.el,e),(x=e.subGridOpts)!=null&&x.children){const b=m.el.querySelector(".grid-stack");b&&b.gridstack&&b.gridstack.load(e.subGridOpts.children)}}else y&&this.addWidget(e)}),delete this.engine._loading,this.engine.removedNodes=w,this.batchUpdate(!1),delete this._ignoreLayoutsNodeChange,delete this.engine.skipCacheUpdate,L?qa.addRemoveCB=L:delete qa.addRemoveCB,v&&this.setAnimation(!0,!0),this}batchUpdate(i=!0){return this.engine.batchUpdate(i),i||(this._updateContainerHeight(),this._triggerRemoveEvent(),this._triggerAddEvent(),this._triggerChangeEvent()),this}getCellHeight(i=!1){if(this.opts.cellHeight&&this.opts.cellHeight!=="auto"&&(!i||!this.opts.cellHeightUnit||this.opts.cellHeightUnit==="px"))return this.opts.cellHeight;if(this.opts.cellHeightUnit==="rem")return this.opts.cellHeight*parseFloat(getComputedStyle(document.documentElement).fontSize);if(this.opts.cellHeightUnit==="em")return this.opts.cellHeight*parseFloat(getComputedStyle(this.el).fontSize);if(this.opts.cellHeightUnit==="cm")return this.opts.cellHeight*(96/2.54);if(this.opts.cellHeightUnit==="mm")return this.opts.cellHeight*(96/2.54)/10;const y=this.el.querySelector("."+this.opts.itemClass);if(y){const K=In.toNumber(y.getAttribute("gs-h"))||1;return Math.round(y.offsetHeight/K)}const F=parseInt(this.el.getAttribute("gs-current-row"));return F?Math.round(this.el.getBoundingClientRect().height/F):this.opts.cellHeight}cellHeight(i){if(i!==void 0&&this._isAutoCellHeight!==(i==="auto")&&(this._isAutoCellHeight=i==="auto",this._updateResizeEvent()),(i==="initial"||i==="auto")&&(i=void 0),i===void 0){const F=-this.opts.marginRight-this.opts.marginLeft+this.opts.marginTop+this.opts.marginBottom;i=this.cellWidth()+F}const y=In.parseHeight(i);return this.opts.cellHeightUnit===y.unit&&this.opts.cellHeight===y.h?this:(this.opts.cellHeightUnit=y.unit,this.opts.cellHeight=y.h,this.el.style.setProperty("--gs-cell-height",`${this.opts.cellHeight}${this.opts.cellHeightUnit}`),this._updateContainerHeight(),this.resizeToContentCheck(),this)}cellWidth(){return this._widthOrContainer()/this.getColumn()}_widthOrContainer(i=!1){var y;return i&&(y=this.opts.columnOpts)!=null&&y.breakpointForWindow?window.innerWidth:this.el.clientWidth||this.el.parentElement.clientWidth||window.innerWidth}checkDynamicColumn(){var i,y;const F=this.opts.columnOpts;if(!F||!F.columnWidth&&!((i=F.breakpoints)!=null&&i.length))return!1;const K=this.getColumn();let L=K;const w=this._widthOrContainer(!0);if(F.columnWidth)L=Math.min(Math.round(w/F.columnWidth)||1,F.columnMax);else{L=F.columnMax;let t=0;for(;t<F.breakpoints.length&&w<=F.breakpoints[t].w;)L=F.breakpoints[t++].c||K}if(L!==K){const t=(y=F.breakpoints)==null?void 0:y.find(v=>v.c===L);return this.column(L,(t==null?void 0:t.layout)||F.layout),!0}return!1}compact(i="compact",y=!0){return this.engine.compact(i,y),this._triggerChangeEvent(),this}column(i,y="moveScale"){if(!i||i<1||this.opts.column===i)return this;const F=this.getColumn();return this.opts.column=i,this.engine?(this.engine.column=i,this.el.classList.remove("gs-"+F),this._updateColumnVar(),this.engine.columnChanged(F,i,y),this._isAutoCellHeight&&this.cellHeight(),this.resizeToContentCheck(!0),this._ignoreLayoutsNodeChange=!0,this._triggerChangeEvent(),delete this._ignoreLayoutsNodeChange,this):(this.responseLayout=y,this)}getColumn(){return this.opts.column}getGridItems(){return Array.from(this.el.children).filter(i=>i.matches("."+this.opts.itemClass)&&!i.matches("."+this.opts.placeholderClass))}isIgnoreChangeCB(){return this._ignoreLayoutsNodeChange}destroy(i=!0){var y;if(this.el)return this.offAll(),this._updateResizeEvent(!0),this.setStatic(!0,!1),this.setAnimation(!1),i?this.el.parentNode.removeChild(this.el):(this.removeAll(i),this.el.removeAttribute("gs-current-row")),this.parentGridNode&&delete this.parentGridNode.subGrid,delete this.parentGridNode,delete this.opts,(y=this._placeholder)==null||delete y.gridstackNode,delete this._placeholder,delete this.engine,delete this.el.gridstack,delete this.el,this}float(i){return this.opts.float!==i&&(this.opts.float=this.engine.float=i,this._triggerChangeEvent()),this}getFloat(){return this.engine.float}getCellFromPixel(i,y=!1){const F=this.el.getBoundingClientRect();let K;y?K={top:F.top+document.documentElement.scrollTop,left:F.left}:K={top:this.el.offsetTop,left:this.el.offsetLeft};const L=i.left-K.left,w=i.top-K.top,t=F.width/this.getColumn(),v=F.height/parseInt(this.el.getAttribute("gs-current-row"));return{x:Math.floor(L/t),y:Math.floor(w/v)}}getRow(){return Math.max(this.engine.getRow(),this.opts.minRow||0)}isAreaEmpty(i,y,F,K){return this.engine.isAreaEmpty(i,y,F,K)}makeWidget(i,y){const F=qa.getElement(i);if(!F||F.gridstackNode)return F;F.parentElement||this.el.appendChild(F),this._prepareElement(F,!0,y);const K=F.gridstackNode;this._updateContainerHeight(),K.subGridOpts&&this.makeSubGrid(F,K.subGridOpts,void 0,!1);let L;return this.opts.column===1&&!this._ignoreLayoutsNodeChange&&(L=this._ignoreLayoutsNodeChange=!0),this._triggerAddEvent(),this._triggerChangeEvent(),L&&delete this._ignoreLayoutsNodeChange,F}on(i,y){return i.indexOf(" ")!==-1?(i.split(" ").forEach(F=>this.on(F,y)),this):(i==="change"||i==="added"||i==="removed"||i==="enable"||i==="disable"?(i==="enable"||i==="disable"?this._gsEventHandler[i]=F=>y(F):this._gsEventHandler[i]=F=>{F.detail&&y(F,F.detail)},this.el.addEventListener(i,this._gsEventHandler[i])):i==="drag"||i==="dragstart"||i==="dragstop"||i==="resizestart"||i==="resize"||i==="resizestop"||i==="dropped"||i==="resizecontent"?this._gsEventHandler[i]=y:console.error("GridStack.on("+i+") event not supported"),this)}off(i){return i.indexOf(" ")!==-1?(i.split(" ").forEach(y=>this.off(y)),this):((i==="change"||i==="added"||i==="removed"||i==="enable"||i==="disable")&&this._gsEventHandler[i]&&this.el.removeEventListener(i,this._gsEventHandler[i]),delete this._gsEventHandler[i],this)}offAll(){return Object.keys(this._gsEventHandler).forEach(i=>this.off(i)),this}removeWidget(i,y=!0,F=!0){return i?(qa.getElements(i).forEach(K=>{if(K.parentElement&&K.parentElement!==this.el)return;let L=K.gridstackNode;L||(L=this.engine.nodes.find(w=>K===w.el)),L&&(y&&qa.addRemoveCB&&qa.addRemoveCB(this.el,L,!1,!1),delete K.gridstackNode,this._removeDD(K),this.engine.removeNode(L,y,F),y&&K.parentElement&&K.remove())}),F&&(this._triggerRemoveEvent(),this._triggerChangeEvent()),this):(console.error("Error: GridStack.removeWidget(undefined) called"),this)}removeAll(i=!0,y=!0){return this.engine.nodes.forEach(F=>{i&&qa.addRemoveCB&&qa.addRemoveCB(this.el,F,!1,!1),delete F.el.gridstackNode,this.opts.staticGrid||this._removeDD(F.el)}),this.engine.removeAll(i,y),y&&this._triggerRemoveEvent(),this}setAnimation(i=this.opts.animate,y){return y?setTimeout(()=>{this.opts&&this.setAnimation(i)}):i?this.el.classList.add("grid-stack-animate"):this.el.classList.remove("grid-stack-animate"),this.opts.animate=i,this}hasAnimationCSS(){return this.el.classList.contains("grid-stack-animate")}setStatic(i,y=!0,F=!0){return!!this.opts.staticGrid===i?this:(i?this.opts.staticGrid=!0:delete this.opts.staticGrid,this._setupRemoveDrop(),this._setupAcceptWidget(),this.engine.nodes.forEach(K=>{this.prepareDragDrop(K.el),K.subGrid&&F&&K.subGrid.setStatic(i,y,F)}),y&&this._setStaticClass(),this)}updateOptions(i){var y;const F=this.opts;return i===F?this:(i.acceptWidgets!==void 0&&(F.acceptWidgets=i.acceptWidgets,this._setupAcceptWidget()),i.animate!==void 0&&this.setAnimation(i.animate),i.cellHeight&&this.cellHeight(i.cellHeight),i.class!==void 0&&i.class!==F.class&&(F.class&&this.el.classList.remove(F.class),i.class&&this.el.classList.add(i.class)),i.columnOpts?(this.opts.columnOpts=i.columnOpts,this.checkDynamicColumn()):i.columnOpts===null&&this.opts.columnOpts?(delete this.opts.columnOpts,this._updateResizeEvent()):typeof i.column=="number"&&this.column(i.column),i.margin!==void 0&&this.margin(i.margin),i.staticGrid!==void 0&&this.setStatic(i.staticGrid),i.disableDrag!==void 0&&!i.staticGrid&&this.enableMove(!i.disableDrag),i.disableResize!==void 0&&!i.staticGrid&&this.enableResize(!i.disableResize),i.float!==void 0&&this.float(i.float),i.row!==void 0?(F.minRow=F.maxRow=F.row=i.row,this._updateContainerHeight()):(i.minRow!==void 0&&(F.minRow=i.minRow,this._updateContainerHeight()),i.maxRow!==void 0&&(F.maxRow=i.maxRow)),(y=i.children)!=null&&y.length&&this.load(i.children),this)}update(i,y){return qa.getElements(i).forEach(F=>{var K;const L=F==null?void 0:F.gridstackNode;if(!L)return;const w={...In.copyPos({},L),...In.cloneDeep(y)};this.engine.nodeBoundFix(w),delete w.autoPosition;const t=["x","y","w","h"];let v;if(t.some(x=>w[x]!==void 0&&w[x]!==L[x])&&(v={},t.forEach(x=>{v[x]=w[x]!==void 0?w[x]:L[x],delete w[x]})),!v&&(w.minW||w.minH||w.maxW||w.maxH)&&(v={}),w.content!==void 0){const x=F.querySelector(".grid-stack-item-content");x&&x.textContent!==w.content&&(L.content=w.content,qa.renderCB(x,w),(K=L.subGrid)!=null&&K.el&&(x.appendChild(L.subGrid.el),L.subGrid._updateContainerHeight())),delete w.content}let d=!1,e=!1;for(const x in w)x[0]!=="_"&&L[x]!==w[x]&&(L[x]=w[x],d=!0,e=e||!this.opts.staticGrid&&(x==="noResize"||x==="noMove"||x==="locked"));if(In.sanitizeMinMax(L),v){const x=v.w!==void 0&&v.w!==L.w;this.moveNode(L,v),x&&L.subGrid?L.subGrid.onResize(this.hasAnimationCSS()?L.w:void 0):this.resizeToContentCheck(x,L),delete L._orig}(v||d)&&this._writeAttr(F,L),e&&this.prepareDragDrop(L.el),qa.updateCB&&qa.updateCB(L)}),this}moveNode(i,y){const F=i._updating;F||this.engine.cleanNodes().beginUpdate(i),this.engine.moveNode(i,y),this._updateContainerHeight(),F||(this._triggerChangeEvent(),this.engine.endUpdate())}resizeToContent(i){var y,F;if(!i||(i.classList.remove("size-to-content-max"),!i.clientHeight))return;const K=i.gridstackNode;if(!K)return;const L=K.grid;if(!L||i.parentElement!==L.el)return;const w=L.getCellHeight(!0);if(!w)return;let t=K.h?K.h*w:i.clientHeight,v;if(K.resizeToContentParent&&(v=i.querySelector(K.resizeToContentParent)),v||(v=i.querySelector(qa.resizeToContentParent)),!v)return;const d=i.clientHeight-v.clientHeight,e=K.h?K.h*w-d:v.clientHeight;let x;if(K.subGrid){x=K.subGrid.getRow()*K.subGrid.getCellHeight(!0);const h=K.subGrid.el.getBoundingClientRect(),n=i.getBoundingClientRect();x+=h.top-n.top}else{if((F=(y=K.subGridOpts)==null?void 0:y.children)!=null&&F.length)return;{const h=v.firstElementChild;if(!h){console.error(`Error: GridStack.resizeToContent() widget id:${K.id} '${qa.resizeToContentParent}'.firstElementChild is null, make sure to have a div like container. Skipping sizing.`);return}x=h.getBoundingClientRect().height||e}}if(e===x)return;t+=x-e;let m=Math.ceil(t/w);const b=Number.isInteger(K.sizeToContent)?K.sizeToContent:0;b&&m>b&&(m=b,i.classList.add("size-to-content-max")),K.minH&&m<K.minH?m=K.minH:K.maxH&&m>K.maxH&&(m=K.maxH),m!==K.h&&(L._ignoreLayoutsNodeChange=!0,L.moveNode(K,{h:m}),delete L._ignoreLayoutsNodeChange)}resizeToContentCBCheck(i){qa.resizeToContentCB?qa.resizeToContentCB(i):this.resizeToContent(i)}rotate(i,y){return qa.getElements(i).forEach(F=>{const K=F.gridstackNode;if(!In.canBeRotated(K))return;const L={w:K.h,h:K.w,minH:K.minW,minW:K.minH,maxH:K.maxW,maxW:K.maxH};if(y){const t=y.left>0?Math.floor(y.left/this.cellWidth()):0,v=y.top>0?Math.floor(y.top/this.opts.cellHeight):0;L.x=K.x+t-(K.h-(v+1)),L.y=K.y+v-t}Object.keys(L).forEach(t=>{L[t]===void 0&&delete L[t]});const w=K._orig;this.update(F,L),K._orig=w}),this}margin(i){if(!(typeof i=="string"&&i.split(" ").length>1)){const y=In.parseHeight(i);if(this.opts.marginUnit===y.unit&&this.opts.margin===y.h)return}return this.opts.margin=i,this.opts.marginTop=this.opts.marginBottom=this.opts.marginLeft=this.opts.marginRight=void 0,this._initMargin(),this}getMargin(){return this.opts.margin}willItFit(i){if(arguments.length>1){console.warn("gridstack.ts: `willItFit(x,y,w,h,autoPosition)` is deprecated. Use `willItFit({x, y,...})`. It will be removed soon");const y=arguments;let F=0,K={x:y[F++],y:y[F++],w:y[F++],h:y[F++],autoPosition:y[F++]};return this.willItFit(K)}return this.engine.willItFit(i)}_triggerChangeEvent(){if(this.engine.batchMode)return this;const i=this.engine.getDirtyNodes(!0);return i&&i.length&&(this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(i),this._triggerEvent("change",i)),this.engine.saveInitial(),this}_triggerAddEvent(){var i;if(this.engine.batchMode)return this;if((i=this.engine.addedNodes)!=null&&i.length){this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(this.engine.addedNodes),this.engine.addedNodes.forEach(F=>{delete F._dirty});const y=[...this.engine.addedNodes];this.engine.addedNodes=[],this._triggerEvent("added",y)}return this}_triggerRemoveEvent(){var i;if(this.engine.batchMode)return this;if((i=this.engine.removedNodes)!=null&&i.length){const y=[...this.engine.removedNodes];this.engine.removedNodes=[],this._triggerEvent("removed",y)}return this}_triggerEvent(i,y){const F=y?new CustomEvent(i,{bubbles:!1,detail:y}):new Event(i);let K=this;for(;K.parentGridNode;)K=K.parentGridNode.grid;return K.el.dispatchEvent(F),this}_updateContainerHeight(){if(!this.engine||this.engine.batchMode)return this;const i=this.parentGridNode;let y=this.getRow()+this._extraDragRow;const F=this.opts.cellHeight,K=this.opts.cellHeightUnit;if(!F)return this;if(!i&&!this.opts.minRow){const L=In.parseHeight(getComputedStyle(this.el).minHeight);if(L.h>0&&L.unit===K){const w=Math.floor(L.h/F);y<w&&(y=w)}}return this.el.setAttribute("gs-current-row",String(y)),this.el.style.removeProperty("min-height"),this.el.style.removeProperty("height"),y&&(this.el.style[i?"minHeight":"height"]=y*F+K),i&&In.shouldSizeToContent(i)&&i.grid.resizeToContentCBCheck(i.el),this}_prepareElement(i,y=!1,F){F=F||this._readAttr(i),i.gridstackNode=F,F.el=i,F.grid=this,F=this.engine.addNode(F,y),this._writeAttr(i,F),i.classList.add(Au.itemClass,this.opts.itemClass);const K=In.shouldSizeToContent(F);return K?i.classList.add("size-to-content"):i.classList.remove("size-to-content"),K&&this.resizeToContentCheck(!1,F),In.lazyLoad(F)||this.prepareDragDrop(F.el),this}_writePosAttr(i,y){return(!y._moving&&!y._resizing||this._placeholder===i)&&(i.style.top=y.y?y.y===1?"var(--gs-cell-height)":`calc(${y.y} * var(--gs-cell-height))`:null,i.style.left=y.x?y.x===1?"var(--gs-column-width)":`calc(${y.x} * var(--gs-column-width))`:null,i.style.width=y.w>1?`calc(${y.w} * var(--gs-column-width))`:null,i.style.height=y.h>1?`calc(${y.h} * var(--gs-cell-height))`:null),y.x>0?i.setAttribute("gs-x",String(y.x)):i.removeAttribute("gs-x"),y.y>0?i.setAttribute("gs-y",String(y.y)):i.removeAttribute("gs-y"),y.w>1?i.setAttribute("gs-w",String(y.w)):i.removeAttribute("gs-w"),y.h>1?i.setAttribute("gs-h",String(y.h)):i.removeAttribute("gs-h"),this}_writeAttr(i,y){if(!y)return this;this._writePosAttr(i,y);const F={noResize:"gs-no-resize",noMove:"gs-no-move",locked:"gs-locked",id:"gs-id",sizeToContent:"gs-size-to-content"};for(const K in F)y[K]?i.setAttribute(F[K],String(y[K])):i.removeAttribute(F[K]);return this}_readAttr(i,y=!0){const F={};F.x=In.toNumber(i.getAttribute("gs-x")),F.y=In.toNumber(i.getAttribute("gs-y")),F.w=In.toNumber(i.getAttribute("gs-w")),F.h=In.toNumber(i.getAttribute("gs-h")),F.autoPosition=In.toBool(i.getAttribute("gs-auto-position")),F.noResize=In.toBool(i.getAttribute("gs-no-resize")),F.noMove=In.toBool(i.getAttribute("gs-no-move")),F.locked=In.toBool(i.getAttribute("gs-locked"));const K=i.getAttribute("gs-size-to-content");K&&(K==="true"||K==="false"?F.sizeToContent=In.toBool(K):F.sizeToContent=parseInt(K,10)),F.id=i.getAttribute("gs-id"),F.maxW=In.toNumber(i.getAttribute("gs-max-w")),F.minW=In.toNumber(i.getAttribute("gs-min-w")),F.maxH=In.toNumber(i.getAttribute("gs-max-h")),F.minH=In.toNumber(i.getAttribute("gs-min-h")),y&&(F.w===1&&i.removeAttribute("gs-w"),F.h===1&&i.removeAttribute("gs-h"),F.maxW&&i.removeAttribute("gs-max-w"),F.minW&&i.removeAttribute("gs-min-w"),F.maxH&&i.removeAttribute("gs-max-h"),F.minH&&i.removeAttribute("gs-min-h"));for(const L in F){if(!F.hasOwnProperty(L))return;!F[L]&&F[L]!==0&&L!=="sizeToContent"&&delete F[L]}return F}_setStaticClass(){const i=["grid-stack-static"];return this.opts.staticGrid?(this.el.classList.add(...i),this.el.setAttribute("gs-static","true")):(this.el.classList.remove(...i),this.el.removeAttribute("gs-static")),this}onResize(i=(y=>(y=this.el)==null?void 0:y.clientWidth)()){if(!i||this.prevWidth===i)return;this.prevWidth=i,this.batchUpdate();let y=!1;return this._autoColumn&&this.parentGridNode?this.opts.column!==this.parentGridNode.w&&(this.column(this.parentGridNode.w,this.opts.layout||"list"),y=!0):y=this.checkDynamicColumn(),this._isAutoCellHeight&&this.cellHeight(),this.engine.nodes.forEach(F=>{F.subGrid&&F.subGrid.onResize()}),this._skipInitialResize||this.resizeToContentCheck(y),delete this._skipInitialResize,this.batchUpdate(!1),this}resizeToContentCheck(i=!1,y=void 0){if(this.engine){if(i&&this.hasAnimationCSS())return setTimeout(()=>this.resizeToContentCheck(!1,y),this.animationDelay);if(y)In.shouldSizeToContent(y)&&this.resizeToContentCBCheck(y.el);else if(this.engine.nodes.some(F=>In.shouldSizeToContent(F))){const F=[...this.engine.nodes];this.batchUpdate(),F.forEach(K=>{In.shouldSizeToContent(K)&&this.resizeToContentCBCheck(K.el)}),this._ignoreLayoutsNodeChange=!0,this.batchUpdate(!1),this._ignoreLayoutsNodeChange=!1}this._gsEventHandler.resizecontent&&this._gsEventHandler.resizecontent(null,y?[y]:this.engine.nodes)}}_updateResizeEvent(i=!1){const y=!this.parentGridNode&&(this._isAutoCellHeight||this.opts.sizeToContent||this.opts.columnOpts||this.engine.nodes.find(F=>F.sizeToContent));return!i&&y&&!this.resizeObserver?(this._sizeThrottle=In.throttle(()=>this.onResize(),this.opts.cellHeightThrottle),this.resizeObserver=new ResizeObserver(()=>this._sizeThrottle()),this.resizeObserver.observe(this.el),this._skipInitialResize=!0):(i||!y)&&this.resizeObserver&&(this.resizeObserver.disconnect(),delete this.resizeObserver,delete this._sizeThrottle),this}static getElement(i=".grid-stack-item"){return In.getElement(i)}static getElements(i=".grid-stack-item"){return In.getElements(i)}static getGridElement(i){return qa.getElement(i)}static getGridElements(i){return In.getElements(i)}_initMargin(){let i,y=0,F=[];typeof this.opts.margin=="string"&&(F=this.opts.margin.split(" ")),F.length===2?(this.opts.marginTop=this.opts.marginBottom=F[0],this.opts.marginLeft=this.opts.marginRight=F[1]):F.length===4?(this.opts.marginTop=F[0],this.opts.marginRight=F[1],this.opts.marginBottom=F[2],this.opts.marginLeft=F[3]):(i=In.parseHeight(this.opts.margin),this.opts.marginUnit=i.unit,y=this.opts.margin=i.h),["marginTop","marginRight","marginBottom","marginLeft"].forEach(L=>{this.opts[L]===void 0?this.opts[L]=y:(i=In.parseHeight(this.opts[L]),this.opts[L]=i.h,delete this.opts.margin)}),this.opts.marginUnit=i.unit,this.opts.marginTop===this.opts.marginBottom&&this.opts.marginLeft===this.opts.marginRight&&this.opts.marginTop===this.opts.marginRight&&(this.opts.margin=this.opts.marginTop);const K=this.el.style;return K.setProperty("--gs-item-margin-top",`${this.opts.marginTop}${this.opts.marginUnit}`),K.setProperty("--gs-item-margin-bottom",`${this.opts.marginBottom}${this.opts.marginUnit}`),K.setProperty("--gs-item-margin-right",`${this.opts.marginRight}${this.opts.marginUnit}`),K.setProperty("--gs-item-margin-left",`${this.opts.marginLeft}${this.opts.marginUnit}`),this}static getDD(){return jc}static setupDragIn(i,y,F,K=document){(y==null?void 0:y.pause)!==void 0&&(Za.pauseDrag=y.pause),y={appendTo:"body",helper:"clone",...y||{}},(typeof i=="string"?In.getElements(i,K):i).forEach((L,w)=>{jc.isDraggable(L)||jc.dragIn(L,y),F!=null&&F[w]&&(L.gridstackNode=F[w])})}movable(i,y){return this.opts.staticGrid?this:(qa.getElements(i).forEach(F=>{const K=F.gridstackNode;K&&(y?delete K.noMove:K.noMove=!0,this.prepareDragDrop(K.el))}),this)}resizable(i,y){return this.opts.staticGrid?this:(qa.getElements(i).forEach(F=>{const K=F.gridstackNode;K&&(y?delete K.noResize:K.noResize=!0,this.prepareDragDrop(K.el))}),this)}disable(i=!0){if(!this.opts.staticGrid)return this.enableMove(!1,i),this.enableResize(!1,i),this._triggerEvent("disable"),this}enable(i=!0){if(!this.opts.staticGrid)return this.enableMove(!0,i),this.enableResize(!0,i),this._triggerEvent("enable"),this}enableMove(i,y=!0){return this.opts.staticGrid?this:(i?delete this.opts.disableDrag:this.opts.disableDrag=!0,this.engine.nodes.forEach(F=>{this.prepareDragDrop(F.el),F.subGrid&&y&&F.subGrid.enableMove(i,y)}),this)}enableResize(i,y=!0){return this.opts.staticGrid?this:(i?delete this.opts.disableResize:this.opts.disableResize=!0,this.engine.nodes.forEach(F=>{this.prepareDragDrop(F.el),F.subGrid&&y&&F.subGrid.enableResize(i,y)}),this)}cancelDrag(){var i;const y=(i=this._placeholder)==null?void 0:i.gridstackNode;y&&(y._isExternal?(y._isAboutToRemove=!0,this.engine.removeNode(y)):y._isAboutToRemove&&qa._itemRemoving(y.el,!1),this.engine.restoreInitial())}_removeDD(i){return jc.draggable(i,"destroy").resizable(i,"destroy"),i.gridstackNode&&delete i.gridstackNode._initDD,delete i.ddElement,this}_setupAcceptWidget(){if(this.opts.staticGrid||!this.opts.acceptWidgets&&!this.opts.removable)return jc.droppable(this.el,"destroy"),this;let i,y;const F=(K,L,w)=>{var t;w=w||L;const v=w.gridstackNode;if(!v)return;if(!((t=v.grid)!=null&&t.el)){w.style.transform=`scale(${1/this.dragTransform.xScale},${1/this.dragTransform.yScale})`;const b=w.getBoundingClientRect();w.style.left=b.x+(this.dragTransform.xScale-1)*(K.clientX-b.x)/this.dragTransform.xScale+"px",w.style.top=b.y+(this.dragTransform.yScale-1)*(K.clientY-b.y)/this.dragTransform.yScale+"px",w.style.transformOrigin="0px 0px"}let{top:d,left:e}=w.getBoundingClientRect();const x=this.el.getBoundingClientRect();e-=x.left,d-=x.top;const m={position:{top:d*this.dragTransform.xScale,left:e*this.dragTransform.yScale}};if(v._temporaryRemoved){if(v.x=Math.max(0,Math.round(e/y)),v.y=Math.max(0,Math.round(d/i)),delete v.autoPosition,this.engine.nodeBoundFix(v),!this.engine.willItFit(v)){if(v.autoPosition=!0,!this.engine.willItFit(v)){jc.off(L,"drag");return}v._willFitPos&&(In.copyPos(v,v._willFitPos),delete v._willFitPos)}this._onStartMoving(w,K,m,v,y,i)}else this._dragOrResize(w,K,m,v,y,i)};return jc.droppable(this.el,{accept:K=>{const L=K.gridstackNode||this._readAttr(K,!1);if((L==null?void 0:L.grid)===this)return!0;if(!this.opts.acceptWidgets)return!1;let w=!0;if(typeof this.opts.acceptWidgets=="function")w=this.opts.acceptWidgets(K);else{const t=this.opts.acceptWidgets===!0?".grid-stack-item":this.opts.acceptWidgets;w=K.matches(t)}if(w&&L&&this.opts.maxRow){const t={w:L.w,h:L.h,minW:L.minW,minH:L.minH};w=this.engine.willItFit(t)}return w}}).on(this.el,"dropover",(K,L,w)=>{let t=(w==null?void 0:w.gridstackNode)||L.gridstackNode;if((t==null?void 0:t.grid)===this&&!t._temporaryRemoved)return!1;if(t!=null&&t._sidebarOrig&&(t.w=t._sidebarOrig.w,t.h=t._sidebarOrig.h),t!=null&&t.grid&&t.grid!==this&&!t._temporaryRemoved&&t.grid._leave(L,w),w=w||L,y=this.cellWidth(),i=this.getCellHeight(!0),!t){const e=w.getAttribute("data-gs-widget")||w.getAttribute("gridstacknode");if(e){try{t=JSON.parse(e)}catch{console.error("Gridstack dropover: Bad JSON format: ",e)}w.removeAttribute("data-gs-widget"),w.removeAttribute("gridstacknode")}t||(t=this._readAttr(w)),t._sidebarOrig={w:t.w,h:t.h}}t.grid||(t.el||(t={...t}),t._isExternal=!0,w.gridstackNode=t);const v=t.w||Math.round(w.offsetWidth/y)||1,d=t.h||Math.round(w.offsetHeight/i)||1;return t.grid&&t.grid!==this?(L._gridstackNodeOrig||(L._gridstackNodeOrig=t),L.gridstackNode=t={...t,w:v,h:d,grid:this},delete t.x,delete t.y,this.engine.cleanupNode(t).nodeBoundFix(t),t._initDD=t._isExternal=t._temporaryRemoved=!0):(t.w=v,t.h=d,t._temporaryRemoved=!0),qa._itemRemoving(t.el,!1),jc.on(L,"drag",F),F(K,L,w),!1}).on(this.el,"dropout",(K,L,w)=>{const t=(w==null?void 0:w.gridstackNode)||L.gridstackNode;return t&&(!t.grid||t.grid===this)&&(this._leave(L,w),this._isTemp&&this.removeAsSubGrid(t)),!1}).on(this.el,"drop",(K,L,w)=>{var t,v,d;const e=(w==null?void 0:w.gridstackNode)||L.gridstackNode;if((e==null?void 0:e.grid)===this&&!e._isExternal)return!1;const x=!!this.placeholder.parentElement,m=L!==w;this.placeholder.remove(),delete this.placeholder.gridstackNode,x&&this.opts.animate&&(this.setAnimation(!1),this.setAnimation(!0,!0));const b=L._gridstackNodeOrig;if(delete L._gridstackNodeOrig,x&&b!=null&&b.grid&&b.grid!==this){const n=b.grid;n.engine.removeNodeFromLayoutCache(b),n.engine.removedNodes.push(b),n._triggerRemoveEvent()._triggerChangeEvent(),n.parentGridNode&&!n.engine.nodes.length&&n.opts.subGridDynamic&&n.removeAsSubGrid()}if(!e||(x&&(this.engine.cleanupNode(e),e.grid=this),(t=e.grid)==null||delete t._isTemp,jc.off(L,"drag"),w!==L?(w.remove(),L=w):L.remove(),this._removeDD(L),!x))return!1;const h=(d=(v=e.subGrid)==null?void 0:v.el)==null?void 0:d.gridstack;return In.copyPos(e,this._readAttr(this.placeholder)),In.removePositioningStyles(L),m&&(e.content||e.subGridOpts||qa.addRemoveCB)?(delete e.el,L=this.addWidget(e)):(this._prepareElement(L,!0,e),this.el.appendChild(L),this.resizeToContentCheck(!1,e),h&&(h.parentGridNode=e),this._updateContainerHeight()),this.engine.addedNodes.push(e),this._triggerAddEvent(),this._triggerChangeEvent(),this.engine.endUpdate(),this._gsEventHandler.dropped&&this._gsEventHandler.dropped({...K,type:"dropped"},b&&b.grid?b:void 0,e),!1}),this}static _itemRemoving(i,y){if(!i)return;const F=i?i.gridstackNode:void 0;!(F!=null&&F.grid)||i.classList.contains(F.grid.opts.removableOptions.decline)||(y?F._isAboutToRemove=!0:delete F._isAboutToRemove,y?i.classList.add("grid-stack-item-removing"):i.classList.remove("grid-stack-item-removing"))}_setupRemoveDrop(){if(typeof this.opts.removable!="string")return this;const i=document.querySelector(this.opts.removable);return i?(!this.opts.staticGrid&&!jc.isDroppable(i)&&jc.droppable(i,this.opts.removableOptions).on(i,"dropover",(y,F)=>qa._itemRemoving(F,!0)).on(i,"dropout",(y,F)=>qa._itemRemoving(F,!1)),this):this}prepareDragDrop(i,y=!1){const F=i==null?void 0:i.gridstackNode;if(!F)return;const K=F.noMove||this.opts.disableDrag,L=F.noResize||this.opts.disableResize,w=this.opts.staticGrid||K&&L;if((y||w)&&(F._initDD&&(this._removeDD(i),delete F._initDD),w&&i.classList.add("ui-draggable-disabled","ui-resizable-disabled"),!y))return this;if(!F._initDD){let t,v;const d=(m,b)=>{this.triggerEvent(m,m.target),t=this.cellWidth(),v=this.getCellHeight(!0),this._onStartMoving(i,m,b,F,t,v)},e=(m,b)=>{this._dragOrResize(i,m,b,F,t,v)},x=m=>{this.placeholder.remove(),delete this.placeholder.gridstackNode,delete F._moving,delete F._resizing,delete F._event,delete F._lastTried;const b=F.w!==F._orig.w,h=m.target;if(!(!h.gridstackNode||h.gridstackNode.grid!==this)){if(F.el=h,F._isAboutToRemove){const n=i.gridstackNode.grid;n._gsEventHandler[m.type]&&n._gsEventHandler[m.type](m,h),n.engine.nodes.push(F),n.removeWidget(i,!0,!0)}else In.removePositioningStyles(h),F._temporaryRemoved?(In.copyPos(F,F._orig),this._writePosAttr(h,F),this.engine.addNode(F)):this._writePosAttr(h,F),this.triggerEvent(m,h);this._extraDragRow=0,this._updateContainerHeight(),this._triggerChangeEvent(),this.engine.endUpdate(),m.type==="resizestop"&&(Number.isInteger(F.sizeToContent)&&(F.sizeToContent=F.h),this.resizeToContentCheck(b,F))}};jc.draggable(i,{start:d,stop:x,drag:e}).resizable(i,{start:d,stop:x,resize:e}),F._initDD=!0}return jc.draggable(i,K?"disable":"enable").resizable(i,L?"disable":"enable"),this}_onStartMoving(i,y,F,K,L,w){var t;if(this.engine.cleanNodes().beginUpdate(K),this._writePosAttr(this.placeholder,K),this.el.appendChild(this.placeholder),this.placeholder.gridstackNode=K,(t=K.grid)!=null&&t.el)this.dragTransform=In.getValuesFromTransformedElement(i);else if(this.placeholder&&this.placeholder.closest(".grid-stack")){const v=this.placeholder.closest(".grid-stack");this.dragTransform=In.getValuesFromTransformedElement(v)}else this.dragTransform={xScale:1,xOffset:0,yScale:1,yOffset:0};if(K.el=this.placeholder,K._lastUiPosition=F.position,K._prevYPix=F.position.top,K._moving=y.type==="dragstart",K._resizing=y.type==="resizestart",delete K._lastTried,y.type==="dropover"&&K._temporaryRemoved&&(this.engine.addNode(K),K._moving=!0),this.engine.cacheRects(L,w,this.opts.marginTop,this.opts.marginRight,this.opts.marginBottom,this.opts.marginLeft),y.type==="resizestart"){const v=this.getColumn()-K.x,d=(this.opts.maxRow||Number.MAX_SAFE_INTEGER)-K.y;jc.resizable(i,"option","minWidth",L*Math.min(K.minW||1,v)).resizable(i,"option","minHeight",w*Math.min(K.minH||1,d)).resizable(i,"option","maxWidth",L*Math.min(K.maxW||Number.MAX_SAFE_INTEGER,v)).resizable(i,"option","maxWidthMoveLeft",L*Math.min(K.maxW||Number.MAX_SAFE_INTEGER,K.x+K.w)).resizable(i,"option","maxHeight",w*Math.min(K.maxH||Number.MAX_SAFE_INTEGER,d)).resizable(i,"option","maxHeightMoveUp",w*Math.min(K.maxH||Number.MAX_SAFE_INTEGER,K.y+K.h))}}_dragOrResize(i,y,F,K,L,w){const t={...K._orig};let v,d=this.opts.marginLeft,e=this.opts.marginRight,x=this.opts.marginTop,m=this.opts.marginBottom;const b=Math.round(w*.1),h=Math.round(L*.1);if(d=Math.min(d,h),e=Math.min(e,h),x=Math.min(x,b),m=Math.min(m,b),y.type==="drag"){if(K._temporaryRemoved)return;const a=F.position.top-K._prevYPix;K._prevYPix=F.position.top,this.opts.draggable.scroll!==!1&&In.updateScrollPosition(i,F.position,a);const u=F.position.left+(F.position.left>K._lastUiPosition.left?-e:d),s=F.position.top+(F.position.top>K._lastUiPosition.top?-m:x);t.x=Math.round(u/L),t.y=Math.round(s/w);const l=this._extraDragRow;if(this.engine.collide(K,t)){const f=this.getRow();let g=Math.max(0,t.y+K.h-f);this.opts.maxRow&&f+g>this.opts.maxRow&&(g=Math.max(0,this.opts.maxRow-f)),this._extraDragRow=g}else this._extraDragRow=0;if(this._extraDragRow!==l&&this._updateContainerHeight(),K.x===t.x&&K.y===t.y)return}else if(y.type==="resize"){if(t.x<0||(In.updateScrollResize(y,i,w),t.w=Math.round((F.size.width-d)/L),t.h=Math.round((F.size.height-x)/w),K.w===t.w&&K.h===t.h)||K._lastTried&&K._lastTried.w===t.w&&K._lastTried.h===t.h)return;const a=F.position.left+d,u=F.position.top+x;t.x=Math.round(a/L),t.y=Math.round(u/w),v=!0}K._event=y,K._lastTried=t;const n={x:F.position.left+d,y:F.position.top+x,w:(F.size?F.size.width:K.w*L)-d-e,h:(F.size?F.size.height:K.h*w)-x-m};if(this.engine.moveNodeCheck(K,{...t,cellWidth:L,cellHeight:w,rect:n,resizing:v})){K._lastUiPosition=F.position,this.engine.cacheRects(L,w,x,e,m,d),delete K._skipDown,v&&K.subGrid&&K.subGrid.onResize(),this._extraDragRow=0,this._updateContainerHeight();const a=y.target;K._sidebarOrig||this._writePosAttr(a,K),this.triggerEvent(y,a)}}triggerEvent(i,y){let F=this;for(;F.parentGridNode;)F=F.parentGridNode.grid;F._gsEventHandler[i.type]&&F._gsEventHandler[i.type](i,y)}_leave(i,y){y=y||i;const F=y.gridstackNode;if(!F||(y.style.transform=y.style.transformOrigin=null,jc.off(i,"drag"),F._temporaryRemoved))return;F._temporaryRemoved=!0,this.engine.removeNode(F),F.el=F._isExternal&&y?y:i;const K=F._sidebarOrig;F._isExternal&&this.engine.cleanupNode(F),F._sidebarOrig=K,this.opts.removable===!0&&qa._itemRemoving(i,!0),i._gridstackNodeOrig?(i.gridstackNode=i._gridstackNodeOrig,delete i._gridstackNodeOrig):F._isExternal&&this.engine.restoreInitial()}commit(){return Wse(this,this.batchUpdate(!1),"commit","batchUpdate","5.2"),this}}qa.renderCB=(r,i)=>{r&&i!=null&&i.content&&(r.textContent=i.content)},qa.resizeToContentParent=".grid-stack-item-content",qa.Utils=In,qa.Engine=Fd,qa.GDRev="12.2.2";const Jse=[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Pases acertados",isSelected:!1},{id:23,name:"Tiros de Esquina",isSelected:!1},{id:3,name:"Balones recuperados en disputa",isSelected:!1},{id:4,name:"Asistencias",isSelected:!1},{id:5,name:"Participaciones en gol",isSelected:!1},{id:6,name:"Tiros a gol",isSelected:!1},{id:7,name:"Tiros a gol que llegaron a la portería",isSelected:!1},{id:8,name:"Cabeceos en área rival",isSelected:!1},{id:9,name:"Cabeceos en área propia",isSelected:!1},{id:10,name:"Centros",isSelected:!1},{id:11,name:"Centros acertados",isSelected:!1},{id:12,name:"1vs1 exitosos ofensivos",isSelected:!1},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol",isSelected:!1},{id:14,name:"1vs1 defensivos exitoso",isSelected:!1},{id:15,name:"Rechaces",isSelected:!1},{id:16,name:"Balones ganados en área propia",isSelected:!1},{id:17,name:"Balones ganados en área rival",isSelected:!1},{id:18,name:"Faltas cometidas",isSelected:!1},{id:19,name:"Faltas recibidas",isSelected:!1},{id:20,name:"Tarjetas amarillas",isSelected:!1},{id:21,name:"Tarjetas rojas",isSelected:!1},{id:22,name:"Atajadas",isSelected:!1},{id:24,name:"Oportunidades de gol",isSelected:!1},{id:25,name:"Balones recuperados en cancha rival",isSelected:!1}],ih=r=>Jse.find(i=>i.id===r),Up=new Map([[9,{id:9,analysisTypes:new Map([["2-20",{analysisType:"successfulPasses",name:"Pases acertados",title:"Mapeo de pases acertados"}],["3-21",{analysisType:"unsuccessfulPasses",name:"Pases no acertados",title:"Mapeo de pases no acertados"}],["222-223-224-225",{analysisType:"recoveredBalls",name:"Balones recuperados",title:"Mapeo de balones recuperados"}],["226-227-228-229",{analysisType:"lostBalls",name:"Balones perdidos",title:"Mapeo de balones perdidos"}]])}],[1,{general:"general",offensive:"ofensivo",defensive:"defensivo",possession:"posesión",stoppedBall:"balón parado",penalties:"infracción"}]]);class ay{constructor(i,y=new Map,F,K=null,L=!1,w=!1,t=null,v=null){ud(this,"id",""),ud(this,"childViews",[]),ud(this,"viewId",0),ud(this,"dynamicFilters",null),ud(this,"componentSpecificFilters",new Map),ud(this,"isPostMatch",!1),ud(this,"isTemplateMode",!1),ud(this,"filtresJSON",null),ud(this,"token",null),ud(this,"_isUpdating",!1),this.id=i,this.viewId=F,this.childViews=y,this.dynamicFilters=K,this.isPostMatch=L,this.isTemplateMode=w,this.filtresJSON=t,this.token=v,this.componentSpecificFilters=new Map}hasEventTypeId(i,y){return!i||!Array.isArray(i)?!1:i.some(F=>F&&F.event_type_id===y)}hasCategoryId(i,y){return!i||!Array.isArray(i)?!1:i.some(F=>F&&F.category_id===y)}getId(){return this.id}setDynamicFilters(i,y=null){y?this.componentSpecificFilters.set(y,[...i]):this.dynamicFilters=i}getComponentDynamicFilters(i){return i&&this.componentSpecificFilters.has(i)?this.componentSpecificFilters.get(i):this.dynamicFilters}getAllComponentFilters(){return this.componentSpecificFilters}debugComponentFilters(){this.componentSpecificFilters.forEach((i,y)=>{console.log(` Component ${y}:`,i)})}static debugAllComponentFilters(){document.querySelectorAll("[data-container-id]").forEach(i=>{const y=i.getAttribute("data-container-id");console.log(`Container ${y}:`,i)})}clearAllComponentFilters(){this.componentSpecificFilters.clear(),console.log("Cleared all component specific filters")}getDynamicFilters(){return this.dynamicFilters}getHomeTeamViews(){return this.childViews.filter(i=>i.view.isHomeTeam)}getAwayTeamViews(){return this.childViews.filter(i=>!i.view.isHomeTeam)}addView(i,y=!1){var F,K,L,w,t,v,d,e,x,m;if(i.view.filterAndViewsContainer=this,li.emit("component-added-to-container",this),this.viewId===5&&(i.view.componentProps&&!y&&(i.view.componentProps.preMatchType=this.dynamicFilters[0]!==3&&this.dynamicFilters[0]||1),console.log("view.view.componentProps",i.view.componentProps)),this.viewId===10&&i.view.componentProps&&!y&&(i.view.componentProps.isHomeTeamForAnalysis=this.dynamicFilters[0]!==3?this.dynamicFilters[0]===1:1),this.viewId===7&&i.view.componentProps&&!y){const b=this.dynamicFilters[1];i.view.componentProps.analysisType=this.dynamicFilters[0]===1?"offensive":"defensive",i.view.componentProps.isHomeTeamForAnalysis=b===1,i.isHomeTeam=i.view.componentProps.isHomeTeamForAnalysis}if(this.viewId===1&&i.view.componentProps&&!y){const b=this.dynamicFilters[0]||[],h=Up.get(this.viewId);let n=0;for(const a of b)n=this.childViews.findIndex(u=>u.view.componentProps.type===a),n===-1&&(i.view.componentProps.type=a,i.view.componentProps.default=!1,i.view.title=`Comparativa ${h[a]}`,i.view.filterMultiple={category:a})}if(this.viewId===9&&i.view.componentProps&&!y){const b=this.dynamicFilters[0].map(u=>u.join("-"));let h="";const n=this.dynamicFilters[1],a=Up.get(this.viewId);if(n===3){this.getHomeTeamViews().length===0&&this.getAwayTeamViews().length>0&&this.getAwayTeamViews().forEach(g=>{g.view.componentProps.isHomeTeamForAnalysis=!0,g.view.isHomeTeam=!0});let u=null;const s=this.getHomeTeamViews(),l=this.getAwayTeamViews();let f=!0;for(let g=0;g<b.length;g++){console.log("categoriesIdsString[i]",b[g]),h=b[g],u=a.analysisTypes.get(b[g]);const k=s.find(S=>S.view.componentProps.analysisType===u.analysisType),E=l.find(S=>S.view.componentProps.analysisType===u.analysisType);if(console.log("homeTeamView",k),console.log("awayTeamView",E),!k||!E){f=!k;break}}console.log("isNewViewHomeTeam",f),f?this.childViews.length===0?(i.view.componentProps.analysisType=u.analysisType,i.view.componentProps.isHomeTeamForAnalysis=!0,i.view.title=u.title,i.view.isHomeTeam=!0):this.childViews.reduce((g,k,E,S)=>{let M={analysisType:k.view.componentProps.analysisType,title:k.view.title,isHomeTeamForAnalysis:k.view.componentProps.isHomeTeamForAnalysis,isHomeTeam:k.view.isHomeTeam};return g&&(g.isHomeTeam&&!k.view.isHomeTeam?(k.view.componentProps.analysisType=u.analysisType,k.view.componentProps.isHomeTeamForAnalysis=!0,k.view.title=u.title,k.view.isHomeTeam=!0):!g.isHomeTeam&&!k.view.isHomeTeam&&(k.view.componentProps.analysisType=g.analysisType,k.view.componentProps.isHomeTeamForAnalysis=g.isHomeTeamForAnalysis,k.view.title=g.title,k.view.isHomeTeam=g.isHomeTeam),E===S.length-1&&(i.view.componentProps.analysisType=M.analysisType,i.view.componentProps.isHomeTeamForAnalysis=M.isHomeTeamForAnalysis,i.view.title=M.title,i.view.isHomeTeam=M.isHomeTeam)),M},null):(i.view.componentProps.analysisType=u.analysisType,i.view.componentProps.isHomeTeamForAnalysis=!1,i.view.title=u.title,i.view.isHomeTeam=!1)}else{const u=n===1,s=u?this.getHomeTeamViews():this.getAwayTeamViews();i.view.componentProps.isHomeTeamForAnalysis=u,i.view.isHomeTeam=u;for(let l=0;l<b.length;l++){const f=a.analysisTypes.get(b[l]);if(!s.find(g=>g.view.componentProps.analysisType===f.analysisType)){i.view.componentProps.analysisType=f.analysisType,i.view.title=f.title;break}}}console.log("999999999999999999999"),console.log("categoriesIdsString",b),h&&(i.view.filterMultiple={categoryIds:h.split("-").map(u=>parseInt(u)),team:i.view.isHomeTeam?1:2})}if(this.viewId===2&&!y&&i.view.componentProps){i.view.componentProps.game&&(i.view.componentProps.gameid=i.view.componentProps.game.id,i.view.componentProps.season=i.view.componentProps.game.season_id,i.view.componentProps.teamView=this.dynamicFilters[1]===2?i.view.componentProps.game.awayTeam.team_id:this.dynamicFilters[1]===1?i.view.componentProps.game.homeTeam.team_id:0);const b=this.dynamicFilters[0]||[];console.log("GSCtops addView - categoriesIdsSelected:",b),console.log("GSCtops addView - childViews.length:",this.childViews.length);let h=null;if(Array.isArray(b)){if(b.length>0){const a=this.childViews.map(s=>{var l;const f=(l=s.view.componentProps)==null?void 0:l.categoryView;return f&&f.length>0?f[0].id:null}).filter(s=>s!==null),u=b.filter(s=>!a.includes(s));console.log("GSCtops addView (array mode) - existingCategories:",a),console.log("GSCtops addView (array mode) - categoriesWithoutComponent:",u),u.length>0?(h=u[0],console.log("GSCtops addView (array mode) - will create new component with categoryId:",h)):console.log("GSCtops addView (array mode) - all categories already have components")}}else{const a=b;if(a){const u=this.childViews.find(s=>{var l;const f=(l=s.view.componentProps)==null?void 0:l.categoryView;return f&&f.length>0&&f[0].id===a});console.log("GSCtops addView (single mode) - existingComponent:",u),u?console.log("GSCtops addView (single mode) - component already exists, skipping creation"):(h=a,console.log("GSCtops addView (single mode) - will create new component with categoryId:",h))}}let n=null;if(h)try{n=ih(h)}catch(a){console.warn("Error getting category by ID:",a)}console.log("newCategory",n),i.view.filterMultiple={categoryId:h},i.view.componentProps.categoryView=n?[{id:h,name:n.name}]:h?[{id:h,name:`Category ${h}`}]:[{id:0,name:"Category"}],console.log("view.view.componentProps.categoryView",i.view.componentProps.categoryView)}if(this.viewId===8&&i.view.componentProps&&!y&&i.view.game&&(i.view.componentProps._isReactive||(i.view.componentProps=p.reactive(i.view.componentProps),i.view.componentProps._isReactive=!0),i.view.componentProps.areInactiveVisible=this.dynamicFilters[0]||!1,i.view.componentProps.game=(F=i.view)==null?void 0:F.game,i.view.componentProps.teamSelected={teamId:(L=(K=i.view)==null?void 0:K.game)==null?void 0:L.home_team},i.view.componentProps.isDefault=!1,li.emit("component-props-updated",{viewId:i.view.id,componentProps:i.view.componentProps,dynamicFilters:this.dynamicFilters})),this.viewId===6&&i.view.componentProps&&!y){const b=this.dynamicFilters[0];if(b){let h=0;for(const n of b)if(!this.childViews.find(a=>a.view.componentProps.gameNumber===n)){h=n;break}h&&(i.view.componentProps.gameNumber=h,i.view.filterMultiple={gameNumber:h})}}if(this.viewId===3&&i.view.componentProps&&!y&&i.view.game){i.view.componentProps._isReactive||(i.view.componentProps=p.reactive(i.view.componentProps),i.view.componentProps._isReactive=!0);const b=this.getComponentDynamicFilters(i.view.id),h=b||this.dynamicFilters;!b&&this.dynamicFilters&&this.dynamicFilters.length>0&&(this.setDynamicFilters(this.dynamicFilters,i.view.id),console.log(`GSCMatchSummary - initialized specific filters for component ${i.view.id} with default filters:`,this.dynamicFilters));const n=h&&h.length>0?h[0]:!1;i.view.componentProps.desplegable=n,i.view.componentProps.key=n,i.view.componentProps.game=(w=i.view)==null?void 0:w.game,i.view.componentProps.defaultShields=!1,console.log(`GSCMatchSummary - component ${i.view.id} initialized with:`,{desplegable:n,usingSpecificFilters:!!b,filtersToUse:h}),li.emit("component-props-updated",{viewId:i.view.id,componentProps:i.view.componentProps,dynamicFilters:h})}if(this.viewId===4&&(console.log("TIMELINE TIMELINE - TIMELINE TIMELINE - TIMELINE TIMELINE - TIMELINE TIMELINE - TIMELINE TIMELINE - TIMELINE TIMELINE"),console.log("*********************** *********************** this.token *********************** *********************** ",this.token),i.view.componentProps&&!y&&i.view.game)){if(i.view.componentProps._isReactive||(i.view.componentProps=p.reactive(i.view.componentProps),i.view.componentProps._isReactive=!0),this.isPostMatch){console.log("view.view.this.dynamicFilters",this.dynamicFilters),i.view.componentProps.key=!1,i.view.componentProps.isDefault=!1,i.view.componentProps.token=this.token,i.view.componentProps.gameId=(v=(t=i.view)==null?void 0:t.game)==null?void 0:v.game_id,i.view.componentProps.homeTeam=(e=(d=i.view)==null?void 0:d.game)==null?void 0:e.home_team,i.view.componentProps.awayTeam=(m=(x=i.view)==null?void 0:x.game)==null?void 0:m.visiting_team;const n=this.getComponentDynamicFilters(i.view.id),a=n||this.dynamicFilters;!n&&this.dynamicFilters&&this.dynamicFilters.length>0&&(this.setDynamicFilters(this.dynamicFilters,i.view.id),console.log(`Timeline - initialized specific filters for component ${i.view.id} with default filters:`,this.dynamicFilters));const u=a&&a.length>0?a[0]:[],s=this.hasEventTypeId(u,1),l=this.hasCategoryId(u,8),f=this.hasCategoryId(u,9),g=this.hasEventTypeId(u,3);console.log("Timeline - Events check:",{goals:s,yellowCards:l,redCards:f,substitutions:g,selectedEvents:u,componentId:i.view.id,usingSpecificFilters:!!n}),i.view.componentProps.goals=s,i.view.componentProps.yellowCards=l,i.view.componentProps.redCards=f,i.view.componentProps.substitutions=g}const b=this.getComponentDynamicFilters(i.view.id)||this.dynamicFilters,h=b&&b.length>0?b[0]:[];i.view.componentProps.selectedEvents=h,i.view.componentProps.key=h.length>0,li.emit("component-props-updated",{viewId:i.view.id,componentProps:i.view.componentProps,dynamicFilters:b})}this.childViews.push(i),console.log("this.childViews",this.childViews)}getHowManyViewsToAdd(i){if(this.viewId===5)return 1;if(this.viewId===6){const y=i[0];return y===2||y===3?y:1}if(this.viewId===4){const y=i&&i.length>0&&Array.isArray(i[0])&&i[0].length>0,F=this.childViews.length===0&&y;return console.log("Timeline getHowManyViewsToAdd:",{hasSelectedEvents:y,childViewsLength:this.childViews.length,shouldAdd:F,dynamicFilters:i}),y?1:0}if(this.viewId===9){const y=i[0],F=i[1];if(F===1||F===2){const K=F===1?this.getHomeTeamViews():this.getAwayTeamViews();return y.length-K.length}else return y*2-(this.getHomeTeamViews().length+this.getAwayTeamViews().length)}return 0}getRequiresAddView(i){if(console.log("getRequiresAddView",this.viewId,i),this.viewId===5)return i[0]===3&&this.childViews.length<2;if(this.viewId===10)return i[0]===3&&this.childViews.length<2;if(this.viewId===7)return i[1]===3&&this.childViews.length<2;if(this.viewId===6){const y=i[0];return y?y.length>this.childViews.length:this.childViews.length===0}if(this.viewId===4){const y=i&&i.length>0&&Array.isArray(i[0])&&i[0].length>0,F=this.childViews.length===0&&y;return console.log("Timeline getRequiresAddView:",{hasSelectedEvents:y,childViewsLength:this.childViews.length,shouldAdd:F,dynamicFilters:i}),F}if(this.viewId===9)return this.getRequiresAddViewMultipleAndBothTeams(i);if(this.viewId===1){const y=i[0]||[];let F=0;for(const K of y)F=this.childViews.findIndex(L=>L.view.componentProps.type===K);if(F===-1||this.childViews.length<y.length)return!0}if(this.viewId===2){const y=i[0]||[];if(console.log("GSCtops getRequiresAddView - categoriesIdsSelected:",y),console.log("GSCtops getRequiresAddView - childViews.length:",this.childViews.length),console.log("GSCtops getRequiresAddView - childViews:",this.childViews.map(F=>{var K,L,w;return{id:F.view.id,categoryId:(w=(L=(K=F.view.componentProps)==null?void 0:K.categoryView)==null?void 0:L[0])==null?void 0:w.id}})),Array.isArray(y)){if(y.length>0){const F=this.childViews.map(w=>{var t;const v=(t=w.view.componentProps)==null?void 0:t.categoryView;return v&&v.length>0?v[0].id:null}).filter(w=>w!==null),K=y.filter(w=>!F.includes(w));console.log("GSCtops getRequiresAddView (array mode) - existingCategories:",F),console.log("GSCtops getRequiresAddView (array mode) - categoriesWithoutComponent:",K);const L=K.length>0;return console.log("GSCtops getRequiresAddView (array mode) - shouldAdd:",L),L}return!1}else{const F=y;if(F){const K=this.childViews.find(w=>{var t;const v=(t=w.view.componentProps)==null?void 0:t.categoryView;return v&&v.length>0&&v[0].id===F});console.log("GSCtops getRequiresAddView (single mode) - existingComponent:",K);const L=!K&&this.childViews.length===0;return console.log("GSCtops getRequiresAddView (single mode) - shouldAdd:",L),L}return!1}}return!1}getRequiresAddViewMultipleAndBothTeams(i){console.log("*******************************************************"),console.log("dynamicFilters",i);const y=this.childViews.filter(v=>v.view.isHomeTeam),F=this.childViews.filter(v=>!v.view.isHomeTeam),K=i[0].length,L=i[1],w=K*(L===1||L===2?1:2),t=L===3?y.length+F.length:y.length||F.length;return w>t}getRequiresLessViews(i){if(this.viewId===5)return i[0]!==3&&this.childViews.length>1;if(this.viewId===6){const y=i[0];return y===2||y===3}return this.viewId,!1}updateDynamicFilters(i,y=null){if(this._isUpdating){console.log("Skipping updateDynamicFilters due to update in progress");return}this._isUpdating=!0,y?(this.componentSpecificFilters.set(y,[...i]),console.log(`Updated specific filters for component ${y}:`,i)):this.dynamicFilters=i,li.emit("component-added-to-container",this);try{if(this.viewId===5){const F=i[0]||1;if(F<3)if(this.childViews.length===1){const K=this.childViews[0];K.view.componentProps&&(K.view.componentProps.preMatchType=F)}else{const K=this.childViews.pop(),L=K.grid,w=K.page,t=document.querySelector(`[gs-id="${K.view.id}"]`);if(L&&t&&(L.removeWidget(t),w)){const d=w.items.findIndex(e=>e.id===K.view.id);d!==-1&&w.items.splice(d,1)}const v=this.childViews[0];v.view.componentProps&&(v.view.componentProps.preMatchType=F)}else this.childViews.forEach((K,L)=>{K.view.componentProps.preMatchType=L+1})}if(this.viewId===10){const F=i[0]||1;if(F<3)if(this.childViews.length===1){const K=this.childViews[0];K.view.componentProps&&(K.view.componentProps.isHomeTeamForAnalysis=F===1)}else{const K=this.childViews.pop(),L=K.grid,w=K.page,t=document.querySelector(`[gs-id="${K.view.id}"]`);if(L&&t&&(L.removeWidget(t),w)){const d=w.items.findIndex(e=>e.id===K.view.id);d!==-1&&w.items.splice(d,1)}const v=this.childViews[0];v.view.componentProps&&(v.view.componentProps.isHomeTeamForAnalysis=F===1)}else this.childViews.forEach((K,L)=>{K.view.componentProps.isHomeTeamForAnalysis=L%2===0})}if(this.viewId===7){const F=i[1];if(F===3)this.childViews.forEach((K,L)=>{K.view.componentProps.isHomeTeamForAnalysis=L%2===0,K.view.isHomeTeam=L%2===0,K.view.componentProps.analysisType=this.dynamicFilters[0]===1?"offensive":"defensive"});else{const K=F===1;if(this.childViews.length>0){const L=this.childViews[0];L.view.componentProps.isHomeTeamForAnalysis=K,L.view.isHomeTeam=K,L.view.componentProps.analysisType=this.dynamicFilters[0]===1?"offensive":"defensive",this.childViews.length>1&&this.removeChildView(this.childViews[1])}}}if(this.viewId===9){const F=i[0],K=i[1];if(K===3){if(this.childViews.length>F.length){const L=F.map(w=>{const t=w.join("-");return Up.get(this.viewId).analysisTypes.get(t).analysisType});this.childViews.reduce((w,t)=>(L.includes(t.view.componentProps.analysisType)||w.push(t.view.componentProps.analysisType),w),[]).forEach(w=>{const t=this.childViews.findIndex(v=>v.view.componentProps.analysisType===w);if(t!==-1){for(let v=t;v<this.childViews.length;v++){const d=this.childViews[v+1],e=this.childViews[v];d&&(e.view.componentProps.analysisType=d.view.componentProps.analysisType,e.view.componentProps.isHomeTeamForAnalysis=d.view.componentProps.isHomeTeamForAnalysis,e.view.title=d.view.title,e.view.isHomeTeam=d.view.isHomeTeam)}this.removeChildView(this.childViews[this.childViews.length-1])}})}}else{const L=K===1,w=this.getHomeTeamViews(),t=this.getHomeTeamViews();if(L&&w.length===0)t.forEach(v=>{v.view.componentProps.isHomeTeamForAnalysis=!0,v.view.isHomeTeam=!0});else if(!L&&t.length===0)w.forEach(v=>{v.view.componentProps.isHomeTeamForAnalysis=!1,v.view.isHomeTeam=!1});else{const v=L?this.getHomeTeamViews():this.getAwayTeamViews();if(v.length>F.length){const d=F.map(e=>{const x=e.join("-");return Up.get(this.viewId).analysisTypes.get(x).analysisType});v.forEach(e=>{d.includes(e.view.componentProps.analysisType)||this.removeChildView(e)})}}}}if(this.viewId===2){console.log("GSCtops updateDynamicFilters - processing category changes");const F=i[0]||[];if(Array.isArray(F)){console.log("GSCtops updateDynamicFilters - array mode, selected categories:",F);const K=this.childViews.map(w=>{var t;const v=(t=w.view.componentProps)==null?void 0:t.categoryView;return v&&v.length>0?v[0].id:null}).filter(w=>w!==null);console.log("GSCtops updateDynamicFilters - existing category IDs:",K);const L=K.filter(w=>!F.includes(w));if(console.log("GSCtops updateDynamicFilters - categories to remove:",L),L.forEach(w=>{const t=this.childViews.find(v=>{var d;const e=(d=v.view.componentProps)==null?void 0:d.categoryView;return e&&e.length>0&&e[0].id===w});t?(console.log("GSCtops updateDynamicFilters - removing component for category:",w),console.log("GSCtops updateDynamicFilters - view to remove:",t.view.id),this.removeChildView(t),li.emit("component-removed",{viewId:t.view.id,categoryId:w})):console.log("GSCtops updateDynamicFilters - no view found to remove for category:",w)}),y){const w=F[0];if(w){const t=this.childViews.find(v=>v.view.id===y);if(t){let v=null;try{v=ih(w)}catch(d){console.warn("Error getting category by ID:",d)}t.view.filterMultiple={categoryId:w},t.view.componentProps.categoryView=v?[{id:w,name:v.name}]:[{id:w,name:`Category ${w}`}]}}}}else{const K=F;if(K&&y){const L=this.childViews.find(w=>w.view.id===y);if(L){let w=null;try{w=ih(K)}catch(t){console.warn("Error getting category by ID:",t)}L.view.filterMultiple={categoryId:K},L.view.componentProps.categoryView=w?[{id:K,name:w.name}]:[{id:K,name:`Category ${K}`}]}}}}if(this.viewId===8){const F=i[0]||!1;this.childViews.forEach(K=>{K.view.componentProps&&(K.view.componentProps._isReactive||(K.view.componentProps=p.reactive(K.view.componentProps),K.view.componentProps._isReactive=!0),K.view.componentProps.areInactiveVisible=F,K.view.componentProps.key=F,li.emit("component-props-updated",{viewId:K.view.id,componentProps:K.view.componentProps,dynamicFilters:i}),li.emit("dynamic-filters-changed",{containerViewId:this.viewId,viewId:K.view.id,dynamicFilters:i}))})}if(this.viewId===1){const F=i[0]||[];this.childViews.reduce((K,L)=>(F.includes(L.view.componentProps.type)||K.push(L.view.componentProps.type),K),[]).forEach(K=>{const L=this.childViews.findIndex(w=>w.view.componentProps.type===K);if(L!==-1){for(let w=L;w<this.childViews.length;w++){const t=this.childViews[w+1],v=this.childViews[w];t&&(v.view.componentProps.type=t.view.componentProps.type,v.view.title=t.view.title)}this.removeChildView(this.childViews[this.childViews.length-1])}})}if(this.viewId===6){const F=i[0]||[];this.childViews.reduce((K,L)=>(F.includes(L.view.componentProps.gameNumber)||K.push(L.view.componentProps.gameNumber),K),[]).forEach(K=>{const L=this.childViews.findIndex(w=>w.view.componentProps.gameNumber===K);if(L!==-1){for(let w=L;w<this.childViews.length;w++){const t=this.childViews[w+1],v=this.childViews[w];t&&(v.view.componentProps.gameNumber=t.view.componentProps.gameNumber,v.view.filterMultiple={gameNumber:t.view.componentProps.gameNumber})}this.removeChildView(this.childViews[this.childViews.length-1])}})}if(this.viewId===3)if(console.log("GSCMatchSummary updateDynamicFilters:",{dynamicFilters:i,componentId:y,childViewsLength:this.childViews.length}),y){console.log(`GSCMatchSummary - updating specific filters for component ${y}`),this.setDynamicFilters(i,y);const F=this.childViews.find(K=>K.view.id===y);F&&this.updateMatchSummary(F,i)}else{console.log("GSCMatchSummary - updating all components with global filters");const F=i[0]||!1;this.childViews.forEach(K=>{K.view.componentProps&&(K.view.componentProps._isReactive||(K.view.componentProps=p.reactive(K.view.componentProps),K.view.componentProps._isReactive=!0),K.view.componentProps.desplegable=F,K.view.componentProps.key=F,li.emit("component-props-updated",{viewId:K.view.id,componentProps:K.view.componentProps,dynamicFilters:i}),li.emit("dynamic-filters-changed",{containerViewId:this.viewId,viewId:K.view.id,dynamicFilters:i}))})}if(this.viewId===4){const F=i&&i.length>0&&Array.isArray(i[0])&&i[0].length>0;if(console.log("Timeline updateDynamicFilters:",{hasSelectedEvents:F,childViewsLength:this.childViews.length,dynamicFilters:i,componentId:y}),y){console.log(`Timeline - updating specific filters for component ${y}`),this.setDynamicFilters(i,y);const K=this.childViews.find(L=>L.view.id===y);K&&this.updateTimeline(K,i)}else if(console.log("Timeline - updating all components with global filters"),!F&&this.childViews.length>0)console.log("Timeline - removing views due to no events"),this.childViews.forEach(K=>{this.removeChildView(K)});else if(F&&this.childViews.length===0){console.log("Timeline - emitting add-view event");const K={pageId:null,view:{id:this.viewId,name:"Timeline",title:"Timeline",colspan:12,rowspan:6,max_column:12,max_row:12,min_column:6,min_row:4},filterAndWidgetContainer:this};li.emit("add-view",K)}else this.childViews.forEach(K=>{this.updateTimeline(K,i)})}}finally{this._isUpdating=!1}}removeChildView(i){const y=this.childViews.findIndex(F=>F.view.id===i.view.id);if(y!==-1){const F=this.childViews[y];this.childViews.splice(y,1),F.view.id&&(this.componentSpecificFilters.delete(F.view.id),console.log(`Cleaned specific filters for component ${F.view.id}`));const K=F.grid,L=F.page,w=document.querySelector(`[gs-id="${F.view.id}"]`);if(K&&w&&(K.removeWidget(w),L)){const t=L.items.findIndex(v=>v.id===F.view.id);t!==-1&&(L.items.splice(t,1),L.items.length===0&&li.emit("empty-page",L))}}}updateView({view:i,dynamicFilters:y,filtersJSON:F}){this.dynamicFilters=y;const K=this.childViews.find(L=>L.view.id===i.view.id);if(K){K.view.filtersJSON=F,K.view.coreView&&(K.view.coreView.filtersJSON=F);let L=y;if(this.viewId===4){const w=this.getComponentDynamicFilters(i.view.id);w&&(L=w,console.log(`Timeline updateView - using specific filters for component ${i.view.id}:`,L))}else if(this.viewId===8){const w=this.getComponentDynamicFilters(i.view.id);w&&(L=w,console.log(`FieldPosesion updateView - using specific filters for component ${i.view.id}:`,L))}else if(this.viewId===3){const w=this.getComponentDynamicFilters(i.view.id);console.log(`GSCMatchSummary updateView - component ${i.view.id}:`,{componentSpecificFilters:w,dynamicFilters:y,willUseSpecific:!!w}),w?(L=w,console.log(`GSCMatchSummary updateView - using specific filters for component ${i.view.id}:`,L)):console.log("GSCMatchSummary updateView - no specific filters found, using dynamicFilters:",L)}this.viewId===5?this.updateVolumetricField(K,L):this.viewId===7?this.updateGoalData(K,L):this.viewId===9?this.updateFieldDataByZones(K,L):this.viewId===10?this.updateXg(K,L):this.viewId===3?this.updateMatchSummary(K,L):this.viewId===4?this.updateTimeline(K,L):this.viewId===8?this.updateFieldPosesion(K,L):this.viewId===1?this.updateComparative(K,L):this.viewId===2&&this.updateGSCtops(K,L)}else console.log("viewToUpdate not found")}updateComparative(i,y){if(console.log("update comparative",y),i.view.componentProps){const F=y[0]||"";i.view.componentProps.type=F,i.view.filterMultiple={category:F}}}updateVolumetricField(i,y){i.view.componentProps&&(i.view.isHomeTeam=y[0]===1,i.view.componentProps.preMatchType=y[0]||1)}updateGoalData(i,y){if(i.view.componentProps){const F=y[0]===1;i.view.componentProps.isHomeTeamForAnalysis=F,i.view.isHomeTeam=F,i.view.componentProps.analysisType=y[0]===1?"offensive":"defensive"}}updateFieldDataByZones(i,y){if(i.view.componentProps){const F=y[0],K=y[1]===1;if(i.view.componentProps.isHomeTeamForAnalysis=K,i.view.isHomeTeam=K,F&&F.length){const L=F.join("-"),w=Up.get(this.viewId).analysisTypes.get(L).analysisType;w&&(i.view.componentProps.analysisType=w,i.view.title=Up.get(this.viewId).analysisTypes.get(w).title)}}}updateXg(i,y){i.view.componentProps&&(i.view.isHomeTeam=y[0]===1,i.view.componentProps.isHomeTeamForAnalysis=y[0]||1)}updateMatchSummary(i,y){if(i.view.componentProps){i.view.componentProps._isReactive||(i.view.componentProps=p.reactive(i.view.componentProps),i.view.componentProps._isReactive=!0);const F=y&&y.length>0?y[0]:!1;i.view.componentProps.desplegable=F,i.view.componentProps.key=F,li.emit("component-props-updated",{viewId:i.view.id,componentProps:i.view.componentProps,dynamicFilters:y}),li.emit("dynamic-filters-changed",{containerViewId:this.viewId,viewId:i.view.id,dynamicFilters:y})}}updateTimeline(i,y){if(i.view.componentProps){i.view.componentProps._isReactive||(i.view.componentProps=p.reactive(i.view.componentProps),i.view.componentProps._isReactive=!0);const F=this.getComponentDynamicFilters(i.view.id),K=F||y,L=K&&K.length>0?K[0]:[];i.view.componentProps.selectedEvents=L,i.view.componentProps.key=L.length>0;const w=this.hasEventTypeId(L,1),t=this.hasCategoryId(L,8),v=this.hasCategoryId(L,9),d=this.hasEventTypeId(L,3);console.log("Timeline update - Events check:",{goals:w,yellowCards:t,redCards:v,substitutions:d,selectedEvents:L,componentId:i.view.id,usingSpecificFilters:!!F}),i.view.componentProps.goals=w,i.view.componentProps.yellowCards=t,i.view.componentProps.redCards=v,i.view.componentProps.substitutions=d,i.view.componentProps._updateKey=Date.now(),li.emit("component-props-updated",{viewId:i.view.id,componentProps:i.view.componentProps,dynamicFilters:K}),li.emit("dynamic-filters-changed",{containerViewId:this.viewId,viewId:i.view.id,dynamicFilters:K}),li.emit("force-component-update",{itemId:i.view.id,componentProps:i.view.componentProps})}}updateFieldPosesion(i,y){if(i.view.componentProps){i.view.componentProps._isReactive||(i.view.componentProps=p.reactive(i.view.componentProps),i.view.componentProps._isReactive=!0);const F=y&&y.length>0?y[0]:!1;i.view.componentProps.areInactiveVisible=F,i.view.componentProps.key=F,li.emit("component-props-updated",{viewId:i.view.id,componentProps:i.view.componentProps,dynamicFilters:y}),li.emit("dynamic-filters-changed",{containerViewId:this.viewId,viewId:i.view.id,dynamicFilters:y})}}updateGSCtops(i,y){if(console.log("updateGSCtops",y),i.view.componentProps){const F=y[0]||[];if(Array.isArray(F)){if(console.log("GSCtops updateGSCtops (array mode) - skipping removal logic to prevent cross-page deletions"),F.length>0){const K=F[0];let L=null;try{L=ih(K)}catch(w){console.warn("Error getting category by ID:",w)}i.view.filterMultiple={categoryId:K},i.view.componentProps.categoryView=L?[{id:K,name:L.name}]:[{id:K,name:`Category ${K}`}]}}else{const K=F;if(K){let L=null;try{L=ih(K)}catch(w){console.warn("Error getting category by ID:",w)}i.view.filterMultiple={categoryId:K},i.view.componentProps.categoryView=L?[{id:K,name:L.name}]:[{id:K,name:`Category ${K}`}]}}}}}const Zse={class:"template-page__header"},Kse={class:"template-page__header__name"},Yse=["value"],Qse={class:"template-page__header__details"},$se={class:"template-page__header__details__teams"},ele={class:"template-page__header__details__teams__team"},tle={key:0,class:"template-page__header__details__teams__team__logo"},rle=["src"],nle={key:1,width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ale={class:"template-page__header__details__teams__team"},ile={key:0,class:"template-page__header__details__teams__team__logo"},ole=["src"],sle={key:1,width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lle={class:"template-page__content"},cle=["id"],ule=["gs-id","gs-x","gs-y","gs-w","gs-h","gs-max-w","gs-max-h","gs-min-w","gs-min-h","gs-no-resize","gs-no-move","gs-auto-position"],dle=p.defineComponent({__name:"TemplateReportPage",props:{token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},game:{type:Object,default:()=>null},lastGames:{type:Array,default:()=>null},id:{type:[String,Number],default:()=>String(Date.now())},page:{type:Object,default:()=>({title:"Page 1",items:[{name:"Tabla jugadores",id:`w-${String(Date.now())}`,x:0,y:0,w:4,h:4,maxWidth:4,maxHeight:4,noResize:!1,noMove:!1,componentProps:{}}]})},isPostMatch:{type:Boolean,default:!1},isTemplateMode:{type:Boolean,default:!1},isFilterVisible:{type:Boolean,default:!1}},emits:["intersection-changed","delete-page","change-sort","edit-view","view-changed","component-props-updated","delete-view","dynamic-filters-changed"],setup(r,{emit:i}){var y,F;const K=p.ref(null);let L=null;const w=r,t=p.ref(!1),v=i,d=p.computed(()=>w.page.items.reduce((P,A)=>(P.set(A.id,A),P),new Map)),e=p.computed(()=>{var P,A,T,O;return w.game&&w.game.homeTeam&&w.game.awayTeam?{homeTeam:{name:((P=w.game.homeTeam)==null?void 0:P.acronym)||"LOC",logo:((A=w.game.homeTeam)==null?void 0:A.logo)||null},awayTeam:{name:((T=w.game.awayTeam)==null?void 0:T.acronym)||"VIS",logo:((O=w.game.awayTeam)==null?void 0:O.logo)||null}}:{homeTeam:{name:"LOC"},awayTeam:{name:"VIS"}}});let x=null,m=null,b=!1,h=null;function n(){b=!0,h&&clearTimeout(h),h=setTimeout(()=>{b=!1},150)}function a(){const P={root:null,rootMargin:"0px",threshold:.7};x=new IntersectionObserver(O=>{O.forEach(_=>{b||(m&&clearTimeout(m),m=setTimeout(()=>{v("intersection-changed",_.isIntersecting)},50))})},P);const A=K.value;A&&x.observe(A);const T=document.querySelector(".container-main");T&&T.addEventListener("scroll",n,{passive:!0})}function u(){v("view-changed")}const s={game_id:0,season_id:0,prematch:!1},l={gameId:90209,id:90209,seasonId:1909,regularSeasonId:1909,matchday_name:"Matchday 1",status:1,score:[1,3],game_status:1,dateTimeUTC:"2024-09-05T22:00:00Z",homeTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/2936.png",team_id:2936,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/2936.png",colloquial_name:"Guyana",acronym:"GUY",team_name:"Guyana"},awayTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/3279.png",team_id:3279,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/3279.png",colloquial_name:"Surinam",acronym:"SUR",team_name:"Surinam"},is_live:0,minutes:{home_goals_minutes:[],visiting_goals_minutes:[],home_yellow_cards_minutes:[],away_yellow_cards_minutes:[],home_red_cards_minutes:[],away_red_cards_minutes:[]}},f=new Map([[5,{component:Ox,componentName:"GSCVolumetricField",props:{isGamePreMatch:!w.isPostMatch,areTeamsVisible:!1,isTitleVisible:!1,isGhostEffect:w.isTemplateMode,isTemplateMode:w.isTemplateMode}}],[2,{component:Tw,componentName:"GscTopPlayer",props:{categoryView:[{id:0,name:"Category"}],gamed:w.game?w.game.id:l.gameId,game:w.game,season:w.game?(y=w==null?void 0:w.game)==null?void 0:y.season_id:l.seasonId,teamView:0,useDummyData:w.isTemplateMode}}],[8,{component:E3,componentName:"FieldPosesion",props:{widthSection:600,game:l,teamSelected:{teamId:0},areInactiveVisible:!0,showTitle:!1,isDefault:!0,key:!1}}],[6,{component:L4,componentName:"GSCLineupsReports",props:{selectedOption:w.isPostMatch?"Postmatch":"Prematch",game:s,gamehome:s,gameaway:s}}],[3,{component:M3,componentName:"GSCMatchSummary",props:{game:l,defaultShields:!0,desplegable:!1}}],[4,{component:p5,componentName:"GSCTimelineReports",props:{key:!0,isDefault:!0,gameId:l.gameId,homeTeam:l.homeTeam.team_id,awayTeam:l.awayTeam.team_id,token:w.token,goals:!0,yellowCards:!0,redCards:!0,substitutions:!0}}],[7,{component:v6,componentName:"GSCGoalData",props:{game:w.game,isHomeTeamForAnalysis:!0,canInteract:!1,canPlayVideos:!1,isPreMatch:!w.isPostMatch,analysisType:1}}],[9,{component:P4,componentName:"GSCFieldDataByZones",props:{game:w.game,isHomeTeamForAnalysis:!0,analysisType:"successfulPasses",canPlayVideos:!1,isPreMatch:!w.isPostMatch}}],[10,{component:C6,componentName:"GSCGameXg",props:{game:w.game,isHomeTeamForAnalysis:!0,isPostMatch:w.isPostMatch}}],[1,{component:m6,componentName:"GSCComparativeReports",props:{gameId:w.game?w.game.id:"",homeLogo:w.game?w.game.homeTeam.logo:"",awayLogo:w.game?w.game.awayTeam.logo:"",seasonId:w.game?(F=w==null?void 0:w.game)==null?void 0:F.season_id:0,typeGame:w.isPostMatch,type:"stoppedBall",default:w.isTemplateMode}}]]);function g(P){if(P)if(typeof P=="string"){let A=null;switch(P){case"GSCVolumetricField":A=Ox;break;case"GSCGoalData":A=v6;break;case"GscTopPlayer":A=Tw;break;case"FieldPosesion":A=E3;break;case"GSCLineupsReports":A=L4;break;case"GSCMatchSummary":A=M3;break;case"GSCTimelineReports":A=p5;break;case"GSCFieldDataByZones":A=P4;break;case"GSCGameXg":A=C6;break;case"GSCComparativeReports":A=m6;break;default:A=null}return A}else return P;return null}function k({pageId:P,view:A,filterAndWidgetContainer:T,applyMinimumSize:O=!1}){if(w.page.id===P&&L){const _={w:O?A.min_column:A.colspan,h:O?A.min_row:A.rowspan};if(L.willItFit(0,0,_.w,_.h,!0)){const R=L.addWidget(_),I=Number(R.getAttribute("gs-x")||0),V=Number(R.getAttribute("gs-y")||0);L.removeWidget(R);const j=f.get(A.id),G=p.reactive({...JSON.parse(JSON.stringify(j.props))||{},_isReactive:!0}),q=p.reactive({pageId:P,grid:L,page:w.page,view:{name:A.name,title:A.title,id:`w-${String(Date.now())}`,x:I,y:V,w:_.w,h:_.h,maxWidth:A.max_column,maxHeight:A.max_row,minWidth:A.min_column,minHeight:A.min_row,componentName:j.componentName,componentProps:G,pageId:P,coreView:A}});T.addView(q),li.emit("add-page-view",q)}else li.emit("add-page-and-view",{pageId:P,view:A,filterAndWidgetContainer:T})}}function E(P){if(L){const A=document.querySelector(`[gs-id="${P.id}"]`);A&&(L.removeWidget(A),v("delete-view",P))}v("view-changed")}function S(P){if(!P.filterAndViewsContainer&&P.coreView){const A=new ay(`FAWC-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,[P],P.coreView.id,P.dynamicFilters||[],w.isPostMatch,w.isTemplateMode,P.filtersJSON);P.filterAndViewsContainer=A}v("edit-view",P)}function M(){v("delete-page",w.page)}function N(){li.emit("change-sort",w.page)}const C=function(){li.off("add-view",k),li.off("force-component-update"),li.off("component-props-updated"),li.off("dynamic-filters-changed");const P=document.querySelector(".container-main");P&&P.removeEventListener("scroll",n),m&&clearTimeout(m),h&&clearTimeout(h)};return li.on("add-view",k),li.on("force-component-update",P=>{if(b)return;const A=w.page.items.find(T=>T.id===P.itemId);A&&(Object.assign(A.componentProps,P.componentProps),A._updateKey=Date.now())}),li.on("component-props-updated",P=>{if(b)return;const A=w.page.items.find(T=>T.id===P.viewId);A&&(Object.assign(A.componentProps,P.componentProps),A._updateKey=Date.now())}),li.on("dynamic-filters-changed",P=>{if(b)return;const A=w.page.items.find(T=>T.id===P.viewId);A&&(Object.assign(A.componentProps,P.componentProps||{}),A._updateKey=Date.now())}),p.onMounted(async()=>{await p.nextTick(),L=qa.init({column:12,row:12,maxRow:12,cellHeight:60,float:!0,resizable:{handles:"e, se, s, sw, w"}},`#grid-stack-${w.id}`),L.on("change",(P,A)=>{const T=A[0];if(T){const O=d.value.get(T.id);O&&(O.x=T.x,O.y=T.y,O.w=T.w,O.h=T.h,v("view-changed"))}}),a(),w.page.grid=L,w.page.offListeners=C}),p.onUnmounted(()=>{x&&x.disconnect(),C(),m&&clearTimeout(m),h&&clearTimeout(h)}),(P,A)=>(p.openBlock(),p.createElementBlock("div",{ref_key:"templatePage",ref:K,class:"template-page"},[p.createElementVNode("div",Zse,[t.value?(p.openBlock(),p.createBlock(A6,{key:0,"options-type":"page",onClick:A[0]||(A[0]=p.withModifiers(T=>t.value=!1,["self"])),onMouseleave:A[1]||(A[1]=T=>t.value=!1),onCloseTooltip:A[2]||(A[2]=T=>t.value=!1),onDeletePage:M,onChangeSort:N})):p.createCommentVNode("",!0),p.createElementVNode("div",Kse,[A[4]||(A[4]=p.createElementVNode("div",null,[p.createElementVNode("svg",{width:"19",height:"21",viewBox:"0 0 19 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("path",{d:"M11.2986 12.9994C7.62909 14.8341 4.11744 16.0178 1.35547 16.4518L9.18763 20.0029C9.34545 20.0818 9.60192 20.0818 9.74002 20.0029L17.8878 16.3137C18.0457 16.2348 18.164 16.0572 18.164 15.8797V8.75781C16.2898 10.2177 13.9422 11.6776 11.2986 12.9994Z",fill:"white"}),p.createElementVNode("path",{d:"M4.7152 8.89735C4.7152 8.89735 10.9494 3.76802 16.8482 1.20335C15.0529 0.946887 11.3637 0.43395 9.3711 0.453678C4.41928 0.493135 1.06546 1.34145 1.06546 1.34145C0.90763 1.3809 0.769531 1.55846 0.769531 1.71629V8.12795C3.01857 6.56942 5.34651 5.56329 5.34651 5.56329C5.34651 5.56329 2.72264 7.06263 0.769531 8.81844V9.41028V14.1648C3.09748 13.9675 6.62886 12.7641 10.3575 10.7321C13.6719 8.91707 16.4733 6.84562 18.17 5.05035V2.40677C14.3032 3.37346 4.7152 8.89735 4.7152 8.89735Z",fill:"white"})])],-1)),A[5]||(A[5]=p.createElementVNode("div",{class:"separator"},null,-1)),p.createElementVNode("input",{value:r.page.title,type:"text",class:"page-title-input",onclick:"this.select()",onInput:u},null,40,Yse)]),p.createElementVNode("div",Qse,[p.createElementVNode("div",$se,[p.createElementVNode("div",ele,[e.value.homeTeam.logo?(p.openBlock(),p.createElementBlock("div",tle,[p.createElementVNode("img",{src:e.value.homeTeam.logo,alt:"Home Team Logo",width:"25",height:"25"},null,8,rle)])):(p.openBlock(),p.createElementBlock("svg",nle,A[6]||(A[6]=[p.createElementVNode("path",{opacity:"0.4",d:"M12.0153 0.261719C12.0153 0.261719 13.6664 1.94994 17.7355 2.06744C21.149 2.16638 22.3796 1.30063 22.3796 1.30063C22.3796 1.30063 25.4902 10.2488 20.3822 17.7005C17.6983 21.615 12.5533 24.1504 12.0091 24.2617C11.4711 24.1504 6.31984 21.615 3.636 17.7005C-1.4596 10.2488 1.65094 1.30063 1.65094 1.30063C1.65094 1.30063 2.88155 2.16638 6.2951 2.06744C10.3642 1.94994 12.0153 0.261719 12.0153 0.261719Z",fill:"#54728B"},null,-1)]))),p.createElementVNode("span",null,p.toDisplayString(e.value.homeTeam.name),1)]),A[8]||(A[8]=p.createElementVNode("div",{class:"template-page__header__details__teams__vs"}," VS ",-1)),p.createElementVNode("div",ale,[p.createElementVNode("span",null,p.toDisplayString(e.value.awayTeam.name),1),e.value.awayTeam.logo?(p.openBlock(),p.createElementBlock("div",ile,[p.createElementVNode("img",{src:e.value.awayTeam.logo,alt:"Away Team Logo",width:"25",height:"25"},null,8,ole)])):(p.openBlock(),p.createElementBlock("svg",sle,A[7]||(A[7]=[p.createElementVNode("path",{opacity:"0.4",d:"M12.0153 0.261719C12.0153 0.261719 13.6664 1.94994 17.7355 2.06744C21.149 2.16638 22.3796 1.30063 22.3796 1.30063C22.3796 1.30063 25.4902 10.2488 20.3822 17.7005C17.6983 21.615 12.5533 24.1504 12.0091 24.2617C11.4711 24.1504 6.31984 21.615 3.636 17.7005C-1.4596 10.2488 1.65094 1.30063 1.65094 1.30063C1.65094 1.30063 2.88155 2.16638 6.2951 2.06744C10.3642 1.94994 12.0153 0.261719 12.0153 0.261719Z",fill:"#54728B"},null,-1)])))])]),r.isTemplateMode&&!r.isFilterVisible?(p.openBlock(),p.createElementBlock("div",{key:0,class:"template-page__header__details__options",onClick:A[3]||(A[3]=T=>t.value=!0)},A[9]||(A[9]=[p.createElementVNode("svg",{width:"17",height:"13",viewBox:"0 0 17 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("path",{d:"M3.56953 6.28672C3.56953 7.19972 2.83253 7.93672 1.91953 7.93672C1.00653 7.93672 0.269531 7.19972 0.269531 6.28672C0.269531 5.37372 1.00653 4.63672 1.91953 4.63672C2.83253 4.63672 3.56953 5.37372 3.56953 6.28672ZM8.51953 4.63672C7.60653 4.63672 6.86953 5.37372 6.86953 6.28672C6.86953 7.19972 7.60653 7.93672 8.51953 7.93672C9.43253 7.93672 10.1695 7.19972 10.1695 6.28672C10.1695 5.37372 9.43253 4.63672 8.51953 4.63672ZM15.1195 4.63672C14.2065 4.63672 13.4695 5.37372 13.4695 6.28672C13.4695 7.19972 14.2065 7.93672 15.1195 7.93672C16.0325 7.93672 16.7695 7.19972 16.7695 6.28672C16.7695 5.37372 16.0325 4.63672 15.1195 4.63672Z",fill:"white"})],-1)]))):p.createCommentVNode("",!0)])]),p.createElementVNode("div",lle,[p.createElementVNode("div",{id:`grid-stack-${r.id}`,class:"grid-stack"},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.page.items,T=>{var O,_,R;return p.openBlock(),p.createElementBlock("div",{class:"grid-stack-item",key:T.id,"gs-id":T.id,"gs-x":T.x,"gs-y":T.y,"gs-w":T.w,"gs-h":T.h,"gs-max-w":T.maxWidth,"gs-max-h":T.maxHeight,"gs-min-w":T.minWidth,"gs-min-h":T.minHeight,"gs-no-resize":!r.isTemplateMode,"gs-no-move":!w.isTemplateMode,"gs-auto-position":T.x===0&&T.y===0},[p.createElementVNode("div",{class:p.normalizeClass(["grid-stack-item-content",{"is-selected":T.isSelected}])},[p.createVNode(Bse,{title:T.title,"is-template-mode":r.isTemplateMode,game:r.game,lastGames:r.lastGames,"is-home-team":(O=T.componentProps)!=null&&O.preMatchType?((_=T.componentProps)==null?void 0:_.preMatchType)===1:T.isHomeTeam,"is-filter-visible":r.isFilterVisible,"view-id":((R=T==null?void 0:T.coreView)==null?void 0:R.id)||0,onEdit:I=>S(T),onDelete:I=>E(T)},{default:p.withCtx(()=>[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(g(T.componentName)),p.mergeProps({ref_for:!0},T.componentProps,{key:`${T.id}-${T._updateKey||Date.now()}`}),null,16))]),_:2},1032,["title","is-template-mode","game","lastGames","is-home-team","is-filter-visible","view-id","onEdit","onDelete"])],2)],8,ule)}),128))],8,cle)])],512))}}),hle=zd(dle,[["__scopeId","data-v-69afd78a"]]),ple={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},fle={class:"cover__title-subtitle"},mle={class:"cover__title-subtitle__title"},gle={class:"cover__title-subtitle__subtitle"},yle={key:0,class:"cover-type-one"},vle={class:"team-info-one"},ble={class:"team-data"},xle={key:0,class:"team-logo"},_le=["src"],wle={key:1,width:"160",height:"161",viewBox:"0 0 160 161",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Tle=["fill","opacity"],kle={class:"team-name"},Sle={key:0,class:"team-events"},Ele={class:"score-one"},Cle={key:0},Ale={class:"team-info-one"},Mle={class:"team-data"},Lle={key:0,class:"team-logo"},Ple=["src"],Nle={key:1,width:"161",height:"161",viewBox:"0 0 161 161",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ole=["fill","opacity"],Rle={class:"team-name"},zle={key:0,class:"team-events"},Dle={key:1,class:"cover-type-two"},Ile={class:"team-data"},Fle={class:"team-info"},Ble={key:0,class:"team-logo"},Vle=["src"],Ule={key:1,width:"160",height:"161",viewBox:"0 0 160 161",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jle=["fill","opacity"],qle={key:2,class:"team-score-two"},Wle={key:0,class:"team-goals"},Gle={class:"team-data"},Xle={class:"team-info"},Hle={key:0,class:"team-score-two"},Jle={key:1,class:"team-logo"},Zle=["src"],Kle={key:2,width:"161",height:"161",viewBox:"0 0 161 161",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yle=["fill","opacity"],Qle={key:0,class:"team-goals"},$le={__name:"CoverPage",props:{game:{type:Object,default:()=>null},coverId:{type:Number,default:1},isPostMatch:{type:Boolean,default:!0}},emits:["intersection-changed"],setup(r,{emit:i}){const y=r,F=i,K=p.ref(null),L=p.computed(()=>[1,2].includes(y.coverId)),w=p.computed(()=>[1,3].includes(y.coverId)),t=p.computed(()=>y.coverId===1?{homeTeam:"#1558CC",awayTeam:"#0046BF",opacity:1}:y.coverId===3?{homeTeam:"#000A1A",awayTeam:"#000A1A",opacity:.4}:{homeTeam:"#576883",awayTeam:"#576883",opacity:.4}),v=p.computed(()=>y.game&&y.game.score?y.game.score:["0","0"]),d=p.computed(()=>{var k,E,S,M,N,C,P,A;if(y.game&&y.game.homeTeam&&y.game.awayTeam){const T={homeTeam:{name:((k=y.game.homeTeam)==null?void 0:k.acronym)||"LOC",logo:((E=y.game.homeTeam)==null?void 0:E.logo)||null},awayTeam:{name:((S=y.game.awayTeam)==null?void 0:S.acronym)||"VIS",logo:((M=y.game.awayTeam)==null?void 0:M.logo)||null}};return L.value?(T.homeTeam.goalsMinutes=n(y.game.minutes.home_goals_minutes),T.homeTeam.totalYellowCards=((N=y.game.minutes.home_yellow_cards_minutes)==null?void 0:N.length)||0,T.homeTeam.totalRedCards=((C=y.game.minutes.home_red_cards_minutes)==null?void 0:C.length)||0,T.awayTeam.goalsMinutes=n(y.game.minutes.visiting_goals_minutes),T.awayTeam.totalYellowCards=((P=y.game.minutes.away_yellow_cards_minutes)==null?void 0:P.length)||0,T.awayTeam.totalRedCards=((A=y.game.minutes.away_red_cards_minutes)==null?void 0:A.length)||0):(T.homeTeam.goalsEvents=h(y.game.report_minutes.home_goals_minutes),T.awayTeam.goalsEvents=h(y.game.report_minutes.visiting_goals_minutes)),T}return{homeTeam:{name:"LOC",logo:null,goalsMinutes:"00'",totalYellowCards:0,totalRedCards:0,goalsEvents:[{playerName:"Nombre",goalTime:"00'"}]},awayTeam:{name:"VIS",logo:null,goalsMinutes:"00'",totalYellowCards:0,totalRedCards:0,goalsEvents:[{playerName:"Nombre",goalTime:"00'"}]}}}),e=p.computed(()=>({"--background-image":w.value?"url(https://golstatsimages.blob.core.windows.net/report-maker/background-postmatch-template-01@2x.jpg)":"url(https://golstatsimages.blob.core.windows.net/report-maker/background-postmatch-template-02@2x.jpg)","--grid-template-columns-type-one":y.isPostMatch?"1fr min-content 1fr":"320px min-content 320px","--width-type-one":y.isPostMatch?"100%":"fit-content","--grid-template-columns-type-two":y.isPostMatch?"1fr min-content 1fr":"320px min-content 320px","--width-type-two":y.isPostMatch?"100%":"fit-content"})),x=p.computed(()=>y.isPostMatch?"Postmatch":"Prematch"),m=["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],b=p.computed(()=>{if(y.game){let k=ple[y.game.matchday_abbreviation];k||(k=y.game.matchday_abbreviation.replace("M","J"));const[E,S,M]=y.game.date.split("-");return`${k} - ${M} ${m[Number(S)-1]}, ${E}`}return"Jornada - Día 00 Mes"});function h(k){return!k||!Array.isArray(k)||k.length===0?"":(console.log("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"),console.log("goalsDetails",k),k.map(E=>{const S=E.split(", ");let M=S[0].replace("'","");M=M.replace("+",""),M=M.replace("’",""),console.log("playerGoalsArray",S);const N=M.split(" "),{strings:C,numbers:P}=N.reduce((O,_)=>(isNaN(Number(_))?O.strings.push(_):O.numbers.push(_),O),{strings:[],numbers:[]}),A=C.join(" "),T=P.length===1?`${P[0]}'`:`${P[0]}' ${P.slice(1).join(" + ")}'`;return{playerName:A,goalTime:S.length===1?T:`${T}, ${S.reduce((O,_,R)=>R===0?O:`${O}${_}${R<S.length-1?", ":""}`,"")}`}}))}function n(k){return!k||!Array.isArray(k)||k.length===0?"":k.reduce((E,S,M)=>{const N=S.split(" ");let C="";return N.length===3?C=N[2]:N.length===5&&(C=`${N[2]} ${N[3]} ${N[4]}`),C&&(E+=`${C}${M<k.length-1?", ":""}`),E},"")}let a=null,u=null,s=!1,l=null;function f(){s=!0,l&&clearTimeout(l),l=setTimeout(()=>{s=!1},150)}function g(){const k={root:null,rootMargin:"0px",threshold:.7};a=new IntersectionObserver(M=>{M.forEach(N=>{s||(u&&clearTimeout(u),u=setTimeout(()=>{F("intersection-changed",N.isIntersecting)},50))})},k);const E=K.value;E&&a.observe(E);const S=document.querySelector(".container-main");S&&S.addEventListener("scroll",f,{passive:!0})}return p.onMounted(()=>{g()}),p.onUnmounted(()=>{a&&a.disconnect();const k=document.querySelector(".container-main");k&&k.removeEventListener("scroll",f),u&&clearTimeout(u),l&&clearTimeout(l)}),(k,E)=>(p.openBlock(),p.createElementBlock("div",{ref_key:"coverPage",ref:K,class:"cover",style:p.normalizeStyle(e.value)},[p.createElementVNode("div",fle,[p.createElementVNode("div",mle,[E[0]||(E[0]=p.createElementVNode("div",null,"Análisis",-1)),p.createElementVNode("div",null,p.toDisplayString(x.value),1)]),p.createElementVNode("div",gle,p.toDisplayString(b.value),1)]),L.value?(p.openBlock(),p.createElementBlock("div",yle,[p.createElementVNode("div",vle,[p.createElementVNode("div",ble,[d.value.homeTeam.logo?(p.openBlock(),p.createElementBlock("div",xle,[p.createElementVNode("img",{src:d.value.homeTeam.logo||"/default-logo.png",alt:"Team 1 Logo"},null,8,_le)])):(p.openBlock(),p.createElementBlock("svg",wle,[p.createElementVNode("path",{d:"M80.0068 0.953125C80.0068 0.953125 91.0143 12.208 118.141 12.9913C140.898 13.6509 149.102 7.87917 149.102 7.87917C149.102 7.87917 169.839 67.5339 135.786 117.212C117.894 143.308 83.5935 160.211 79.9656 160.953C76.3789 160.211 42.0372 143.308 24.1449 117.212C-9.8257 67.5339 10.9112 7.87917 10.9112 7.87917C10.9112 7.87917 19.1153 13.6509 41.8723 12.9913C68.9993 12.208 80.0068 0.953125 80.0068 0.953125Z",fill:t.value.homeTeam,opacity:t.value.opacity},null,8,Tle)])),p.createElementVNode("div",kle,p.toDisplayString(d.value.homeTeam.name),1)]),r.isPostMatch?(p.openBlock(),p.createElementBlock("div",Sle,[E[1]||(E[1]=p.createStaticVNode('<svg class="ball" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-f88a509b><path fill-rule="evenodd" clip-rule="evenodd" d="M10.0268 2.83594C6.09038 2.83594 2.89844 6.01986 2.89844 9.94705C2.89844 13.8742 6.09038 17.0582 10.0268 17.0582C13.9632 17.0582 17.1551 13.8742 17.1551 9.94705C17.1551 6.01986 13.9632 2.83594 10.0268 2.83594V2.83594Z" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path fill-rule="evenodd" clip-rule="evenodd" d="M8.0826 12.9597L6.87109 9.2304L10.0401 6.92578L13.2097 9.2304L11.9995 12.9597H8.0826Z" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M12.7277 3.39453L10.0276 4.54375L7.32812 3.39453" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M4.65662 5.34766L4.91603 8.27341L2.98828 10.4871" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M4.01562 13.6523L6.87533 14.3093L8.38436 16.8279" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M11.7031 16.8213L13.2109 14.3015L16.0697 13.6445" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M17.1051 10.4865L15.1758 8.27156L15.4349 5.34766" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M10.0456 4.54688V6.92693" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M13.2109 9.32248L15.1681 8.27344" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M11.9961 12.9609L13.2064 14.3086" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M8.08198 12.9609L6.87109 14.3099" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M4.91797 8.27344L6.87609 9.22818" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path></svg>',1)),p.createElementVNode("div",null,p.toDisplayString(d.value.homeTeam.goalsMinutes),1),E[2]||(E[2]=p.createElementVNode("div",{class:"separator"},null,-1)),E[3]||(E[3]=p.createElementVNode("svg",{class:"card",width:"10",height:"14",viewBox:"0 0 10 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("rect",{x:"0.367188",y:"0.09375",width:"9.14286",height:"13.7143",rx:"2.28571",fill:"#F7C330"})],-1)),p.createElementVNode("div",null,p.toDisplayString(d.value.homeTeam.totalYellowCards),1),E[4]||(E[4]=p.createElementVNode("svg",{class:"card",width:"10",height:"14",viewBox:"0 0 10 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("rect",{x:"0.109375",y:"0.09375",width:"9.14286",height:"13.7143",rx:"1.82857",fill:"#FF0000"})],-1)),p.createElementVNode("div",null,p.toDisplayString(d.value.homeTeam.totalRedCards),1)])):p.createCommentVNode("",!0)]),p.createElementVNode("div",Ele,[r.isPostMatch?(p.openBlock(),p.createElementBlock("div",Cle,p.toDisplayString(v.value[0])+" : "+p.toDisplayString(v.value[1]),1)):p.createCommentVNode("",!0)]),p.createElementVNode("div",Ale,[p.createElementVNode("div",Mle,[d.value.awayTeam.logo?(p.openBlock(),p.createElementBlock("div",Lle,[p.createElementVNode("img",{src:d.value.awayTeam.logo||"/default-logo.png",alt:"Team 2 Logo"},null,8,Ple)])):(p.openBlock(),p.createElementBlock("svg",Nle,[p.createElementVNode("path",{d:"M80.8504 0.953125C80.8504 0.953125 92.9822 3.39499 119.261 10.1779C144.106 16.5733 152.827 19.1314 152.827 19.1314C152.827 19.1314 156.936 44.2089 145.657 90.5655C136.548 127.969 106.742 152.038 80.8504 160.953C54.9977 152.038 25.1527 128.007 16.0442 90.5655C4.8039 44.2477 8.91243 19.1314 8.91243 19.1314C8.91243 19.1314 17.6334 16.5733 42.4783 10.1779C68.7574 3.39499 80.8504 0.953125 80.8504 0.953125Z",fill:t.value.awayTeam,opacity:t.value.opacity},null,8,Ole)])),p.createElementVNode("div",Rle,p.toDisplayString(d.value.awayTeam.name),1)]),r.isPostMatch?(p.openBlock(),p.createElementBlock("div",zle,[p.createElementVNode("div",null,p.toDisplayString(d.value.awayTeam.totalYellowCards),1),E[5]||(E[5]=p.createElementVNode("svg",{width:"10",height:"14",viewBox:"0 0 10 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("rect",{x:"0.367188",y:"0.09375",width:"9.14286",height:"13.7143",rx:"2.28571",fill:"#F7C330"})],-1)),p.createElementVNode("div",null,p.toDisplayString(d.value.awayTeam.totalRedCards),1),E[6]||(E[6]=p.createElementVNode("svg",{width:"10",height:"14",viewBox:"0 0 10 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("rect",{x:"0.109375",y:"0.09375",width:"9.14286",height:"13.7143",rx:"1.82857",fill:"#FF0000"})],-1)),E[7]||(E[7]=p.createElementVNode("div",{class:"separator"},null,-1)),p.createElementVNode("div",null,p.toDisplayString(d.value.awayTeam.goalsMinutes),1),E[8]||(E[8]=p.createStaticVNode('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-f88a509b><path fill-rule="evenodd" clip-rule="evenodd" d="M10.0268 2.83594C6.09038 2.83594 2.89844 6.01986 2.89844 9.94705C2.89844 13.8742 6.09038 17.0582 10.0268 17.0582C13.9632 17.0582 17.1551 13.8742 17.1551 9.94705C17.1551 6.01986 13.9632 2.83594 10.0268 2.83594V2.83594Z" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path fill-rule="evenodd" clip-rule="evenodd" d="M8.0826 12.9597L6.87109 9.2304L10.0401 6.92578L13.2097 9.2304L11.9995 12.9597H8.0826Z" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M12.7277 3.39453L10.0276 4.54375L7.32812 3.39453" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M4.65662 5.34766L4.91603 8.27341L2.98828 10.4871" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M4.01562 13.6523L6.87533 14.3093L8.38436 16.8279" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M11.7031 16.8213L13.2109 14.3015L16.0697 13.6445" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M17.1051 10.4865L15.1758 8.27156L15.4349 5.34766" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M10.0456 4.54688V6.92693" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M13.2109 9.32248L15.1681 8.27344" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M11.9961 12.9609L13.2064 14.3086" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M8.08198 12.9609L6.87109 14.3099" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M4.91797 8.27344L6.87609 9.22818" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path></svg>',1))])):p.createCommentVNode("",!0)])])):(p.openBlock(),p.createElementBlock("div",Dle,[p.createElementVNode("div",Ile,[p.createElementVNode("div",Fle,[d.value.homeTeam.logo?(p.openBlock(),p.createElementBlock("div",Ble,[p.createElementVNode("img",{src:d.value.homeTeam.logo||"/default-logo.png",alt:"Team 1 Logo"},null,8,Vle)])):(p.openBlock(),p.createElementBlock("svg",Ule,[p.createElementVNode("path",{d:"M80.0068 0.953125C80.0068 0.953125 91.0143 12.208 118.141 12.9913C140.898 13.6509 149.102 7.87917 149.102 7.87917C149.102 7.87917 169.839 67.5339 135.786 117.212C117.894 143.308 83.5935 160.211 79.9656 160.953C76.3789 160.211 42.0372 143.308 24.1449 117.212C-9.8257 67.5339 10.9112 7.87917 10.9112 7.87917C10.9112 7.87917 19.1153 13.6509 41.8723 12.9913C68.9993 12.208 80.0068 0.953125 80.0068 0.953125Z",fill:t.value.homeTeam,opacity:t.value.opacity},null,8,jle)])),r.isPostMatch?(p.openBlock(),p.createElementBlock("div",qle,p.toDisplayString(v.value[0]),1)):p.createCommentVNode("",!0)]),r.isPostMatch?(p.openBlock(),p.createElementBlock("div",Wle,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(d.value.homeTeam.goalsEvents,(S,M)=>(p.openBlock(),p.createElementBlock("div",{key:`goal-${M}`,class:"goal"},[p.createElementVNode("div",null,p.toDisplayString(S.playerName),1),E[9]||(E[9]=p.createElementVNode("div",{class:"bullet"},null,-1)),p.createElementVNode("div",null,p.toDisplayString(S.goalTime),1),E[10]||(E[10]=p.createStaticVNode('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-f88a509b><path fill-rule="evenodd" clip-rule="evenodd" d="M10.0268 2.83594C6.09038 2.83594 2.89844 6.01986 2.89844 9.94705C2.89844 13.8742 6.09038 17.0582 10.0268 17.0582C13.9632 17.0582 17.1551 13.8742 17.1551 9.94705C17.1551 6.01986 13.9632 2.83594 10.0268 2.83594V2.83594Z" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path fill-rule="evenodd" clip-rule="evenodd" d="M8.0826 12.9597L6.87109 9.2304L10.0401 6.92578L13.2097 9.2304L11.9995 12.9597H8.0826Z" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M12.7277 3.39453L10.0276 4.54375L7.32812 3.39453" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M4.65662 5.34766L4.91603 8.27341L2.98828 10.4871" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M4.01562 13.6523L6.87533 14.3093L8.38436 16.8279" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M11.7031 16.8213L13.2109 14.3015L16.0697 13.6445" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M17.1051 10.4865L15.1758 8.27156L15.4349 5.34766" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M10.0456 4.54688V6.92693" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M13.2109 9.32248L15.1681 8.27344" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M11.9961 12.9609L13.2064 14.3086" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M8.08198 12.9609L6.87109 14.3099" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M4.91797 8.27344L6.87609 9.22818" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path></svg>',1))]))),128))])):p.createCommentVNode("",!0)]),E[13]||(E[13]=p.createElementVNode("div",{class:"separator"},null,-1)),p.createElementVNode("div",Gle,[p.createElementVNode("div",Xle,[r.isPostMatch?(p.openBlock(),p.createElementBlock("div",Hle,p.toDisplayString(v.value[1]),1)):p.createCommentVNode("",!0),d.value.awayTeam.logo?(p.openBlock(),p.createElementBlock("div",Jle,[p.createElementVNode("img",{src:d.value.awayTeam.logo||"/default-logo.png",alt:"Team 2 Logo"},null,8,Zle)])):(p.openBlock(),p.createElementBlock("svg",Kle,[p.createElementVNode("path",{d:"M80.8504 0.953125C80.8504 0.953125 92.9822 3.39499 119.261 10.1779C144.106 16.5733 152.827 19.1314 152.827 19.1314C152.827 19.1314 156.936 44.2089 145.657 90.5655C136.548 127.969 106.742 152.038 80.8504 160.953C54.9977 152.038 25.1527 128.007 16.0442 90.5655C4.8039 44.2477 8.91243 19.1314 8.91243 19.1314C8.91243 19.1314 17.6334 16.5733 42.4783 10.1779C68.7574 3.39499 80.8504 0.953125 80.8504 0.953125Z",fill:t.value.awayTeam,opacity:t.value.opacity},null,8,Yle)]))]),r.isPostMatch?(p.openBlock(),p.createElementBlock("div",Qle,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(d.value.awayTeam.goalsEvents,(S,M)=>(p.openBlock(),p.createElementBlock("div",{key:`goal-a-${M}`,class:"goal"},[E[11]||(E[11]=p.createStaticVNode('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-f88a509b><path fill-rule="evenodd" clip-rule="evenodd" d="M10.0268 2.83594C6.09038 2.83594 2.89844 6.01986 2.89844 9.94705C2.89844 13.8742 6.09038 17.0582 10.0268 17.0582C13.9632 17.0582 17.1551 13.8742 17.1551 9.94705C17.1551 6.01986 13.9632 2.83594 10.0268 2.83594V2.83594Z" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path fill-rule="evenodd" clip-rule="evenodd" d="M8.0826 12.9597L6.87109 9.2304L10.0401 6.92578L13.2097 9.2304L11.9995 12.9597H8.0826Z" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M12.7277 3.39453L10.0276 4.54375L7.32812 3.39453" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M4.65662 5.34766L4.91603 8.27341L2.98828 10.4871" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M4.01562 13.6523L6.87533 14.3093L8.38436 16.8279" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M11.7031 16.8213L13.2109 14.3015L16.0697 13.6445" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M17.1051 10.4865L15.1758 8.27156L15.4349 5.34766" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M10.0456 4.54688V6.92693" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M13.2109 9.32248L15.1681 8.27344" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M11.9961 12.9609L13.2064 14.3086" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M8.08198 12.9609L6.87109 14.3099" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path><path d="M4.91797 8.27344L6.87609 9.22818" stroke="white" stroke-width="1.36665" stroke-linecap="round" stroke-linejoin="round" data-v-f88a509b></path></svg>',1)),p.createElementVNode("div",null,p.toDisplayString(S.goalTime),1),E[12]||(E[12]=p.createElementVNode("div",{class:"bullet"},null,-1)),p.createElementVNode("div",null,p.toDisplayString(S.playerName),1)]))),128))])):p.createCommentVNode("",!0)])]))],4))}},ece=zd($le,[["__scopeId","data-v-f88a509b"]]),tce={class:"floating-bar"},rce={class:"tab active"},nce={class:"select-display"},ace={class:"select-icon"},ice=["src"],oce={key:1,src:"https://golstatsimages.blob.core.windows.net/images-library/vector2.png",alt:"icono",class:"option-img-default"},sce={key:0,class:"select-placeholder select-label"},lce={key:1,class:"select-label"},cce={key:0,class:"dropdown-menu field-menu"},uce=["onClick"],dce={class:"option-icon"},hce=["src","data-hover-src"],pce={class:"option-content"},fce={class:"option-title"},mce={key:0,class:"option-description"},gce={class:"select-display"},yce={class:"select-icon"},vce=["src"],bce=["src"],xce={class:"select-label"},_ce={key:0,class:"dropdown-menu type-menu type-menu-grid"},wce={class:"option-grid"},Tce=["onClick"],kce={class:"option-grid-title"},Sce={class:"option-grid-icon"},Ece=["src"],Cce={key:1,class:"filter-separator"},Ace=["onClick"],Mce={class:"select-display"},Lce={key:0,class:"badge-categorias"},Pce={key:0,class:"dropdown-menu type-menu multi-select-menu"},Nce={class:"multi-select-scroll-area"},Oce={class:"select-all-checkbox"},Rce=["checked","indeterminate","onChange"],zce={class:"option-checkbox"},Dce=["checked","onChange"],Ice=["onClick"],Fce={class:"option-title"},Bce={class:"multi-select-footer"},Vce={key:1,class:"custom-radio-group filter-inline"},Uce={class:"radio-label"},jce={class:"radio-options"},qce=["name","value","onUpdate:modelValue","disabled","onChange"],Wce={key:2,class:"check-group filter-inline"},Gce=["onUpdate:modelValue","checked","onChange"],Xce=["data-filter-type","onClick"],Hce={class:"select-display"},Jce={key:0,class:"badge-categorias"},Zce={key:0,class:"dropdown-menu type-menu simple-select-menu"},Kce={class:"simple-select-scroll-area"},Yce=["onMouseenter","onClick"],Qce={class:"option-content"},$ce={class:"option-title"},eue={key:0,class:"option-checkmark"},tue={key:4,class:"filter-separator"},rue=Object.assign({name:"FloatingFiltersBar"},{__name:"filters",props:{token:{type:String,required:!0},view:{type:Object,default:()=>null},isPostMatch:{type:Boolean,default:!1},filters_edition_mode:{type:Array,default:()=>null}},emits:["filters-changed","close"],setup(r,{expose:i,emit:y}){const F=r,K=y,L=p.ref([]);let w=null,t=null,v=null;const d=p.ref(!1),e=p.ref(!1),x=p.ref(!1),m=p.ref(!1),b=p.computed(()=>L.value),h=p.ref(null),n=p.computed(()=>b.value[h.value]||null),a=p.computed(()=>{var ze;const Se=((ze=n.value)==null?void 0:ze.views)||[];return N(Se)}),u=p.ref(null),s=p.computed(()=>a.value.find(ze=>ze.id===u.value)||null),l=p.ref([]),f=p.computed(()=>{var ze,Se;return d.value?((ze=s.value)==null?void 0:ze.filters_edition_mode)||[]:((Se=s.value)==null?void 0:Se.filters)||[]});p.watch(s,ze=>{var Se,Fe;if(!ze){l.value=[];return}const Le=ze.id===6&&F.isPostMatch;if(!Array.isArray(f.value)&&!Le){l.value=[];return}if(e.value)return;Le?l.value=[]:l.value=f.value.map((Ce,_e)=>{var Ue,Re,je,Xe,Ze,Te,De;if(Ce.type==="select"){if(d.value&&v&&v.dynamicFilters){const Ve=v.dynamicFilters[_e];if(Ve){if(Ve.selectedOptions&&Array.isArray(Ve.selectedOptions)){const Ge=Ve.selectedOptions.map(et=>et.value);return console.log(`Using saved select values for filter ${_e}:`,Ge),Ge}else if(Ve.selectedValue&&Array.isArray(Ve.selectedValue))if(Ve.selectedValue.length>0&&Ve.selectedValue[0]&&typeof Ve.selectedValue[0]=="object"){const Ge=Me(Ve.selectedValue);return console.log(`Using saved Timeline values for filter ${_e}:`,Ge),Ge}else return console.log(`Using saved selectedValue for filter ${_e}:`,Ve.selectedValue),Ve.selectedValue}}if(ze.id===4&&Ce.options&&Array.isArray(Ce.options)){const Ve=Ce.options.map(Ge=>Ge.value);return console.log(`Timeline detected - preselecting all options for filter ${_e}:`,Ve),console.log("Timeline - filter options:",Ce.options),console.log("Timeline - filter type:",Ce.type),Ve}return[]}else{if(Ce.type==="radio-button")return((Re=(Ue=Ce.options)==null?void 0:Ue[0])==null?void 0:Re.value)??null;if(Ce.type==="select-simple"){if(d.value&&v&&v.dynamicFilters){const Ve=v.dynamicFilters[_e];if(Ve&&Ve.selectedValue!==void 0){console.log(`Using saved select-simple value for filter ${_e}:`,Ve.selectedValue),console.log("Saved selectedValue type:",typeof Ve.selectedValue),console.log("Saved selectedValue is array:",Array.isArray(Ve.selectedValue));let Ge;return ze.id===2&&(Xe=(je=t==null?void 0:t.view)==null?void 0:je.filterMultiple)!=null&&Xe.categoryId?(Ge=t.view.filterMultiple.categoryId,console.log("GSCtops - using filterMultiple.categoryId in initialization:",Ge)):Ge=Array.isArray(Ve.selectedValue)?Ve.selectedValue[0]:Ve.selectedValue,console.log(`Returning select-simple value for filter ${_e}:`,Ge),Ge}}if(ze.id===2&&d.value&&(Ze=t==null?void 0:t.view)!=null&&Ze.filterMultiple&&(console.log(`GSCtops - checking filterMultiple in initialization for filter ${_e}:`,t.view.filterMultiple),t.view.filterMultiple.categoryId)){const Ve=t.view.filterMultiple.categoryId;console.log(`GSCtops - setting select-simple filter ${_e} to categoryId:`,Ve),console.log("GSCtops - categoryId type in initialization:",typeof Ve),console.log("GSCtops - filter options in initialization:",Ce.options);const Ge=(Ce.options||[]).find(et=>et.value==Ve);return console.log("GSCtops - matching option in initialization:",Ge),Ve}return((De=(Te=Ce.options)==null?void 0:Te[0])==null?void 0:De.value)??null}else if(Ce.type==="check"){if(d.value&&v&&v.dynamicFilters){const Ve=v.dynamicFilters[_e];if(Ve&&Ve.isChecked!==void 0)return console.log(`Using saved checkbox value for filter ${_e}:`,Ve.isChecked),Ve.isChecked}if(ze.id===8)return!0;if(ze.id===3){if(d.value&&v&&v.dynamicFilters){const Ve=v.dynamicFilters[_e];if(Ve&&Ve.isChecked!==void 0)return console.log(`GSCMatchSummary - Using saved checkbox value for filter ${_e}:`,Ve.isChecked),Ve.isChecked}return!1}return!1}}return null});const ge=((Se=ze.name)==null?void 0:Se.toLowerCase().includes("tops players"))||((Fe=ze.title)==null?void 0:Fe.toLowerCase().includes("tops players"));!ge&&(!d.value||Le)&&p.nextTick(()=>{var Ce,_e,Ue;console.log("Timeline - about to emit change:",{esTopsPlayers:ge,isEditMode:d.value,selectedSecond:(Ce=s.value)==null?void 0:Ce.id}),ze.id===4&&d.value&&(_e=t==null?void 0:t.view)!=null&&_e.id&&(console.log("Timeline - saving specific filters for component:",t.view.id),w&&w.setDynamicFilters(l.value,t.view.id)),ze.id===3&&d.value&&(Ue=t==null?void 0:t.view)!=null&&Ue.id&&(console.log("GSCMatchSummary - saving specific filters for component:",t.view.id),w&&w.setDynamicFilters(l.value,t.view.id)),le()})},{immediate:!0}),p.watch(()=>w,ze=>{ze&&ze.dynamicFilters&&(console.log("FilterAndViewsContainer changed, updating dynamicFilters:",ze.dynamicFilters),Array.isArray(ze.dynamicFilters)&&(e.value=!0,l.value=[...ze.dynamicFilters],p.nextTick(()=>{e.value=!1})))},{deep:!0}),p.watch(()=>w==null?void 0:w.dynamicFilters,ze=>{if(ze&&Array.isArray(ze)){if(console.log("Container dynamicFilters changed, updating:",ze),x.value){console.log("Skipping container update due to user update in progress");return}e.value=!0,l.value=[...ze],p.nextTick(()=>{e.value=!1})}},{deep:!0}),p.watch(()=>s.value,ze=>{if(d.value&&v&&ze&&ze.filters){if(e.value)return;if(m.value){console.log("Skipping force updates in selectedSecond watcher - already in force update");return}if(ze.id===3){if(console.log("GSCMatchSummary detected in edit mode, loading saved filters"),x.value||m.value){console.log("GSCMatchSummary - Skipping due to update in progress");return}const Se=v.dynamicFilters.find(Fe=>Fe.filterType==="check");Se&&Se.isChecked!==void 0&&(console.log("GSCMatchSummary - Found saved checkbox value:",Se.isChecked),l.value&&l.value.length>0&&(x.value=!0,l.value[0]=Se.isChecked,console.log("GSCMatchSummary - Updated dynamicFilters:",l.value),p.nextTick(()=>{l.value=[...l.value],console.log("GSCMatchSummary - Forced UI update"),x.value=!1})))}setTimeout(()=>{(!l.value||l.value.length===0)&&(ye(),Ae(),Pe()),ze.id===4&&we()},100)}},{deep:!0}),p.watch(()=>{var ze;return(ze=s.value)==null?void 0:ze.id},ze=>{if(d.value&&v&&ze===4){if(console.log("Timeline detected, preselecting filters"),e.value)return;if(m.value){console.log("Skipping force updates in Timeline watcher - already in force update");return}setTimeout(()=>{we()},200)}}),p.watch(()=>l.value,ze=>{if(d.value&&v&&ze&&ze.length>0){if(console.log("(((((((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))",v),console.log("Dynamic filters initialized, forcing update"),e.value||x.value)return;if(m.value){console.log("Skipping force updates - already in force update");return}setTimeout(()=>{var Se;Ie()&&(ye(),Ae(),Pe(),((Se=s.value)==null?void 0:Se.id)===4&&we())},50)}},{deep:!0});function g(ze,Se){var Fe,Le,ge;const Ce=l.value[ze];if(((Fe=s.value)==null?void 0:Fe.id)===4&&ze===0&&console.log("Timeline filter check - optionValue:",Se,"selectedValues:",Ce),Array.isArray(Ce)){if(((Le=s.value)==null?void 0:Le.id)===4&&ze===0){const _e=Ce.some(Ue=>Se.category_id&&Se.event_type_id?Ue.category_id===Se.category_id&&Ue.event_type_id===Se.event_type_id:Se.event_type_id?Ue.event_type_id===Se.event_type_id:Se.category_id?Ue.category_id===Se.category_id:!1);return((ge=s.value)==null?void 0:ge.id)===4&&ze===0&&console.log("Timeline comparison (IDs) - optionValue:",Se,"selectedValues:",Ce,"isSelected:",_e),_e}return Ce.includes(Se)}return!1}function k(ze,Se){Array.isArray(l.value[ze])||(l.value[ze]=[]);const Fe=l.value[ze],Le=Fe.indexOf(Se);Le>-1?Fe.splice(Le,1):Fe.push(Se),d.value&&Ne(),le()}function E(ze){var Se,Fe;const Le=l.value[ze],ge=(Fe=(Se=s.value)==null?void 0:Se.filters)==null?void 0:Fe[ze];return!ge||!ge.options||!Array.isArray(Le)?!1:Le.length===ge.options.length}function S(ze){var Se,Fe;const Le=l.value[ze],ge=(Fe=(Se=s.value)==null?void 0:Se.filters)==null?void 0:Fe[ze];return!ge||!ge.options||!Array.isArray(Le)?!1:Le.length>0&&Le.length<ge.options.length}function M(){var ze;return console.log("props.isPostMatch",F.isPostMatch),!(((ze=s.value)==null?void 0:ze.id)===6&&F.isPostMatch)}function N(ze){return!ze||!Array.isArray(ze)?ze:ze.filter(Se=>{const Fe=(Se.name||Se.title||"").toLowerCase();return F.isPostMatch?F.isPostMatch?!["fortalezas","tabla general"].some(Le=>Fe.includes(Le)):!0:!["resumen general","timeline","datos relevantes"].some(Le=>Fe.includes(Le))})}function C(){var ze,Se;const Fe=((Se=(ze=n.value)==null?void 0:ze.name)==null?void 0:Se.toLowerCase())||"";return Fe.includes("cancha")||Fe.includes("volumétrica")||Fe.includes("volumetric")}function P(ze,Se){if(!d.value||!C())return!1;const Fe=String(ze||"").toLowerCase(),Le=String(Se||"").toLowerCase();return Fe.includes("ambos")||Le.includes("ambos")}function A(ze){var Se,Fe;const Le=(Fe=(Se=s.value)==null?void 0:Se.filters)==null?void 0:Fe[ze];if(!Le||!Le.options)return;const ge=Le.options.map(Ce=>Ce.value);Array.isArray(l.value[ze])||(l.value[ze]=[]),E(ze)?l.value[ze]=[]:l.value[ze]=[...ge],R.value=ze,le()}const T=p.ref("ambos"),O=p.ref(!1),_=p.ref(!1),R=p.ref(null),I=p.ref(null);function V(ze,Se=!1){const Fe="https://golstatsimages.blob.core.windows.net/images-library/",Le="https://golstatsimages.blob.core.windows.net/reports-images/",ge={cancha:"icn_cancha",grafico:"icn_grafico",gráfico:"icn_grafico",chart:"icn_grafico",volumetrica:"icn_cancha",volumétrica:"icn_cancha",volumetric:"icn_cancha",tabla:"icn_tabla",tablas:"icn_tabla",Tablas:"icn_tabla"},Ce=Object.keys(ge).find(_e=>ze==null?void 0:ze.toLowerCase().includes(_e.toLowerCase()));if(Ce){const _e=ge[Ce],Ue=Se?"":"-def";return Ce.toLowerCase().includes("tabla")?`${Le}${_e}${Ue}@2x.png`:`${Fe}${_e}${Ue}@2x.png`}return`${Fe}icn_default${Se?"":"-def"}.png`}function j(){return n.value?n.value.name:"Tipo de vista"}function G(){return s.value?s.value.name||s.value.title:"Visualización"}function q(){d.value||(O.value=!O.value,O.value&&(_.value=!1,p.nextTick(()=>{ie()})))}function Y(){d.value||n.value&&(_.value=!_.value,_.value&&(O.value=!1))}function ne(ze){d.value||(h.value=ze,O.value=!1,u.value=null,le())}function H(ze){var Se,Fe;d.value||(u.value=ze.id,_.value=!1,(Se=ze.name)!=null&&Se.toLowerCase().includes("tops players")||(Fe=ze.title)==null||Fe.toLowerCase().includes("tops players"))}function re(ze){var Se;R.value=R.value===ze?null:ze,((Se=s.value)==null?void 0:Se.id)===4&&d.value&&ze===0&&(console.log("Timeline dropdown opened, forcing checkbox update"),setTimeout(()=>{l.value=[...l.value]},50))}function te(ze){I.value=I.value===ze?null:ze}function Z(ze,Se){var Fe;if(console.log("selectSimpleOption called:",{idx:ze,optionValue:Se,isEditMode:d.value}),((Fe=s.value)==null?void 0:Fe.id)===2){console.log("GSCtops - selectSimpleOption for GSCtops");const Le=f.value.findIndex(ge=>ge.type==="select-simple"&&ge.label==="Tipo de análisis");ze===Le?(l.value[0]=Se,console.log("GSCtops - updated dynamicFilters[0] (category) to:",Se)):(l.value[ze]=Se,console.log("GSCtops - updated dynamicFilters["+ze+"] to:",Se))}else l.value[ze]=Se;I.value=null,console.log("GSCtops - dynamicFilters after selectSimpleOption:",l.value),d.value&&(console.log("GSCtops - calling updateContainerOnUserChange"),Ne()),console.log("GSCtops - calling emitChange"),le()}function ee(ze){ze.target.closest(".custom-select")||(O.value=!1,_.value=!1,I.value=null)}function le(){var ze,Se,Fe,Le,ge,Ce,_e,Ue,Re,je,Xe,Ze,Te,De,Ve,Ge,et,nt,ht,Tt,wt,Ft,Ut;if(console.log("emitChange called"),console.log("isEditMode.value:",d.value),console.log("viewToEdit:",t),console.log("dynamicFilters.value:",l.value),e.value){console.log("Skipping emitChange due to container update in progress");return}((ze=s.value)==null?void 0:ze.id)===8&&(console.log("FieldPosesion detected - dynamicFilters:",l.value),console.log("Current filters:",f.value)),((Se=s.value)==null?void 0:Se.id)===4&&(console.log("Timeline detected - dynamicFilters:",l.value),console.log("Current filters:",f.value),console.log("Timeline - will emit change:",!e.value)),((Fe=s.value)==null?void 0:Fe.id)===2&&(console.log("GSCtops detected - dynamicFilters:",l.value),console.log("Current filters:",f.value),console.log("GSCtops - will emit change:",!e.value));let qt=[],ot=[];s.value&&Array.isArray(f.value)&&f.value.forEach((tt,st)=>{if(tt.type==="select"&&tt.label==="Tipo de análisis"&&tt.id===2){const Je=l.value[st]||[];Array.isArray(Je)&&Je.length>0&&(qt=Je.map(lt=>{var xt;const mt=(xt=tt.options)==null?void 0:xt.find(Lt=>Lt.value===lt);return{value:lt,label:(mt==null?void 0:mt.label)||lt}}))}});const Qe=((ge=(Le=s.value)==null?void 0:Le.name)==null?void 0:ge.toLowerCase().includes("tops players"))||((_e=(Ce=s.value)==null?void 0:Ce.title)==null?void 0:_e.toLowerCase().includes("tops players")),dt=((Ue=s.value)==null?void 0:Ue.id)===4,gt=s.value&&Array.isArray(s.value.filters)?s.value.filters.some(tt=>tt.type==="select"&&tt.label==="Tipo de análisis"&&tt.id===2):!1;if(Qe&&gt&&qt.length===0||gt&&qt.length===0&&!dt)return;if(dt&&l.value&&l.value.length>0){const tt=l.value[0];Array.isArray(tt)&&tt.length>0&&console.log("Timeline - emitting change with events:",tt)}ot=((Re=f.value)==null?void 0:Re.map((tt,st)=>{var Je,lt,xt,mt,Lt;const It=l.value[st];((Je=s.value)==null?void 0:Je.id)===8&&console.log(`FieldPosesion filter ${st}:`,{type:tt.type,label:tt.label,selectedValue:It,selectedValueType:typeof It,isRadioButton:tt.type==="radio-button"});let rt=tt.id||`filter_${st}`;return((lt=s.value)==null?void 0:lt.id)===3&&d.value&&(xt=t==null?void 0:t.view)!=null&&xt.id&&(rt=`filter_${st}_component_${t.view.id}`,console.log(`GSCMatchSummary - Generated unique filterId: ${rt} for component ${t.view.id}`)),{filterId:rt,filterType:tt.type,filterLabel:tt.label,filterIcon:tt.icon||null,selectedValue:It,selectedOptions:tt.type==="select"&&Array.isArray(It)&&It.length>0?It.map($e=>{var kt;const Dt=(kt=tt.options)==null?void 0:kt.find(Rt=>Rt.value===$e);return{value:$e,label:(Dt==null?void 0:Dt.label)||$e,icon:(Dt==null?void 0:Dt.icon)||null}}):null,selectedOption:tt.type==="radio-button"&&It!=null?{value:It,label:((Lt=(mt=tt.options)==null?void 0:mt.find($e=>$e.value===It))==null?void 0:Lt.label)||It}:null,isChecked:tt.type==="check"?It:null}}))||[];const Nt={mainSelector:{id:((je=n.value)==null?void 0:je.id)||null,name:((Xe=n.value)==null?void 0:Xe.name)||null,url:((Ze=n.value)==null?void 0:Ze.url)||null},viewSelector:{id:((Te=s.value)==null?void 0:Te.id)||null,name:((De=s.value)==null?void 0:De.name)||((Ve=s.value)==null?void 0:Ve.title)||null,url:((Ge=s.value)==null?void 0:Ge.url)||null},team:T.value,dynamicFilters:ot,categoriasSeleccionadas:qt,timestamp:new Date().toISOString(),summary:{mainSelected:!!n.value,viewSelected:!!s.value,totalDynamicFilters:((et=f.value)==null?void 0:et.length)||0,activeFilters:((nt=f.value)==null?void 0:nt.filter((tt,st)=>{const Je=l.value[st];return Array.isArray(Je)?Je.length>0:Je!=null&&Je!==!1}).length)||0}};t&&(console.log("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"),console.log("viewToEdit.view.filterAndViewsContainer",t.view.filterAndViewsContainer),console.log("viewToEdit.view.filterAndViewsContainer.childViews.length",t.view.filterAndViewsContainer.childViews.length));const At={main:n.value,view:s.value,team:T.value,dynamicFilters:l.value,filtersJSON:Nt,filterAndViewsContainer:w,viewToEdit:t};if(console.log("GSCtops - emitting filters-changed with data:",At),K("filters-changed",At),d.value&&t&&(v=Nt,console.log("Updated editFiltersJSON:",v),((ht=s.value)==null?void 0:ht.id)===8&&(console.log("FieldPosesion - editFiltersJSON updated:",v),console.log("FieldPosesion - dynamicFilters in JSON:",v.dynamicFilters)),((Tt=s.value)==null?void 0:Tt.id)===2)){console.log("GSCtops - editFiltersJSON updated:",v),console.log("GSCtops - dynamicFilters in JSON:",v.dynamicFilters),console.log("GSCtops - viewToEdit.filterMultiple:",(wt=t.view)==null?void 0:wt.filterMultiple);const tt=v.dynamicFilters.findIndex(st=>st.filterType==="select-simple"&&st.filterLabel==="Tipo de análisis");tt!==-1&&(Ut=(Ft=t.view)==null?void 0:Ft.filterMultiple)!=null&&Ut.categoryId&&(v.dynamicFilters[tt].selectedValue=t.view.filterMultiple.categoryId,console.log("GSCtops - updated editFiltersJSON with filterMultiple.categoryId:",t.view.filterMultiple.categoryId))}w&&!d.value?(w.setDynamicFilters(l.value),console.log("Updated container with new dynamicFilters:",l.value)):w&&d.value&&console.log("In edit mode, not updating container automatically")}function ce(){t=null,v=null,w=null,h.value=null,u.value=null,T.value="ambos",l.value=[],O.value=!1,_.value=!1,R.value=null,I.value=null,d.value=!1}function he(ze){if(ze&&ze.dynamicFilters){if(console.log("Updating filters from container:",ze.dynamicFilters),x.value){console.log("Skipping container update due to user update in progress");return}Array.isArray(ze.dynamicFilters)&&ze.dynamicFilters.length>0&&(e.value=!0,l.value=[...ze.dynamicFilters],p.nextTick(()=>{e.value=!1}))}}function fe(ze){if(console.log("preselectFiltersFromJSON called with:",ze),d.value=!0,ze.mainSelector&&ze.mainSelector.id){const Se=L.value.findIndex(Fe=>Fe.id===ze.mainSelector.id);Se!==-1&&(h.value=Se,console.log("Selected main index:",Se))}ze.viewSelector&&ze.viewSelector.id&&n.value&&n.value.views.findIndex(Se=>Se.id===ze.viewSelector.id)!==-1&&(u.value=ze.viewSelector.id,console.log("Selected second id:",ze.viewSelector.id)),ze.dynamicFilters&&Array.isArray(ze.dynamicFilters)&&(console.log("Processing dynamic filters:",ze.dynamicFilters),p.nextTick(()=>{setTimeout(()=>{var Se,Fe,Le,ge,Ce,_e;if(console.log("Processing filters after delay"),console.log("selectedSecond.value:",s.value),s.value&&f.value){if(console.log("Filters available:",f.value),e.value){console.log("Skipping preselect due to container update in progress");return}if(x.value=!0,console.log("&666&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&",ze.dynamicFilters),ze.dynamicFilters.forEach((Ue,Re)=>{var je,Xe,Ze,Te,De;if(console.log(`????????????????????????????????????????????????????????????????????????????????????Processing filter data ${Re}:`,Ue),Re<f.value.length){const Ve=f.value[Re];if(console.log(`********************Filter******************** ******************** ******************** ${Re}:`,Ve),((je=s.value)==null?void 0:je.id)===3&&d.value&&console.log(`GSCMatchSummary - Processing filter ${Re} for component ${((Xe=t==null?void 0:t.view)==null?void 0:Xe.id)||"unknown"}`),Ve.type==="check"){const Ge=Ue.isChecked;console.log(`Setting check filter ${Re} to:`,Ge),typeof Ge=="boolean"?(l.value[Re]=Ge,console.log(`Successfully set check filter ${Re} to:`,Ge)):console.log(`Invalid isChecked value for filter ${Re}:`,Ge)}else if(Ve.type==="select"&&Ue.selectedOptions){const Ge=Ue.selectedOptions.map(et=>et.value);console.log(`Setting select filter ${Re} to:`,Ge),l.value[Re]=Ge,console.log(`Successfully set select filter ${Re} to:`,Ge)}else if(Ve.type==="select"&&Ue.selectedValue&&Array.isArray(Ue.selectedValue))if(Ue.selectedValue.length>0&&Ue.selectedValue[0]&&typeof Ue.selectedValue[0]=="object"){const Ge=Me(Ue.selectedValue);console.log(`Setting Timeline select filter ${Re} to:`,Ge),l.value[Re]=Ge,console.log(`Successfully set Timeline select filter ${Re} to:`,Ge)}else console.log(`Setting select filter ${Re} to:`,Ue.selectedValue),l.value[Re]=Ue.selectedValue,console.log(`Successfully set select filter ${Re} to:`,Ue.selectedValue);else if(Ve.type==="radio-button"&&Ue.selectedOption)console.log(`Setting radio filter ${Re} to:`,Ue.selectedOption.value),l.value[Re]=Ue.selectedOption.value;else if(Ve.type==="select-simple"&&Ue.selectedValue!==void 0){console.log(`Setting select-simple filter ${Re} to:`,Ue.selectedValue),console.log("select-simple filterData.selectedValue type:",typeof Ue.selectedValue),console.log("select-simple filterData.selectedValue is array:",Array.isArray(Ue.selectedValue));let Ge;((Ze=s.value)==null?void 0:Ze.id)===2&&(De=(Te=t==null?void 0:t.view)==null?void 0:Te.filterMultiple)!=null&&De.categoryId?(Ge=t.view.filterMultiple.categoryId,console.log("GSCtops - using filterMultiple.categoryId instead of selectedValue:",Ge)):Ge=Array.isArray(Ue.selectedValue)?Ue.selectedValue[0]:Ue.selectedValue,l.value[Re]=Ge,console.log(`Successfully set select-simple filter ${Re} to:`,Ge)}}else console.log(`Filter index ${Re} out of range`)}),console.log("Final dynamicFilters.value:",l.value),((Se=s.value)==null?void 0:Se.id)===3&&d.value&&console.log("GSCMatchSummary - Final dynamicFilters after processing:",l.value),((Fe=s.value)==null?void 0:Fe.id)===2&&d.value&&(Le=t==null?void 0:t.view)!=null&&Le.filterMultiple&&(console.log("GSCtops - checking filterMultiple after preselecting filters:",t.view.filterMultiple),console.log("GSCtops - currentFilters:",f.value),console.log("GSCtops - dynamicFilters before:",l.value),t.view.filterMultiple.categoryId)){console.log("GSCtops - found categoryId in filterMultiple:",t.view.filterMultiple.categoryId);const Ue=f.value.findIndex(Re=>Re.type==="select-simple"&&Re.label==="Tipo de análisis");if(console.log("GSCtops - categoryFilterIndex:",Ue),console.log("GSCtops - all filters:",f.value.map((Re,je)=>({index:je,type:Re.type,label:Re.label}))),Ue!==-1){console.log("GSCtops - found category filter at index:",Ue);const Re=t.view.filterMultiple.categoryId;if(console.log("GSCtops - setting category filter directly from filterMultiple.categoryId:",Re),l.value[0]=Re,t.view.componentProps&&Re){let Xe=`Category ${Re}`,Ze=null;try{Ze=ih(Re),Ze&&(Xe=Ze.name,console.log("GSCtops - found category info from getCategoryById in preselectFiltersFromJSON:",Ze))}catch{console.log("GSCtops - getCategoryById failed in preselectFiltersFromJSON, using filter options");const Te=f.value.findIndex(De=>De.type==="select-simple"&&De.label==="Tipo de análisis");if(Te!==-1){const De=(((ge=f.value[Te])==null?void 0:ge.options)||[]).find(Ve=>Ve.value==Re);De&&(Xe=De.label,console.log("GSCtops - found category name from options in preselectFiltersFromJSON:",Xe))}}t.view.componentProps.categoryView=[{id:Re,name:Xe}],console.log("GSCtops - updated componentProps.categoryView in preselectFiltersFromJSON:",t.view.componentProps.categoryView)}console.log("GSCtops - automatically set category filter to:",Re),console.log("GSCtops - categoryId type:",typeof Re),console.log("GSCtops - updated dynamicFilters:",l.value),console.log("GSCtops - filter options:",(Ce=f.value[Ue])==null?void 0:Ce.options);const je=(((_e=f.value[Ue])==null?void 0:_e.options)||[]).find(Xe=>Xe.value==Re);console.log("GSCtops - matching option:",je),p.nextTick(()=>{l.value=[...l.value],console.log("GSCtops - forced reactivity update")})}else console.log("GSCtops - category filter not found!")}p.nextTick(()=>{x.value=!1})}},100)}))}function se(){var ze,Se,Fe,Le,ge,Ce,_e,Ue,Re,je;return{mainSelector:{id:((ze=n.value)==null?void 0:ze.id)||null,name:((Se=n.value)==null?void 0:Se.name)||null,url:((Fe=n.value)==null?void 0:Fe.url)||null},viewSelector:{id:((Le=s.value)==null?void 0:Le.id)||null,name:((ge=s.value)==null?void 0:ge.name)||((Ce=s.value)==null?void 0:Ce.title)||null,url:((_e=s.value)==null?void 0:_e.url)||null},team:T.value,dynamicFilters:((Ue=f.value)==null?void 0:Ue.map((Xe,Ze)=>{var Te,De;const Ve=l.value[Ze];return{filterId:Xe.id||`filter_${Ze}`,filterType:Xe.type,filterLabel:Xe.label,filterIcon:Xe.icon||null,selectedValue:Ve,selectedOptions:Xe.type==="select"&&Array.isArray(Ve)&&Ve.length>0?Ve.map(Ge=>{var et;const nt=(et=Xe.options)==null?void 0:et.find(ht=>ht.value===Ge);return{value:Ge,label:(nt==null?void 0:nt.label)||Ge,icon:(nt==null?void 0:nt.icon)||null}}):null,selectedOption:Xe.type==="radio-button"&&Ve?{value:Ve,label:((De=(Te=Xe.options)==null?void 0:Te.find(Ge=>Ge.value===Ve))==null?void 0:De.label)||Ve}:null,isChecked:Xe.type==="check"?Ve:null}}))||[],timestamp:new Date().toISOString(),summary:{mainSelected:!!n.value,viewSelected:!!s.value,totalDynamicFilters:((Re=f.value)==null?void 0:Re.length)||0,activeFilters:((je=f.value)==null?void 0:je.filter((Xe,Ze)=>{const Te=l.value[Ze];return Array.isArray(Te)?Te.length>0:Te!=null&&Te!==!1}).length)||0}}}i({getCurrentFiltersJSON:se});function de(){ce(),K("close")}p.onMounted(async()=>{document.addEventListener("click",ee),p.nextTick(()=>{ie()});try{const ze=await(await fetch("https://m9qip57rsh.execute-api.us-east-2.amazonaws.com/prod/views",{headers:{Authorization:`${F.token}`}})).json();L.value=ze.data||[]}catch(ze){console.error("Error al obtener datos:",ze)}});function ie(){document.querySelectorAll(".field-menu .option-card").forEach(ze=>{const Se=ze.querySelector(".option-img");if(!Se||!Se.dataset.hoverSrc)return;const Fe=Se.src,Le=Se.dataset.hoverSrc;ze.addEventListener("mouseenter",()=>{Se.src=Le}),ze.addEventListener("mouseleave",()=>{Se.src=Fe})})}p.onUnmounted(()=>{document.removeEventListener("click",ee)}),li.on("set-filter-and-views-container",ze=>{w=ze,ze&&he(ze)}),li.on("component-added-to-container",ze=>{console.log("Component added to container, updating filters, container:",ze),!d.value||w&&ze.id===w.id?he(ze):console.log("Skipping container update - edit mode or different container")}),li.on("edit-view",ze=>{var Se,Fe,Le,ge,Ce,_e,Ue,Re,je;console.log("edit-view received:",ze),t=ze,w=((Se=ze.view)==null?void 0:Se.filterAndViewsContainer)||null,v=null;const Xe=[(Le=(Fe=ze.view)==null?void 0:Fe.coreView)==null?void 0:Le.filtersJSON,(ge=ze.view)==null?void 0:ge.filtersJSON,(Ce=ze.coreView)==null?void 0:Ce.filtersJSON,ze.filtersJSON,(Ue=(_e=ze.view)==null?void 0:_e.componentProps)==null?void 0:Ue.filtersJSON];for(const Ze of Xe)if(Ze){v=Ze,console.log("Found editFiltersJSON in:",Ze);break}if(w&&(w.viewId===4||w.viewId===8||w.viewId===3)&&(Re=ze.view)!=null&&Re.id){const Ze=w.getComponentDynamicFilters(ze.view.id);if(Ze){let Te="Unknown";w.viewId===4?Te="Timeline":w.viewId===8?Te="FieldPosesion":w.viewId===3&&(Te="GSCMatchSummary"),console.log(`${Te} - found component specific filters:`,Ze),v&&(v={...v,dynamicFilters:Ze.map(De=>Array.isArray(De)?{selectedValue:De,selectedOptions:De.map(Ve=>({value:Ve,label:Ve}))}:typeof De=="boolean"?{isChecked:De}:{selectedOption:{value:De,label:De}})},console.log(`${Te} - updated editFiltersJSON with component specific filters:`,v))}}if(w&&w.viewId===2&&(je=ze.view)!=null&&je.filterMultiple&&(console.log("GSCtops detected - checking filterMultiple:",ze.view.filterMultiple),ze.view.filterMultiple.categoryId&&v)){console.log("GSCtops - found categoryId in filterMultiple:",ze.view.filterMultiple.categoryId);const Ze=v.dynamicFilters.findIndex(Te=>Te.filterType==="select-simple"&&Te.filterLabel==="Tipo de análisis");Ze!==-1&&(console.log("GSCtops - found category filter at index:",Ze),v.dynamicFilters[Ze]={...v.dynamicFilters[Ze],selectedValue:ze.view.filterMultiple.categoryId,selectedOptions:[{value:ze.view.filterMultiple.categoryId,label:`Category ${ze.view.filterMultiple.categoryId}`}]},console.log("GSCtops - updated filter with single value:",ze.view.filterMultiple.categoryId),console.log("GSCtops - updated filter structure:",v.dynamicFilters[Ze]),console.log("GSCtops - updated category filter with filterMultiple.categoryId:",ze.view.filterMultiple.categoryId))}console.log("Final editFiltersJSON:",v),v?fe(v):console.log("No editFiltersJSON found, cannot preselect filters")});function me(){R.value=null}function ve(ze,Se){var Fe;((Fe=s.value)==null?void 0:Fe.id)===2&&console.log("GSCtops - debugSelectSimple:",{idx:ze,optionValue:Se,optionValueType:typeof Se,dynamicFiltersValue:l.value[ze],dynamicFiltersValueType:typeof l.value[ze],isEqual:l.value[ze]===Se,isEqualLoose:l.value[ze]==Se})}function ye(){var ze;if(d.value&&v&&v.dynamicFilters){if(console.log("Forcing checkbox and select filter update from editFiltersJSON"),((ze=s.value)==null?void 0:ze.id)===8&&(console.log("FieldPosesion - forceCheckboxUpdate called"),console.log("FieldPosesion - viewToEdit:",t),console.log("FieldPosesion - editFiltersJSON:",v)),m.value){console.log("Skipping forceCheckboxUpdate - already in force update");return}if(e.value)return;m.value=!0,x.value=!0,v.dynamicFilters.forEach((Se,Fe)=>{var Le,ge,Ce;if(Se&&(Le=f.value)!=null&&Le[Fe]){const _e=f.value[Fe];if(_e.type==="check"&&Se.isChecked!==void 0)console.log(`Forcing checkbox ${Fe} to:`,Se.isChecked),l.value[Fe]=Se.isChecked,((ge=s.value)==null?void 0:ge.id)===8&&console.log("FieldPosesion - Checkbox filter updated:",{index:Fe,value:Se.isChecked,componentId:(Ce=t==null?void 0:t.view)==null?void 0:Ce.id});else if(_e.type==="select"&&Se.selectedOptions){const Ue=Se.selectedOptions.map(Re=>Re.value);console.log(`Forcing select filter ${Fe} to:`,Ue),l.value[Fe]=Ue}else _e.type==="select"&&Se.selectedValue&&Array.isArray(Se.selectedValue)&&(console.log(`Forcing select filter ${Fe} to:`,Se.selectedValue),l.value[Fe]=Se.selectedValue)}}),p.nextTick(()=>{x.value=!1,m.value=!1})}}function we(){var ze;if(d.value&&v&&v.dynamicFilters&&((ze=s.value)==null?void 0:ze.id)===4){if(console.log("Preselecting Timeline filters specifically"),m.value){console.log("Skipping preselectTimelineFilters - already in force update");return}if(e.value)return;m.value=!0,x.value=!0,v.dynamicFilters.forEach((Se,Fe)=>{var Le,ge;if(Se&&((ge=(Le=f.value)==null?void 0:Le[Fe])==null?void 0:ge.type)==="select"){if(Se.selectedOptions){const Ce=Se.selectedOptions.map(_e=>_e.value);console.log(`Preselecting Timeline select filter ${Fe} to:`,Ce),l.value[Fe]=Ce}else if(Se.selectedValue&&Array.isArray(Se.selectedValue))if(Se.selectedValue.length>0&&Se.selectedValue[0]&&typeof Se.selectedValue[0]=="object"){const Ce=Me(Se.selectedValue);console.log(`Preselecting Timeline select filter ${Fe} to:`,Ce),l.value[Fe]=Ce}else console.log(`Preselecting Timeline select filter ${Fe} to:`,Se.selectedValue),l.value[Fe]=Se.selectedValue}}),setTimeout(()=>{console.log("Forcing UI update after preselecting Timeline filters"),l.value=[...l.value]},200),p.nextTick(()=>{x.value=!1,m.value=!1})}}function Me(ze){return!Array.isArray(ze)||ze.length===0?[]:ze.map(Se=>{if(Se&&typeof Se=="object"){if(Se.event_type_id&&Se.category_id)return`${Se.category_id}-${Se.event_type_id}`;if(Se.event_type_id)return Se.event_type_id.toString();if(Se.category_id)return Se.category_id.toString()}return Se})}function Ae(){var ze,Se,Fe,Le,ge,Ce;if(d.value&&v&&v.dynamicFilters&&f.value){if(console.log("Force updating select filters immediately"),m.value){console.log("Skipping forceSelectFilterUpdate - already in force update");return}if(e.value)return;if(m.value=!0,x.value=!0,v.dynamicFilters.forEach((_e,Ue)=>{var Re,je,Xe,Ze,Te;if(_e&&((Re=f.value[Ue])==null?void 0:Re.type)==="select"){if(_e.selectedOptions){const De=_e.selectedOptions.map(Ve=>Ve.value);console.log(`Force setting select filter ${Ue} to:`,De),l.value[Ue]=De}else if(_e.selectedValue&&Array.isArray(_e.selectedValue))if(_e.selectedValue.length>0&&_e.selectedValue[0]&&typeof _e.selectedValue[0]=="object"){const De=Me(_e.selectedValue);console.log(`Force setting Timeline select filter ${Ue} to:`,De),l.value[Ue]=De}else console.log(`Force setting select filter ${Ue} to:`,_e.selectedValue),l.value[Ue]=_e.selectedValue}else if(_e&&((je=f.value[Ue])==null?void 0:je.type)==="select-simple"&&_e.selectedValue!==void 0){console.log(`Force setting select-simple filter ${Ue} to:`,_e.selectedValue),console.log("forceSelectFilterUpdate - selectedValue type:",typeof _e.selectedValue),console.log("forceSelectFilterUpdate - selectedValue is array:",Array.isArray(_e.selectedValue));let De;((Xe=s.value)==null?void 0:Xe.id)===2&&(Te=(Ze=t==null?void 0:t.view)==null?void 0:Ze.filterMultiple)!=null&&Te.categoryId?(De=t.view.filterMultiple.categoryId,console.log("GSCtops - using filterMultiple.categoryId in forceSelectFilterUpdate:",De)):De=Array.isArray(_e.selectedValue)?_e.selectedValue[0]:_e.selectedValue,l.value[Ue]=De,console.log(`Force setting select-simple filter ${Ue} to:`,De)}}),((ze=s.value)==null?void 0:ze.id)===4&&setTimeout(()=>{console.log("Forcing UI update for Timeline filters"),l.value=[...l.value]},100),((Se=s.value)==null?void 0:Se.id)===2&&(Fe=t==null?void 0:t.view)!=null&&Fe.filterMultiple&&(console.log("GSCtops - checking filterMultiple in forceSelectFilterUpdate:",t.view.filterMultiple),console.log("GSCtops - currentFilters in forceSelectFilterUpdate:",f.value),t.view.filterMultiple.categoryId)){console.log("GSCtops - found categoryId in filterMultiple:",t.view.filterMultiple.categoryId);const _e=f.value.findIndex(Ue=>Ue.type==="select-simple"&&Ue.label==="Tipo de análisis");if(console.log("GSCtops - categoryFilterIndex in forceSelectFilterUpdate:",_e),console.log("GSCtops - all filters in forceSelectFilterUpdate:",f.value.map((Ue,Re)=>({index:Re,type:Ue.type,label:Ue.label}))),_e!==-1){console.log("GSCtops - found category filter at index:",_e);const Ue=t.view.filterMultiple.categoryId;if(console.log("GSCtops - setting category filter directly from filterMultiple.categoryId in forceSelectFilterUpdate:",Ue),l.value[0]=Ue,t.view.componentProps&&Ue){let je=`Category ${Ue}`,Xe=null;try{Xe=ih(Ue),Xe&&(je=Xe.name,console.log("GSCtops - found category info from getCategoryById in forceSelectFilterUpdate:",Xe))}catch{console.log("GSCtops - getCategoryById failed in forceSelectFilterUpdate, using filter options");const Ze=f.value.findIndex(Te=>Te.type==="select-simple"&&Te.label==="Tipo de análisis");if(Ze!==-1){const Te=(((Le=f.value[Ze])==null?void 0:Le.options)||[]).find(De=>De.value==Ue);Te&&(je=Te.label,console.log("GSCtops - found category name from options in forceSelectFilterUpdate:",je))}}t.view.componentProps.categoryView=[{id:Ue,name:je}],console.log("GSCtops - updated componentProps.categoryView in forceSelectFilterUpdate:",t.view.componentProps.categoryView)}console.log("GSCtops - automatically set category filter to:",Ue),console.log("GSCtops - categoryId type:",typeof Ue),console.log("GSCtops - updated dynamicFilters:",l.value),console.log("GSCtops - filter options:",(ge=f.value[_e])==null?void 0:ge.options);const Re=(((Ce=f.value[_e])==null?void 0:Ce.options)||[]).find(je=>je.value==Ue);console.log("GSCtops - matching option:",Re),p.nextTick(()=>{l.value=[...l.value],console.log("GSCtops - forced reactivity update in forceSelectFilterUpdate")})}else console.log("GSCtops - category filter not found in forceSelectFilterUpdate!")}p.nextTick(()=>{x.value=!1,m.value=!1})}}function Pe(){if(console.log("FUNCION: forceRadioFilterUpdate"),m.value){console.log("Skipping forceRadioFilterUpdate - already in force update");return}if(d.value&&v&&v.dynamicFilters&&f.value){if(console.log("1"),e.value)return;m.value=!0,x.value=!0,v.dynamicFilters.forEach((ze,Se)=>{var Fe,Le;if(ze&&((Fe=f.value[Se])==null?void 0:Fe.type)==="radio-button"&&(console.log("2"),ze.selectedOption&&ze.selectedOption.value!==void 0)){console.log("3"),console.log("filterData: ----------------->",ze),console.log("editFiltersJSON: ",v),console.log(`Force setting radio filter ${Se} to:`,ze.selectedOption.value);const ge=ze.selectedOption.value;l.value[Se]=ge,console.log(`Radio filter ${Se} set to:`,ge,"Type:",typeof ge),((Le=s.value)==null?void 0:Le.id)===8&&(console.log("FieldPosesion - Radio filter updated to:",ze.selectedOption.value),console.log("FieldPosesion - Current dynamicFilters after update:",l.value))}}),p.nextTick(()=>{x.value=!1,m.value=!1})}}function Ne(){var ze,Se,Fe,Le,ge,Ce,_e,Ue,Re,je,Xe,Ze,Te,De,Ve,Ge,et,nt,ht;if(w&&d.value&&t){if(console.log("User made changes, updating container for specific component"),console.log("Current dynamicFilters:",l.value),console.log("Component ID:",(ze=t.view)==null?void 0:ze.id),e.value){console.log("Skipping container update due to container update in progress");return}if(x.value=!0,((Se=s.value)==null?void 0:Se.id)===4)w.setDynamicFilters(l.value,(Fe=t.view)==null?void 0:Fe.id),w.updateDynamicFilters(l.value,(Le=t.view)==null?void 0:Le.id),console.log("Timeline - updated specific filters for component:",(ge=t.view)==null?void 0:ge.id);else if(((Ce=s.value)==null?void 0:Ce.id)===8)w.setDynamicFilters(l.value,(_e=t.view)==null?void 0:_e.id),w.updateDynamicFilters(l.value,(Ue=t.view)==null?void 0:Ue.id),console.log("FieldPosesion - updated specific filters for component:",(Re=t.view)==null?void 0:Re.id);else if(((je=s.value)==null?void 0:je.id)===3)w.setDynamicFilters(l.value,(Xe=t.view)==null?void 0:Xe.id),w.updateDynamicFilters(l.value,(Ze=t.view)==null?void 0:Ze.id),console.log("GSCMatchSummary - updated specific filters for component:",(Te=t.view)==null?void 0:Te.id);else if(((De=s.value)==null?void 0:De.id)===2){console.log("GSCtops - updateContainerOnUserChange - starting GSCtops logic"),console.log("GSCtops - current dynamicFilters:",l.value),console.log("GSCtops - currentFilters:",f.value),w.setDynamicFilters(l.value),w.updateDynamicFilters(l.value);const Tt=l.value[0];if(console.log("GSCtops - newCategoryId from dynamicFilters[0]:",Tt),Tt!==void 0){t.view.filterMultiple||(t.view.filterMultiple={},console.log("GSCtops - created new filterMultiple object"));const wt=t.view.filterMultiple.categoryId;if(t.view.filterMultiple.categoryId=Tt,console.log("GSCtops - updated filterMultiple.categoryId from",wt,"to:",Tt),console.log("GSCtops - updated component filterMultiple:",t.view.filterMultiple),t.view.componentProps){let Ft=`Category ${Tt}`,Ut=null;try{Ut=ih(Tt),Ut&&(Ft=Ut.name,console.log("GSCtops - found category info from getCategoryById:",Ut))}catch{console.log("GSCtops - getCategoryById failed, using filter options");const qt=f.value.findIndex(ot=>ot.type==="select-simple"&&ot.label==="Tipo de análisis");if(qt!==-1){const ot=(((Ve=f.value[qt])==null?void 0:Ve.options)||[]).find(Qe=>Qe.value==Tt);ot&&(Ft=ot.label,console.log("GSCtops - found category name from options:",Ft))}}t.view.componentProps.categoryView=[{id:Tt,name:Ft}],console.log("GSCtops - updated componentProps.categoryView:",t.view.componentProps.categoryView),li.emit("force-component-update",{itemId:t.view.id,componentProps:t.view.componentProps,filterMultiple:t.view.filterMultiple}),console.log("GSCtops - emitted force-component-update event")}}else console.log("GSCtops - newCategoryId is undefined!");console.log("GSCtops - updated specific filters for component:",(Ge=t.view)==null?void 0:Ge.id)}else w.setDynamicFilters(l.value),w.updateDynamicFilters(l.value);((et=s.value)==null?void 0:et.id)===8&&console.log("FieldPosesion - Container updated with dynamicFilters:",l.value),((nt=s.value)==null?void 0:nt.id)===3&&console.log("GSCMatchSummary - Container updated with dynamicFilters:",l.value),((ht=s.value)==null?void 0:ht.id)===2&&console.log("GSCtops - Container updated with dynamicFilters:",l.value),p.nextTick(()=>{x.value=!1})}}function Ie(){var ze,Se,Fe;if(!v||!v.dynamicFilters||!f.value)return!1;for(let Le=0;Le<v.dynamicFilters.length;Le++){const ge=v.dynamicFilters[Le],Ce=f.value[Le],_e=l.value[Le];if(!(!ge||!Ce)){if(Ce.type==="check"){if(ge.isChecked!==_e)return console.log(`Check filter ${Le} needs update: saved=${ge.isChecked}, current=${_e}`),!0}else if(Ce.type==="radio-button"){if(((ze=ge.selectedOption)==null?void 0:ze.value)!==_e)return console.log(`Radio filter ${Le} needs update: saved=${(Se=ge.selectedOption)==null?void 0:Se.value}, current=${_e}`),!0}else if(Ce.type==="select"){const Ue=((Fe=ge.selectedOptions)==null?void 0:Fe.map(je=>je.value))||ge.selectedValue||[],Re=Array.isArray(_e)?_e:[];if(JSON.stringify(Ue)!==JSON.stringify(Re))return console.log(`Select filter ${Le} needs update: saved=${JSON.stringify(Ue)}, current=${JSON.stringify(Re)}`),!0}}}return console.log("No force update needed - values already match"),!1}return(ze,Se)=>(p.openBlock(),p.createElementBlock("div",tce,[p.createElementVNode("button",rce,p.toDisplayString(d.value?"Editando visualización":"Nueva visualización"),1),p.createElementVNode("div",{class:p.normalizeClass(["custom-select main-select",{disabled:d.value}]),onClick:q},[p.createElementVNode("div",nce,[p.createElementVNode("span",ace,[n.value?(p.openBlock(),p.createElementBlock("img",{key:0,src:V(n.value.name,!1),alt:"icono",class:"option-img"},null,8,ice)):(p.openBlock(),p.createElementBlock("img",oce))]),n.value?(p.openBlock(),p.createElementBlock("span",lce,p.toDisplayString(j()),1)):(p.openBlock(),p.createElementBlock("span",sce,"Tipo de vista")),p.createElementVNode("span",{class:p.normalizeClass(["arrow",{open:O.value}])},Se[4]||(Se[4]=[p.createElementVNode("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none"},[p.createElementVNode("path",{d:"M3 5L8 10L13 5",stroke:"#AAB4BE","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),2)]),O.value?(p.openBlock(),p.createElementBlock("div",cce,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(b.value,(Fe,Le)=>(p.openBlock(),p.createElementBlock("div",{key:Fe.id,class:p.normalizeClass(["option-card",{active:h.value===Le}]),onClick:p.withModifiers(ge=>ne(Le),["stop"])},[p.createElementVNode("div",dce,[p.createElementVNode("img",{src:V(Fe.name,!1),"data-hover-src":V(Fe.name,!0),alt:"icono",class:"option-img-34"},null,8,hce)]),p.createElementVNode("div",pce,[p.createElementVNode("div",fce,p.toDisplayString(Fe.name),1),Fe.description?(p.openBlock(),p.createElementBlock("div",mce,p.toDisplayString(Fe.description),1)):p.createCommentVNode("",!0)])],10,uce))),128))])):p.createCommentVNode("",!0)],2),n.value?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(["custom-select second-select",{disabled:d.value}]),onClick:Y},[p.createElementVNode("div",gce,[p.createElementVNode("span",yce,[s.value?(p.openBlock(),p.createElementBlock("img",{key:0,src:s.value.url,alt:"icono",class:"option-img-graph2"},null,8,vce)):n.value?(p.openBlock(),p.createElementBlock("img",{key:1,src:V(n.value.name,!1),alt:"icono",class:"option-img"},null,8,bce)):p.createCommentVNode("",!0)]),p.createElementVNode("span",xce,p.toDisplayString(G()),1),p.createElementVNode("span",{class:p.normalizeClass(["arrow",{open:_.value}])},Se[5]||(Se[5]=[p.createElementVNode("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none"},[p.createElementVNode("path",{d:"M3 5L8 10L13 5",stroke:"#AAB4BE","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),2)]),_.value&&n.value?(p.openBlock(),p.createElementBlock("div",_ce,[p.createElementVNode("div",wce,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.value,Fe=>(p.openBlock(),p.createElementBlock("div",{key:Fe.id,class:p.normalizeClass(["option-card-grid",{active:u.value===Fe.id}]),onClick:p.withModifiers(Le=>H(Fe),["stop"])},[p.createElementVNode("div",kce,p.toDisplayString(Fe.name||Fe.title),1),p.createElementVNode("div",Sce,[p.createElementVNode("img",{src:Fe.url,alt:"icono",class:"option-img-grid"},null,8,Ece)])],10,Tce))),128))])])):p.createCommentVNode("",!0)],2)):p.createCommentVNode("",!0),s.value?(p.openBlock(),p.createElementBlock("div",Cce)):p.createCommentVNode("",!0),s.value&&f.value&&M()?(p.openBlock(),p.createElementBlock("div",{key:2,class:p.normalizeClass(["dynamic-filters",{"dynamic-filters-wide":f.value.length>=2}])},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(f.value,(Fe,Le)=>(p.openBlock(),p.createElementBlock(p.Fragment,{key:Le},[Fe.type==="select"?(p.openBlock(),p.createElementBlock("div",{key:0,class:"custom-select dynamic-select filter-inline",onClick:p.withModifiers(ge=>re(Le),["stop"])},[p.createElementVNode("div",Mce,[Se[7]||(Se[7]=p.createElementVNode("span",{class:"select-icon select-analisis-icon"},[p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/report-maker/iconocategorias.png",alt:"icono categorías",style:{width:"18px",height:"18px","object-fit":"contain"}})],-1)),Se[8]||(Se[8]=p.createElementVNode("span",{class:"select-label"}," Tipo de análisis ",-1)),Array.isArray(l.value[Le])&&l.value[Le].length>0?(p.openBlock(),p.createElementBlock("span",Lce,p.toDisplayString(l.value[Le].length),1)):p.createCommentVNode("",!0),p.createElementVNode("span",{class:p.normalizeClass(["arrow",{open:R.value===Le}])},Se[6]||(Se[6]=[p.createElementVNode("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none"},[p.createElementVNode("path",{d:"M3 5L8 10L13 5",stroke:"#AAB4BE","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),2)]),R.value===Le?(p.openBlock(),p.createElementBlock("div",Pce,[p.createElementVNode("div",Nce,[p.createElementVNode("div",{class:"multi-select-header",onClick:Se[1]||(Se[1]=p.withModifiers(()=>{},["stop"]))},[p.createElementVNode("label",Oce,[p.createElementVNode("input",{type:"checkbox",checked:E(Le),indeterminate:S(Le),onChange:p.withModifiers(ge=>A(Le),["stop"]),onClick:Se[0]||(Se[0]=p.withModifiers(()=>{},["stop"]))},null,40,Rce),Se[9]||(Se[9]=p.createElementVNode("span",{class:"select-all-label"},"Agregar todas",-1))])]),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(Fe.options,ge=>(p.openBlock(),p.createElementBlock("div",{key:ge.value,class:p.normalizeClass(["option-card multi-select-option",{active:g(Le,ge.value)}]),onClick:Se[2]||(Se[2]=p.withModifiers(()=>{},["stop"]))},[p.createElementVNode("div",zce,[p.createElementVNode("input",{type:"checkbox",checked:g(Le,ge.value),onChange:p.withModifiers(Ce=>k(Le,ge.value),["stop"])},null,40,Dce)]),p.createElementVNode("div",{class:"option-content",onClick:Ce=>k(Le,ge.value)},[p.createElementVNode("div",Fce,p.toDisplayString(ge.label),1)],8,Ice)],2))),128))]),p.createElementVNode("div",Bce,[p.createElementVNode("button",{class:"btn-listo",onClick:Se[3]||(Se[3]=p.withModifiers(ge=>me(),["stop"]))},"Listo")])])):p.createCommentVNode("",!0)],8,Ace)):Fe.type==="radio-button"?(p.openBlock(),p.createElementBlock("div",Vce,[p.createElementVNode("div",Uce,p.toDisplayString(Fe.label),1),p.createElementVNode("div",jce,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(Fe.options,ge=>(p.openBlock(),p.createElementBlock("label",{key:ge.value,class:p.normalizeClass(["radio-option-card",{active:l.value[Le]===ge.value}])},[p.withDirectives(p.createElementVNode("input",{type:"radio",name:"dynamic-radio-"+Le,value:ge.value,"onUpdate:modelValue":Ce=>l.value[Le]=Ce,disabled:P(ge.value,ge.label),onChange:()=>{console.log("Radio button changed for FieldPosesion:",l.value[Le]),d.value.value&&Ne(),le()}},null,40,qce),[[p.vModelRadio,l.value[Le]]]),p.createElementVNode("span",null,p.toDisplayString(ge.label),1)],2))),128))])])):Fe.type==="check"?(p.openBlock(),p.createElementBlock("div",Wce,[p.createElementVNode("label",null,[p.withDirectives(p.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":ge=>l.value[Le]=ge,checked:l.value[Le],onChange:()=>{console.log(`Checkbox ${Le} changed to:`,l.value[Le]),d.value.value&&Ne(),le()}},null,40,Gce),[[p.vModelCheckbox,l.value[Le]]]),p.createTextVNode(" "+p.toDisplayString(Fe.label),1)])])):Fe.type==="select-simple"?(p.openBlock(),p.createElementBlock("div",{key:3,class:"custom-select dynamic-select filter-inline","data-filter-type":Fe.type,onClick:p.withModifiers(ge=>te(Le),["stop"])},[p.createElementVNode("div",Hce,[Se[11]||(Se[11]=p.createElementVNode("span",{class:"select-icon select-analisis-icon"},[p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/report-maker/iconocategorias.png",alt:"icono categorías",style:{width:"18px",height:"18px","object-fit":"contain"}})],-1)),Se[12]||(Se[12]=p.createElementVNode("span",{class:"select-label"}," Tipo de análisis ",-1)),Array.isArray(l.value[Le])&&l.value[Le].length>0?(p.openBlock(),p.createElementBlock("span",Jce,p.toDisplayString(l.value[Le].length),1)):p.createCommentVNode("",!0),p.createElementVNode("span",{class:p.normalizeClass(["arrow",{open:I.value===Le}])},Se[10]||(Se[10]=[p.createElementVNode("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none"},[p.createElementVNode("path",{d:"M3 5L8 10L13 5",stroke:"#AAB4BE","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),2)]),I.value===Le?(p.openBlock(),p.createElementBlock("div",Zce,[p.createElementVNode("div",Kce,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(Fe.options,ge=>(p.openBlock(),p.createElementBlock("div",{key:ge.value,class:p.normalizeClass(["option-card simple-select-option",{active:l.value[Le]===ge.value}]),onMouseenter:Ce=>ve(Le,ge.value),onClick:p.withModifiers(Ce=>Z(Le,ge.value),["stop"])},[p.createElementVNode("div",Qce,[p.createElementVNode("div",$ce,p.toDisplayString(ge.label),1)]),l.value[Le]===ge.value?(p.openBlock(),p.createElementBlock("div",eue,Se[13]||(Se[13]=[p.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[p.createElementVNode("path",{d:"M13.5 4.5L6 12L2.5 8.5",stroke:"#cbee6b","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))):p.createCommentVNode("",!0)],42,Yce))),128))])])):p.createCommentVNode("",!0)],8,Xce)):p.createCommentVNode("",!0),Le===1&&f.value.length>2?(p.openBlock(),p.createElementBlock("div",tue)):p.createCommentVNode("",!0)],64))),128))],2)):p.createCommentVNode("",!0),p.createElementVNode("button",{class:"close-btn",onClick:de},"✕")]))}}),nue=zd(rue,[["__scopeId","data-v-a3ae9bf8"]]),aue={key:0,class:"modal-simple"},iue={class:"modal-simple__content"},oue={class:"modal-simple__content__header"},sue={class:"modal-simple__content__body"},lue={class:"modal-simple__content__footer"},cue={__name:"ModalSimple",props:{modelValue:{type:Boolean,default:!1}},setup(r){return(i,y)=>(p.openBlock(),p.createBlock(p.Teleport,{to:"body"},[r.modelValue?(p.openBlock(),p.createElementBlock("div",aue,[p.createElementVNode("div",iue,[p.createElementVNode("div",oue,[p.renderSlot(i.$slots,"header",{},void 0,!0)]),p.createElementVNode("div",sue,[p.renderSlot(i.$slots,"body",{},void 0,!0)]),p.createElementVNode("div",lue,[p.renderSlot(i.$slots,"footer",{},void 0,!0)])])])):p.createCommentVNode("",!0)]))}},uue=zd(cue,[["__scopeId","data-v-1cc4f590"]]),due={class:"footer"},hue={__name:"ModalCautionClose",props:{value:{type:Boolean,default:!1}},emits:["update:modelValue","action"],setup(r,{emit:i}){const y=i;function F(L){y("update:modelValue",L)}function K(L){y("action",L),y("update:modelValue",!1)}return(L,w)=>(p.openBlock(),p.createBlock(uue,{"modle-value":r.value,"onUpdate:modelValue":F},{header:p.withCtx(()=>w[2]||(w[2]=[p.createElementVNode("div",{class:"header"},"Descartar template",-1)])),body:p.withCtx(()=>w[3]||(w[3]=[p.createElementVNode("div",{class:"body"},"¿Estás seguro que deseas abandonar el proceso?",-1)])),footer:p.withCtx(()=>[p.createElementVNode("div",due,[p.createElementVNode("div",{role:"button",class:"btn btn-cancel",onClick:w[0]||(w[0]=t=>K(!1))}," Seguir editando "),p.createElementVNode("div",{role:"button",class:"btn btn-confirm",onClick:w[1]||(w[1]=t=>K(!0))}," Descartar ")])]),_:1},8,["modle-value"]))}},pue=zd(hue,[["__scopeId","data-v-ed9b5088"]]),fue={class:"template-maker__header"},mue={key:0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gue={class:"template-maker__content"},yue={class:"template-maker__content__main"},vue={id:"containerMain",class:"container-main"},bue={class:"template-maker__content__main__cover-selector"},xue=["id"],_ue={class:"page-indicator"},wue={class:"page-indicator__index"},Tue=["onClick"],kue=["onClick"],Sue={key:0,class:"template-maker__content__main__footer"},Eue={class:"template-maker__content__main__footer__paginator"},Cue={class:"template-maker__content__main__footer__paginator__nav"},Aue={class:"template-maker__content__main__footer__paginator__numbers"},Mue=["onClick"],Lue={__name:"GSC-TemplateReportMaker",props:{token:{type:String,default:""}},emits:["close"],setup(r,{expose:i,emit:y}){const F=new Map,K=p.ref([{title:"Page 1",id:String(Date.now()),items:[{name:"Volumetrica",id:`w-${String(Date.now())}`,x:0,y:0,w:4,h:6,maxWidth:4,maxHeight:4,noResize:!1,noMove:!1,componentProps:{}},{name:"Volumetrica",id:String(Date.now()),x:4,y:0,w:4,h:4,maxWidth:4,maxHeight:4,noResize:!1,noMove:!1,componentProps:{}}]}]),L=p.ref(null),w=p.ref(0),t=p.ref(!1),v=p.ref(null),d=p.ref(null),e=p.ref(!0),x=p.ref(!1),m=p.ref(!1),b=p.ref(0),h=p.ref(!1),n=p.ref(null);p.ref(null);const a=p.ref(new Map),u=p.ref(null),s=p.ref(null),l=p.ref(!1),f=p.ref(!1);p.ref({updated_at:"2025-07-11T21:37:27.950Z",main_team:1,visible:!0,user_id:24254,created_at:"2025-07-11T21:35:44.847Z",report_name:"reporte modificado",team_id:1,id:"1adc5b32-24ae-4a26-8304-0369a7308f3f",game:{date:"2025-01-11",visiting_team_goals:12,home_team_name:"Guadalajara",visiting_team_xg:12.614200000000002,has_tracking:1,penalties_score_home_team:0,has_video:1,game_status:1,score:[1,0],date_time_utc:"2025-01-12T01:05:00Z",referee_id:391,video_types:[[1,2],[2,2],[3,2]],live_stats:1,home_team_goals:24,matchday_name:"Matchday 1",draw_probability:18,home_team_probability:72,matchday_abbreviation:"M1",game_id:88138,time_active:{home_te:"32:22",home_ti:"21:11",xta:"00:00",home_ta_average:"00:00",total_ti:"46:02",visiting_te:"21:14",visiting_ta_average:"00:00",total_te:"53:36",visiting_ti:"23:43",referee_ta_average:"-",others:"01:09"},matchday_id:1,minutes:{home_yellow_cards_minutes:["J. Rangel 32'"],away_yellow_cards_minutes:["A. Lozano 81'"],home_goals_minutes:["R. Alvarado 75'"],home_red_cards_minutes:[],away_red_cards_minutes:["A. Lozano 89'"],visiting_goals_minutes:[]},alt_minutes:{home_yellow_cards_minutes:["32'"],away_yellow_cards_minutes:["81'"],home_goals_minutes:["75'"],home_red_cards_minutes:[],away_red_cards_minutes:["89'"],visiting_goals_minutes:[]},tv_stations:[],season_id:1933,home_team_xg:24.784200000000002,visiting_team_name:"Santos Laguna",schedule:"19:05:00",visiting_team_acronym:"SAN",home_team_acronym:"CHI",referee_name:"Quintero Huitron, Daniel",is_live:0,home_games_played:0,visiting_team:14,penalties_score_visiting_team:0,home_team:1,away_games_played:0,visiting_team_probability:10},name:"VALOR 45",template_type:2,pages:[{is_front_page:!0,type:1,template_type:2},{components:[{min_row:1,min_column:1,column:1,max_row:4,filters:[{options:[{value:1,label:"Mi equipo"},{value:2,label:"Rival"},{value:3,label:"Ambos"}],type:"radio-button"}],title:"Hacia donde fueron los pases",url:"https://example.com/grafico.png",colspan:3,rowspan:2,name:"Volumétrica",show_extra_teams_logos:!0,id:5,row:1,allowed_templates_types:[1,2],max_column:4},{min_row:1,min_column:1,column:1,max_row:4,filters:[{options:[{value:1,label:"Ultimo juego"},{value:2,label:"2"},{value:3,label:"3"}],type:"radio-button",label:"Juegos"}],title:"Alineaciones iniciales",url:"https://example.com/grafico.png",colspan:3,rowspan:2,name:"Alineaciones iniciales",show_extra_teams_logos:!0,id:6,row:1,allowed_templates_types:[1,2],max_column:4},{min_row:1,min_column:1,column:1,max_row:4,filters:[{options:[{value:!0,label:"Si"},{value:!1,label:"No"}],type:"radio-button",label:"Ver tiempo inactivo"}],title:"Posesión de balón",url:"https://example.com/grafico.png",colspan:3,rowspan:2,name:"Posesión de balón",show_extra_teams_logos:!1,id:8,row:1,allowed_templates_types:[1,2],max_column:4}],columns:12,gap:10,name:"Pag 01",width:968,rows:12,height:702}]});const g=p.computed(()=>({"--overflow-y-template-maker":x.value?"scroll":"hidden","--height-container-main":x.value?"fit-content":"calc(100vh - 64px)","--margin-bottom-container-main":(x.value,"0")}));p.watch(()=>t.value,ie=>{const me=document.getElementById("app");ie?(w.value=0,document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",me&&(me.style.overflow="hidden")):(document.body.style.overflow="",document.documentElement.style.overflow="",me&&(me.style.overflow=""))});function k(ie){return ie<10?`0${ie}`:ie}async function E({templateId:ie,userId:me}){try{return(await(await fetch(`https://m9qip57rsh.execute-api.us-east-2.amazonaws.com/prod/users/${me}/templates/${ie}`,{method:"GET",headers:{Authorization:q.token}})).json()).data}catch(ve){console.error("Error fetching template by ID:",ve)}}async function S({reportId:ie,userId:me}){try{return(await(await fetch(`https://m9qip57rsh.execute-api.us-east-2.amazonaws.com/prod/users/${me}/reports/${ie}`,{method:"GET",headers:{Authorization:q.token}})).json()).data}catch(ve){console.error("Error fetching report by ID:",ve)}}let M=0;function N(ie){L.value=ie,M>0&&(l.value=!0),M++}function C(ie){ie&&H(null,!0)}let P=null;function A(ie,me){let ve=ie.getBoundingClientRect(),ye={height:ie.clientHeight,width:ie.clientWidth},we=me.getBoundingClientRect();if(!(we.top>=ve.top&&we.bottom<=ve.top+ye.height)){const Me=we.top-ve.top,Ae=we.bottom-ve.bottom;Math.abs(Me)<Math.abs(Ae)?ie.scrollTop+=Me:ie.scrollTop+=Ae}}function T(ie,me=!1){const ve={title:`Page ${K.value.length+1}`,id:`p-${Date.now()}`,items:[]};if(ce(),ie!==void 0&&ie>=-1?K.value.splice(ie+1,0,ve):K.value.push(ve),p.nextTick(()=>{const ye=K.value.findIndex(Me=>Me.id===ve.id),we=document.getElementById(`page-${ye+1}`);P||(P=document.getElementById("containerMain")),we&&P?A(P,we):console.error("Page element or container main element not found")}),me)return ve;l.value=!0}function O(ie){if(ie<-1||ie>=K.value.length+1)return;const me=document.getElementById(`page-${ie}`);P||(P=document.getElementById("containerMain")),me&&P&&A(P,me)}function _(ie){u.value=ie,h.value=!0}function R(ie,me){const ve=me+1;ie&&w.value!==ve&&(w.value=ve)}function I(ie){h.value=!0,li.emit("edit-view",{view:ie})}async function V({templateReportId:ie,userId:me,isTemplateMode:ve}){try{return ve?E({templateId:ie,userId:me}):S({reportId:ie,userId:me})}catch(ye){throw new Error("Error fetching template or report by ID: "+ye.message)}}async function j(ie){if(console.log("show, initialConfig",ie),h.value=!1,M=0,a.value.clear(),e.value=ie.isTemplateMode,console.log("****************************************** isTemplateMode.value",e.value),x.value=!!ie.isPDFMode,ie.isPDFMode?v.value=await S({reportId:ie.reportId,userId:ie.userId}):(v.value=ie.template,v.value=await V({templateReportId:ie.template.id,userId:ie.template.user_id,isTemplateMode:ie.isTemplateMode})),!v.value)return;v.value&&v.value.game&&(v.value.game=ne(v.value.game)),console.log("templateToEdit.value",v.value),d.value=JSON.parse(JSON.stringify(v.value)),m.value=v.value.template_type===2;const me=v.value.pages.find(ve=>ve.is_front_page);b.value=me?me.type:1,t.value=!0,K.value=v.value.pages.reduce((ve,ye,we)=>{if(!ye.is_front_page){ye.name||(ye.name="");const Me={originalPage:JSON.parse(JSON.stringify(ye)),title:ye.name,id:`p-${Date.now()-we*9}`,items:[],components:ye.components};ye.components&&ye.components.length>0&&(Me.items=ye.components.map((Ae,Pe)=>{const Ne=new ay(`FAWC-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,[],Ae.coreView.id,Ae.dynamicFilters,m.value,e.value,Ae.filtersJSON||null,q.token),Ie={originalComponent:JSON.parse(JSON.stringify(Ae)),title:Ae.title,game:v.value.game,idAux:Ae.id,id:`w-${Date.now()-Pe*7}`,x:Ae.column,y:Ae.row,w:Ae.colspan,h:Ae.rowspan,maxWidth:Ae.max_column,maxHeight:Ae.max_row,minWidth:Ae.min_column,minHeight:Ae.min_row,noResize:!e.value,noMove:!e.value,coreView:Ae.coreView||null,isTemplateMode:e.value,componentName:Ae.componentName,componentProps:G({currentProps:Ae.componentProps,coreView:Ae.coreView,isTemplateMode:e.value,game:v.value.game||null})||{},filterMultiple:Ae.filterMultiple,isHomeTeam:Ae.isHomeTeam||Ae.componentProps.isHomeTeamForAnalysis,filtersJSON:Ae.filtersJSON||null,dynamicFilters:Ae.dynamicFilters||[],filterAndViewsContainer:Ne},ze=p.reactive({view:Ie});return Ne.addView(ze,!0),a.value.set(Ne.getId(),Ne),Ie})),ve.push(Me)}return ve},[]),console.log("pages.value",K.value),console.log("isvisible.value",t.value)}function G({currentProps:ie,coreView:me,isTemplateMode:ve,game:ye}){if(!ie||!me)return ie||{};const we={...ie};return me.id===5&&(we.isGhostEffect=ve),me.id===1&&(console.log("coreView.id 1 isTemplateMode -->",ve),we.gameId=ye?ye.id:"",we.homeLogo=ye?ye.homeTeam.logo:"",we.awayLogo=ye?ye.awayTeam.logo:"",we.seasonId=ye?ye.season_id:0,we.default=ve),me.id===6&&(we.game=ye||""),me.id===2&&(we.gamed=ye?ye.id:"",we.game=ye||"",we.season=ye?ye.season_id:0,we.useDummyData=ve),ye&&(we.game=ye),we}const q=r,Y=y;p.watch(()=>q.token,(ie,me)=>{console.log("Token changed:",{newToken:ie,oldToken:me})},{immediate:!0}),i({show:j}),li.on("add-page-view",ie=>{F.set(ie.view.id,ie.view);const me=K.value.find(ve=>ve.id===ie.pageId);me&&(me.items||(me.items=[]),me.items.push(ie.view),p.nextTick(()=>{const ve=document.querySelector(`[gs-id="${ie.view.id}"]`);ie.grid.makeWidget(ve)}))}),li.on("add-page-and-view",ie=>{const me=K.value.findIndex(ve=>ve.id===ie.pageId);if(me>-1){const ve=T(me,!0);setTimeout(()=>{li.emit("add-view",{pageId:ve.id,view:ie.view,filterAndWidgetContainer:ie.filterAndWidgetContainer}),s.value&&(ve.stepBackPage=s.value),s.value=ve},500)}else console.error("Page not found for adding view:",ie.pageId)}),li.on("empty-page",ie=>{he(ie),s.value&&s.value.id===ie.id&&(s.value.stepBackPage?s.value=s.value.stepBackPage:s.value=null)});function ne(ie){return{...ie,gameId:ie.game_id,id:ie.game_id,seasonId:ie.season_id,status:ie.game_status,homeTeam:{logo:`https://golstatsimages.blob.core.windows.net/teams-150/${ie.home_team}.png`,team_id:ie.home_team,provisional_logo:`https://golstatsimages.blob.core.windows.net/teams-provisional/${ie.home_team}.png`,colloquial_name:ie.home_team_name,acronym:ie.home_team_acronym,team_name:ie.home_team_name},awayTeam:{logo:`https://golstatsimages.blob.core.windows.net/teams-150/${ie.visiting_team}.png`,team_id:ie.visiting_team,provisional_logo:`https://golstatsimages.blob.core.windows.net/teams-provisional/${ie.visiting_team}.png`,colloquial_name:ie.visiting_team_name,acronym:ie.visiting_team_acronym,team_name:ie.visiting_team_name}}}function H(ie,me=!1){me||!e.value?(t.value=!1,Y("close")):l.value?f.value=!0:(t.value=!1,Y("close"))}function re(){n.value=null,h.value=!1}function te({page:ie,view:me,applyMinimumSize:ve=!1}){const ye=ie.grid;if(!ie||!me||!ye)return null;const we=ve?{w:me.min_column,h:me.min_row}:{w:me.colspan,h:me.rowspan},Me=ye.willItFit(0,0,we.w,we.h,!0);return Me?{willFit:Me,applyMinimumSize:ve}:ve?null:te({page:ie,view:me,applyMinimumSize:!0})}const Z=new Set([9]);function ee(ie){var me,ve,ye,we,Me,Ae,Pe;if(console.log("onFiltersChanged",ie),ie.dynamicFilters&&ie.dynamicFilters.length>0&&ie.viewToEdit&&ie.viewToEdit.view){const Ne=ie.viewToEdit.view.id;K.value.forEach(Ie=>{Ie.items.forEach(ze=>{ze.id===Ne&&ze.coreView&&ze.coreView.id===3&&(ze.componentProps.desplegable=ie.dynamicFilters[0]||!1,ze.componentProps.key=ie.dynamicFilters[0]||!1,p.nextTick(()=>{li.emit("force-component-update",{itemId:ze.id,componentProps:ze.componentProps})}))})})}if(ie.viewToEdit){if(!ie.viewToEdit.view.filterAndViewsContainer){const Ne=new ay(`FAWC-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,[ie.viewToEdit.view],((me=ie.viewToEdit.view.coreView)==null?void 0:me.id)||ie.viewToEdit.view.id,ie.dynamicFilters||[],m.value,e.value,ie.filtersJSON,q.token);ie.viewToEdit.view.filterAndViewsContainer=Ne}ie.viewToEdit.view.filterAndViewsContainer.updateView({view:ie.viewToEdit,dynamicFilters:ie.dynamicFilters||[],filtersJSON:ie.filtersJSON||null}),l.value=!0}else if(ie.view){ie.view.id&&Z.has(ie.view.id)&&ie.dynamicFilters[0]&&ie.dynamicFilters[0].length===0&&ie.filterAndViewsContainer&&(ie.filterAndViewsContainer.updateDynamicFilters(ie.dynamicFilters,(ye=(ve=ie.viewToEdit)==null?void 0:ve.view)==null?void 0:ye.id),l.value=!0);const Ne=s.value||u.value,Ie=te({page:Ne,view:ie.view,applyMinimumSize:!1});ie.view.filtersJSON=ie.filtersJSON||null;const ze=ie.filterAndViewsContainer,Se=K.value.findIndex(Fe=>Fe.id===Ne.id);if(ze)ie.filterAndViewsContainer.getRequiresAddView(ie.dynamicFilters)?(ze.setDynamicFilters(ie.dynamicFilters),(Ie||Se===K.value.length-1)&&(li.emit("add-view",{pageId:Ne.id,view:ie.view,filterAndWidgetContainer:ze,avoidWillFit:!1,applyMinimumSize:Ie?Ie.applyMinimumSize:!1}),ie.filterAndViewsContainer.updateDynamicFilters(ie.dynamicFilters,(Me=(we=ie.viewToEdit)==null?void 0:we.view)==null?void 0:Me.id),l.value=!0,setTimeout(()=>{ie.filterAndViewsContainer.getRequiresAddView(ie.dynamicFilters)?(console.log("GSCtops - still requires add view, calling recursively"),ee(ie)):console.log("GSCtops - no more views needed, stopping recursion")},1e3))):(ie.filterAndViewsContainer.updateDynamicFilters(ie.dynamicFilters,(Pe=(Ae=ie.viewToEdit)==null?void 0:Ae.view)==null?void 0:Pe.id),l.value=!0);else if(Ie||Se===K.value.length-1){const Fe=new ay(`FAWC-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,[],ie.view.id,ie.dynamicFilters,m.value,e.value,ie.filtersJSON,q.token);li.emit("set-filter-and-views-container",Fe),a.value.set(Fe.getId(),Fe),ie.dynamicFilters&&Array.isArray(ie.dynamicFilters[0])?(ie.filterAndViewsContainer=Fe,ee(ie)):li.emit("add-view",{pageId:Ne.id,view:ie.view,filterAndWidgetContainer:Fe,avoidWillFit:!1,applyMinimumSize:Ie?Ie.applyMinimumSize:!1}),l.value=!0}}}async function le(){if(l.value)try{const ie=[{is_front_page:!0,template_type:L.value.isPostMatch?2:1,type:L.value.id},...K.value.map(ve=>({columns:ve.originalPage?ve.originalPage.columns:12,rows:ve.originalPage?ve.originalPage.rows:12,gap:ve.originalPage?ve.originalPage.gap:10,name:ve.title,width:ve.originalPage?ve.originalPage.width:968,height:ve.originalPage?ve.originalPage.height:702,components:ve.items.map(ye=>({min_column:ye.minWidth,min_row:ye.minHeight,max_column:ye.maxWidth,max_row:ye.maxHeight,column:ye.x,row:ye.y,colspan:ye.w,rowspan:ye.h,name:ye.name,title:ye.title,dynamicFilters:ye.filterAndViewsContainer.getComponentDynamicFilters(ye.id)||ye.filterAndViewsContainer.getDynamicFilters()||[],coreView:ye.coreView||null,componentName:ye.componentName,componentProps:ye.componentProps||{},isHomeTeam:ye.isHomeTeam||ye.componentProps.isHomeTeamForAnalysis,filterMultiple:ye.filterMultiple}))}))];console.log("pagesAux",ie);const me=await(await fetch(`https://m9qip57rsh.execute-api.us-east-2.amazonaws.com/prod/users/${v.value.user_id}/templates/${v.value.id}/pages`,{method:"PATCH",headers:{Authorization:q.token},body:JSON.stringify({pages:ie})})).json();l.value=!1}catch(ie){console.error("Error saving template:",ie)}}function ce(){K.value.forEach(ie=>{ie.offListeners&&ie.offListeners()})}function he(ie){const me=K.value.findIndex(ve=>ve.id===ie.id);me>-1&&(ce(),K.value=K.value.filter(ve=>ve.id!==ie.id),w.value>=me&&(w.value=Math.max(0,w.value-1)),l.value=!0)}function fe(){l.value=!0}function se(ie){const me=K.value.find(ve=>ve.items.some(ye=>ye.id===ie.id));if(me){const ve=me.items.findIndex(ye=>ye.id===ie.id);ve!==-1&&(me.items.splice(ve,1),l.value=!0)}}function de(ie){console.log("onChangeSort",ie)}return(ie,me)=>(p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createVNode(pue,{modelValue:f.value,"onUpdate:modelValue":me[0]||(me[0]=ve=>f.value=ve),onAction:C},null,8,["modelValue"]),(p.openBlock(),p.createBlock(p.Teleport,{to:"body"},[t.value&&v.value?(p.openBlock(),p.createElementBlock("div",{key:0,class:"template-maker",style:p.normalizeStyle(g.value)},[p.withDirectives(p.createVNode(nue,{token:r.token,view:n.value,"is-post-match":m.value,onClose:re,onFiltersChanged:ee},null,8,["token","view","is-post-match"]),[[p.vShow,e.value&&h.value]]),p.createElementVNode("div",fue,[p.createTextVNode(p.toDisplayString(v.value?v.value.name:"Nuevo template")+" ",1),p.createElementVNode("div",{class:"template-maker__header__close",onClick:H},[x.value?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("svg",mue,me[6]||(me[6]=[p.createElementVNode("path",{d:"M1.33398 1.33398L14.6673 14.6673",stroke:"#FFFFFF","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),p.createElementVNode("path",{d:"M14.666 1.33398L1.33268 14.6673",stroke:"#FFFFFF","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))])]),p.createElementVNode("div",gue,[me[14]||(me[14]=p.createElementVNode("div",{class:"template-maker__content__sidebar"},null,-1)),p.createElementVNode("div",yue,[p.createElementVNode("div",vue,[p.createElementVNode("div",bue,[p.withDirectives(p.createVNode(KT,{"is-post-match":m.value,"initial-cover-id":b.value,onSelectCover:N},null,8,["is-post-match","initial-cover-id"]),[[p.vShow,e.value]])]),(p.openBlock(),p.createElementBlock("div",{class:"template-maker__content__main__pages",key:K.value.length},[L.value?(p.openBlock(),p.createBlock(ece,{key:0,id:"page-0",game:v.value.game||null,"cover-id":L.value.id,"is-post-match":L.value.isPostMatch,onIntersectionChanged:me[1]||(me[1]=ve=>R(ve,-1))},null,8,["game","cover-id","is-post-match"])):p.createCommentVNode("",!0),e.value?(p.openBlock(),p.createElementBlock("div",{key:1,class:"new-items-buttons",style:p.normalizeStyle({"margin-bottom":K.value.length===0?"30px":"0"})},[h.value?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("div",{key:0,class:"new-items-buttons__add-page new-item-button",onClick:me[2]||(me[2]=ve=>T(-1))},me[7]||(me[7]=[p.createElementVNode("div",null,"+ Nueva página",-1),p.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("path",{d:"M8.66797 1.33203H4.0013C3.64768 1.33203 3.30854 1.47251 3.05849 1.72256C2.80844 1.9726 2.66797 2.31174 2.66797 2.66536V13.332C2.66797 13.6857 2.80844 14.0248 3.05849 14.2748C3.30854 14.5249 3.64768 14.6654 4.0013 14.6654H12.0013C12.3549 14.6654 12.6941 14.5249 12.9441 14.2748C13.1942 14.0248 13.3346 13.6857 13.3346 13.332V5.9987L8.66797 1.33203Z",stroke:"white","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"}),p.createElementVNode("path",{d:"M8.66797 1.33203V5.9987H13.3346",stroke:"white","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])))],4)):p.createCommentVNode("",!0),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(K.value,(ve,ye)=>(p.openBlock(),p.createElementBlock("div",{key:ye,id:`page-${ye+1}`,class:"template-maker__content__main__pages__page"},[p.createElementVNode("div",_ue,[p.createElementVNode("div",wue,"Pag "+p.toDisplayString(k(ye+2)),1)]),L.value?(p.openBlock(),p.createBlock(hle,{key:0,page:ve,"is-template-mode":e.value,"is-post-match":L.value.isPostMatch,game:v.value.game||null,lastGames:v.value.lastGames||[],"is-filter-visible":h.value,onEditView:I,onIntersectionChanged:we=>R(we,ye),onChangeSort:de,onDeletePage:he,onViewChanged:fe,onDeleteView:se},null,8,["page","is-template-mode","is-post-match","game","lastGames","is-filter-visible","onIntersectionChanged"])):p.createCommentVNode("",!0),e.value&&!h.value?(p.openBlock(),p.createElementBlock("div",{key:1,class:"new-items-buttons",style:p.normalizeStyle({"margin-bottom":ye+1===K.value.length?"30px":"0","margin-top":"10px"})},[p.createElementVNode("div",{class:"new-items-buttons__add-page new-item-button",onClick:we=>T(ye)},me[8]||(me[8]=[p.createElementVNode("div",null,"+ Nueva página",-1),p.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("path",{d:"M8.66797 1.33203H4.0013C3.64768 1.33203 3.30854 1.47251 3.05849 1.72256C2.80844 1.9726 2.66797 2.31174 2.66797 2.66536V13.332C2.66797 13.6857 2.80844 14.0248 3.05849 14.2748C3.30854 14.5249 3.64768 14.6654 4.0013 14.6654H12.0013C12.3549 14.6654 12.6941 14.5249 12.9441 14.2748C13.1942 14.0248 13.3346 13.6857 13.3346 13.332V5.9987L8.66797 1.33203Z",stroke:"white","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"}),p.createElementVNode("path",{d:"M8.66797 1.33203V5.9987H13.3346",stroke:"white","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),8,Tue),p.createElementVNode("div",{class:"new-items-buttons__add-item new-item-button",onClick:we=>_(ve)},me[9]||(me[9]=[p.createElementVNode("div",null,"+ Agregar gráfico",-1),p.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("path",{d:"M12 13.3346V6.66797",stroke:"white","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"}),p.createElementVNode("path",{d:"M8 13.3346V2.66797",stroke:"white","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"}),p.createElementVNode("path",{d:"M4 13.332V9.33203",stroke:"white","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),8,kue)],4)):p.createCommentVNode("",!0)],8,xue))),128))]))]),x.value?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("div",Sue,[p.createElementVNode("div",Eue,[p.createElementVNode("div",Cue,[me[12]||(me[12]=p.createElementVNode("div",null,"Páginas",-1)),p.createElementVNode("div",{class:"template-maker__content__main__footer__paginator__nav__arrow",onClick:me[3]||(me[3]=ve=>O(w.value-1))},me[10]||(me[10]=[p.createElementVNode("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.22444 5L5.29079 8.57741C5.56974 8.90285 5.56974 9.43049 5.29079 9.75592C5.01184 10.0814 4.55958 10.0814 4.28064 9.75592L0.709209 5.58926C0.430263 5.26382 0.430263 4.73618 0.709209 4.41074L4.28064 0.244078C4.55958 -0.0813593 5.01184 -0.0813592 5.29079 0.244078C5.56974 0.569515 5.56974 1.09715 5.29079 1.42259L2.22444 5Z",fill:"#92929D"})],-1)])),p.createElementVNode("div",{class:"template-maker__content__main__footer__paginator__nav__arrow",onClick:me[4]||(me[4]=ve=>O(w.value+1))},me[11]||(me[11]=[p.createElementVNode("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.77556 5L0.70921 8.57741C0.430264 8.90285 0.430264 9.43049 0.70921 9.75592C0.988156 10.0814 1.44042 10.0814 1.71936 9.75592L5.29079 5.58926C5.56974 5.26382 5.56974 4.73618 5.29079 4.41074L1.71936 0.244078C1.44042 -0.0813593 0.988155 -0.0813592 0.709209 0.244078C0.430264 0.569515 0.430264 1.09715 0.70921 1.42259L3.77556 5Z",fill:"#92929D"})],-1)]))]),p.createElementVNode("div",Aue,[p.createElementVNode("div",{role:"button",class:p.normalizeClass({active:w.value===0}),onClick:me[5]||(me[5]=ve=>O(0))},p.toDisplayString(k(1)),3),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(K.value,(ve,ye)=>(p.openBlock(),p.createElementBlock("div",{role:"button",key:ye,class:p.normalizeClass({active:ye+1===w.value}),onClick:we=>O(ye+1)},p.toDisplayString(k(ye+2)),11,Mue))),128))])]),e.value?(p.openBlock(),p.createElementBlock("div",{key:0,role:"button",class:p.normalizeClass(["template-maker__content__main__footer__save save-button",{disabled:!l.value}]),onClick:le},me[13]||(me[13]=[p.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("path",{d:"M12.6667 14H3.33333C2.97971 14 2.64057 13.8595 2.39052 13.6095C2.14048 13.3594 2 13.0203 2 12.6667V3.33333C2 2.97971 2.14048 2.64057 2.39052 2.39052C2.64057 2.14048 2.97971 2 3.33333 2H10.6667L14 5.33333V12.6667C14 13.0203 13.8595 13.3594 13.6095 13.6095C13.3594 13.8595 13.0203 14 12.6667 14Z",stroke:"white","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"}),p.createElementVNode("path",{d:"M11.3346 14.0013V8.66797H4.66797V14.0013",stroke:"white","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"}),p.createElementVNode("path",{d:"M4.66797 2V5.33333H10.0013",stroke:"white","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"})],-1),p.createElementVNode("div",null,"Guardar",-1)]),2)):p.createCommentVNode("",!0)]))])])],4)):p.createCommentVNode("",!0)]))],64))}},Pue=zd(Lue,[["__scopeId","data-v-ab3d22c2"]]);function R6(r,i){return function(){return r.apply(i,arguments)}}const{toString:Nue}=Object.prototype,{getPrototypeOf:X2}=Object,{iterator:iy,toStringTag:z6}=Symbol,oy=(r=>i=>{const y=Nue.call(i);return r[y]||(r[y]=y.slice(8,-1).toLowerCase())})(Object.create(null)),ed=r=>(r=r.toLowerCase(),i=>oy(i)===r),sy=r=>i=>typeof i===r,{isArray:jp}=Array,am=sy("undefined");function im(r){return r!==null&&!am(r)&&r.constructor!==null&&!am(r.constructor)&&fu(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const D6=ed("ArrayBuffer");function Oue(r){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(r):i=r&&r.buffer&&D6(r.buffer),i}const Rue=sy("string"),fu=sy("function"),I6=sy("number"),om=r=>r!==null&&typeof r=="object",zue=r=>r===!0||r===!1,ly=r=>{if(oy(r)!=="object")return!1;const i=X2(r);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(z6 in r)&&!(iy in r)},Due=r=>{if(!om(r)||im(r))return!1;try{return Object.keys(r).length===0&&Object.getPrototypeOf(r)===Object.prototype}catch{return!1}},Iue=ed("Date"),Fue=ed("File"),Bue=ed("Blob"),Vue=ed("FileList"),Uue=r=>om(r)&&fu(r.pipe),jue=r=>{let i;return r&&(typeof FormData=="function"&&r instanceof FormData||fu(r.append)&&((i=oy(r))==="formdata"||i==="object"&&fu(r.toString)&&r.toString()==="[object FormData]"))},que=ed("URLSearchParams"),[Wue,Gue,Xue,Hue]=["ReadableStream","Request","Response","Headers"].map(ed),Jue=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function sm(r,i,{allOwnKeys:y=!1}={}){if(r===null||typeof r>"u")return;let F,K;if(typeof r!="object"&&(r=[r]),jp(r))for(F=0,K=r.length;F<K;F++)i.call(null,r[F],F,r);else{if(im(r))return;const L=y?Object.getOwnPropertyNames(r):Object.keys(r),w=L.length;let t;for(F=0;F<w;F++)t=L[F],i.call(null,r[t],t,r)}}function F6(r,i){if(im(r))return null;i=i.toLowerCase();const y=Object.keys(r);let F=y.length,K;for(;F-- >0;)if(K=y[F],i===K.toLowerCase())return K;return null}const Kh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,B6=r=>!am(r)&&r!==Kh;function H2(){const{caseless:r}=B6(this)&&this||{},i={},y=(F,K)=>{const L=r&&F6(i,K)||K;ly(i[L])&&ly(F)?i[L]=H2(i[L],F):ly(F)?i[L]=H2({},F):jp(F)?i[L]=F.slice():i[L]=F};for(let F=0,K=arguments.length;F<K;F++)arguments[F]&&sm(arguments[F],y);return i}const Zue=(r,i,y,{allOwnKeys:F}={})=>(sm(i,(K,L)=>{y&&fu(K)?r[L]=R6(K,y):r[L]=K},{allOwnKeys:F}),r),Kue=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),Yue=(r,i,y,F)=>{r.prototype=Object.create(i.prototype,F),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:i.prototype}),y&&Object.assign(r.prototype,y)},Que=(r,i,y,F)=>{let K,L,w;const t={};if(i=i||{},r==null)return i;do{for(K=Object.getOwnPropertyNames(r),L=K.length;L-- >0;)w=K[L],(!F||F(w,r,i))&&!t[w]&&(i[w]=r[w],t[w]=!0);r=y!==!1&&X2(r)}while(r&&(!y||y(r,i))&&r!==Object.prototype);return i},$ue=(r,i,y)=>{r=String(r),(y===void 0||y>r.length)&&(y=r.length),y-=i.length;const F=r.indexOf(i,y);return F!==-1&&F===y},ede=r=>{if(!r)return null;if(jp(r))return r;let i=r.length;if(!I6(i))return null;const y=new Array(i);for(;i-- >0;)y[i]=r[i];return y},tde=(r=>i=>r&&i instanceof r)(typeof Uint8Array<"u"&&X2(Uint8Array)),rde=(r,i)=>{const F=(r&&r[iy]).call(r);let K;for(;(K=F.next())&&!K.done;){const L=K.value;i.call(r,L[0],L[1])}},nde=(r,i)=>{let y;const F=[];for(;(y=r.exec(i))!==null;)F.push(y);return F},ade=ed("HTMLFormElement"),ide=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(y,F,K){return F.toUpperCase()+K}),V6=(({hasOwnProperty:r})=>(i,y)=>r.call(i,y))(Object.prototype),ode=ed("RegExp"),U6=(r,i)=>{const y=Object.getOwnPropertyDescriptors(r),F={};sm(y,(K,L)=>{let w;(w=i(K,L,r))!==!1&&(F[L]=w||K)}),Object.defineProperties(r,F)},sde=r=>{U6(r,(i,y)=>{if(fu(r)&&["arguments","caller","callee"].indexOf(y)!==-1)return!1;const F=r[y];if(fu(F)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+y+"'")})}})},lde=(r,i)=>{const y={},F=K=>{K.forEach(L=>{y[L]=!0})};return jp(r)?F(r):F(String(r).split(i)),y},cde=()=>{},ude=(r,i)=>r!=null&&Number.isFinite(r=+r)?r:i;function dde(r){return!!(r&&fu(r.append)&&r[z6]==="FormData"&&r[iy])}const hde=r=>{const i=new Array(10),y=(F,K)=>{if(om(F)){if(i.indexOf(F)>=0)return;if(im(F))return F;if(!("toJSON"in F)){i[K]=F;const L=jp(F)?[]:{};return sm(F,(w,t)=>{const v=y(w,K+1);!am(v)&&(L[t]=v)}),i[K]=void 0,L}}return F};return y(r,0)},pde=ed("AsyncFunction"),fde=r=>r&&(om(r)||fu(r))&&fu(r.then)&&fu(r.catch),j6=((r,i)=>r?setImmediate:i?((y,F)=>(Kh.addEventListener("message",({source:K,data:L})=>{K===Kh&&L===y&&F.length&&F.shift()()},!1),K=>{F.push(K),Kh.postMessage(y,"*")}))(`axios@${Math.random()}`,[]):y=>setTimeout(y))(typeof setImmediate=="function",fu(Kh.postMessage)),mde=typeof queueMicrotask<"u"?queueMicrotask.bind(Kh):typeof process<"u"&&process.nextTick||j6,Xn={isArray:jp,isArrayBuffer:D6,isBuffer:im,isFormData:jue,isArrayBufferView:Oue,isString:Rue,isNumber:I6,isBoolean:zue,isObject:om,isPlainObject:ly,isEmptyObject:Due,isReadableStream:Wue,isRequest:Gue,isResponse:Xue,isHeaders:Hue,isUndefined:am,isDate:Iue,isFile:Fue,isBlob:Bue,isRegExp:ode,isFunction:fu,isStream:Uue,isURLSearchParams:que,isTypedArray:tde,isFileList:Vue,forEach:sm,merge:H2,extend:Zue,trim:Jue,stripBOM:Kue,inherits:Yue,toFlatObject:Que,kindOf:oy,kindOfTest:ed,endsWith:$ue,toArray:ede,forEachEntry:rde,matchAll:nde,isHTMLForm:ade,hasOwnProperty:V6,hasOwnProp:V6,reduceDescriptors:U6,freezeMethods:sde,toObjectSet:lde,toCamelCase:ide,noop:cde,toFiniteNumber:ude,findKey:F6,global:Kh,isContextDefined:B6,isSpecCompliantForm:dde,toJSONObject:hde,isAsyncFn:pde,isThenable:fde,setImmediate:j6,asap:mde,isIterable:r=>r!=null&&fu(r[iy])};function vi(r,i,y,F,K){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",i&&(this.code=i),y&&(this.config=y),F&&(this.request=F),K&&(this.response=K,this.status=K.status?K.status:null)}Xn.inherits(vi,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Xn.toJSONObject(this.config),code:this.code,status:this.status}}});const q6=vi.prototype,W6={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{W6[r]={value:r}}),Object.defineProperties(vi,W6),Object.defineProperty(q6,"isAxiosError",{value:!0}),vi.from=(r,i,y,F,K,L)=>{const w=Object.create(q6);return Xn.toFlatObject(r,w,function(v){return v!==Error.prototype},t=>t!=="isAxiosError"),vi.call(w,r.message,i,y,F,K),w.cause=r,w.name=r.name,L&&Object.assign(w,L),w};const gde=null;function J2(r){return Xn.isPlainObject(r)||Xn.isArray(r)}function G6(r){return Xn.endsWith(r,"[]")?r.slice(0,-2):r}function X6(r,i,y){return r?r.concat(i).map(function(K,L){return K=G6(K),!y&&L?"["+K+"]":K}).join(y?".":""):i}function yde(r){return Xn.isArray(r)&&!r.some(J2)}const vde=Xn.toFlatObject(Xn,{},null,function(i){return/^is[A-Z]/.test(i)});function cy(r,i,y){if(!Xn.isObject(r))throw new TypeError("target must be an object");i=i||new FormData,y=Xn.toFlatObject(y,{metaTokens:!0,dots:!1,indexes:!1},!1,function(n,a){return!Xn.isUndefined(a[n])});const F=y.metaTokens,K=y.visitor||e,L=y.dots,w=y.indexes,v=(y.Blob||typeof Blob<"u"&&Blob)&&Xn.isSpecCompliantForm(i);if(!Xn.isFunction(K))throw new TypeError("visitor must be a function");function d(h){if(h===null)return"";if(Xn.isDate(h))return h.toISOString();if(Xn.isBoolean(h))return h.toString();if(!v&&Xn.isBlob(h))throw new vi("Blob is not supported. Use a Buffer instead.");return Xn.isArrayBuffer(h)||Xn.isTypedArray(h)?v&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function e(h,n,a){let u=h;if(h&&!a&&typeof h=="object"){if(Xn.endsWith(n,"{}"))n=F?n:n.slice(0,-2),h=JSON.stringify(h);else if(Xn.isArray(h)&&yde(h)||(Xn.isFileList(h)||Xn.endsWith(n,"[]"))&&(u=Xn.toArray(h)))return n=G6(n),u.forEach(function(l,f){!(Xn.isUndefined(l)||l===null)&&i.append(w===!0?X6([n],f,L):w===null?n:n+"[]",d(l))}),!1}return J2(h)?!0:(i.append(X6(a,n,L),d(h)),!1)}const x=[],m=Object.assign(vde,{defaultVisitor:e,convertValue:d,isVisitable:J2});function b(h,n){if(!Xn.isUndefined(h)){if(x.indexOf(h)!==-1)throw Error("Circular reference detected in "+n.join("."));x.push(h),Xn.forEach(h,function(u,s){(!(Xn.isUndefined(u)||u===null)&&K.call(i,u,Xn.isString(s)?s.trim():s,n,m))===!0&&b(u,n?n.concat(s):[s])}),x.pop()}}if(!Xn.isObject(r))throw new TypeError("data must be an object");return b(r),i}function H6(r){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(F){return i[F]})}function Z2(r,i){this._pairs=[],r&&cy(r,this,i)}const J6=Z2.prototype;J6.append=function(i,y){this._pairs.push([i,y])},J6.toString=function(i){const y=i?function(F){return i.call(this,F,H6)}:H6;return this._pairs.map(function(K){return y(K[0])+"="+y(K[1])},"").join("&")};function bde(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Z6(r,i,y){if(!i)return r;const F=y&&y.encode||bde;Xn.isFunction(y)&&(y={serialize:y});const K=y&&y.serialize;let L;if(K?L=K(i,y):L=Xn.isURLSearchParams(i)?i.toString():new Z2(i,y).toString(F),L){const w=r.indexOf("#");w!==-1&&(r=r.slice(0,w)),r+=(r.indexOf("?")===-1?"?":"&")+L}return r}class K6{constructor(){this.handlers=[]}use(i,y,F){return this.handlers.push({fulfilled:i,rejected:y,synchronous:F?F.synchronous:!1,runWhen:F?F.runWhen:null}),this.handlers.length-1}eject(i){this.handlers[i]&&(this.handlers[i]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(i){Xn.forEach(this.handlers,function(F){F!==null&&i(F)})}}const Y6={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xde={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Z2,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},K2=typeof window<"u"&&typeof document<"u",Y2=typeof navigator=="object"&&navigator||void 0,_de=K2&&(!Y2||["ReactNative","NativeScript","NS"].indexOf(Y2.product)<0),wde=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Tde=K2&&window.location.href||"http://localhost",Pc={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:K2,hasStandardBrowserEnv:_de,hasStandardBrowserWebWorkerEnv:wde,navigator:Y2,origin:Tde},Symbol.toStringTag,{value:"Module"})),...xde};function kde(r,i){return cy(r,new Pc.classes.URLSearchParams,{visitor:function(y,F,K,L){return Pc.isNode&&Xn.isBuffer(y)?(this.append(F,y.toString("base64")),!1):L.defaultVisitor.apply(this,arguments)},...i})}function Sde(r){return Xn.matchAll(/\w+|\[(\w*)]/g,r).map(i=>i[0]==="[]"?"":i[1]||i[0])}function Ede(r){const i={},y=Object.keys(r);let F;const K=y.length;let L;for(F=0;F<K;F++)L=y[F],i[L]=r[L];return i}function Q6(r){function i(y,F,K,L){let w=y[L++];if(w==="__proto__")return!0;const t=Number.isFinite(+w),v=L>=y.length;return w=!w&&Xn.isArray(K)?K.length:w,v?(Xn.hasOwnProp(K,w)?K[w]=[K[w],F]:K[w]=F,!t):((!K[w]||!Xn.isObject(K[w]))&&(K[w]=[]),i(y,F,K[w],L)&&Xn.isArray(K[w])&&(K[w]=Ede(K[w])),!t)}if(Xn.isFormData(r)&&Xn.isFunction(r.entries)){const y={};return Xn.forEachEntry(r,(F,K)=>{i(Sde(F),K,y,0)}),y}return null}function Cde(r,i,y){if(Xn.isString(r))try{return(i||JSON.parse)(r),Xn.trim(r)}catch(F){if(F.name!=="SyntaxError")throw F}return(y||JSON.stringify)(r)}const lm={transitional:Y6,adapter:["xhr","http","fetch"],transformRequest:[function(i,y){const F=y.getContentType()||"",K=F.indexOf("application/json")>-1,L=Xn.isObject(i);if(L&&Xn.isHTMLForm(i)&&(i=new FormData(i)),Xn.isFormData(i))return K?JSON.stringify(Q6(i)):i;if(Xn.isArrayBuffer(i)||Xn.isBuffer(i)||Xn.isStream(i)||Xn.isFile(i)||Xn.isBlob(i)||Xn.isReadableStream(i))return i;if(Xn.isArrayBufferView(i))return i.buffer;if(Xn.isURLSearchParams(i))return y.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),i.toString();let t;if(L){if(F.indexOf("application/x-www-form-urlencoded")>-1)return kde(i,this.formSerializer).toString();if((t=Xn.isFileList(i))||F.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return cy(t?{"files[]":i}:i,v&&new v,this.formSerializer)}}return L||K?(y.setContentType("application/json",!1),Cde(i)):i}],transformResponse:[function(i){const y=this.transitional||lm.transitional,F=y&&y.forcedJSONParsing,K=this.responseType==="json";if(Xn.isResponse(i)||Xn.isReadableStream(i))return i;if(i&&Xn.isString(i)&&(F&&!this.responseType||K)){const w=!(y&&y.silentJSONParsing)&&K;try{return JSON.parse(i)}catch(t){if(w)throw t.name==="SyntaxError"?vi.from(t,vi.ERR_BAD_RESPONSE,this,null,this.response):t}}return i}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pc.classes.FormData,Blob:Pc.classes.Blob},validateStatus:function(i){return i>=200&&i<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Xn.forEach(["delete","get","head","post","put","patch"],r=>{lm.headers[r]={}});const Ade=Xn.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Mde=r=>{const i={};let y,F,K;return r&&r.split(`
4082
4082
  `).forEach(function(w){K=w.indexOf(":"),y=w.substring(0,K).trim().toLowerCase(),F=w.substring(K+1).trim(),!(!y||i[y]&&Ade[y])&&(y==="set-cookie"?i[y]?i[y].push(F):i[y]=[F]:i[y]=i[y]?i[y]+", "+F:F)}),i},$6=Symbol("internals");function cm(r){return r&&String(r).trim().toLowerCase()}function uy(r){return r===!1||r==null?r:Xn.isArray(r)?r.map(uy):String(r)}function Lde(r){const i=Object.create(null),y=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let F;for(;F=y.exec(r);)i[F[1]]=F[2];return i}const Pde=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function Q2(r,i,y,F,K){if(Xn.isFunction(F))return F.call(this,i,y);if(K&&(i=y),!!Xn.isString(i)){if(Xn.isString(F))return i.indexOf(F)!==-1;if(Xn.isRegExp(F))return F.test(i)}}function Nde(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(i,y,F)=>y.toUpperCase()+F)}function Ode(r,i){const y=Xn.toCamelCase(" "+i);["get","set","has"].forEach(F=>{Object.defineProperty(r,F+y,{value:function(K,L,w){return this[F].call(this,i,K,L,w)},configurable:!0})})}let mu=class{constructor(i){i&&this.set(i)}set(i,y,F){const K=this;function L(t,v,d){const e=cm(v);if(!e)throw new Error("header name must be a non-empty string");const x=Xn.findKey(K,e);(!x||K[x]===void 0||d===!0||d===void 0&&K[x]!==!1)&&(K[x||v]=uy(t))}const w=(t,v)=>Xn.forEach(t,(d,e)=>L(d,e,v));if(Xn.isPlainObject(i)||i instanceof this.constructor)w(i,y);else if(Xn.isString(i)&&(i=i.trim())&&!Pde(i))w(Mde(i),y);else if(Xn.isObject(i)&&Xn.isIterable(i)){let t={},v,d;for(const e of i){if(!Xn.isArray(e))throw TypeError("Object iterator must return a key-value pair");t[d=e[0]]=(v=t[d])?Xn.isArray(v)?[...v,e[1]]:[v,e[1]]:e[1]}w(t,y)}else i!=null&&L(y,i,F);return this}get(i,y){if(i=cm(i),i){const F=Xn.findKey(this,i);if(F){const K=this[F];if(!y)return K;if(y===!0)return Lde(K);if(Xn.isFunction(y))return y.call(this,K,F);if(Xn.isRegExp(y))return y.exec(K);throw new TypeError("parser must be boolean|regexp|function")}}}has(i,y){if(i=cm(i),i){const F=Xn.findKey(this,i);return!!(F&&this[F]!==void 0&&(!y||Q2(this,this[F],F,y)))}return!1}delete(i,y){const F=this;let K=!1;function L(w){if(w=cm(w),w){const t=Xn.findKey(F,w);t&&(!y||Q2(F,F[t],t,y))&&(delete F[t],K=!0)}}return Xn.isArray(i)?i.forEach(L):L(i),K}clear(i){const y=Object.keys(this);let F=y.length,K=!1;for(;F--;){const L=y[F];(!i||Q2(this,this[L],L,i,!0))&&(delete this[L],K=!0)}return K}normalize(i){const y=this,F={};return Xn.forEach(this,(K,L)=>{const w=Xn.findKey(F,L);if(w){y[w]=uy(K),delete y[L];return}const t=i?Nde(L):String(L).trim();t!==L&&delete y[L],y[t]=uy(K),F[t]=!0}),this}concat(...i){return this.constructor.concat(this,...i)}toJSON(i){const y=Object.create(null);return Xn.forEach(this,(F,K)=>{F!=null&&F!==!1&&(y[K]=i&&Xn.isArray(F)?F.join(", "):F)}),y}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([i,y])=>i+": "+y).join(`
4083
4083
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static concat(i,...y){const F=new this(i);return y.forEach(K=>F.set(K)),F}static accessor(i){const F=(this[$6]=this[$6]={accessors:{}}).accessors,K=this.prototype;function L(w){const t=cm(w);F[t]||(Ode(K,w),F[t]=!0)}return Xn.isArray(i)?i.forEach(L):L(i),this}};mu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Xn.reduceDescriptors(mu.prototype,({value:r},i)=>{let y=i[0].toUpperCase()+i.slice(1);return{get:()=>r,set(F){this[y]=F}}}),Xn.freezeMethods(mu);function $2(r,i){const y=this||lm,F=i||y,K=mu.from(F.headers);let L=F.data;return Xn.forEach(r,function(t){L=t.call(y,L,K.normalize(),i?i.status:void 0)}),K.normalize(),L}function eT(r){return!!(r&&r.__CANCEL__)}function qp(r,i,y){vi.call(this,r??"canceled",vi.ERR_CANCELED,i,y),this.name="CanceledError"}Xn.inherits(qp,vi,{__CANCEL__:!0});function tT(r,i,y){const F=y.config.validateStatus;!y.status||!F||F(y.status)?r(y):i(new vi("Request failed with status code "+y.status,[vi.ERR_BAD_REQUEST,vi.ERR_BAD_RESPONSE][Math.floor(y.status/100)-4],y.config,y.request,y))}function Rde(r){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return i&&i[1]||""}function zde(r,i){r=r||10;const y=new Array(r),F=new Array(r);let K=0,L=0,w;return i=i!==void 0?i:1e3,function(v){const d=Date.now(),e=F[L];w||(w=d),y[K]=v,F[K]=d;let x=L,m=0;for(;x!==K;)m+=y[x++],x=x%r;if(K=(K+1)%r,K===L&&(L=(L+1)%r),d-w<i)return;const b=e&&d-e;return b?Math.round(m*1e3/b):void 0}}function Dde(r,i){let y=0,F=1e3/i,K,L;const w=(d,e=Date.now())=>{y=e,K=null,L&&(clearTimeout(L),L=null),r(...d)};return[(...d)=>{const e=Date.now(),x=e-y;x>=F?w(d,e):(K=d,L||(L=setTimeout(()=>{L=null,w(K)},F-x)))},()=>K&&w(K)]}const dy=(r,i,y=3)=>{let F=0;const K=zde(50,250);return Dde(L=>{const w=L.loaded,t=L.lengthComputable?L.total:void 0,v=w-F,d=K(v),e=w<=t;F=w;const x={loaded:w,total:t,progress:t?w/t:void 0,bytes:v,rate:d||void 0,estimated:d&&t&&e?(t-w)/d:void 0,event:L,lengthComputable:t!=null,[i?"download":"upload"]:!0};r(x)},y)},rT=(r,i)=>{const y=r!=null;return[F=>i[0]({lengthComputable:y,total:r,loaded:F}),i[1]]},nT=r=>(...i)=>Xn.asap(()=>r(...i)),Ide=Pc.hasStandardBrowserEnv?((r,i)=>y=>(y=new URL(y,Pc.origin),r.protocol===y.protocol&&r.host===y.host&&(i||r.port===y.port)))(new URL(Pc.origin),Pc.navigator&&/(msie|trident)/i.test(Pc.navigator.userAgent)):()=>!0,Fde=Pc.hasStandardBrowserEnv?{write(r,i,y,F,K,L){const w=[r+"="+encodeURIComponent(i)];Xn.isNumber(y)&&w.push("expires="+new Date(y).toGMTString()),Xn.isString(F)&&w.push("path="+F),Xn.isString(K)&&w.push("domain="+K),L===!0&&w.push("secure"),document.cookie=w.join("; ")},read(r){const i=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove(r){this.write(r,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Bde(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function Vde(r,i){return i?r.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):r}function aT(r,i,y){let F=!Bde(i);return r&&(F||y==!1)?Vde(r,i):i}const iT=r=>r instanceof mu?{...r}:r;function Yh(r,i){i=i||{};const y={};function F(d,e,x,m){return Xn.isPlainObject(d)&&Xn.isPlainObject(e)?Xn.merge.call({caseless:m},d,e):Xn.isPlainObject(e)?Xn.merge({},e):Xn.isArray(e)?e.slice():e}function K(d,e,x,m){if(Xn.isUndefined(e)){if(!Xn.isUndefined(d))return F(void 0,d,x,m)}else return F(d,e,x,m)}function L(d,e){if(!Xn.isUndefined(e))return F(void 0,e)}function w(d,e){if(Xn.isUndefined(e)){if(!Xn.isUndefined(d))return F(void 0,d)}else return F(void 0,e)}function t(d,e,x){if(x in i)return F(d,e);if(x in r)return F(void 0,d)}const v={url:L,method:L,data:L,baseURL:w,transformRequest:w,transformResponse:w,paramsSerializer:w,timeout:w,timeoutMessage:w,withCredentials:w,withXSRFToken:w,adapter:w,responseType:w,xsrfCookieName:w,xsrfHeaderName:w,onUploadProgress:w,onDownloadProgress:w,decompress:w,maxContentLength:w,maxBodyLength:w,beforeRedirect:w,transport:w,httpAgent:w,httpsAgent:w,cancelToken:w,socketPath:w,responseEncoding:w,validateStatus:t,headers:(d,e,x)=>K(iT(d),iT(e),x,!0)};return Xn.forEach(Object.keys({...r,...i}),function(e){const x=v[e]||K,m=x(r[e],i[e],e);Xn.isUndefined(m)&&x!==t||(y[e]=m)}),y}const oT=r=>{const i=Yh({},r);let{data:y,withXSRFToken:F,xsrfHeaderName:K,xsrfCookieName:L,headers:w,auth:t}=i;i.headers=w=mu.from(w),i.url=Z6(aT(i.baseURL,i.url,i.allowAbsoluteUrls),r.params,r.paramsSerializer),t&&w.set("Authorization","Basic "+btoa((t.username||"")+":"+(t.password?unescape(encodeURIComponent(t.password)):"")));let v;if(Xn.isFormData(y)){if(Pc.hasStandardBrowserEnv||Pc.hasStandardBrowserWebWorkerEnv)w.setContentType(void 0);else if((v=w.getContentType())!==!1){const[d,...e]=v?v.split(";").map(x=>x.trim()).filter(Boolean):[];w.setContentType([d||"multipart/form-data",...e].join("; "))}}if(Pc.hasStandardBrowserEnv&&(F&&Xn.isFunction(F)&&(F=F(i)),F||F!==!1&&Ide(i.url))){const d=K&&L&&Fde.read(L);d&&w.set(K,d)}return i},Ude=typeof XMLHttpRequest<"u"&&function(r){return new Promise(function(y,F){const K=oT(r);let L=K.data;const w=mu.from(K.headers).normalize();let{responseType:t,onUploadProgress:v,onDownloadProgress:d}=K,e,x,m,b,h;function n(){b&&b(),h&&h(),K.cancelToken&&K.cancelToken.unsubscribe(e),K.signal&&K.signal.removeEventListener("abort",e)}let a=new XMLHttpRequest;a.open(K.method.toUpperCase(),K.url,!0),a.timeout=K.timeout;function u(){if(!a)return;const l=mu.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders()),g={data:!t||t==="text"||t==="json"?a.responseText:a.response,status:a.status,statusText:a.statusText,headers:l,config:r,request:a};tT(function(E){y(E),n()},function(E){F(E),n()},g),a=null}"onloadend"in a?a.onloadend=u:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(u)},a.onabort=function(){a&&(F(new vi("Request aborted",vi.ECONNABORTED,r,a)),a=null)},a.onerror=function(){F(new vi("Network Error",vi.ERR_NETWORK,r,a)),a=null},a.ontimeout=function(){let f=K.timeout?"timeout of "+K.timeout+"ms exceeded":"timeout exceeded";const g=K.transitional||Y6;K.timeoutErrorMessage&&(f=K.timeoutErrorMessage),F(new vi(f,g.clarifyTimeoutError?vi.ETIMEDOUT:vi.ECONNABORTED,r,a)),a=null},L===void 0&&w.setContentType(null),"setRequestHeader"in a&&Xn.forEach(w.toJSON(),function(f,g){a.setRequestHeader(g,f)}),Xn.isUndefined(K.withCredentials)||(a.withCredentials=!!K.withCredentials),t&&t!=="json"&&(a.responseType=K.responseType),d&&([m,h]=dy(d,!0),a.addEventListener("progress",m)),v&&a.upload&&([x,b]=dy(v),a.upload.addEventListener("progress",x),a.upload.addEventListener("loadend",b)),(K.cancelToken||K.signal)&&(e=l=>{a&&(F(!l||l.type?new qp(null,r,a):l),a.abort(),a=null)},K.cancelToken&&K.cancelToken.subscribe(e),K.signal&&(K.signal.aborted?e():K.signal.addEventListener("abort",e)));const s=Rde(K.url);if(s&&Pc.protocols.indexOf(s)===-1){F(new vi("Unsupported protocol "+s+":",vi.ERR_BAD_REQUEST,r));return}a.send(L||null)})},jde=(r,i)=>{const{length:y}=r=r?r.filter(Boolean):[];if(i||y){let F=new AbortController,K;const L=function(d){if(!K){K=!0,t();const e=d instanceof Error?d:this.reason;F.abort(e instanceof vi?e:new qp(e instanceof Error?e.message:e))}};let w=i&&setTimeout(()=>{w=null,L(new vi(`timeout ${i} of ms exceeded`,vi.ETIMEDOUT))},i);const t=()=>{r&&(w&&clearTimeout(w),w=null,r.forEach(d=>{d.unsubscribe?d.unsubscribe(L):d.removeEventListener("abort",L)}),r=null)};r.forEach(d=>d.addEventListener("abort",L));const{signal:v}=F;return v.unsubscribe=()=>Xn.asap(t),v}},qde=function*(r,i){let y=r.byteLength;if(y<i){yield r;return}let F=0,K;for(;F<y;)K=F+i,yield r.slice(F,K),F=K},Wde=async function*(r,i){for await(const y of Gde(r))yield*qde(y,i)},Gde=async function*(r){if(r[Symbol.asyncIterator]){yield*r;return}const i=r.getReader();try{for(;;){const{done:y,value:F}=await i.read();if(y)break;yield F}}finally{await i.cancel()}},sT=(r,i,y,F)=>{const K=Wde(r,i);let L=0,w,t=v=>{w||(w=!0,F&&F(v))};return new ReadableStream({async pull(v){try{const{done:d,value:e}=await K.next();if(d){t(),v.close();return}let x=e.byteLength;if(y){let m=L+=x;y(m)}v.enqueue(new Uint8Array(e))}catch(d){throw t(d),d}},cancel(v){return t(v),K.return()}},{highWaterMark:2})},hy=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",lT=hy&&typeof ReadableStream=="function",Xde=hy&&(typeof TextEncoder=="function"?(r=>i=>r.encode(i))(new TextEncoder):async r=>new Uint8Array(await new Response(r).arrayBuffer())),cT=(r,...i)=>{try{return!!r(...i)}catch{return!1}},Hde=lT&&cT(()=>{let r=!1;const i=new Request(Pc.origin,{body:new ReadableStream,method:"POST",get duplex(){return r=!0,"half"}}).headers.has("Content-Type");return r&&!i}),uT=64*1024,eb=lT&&cT(()=>Xn.isReadableStream(new Response("").body)),py={stream:eb&&(r=>r.body)};hy&&(r=>{["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!py[i]&&(py[i]=Xn.isFunction(r[i])?y=>y[i]():(y,F)=>{throw new vi(`Response type '${i}' is not supported`,vi.ERR_NOT_SUPPORT,F)})})})(new Response);const Jde=async r=>{if(r==null)return 0;if(Xn.isBlob(r))return r.size;if(Xn.isSpecCompliantForm(r))return(await new Request(Pc.origin,{method:"POST",body:r}).arrayBuffer()).byteLength;if(Xn.isArrayBufferView(r)||Xn.isArrayBuffer(r))return r.byteLength;if(Xn.isURLSearchParams(r)&&(r=r+""),Xn.isString(r))return(await Xde(r)).byteLength},Zde=async(r,i)=>{const y=Xn.toFiniteNumber(r.getContentLength());return y??Jde(i)},tb={http:gde,xhr:Ude,fetch:hy&&(async r=>{let{url:i,method:y,data:F,signal:K,cancelToken:L,timeout:w,onDownloadProgress:t,onUploadProgress:v,responseType:d,headers:e,withCredentials:x="same-origin",fetchOptions:m}=oT(r);d=d?(d+"").toLowerCase():"text";let b=jde([K,L&&L.toAbortSignal()],w),h;const n=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let a;try{if(v&&Hde&&y!=="get"&&y!=="head"&&(a=await Zde(e,F))!==0){let g=new Request(i,{method:"POST",body:F,duplex:"half"}),k;if(Xn.isFormData(F)&&(k=g.headers.get("content-type"))&&e.setContentType(k),g.body){const[E,S]=rT(a,dy(nT(v)));F=sT(g.body,uT,E,S)}}Xn.isString(x)||(x=x?"include":"omit");const u="credentials"in Request.prototype;h=new Request(i,{...m,signal:b,method:y.toUpperCase(),headers:e.normalize().toJSON(),body:F,duplex:"half",credentials:u?x:void 0});let s=await fetch(h,m);const l=eb&&(d==="stream"||d==="response");if(eb&&(t||l&&n)){const g={};["status","statusText","headers"].forEach(M=>{g[M]=s[M]});const k=Xn.toFiniteNumber(s.headers.get("content-length")),[E,S]=t&&rT(k,dy(nT(t),!0))||[];s=new Response(sT(s.body,uT,E,()=>{S&&S(),n&&n()}),g)}d=d||"text";let f=await py[Xn.findKey(py,d)||"text"](s,r);return!l&&n&&n(),await new Promise((g,k)=>{tT(g,k,{data:f,headers:mu.from(s.headers),status:s.status,statusText:s.statusText,config:r,request:h})})}catch(u){throw n&&n(),u&&u.name==="TypeError"&&/Load failed|fetch/i.test(u.message)?Object.assign(new vi("Network Error",vi.ERR_NETWORK,r,h),{cause:u.cause||u}):vi.from(u,u&&u.code,r,h)}})};Xn.forEach(tb,(r,i)=>{if(r){try{Object.defineProperty(r,"name",{value:i})}catch{}Object.defineProperty(r,"adapterName",{value:i})}});const dT=r=>`- ${r}`,Kde=r=>Xn.isFunction(r)||r===null||r===!1,hT={getAdapter:r=>{r=Xn.isArray(r)?r:[r];const{length:i}=r;let y,F;const K={};for(let L=0;L<i;L++){y=r[L];let w;if(F=y,!Kde(y)&&(F=tb[(w=String(y)).toLowerCase()],F===void 0))throw new vi(`Unknown adapter '${w}'`);if(F)break;K[w||"#"+L]=F}if(!F){const L=Object.entries(K).map(([t,v])=>`adapter ${t} `+(v===!1?"is not supported by the environment":"is not available in the build"));let w=i?L.length>1?`since :
4084
4084
  `+L.map(dT).join(`