@evercam/ui 1.0.0-preview-smart-search-dash-7b3999ff2 → 1.0.0-preview-addingZoomButtonsToLiveViewVideo-de40a7d88

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.
package/dist/index.umd.js CHANGED
@@ -1,6 +1,6 @@
1
1
  (function(G,A){typeof exports=="object"&&typeof module!="undefined"?A(exports,require("vue"),require("hls.js"),require("d3"),require("moment-timezone"),require("remark-gfm"),require("remark-parse"),require("remark-rehype"),require("remark-breaks"),require("rehype-stringify"),require("unist-util-visit"),require("unified"),require("morphdom")):typeof define=="function"&&define.amd?define(["exports","vue","hls.js","d3","moment-timezone","remark-gfm","remark-parse","remark-rehype","remark-breaks","rehype-stringify","unist-util-visit","unified","morphdom"],A):(G=typeof globalThis!="undefined"?globalThis:G||self,A(G.EvercamUI={},G.Vue,G.Hls,G.d3,G.moment,G.remarkGfm,G.remarkParse,G.remarkRehype,G.remarkBreaks,G.rehypeStringify,G.unistUtilVisit,G.unified,G.morphdom))})(this,function(G,A,at,Ns,ke,js,Gs,Ws,En,qs,Us,Zs,Ys){var ys,Cs,bs,xs,ws,Ss,Ts,ks;"use strict";function Xs(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}function Xt(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in t)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const O=Xs(Ns);var vt=(t=>(t.Continuous="continuous",t.WorkingHours="workingHours",t.Empty="empty",t.Custom="custom",t))(vt||{}),Mn=(t=>(t.Monday="monday",t.Tuesday="tuesday",t.Wednesday="wednesday",t.Thursday="thursday",t.Friday="friday",t.Saturday="saturday",t.Sunday="sunday",t))(Mn||{}),K=(t=>(t.Dot="dot",t.TwoXs="2xs",t.Xs="xs",t.Sm="sm",t.Md="base",t.Base="base",t.Lg="lg",t.Xl="xl",t.TwoXl="2xl",t.ThreeXl="3xl",t.FourXl="4xl",t.FiveXl="5xl",t.SixXl="6xl",t.SevenXl="7xl",t.EightXl="8xl",t.NineXl="9xl",t))(K||{}),se=(t=>(t.Warning="warning",t.Error="error",t.Info="info",t.Success="success",t.Primary="primary",t.Brand="brand",t.Default="default",t.Gray="gray",t))(se||{}),rt=(t=>(t.Overview="overview",t.Detailed="detailed",t.DetailedBackground="detailedBackground",t))(rt||{}),He=(t=>(t.Bars="bars",t.Dots="dots",t.LineGraph="lineGraph",t.BarChart="barGraph",t.Milestones="milestones",t))(He||{}),_t=(t=>(t.Zoom="zoom",t.AutoPan="autoPan",t.Initial="initial",t))(_t||{}),Ln=(t=>(t.ThreeSixty="360",t.FourEighty="480",t.SevenTwenty="720",t.OneZeroEightZero="1080",t.Auto="auto",t))(Ln||{}),Oe=(t=>(t.Top="top",t.Right="right",t.Bottom="bottom",t.Left="left",t))(Oe||{}),Ye=(t=>(t.System="system",t.Copilot="copilot",t.User="user",t))(Ye||{}),Vt=(t=>(t.Text="text",t.Error="error",t.Json="json",t))(Vt||{}),Qt=(t=>(t.Positive="positive",t.Negative="negative",t))(Qt||{}),nt=(t=>(t.Window="window",t.Curtain="curtain",t.Transparency="transparency",t))(nt||{});const Vs=A.extend({name:"EBadge",props:{text:{type:String,default:""},color:{type:String,default:se.Default},size:{type:String,default:K.Base}},data(){return{colors:{[se.Error]:"e-bg-rose-500 e-text-white",[se.Info]:"e-bg-cyan-500 e-text-white",[se.Warning]:"e-bg-amber-500 e-text-white",[se.Primary]:"e-bg-sky-500 e-text-white",[se.Default]:"e-bg-slate-300 e-text-white",[se.Success]:"e-bg-lime-500 e-text-white"},sizes:{[K.Dot]:"e-w-2 e-h-2",[K.Xs]:"e-w-3 e-h-3",[K.Sm]:"e-w-4 e-h-4",[K.Md]:"e-w-5 e-h-5",[K.Lg]:"e-min-w-[2rem] e-max-w-[4rem] e-px-1 e-h-6 e-text-sm e-font-medium",[K.Xl]:"e-min-w-[3rem] e-max-w-[5rem] e-px-1 e-h-8 e-text-base e-font-medium"}}},computed:{badgeClasses(){const t=this.colors[this.color]||this.colors[se.Default],e=this.sizes[this.size]||this.sizes[K.Md];return["e-flex e-items-center e-justify-center e-rounded-full",t,e]},showText(){return[K.Lg,K.Xl].includes(this.size)}}});function H(t,e,r,n,i,o,a,u){var s=typeof t=="function"?t.options:t;e&&(s.render=e,s.staticRenderFns=r,s._compiled=!0),n&&(s.functional=!0),o&&(s._scopeId="data-v-"+o);var l;if(a?(l=function(m){m=m||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!m&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(m=__VUE_SSR_CONTEXT__),i&&i.call(this,m),m&&m._registeredComponents&&m._registeredComponents.add(a)},s._ssrRegister=l):i&&(l=u?function(){i.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(s.functional){s._injectStyles=l;var d=s.render;s.render=function(b,x){return l.call(x),d(b,x)}}else{var p=s.beforeCreate;s.beforeCreate=p?[].concat(p,l):[l]}return{exports:t,options:s}}var Qs=function(){var e=this,r=e._self._c;return r("span",{staticClass:"e-badge",class:e.badgeClasses},[e.showText?r("span",[e._v(e._s(e.text))]):e._e()])},Ks=[],Js=H(Vs,Qs,Ks,!1,null,null,null,null);const Kt=Js.exports,ea=A.extend({name:"EAvatar",components:{Badge:Kt},props:{size:{type:String,default:K.Md},showBadge:{type:Boolean,default:!1},badgeColor:{type:String,default:se.Error},badgeText:{type:String,default:""},badgeSize:{type:String,default:K.Md},image:{type:String,default:""},backgroundClasses:{type:String,default:"e-bg-gradient-to-r e-from-purple-500 e-to-indigo-500"}},data(){return{sizes:{[K.TwoXs]:"e-w-6 e-h-6 e-text-xs",[K.Xs]:"e-w-8 e-h-8 e-text-xs",[K.Sm]:"e-w-10 e-h-10 e-text-sm",[K.Md]:"e-w-14 e-h-14 e-text-base",[K.Lg]:"e-w-20 e-h-20 e-text-2xl",[K.Xl]:"e-w-28 e-h-28 e-text-3xl",[K.TwoXl]:"e-w-36 e-h-36 e-text-5xl"}}},computed:{avatarClasses(){const t=this.sizes[this.size]||this.sizes[K.Xs],e=this.image?"e-rounded-full e-overflow-hidden":"";return["e-flex e-items-center e-justify-center e-rounded-full e-text-white e-font-medium",t,e,this.backgroundClasses]}}});var ta=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-avatar e-relative",class:e.avatarClasses},[e._t("default",function(){return[e.image?r("img",{staticClass:"e-avatar__image e-w-full e-h-full e-object-cover",attrs:{src:e.image}}):e._e()]}),e.showBadge?r("div",{staticClass:"e-avatar__badge e-absolute e-top-0 e-right-0"},[e._t("badge",function(){return[r("Badge",{attrs:{text:e.badgeText,color:e.badgeColor,size:e.badgeSize}})]})],2):e._e()],2)},ra=[],na=H(ea,ta,ra,!1,null,null,null,null);const Mt=na.exports;var ot=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function yt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Dn={},Pn={},Jt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r){if(r=`${r}`,r==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(r))return r.replace(/^[+-]?/,i=>i==="-"?"":"-");let n=["var","calc","min","max","clamp"];for(const i of n)if(r.includes(`${i}(`))return`calc(${r} * -1)`}})(Jt);var On={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});const e=["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","lineClamp","display","aspectRatio","size","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","captionSide","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","listStyleImage","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","hyphens","whitespace","textWrap","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","contain","content","forcedColorAdjust"]})(On);var zn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r,n){return r===void 0?n:Array.isArray(r)?r:[...new Set(n.filter(o=>r!==!1&&r[o]!==!1).concat(Object.keys(r).filter(o=>r[o]!==!1)))]}})(zn);var er={},Lt={},tr={exports:{}},Ce=String,Bn=function(){return{isColorSupported:!1,reset:Ce,bold:Ce,dim:Ce,italic:Ce,underline:Ce,inverse:Ce,hidden:Ce,strikethrough:Ce,black:Ce,red:Ce,green:Ce,yellow:Ce,blue:Ce,magenta:Ce,cyan:Ce,white:Ce,gray:Ce,bgBlack:Ce,bgRed:Ce,bgGreen:Ce,bgYellow:Ce,bgBlue:Ce,bgMagenta:Ce,bgCyan:Ce,bgWhite:Ce}};tr.exports=Bn(),tr.exports.createColors=Bn;var In=tr.exports;(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(s,l){for(var d in l)Object.defineProperty(s,d,{enumerable:!0,get:l[d]})}e(t,{dim:function(){return a},default:function(){return u}});const r=n(In);function n(s){return s&&s.__esModule?s:{default:s}}let i=new Set;function o(s,l,d){typeof process!="undefined"&&process.env.JEST_WORKER_ID||d&&i.has(d)||(d&&i.add(d),console.warn(""),l.forEach(p=>console.warn(s,"-",p)))}function a(s){return r.default.dim(s)}const u={info(s,l){o(r.default.bold(r.default.cyan("info")),...Array.isArray(s)?[s]:[l,s])},warn(s,l){o(r.default.bold(r.default.yellow("warn")),...Array.isArray(s)?[s]:[l,s])},risk(s,l){o(r.default.bold(r.default.magenta("risk")),...Array.isArray(s)?[s]:[l,s])}}})(Lt),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});const e=r(Lt);function r(o){return o&&o.__esModule?o:{default:o}}function n({version:o,from:a,to:u}){e.default.warn(`${a}-color-renamed`,[`As of Tailwind CSS ${o}, \`${a}\` has been renamed to \`${u}\`.`,"Update your configuration file to silence this warning."])}const i={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return n({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return n({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return n({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return n({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return n({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}(er);var Fn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"defaults",{enumerable:!0,get:function(){return e}});function e(r,...n){for(let a of n){for(let u in a){var i;!(r==null||(i=r.hasOwnProperty)===null||i===void 0)&&i.call(r,u)||(r[u]=a[u])}for(let u of Object.getOwnPropertySymbols(a)){var o;!(r==null||(o=r.hasOwnProperty)===null||o===void 0)&&o.call(r,u)||(r[u]=a[u])}}return r}})(Fn);var An={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"toPath",{enumerable:!0,get:function(){return e}});function e(r){if(Array.isArray(r))return r;let n=r.split("[").length-1,i=r.split("]").length-1;if(n!==i)throw new Error(`Path is invalid. Has unbalanced brackets: ${r}`);return r.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}})(An);var Rn={},Dt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(p,m){for(var b in m)Object.defineProperty(p,b,{enumerable:!0,get:m[b]})}e(t,{flagEnabled:function(){return u},issueFlagNotices:function(){return l},default:function(){return d}});const r=i(In),n=i(Lt);function i(p){return p&&p.__esModule?p:{default:p}}let o={optimizeUniversalDefaults:!1,generalizedModifiers:!0,disableColorOpacityUtilitiesByDefault:!1,relativeContentPathsByDefault:!1},a={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity","disableColorOpacityUtilitiesByDefault","relativeContentPathsByDefault"],experimental:["optimizeUniversalDefaults","generalizedModifiers"]};function u(p,m){if(a.future.includes(m)){var b,x,h;return p.future==="all"||((h=(x=p==null||(b=p.future)===null||b===void 0?void 0:b[m])!==null&&x!==void 0?x:o[m])!==null&&h!==void 0?h:!1)}if(a.experimental.includes(m)){var y,$,D;return p.experimental==="all"||((D=($=p==null||(y=p.experimental)===null||y===void 0?void 0:y[m])!==null&&$!==void 0?$:o[m])!==null&&D!==void 0?D:!1)}return!1}function s(p){if(p.experimental==="all")return a.experimental;var m;return Object.keys((m=p==null?void 0:p.experimental)!==null&&m!==void 0?m:{}).filter(b=>a.experimental.includes(b)&&p.experimental[b])}function l(p){if(process.env.JEST_WORKER_ID===void 0&&s(p).length>0){let m=s(p).map(b=>r.default.yellow(b)).join(", ");n.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${m}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}const d=a})(Dt),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeConfig",{enumerable:!0,get:function(){return o}});const e=Dt,r=i(Lt);function n(a){if(typeof WeakMap!="function")return null;var u=new WeakMap,s=new WeakMap;return(n=function(l){return l?s:u})(a)}function i(a,u){if(!u&&a&&a.__esModule)return a;if(a===null||typeof a!="object"&&typeof a!="function")return{default:a};var s=n(u);if(s&&s.has(a))return s.get(a);var l={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in a)if(p!=="default"&&Object.prototype.hasOwnProperty.call(a,p)){var m=d?Object.getOwnPropertyDescriptor(a,p):null;m&&(m.get||m.set)?Object.defineProperty(l,p,m):l[p]=a[p]}return l.default=a,s&&s.set(a,l),l}function o(a){if((()=>{if(a.purge||!a.content||!Array.isArray(a.content)&&!(typeof a.content=="object"&&a.content!==null))return!1;if(Array.isArray(a.content))return a.content.every(l=>typeof l=="string"?!0:!(typeof(l==null?void 0:l.raw)!="string"||l!=null&&l.extension&&typeof(l==null?void 0:l.extension)!="string"));if(typeof a.content=="object"&&a.content!==null){if(Object.keys(a.content).some(l=>!["files","relative","extract","transform"].includes(l)))return!1;if(Array.isArray(a.content.files)){if(!a.content.files.every(l=>typeof l=="string"?!0:!(typeof(l==null?void 0:l.raw)!="string"||l!=null&&l.extension&&typeof(l==null?void 0:l.extension)!="string")))return!1;if(typeof a.content.extract=="object"){for(let l of Object.values(a.content.extract))if(typeof l!="function")return!1}else if(!(a.content.extract===void 0||typeof a.content.extract=="function"))return!1;if(typeof a.content.transform=="object"){for(let l of Object.values(a.content.transform))if(typeof l!="function")return!1}else if(!(a.content.transform===void 0||typeof a.content.transform=="function"))return!1;if(typeof a.content.relative!="boolean"&&typeof a.content.relative!="undefined")return!1}return!0}return!1})()||r.default.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),a.safelist=(()=>{var l;let{content:d,purge:p,safelist:m}=a;return Array.isArray(m)?m:Array.isArray(d==null?void 0:d.safelist)?d.safelist:Array.isArray(p==null?void 0:p.safelist)?p.safelist:Array.isArray(p==null||(l=p.options)===null||l===void 0?void 0:l.safelist)?p.options.safelist:[]})(),a.blocklist=(()=>{let{blocklist:l}=a;if(Array.isArray(l)){if(l.every(d=>typeof d=="string"))return l;r.default.warn("blocklist-invalid",["The `blocklist` option must be an array of strings.","https://tailwindcss.com/docs/content-configuration#discarding-classes"])}return[]})(),typeof a.prefix=="function")r.default.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),a.prefix="";else{var s;a.prefix=(s=a.prefix)!==null&&s!==void 0?s:""}a.content={relative:(()=>{let{content:l}=a;return l!=null&&l.relative?l.relative:(0,e.flagEnabled)(a,"relativeContentPathsByDefault")})(),files:(()=>{let{content:l,purge:d}=a;return Array.isArray(d)?d:Array.isArray(d==null?void 0:d.content)?d.content:Array.isArray(l)?l:Array.isArray(l==null?void 0:l.content)?l.content:Array.isArray(l==null?void 0:l.files)?l.files:[]})(),extract:(()=>{let l=(()=>{var m,b,x,h,y,$,D,S,R,E;return!((m=a.purge)===null||m===void 0)&&m.extract?a.purge.extract:!((b=a.content)===null||b===void 0)&&b.extract?a.content.extract:!((x=a.purge)===null||x===void 0||(h=x.extract)===null||h===void 0)&&h.DEFAULT?a.purge.extract.DEFAULT:!((y=a.content)===null||y===void 0||($=y.extract)===null||$===void 0)&&$.DEFAULT?a.content.extract.DEFAULT:!((D=a.purge)===null||D===void 0||(S=D.options)===null||S===void 0)&&S.extractors?a.purge.options.extractors:!((R=a.content)===null||R===void 0||(E=R.options)===null||E===void 0)&&E.extractors?a.content.options.extractors:{}})(),d={},p=(()=>{var m,b,x,h;if(!((m=a.purge)===null||m===void 0||(b=m.options)===null||b===void 0)&&b.defaultExtractor)return a.purge.options.defaultExtractor;if(!((x=a.content)===null||x===void 0||(h=x.options)===null||h===void 0)&&h.defaultExtractor)return a.content.options.defaultExtractor})();if(p!==void 0&&(d.DEFAULT=p),typeof l=="function")d.DEFAULT=l;else if(Array.isArray(l))for(let{extensions:m,extractor:b}of l!=null?l:[])for(let x of m)d[x]=b;else typeof l=="object"&&l!==null&&Object.assign(d,l);return d})(),transform:(()=>{let l=(()=>{var p,m,b,x,h,y;return!((p=a.purge)===null||p===void 0)&&p.transform?a.purge.transform:!((m=a.content)===null||m===void 0)&&m.transform?a.content.transform:!((b=a.purge)===null||b===void 0||(x=b.transform)===null||x===void 0)&&x.DEFAULT?a.purge.transform.DEFAULT:!((h=a.content)===null||h===void 0||(y=h.transform)===null||y===void 0)&&y.DEFAULT?a.content.transform.DEFAULT:{}})(),d={};return typeof l=="function"?d.DEFAULT=l:typeof l=="object"&&l!==null&&Object.assign(d,l),d})()};for(let l of a.content.files)if(typeof l=="string"&&/{([^,]*?)}/g.test(l)){r.default.warn("invalid-glob-braces",[`The glob pattern ${(0,r.dim)(l)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,r.dim)(l.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return a}}(Rn);var Hn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r){if(Object.prototype.toString.call(r)!=="[object Object]")return!1;const n=Object.getPrototypeOf(r);return n===null||Object.getPrototypeOf(n)===null}})(Hn);var Nn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return e}});function e(r){return Array.isArray(r)?r.map(n=>e(n)):typeof r=="object"&&r!==null?Object.fromEntries(Object.entries(r).map(([n,i])=>[n,e(i)])):r}})(Nn);var jn={},Gn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r){return r.replace(/\\,/g,"\\2c ")}})(Gn);var rr={},nr={},Wn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});const e={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}})(Wn),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(x,h){for(var y in h)Object.defineProperty(x,y,{enumerable:!0,get:h[y]})}e(t,{parseColor:function(){return m},formatColor:function(){return b}});const r=n(Wn);function n(x){return x&&x.__esModule?x:{default:x}}let i=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,o=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,a=/(?:\d+|\d*\.\d+)%?/,u=/(?:\s*,\s*|\s+)/,s=/\s*[,/]\s*/,l=/var\(--(?:[^ )]*?)(?:,(?:[^ )]*?|var\(--[^ )]*?\)))?\)/,d=new RegExp(`^(rgba?)\\(\\s*(${a.source}|${l.source})(?:${u.source}(${a.source}|${l.source}))?(?:${u.source}(${a.source}|${l.source}))?(?:${s.source}(${a.source}|${l.source}))?\\s*\\)$`),p=new RegExp(`^(hsla?)\\(\\s*((?:${a.source})(?:deg|rad|grad|turn)?|${l.source})(?:${u.source}(${a.source}|${l.source}))?(?:${u.source}(${a.source}|${l.source}))?(?:${s.source}(${a.source}|${l.source}))?\\s*\\)$`);function m(x,{loose:h=!1}={}){var y,$;if(typeof x!="string")return null;if(x=x.trim(),x==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(x in r.default)return{mode:"rgb",color:r.default[x].map(j=>j.toString())};let D=x.replace(o,(j,Q,U,C,z)=>["#",Q,Q,U,U,C,C,z?z+z:""].join("")).match(i);if(D!==null)return{mode:"rgb",color:[parseInt(D[1],16),parseInt(D[2],16),parseInt(D[3],16)].map(j=>j.toString()),alpha:D[4]?(parseInt(D[4],16)/255).toString():void 0};var S;let R=(S=x.match(d))!==null&&S!==void 0?S:x.match(p);if(R===null)return null;let E=[R[2],R[3],R[4]].filter(Boolean).map(j=>j.toString());return E.length===2&&E[0].startsWith("var(")?{mode:R[1],color:[E[0]],alpha:E[1]}:!h&&E.length!==3||E.length<3&&!E.some(j=>/^var\(.*?\)$/.test(j))?null:{mode:R[1],color:E,alpha:(y=R[5])===null||y===void 0||($=y.toString)===null||$===void 0?void 0:$.call(y)}}function b({mode:x,color:h,alpha:y}){let $=y!==void 0;return x==="rgba"||x==="hsla"?`${x}(${h.join(", ")}${$?`, ${y}`:""})`:`${x}(${h.join(" ")}${$?` / ${y}`:""})`}}(nr),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(o,a){for(var u in a)Object.defineProperty(o,u,{enumerable:!0,get:a[u]})}e(t,{withAlphaValue:function(){return n},default:function(){return i}});const r=nr;function n(o,a,u){if(typeof o=="function")return o({opacityValue:a});let s=(0,r.parseColor)(o,{loose:!0});return s===null?u:(0,r.formatColor)({...s,alpha:a})}function i({color:o,property:a,variable:u}){let s=[].concat(a);if(typeof o=="function")return{[u]:"1",...Object.fromEntries(s.map(d=>[d,o({opacityVariable:u,opacityValue:`var(${u})`})]))};const l=(0,r.parseColor)(o);return l===null?Object.fromEntries(s.map(d=>[d,o])):l.alpha!==void 0?Object.fromEntries(s.map(d=>[d,o])):{[u]:"1",...Object.fromEntries(s.map(d=>[d,(0,r.formatColor)({...l,alpha:`var(${u})`})]))}}}(rr);var ir={},qn={},Pt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"splitAtTopLevelOnly",{enumerable:!0,get:function(){return e}});function e(r,n){let i=[],o=[],a=0,u=!1;for(let s=0;s<r.length;s++){let l=r[s];i.length===0&&l===n[0]&&!u&&(n.length===1||r.slice(s,s+n.length)===n)&&(o.push(r.slice(a,s)),a=s+n.length),u=u?!1:l==="\\",l==="("||l==="["||l==="{"?i.push(l):(l===")"&&i[i.length-1]==="("||l==="]"&&i[i.length-1]==="["||l==="}"&&i[i.length-1]==="{")&&i.pop()}return o.push(r.slice(a)),o}})(Pt),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(s,l){for(var d in l)Object.defineProperty(s,d,{enumerable:!0,get:l[d]})}e(t,{parseBoxShadowValue:function(){return a},formatBoxShadowValue:function(){return u}});const r=Pt;let n=new Set(["inset","inherit","initial","revert","unset"]),i=/\ +(?![^(]*\))/g,o=/^-?(\d+|\.\d+)(.*?)$/g;function a(s){return(0,r.splitAtTopLevelOnly)(s,",").map(d=>{let p=d.trim(),m={raw:p},b=p.split(i),x=new Set;for(let h of b)o.lastIndex=0,!x.has("KEYWORD")&&n.has(h)?(m.keyword=h,x.add("KEYWORD")):o.test(h)?x.has("X")?x.has("Y")?x.has("BLUR")?x.has("SPREAD")||(m.spread=h,x.add("SPREAD")):(m.blur=h,x.add("BLUR")):(m.y=h,x.add("Y")):(m.x=h,x.add("X")):m.color?(m.unknown||(m.unknown=[]),m.unknown.push(h)):m.color=h;return m.valid=m.x!==void 0&&m.y!==void 0,m})}function u(s){return s.map(l=>l.valid?[l.keyword,l.x,l.y,l.blur,l.spread,l.color].filter(Boolean).join(" "):l.raw).join(", ")}}(qn),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(P,N){for(var ne in N)Object.defineProperty(P,ne,{enumerable:!0,get:N[ne]})}e(t,{normalize:function(){return s},normalizeAttributeSelectors:function(){return l},url:function(){return p},number:function(){return m},percentage:function(){return b},length:function(){return y},lineWidth:function(){return D},shadow:function(){return S},color:function(){return R},image:function(){return E},gradient:function(){return Q},position:function(){return C},familyName:function(){return z},genericName:function(){return L},absoluteSize:function(){return X},relativeSize:function(){return T}});const r=nr,n=qn,i=Pt;let o=["min","max","clamp","calc"];function a(P){return o.some(N=>new RegExp(`^${N}\\(.*\\)`).test(P))}const u=new Set(["scroll-timeline-name","timeline-scope","view-timeline-name","font-palette","anchor-name","anchor-scope","position-anchor","position-try-options","scroll-timeline","animation-timeline","view-timeline","position-try"]);function s(P,N=null,ne=!0){let _=N&&u.has(N.property);return P.startsWith("--")&&!_?`var(${P})`:P.includes("url(")?P.split(/(url\(.*?\))/g).filter(Boolean).map(Z=>/^url\(.*?\)$/.test(Z)?Z:s(Z,N,!1)).join(""):(P=P.replace(/([^\\])_+/g,(Z,F)=>F+" ".repeat(Z.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),ne&&(P=P.trim()),P=d(P),P)}function l(P){return P.includes("=")&&(P=P.replace(/(=.*)/g,(N,ne)=>{if(ne[1]==="'"||ne[1]==='"')return ne;if(ne.length>2){let _=ne[ne.length-1];if(ne[ne.length-2]===" "&&(_==="i"||_==="I"||_==="s"||_==="S"))return`="${ne.slice(1,-2)}" ${ne[ne.length-1]}`}return`="${ne.slice(1)}"`})),P}function d(P){let N=["theme"],ne=["min-content","max-content","fit-content","safe-area-inset-top","safe-area-inset-right","safe-area-inset-bottom","safe-area-inset-left","titlebar-area-x","titlebar-area-y","titlebar-area-width","titlebar-area-height","keyboard-inset-top","keyboard-inset-right","keyboard-inset-bottom","keyboard-inset-left","keyboard-inset-width","keyboard-inset-height","radial-gradient","linear-gradient","conic-gradient","repeating-radial-gradient","repeating-linear-gradient","repeating-conic-gradient"];return P.replace(/(calc|min|max|clamp)\(.+\)/g,_=>{let Z="";function F(){let B=Z.trimEnd();return B[B.length-1]}for(let B=0;B<_.length;B++){let w=function(M){return M.split("").every((re,ce)=>_[B+ce]===re)},W=function(M){let re=1/0;for(let le of M){let ie=_.indexOf(le,B);ie!==-1&&ie<re&&(re=ie)}let ce=_.slice(B,re);return B+=ce.length-1,ce},V=_[B];if(w("var"))Z+=W([")",","]);else if(ne.some(M=>w(M))){let M=ne.find(re=>w(re));Z+=M,B+=M.length-1}else N.some(M=>w(M))?Z+=W([")"]):w("[")?Z+=W(["]"]):["+","-","*","/"].includes(V)&&!["(","+","-","*","/",","].includes(F())?Z+=` ${V} `:Z+=V}return Z.replace(/\s+/g," ")})}function p(P){return P.startsWith("url(")}function m(P){return!isNaN(Number(P))||a(P)}function b(P){return P.endsWith("%")&&m(P.slice(0,-1))||a(P)}let h=`(?:${["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"].join("|")})`;function y(P){return P==="0"||new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${h}$`).test(P)||a(P)}let $=new Set(["thin","medium","thick"]);function D(P){return $.has(P)}function S(P){let N=(0,n.parseBoxShadowValue)(s(P));for(let ne of N)if(!ne.valid)return!1;return!0}function R(P){let N=0;return(0,i.splitAtTopLevelOnly)(P,"_").every(_=>(_=s(_),_.startsWith("var(")?!0:(0,r.parseColor)(_,{loose:!0})!==null?(N++,!0):!1))?N>0:!1}function E(P){let N=0;return(0,i.splitAtTopLevelOnly)(P,",").every(_=>(_=s(_),_.startsWith("var(")?!0:p(_)||Q(_)||["element(","image(","cross-fade(","image-set("].some(Z=>_.startsWith(Z))?(N++,!0):!1))?N>0:!1}let j=new Set(["conic-gradient","linear-gradient","radial-gradient","repeating-conic-gradient","repeating-linear-gradient","repeating-radial-gradient"]);function Q(P){P=s(P);for(let N of j)if(P.startsWith(`${N}(`))return!0;return!1}let U=new Set(["center","top","right","bottom","left"]);function C(P){let N=0;return(0,i.splitAtTopLevelOnly)(P,"_").every(_=>(_=s(_),_.startsWith("var(")?!0:U.has(_)||y(_)||b(_)?(N++,!0):!1))?N>0:!1}function z(P){let N=0;return(0,i.splitAtTopLevelOnly)(P,",").every(_=>(_=s(_),_.startsWith("var(")?!0:_.includes(" ")&&!/(['"])([^"']+)\1/g.test(_)||/^\d/g.test(_)?!1:(N++,!0)))?N>0:!1}let q=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function L(P){return q.has(P)}let Y=new Set(["xx-small","x-small","small","medium","large","x-large","xx-large","xxx-large"]);function X(P){return Y.has(P)}let I=new Set(["larger","smaller"]);function T(P){return I.has(P)}}(ir);var Un={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"backgroundSize",{enumerable:!0,get:function(){return n}});const e=ir,r=Pt;function n(i){let o=["cover","contain"];return(0,r.splitAtTopLevelOnly)(i,",").every(a=>{let u=(0,r.splitAtTopLevelOnly)(a,"_").filter(Boolean);return u.length===1&&o.includes(u[0])?!0:u.length!==1&&u.length!==2?!1:u.every(s=>(0,e.length)(s)||(0,e.percentage)(s)||s==="auto")})}})(Un),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(C,z){for(var q in z)Object.defineProperty(C,q,{enumerable:!0,get:z[q]})}e(t,{updateAllClasses:function(){return l},asValue:function(){return m},parseColorFormat:function(){return h},asColor:function(){return $},asLookupValue:function(){return D},typeMap:function(){return R},coerceValue:function(){return Q},getMatchingTypes:function(){return U}});const r=s(Gn),n=rr,i=ir,o=s(Jt),a=Un,u=Dt;function s(C){return C&&C.__esModule?C:{default:C}}function l(C,z){C.walkClasses(q=>{q.value=z(q.value),q.raws&&q.raws.value&&(q.raws.value=(0,r.default)(q.raws.value))})}function d(C,z){if(!b(C))return;let q=C.slice(1,-1);if(z(q))return(0,i.normalize)(q)}function p(C,z={},q){let L=z[C];if(L!==void 0)return(0,o.default)(L);if(b(C)){let Y=d(C,q);return Y===void 0?void 0:(0,o.default)(Y)}}function m(C,z={},{validate:q=()=>!0}={}){var L;let Y=(L=z.values)===null||L===void 0?void 0:L[C];return Y!==void 0?Y:z.supportsNegativeValues&&C.startsWith("-")?p(C.slice(1),z.values,q):d(C,q)}function b(C){return C.startsWith("[")&&C.endsWith("]")}function x(C){let z=C.lastIndexOf("/"),q=C.lastIndexOf("[",z),L=C.indexOf("]",z);return C[z-1]==="]"||C[z+1]==="["||q!==-1&&L!==-1&&q<z&&z<L&&(z=C.lastIndexOf("/",q)),z===-1||z===C.length-1?[C,void 0]:b(C)&&!C.includes("]/[")?[C,void 0]:[C.slice(0,z),C.slice(z+1)]}function h(C){if(typeof C=="string"&&C.includes("<alpha-value>")){let z=C;return({opacityValue:q=1})=>z.replace(/<alpha-value>/g,q)}return C}function y(C){return(0,i.normalize)(C.slice(1,-1))}function $(C,z={},{tailwindConfig:q={}}={}){var L;if(((L=z.values)===null||L===void 0?void 0:L[C])!==void 0){var Y;return h((Y=z.values)===null||Y===void 0?void 0:Y[C])}let[X,I]=x(C);if(I!==void 0){var T,P,N,ne;let _=(ne=(T=z.values)===null||T===void 0?void 0:T[X])!==null&&ne!==void 0?ne:b(X)?X.slice(1,-1):void 0;return _===void 0?void 0:(_=h(_),b(I)?(0,n.withAlphaValue)(_,y(I)):((P=q.theme)===null||P===void 0||(N=P.opacity)===null||N===void 0?void 0:N[I])===void 0?void 0:(0,n.withAlphaValue)(_,q.theme.opacity[I]))}return m(C,z,{validate:i.color})}function D(C,z={}){var q;return(q=z.values)===null||q===void 0?void 0:q[C]}function S(C){return(z,q)=>m(z,q,{validate:C})}let R={any:m,color:$,url:S(i.url),image:S(i.image),length:S(i.length),percentage:S(i.percentage),position:S(i.position),lookup:D,"generic-name":S(i.genericName),"family-name":S(i.familyName),number:S(i.number),"line-width":S(i.lineWidth),"absolute-size":S(i.absoluteSize),"relative-size":S(i.relativeSize),shadow:S(i.shadow),size:S(a.backgroundSize)},E=Object.keys(R);function j(C,z){let q=C.indexOf(z);return q===-1?[void 0,C]:[C.slice(0,q),C.slice(q+1)]}function Q(C,z,q,L){if(q.values&&z in q.values)for(let{type:X}of C!=null?C:[]){let I=R[X](z,q,{tailwindConfig:L});if(I!==void 0)return[I,X,null]}if(b(z)){let X=z.slice(1,-1),[I,T]=j(X,":");if(!/^[\w-_]+$/g.test(I))T=X;else if(I!==void 0&&!E.includes(I))return[];if(T.length>0&&E.includes(I))return[m(`[${T}]`,q),I,null]}let Y=U(C,z,q,L);for(let X of Y)return X;return[]}function*U(C,z,q,L){let Y=(0,u.flagEnabled)(L,"generalizedModifiers"),[X,I]=x(z);if(Y&&q.modifiers!=null&&(q.modifiers==="any"||typeof q.modifiers=="object"&&(I&&b(I)||I in q.modifiers))||(X=z,I=void 0),I!==void 0&&X===""&&(X="DEFAULT"),I!==void 0&&typeof q.modifiers=="object"){var P,N;let ne=(N=(P=q.modifiers)===null||P===void 0?void 0:P[I])!==null&&N!==void 0?N:null;ne!==null?I=ne:b(I)&&(I=y(I))}for(let{type:ne}of C!=null?C:[]){let _=R[ne](X,q,{tailwindConfig:L});_!==void 0&&(yield[_,ne,I!=null?I:null])}}}(jn);var Zn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r){return typeof r=="function"?r({}):r}})(Zn),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return q}});const e=b(Jt),r=b(On),n=b(zn),i=b(er),o=Fn,a=An,u=Rn,s=b(Hn),l=Nn,d=jn,p=rr,m=b(Zn);function b(L){return L&&L.__esModule?L:{default:L}}function x(L){return typeof L=="function"}function h(L,...Y){let X=Y.pop();for(let I of Y)for(let T in I){let P=X(L[T],I[T]);P===void 0?(0,s.default)(L[T])&&(0,s.default)(I[T])?L[T]=h({},L[T],I[T],X):L[T]=I[T]:L[T]=P}return L}const y={colors:i.default,negative(L){return Object.keys(L).filter(Y=>L[Y]!=="0").reduce((Y,X)=>{let I=(0,e.default)(L[X]);return I!==void 0&&(Y[`-${X}`]=I),Y},{})},breakpoints(L){return Object.keys(L).filter(Y=>typeof L[Y]=="string").reduce((Y,X)=>({...Y,[`screen-${X}`]:L[X]}),{})}};function $(L,...Y){return x(L)?L(...Y):L}function D(L){return L.reduce((Y,{extend:X})=>h(Y,X,(I,T)=>I===void 0?[T]:Array.isArray(I)?[T,...I]:[T,I]),{})}function S(L){return{...L.reduce((Y,X)=>(0,o.defaults)(Y,X),{}),extend:D(L)}}function R(L,Y){if(Array.isArray(L)&&(0,s.default)(L[0]))return L.concat(Y);if(Array.isArray(Y)&&(0,s.default)(Y[0])&&(0,s.default)(L))return[L,...Y];if(Array.isArray(Y))return Y}function E({extend:L,...Y}){return h(Y,L,(X,I)=>!x(X)&&!I.some(x)?h({},X,...I,R):(T,P)=>h({},...[X,...I].map(N=>$(N,T,P)),R))}function*j(L){let Y=(0,a.toPath)(L);if(Y.length===0||(yield Y,Array.isArray(L)))return;let X=/^(.*?)\s*\/\s*([^/]+)$/,I=L.match(X);if(I!==null){let[,T,P]=I,N=(0,a.toPath)(T);N.alpha=P,yield N}}function Q(L){const Y=(X,I)=>{for(const T of j(X)){let P=0,N=L;for(;N!=null&&P<T.length;)N=N[T[P++]],N=x(N)&&(T.alpha===void 0||P<=T.length-1)?N(Y,y):N;if(N!==void 0){if(T.alpha!==void 0){let ne=(0,d.parseColorFormat)(N);return(0,p.withAlphaValue)(ne,T.alpha,(0,m.default)(ne))}return(0,s.default)(N)?(0,l.cloneDeep)(N):N}}return I};return Object.assign(Y,{theme:Y,...y}),Object.keys(L).reduce((X,I)=>(X[I]=x(L[I])?L[I](Y,y):L[I],X),{})}function U(L){let Y=[];return L.forEach(X=>{Y=[...Y,X];var I;const T=(I=X==null?void 0:X.plugins)!==null&&I!==void 0?I:[];T.length!==0&&T.forEach(P=>{P.__isOptionsFunction&&(P=P());var N;Y=[...Y,...U([(N=P==null?void 0:P.config)!==null&&N!==void 0?N:{}])]})}),Y}function C(L){return[...L].reduceRight((X,I)=>x(I)?I({corePlugins:X}):(0,n.default)(I,X),r.default)}function z(L){return[...L].reduceRight((X,I)=>[...X,...I],[])}function q(L){let Y=[...U(L),{prefix:"",important:!1,separator:":"}];var X,I;return(0,u.normalizeConfig)((0,o.defaults)({theme:Q(E(S(Y.map(T=>(X=T==null?void 0:T.theme)!==null&&X!==void 0?X:{})))),corePlugins:C(Y.map(T=>T.corePlugins)),plugins:z(L.map(T=>(I=T==null?void 0:T.plugins)!==null&&I!==void 0?I:[]))},...Y))}}(Pn);var Yn={},ia={content:[],presets:[],darkMode:"media",theme:{accentColor:({theme:t})=>({...t("colors"),auto:"auto"}),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:t})=>t("blur"),backdropBrightness:({theme:t})=>t("brightness"),backdropContrast:({theme:t})=>t("contrast"),backdropGrayscale:({theme:t})=>t("grayscale"),backdropHueRotate:({theme:t})=>t("hueRotate"),backdropInvert:({theme:t})=>t("invert"),backdropOpacity:({theme:t})=>t("opacity"),backdropSaturate:({theme:t})=>t("saturate"),backdropSepia:({theme:t})=>t("sepia"),backgroundColor:({theme:t})=>t("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:t})=>t("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:t})=>({...t("colors"),DEFAULT:t("colors.gray.200","currentColor")}),borderOpacity:({theme:t})=>t("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:t})=>({...t("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:t})=>t("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},caretColor:({theme:t})=>t("colors"),colors:({colors:t})=>({inherit:t.inherit,current:t.current,transparent:t.transparent,black:t.black,white:t.white,slate:t.slate,gray:t.gray,zinc:t.zinc,neutral:t.neutral,stone:t.stone,red:t.red,orange:t.orange,amber:t.amber,yellow:t.yellow,lime:t.lime,green:t.green,emerald:t.emerald,teal:t.teal,cyan:t.cyan,sky:t.sky,blue:t.blue,indigo:t.indigo,violet:t.violet,purple:t.purple,fuchsia:t.fuchsia,pink:t.pink,rose:t.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:t})=>t("borderColor"),divideOpacity:({theme:t})=>t("borderOpacity"),divideWidth:({theme:t})=>t("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:t})=>({none:"none",...t("colors")}),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:t})=>t("spacing"),gradientColorStops:({theme:t})=>t("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%"},grayscale:{0:"0",DEFAULT:"100%"},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridTemplateColumns:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},height:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},inset:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),invert:{0:"0",DEFAULT:"100%"},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:t})=>({auto:"auto",...t("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6"},maxHeight:({theme:t})=>({...t("spacing"),none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:t,breakpoints:e})=>({...t("spacing"),none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e(t("screens"))}),minHeight:({theme:t})=>({...t("spacing"),full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),minWidth:({theme:t})=>({...t("spacing"),full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},outlineColor:({theme:t})=>t("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},padding:({theme:t})=>t("spacing"),placeholderColor:({theme:t})=>t("colors"),placeholderOpacity:({theme:t})=>t("opacity"),ringColor:({theme:t})=>({DEFAULT:t("colors.blue.500","#3b82f6"),...t("colors")}),ringOffsetColor:({theme:t})=>t("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:t})=>({DEFAULT:"0.5",...t("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},scrollMargin:({theme:t})=>({...t("spacing")}),scrollPadding:({theme:t})=>t("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:t})=>({...t("spacing")}),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:t})=>({none:"none",...t("colors")}),strokeWidth:{0:"0",1:"1",2:"2"},supports:{},data:{},textColor:({theme:t})=>t("colors"),textDecorationColor:({theme:t})=>t("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:t})=>({...t("spacing")}),textOpacity:({theme:t})=>t("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:t})=>({...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),size:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),width:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},plugins:[]};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});const e=n(ia),r=Dt;function n(o){return o&&o.__esModule?o:{default:o}}function i(o){var a;const u=((a=o==null?void 0:o.presets)!==null&&a!==void 0?a:[e.default]).slice().reverse().flatMap(d=>i(d instanceof Function?d():d)),s={respectDefaultRingColorOpacity:{theme:{ringColor:({theme:d})=>({DEFAULT:"#3b82f67f",...d("colors")})}},disableColorOpacityUtilitiesByDefault:{corePlugins:{backgroundOpacity:!1,borderOpacity:!1,divideOpacity:!1,placeholderOpacity:!1,ringOpacity:!1,textOpacity:!1}}},l=Object.keys(s).filter(d=>(0,r.flagEnabled)(o,d)).map(d=>s[d]);return[o,...l,...u]}})(Yn),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});const e=n(Pn),r=n(Yn);function n(o){return o&&o.__esModule?o:{default:o}}function i(...o){let[,...a]=(0,r.default)(o[0]);return(0,e.default)([...o,...a])}}(Dn);let sr=Dn;var sa=(sr.__esModule?sr:{default:sr}).default;const aa=yt(sa);let ar=er;var or=(ar.__esModule?ar:{default:ar}).default;const Xn=yt(or),oa=Xt({__proto__:null,default:Xn},[or]);var Vn={},Qn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});function e(n,i){return{handler:n,config:i}}e.withOptions=function(n,i=()=>({})){const o=function(a){return{__options:a,handler:n(a),config:i(a)}};return o.__isOptionsFunction=!0,o.__pluginFunction=n,o.__configFunction=i,o};const r=e})(Qn),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});const e=r(Qn);function r(i){return i&&i.__esModule?i:{default:i}}const n=e.default}(Vn);let lr=Vn;var Kn=(lr.__esModule?lr:{default:lr}).default,Ot={exports:{}};Ot.exports,function(t,e){var r=200,n="__lodash_hash_undefined__",i=800,o=16,a=9007199254740991,u="[object Arguments]",s="[object Array]",l="[object AsyncFunction]",d="[object Boolean]",p="[object Date]",m="[object Error]",b="[object Function]",x="[object GeneratorFunction]",h="[object Map]",y="[object Number]",$="[object Null]",D="[object Object]",S="[object Proxy]",R="[object RegExp]",E="[object Set]",j="[object String]",Q="[object Undefined]",U="[object WeakMap]",C="[object ArrayBuffer]",z="[object DataView]",q="[object Float32Array]",L="[object Float64Array]",Y="[object Int8Array]",X="[object Int16Array]",I="[object Int32Array]",T="[object Uint8Array]",P="[object Uint8ClampedArray]",N="[object Uint16Array]",ne="[object Uint32Array]",_=/[\\^$.*+?()[\]{}|]/g,Z=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,B={};B[q]=B[L]=B[Y]=B[X]=B[I]=B[T]=B[P]=B[N]=B[ne]=!0,B[u]=B[s]=B[C]=B[d]=B[z]=B[p]=B[m]=B[b]=B[h]=B[y]=B[D]=B[R]=B[E]=B[j]=B[U]=!1;var w=typeof ot=="object"&&ot&&ot.Object===Object&&ot,W=typeof self=="object"&&self&&self.Object===Object&&self,V=w||W||Function("return this")(),M=e&&!e.nodeType&&e,re=M&&!0&&t&&!t.nodeType&&t,ce=re&&re.exports===M,le=ce&&w.process,ie=function(){try{var f=re&&re.require&&re.require("util").types;return f||le&&le.binding&&le.binding("util")}catch{}}(),he=ie&&ie.isTypedArray;function Se(f,v,k){switch(k.length){case 0:return f.call(v);case 1:return f.call(v,k[0]);case 2:return f.call(v,k[0],k[1]);case 3:return f.call(v,k[0],k[1],k[2])}return f.apply(v,k)}function oe(f,v){for(var k=-1,te=Array(f);++k<f;)te[k]=v(k);return te}function ye(f){return function(v){return f(v)}}function Ae(f,v){return f==null?void 0:f[v]}function Be(f,v){return function(k){return f(v(k))}}var $e=Array.prototype,Te=Function.prototype,Me=Object.prototype,Ee=V["__core-js_shared__"],Le=Te.toString,De=Me.hasOwnProperty,et=function(){var f=/[^.]+$/.exec(Ee&&Ee.keys&&Ee.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""}(),Qe=Me.toString,lt=Le.call(Object),Tt=RegExp("^"+Le.call(De).replace(_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ze=ce?V.Buffer:void 0,pt=V.Symbol,jt=V.Uint8Array,Gt=Ze?Ze.allocUnsafe:void 0,$s=Be(Object.getPrototypeOf,Object),Es=Object.create,Pu=Me.propertyIsEnumerable,Ou=$e.splice,ct=pt?pt.toStringTag:void 0,Wt=function(){try{var f=Cn(Object,"defineProperty");return f({},"",{}),f}catch{}}(),zu=Ze?Ze.isBuffer:void 0,Ms=Math.max,Bu=Date.now,Ls=Cn(V,"Map"),kt=Cn(Object,"create"),Iu=function(){function f(){}return function(v){if(!dt(v))return{};if(Es)return Es(v);f.prototype=v;var k=new f;return f.prototype=void 0,k}}();function ut(f){var v=-1,k=f==null?0:f.length;for(this.clear();++v<k;){var te=f[v];this.set(te[0],te[1])}}function Fu(){this.__data__=kt?kt(null):{},this.size=0}function Au(f){var v=this.has(f)&&delete this.__data__[f];return this.size-=v?1:0,v}function Ru(f){var v=this.__data__;if(kt){var k=v[f];return k===n?void 0:k}return De.call(v,f)?v[f]:void 0}function Hu(f){var v=this.__data__;return kt?v[f]!==void 0:De.call(v,f)}function Nu(f,v){var k=this.__data__;return this.size+=this.has(f)?0:1,k[f]=kt&&v===void 0?n:v,this}ut.prototype.clear=Fu,ut.prototype.delete=Au,ut.prototype.get=Ru,ut.prototype.has=Hu,ut.prototype.set=Nu;function tt(f){var v=-1,k=f==null?0:f.length;for(this.clear();++v<k;){var te=f[v];this.set(te[0],te[1])}}function ju(){this.__data__=[],this.size=0}function Gu(f){var v=this.__data__,k=qt(v,f);if(k<0)return!1;var te=v.length-1;return k==te?v.pop():Ou.call(v,k,1),--this.size,!0}function Wu(f){var v=this.__data__,k=qt(v,f);return k<0?void 0:v[k][1]}function qu(f){return qt(this.__data__,f)>-1}function Uu(f,v){var k=this.__data__,te=qt(k,f);return te<0?(++this.size,k.push([f,v])):k[te][1]=v,this}tt.prototype.clear=ju,tt.prototype.delete=Gu,tt.prototype.get=Wu,tt.prototype.has=qu,tt.prototype.set=Uu;function mt(f){var v=-1,k=f==null?0:f.length;for(this.clear();++v<k;){var te=f[v];this.set(te[0],te[1])}}function Zu(){this.size=0,this.__data__={hash:new ut,map:new(Ls||tt),string:new ut}}function Yu(f){var v=Zt(this,f).delete(f);return this.size-=v?1:0,v}function Xu(f){return Zt(this,f).get(f)}function Vu(f){return Zt(this,f).has(f)}function Qu(f,v){var k=Zt(this,f),te=k.size;return k.set(f,v),this.size+=k.size==te?0:1,this}mt.prototype.clear=Zu,mt.prototype.delete=Yu,mt.prototype.get=Xu,mt.prototype.has=Vu,mt.prototype.set=Qu;function gt(f){var v=this.__data__=new tt(f);this.size=v.size}function Ku(){this.__data__=new tt,this.size=0}function Ju(f){var v=this.__data__,k=v.delete(f);return this.size=v.size,k}function e7(f){return this.__data__.get(f)}function t7(f){return this.__data__.has(f)}function r7(f,v){var k=this.__data__;if(k instanceof tt){var te=k.__data__;if(!Ls||te.length<r-1)return te.push([f,v]),this.size=++k.size,this;k=this.__data__=new mt(te)}return k.set(f,v),this.size=k.size,this}gt.prototype.clear=Ku,gt.prototype.delete=Ju,gt.prototype.get=e7,gt.prototype.has=t7,gt.prototype.set=r7;function n7(f,v){var k=wn(f),te=!k&&xn(f),pe=!k&&!te&&Bs(f),ve=!k&&!te&&!pe&&Fs(f),xe=k||te||pe||ve,fe=xe?oe(f.length,String):[],we=fe.length;for(var We in f)(v||De.call(f,We))&&!(xe&&(We=="length"||pe&&(We=="offset"||We=="parent")||ve&&(We=="buffer"||We=="byteLength"||We=="byteOffset")||Os(We,we)))&&fe.push(We);return fe}function _n(f,v,k){(k!==void 0&&!Yt(f[v],k)||k===void 0&&!(v in f))&&yn(f,v,k)}function i7(f,v,k){var te=f[v];(!(De.call(f,v)&&Yt(te,k))||k===void 0&&!(v in f))&&yn(f,v,k)}function qt(f,v){for(var k=f.length;k--;)if(Yt(f[k][0],v))return k;return-1}function yn(f,v,k){v=="__proto__"&&Wt?Wt(f,v,{configurable:!0,enumerable:!0,value:k,writable:!0}):f[v]=k}var s7=_7();function Ut(f){return f==null?f===void 0?Q:$:ct&&ct in Object(f)?y7(f):T7(f)}function Ds(f){return $t(f)&&Ut(f)==u}function a7(f){if(!dt(f)||w7(f))return!1;var v=Tn(f)?Tt:Z;return v.test(M7(f))}function o7(f){return $t(f)&&Is(f.length)&&!!B[Ut(f)]}function l7(f){if(!dt(f))return S7(f);var v=zs(f),k=[];for(var te in f)te=="constructor"&&(v||!De.call(f,te))||k.push(te);return k}function Ps(f,v,k,te,pe){f!==v&&s7(v,function(ve,xe){if(pe||(pe=new gt),dt(ve))c7(f,v,xe,k,Ps,te,pe);else{var fe=te?te(bn(f,xe),ve,xe+"",f,v,pe):void 0;fe===void 0&&(fe=ve),_n(f,xe,fe)}},As)}function c7(f,v,k,te,pe,ve,xe){var fe=bn(f,k),we=bn(v,k),We=xe.get(we);if(We){_n(f,k,We);return}var Re=ve?ve(fe,we,k+"",f,v,xe):void 0,Et=Re===void 0;if(Et){var kn=wn(we),$n=!kn&&Bs(we),Hs=!kn&&!$n&&Fs(we);Re=we,kn||$n||Hs?wn(fe)?Re=fe:L7(fe)?Re=m7(fe):$n?(Et=!1,Re=h7(we,!0)):Hs?(Et=!1,Re=p7(we,!0)):Re=[]:D7(we)||xn(we)?(Re=fe,xn(fe)?Re=P7(fe):(!dt(fe)||Tn(fe))&&(Re=C7(we))):Et=!1}Et&&(xe.set(we,Re),pe(Re,we,te,ve,xe),xe.delete(we)),_n(f,k,Re)}function u7(f,v){return $7(k7(f,v,Rs),f+"")}var d7=Wt?function(f,v){return Wt(f,"toString",{configurable:!0,enumerable:!1,value:z7(v),writable:!0})}:Rs;function h7(f,v){if(v)return f.slice();var k=f.length,te=Gt?Gt(k):new f.constructor(k);return f.copy(te),te}function f7(f){var v=new f.constructor(f.byteLength);return new jt(v).set(new jt(f)),v}function p7(f,v){var k=v?f7(f.buffer):f.buffer;return new f.constructor(k,f.byteOffset,f.length)}function m7(f,v){var k=-1,te=f.length;for(v||(v=Array(te));++k<te;)v[k]=f[k];return v}function g7(f,v,k,te){var pe=!k;k||(k={});for(var ve=-1,xe=v.length;++ve<xe;){var fe=v[ve],we=te?te(k[fe],f[fe],fe,k,f):void 0;we===void 0&&(we=f[fe]),pe?yn(k,fe,we):i7(k,fe,we)}return k}function v7(f){return u7(function(v,k){var te=-1,pe=k.length,ve=pe>1?k[pe-1]:void 0,xe=pe>2?k[2]:void 0;for(ve=f.length>3&&typeof ve=="function"?(pe--,ve):void 0,xe&&b7(k[0],k[1],xe)&&(ve=pe<3?void 0:ve,pe=1),v=Object(v);++te<pe;){var fe=k[te];fe&&f(v,fe,te,ve)}return v})}function _7(f){return function(v,k,te){for(var pe=-1,ve=Object(v),xe=te(v),fe=xe.length;fe--;){var we=xe[f?fe:++pe];if(k(ve[we],we,ve)===!1)break}return v}}function Zt(f,v){var k=f.__data__;return x7(v)?k[typeof v=="string"?"string":"hash"]:k.map}function Cn(f,v){var k=Ae(f,v);return a7(k)?k:void 0}function y7(f){var v=De.call(f,ct),k=f[ct];try{f[ct]=void 0;var te=!0}catch{}var pe=Qe.call(f);return te&&(v?f[ct]=k:delete f[ct]),pe}function C7(f){return typeof f.constructor=="function"&&!zs(f)?Iu($s(f)):{}}function Os(f,v){var k=typeof f;return v=v==null?a:v,!!v&&(k=="number"||k!="symbol"&&F.test(f))&&f>-1&&f%1==0&&f<v}function b7(f,v,k){if(!dt(k))return!1;var te=typeof v;return(te=="number"?Sn(k)&&Os(v,k.length):te=="string"&&v in k)?Yt(k[v],f):!1}function x7(f){var v=typeof f;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?f!=="__proto__":f===null}function w7(f){return!!et&&et in f}function zs(f){var v=f&&f.constructor,k=typeof v=="function"&&v.prototype||Me;return f===k}function S7(f){var v=[];if(f!=null)for(var k in Object(f))v.push(k);return v}function T7(f){return Qe.call(f)}function k7(f,v,k){return v=Ms(v===void 0?f.length-1:v,0),function(){for(var te=arguments,pe=-1,ve=Ms(te.length-v,0),xe=Array(ve);++pe<ve;)xe[pe]=te[v+pe];pe=-1;for(var fe=Array(v+1);++pe<v;)fe[pe]=te[pe];return fe[v]=k(xe),Se(f,this,fe)}}function bn(f,v){if(!(v==="constructor"&&typeof f[v]=="function")&&v!="__proto__")return f[v]}var $7=E7(d7);function E7(f){var v=0,k=0;return function(){var te=Bu(),pe=o-(te-k);if(k=te,pe>0){if(++v>=i)return arguments[0]}else v=0;return f.apply(void 0,arguments)}}function M7(f){if(f!=null){try{return Le.call(f)}catch{}try{return f+""}catch{}}return""}function Yt(f,v){return f===v||f!==f&&v!==v}var xn=Ds(function(){return arguments}())?Ds:function(f){return $t(f)&&De.call(f,"callee")&&!Pu.call(f,"callee")},wn=Array.isArray;function Sn(f){return f!=null&&Is(f.length)&&!Tn(f)}function L7(f){return $t(f)&&Sn(f)}var Bs=zu||B7;function Tn(f){if(!dt(f))return!1;var v=Ut(f);return v==b||v==x||v==l||v==S}function Is(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=a}function dt(f){var v=typeof f;return f!=null&&(v=="object"||v=="function")}function $t(f){return f!=null&&typeof f=="object"}function D7(f){if(!$t(f)||Ut(f)!=D)return!1;var v=$s(f);if(v===null)return!0;var k=De.call(v,"constructor")&&v.constructor;return typeof k=="function"&&k instanceof k&&Le.call(k)==lt}var Fs=he?ye(he):o7;function P7(f){return g7(f,As(f))}function As(f){return Sn(f)?n7(f,!0):l7(f)}var O7=v7(function(f,v,k){Ps(f,v,k)});function z7(f){return function(){return f}}function Rs(f){return f}function B7(){return!1}t.exports=O7}(Ot,Ot.exports);var la=Ot.exports;function ca(){if(!arguments.length)return[];var t=arguments[0];return ua(t)?t:[t]}var ua=Array.isArray,da=ca;const g=or,ae=t=>t.toFixed(7).replace(/(\.[0-9]+?)0+$/,"$1").replace(/\.0$/,""),ze=t=>`${ae(t/16)}rem`,c=(t,e)=>`${ae(t/e)}em`,Xe=t=>{t=t.replace("#",""),t=t.length===3?t.replace(/./g,"$&$&"):t;const e=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),n=parseInt(t.substring(4,6),16);return`${e} ${r} ${n}`};let cr={sm:{css:[{fontSize:ze(14),lineHeight:ae(24/14),p:{marginTop:c(16,14),marginBottom:c(16,14)},'[class~="lead"]':{fontSize:c(18,14),lineHeight:ae(28/18),marginTop:c(16,18),marginBottom:c(16,18)},blockquote:{marginTop:c(24,18),marginBottom:c(24,18),paddingInlineStart:c(20,18)},h1:{fontSize:c(30,14),marginTop:"0",marginBottom:c(24,30),lineHeight:ae(36/30)},h2:{fontSize:c(20,14),marginTop:c(32,20),marginBottom:c(16,20),lineHeight:ae(28/20)},h3:{fontSize:c(18,14),marginTop:c(28,18),marginBottom:c(8,18),lineHeight:ae(28/18)},h4:{marginTop:c(20,14),marginBottom:c(8,14),lineHeight:ae(20/14)},img:{marginTop:c(24,14),marginBottom:c(24,14)},picture:{marginTop:c(24,14),marginBottom:c(24,14)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:c(24,14),marginBottom:c(24,14)},kbd:{fontSize:c(12,14),borderRadius:ze(5),paddingTop:c(2,14),paddingInlineEnd:c(5,14),paddingBottom:c(2,14),paddingInlineStart:c(5,14)},code:{fontSize:c(12,14)},"h2 code":{fontSize:c(18,20)},"h3 code":{fontSize:c(16,18)},pre:{fontSize:c(12,14),lineHeight:ae(20/12),marginTop:c(20,12),marginBottom:c(20,12),borderRadius:ze(4),paddingTop:c(8,12),paddingInlineEnd:c(12,12),paddingBottom:c(8,12),paddingInlineStart:c(12,12)},ol:{marginTop:c(16,14),marginBottom:c(16,14),paddingInlineStart:c(22,14)},ul:{marginTop:c(16,14),marginBottom:c(16,14),paddingInlineStart:c(22,14)},li:{marginTop:c(4,14),marginBottom:c(4,14)},"ol > li":{paddingInlineStart:c(6,14)},"ul > li":{paddingInlineStart:c(6,14)},"> ul > li p":{marginTop:c(8,14),marginBottom:c(8,14)},"> ul > li > p:first-child":{marginTop:c(16,14)},"> ul > li > p:last-child":{marginBottom:c(16,14)},"> ol > li > p:first-child":{marginTop:c(16,14)},"> ol > li > p:last-child":{marginBottom:c(16,14)},"ul ul, ul ol, ol ul, ol ol":{marginTop:c(8,14),marginBottom:c(8,14)},dl:{marginTop:c(16,14),marginBottom:c(16,14)},dt:{marginTop:c(16,14)},dd:{marginTop:c(4,14),paddingInlineStart:c(22,14)},hr:{marginTop:c(40,14),marginBottom:c(40,14)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:c(12,14),lineHeight:ae(18/12)},"thead th":{paddingInlineEnd:c(12,12),paddingBottom:c(8,12),paddingInlineStart:c(12,12)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:c(8,12),paddingInlineEnd:c(12,12),paddingBottom:c(8,12),paddingInlineStart:c(12,12)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:c(24,14),marginBottom:c(24,14)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:c(12,14),lineHeight:ae(16/12),marginTop:c(8,12)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},base:{css:[{fontSize:ze(16),lineHeight:ae(28/16),p:{marginTop:c(20,16),marginBottom:c(20,16)},'[class~="lead"]':{fontSize:c(20,16),lineHeight:ae(32/20),marginTop:c(24,20),marginBottom:c(24,20)},blockquote:{marginTop:c(32,20),marginBottom:c(32,20),paddingInlineStart:c(20,20)},h1:{fontSize:c(36,16),marginTop:"0",marginBottom:c(32,36),lineHeight:ae(40/36)},h2:{fontSize:c(24,16),marginTop:c(48,24),marginBottom:c(24,24),lineHeight:ae(32/24)},h3:{fontSize:c(20,16),marginTop:c(32,20),marginBottom:c(12,20),lineHeight:ae(32/20)},h4:{marginTop:c(24,16),marginBottom:c(8,16),lineHeight:ae(24/16)},img:{marginTop:c(32,16),marginBottom:c(32,16)},picture:{marginTop:c(32,16),marginBottom:c(32,16)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:c(32,16),marginBottom:c(32,16)},kbd:{fontSize:c(14,16),borderRadius:ze(5),paddingTop:c(3,16),paddingInlineEnd:c(6,16),paddingBottom:c(3,16),paddingInlineStart:c(6,16)},code:{fontSize:c(14,16)},"h2 code":{fontSize:c(21,24)},"h3 code":{fontSize:c(18,20)},pre:{fontSize:c(14,16),lineHeight:ae(24/14),marginTop:c(24,14),marginBottom:c(24,14),borderRadius:ze(6),paddingTop:c(12,14),paddingInlineEnd:c(16,14),paddingBottom:c(12,14),paddingInlineStart:c(16,14)},ol:{marginTop:c(20,16),marginBottom:c(20,16),paddingInlineStart:c(26,16)},ul:{marginTop:c(20,16),marginBottom:c(20,16),paddingInlineStart:c(26,16)},li:{marginTop:c(8,16),marginBottom:c(8,16)},"ol > li":{paddingInlineStart:c(6,16)},"ul > li":{paddingInlineStart:c(6,16)},"> ul > li p":{marginTop:c(12,16),marginBottom:c(12,16)},"> ul > li > p:first-child":{marginTop:c(20,16)},"> ul > li > p:last-child":{marginBottom:c(20,16)},"> ol > li > p:first-child":{marginTop:c(20,16)},"> ol > li > p:last-child":{marginBottom:c(20,16)},"ul ul, ul ol, ol ul, ol ol":{marginTop:c(12,16),marginBottom:c(12,16)},dl:{marginTop:c(20,16),marginBottom:c(20,16)},dt:{marginTop:c(20,16)},dd:{marginTop:c(8,16),paddingInlineStart:c(26,16)},hr:{marginTop:c(48,16),marginBottom:c(48,16)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:c(14,16),lineHeight:ae(24/14)},"thead th":{paddingInlineEnd:c(8,14),paddingBottom:c(8,14),paddingInlineStart:c(8,14)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:c(8,14),paddingInlineEnd:c(8,14),paddingBottom:c(8,14),paddingInlineStart:c(8,14)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:c(32,16),marginBottom:c(32,16)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:c(14,16),lineHeight:ae(20/14),marginTop:c(12,14)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},lg:{css:[{fontSize:ze(18),lineHeight:ae(32/18),p:{marginTop:c(24,18),marginBottom:c(24,18)},'[class~="lead"]':{fontSize:c(22,18),lineHeight:ae(32/22),marginTop:c(24,22),marginBottom:c(24,22)},blockquote:{marginTop:c(40,24),marginBottom:c(40,24),paddingInlineStart:c(24,24)},h1:{fontSize:c(48,18),marginTop:"0",marginBottom:c(40,48),lineHeight:ae(48/48)},h2:{fontSize:c(30,18),marginTop:c(56,30),marginBottom:c(32,30),lineHeight:ae(40/30)},h3:{fontSize:c(24,18),marginTop:c(40,24),marginBottom:c(16,24),lineHeight:ae(36/24)},h4:{marginTop:c(32,18),marginBottom:c(8,18),lineHeight:ae(28/18)},img:{marginTop:c(32,18),marginBottom:c(32,18)},picture:{marginTop:c(32,18),marginBottom:c(32,18)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:c(32,18),marginBottom:c(32,18)},kbd:{fontSize:c(16,18),borderRadius:ze(5),paddingTop:c(4,18),paddingInlineEnd:c(8,18),paddingBottom:c(4,18),paddingInlineStart:c(8,18)},code:{fontSize:c(16,18)},"h2 code":{fontSize:c(26,30)},"h3 code":{fontSize:c(21,24)},pre:{fontSize:c(16,18),lineHeight:ae(28/16),marginTop:c(32,16),marginBottom:c(32,16),borderRadius:ze(6),paddingTop:c(16,16),paddingInlineEnd:c(24,16),paddingBottom:c(16,16),paddingInlineStart:c(24,16)},ol:{marginTop:c(24,18),marginBottom:c(24,18),paddingInlineStart:c(28,18)},ul:{marginTop:c(24,18),marginBottom:c(24,18),paddingInlineStart:c(28,18)},li:{marginTop:c(12,18),marginBottom:c(12,18)},"ol > li":{paddingInlineStart:c(8,18)},"ul > li":{paddingInlineStart:c(8,18)},"> ul > li p":{marginTop:c(16,18),marginBottom:c(16,18)},"> ul > li > p:first-child":{marginTop:c(24,18)},"> ul > li > p:last-child":{marginBottom:c(24,18)},"> ol > li > p:first-child":{marginTop:c(24,18)},"> ol > li > p:last-child":{marginBottom:c(24,18)},"ul ul, ul ol, ol ul, ol ol":{marginTop:c(16,18),marginBottom:c(16,18)},dl:{marginTop:c(24,18),marginBottom:c(24,18)},dt:{marginTop:c(24,18)},dd:{marginTop:c(12,18),paddingInlineStart:c(28,18)},hr:{marginTop:c(56,18),marginBottom:c(56,18)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:c(16,18),lineHeight:ae(24/16)},"thead th":{paddingInlineEnd:c(12,16),paddingBottom:c(12,16),paddingInlineStart:c(12,16)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:c(12,16),paddingInlineEnd:c(12,16),paddingBottom:c(12,16),paddingInlineStart:c(12,16)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:c(32,18),marginBottom:c(32,18)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:c(16,18),lineHeight:ae(24/16),marginTop:c(16,16)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},xl:{css:[{fontSize:ze(20),lineHeight:ae(36/20),p:{marginTop:c(24,20),marginBottom:c(24,20)},'[class~="lead"]':{fontSize:c(24,20),lineHeight:ae(36/24),marginTop:c(24,24),marginBottom:c(24,24)},blockquote:{marginTop:c(48,30),marginBottom:c(48,30),paddingInlineStart:c(32,30)},h1:{fontSize:c(56,20),marginTop:"0",marginBottom:c(48,56),lineHeight:ae(56/56)},h2:{fontSize:c(36,20),marginTop:c(56,36),marginBottom:c(32,36),lineHeight:ae(40/36)},h3:{fontSize:c(30,20),marginTop:c(48,30),marginBottom:c(20,30),lineHeight:ae(40/30)},h4:{marginTop:c(36,20),marginBottom:c(12,20),lineHeight:ae(32/20)},img:{marginTop:c(40,20),marginBottom:c(40,20)},picture:{marginTop:c(40,20),marginBottom:c(40,20)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:c(40,20),marginBottom:c(40,20)},kbd:{fontSize:c(18,20),borderRadius:ze(5),paddingTop:c(5,20),paddingInlineEnd:c(8,20),paddingBottom:c(5,20),paddingInlineStart:c(8,20)},code:{fontSize:c(18,20)},"h2 code":{fontSize:c(31,36)},"h3 code":{fontSize:c(27,30)},pre:{fontSize:c(18,20),lineHeight:ae(32/18),marginTop:c(36,18),marginBottom:c(36,18),borderRadius:ze(8),paddingTop:c(20,18),paddingInlineEnd:c(24,18),paddingBottom:c(20,18),paddingInlineStart:c(24,18)},ol:{marginTop:c(24,20),marginBottom:c(24,20),paddingInlineStart:c(32,20)},ul:{marginTop:c(24,20),marginBottom:c(24,20),paddingInlineStart:c(32,20)},li:{marginTop:c(12,20),marginBottom:c(12,20)},"ol > li":{paddingInlineStart:c(8,20)},"ul > li":{paddingInlineStart:c(8,20)},"> ul > li p":{marginTop:c(16,20),marginBottom:c(16,20)},"> ul > li > p:first-child":{marginTop:c(24,20)},"> ul > li > p:last-child":{marginBottom:c(24,20)},"> ol > li > p:first-child":{marginTop:c(24,20)},"> ol > li > p:last-child":{marginBottom:c(24,20)},"ul ul, ul ol, ol ul, ol ol":{marginTop:c(16,20),marginBottom:c(16,20)},dl:{marginTop:c(24,20),marginBottom:c(24,20)},dt:{marginTop:c(24,20)},dd:{marginTop:c(12,20),paddingInlineStart:c(32,20)},hr:{marginTop:c(56,20),marginBottom:c(56,20)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:c(18,20),lineHeight:ae(28/18)},"thead th":{paddingInlineEnd:c(12,18),paddingBottom:c(16,18),paddingInlineStart:c(12,18)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:c(16,18),paddingInlineEnd:c(12,18),paddingBottom:c(16,18),paddingInlineStart:c(12,18)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:c(40,20),marginBottom:c(40,20)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:c(18,20),lineHeight:ae(28/18),marginTop:c(18,18)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},"2xl":{css:[{fontSize:ze(24),lineHeight:ae(40/24),p:{marginTop:c(32,24),marginBottom:c(32,24)},'[class~="lead"]':{fontSize:c(30,24),lineHeight:ae(44/30),marginTop:c(32,30),marginBottom:c(32,30)},blockquote:{marginTop:c(64,36),marginBottom:c(64,36),paddingInlineStart:c(40,36)},h1:{fontSize:c(64,24),marginTop:"0",marginBottom:c(56,64),lineHeight:ae(64/64)},h2:{fontSize:c(48,24),marginTop:c(72,48),marginBottom:c(40,48),lineHeight:ae(52/48)},h3:{fontSize:c(36,24),marginTop:c(56,36),marginBottom:c(24,36),lineHeight:ae(44/36)},h4:{marginTop:c(40,24),marginBottom:c(16,24),lineHeight:ae(36/24)},img:{marginTop:c(48,24),marginBottom:c(48,24)},picture:{marginTop:c(48,24),marginBottom:c(48,24)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:c(48,24),marginBottom:c(48,24)},kbd:{fontSize:c(20,24),borderRadius:ze(6),paddingTop:c(6,24),paddingInlineEnd:c(8,24),paddingBottom:c(6,24),paddingInlineStart:c(8,24)},code:{fontSize:c(20,24)},"h2 code":{fontSize:c(42,48)},"h3 code":{fontSize:c(32,36)},pre:{fontSize:c(20,24),lineHeight:ae(36/20),marginTop:c(40,20),marginBottom:c(40,20),borderRadius:ze(8),paddingTop:c(24,20),paddingInlineEnd:c(32,20),paddingBottom:c(24,20),paddingInlineStart:c(32,20)},ol:{marginTop:c(32,24),marginBottom:c(32,24),paddingInlineStart:c(38,24)},ul:{marginTop:c(32,24),marginBottom:c(32,24),paddingInlineStart:c(38,24)},li:{marginTop:c(12,24),marginBottom:c(12,24)},"ol > li":{paddingInlineStart:c(10,24)},"ul > li":{paddingInlineStart:c(10,24)},"> ul > li p":{marginTop:c(20,24),marginBottom:c(20,24)},"> ul > li > p:first-child":{marginTop:c(32,24)},"> ul > li > p:last-child":{marginBottom:c(32,24)},"> ol > li > p:first-child":{marginTop:c(32,24)},"> ol > li > p:last-child":{marginBottom:c(32,24)},"ul ul, ul ol, ol ul, ol ol":{marginTop:c(16,24),marginBottom:c(16,24)},dl:{marginTop:c(32,24),marginBottom:c(32,24)},dt:{marginTop:c(32,24)},dd:{marginTop:c(12,24),paddingInlineStart:c(38,24)},hr:{marginTop:c(72,24),marginBottom:c(72,24)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:c(20,24),lineHeight:ae(28/20)},"thead th":{paddingInlineEnd:c(12,20),paddingBottom:c(16,20),paddingInlineStart:c(12,20)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:c(16,20),paddingInlineEnd:c(12,20),paddingBottom:c(16,20),paddingInlineStart:c(12,20)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:c(48,24),marginBottom:c(48,24)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:c(20,24),lineHeight:ae(32/20),marginTop:c(20,20)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},slate:{css:{"--tw-prose-body":g.slate[700],"--tw-prose-headings":g.slate[900],"--tw-prose-lead":g.slate[600],"--tw-prose-links":g.slate[900],"--tw-prose-bold":g.slate[900],"--tw-prose-counters":g.slate[500],"--tw-prose-bullets":g.slate[300],"--tw-prose-hr":g.slate[200],"--tw-prose-quotes":g.slate[900],"--tw-prose-quote-borders":g.slate[200],"--tw-prose-captions":g.slate[500],"--tw-prose-kbd":g.slate[900],"--tw-prose-kbd-shadows":Xe(g.slate[900]),"--tw-prose-code":g.slate[900],"--tw-prose-pre-code":g.slate[200],"--tw-prose-pre-bg":g.slate[800],"--tw-prose-th-borders":g.slate[300],"--tw-prose-td-borders":g.slate[200],"--tw-prose-invert-body":g.slate[300],"--tw-prose-invert-headings":g.white,"--tw-prose-invert-lead":g.slate[400],"--tw-prose-invert-links":g.white,"--tw-prose-invert-bold":g.white,"--tw-prose-invert-counters":g.slate[400],"--tw-prose-invert-bullets":g.slate[600],"--tw-prose-invert-hr":g.slate[700],"--tw-prose-invert-quotes":g.slate[100],"--tw-prose-invert-quote-borders":g.slate[700],"--tw-prose-invert-captions":g.slate[400],"--tw-prose-invert-kbd":g.white,"--tw-prose-invert-kbd-shadows":Xe(g.white),"--tw-prose-invert-code":g.white,"--tw-prose-invert-pre-code":g.slate[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":g.slate[600],"--tw-prose-invert-td-borders":g.slate[700]}},gray:{css:{"--tw-prose-body":g.gray[700],"--tw-prose-headings":g.gray[900],"--tw-prose-lead":g.gray[600],"--tw-prose-links":g.gray[900],"--tw-prose-bold":g.gray[900],"--tw-prose-counters":g.gray[500],"--tw-prose-bullets":g.gray[300],"--tw-prose-hr":g.gray[200],"--tw-prose-quotes":g.gray[900],"--tw-prose-quote-borders":g.gray[200],"--tw-prose-captions":g.gray[500],"--tw-prose-kbd":g.gray[900],"--tw-prose-kbd-shadows":Xe(g.gray[900]),"--tw-prose-code":g.gray[900],"--tw-prose-pre-code":g.gray[200],"--tw-prose-pre-bg":g.gray[800],"--tw-prose-th-borders":g.gray[300],"--tw-prose-td-borders":g.gray[200],"--tw-prose-invert-body":g.gray[300],"--tw-prose-invert-headings":g.white,"--tw-prose-invert-lead":g.gray[400],"--tw-prose-invert-links":g.white,"--tw-prose-invert-bold":g.white,"--tw-prose-invert-counters":g.gray[400],"--tw-prose-invert-bullets":g.gray[600],"--tw-prose-invert-hr":g.gray[700],"--tw-prose-invert-quotes":g.gray[100],"--tw-prose-invert-quote-borders":g.gray[700],"--tw-prose-invert-captions":g.gray[400],"--tw-prose-invert-kbd":g.white,"--tw-prose-invert-kbd-shadows":Xe(g.white),"--tw-prose-invert-code":g.white,"--tw-prose-invert-pre-code":g.gray[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":g.gray[600],"--tw-prose-invert-td-borders":g.gray[700]}},zinc:{css:{"--tw-prose-body":g.zinc[700],"--tw-prose-headings":g.zinc[900],"--tw-prose-lead":g.zinc[600],"--tw-prose-links":g.zinc[900],"--tw-prose-bold":g.zinc[900],"--tw-prose-counters":g.zinc[500],"--tw-prose-bullets":g.zinc[300],"--tw-prose-hr":g.zinc[200],"--tw-prose-quotes":g.zinc[900],"--tw-prose-quote-borders":g.zinc[200],"--tw-prose-captions":g.zinc[500],"--tw-prose-kbd":g.zinc[900],"--tw-prose-kbd-shadows":Xe(g.zinc[900]),"--tw-prose-code":g.zinc[900],"--tw-prose-pre-code":g.zinc[200],"--tw-prose-pre-bg":g.zinc[800],"--tw-prose-th-borders":g.zinc[300],"--tw-prose-td-borders":g.zinc[200],"--tw-prose-invert-body":g.zinc[300],"--tw-prose-invert-headings":g.white,"--tw-prose-invert-lead":g.zinc[400],"--tw-prose-invert-links":g.white,"--tw-prose-invert-bold":g.white,"--tw-prose-invert-counters":g.zinc[400],"--tw-prose-invert-bullets":g.zinc[600],"--tw-prose-invert-hr":g.zinc[700],"--tw-prose-invert-quotes":g.zinc[100],"--tw-prose-invert-quote-borders":g.zinc[700],"--tw-prose-invert-captions":g.zinc[400],"--tw-prose-invert-kbd":g.white,"--tw-prose-invert-kbd-shadows":Xe(g.white),"--tw-prose-invert-code":g.white,"--tw-prose-invert-pre-code":g.zinc[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":g.zinc[600],"--tw-prose-invert-td-borders":g.zinc[700]}},neutral:{css:{"--tw-prose-body":g.neutral[700],"--tw-prose-headings":g.neutral[900],"--tw-prose-lead":g.neutral[600],"--tw-prose-links":g.neutral[900],"--tw-prose-bold":g.neutral[900],"--tw-prose-counters":g.neutral[500],"--tw-prose-bullets":g.neutral[300],"--tw-prose-hr":g.neutral[200],"--tw-prose-quotes":g.neutral[900],"--tw-prose-quote-borders":g.neutral[200],"--tw-prose-captions":g.neutral[500],"--tw-prose-kbd":g.neutral[900],"--tw-prose-kbd-shadows":Xe(g.neutral[900]),"--tw-prose-code":g.neutral[900],"--tw-prose-pre-code":g.neutral[200],"--tw-prose-pre-bg":g.neutral[800],"--tw-prose-th-borders":g.neutral[300],"--tw-prose-td-borders":g.neutral[200],"--tw-prose-invert-body":g.neutral[300],"--tw-prose-invert-headings":g.white,"--tw-prose-invert-lead":g.neutral[400],"--tw-prose-invert-links":g.white,"--tw-prose-invert-bold":g.white,"--tw-prose-invert-counters":g.neutral[400],"--tw-prose-invert-bullets":g.neutral[600],"--tw-prose-invert-hr":g.neutral[700],"--tw-prose-invert-quotes":g.neutral[100],"--tw-prose-invert-quote-borders":g.neutral[700],"--tw-prose-invert-captions":g.neutral[400],"--tw-prose-invert-kbd":g.white,"--tw-prose-invert-kbd-shadows":Xe(g.white),"--tw-prose-invert-code":g.white,"--tw-prose-invert-pre-code":g.neutral[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":g.neutral[600],"--tw-prose-invert-td-borders":g.neutral[700]}},stone:{css:{"--tw-prose-body":g.stone[700],"--tw-prose-headings":g.stone[900],"--tw-prose-lead":g.stone[600],"--tw-prose-links":g.stone[900],"--tw-prose-bold":g.stone[900],"--tw-prose-counters":g.stone[500],"--tw-prose-bullets":g.stone[300],"--tw-prose-hr":g.stone[200],"--tw-prose-quotes":g.stone[900],"--tw-prose-quote-borders":g.stone[200],"--tw-prose-captions":g.stone[500],"--tw-prose-kbd":g.stone[900],"--tw-prose-kbd-shadows":Xe(g.stone[900]),"--tw-prose-code":g.stone[900],"--tw-prose-pre-code":g.stone[200],"--tw-prose-pre-bg":g.stone[800],"--tw-prose-th-borders":g.stone[300],"--tw-prose-td-borders":g.stone[200],"--tw-prose-invert-body":g.stone[300],"--tw-prose-invert-headings":g.white,"--tw-prose-invert-lead":g.stone[400],"--tw-prose-invert-links":g.white,"--tw-prose-invert-bold":g.white,"--tw-prose-invert-counters":g.stone[400],"--tw-prose-invert-bullets":g.stone[600],"--tw-prose-invert-hr":g.stone[700],"--tw-prose-invert-quotes":g.stone[100],"--tw-prose-invert-quote-borders":g.stone[700],"--tw-prose-invert-captions":g.stone[400],"--tw-prose-invert-kbd":g.white,"--tw-prose-invert-kbd-shadows":Xe(g.white),"--tw-prose-invert-code":g.white,"--tw-prose-invert-pre-code":g.stone[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":g.stone[600],"--tw-prose-invert-td-borders":g.stone[700]}},red:{css:{"--tw-prose-links":g.red[600],"--tw-prose-invert-links":g.red[500]}},orange:{css:{"--tw-prose-links":g.orange[600],"--tw-prose-invert-links":g.orange[500]}},amber:{css:{"--tw-prose-links":g.amber[600],"--tw-prose-invert-links":g.amber[500]}},yellow:{css:{"--tw-prose-links":g.yellow[600],"--tw-prose-invert-links":g.yellow[500]}},lime:{css:{"--tw-prose-links":g.lime[600],"--tw-prose-invert-links":g.lime[500]}},green:{css:{"--tw-prose-links":g.green[600],"--tw-prose-invert-links":g.green[500]}},emerald:{css:{"--tw-prose-links":g.emerald[600],"--tw-prose-invert-links":g.emerald[500]}},teal:{css:{"--tw-prose-links":g.teal[600],"--tw-prose-invert-links":g.teal[500]}},cyan:{css:{"--tw-prose-links":g.cyan[600],"--tw-prose-invert-links":g.cyan[500]}},sky:{css:{"--tw-prose-links":g.sky[600],"--tw-prose-invert-links":g.sky[500]}},blue:{css:{"--tw-prose-links":g.blue[600],"--tw-prose-invert-links":g.blue[500]}},indigo:{css:{"--tw-prose-links":g.indigo[600],"--tw-prose-invert-links":g.indigo[500]}},violet:{css:{"--tw-prose-links":g.violet[600],"--tw-prose-invert-links":g.violet[500]}},purple:{css:{"--tw-prose-links":g.purple[600],"--tw-prose-invert-links":g.purple[500]}},fuchsia:{css:{"--tw-prose-links":g.fuchsia[600],"--tw-prose-invert-links":g.fuchsia[500]}},pink:{css:{"--tw-prose-links":g.pink[600],"--tw-prose-invert-links":g.pink[500]}},rose:{css:{"--tw-prose-links":g.rose[600],"--tw-prose-invert-links":g.rose[500]}},invert:{css:{"--tw-prose-body":"var(--tw-prose-invert-body)","--tw-prose-headings":"var(--tw-prose-invert-headings)","--tw-prose-lead":"var(--tw-prose-invert-lead)","--tw-prose-links":"var(--tw-prose-invert-links)","--tw-prose-bold":"var(--tw-prose-invert-bold)","--tw-prose-counters":"var(--tw-prose-invert-counters)","--tw-prose-bullets":"var(--tw-prose-invert-bullets)","--tw-prose-hr":"var(--tw-prose-invert-hr)","--tw-prose-quotes":"var(--tw-prose-invert-quotes)","--tw-prose-quote-borders":"var(--tw-prose-invert-quote-borders)","--tw-prose-captions":"var(--tw-prose-invert-captions)","--tw-prose-kbd":"var(--tw-prose-invert-kbd)","--tw-prose-kbd-shadows":"var(--tw-prose-invert-kbd-shadows)","--tw-prose-code":"var(--tw-prose-invert-code)","--tw-prose-pre-code":"var(--tw-prose-invert-pre-code)","--tw-prose-pre-bg":"var(--tw-prose-invert-pre-bg)","--tw-prose-th-borders":"var(--tw-prose-invert-th-borders)","--tw-prose-td-borders":"var(--tw-prose-invert-td-borders)"}}};var ha={DEFAULT:{css:[{color:"var(--tw-prose-body)",maxWidth:"65ch",p:{},'[class~="lead"]':{color:"var(--tw-prose-lead)"},a:{color:"var(--tw-prose-links)",textDecoration:"underline",fontWeight:"500"},strong:{color:"var(--tw-prose-bold)",fontWeight:"600"},"a strong":{color:"inherit"},"blockquote strong":{color:"inherit"},"thead th strong":{color:"inherit"},ol:{listStyleType:"decimal"},'ol[type="A"]':{listStyleType:"upper-alpha"},'ol[type="a"]':{listStyleType:"lower-alpha"},'ol[type="A" s]':{listStyleType:"upper-alpha"},'ol[type="a" s]':{listStyleType:"lower-alpha"},'ol[type="I"]':{listStyleType:"upper-roman"},'ol[type="i"]':{listStyleType:"lower-roman"},'ol[type="I" s]':{listStyleType:"upper-roman"},'ol[type="i" s]':{listStyleType:"lower-roman"},'ol[type="1"]':{listStyleType:"decimal"},ul:{listStyleType:"disc"},"ol > li::marker":{fontWeight:"400",color:"var(--tw-prose-counters)"},"ul > li::marker":{color:"var(--tw-prose-bullets)"},dt:{color:"var(--tw-prose-headings)",fontWeight:"600"},hr:{borderColor:"var(--tw-prose-hr)",borderTopWidth:1},blockquote:{fontWeight:"500",fontStyle:"italic",color:"var(--tw-prose-quotes)",borderInlineStartWidth:"0.25rem",borderInlineStartColor:"var(--tw-prose-quote-borders)",quotes:'"\\201C""\\201D""\\2018""\\2019"'},"blockquote p:first-of-type::before":{content:"open-quote"},"blockquote p:last-of-type::after":{content:"close-quote"},h1:{color:"var(--tw-prose-headings)",fontWeight:"800"},"h1 strong":{fontWeight:"900",color:"inherit"},h2:{color:"var(--tw-prose-headings)",fontWeight:"700"},"h2 strong":{fontWeight:"800",color:"inherit"},h3:{color:"var(--tw-prose-headings)",fontWeight:"600"},"h3 strong":{fontWeight:"700",color:"inherit"},h4:{color:"var(--tw-prose-headings)",fontWeight:"600"},"h4 strong":{fontWeight:"700",color:"inherit"},img:{},picture:{display:"block"},video:{},kbd:{fontWeight:"500",fontFamily:"inherit",color:"var(--tw-prose-kbd)",boxShadow:"0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%)"},code:{color:"var(--tw-prose-code)",fontWeight:"600"},"code::before":{content:'"`"'},"code::after":{content:'"`"'},"a code":{color:"inherit"},"h1 code":{color:"inherit"},"h2 code":{color:"inherit"},"h3 code":{color:"inherit"},"h4 code":{color:"inherit"},"blockquote code":{color:"inherit"},"thead th code":{color:"inherit"},pre:{color:"var(--tw-prose-pre-code)",backgroundColor:"var(--tw-prose-pre-bg)",overflowX:"auto",fontWeight:"400"},"pre code":{backgroundColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0",fontWeight:"inherit",color:"inherit",fontSize:"inherit",fontFamily:"inherit",lineHeight:"inherit"},"pre code::before":{content:"none"},"pre code::after":{content:"none"},table:{width:"100%",tableLayout:"auto",marginTop:c(32,16),marginBottom:c(32,16)},thead:{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-th-borders)"},"thead th":{color:"var(--tw-prose-headings)",fontWeight:"600",verticalAlign:"bottom"},"tbody tr":{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-td-borders)"},"tbody tr:last-child":{borderBottomWidth:"0"},"tbody td":{verticalAlign:"baseline"},tfoot:{borderTopWidth:"1px",borderTopColor:"var(--tw-prose-th-borders)"},"tfoot td":{verticalAlign:"top"},"th, td":{textAlign:"start"},"figure > *":{},figcaption:{color:"var(--tw-prose-captions)"}},cr.gray.css,...cr.base.css]},...cr},fa="[object Object]";function pa(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function ma(t,e){return function(r){return t(e(r))}}var ga=Function.prototype,Jn=Object.prototype,ei=ga.toString,va=Jn.hasOwnProperty,_a=ei.call(Object),ya=Jn.toString,Ca=ma(Object.getPrototypeOf,Object);function ba(t){return!!t&&typeof t=="object"}function xa(t){if(!ba(t)||ya.call(t)!=fa||pa(t))return!1;var e=Ca(t);if(e===null)return!0;var r=va.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&ei.call(r)==_a}var wa=xa,ur={exports:{}},dr={exports:{}},hr={exports:{}},fr={exports:{}},pr={exports:{}},mr={exports:{}},Fe={},gr={exports:{}};(function(t,e){e.__esModule=!0,e.default=i;function r(o){for(var a=o.toLowerCase(),u="",s=!1,l=0;l<6&&a[l]!==void 0;l++){var d=a.charCodeAt(l),p=d>=97&&d<=102||d>=48&&d<=57;if(s=d===32,!p)break;u+=a[l]}if(u.length!==0){var m=parseInt(u,16),b=m>=55296&&m<=57343;return b||m===0||m>1114111?["�",u.length+(s?1:0)]:[String.fromCodePoint(m),u.length+(s?1:0)]}}var n=/\\/;function i(o){var a=n.test(o);if(!a)return o;for(var u="",s=0;s<o.length;s++){if(o[s]==="\\"){var l=r(o.slice(s+1,s+7));if(l!==void 0){u+=l[0],s+=l[1];continue}if(o[s+1]==="\\"){u+="\\",s++;continue}o.length===s+1&&(u+=o[s]);continue}u+=o[s]}return u}t.exports=e.default})(gr,gr.exports);var ti=gr.exports,vr={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];for(;o.length>0;){var u=o.shift();if(!n[u])return;n=n[u]}return n}t.exports=e.default})(vr,vr.exports);var Sa=vr.exports,_r={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];for(;o.length>0;){var u=o.shift();n[u]||(n[u]={}),n=n[u]}}t.exports=e.default})(_r,_r.exports);var Ta=_r.exports,yr={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var i="",o=n.indexOf("/*"),a=0;o>=0;){i=i+n.slice(a,o);var u=n.indexOf("*/",o+2);if(u<0)return i;a=u+2,o=n.indexOf("/*",a)}return i=i+n.slice(a),i}t.exports=e.default})(yr,yr.exports);var ka=yr.exports;Fe.__esModule=!0,Fe.stripComments=Fe.ensureObject=Fe.getProp=Fe.unesc=void 0;var $a=zt(ti);Fe.unesc=$a.default;var Ea=zt(Sa);Fe.getProp=Ea.default;var Ma=zt(Ta);Fe.ensureObject=Ma.default;var La=zt(ka);Fe.stripComments=La.default;function zt(t){return t&&t.__esModule?t:{default:t}}(function(t,e){e.__esModule=!0,e.default=void 0;var r=Fe;function n(u,s){for(var l=0;l<s.length;l++){var d=s[l];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(u,d.key,d)}}function i(u,s,l){return s&&n(u.prototype,s),l&&n(u,l),u}var o=function u(s,l){if(typeof s!="object"||s===null)return s;var d=new s.constructor;for(var p in s)if(s.hasOwnProperty(p)){var m=s[p],b=typeof m;p==="parent"&&b==="object"?l&&(d[p]=l):m instanceof Array?d[p]=m.map(function(x){return u(x,d)}):d[p]=u(m,d)}return d},a=function(){function u(l){l===void 0&&(l={}),Object.assign(this,l),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var s=u.prototype;return s.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},s.replaceWith=function(){if(this.parent){for(var d in arguments)this.parent.insertBefore(this,arguments[d]);this.remove()}return this},s.next=function(){return this.parent.at(this.parent.index(this)+1)},s.prev=function(){return this.parent.at(this.parent.index(this)-1)},s.clone=function(d){d===void 0&&(d={});var p=o(this);for(var m in d)p[m]=d[m];return p},s.appendToPropertyAndEscape=function(d,p,m){this.raws||(this.raws={});var b=this[d],x=this.raws[d];this[d]=b+p,x||m!==p?this.raws[d]=(x||b)+m:delete this.raws[d]},s.setPropertyAndEscape=function(d,p,m){this.raws||(this.raws={}),this[d]=p,this.raws[d]=m},s.setPropertyWithoutEscape=function(d,p){this[d]=p,this.raws&&delete this.raws[d]},s.isAtPosition=function(d,p){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>d||this.source.end.line<d||this.source.start.line===d&&this.source.start.column>p||this.source.end.line===d&&this.source.end.column<p)},s.stringifyProperty=function(d){return this.raws&&this.raws[d]||this[d]},s.valueToString=function(){return String(this.stringifyProperty("value"))},s.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},i(u,[{key:"rawSpaceBefore",get:function(){var d=this.raws&&this.raws.spaces&&this.raws.spaces.before;return d===void 0&&(d=this.spaces&&this.spaces.before),d||""},set:function(d){(0,r.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=d}},{key:"rawSpaceAfter",get:function(){var d=this.raws&&this.raws.spaces&&this.raws.spaces.after;return d===void 0&&(d=this.spaces.after),d||""},set:function(d){(0,r.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=d}}]),u}();e.default=a,t.exports=e.default})(mr,mr.exports);var it=mr.exports,ue={};ue.__esModule=!0,ue.UNIVERSAL=ue.ATTRIBUTE=ue.CLASS=ue.COMBINATOR=ue.COMMENT=ue.ID=ue.NESTING=ue.PSEUDO=ue.ROOT=ue.SELECTOR=ue.STRING=ue.TAG=void 0;var Da="tag";ue.TAG=Da;var Pa="string";ue.STRING=Pa;var Oa="selector";ue.SELECTOR=Oa;var za="root";ue.ROOT=za;var Ba="pseudo";ue.PSEUDO=Ba;var Ia="nesting";ue.NESTING=Ia;var Fa="id";ue.ID=Fa;var Aa="comment";ue.COMMENT=Aa;var Ra="combinator";ue.COMBINATOR=Ra;var Ha="class";ue.CLASS=Ha;var Na="attribute";ue.ATTRIBUTE=Na;var ja="universal";ue.UNIVERSAL=ja,function(t,e){e.__esModule=!0,e.default=void 0;var r=a(it),n=o(ue);function i(){if(typeof WeakMap!="function")return null;var h=new WeakMap;return i=function(){return h},h}function o(h){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var y=i();if(y&&y.has(h))return y.get(h);var $={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in h)if(Object.prototype.hasOwnProperty.call(h,S)){var R=D?Object.getOwnPropertyDescriptor(h,S):null;R&&(R.get||R.set)?Object.defineProperty($,S,R):$[S]=h[S]}return $.default=h,y&&y.set(h,$),$}function a(h){return h&&h.__esModule?h:{default:h}}function u(h,y){var $;if(typeof Symbol=="undefined"||h[Symbol.iterator]==null){if(Array.isArray(h)||($=s(h))||y&&h&&typeof h.length=="number"){$&&(h=$);var D=0;return function(){return D>=h.length?{done:!0}:{done:!1,value:h[D++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return $=h[Symbol.iterator](),$.next.bind($)}function s(h,y){if(h){if(typeof h=="string")return l(h,y);var $=Object.prototype.toString.call(h).slice(8,-1);if($==="Object"&&h.constructor&&($=h.constructor.name),$==="Map"||$==="Set")return Array.from(h);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return l(h,y)}}function l(h,y){(y==null||y>h.length)&&(y=h.length);for(var $=0,D=new Array(y);$<y;$++)D[$]=h[$];return D}function d(h,y){for(var $=0;$<y.length;$++){var D=y[$];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(h,D.key,D)}}function p(h,y,$){return y&&d(h.prototype,y),$&&d(h,$),h}function m(h,y){h.prototype=Object.create(y.prototype),h.prototype.constructor=h,b(h,y)}function b(h,y){return b=Object.setPrototypeOf||function(D,S){return D.__proto__=S,D},b(h,y)}var x=function(h){m(y,h);function y(D){var S;return S=h.call(this,D)||this,S.nodes||(S.nodes=[]),S}var $=y.prototype;return $.append=function(S){return S.parent=this,this.nodes.push(S),this},$.prepend=function(S){return S.parent=this,this.nodes.unshift(S),this},$.at=function(S){return this.nodes[S]},$.index=function(S){return typeof S=="number"?S:this.nodes.indexOf(S)},$.removeChild=function(S){S=this.index(S),this.at(S).parent=void 0,this.nodes.splice(S,1);var R;for(var E in this.indexes)R=this.indexes[E],R>=S&&(this.indexes[E]=R-1);return this},$.removeAll=function(){for(var S=u(this.nodes),R;!(R=S()).done;){var E=R.value;E.parent=void 0}return this.nodes=[],this},$.empty=function(){return this.removeAll()},$.insertAfter=function(S,R){R.parent=this;var E=this.index(S);this.nodes.splice(E+1,0,R),R.parent=this;var j;for(var Q in this.indexes)j=this.indexes[Q],E<=j&&(this.indexes[Q]=j+1);return this},$.insertBefore=function(S,R){R.parent=this;var E=this.index(S);this.nodes.splice(E,0,R),R.parent=this;var j;for(var Q in this.indexes)j=this.indexes[Q],j<=E&&(this.indexes[Q]=j+1);return this},$._findChildAtPosition=function(S,R){var E=void 0;return this.each(function(j){if(j.atPosition){var Q=j.atPosition(S,R);if(Q)return E=Q,!1}else if(j.isAtPosition(S,R))return E=j,!1}),E},$.atPosition=function(S,R){if(this.isAtPosition(S,R))return this._findChildAtPosition(S,R)||this},$._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},$.each=function(S){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var R=this.lastEach;if(this.indexes[R]=0,!!this.length){for(var E,j;this.indexes[R]<this.length&&(E=this.indexes[R],j=S(this.at(E),E),j!==!1);)this.indexes[R]+=1;if(delete this.indexes[R],j===!1)return!1}},$.walk=function(S){return this.each(function(R,E){var j=S(R,E);if(j!==!1&&R.length&&(j=R.walk(S)),j===!1)return!1})},$.walkAttributes=function(S){var R=this;return this.walk(function(E){if(E.type===n.ATTRIBUTE)return S.call(R,E)})},$.walkClasses=function(S){var R=this;return this.walk(function(E){if(E.type===n.CLASS)return S.call(R,E)})},$.walkCombinators=function(S){var R=this;return this.walk(function(E){if(E.type===n.COMBINATOR)return S.call(R,E)})},$.walkComments=function(S){var R=this;return this.walk(function(E){if(E.type===n.COMMENT)return S.call(R,E)})},$.walkIds=function(S){var R=this;return this.walk(function(E){if(E.type===n.ID)return S.call(R,E)})},$.walkNesting=function(S){var R=this;return this.walk(function(E){if(E.type===n.NESTING)return S.call(R,E)})},$.walkPseudos=function(S){var R=this;return this.walk(function(E){if(E.type===n.PSEUDO)return S.call(R,E)})},$.walkTags=function(S){var R=this;return this.walk(function(E){if(E.type===n.TAG)return S.call(R,E)})},$.walkUniversals=function(S){var R=this;return this.walk(function(E){if(E.type===n.UNIVERSAL)return S.call(R,E)})},$.split=function(S){var R=this,E=[];return this.reduce(function(j,Q,U){var C=S.call(R,Q);return E.push(Q),C?(j.push(E),E=[]):U===R.length-1&&j.push(E),j},[])},$.map=function(S){return this.nodes.map(S)},$.reduce=function(S,R){return this.nodes.reduce(S,R)},$.every=function(S){return this.nodes.every(S)},$.some=function(S){return this.nodes.some(S)},$.filter=function(S){return this.nodes.filter(S)},$.sort=function(S){return this.nodes.sort(S)},$.toString=function(){return this.map(String).join("")},p(y,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),y}(r.default);e.default=x,t.exports=e.default}(pr,pr.exports);var Cr=pr.exports;(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(Cr),n=ue;function i(d){return d&&d.__esModule?d:{default:d}}function o(d,p){for(var m=0;m<p.length;m++){var b=p[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(d,b.key,b)}}function a(d,p,m){return p&&o(d.prototype,p),m&&o(d,m),d}function u(d,p){d.prototype=Object.create(p.prototype),d.prototype.constructor=d,s(d,p)}function s(d,p){return s=Object.setPrototypeOf||function(b,x){return b.__proto__=x,b},s(d,p)}var l=function(d){u(p,d);function p(b){var x;return x=d.call(this,b)||this,x.type=n.ROOT,x}var m=p.prototype;return m.toString=function(){var x=this.reduce(function(h,y){return h.push(String(y)),h},[]).join(",");return this.trailingComma?x+",":x},m.error=function(x,h){return this._error?this._error(x,h):new Error(x)},a(p,[{key:"errorGenerator",set:function(x){this._error=x}}]),p}(r.default);e.default=l,t.exports=e.default})(fr,fr.exports);var ri=fr.exports,br={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(Cr),n=ue;function i(s){return s&&s.__esModule?s:{default:s}}function o(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,a(s,l)}function a(s,l){return a=Object.setPrototypeOf||function(p,m){return p.__proto__=m,p},a(s,l)}var u=function(s){o(l,s);function l(d){var p;return p=s.call(this,d)||this,p.type=n.SELECTOR,p}return l}(r.default);e.default=u,t.exports=e.default})(br,br.exports);var ni=br.exports,xr={exports:{}};/*! https://mths.be/cssesc v3.0.0 by @mathias */var Ga={},Wa=Ga.hasOwnProperty,qa=function(e,r){if(!e)return r;var n={};for(var i in r)n[i]=Wa.call(e,i)?e[i]:r[i];return n},Ua=/[ -,\.\/:-@\[-\^`\{-~]/,Za=/[ -,\.\/:-@\[\]\^`\{-~]/,Ya=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,wr=function t(e,r){r=qa(r,t.options),r.quotes!="single"&&r.quotes!="double"&&(r.quotes="single");for(var n=r.quotes=="double"?'"':"'",i=r.isIdentifier,o=e.charAt(0),a="",u=0,s=e.length;u<s;){var l=e.charAt(u++),d=l.charCodeAt(),p=void 0;if(d<32||d>126){if(d>=55296&&d<=56319&&u<s){var m=e.charCodeAt(u++);(m&64512)==56320?d=((d&1023)<<10)+(m&1023)+65536:u--}p="\\"+d.toString(16).toUpperCase()+" "}else r.escapeEverything?Ua.test(l)?p="\\"+l:p="\\"+d.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?p="\\"+d.toString(16).toUpperCase()+" ":l=="\\"||!i&&(l=='"'&&n==l||l=="'"&&n==l)||i&&Za.test(l)?p="\\"+l:p=l;a+=p}return i&&(/^-[-\d]/.test(a)?a="\\-"+a.slice(1):/\d/.test(o)&&(a="\\3"+o+" "+a.slice(1))),a=a.replace(Ya,function(b,x,h){return x&&x.length%2?b:(x||"")+h}),!i&&r.wrap?n+a+n:a};wr.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},wr.version="3.0.0";var Sr=wr;(function(t,e){e.__esModule=!0,e.default=void 0;var r=a(Sr),n=Fe,i=a(it),o=ue;function a(m){return m&&m.__esModule?m:{default:m}}function u(m,b){for(var x=0;x<b.length;x++){var h=b[x];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(m,h.key,h)}}function s(m,b,x){return b&&u(m.prototype,b),x&&u(m,x),m}function l(m,b){m.prototype=Object.create(b.prototype),m.prototype.constructor=m,d(m,b)}function d(m,b){return d=Object.setPrototypeOf||function(h,y){return h.__proto__=y,h},d(m,b)}var p=function(m){l(b,m);function b(h){var y;return y=m.call(this,h)||this,y.type=o.CLASS,y._constructed=!0,y}var x=b.prototype;return x.valueToString=function(){return"."+m.prototype.valueToString.call(this)},s(b,[{key:"value",get:function(){return this._value},set:function(y){if(this._constructed){var $=(0,r.default)(y,{isIdentifier:!0});$!==y?((0,n.ensureObject)(this,"raws"),this.raws.value=$):this.raws&&delete this.raws.value}this._value=y}}]),b}(i.default);e.default=p,t.exports=e.default})(xr,xr.exports);var ii=xr.exports,Tr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(it),n=ue;function i(s){return s&&s.__esModule?s:{default:s}}function o(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,a(s,l)}function a(s,l){return a=Object.setPrototypeOf||function(p,m){return p.__proto__=m,p},a(s,l)}var u=function(s){o(l,s);function l(d){var p;return p=s.call(this,d)||this,p.type=n.COMMENT,p}return l}(r.default);e.default=u,t.exports=e.default})(Tr,Tr.exports);var si=Tr.exports,kr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(it),n=ue;function i(s){return s&&s.__esModule?s:{default:s}}function o(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,a(s,l)}function a(s,l){return a=Object.setPrototypeOf||function(p,m){return p.__proto__=m,p},a(s,l)}var u=function(s){o(l,s);function l(p){var m;return m=s.call(this,p)||this,m.type=n.ID,m}var d=l.prototype;return d.valueToString=function(){return"#"+s.prototype.valueToString.call(this)},l}(r.default);e.default=u,t.exports=e.default})(kr,kr.exports);var ai=kr.exports,$r={exports:{}},Er={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=o(Sr),n=Fe,i=o(it);function o(p){return p&&p.__esModule?p:{default:p}}function a(p,m){for(var b=0;b<m.length;b++){var x=m[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(p,x.key,x)}}function u(p,m,b){return m&&a(p.prototype,m),b&&a(p,b),p}function s(p,m){p.prototype=Object.create(m.prototype),p.prototype.constructor=p,l(p,m)}function l(p,m){return l=Object.setPrototypeOf||function(x,h){return x.__proto__=h,x},l(p,m)}var d=function(p){s(m,p);function m(){return p.apply(this,arguments)||this}var b=m.prototype;return b.qualifiedName=function(h){return this.namespace?this.namespaceString+"|"+h:h},b.valueToString=function(){return this.qualifiedName(p.prototype.valueToString.call(this))},u(m,[{key:"namespace",get:function(){return this._namespace},set:function(h){if(h===!0||h==="*"||h==="&"){this._namespace=h,this.raws&&delete this.raws.namespace;return}var y=(0,r.default)(h,{isIdentifier:!0});this._namespace=h,y!==h?((0,n.ensureObject)(this,"raws"),this.raws.namespace=y):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(h){this.namespace=h}},{key:"namespaceString",get:function(){if(this.namespace){var h=this.stringifyProperty("namespace");return h===!0?"":h}else return""}}]),m}(i.default);e.default=d,t.exports=e.default})(Er,Er.exports);var Mr=Er.exports;(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(Mr),n=ue;function i(s){return s&&s.__esModule?s:{default:s}}function o(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,a(s,l)}function a(s,l){return a=Object.setPrototypeOf||function(p,m){return p.__proto__=m,p},a(s,l)}var u=function(s){o(l,s);function l(d){var p;return p=s.call(this,d)||this,p.type=n.TAG,p}return l}(r.default);e.default=u,t.exports=e.default})($r,$r.exports);var oi=$r.exports,Lr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(it),n=ue;function i(s){return s&&s.__esModule?s:{default:s}}function o(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,a(s,l)}function a(s,l){return a=Object.setPrototypeOf||function(p,m){return p.__proto__=m,p},a(s,l)}var u=function(s){o(l,s);function l(d){var p;return p=s.call(this,d)||this,p.type=n.STRING,p}return l}(r.default);e.default=u,t.exports=e.default})(Lr,Lr.exports);var li=Lr.exports,Dr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(Cr),n=ue;function i(s){return s&&s.__esModule?s:{default:s}}function o(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,a(s,l)}function a(s,l){return a=Object.setPrototypeOf||function(p,m){return p.__proto__=m,p},a(s,l)}var u=function(s){o(l,s);function l(p){var m;return m=s.call(this,p)||this,m.type=n.PSEUDO,m}var d=l.prototype;return d.toString=function(){var m=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),m,this.rawSpaceAfter].join("")},l}(r.default);e.default=u,t.exports=e.default})(Dr,Dr.exports);var ci=Dr.exports,Pr={},Xa=Va;function Va(t,e){if(Or("noDeprecation"))return t;var r=!1;function n(){if(!r){if(Or("throwDeprecation"))throw new Error(e);Or("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}return n}function Or(t){try{if(!ot.localStorage)return!1}catch{return!1}var e=ot.localStorage[t];return e==null?!1:String(e).toLowerCase()==="true"}(function(t){t.__esModule=!0,t.unescapeValue=y,t.default=void 0;var e=a(Sr),r=a(ti),n=a(Mr),i=ue,o;function a(E){return E&&E.__esModule?E:{default:E}}function u(E,j){for(var Q=0;Q<j.length;Q++){var U=j[Q];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(E,U.key,U)}}function s(E,j,Q){return j&&u(E.prototype,j),Q&&u(E,Q),E}function l(E,j){E.prototype=Object.create(j.prototype),E.prototype.constructor=E,d(E,j)}function d(E,j){return d=Object.setPrototypeOf||function(U,C){return U.__proto__=C,U},d(E,j)}var p=Xa,m=/^('|")([^]*)\1$/,b=p(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),x=p(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),h=p(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function y(E){var j=!1,Q=null,U=E,C=U.match(m);return C&&(Q=C[1],U=C[2]),U=(0,r.default)(U),U!==E&&(j=!0),{deprecatedUsage:j,unescaped:U,quoteMark:Q}}function $(E){if(E.quoteMark!==void 0||E.value===void 0)return E;h();var j=y(E.value),Q=j.quoteMark,U=j.unescaped;return E.raws||(E.raws={}),E.raws.value===void 0&&(E.raws.value=E.value),E.value=U,E.quoteMark=Q,E}var D=function(E){l(j,E);function j(U){var C;return U===void 0&&(U={}),C=E.call(this,$(U))||this,C.type=i.ATTRIBUTE,C.raws=C.raws||{},Object.defineProperty(C.raws,"unquoted",{get:p(function(){return C.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:p(function(){return C.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),C._constructed=!0,C}var Q=j.prototype;return Q.getQuotedValue=function(C){C===void 0&&(C={});var z=this._determineQuoteMark(C),q=S[z],L=(0,e.default)(this._value,q);return L},Q._determineQuoteMark=function(C){return C.smart?this.smartQuoteMark(C):this.preferredQuoteMark(C)},Q.setValue=function(C,z){z===void 0&&(z={}),this._value=C,this._quoteMark=this._determineQuoteMark(z),this._syncRawValue()},Q.smartQuoteMark=function(C){var z=this.value,q=z.replace(/[^']/g,"").length,L=z.replace(/[^"]/g,"").length;if(q+L===0){var Y=(0,e.default)(z,{isIdentifier:!0});if(Y===z)return j.NO_QUOTE;var X=this.preferredQuoteMark(C);if(X===j.NO_QUOTE){var I=this.quoteMark||C.quoteMark||j.DOUBLE_QUOTE,T=S[I],P=(0,e.default)(z,T);if(P.length<Y.length)return I}return X}else return L===q?this.preferredQuoteMark(C):L<q?j.DOUBLE_QUOTE:j.SINGLE_QUOTE},Q.preferredQuoteMark=function(C){var z=C.preferCurrentQuoteMark?this.quoteMark:C.quoteMark;return z===void 0&&(z=C.preferCurrentQuoteMark?C.quoteMark:this.quoteMark),z===void 0&&(z=j.DOUBLE_QUOTE),z},Q._syncRawValue=function(){var C=(0,e.default)(this._value,S[this.quoteMark]);C===this._value?this.raws&&delete this.raws.value:this.raws.value=C},Q._handleEscapes=function(C,z){if(this._constructed){var q=(0,e.default)(z,{isIdentifier:!0});q!==z?this.raws[C]=q:delete this.raws[C]}},Q._spacesFor=function(C){var z={before:"",after:""},q=this.spaces[C]||{},L=this.raws.spaces&&this.raws.spaces[C]||{};return Object.assign(z,q,L)},Q._stringFor=function(C,z,q){z===void 0&&(z=C),q===void 0&&(q=R);var L=this._spacesFor(z);return q(this.stringifyProperty(C),L)},Q.offsetOf=function(C){var z=1,q=this._spacesFor("attribute");if(z+=q.before.length,C==="namespace"||C==="ns")return this.namespace?z:-1;if(C==="attributeNS"||(z+=this.namespaceString.length,this.namespace&&(z+=1),C==="attribute"))return z;z+=this.stringifyProperty("attribute").length,z+=q.after.length;var L=this._spacesFor("operator");z+=L.before.length;var Y=this.stringifyProperty("operator");if(C==="operator")return Y?z:-1;z+=Y.length,z+=L.after.length;var X=this._spacesFor("value");z+=X.before.length;var I=this.stringifyProperty("value");if(C==="value")return I?z:-1;z+=I.length,z+=X.after.length;var T=this._spacesFor("insensitive");return z+=T.before.length,C==="insensitive"&&this.insensitive?z:-1},Q.toString=function(){var C=this,z=[this.rawSpaceBefore,"["];return z.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(z.push(this._stringFor("operator")),z.push(this._stringFor("value")),z.push(this._stringFor("insensitiveFlag","insensitive",function(q,L){return q.length>0&&!C.quoted&&L.before.length===0&&!(C.spaces.value&&C.spaces.value.after)&&(L.before=" "),R(q,L)}))),z.push("]"),z.push(this.rawSpaceAfter),z.join("")},s(j,[{key:"quoted",get:function(){var C=this.quoteMark;return C==="'"||C==='"'},set:function(C){x()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(C){if(!this._constructed){this._quoteMark=C;return}this._quoteMark!==C&&(this._quoteMark=C,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(C){if(this._constructed){var z=y(C),q=z.deprecatedUsage,L=z.unescaped,Y=z.quoteMark;if(q&&b(),L===this._value&&Y===this._quoteMark)return;this._value=L,this._quoteMark=Y,this._syncRawValue()}else this._value=C}},{key:"attribute",get:function(){return this._attribute},set:function(C){this._handleEscapes("attribute",C),this._attribute=C}}]),j}(n.default);t.default=D,D.NO_QUOTE=null,D.SINGLE_QUOTE="'",D.DOUBLE_QUOTE='"';var S=(o={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},o[null]={isIdentifier:!0},o);function R(E,j){return""+j.before+E+j.after}})(Pr);var zr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(Mr),n=ue;function i(s){return s&&s.__esModule?s:{default:s}}function o(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,a(s,l)}function a(s,l){return a=Object.setPrototypeOf||function(p,m){return p.__proto__=m,p},a(s,l)}var u=function(s){o(l,s);function l(d){var p;return p=s.call(this,d)||this,p.type=n.UNIVERSAL,p.value="*",p}return l}(r.default);e.default=u,t.exports=e.default})(zr,zr.exports);var ui=zr.exports,Br={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(it),n=ue;function i(s){return s&&s.__esModule?s:{default:s}}function o(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,a(s,l)}function a(s,l){return a=Object.setPrototypeOf||function(p,m){return p.__proto__=m,p},a(s,l)}var u=function(s){o(l,s);function l(d){var p;return p=s.call(this,d)||this,p.type=n.COMBINATOR,p}return l}(r.default);e.default=u,t.exports=e.default})(Br,Br.exports);var di=Br.exports,Ir={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(it),n=ue;function i(s){return s&&s.__esModule?s:{default:s}}function o(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,a(s,l)}function a(s,l){return a=Object.setPrototypeOf||function(p,m){return p.__proto__=m,p},a(s,l)}var u=function(s){o(l,s);function l(d){var p;return p=s.call(this,d)||this,p.type=n.NESTING,p.value="&",p}return l}(r.default);e.default=u,t.exports=e.default})(Ir,Ir.exports);var hi=Ir.exports,Fr={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){return n.sort(function(i,o){return i-o})}t.exports=e.default})(Fr,Fr.exports);var Qa=Fr.exports,fi={},ee={};ee.__esModule=!0,ee.combinator=ee.word=ee.comment=ee.str=ee.tab=ee.newline=ee.feed=ee.cr=ee.backslash=ee.bang=ee.slash=ee.doubleQuote=ee.singleQuote=ee.space=ee.greaterThan=ee.pipe=ee.equals=ee.plus=ee.caret=ee.tilde=ee.dollar=ee.closeSquare=ee.openSquare=ee.closeParenthesis=ee.openParenthesis=ee.semicolon=ee.colon=ee.comma=ee.at=ee.asterisk=ee.ampersand=void 0;var Ka=38;ee.ampersand=Ka;var Ja=42;ee.asterisk=Ja;var eo=64;ee.at=eo;var to=44;ee.comma=to;var ro=58;ee.colon=ro;var no=59;ee.semicolon=no;var io=40;ee.openParenthesis=io;var so=41;ee.closeParenthesis=so;var ao=91;ee.openSquare=ao;var oo=93;ee.closeSquare=oo;var lo=36;ee.dollar=lo;var co=126;ee.tilde=co;var uo=94;ee.caret=uo;var ho=43;ee.plus=ho;var fo=61;ee.equals=fo;var po=124;ee.pipe=po;var mo=62;ee.greaterThan=mo;var go=32;ee.space=go;var pi=39;ee.singleQuote=pi;var vo=34;ee.doubleQuote=vo;var _o=47;ee.slash=_o;var yo=33;ee.bang=yo;var Co=92;ee.backslash=Co;var bo=13;ee.cr=bo;var xo=12;ee.feed=xo;var wo=10;ee.newline=wo;var So=9;ee.tab=So;var To=pi;ee.str=To;var ko=-1;ee.comment=ko;var $o=-2;ee.word=$o;var Eo=-3;ee.combinator=Eo,function(t){t.__esModule=!0,t.default=x,t.FIELDS=void 0;var e=o(ee),r,n;function i(){if(typeof WeakMap!="function")return null;var h=new WeakMap;return i=function(){return h},h}function o(h){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var y=i();if(y&&y.has(h))return y.get(h);var $={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in h)if(Object.prototype.hasOwnProperty.call(h,S)){var R=D?Object.getOwnPropertyDescriptor(h,S):null;R&&(R.get||R.set)?Object.defineProperty($,S,R):$[S]=h[S]}return $.default=h,y&&y.set(h,$),$}for(var a=(r={},r[e.tab]=!0,r[e.newline]=!0,r[e.cr]=!0,r[e.feed]=!0,r),u=(n={},n[e.space]=!0,n[e.tab]=!0,n[e.newline]=!0,n[e.cr]=!0,n[e.feed]=!0,n[e.ampersand]=!0,n[e.asterisk]=!0,n[e.bang]=!0,n[e.comma]=!0,n[e.colon]=!0,n[e.semicolon]=!0,n[e.openParenthesis]=!0,n[e.closeParenthesis]=!0,n[e.openSquare]=!0,n[e.closeSquare]=!0,n[e.singleQuote]=!0,n[e.doubleQuote]=!0,n[e.plus]=!0,n[e.pipe]=!0,n[e.tilde]=!0,n[e.greaterThan]=!0,n[e.equals]=!0,n[e.dollar]=!0,n[e.caret]=!0,n[e.slash]=!0,n),s={},l="0123456789abcdefABCDEF",d=0;d<l.length;d++)s[l.charCodeAt(d)]=!0;function p(h,y){var $=y,D;do{if(D=h.charCodeAt($),u[D])return $-1;D===e.backslash?$=m(h,$)+1:$++}while($<h.length);return $-1}function m(h,y){var $=y,D=h.charCodeAt($+1);if(!a[D])if(s[D]){var S=0;do $++,S++,D=h.charCodeAt($+1);while(s[D]&&S<6);S<6&&D===e.space&&$++}else $++;return $}var b={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};t.FIELDS=b;function x(h){var y=[],$=h.css.valueOf(),D=$,S=D.length,R=-1,E=1,j=0,Q=0,U,C,z,q,L,Y,X,I,T,P,N,ne,_;function Z(F,B){if(h.safe)$+=B,T=$.length-1;else throw h.error("Unclosed "+F,E,j-R,j)}for(;j<S;){switch(U=$.charCodeAt(j),U===e.newline&&(R=j,E+=1),U){case e.space:case e.tab:case e.newline:case e.cr:case e.feed:T=j;do T+=1,U=$.charCodeAt(T),U===e.newline&&(R=T,E+=1);while(U===e.space||U===e.newline||U===e.tab||U===e.cr||U===e.feed);_=e.space,q=E,z=T-R-1,Q=T;break;case e.plus:case e.greaterThan:case e.tilde:case e.pipe:T=j;do T+=1,U=$.charCodeAt(T);while(U===e.plus||U===e.greaterThan||U===e.tilde||U===e.pipe);_=e.combinator,q=E,z=j-R,Q=T;break;case e.asterisk:case e.ampersand:case e.bang:case e.comma:case e.equals:case e.dollar:case e.caret:case e.openSquare:case e.closeSquare:case e.colon:case e.semicolon:case e.openParenthesis:case e.closeParenthesis:T=j,_=U,q=E,z=j-R,Q=T+1;break;case e.singleQuote:case e.doubleQuote:ne=U===e.singleQuote?"'":'"',T=j;do for(L=!1,T=$.indexOf(ne,T+1),T===-1&&Z("quote",ne),Y=T;$.charCodeAt(Y-1)===e.backslash;)Y-=1,L=!L;while(L);_=e.str,q=E,z=j-R,Q=T+1;break;default:U===e.slash&&$.charCodeAt(j+1)===e.asterisk?(T=$.indexOf("*/",j+2)+1,T===0&&Z("comment","*/"),C=$.slice(j,T+1),I=C.split(`
3
- `),X=I.length-1,X>0?(P=E+X,N=T-I[X].length):(P=E,N=R),_=e.comment,E=P,q=P,z=T-N):U===e.slash?(T=j,_=U,q=E,z=j-R,Q=T+1):(T=p($,j),_=e.word,q=E,z=T-R),Q=T+1;break}y.push([_,E,j-R,q,z,j,Q]),N&&(R=N,N=null),j=Q}return y}}(fi),function(t,e){e.__esModule=!0,e.default=void 0;var r=Q(ri),n=Q(ni),i=Q(ii),o=Q(si),a=Q(ai),u=Q(oi),s=Q(li),l=Q(ci),d=j(Pr),p=Q(ui),m=Q(di),b=Q(hi),x=Q(Qa),h=j(fi),y=j(ee),$=j(ue),D=Fe,S,R;function E(){if(typeof WeakMap!="function")return null;var Z=new WeakMap;return E=function(){return Z},Z}function j(Z){if(Z&&Z.__esModule)return Z;if(Z===null||typeof Z!="object"&&typeof Z!="function")return{default:Z};var F=E();if(F&&F.has(Z))return F.get(Z);var B={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var W in Z)if(Object.prototype.hasOwnProperty.call(Z,W)){var V=w?Object.getOwnPropertyDescriptor(Z,W):null;V&&(V.get||V.set)?Object.defineProperty(B,W,V):B[W]=Z[W]}return B.default=Z,F&&F.set(Z,B),B}function Q(Z){return Z&&Z.__esModule?Z:{default:Z}}function U(Z,F){for(var B=0;B<F.length;B++){var w=F[B];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(Z,w.key,w)}}function C(Z,F,B){return F&&U(Z.prototype,F),B&&U(Z,B),Z}var z=(S={},S[y.space]=!0,S[y.cr]=!0,S[y.feed]=!0,S[y.newline]=!0,S[y.tab]=!0,S),q=Object.assign({},z,(R={},R[y.comment]=!0,R));function L(Z){return{line:Z[h.FIELDS.START_LINE],column:Z[h.FIELDS.START_COL]}}function Y(Z){return{line:Z[h.FIELDS.END_LINE],column:Z[h.FIELDS.END_COL]}}function X(Z,F,B,w){return{start:{line:Z,column:F},end:{line:B,column:w}}}function I(Z){return X(Z[h.FIELDS.START_LINE],Z[h.FIELDS.START_COL],Z[h.FIELDS.END_LINE],Z[h.FIELDS.END_COL])}function T(Z,F){if(Z)return X(Z[h.FIELDS.START_LINE],Z[h.FIELDS.START_COL],F[h.FIELDS.END_LINE],F[h.FIELDS.END_COL])}function P(Z,F){var B=Z[F];if(typeof B=="string")return B.indexOf("\\")!==-1&&((0,D.ensureObject)(Z,"raws"),Z[F]=(0,D.unesc)(B),Z.raws[F]===void 0&&(Z.raws[F]=B)),Z}function N(Z,F){for(var B=-1,w=[];(B=Z.indexOf(F,B+1))!==-1;)w.push(B);return w}function ne(){var Z=Array.prototype.concat.apply([],arguments);return Z.filter(function(F,B){return B===Z.indexOf(F)})}var _=function(){function Z(B,w){w===void 0&&(w={}),this.rule=B,this.options=Object.assign({lossy:!1,safe:!1},w),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,h.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var W=T(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new r.default({source:W}),this.root.errorGenerator=this._errorGenerator();var V=new n.default({source:{start:{line:1,column:1}}});this.root.append(V),this.current=V,this.loop()}var F=Z.prototype;return F._errorGenerator=function(){var w=this;return function(W,V){return typeof w.rule=="string"?new Error(W):w.rule.error(W,V)}},F.attribute=function(){var w=[],W=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[h.FIELDS.TYPE]!==y.closeSquare;)w.push(this.currToken),this.position++;if(this.currToken[h.FIELDS.TYPE]!==y.closeSquare)return this.expected("closing square bracket",this.currToken[h.FIELDS.START_POS]);var V=w.length,M={source:X(W[1],W[2],this.currToken[3],this.currToken[4]),sourceIndex:W[h.FIELDS.START_POS]};if(V===1&&!~[y.word].indexOf(w[0][h.FIELDS.TYPE]))return this.expected("attribute",w[0][h.FIELDS.START_POS]);for(var re=0,ce="",le="",ie=null,he=!1;re<V;){var Se=w[re],oe=this.content(Se),ye=w[re+1];switch(Se[h.FIELDS.TYPE]){case y.space:if(he=!0,this.options.lossy)break;if(ie){(0,D.ensureObject)(M,"spaces",ie);var Ae=M.spaces[ie].after||"";M.spaces[ie].after=Ae+oe;var Be=(0,D.getProp)(M,"raws","spaces",ie,"after")||null;Be&&(M.raws.spaces[ie].after=Be+oe)}else ce=ce+oe,le=le+oe;break;case y.asterisk:if(ye[h.FIELDS.TYPE]===y.equals)M.operator=oe,ie="operator";else if((!M.namespace||ie==="namespace"&&!he)&&ye){ce&&((0,D.ensureObject)(M,"spaces","attribute"),M.spaces.attribute.before=ce,ce=""),le&&((0,D.ensureObject)(M,"raws","spaces","attribute"),M.raws.spaces.attribute.before=ce,le=""),M.namespace=(M.namespace||"")+oe;var $e=(0,D.getProp)(M,"raws","namespace")||null;$e&&(M.raws.namespace+=oe),ie="namespace"}he=!1;break;case y.dollar:if(ie==="value"){var Te=(0,D.getProp)(M,"raws","value");M.value+="$",Te&&(M.raws.value=Te+"$");break}case y.caret:ye[h.FIELDS.TYPE]===y.equals&&(M.operator=oe,ie="operator"),he=!1;break;case y.combinator:if(oe==="~"&&ye[h.FIELDS.TYPE]===y.equals&&(M.operator=oe,ie="operator"),oe!=="|"){he=!1;break}ye[h.FIELDS.TYPE]===y.equals?(M.operator=oe,ie="operator"):!M.namespace&&!M.attribute&&(M.namespace=!0),he=!1;break;case y.word:if(ye&&this.content(ye)==="|"&&w[re+2]&&w[re+2][h.FIELDS.TYPE]!==y.equals&&!M.operator&&!M.namespace)M.namespace=oe,ie="namespace";else if(!M.attribute||ie==="attribute"&&!he){ce&&((0,D.ensureObject)(M,"spaces","attribute"),M.spaces.attribute.before=ce,ce=""),le&&((0,D.ensureObject)(M,"raws","spaces","attribute"),M.raws.spaces.attribute.before=le,le=""),M.attribute=(M.attribute||"")+oe;var Me=(0,D.getProp)(M,"raws","attribute")||null;Me&&(M.raws.attribute+=oe),ie="attribute"}else if(!M.value&&M.value!==""||ie==="value"&&!he){var Ee=(0,D.unesc)(oe),Le=(0,D.getProp)(M,"raws","value")||"",De=M.value||"";M.value=De+Ee,M.quoteMark=null,(Ee!==oe||Le)&&((0,D.ensureObject)(M,"raws"),M.raws.value=(Le||De)+oe),ie="value"}else{var et=oe==="i"||oe==="I";(M.value||M.value==="")&&(M.quoteMark||he)?(M.insensitive=et,(!et||oe==="I")&&((0,D.ensureObject)(M,"raws"),M.raws.insensitiveFlag=oe),ie="insensitive",ce&&((0,D.ensureObject)(M,"spaces","insensitive"),M.spaces.insensitive.before=ce,ce=""),le&&((0,D.ensureObject)(M,"raws","spaces","insensitive"),M.raws.spaces.insensitive.before=le,le="")):(M.value||M.value==="")&&(ie="value",M.value+=oe,M.raws.value&&(M.raws.value+=oe))}he=!1;break;case y.str:if(!M.attribute||!M.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:Se[h.FIELDS.START_POS]});var Qe=(0,d.unescapeValue)(oe),lt=Qe.unescaped,Tt=Qe.quoteMark;M.value=lt,M.quoteMark=Tt,ie="value",(0,D.ensureObject)(M,"raws"),M.raws.value=oe,he=!1;break;case y.equals:if(!M.attribute)return this.expected("attribute",Se[h.FIELDS.START_POS],oe);if(M.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:Se[h.FIELDS.START_POS]});M.operator=M.operator?M.operator+oe:oe,ie="operator",he=!1;break;case y.comment:if(ie)if(he||ye&&ye[h.FIELDS.TYPE]===y.space||ie==="insensitive"){var Ze=(0,D.getProp)(M,"spaces",ie,"after")||"",pt=(0,D.getProp)(M,"raws","spaces",ie,"after")||Ze;(0,D.ensureObject)(M,"raws","spaces",ie),M.raws.spaces[ie].after=pt+oe}else{var jt=M[ie]||"",Gt=(0,D.getProp)(M,"raws",ie)||jt;(0,D.ensureObject)(M,"raws"),M.raws[ie]=Gt+oe}else le=le+oe;break;default:return this.error('Unexpected "'+oe+'" found.',{index:Se[h.FIELDS.START_POS]})}re++}P(M,"attribute"),P(M,"namespace"),this.newNode(new d.default(M)),this.position++},F.parseWhitespaceEquivalentTokens=function(w){w<0&&(w=this.tokens.length);var W=this.position,V=[],M="",re=void 0;do if(z[this.currToken[h.FIELDS.TYPE]])this.options.lossy||(M+=this.content());else if(this.currToken[h.FIELDS.TYPE]===y.comment){var ce={};M&&(ce.before=M,M=""),re=new o.default({value:this.content(),source:I(this.currToken),sourceIndex:this.currToken[h.FIELDS.START_POS],spaces:ce}),V.push(re)}while(++this.position<w);if(M){if(re)re.spaces.after=M;else if(!this.options.lossy){var le=this.tokens[W],ie=this.tokens[this.position-1];V.push(new s.default({value:"",source:X(le[h.FIELDS.START_LINE],le[h.FIELDS.START_COL],ie[h.FIELDS.END_LINE],ie[h.FIELDS.END_COL]),sourceIndex:le[h.FIELDS.START_POS],spaces:{before:M,after:""}}))}}return V},F.convertWhitespaceNodesToSpace=function(w,W){var V=this;W===void 0&&(W=!1);var M="",re="";w.forEach(function(le){var ie=V.lossySpace(le.spaces.before,W),he=V.lossySpace(le.rawSpaceBefore,W);M+=ie+V.lossySpace(le.spaces.after,W&&ie.length===0),re+=ie+le.value+V.lossySpace(le.rawSpaceAfter,W&&he.length===0)}),re===M&&(re=void 0);var ce={space:M,rawSpace:re};return ce},F.isNamedCombinator=function(w){return w===void 0&&(w=this.position),this.tokens[w+0]&&this.tokens[w+0][h.FIELDS.TYPE]===y.slash&&this.tokens[w+1]&&this.tokens[w+1][h.FIELDS.TYPE]===y.word&&this.tokens[w+2]&&this.tokens[w+2][h.FIELDS.TYPE]===y.slash},F.namedCombinator=function(){if(this.isNamedCombinator()){var w=this.content(this.tokens[this.position+1]),W=(0,D.unesc)(w).toLowerCase(),V={};W!==w&&(V.value="/"+w+"/");var M=new m.default({value:"/"+W+"/",source:X(this.currToken[h.FIELDS.START_LINE],this.currToken[h.FIELDS.START_COL],this.tokens[this.position+2][h.FIELDS.END_LINE],this.tokens[this.position+2][h.FIELDS.END_COL]),sourceIndex:this.currToken[h.FIELDS.START_POS],raws:V});return this.position=this.position+3,M}else this.unexpected()},F.combinator=function(){var w=this;if(this.content()==="|")return this.namespace();var W=this.locateNextMeaningfulToken(this.position);if(W<0||this.tokens[W][h.FIELDS.TYPE]===y.comma){var V=this.parseWhitespaceEquivalentTokens(W);if(V.length>0){var M=this.current.last;if(M){var re=this.convertWhitespaceNodesToSpace(V),ce=re.space,le=re.rawSpace;le!==void 0&&(M.rawSpaceAfter+=le),M.spaces.after+=ce}else V.forEach(function(Le){return w.newNode(Le)})}return}var ie=this.currToken,he=void 0;W>this.position&&(he=this.parseWhitespaceEquivalentTokens(W));var Se;if(this.isNamedCombinator()?Se=this.namedCombinator():this.currToken[h.FIELDS.TYPE]===y.combinator?(Se=new m.default({value:this.content(),source:I(this.currToken),sourceIndex:this.currToken[h.FIELDS.START_POS]}),this.position++):z[this.currToken[h.FIELDS.TYPE]]||he||this.unexpected(),Se){if(he){var oe=this.convertWhitespaceNodesToSpace(he),ye=oe.space,Ae=oe.rawSpace;Se.spaces.before=ye,Se.rawSpaceBefore=Ae}}else{var Be=this.convertWhitespaceNodesToSpace(he,!0),$e=Be.space,Te=Be.rawSpace;Te||(Te=$e);var Me={},Ee={spaces:{}};$e.endsWith(" ")&&Te.endsWith(" ")?(Me.before=$e.slice(0,$e.length-1),Ee.spaces.before=Te.slice(0,Te.length-1)):$e.startsWith(" ")&&Te.startsWith(" ")?(Me.after=$e.slice(1),Ee.spaces.after=Te.slice(1)):Ee.value=Te,Se=new m.default({value:" ",source:T(ie,this.tokens[this.position-1]),sourceIndex:ie[h.FIELDS.START_POS],spaces:Me,raws:Ee})}return this.currToken&&this.currToken[h.FIELDS.TYPE]===y.space&&(Se.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(Se)},F.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var w=new n.default({source:{start:L(this.tokens[this.position+1])}});this.current.parent.append(w),this.current=w,this.position++},F.comment=function(){var w=this.currToken;this.newNode(new o.default({value:this.content(),source:I(w),sourceIndex:w[h.FIELDS.START_POS]})),this.position++},F.error=function(w,W){throw this.root.error(w,W)},F.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[h.FIELDS.START_POS]})},F.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[h.FIELDS.START_POS])},F.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[h.FIELDS.START_POS])},F.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[h.FIELDS.START_POS])},F.namespace=function(){var w=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[h.FIELDS.TYPE]===y.word)return this.position++,this.word(w);if(this.nextToken[h.FIELDS.TYPE]===y.asterisk)return this.position++,this.universal(w)},F.nesting=function(){if(this.nextToken){var w=this.content(this.nextToken);if(w==="|"){this.position++;return}}var W=this.currToken;this.newNode(new b.default({value:this.content(),source:I(W),sourceIndex:W[h.FIELDS.START_POS]})),this.position++},F.parentheses=function(){var w=this.current.last,W=1;if(this.position++,w&&w.type===$.PSEUDO){var V=new n.default({source:{start:L(this.tokens[this.position-1])}}),M=this.current;for(w.append(V),this.current=V;this.position<this.tokens.length&&W;)this.currToken[h.FIELDS.TYPE]===y.openParenthesis&&W++,this.currToken[h.FIELDS.TYPE]===y.closeParenthesis&&W--,W?this.parse():(this.current.source.end=Y(this.currToken),this.current.parent.source.end=Y(this.currToken),this.position++);this.current=M}else{for(var re=this.currToken,ce="(",le;this.position<this.tokens.length&&W;)this.currToken[h.FIELDS.TYPE]===y.openParenthesis&&W++,this.currToken[h.FIELDS.TYPE]===y.closeParenthesis&&W--,le=this.currToken,ce+=this.parseParenthesisToken(this.currToken),this.position++;w?w.appendToPropertyAndEscape("value",ce,ce):this.newNode(new s.default({value:ce,source:X(re[h.FIELDS.START_LINE],re[h.FIELDS.START_COL],le[h.FIELDS.END_LINE],le[h.FIELDS.END_COL]),sourceIndex:re[h.FIELDS.START_POS]}))}if(W)return this.expected("closing parenthesis",this.currToken[h.FIELDS.START_POS])},F.pseudo=function(){for(var w=this,W="",V=this.currToken;this.currToken&&this.currToken[h.FIELDS.TYPE]===y.colon;)W+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[h.FIELDS.TYPE]===y.word)this.splitWord(!1,function(M,re){W+=M,w.newNode(new l.default({value:W,source:T(V,w.currToken),sourceIndex:V[h.FIELDS.START_POS]})),re>1&&w.nextToken&&w.nextToken[h.FIELDS.TYPE]===y.openParenthesis&&w.error("Misplaced parenthesis.",{index:w.nextToken[h.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[h.FIELDS.START_POS])},F.space=function(){var w=this.content();this.position===0||this.prevToken[h.FIELDS.TYPE]===y.comma||this.prevToken[h.FIELDS.TYPE]===y.openParenthesis||this.current.nodes.every(function(W){return W.type==="comment"})?(this.spaces=this.optionalSpace(w),this.position++):this.position===this.tokens.length-1||this.nextToken[h.FIELDS.TYPE]===y.comma||this.nextToken[h.FIELDS.TYPE]===y.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(w),this.position++):this.combinator()},F.string=function(){var w=this.currToken;this.newNode(new s.default({value:this.content(),source:I(w),sourceIndex:w[h.FIELDS.START_POS]})),this.position++},F.universal=function(w){var W=this.nextToken;if(W&&this.content(W)==="|")return this.position++,this.namespace();var V=this.currToken;this.newNode(new p.default({value:this.content(),source:I(V),sourceIndex:V[h.FIELDS.START_POS]}),w),this.position++},F.splitWord=function(w,W){for(var V=this,M=this.nextToken,re=this.content();M&&~[y.dollar,y.caret,y.equals,y.word].indexOf(M[h.FIELDS.TYPE]);){this.position++;var ce=this.content();if(re+=ce,ce.lastIndexOf("\\")===ce.length-1){var le=this.nextToken;le&&le[h.FIELDS.TYPE]===y.space&&(re+=this.requiredSpace(this.content(le)),this.position++)}M=this.nextToken}var ie=N(re,".").filter(function(ye){var Ae=re[ye-1]==="\\",Be=/^\d+\.\d+%$/.test(re);return!Ae&&!Be}),he=N(re,"#").filter(function(ye){return re[ye-1]!=="\\"}),Se=N(re,"#{");Se.length&&(he=he.filter(function(ye){return!~Se.indexOf(ye)}));var oe=(0,x.default)(ne([0].concat(ie,he)));oe.forEach(function(ye,Ae){var Be=oe[Ae+1]||re.length,$e=re.slice(ye,Be);if(Ae===0&&W)return W.call(V,$e,oe.length);var Te,Me=V.currToken,Ee=Me[h.FIELDS.START_POS]+oe[Ae],Le=X(Me[1],Me[2]+ye,Me[3],Me[2]+(Be-1));if(~ie.indexOf(ye)){var De={value:$e.slice(1),source:Le,sourceIndex:Ee};Te=new i.default(P(De,"value"))}else if(~he.indexOf(ye)){var et={value:$e.slice(1),source:Le,sourceIndex:Ee};Te=new a.default(P(et,"value"))}else{var Qe={value:$e,source:Le,sourceIndex:Ee};P(Qe,"value"),Te=new u.default(Qe)}V.newNode(Te,w),w=null}),this.position++},F.word=function(w){var W=this.nextToken;return W&&this.content(W)==="|"?(this.position++,this.namespace()):this.splitWord(w)},F.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},F.parse=function(w){switch(this.currToken[h.FIELDS.TYPE]){case y.space:this.space();break;case y.comment:this.comment();break;case y.openParenthesis:this.parentheses();break;case y.closeParenthesis:w&&this.missingParenthesis();break;case y.openSquare:this.attribute();break;case y.dollar:case y.caret:case y.equals:case y.word:this.word();break;case y.colon:this.pseudo();break;case y.comma:this.comma();break;case y.asterisk:this.universal();break;case y.ampersand:this.nesting();break;case y.slash:case y.combinator:this.combinator();break;case y.str:this.string();break;case y.closeSquare:this.missingSquareBracket();case y.semicolon:this.missingBackslash();default:this.unexpected()}},F.expected=function(w,W,V){if(Array.isArray(w)){var M=w.pop();w=w.join(", ")+" or "+M}var re=/^[aeiou]/.test(w[0])?"an":"a";return V?this.error("Expected "+re+" "+w+', found "'+V+'" instead.',{index:W}):this.error("Expected "+re+" "+w+".",{index:W})},F.requiredSpace=function(w){return this.options.lossy?" ":w},F.optionalSpace=function(w){return this.options.lossy?"":w},F.lossySpace=function(w,W){return this.options.lossy?W?" ":"":w},F.parseParenthesisToken=function(w){var W=this.content(w);return w[h.FIELDS.TYPE]===y.space?this.requiredSpace(W):W},F.newNode=function(w,W){return W&&(/^ +$/.test(W)&&(this.options.lossy||(this.spaces=(this.spaces||"")+W),W=!0),w.namespace=W,P(w,"namespace")),this.spaces&&(w.spaces.before=this.spaces,this.spaces=""),this.current.append(w)},F.content=function(w){return w===void 0&&(w=this.currToken),this.css.slice(w[h.FIELDS.START_POS],w[h.FIELDS.END_POS])},F.locateNextMeaningfulToken=function(w){w===void 0&&(w=this.position+1);for(var W=w;W<this.tokens.length;)if(q[this.tokens[W][h.FIELDS.TYPE]]){W++;continue}else return W;return-1},C(Z,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),Z}();e.default=_,t.exports=e.default}(hr,hr.exports);var Mo=hr.exports;(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Mo);function n(o){return o&&o.__esModule?o:{default:o}}var i=function(){function o(u,s){this.func=u||function(){},this.funcRes=null,this.options=s}var a=o.prototype;return a._shouldUpdateSelector=function(s,l){l===void 0&&(l={});var d=Object.assign({},this.options,l);return d.updateSelector===!1?!1:typeof s!="string"},a._isLossy=function(s){s===void 0&&(s={});var l=Object.assign({},this.options,s);return l.lossless===!1},a._root=function(s,l){l===void 0&&(l={});var d=new r.default(s,this._parseOptions(l));return d.root},a._parseOptions=function(s){return{lossy:this._isLossy(s)}},a._run=function(s,l){var d=this;return l===void 0&&(l={}),new Promise(function(p,m){try{var b=d._root(s,l);Promise.resolve(d.func(b)).then(function(x){var h=void 0;return d._shouldUpdateSelector(s,l)&&(h=b.toString(),s.selector=h),{transform:x,root:b,string:h}}).then(p,m)}catch(x){m(x);return}})},a._runSync=function(s,l){l===void 0&&(l={});var d=this._root(s,l),p=this.func(d);if(p&&typeof p.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var m=void 0;return l.updateSelector&&typeof s!="string"&&(m=d.toString(),s.selector=m),{transform:p,root:d,string:m}},a.ast=function(s,l){return this._run(s,l).then(function(d){return d.root})},a.astSync=function(s,l){return this._runSync(s,l).root},a.transform=function(s,l){return this._run(s,l).then(function(d){return d.transform})},a.transformSync=function(s,l){return this._runSync(s,l).transform},a.process=function(s,l){return this._run(s,l).then(function(d){return d.string||d.root.toString()})},a.processSync=function(s,l){var d=this._runSync(s,l);return d.string||d.root.toString()},o}();e.default=i,t.exports=e.default})(dr,dr.exports);var Lo=dr.exports,mi={},_e={};_e.__esModule=!0,_e.universal=_e.tag=_e.string=_e.selector=_e.root=_e.pseudo=_e.nesting=_e.id=_e.comment=_e.combinator=_e.className=_e.attribute=void 0;var Do=Ne(Pr),Po=Ne(ii),Oo=Ne(di),zo=Ne(si),Bo=Ne(ai),Io=Ne(hi),Fo=Ne(ci),Ao=Ne(ri),Ro=Ne(ni),Ho=Ne(li),No=Ne(oi),jo=Ne(ui);function Ne(t){return t&&t.__esModule?t:{default:t}}var Go=function(e){return new Do.default(e)};_e.attribute=Go;var Wo=function(e){return new Po.default(e)};_e.className=Wo;var qo=function(e){return new Oo.default(e)};_e.combinator=qo;var Uo=function(e){return new zo.default(e)};_e.comment=Uo;var Zo=function(e){return new Bo.default(e)};_e.id=Zo;var Yo=function(e){return new Io.default(e)};_e.nesting=Yo;var Xo=function(e){return new Fo.default(e)};_e.pseudo=Xo;var Vo=function(e){return new Ao.default(e)};_e.root=Vo;var Qo=function(e){return new Ro.default(e)};_e.selector=Qo;var Ko=function(e){return new Ho.default(e)};_e.string=Ko;var Jo=function(e){return new No.default(e)};_e.tag=Jo;var e1=function(e){return new jo.default(e)};_e.universal=e1;var ge={};ge.__esModule=!0,ge.isNode=Ar,ge.isPseudoElement=_i,ge.isPseudoClass=d1,ge.isContainer=h1,ge.isNamespace=f1,ge.isUniversal=ge.isTag=ge.isString=ge.isSelector=ge.isRoot=ge.isPseudo=ge.isNesting=ge.isIdentifier=ge.isComment=ge.isCombinator=ge.isClassName=ge.isAttribute=void 0;var be=ue,Ie,t1=(Ie={},Ie[be.ATTRIBUTE]=!0,Ie[be.CLASS]=!0,Ie[be.COMBINATOR]=!0,Ie[be.COMMENT]=!0,Ie[be.ID]=!0,Ie[be.NESTING]=!0,Ie[be.PSEUDO]=!0,Ie[be.ROOT]=!0,Ie[be.SELECTOR]=!0,Ie[be.STRING]=!0,Ie[be.TAG]=!0,Ie[be.UNIVERSAL]=!0,Ie);function Ar(t){return typeof t=="object"&&t1[t.type]}function je(t,e){return Ar(e)&&e.type===t}var gi=je.bind(null,be.ATTRIBUTE);ge.isAttribute=gi;var r1=je.bind(null,be.CLASS);ge.isClassName=r1;var n1=je.bind(null,be.COMBINATOR);ge.isCombinator=n1;var i1=je.bind(null,be.COMMENT);ge.isComment=i1;var s1=je.bind(null,be.ID);ge.isIdentifier=s1;var a1=je.bind(null,be.NESTING);ge.isNesting=a1;var Rr=je.bind(null,be.PSEUDO);ge.isPseudo=Rr;var o1=je.bind(null,be.ROOT);ge.isRoot=o1;var l1=je.bind(null,be.SELECTOR);ge.isSelector=l1;var c1=je.bind(null,be.STRING);ge.isString=c1;var vi=je.bind(null,be.TAG);ge.isTag=vi;var u1=je.bind(null,be.UNIVERSAL);ge.isUniversal=u1;function _i(t){return Rr(t)&&t.value&&(t.value.startsWith("::")||t.value.toLowerCase()===":before"||t.value.toLowerCase()===":after"||t.value.toLowerCase()===":first-letter"||t.value.toLowerCase()===":first-line")}function d1(t){return Rr(t)&&!_i(t)}function h1(t){return!!(Ar(t)&&t.walk)}function f1(t){return gi(t)||vi(t)}(function(t){t.__esModule=!0;var e=ue;Object.keys(e).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===e[i]||(t[i]=e[i])});var r=_e;Object.keys(r).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===r[i]||(t[i]=r[i])});var n=ge;Object.keys(n).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===n[i]||(t[i]=n[i])})})(mi),function(t,e){e.__esModule=!0,e.default=void 0;var r=a(Lo),n=o(mi);function i(){if(typeof WeakMap!="function")return null;var l=new WeakMap;return i=function(){return l},l}function o(l){if(l&&l.__esModule)return l;if(l===null||typeof l!="object"&&typeof l!="function")return{default:l};var d=i();if(d&&d.has(l))return d.get(l);var p={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in l)if(Object.prototype.hasOwnProperty.call(l,b)){var x=m?Object.getOwnPropertyDescriptor(l,b):null;x&&(x.get||x.set)?Object.defineProperty(p,b,x):p[b]=l[b]}return p.default=l,d&&d.set(l,p),p}function a(l){return l&&l.__esModule?l:{default:l}}var u=function(d){return new r.default(d)};Object.assign(u,n),delete u.__esModule;var s=u;e.default=s,t.exports=e.default}(ur,ur.exports);var p1=ur.exports;const m1=wa,yi=p1,g1=yi();var v1={isUsableColor(t,e){return m1(e)&&t!=="gray"&&e[600]},commonTrailingPseudos(t){let e=g1.astSync(t),r=[];for(let[i,o]of e.nodes.entries())for(const[a,u]of[...o.nodes].reverse().entries()){if(u.type!=="pseudo"||!u.value.startsWith("::"))break;r[a]=r[a]||[],r[a][i]=u}let n=yi.selector();for(const i of r){if(!i)continue;if(new Set([...i.map(a=>a.value)]).size>1)break;i.forEach(a=>a.remove()),n.prepend(i[0])}return n.nodes.length?[n.toString(),e.toString()]:[null,t]}};const _1=Kn,y1=la,C1=da,b1=ha,{commonTrailingPseudos:x1}=v1,Ci={};function Hr(t,{className:e,modifier:r,prefix:n}){let i=n(`.not-${e}`).slice(1),o=t.startsWith(">")?`${r==="DEFAULT"?`.${e}`:`.${e}-${r}`} `:"",[a,u]=x1(t);return a?`:where(${o}${u}):not(:where([class~="${i}"],[class~="${i}"] *))${a}`:`:where(${o}${t}):not(:where([class~="${i}"],[class~="${i}"] *))`}function bi(t){return typeof t=="object"&&t!==null}function w1(t={},{target:e,className:r,modifier:n,prefix:i}){function o(a,u){return e==="legacy"?[a,u]:Array.isArray(u)?[a,u]:bi(u)?Object.values(u).some(bi)?[Hr(a,{className:r,modifier:n,prefix:i}),u,Object.fromEntries(Object.entries(u).map(([l,d])=>o(l,d)))]:[Hr(a,{className:r,modifier:n,prefix:i}),u]:[a,u]}return Object.fromEntries(Object.entries(y1({},...Object.keys(t).filter(a=>Ci[a]).map(a=>Ci[a](t[a])),...C1(t.css||{}))).map(([a,u])=>o(a,u)))}var xi=_1.withOptions(({className:t="prose",target:e="modern"}={})=>function({addVariant:r,addComponents:n,theme:i,prefix:o}){let a=i("typography"),u={className:t,prefix:o};for(let[s,...l]of[["headings","h1","h2","h3","h4","h5","h6","th"],["h1"],["h2"],["h3"],["h4"],["h5"],["h6"],["p"],["a"],["blockquote"],["figure"],["figcaption"],["strong"],["em"],["kbd"],["code"],["pre"],["ol"],["ul"],["li"],["table"],["thead"],["tr"],["th"],["td"],["img"],["video"],["hr"],["lead",'[class~="lead"]']]){l=l.length===0?[s]:l;let d=e==="legacy"?l.map(p=>`& ${p}`):l.join(", ");r(`${t}-${s}`,e==="legacy"?d:`& :is(${Hr(d,u)})`)}n(Object.keys(a).map(s=>({[s==="DEFAULT"?`.${t}`:`.${t}-${s}`]:w1(a[s],{target:e,className:t,modifier:s,prefix:o})})))},()=>({theme:{typography:b1}}));const wi=yt(xi),S1=Xt({__proto__:null,default:wi},[xi]);var Si={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});const e=n=>Object.assign({},...Object.entries(n!=null?n:{}).flatMap(([i,o])=>typeof o=="object"?Object.entries(e(o)).map(([a,u])=>({[i+(a==="DEFAULT"?"":`-${a}`)]:u})):[{[`${i}`]:o}])),r=e})(Si);var T1={importDefault:t=>t&&t.__esModule?t.default:t};const k1=Si,{importDefault:$1}=T1,E1=$1(k1),Nr=["track","thumb","corner"],Bt=(t,e)=>e?{"@supports (-moz-appearance:none)":t}:t,M1=({addBase:t},e)=>{t({"*":Bt({"scrollbar-color":"initial","scrollbar-width":"initial"},e==="pseudoelements")})},Ti=()=>({...Object.fromEntries(Nr.map(t=>[[`&::-webkit-scrollbar-${t}`,{"background-color":`var(--scrollbar-${t})`,"border-radius":`var(--scrollbar-${t}-radius)`}]]).flat())}),L1=({preferPseudoElements:t})=>({".scrollbar":{...Ti(),...Bt({"scrollbar-width":"auto","scrollbar-color":"var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)"},t),"&::-webkit-scrollbar":{display:"block",width:"var(--scrollbar-width, 16px)",height:"var(--scrollbar-height, 16px)"}},".scrollbar-thin":{...Ti(),...Bt({"scrollbar-width":"thin","scrollbar-color":"var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)"},t),"&::-webkit-scrollbar":{display:"block",width:"8px",height:"8px"}},".scrollbar-none":{...Bt({"scrollbar-width":"none"},t),"&::-webkit-scrollbar":{display:"none"}}}),ki=t=>typeof t=="function"?t({}):t;var D1={addBaseStyles:M1,addBaseSizeUtilities:({addUtilities:t},e)=>{t(L1({preferPseudoElements:e==="pseudoelements"}))},addColorUtilities:({matchUtilities:t,theme:e})=>{const r=E1(e("colors")),n=Object.fromEntries(Object.entries(r).map(([i,o])=>[i,ki(o)]));Nr.forEach(i=>{t({[`scrollbar-${i}`]:o=>({[`--scrollbar-${i}`]:ki(o)})},{values:n,type:"color"})})},addRoundedUtilities:({theme:t,matchUtilities:e})=>{Nr.forEach(r=>{e({[`scrollbar-${r}-rounded`]:n=>({[`--scrollbar-${r}-radius`]:n})},{values:t("borderRadius")})})},addSizeUtilities:({matchUtilities:t,theme:e})=>{["width","height"].forEach(r=>{t({[`scrollbar-${r[0]}`]:n=>({[`--scrollbar-${r}`]:n})},{values:e(r)})})}},P1={addVariants:({addVariant:t})=>{t("scrollbar-hover","&::-webkit-scrollbar-thumb:hover"),t("scrollbar-track-hover","&::-webkit-scrollbar-track:hover"),t("scrollbar-corner-hover","&::-webkit-scrollbar-corner:hover"),t("scrollbar-active","&::-webkit-scrollbar-thumb:active"),t("scrollbar-track-active","&::-webkit-scrollbar-track:active"),t("scrollbar-corner-active","&::-webkit-scrollbar-corner:active")}};const O1=Kn,{addBaseStyles:z1,addBaseSizeUtilities:B1,addColorUtilities:I1,addRoundedUtilities:F1,addSizeUtilities:A1}=D1,{addVariants:R1}=P1;var $i=O1.withOptions((t={})=>e=>{var n;let r=(n=t.preferredStrategy)!=null?n:"standard";r!=="standard"&&r!=="pseudoelements"&&(console.warn("WARNING: tailwind-scrollbar preferredStrategy should be 'standard' or 'pseudoelements'"),r="standard"),z1(e,r),B1(e,r),I1(e),R1(e),t.nocompatible&&(F1(e),A1(e))});const Ei=yt($i),H1=Xt({__proto__:null,default:Ei},[$i]);var It={exports:{}};const Ct=Xn||oa,N1={50:"#FCE3E4",100:"#F9CDCE",200:"#F39699",300:"#ED6368",400:"#E72C32",500:"#C4161C",600:"#9C1216",700:"#770D11",800:"#4E090B",900:"#290506"},Pe={warning:Ct.amber,error:Ct.red,info:Ct.slate,success:Ct.emerald,primary:Ct.blue,brand:N1},j1={...Pe,warning:Pe.warning[500],"warning-darken":Pe.warning[600],"warning-lighten":Pe.warning[400],success:Pe.success[500],"success-darken":Pe.success[600],"success-lighten":Pe.success[400],error:Pe.error[500],"error-darken":Pe.error[600],"error-lighten":Pe.error[400],info:Pe.info[500],"info-darken":Pe.info[600],"info-lighten":Pe.info[400],primary:Pe.primary[500],"primary-darken":Pe.primary[600],"primary-lighten":Pe.primary[400]},G1={prefix:"e-",dark:"class",corePlugins:{preflight:!1},content:["./src/**/*.{html,js,vue,ts}"],theme:{extend:{ringWidth:{1:"1px"},colors:j1,backgroundColor:{surface:{DEFAULT:"#fff",hover:"#e0e2ec","hover-transparent":"rgba(224,226,236,0.64)",active:"#e0ebff"},"surface-dark":{DEFAULT:"#111827",hover:"#263043","hover-transparent":"rgba(38,48,67,0.53)",active:"#003563"}},textColor:{surface:{DEFAULT:"rgba(0, 0, 0, .87)",active:"#1976d2"},"surface-dark":{DEFAULT:"#f6f9ff",active:"#629efc"}},borderColor:{surface:{DEFAULT:"rgb(252, 252, 255)"},"surface-dark":{DEFAULT:"rgba(255, 255, 255, 0.12)"}},lineHeight:{xs:"1rem",sm:"1.25rem",base:"1.5rem",lg:"1.75rem",xl:"1.75rem","2xl":"2rem","3xl":"2.25rem","4xl":"2.5rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},maxWidth:{"1/12":"8.333333333%","2/12":"16.666666666%","3/12":"25%","4/12":"33.333333333%","5/12":"41.666666667%","6/12":"50%","7/12":"58.333333334%","8/12":"66.666666666%","9/12":"75%","10/12":"83.333333334%","11/12":"91.666666666%","12/12":"100%"},blur:{"video-poster":"32px"},transitionProperty:{"opacity-transform":"opacity, transform"},transitionDuration:{600:"600ms"}},fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},plugins:[wi||S1,Ei||H1({nocompatible:!0,preferredStrategy:"pseudoelements"})],safelist:[{pattern:/e-w-(full|auto)/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-grow/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-basis-(\d{1,2}\/\d{1,2}|full|auto|0)/,variants:["lg","md","sm","xs","xl"]},{pattern:/^!?e-max-w-(\d{1,2}\/\d{1,2})/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-offset-(1[0-2]|[1-9])/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-items-(start|center|end|baseline|stretch)/},{pattern:/e-self-(start|center|end|baseline|stretch)/},{pattern:/e-justify-(around|between|center|end|evenly|normal|start|stretch)/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-content-(around|baseline|between|center|end|evenly|normal|start|stretch)/},{pattern:/e-m[trblxy]?-[\w\-/]+/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-p[trblxy]?-[\w\-/]+/,variants:["lg","md","sm","xs","xl"]},"e-tiny","e-caption","e-body","e-title-2","e-title-1","e-display-3","e-display-2","e-display-1",{pattern:/e-text-(xs|sm|base|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl|8xl|9xl)/},{pattern:/e-border-(warning|error|info|success|primary|brand|surface)-./},{pattern:/e-text-(warning|error|info|success|primary|brand|surface)-./},{pattern:/e-bg-(warning|error|info|success|primary|brand|surface)-./}]};It.exports=G1;const W1=(It.exports==null?{}:It.exports).default||It.exports,jr=aa(W1),Mi=jr.theme.fontSize,Li=jr.theme.colors,q1=[K.Dot,K.Xs,K.Sm,K.Md,K.Lg,K.Xl],U1=[K.Xs,K.Sm,K.Md,K.Lg,K.Xl,K.TwoXl],Di=[K.Xs,K.Sm,K.Md,K.Base,K.Lg,K.Xl,K.TwoXl,K.ThreeXl,K.FourXl,K.FiveXl,K.SixXl,K.SevenXl,K.EightXl,K.NineXl],Z1=[K.Sm,K.Md,K.Lg],Y1=[se.Warning,se.Error,se.Info,se.Success,se.Primary,se.Default],X1=[se.Warning,se.Error,se.Info,se.Success,se.Primary,se.Default],V1=[Oe.Top,Oe.Bottom,Oe.Right,Oe.Left],Q1=["play","pause","ended","loadeddata","waiting","playing","timeupdate","canplay","canplaythrough","statechanged"],K1=A.extend({name:"EIcon",props:{icon:{type:String,default:""},color:{type:String,default:se.Default},size:{type:String,default:K.Sm}},computed:{sizes(){return Di.reduce((t,e)=>({...t,[e]:`e-text-${e}`}),{})},iconClasses(){var n,i;const t=this.sizes[this.size]||this.sizes[K.Sm],e=`${((i=(n=this.icon)==null?void 0:n.split(" "))==null?void 0:i.length)>1?this.icon:`fa fa-${this.icon}`}`;return["e-inline-flex e-items-center e-justify-center e-rounded-full",this.color,e,t]}}});var J1=function(){var e=this,r=e._self._c;return r("div",e._g(e._b({staticClass:"e-icon"},"div",e.$attrs,!1),e.$listeners),[r("i",{class:e.iconClasses})])},e0=[],t0=H(K1,J1,e0,!1,null,null,null,null);const qe=t0.exports,r0=A.extend({name:"ESpinner",props:{dark:{type:Boolean,default:!1},color:{type:Boolean,default:!0},animationDuration:{type:[Number,String],default:1e3},size:{type:String,default:K.Base},opacity:{type:[String,Number],default:1}},data(){return{sizes:Mi,colors:Li}},computed:{computedSize(){return this.sizes[K[this.size]]||this.size||this.sizes[K.Base]},fill(){let t={primary:this.colors.brand[500],secondary:this.colors.neutral[300]};return this.dark&&!this.color&&(t={primary:this.colors.neutral[100],secondary:this.colors.neutral[100]}),!this.dark&&this.color&&(t={primary:this.colors.brand[500],secondary:this.colors.neutral[950]}),!this.dark&&!this.color&&(t={primary:this.colors.neutral[200],secondary:this.colors.neutral[200]}),t}},methods:{getNthPathStyle(t){const e=typeof this.animationDuration=="string"?Number.parseInt(this.animationDuration):this.animationDuration;return{animationDuration:`${this.animationDuration}ms`,animationDelay:`${t/10*e}ms`,fill:`${this.fill[t%2===0?"primary":"secondary"]}`}}}}),j7="";var n0=function(){var e=this,r=e._self._c;return r("svg",{staticClass:"e-spinner e-block",class:{"e-spinner--dark":e.dark,"e-spinner--grey":!e.color},style:{opacity:e.opacity},attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1629.32 1608.86",width:e.computedSize,height:e.computedSize}},[r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(0),attrs:{d:"m1254.12,591.61C992.01,401.11,439.78,0,439.78,0h601.2c14.3,0,48.95,9.02,62.54,38.01,55.27,117.88,111.32,235.46,170.48,351.43,33.16,70.9-8.99,170.35-19.87,202.16"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(1),attrs:{d:"m1404.65,131.67c-29.37,89.94-55.8,170.95-82.25,251.93-4.05.87-8.1,1.73-12.15,2.61-40.61-83.95-81.21-167.9-123.12-254.54h217.51Z"}}),r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(2),attrs:{d:"m1129.06,1093.51c100.75-307.98,312.75-956.75,312.75-956.75,0,0,180.36,558.53,184.75,572.14,4.39,13.59,6.45,49.34-16.96,71.19-95.21,88.81-189.88,178.28-282.06,270.2-57.29,53.34-164.86,43.8-198.48,43.21"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(3),attrs:{d:"m1342.3,1083.06c66.6-63.43,133.22-126.86,207.93-197.98,21.51,73.55,40.3,137.81,60.64,207.37h-263.35c-1.75-3.13-3.48-6.27-5.22-9.39"}}),r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(4),attrs:{d:"m610.27,1137.17c324.03-.53,1006.55-1.85,1006.55-1.85,0,0-474.19,345.83-485.74,354.25-11.55,8.42-44.87,21.56-72.94,6.14-114.11-62.68-228.69-124.66-344.81-183.5-68.56-37.76-93.12-142.93-103.06-175.04"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(5),attrs:{d:"m938.58,1468.29c-62.81,42.58-118.35,80.24-180.28,122.23-28.35-87.22-54.62-168.03-80.89-248.86,2.62-2.92,5.26-5.85,7.9-8.76,81.89,43.78,163.79,87.56,253.26,135.39"}}),r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(6),attrs:{d:"m413.07,652.86c101.35,307.77,314.99,956,314.99,956,0,0-476.23-343.04-487.83-351.39-11.58-8.36-34.44-35.93-28.52-67.4,24.07-127.96,47.3-256.13,67.09-384.8,14.54-76.9,106.84-132.96,134.28-152.42"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(7),attrs:{d:"m197.48,1068.8c-62.36-47.73-115.99-88.79-176.78-135.33,75.54-54.91,146.18-106.24,216.83-157.57,3.73,2.24,7.45,4.47,11.19,6.71-16.36,91.3-32.7,182.61-51.25,286.19"}}),r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(8),attrs:{d:"m813.58,314.41C551.63,505.15,0,907.07,0,907.07c0,0,180.68-558.4,185.09-572.01,4.39-13.59,23.65-43.78,55.41-47.8,129.19-16.29,258.32-33.41,386.86-53.99,77.67-9.72,159.3,60.97,186.22,81.13"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(9),attrs:{d:"m635.14,199.78c-91.99,12.38-183.97,24.77-288.07,38.76,25.77-73.18,48.3-137.14,73.8-209.53,76.56,55.41,147.27,106.58,217.97,157.75-1.23,4.34-2.46,8.68-3.69,13.02"}})])},i0=[],s0=H(r0,n0,i0,!1,null,"9a1333ac",null,null);const Gr=s0.exports,a0=A.extend({props:{align:{type:String,default:void 0},alignContent:{type:String,default:void 0},justify:{type:String,default:void 0},justifyXs:{type:String,default:void 0},justifySm:{type:String,default:void 0},justifyMd:{type:String,default:void 0},justifyLg:{type:String,default:void 0},justifyXl:{type:String,default:void 0},noGutters:{type:Boolean,default:!1}},computed:{justifyClasses(){return{[`e-justify-${this.justify}`]:!!this.justify,[`xs:e-justify-${this.justifySm}`]:!!this.justifySm,[`sm:e-justify-${this.justifySm}`]:!!this.justifySm,[`md:e-justify-${this.justifyMd}`]:!!this.justifyMd,[`lg:e-justify-${this.justifyLg}`]:!!this.justifyLg,[`xl:e-justify-${this.justifyXl}`]:!!this.justifyXl}},rowClasses(){return{...this.align?{[`e-items-${this.align}`]:!0}:{},...this.alignContent?{[`e-content-${this.alignContent}`]:!0}:{},...this.noGutters?{"e-row--no-gutters":!0}:{},...this.justifyClasses}}}}),G7="";var o0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-row e-flex e-flex-wrap",class:e.rowClasses},[e._t("default")],2)},l0=[],c0=H(a0,o0,l0,!1,null,null,null,null);const Wr=c0.exports,u0=A.extend({props:{alignSelf:{type:String,default:"auto"},cols:{type:[Boolean,String,Number],default:void 0},lg:{type:[Boolean,String,Number],default:void 0},md:{type:[Boolean,String,Number],default:void 0},offset:{type:[String,Number],default:void 0},offsetLg:{type:[String,Number],default:void 0},offsetMd:{type:[String,Number],default:void 0},offsetSm:{type:[String,Number],default:void 0},offsetXs:{type:[String,Number],default:void 0},offsetXl:{type:[String,Number],default:void 0},sm:{type:[Boolean,String,Number],default:void 0},xs:{type:[Boolean,String,Number],default:void 0},xl:{type:[Boolean,String,Number],default:void 0}},computed:{colClasses(){return{...this.alignSelf?{[`e-self-${this.alignSelf}`]:!0}:{},[this.autoClasses("xs:",this.xs)]:this.isSizePropAuto(this.xs),[this.autoClasses("sm:",this.sm)]:this.isSizePropAuto(this.sm),[this.autoClasses("md:",this.md)]:this.isSizePropAuto(this.md),[this.autoClasses("lg:",this.lg)]:this.isSizePropAuto(this.lg),[this.autoClasses("xl:e",this.xl)]:this.isSizePropAuto(this.xl),[this.autoClasses("",this.cols)]:this.isSizePropAuto(this.cols,!0),"xs:e-basis-full xs:!e-max-w-12/12":this.xs===12||this.xs==="12","sm:e-basis-full sm:!e-max-w-12/12":this.sm===12||this.sm==="12","md:e-basis-full md:!e-max-w-12/12":this.md===12||this.md==="12","lg:e-basis-full lg:!e-max-w-12/12":this.lg===12||this.lg==="12","xl:e-basis-full xl:!e-max-w-12/12":this.xl===12||this.xl==="12","e-basis-full e-max-w-12/12":this.cols===12||this.cols==="12",[`xs:e-basis-${this.xs}/12 xs:!e-max-w-${this.xs}/12`]:this.isSizePropertyNumeric(this.xs),[`sm:e-basis-${this.sm}/12 sm:!e-max-w-${this.sm}/12`]:this.isSizePropertyNumeric(this.sm),[`md:e-basis-${this.md}/12 md:!e-max-w-${this.md}/12`]:this.isSizePropertyNumeric(this.md),[`lg:e-basis-${this.lg}/12 lg:!e-max-w-${this.lg}/12`]:this.isSizePropertyNumeric(this.lg),[`xl:e-basis-${this.xl}/12 xl:!e-max-w-${this.xl}/12`]:this.isSizePropertyNumeric(this.xl),[`e-basis-${this.cols}/12 !e-max-w-${this.cols}/12`]:this.isSizePropertyNumeric(this.cols),[`xs:e-offset-${this.offsetXs}`]:this.offsetXs!==void 0,[`sm:e-offset-${this.offsetSm}`]:this.offsetSm!==void 0,[`md:e-offset-${this.offsetMd}`]:this.offsetMd!==void 0,[`lg:e-offset-${this.offsetLg}`]:this.offsetLg!==void 0,[`xl:e-offset-${this.offsetXl}`]:this.offsetXl!==void 0,[`e-offset-${this.offset}`]:this.offset!==void 0}}},methods:{autoClasses(t,e){return`${t}e-basis-${e==="auto"?"auto":"0"} ${t}e-grow${e==="auto"?"-0":""} ${t}e-w-${e==="auto"?"auto":"full"}`},isSizePropAuto(t,e=!1){return t==="auto"||t===0||t==="0"||e&&!t},isSizePropertyNumeric(t){const e=Number.parseInt(t);return t!=="auto"&&!isNaN(e)&&e>=1&&e<12}}}),W7="";var d0=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-col",class:e.colClasses},[e._t("default")],2)},h0=[],f0=H(u0,d0,h0,!1,null,null,null,null);const qr=f0.exports;function Ur(){const t=document;return!!(t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement)}function Zr(t){if(Ur())return new Promise(r=>r(null));const e=t;return e.requestFullscreen?e==null?void 0:e.requestFullscreen():e.mozRequestFullScreen?e==null?void 0:e.mozRequestFullScreen():e.webkitRequestFullScreen?e==null?void 0:e.webkitRequestFullScreen():e.msRequestFullscreen?e==null?void 0:e.msRequestFullscreen():new Promise(r=>r(null))}function Yr(){if(!Ur())return new Promise(e=>e(null));const t=document;return t.exitFullscreen?t.exitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitCancelFullScreen?t.webkitCancelFullScreen():t.msExitFullscreen?t.msExitFullscreen():new Promise(e=>e(null))}function p0(t,e){let r=null;return function(...n){const i=this;r!==null&&clearTimeout(r),r=setTimeout(()=>{r=null,t.apply(i,n)},e||1e3)}}function m0(t=1){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let r="";for(let n=0;n<t;n++)r+=e.charAt(Math.floor(Math.random()*e.length));return r}function g0(t,e=0,r=0,n=t.naturalWidth,i=t.naturalHeight){const o=document.createElement("canvas"),a=o.getContext("2d");o.width=n,o.height=i,a==null||a.drawImage(t,e,r,n,i,0,0,n,i);const u=o.toDataURL();return o.remove(),u}function v0(t){return!!(t!=null&&t.length&&!isNaN(new Date(t).getTime()))}function Pi(t,e=1){let r=0,n=0,i=0;return t.length===4?(r=parseInt(t[1]+t[1],16),n=parseInt(t[2]+t[2],16),i=parseInt(t[3]+t[3],16)):t.length===7&&(r=parseInt(t[1]+t[2],16),n=parseInt(t[3]+t[4],16),i=parseInt(t[5]+t[6],16)),`rgba(${r}, ${n}, ${i}, ${e})`}function Oi(t,e=1){const r=t.match(/\d+/g);return r&&r.length===3?`rgba(${r[0]}, ${r[1]}, ${r[2]}, ${e})`:null}function zi(t){return t.startsWith("rgba")}function ht(t,e=1){return zi(t)?t:t.startsWith("#")?Pi(t,e):t.startsWith("rgb")?Oi(t,e):t}function _0(t){const e=JSON.stringify(t);return Bi(e).toString()}function Bi(t){let e=0,r,n;if(t.length===0)return e;for(r=0;r<t.length;r++)n=t.charCodeAt(r),e=(e<<5)-e+n,e|=0;return e}function Xr(t,e,r){const n=O.scaleLinear().domain([0,r-1]).range([0,1]);return Array.from({length:r},(i,o)=>O.interpolate(t,e)(n(o)))}const Ii={continuous:{monday:["00:00-23:59"],tuesday:["00:00-23:59"],wednesday:["00:00-23:59"],thursday:["00:00-23:59"],friday:["00:00-23:59"],saturday:["00:00-23:59"],sunday:["00:00-23:59"]},custom:{monday:["00:00-23:59"],tuesday:["00:00-23:59"],wednesday:["00:00-23:59"],thursday:["00:00-23:59"],friday:["00:00-23:59"],saturday:["00:00-23:59"],sunday:["00:00-23:59"]},workingHours:{monday:["08:00-18:00"],tuesday:["08:00-18:00"],wednesday:["08:00-18:00"],thursday:["08:00-18:00"],friday:["08:00-18:00"],saturday:[],sunday:[]},empty:{monday:[],tuesday:[],wednesday:[],thursday:[],friday:[],saturday:[],sunday:[]}},Fi=24*60-1,Ai=t=>{const[e,r]=t.split(":");return parseInt(e)*60+parseInt(r)},Vr=t=>{const e=Math.floor(t/60).toString().padStart(2,"0"),r=(t%60).toString().padStart(2,"0");return`${e}:${r}`};function Qr(t){return["monday","tuesday","wednesday","thursday","friday","saturday","sunday"].reduce((r,n)=>{const i=t[n];return{...r,[n]:i.length?i[0].split("-").map(o=>Ai(o)):[0,Fi]}},{})}function y0(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[e,r.map(n=>{const[i,o]=n.split("-");let[a,u]=o.split(":");return a=parseInt(a),a=Math.max(0,a-1),`${i}-${a.toString().padStart(2,"0")}:${u}`})]))}const C0=A.extend({name:"EZoomable",props:{ignorePointerEvents:{type:Boolean,default:!1},withOverlay:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},data(){return{scale:1,minScale:1,maxScale:20,top:0,left:0,isPanning:!1,panStart:{x:0,y:0},isPinching:!1,previousPinchDistance:0,pinchDistance:0,pointers:{},transform:"matrix(1, 0, 0, 1, 0, 0)"}},computed:{contentStyle(){return{transform:this.transform}},isZoomed(){return this.scale>1}},watch:{contentStyle:{handler(t){this.$emit("on-frame-props-change",{imgStyle:t})},immediate:!0,deep:!0}},methods:{updateZoomScale(){this.scale>this.maxScale?this.scale=this.maxScale:this.scale<this.minScale&&(this.scale=this.minScale)},handleZoom(t){const e=this.$refs.container,r=this.$refs.content;if(t.preventDefault(),this.disabled)return;const n=e.getBoundingClientRect(),i=r.getBoundingClientRect();if(!n||!i)return;const o=t.clientX,a=t.clientY,u=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail)),s=this.scale;this.scale+=u/10,this.updateZoomScale();const l=((o-i.left)/i.width).toFixed(2),d=((a-i.top)/i.height).toFixed(2);this.left=Math.round(o-n.left-Number(l)*(i.width*this.scale/s)),this.top=Math.round(a-n.top-Number(d)*(i.height*this.scale/s));const p=0,m=0-n.width*(this.scale-1),b=0-n.height*(this.scale-1),x=0;this.left<m?this.left=m:this.left>p&&(this.left=p),this.top<b?this.top=b:this.top>x&&(this.top=x),this.updateTransform()},handleMouseDown(t){!this.isZoomed||this.disabled||(this.isPanning=!0,this.panStart={x:t.clientX,y:t.clientY})},handleMouseUp(){this.disabled||(this.isPanning=!1)},handleMouseLeave(){this.disabled||(this.isPanning=!1)},handleMouseMove(t){if(!this.isPanning||!this.isZoomed||this.disabled)return;const e=t.clientX-this.panStart.x,r=t.clientY-this.panStart.y;this.left+=e,this.top+=r,this.applyBoundsCorrection(),this.panStart={x:t.clientX,y:t.clientY},this.updateTransform()},applyBoundsCorrection(){const t=this.$refs.container,e=this.$refs.content,r=t.getBoundingClientRect(),n=e.getBoundingClientRect();if(!r||!n)return;const[i,o,a,u]=[r.top-n.top,n.right-r.right,n.bottom-r.bottom,r.left-n.left].map(s=>s<0?s:0);this.left+=u-o,this.top+=i-a},updateTransform(){this.transform=`matrix(${this.scale}, 0, 0, ${this.scale}, ${this.left}, ${this.top})`},getPointersDistance(t,e){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)},getPointersMidPoint(t,e){return{x:t.clientX+(e.clientX-t.clientX)/2,y:t.clientY+(e.clientY-t.clientY)/2}},updatePointerEvent(t){this.pointers[t.pointerId]=t},clearPointerEvent(t){this.$delete(this.pointers,t.pointerId)},updatePinchDistance(){const t=Object.values(this.pointers);t.length===2&&(this.pinchDistance=this.getPointersDistance(t[0],t[1]))},handlePointerDown(t){this.ignorePointerEvents||this.disabled||(this.updatePointerEvent(t),this.isPinching=Object.values(this.pointers).length===2,this.isPinching?(this.isPanning=!1,this.updatePinchDistance()):this.handleMouseDown(t))},handlePointerMove(t){if(!(this.ignorePointerEvents||this.disabled))if(this.updatePointerEvent(t),this.isPinching){this.previousPinchDistance=this.pinchDistance,this.updatePinchDistance();const e=this.pinchDistance/this.previousPinchDistance;this.scale*=e,this.updateZoomScale();const r=Object.values(this.pointers),n=this.getPointersMidPoint(r[0],r[1]);this.left=n.x-(n.x-this.left)*e,this.top=n.y-(n.y-this.top)*e,this.applyBoundsCorrection(),this.updateTransform()}else this.handleMouseMove(t)},handlePointerUp(t){this.ignorePointerEvents||this.disabled||(this.clearPointerEvent(t),this.previousPinchDistance=0,this.pinchDistance=0,this.isPanning=!1,this.isPinching=!1)}}}),q7="";var b0=function(){var e=this,r=e._self._c;return r("div",{ref:"container",staticClass:"e-zoomable e-w-full e-h-full"},[r("div",{staticClass:"e-w-full e-h-full",class:{"e-cursor-grab":e.isZoomed&&!e.disabled,"e-cursor-grabbing":e.isPanning&&!e.disabled},on:{mousewheel:e.handleZoom,mousedown:e.handleMouseDown,mouseup:e.handleMouseUp,mouseleave:e.handleMouseLeave,mousemove:e.handleMouseMove,pointerdown:e.handlePointerDown,pointermove:e.handlePointerMove,pointerup:e.handlePointerUp,pointercancel:e.handlePointerUp,pointerout:e.handlePointerUp,pointerleave:e.handlePointerUp}},[r("div",{ref:"content",staticClass:"e-zoomable__content e-w-full e-h-full e-transform-0 e-touch-none e-relative",style:e.contentStyle},[e._t("default")],2),e.withOverlay&&!e.disabled?r("div",{staticClass:"e-zoomable__overlay e-absolute e-w-full e-h-full e-bottom-0 e-left-0 e-overflow-hidden"},[e._t("overlay")],2):e._e()])])},x0=[],w0=H(C0,b0,x0,!1,null,"5e462efa",null,null);const Kr=w0.exports,Jr=new Intl.NumberFormat(void 0,{minimumIntegerDigits:2}),Ri=["play","pause","ended","loadeddata","waiting","playing","timeupdate","canplay","canplaythrough","statechanged","error"],en=t=>{const e=Math.floor(t%60),r=Math.floor(t/60)%60,n=Math.floor(t/3600);return n===0?`${r}:${Jr.format(e)}`:`${n}:${Jr.format(r)}:${Jr.format(e)}`},S0=A.extend({name:"EVideoPlayer",components:{ESpinner:Gr,EZoomable:Kr},props:{targetTimestamp:{type:[String,Date],default:void 0},sources:{type:[Array,String],required:!0},videoListeners:{type:Object,default:()=>({})},videoOptions:{type:Object,default:()=>({})},isHls:{type:Boolean,default:!1},isEdgeVideo:{type:Boolean,default:!1},edgeStreamingToken:{type:String,default:""},authToken:{type:String,default:""},pauseOnClick:{type:Boolean,default:!0},isHlsLoading:{type:Boolean,default:!1},isPlaying:{type:Boolean,default:!1},showLoadingAnimation:{type:Boolean,default:!1},isZoomable:{type:Boolean,default:!1},zoomableIgnorePointerEvents:{type:Boolean,default:!1},timezone:{type:String,default:"UTC"},playPauseAnimation:{type:Boolean,default:!0},disablePlayPauseAnimation:{type:Boolean,default:!1},isWebRtc:{type:Boolean,default:!1},withColoredLoader:{type:Boolean,default:!1},loaderSize:{type:String,default:"SevenXl"},withOverlayOnBackground:{type:Boolean,default:!1},fallbackSrc:{type:String,default:""},hlsOptions:{type:Object,default:()=>({})}},data(){return{playing:!1,percentagePlayed:0,videoLength:"0:00",duration:0,videoDuration:0,currentTime:"0:00",realtime:0,isScrubbing:!1,wasPaused:!1,isFullscreen:!1,isFinished:!1,isLoading:!0,isError:!1,player:new at,playbackRetries:0,preloadedSeconds:0,preloadedInterval:{}}},computed:{posterUrl(){const t=this.videoOptions;return(t==null?void 0:t.poster)||(t==null?void 0:t.backgroundUrl)},sourceItems(){return Array.isArray(this.sources)?this.sources:[{src:this.sources}]},withControls(){const t=this.videoOptions;return(t==null?void 0:t.controls)===!1?"hide":""},streamingToken(){return this.isEdgeVideo?this.edgeStreamingToken:this.authToken}},watch:{isPlaying:{immediate:!0,async handler(t){this.playing=t,t?await this.play():this.pause(),this.isHls&&(t?this.$emit("hls-play"):this.$emit("hls-pause"))}},preloadedSeconds(t){this.preloadedInterval={start:ke(this.targetTimestamp).format(),end:ke(this.targetTimestamp).add(t,"seconds").format()},this.$emit("preloaded-interval",this.preloadedInterval)},targetTimestamp:{immediate:!0,handler(t){var o,a;if(!this.isHls)return;const e=this.$refs.player,r=(o=this.preloadedInterval)==null?void 0:o.start,n=(a=this.preloadedInterval)==null?void 0:a.end;if(!(r&&n))return;const i=ke(t).isBetween(ke(r),ke(n),void 0,"[]");e.currentTime=0,i||this.initHls()}}},mounted(){this.isHls&&this.initHls(),this.bindEvents(),this.initializePlayer(),this.initializeFullscreenListeners()},beforeDestroy(){this.unbindEvents(),this.destroyPlayer(),this.removeFullscreenListeners()},methods:{initHls(t=""){var n,i,o,a,u;const e=this.$refs.player,r=this.sources[0];(n=this.player)!=null&&n.stopLoad&&this.player.stopLoad(),at.isSupported()&&(this.isLoading=!0,this.player=new at({startPosition:0,xhrSetup:s=>{this.streamingToken&&s.setRequestHeader("Authorization",`Bearer ${this.streamingToken}`)},...this.hlsOptions}),(i=this.player)==null||i.loadSource(t||r.src),(o=this.player)==null||o.attachMedia(e),(a=this.player)==null||a.on(at.Events.MANIFEST_PARSED,(s,l)=>{var m;const d=(m=l.levels[l.firstLevel])==null?void 0:m.details,p=d==null?void 0:d.startTimeOffset;e.currentTime=p||0,this.playing&&e.play()}),(u=this.player)==null||u.on(at.Events.ERROR,this.handleHlsError))},onContainerClick(){this.pauseOnClick&&this.togglePlay()},handle404Error(){this.isWebRtc||(this.isError=!0,this.isLoading=!1,this.playing=!1)},handleHlsError(t,e){var l;if(!e.fatal)return;this.$emit("error",e);const r=e.type===at.ErrorTypes.NETWORK_ERROR,n=e.type===at.ErrorTypes.MEDIA_ERROR,i=r&&((l=e.networkDetails)==null?void 0:l.status)===404,o=this.$refs.player,a=()=>this.fallbackSrc&&(o==null?void 0:o.currentSrc)!==this.fallbackSrc,u=()=>this.initHls(this.fallbackSrc),s=()=>{if(a()){u();return}this.player.destroy(),this.videoListeners.error?this.videoListeners.error():this.handle404Error()};if(i){s();return}if(r){console.error("A network error occurred:",e),a()?u():this.player.startLoad();return}n&&(console.error("A media error occurred:",e),a()?u():this.player.recoverMediaError()),s()},bindEvents(){const t=this.$refs.player;Ri.forEach(e=>{t.addEventListener(e,()=>this.bindVideoEvent(e),!0)})},onProgress(){const t=this.$refs.player;if(t&&t.buffered.length>0)try{this.preloadedSeconds=t.buffered.end(t.buffered.length-1)}catch(e){console.error("Error while fetching buffered end time:",e)}else console.log("No video data has been buffered yet.")},unbindEvents(){const t=this.$refs.player;Ri.forEach(e=>{t.removeEventListener(e,()=>this.bindVideoEvent(e),!0)})},bindVideoEvent(t){const e=this.$refs.player;if(!e)return;const r=this.$refs.timelineContainer;t==="loadeddata"&&(this.videoLength=en(e.duration)),r&&(t==="timeupdate"&&(this.percentagePlayed=(e==null?void 0:e.currentTime)/(e==null?void 0:e.duration)*100,r==null||r.style.setProperty("--progress-position",this.percentagePlayed.toString())),this.$emit(t,{event,player:e}))},initializePlayer(){const t=this.$refs.player;t&&(t.autoplay&&this.setPlaying(!0),document.addEventListener("mouseup",this.handleScrubbingOnMouseEnd),document.addEventListener("keydown",this.handleKeyDown))},destroyPlayer(){this.player&&(this.player.stopLoad(),this.player.destroy()),window.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("mouseup",this.handleScrubbingOnMouseEnd)},removeFullscreenListeners(){const t=document;t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled?(t.removeEventListener("fullscreenchange",this.handleFullscreenChange),t.removeEventListener("webkitfullscreenchange",this.handleFullscreenChange),t.removeEventListener("mozfullscreenchange",this.handleFullscreenChange),t.removeEventListener("MSFullscreenChange",this.handleFullscreenChange)):console.log("Fullscreen API is not supported in this browser.")},initializeFullscreenListeners(){const t=document;t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled?(t.addEventListener("fullscreenchange",this.handleFullscreenChange),t.addEventListener("webkitfullscreenchange",this.handleFullscreenChange),t.addEventListener("mozfullscreenchange",this.handleFullscreenChange),t.addEventListener("MSFullscreenChange",this.handleFullscreenChange)):console.log("Fullscreen API is not supported in this browser.")},handleFullscreenChange(){const t=document;this.isFullscreen=!!t.fullscreenElement||!!t.mozFullScreenElement||!!t.webkitFullscreenElement||!!t.msFullscreenElement||window.innerWidth==screen.width&&window.innerHeight==screen.height},isLooped(){return this.$refs.player.loop},handleScrubbingOnMouseEnd(t){this.isScrubbing&&this.toggleScrubbing(t)},handleEnded(){this.isFinished=!0,this.playing=!1},handleLoading(){this.isLoading=!1},async play(){const t=this.$refs.player;if(t)try{await t.play(),this.setPlaying(!0)}catch(e){console.error(e),this.playbackRetries+=1,this.isHls&&this.playbackRetries<3&&this.initHls()}},pause(){const t=this.$refs.player;t&&(t.pause(),this.setPlaying(!1))},async togglePlay(){this.playing?this.pause():await this.play()},setPlaying(t){this.playing=t},seekToPercentage(t){const e=this.$refs.player;if(!e)return;const r=t/100*e.duration;e.currentTime=r},convertTimeToDuration(t){return[parseInt(t/60%60,10),parseInt(t%60,10)].join(":").replace(/\b(\d)\b/g,"0$1")},closeFullscreenMode(){document.fullscreenElement&&(Yr().then(()=>{this.isFullscreen=!1}),this.isFullscreen=!1)},openFullscreenMode(){const t=this.$refs.videoContainer;t&&(Zr(t).then(()=>{this.isFullscreen=!0}),this.isFullscreen=!0)},toggleFullscreenMode(){this.isFullscreen?this.closeFullscreenMode():this.openFullscreenMode()},getDuration(){const t=this.$refs.player;this.videoLength=en(t.duration),this.videoDuration=t.duration},handleTimeUpdate(){const t=this.$refs.player,e=this.$refs.timelineContainer;if(!t||!e)return;this.currentTime=en(t.currentTime),this.realtime=t.currentTime;const r=Number(this.realtime)/Number(this.videoDuration);e.style.setProperty("--progress-position",r.toString())},handleTimelineUpdate(t){const e=this.$refs.player;if(!document.body.contains(e))return;const r=this.$refs.timelineContainer,n=r.getBoundingClientRect(),i=Math.min(Math.max(0,t.x-n.x),n.width)/n.width;r.style.setProperty("--preview-position",i.toString()),this.isScrubbing&&(t.preventDefault(),r.style.setProperty("--progress-position",i.toString()))},skip(t=5){const e=this.$refs.player;e.currentTime+=t},async toggleScrubbing(t){const e=this.$refs.timelineContainer,r=this.$refs.videoContainer,n=this.$refs.player;if(!n)return;const i=e.getBoundingClientRect(),o=Math.min(Math.max(0,t.x-i.x),i.width)/i.width;if(this.isScrubbing=(t.buttons&1)===1,r.classList.toggle("scrubbing",this.isScrubbing),this.isScrubbing){this.wasPaused=n.paused,await n.pause(),this.handleTimelineUpdate(t);return}if(this.realtime=o*this.videoDuration,n.currentTime=o*this.videoDuration,this.wasPaused)return;const a=n.play();a!==void 0&&a.then(()=>this.handleTimelineUpdate(t)).catch(console.error)},handleKeyDown(t){var r;const e=(r=document.activeElement)==null?void 0:r.tagName.toLowerCase();if(e!=="input")switch(t.key.toLowerCase()){case" ":if(e==="button")return;this.togglePlay();break;case"k":this.togglePlay();break;case"escape":t.preventDefault(),this.closeFullscreenMode(),this.isFullscreen=!1;break;case"f":this.openFullscreenMode(),this.isFullscreen=!0;break}}}}),U7="";var T0=function(){var e=this,r=e._self._c;return r("div",{ref:"videoContainer",staticClass:"e-video-player video-container paused"},[r("EZoomable",{ref:"zoomable",attrs:{"ignore-pointer-events":e.zoomableIgnorePointerEvents,disabled:!e.isZoomable,"with-overlay":e.withOverlayOnBackground},on:{"on-frame-props-change":function(n){return e.$emit("on-frame-props-change",n)}},scopedSlots:e._u([{key:"overlay",fn:function(){return[e._t("player-container-overlay")]},proxy:!0}],null,!0)},[e._t("background",function(){return[r("div",{staticClass:"e-relative e-overflow-hidden",style:{height:e.$attrs.height,width:e.$attrs.width}},[e.posterUrl?r("img",{staticClass:"e-absolute e-block e-w-full e-scale-150 e-z-[-1] e-inset-0 e-m-auto e-blur-video-poster",style:{height:e.$attrs.height,width:e.$attrs.width},attrs:{src:e.posterUrl,alt:"background-image"},on:{error:function(n){return e.$emit("error",n)}}}):e._e()])]}),r("video",e._g(e._b({ref:"player",class:{"e-w-full e-h-full e-z-[5] e-min-h-[400px]":!0,"e-absolute e-inset-0":e.isZoomable,"e-relative":!e.isZoomable},attrs:{controls:!1,preload:"auto"},on:{ended:e.handleEnded,click:e.onContainerClick,loadedmetadata:e.getDuration,seeking:function(n){e.isLoading=!0},seeked:function(n){e.isLoading=!1},timeupdate:e.handleTimeUpdate,loadeddata:e.handleLoading}},"video",e.videoOptions,!1),e.videoListeners),[e.isWebRtc?e._e():e._l(e.sourceItems,function(n){return r("source",e._g({key:n.src,attrs:{src:n.src,type:n.type},on:{error:e.handle404Error}},e.videoListeners))})],2)],2),e.isLoading||e.showLoadingAnimation?r("div",{staticClass:"spinner-container"},[r("ESpinner",{attrs:{color:e.withColoredLoader,size:e.loaderSize,opacity:"0.6",dark:!0}})],1):e._e(),e._t("default"),e.isError?r("div",{staticClass:"spinner-container e-gap-3"},[e._t("error",function(){return[r("i",{staticClass:"fa-solid fa-video-slash fa-2xl e-align-middle"}),r("span",[e._v("This video file cannot be played.")])]})],2):e._e(),e._t("controls",function(){return[r("div",{class:["video-controls-container",e.withControls]},[r("div",{staticClass:"controls"},[r("button",{ref:"playPauseBtn",staticClass:"play-pause-btn fa-lg fa-solid fas",class:{"fa-play":!e.playing,"fa-pause":e.playing},attrs:{title:e.playing?"pause":"play"},on:{click:e.togglePlay}}),r("div",{staticClass:"duration-container"},[r("div",{ref:"currentTimeElem",staticClass:"current-time"},[e._v(" "+e._s(e.currentTime)+" ")]),e._v(" / "),r("div",{ref:"totalTimeElem",staticClass:"total-time"},[e._v(e._s(e.videoLength))])]),r("div",{ref:"timelineContainer",staticClass:"timeline-container",on:{mousemove:e.handleTimelineUpdate,mousedown:e.toggleScrubbing}},[e._m(0)]),r("button",{ref:"fullScreenBtn",staticClass:"full-screen-btn fa-solid",class:{"fa-expand":!e.isFullscreen,"fa-compress":e.isFullscreen},on:{click:e.toggleFullscreenMode}})])])]},{play:e.play,pause:e.pause,isPlaying:e.playing,playerInstance:e.player,toggleFullscreen:e.toggleFullscreenMode,currentTime:e.currentTime,videoLength:e.videoLength,isFullscreen:e.isFullscreen})],2)},k0=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"timeline"},[e("div",{staticClass:"thumb-indicator"})])}],$0=H(S0,T0,k0,!1,null,"d7aeb2b0",null,null);const Hi=$0.exports,Ke={bind(t,e){const{value:r}=e;if(typeof r!="function"){console.error("Invalid callback function provided to v-resize-observer");return}const n=new ResizeObserver(i=>{i[0]&&r(i[0])});n.observe(t),t.__resizeObserver__=n},unbind(t){t.__resizeObserver__&&(t.__resizeObserver__.disconnect(),delete t.__resizeObserver__)}},E0=(t,e)=>t===e||t.contains(e),M0=(t,e)=>r=>{E0(t,r.target)||e(r)},Ni=["mousedown","touchstart","click"],tn={bind(t,e){const r=t,n=e.value;if(typeof n!="function"){console.warn("v-click-outside requires a function value");return}r.clickOutsideHandler={events:Ni,handler:M0(r,n),callback:n},queueMicrotask(()=>{Ni.forEach(i=>{document.addEventListener(i,r.clickOutsideHandler.handler)})})},unbind(t){const e=t;e.clickOutsideHandler&&(e.clickOutsideHandler.events.forEach(r=>{document.removeEventListener(r,e.clickOutsideHandler.handler)}),delete e.clickOutsideHandler)}},ji=[{name:"resize-observer",definition:Ke},{name:"click-outside",definition:tn}],Je={transparencyGradient:"transparency-gradient",transparencyGradientLight:"transparency-gradient-light",transparencyGradientHover:"transparency-gradient-hover",loadingGradient:"loading-gradient",stripedPattern:"stripedPattern",clipPath:"clip-path"},me={xAxis:"e-x-axis",xAxisDark:"e-x-axis--dark",xAxisOverview:"e-x-axis-overview",xAxisDetailed:"e-x-axis-detailed",xAxisBackground:"e-x-axis-background",eventGroup:"event-group",eventGroupBg:"event-group-bg",eventGroupContent:"event-group-content",eventRect:"event-rect",eventRectContainer:"event-rect-container",eventBarContainer:"event-bar-container",eventBarContainerHovered:"event-bar-container--hovered",eventBarContainerSelected:"event-bar-container--selected",eventBar:"event-bar",eventBarHoverZone:"event-bar-hover-zone",eventRectText:"event-rect-text",eventRectHovered:"event-rect--hovered",eventRectSelected:"event-rect--selected",labelGroup:"label-g",labelBg:"label-bg",labelBgFill:"label-bg-fill",labelText:"label-text",loadingIndicator:"loading-indicator",_legacyLabelGroup:"legacy-label-g",_legacyLabelBg:"legacy-label-bg",_legacyLabelBgFill:"legacy-label-bg-fill",_legacyLabelText:"legacy-label-text",_legacyLoadingIndicator:"legacy-loading-indicator",selectedTimestampCursor:"selected-timestamp-cursor",marker:"marker",markerLabel:"marker-label",markerLine:"marker-line",markerDragged:"marker--dragged",milestone:"e-tl-milestone",milestoneBullet:"e-tl-milestone--bullet",milestoneDot:"e-tl-milestone--dot",milestoneContent:"e-tl-milestone-content",milestoneLine:"e-tl-milestone-line",milestonesContainer:"e-tl-milestones",milestoneHovered:"e-tl-milestone--hovered",milestoneSelected:"e-tl-milestone--selected",milestoneLabel:"e-tl-milestone-label",milestoneDotContainer:"e-tl-milestone-dot-container",milestoneDotLine:"e-tl-milestone-dot-line",milestoneDotDot:"e-tl-milestone-dot-dot",milestoneDotHovered:"e-tl-milestone-dot--hovered",barChartGroup:"bar-chart-group",lineGraphGroup:"line-graph-group",lineGraphGroupLabel:"line-graph-group-label",areaGraphPath:"area-graph-path",lineGraphPath:"line-graph-path",lineGraphHoverZone:"line-graph-hover-zone",lineGraphDot:"line-graph-dot",forbiddenInterval:"forbidden-interval"};function Ve({timestamp:t,timezone:e}){const r=Gi(t,e);return ke(t).add(r,"minutes").toDate()}function Ft({date:t,timezone:e}){const r=new Date(t).getTimezoneOffset(),n=Gi(t,e);return ke(t).add(r,"minutes").utcOffset(n,!0).format()}function Gi(t,e){return e?ke.tz(t,e).utcOffset():L0(t)}function L0(t){return ke.parseZone(t).utcOffset()}const D0=A.extend({name:"ETimelineMilestone",directives:{resizeObserver:Ke},props:{timeScale:{type:Function,required:!0},milestone:{type:Object,required:!0},y:{type:Number,required:!0},height:{type:Number,default:18},size:{type:Number,default:18},borderColor:{type:String,default:"#eee"},backgroundColor:{type:String,default:"#aaa"},borderWidth:{type:Number,default:2},transitionDuration:{type:Number,default:500},dot:{type:Boolean,default:!1},dotSize:{type:Number,default:8},lineWidth:{type:Number,default:2},lineHeight:{type:Number,default:28},timezone:{type:[String,void 0],default:void 0}},data(){return{classNames:me,timeouts:[],isInitialRender:!0,isMouseOver:!1,containerWidth:"",containerHeight:""}},computed:{transitionStyles(){return this.isInitialRender?{}:{transition:`transform ${this.transitionDuration}ms, width ${this.transitionDuration}ms, height ${this.transitionDuration}ms, padding ${this.transitionDuration}ms, border-radius ${this.transitionDuration}ms`}},sizeStyles(){return this.dot?{}:{width:`${this.isMouseOver?this.containerWidth:this.size}px`,height:`${this.isMouseOver?this.containerHeight:this.size}px`}},positionStyles(){return{left:`${this.timeScale(this.tzStringToDate(this.milestone.timestamp))}px`,top:`${this.linePosition}px`,transform:this.dot&&this.isMouseOver?`translateY(calc(-100% - ${this.lineHeight}px))`:""}},styles(){return{...this.sizeStyles,...this.positionStyles,backgroundColor:this.backgroundColor,borderColor:this.borderColor,borderWidth:`${this.borderWidth}px`,borderStyle:"solid",...this.transitionStyles}},linePosition(){const t=this.height/2;return this.y+t-1},contentStyles(){return this.transitionStyles},computedTransitionDuration(){return this.isInitialRender?0:this.transitionDuration},labelStyles(){return{transition:`opacity ${this.computedTransitionDuration}ms`}},dotContainerStyles(){return{top:this.isMouseOver?`calc(100% - ${this.borderWidth}px)`:`calc(50% + ${this.dotSize/2}px)`,height:`calc(${this.lineHeight}px + ${this.dotSize}px)`,left:`calc(50% - ${this.lineWidth}px / 2)`,transition:`${this.computedTransitionDuration}ms`}},lineStyles(){return{bottom:`${this.dotSize/2}px`,left:`calc(50% - ${this.lineWidth}px / 2)`,width:`${this.lineWidth}px`,height:this.isMouseOver?`${this.lineHeight}px`:"0",backgroundColor:this.borderColor,transition:`${this.computedTransitionDuration}ms`}},dotStyles(){return{top:`${this.lineHeight}px`,left:`calc(50% - ${this.dotSize}px / 2)`,width:`${this.dotSize}px`,height:`${this.dotSize}px`,backgroundColor:this.borderColor,transition:`${this.computedTransitionDuration}ms`}}},mounted(){this.$nextTick(()=>{this.dot||(this.onMilestoneMouseOver(),this.onMilestoneMouseLeave()),this.isInitialRender=!1})},methods:{onMilestoneMouseOver(t){if(this.isMouseOver=!0,this.$emit("hovered-milestone",this.milestone),this.dot)return;const e=(t==null?void 0:t.target)||this.$refs.container;if(!e)return;const r=e.children[0];if(!r)return;const n=r.children[0];if(!n)return;const i=n.getBoundingClientRect(),o=e.dataset.timeoutId;o&&(clearTimeout(Number(o)),e.dataset.timeoutId=""),e.dataset.initialWidth||(e.dataset.initialWidth=e.style.width),e.dataset.initialHeight||(e.dataset.initialHeight=e.style.height),this.containerWidth||(this.containerWidth=e.dataset.initialContentWidth=String(i.width)),this.containerHeight||(this.containerHeight=e.dataset.initialContentHeight=String(i.height)),e.dataset.transitionStart=String(Date.now()),e.style.borderRadius="0.5em",e.classList.add(me.milestoneHovered),r.style.opacity="1",r.style.width=this.containerWidth+"px",r.style.height=this.containerHeight+"px"},onMilestoneMouseMove(){this.timeouts.forEach(t=>clearTimeout(t)),this.isMouseOver=!0},onMilestoneMouseLeave(t){if(this.$emit("hovered-milestone",null),this.dot){this.timeouts.push(setTimeout(()=>{this.isMouseOver=!1},this.transitionDuration+100));return}const e=(t==null?void 0:t.target)||this.$refs.container;if(!e)return;e.style.width=e.dataset.initialWidth||"",e.style.height=e.dataset.initialHeight||"",e.style.borderRadius="10em";const r=e.children[0];if(!r)return;r.style.width="0",r.style.height="0",r.style.opacity="0";const n=Date.now()-Number(e.dataset.transitionStart),i=n>this.transitionDuration?this.transitionDuration:n,o=setTimeout(()=>{e.classList.remove(me.milestoneHovered),e.dataset.timeoutId=""},i);e.dataset.timeoutId=String(o),this.timeouts.push(o),this.isMouseOver=!1},onMilestoneClick(t,e){this.$emit("milestone-click",e)},tzStringToDate(t){return Ve({timestamp:t,timezone:this.timezone})}}}),Z7="";var P0=function(){var e=this,r=e._self._c;return r("div",{ref:"container",class:{[e.classNames.milestone]:!0,[e.classNames.milestoneBullet]:!e.dot,[e.classNames.milestoneHovered]:e.isMouseOver&&!e.dot,[e.classNames.milestoneDot]:e.dot,[e.classNames.milestoneDotHovered]:e.isMouseOver&&e.dot},style:e.styles,attrs:{tabindex:"0"},on:{mouseover:n=>e.onMilestoneMouseOver(n),mousemove:e.onMilestoneMouseMove,mouseleave:n=>e.onMilestoneMouseLeave(n),click:n=>e.onMilestoneClick(n,e.milestone)}},[r("div",{class:e.classNames.milestoneContent,style:e.contentStyles},[e._t("content",function(){var n;return[r("span",[e._v(" "+e._s((n=e.milestone)==null?void 0:n.text)+" ")])]})],2),e.dot?r("div",{class:e.classNames.milestoneDotContainer,style:e.dotContainerStyles},[r("div",{class:e.classNames.milestoneDotLine,style:e.lineStyles}),r("div",{class:e.classNames.milestoneDotDot,style:e.dotStyles})]):r("div",{class:e.classNames.milestoneLabel,style:e.labelStyles},[e._t("label")],2)])},O0=[],z0=H(D0,P0,O0,!1,null,null,null,null);const B0=z0.exports,I0=A.extend({name:"ETimelineMarker",props:{marker:{type:Object,required:!0},height:{type:Number,required:!0},hidden:{type:[Boolean,void 0],default:void 0},position:{type:[Number,void 0],default:void 0}},methods:{getMarkerClass(t){return{"marker--hidden":this.hidden,"marker--draggable":t==null?void 0:t.isDraggable,...t.className?{[t==null?void 0:t.className]:!0}:{}}},getMarkerContainerStyle(){return{left:`${this.position}px`}},getMarkerLabelStyle(t){return{background:t.color,color:t.textColor||""}},getMarkerLineStyle(t){return{background:t.color,height:`${this.height+12}px`}}}}),Y7="";var F0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"marker e-absolute e-h-full e-top-0 e-z-10",class:e.getMarkerClass(e.marker),style:e.getMarkerContainerStyle(),on:{click:function(n){return e.$emit("marker-clicked",e.marker)}}},[r("div",{staticClass:"marker-label e-absolute"},[r("div",{staticClass:"marker-label-text",style:e.getMarkerLabelStyle(e.marker)},[e._t(`marker.${e.marker.id}`,function(){return[e._v(" "+e._s(e.marker.label)+" ")]},{marker:e.marker})],2)]),r("div",{staticClass:"marker-line e-absolute e-pointer-events-none",style:e.getMarkerLineStyle(e.marker)})])},A0=[],R0=H(I0,F0,A0,!1,null,"614947ed",null,null);const H0=R0.exports,N0=A.extend({name:"ETimelineMarkers",components:{ETimelineMarker:H0},props:{markers:{type:Array,default:()=>[]},timeScale:{type:Function,required:!0},timeZone:{type:[String,void 0],default:void 0},height:{type:Number,required:!0},svgLeft:{type:Number,default:void 0},stickyMarkers:{type:Boolean,default:!1}},data(){return{markersPositions:{},markersDragBehavior:null,initialMarkerDragMouseOffset:0}},watch:{timeScale:{handler(){this.updateMarkers()},deep:!0},markers(){this.updateMarkers()}},methods:{initMarkersDragBehavior(){this.removeMarkersDragBehavior();const t=this;this.markersDragBehavior=O.drag().on("start",function(e,r){t.handleMarkerDrag({marker:r,markerElement:O.select(this),dragEvent:e})}).on("drag",function(e,r){t.handleMarkerDrag({marker:r,markerElement:O.select(this),dragEvent:e})}).on("end",function(e,r){t.handleMarkerDrag({marker:r,markerElement:O.select(this),dragEvent:e})}),O.selectAll(`.${me.marker}`).data(this.markers).call(this.markersDragBehavior)},removeMarkersDragBehavior(){this.markersDragBehavior&&(this.markersDragBehavior.on("start",null).on("drag",null).on("end",null),O.selectAll(`.${me.marker}`).call(this.markersDragBehavior))},handleMarkerDrag({marker:t,markerElement:e,dragEvent:r}){var u;if(!t.isDraggable)return;(u=r.sourceEvent)==null||u.preventDefault(),r.type==="start"&&(this.initialMarkerDragMouseOffset=r.x-e.node().querySelector(`.${me.markerLine}`).getBoundingClientRect().left,e.classed(me.markerDragged,!0));const n=r.x-this.initialMarkerDragMouseOffset,i=this.timeScale.invert(n-this.svgLeft);let o=this.timeScale(i);const a=this.isTimestampAllowedForMarker(i,t);if(r.type==="drag"&&a&&e.attr("style",`left: ${o}px`),r.type==="end"){const s=t.id||t.timestamp;o=a?o:this.timeScale(this.tzStringToDate(t.timestamp)),this.markersPositions={...this.markersPositions,[s]:{...this.markersPositions[s],position:o}},e.classed(me.markerDragged,!1)}r.type!=="start"&&this.$emit(`marker-drag-${r.type}`,{marker:t,newTimestamp:a?this.dateToTzString(i):t.timestamp})},updateMarkers(){if(!this.markers.length)return;const t=12,e=200;this.markers.forEach((r,n,i)=>{const o=typeof r.timestamp=="string"?this.tzStringToDate(r.timestamp):r.timestamp,a=this.timeScale(o);let u=!1;const s=this.stickyMarkers?Math.max(a,n*t):a;if(n<i.length-1){const l=i[n+1],d=typeof l.timestamp=="string"?this.tzStringToDate(l.timestamp):l.timestamp,p=this.timeScale(d);u=(this.stickyMarkers?Math.max(p,(n+1)*t):a)-s<e+t}this.markersPositions={...this.markersPositions,[r.id]:{isHidden:u,position:s}}}),this.initMarkersDragBehavior()},isTimestampAllowedForMarker(t,e){return(e.minDate?t>=this.tzStringToDate(e.minDate):!0)&&(e.maxDate?t<=this.tzStringToDate(e.maxDate):!0)},tzStringToDate(t){return Ve({timestamp:t,timezone:this.timeZone})},dateToTzString(t){return Ft({date:t,timezone:this.timeZone})}}});var j0=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-tl-markers"},e._l(e.markers,function(n){var i,o;return r("ETimelineMarker",{key:n.id,attrs:{marker:n,height:e.height,position:(i=e.markersPositions[n.id])==null?void 0:i.position,hidden:(o=e.markersPositions[n.id])==null?void 0:o.isHidden,"data-id":n.id},on:{"marker-clicked":function(a){return e.$emit("marker-clicked",a)}},scopedSlots:e._u([{key:`marker.${n.id}`,fn:function(){return[e._t(`marker.${n.id}`,function(){return[e._v(" "+e._s(n.label)+" ")]},{marker:n})]},proxy:!0}],null,!0)})}),1)},G0=[],W0=H(N0,j0,G0,!1,null,null,null,null);const q0=W0.exports,U0=A.extend({name:"EZoomBehavior",props:{width:{type:[Number,void 0],default:void 0},domain:{type:Array,required:!0},focusedDomain:{type:[Array,void 0],default:void 0},timezone:{type:String,default:"UTC"},disabled:{type:Boolean,default:!1},scalingDuration:{type:Number,default:400},translationDuration:{type:Number,default:400},focusedTimestamp:{type:[String,Date,Number],default:""}},data(){return{timeScale:null,initialTimeScale:null,zoomBehavior:null,selection:null,isTransitioning:!1,container:null,transformDiff:{translation:0,scale:1},lastTransform:{x:0,y:0,k:1},isLeftBoundaryReached:!1,isRightBoundaryReached:!1,resetBoundariesTimeout:0}},computed:{minDate(){const[t]=this.domain;return this.toD3Date(t)},maxDate(){const[,t]=this.domain;return this.toD3Date(t)},focusedStartDate(){const[t]=this.focusedDomain||this.domain;return this.toD3Date(t)},focusedEndDate(){const[,t]=this.focusedDomain||this.domain;return this.toD3Date(t)}},watch:{timeScale(){this.emitFocusedDomainChange(_t.Zoom),this.emitTimeScaleChange()},focusedDomain(t){t&&this.zoomToFocusedDomain(t)},focusedTimestamp(t){t&&this.panToTimestamp(t)},width:{handler(t,e){!t||t===e||(this.timeScale=O.scaleTime().domain([this.focusedStartDate,this.focusedEndDate]).range([0,t]))}}},mounted(){this.initRefs(),this.initTimeScale(),this.initZoomBehavior(),this.emitTimeScaleChange(),this.emitFocusedDomainChange(_t.Initial)},methods:{initRefs(){this.container=this.$refs.container},initTimeScale(){this.timeScale=O.scaleTime().domain([this.focusedStartDate,this.focusedEndDate]).range([0,this.getWidth()]),this.initialTimeScale=this.timeScale.copy()},calculateZoomExtents(){const t=[this.focusedStartDate,this.focusedEndDate],e=this.getWidth(),r=this.maxDate.getTime()-this.minDate.getTime(),o=[(this.focusedEndDate.getTime()-this.focusedStartDate.getTime())/r,1/0],a=this.initialTimeScale.copy();a.domain(t);const u=a(this.minDate),s=-(e-a(this.maxDate));return{scaleExtent:o,translateExtent:[[u||-1/0,0],[s||1/0,0]]}},initZoomBehavior(){const{scaleExtent:t,translateExtent:e}=this.calculateZoomExtents();this.zoomBehavior=O.zoom().scaleExtent(t).translateExtent(e).on("zoom",this.handleZoom),this.selection=O.select(this.container),this.selection.call(this.zoomBehavior)},handleZoom(t){const e=t.transform.rescaleX(this.initialTimeScale.copy()),[r,n]=e.domain(),i=r<=this.minDate,o=n>=this.maxDate;if(i||o){const u=O.zoomIdentity.translate(this.lastTransform.x,this.lastTransform.y).scale(this.lastTransform.k);this.selection.call(this.zoomBehavior.transform,u),this.updateBoundaries(i,o);return}const a=t.transform.k/this.lastTransform.k;this.transformDiff={scale:a,translation:t.transform.x-this.lastTransform.x},this.lastTransform={...t.transform},this.timeScale=t.transform.rescaleX(this.timeScale).domain([r,n])},toD3Date(t){return Ve({timestamp:t,timezone:this.timezone})},toDateString(t){return Ft({date:t,timezone:this.timezone})},getWidth(){var t,e;return this.width?this.width:(e=(t=this.container)==null?void 0:t.getBoundingClientRect())==null?void 0:e.width},zoomToFocusedDomain(t){const[e,r]=t,n=this.toD3Date(e!=null?e:this.focusedStartDate),i=this.toD3Date(r!=null?r:this.focusedEndDate);if(!this.timeScale)return;const[o,a]=this.timeScale.domain();if(n.getTime()===o.getTime()&&i.getTime()===a.getTime())return;const u=this.initialTimeScale.domain().map(h=>h.getTime()),s=u[1]-u[0],l=i.getTime()-n.getTime(),d=.1*l,p=l+2*d;let m=s/p;const b=this.zoomBehavior.scaleExtent();m=Math.min(Math.max(m,b[0]),b[1]);const x=this.initialTimeScale.copy().domain([n,i]);this.selection.transition().duration(this.scalingDuration/2).call(this.zoomBehavior.scaleTo,m).on("end",()=>this.translateIntervalIntoView(n,i,m)),this.timeScale=x},translateIntervalIntoView(t,e,r){const n=this.timeScale(t),i=this.timeScale(e),o=(n+i)/2,u=this.getWidth()/2-o,s=O.zoomTransform(this.selection.node());this.selection.transition().on("start",()=>{this.isTransitioning=!0,this.$emit("animation-start")}).on("end",()=>{this.isTransitioning=!1,this.$emit("animation-end")}).duration(this.translationDuration/2).call(this.zoomBehavior.transform,O.zoomIdentity.translate(s.x+u,s.y).scale(r))},emitTimeScaleChange(){this.$emit("time-scale-change",this.timeScale)},emitFocusedDomainChange(t){if(!this.selection.node()||this.isTransitioning||!this.timeScale)return;const[r,n]=this.timeScale.domain(),i=this.toDateString(r),o=this.toDateString(n);this.$emit("visible-interval-change",{fromDate:i,toDate:o,trigger:t,transform:this.transformDiff})},panToTimestamp(t){const e=new Date(t),r=this.timeScale(e),n=O.zoomTransform(this.selection.node()),i=n.x-r+this.getWidth()/2;this.selection.transition().duration(this.translationDuration).call(this.zoomBehavior.transform,O.zoomIdentity.translate(i,0).scale(n.k)).on("end",()=>{this.emitFocusedDomainChange(_t.Zoom)})},updateBoundaries(t,e){this.isLeftBoundaryReached=t,this.isRightBoundaryReached=e,clearTimeout(this.resetBoundariesTimeout),this.resetBoundariesTimeout=setTimeout(this.resetBoundaries,300)},resetBoundaries(){this.isLeftBoundaryReached=!1,this.isRightBoundaryReached=!1}}}),X7="";var Z0=function(){var e=this,r=e._self._c;return r("div",{ref:"container",staticClass:"e-zoom-behavior"},[r("transition",{attrs:{name:"boundary-fade"}},[e.isLeftBoundaryReached?r("div",{staticClass:"e-zoom-behavior__boundary e-zoom-behavior__boundary__left e-bg-gradient-to-r e-from-red-700 e-to-transparent"}):e._e()]),e._t("default",null,{timeScale:e.timeScale}),r("transition",{attrs:{name:"boundary-fade"}},[e.isRightBoundaryReached?r("div",{staticClass:"e-zoom-behavior__boundary e-zoom-behavior__boundary__right e-bg-gradient-to-l e-from-red-700 e-to-transparent"}):e._e()])],2)},Y0=[],X0=H(U0,Z0,Y0,!1,null,null,null,null);const V0=X0.exports,Q0=A.extend({name:"EXAxis",props:{ticksConfigs:{type:Array,required:!0},timeScale:{type:Function,required:!0},x:{type:Number,default:0},y:{type:Number,default:0},height:{type:Number,default:10},dark:{type:Boolean,default:!1}},data(){return{classNames:me}},computed:{classes(){return{[me.xAxis]:!0,[me.xAxisDark]:this.dark}},axis(){return O.axisBottom(this.timeScale).ticks(this.currentTicksConfig.interval).tickFormat(this.currentTicksConfig.formatFn).tickSizeOuter(0).tickSizeInner(this.height)},density(){const t=this.timeScale.invert(0).getTime(),e=this.timeScale.invert(1).getTime(),r=36e5,n=(e-t)/r;return isNaN(n)?1:n},currentTicksConfig(){const{interval:t,format:e}=this.ticksConfigs.find(n=>n.precision>=this.density&&n.interval);return{formatFn:n=>typeof e=="function"?e(n):O.timeFormat(e)(n),interval:t}}},watch:{timeScale:{handler(){this.update()},deep:!0},currentTicksConfig:{handler(){this.update()},deep:!0},height(){this.updateTicksSize()}},mounted(){this.update()},methods:{update(){const t=this.$refs.container;O.select(t).call(this.axis),this.translateTicksText()},translateTicksText(){const t=this.$refs.container;O.select(t).selectAll(".tick text").each(function(){O.select(this).attr("x",5).attr("y",0).style("text-anchor","start")})},updateTicksSize(){this.axis.tickSizeOuter(0).tickSizeInner(this.height),this.update()}}}),V7="";var K0=function(){var e=this,r=e._self._c;return r("g",{ref:"container",class:e.classes,attrs:{"text-anchor":"middle",transform:`translate(${e.x}, ${e.y})`}})},J0=[],el=H(Q0,K0,J0,!1,null,null,null,null);const rn=el.exports,At=t=>{const e=O.utcFormat("%_d")(t),r=tl(parseInt(e));return`${e}${r}`},Wi=t=>new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()+1)).getUTCDate()===1?"":O.utcFormat("%-d")(t),bt=t=>["0"," 0","00"].includes(O.utcFormat("%H")(t))?"":`${O.utcFormat("%H")(t)}h`,st=t=>{const e=O.utcFormat("%H:%M")(t);return e==="00:00"?"":e},nn=t=>O.utcFormat("%M:%S")(t),qi=t=>`${O.utcFormat("%Hh%Mm")(t)}`,sn=t=>{const e=st(t),r=At(t),n=O.utcFormat("%B")(t);return e||`${n} ${r}`},an=t=>{const e=st(t),r=Number.parseInt(O.utcFormat("%H")(t)),n=At(t),i=O.utcFormat("%B")(t);return e&&r%6===0?`${i} ${n} ${e}`:sn(t)},tl=t=>{if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},xt=t=>e=>{const r=O.utcFormat("%H")(e);return!(O.utcFormat("%M")(e)==="00"&&Number.parseInt(r)%t===0)},on=t=>e=>{const r=O.utcFormat("%M")(e);return Number.parseInt(r)%t!==0},Ui=t=>e=>{const r=O.utcFormat("%M")(e),n=O.utcFormat("%S")(e);return Number.parseInt(r)%t!==0&&Number.parseInt(n)===0},J={_10_seconds:25e-6,_20_seconds:1e-4,_30_seconds:15e-5,_1_minute:3e-4,_2_minutes:75e-5,_5_minutes:.002,_15_minutes:.005,_30_minutes:.01,_1_hour:.025,_2_hours:.05,_3_hours:.1,_4_hours:.15,_6_hours:.25,_1_day:1,_2_days:2,_1_month:8,_1_month_abbr:13,_1_month_letter:22,_3_months:33,_2_year:48,_5_years:120,_20_years:480,_75_years:1800,_300_years:7200,infinity:1/0},ln={[rt.Overview]:[{precision:J._30_seconds,interval:O.utcMinute.every(2),format:qi},{precision:J._1_minute,interval:O.utcMinute.every(5),format:qi},{precision:J._2_minutes,interval:O.utcMinute.every(10),format:sn},{precision:J._5_minutes,interval:O.utcMinute.every(20),format:an},{precision:J._15_minutes,interval:O.utcHour,format:an},{precision:J._30_minutes,interval:O.utcHour.every(2),format:an},{precision:J._2_hours,interval:O.utcHour.every(6),format:t=>{const e=st(t),r=At(t),n=O.utcFormat("%B")(t);return e||`${n} ${r}`}},{precision:J._3_hours,interval:O.utcHour.every(12),format:sn},{precision:J._6_hours,interval:O.utcHour.every(24),format:t=>{const e=At(t),r=O.utcFormat("%b")(t),n=O.utcFormat("%Y")(t);return`${r} ${e} ${n}`}},{precision:J._2_days,interval:O.utcMonth,format:"%Y – %B"},{precision:J._2_year,interval:O.utcMonth.every(3),format:"%Y Q%q"},{precision:J._5_years,interval:O.utcYear.every(5),format:"%Y"},{precision:J._20_years,interval:O.utcYear.every(20),format:"%Y"},{precision:J._75_years,interval:O.utcYear.every(75),format:"%Y"},{precision:J._300_years,interval:O.utcYear.every(300),format:"%Y"},{precision:J.infinity,interval:O.utcMonth.every(12),format:"%Y"}],[rt.Detailed]:[{precision:J._10_seconds,interval:O.utcSecond.every(10),format:nn},{precision:J._20_seconds,interval:(ys=O.utcSecond.every(20))==null?void 0:ys.filter(Ui(2)),format:nn},{precision:J._30_seconds,interval:(Cs=O.utcSecond.every(30))==null?void 0:Cs.filter(Ui(2)),format:nn},{precision:J._1_minute,interval:O.utcMinute.filter(on(5)),format:st},{precision:J._2_minutes,interval:(bs=O.utcMinute.every(2))==null?void 0:bs.filter(on(10)),format:st},{precision:J._5_minutes,interval:(xs=O.utcMinute.every(5))==null?void 0:xs.filter(on(20)),format:st},{precision:J._15_minutes,interval:(ws=O.utcMinute.every(15))==null?void 0:ws.filter(xt(1)),format:st},{precision:J._30_minutes,interval:(Ss=O.utcMinute.every(30))==null?void 0:Ss.filter(xt(2)),format:st},{precision:J._1_hour,interval:O.utcHour.filter(xt(6)),format:bt},{precision:J._2_hours,interval:(Ts=O.utcHour.every(2))==null?void 0:Ts.filter(xt(6)),format:bt},{precision:J._3_hours,interval:(ks=O.utcHour.every(3))==null?void 0:ks.filter(xt(12)),format:bt},{precision:J._4_hours,interval:O.utcHour.every(4),format:bt},{precision:J._6_hours,interval:O.utcHour.every(6),format:bt},{precision:J._1_day,interval:O.utcDay,format:Wi},{precision:J._2_days,interval:O.utcDay.every(2),format:Wi},{precision:J._1_month,interval:O.utcMonth,format:"%B"},{precision:J._1_month_abbr,interval:O.utcMonth,format:"%b"},{precision:J._1_month_letter,interval:O.utcMonth,format:t=>O.utcFormat("%B")(t).charAt(0)},{precision:J._3_months,interval:O.utcMonth.every(3),format:"Q%q"},{precision:J._2_year,interval:O.utcMonth.every(6),format:"Q%q"},{precision:J._5_years,interval:O.utcYear.every(2),format:"%Y"},{precision:J._20_years,interval:O.utcYear.every(4),format:"%Y"},{precision:J._75_years,interval:O.utcYear.every(25),format:"%Y"},{precision:J._300_years,interval:O.utcYear.every(100),format:"%Y"},{precision:J.infinity,interval:O.utcYear.every(500),format:""}],[rt.DetailedBackground]:[{precision:J._10_seconds,interval:O.utcSecond,format:""},{precision:J._20_seconds,interval:O.utcSecond.every(5),format:""},{precision:J._30_seconds,interval:O.utcSecond.every(10),format:""},{precision:J._1_minute,interval:O.utcSecond.every(20),format:""},{precision:J._2_minutes,interval:O.utcSecond.every(30),format:""},{precision:J._5_minutes,interval:O.utcMinute,format:""},{precision:J._15_minutes,interval:O.utcMinute.every(3),format:""},{precision:J._30_minutes,interval:O.utcMinute.every(6),format:""},{precision:J._1_hour,interval:O.utcMinute.every(15),format:""},{precision:J._2_hours,interval:O.utcMinute.every(30),format:""},{precision:J._3_hours,interval:O.utcHour,format:""},{precision:J._4_hours,interval:O.utcHour,format:""},{precision:J._6_hours,interval:O.utcMinute.every(120),format:""},{precision:J._1_day,interval:O.utcHour.every(8),format:""},{precision:J._2_days,interval:O.utcHour.every(12),format:""},{precision:J._1_month,interval:O.utcDay.filter(t=>{const e=t.getUTCDate(),r=new Date(t.getUTCFullYear(),t.getUTCMonth()+1,0).getUTCDate(),n=Math.ceil(r/5);return e===n||e===2*n||e===3*n||e===4*n}),format:""},{precision:J._1_month_abbr,interval:O.utcDay.filter(t=>{const e=t.getUTCDate(),r=new Date(t.getUTCFullYear(),t.getUTCMonth()+1,0).getUTCDate(),n=Math.ceil(r/4);return e===n||e===2*n||e===3*n}),format:""},{precision:J._1_month_letter,interval:O.utcDay.filter(t=>{const e=t.getUTCDate(),r=new Date(t.getUTCFullYear(),t.getUTCMonth()+1,0).getUTCDate(),n=Math.ceil(r/2);return e===n}),format:""},{precision:J._3_months,interval:O.utcMonth,format:""},{precision:J._3_months,interval:O.utcMonth,format:""},{precision:J._2_year,interval:O.utcYear,format:""},{precision:J._5_years,interval:O.utcYear.every(2),format:""},{precision:J._20_years,interval:O.utcYear.every(5),format:""},{precision:J._75_years,interval:O.utcYear.every(20),format:""},{precision:J._300_years,interval:O.utcYear.every(100),format:""},{precision:J.infinity,interval:O.utcYear.every(500),format:""}]},rl=A.extend({name:"EXAxisOverview",components:{EXAxis:rn},props:{timeScale:{type:Function,required:!0},x:{type:Number,default:0},y:{type:Number,default:0},height:{type:Number,default:10},dark:{type:Boolean,default:!1}},data(){return{classNames:me,ticksConfigs:ln[rt.Overview]}}}),Q7="";var nl=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EXAxis",{class:e.classNames.xAxisOverview,attrs:{x:e.x,y:e.y,dark:e.dark,height:e.height,"time-scale":e.timeScale,"ticks-configs":e.ticksConfigs}})},il=[],sl=H(rl,nl,il,!1,null,null,null,null);const al=sl.exports,ol=A.extend({name:"EXAxisDetailed",components:{EXAxis:rn},props:{timeScale:{type:Function,required:!0},x:{type:Number,default:0},y:{type:Number,default:0},height:{type:Number,default:10},dark:{type:Boolean,default:!1}},data(){return{classNames:me,ticksConfigs:ln[rt.Detailed]}}}),K7="";var ll=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EXAxis",{class:e.classNames.xAxisDetailed,attrs:{x:e.x,y:e.y,dark:e.dark,height:e.height,"time-scale":e.timeScale,"ticks-configs":e.ticksConfigs}})},cl=[],ul=H(ol,ll,cl,!1,null,null,null,null);const dl=ul.exports,hl=A.extend({name:"EXAxisBackground",components:{EXAxis:rn},props:{timeScale:{type:Function,required:!0},x:{type:Number,default:0},y:{type:Number,default:0},height:{type:Number,default:10},dark:{type:Boolean,default:!1}},data(){return{classNames:me,ticksConfigs:ln[rt.DetailedBackground]}}}),J7="";var fl=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EXAxis",{class:e.classNames.xAxisBackground,attrs:{x:e.x,y:e.y,dark:e.dark,height:e.height,"time-scale":e.timeScale,"ticks-configs":e.ticksConfigs}})},pl=[],ml=H(hl,fl,pl,!1,null,null,null,null);const gl=ml.exports,vl=A.extend({name:"ETimelineSVGDefs",props:{eventsGroups:{type:Object,default:()=>({})},forbiddenIntervalColor:{type:String,default:"#ddd"},width:{type:Number,required:!0},height:{type:Number,required:!0}},data(){return{defs:Je,TimelineChartType:He,transparencyGradients:[{id:"transparency-gradient-light",stop:100,opacity:.4},{id:"transparency-gradient",stop:130,opacity:.4},{id:"transparency-gradient-hover",stop:130,opacity:.6}]}}});var _l=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("defs",{ref:"mainContainer",staticClass:"e-timeline"},[e._l(e.eventsGroups,function(n,i){return[r("linearGradient",{key:`${e.defs.loadingGradient}-${i}`,attrs:{id:`${e.defs.loadingGradient}-${i}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"}},[r("stop",{attrs:{offset:"0%","stop-color":n.color,"stop-opacity":"0"}}),r("stop",{attrs:{offset:"50%","stop-color":n.color,"stop-opacity":"0.6"}}),r("stop",{attrs:{offset:"100%","stop-color":n.color,"stop-opacity":"0"}})],1),n.chartType===e.TimelineChartType.LineGraph?[e._l(e.transparencyGradients,function({id:o,stop:a,opacity:u}){return r("linearGradient",{key:`${o}-${i}-${n.chartType}`,attrs:{id:`${o}-${i}-${n.chartType}`,x1:"0%",x2:"0%",y1:"0%",y2:"100%"}},[r("stop",{attrs:{offset:"0%","stop-color":n.color,"stop-opacity":u}}),r("stop",{attrs:{offset:`${a}%`,"stop-color":n.color,"stop-opacity":"0"}})],1)}),r("clipPath",{key:`${e.defs.clipPath}-${i}`,attrs:{id:`${e.defs.clipPath}-${i}`}},[r("rect",{attrs:{width:e.width,height:e.height}})])]:e._e(),n.chartType===e.TimelineChartType.BarChart?[e._l(e.transparencyGradients,function({id:o,opacity:a}){return r("linearGradient",{key:`${o}-${i}-${n.chartType}`,attrs:{id:`${o}-${i}-${n.chartType}`,width:"100%",height:"100%"}},[r("stop",{attrs:{"stop-color":n.color,"stop-opacity":a}})],1)}),r("clipPath",{key:`${e.defs.clipPath}-${i}`,attrs:{id:`${e.defs.clipPath}-${i}`}},[r("rect",{attrs:{width:e.width,height:e.height}})])]:e._e()]}),r("pattern",{attrs:{id:e.defs.stripedPattern,width:"5",height:"3",patternUnits:"userSpaceOnUse",patternTransform:"rotate(45)"}},[r("rect",{attrs:{width:"1",height:"4",fill:e.forbiddenIntervalColor}})])],2)},yl=[],Cl=H(vl,_l,yl,!1,null,null,null,null);const bl=Cl.exports,xl=A.extend({name:"ETimelineForbiddenInterval",props:{timeScale:{type:Function,required:!0},interval:{type:Object,required:!0},index:{type:Number,required:!0},height:{type:Number,required:!0},timezone:{type:String,default:"UTC"}},data(){return{classNames:me,defs:Je}},computed:{visibleDomain(){return this.timeScale.domain()},startX(){const t=this.interval.startDate===-1/0?this.visibleDomain[0]:this.tzStringToDate(this.interval.startDate);return this.timeScale(t)},endX(){const t=this.interval.endDate===1/0?this.visibleDomain[1]:this.tzStringToDate(this.interval.endDate);return this.timeScale(t)},width(){return Math.max(this.endX-this.startX,0)}},methods:{tzStringToDate(t){return Ve({timestamp:t,timezone:this.timezone})}}});var wl=function(){var e=this,r=e._self._c;return r("rect",{class:`${e.classNames.forbiddenInterval} ${e.classNames.forbiddenInterval}-${e.index}`,attrs:{x:e.startX,y:"0",width:e.width,height:e.height,fill:`url(#${e.defs.stripedPattern})`}})},Sl=[],Tl=H(xl,wl,Sl,!1,null,null,null,null);const kl=Tl.exports,$l=A.extend({name:"ECursor",props:{timeScale:{type:Function,required:!0},timestamp:{type:String,required:!0},timezone:{type:String,required:!0},height:{type:Number,required:!0},color:{type:String,default:"red"},width:{type:Number,default:1},opacity:{type:Number,default:1}},data(){return{classNames:me}},watch:{timestamp(){this.repositionCursor()},timeScale(){this.repositionCursor()},height(){this.repositionCursor()}},methods:{repositionCursor(){const t=this.$refs.cursor,e=O.select(t);if(!e)return;if(!this.timestamp){e.style("opacity",0);return}const r=this.tzStringToDate(this.timestamp),n=this.timeScale(r);isNaN(n)?e.style("opacity",0):e.attr("x1",n).attr("x2",n).style("opacity",this.opacity),e.attr("y2",this.height)},tzStringToDate(t){return Ve({timestamp:t,timezone:this.timezone})}}});var El=function(){var e=this,r=e._self._c;return r("line",{ref:"cursor",class:e.classNames.selectedTimestampCursor,attrs:{x1:"0",y1:"0",x2:"0",opacity:"0",stroke:e.color,"stroke-width":`${e.width}px`}})},Ml=[],Ll=H($l,El,Ml,!1,null,null,null,null);const Zi=Ll.exports,Dl=A.extend({name:"ETimelineCursor",components:{ECursor:Zi},props:{timeScale:{type:Function,required:!0},selectedTimestamp:{type:String,required:!0},timezone:{type:String,default:"UTC"},height:{type:Number,required:!0}}});var Pl=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("ECursor",{attrs:{"time-scale":e.timeScale,timestamp:e.selectedTimestamp,timezone:e.timezone,color:"green",height:e.height}})},Ol=[],zl=H(Dl,Pl,Ol,!1,null,null,null,null);const Bl=zl.exports,Il=A.extend({name:"ETimelineSelectedTimestampCursor",components:{ECursor:Zi},props:{timeScale:{type:Function,required:!0},selectedTimestamp:{type:String,required:!0},timezone:{type:String,default:"UTC"},height:{type:Number,required:!0}}});var Fl=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("ECursor",{attrs:{"time-scale":e.timeScale,timestamp:e.selectedTimestamp,timezone:e.timezone,height:e.height,width:2}})},Al=[],Rl=H(Il,Fl,Al,!1,null,null,null,null);const Hl=Rl.exports,Nl=A.extend({name:"ECursorBehavior",props:{timeScale:{type:Function,required:!0},timezone:{type:String,default:"UTC"},minHoverZone:{type:Number,default:0},isHoveringMilestone:{type:Boolean,default:!1}},data(){return{cursor:null,hoveredTimestamp:null,isHoveringTimeline:!1}},mounted(){this.registerEventsListeners()},methods:{registerEventsListeners(){const t=this.$refs.cursor;this.cursor=O.select(t),this.cursor.on("mousemove",this.handleMouseMove),this.cursor.on("click",this.handleClick),this.cursor.on("mouseleave",this.handleMouseLeave)},handleMouseLeave(){this.isHoveringTimeline=!1,this.hoveredTimestamp=void 0,this.$emit("mouse-leave")},handleMouseMove(t){if(this.isHoveringMilestone)return;const e=t.offsetX;if(e<=this.minHoverZone){this.isHoveringTimeline=!1;return}const r=this.timeScale.invert(e);this.hoveredTimestamp=this.dateToTzString(r),this.isHoveringTimeline=!0,this.$emit("mouse-move",e,this.hoveredTimestamp)},handleClick(t){if(this.isHoveringMilestone)return;const e=t.offsetX;if(e<=this.minHoverZone)return;const r=this.timeScale.invert(e),n=this.dateToTzString(r);this.$emit("timestamp-clicked",n,t.target)},tzStringToDate(t){return Ve({timestamp:t,timezone:this.timezone})},dateToTzString(t){return Ft({date:t,timezone:this.timezone})}}});var jl=function(){var e=this,r=e._self._c;return r("div",{ref:"cursor",staticClass:"e-timeline__cursor e-relative"},[e._t("default",null,{hoveredTimestamp:e.hoveredTimestamp,isHoveringTimeline:e.isHoveringTimeline})],2)},Gl=[],Wl=H(Nl,jl,Gl,!1,null,null,null,null);const ql=Wl.exports,Ul=A.extend({name:"ETimelineGroupContainer",props:{groupId:{type:String,required:!0},label:{type:String,default:""},color:{type:String,default:""},backgroundColor:{type:String,default:""},x:{type:Number,default:0},y:{type:Number,required:!0},height:{type:Number,default:18},width:{type:Number,required:!0},showLabel:{type:Boolean,default:!0},labelWidth:{type:[Number,void 0],default:void 0},labelRadius:{type:[Number,void 0],default:3},xPadding:{type:Number,default:5},loading:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},showBackground:{type:Boolean,default:!0}},data(){return{classNames:me,characterWidth:6.5,isHighlighted:!1}},computed:{computedClasses(){return{label:{[`${me.labelGroup} ${me.labelGroup}-${this.groupId}`]:!0},container:{[`${me.eventGroup} ${me.eventGroup}-${this.groupId}`]:!0,[`${me.eventGroup}--highlighted`]:this.isHighlighted}}},computedLabelWidth(){var e;return(this.labelWidth||((e=this.label)==null?void 0:e.length)*this.characterWidth)+this.xPadding*2},textY(){return this.y+this.height/2},contentX(){return this.showLabel?this.x+this.computedLabelWidth:this.x},labelBackgroundColor(){let t=O.color(this.color);return t.opacity=this.dark?.2:.5,t.toString()},textFillColor(){var t,e;return(this.dark?(t=O.color(this.color))==null?void 0:t.brighter(1.5):(e=O.color(this.color))==null?void 0:e.darker(2)).toString()},loadingIndicatorFill(){return`url(#${Je.loadingGradient}-${this.groupId})`}}}),ed="";var Zl=function(){var e=this,r=e._self._c;return r("g",{class:e.computedClasses.container},[!e.hidden&&e.showBackground?r("rect",{class:e.classNames.eventGroupBg,attrs:{x:e.x,y:e.y,width:e.width,height:e.height,fill:e.backgroundColor||e.color}}):e._e(),r("g",{class:e.classNames.eventGroupContent,attrs:{cursor:"pointer"}},[e._t("default",null,{y:e.y,x:e.contentX}),e.loading?r("rect",{class:e.classNames.loadingIndicator,attrs:{x:e.x,y:e.y,width:400,height:e.height,fill:e.loadingIndicatorFill}}):e._e()],2),e.showLabel?r("g",{class:e.computedClasses.label,on:{mouseover:function(n){e.isHighlighted=!0},mouseleave:function(n){e.isHighlighted=!1},click:function(n){return n.stopPropagation(),e.$emit("group-label-clicked",e.groupId)}}},[r("rect",{class:e.classNames.labelBg,attrs:{x:e.x,y:e.y,width:e.computedLabelWidth,height:e.height,rx:e.labelRadius,ry:e.labelRadius,fill:e.dark?"black":"white"}}),r("rect",{class:e.classNames.labelBgFill,attrs:{x:e.x,y:e.y,width:e.computedLabelWidth,height:e.height,rx:e.labelRadius,ry:e.labelRadius,fill:e.labelBackgroundColor,stroke:e.textFillColor}}),r("text",{staticClass:"label-text",attrs:{x:e.x+e.xPadding,y:e.textY,dy:"0.35rem",fill:e.textFillColor}},[e._v(" "+e._s(e.label)+" ")])]):e._e()])},Yl=[],Xl=H(Ul,Zl,Yl,!1,null,null,null,null);const cn=Xl.exports,Vl=A.extend({name:"ETimelineRectsChartGroupedDots",props:{event:{type:Object,required:!0},rectStroke:{type:String,required:!0},rectStrokeWidth:{type:Number,required:!0},rectRx:{type:Number,required:!0},rectRy:{type:Number,required:!0},groupId:{type:String,required:!0}},data(){return{classNames:me}},computed:{numberOfBackgroundDots(){return this.event.groupedEvents?Math.min(3,this.event.groupedEvents.length-1):0}},methods:{getBackgroundX(t){return this.event.x-this.event.width/2-(this.numberOfBackgroundDots-(t-1))*4.5},getBackgroundY(t){return this.event.y+(this.numberOfBackgroundDots-(t-1))/2},getBackgroundSize(t){return this.event.width-(this.numberOfBackgroundDots-(t-1))},getBackgroundOpacity(t){return 1-(this.numberOfBackgroundDots-(t-1))/5}}});var Ql=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("g",{class:e.classNames.eventRectContainer},[e._l(e.numberOfBackgroundDots,function(n){return r("rect",{key:`bg-${e.numberOfBackgroundDots-n}`,class:[e.classNames.eventRect,`${e.classNames.eventRect}--dot`,`bg-${n}`],attrs:{x:e.getBackgroundX(n),y:e.getBackgroundY(n),width:e.getBackgroundSize(n),height:e.getBackgroundSize(n),fill:e.event.color,stroke:e.rectStroke,opacity:e.getBackgroundOpacity(n),"stroke-width":e.rectStrokeWidth,ry:e.rectRx,rx:e.rectRy}})}),r("rect",{class:[e.classNames.eventRect,`${e.classNames.eventRect}--dot`],attrs:{x:e.event.x-e.event.width/2,y:e.event.y-e.event.width*.025,width:e.event.width*1.05,height:e.event.height*1.05,fill:e.event.color,stroke:e.rectStroke,cursor:"pointer","stroke-width":e.rectStrokeWidth,ry:e.rectRx,rx:e.rectRy}})],2)},Kl=[],Jl=H(Vl,Ql,Kl,!1,null,null,null,null);const e5=Jl.exports,t5=A.extend({name:"ETimelineRectsChart",directives:{},components:{ETimelineGroupContainer:cn,ETimelineRectsChartGroupedDots:e5},props:{timeScale:{type:Function,required:!0},eventsGroup:{type:Object,required:!0},groupId:{type:String,required:!0},x:{type:Number,default:0},y:{type:Number,required:!0},height:{type:Number,default:18},width:{type:Number,required:!0},rectMinWidth:{type:Number,default:1},rectYPadding:{type:Number,default:0},dark:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!0},labelWidth:{type:[Number,void 0],default:void 0},timezone:{type:[String,void 0],default:void 0},dots:{type:Boolean,default:!1},dotsSize:{type:Number,default:3},barBorderRadius:{type:Number,default:1.5},groupOverlappingDots:{type:Boolean,default:!1},groupingThreshold:{type:Number,default:0}},data(){return{classNames:me,characterWidth:7.5,textPadding:5}},computed:{rectStrokeWidth(){return this.dots&&this.dotsSize?this.dotsSize/10:5},rectRx(){return this.dots&&this.dotsSize?this.dotsSize:this.eventsGroup.barBorderRadius||0},rectRy(){return this.dots&&this.dotsSize?this.dotsSize:this.eventsGroup.barBorderRadius||0},computedHeight(){return this.eventsGroup.height||this.height},yPosition(){const t=this.dots?(this.computedHeight-this.dotsSize+this.rectYPadding)/2:this.rectYPadding/2;return this.y+t},rectStroke(){if(!this.dots)return"#0000";const t=O.color(this.eventsGroup.color);return(t==null?void 0:t.brighter(1).toString())||"#0000"},rectHeight(){return this.dots?this.dotsSize:Math.max(this.height,1)},preprocessedEvents(){return[...this.eventsGroup.events].sort((e,r)=>{const n=new Date(e.startDate||e.timestamp).getTime(),i=new Date(r.startDate||r.timestamp).getTime();return n-i}).map(this.convertEventTzStringToDate)},computedEvents(){return(this.dots&&this.groupOverlappingDots?this.groupedEvents:this.preprocessedEvents.map(e=>[e])).map(e=>{let r={textContent:this.getEventText(e[0],this.textPadding,this.characterWidth),textX:this.getEventRectX(e[0],this.timeScale)+this.textPadding,textY:this.yPosition+this.rectHeight/2,textColor:e[0].textColor||this.getFillColor(e[0].color||this.eventsGroup.color,.75,this.dark)};if(!this.dots)return{...e[0],x:this.getEventRectX(e[0],this.timeScale),y:this.yPosition,width:this.getEventRectWidth(e[0],this.timeScale,this.rectMinWidth),height:this.rectHeight,color:e[0].color||this.eventsGroup.color,groupedEvents:e,...r};const n=this.getEventRectX(e[0],this.timeScale),i=this.getEventRectX(e[e.length-1],this.timeScale),o=n+(i-n)/2,a=e.length>1,u=o;return a?r={...r,textContent:`${e.length}`,textX:o-this.dotsSize/2-`${e.length}`.length*2,textY:this.yPosition-this.dotsSize/2}:r={...r,textX:r.textX-this.textPadding},{...e[0],x:u,y:this.yPosition,width:this.dotsSize,height:this.rectHeight,color:e[0].color||this.eventsGroup.color,groupedEvents:e,...r}})},timeScaleDensity(){const t=this.timeScale.invert(0).getTime(),e=this.timeScale.invert(1).getTime(),r=36e5,n=(e-t)/r;return isNaN(n)?1:n},groupedEvents(){const t=this.preprocessedEvents,e=[];let r=[];return t.forEach((n,i)=>{if(i===0){r.push(n);return}const o=t[i-1],a=this.getEventRectX(n,this.timeScale),u=this.getEventRectX(o,this.timeScale),s=this.getEventRectWidth(o,this.timeScale,this.rectMinWidth);u+s+this.groupingThreshold>=a?r.push(n):(r.length>0&&e.push([...r]),r=[n])}),r.length>0&&e.push(r),e}},methods:{onMouseOver(t,e,r){t.target.classList.add(me.eventRectHovered);const i=this.convertEventDateToTzString(e);this.$emit("event-mouseover",t,i,r)},onMouseLeave(t){const e=t.target;e.classList.remove(me.eventRectHovered),Array.from(e.children).forEach(r=>{r.classList.remove(me.eventRectHovered)}),this.$emit("event-mouseout")},onGroupedEventsMouseOver(t,e,r){t.target.classList.add(me.eventRectHovered);const i=e.map(this.convertEventDateToTzString);this.$emit("grouped-events-mouseover",t,i,r)},getEventText(t,e,r){if(!t.text)return"";const n=`${t.text}`;if(n.length===1)return n;const o=(this.getEventRectWidth(t,this.timeScale,this.rectMinWidth)-e)/r;return o<Math.min(n==null?void 0:n.length,4)?"":(n==null?void 0:n.length)<=o?n:`${n.slice(0,o-3)}...`},getEventRectWidth(t,e,r){if(!t)return 0;if(this.dots)return this.dotsSize;if(t.startDate&&t.endDate){const n=new Date(t.startDate),i=new Date(t.endDate),o=e(i)-e(n);return Math.max(o,r)}else{const n=1/(this.timeScaleDensity*3600);return Math.max(n,r)}},getEventRectX(t,e){const r=e(t.startDate||t.timestamp);return isNaN(r)?0:r},tzStringToDate(t){return Ve({timestamp:t,timezone:this.timezone})},dateToTzString(t){return Ft({date:t,timezone:this.timezone})},convertEventTzStringToDate(t){return this.patchTimestampField(t,this.tzStringToDate)},convertEventDateToTzString(t){return this.patchTimestampField(t,this.dateToTzString)},patchTimestampField(t,e){let r={...t};return r.timestamp&&(r.timestamp=e(r.timestamp)),r.startDate&&(r.startDate=e(r.startDate)),r.endDate&&(r.endDate=e(r.endDate)),r},getFillColor(t,e=0,r=!1){var n,i;return(r?(n=O.color(t))==null?void 0:n.brighter(1.5+e):(i=O.color(t))==null?void 0:i.darker(2+e)).toString()}}}),td="";var r5=function(){var e=this,r=e._self._c;return r("ETimelineGroupContainer",{attrs:{"group-id":e.groupId,color:e.eventsGroup.color,label:e.eventsGroup.label,"background-color":e.eventsGroup.bgColor,loading:e.eventsGroup.isLoading,x:e.x,y:e.y,dark:e.dark,width:e.width,height:e.computedHeight+e.rectYPadding,"show-label":e.showLabel,"label-width":e.labelWidth,hidden:e.eventsGroup.isHidden},on:{"group-label-clicked":function(n){return e.$emit("group-label-clicked",e.groupId)}}},[e.dots?r("line",{class:e.classNames.milestoneLine,attrs:{x1:0,x2:e.width,y1:e.yPosition+e.dotsSize/2,y2:e.yPosition+e.dotsSize/2,stroke:e.eventsGroup.color,"stroke-width":1}}):e._e(),e._l(e.computedEvents,function(n,i){return r("g",{key:i,class:e.classNames.eventRectContainer},[!n.groupedEvents||!e.dots||n.groupedEvents.length===1?[r("rect",{class:[e.classNames.eventRect,e.dots?`${e.classNames.eventRect}--dot`:""],attrs:{x:n.x-(e.dots?n.width/2:0),y:n.y,"data-timestamp":n.timestamp,width:n.width,height:n.height,fill:n.color,stroke:e.rectStroke,cursor:"pointer","stroke-width":e.rectStrokeWidth,ry:e.rectRx,rx:e.rectRy},on:{mouseover:function(o){return e.onMouseOver(o,n,e.groupId)},mouseleave:e.onMouseLeave}})]:e.dots&&n.groupedEvents.length>1?r("ETimelineRectsChartGroupedDots",{key:i,attrs:{event:n,"rect-stroke":e.rectStroke,"rect-stroke-width":e.rectStrokeWidth,"rect-rx":e.rectRx,"rect-ry":e.rectRy,"group-id":e.groupId},nativeOn:{mouseover:function(o){return e.onGroupedEventsMouseOver(o,n.groupedEvents,e.groupId)},mouseleave:function(o){return e.onMouseLeave.apply(null,arguments)}}}):e._e(),n.textContent?r("text",{class:e.classNames.eventRectText,attrs:{fill:n.textColor,x:n.textX,y:n.textY,dy:"0.35em","text-anchor":e.dots?"middle":"start","font-size":"12","font-weight":600,"stroke-linejoin":"round","paint-order":"stroke","pointer-events":"none"}},[e._v(" "+e._s(n.textContent)+" ")]):e._e()],2)})],2)},n5=[],i5=H(t5,r5,n5,!1,null,null,null,null);const s5=i5.exports,a5=A.extend({name:"ETimelineLinesChart",directives:{},components:{ETimelineGroupContainer:cn},props:{timeScale:{type:Function,required:!0},eventsGroup:{type:Object,required:!0},groupId:{type:String,required:!0},x:{type:Number,default:0},y:{type:Number,required:!0},height:{type:Number,default:18},width:{type:Number,required:!0},dark:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!0},maxVisibleCount:{type:Number,required:!0},labelWidth:{type:[Number,void 0],default:void 0},labelHeight:{type:[Number,void 0],default:void 0},timezone:{type:[String,void 0],default:void 0},hoveredTimestamp:{type:String,default:""},yOffset:{type:Number,default:20}},data(){return{classNames:me,defs:Je,characterWidth:7.5}},computed:{lineGradient(){return`${Je.transparencyGradientLight}-${this.groupId}-${He.LineGraph}`},lineDots(){const[t,e]=this.timeScale.domain();return this.eventsGroup.events.filter((n,i)=>{var s,l;const o=i===0?1:i,a=new Date((s=this.eventsGroup.events[o+1])==null?void 0:s.timestamp),u=new Date((l=this.eventsGroup.events[o-1])==null?void 0:l.timestamp);return a>=t&&a<=e||u>=t&&u<=e})},hoverZones(){return this.lineDots.map(t=>{const e=this.timeScale(this.tzStringToDate(t.timestamp)),r=this.yScale(t.count),n=this.timeScale.invert(e-2),i=this.timeScale.invert(e+2);return{x:e,y:r,height:this.height-22,color:t.color||this.eventsGroup.color,timestamp:t.timestamp,count:t.count,isHovering:this.tzStringToDate(this.hoveredTimestamp)>=n&&this.tzStringToDate(this.hoveredTimestamp)<i}})},yScale(){let t=O.scaleLinear().range([this.height,0]);return t=t.domain([0,this.maxVisibleCount||1]),t}},watch:{hoverZones:{handler(){this.updateLine()},deep:!0,immediate:!0}},mounted(){this.updateLine()},methods:{updateLine(){const t=O.area().x(r=>r.x).y0(this.height).y1(r=>r.y).curve(O.curveMonotoneX),e=O.line().x(r=>r.x).y(r=>r.y).curve(O.curveMonotoneX);O.select(`.${me.areaGraphPath}-${this.groupId}`).datum(this.hoverZones).attr("d",r=>t(r)),O.select(`.${me.lineGraphPath}-${this.groupId}`).datum(this.hoverZones).attr("d",r=>e(r))},getEventRectX(t,e){const r=e(this.tzStringToDate(t.startDate||t.timestamp));return isNaN(r)?0:r},tzStringToDate(t){return Ve({timestamp:t,timezone:this.timezone})}}}),rd="";var o5=function(){var e=this,r=e._self._c;return r("ETimelineGroupContainer",{attrs:{"group-id":e.groupId,color:e.eventsGroup.color,label:e.eventsGroup.label,"background-color":e.eventsGroup.bgColor,loading:e.eventsGroup.isLoading,x:e.x,y:e.y,dark:e.dark,width:e.width,height:e.labelHeight,"show-label":e.showLabel,"label-width":e.labelWidth,hidden:e.eventsGroup.isHidden,"show-background":!1},on:{"group-label-clicked":function(n){return e.$emit("group-label-clicked",e.groupId)}}},[r("g",{class:`${e.classNames.lineGraphGroup} ${e.classNames.lineGraphGroup}-${e.groupId}`,style:{transform:`translate(0, ${e.yOffset}px) `}},[r("path",{class:`${e.classNames.areaGraphPath}-${e.groupId}`,attrs:{fill:`url(#${e.lineGradient})`,stroke:"none","stroke-linecap":"round","stroke-linejoin":"round"}}),r("path",{class:`${e.classNames.lineGraphPath}-${e.groupId}`,attrs:{fill:"none",stroke:e.eventsGroup.color,"stroke-width":1.5}}),e._l(e.hoverZones,function(n,i){return r("g",{key:i},[r("circle",{ref:`${e.classNames.lineGraphDot}-${e.groupId}-${i}`,refInFor:!0,class:[e.classNames.lineGraphDot,`${e.classNames.lineGraphDot}-${e.groupId}`,`${e.classNames.lineGraphDot}-${e.groupId}-${i}`,{[`${e.classNames.lineGraphDot}--active`]:n.isHovering}],attrs:{cx:n.x,cy:n.y,r:"1.5",fill:n.color,"stroke-width":0}}),r("rect",{class:`${e.classNames.lineGraphHoverZone} ${e.classNames.lineGraphHoverZone}-${e.groupId}`,attrs:{x:n.x-2,y:0,width:4,height:e.height,fill:"transparent"},on:{mouseover:function(o){return e.$emit("event-mouseover",o,n,e.groupId)},mouseleave:function(o){return e.$emit("event-mouseout")}}})])})],2)])},l5=[],c5=H(a5,o5,l5,!1,null,null,null,null);const u5=c5.exports,d5=A.extend({name:"ETimelineBarsChart",components:{ETimelineGroupContainer:cn},props:{timeScale:{type:Function,required:!0},eventsGroup:{type:Object,required:!0},groupId:{type:String,required:!0},x:{type:Number,default:0},y:{type:Number,required:!0},height:{type:Number,default:18},width:{type:Number,required:!0},dark:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!0},labelWidth:{type:[Number,void 0],default:void 0},labelHeight:{type:[Number,void 0],default:void 0},timezone:{type:[String,void 0],default:void 0},hoveredTimestamp:{type:String,default:""},yOffset:{type:Number,default:20},rectMinWidth:{type:Number,default:1},currentTimeScaleDensity:{type:Number,default:null},maxVisibleCount:{type:Number,default:1},previousCountsByTimestamp:{type:Object,default:null}},data(){return{classNames:me,defs:Je,characterWidth:7.5}},computed:{bars(){const[t,e]=this.timeScale.domain();return this.eventsGroup.events.filter((n,i)=>{var s,l;const o=i===0?1:i,a=new Date((s=this.eventsGroup.events[o+1])==null?void 0:s.endDate),u=new Date((l=this.eventsGroup.events[o-1])==null?void 0:l.startDate);return a>=t&&a<=e||u>=t&&u<=e})},hoverZones(){return this.bars.map(t=>{const e=this.getEventRectWidth(t),r=this.yScale.range()[0]-this.yScale(t.count),n=this.getEventRectX(t,this.timeScale),i=this.previousCountsByTimestamp[t.startDate]||0,o=this.yScale(i+t.count);return{x:n,y:o,height:r,width:e,color:t.color||this.eventsGroup.color,startDate:t.startDate,endDate:t.endDate,count:t.count,className:t.className,isHovering:this.hoveredTimestamp>=t.startDate&&this.hoveredTimestamp<t.endDate}})},yScale(){let t=O.scaleLinear().range([this.height,0]);return t=t.domain([0,this.maxVisibleCount||1]),t}},methods:{getBarOpacity(t){let e;return this.hoveredTimestamp||(e=Je.transparencyGradient),e=t.isHovering?Je.transparencyGradientHover:Je.transparencyGradientLight,`${e}-${this.groupId}-${He.BarChart}`},getEventRectX(t,e){return isNaN(e(this.tzStringToDate(t.startDate||t.timestamp)))?0:e(this.tzStringToDate(t.startDate||t.timestamp))},tzStringToDate(t){return Ve({timestamp:t,timezone:this.timezone})},onEventClick(){this.$emit("event-clicked")},getEventRectWidth(t){if(!t)return 0;if(t.startDate&&t.endDate){const e=new Date(t.startDate),r=new Date(t.endDate),n=this.timeScale(r)-this.timeScale(e);return Math.max(n,this.rectMinWidth)}else{const e=1/(this.currentTimeScaleDensity*3600);return Math.max(e,this.rectMinWidth)}}}}),nd="";var h5=function(){var e=this,r=e._self._c;return r("ETimelineGroupContainer",{attrs:{"group-id":e.groupId,color:e.eventsGroup.color,label:e.eventsGroup.label,"background-color":e.eventsGroup.bgColor,loading:e.eventsGroup.isLoading,x:e.x,y:e.y,dark:e.dark,width:e.width,height:e.labelHeight,"show-label":e.showLabel,"label-width":e.labelWidth,hidden:e.eventsGroup.isHidden,"show-background":!1},on:{"group-label-clicked":function(n){return e.$emit("group-label-clicked",e.groupId)}}},[r("g",{class:`${e.classNames.barChartGroup} ${e.classNames.barChartGroup}-${e.groupId}`,style:{transform:`translate(0, ${e.yOffset}px) `}},e._l(e.hoverZones,function(n,i){return r("g",{key:i,class:`${e.classNames.eventBarContainer} ${e.classNames.eventBarContainer}-${e.groupId}`,on:{mouseleave:function(o){return e.$emit("event-mouseout")},mouseover:function(o){return e.$emit("event-mouseover",o,n,e.groupId)},click:function(o){return e.onEventClick()}}},[r("rect",{class:[n.className?n.className:"",e.classNames.eventBarHoverZone],attrs:{x:n.x,y:-e.yOffset,width:n.width,height:e.yScale.range()[0]+e.yOffset,fill:n.color,"fill-opacity":0}}),r("rect",{class:[n.className?n.className:"",e.classNames.eventBar],attrs:{x:n.x,y:n.y,width:n.width,height:n.height,"stroke-width":5,cursor:"pointer",stroke:"#0000",fill:`url(#${e.getBarOpacity(n)})`}})])}),0)])},f5=[],p5=H(d5,h5,f5,!1,null,null,null,null);const m5=p5.exports,g5=A.extend({name:"ETimeline",directives:{resizeObserver:Ke},components:{ETimelineSVGDefs:bl,EXAxisBackground:gl,EXAxisDetailed:dl,EXAxisOverview:al,ETimelineMilestone:B0,ETimelineMarkers:q0,ETimelineCursor:Bl,ETimelineSelectedTimestampCursor:Hl,EZoomBehavior:V0,ECursorBehavior:ql,ETimelineRectsChart:s5,ETimelineForbiddenInterval:kl,ETimelineLinesChart:u5,ETimelineBarsChart:m5},props:{eventsGroups:{type:Object,default:null},dark:{type:Boolean,default:!1},startDate:{type:String,default:void 0},endDate:{type:String,default:void 0},selectedTimestamp:{type:String,default:void 0},showEventTooltip:{type:Boolean,default:!0},insertZerosAtInterval:{type:String,default:void 0},flattenLineGraphEnds:{type:Boolean,default:!0},showLabels:{type:Boolean,default:!0},barHeight:{type:Number,default:18},barYPadding:{type:Number,default:0},chartMinHeight:{type:Number,default:60},chartMinLabelHeight:{type:Number,default:18},minDate:{type:String,default:void 0},maxDate:{type:String,default:void 0},panOnDateClick:{type:Boolean,default:!1},selectedDate:{type:String,default:""},markers:{type:Array,default:()=>[]},stickyMarkers:{type:Boolean,default:!0},fitMarkersOnChange:{type:Boolean,default:!1},milestoneBulletSize:{type:Number,default:18},milestonesFirst:{type:Boolean,default:!0},forbiddenIntervals:{type:Array,default:()=>[]},forbiddenIntervalColor:{type:String,default:"#ddd"},focusedInterval:{type:[Object,void 0],default:void 0},locked:{type:Boolean,default:!1},timezone:{type:[String,void 0],default:void 0},stopClickPropagation:{type:Boolean,default:!1},tooltipPosition:{type:String,default:"top",validator:t=>["top","bottom"].includes(t)},maxDomainPadding:{type:Number,default:0},showCursor:{type:Boolean,default:!0}},data(){return{mainContainer:null,tooltip:null,timeline:null,svgElement:null,svg:null,axisHeight:22,isHoveringEvent:!1,isHoveringGroupedEvents:!1,isAnimating:!1,hoveredEvent:null,eventTooltipStyle:{},hoveredEventType:null,hoveredCounts:[],visibleFrom:null,visibleTo:null,characterWidth:7.5,textPadding:5,timeouts:[],groupsVisibility:{},selectedMilestoneId:null,isInitialized:!1,hoveredMilestone:null,focusedDomain:null,transitionDuration:400,focusedTimestamp:null,hoveredGroupedEvents:null,TimelineChartType:He,width:0}},computed:{filteredEventsGroups(){const t=Object.entries(this.eventsGroups).filter(([e,r])=>this.getCurrentGroupVisibility(e));return Object.fromEntries(t)},allEventsSorted(){const t=Object.values(this.filteredEventsGroups).map(e=>e.events).flat();return this.getSortedEvents(t)},barGroups(){return this.getGroupByType(this.filteredEventsGroups,[He.Bars,He.Dots])},lineGraphGroups(){return this.getGroupByType(this.filteredEventsGroups,[He.LineGraph])},barChartGroups(){return this.getGroupByType(this.filteredEventsGroups,[He.BarChart])},milestonesGroups(){return this.getGroupByType(this.filteredEventsGroups,[He.Milestones])},combinedBarsHeight(){return Object.values(this.barGroups).reduce((t,e)=>t+(this.getBarGroupHeight(e)||this.barHeight+this.barYPadding),0)},combinedBottomBarsHeight(){return Object.values(this.barGroups).reduce((t,e)=>t+(e.bottom?this.getBarGroupHeight(e):0),0)},combinedMilestonesHeight(){return Object.values(this.milestonesGroups).reduce((t,e)=>t+(e.height||this.barHeight),0)},milestonesYOffset(){return this.milestonesFirst?0:this.combinedBarsHeight-this.combinedBottomBarsHeight+(this.hasChart?this.chartHeight:0)},chartsYOffset(){return this.combinedXAxesHeight+(this.hasMilestones&&this.milestonesFirst?this.combinedMilestonesHeight:0)},barsYOffset(){return(this.hasChart?this.chartHeight:0)+(this.hasMilestones&&this.milestonesFirst?this.combinedMilestonesHeight:0)},hasMilestones(){return Object.keys(this.milestonesGroups).length>0},computedClasses(){return{wrapper:{"e-border-gray-700 e-timeline--dark":this.dark,"e-border-gray-300":!this.dark},background:this.dark?"e-bg-gray-900":"e-bg-gray-50",tooltipSlot:this.dark?"e-bg-gray-900 e-text-white e-border-gray-700":"e-bg-gray-100 e-text-gray-700 e-border-gray-300",eventTooltipSlot:this.dark?"e-bg-gray-900 e-text-white e-border-gray-700":"e-bg-gray-100 e-text-gray-700 e-border-gray-300"}},chartHeight(){if(!this.showLabels)return this.chartMinHeight;const e=(Object.keys(this.lineGraphGroups).length+Object.keys(this.barChartGroups).length)*this.barHeight;return Math.max(this.chartMinHeight,e)},chartLabelHeight(){return Math.max(this.chartMinLabelHeight,this.barHeight)},hasChart(){return Object.keys(this.lineGraphGroups).length+Object.keys(this.barChartGroups).length>0},labelRectWidth(){return Object.values(this.eventsGroups).reduce((r,n)=>{var i;return Math.max(r,(i=n.label)==null?void 0:i.length)},0)*this.characterWidth+2*this.textPadding},combinedXAxesHeight(){return this.axisHeight*1.75},timelineHeight(){return(this.hasChart?this.chartHeight:0)+this.combinedXAxesHeight+this.combinedBarsHeight+this.combinedMilestonesHeight},oldestEvent(){let t;return this.allEventsSorted.length>1?t=this.allEventsSorted[0]:t={timestamp:new Date(new Date().getTime()-864e5)},t},latestEvent(){let t;return this.allEventsSorted.length>1?t=this.allEventsSorted[this.allEventsSorted.length-1]:t={timestamp:new Date},t},allLineChartTimestamps(){const t=new Set;return Object.values(this.lineGraphGroups).forEach(e=>{e.events.forEach(r=>{t.add(r.timestamp)})}),Array.from(t).sort()},placeholderLineChartGroup(){return this.fillTimeGaps(this.allLineChartTimestamps.map(t=>({timestamp:t,count:0})))},filledGapsLineGraphGroups(){return Object.entries(this.lineGraphGroups).reduce((t,[e,r])=>({...t,[e]:{...r,events:this.fillEvents(r.events)}}),{})},flattenedLinesCounts(){return Object.values(this.lineGraphGroups).map(t=>t.events).flat()},flattenedBarsCounts(){return Object.values(this.barChartGroups).map(t=>t.events).flat()},hiddenGroupsLabels(){return Object.entries(this.groupsVisibility).reduce((t,[e,r])=>r?t:[...t,e],[])},minHoverZone(){return this.showLabels?this.labelRectWidth:0},sortedMarkers(){return this.isInitialized?[...this.markers].sort((t,e)=>new Date(t.timestamp).getTime()>new Date(e.timestamp).getTime()?1:-1):[]},maxVisibleCount(){const t=o=>{const a=new Date(o.startDate||o.timestamp),u=new Date(o.endDate||o.timestamp),s=new Date(this.visibleFrom),l=new Date(this.visibleTo);return u>=s&&u<=l||a>=s&&a<=l},e=this.flattenedBarsCounts.filter(t),r=this.flattenedLinesCounts.filter(t).map(o=>o.count),n={};e.forEach(o=>{const a=o.startDate||o.timestamp;n[a]=(n[a]||0)+o.count});const i=Object.values(n).concat(r);return O.max(i)||1},defaultMaxDomain(){const t=new Date(this.oldestEvent.timestamp||this.oldestEvent.startDate).getTime(),e=new Date(this.latestEvent.timestamp||this.latestEvent.endDate).getTime(),n=(e-t)*.75,i=new Date(t-n),o=new Date(e+n);return[i.toISOString(),o.toISOString()]},defaultFocusedDomain(){const t=this.oldestEvent.timestamp||this.oldestEvent.startDate,e=this.latestEvent.timestamp||this.latestEvent.endDate;return[t,e]},domain(){let t=new Date(this.minDate||this.defaultMaxDomain[0]).getTime(),e=new Date(this.maxDate||this.defaultMaxDomain[1]).getTime(),r=0;return this.maxDomainPadding&&(r=(e-t)*this.maxDomainPadding),t=new Date(t-r).toISOString(),e=new Date(e+r).toISOString(),[this.tzStringToDate(t),this.tzStringToDate(e)]},svgLeft(){var t,e,r;return((r=(e=(t=this.svg)==null?void 0:t.node())==null?void 0:e.getBoundingClientRect())==null?void 0:r.left)||0},markersScopedSlots(){return Object.keys(this.$scopedSlots).filter(t=>t.startsWith("marker.")).reduce((t,e)=>(t[e]=this.$scopedSlots[e],t),{})},isHoveringMilestone(){return!!this.hoveredMilestone},milestonesGroupsPlaceholder(){return Object.entries(this.milestonesGroups).reduce((t,[e,r])=>({...t,[e]:{...r,events:[],isLoading:!1}}),{})},countsByTimestamp(){const t={...this.lineGraphGroups,...this.barChartGroups};return Object.entries(t).reduce((e,[r,n])=>(n.events.forEach(i=>{const o=i.timestamp||i.startDate;e[o]={...e[o]||{},[r]:i.count}}),e),{})}},watch:{markers(t,e){t===e||!this.fitMarkersOnChange||e.length===0||this.zoomToFitMarkers()},startDate(){this.zoomToStartAndEndDates()},endDate(){this.zoomToStartAndEndDates()},selectedDate(t){t&&!this.locked&&(this.focusedTimestamp=this.tzStringToDate(t).toISOString())},focusedInterval(t){t&&(t!=null&&t.startDate)&&(t!=null&&t.endDate)&&(this.focusedDomain=[t.startDate,t.endDate])}},mounted(){this.validateProps(),this.initTimeline()},beforeDestroy(){this.clearTimeline()},methods:{handleVisibleIntervalChange({fromDate:t,toDate:e,trigger:r,transform:n}){this.visibleFrom=t,this.visibleTo=e,this.$emit("visible-interval-change",{fromDate:t,toDate:e,trigger:r,transform:n})},getGroupByType(t,e){return Object.entries(t).reduce((r,[n,i])=>!i.chartType&&e.includes(He.Bars)||e.includes(i.chartType)?{...r,[n]:i}:r,{})},getPreviousCountsByTimestamp(t){if(t===0)return{};const e=Object.fromEntries(Object.entries(this.barChartGroups).slice(0,t)),r=[...Object.values(e)].map(i=>i.events).flat(),n={};return r.forEach(i=>{const o=i.startDate||i.timestamp;n[o]=(n[o]||0)+i.count}),n},getChartsYPosition(t){const e=Object.keys(this.lineGraphGroups).concat(Object.keys(this.barChartGroups));return this.timelineHeight-this.chartLabelHeight*(e.indexOf(t)+1)-(this.milestonesFirst?0:this.combinedMilestonesHeight)-this.combinedBarsHeight},validateProps(){this.minDate||console.log("<ETimeline />: didn't receive a 'min-date' prop. Setting default: ",this.defaultMaxDomain[0]),this.maxDate||console.log("<ETimeline />: didn't receive a 'max-date' prop. Setting default: ",this.defaultMaxDomain[1]),this.startDate||console.log("<ETimeline />: didn't receive a 'start-date' prop. Setting default: ",this.defaultFocusedDomain[0]),this.endDate||console.log("<ETimeline />: didn't receive an 'end-date' prop. Setting default: ",this.defaultFocusedDomain[1])},initTimeline(){if(this.initRefs(),this.zoomToStartAndEndDates(),!this.timeline||this.timeline.offsetWidth===0||!this.domain){this.timeouts.push(setTimeout(this.initTimeline,500));return}this.selectedDate&&this.panOnDateClick&&(this.focusedTimestamp=this.tzStringToDate(this.selectedDate)),this.isInitialized=!0},initRefs(){this.tooltip=this.$refs.tooltip,this.mainContainer=this.$refs.mainContainer,this.timeline=this.$refs.timelineContainer,this.svgElement=this.$refs.timelineSvg,this.svg=O.select(this.svgElement)},zoomToFitMarkers(){const t=this.markers.map(o=>new Date(o.timestamp).getTime());if(t.length<2)return;const e=Math.min(...t),r=Math.max(...t),n=new Date(e),i=new Date(r);this.focusedDomain=[n,i]},clearTimeline(){this.svg&&this.svg.remove()},handleMouseLeave(){this.$emit("hovered-timestamp",void 0)},handleMouseMove(t,e){this.$emit("hovered-timestamp",e),this.tooltip&&(this.eventTooltipStyle={left:`${t}px`,zIndex:100,[this.tooltipPosition==="top"?"bottom":"top"]:`${this.timeline.getBoundingClientRect().height}px`})},isForbiddenInterval(t){const e=new Date(t).getTime(),r=this.forbiddenIntervals.some(o=>{const a=isNaN(new Date(o.startDate).getTime())?-1/0:new Date(o.startDate).getTime(),u=isNaN(new Date(o.endDate).getTime())?1/0:new Date(o.endDate).getTime();return e>=a&&e<=u});let n=!1;this.startDate&&(n=e<new Date(this.startDate).getTime());let i=!1;return this.endDate&&(i=e>new Date(this.endDate).getTime()),r||n||i},handleClick(t){if(this.isForbiddenInterval(t)){this.$emit("forbidden-timestamp-clicked",t);return}if(this.isHoveringGroupedEvents){if(this.isHoveringGroupedEvents=!1,this.$emit("grouped-events-clicked",{events:this.hoveredGroupedEvents,type:this.hoveredEventType}),this.stopClickPropagation)return}else if(this.isHoveringEvent&&(this.isHoveringEvent=!1,this.$emit("event-clicked",{event:this.hoveredEvent,type:this.hoveredEventType}),this.stopClickPropagation))return;this.$emit("date-clicked",t),this.panOnDateClick&&(this.focusedTimestamp=t)},handleMarkerClick(t){this.$emit("marker-clicked",t),this.panOnDateClick&&(this.focusedTimestamp=t.timestamp)},handleChartMouseOver(t,e,r){this.isAnimating||!this.countsByTimestamp[`${e.timestamp||e.startDate}`]||(this.hoveredCounts=Object.entries(this.countsByTimestamp[`${e.timestamp||e.startDate}`]).reduce((n,i)=>{var u;const[o,a]=i;return(u=this.hiddenGroupsLabels)!=null&&u.includes(o)?n:[...n,{type:o,count:a,label:this.getExternalLabelText(o)}]},[]),this.hoveredEvent=e,this.isHoveringEvent=!0,this.$emit("event-mouseover",{eventData:e,eventType:r,hoveredCounts:this.hoveredCounts}))},handleChartMouseOut(){this.isHoveringEvent=!1,this.hoveredCounts=[],this.$emit("event-mouseout")},handleBarMouseOver(t,e,r){t.offsetX<=this.minHoverZone||(this.hoveredEvent=e,this.hoveredEventType=r,this.isHoveringEvent=!0,this.isHoveringGroupedEvents=!1,this.$emit("event-mouseover",{eventData:e,eventType:r}))},handleBarGroupedEventsMouseOver(t,e,r){t.offsetX<=this.minHoverZone||(this.hoveredGroupedEvents=e,this.hoveredEventType=r,this.isHoveringEvent=!1,this.isHoveringGroupedEvents=!0,this.$emit("grouped-events-mouseover",{events:e,eventType:r}))},handleBarMouseOut(){this.isHoveringEvent=!1,this.isHoveringGroupedEvents=!1,this.hoveredEvent=null,this.hoveredGroupedEvents=null,this.$emit("event-mouseout")},handleTimeScaleChange(t){this.$emit("time-scale-change",t)},zoomToStartAndEndDates(){var r,n;const t=this.startDate||((r=this.focusedInterval)==null?void 0:r.startDate)||this.defaultFocusedDomain[0],e=this.endDate||((n=this.focusedInterval)==null?void 0:n.endDate)||this.defaultFocusedDomain[1];this.focusedDomain=[this.tzStringToDate(t),this.tzStringToDate(e)]},onAnimationStart(){this.isAnimating=!0,this.$emit("animation-start")},onAnimationEnd(){this.isAnimating=!1,this.$emit("animation-end")},getMilestoneClass(t){return{[me.milestoneSelected]:[t.id,t.timestamp].includes(this.selectedMilestoneId)}},getMilestoneColors(t,e){return{background:t||e,border:this.getTextFillColor(t||e,.25)}},getMilestoneGroupYPosition(t){let e=0;for(const[r,n]of Object.entries(this.milestonesGroups)){if(r===t)break;e+=n.height||this.barHeight}return this.combinedXAxesHeight+this.milestonesYOffset+e},getBarGroupYPosition(t,e){let r=this.combinedXAxesHeight;e?r+=(this.hasChart?this.chartHeight:0)+(this.hasMilestones?this.combinedMilestonesHeight:0):r+=this.barsYOffset;for(const[n,i]of Object.entries(this.barGroups)){if(n===t)break;!e&&i.bottom||(r+=this.getBarGroupHeight(i))}return r},getBarGroupHeight(t){return t.height?Math.max(t.height+this.barYPadding,1):this.barHeight+this.barYPadding},getTextFillColor(t,e=0){var r,n;return(this.dark?(r=O.color(t))==null?void 0:r.brighter(1.5+e):(n=O.color(t))==null?void 0:n.darker(2+e)).toString()},getLabelBackgroundColor(t){let e=O.color(t);return e.opacity=this.dark?.2:.5,e.toString()},getCurrentGroupVisibility(t){var n;const e=this.groupsVisibility[t];if(e!==void 0)return e;const r=(n=this.eventsGroups[t])==null?void 0:n.isHidden;return r!==void 0?!r:!0},toggleGroupVisibility(t){this.groupsVisibility={...this.groupsVisibility,[t]:!this.getCurrentGroupVisibility(t)}},getExternalLabelStyles(t){const e=this.eventsGroups[t].color;return{background:this.getLabelBackgroundColor(e),color:this.getTextFillColor(e)}},getExternalLabelText(t){var e;return(e=this.eventsGroups[t])==null?void 0:e.label},getExternalLabelWrapperStyles(t){const e=this.eventsGroups[t].color;return{borderColor:this.getTextFillColor(e)}},tzStringToDate(t){return Ve({timestamp:t,timezone:this.timezone})},getFormattedTimestamp(t){return ke.parseZone(t).format("YYYY-MM-DDTHH:mm:ss")},fillTimeGaps(t){if(t.length<=1)return t;const e=this.insertZerosAtInterval,r=o=>o.clone().add(1,e),n=o=>o.clone().subtract(1,e);let i=[];for(let o=0;o<t.length;o++){const a=t[o];if(i.push(a),o===t.length-1)break;const u=t[o+1],s=ke(a.timestamp),l=ke(u.timestamp);if(l.diff(s,e)>1){const d=r(s).toISOString(),p=n(l).toISOString();i.push({timestamp:d,count:0}),d!==p&&i.push({timestamp:p,count:0})}}if(this.flattenLineGraphEnds){const o=ke(t[0].timestamp),a=ke(t[t.length-1].timestamp),u=n(o).toISOString(),s=r(a).toISOString();i=[{timestamp:u,count:0},...i,{timestamp:s,count:0}]}return i},fillEvents(t){return this.placeholderLineChartGroup.map(e=>t.find(n=>n.timestamp===e.timestamp)||e)},onMilestoneClick(t,e){this.panOnDateClick&&(this.focusedTimestamp=t.timestamp),this.selectedMilestoneId=t.id||t.timestamp,this.$emit("milestone-click",{milestone:t,milestoneType:e})},getSortedEvents(t){return[...t].sort((e,r)=>new Date(e.timestamp||e.startDate)>new Date(r.timestamp||r.startDate)?1:-1)},onHoverMilestone(t){this.hoveredMilestone=t},onResizeContainer({contentRect:t}){this.width===t.width||t.width===0||(this.width=t.width,this.$emit("timeline-resize",{contentRect:t}))}}}),id="";var v5=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResizeContainer,expression:"onResizeContainer"}],ref:"mainContainer",staticClass:"e-timeline"},[r("EZoomBehavior",{attrs:{domain:e.domain,"focused-domain":e.focusedDomain,"translation-duration":e.transitionDuration,"focused-timestamp":e.focusedTimestamp,timezone:e.timezone,width:e.width},on:{"visible-interval-change":e.handleVisibleIntervalChange,"time-scale-change":e.handleTimeScaleChange,"animation-start":e.onAnimationStart,"animation-end":e.onAnimationEnd},scopedSlots:e._u([{key:"default",fn:function({timeScale:n}){return[n?r("div",{staticClass:"e-relative e-timeline e-border e-rounded",class:e.computedClasses.wrapper},[r("ECursorBehavior",{attrs:{"time-scale":n,timezone:e.timezone,"min-hover-zone":e.minHoverZone,"is-hovering-milestone":e.isHoveringMilestone},on:{"mouse-move":e.handleMouseMove,"mouse-leave":e.handleMouseLeave,"timestamp-clicked":e.handleClick},scopedSlots:e._u([{key:"default",fn:function({hoveredTimestamp:i,isHoveringTimeline:o}){var a;return[r("ETimelineMarkers",{attrs:{markers:e.sortedMarkers,"sticky-markers":e.stickyMarkers,"time-scale":n,"time-zone":e.timezone,height:e.timelineHeight,"svg-left":e.svgLeft},on:{"marker-clicked":e.handleMarkerClick,"marker-drag-end":function(u){return e.$emit("marker-drag-end",u)},"marker-drag-start":function(u){return e.$emit("marker-drag-start",u)},"marker-drag-drag":function(u){return e.$emit("marker-drag-drag",u)}},scopedSlots:e._u([e._l(e.markersScopedSlots,function(u,s){return{key:s,fn:function(l){return[e._t(s,null,null,l)]}}})],null,!0)}),r("div",{ref:"timelineContainer",staticClass:"e-timeline__svg-container e-relative e-h-13 e-rounded e-select-none e-overflow-x-hidden"},[r("svg",{ref:"timelineSvg",class:e.computedClasses.background,attrs:{width:e.width,height:e.timelineHeight}},[r("ETimelineSVGDefs",{attrs:{"events-groups":e.eventsGroups,width:e.width,height:e.chartHeight,"forbidden-interval-color":e.forbiddenIntervalColor}}),r("g",{staticClass:"e-timeline-axes"},[n?r("EXAxisOverview",{attrs:{"time-scale":n,height:e.timelineHeight,dark:e.dark}}):e._e(),n?r("EXAxisDetailed",{attrs:{"time-scale":n,height:e.timelineHeight-e.axisHeight,y:e.axisHeight,dark:e.dark}}):e._e(),n?r("EXAxisBackground",{attrs:{"time-scale":n,height:e.timelineHeight-e.combinedXAxesHeight,y:e.combinedXAxesHeight,dark:e.dark}}):e._e()],1),e.selectedTimestamp?r("ETimelineSelectedTimestampCursor",{attrs:{"time-scale":n,"selected-timestamp":e.selectedTimestamp,timezone:e.timezone,height:e.timelineHeight}}):e._e(),i&&o&&!e.isHoveringMilestone&&e.showCursor?r("ETimelineCursor",{attrs:{"time-scale":n,"selected-timestamp":i,timezone:e.timezone,height:e.timelineHeight}}):e._e(),e._l(e.forbiddenIntervals,function(u,s){return r("ETimelineForbiddenInterval",{key:s,attrs:{"time-scale":n,interval:u,index:s,height:e.timelineHeight,timezone:e.timezone}})}),e._l(e.barGroups,function(u,s){return r("ETimelineRectsChart",{key:s,attrs:{"time-scale":n,"events-group":u,"group-id":s,y:e.getBarGroupYPosition(s,u.bottom),height:e.barHeight,width:e.width,"rect-y-padding":e.barYPadding,dark:e.dark,"show-label":e.showLabels,timezone:e.timezone,dots:u.chartType===e.TimelineChartType.Dots,"dots-size":u.dotsSize,"bar-border-radius":u.barBorderRadius,"group-overlapping-dots":u.groupOverlappingDots},on:{"event-mouseover":e.handleBarMouseOver,"grouped-events-mouseover":e.handleBarGroupedEventsMouseOver,"event-mouseout":e.handleBarMouseOut,"group-label-clicked":e.toggleGroupVisibility}})}),e._l(e.milestonesGroupsPlaceholder,function(u,s){return r("ETimelineRectsChart",{key:s,attrs:{width:e.width,y:e.getMilestoneGroupYPosition(s),height:u.height,"group-id":s,"events-group":u,"time-scale":n,dark:e.dark,dots:!0,"show-label":!1}})}),e._l(e.insertZerosAtInterval?e.filledGapsLineGraphGroups:e.lineGraphGroups,function(u,s){return r("ETimelineLinesChart",{key:s,attrs:{"group-id":s,"time-scale":n,"events-group":u,y:e.getChartsYPosition(s),height:e.chartHeight,width:e.width,dark:e.dark,timezone:e.timezone,"show-label":e.showLabels,"label-height":e.chartLabelHeight,"max-visible-count":e.maxVisibleCount,"y-offset":e.chartsYOffset,"hovered-timestamp":i},on:{"event-mouseover":e.handleChartMouseOver,"event-mouseout":e.handleChartMouseOut,"group-label-clicked":e.toggleGroupVisibility}})}),e._l(e.barChartGroups,function(u,s,l){return r("ETimelineBarsChart",{key:s,attrs:{"group-id":s,width:e.width,y:e.getChartsYPosition(s),height:e.chartHeight,"events-group":u,"time-scale":n,dark:e.dark,"y-offset":e.chartsYOffset,"label-height":e.chartLabelHeight,"max-visible-count":e.maxVisibleCount,"show-label":e.showLabels,"hovered-timestamp":i,"previous-counts-by-timestamp":e.getPreviousCountsByTimestamp(l)},on:{"event-mouseover":e.handleChartMouseOver,"event-mouseout":e.handleChartMouseOut,"group-label-clicked":e.toggleGroupVisibility}})})],2)]),e._l(e.milestonesGroups,function(u,s){return r("div",{key:`${s}`,staticClass:"e-timeline-milestones",attrs:{"data-test-id":"timeline-milestones"}},[r("div",{class:`e-tl-milestones e-tl-milestones-${s}`},e._l(e.getSortedEvents(u.events),function(l,d){return r("ETimelineMilestone",{key:`${l.milestoneType}-${d}`,class:e.getMilestoneClass(l),attrs:{"time-scale":n,y:e.getMilestoneGroupYPosition(s),height:u.height||e.barHeight,"data-timestamp":l.timestamp,milestone:l,dot:u.dots,size:l.size||e.milestoneBulletSize,"transition-duration":u.milestonesTransitionDuration,"line-height":u.milestonesLineHeight,"dot-size":u.milestonesDotSize,"data-test-id":`milestone-${l.milestoneType}-${d}`,"background-color":e.getMilestoneColors(l.color,u.color).background,"border-color":e.getMilestoneColors(l.color,u.color).border,timezone:e.timezone},on:{"hovered-milestone":e.onHoverMilestone,"milestone-click":function(p){return e.onMilestoneClick(l,s)}},scopedSlots:e._u([{key:"content",fn:function(){return[e._t(`milestoneContent.${l.milestoneType}`,function(){return[r("span",{staticClass:"e-px-2"},[e._v(" "+e._s(l.text)+" ")])]},{milestone:l,index:d,hover:l===e.hoveredMilestone})]},proxy:!0},{key:"label",fn:function(){return[e._t(`milestoneLabel.${l.milestoneType}`,null,{milestone:l})]},proxy:!0}],null,!0)})}),1)])}),r("div",{staticClass:"external-labels-container e-flex"},e._l(e.hiddenGroupsLabels,function(u){return r("div",{key:u,staticClass:"external-label",class:e.computedClasses.background,style:e.getExternalLabelWrapperStyles(u),on:{click:function(s){return s.stopPropagation(),e.toggleGroupVisibility(u)}}},[r("div",{staticClass:"external-label__content",style:e.getExternalLabelStyles(u)},[e._v(" "+e._s(e.getExternalLabelText(u))+" ")])])}),0),r("div",{key:"tooltip",ref:"tooltip",staticClass:"e-absolute",style:e.eventTooltipStyle},[e._t("tooltip",function(){return[r("div",{directives:[{name:"show",rawName:"v-show",value:o&&!e.isHoveringEvent&&!e.isHoveringMilestone,expression:`
3
+ `),X=I.length-1,X>0?(P=E+X,N=T-I[X].length):(P=E,N=R),_=e.comment,E=P,q=P,z=T-N):U===e.slash?(T=j,_=U,q=E,z=j-R,Q=T+1):(T=p($,j),_=e.word,q=E,z=T-R),Q=T+1;break}y.push([_,E,j-R,q,z,j,Q]),N&&(R=N,N=null),j=Q}return y}}(fi),function(t,e){e.__esModule=!0,e.default=void 0;var r=Q(ri),n=Q(ni),i=Q(ii),o=Q(si),a=Q(ai),u=Q(oi),s=Q(li),l=Q(ci),d=j(Pr),p=Q(ui),m=Q(di),b=Q(hi),x=Q(Qa),h=j(fi),y=j(ee),$=j(ue),D=Fe,S,R;function E(){if(typeof WeakMap!="function")return null;var Z=new WeakMap;return E=function(){return Z},Z}function j(Z){if(Z&&Z.__esModule)return Z;if(Z===null||typeof Z!="object"&&typeof Z!="function")return{default:Z};var F=E();if(F&&F.has(Z))return F.get(Z);var B={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var W in Z)if(Object.prototype.hasOwnProperty.call(Z,W)){var V=w?Object.getOwnPropertyDescriptor(Z,W):null;V&&(V.get||V.set)?Object.defineProperty(B,W,V):B[W]=Z[W]}return B.default=Z,F&&F.set(Z,B),B}function Q(Z){return Z&&Z.__esModule?Z:{default:Z}}function U(Z,F){for(var B=0;B<F.length;B++){var w=F[B];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(Z,w.key,w)}}function C(Z,F,B){return F&&U(Z.prototype,F),B&&U(Z,B),Z}var z=(S={},S[y.space]=!0,S[y.cr]=!0,S[y.feed]=!0,S[y.newline]=!0,S[y.tab]=!0,S),q=Object.assign({},z,(R={},R[y.comment]=!0,R));function L(Z){return{line:Z[h.FIELDS.START_LINE],column:Z[h.FIELDS.START_COL]}}function Y(Z){return{line:Z[h.FIELDS.END_LINE],column:Z[h.FIELDS.END_COL]}}function X(Z,F,B,w){return{start:{line:Z,column:F},end:{line:B,column:w}}}function I(Z){return X(Z[h.FIELDS.START_LINE],Z[h.FIELDS.START_COL],Z[h.FIELDS.END_LINE],Z[h.FIELDS.END_COL])}function T(Z,F){if(Z)return X(Z[h.FIELDS.START_LINE],Z[h.FIELDS.START_COL],F[h.FIELDS.END_LINE],F[h.FIELDS.END_COL])}function P(Z,F){var B=Z[F];if(typeof B=="string")return B.indexOf("\\")!==-1&&((0,D.ensureObject)(Z,"raws"),Z[F]=(0,D.unesc)(B),Z.raws[F]===void 0&&(Z.raws[F]=B)),Z}function N(Z,F){for(var B=-1,w=[];(B=Z.indexOf(F,B+1))!==-1;)w.push(B);return w}function ne(){var Z=Array.prototype.concat.apply([],arguments);return Z.filter(function(F,B){return B===Z.indexOf(F)})}var _=function(){function Z(B,w){w===void 0&&(w={}),this.rule=B,this.options=Object.assign({lossy:!1,safe:!1},w),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,h.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var W=T(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new r.default({source:W}),this.root.errorGenerator=this._errorGenerator();var V=new n.default({source:{start:{line:1,column:1}}});this.root.append(V),this.current=V,this.loop()}var F=Z.prototype;return F._errorGenerator=function(){var w=this;return function(W,V){return typeof w.rule=="string"?new Error(W):w.rule.error(W,V)}},F.attribute=function(){var w=[],W=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[h.FIELDS.TYPE]!==y.closeSquare;)w.push(this.currToken),this.position++;if(this.currToken[h.FIELDS.TYPE]!==y.closeSquare)return this.expected("closing square bracket",this.currToken[h.FIELDS.START_POS]);var V=w.length,M={source:X(W[1],W[2],this.currToken[3],this.currToken[4]),sourceIndex:W[h.FIELDS.START_POS]};if(V===1&&!~[y.word].indexOf(w[0][h.FIELDS.TYPE]))return this.expected("attribute",w[0][h.FIELDS.START_POS]);for(var re=0,ce="",le="",ie=null,he=!1;re<V;){var Se=w[re],oe=this.content(Se),ye=w[re+1];switch(Se[h.FIELDS.TYPE]){case y.space:if(he=!0,this.options.lossy)break;if(ie){(0,D.ensureObject)(M,"spaces",ie);var Ae=M.spaces[ie].after||"";M.spaces[ie].after=Ae+oe;var Be=(0,D.getProp)(M,"raws","spaces",ie,"after")||null;Be&&(M.raws.spaces[ie].after=Be+oe)}else ce=ce+oe,le=le+oe;break;case y.asterisk:if(ye[h.FIELDS.TYPE]===y.equals)M.operator=oe,ie="operator";else if((!M.namespace||ie==="namespace"&&!he)&&ye){ce&&((0,D.ensureObject)(M,"spaces","attribute"),M.spaces.attribute.before=ce,ce=""),le&&((0,D.ensureObject)(M,"raws","spaces","attribute"),M.raws.spaces.attribute.before=ce,le=""),M.namespace=(M.namespace||"")+oe;var $e=(0,D.getProp)(M,"raws","namespace")||null;$e&&(M.raws.namespace+=oe),ie="namespace"}he=!1;break;case y.dollar:if(ie==="value"){var Te=(0,D.getProp)(M,"raws","value");M.value+="$",Te&&(M.raws.value=Te+"$");break}case y.caret:ye[h.FIELDS.TYPE]===y.equals&&(M.operator=oe,ie="operator"),he=!1;break;case y.combinator:if(oe==="~"&&ye[h.FIELDS.TYPE]===y.equals&&(M.operator=oe,ie="operator"),oe!=="|"){he=!1;break}ye[h.FIELDS.TYPE]===y.equals?(M.operator=oe,ie="operator"):!M.namespace&&!M.attribute&&(M.namespace=!0),he=!1;break;case y.word:if(ye&&this.content(ye)==="|"&&w[re+2]&&w[re+2][h.FIELDS.TYPE]!==y.equals&&!M.operator&&!M.namespace)M.namespace=oe,ie="namespace";else if(!M.attribute||ie==="attribute"&&!he){ce&&((0,D.ensureObject)(M,"spaces","attribute"),M.spaces.attribute.before=ce,ce=""),le&&((0,D.ensureObject)(M,"raws","spaces","attribute"),M.raws.spaces.attribute.before=le,le=""),M.attribute=(M.attribute||"")+oe;var Me=(0,D.getProp)(M,"raws","attribute")||null;Me&&(M.raws.attribute+=oe),ie="attribute"}else if(!M.value&&M.value!==""||ie==="value"&&!he){var Ee=(0,D.unesc)(oe),Le=(0,D.getProp)(M,"raws","value")||"",De=M.value||"";M.value=De+Ee,M.quoteMark=null,(Ee!==oe||Le)&&((0,D.ensureObject)(M,"raws"),M.raws.value=(Le||De)+oe),ie="value"}else{var et=oe==="i"||oe==="I";(M.value||M.value==="")&&(M.quoteMark||he)?(M.insensitive=et,(!et||oe==="I")&&((0,D.ensureObject)(M,"raws"),M.raws.insensitiveFlag=oe),ie="insensitive",ce&&((0,D.ensureObject)(M,"spaces","insensitive"),M.spaces.insensitive.before=ce,ce=""),le&&((0,D.ensureObject)(M,"raws","spaces","insensitive"),M.raws.spaces.insensitive.before=le,le="")):(M.value||M.value==="")&&(ie="value",M.value+=oe,M.raws.value&&(M.raws.value+=oe))}he=!1;break;case y.str:if(!M.attribute||!M.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:Se[h.FIELDS.START_POS]});var Qe=(0,d.unescapeValue)(oe),lt=Qe.unescaped,Tt=Qe.quoteMark;M.value=lt,M.quoteMark=Tt,ie="value",(0,D.ensureObject)(M,"raws"),M.raws.value=oe,he=!1;break;case y.equals:if(!M.attribute)return this.expected("attribute",Se[h.FIELDS.START_POS],oe);if(M.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:Se[h.FIELDS.START_POS]});M.operator=M.operator?M.operator+oe:oe,ie="operator",he=!1;break;case y.comment:if(ie)if(he||ye&&ye[h.FIELDS.TYPE]===y.space||ie==="insensitive"){var Ze=(0,D.getProp)(M,"spaces",ie,"after")||"",pt=(0,D.getProp)(M,"raws","spaces",ie,"after")||Ze;(0,D.ensureObject)(M,"raws","spaces",ie),M.raws.spaces[ie].after=pt+oe}else{var jt=M[ie]||"",Gt=(0,D.getProp)(M,"raws",ie)||jt;(0,D.ensureObject)(M,"raws"),M.raws[ie]=Gt+oe}else le=le+oe;break;default:return this.error('Unexpected "'+oe+'" found.',{index:Se[h.FIELDS.START_POS]})}re++}P(M,"attribute"),P(M,"namespace"),this.newNode(new d.default(M)),this.position++},F.parseWhitespaceEquivalentTokens=function(w){w<0&&(w=this.tokens.length);var W=this.position,V=[],M="",re=void 0;do if(z[this.currToken[h.FIELDS.TYPE]])this.options.lossy||(M+=this.content());else if(this.currToken[h.FIELDS.TYPE]===y.comment){var ce={};M&&(ce.before=M,M=""),re=new o.default({value:this.content(),source:I(this.currToken),sourceIndex:this.currToken[h.FIELDS.START_POS],spaces:ce}),V.push(re)}while(++this.position<w);if(M){if(re)re.spaces.after=M;else if(!this.options.lossy){var le=this.tokens[W],ie=this.tokens[this.position-1];V.push(new s.default({value:"",source:X(le[h.FIELDS.START_LINE],le[h.FIELDS.START_COL],ie[h.FIELDS.END_LINE],ie[h.FIELDS.END_COL]),sourceIndex:le[h.FIELDS.START_POS],spaces:{before:M,after:""}}))}}return V},F.convertWhitespaceNodesToSpace=function(w,W){var V=this;W===void 0&&(W=!1);var M="",re="";w.forEach(function(le){var ie=V.lossySpace(le.spaces.before,W),he=V.lossySpace(le.rawSpaceBefore,W);M+=ie+V.lossySpace(le.spaces.after,W&&ie.length===0),re+=ie+le.value+V.lossySpace(le.rawSpaceAfter,W&&he.length===0)}),re===M&&(re=void 0);var ce={space:M,rawSpace:re};return ce},F.isNamedCombinator=function(w){return w===void 0&&(w=this.position),this.tokens[w+0]&&this.tokens[w+0][h.FIELDS.TYPE]===y.slash&&this.tokens[w+1]&&this.tokens[w+1][h.FIELDS.TYPE]===y.word&&this.tokens[w+2]&&this.tokens[w+2][h.FIELDS.TYPE]===y.slash},F.namedCombinator=function(){if(this.isNamedCombinator()){var w=this.content(this.tokens[this.position+1]),W=(0,D.unesc)(w).toLowerCase(),V={};W!==w&&(V.value="/"+w+"/");var M=new m.default({value:"/"+W+"/",source:X(this.currToken[h.FIELDS.START_LINE],this.currToken[h.FIELDS.START_COL],this.tokens[this.position+2][h.FIELDS.END_LINE],this.tokens[this.position+2][h.FIELDS.END_COL]),sourceIndex:this.currToken[h.FIELDS.START_POS],raws:V});return this.position=this.position+3,M}else this.unexpected()},F.combinator=function(){var w=this;if(this.content()==="|")return this.namespace();var W=this.locateNextMeaningfulToken(this.position);if(W<0||this.tokens[W][h.FIELDS.TYPE]===y.comma){var V=this.parseWhitespaceEquivalentTokens(W);if(V.length>0){var M=this.current.last;if(M){var re=this.convertWhitespaceNodesToSpace(V),ce=re.space,le=re.rawSpace;le!==void 0&&(M.rawSpaceAfter+=le),M.spaces.after+=ce}else V.forEach(function(Le){return w.newNode(Le)})}return}var ie=this.currToken,he=void 0;W>this.position&&(he=this.parseWhitespaceEquivalentTokens(W));var Se;if(this.isNamedCombinator()?Se=this.namedCombinator():this.currToken[h.FIELDS.TYPE]===y.combinator?(Se=new m.default({value:this.content(),source:I(this.currToken),sourceIndex:this.currToken[h.FIELDS.START_POS]}),this.position++):z[this.currToken[h.FIELDS.TYPE]]||he||this.unexpected(),Se){if(he){var oe=this.convertWhitespaceNodesToSpace(he),ye=oe.space,Ae=oe.rawSpace;Se.spaces.before=ye,Se.rawSpaceBefore=Ae}}else{var Be=this.convertWhitespaceNodesToSpace(he,!0),$e=Be.space,Te=Be.rawSpace;Te||(Te=$e);var Me={},Ee={spaces:{}};$e.endsWith(" ")&&Te.endsWith(" ")?(Me.before=$e.slice(0,$e.length-1),Ee.spaces.before=Te.slice(0,Te.length-1)):$e.startsWith(" ")&&Te.startsWith(" ")?(Me.after=$e.slice(1),Ee.spaces.after=Te.slice(1)):Ee.value=Te,Se=new m.default({value:" ",source:T(ie,this.tokens[this.position-1]),sourceIndex:ie[h.FIELDS.START_POS],spaces:Me,raws:Ee})}return this.currToken&&this.currToken[h.FIELDS.TYPE]===y.space&&(Se.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(Se)},F.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var w=new n.default({source:{start:L(this.tokens[this.position+1])}});this.current.parent.append(w),this.current=w,this.position++},F.comment=function(){var w=this.currToken;this.newNode(new o.default({value:this.content(),source:I(w),sourceIndex:w[h.FIELDS.START_POS]})),this.position++},F.error=function(w,W){throw this.root.error(w,W)},F.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[h.FIELDS.START_POS]})},F.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[h.FIELDS.START_POS])},F.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[h.FIELDS.START_POS])},F.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[h.FIELDS.START_POS])},F.namespace=function(){var w=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[h.FIELDS.TYPE]===y.word)return this.position++,this.word(w);if(this.nextToken[h.FIELDS.TYPE]===y.asterisk)return this.position++,this.universal(w)},F.nesting=function(){if(this.nextToken){var w=this.content(this.nextToken);if(w==="|"){this.position++;return}}var W=this.currToken;this.newNode(new b.default({value:this.content(),source:I(W),sourceIndex:W[h.FIELDS.START_POS]})),this.position++},F.parentheses=function(){var w=this.current.last,W=1;if(this.position++,w&&w.type===$.PSEUDO){var V=new n.default({source:{start:L(this.tokens[this.position-1])}}),M=this.current;for(w.append(V),this.current=V;this.position<this.tokens.length&&W;)this.currToken[h.FIELDS.TYPE]===y.openParenthesis&&W++,this.currToken[h.FIELDS.TYPE]===y.closeParenthesis&&W--,W?this.parse():(this.current.source.end=Y(this.currToken),this.current.parent.source.end=Y(this.currToken),this.position++);this.current=M}else{for(var re=this.currToken,ce="(",le;this.position<this.tokens.length&&W;)this.currToken[h.FIELDS.TYPE]===y.openParenthesis&&W++,this.currToken[h.FIELDS.TYPE]===y.closeParenthesis&&W--,le=this.currToken,ce+=this.parseParenthesisToken(this.currToken),this.position++;w?w.appendToPropertyAndEscape("value",ce,ce):this.newNode(new s.default({value:ce,source:X(re[h.FIELDS.START_LINE],re[h.FIELDS.START_COL],le[h.FIELDS.END_LINE],le[h.FIELDS.END_COL]),sourceIndex:re[h.FIELDS.START_POS]}))}if(W)return this.expected("closing parenthesis",this.currToken[h.FIELDS.START_POS])},F.pseudo=function(){for(var w=this,W="",V=this.currToken;this.currToken&&this.currToken[h.FIELDS.TYPE]===y.colon;)W+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[h.FIELDS.TYPE]===y.word)this.splitWord(!1,function(M,re){W+=M,w.newNode(new l.default({value:W,source:T(V,w.currToken),sourceIndex:V[h.FIELDS.START_POS]})),re>1&&w.nextToken&&w.nextToken[h.FIELDS.TYPE]===y.openParenthesis&&w.error("Misplaced parenthesis.",{index:w.nextToken[h.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[h.FIELDS.START_POS])},F.space=function(){var w=this.content();this.position===0||this.prevToken[h.FIELDS.TYPE]===y.comma||this.prevToken[h.FIELDS.TYPE]===y.openParenthesis||this.current.nodes.every(function(W){return W.type==="comment"})?(this.spaces=this.optionalSpace(w),this.position++):this.position===this.tokens.length-1||this.nextToken[h.FIELDS.TYPE]===y.comma||this.nextToken[h.FIELDS.TYPE]===y.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(w),this.position++):this.combinator()},F.string=function(){var w=this.currToken;this.newNode(new s.default({value:this.content(),source:I(w),sourceIndex:w[h.FIELDS.START_POS]})),this.position++},F.universal=function(w){var W=this.nextToken;if(W&&this.content(W)==="|")return this.position++,this.namespace();var V=this.currToken;this.newNode(new p.default({value:this.content(),source:I(V),sourceIndex:V[h.FIELDS.START_POS]}),w),this.position++},F.splitWord=function(w,W){for(var V=this,M=this.nextToken,re=this.content();M&&~[y.dollar,y.caret,y.equals,y.word].indexOf(M[h.FIELDS.TYPE]);){this.position++;var ce=this.content();if(re+=ce,ce.lastIndexOf("\\")===ce.length-1){var le=this.nextToken;le&&le[h.FIELDS.TYPE]===y.space&&(re+=this.requiredSpace(this.content(le)),this.position++)}M=this.nextToken}var ie=N(re,".").filter(function(ye){var Ae=re[ye-1]==="\\",Be=/^\d+\.\d+%$/.test(re);return!Ae&&!Be}),he=N(re,"#").filter(function(ye){return re[ye-1]!=="\\"}),Se=N(re,"#{");Se.length&&(he=he.filter(function(ye){return!~Se.indexOf(ye)}));var oe=(0,x.default)(ne([0].concat(ie,he)));oe.forEach(function(ye,Ae){var Be=oe[Ae+1]||re.length,$e=re.slice(ye,Be);if(Ae===0&&W)return W.call(V,$e,oe.length);var Te,Me=V.currToken,Ee=Me[h.FIELDS.START_POS]+oe[Ae],Le=X(Me[1],Me[2]+ye,Me[3],Me[2]+(Be-1));if(~ie.indexOf(ye)){var De={value:$e.slice(1),source:Le,sourceIndex:Ee};Te=new i.default(P(De,"value"))}else if(~he.indexOf(ye)){var et={value:$e.slice(1),source:Le,sourceIndex:Ee};Te=new a.default(P(et,"value"))}else{var Qe={value:$e,source:Le,sourceIndex:Ee};P(Qe,"value"),Te=new u.default(Qe)}V.newNode(Te,w),w=null}),this.position++},F.word=function(w){var W=this.nextToken;return W&&this.content(W)==="|"?(this.position++,this.namespace()):this.splitWord(w)},F.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},F.parse=function(w){switch(this.currToken[h.FIELDS.TYPE]){case y.space:this.space();break;case y.comment:this.comment();break;case y.openParenthesis:this.parentheses();break;case y.closeParenthesis:w&&this.missingParenthesis();break;case y.openSquare:this.attribute();break;case y.dollar:case y.caret:case y.equals:case y.word:this.word();break;case y.colon:this.pseudo();break;case y.comma:this.comma();break;case y.asterisk:this.universal();break;case y.ampersand:this.nesting();break;case y.slash:case y.combinator:this.combinator();break;case y.str:this.string();break;case y.closeSquare:this.missingSquareBracket();case y.semicolon:this.missingBackslash();default:this.unexpected()}},F.expected=function(w,W,V){if(Array.isArray(w)){var M=w.pop();w=w.join(", ")+" or "+M}var re=/^[aeiou]/.test(w[0])?"an":"a";return V?this.error("Expected "+re+" "+w+', found "'+V+'" instead.',{index:W}):this.error("Expected "+re+" "+w+".",{index:W})},F.requiredSpace=function(w){return this.options.lossy?" ":w},F.optionalSpace=function(w){return this.options.lossy?"":w},F.lossySpace=function(w,W){return this.options.lossy?W?" ":"":w},F.parseParenthesisToken=function(w){var W=this.content(w);return w[h.FIELDS.TYPE]===y.space?this.requiredSpace(W):W},F.newNode=function(w,W){return W&&(/^ +$/.test(W)&&(this.options.lossy||(this.spaces=(this.spaces||"")+W),W=!0),w.namespace=W,P(w,"namespace")),this.spaces&&(w.spaces.before=this.spaces,this.spaces=""),this.current.append(w)},F.content=function(w){return w===void 0&&(w=this.currToken),this.css.slice(w[h.FIELDS.START_POS],w[h.FIELDS.END_POS])},F.locateNextMeaningfulToken=function(w){w===void 0&&(w=this.position+1);for(var W=w;W<this.tokens.length;)if(q[this.tokens[W][h.FIELDS.TYPE]]){W++;continue}else return W;return-1},C(Z,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),Z}();e.default=_,t.exports=e.default}(hr,hr.exports);var Mo=hr.exports;(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Mo);function n(o){return o&&o.__esModule?o:{default:o}}var i=function(){function o(u,s){this.func=u||function(){},this.funcRes=null,this.options=s}var a=o.prototype;return a._shouldUpdateSelector=function(s,l){l===void 0&&(l={});var d=Object.assign({},this.options,l);return d.updateSelector===!1?!1:typeof s!="string"},a._isLossy=function(s){s===void 0&&(s={});var l=Object.assign({},this.options,s);return l.lossless===!1},a._root=function(s,l){l===void 0&&(l={});var d=new r.default(s,this._parseOptions(l));return d.root},a._parseOptions=function(s){return{lossy:this._isLossy(s)}},a._run=function(s,l){var d=this;return l===void 0&&(l={}),new Promise(function(p,m){try{var b=d._root(s,l);Promise.resolve(d.func(b)).then(function(x){var h=void 0;return d._shouldUpdateSelector(s,l)&&(h=b.toString(),s.selector=h),{transform:x,root:b,string:h}}).then(p,m)}catch(x){m(x);return}})},a._runSync=function(s,l){l===void 0&&(l={});var d=this._root(s,l),p=this.func(d);if(p&&typeof p.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var m=void 0;return l.updateSelector&&typeof s!="string"&&(m=d.toString(),s.selector=m),{transform:p,root:d,string:m}},a.ast=function(s,l){return this._run(s,l).then(function(d){return d.root})},a.astSync=function(s,l){return this._runSync(s,l).root},a.transform=function(s,l){return this._run(s,l).then(function(d){return d.transform})},a.transformSync=function(s,l){return this._runSync(s,l).transform},a.process=function(s,l){return this._run(s,l).then(function(d){return d.string||d.root.toString()})},a.processSync=function(s,l){var d=this._runSync(s,l);return d.string||d.root.toString()},o}();e.default=i,t.exports=e.default})(dr,dr.exports);var Lo=dr.exports,mi={},_e={};_e.__esModule=!0,_e.universal=_e.tag=_e.string=_e.selector=_e.root=_e.pseudo=_e.nesting=_e.id=_e.comment=_e.combinator=_e.className=_e.attribute=void 0;var Do=Ne(Pr),Po=Ne(ii),Oo=Ne(di),zo=Ne(si),Bo=Ne(ai),Io=Ne(hi),Fo=Ne(ci),Ao=Ne(ri),Ro=Ne(ni),Ho=Ne(li),No=Ne(oi),jo=Ne(ui);function Ne(t){return t&&t.__esModule?t:{default:t}}var Go=function(e){return new Do.default(e)};_e.attribute=Go;var Wo=function(e){return new Po.default(e)};_e.className=Wo;var qo=function(e){return new Oo.default(e)};_e.combinator=qo;var Uo=function(e){return new zo.default(e)};_e.comment=Uo;var Zo=function(e){return new Bo.default(e)};_e.id=Zo;var Yo=function(e){return new Io.default(e)};_e.nesting=Yo;var Xo=function(e){return new Fo.default(e)};_e.pseudo=Xo;var Vo=function(e){return new Ao.default(e)};_e.root=Vo;var Qo=function(e){return new Ro.default(e)};_e.selector=Qo;var Ko=function(e){return new Ho.default(e)};_e.string=Ko;var Jo=function(e){return new No.default(e)};_e.tag=Jo;var e1=function(e){return new jo.default(e)};_e.universal=e1;var ge={};ge.__esModule=!0,ge.isNode=Ar,ge.isPseudoElement=_i,ge.isPseudoClass=d1,ge.isContainer=h1,ge.isNamespace=f1,ge.isUniversal=ge.isTag=ge.isString=ge.isSelector=ge.isRoot=ge.isPseudo=ge.isNesting=ge.isIdentifier=ge.isComment=ge.isCombinator=ge.isClassName=ge.isAttribute=void 0;var be=ue,Ie,t1=(Ie={},Ie[be.ATTRIBUTE]=!0,Ie[be.CLASS]=!0,Ie[be.COMBINATOR]=!0,Ie[be.COMMENT]=!0,Ie[be.ID]=!0,Ie[be.NESTING]=!0,Ie[be.PSEUDO]=!0,Ie[be.ROOT]=!0,Ie[be.SELECTOR]=!0,Ie[be.STRING]=!0,Ie[be.TAG]=!0,Ie[be.UNIVERSAL]=!0,Ie);function Ar(t){return typeof t=="object"&&t1[t.type]}function je(t,e){return Ar(e)&&e.type===t}var gi=je.bind(null,be.ATTRIBUTE);ge.isAttribute=gi;var r1=je.bind(null,be.CLASS);ge.isClassName=r1;var n1=je.bind(null,be.COMBINATOR);ge.isCombinator=n1;var i1=je.bind(null,be.COMMENT);ge.isComment=i1;var s1=je.bind(null,be.ID);ge.isIdentifier=s1;var a1=je.bind(null,be.NESTING);ge.isNesting=a1;var Rr=je.bind(null,be.PSEUDO);ge.isPseudo=Rr;var o1=je.bind(null,be.ROOT);ge.isRoot=o1;var l1=je.bind(null,be.SELECTOR);ge.isSelector=l1;var c1=je.bind(null,be.STRING);ge.isString=c1;var vi=je.bind(null,be.TAG);ge.isTag=vi;var u1=je.bind(null,be.UNIVERSAL);ge.isUniversal=u1;function _i(t){return Rr(t)&&t.value&&(t.value.startsWith("::")||t.value.toLowerCase()===":before"||t.value.toLowerCase()===":after"||t.value.toLowerCase()===":first-letter"||t.value.toLowerCase()===":first-line")}function d1(t){return Rr(t)&&!_i(t)}function h1(t){return!!(Ar(t)&&t.walk)}function f1(t){return gi(t)||vi(t)}(function(t){t.__esModule=!0;var e=ue;Object.keys(e).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===e[i]||(t[i]=e[i])});var r=_e;Object.keys(r).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===r[i]||(t[i]=r[i])});var n=ge;Object.keys(n).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===n[i]||(t[i]=n[i])})})(mi),function(t,e){e.__esModule=!0,e.default=void 0;var r=a(Lo),n=o(mi);function i(){if(typeof WeakMap!="function")return null;var l=new WeakMap;return i=function(){return l},l}function o(l){if(l&&l.__esModule)return l;if(l===null||typeof l!="object"&&typeof l!="function")return{default:l};var d=i();if(d&&d.has(l))return d.get(l);var p={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in l)if(Object.prototype.hasOwnProperty.call(l,b)){var x=m?Object.getOwnPropertyDescriptor(l,b):null;x&&(x.get||x.set)?Object.defineProperty(p,b,x):p[b]=l[b]}return p.default=l,d&&d.set(l,p),p}function a(l){return l&&l.__esModule?l:{default:l}}var u=function(d){return new r.default(d)};Object.assign(u,n),delete u.__esModule;var s=u;e.default=s,t.exports=e.default}(ur,ur.exports);var p1=ur.exports;const m1=wa,yi=p1,g1=yi();var v1={isUsableColor(t,e){return m1(e)&&t!=="gray"&&e[600]},commonTrailingPseudos(t){let e=g1.astSync(t),r=[];for(let[i,o]of e.nodes.entries())for(const[a,u]of[...o.nodes].reverse().entries()){if(u.type!=="pseudo"||!u.value.startsWith("::"))break;r[a]=r[a]||[],r[a][i]=u}let n=yi.selector();for(const i of r){if(!i)continue;if(new Set([...i.map(a=>a.value)]).size>1)break;i.forEach(a=>a.remove()),n.prepend(i[0])}return n.nodes.length?[n.toString(),e.toString()]:[null,t]}};const _1=Kn,y1=la,C1=da,b1=ha,{commonTrailingPseudos:x1}=v1,Ci={};function Hr(t,{className:e,modifier:r,prefix:n}){let i=n(`.not-${e}`).slice(1),o=t.startsWith(">")?`${r==="DEFAULT"?`.${e}`:`.${e}-${r}`} `:"",[a,u]=x1(t);return a?`:where(${o}${u}):not(:where([class~="${i}"],[class~="${i}"] *))${a}`:`:where(${o}${t}):not(:where([class~="${i}"],[class~="${i}"] *))`}function bi(t){return typeof t=="object"&&t!==null}function w1(t={},{target:e,className:r,modifier:n,prefix:i}){function o(a,u){return e==="legacy"?[a,u]:Array.isArray(u)?[a,u]:bi(u)?Object.values(u).some(bi)?[Hr(a,{className:r,modifier:n,prefix:i}),u,Object.fromEntries(Object.entries(u).map(([l,d])=>o(l,d)))]:[Hr(a,{className:r,modifier:n,prefix:i}),u]:[a,u]}return Object.fromEntries(Object.entries(y1({},...Object.keys(t).filter(a=>Ci[a]).map(a=>Ci[a](t[a])),...C1(t.css||{}))).map(([a,u])=>o(a,u)))}var xi=_1.withOptions(({className:t="prose",target:e="modern"}={})=>function({addVariant:r,addComponents:n,theme:i,prefix:o}){let a=i("typography"),u={className:t,prefix:o};for(let[s,...l]of[["headings","h1","h2","h3","h4","h5","h6","th"],["h1"],["h2"],["h3"],["h4"],["h5"],["h6"],["p"],["a"],["blockquote"],["figure"],["figcaption"],["strong"],["em"],["kbd"],["code"],["pre"],["ol"],["ul"],["li"],["table"],["thead"],["tr"],["th"],["td"],["img"],["video"],["hr"],["lead",'[class~="lead"]']]){l=l.length===0?[s]:l;let d=e==="legacy"?l.map(p=>`& ${p}`):l.join(", ");r(`${t}-${s}`,e==="legacy"?d:`& :is(${Hr(d,u)})`)}n(Object.keys(a).map(s=>({[s==="DEFAULT"?`.${t}`:`.${t}-${s}`]:w1(a[s],{target:e,className:t,modifier:s,prefix:o})})))},()=>({theme:{typography:b1}}));const wi=yt(xi),S1=Xt({__proto__:null,default:wi},[xi]);var Si={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});const e=n=>Object.assign({},...Object.entries(n!=null?n:{}).flatMap(([i,o])=>typeof o=="object"?Object.entries(e(o)).map(([a,u])=>({[i+(a==="DEFAULT"?"":`-${a}`)]:u})):[{[`${i}`]:o}])),r=e})(Si);var T1={importDefault:t=>t&&t.__esModule?t.default:t};const k1=Si,{importDefault:$1}=T1,E1=$1(k1),Nr=["track","thumb","corner"],Bt=(t,e)=>e?{"@supports (-moz-appearance:none)":t}:t,M1=({addBase:t},e)=>{t({"*":Bt({"scrollbar-color":"initial","scrollbar-width":"initial"},e==="pseudoelements")})},Ti=()=>({...Object.fromEntries(Nr.map(t=>[[`&::-webkit-scrollbar-${t}`,{"background-color":`var(--scrollbar-${t})`,"border-radius":`var(--scrollbar-${t}-radius)`}]]).flat())}),L1=({preferPseudoElements:t})=>({".scrollbar":{...Ti(),...Bt({"scrollbar-width":"auto","scrollbar-color":"var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)"},t),"&::-webkit-scrollbar":{display:"block",width:"var(--scrollbar-width, 16px)",height:"var(--scrollbar-height, 16px)"}},".scrollbar-thin":{...Ti(),...Bt({"scrollbar-width":"thin","scrollbar-color":"var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)"},t),"&::-webkit-scrollbar":{display:"block",width:"8px",height:"8px"}},".scrollbar-none":{...Bt({"scrollbar-width":"none"},t),"&::-webkit-scrollbar":{display:"none"}}}),ki=t=>typeof t=="function"?t({}):t;var D1={addBaseStyles:M1,addBaseSizeUtilities:({addUtilities:t},e)=>{t(L1({preferPseudoElements:e==="pseudoelements"}))},addColorUtilities:({matchUtilities:t,theme:e})=>{const r=E1(e("colors")),n=Object.fromEntries(Object.entries(r).map(([i,o])=>[i,ki(o)]));Nr.forEach(i=>{t({[`scrollbar-${i}`]:o=>({[`--scrollbar-${i}`]:ki(o)})},{values:n,type:"color"})})},addRoundedUtilities:({theme:t,matchUtilities:e})=>{Nr.forEach(r=>{e({[`scrollbar-${r}-rounded`]:n=>({[`--scrollbar-${r}-radius`]:n})},{values:t("borderRadius")})})},addSizeUtilities:({matchUtilities:t,theme:e})=>{["width","height"].forEach(r=>{t({[`scrollbar-${r[0]}`]:n=>({[`--scrollbar-${r}`]:n})},{values:e(r)})})}},P1={addVariants:({addVariant:t})=>{t("scrollbar-hover","&::-webkit-scrollbar-thumb:hover"),t("scrollbar-track-hover","&::-webkit-scrollbar-track:hover"),t("scrollbar-corner-hover","&::-webkit-scrollbar-corner:hover"),t("scrollbar-active","&::-webkit-scrollbar-thumb:active"),t("scrollbar-track-active","&::-webkit-scrollbar-track:active"),t("scrollbar-corner-active","&::-webkit-scrollbar-corner:active")}};const O1=Kn,{addBaseStyles:z1,addBaseSizeUtilities:B1,addColorUtilities:I1,addRoundedUtilities:F1,addSizeUtilities:A1}=D1,{addVariants:R1}=P1;var $i=O1.withOptions((t={})=>e=>{var n;let r=(n=t.preferredStrategy)!=null?n:"standard";r!=="standard"&&r!=="pseudoelements"&&(console.warn("WARNING: tailwind-scrollbar preferredStrategy should be 'standard' or 'pseudoelements'"),r="standard"),z1(e,r),B1(e,r),I1(e),R1(e),t.nocompatible&&(F1(e),A1(e))});const Ei=yt($i),H1=Xt({__proto__:null,default:Ei},[$i]);var It={exports:{}};const Ct=Xn||oa,N1={50:"#FCE3E4",100:"#F9CDCE",200:"#F39699",300:"#ED6368",400:"#E72C32",500:"#C4161C",600:"#9C1216",700:"#770D11",800:"#4E090B",900:"#290506"},Pe={warning:Ct.amber,error:Ct.red,info:Ct.slate,success:Ct.emerald,primary:Ct.blue,brand:N1},j1={...Pe,warning:Pe.warning[500],"warning-darken":Pe.warning[600],"warning-lighten":Pe.warning[400],success:Pe.success[500],"success-darken":Pe.success[600],"success-lighten":Pe.success[400],error:Pe.error[500],"error-darken":Pe.error[600],"error-lighten":Pe.error[400],info:Pe.info[500],"info-darken":Pe.info[600],"info-lighten":Pe.info[400],primary:Pe.primary[500],"primary-darken":Pe.primary[600],"primary-lighten":Pe.primary[400]},G1={prefix:"e-",dark:"class",corePlugins:{preflight:!1},content:["./src/**/*.{html,js,vue,ts}"],theme:{extend:{ringWidth:{1:"1px"},colors:j1,backgroundColor:{surface:{DEFAULT:"#fff",hover:"#e0e2ec","hover-transparent":"rgba(224,226,236,0.64)",active:"#e0ebff"},"surface-dark":{DEFAULT:"#111827",hover:"#263043","hover-transparent":"rgba(38,48,67,0.53)",active:"#003563"}},textColor:{surface:{DEFAULT:"rgba(0, 0, 0, .87)",active:"#1976d2"},"surface-dark":{DEFAULT:"#f6f9ff",active:"#629efc"}},borderColor:{surface:{DEFAULT:"rgb(252, 252, 255)"},"surface-dark":{DEFAULT:"rgba(255, 255, 255, 0.12)"}},lineHeight:{xs:"1rem",sm:"1.25rem",base:"1.5rem",lg:"1.75rem",xl:"1.75rem","2xl":"2rem","3xl":"2.25rem","4xl":"2.5rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},maxWidth:{"1/12":"8.333333333%","2/12":"16.666666666%","3/12":"25%","4/12":"33.333333333%","5/12":"41.666666667%","6/12":"50%","7/12":"58.333333334%","8/12":"66.666666666%","9/12":"75%","10/12":"83.333333334%","11/12":"91.666666666%","12/12":"100%"},blur:{"video-poster":"32px"},transitionProperty:{"opacity-transform":"opacity, transform"},transitionDuration:{600:"600ms"}},fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},plugins:[wi||S1,Ei||H1({nocompatible:!0,preferredStrategy:"pseudoelements"})],safelist:[{pattern:/e-w-(full|auto)/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-grow/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-basis-(\d{1,2}\/\d{1,2}|full|auto|0)/,variants:["lg","md","sm","xs","xl"]},{pattern:/^!?e-max-w-(\d{1,2}\/\d{1,2})/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-offset-(1[0-2]|[1-9])/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-items-(start|center|end|baseline|stretch)/},{pattern:/e-self-(start|center|end|baseline|stretch)/},{pattern:/e-justify-(around|between|center|end|evenly|normal|start|stretch)/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-content-(around|baseline|between|center|end|evenly|normal|start|stretch)/},{pattern:/e-m[trblxy]?-[\w\-/]+/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-p[trblxy]?-[\w\-/]+/,variants:["lg","md","sm","xs","xl"]},"e-tiny","e-caption","e-body","e-title-2","e-title-1","e-display-3","e-display-2","e-display-1",{pattern:/e-text-(xs|sm|base|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl|8xl|9xl)/},{pattern:/e-border-(warning|error|info|success|primary|brand|surface)-./},{pattern:/e-text-(warning|error|info|success|primary|brand|surface)-./},{pattern:/e-bg-(warning|error|info|success|primary|brand|surface)-./}]};It.exports=G1;const W1=(It.exports==null?{}:It.exports).default||It.exports,jr=aa(W1),Mi=jr.theme.fontSize,Li=jr.theme.colors,q1=[K.Dot,K.Xs,K.Sm,K.Md,K.Lg,K.Xl],U1=[K.Xs,K.Sm,K.Md,K.Lg,K.Xl,K.TwoXl],Di=[K.Xs,K.Sm,K.Md,K.Base,K.Lg,K.Xl,K.TwoXl,K.ThreeXl,K.FourXl,K.FiveXl,K.SixXl,K.SevenXl,K.EightXl,K.NineXl],Z1=[K.Sm,K.Md,K.Lg],Y1=[se.Warning,se.Error,se.Info,se.Success,se.Primary,se.Default],X1=[se.Warning,se.Error,se.Info,se.Success,se.Primary,se.Default],V1=[Oe.Top,Oe.Bottom,Oe.Right,Oe.Left],Q1=["play","pause","ended","loadeddata","waiting","playing","timeupdate","canplay","canplaythrough","statechanged"],K1=A.extend({name:"EIcon",props:{icon:{type:String,default:""},color:{type:String,default:se.Default},size:{type:String,default:K.Sm}},computed:{sizes(){return Di.reduce((t,e)=>({...t,[e]:`e-text-${e}`}),{})},iconClasses(){var n,i;const t=this.sizes[this.size]||this.sizes[K.Sm],e=`${((i=(n=this.icon)==null?void 0:n.split(" "))==null?void 0:i.length)>1?this.icon:`fa fa-${this.icon}`}`;return["e-inline-flex e-items-center e-justify-center e-rounded-full",this.color,e,t]}}});var J1=function(){var e=this,r=e._self._c;return r("div",e._b({staticClass:"e-icon"},"div",e.$attrs,!1),[r("i",{class:e.iconClasses})])},e0=[],t0=H(K1,J1,e0,!1,null,null,null,null);const qe=t0.exports,r0=A.extend({name:"ESpinner",props:{dark:{type:Boolean,default:!1},color:{type:Boolean,default:!0},animationDuration:{type:[Number,String],default:1e3},size:{type:String,default:K.Base},opacity:{type:[String,Number],default:1}},data(){return{sizes:Mi,colors:Li}},computed:{computedSize(){return this.sizes[K[this.size]]||this.size||this.sizes[K.Base]},fill(){let t={primary:this.colors.brand[500],secondary:this.colors.neutral[300]};return this.dark&&!this.color&&(t={primary:this.colors.neutral[100],secondary:this.colors.neutral[100]}),!this.dark&&this.color&&(t={primary:this.colors.brand[500],secondary:this.colors.neutral[950]}),!this.dark&&!this.color&&(t={primary:this.colors.neutral[200],secondary:this.colors.neutral[200]}),t}},methods:{getNthPathStyle(t){const e=typeof this.animationDuration=="string"?Number.parseInt(this.animationDuration):this.animationDuration;return{animationDuration:`${this.animationDuration}ms`,animationDelay:`${t/10*e}ms`,fill:`${this.fill[t%2===0?"primary":"secondary"]}`}}}}),j7="";var n0=function(){var e=this,r=e._self._c;return r("svg",{staticClass:"e-spinner e-block",class:{"e-spinner--dark":e.dark,"e-spinner--grey":!e.color},style:{opacity:e.opacity},attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1629.32 1608.86",width:e.computedSize,height:e.computedSize}},[r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(0),attrs:{d:"m1254.12,591.61C992.01,401.11,439.78,0,439.78,0h601.2c14.3,0,48.95,9.02,62.54,38.01,55.27,117.88,111.32,235.46,170.48,351.43,33.16,70.9-8.99,170.35-19.87,202.16"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(1),attrs:{d:"m1404.65,131.67c-29.37,89.94-55.8,170.95-82.25,251.93-4.05.87-8.1,1.73-12.15,2.61-40.61-83.95-81.21-167.9-123.12-254.54h217.51Z"}}),r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(2),attrs:{d:"m1129.06,1093.51c100.75-307.98,312.75-956.75,312.75-956.75,0,0,180.36,558.53,184.75,572.14,4.39,13.59,6.45,49.34-16.96,71.19-95.21,88.81-189.88,178.28-282.06,270.2-57.29,53.34-164.86,43.8-198.48,43.21"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(3),attrs:{d:"m1342.3,1083.06c66.6-63.43,133.22-126.86,207.93-197.98,21.51,73.55,40.3,137.81,60.64,207.37h-263.35c-1.75-3.13-3.48-6.27-5.22-9.39"}}),r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(4),attrs:{d:"m610.27,1137.17c324.03-.53,1006.55-1.85,1006.55-1.85,0,0-474.19,345.83-485.74,354.25-11.55,8.42-44.87,21.56-72.94,6.14-114.11-62.68-228.69-124.66-344.81-183.5-68.56-37.76-93.12-142.93-103.06-175.04"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(5),attrs:{d:"m938.58,1468.29c-62.81,42.58-118.35,80.24-180.28,122.23-28.35-87.22-54.62-168.03-80.89-248.86,2.62-2.92,5.26-5.85,7.9-8.76,81.89,43.78,163.79,87.56,253.26,135.39"}}),r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(6),attrs:{d:"m413.07,652.86c101.35,307.77,314.99,956,314.99,956,0,0-476.23-343.04-487.83-351.39-11.58-8.36-34.44-35.93-28.52-67.4,24.07-127.96,47.3-256.13,67.09-384.8,14.54-76.9,106.84-132.96,134.28-152.42"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(7),attrs:{d:"m197.48,1068.8c-62.36-47.73-115.99-88.79-176.78-135.33,75.54-54.91,146.18-106.24,216.83-157.57,3.73,2.24,7.45,4.47,11.19,6.71-16.36,91.3-32.7,182.61-51.25,286.19"}}),r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(8),attrs:{d:"m813.58,314.41C551.63,505.15,0,907.07,0,907.07c0,0,180.68-558.4,185.09-572.01,4.39-13.59,23.65-43.78,55.41-47.8,129.19-16.29,258.32-33.41,386.86-53.99,77.67-9.72,159.3,60.97,186.22,81.13"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(9),attrs:{d:"m635.14,199.78c-91.99,12.38-183.97,24.77-288.07,38.76,25.77-73.18,48.3-137.14,73.8-209.53,76.56,55.41,147.27,106.58,217.97,157.75-1.23,4.34-2.46,8.68-3.69,13.02"}})])},i0=[],s0=H(r0,n0,i0,!1,null,"9a1333ac",null,null);const Gr=s0.exports,a0=A.extend({props:{align:{type:String,default:void 0},alignContent:{type:String,default:void 0},justify:{type:String,default:void 0},justifyXs:{type:String,default:void 0},justifySm:{type:String,default:void 0},justifyMd:{type:String,default:void 0},justifyLg:{type:String,default:void 0},justifyXl:{type:String,default:void 0},noGutters:{type:Boolean,default:!1}},computed:{justifyClasses(){return{[`e-justify-${this.justify}`]:!!this.justify,[`xs:e-justify-${this.justifySm}`]:!!this.justifySm,[`sm:e-justify-${this.justifySm}`]:!!this.justifySm,[`md:e-justify-${this.justifyMd}`]:!!this.justifyMd,[`lg:e-justify-${this.justifyLg}`]:!!this.justifyLg,[`xl:e-justify-${this.justifyXl}`]:!!this.justifyXl}},rowClasses(){return{...this.align?{[`e-items-${this.align}`]:!0}:{},...this.alignContent?{[`e-content-${this.alignContent}`]:!0}:{},...this.noGutters?{"e-row--no-gutters":!0}:{},...this.justifyClasses}}}}),G7="";var o0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-row e-flex e-flex-wrap",class:e.rowClasses},[e._t("default")],2)},l0=[],c0=H(a0,o0,l0,!1,null,null,null,null);const Wr=c0.exports,u0=A.extend({props:{alignSelf:{type:String,default:"auto"},cols:{type:[Boolean,String,Number],default:void 0},lg:{type:[Boolean,String,Number],default:void 0},md:{type:[Boolean,String,Number],default:void 0},offset:{type:[String,Number],default:void 0},offsetLg:{type:[String,Number],default:void 0},offsetMd:{type:[String,Number],default:void 0},offsetSm:{type:[String,Number],default:void 0},offsetXs:{type:[String,Number],default:void 0},offsetXl:{type:[String,Number],default:void 0},sm:{type:[Boolean,String,Number],default:void 0},xs:{type:[Boolean,String,Number],default:void 0},xl:{type:[Boolean,String,Number],default:void 0}},computed:{colClasses(){return{...this.alignSelf?{[`e-self-${this.alignSelf}`]:!0}:{},[this.autoClasses("xs:",this.xs)]:this.isSizePropAuto(this.xs),[this.autoClasses("sm:",this.sm)]:this.isSizePropAuto(this.sm),[this.autoClasses("md:",this.md)]:this.isSizePropAuto(this.md),[this.autoClasses("lg:",this.lg)]:this.isSizePropAuto(this.lg),[this.autoClasses("xl:e",this.xl)]:this.isSizePropAuto(this.xl),[this.autoClasses("",this.cols)]:this.isSizePropAuto(this.cols,!0),"xs:e-basis-full xs:!e-max-w-12/12":this.xs===12||this.xs==="12","sm:e-basis-full sm:!e-max-w-12/12":this.sm===12||this.sm==="12","md:e-basis-full md:!e-max-w-12/12":this.md===12||this.md==="12","lg:e-basis-full lg:!e-max-w-12/12":this.lg===12||this.lg==="12","xl:e-basis-full xl:!e-max-w-12/12":this.xl===12||this.xl==="12","e-basis-full e-max-w-12/12":this.cols===12||this.cols==="12",[`xs:e-basis-${this.xs}/12 xs:!e-max-w-${this.xs}/12`]:this.isSizePropertyNumeric(this.xs),[`sm:e-basis-${this.sm}/12 sm:!e-max-w-${this.sm}/12`]:this.isSizePropertyNumeric(this.sm),[`md:e-basis-${this.md}/12 md:!e-max-w-${this.md}/12`]:this.isSizePropertyNumeric(this.md),[`lg:e-basis-${this.lg}/12 lg:!e-max-w-${this.lg}/12`]:this.isSizePropertyNumeric(this.lg),[`xl:e-basis-${this.xl}/12 xl:!e-max-w-${this.xl}/12`]:this.isSizePropertyNumeric(this.xl),[`e-basis-${this.cols}/12 !e-max-w-${this.cols}/12`]:this.isSizePropertyNumeric(this.cols),[`xs:e-offset-${this.offsetXs}`]:this.offsetXs!==void 0,[`sm:e-offset-${this.offsetSm}`]:this.offsetSm!==void 0,[`md:e-offset-${this.offsetMd}`]:this.offsetMd!==void 0,[`lg:e-offset-${this.offsetLg}`]:this.offsetLg!==void 0,[`xl:e-offset-${this.offsetXl}`]:this.offsetXl!==void 0,[`e-offset-${this.offset}`]:this.offset!==void 0}}},methods:{autoClasses(t,e){return`${t}e-basis-${e==="auto"?"auto":"0"} ${t}e-grow${e==="auto"?"-0":""} ${t}e-w-${e==="auto"?"auto":"full"}`},isSizePropAuto(t,e=!1){return t==="auto"||t===0||t==="0"||e&&!t},isSizePropertyNumeric(t){const e=Number.parseInt(t);return t!=="auto"&&!isNaN(e)&&e>=1&&e<12}}}),W7="";var d0=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-col",class:e.colClasses},[e._t("default")],2)},h0=[],f0=H(u0,d0,h0,!1,null,null,null,null);const qr=f0.exports;function Ur(){const t=document;return!!(t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement)}function Zr(t){if(Ur())return new Promise(r=>r(null));const e=t;return e.requestFullscreen?e==null?void 0:e.requestFullscreen():e.mozRequestFullScreen?e==null?void 0:e.mozRequestFullScreen():e.webkitRequestFullScreen?e==null?void 0:e.webkitRequestFullScreen():e.msRequestFullscreen?e==null?void 0:e.msRequestFullscreen():new Promise(r=>r(null))}function Yr(){if(!Ur())return new Promise(e=>e(null));const t=document;return t.exitFullscreen?t.exitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitCancelFullScreen?t.webkitCancelFullScreen():t.msExitFullscreen?t.msExitFullscreen():new Promise(e=>e(null))}function p0(t,e){let r=null;return function(...n){const i=this;r!==null&&clearTimeout(r),r=setTimeout(()=>{r=null,t.apply(i,n)},e||1e3)}}function m0(t=1){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let r="";for(let n=0;n<t;n++)r+=e.charAt(Math.floor(Math.random()*e.length));return r}function g0(t,e=0,r=0,n=t.naturalWidth,i=t.naturalHeight){const o=document.createElement("canvas"),a=o.getContext("2d");o.width=n,o.height=i,a==null||a.drawImage(t,e,r,n,i,0,0,n,i);const u=o.toDataURL();return o.remove(),u}function v0(t){return!!(t!=null&&t.length&&!isNaN(new Date(t).getTime()))}function Pi(t,e=1){let r=0,n=0,i=0;return t.length===4?(r=parseInt(t[1]+t[1],16),n=parseInt(t[2]+t[2],16),i=parseInt(t[3]+t[3],16)):t.length===7&&(r=parseInt(t[1]+t[2],16),n=parseInt(t[3]+t[4],16),i=parseInt(t[5]+t[6],16)),`rgba(${r}, ${n}, ${i}, ${e})`}function Oi(t,e=1){const r=t.match(/\d+/g);return r&&r.length===3?`rgba(${r[0]}, ${r[1]}, ${r[2]}, ${e})`:null}function zi(t){return t.startsWith("rgba")}function ht(t,e=1){return zi(t)?t:t.startsWith("#")?Pi(t,e):t.startsWith("rgb")?Oi(t,e):t}function _0(t){const e=JSON.stringify(t);return Bi(e).toString()}function Bi(t){let e=0,r,n;if(t.length===0)return e;for(r=0;r<t.length;r++)n=t.charCodeAt(r),e=(e<<5)-e+n,e|=0;return e}function Xr(t,e,r){const n=O.scaleLinear().domain([0,r-1]).range([0,1]);return Array.from({length:r},(i,o)=>O.interpolate(t,e)(n(o)))}const Ii={continuous:{monday:["00:00-23:59"],tuesday:["00:00-23:59"],wednesday:["00:00-23:59"],thursday:["00:00-23:59"],friday:["00:00-23:59"],saturday:["00:00-23:59"],sunday:["00:00-23:59"]},custom:{monday:["00:00-23:59"],tuesday:["00:00-23:59"],wednesday:["00:00-23:59"],thursday:["00:00-23:59"],friday:["00:00-23:59"],saturday:["00:00-23:59"],sunday:["00:00-23:59"]},workingHours:{monday:["08:00-18:00"],tuesday:["08:00-18:00"],wednesday:["08:00-18:00"],thursday:["08:00-18:00"],friday:["08:00-18:00"],saturday:[],sunday:[]},empty:{monday:[],tuesday:[],wednesday:[],thursday:[],friday:[],saturday:[],sunday:[]}},Fi=24*60-1,Ai=t=>{const[e,r]=t.split(":");return parseInt(e)*60+parseInt(r)},Vr=t=>{const e=Math.floor(t/60).toString().padStart(2,"0"),r=(t%60).toString().padStart(2,"0");return`${e}:${r}`};function Qr(t){return["monday","tuesday","wednesday","thursday","friday","saturday","sunday"].reduce((r,n)=>{const i=t[n];return{...r,[n]:i.length?i[0].split("-").map(o=>Ai(o)):[0,Fi]}},{})}function y0(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[e,r.map(n=>{const[i,o]=n.split("-");let[a,u]=o.split(":");return a=parseInt(a),a=Math.max(0,a-1),`${i}-${a.toString().padStart(2,"0")}:${u}`})]))}const C0=A.extend({name:"EZoomable",props:{ignorePointerEvents:{type:Boolean,default:!1},withOverlay:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},data(){return{scale:1,minScale:1,maxScale:20,top:0,left:0,isPanning:!1,panStart:{x:0,y:0},isPinching:!1,previousPinchDistance:0,pinchDistance:0,pointers:{},transform:"matrix(1, 0, 0, 1, 0, 0)"}},computed:{contentStyle(){return{transform:this.transform}},isZoomed(){return this.scale>1}},watch:{contentStyle:{handler(t){this.$emit("on-frame-props-change",{imgStyle:t})},immediate:!0,deep:!0}},methods:{zoom(t){const e=this.$refs.container;if(this.disabled)return;const r=e.getBoundingClientRect(),n={x:r.width/2,y:r.height/2},i=this.scale;t<0?this.scale*=1.2:this.scale*=.8,this.updateZoomScale(),this.left=(this.left-n.x)*(this.scale/i)+n.x,this.top=(this.top-n.y)*(this.scale/i)+n.y;const o=0-r.width*(this.scale-1),a=0-r.height*(this.scale-1);this.left=Math.min(0,Math.max(o,this.left)),this.top=Math.min(0,Math.max(a,this.top)),this.updateTransform()},updateZoomScale(){this.scale>this.maxScale?this.scale=this.maxScale:this.scale<this.minScale&&(this.scale=this.minScale)},handleZoom(t){const e=this.$refs.container,r=this.$refs.content;if(t.preventDefault(),this.disabled)return;const n=e.getBoundingClientRect(),i=r.getBoundingClientRect();if(!n||!i)return;const o=t.clientX,a=t.clientY,u=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail)),s=this.scale;this.scale+=u/10,this.updateZoomScale();const l=((o-i.left)/i.width).toFixed(2),d=((a-i.top)/i.height).toFixed(2);this.left=Math.round(o-n.left-Number(l)*(i.width*this.scale/s)),this.top=Math.round(a-n.top-Number(d)*(i.height*this.scale/s));const p=0,m=0-n.width*(this.scale-1),b=0-n.height*(this.scale-1),x=0;this.left<m?this.left=m:this.left>p&&(this.left=p),this.top<b?this.top=b:this.top>x&&(this.top=x),this.updateTransform()},handleMouseDown(t){!this.isZoomed||this.disabled||(this.isPanning=!0,this.panStart={x:t.clientX,y:t.clientY})},handleMouseUp(){this.disabled||(this.isPanning=!1)},handleMouseLeave(){this.disabled||(this.isPanning=!1)},handleMouseMove(t){if(!this.isPanning||!this.isZoomed||this.disabled)return;const e=t.clientX-this.panStart.x,r=t.clientY-this.panStart.y;this.left+=e,this.top+=r,this.applyBoundsCorrection(),this.panStart={x:t.clientX,y:t.clientY},this.updateTransform()},applyBoundsCorrection(){const t=this.$refs.container,e=this.$refs.content,r=t.getBoundingClientRect(),n=e.getBoundingClientRect();if(!r||!n)return;const[i,o,a,u]=[r.top-n.top,n.right-r.right,n.bottom-r.bottom,r.left-n.left].map(s=>s<0?s:0);this.left+=u-o,this.top+=i-a},updateTransform(){this.transform=`matrix(${this.scale}, 0, 0, ${this.scale}, ${this.left}, ${this.top})`},getPointersDistance(t,e){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)},getPointersMidPoint(t,e){return{x:t.clientX+(e.clientX-t.clientX)/2,y:t.clientY+(e.clientY-t.clientY)/2}},updatePointerEvent(t){this.pointers[t.pointerId]=t},clearPointerEvent(t){this.$delete(this.pointers,t.pointerId)},updatePinchDistance(){const t=Object.values(this.pointers);t.length===2&&(this.pinchDistance=this.getPointersDistance(t[0],t[1]))},handlePointerDown(t){this.ignorePointerEvents||this.disabled||(this.updatePointerEvent(t),this.isPinching=Object.values(this.pointers).length===2,this.isPinching?(this.isPanning=!1,this.updatePinchDistance()):this.handleMouseDown(t))},handlePointerMove(t){if(!(this.ignorePointerEvents||this.disabled))if(this.updatePointerEvent(t),this.isPinching){this.previousPinchDistance=this.pinchDistance,this.updatePinchDistance();const e=this.pinchDistance/this.previousPinchDistance;this.scale*=e,this.updateZoomScale();const r=Object.values(this.pointers),n=this.getPointersMidPoint(r[0],r[1]);this.left=n.x-(n.x-this.left)*e,this.top=n.y-(n.y-this.top)*e,this.applyBoundsCorrection(),this.updateTransform()}else this.handleMouseMove(t)},handlePointerUp(t){this.ignorePointerEvents||this.disabled||(this.clearPointerEvent(t),this.previousPinchDistance=0,this.pinchDistance=0,this.isPanning=!1,this.isPinching=!1)}}}),q7="";var b0=function(){var e=this,r=e._self._c;return r("div",{ref:"container",staticClass:"e-zoomable e-w-full e-h-full"},[r("div",{staticClass:"e-w-full e-h-full",class:{"e-cursor-grab":e.isZoomed&&!e.disabled,"e-cursor-grabbing":e.isPanning&&!e.disabled},on:{mousewheel:e.handleZoom,mousedown:e.handleMouseDown,mouseup:e.handleMouseUp,mouseleave:e.handleMouseLeave,mousemove:e.handleMouseMove,pointerdown:e.handlePointerDown,pointermove:e.handlePointerMove,pointerup:e.handlePointerUp,pointercancel:e.handlePointerUp,pointerout:e.handlePointerUp,pointerleave:e.handlePointerUp}},[r("div",{ref:"content",staticClass:"e-zoomable__content e-w-full e-h-full e-transform-0 e-touch-none e-relative",style:e.contentStyle},[e._t("default")],2),e.withOverlay&&!e.disabled?r("div",{staticClass:"e-zoomable__overlay e-absolute e-w-full e-h-full e-bottom-0 e-left-0 e-overflow-hidden"},[e._t("overlay")],2):e._e()])])},x0=[],w0=H(C0,b0,x0,!1,null,"06b5341b",null,null);const Kr=w0.exports,Jr=new Intl.NumberFormat(void 0,{minimumIntegerDigits:2}),Ri=["play","pause","ended","loadeddata","waiting","playing","timeupdate","canplay","canplaythrough","statechanged","error"],en=t=>{const e=Math.floor(t%60),r=Math.floor(t/60)%60,n=Math.floor(t/3600);return n===0?`${r}:${Jr.format(e)}`:`${n}:${Jr.format(r)}:${Jr.format(e)}`},S0=A.extend({name:"EVideoPlayer",components:{ESpinner:Gr,EZoomable:Kr},props:{targetTimestamp:{type:[String,Date],default:void 0},sources:{type:[Array,String],required:!0},videoListeners:{type:Object,default:()=>({})},videoOptions:{type:Object,default:()=>({})},isHls:{type:Boolean,default:!1},isEdgeVideo:{type:Boolean,default:!1},edgeStreamingToken:{type:String,default:""},authToken:{type:String,default:""},pauseOnClick:{type:Boolean,default:!0},isHlsLoading:{type:Boolean,default:!1},isPlaying:{type:Boolean,default:!1},showLoadingAnimation:{type:Boolean,default:!1},isZoomable:{type:Boolean,default:!1},zoomableIgnorePointerEvents:{type:Boolean,default:!1},timezone:{type:String,default:"UTC"},playPauseAnimation:{type:Boolean,default:!0},disablePlayPauseAnimation:{type:Boolean,default:!1},isWebRtc:{type:Boolean,default:!1},withColoredLoader:{type:Boolean,default:!1},loaderSize:{type:String,default:"SevenXl"},withOverlayOnBackground:{type:Boolean,default:!1},fallbackSrc:{type:String,default:""},hlsOptions:{type:Object,default:()=>({})}},data(){return{playing:!1,percentagePlayed:0,videoLength:"0:00",duration:0,videoDuration:0,currentTime:"0:00",realtime:0,isScrubbing:!1,wasPaused:!1,isFullscreen:!1,isFinished:!1,isLoading:!0,isError:!1,player:new at,playbackRetries:0,preloadedSeconds:0,preloadedInterval:{}}},computed:{posterUrl(){const t=this.videoOptions;return(t==null?void 0:t.poster)||(t==null?void 0:t.backgroundUrl)},sourceItems(){return Array.isArray(this.sources)?this.sources:[{src:this.sources}]},withControls(){const t=this.videoOptions;return(t==null?void 0:t.controls)===!1?"hide":""},streamingToken(){return this.isEdgeVideo?this.edgeStreamingToken:this.authToken}},watch:{isPlaying:{immediate:!0,async handler(t){this.playing=t,t?await this.play():this.pause(),this.isHls&&(t?this.$emit("hls-play"):this.$emit("hls-pause"))}},preloadedSeconds(t){this.preloadedInterval={start:ke(this.targetTimestamp).format(),end:ke(this.targetTimestamp).add(t,"seconds").format()},this.$emit("preloaded-interval",this.preloadedInterval)},targetTimestamp:{immediate:!0,handler(t){var o,a;if(!this.isHls)return;const e=this.$refs.player,r=(o=this.preloadedInterval)==null?void 0:o.start,n=(a=this.preloadedInterval)==null?void 0:a.end;if(!(r&&n))return;const i=ke(t).isBetween(ke(r),ke(n),void 0,"[]");e.currentTime=0,i||this.initHls()}}},mounted(){this.isHls&&this.initHls(),this.bindEvents(),this.initializePlayer(),this.initializeFullscreenListeners()},beforeDestroy(){this.unbindEvents(),this.destroyPlayer(),this.removeFullscreenListeners()},methods:{initHls(t=""){var n,i,o,a,u;const e=this.$refs.player,r=this.sources[0];(n=this.player)!=null&&n.stopLoad&&this.player.stopLoad(),at.isSupported()&&(this.isLoading=!0,this.player=new at({startPosition:0,xhrSetup:s=>{this.streamingToken&&s.setRequestHeader("Authorization",`Bearer ${this.streamingToken}`)},...this.hlsOptions}),(i=this.player)==null||i.loadSource(t||r.src),(o=this.player)==null||o.attachMedia(e),(a=this.player)==null||a.on(at.Events.MANIFEST_PARSED,(s,l)=>{var m;const d=(m=l.levels[l.firstLevel])==null?void 0:m.details,p=d==null?void 0:d.startTimeOffset;e.currentTime=p||0,this.playing&&e.play()}),(u=this.player)==null||u.on(at.Events.ERROR,this.handleHlsError))},onContainerClick(){this.pauseOnClick&&this.togglePlay()},handle404Error(){this.isWebRtc||(this.isError=!0,this.isLoading=!1,this.playing=!1)},handleHlsError(t,e){var l;if(!e.fatal)return;this.$emit("error",e);const r=e.type===at.ErrorTypes.NETWORK_ERROR,n=e.type===at.ErrorTypes.MEDIA_ERROR,i=r&&((l=e.networkDetails)==null?void 0:l.status)===404,o=this.$refs.player,a=()=>this.fallbackSrc&&(o==null?void 0:o.currentSrc)!==this.fallbackSrc,u=()=>this.initHls(this.fallbackSrc),s=()=>{if(a()){u();return}this.player.destroy(),this.videoListeners.error?this.videoListeners.error():this.handle404Error()};if(i){s();return}if(r){console.error("A network error occurred:",e),a()?u():this.player.startLoad();return}n&&(console.error("A media error occurred:",e),a()?u():this.player.recoverMediaError()),s()},bindEvents(){const t=this.$refs.player;Ri.forEach(e=>{t.addEventListener(e,()=>this.bindVideoEvent(e),!0)})},onProgress(){const t=this.$refs.player;if(t&&t.buffered.length>0)try{this.preloadedSeconds=t.buffered.end(t.buffered.length-1)}catch(e){console.error("Error while fetching buffered end time:",e)}else console.log("No video data has been buffered yet.")},unbindEvents(){const t=this.$refs.player;Ri.forEach(e=>{t.removeEventListener(e,()=>this.bindVideoEvent(e),!0)})},bindVideoEvent(t){const e=this.$refs.player;if(!e)return;const r=this.$refs.timelineContainer;t==="loadeddata"&&(this.videoLength=en(e.duration)),r&&(t==="timeupdate"&&(this.percentagePlayed=(e==null?void 0:e.currentTime)/(e==null?void 0:e.duration)*100,r==null||r.style.setProperty("--progress-position",this.percentagePlayed.toString())),this.$emit(t,{event,player:e}))},initializePlayer(){const t=this.$refs.player;t&&(t.autoplay&&this.setPlaying(!0),document.addEventListener("mouseup",this.handleScrubbingOnMouseEnd),document.addEventListener("keydown",this.handleKeyDown))},destroyPlayer(){this.player&&(this.player.stopLoad(),this.player.destroy()),window.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("mouseup",this.handleScrubbingOnMouseEnd)},removeFullscreenListeners(){const t=document;t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled?(t.removeEventListener("fullscreenchange",this.handleFullscreenChange),t.removeEventListener("webkitfullscreenchange",this.handleFullscreenChange),t.removeEventListener("mozfullscreenchange",this.handleFullscreenChange),t.removeEventListener("MSFullscreenChange",this.handleFullscreenChange)):console.log("Fullscreen API is not supported in this browser.")},initializeFullscreenListeners(){const t=document;t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled?(t.addEventListener("fullscreenchange",this.handleFullscreenChange),t.addEventListener("webkitfullscreenchange",this.handleFullscreenChange),t.addEventListener("mozfullscreenchange",this.handleFullscreenChange),t.addEventListener("MSFullscreenChange",this.handleFullscreenChange)):console.log("Fullscreen API is not supported in this browser.")},handleFullscreenChange(){const t=document;this.isFullscreen=!!t.fullscreenElement||!!t.mozFullScreenElement||!!t.webkitFullscreenElement||!!t.msFullscreenElement||window.innerWidth==screen.width&&window.innerHeight==screen.height},isLooped(){return this.$refs.player.loop},handleScrubbingOnMouseEnd(t){this.isScrubbing&&this.toggleScrubbing(t)},handleEnded(){this.isFinished=!0,this.playing=!1},handleLoading(){this.isLoading=!1},async play(){const t=this.$refs.player;if(t)try{await t.play(),this.setPlaying(!0)}catch(e){console.error(e),this.playbackRetries+=1,this.isHls&&this.playbackRetries<3&&this.initHls()}},pause(){const t=this.$refs.player;t&&(t.pause(),this.setPlaying(!1))},async togglePlay(){this.playing?this.pause():await this.play()},setPlaying(t){this.playing=t},seekToPercentage(t){const e=this.$refs.player;if(!e)return;const r=t/100*e.duration;e.currentTime=r},convertTimeToDuration(t){return[parseInt(t/60%60,10),parseInt(t%60,10)].join(":").replace(/\b(\d)\b/g,"0$1")},closeFullscreenMode(){document.fullscreenElement&&(Yr().then(()=>{this.isFullscreen=!1}),this.isFullscreen=!1)},openFullscreenMode(){const t=this.$refs.videoContainer;t&&(Zr(t).then(()=>{this.isFullscreen=!0}),this.isFullscreen=!0)},toggleFullscreenMode(){this.isFullscreen?this.closeFullscreenMode():this.openFullscreenMode()},getDuration(){const t=this.$refs.player;this.videoLength=en(t.duration),this.videoDuration=t.duration},handleTimeUpdate(){const t=this.$refs.player,e=this.$refs.timelineContainer;if(!t||!e)return;this.currentTime=en(t.currentTime),this.realtime=t.currentTime;const r=Number(this.realtime)/Number(this.videoDuration);e.style.setProperty("--progress-position",r.toString())},handleTimelineUpdate(t){const e=this.$refs.player;if(!document.body.contains(e))return;const r=this.$refs.timelineContainer,n=r.getBoundingClientRect(),i=Math.min(Math.max(0,t.x-n.x),n.width)/n.width;r.style.setProperty("--preview-position",i.toString()),this.isScrubbing&&(t.preventDefault(),r.style.setProperty("--progress-position",i.toString()))},skip(t=5){const e=this.$refs.player;e.currentTime+=t},async toggleScrubbing(t){const e=this.$refs.timelineContainer,r=this.$refs.videoContainer,n=this.$refs.player;if(!n)return;const i=e.getBoundingClientRect(),o=Math.min(Math.max(0,t.x-i.x),i.width)/i.width;if(this.isScrubbing=(t.buttons&1)===1,r.classList.toggle("scrubbing",this.isScrubbing),this.isScrubbing){this.wasPaused=n.paused,await n.pause(),this.handleTimelineUpdate(t);return}if(this.realtime=o*this.videoDuration,n.currentTime=o*this.videoDuration,this.wasPaused)return;const a=n.play();a!==void 0&&a.then(()=>this.handleTimelineUpdate(t)).catch(console.error)},handleKeyDown(t){var r;const e=(r=document.activeElement)==null?void 0:r.tagName.toLowerCase();if(e!=="input")switch(t.key.toLowerCase()){case" ":if(e==="button")return;this.togglePlay();break;case"k":this.togglePlay();break;case"escape":t.preventDefault(),this.closeFullscreenMode(),this.isFullscreen=!1;break;case"f":this.openFullscreenMode(),this.isFullscreen=!0;break}}}}),U7="";var T0=function(){var e=this,r=e._self._c;return r("div",{ref:"videoContainer",staticClass:"e-video-player video-container paused"},[r("EZoomable",{ref:"zoomable",attrs:{"ignore-pointer-events":e.zoomableIgnorePointerEvents,disabled:!e.isZoomable,"with-overlay":e.withOverlayOnBackground},on:{"on-frame-props-change":function(n){return e.$emit("on-frame-props-change",n)}},scopedSlots:e._u([{key:"overlay",fn:function(){return[e._t("player-container-overlay")]},proxy:!0}],null,!0)},[e._t("background",function(){return[r("div",{staticClass:"e-relative e-overflow-hidden",style:{height:e.$attrs.height,width:e.$attrs.width}},[e.posterUrl?r("img",{staticClass:"e-absolute e-block e-w-full e-scale-150 e-z-[-1] e-inset-0 e-m-auto e-blur-video-poster",style:{height:e.$attrs.height,width:e.$attrs.width},attrs:{src:e.posterUrl,alt:"background-image"},on:{error:function(n){return e.$emit("error",n)}}}):e._e()])]}),r("video",e._g(e._b({ref:"player",class:{"e-w-full e-h-full e-z-[5] e-min-h-[400px]":!0,"e-absolute e-inset-0":e.isZoomable,"e-relative":!e.isZoomable},attrs:{controls:!1,preload:"auto"},on:{ended:e.handleEnded,click:e.onContainerClick,loadedmetadata:e.getDuration,seeking:function(n){e.isLoading=!0},seeked:function(n){e.isLoading=!1},timeupdate:e.handleTimeUpdate,loadeddata:e.handleLoading}},"video",e.videoOptions,!1),e.videoListeners),[e.isWebRtc?e._e():e._l(e.sourceItems,function(n){return r("source",e._g({key:n.src,attrs:{src:n.src,type:n.type},on:{error:e.handle404Error}},e.videoListeners))})],2)],2),e.isLoading||e.showLoadingAnimation?r("div",{staticClass:"spinner-container"},[r("ESpinner",{attrs:{color:e.withColoredLoader,size:e.loaderSize,opacity:"0.6",dark:!0}})],1):e._e(),e._t("default"),e.isError?r("div",{staticClass:"spinner-container e-gap-3"},[e._t("error",function(){return[r("i",{staticClass:"fa-solid fa-video-slash fa-2xl e-align-middle"}),r("span",[e._v("This video file cannot be played.")])]})],2):e._e(),e._t("controls",function(){return[r("div",{class:["video-controls-container",e.withControls]},[r("div",{staticClass:"controls"},[r("button",{ref:"playPauseBtn",staticClass:"play-pause-btn fa-lg fa-solid fas",class:{"fa-play":!e.playing,"fa-pause":e.playing},attrs:{title:e.playing?"pause":"play"},on:{click:e.togglePlay}}),r("div",{staticClass:"duration-container"},[r("div",{ref:"currentTimeElem",staticClass:"current-time"},[e._v(" "+e._s(e.currentTime)+" ")]),e._v(" / "),r("div",{ref:"totalTimeElem",staticClass:"total-time"},[e._v(e._s(e.videoLength))])]),r("div",{ref:"timelineContainer",staticClass:"timeline-container",on:{mousemove:e.handleTimelineUpdate,mousedown:e.toggleScrubbing}},[e._m(0)]),r("button",{ref:"fullScreenBtn",staticClass:"full-screen-btn fa-solid",class:{"fa-expand":!e.isFullscreen,"fa-compress":e.isFullscreen},on:{click:e.toggleFullscreenMode}})])])]},{play:e.play,pause:e.pause,isPlaying:e.playing,playerInstance:e.player,toggleFullscreen:e.toggleFullscreenMode,currentTime:e.currentTime,videoLength:e.videoLength,isFullscreen:e.isFullscreen})],2)},k0=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"timeline"},[e("div",{staticClass:"thumb-indicator"})])}],$0=H(S0,T0,k0,!1,null,"d7aeb2b0",null,null);const Hi=$0.exports,Ke={bind(t,e){const{value:r}=e;if(typeof r!="function"){console.error("Invalid callback function provided to v-resize-observer");return}const n=new ResizeObserver(i=>{i[0]&&r(i[0])});n.observe(t),t.__resizeObserver__=n},unbind(t){t.__resizeObserver__&&(t.__resizeObserver__.disconnect(),delete t.__resizeObserver__)}},E0=(t,e)=>t===e||t.contains(e),M0=(t,e)=>r=>{E0(t,r.target)||e(r)},Ni=["mousedown","touchstart","click"],tn={bind(t,e){const r=t,n=e.value;if(typeof n!="function"){console.warn("v-click-outside requires a function value");return}r.clickOutsideHandler={events:Ni,handler:M0(r,n),callback:n},queueMicrotask(()=>{Ni.forEach(i=>{document.addEventListener(i,r.clickOutsideHandler.handler)})})},unbind(t){const e=t;e.clickOutsideHandler&&(e.clickOutsideHandler.events.forEach(r=>{document.removeEventListener(r,e.clickOutsideHandler.handler)}),delete e.clickOutsideHandler)}},ji=[{name:"resize-observer",definition:Ke},{name:"click-outside",definition:tn}],Je={transparencyGradient:"transparency-gradient",transparencyGradientLight:"transparency-gradient-light",transparencyGradientHover:"transparency-gradient-hover",loadingGradient:"loading-gradient",stripedPattern:"stripedPattern",clipPath:"clip-path"},me={xAxis:"e-x-axis",xAxisDark:"e-x-axis--dark",xAxisOverview:"e-x-axis-overview",xAxisDetailed:"e-x-axis-detailed",xAxisBackground:"e-x-axis-background",eventGroup:"event-group",eventGroupBg:"event-group-bg",eventGroupContent:"event-group-content",eventRect:"event-rect",eventRectContainer:"event-rect-container",eventBarContainer:"event-bar-container",eventBarContainerHovered:"event-bar-container--hovered",eventBarContainerSelected:"event-bar-container--selected",eventBar:"event-bar",eventBarHoverZone:"event-bar-hover-zone",eventRectText:"event-rect-text",eventRectHovered:"event-rect--hovered",eventRectSelected:"event-rect--selected",labelGroup:"label-g",labelBg:"label-bg",labelBgFill:"label-bg-fill",labelText:"label-text",loadingIndicator:"loading-indicator",_legacyLabelGroup:"legacy-label-g",_legacyLabelBg:"legacy-label-bg",_legacyLabelBgFill:"legacy-label-bg-fill",_legacyLabelText:"legacy-label-text",_legacyLoadingIndicator:"legacy-loading-indicator",selectedTimestampCursor:"selected-timestamp-cursor",marker:"marker",markerLabel:"marker-label",markerLine:"marker-line",markerDragged:"marker--dragged",milestone:"e-tl-milestone",milestoneBullet:"e-tl-milestone--bullet",milestoneDot:"e-tl-milestone--dot",milestoneContent:"e-tl-milestone-content",milestoneLine:"e-tl-milestone-line",milestonesContainer:"e-tl-milestones",milestoneHovered:"e-tl-milestone--hovered",milestoneSelected:"e-tl-milestone--selected",milestoneLabel:"e-tl-milestone-label",milestoneDotContainer:"e-tl-milestone-dot-container",milestoneDotLine:"e-tl-milestone-dot-line",milestoneDotDot:"e-tl-milestone-dot-dot",milestoneDotHovered:"e-tl-milestone-dot--hovered",barChartGroup:"bar-chart-group",lineGraphGroup:"line-graph-group",lineGraphGroupLabel:"line-graph-group-label",areaGraphPath:"area-graph-path",lineGraphPath:"line-graph-path",lineGraphHoverZone:"line-graph-hover-zone",lineGraphDot:"line-graph-dot",forbiddenInterval:"forbidden-interval"};function Ve({timestamp:t,timezone:e}){const r=Gi(t,e);return ke(t).add(r,"minutes").toDate()}function Ft({date:t,timezone:e}){const r=new Date(t).getTimezoneOffset(),n=Gi(t,e);return ke(t).add(r,"minutes").utcOffset(n,!0).format()}function Gi(t,e){return e?ke.tz(t,e).utcOffset():L0(t)}function L0(t){return ke.parseZone(t).utcOffset()}const D0=A.extend({name:"ETimelineMilestone",directives:{resizeObserver:Ke},props:{timeScale:{type:Function,required:!0},milestone:{type:Object,required:!0},y:{type:Number,required:!0},height:{type:Number,default:18},size:{type:Number,default:18},borderColor:{type:String,default:"#eee"},backgroundColor:{type:String,default:"#aaa"},borderWidth:{type:Number,default:2},transitionDuration:{type:Number,default:500},dot:{type:Boolean,default:!1},dotSize:{type:Number,default:8},lineWidth:{type:Number,default:2},lineHeight:{type:Number,default:28},timezone:{type:[String,void 0],default:void 0}},data(){return{classNames:me,timeouts:[],isInitialRender:!0,isMouseOver:!1,containerWidth:"",containerHeight:""}},computed:{transitionStyles(){return this.isInitialRender?{}:{transition:`transform ${this.transitionDuration}ms, width ${this.transitionDuration}ms, height ${this.transitionDuration}ms, padding ${this.transitionDuration}ms, border-radius ${this.transitionDuration}ms`}},sizeStyles(){return this.dot?{}:{width:`${this.isMouseOver?this.containerWidth:this.size}px`,height:`${this.isMouseOver?this.containerHeight:this.size}px`}},positionStyles(){return{left:`${this.timeScale(this.tzStringToDate(this.milestone.timestamp))}px`,top:`${this.linePosition}px`,transform:this.dot&&this.isMouseOver?`translateY(calc(-100% - ${this.lineHeight}px))`:""}},styles(){return{...this.sizeStyles,...this.positionStyles,backgroundColor:this.backgroundColor,borderColor:this.borderColor,borderWidth:`${this.borderWidth}px`,borderStyle:"solid",...this.transitionStyles}},linePosition(){const t=this.height/2;return this.y+t-1},contentStyles(){return this.transitionStyles},computedTransitionDuration(){return this.isInitialRender?0:this.transitionDuration},labelStyles(){return{transition:`opacity ${this.computedTransitionDuration}ms`}},dotContainerStyles(){return{top:this.isMouseOver?`calc(100% - ${this.borderWidth}px)`:`calc(50% + ${this.dotSize/2}px)`,height:`calc(${this.lineHeight}px + ${this.dotSize}px)`,left:`calc(50% - ${this.lineWidth}px / 2)`,transition:`${this.computedTransitionDuration}ms`}},lineStyles(){return{bottom:`${this.dotSize/2}px`,left:`calc(50% - ${this.lineWidth}px / 2)`,width:`${this.lineWidth}px`,height:this.isMouseOver?`${this.lineHeight}px`:"0",backgroundColor:this.borderColor,transition:`${this.computedTransitionDuration}ms`}},dotStyles(){return{top:`${this.lineHeight}px`,left:`calc(50% - ${this.dotSize}px / 2)`,width:`${this.dotSize}px`,height:`${this.dotSize}px`,backgroundColor:this.borderColor,transition:`${this.computedTransitionDuration}ms`}}},mounted(){this.$nextTick(()=>{this.dot||(this.onMilestoneMouseOver(),this.onMilestoneMouseLeave()),this.isInitialRender=!1})},methods:{onMilestoneMouseOver(t){if(this.isMouseOver=!0,this.$emit("hovered-milestone",this.milestone),this.dot)return;const e=(t==null?void 0:t.target)||this.$refs.container;if(!e)return;const r=e.children[0];if(!r)return;const n=r.children[0];if(!n)return;const i=n.getBoundingClientRect(),o=e.dataset.timeoutId;o&&(clearTimeout(Number(o)),e.dataset.timeoutId=""),e.dataset.initialWidth||(e.dataset.initialWidth=e.style.width),e.dataset.initialHeight||(e.dataset.initialHeight=e.style.height),this.containerWidth||(this.containerWidth=e.dataset.initialContentWidth=String(i.width)),this.containerHeight||(this.containerHeight=e.dataset.initialContentHeight=String(i.height)),e.dataset.transitionStart=String(Date.now()),e.style.borderRadius="0.5em",e.classList.add(me.milestoneHovered),r.style.opacity="1",r.style.width=this.containerWidth+"px",r.style.height=this.containerHeight+"px"},onMilestoneMouseMove(){this.timeouts.forEach(t=>clearTimeout(t)),this.isMouseOver=!0},onMilestoneMouseLeave(t){if(this.$emit("hovered-milestone",null),this.dot){this.timeouts.push(setTimeout(()=>{this.isMouseOver=!1},this.transitionDuration+100));return}const e=(t==null?void 0:t.target)||this.$refs.container;if(!e)return;e.style.width=e.dataset.initialWidth||"",e.style.height=e.dataset.initialHeight||"",e.style.borderRadius="10em";const r=e.children[0];if(!r)return;r.style.width="0",r.style.height="0",r.style.opacity="0";const n=Date.now()-Number(e.dataset.transitionStart),i=n>this.transitionDuration?this.transitionDuration:n,o=setTimeout(()=>{e.classList.remove(me.milestoneHovered),e.dataset.timeoutId=""},i);e.dataset.timeoutId=String(o),this.timeouts.push(o),this.isMouseOver=!1},onMilestoneClick(t,e){this.$emit("milestone-click",e)},tzStringToDate(t){return Ve({timestamp:t,timezone:this.timezone})}}}),Z7="";var P0=function(){var e=this,r=e._self._c;return r("div",{ref:"container",class:{[e.classNames.milestone]:!0,[e.classNames.milestoneBullet]:!e.dot,[e.classNames.milestoneHovered]:e.isMouseOver&&!e.dot,[e.classNames.milestoneDot]:e.dot,[e.classNames.milestoneDotHovered]:e.isMouseOver&&e.dot},style:e.styles,attrs:{tabindex:"0"},on:{mouseover:n=>e.onMilestoneMouseOver(n),mousemove:e.onMilestoneMouseMove,mouseleave:n=>e.onMilestoneMouseLeave(n),click:n=>e.onMilestoneClick(n,e.milestone)}},[r("div",{class:e.classNames.milestoneContent,style:e.contentStyles},[e._t("content",function(){var n;return[r("span",[e._v(" "+e._s((n=e.milestone)==null?void 0:n.text)+" ")])]})],2),e.dot?r("div",{class:e.classNames.milestoneDotContainer,style:e.dotContainerStyles},[r("div",{class:e.classNames.milestoneDotLine,style:e.lineStyles}),r("div",{class:e.classNames.milestoneDotDot,style:e.dotStyles})]):r("div",{class:e.classNames.milestoneLabel,style:e.labelStyles},[e._t("label")],2)])},O0=[],z0=H(D0,P0,O0,!1,null,null,null,null);const B0=z0.exports,I0=A.extend({name:"ETimelineMarker",props:{marker:{type:Object,required:!0},height:{type:Number,required:!0},hidden:{type:[Boolean,void 0],default:void 0},position:{type:[Number,void 0],default:void 0}},methods:{getMarkerClass(t){return{"marker--hidden":this.hidden,"marker--draggable":t==null?void 0:t.isDraggable,...t.className?{[t==null?void 0:t.className]:!0}:{}}},getMarkerContainerStyle(){return{left:`${this.position}px`}},getMarkerLabelStyle(t){return{background:t.color,color:t.textColor||""}},getMarkerLineStyle(t){return{background:t.color,height:`${this.height+12}px`}}}}),Y7="";var F0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"marker e-absolute e-h-full e-top-0 e-z-10",class:e.getMarkerClass(e.marker),style:e.getMarkerContainerStyle(),on:{click:function(n){return e.$emit("marker-clicked",e.marker)}}},[r("div",{staticClass:"marker-label e-absolute"},[r("div",{staticClass:"marker-label-text",style:e.getMarkerLabelStyle(e.marker)},[e._t(`marker.${e.marker.id}`,function(){return[e._v(" "+e._s(e.marker.label)+" ")]},{marker:e.marker})],2)]),r("div",{staticClass:"marker-line e-absolute e-pointer-events-none",style:e.getMarkerLineStyle(e.marker)})])},A0=[],R0=H(I0,F0,A0,!1,null,"614947ed",null,null);const H0=R0.exports,N0=A.extend({name:"ETimelineMarkers",components:{ETimelineMarker:H0},props:{markers:{type:Array,default:()=>[]},timeScale:{type:Function,required:!0},timeZone:{type:[String,void 0],default:void 0},height:{type:Number,required:!0},svgLeft:{type:Number,default:void 0},stickyMarkers:{type:Boolean,default:!1}},data(){return{markersPositions:{},markersDragBehavior:null,initialMarkerDragMouseOffset:0}},watch:{timeScale:{handler(){this.updateMarkers()},deep:!0},markers(){this.updateMarkers()}},methods:{initMarkersDragBehavior(){this.removeMarkersDragBehavior();const t=this;this.markersDragBehavior=O.drag().on("start",function(e,r){t.handleMarkerDrag({marker:r,markerElement:O.select(this),dragEvent:e})}).on("drag",function(e,r){t.handleMarkerDrag({marker:r,markerElement:O.select(this),dragEvent:e})}).on("end",function(e,r){t.handleMarkerDrag({marker:r,markerElement:O.select(this),dragEvent:e})}),O.selectAll(`.${me.marker}`).data(this.markers).call(this.markersDragBehavior)},removeMarkersDragBehavior(){this.markersDragBehavior&&(this.markersDragBehavior.on("start",null).on("drag",null).on("end",null),O.selectAll(`.${me.marker}`).call(this.markersDragBehavior))},handleMarkerDrag({marker:t,markerElement:e,dragEvent:r}){var u;if(!t.isDraggable)return;(u=r.sourceEvent)==null||u.preventDefault(),r.type==="start"&&(this.initialMarkerDragMouseOffset=r.x-e.node().querySelector(`.${me.markerLine}`).getBoundingClientRect().left,e.classed(me.markerDragged,!0));const n=r.x-this.initialMarkerDragMouseOffset,i=this.timeScale.invert(n-this.svgLeft);let o=this.timeScale(i);const a=this.isTimestampAllowedForMarker(i,t);if(r.type==="drag"&&a&&e.attr("style",`left: ${o}px`),r.type==="end"){const s=t.id||t.timestamp;o=a?o:this.timeScale(this.tzStringToDate(t.timestamp)),this.markersPositions={...this.markersPositions,[s]:{...this.markersPositions[s],position:o}},e.classed(me.markerDragged,!1)}r.type!=="start"&&this.$emit(`marker-drag-${r.type}`,{marker:t,newTimestamp:a?this.dateToTzString(i):t.timestamp})},updateMarkers(){if(!this.markers.length)return;const t=12,e=200;this.markers.forEach((r,n,i)=>{const o=typeof r.timestamp=="string"?this.tzStringToDate(r.timestamp):r.timestamp,a=this.timeScale(o);let u=!1;const s=this.stickyMarkers?Math.max(a,n*t):a;if(n<i.length-1){const l=i[n+1],d=typeof l.timestamp=="string"?this.tzStringToDate(l.timestamp):l.timestamp,p=this.timeScale(d);u=(this.stickyMarkers?Math.max(p,(n+1)*t):a)-s<e+t}this.markersPositions={...this.markersPositions,[r.id]:{isHidden:u,position:s}}}),this.initMarkersDragBehavior()},isTimestampAllowedForMarker(t,e){return(e.minDate?t>=this.tzStringToDate(e.minDate):!0)&&(e.maxDate?t<=this.tzStringToDate(e.maxDate):!0)},tzStringToDate(t){return Ve({timestamp:t,timezone:this.timeZone})},dateToTzString(t){return Ft({date:t,timezone:this.timeZone})}}});var j0=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-tl-markers"},e._l(e.markers,function(n){var i,o;return r("ETimelineMarker",{key:n.id,attrs:{marker:n,height:e.height,position:(i=e.markersPositions[n.id])==null?void 0:i.position,hidden:(o=e.markersPositions[n.id])==null?void 0:o.isHidden,"data-id":n.id},on:{"marker-clicked":function(a){return e.$emit("marker-clicked",a)}},scopedSlots:e._u([{key:`marker.${n.id}`,fn:function(){return[e._t(`marker.${n.id}`,function(){return[e._v(" "+e._s(n.label)+" ")]},{marker:n})]},proxy:!0}],null,!0)})}),1)},G0=[],W0=H(N0,j0,G0,!1,null,null,null,null);const q0=W0.exports,U0=A.extend({name:"EZoomBehavior",props:{width:{type:[Number,void 0],default:void 0},domain:{type:Array,required:!0},focusedDomain:{type:[Array,void 0],default:void 0},timezone:{type:String,default:"UTC"},disabled:{type:Boolean,default:!1},scalingDuration:{type:Number,default:400},translationDuration:{type:Number,default:400},focusedTimestamp:{type:[String,Date,Number],default:""}},data(){return{timeScale:null,initialTimeScale:null,zoomBehavior:null,selection:null,isTransitioning:!1,container:null,transformDiff:{translation:0,scale:1},lastTransform:{x:0,y:0,k:1},isLeftBoundaryReached:!1,isRightBoundaryReached:!1,resetBoundariesTimeout:0}},computed:{minDate(){const[t]=this.domain;return this.toD3Date(t)},maxDate(){const[,t]=this.domain;return this.toD3Date(t)},focusedStartDate(){const[t]=this.focusedDomain||this.domain;return this.toD3Date(t)},focusedEndDate(){const[,t]=this.focusedDomain||this.domain;return this.toD3Date(t)}},watch:{timeScale(){this.emitFocusedDomainChange(_t.Zoom),this.emitTimeScaleChange()},focusedDomain(t){t&&this.zoomToFocusedDomain(t)},focusedTimestamp(t){t&&this.panToTimestamp(t)},width:{handler(t,e){!t||t===e||(this.timeScale=O.scaleTime().domain([this.focusedStartDate,this.focusedEndDate]).range([0,t]))}}},mounted(){this.initRefs(),this.initTimeScale(),this.initZoomBehavior(),this.emitTimeScaleChange(),this.emitFocusedDomainChange(_t.Initial)},methods:{initRefs(){this.container=this.$refs.container},initTimeScale(){this.timeScale=O.scaleTime().domain([this.focusedStartDate,this.focusedEndDate]).range([0,this.getWidth()]),this.initialTimeScale=this.timeScale.copy()},calculateZoomExtents(){const t=[this.focusedStartDate,this.focusedEndDate],e=this.getWidth(),r=this.maxDate.getTime()-this.minDate.getTime(),o=[(this.focusedEndDate.getTime()-this.focusedStartDate.getTime())/r,1/0],a=this.initialTimeScale.copy();a.domain(t);const u=a(this.minDate),s=-(e-a(this.maxDate));return{scaleExtent:o,translateExtent:[[u||-1/0,0],[s||1/0,0]]}},initZoomBehavior(){const{scaleExtent:t,translateExtent:e}=this.calculateZoomExtents();this.zoomBehavior=O.zoom().scaleExtent(t).translateExtent(e).on("zoom",this.handleZoom),this.selection=O.select(this.container),this.selection.call(this.zoomBehavior)},handleZoom(t){const e=t.transform.rescaleX(this.initialTimeScale.copy()),[r,n]=e.domain(),i=r<=this.minDate,o=n>=this.maxDate;if(i||o){const u=O.zoomIdentity.translate(this.lastTransform.x,this.lastTransform.y).scale(this.lastTransform.k);this.selection.call(this.zoomBehavior.transform,u),this.updateBoundaries(i,o);return}const a=t.transform.k/this.lastTransform.k;this.transformDiff={scale:a,translation:t.transform.x-this.lastTransform.x},this.lastTransform={...t.transform},this.timeScale=t.transform.rescaleX(this.timeScale).domain([r,n])},toD3Date(t){return Ve({timestamp:t,timezone:this.timezone})},toDateString(t){return Ft({date:t,timezone:this.timezone})},getWidth(){var t,e;return this.width?this.width:(e=(t=this.container)==null?void 0:t.getBoundingClientRect())==null?void 0:e.width},zoomToFocusedDomain(t){const[e,r]=t,n=this.toD3Date(e!=null?e:this.focusedStartDate),i=this.toD3Date(r!=null?r:this.focusedEndDate);if(!this.timeScale)return;const[o,a]=this.timeScale.domain();if(n.getTime()===o.getTime()&&i.getTime()===a.getTime())return;const u=this.initialTimeScale.domain().map(h=>h.getTime()),s=u[1]-u[0],l=i.getTime()-n.getTime(),d=.1*l,p=l+2*d;let m=s/p;const b=this.zoomBehavior.scaleExtent();m=Math.min(Math.max(m,b[0]),b[1]);const x=this.initialTimeScale.copy().domain([n,i]);this.selection.transition().duration(this.scalingDuration/2).call(this.zoomBehavior.scaleTo,m).on("end",()=>this.translateIntervalIntoView(n,i,m)),this.timeScale=x},translateIntervalIntoView(t,e,r){const n=this.timeScale(t),i=this.timeScale(e),o=(n+i)/2,u=this.getWidth()/2-o,s=O.zoomTransform(this.selection.node());this.selection.transition().on("start",()=>{this.isTransitioning=!0,this.$emit("animation-start")}).on("end",()=>{this.isTransitioning=!1,this.$emit("animation-end")}).duration(this.translationDuration/2).call(this.zoomBehavior.transform,O.zoomIdentity.translate(s.x+u,s.y).scale(r))},emitTimeScaleChange(){this.$emit("time-scale-change",this.timeScale)},emitFocusedDomainChange(t){if(!this.selection.node()||this.isTransitioning||!this.timeScale)return;const[r,n]=this.timeScale.domain(),i=this.toDateString(r),o=this.toDateString(n);this.$emit("visible-interval-change",{fromDate:i,toDate:o,trigger:t,transform:this.transformDiff})},panToTimestamp(t){const e=new Date(t),r=this.timeScale(e),n=O.zoomTransform(this.selection.node()),i=n.x-r+this.getWidth()/2;this.selection.transition().duration(this.translationDuration).call(this.zoomBehavior.transform,O.zoomIdentity.translate(i,0).scale(n.k)).on("end",()=>{this.emitFocusedDomainChange(_t.Zoom)})},updateBoundaries(t,e){this.isLeftBoundaryReached=t,this.isRightBoundaryReached=e,clearTimeout(this.resetBoundariesTimeout),this.resetBoundariesTimeout=setTimeout(this.resetBoundaries,300)},resetBoundaries(){this.isLeftBoundaryReached=!1,this.isRightBoundaryReached=!1}}}),X7="";var Z0=function(){var e=this,r=e._self._c;return r("div",{ref:"container",staticClass:"e-zoom-behavior"},[r("transition",{attrs:{name:"boundary-fade"}},[e.isLeftBoundaryReached?r("div",{staticClass:"e-zoom-behavior__boundary e-zoom-behavior__boundary__left e-bg-gradient-to-r e-from-red-700 e-to-transparent"}):e._e()]),e._t("default",null,{timeScale:e.timeScale}),r("transition",{attrs:{name:"boundary-fade"}},[e.isRightBoundaryReached?r("div",{staticClass:"e-zoom-behavior__boundary e-zoom-behavior__boundary__right e-bg-gradient-to-l e-from-red-700 e-to-transparent"}):e._e()])],2)},Y0=[],X0=H(U0,Z0,Y0,!1,null,null,null,null);const V0=X0.exports,Q0=A.extend({name:"EXAxis",props:{ticksConfigs:{type:Array,required:!0},timeScale:{type:Function,required:!0},x:{type:Number,default:0},y:{type:Number,default:0},height:{type:Number,default:10},dark:{type:Boolean,default:!1}},data(){return{classNames:me}},computed:{classes(){return{[me.xAxis]:!0,[me.xAxisDark]:this.dark}},axis(){return O.axisBottom(this.timeScale).ticks(this.currentTicksConfig.interval).tickFormat(this.currentTicksConfig.formatFn).tickSizeOuter(0).tickSizeInner(this.height)},density(){const t=this.timeScale.invert(0).getTime(),e=this.timeScale.invert(1).getTime(),r=36e5,n=(e-t)/r;return isNaN(n)?1:n},currentTicksConfig(){const{interval:t,format:e}=this.ticksConfigs.find(n=>n.precision>=this.density&&n.interval);return{formatFn:n=>typeof e=="function"?e(n):O.timeFormat(e)(n),interval:t}}},watch:{timeScale:{handler(){this.update()},deep:!0},currentTicksConfig:{handler(){this.update()},deep:!0},height(){this.updateTicksSize()}},mounted(){this.update()},methods:{update(){const t=this.$refs.container;O.select(t).call(this.axis),this.translateTicksText()},translateTicksText(){const t=this.$refs.container;O.select(t).selectAll(".tick text").each(function(){O.select(this).attr("x",5).attr("y",0).style("text-anchor","start")})},updateTicksSize(){this.axis.tickSizeOuter(0).tickSizeInner(this.height),this.update()}}}),V7="";var K0=function(){var e=this,r=e._self._c;return r("g",{ref:"container",class:e.classes,attrs:{"text-anchor":"middle",transform:`translate(${e.x}, ${e.y})`}})},J0=[],el=H(Q0,K0,J0,!1,null,null,null,null);const rn=el.exports,At=t=>{const e=O.utcFormat("%_d")(t),r=tl(parseInt(e));return`${e}${r}`},Wi=t=>new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()+1)).getUTCDate()===1?"":O.utcFormat("%-d")(t),bt=t=>["0"," 0","00"].includes(O.utcFormat("%H")(t))?"":`${O.utcFormat("%H")(t)}h`,st=t=>{const e=O.utcFormat("%H:%M")(t);return e==="00:00"?"":e},nn=t=>O.utcFormat("%M:%S")(t),qi=t=>`${O.utcFormat("%Hh%Mm")(t)}`,sn=t=>{const e=st(t),r=At(t),n=O.utcFormat("%B")(t);return e||`${n} ${r}`},an=t=>{const e=st(t),r=Number.parseInt(O.utcFormat("%H")(t)),n=At(t),i=O.utcFormat("%B")(t);return e&&r%6===0?`${i} ${n} ${e}`:sn(t)},tl=t=>{if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},xt=t=>e=>{const r=O.utcFormat("%H")(e);return!(O.utcFormat("%M")(e)==="00"&&Number.parseInt(r)%t===0)},on=t=>e=>{const r=O.utcFormat("%M")(e);return Number.parseInt(r)%t!==0},Ui=t=>e=>{const r=O.utcFormat("%M")(e),n=O.utcFormat("%S")(e);return Number.parseInt(r)%t!==0&&Number.parseInt(n)===0},J={_10_seconds:25e-6,_20_seconds:1e-4,_30_seconds:15e-5,_1_minute:3e-4,_2_minutes:75e-5,_5_minutes:.002,_15_minutes:.005,_30_minutes:.01,_1_hour:.025,_2_hours:.05,_3_hours:.1,_4_hours:.15,_6_hours:.25,_1_day:1,_2_days:2,_1_month:8,_1_month_abbr:13,_1_month_letter:22,_3_months:33,_2_year:48,_5_years:120,_20_years:480,_75_years:1800,_300_years:7200,infinity:1/0},ln={[rt.Overview]:[{precision:J._30_seconds,interval:O.utcMinute.every(2),format:qi},{precision:J._1_minute,interval:O.utcMinute.every(5),format:qi},{precision:J._2_minutes,interval:O.utcMinute.every(10),format:sn},{precision:J._5_minutes,interval:O.utcMinute.every(20),format:an},{precision:J._15_minutes,interval:O.utcHour,format:an},{precision:J._30_minutes,interval:O.utcHour.every(2),format:an},{precision:J._2_hours,interval:O.utcHour.every(6),format:t=>{const e=st(t),r=At(t),n=O.utcFormat("%B")(t);return e||`${n} ${r}`}},{precision:J._3_hours,interval:O.utcHour.every(12),format:sn},{precision:J._6_hours,interval:O.utcHour.every(24),format:t=>{const e=At(t),r=O.utcFormat("%b")(t),n=O.utcFormat("%Y")(t);return`${r} ${e} ${n}`}},{precision:J._2_days,interval:O.utcMonth,format:"%Y – %B"},{precision:J._2_year,interval:O.utcMonth.every(3),format:"%Y Q%q"},{precision:J._5_years,interval:O.utcYear.every(5),format:"%Y"},{precision:J._20_years,interval:O.utcYear.every(20),format:"%Y"},{precision:J._75_years,interval:O.utcYear.every(75),format:"%Y"},{precision:J._300_years,interval:O.utcYear.every(300),format:"%Y"},{precision:J.infinity,interval:O.utcMonth.every(12),format:"%Y"}],[rt.Detailed]:[{precision:J._10_seconds,interval:O.utcSecond.every(10),format:nn},{precision:J._20_seconds,interval:(ys=O.utcSecond.every(20))==null?void 0:ys.filter(Ui(2)),format:nn},{precision:J._30_seconds,interval:(Cs=O.utcSecond.every(30))==null?void 0:Cs.filter(Ui(2)),format:nn},{precision:J._1_minute,interval:O.utcMinute.filter(on(5)),format:st},{precision:J._2_minutes,interval:(bs=O.utcMinute.every(2))==null?void 0:bs.filter(on(10)),format:st},{precision:J._5_minutes,interval:(xs=O.utcMinute.every(5))==null?void 0:xs.filter(on(20)),format:st},{precision:J._15_minutes,interval:(ws=O.utcMinute.every(15))==null?void 0:ws.filter(xt(1)),format:st},{precision:J._30_minutes,interval:(Ss=O.utcMinute.every(30))==null?void 0:Ss.filter(xt(2)),format:st},{precision:J._1_hour,interval:O.utcHour.filter(xt(6)),format:bt},{precision:J._2_hours,interval:(Ts=O.utcHour.every(2))==null?void 0:Ts.filter(xt(6)),format:bt},{precision:J._3_hours,interval:(ks=O.utcHour.every(3))==null?void 0:ks.filter(xt(12)),format:bt},{precision:J._4_hours,interval:O.utcHour.every(4),format:bt},{precision:J._6_hours,interval:O.utcHour.every(6),format:bt},{precision:J._1_day,interval:O.utcDay,format:Wi},{precision:J._2_days,interval:O.utcDay.every(2),format:Wi},{precision:J._1_month,interval:O.utcMonth,format:"%B"},{precision:J._1_month_abbr,interval:O.utcMonth,format:"%b"},{precision:J._1_month_letter,interval:O.utcMonth,format:t=>O.utcFormat("%B")(t).charAt(0)},{precision:J._3_months,interval:O.utcMonth.every(3),format:"Q%q"},{precision:J._2_year,interval:O.utcMonth.every(6),format:"Q%q"},{precision:J._5_years,interval:O.utcYear.every(2),format:"%Y"},{precision:J._20_years,interval:O.utcYear.every(4),format:"%Y"},{precision:J._75_years,interval:O.utcYear.every(25),format:"%Y"},{precision:J._300_years,interval:O.utcYear.every(100),format:"%Y"},{precision:J.infinity,interval:O.utcYear.every(500),format:""}],[rt.DetailedBackground]:[{precision:J._10_seconds,interval:O.utcSecond,format:""},{precision:J._20_seconds,interval:O.utcSecond.every(5),format:""},{precision:J._30_seconds,interval:O.utcSecond.every(10),format:""},{precision:J._1_minute,interval:O.utcSecond.every(20),format:""},{precision:J._2_minutes,interval:O.utcSecond.every(30),format:""},{precision:J._5_minutes,interval:O.utcMinute,format:""},{precision:J._15_minutes,interval:O.utcMinute.every(3),format:""},{precision:J._30_minutes,interval:O.utcMinute.every(6),format:""},{precision:J._1_hour,interval:O.utcMinute.every(15),format:""},{precision:J._2_hours,interval:O.utcMinute.every(30),format:""},{precision:J._3_hours,interval:O.utcHour,format:""},{precision:J._4_hours,interval:O.utcHour,format:""},{precision:J._6_hours,interval:O.utcMinute.every(120),format:""},{precision:J._1_day,interval:O.utcHour.every(8),format:""},{precision:J._2_days,interval:O.utcHour.every(12),format:""},{precision:J._1_month,interval:O.utcDay.filter(t=>{const e=t.getUTCDate(),r=new Date(t.getUTCFullYear(),t.getUTCMonth()+1,0).getUTCDate(),n=Math.ceil(r/5);return e===n||e===2*n||e===3*n||e===4*n}),format:""},{precision:J._1_month_abbr,interval:O.utcDay.filter(t=>{const e=t.getUTCDate(),r=new Date(t.getUTCFullYear(),t.getUTCMonth()+1,0).getUTCDate(),n=Math.ceil(r/4);return e===n||e===2*n||e===3*n}),format:""},{precision:J._1_month_letter,interval:O.utcDay.filter(t=>{const e=t.getUTCDate(),r=new Date(t.getUTCFullYear(),t.getUTCMonth()+1,0).getUTCDate(),n=Math.ceil(r/2);return e===n}),format:""},{precision:J._3_months,interval:O.utcMonth,format:""},{precision:J._3_months,interval:O.utcMonth,format:""},{precision:J._2_year,interval:O.utcYear,format:""},{precision:J._5_years,interval:O.utcYear.every(2),format:""},{precision:J._20_years,interval:O.utcYear.every(5),format:""},{precision:J._75_years,interval:O.utcYear.every(20),format:""},{precision:J._300_years,interval:O.utcYear.every(100),format:""},{precision:J.infinity,interval:O.utcYear.every(500),format:""}]},rl=A.extend({name:"EXAxisOverview",components:{EXAxis:rn},props:{timeScale:{type:Function,required:!0},x:{type:Number,default:0},y:{type:Number,default:0},height:{type:Number,default:10},dark:{type:Boolean,default:!1}},data(){return{classNames:me,ticksConfigs:ln[rt.Overview]}}}),Q7="";var nl=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EXAxis",{class:e.classNames.xAxisOverview,attrs:{x:e.x,y:e.y,dark:e.dark,height:e.height,"time-scale":e.timeScale,"ticks-configs":e.ticksConfigs}})},il=[],sl=H(rl,nl,il,!1,null,null,null,null);const al=sl.exports,ol=A.extend({name:"EXAxisDetailed",components:{EXAxis:rn},props:{timeScale:{type:Function,required:!0},x:{type:Number,default:0},y:{type:Number,default:0},height:{type:Number,default:10},dark:{type:Boolean,default:!1}},data(){return{classNames:me,ticksConfigs:ln[rt.Detailed]}}}),K7="";var ll=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EXAxis",{class:e.classNames.xAxisDetailed,attrs:{x:e.x,y:e.y,dark:e.dark,height:e.height,"time-scale":e.timeScale,"ticks-configs":e.ticksConfigs}})},cl=[],ul=H(ol,ll,cl,!1,null,null,null,null);const dl=ul.exports,hl=A.extend({name:"EXAxisBackground",components:{EXAxis:rn},props:{timeScale:{type:Function,required:!0},x:{type:Number,default:0},y:{type:Number,default:0},height:{type:Number,default:10},dark:{type:Boolean,default:!1}},data(){return{classNames:me,ticksConfigs:ln[rt.DetailedBackground]}}}),J7="";var fl=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EXAxis",{class:e.classNames.xAxisBackground,attrs:{x:e.x,y:e.y,dark:e.dark,height:e.height,"time-scale":e.timeScale,"ticks-configs":e.ticksConfigs}})},pl=[],ml=H(hl,fl,pl,!1,null,null,null,null);const gl=ml.exports,vl=A.extend({name:"ETimelineSVGDefs",props:{eventsGroups:{type:Object,default:()=>({})},forbiddenIntervalColor:{type:String,default:"#ddd"},width:{type:Number,required:!0},height:{type:Number,required:!0}},data(){return{defs:Je,TimelineChartType:He,transparencyGradients:[{id:"transparency-gradient-light",stop:100,opacity:.4},{id:"transparency-gradient",stop:130,opacity:.4},{id:"transparency-gradient-hover",stop:130,opacity:.6}]}}});var _l=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("defs",{ref:"mainContainer",staticClass:"e-timeline"},[e._l(e.eventsGroups,function(n,i){return[r("linearGradient",{key:`${e.defs.loadingGradient}-${i}`,attrs:{id:`${e.defs.loadingGradient}-${i}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"}},[r("stop",{attrs:{offset:"0%","stop-color":n.color,"stop-opacity":"0"}}),r("stop",{attrs:{offset:"50%","stop-color":n.color,"stop-opacity":"0.6"}}),r("stop",{attrs:{offset:"100%","stop-color":n.color,"stop-opacity":"0"}})],1),n.chartType===e.TimelineChartType.LineGraph?[e._l(e.transparencyGradients,function({id:o,stop:a,opacity:u}){return r("linearGradient",{key:`${o}-${i}-${n.chartType}`,attrs:{id:`${o}-${i}-${n.chartType}`,x1:"0%",x2:"0%",y1:"0%",y2:"100%"}},[r("stop",{attrs:{offset:"0%","stop-color":n.color,"stop-opacity":u}}),r("stop",{attrs:{offset:`${a}%`,"stop-color":n.color,"stop-opacity":"0"}})],1)}),r("clipPath",{key:`${e.defs.clipPath}-${i}`,attrs:{id:`${e.defs.clipPath}-${i}`}},[r("rect",{attrs:{width:e.width,height:e.height}})])]:e._e(),n.chartType===e.TimelineChartType.BarChart?[e._l(e.transparencyGradients,function({id:o,opacity:a}){return r("linearGradient",{key:`${o}-${i}-${n.chartType}`,attrs:{id:`${o}-${i}-${n.chartType}`,width:"100%",height:"100%"}},[r("stop",{attrs:{"stop-color":n.color,"stop-opacity":a}})],1)}),r("clipPath",{key:`${e.defs.clipPath}-${i}`,attrs:{id:`${e.defs.clipPath}-${i}`}},[r("rect",{attrs:{width:e.width,height:e.height}})])]:e._e()]}),r("pattern",{attrs:{id:e.defs.stripedPattern,width:"5",height:"3",patternUnits:"userSpaceOnUse",patternTransform:"rotate(45)"}},[r("rect",{attrs:{width:"1",height:"4",fill:e.forbiddenIntervalColor}})])],2)},yl=[],Cl=H(vl,_l,yl,!1,null,null,null,null);const bl=Cl.exports,xl=A.extend({name:"ETimelineForbiddenInterval",props:{timeScale:{type:Function,required:!0},interval:{type:Object,required:!0},index:{type:Number,required:!0},height:{type:Number,required:!0},timezone:{type:String,default:"UTC"}},data(){return{classNames:me,defs:Je}},computed:{visibleDomain(){return this.timeScale.domain()},startX(){const t=this.interval.startDate===-1/0?this.visibleDomain[0]:this.tzStringToDate(this.interval.startDate);return this.timeScale(t)},endX(){const t=this.interval.endDate===1/0?this.visibleDomain[1]:this.tzStringToDate(this.interval.endDate);return this.timeScale(t)},width(){return Math.max(this.endX-this.startX,0)}},methods:{tzStringToDate(t){return Ve({timestamp:t,timezone:this.timezone})}}});var wl=function(){var e=this,r=e._self._c;return r("rect",{class:`${e.classNames.forbiddenInterval} ${e.classNames.forbiddenInterval}-${e.index}`,attrs:{x:e.startX,y:"0",width:e.width,height:e.height,fill:`url(#${e.defs.stripedPattern})`}})},Sl=[],Tl=H(xl,wl,Sl,!1,null,null,null,null);const kl=Tl.exports,$l=A.extend({name:"ECursor",props:{timeScale:{type:Function,required:!0},timestamp:{type:String,required:!0},timezone:{type:String,required:!0},height:{type:Number,required:!0},color:{type:String,default:"red"},width:{type:Number,default:1},opacity:{type:Number,default:1}},data(){return{classNames:me}},watch:{timestamp(){this.repositionCursor()},timeScale(){this.repositionCursor()},height(){this.repositionCursor()}},methods:{repositionCursor(){const t=this.$refs.cursor,e=O.select(t);if(!e)return;if(!this.timestamp){e.style("opacity",0);return}const r=this.tzStringToDate(this.timestamp),n=this.timeScale(r);isNaN(n)?e.style("opacity",0):e.attr("x1",n).attr("x2",n).style("opacity",this.opacity),e.attr("y2",this.height)},tzStringToDate(t){return Ve({timestamp:t,timezone:this.timezone})}}});var El=function(){var e=this,r=e._self._c;return r("line",{ref:"cursor",class:e.classNames.selectedTimestampCursor,attrs:{x1:"0",y1:"0",x2:"0",opacity:"0",stroke:e.color,"stroke-width":`${e.width}px`}})},Ml=[],Ll=H($l,El,Ml,!1,null,null,null,null);const Zi=Ll.exports,Dl=A.extend({name:"ETimelineCursor",components:{ECursor:Zi},props:{timeScale:{type:Function,required:!0},selectedTimestamp:{type:String,required:!0},timezone:{type:String,default:"UTC"},height:{type:Number,required:!0}}});var Pl=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("ECursor",{attrs:{"time-scale":e.timeScale,timestamp:e.selectedTimestamp,timezone:e.timezone,color:"green",height:e.height}})},Ol=[],zl=H(Dl,Pl,Ol,!1,null,null,null,null);const Bl=zl.exports,Il=A.extend({name:"ETimelineSelectedTimestampCursor",components:{ECursor:Zi},props:{timeScale:{type:Function,required:!0},selectedTimestamp:{type:String,required:!0},timezone:{type:String,default:"UTC"},height:{type:Number,required:!0}}});var Fl=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("ECursor",{attrs:{"time-scale":e.timeScale,timestamp:e.selectedTimestamp,timezone:e.timezone,height:e.height,width:2}})},Al=[],Rl=H(Il,Fl,Al,!1,null,null,null,null);const Hl=Rl.exports,Nl=A.extend({name:"ECursorBehavior",props:{timeScale:{type:Function,required:!0},timezone:{type:String,default:"UTC"},minHoverZone:{type:Number,default:0},isHoveringMilestone:{type:Boolean,default:!1}},data(){return{cursor:null,hoveredTimestamp:null,isHoveringTimeline:!1}},mounted(){this.registerEventsListeners()},methods:{registerEventsListeners(){const t=this.$refs.cursor;this.cursor=O.select(t),this.cursor.on("mousemove",this.handleMouseMove),this.cursor.on("click",this.handleClick),this.cursor.on("mouseleave",this.handleMouseLeave)},handleMouseLeave(){this.isHoveringTimeline=!1,this.hoveredTimestamp=void 0,this.$emit("mouse-leave")},handleMouseMove(t){if(this.isHoveringMilestone)return;const e=t.offsetX;if(e<=this.minHoverZone){this.isHoveringTimeline=!1;return}const r=this.timeScale.invert(e);this.hoveredTimestamp=this.dateToTzString(r),this.isHoveringTimeline=!0,this.$emit("mouse-move",e,this.hoveredTimestamp)},handleClick(t){if(this.isHoveringMilestone)return;const e=t.offsetX;if(e<=this.minHoverZone)return;const r=this.timeScale.invert(e),n=this.dateToTzString(r);this.$emit("timestamp-clicked",n,t.target)},tzStringToDate(t){return Ve({timestamp:t,timezone:this.timezone})},dateToTzString(t){return Ft({date:t,timezone:this.timezone})}}});var jl=function(){var e=this,r=e._self._c;return r("div",{ref:"cursor",staticClass:"e-timeline__cursor e-relative"},[e._t("default",null,{hoveredTimestamp:e.hoveredTimestamp,isHoveringTimeline:e.isHoveringTimeline})],2)},Gl=[],Wl=H(Nl,jl,Gl,!1,null,null,null,null);const ql=Wl.exports,Ul=A.extend({name:"ETimelineGroupContainer",props:{groupId:{type:String,required:!0},label:{type:String,default:""},color:{type:String,default:""},backgroundColor:{type:String,default:""},x:{type:Number,default:0},y:{type:Number,required:!0},height:{type:Number,default:18},width:{type:Number,required:!0},showLabel:{type:Boolean,default:!0},labelWidth:{type:[Number,void 0],default:void 0},labelRadius:{type:[Number,void 0],default:3},xPadding:{type:Number,default:5},loading:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},showBackground:{type:Boolean,default:!0}},data(){return{classNames:me,characterWidth:6.5,isHighlighted:!1}},computed:{computedClasses(){return{label:{[`${me.labelGroup} ${me.labelGroup}-${this.groupId}`]:!0},container:{[`${me.eventGroup} ${me.eventGroup}-${this.groupId}`]:!0,[`${me.eventGroup}--highlighted`]:this.isHighlighted}}},computedLabelWidth(){var e;return(this.labelWidth||((e=this.label)==null?void 0:e.length)*this.characterWidth)+this.xPadding*2},textY(){return this.y+this.height/2},contentX(){return this.showLabel?this.x+this.computedLabelWidth:this.x},labelBackgroundColor(){let t=O.color(this.color);return t.opacity=this.dark?.2:.5,t.toString()},textFillColor(){var t,e;return(this.dark?(t=O.color(this.color))==null?void 0:t.brighter(1.5):(e=O.color(this.color))==null?void 0:e.darker(2)).toString()},loadingIndicatorFill(){return`url(#${Je.loadingGradient}-${this.groupId})`}}}),ed="";var Zl=function(){var e=this,r=e._self._c;return r("g",{class:e.computedClasses.container},[!e.hidden&&e.showBackground?r("rect",{class:e.classNames.eventGroupBg,attrs:{x:e.x,y:e.y,width:e.width,height:e.height,fill:e.backgroundColor||e.color}}):e._e(),r("g",{class:e.classNames.eventGroupContent,attrs:{cursor:"pointer"}},[e._t("default",null,{y:e.y,x:e.contentX}),e.loading?r("rect",{class:e.classNames.loadingIndicator,attrs:{x:e.x,y:e.y,width:400,height:e.height,fill:e.loadingIndicatorFill}}):e._e()],2),e.showLabel?r("g",{class:e.computedClasses.label,on:{mouseover:function(n){e.isHighlighted=!0},mouseleave:function(n){e.isHighlighted=!1},click:function(n){return n.stopPropagation(),e.$emit("group-label-clicked",e.groupId)}}},[r("rect",{class:e.classNames.labelBg,attrs:{x:e.x,y:e.y,width:e.computedLabelWidth,height:e.height,rx:e.labelRadius,ry:e.labelRadius,fill:e.dark?"black":"white"}}),r("rect",{class:e.classNames.labelBgFill,attrs:{x:e.x,y:e.y,width:e.computedLabelWidth,height:e.height,rx:e.labelRadius,ry:e.labelRadius,fill:e.labelBackgroundColor,stroke:e.textFillColor}}),r("text",{staticClass:"label-text",attrs:{x:e.x+e.xPadding,y:e.textY,dy:"0.35rem",fill:e.textFillColor}},[e._v(" "+e._s(e.label)+" ")])]):e._e()])},Yl=[],Xl=H(Ul,Zl,Yl,!1,null,null,null,null);const cn=Xl.exports,Vl=A.extend({name:"ETimelineRectsChartGroupedDots",props:{event:{type:Object,required:!0},rectStroke:{type:String,required:!0},rectStrokeWidth:{type:Number,required:!0},rectRx:{type:Number,required:!0},rectRy:{type:Number,required:!0},groupId:{type:String,required:!0}},data(){return{classNames:me}},computed:{numberOfBackgroundDots(){return this.event.groupedEvents?Math.min(3,this.event.groupedEvents.length-1):0}},methods:{getBackgroundX(t){return this.event.x-this.event.width/2-(this.numberOfBackgroundDots-(t-1))*4.5},getBackgroundY(t){return this.event.y+(this.numberOfBackgroundDots-(t-1))/2},getBackgroundSize(t){return this.event.width-(this.numberOfBackgroundDots-(t-1))},getBackgroundOpacity(t){return 1-(this.numberOfBackgroundDots-(t-1))/5}}});var Ql=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("g",{class:e.classNames.eventRectContainer},[e._l(e.numberOfBackgroundDots,function(n){return r("rect",{key:`bg-${e.numberOfBackgroundDots-n}`,class:[e.classNames.eventRect,`${e.classNames.eventRect}--dot`,`bg-${n}`],attrs:{x:e.getBackgroundX(n),y:e.getBackgroundY(n),width:e.getBackgroundSize(n),height:e.getBackgroundSize(n),fill:e.event.color,stroke:e.rectStroke,opacity:e.getBackgroundOpacity(n),"stroke-width":e.rectStrokeWidth,ry:e.rectRx,rx:e.rectRy}})}),r("rect",{class:[e.classNames.eventRect,`${e.classNames.eventRect}--dot`],attrs:{x:e.event.x-e.event.width/2,y:e.event.y-e.event.width*.025,width:e.event.width*1.05,height:e.event.height*1.05,fill:e.event.color,stroke:e.rectStroke,cursor:"pointer","stroke-width":e.rectStrokeWidth,ry:e.rectRx,rx:e.rectRy}})],2)},Kl=[],Jl=H(Vl,Ql,Kl,!1,null,null,null,null);const e5=Jl.exports,t5=A.extend({name:"ETimelineRectsChart",directives:{},components:{ETimelineGroupContainer:cn,ETimelineRectsChartGroupedDots:e5},props:{timeScale:{type:Function,required:!0},eventsGroup:{type:Object,required:!0},groupId:{type:String,required:!0},x:{type:Number,default:0},y:{type:Number,required:!0},height:{type:Number,default:18},width:{type:Number,required:!0},rectMinWidth:{type:Number,default:1},rectYPadding:{type:Number,default:0},dark:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!0},labelWidth:{type:[Number,void 0],default:void 0},timezone:{type:[String,void 0],default:void 0},dots:{type:Boolean,default:!1},dotsSize:{type:Number,default:3},barBorderRadius:{type:Number,default:1.5},groupOverlappingDots:{type:Boolean,default:!1},groupingThreshold:{type:Number,default:0}},data(){return{classNames:me,characterWidth:7.5,textPadding:5}},computed:{rectStrokeWidth(){return this.dots&&this.dotsSize?this.dotsSize/10:5},rectRx(){return this.dots&&this.dotsSize?this.dotsSize:this.eventsGroup.barBorderRadius||0},rectRy(){return this.dots&&this.dotsSize?this.dotsSize:this.eventsGroup.barBorderRadius||0},computedHeight(){return this.eventsGroup.height||this.height},yPosition(){const t=this.dots?(this.computedHeight-this.dotsSize+this.rectYPadding)/2:this.rectYPadding/2;return this.y+t},rectStroke(){if(!this.dots)return"#0000";const t=O.color(this.eventsGroup.color);return(t==null?void 0:t.brighter(1).toString())||"#0000"},rectHeight(){return this.dots?this.dotsSize:Math.max(this.height,1)},preprocessedEvents(){return[...this.eventsGroup.events].sort((e,r)=>{const n=new Date(e.startDate||e.timestamp).getTime(),i=new Date(r.startDate||r.timestamp).getTime();return n-i}).map(this.convertEventTzStringToDate)},computedEvents(){return(this.dots&&this.groupOverlappingDots?this.groupedEvents:this.preprocessedEvents.map(e=>[e])).map(e=>{let r={textContent:this.getEventText(e[0],this.textPadding,this.characterWidth),textX:this.getEventRectX(e[0],this.timeScale)+this.textPadding,textY:this.yPosition+this.rectHeight/2,textColor:e[0].textColor||this.getFillColor(e[0].color||this.eventsGroup.color,.75,this.dark)};if(!this.dots)return{...e[0],x:this.getEventRectX(e[0],this.timeScale),y:this.yPosition,width:this.getEventRectWidth(e[0],this.timeScale,this.rectMinWidth),height:this.rectHeight,color:e[0].color||this.eventsGroup.color,groupedEvents:e,...r};const n=this.getEventRectX(e[0],this.timeScale),i=this.getEventRectX(e[e.length-1],this.timeScale),o=n+(i-n)/2,a=e.length>1,u=o;return a?r={...r,textContent:`${e.length}`,textX:o-this.dotsSize/2-`${e.length}`.length*2,textY:this.yPosition-this.dotsSize/2}:r={...r,textX:r.textX-this.textPadding},{...e[0],x:u,y:this.yPosition,width:this.dotsSize,height:this.rectHeight,color:e[0].color||this.eventsGroup.color,groupedEvents:e,...r}})},timeScaleDensity(){const t=this.timeScale.invert(0).getTime(),e=this.timeScale.invert(1).getTime(),r=36e5,n=(e-t)/r;return isNaN(n)?1:n},groupedEvents(){const t=this.preprocessedEvents,e=[];let r=[];return t.forEach((n,i)=>{if(i===0){r.push(n);return}const o=t[i-1],a=this.getEventRectX(n,this.timeScale),u=this.getEventRectX(o,this.timeScale),s=this.getEventRectWidth(o,this.timeScale,this.rectMinWidth);u+s+this.groupingThreshold>=a?r.push(n):(r.length>0&&e.push([...r]),r=[n])}),r.length>0&&e.push(r),e}},methods:{onMouseOver(t,e,r){t.target.classList.add(me.eventRectHovered);const i=this.convertEventDateToTzString(e);this.$emit("event-mouseover",t,i,r)},onMouseLeave(t){const e=t.target;e.classList.remove(me.eventRectHovered),Array.from(e.children).forEach(r=>{r.classList.remove(me.eventRectHovered)}),this.$emit("event-mouseout")},onGroupedEventsMouseOver(t,e,r){t.target.classList.add(me.eventRectHovered);const i=e.map(this.convertEventDateToTzString);this.$emit("grouped-events-mouseover",t,i,r)},getEventText(t,e,r){if(!t.text)return"";const n=`${t.text}`;if(n.length===1)return n;const o=(this.getEventRectWidth(t,this.timeScale,this.rectMinWidth)-e)/r;return o<Math.min(n==null?void 0:n.length,4)?"":(n==null?void 0:n.length)<=o?n:`${n.slice(0,o-3)}...`},getEventRectWidth(t,e,r){if(!t)return 0;if(this.dots)return this.dotsSize;if(t.startDate&&t.endDate){const n=new Date(t.startDate),i=new Date(t.endDate),o=e(i)-e(n);return Math.max(o,r)}else{const n=1/(this.timeScaleDensity*3600);return Math.max(n,r)}},getEventRectX(t,e){const r=e(t.startDate||t.timestamp);return isNaN(r)?0:r},tzStringToDate(t){return Ve({timestamp:t,timezone:this.timezone})},dateToTzString(t){return Ft({date:t,timezone:this.timezone})},convertEventTzStringToDate(t){return this.patchTimestampField(t,this.tzStringToDate)},convertEventDateToTzString(t){return this.patchTimestampField(t,this.dateToTzString)},patchTimestampField(t,e){let r={...t};return r.timestamp&&(r.timestamp=e(r.timestamp)),r.startDate&&(r.startDate=e(r.startDate)),r.endDate&&(r.endDate=e(r.endDate)),r},getFillColor(t,e=0,r=!1){var n,i;return(r?(n=O.color(t))==null?void 0:n.brighter(1.5+e):(i=O.color(t))==null?void 0:i.darker(2+e)).toString()}}}),td="";var r5=function(){var e=this,r=e._self._c;return r("ETimelineGroupContainer",{attrs:{"group-id":e.groupId,color:e.eventsGroup.color,label:e.eventsGroup.label,"background-color":e.eventsGroup.bgColor,loading:e.eventsGroup.isLoading,x:e.x,y:e.y,dark:e.dark,width:e.width,height:e.computedHeight+e.rectYPadding,"show-label":e.showLabel,"label-width":e.labelWidth,hidden:e.eventsGroup.isHidden},on:{"group-label-clicked":function(n){return e.$emit("group-label-clicked",e.groupId)}}},[e.dots?r("line",{class:e.classNames.milestoneLine,attrs:{x1:0,x2:e.width,y1:e.yPosition+e.dotsSize/2,y2:e.yPosition+e.dotsSize/2,stroke:e.eventsGroup.color,"stroke-width":1}}):e._e(),e._l(e.computedEvents,function(n,i){return r("g",{key:i,class:e.classNames.eventRectContainer},[!n.groupedEvents||!e.dots||n.groupedEvents.length===1?[r("rect",{class:[e.classNames.eventRect,e.dots?`${e.classNames.eventRect}--dot`:""],attrs:{x:n.x-(e.dots?n.width/2:0),y:n.y,"data-timestamp":n.timestamp,width:n.width,height:n.height,fill:n.color,stroke:e.rectStroke,cursor:"pointer","stroke-width":e.rectStrokeWidth,ry:e.rectRx,rx:e.rectRy},on:{mouseover:function(o){return e.onMouseOver(o,n,e.groupId)},mouseleave:e.onMouseLeave}})]:e.dots&&n.groupedEvents.length>1?r("ETimelineRectsChartGroupedDots",{key:i,attrs:{event:n,"rect-stroke":e.rectStroke,"rect-stroke-width":e.rectStrokeWidth,"rect-rx":e.rectRx,"rect-ry":e.rectRy,"group-id":e.groupId},nativeOn:{mouseover:function(o){return e.onGroupedEventsMouseOver(o,n.groupedEvents,e.groupId)},mouseleave:function(o){return e.onMouseLeave.apply(null,arguments)}}}):e._e(),n.textContent?r("text",{class:e.classNames.eventRectText,attrs:{fill:n.textColor,x:n.textX,y:n.textY,dy:"0.35em","text-anchor":e.dots?"middle":"start","font-size":"12","font-weight":600,"stroke-linejoin":"round","paint-order":"stroke","pointer-events":"none"}},[e._v(" "+e._s(n.textContent)+" ")]):e._e()],2)})],2)},n5=[],i5=H(t5,r5,n5,!1,null,null,null,null);const s5=i5.exports,a5=A.extend({name:"ETimelineLinesChart",directives:{},components:{ETimelineGroupContainer:cn},props:{timeScale:{type:Function,required:!0},eventsGroup:{type:Object,required:!0},groupId:{type:String,required:!0},x:{type:Number,default:0},y:{type:Number,required:!0},height:{type:Number,default:18},width:{type:Number,required:!0},dark:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!0},maxVisibleCount:{type:Number,required:!0},labelWidth:{type:[Number,void 0],default:void 0},labelHeight:{type:[Number,void 0],default:void 0},timezone:{type:[String,void 0],default:void 0},hoveredTimestamp:{type:String,default:""},yOffset:{type:Number,default:20}},data(){return{classNames:me,defs:Je,characterWidth:7.5}},computed:{lineGradient(){return`${Je.transparencyGradientLight}-${this.groupId}-${He.LineGraph}`},lineDots(){const[t,e]=this.timeScale.domain();return this.eventsGroup.events.filter((n,i)=>{var s,l;const o=i===0?1:i,a=new Date((s=this.eventsGroup.events[o+1])==null?void 0:s.timestamp),u=new Date((l=this.eventsGroup.events[o-1])==null?void 0:l.timestamp);return a>=t&&a<=e||u>=t&&u<=e})},hoverZones(){return this.lineDots.map(t=>{const e=this.timeScale(this.tzStringToDate(t.timestamp)),r=this.yScale(t.count),n=this.timeScale.invert(e-2),i=this.timeScale.invert(e+2);return{x:e,y:r,height:this.height-22,color:t.color||this.eventsGroup.color,timestamp:t.timestamp,count:t.count,isHovering:this.tzStringToDate(this.hoveredTimestamp)>=n&&this.tzStringToDate(this.hoveredTimestamp)<i}})},yScale(){let t=O.scaleLinear().range([this.height,0]);return t=t.domain([0,this.maxVisibleCount||1]),t}},watch:{hoverZones:{handler(){this.updateLine()},deep:!0,immediate:!0}},mounted(){this.updateLine()},methods:{updateLine(){const t=O.area().x(r=>r.x).y0(this.height).y1(r=>r.y).curve(O.curveMonotoneX),e=O.line().x(r=>r.x).y(r=>r.y).curve(O.curveMonotoneX);O.select(`.${me.areaGraphPath}-${this.groupId}`).datum(this.hoverZones).attr("d",r=>t(r)),O.select(`.${me.lineGraphPath}-${this.groupId}`).datum(this.hoverZones).attr("d",r=>e(r))},getEventRectX(t,e){const r=e(this.tzStringToDate(t.startDate||t.timestamp));return isNaN(r)?0:r},tzStringToDate(t){return Ve({timestamp:t,timezone:this.timezone})}}}),rd="";var o5=function(){var e=this,r=e._self._c;return r("ETimelineGroupContainer",{attrs:{"group-id":e.groupId,color:e.eventsGroup.color,label:e.eventsGroup.label,"background-color":e.eventsGroup.bgColor,loading:e.eventsGroup.isLoading,x:e.x,y:e.y,dark:e.dark,width:e.width,height:e.labelHeight,"show-label":e.showLabel,"label-width":e.labelWidth,hidden:e.eventsGroup.isHidden,"show-background":!1},on:{"group-label-clicked":function(n){return e.$emit("group-label-clicked",e.groupId)}}},[r("g",{class:`${e.classNames.lineGraphGroup} ${e.classNames.lineGraphGroup}-${e.groupId}`,style:{transform:`translate(0, ${e.yOffset}px) `}},[r("path",{class:`${e.classNames.areaGraphPath}-${e.groupId}`,attrs:{fill:`url(#${e.lineGradient})`,stroke:"none","stroke-linecap":"round","stroke-linejoin":"round"}}),r("path",{class:`${e.classNames.lineGraphPath}-${e.groupId}`,attrs:{fill:"none",stroke:e.eventsGroup.color,"stroke-width":1.5}}),e._l(e.hoverZones,function(n,i){return r("g",{key:i},[r("circle",{ref:`${e.classNames.lineGraphDot}-${e.groupId}-${i}`,refInFor:!0,class:[e.classNames.lineGraphDot,`${e.classNames.lineGraphDot}-${e.groupId}`,`${e.classNames.lineGraphDot}-${e.groupId}-${i}`,{[`${e.classNames.lineGraphDot}--active`]:n.isHovering}],attrs:{cx:n.x,cy:n.y,r:"1.5",fill:n.color,"stroke-width":0}}),r("rect",{class:`${e.classNames.lineGraphHoverZone} ${e.classNames.lineGraphHoverZone}-${e.groupId}`,attrs:{x:n.x-2,y:0,width:4,height:e.height,fill:"transparent"},on:{mouseover:function(o){return e.$emit("event-mouseover",o,n,e.groupId)},mouseleave:function(o){return e.$emit("event-mouseout")}}})])})],2)])},l5=[],c5=H(a5,o5,l5,!1,null,null,null,null);const u5=c5.exports,d5=A.extend({name:"ETimelineBarsChart",components:{ETimelineGroupContainer:cn},props:{timeScale:{type:Function,required:!0},eventsGroup:{type:Object,required:!0},groupId:{type:String,required:!0},x:{type:Number,default:0},y:{type:Number,required:!0},height:{type:Number,default:18},width:{type:Number,required:!0},dark:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!0},labelWidth:{type:[Number,void 0],default:void 0},labelHeight:{type:[Number,void 0],default:void 0},timezone:{type:[String,void 0],default:void 0},hoveredTimestamp:{type:String,default:""},yOffset:{type:Number,default:20},rectMinWidth:{type:Number,default:1},currentTimeScaleDensity:{type:Number,default:null},maxVisibleCount:{type:Number,default:1},previousCountsByTimestamp:{type:Object,default:null}},data(){return{classNames:me,defs:Je,characterWidth:7.5}},computed:{bars(){const[t,e]=this.timeScale.domain();return this.eventsGroup.events.filter((n,i)=>{var s,l;const o=i===0?1:i,a=new Date((s=this.eventsGroup.events[o+1])==null?void 0:s.endDate),u=new Date((l=this.eventsGroup.events[o-1])==null?void 0:l.startDate);return a>=t&&a<=e||u>=t&&u<=e})},hoverZones(){return this.bars.map(t=>{const e=this.getEventRectWidth(t),r=this.yScale.range()[0]-this.yScale(t.count),n=this.getEventRectX(t,this.timeScale),i=this.previousCountsByTimestamp[t.startDate]||0,o=this.yScale(i+t.count);return{x:n,y:o,height:r,width:e,color:t.color||this.eventsGroup.color,startDate:t.startDate,endDate:t.endDate,count:t.count,className:t.className,isHovering:this.hoveredTimestamp>=t.startDate&&this.hoveredTimestamp<t.endDate}})},yScale(){let t=O.scaleLinear().range([this.height,0]);return t=t.domain([0,this.maxVisibleCount||1]),t}},methods:{getBarOpacity(t){let e;return this.hoveredTimestamp||(e=Je.transparencyGradient),e=t.isHovering?Je.transparencyGradientHover:Je.transparencyGradientLight,`${e}-${this.groupId}-${He.BarChart}`},getEventRectX(t,e){return isNaN(e(this.tzStringToDate(t.startDate||t.timestamp)))?0:e(this.tzStringToDate(t.startDate||t.timestamp))},tzStringToDate(t){return Ve({timestamp:t,timezone:this.timezone})},onEventClick(){this.$emit("event-clicked")},getEventRectWidth(t){if(!t)return 0;if(t.startDate&&t.endDate){const e=new Date(t.startDate),r=new Date(t.endDate),n=this.timeScale(r)-this.timeScale(e);return Math.max(n,this.rectMinWidth)}else{const e=1/(this.currentTimeScaleDensity*3600);return Math.max(e,this.rectMinWidth)}}}}),nd="";var h5=function(){var e=this,r=e._self._c;return r("ETimelineGroupContainer",{attrs:{"group-id":e.groupId,color:e.eventsGroup.color,label:e.eventsGroup.label,"background-color":e.eventsGroup.bgColor,loading:e.eventsGroup.isLoading,x:e.x,y:e.y,dark:e.dark,width:e.width,height:e.labelHeight,"show-label":e.showLabel,"label-width":e.labelWidth,hidden:e.eventsGroup.isHidden,"show-background":!1},on:{"group-label-clicked":function(n){return e.$emit("group-label-clicked",e.groupId)}}},[r("g",{class:`${e.classNames.barChartGroup} ${e.classNames.barChartGroup}-${e.groupId}`,style:{transform:`translate(0, ${e.yOffset}px) `}},e._l(e.hoverZones,function(n,i){return r("g",{key:i,class:`${e.classNames.eventBarContainer} ${e.classNames.eventBarContainer}-${e.groupId}`,on:{mouseleave:function(o){return e.$emit("event-mouseout")},mouseover:function(o){return e.$emit("event-mouseover",o,n,e.groupId)},click:function(o){return e.onEventClick()}}},[r("rect",{class:[n.className?n.className:"",e.classNames.eventBarHoverZone],attrs:{x:n.x,y:-e.yOffset,width:n.width,height:e.yScale.range()[0]+e.yOffset,fill:n.color,"fill-opacity":0}}),r("rect",{class:[n.className?n.className:"",e.classNames.eventBar],attrs:{x:n.x,y:n.y,width:n.width,height:n.height,"stroke-width":5,cursor:"pointer",stroke:"#0000",fill:`url(#${e.getBarOpacity(n)})`}})])}),0)])},f5=[],p5=H(d5,h5,f5,!1,null,null,null,null);const m5=p5.exports,g5=A.extend({name:"ETimeline",directives:{resizeObserver:Ke},components:{ETimelineSVGDefs:bl,EXAxisBackground:gl,EXAxisDetailed:dl,EXAxisOverview:al,ETimelineMilestone:B0,ETimelineMarkers:q0,ETimelineCursor:Bl,ETimelineSelectedTimestampCursor:Hl,EZoomBehavior:V0,ECursorBehavior:ql,ETimelineRectsChart:s5,ETimelineForbiddenInterval:kl,ETimelineLinesChart:u5,ETimelineBarsChart:m5},props:{eventsGroups:{type:Object,default:null},dark:{type:Boolean,default:!1},startDate:{type:String,default:void 0},endDate:{type:String,default:void 0},selectedTimestamp:{type:String,default:void 0},showEventTooltip:{type:Boolean,default:!0},insertZerosAtInterval:{type:String,default:void 0},flattenLineGraphEnds:{type:Boolean,default:!0},showLabels:{type:Boolean,default:!0},barHeight:{type:Number,default:18},barYPadding:{type:Number,default:0},chartMinHeight:{type:Number,default:60},chartMinLabelHeight:{type:Number,default:18},minDate:{type:String,default:void 0},maxDate:{type:String,default:void 0},panOnDateClick:{type:Boolean,default:!1},selectedDate:{type:String,default:""},markers:{type:Array,default:()=>[]},stickyMarkers:{type:Boolean,default:!0},fitMarkersOnChange:{type:Boolean,default:!1},milestoneBulletSize:{type:Number,default:18},milestonesFirst:{type:Boolean,default:!0},forbiddenIntervals:{type:Array,default:()=>[]},forbiddenIntervalColor:{type:String,default:"#ddd"},focusedInterval:{type:[Object,void 0],default:void 0},locked:{type:Boolean,default:!1},timezone:{type:[String,void 0],default:void 0},stopClickPropagation:{type:Boolean,default:!1},tooltipPosition:{type:String,default:"top",validator:t=>["top","bottom"].includes(t)},maxDomainPadding:{type:Number,default:0},showCursor:{type:Boolean,default:!0}},data(){return{mainContainer:null,tooltip:null,timeline:null,svgElement:null,svg:null,axisHeight:22,isHoveringEvent:!1,isHoveringGroupedEvents:!1,isAnimating:!1,hoveredEvent:null,eventTooltipStyle:{},hoveredEventType:null,hoveredCounts:[],visibleFrom:null,visibleTo:null,characterWidth:7.5,textPadding:5,timeouts:[],groupsVisibility:{},selectedMilestoneId:null,isInitialized:!1,hoveredMilestone:null,focusedDomain:null,transitionDuration:400,focusedTimestamp:null,hoveredGroupedEvents:null,TimelineChartType:He,width:0}},computed:{filteredEventsGroups(){const t=Object.entries(this.eventsGroups).filter(([e,r])=>this.getCurrentGroupVisibility(e));return Object.fromEntries(t)},allEventsSorted(){const t=Object.values(this.filteredEventsGroups).map(e=>e.events).flat();return this.getSortedEvents(t)},barGroups(){return this.getGroupByType(this.filteredEventsGroups,[He.Bars,He.Dots])},lineGraphGroups(){return this.getGroupByType(this.filteredEventsGroups,[He.LineGraph])},barChartGroups(){return this.getGroupByType(this.filteredEventsGroups,[He.BarChart])},milestonesGroups(){return this.getGroupByType(this.filteredEventsGroups,[He.Milestones])},combinedBarsHeight(){return Object.values(this.barGroups).reduce((t,e)=>t+(this.getBarGroupHeight(e)||this.barHeight+this.barYPadding),0)},combinedBottomBarsHeight(){return Object.values(this.barGroups).reduce((t,e)=>t+(e.bottom?this.getBarGroupHeight(e):0),0)},combinedMilestonesHeight(){return Object.values(this.milestonesGroups).reduce((t,e)=>t+(e.height||this.barHeight),0)},milestonesYOffset(){return this.milestonesFirst?0:this.combinedBarsHeight-this.combinedBottomBarsHeight+(this.hasChart?this.chartHeight:0)},chartsYOffset(){return this.combinedXAxesHeight+(this.hasMilestones&&this.milestonesFirst?this.combinedMilestonesHeight:0)},barsYOffset(){return(this.hasChart?this.chartHeight:0)+(this.hasMilestones&&this.milestonesFirst?this.combinedMilestonesHeight:0)},hasMilestones(){return Object.keys(this.milestonesGroups).length>0},computedClasses(){return{wrapper:{"e-border-gray-700 e-timeline--dark":this.dark,"e-border-gray-300":!this.dark},background:this.dark?"e-bg-gray-900":"e-bg-gray-50",tooltipSlot:this.dark?"e-bg-gray-900 e-text-white e-border-gray-700":"e-bg-gray-100 e-text-gray-700 e-border-gray-300",eventTooltipSlot:this.dark?"e-bg-gray-900 e-text-white e-border-gray-700":"e-bg-gray-100 e-text-gray-700 e-border-gray-300"}},chartHeight(){if(!this.showLabels)return this.chartMinHeight;const e=(Object.keys(this.lineGraphGroups).length+Object.keys(this.barChartGroups).length)*this.barHeight;return Math.max(this.chartMinHeight,e)},chartLabelHeight(){return Math.max(this.chartMinLabelHeight,this.barHeight)},hasChart(){return Object.keys(this.lineGraphGroups).length+Object.keys(this.barChartGroups).length>0},labelRectWidth(){return Object.values(this.eventsGroups).reduce((r,n)=>{var i;return Math.max(r,(i=n.label)==null?void 0:i.length)},0)*this.characterWidth+2*this.textPadding},combinedXAxesHeight(){return this.axisHeight*1.75},timelineHeight(){return(this.hasChart?this.chartHeight:0)+this.combinedXAxesHeight+this.combinedBarsHeight+this.combinedMilestonesHeight},oldestEvent(){let t;return this.allEventsSorted.length>1?t=this.allEventsSorted[0]:t={timestamp:new Date(new Date().getTime()-864e5)},t},latestEvent(){let t;return this.allEventsSorted.length>1?t=this.allEventsSorted[this.allEventsSorted.length-1]:t={timestamp:new Date},t},allLineChartTimestamps(){const t=new Set;return Object.values(this.lineGraphGroups).forEach(e=>{e.events.forEach(r=>{t.add(r.timestamp)})}),Array.from(t).sort()},placeholderLineChartGroup(){return this.fillTimeGaps(this.allLineChartTimestamps.map(t=>({timestamp:t,count:0})))},filledGapsLineGraphGroups(){return Object.entries(this.lineGraphGroups).reduce((t,[e,r])=>({...t,[e]:{...r,events:this.fillEvents(r.events)}}),{})},flattenedLinesCounts(){return Object.values(this.lineGraphGroups).map(t=>t.events).flat()},flattenedBarsCounts(){return Object.values(this.barChartGroups).map(t=>t.events).flat()},hiddenGroupsLabels(){return Object.entries(this.groupsVisibility).reduce((t,[e,r])=>r?t:[...t,e],[])},minHoverZone(){return this.showLabels?this.labelRectWidth:0},sortedMarkers(){return this.isInitialized?[...this.markers].sort((t,e)=>new Date(t.timestamp).getTime()>new Date(e.timestamp).getTime()?1:-1):[]},maxVisibleCount(){const t=o=>{const a=new Date(o.startDate||o.timestamp),u=new Date(o.endDate||o.timestamp),s=new Date(this.visibleFrom),l=new Date(this.visibleTo);return u>=s&&u<=l||a>=s&&a<=l},e=this.flattenedBarsCounts.filter(t),r=this.flattenedLinesCounts.filter(t).map(o=>o.count),n={};e.forEach(o=>{const a=o.startDate||o.timestamp;n[a]=(n[a]||0)+o.count});const i=Object.values(n).concat(r);return O.max(i)||1},defaultMaxDomain(){const t=new Date(this.oldestEvent.timestamp||this.oldestEvent.startDate).getTime(),e=new Date(this.latestEvent.timestamp||this.latestEvent.endDate).getTime(),n=(e-t)*.75,i=new Date(t-n),o=new Date(e+n);return[i.toISOString(),o.toISOString()]},defaultFocusedDomain(){const t=this.oldestEvent.timestamp||this.oldestEvent.startDate,e=this.latestEvent.timestamp||this.latestEvent.endDate;return[t,e]},domain(){let t=new Date(this.minDate||this.defaultMaxDomain[0]).getTime(),e=new Date(this.maxDate||this.defaultMaxDomain[1]).getTime(),r=0;return this.maxDomainPadding&&(r=(e-t)*this.maxDomainPadding),t=new Date(t-r).toISOString(),e=new Date(e+r).toISOString(),[this.tzStringToDate(t),this.tzStringToDate(e)]},svgLeft(){var t,e,r;return((r=(e=(t=this.svg)==null?void 0:t.node())==null?void 0:e.getBoundingClientRect())==null?void 0:r.left)||0},markersScopedSlots(){return Object.keys(this.$scopedSlots).filter(t=>t.startsWith("marker.")).reduce((t,e)=>(t[e]=this.$scopedSlots[e],t),{})},isHoveringMilestone(){return!!this.hoveredMilestone},milestonesGroupsPlaceholder(){return Object.entries(this.milestonesGroups).reduce((t,[e,r])=>({...t,[e]:{...r,events:[],isLoading:!1}}),{})},countsByTimestamp(){const t={...this.lineGraphGroups,...this.barChartGroups};return Object.entries(t).reduce((e,[r,n])=>(n.events.forEach(i=>{const o=i.timestamp||i.startDate;e[o]={...e[o]||{},[r]:i.count}}),e),{})}},watch:{markers(t,e){t===e||!this.fitMarkersOnChange||e.length===0||this.zoomToFitMarkers()},startDate(){this.zoomToStartAndEndDates()},endDate(){this.zoomToStartAndEndDates()},selectedDate(t){t&&!this.locked&&(this.focusedTimestamp=this.tzStringToDate(t).toISOString())},focusedInterval(t){t&&(t!=null&&t.startDate)&&(t!=null&&t.endDate)&&(this.focusedDomain=[t.startDate,t.endDate])}},mounted(){this.validateProps(),this.initTimeline()},beforeDestroy(){this.clearTimeline()},methods:{handleVisibleIntervalChange({fromDate:t,toDate:e,trigger:r,transform:n}){this.visibleFrom=t,this.visibleTo=e,this.$emit("visible-interval-change",{fromDate:t,toDate:e,trigger:r,transform:n})},getGroupByType(t,e){return Object.entries(t).reduce((r,[n,i])=>!i.chartType&&e.includes(He.Bars)||e.includes(i.chartType)?{...r,[n]:i}:r,{})},getPreviousCountsByTimestamp(t){if(t===0)return{};const e=Object.fromEntries(Object.entries(this.barChartGroups).slice(0,t)),r=[...Object.values(e)].map(i=>i.events).flat(),n={};return r.forEach(i=>{const o=i.startDate||i.timestamp;n[o]=(n[o]||0)+i.count}),n},getChartsYPosition(t){const e=Object.keys(this.lineGraphGroups).concat(Object.keys(this.barChartGroups));return this.timelineHeight-this.chartLabelHeight*(e.indexOf(t)+1)-(this.milestonesFirst?0:this.combinedMilestonesHeight)-this.combinedBarsHeight},validateProps(){this.minDate||console.log("<ETimeline />: didn't receive a 'min-date' prop. Setting default: ",this.defaultMaxDomain[0]),this.maxDate||console.log("<ETimeline />: didn't receive a 'max-date' prop. Setting default: ",this.defaultMaxDomain[1]),this.startDate||console.log("<ETimeline />: didn't receive a 'start-date' prop. Setting default: ",this.defaultFocusedDomain[0]),this.endDate||console.log("<ETimeline />: didn't receive an 'end-date' prop. Setting default: ",this.defaultFocusedDomain[1])},initTimeline(){if(this.initRefs(),this.zoomToStartAndEndDates(),!this.timeline||this.timeline.offsetWidth===0||!this.domain){this.timeouts.push(setTimeout(this.initTimeline,500));return}this.selectedDate&&this.panOnDateClick&&(this.focusedTimestamp=this.tzStringToDate(this.selectedDate)),this.isInitialized=!0},initRefs(){this.tooltip=this.$refs.tooltip,this.mainContainer=this.$refs.mainContainer,this.timeline=this.$refs.timelineContainer,this.svgElement=this.$refs.timelineSvg,this.svg=O.select(this.svgElement)},zoomToFitMarkers(){const t=this.markers.map(o=>new Date(o.timestamp).getTime());if(t.length<2)return;const e=Math.min(...t),r=Math.max(...t),n=new Date(e),i=new Date(r);this.focusedDomain=[n,i]},clearTimeline(){this.svg&&this.svg.remove()},handleMouseLeave(){this.$emit("hovered-timestamp",void 0)},handleMouseMove(t,e){this.$emit("hovered-timestamp",e),this.tooltip&&(this.eventTooltipStyle={left:`${t}px`,zIndex:100,[this.tooltipPosition==="top"?"bottom":"top"]:`${this.timeline.getBoundingClientRect().height}px`})},isForbiddenInterval(t){const e=new Date(t).getTime(),r=this.forbiddenIntervals.some(o=>{const a=isNaN(new Date(o.startDate).getTime())?-1/0:new Date(o.startDate).getTime(),u=isNaN(new Date(o.endDate).getTime())?1/0:new Date(o.endDate).getTime();return e>=a&&e<=u});let n=!1;this.startDate&&(n=e<new Date(this.startDate).getTime());let i=!1;return this.endDate&&(i=e>new Date(this.endDate).getTime()),r||n||i},handleClick(t){if(this.isForbiddenInterval(t)){this.$emit("forbidden-timestamp-clicked",t);return}if(this.isHoveringGroupedEvents){if(this.isHoveringGroupedEvents=!1,this.$emit("grouped-events-clicked",{events:this.hoveredGroupedEvents,type:this.hoveredEventType}),this.stopClickPropagation)return}else if(this.isHoveringEvent&&(this.isHoveringEvent=!1,this.$emit("event-clicked",{event:this.hoveredEvent,type:this.hoveredEventType}),this.stopClickPropagation))return;this.$emit("date-clicked",t),this.panOnDateClick&&(this.focusedTimestamp=t)},handleMarkerClick(t){this.$emit("marker-clicked",t),this.panOnDateClick&&(this.focusedTimestamp=t.timestamp)},handleChartMouseOver(t,e,r){this.isAnimating||!this.countsByTimestamp[`${e.timestamp||e.startDate}`]||(this.hoveredCounts=Object.entries(this.countsByTimestamp[`${e.timestamp||e.startDate}`]).reduce((n,i)=>{var u;const[o,a]=i;return(u=this.hiddenGroupsLabels)!=null&&u.includes(o)?n:[...n,{type:o,count:a,label:this.getExternalLabelText(o)}]},[]),this.hoveredEvent=e,this.isHoveringEvent=!0,this.$emit("event-mouseover",{eventData:e,eventType:r,hoveredCounts:this.hoveredCounts}))},handleChartMouseOut(){this.isHoveringEvent=!1,this.hoveredCounts=[],this.$emit("event-mouseout")},handleBarMouseOver(t,e,r){t.offsetX<=this.minHoverZone||(this.hoveredEvent=e,this.hoveredEventType=r,this.isHoveringEvent=!0,this.isHoveringGroupedEvents=!1,this.$emit("event-mouseover",{eventData:e,eventType:r}))},handleBarGroupedEventsMouseOver(t,e,r){t.offsetX<=this.minHoverZone||(this.hoveredGroupedEvents=e,this.hoveredEventType=r,this.isHoveringEvent=!1,this.isHoveringGroupedEvents=!0,this.$emit("grouped-events-mouseover",{events:e,eventType:r}))},handleBarMouseOut(){this.isHoveringEvent=!1,this.isHoveringGroupedEvents=!1,this.hoveredEvent=null,this.hoveredGroupedEvents=null,this.$emit("event-mouseout")},handleTimeScaleChange(t){this.$emit("time-scale-change",t)},zoomToStartAndEndDates(){var r,n;const t=this.startDate||((r=this.focusedInterval)==null?void 0:r.startDate)||this.defaultFocusedDomain[0],e=this.endDate||((n=this.focusedInterval)==null?void 0:n.endDate)||this.defaultFocusedDomain[1];this.focusedDomain=[this.tzStringToDate(t),this.tzStringToDate(e)]},onAnimationStart(){this.isAnimating=!0,this.$emit("animation-start")},onAnimationEnd(){this.isAnimating=!1,this.$emit("animation-end")},getMilestoneClass(t){return{[me.milestoneSelected]:[t.id,t.timestamp].includes(this.selectedMilestoneId)}},getMilestoneColors(t,e){return{background:t||e,border:this.getTextFillColor(t||e,.25)}},getMilestoneGroupYPosition(t){let e=0;for(const[r,n]of Object.entries(this.milestonesGroups)){if(r===t)break;e+=n.height||this.barHeight}return this.combinedXAxesHeight+this.milestonesYOffset+e},getBarGroupYPosition(t,e){let r=this.combinedXAxesHeight;e?r+=(this.hasChart?this.chartHeight:0)+(this.hasMilestones?this.combinedMilestonesHeight:0):r+=this.barsYOffset;for(const[n,i]of Object.entries(this.barGroups)){if(n===t)break;!e&&i.bottom||(r+=this.getBarGroupHeight(i))}return r},getBarGroupHeight(t){return t.height?Math.max(t.height+this.barYPadding,1):this.barHeight+this.barYPadding},getTextFillColor(t,e=0){var r,n;return(this.dark?(r=O.color(t))==null?void 0:r.brighter(1.5+e):(n=O.color(t))==null?void 0:n.darker(2+e)).toString()},getLabelBackgroundColor(t){let e=O.color(t);return e.opacity=this.dark?.2:.5,e.toString()},getCurrentGroupVisibility(t){var n;const e=this.groupsVisibility[t];if(e!==void 0)return e;const r=(n=this.eventsGroups[t])==null?void 0:n.isHidden;return r!==void 0?!r:!0},toggleGroupVisibility(t){this.groupsVisibility={...this.groupsVisibility,[t]:!this.getCurrentGroupVisibility(t)}},getExternalLabelStyles(t){const e=this.eventsGroups[t].color;return{background:this.getLabelBackgroundColor(e),color:this.getTextFillColor(e)}},getExternalLabelText(t){var e;return(e=this.eventsGroups[t])==null?void 0:e.label},getExternalLabelWrapperStyles(t){const e=this.eventsGroups[t].color;return{borderColor:this.getTextFillColor(e)}},tzStringToDate(t){return Ve({timestamp:t,timezone:this.timezone})},getFormattedTimestamp(t){return ke.parseZone(t).format("YYYY-MM-DDTHH:mm:ss")},fillTimeGaps(t){if(t.length<=1)return t;const e=this.insertZerosAtInterval,r=o=>o.clone().add(1,e),n=o=>o.clone().subtract(1,e);let i=[];for(let o=0;o<t.length;o++){const a=t[o];if(i.push(a),o===t.length-1)break;const u=t[o+1],s=ke(a.timestamp),l=ke(u.timestamp);if(l.diff(s,e)>1){const d=r(s).toISOString(),p=n(l).toISOString();i.push({timestamp:d,count:0}),d!==p&&i.push({timestamp:p,count:0})}}if(this.flattenLineGraphEnds){const o=ke(t[0].timestamp),a=ke(t[t.length-1].timestamp),u=n(o).toISOString(),s=r(a).toISOString();i=[{timestamp:u,count:0},...i,{timestamp:s,count:0}]}return i},fillEvents(t){return this.placeholderLineChartGroup.map(e=>t.find(n=>n.timestamp===e.timestamp)||e)},onMilestoneClick(t,e){this.panOnDateClick&&(this.focusedTimestamp=t.timestamp),this.selectedMilestoneId=t.id||t.timestamp,this.$emit("milestone-click",{milestone:t,milestoneType:e})},getSortedEvents(t){return[...t].sort((e,r)=>new Date(e.timestamp||e.startDate)>new Date(r.timestamp||r.startDate)?1:-1)},onHoverMilestone(t){this.hoveredMilestone=t},onResizeContainer({contentRect:t}){this.width===t.width||t.width===0||(this.width=t.width,this.$emit("timeline-resize",{contentRect:t}))}}}),id="";var v5=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResizeContainer,expression:"onResizeContainer"}],ref:"mainContainer",staticClass:"e-timeline"},[r("EZoomBehavior",{attrs:{domain:e.domain,"focused-domain":e.focusedDomain,"translation-duration":e.transitionDuration,"focused-timestamp":e.focusedTimestamp,timezone:e.timezone,width:e.width},on:{"visible-interval-change":e.handleVisibleIntervalChange,"time-scale-change":e.handleTimeScaleChange,"animation-start":e.onAnimationStart,"animation-end":e.onAnimationEnd},scopedSlots:e._u([{key:"default",fn:function({timeScale:n}){return[n?r("div",{staticClass:"e-relative e-timeline e-border e-rounded",class:e.computedClasses.wrapper},[r("ECursorBehavior",{attrs:{"time-scale":n,timezone:e.timezone,"min-hover-zone":e.minHoverZone,"is-hovering-milestone":e.isHoveringMilestone},on:{"mouse-move":e.handleMouseMove,"mouse-leave":e.handleMouseLeave,"timestamp-clicked":e.handleClick},scopedSlots:e._u([{key:"default",fn:function({hoveredTimestamp:i,isHoveringTimeline:o}){var a;return[r("ETimelineMarkers",{attrs:{markers:e.sortedMarkers,"sticky-markers":e.stickyMarkers,"time-scale":n,"time-zone":e.timezone,height:e.timelineHeight,"svg-left":e.svgLeft},on:{"marker-clicked":e.handleMarkerClick,"marker-drag-end":function(u){return e.$emit("marker-drag-end",u)},"marker-drag-start":function(u){return e.$emit("marker-drag-start",u)},"marker-drag-drag":function(u){return e.$emit("marker-drag-drag",u)}},scopedSlots:e._u([e._l(e.markersScopedSlots,function(u,s){return{key:s,fn:function(l){return[e._t(s,null,null,l)]}}})],null,!0)}),r("div",{ref:"timelineContainer",staticClass:"e-timeline__svg-container e-relative e-h-13 e-rounded e-select-none e-overflow-x-hidden"},[r("svg",{ref:"timelineSvg",class:e.computedClasses.background,attrs:{width:e.width,height:e.timelineHeight}},[r("ETimelineSVGDefs",{attrs:{"events-groups":e.eventsGroups,width:e.width,height:e.chartHeight,"forbidden-interval-color":e.forbiddenIntervalColor}}),r("g",{staticClass:"e-timeline-axes"},[n?r("EXAxisOverview",{attrs:{"time-scale":n,height:e.timelineHeight,dark:e.dark}}):e._e(),n?r("EXAxisDetailed",{attrs:{"time-scale":n,height:e.timelineHeight-e.axisHeight,y:e.axisHeight,dark:e.dark}}):e._e(),n?r("EXAxisBackground",{attrs:{"time-scale":n,height:e.timelineHeight-e.combinedXAxesHeight,y:e.combinedXAxesHeight,dark:e.dark}}):e._e()],1),e.selectedTimestamp?r("ETimelineSelectedTimestampCursor",{attrs:{"time-scale":n,"selected-timestamp":e.selectedTimestamp,timezone:e.timezone,height:e.timelineHeight}}):e._e(),i&&o&&!e.isHoveringMilestone&&e.showCursor?r("ETimelineCursor",{attrs:{"time-scale":n,"selected-timestamp":i,timezone:e.timezone,height:e.timelineHeight}}):e._e(),e._l(e.forbiddenIntervals,function(u,s){return r("ETimelineForbiddenInterval",{key:s,attrs:{"time-scale":n,interval:u,index:s,height:e.timelineHeight,timezone:e.timezone}})}),e._l(e.barGroups,function(u,s){return r("ETimelineRectsChart",{key:s,attrs:{"time-scale":n,"events-group":u,"group-id":s,y:e.getBarGroupYPosition(s,u.bottom),height:e.barHeight,width:e.width,"rect-y-padding":e.barYPadding,dark:e.dark,"show-label":e.showLabels,timezone:e.timezone,dots:u.chartType===e.TimelineChartType.Dots,"dots-size":u.dotsSize,"bar-border-radius":u.barBorderRadius,"group-overlapping-dots":u.groupOverlappingDots},on:{"event-mouseover":e.handleBarMouseOver,"grouped-events-mouseover":e.handleBarGroupedEventsMouseOver,"event-mouseout":e.handleBarMouseOut,"group-label-clicked":e.toggleGroupVisibility}})}),e._l(e.milestonesGroupsPlaceholder,function(u,s){return r("ETimelineRectsChart",{key:s,attrs:{width:e.width,y:e.getMilestoneGroupYPosition(s),height:u.height,"group-id":s,"events-group":u,"time-scale":n,dark:e.dark,dots:!0,"show-label":!1}})}),e._l(e.insertZerosAtInterval?e.filledGapsLineGraphGroups:e.lineGraphGroups,function(u,s){return r("ETimelineLinesChart",{key:s,attrs:{"group-id":s,"time-scale":n,"events-group":u,y:e.getChartsYPosition(s),height:e.chartHeight,width:e.width,dark:e.dark,timezone:e.timezone,"show-label":e.showLabels,"label-height":e.chartLabelHeight,"max-visible-count":e.maxVisibleCount,"y-offset":e.chartsYOffset,"hovered-timestamp":i},on:{"event-mouseover":e.handleChartMouseOver,"event-mouseout":e.handleChartMouseOut,"group-label-clicked":e.toggleGroupVisibility}})}),e._l(e.barChartGroups,function(u,s,l){return r("ETimelineBarsChart",{key:s,attrs:{"group-id":s,width:e.width,y:e.getChartsYPosition(s),height:e.chartHeight,"events-group":u,"time-scale":n,dark:e.dark,"y-offset":e.chartsYOffset,"label-height":e.chartLabelHeight,"max-visible-count":e.maxVisibleCount,"show-label":e.showLabels,"hovered-timestamp":i,"previous-counts-by-timestamp":e.getPreviousCountsByTimestamp(l)},on:{"event-mouseover":e.handleChartMouseOver,"event-mouseout":e.handleChartMouseOut,"group-label-clicked":e.toggleGroupVisibility}})})],2)]),e._l(e.milestonesGroups,function(u,s){return r("div",{key:`${s}`,staticClass:"e-timeline-milestones",attrs:{"data-test-id":"timeline-milestones"}},[r("div",{class:`e-tl-milestones e-tl-milestones-${s}`},e._l(e.getSortedEvents(u.events),function(l,d){return r("ETimelineMilestone",{key:`${l.milestoneType}-${d}`,class:e.getMilestoneClass(l),attrs:{"time-scale":n,y:e.getMilestoneGroupYPosition(s),height:u.height||e.barHeight,"data-timestamp":l.timestamp,milestone:l,dot:u.dots,size:l.size||e.milestoneBulletSize,"transition-duration":u.milestonesTransitionDuration,"line-height":u.milestonesLineHeight,"dot-size":u.milestonesDotSize,"data-test-id":`milestone-${l.milestoneType}-${d}`,"background-color":e.getMilestoneColors(l.color,u.color).background,"border-color":e.getMilestoneColors(l.color,u.color).border,timezone:e.timezone},on:{"hovered-milestone":e.onHoverMilestone,"milestone-click":function(p){return e.onMilestoneClick(l,s)}},scopedSlots:e._u([{key:"content",fn:function(){return[e._t(`milestoneContent.${l.milestoneType}`,function(){return[r("span",{staticClass:"e-px-2"},[e._v(" "+e._s(l.text)+" ")])]},{milestone:l,index:d,hover:l===e.hoveredMilestone})]},proxy:!0},{key:"label",fn:function(){return[e._t(`milestoneLabel.${l.milestoneType}`,null,{milestone:l})]},proxy:!0}],null,!0)})}),1)])}),r("div",{staticClass:"external-labels-container e-flex"},e._l(e.hiddenGroupsLabels,function(u){return r("div",{key:u,staticClass:"external-label",class:e.computedClasses.background,style:e.getExternalLabelWrapperStyles(u),on:{click:function(s){return s.stopPropagation(),e.toggleGroupVisibility(u)}}},[r("div",{staticClass:"external-label__content",style:e.getExternalLabelStyles(u)},[e._v(" "+e._s(e.getExternalLabelText(u))+" ")])])}),0),r("div",{key:"tooltip",ref:"tooltip",staticClass:"e-absolute",style:e.eventTooltipStyle},[e._t("tooltip",function(){return[r("div",{directives:[{name:"show",rawName:"v-show",value:o&&!e.isHoveringEvent&&!e.isHoveringMilestone,expression:`
4
4
  isHoveringTimeline &&
5
5
  !isHoveringEvent &&
6
6
  !isHoveringMilestone
@@ -233,12 +233,12 @@ m367 -176 c192 -56 348 -207 420 -405 34 -93 34 -285 0 -378 -72 -198 -228
233
233
  510 154 506 4 -4 72 -236 152 -517z m361 -1029 c13 -13 27 -35 30 -48 27 -116
234
234
  285 -1327 285 -1339 0 -25 -152 -89 -316 -134 -139 -38 -243 -55 -414 -65
235
235
  -174 -10 -311 -1 -476 31 -186 35 -454 134 -454 167 0 26 280 1325 292 1355
236
- 23 59 9 57 541 57 l488 0 24 -24z`}})])])},J6=[],e4=H(Q6,K6,J6,!1,null,null,null,null);const t4=e4.exports,r4=A.extend({name:"ZohoCrm",components:{BaseIcon:de},props:{color:{type:String,default:"grey"}}});var n4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{height:"20",width:"20",viewBox:"16 -9 5 40",small:!0,color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{stroke:e.color,"stroke-width":"1",d:"M26.2 24c-3.2 0-6.2-1.2-8.4-3.5l-6.6-6.6c-.8-.8-1.2-1.8-1.2-2.9s.4-2.1 1.2-2.9C11.9 7.4 12.9 7 14 7c1.1 0 2.1.4 2.9 1.2l6.1 6.1c.7.7 1.9.7 2.6 0 .3-.3.5-.8.5-1.3s-.2-1-.5-1.3L19 5.1c-2-1.9-4.4-2.9-7-2.9-2.7 0-5.1 1-7 2.9-1.8 1.9-2.8 4.4-2.8 7 .1 2.6 1.1 5 2.9 6.8 1.8 1.8 4.3 2.8 6.8 2.8.9 0 1.9-.1 2.8-.4.6-.2 1.2.2 1.4.8.2.6-.2 1.2-.8 1.4-1 .4-2.1.5-3.3.5-3.2 0-6.2-1.2-8.4-3.4C1.3 18.4.1 15.4 0 12.3c0-1.7.3-3.3.9-4.8s1.4-2.8 2.5-3.9 2.4-2 3.8-2.6c1.5-.6 3.1-1 4.7-1 3.2 0 6.2 1.2 8.4 3.5l6.6 6.6c.8.8 1.2 1.8 1.2 2.9s-.4 2.1-1.2 2.9c-1.6 1.6-4.2 1.6-5.7 0l-6.1-6.1c-.7-.7-1.9-.7-2.6 0-.3.3-.5.8-.5 1.3s.2 1 .5 1.3l6.6 6.6c1.8 1.8 4.3 2.8 6.9 2.8s5.1-1 6.9-2.9c1.8-1.8 2.9-4.3 2.9-6.9s-1-5.1-2.9-6.9c-1.8-1.8-4.3-2.9-6.9-2.9-.8 0-1.7.1-2.5.3-.1 0-.2.1-.3.1-.6.2-1.2-.2-1.4-.8-.2-.6.2-1.2.8-1.4.1 0 .3-.1.4-.1 1-.3 2-.4 3-.4 1.6 0 3.2.3 4.7.9 1.4.6 2.7 1.5 3.8 2.6s2 2.4 2.6 3.8c.6 1.5.9 3.1.9 4.7 0 3.2-1.3 6.2-3.5 8.5-2.1 2.4-5.1 3.6-8.3 3.6z"}})])},i4=[],s4=H(r4,n4,i4,!1,null,null,null,null);const a4=s4.exports,o4=A.extend({name:"Tag",components:{BaseIcon:de},props:{color:{type:String,default:"#000"},backgroundColor:{type:String,default:"white"}}});var l4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{small:!0,width:"24",height:"24",viewBox:"0 0 24 24"}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{fill:e.color,d:"M22,4C22,2.89 21.1,2 20,2H4A2,2 0 0,0 2,4V16A2,2 0 0,0 4,18H18L22,22V4Z"}}),r("line",{attrs:{x1:"6",y1:"7",x2:"18",y2:"7",stroke:e.backgroundColor,"stroke-width":"2"}}),r("line",{attrs:{x1:"6",y1:"10",x2:"18",y2:"10",stroke:e.backgroundColor,"stroke-width":"2"}}),r("line",{attrs:{x1:"6",y1:"13",x2:"18",y2:"13",stroke:e.backgroundColor,"stroke-width":"2"}})])},c4=[],u4=H(o4,l4,c4,!1,null,null,null,null);const d4=u4.exports,h4=A.extend({name:"Tag",components:{BaseIcon:de},props:{color:{type:String,default:"#000"},backgroundColor:{type:String,default:"white"}}});var f4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{small:!0,width:"24",height:"24",viewBox:"0 0 24 24"}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{fill:e.color,d:"M22,4C22,2.89 21.1,2 20,2H4A2,2 0 0,0 2,4V16A2,2 0 0,0 4,18H18L22,22V4Z"}}),r("line",{attrs:{x1:"12",y1:"6",x2:"12",y2:"14",stroke:e.backgroundColor,"stroke-width":"2"}}),r("line",{attrs:{x1:"8",y1:"10",x2:"16",y2:"10",stroke:e.backgroundColor,"stroke-width":"2"}})])},p4=[],m4=H(h4,f4,p4,!1,null,null,null,null);const g4=m4.exports,v4=A.extend({name:"Nerves",components:{BaseIcon:de},props:{color:{type:String,default:"white"}}});var _4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._g(e._b({attrs:{small:!0,width:"39px",height:"32px",viewBox:"0 0 39 32"}},"BaseIcon",e.$attrs,!1),e.$listeners),[r("g",{attrs:{transform:"translate(-150.000000, -24.000000)",fill:"#FFFFFF","fill-rule":"nonzero"}},[r("g",{attrs:{transform:"translate(150.000000, 24.000000)"}},[r("path",{style:`fill: ${e.color}`,attrs:{d:"M36.8961538,0.0347826087 C37.9157565,0.0347826087 38.7423077,0.875708644 38.7423077,1.91304348 L38.7423077,1.91304348 L38.7423077,30.0947826 C38.7423077,31.1321174 37.9157565,31.9730435 36.8961538,31.9730435 L36.8961538,31.9730435 L29.4846154,31.9730435 L29.4884615,31.9886957 C29.0885173,31.9836286 28.7010575,31.8462773 28.3846154,31.5973913 L28.3846154,31.5973913 L10.4,17.9565217 C9.92639703,17.5948183 9.6506735,17.0250601 9.65756147,16.4226087 L9.65756147,16.4226087 L9.65756147,15.64 C9.65686375,14.933417 10.0458734,14.2861439 10.6644383,13.9648756 C11.2830032,13.6436073 12.0264516,13.7027078 12.5884615,14.1178261 L12.5884615,14.1178261 L29.7038462,26.7373913 C30.0199016,26.968534 30.3992227,27.0930678 30.7884615,27.0934783 L30.7884615,27.0934783 L32.0923077,27.0934783 C32.5822513,27.09452 33.0524229,26.8969669 33.3988661,26.5444986 C33.7453093,26.1920303 33.9394855,25.7136818 33.9384615,25.2152174 L33.9384615,25.2152174 L33.9384615,6.79652174 C33.9394855,6.29805736 33.7453093,5.81970886 33.3988661,5.46724054 C33.0524229,5.11477223 32.5822513,4.91721914 32.0923077,4.91826087 L32.0923077,4.91826087 L30.7153846,4.91826087 C30.225441,4.9193026 29.7552694,4.72174951 29.4088262,4.36928119 C29.062383,4.01681288 28.8682069,3.53846438 28.8692308,3.04 L28.8692308,3.04 L28.8692308,1.91304348 C28.8692308,0.875708644 29.695782,0.0347826087 30.7153846,0.0347826087 L30.7153846,0.0347826087 Z M9.29615385,0.00739130435 C9.69614711,0.0121740752 10.0836931,0.149555936 10.4,0.398695652 L10.4,0.398695652 L28.3846154,14.0434783 C28.8571972,14.4035114 29.1305978,14.972929 29.1192308,15.5734783 L29.1192308,15.5734783 L29.1192308,16.356087 C29.1190118,17.0612911 28.7305478,17.7069474 28.1133582,18.0279227 C27.4961685,18.348898 26.7542665,18.2910992 26.1923077,17.8782609 L26.1923077,17.8782609 L9.08461538,5.27043478 C8.76974759,5.03645424 8.389914,4.91038181 8,4.91043478 L8,4.91043478 L6.68461538,4.91043478 C6.19431782,4.9104337 5.72415756,5.10885839 5.37782578,5.4619474 C5.031494,5.81503642 4.83744009,6.2937853 4.83846154,6.7926087 L4.83846154,6.7926087 L4.83846154,25.1995652 C4.83846154,26.2369001 5.66501277,27.0778261 6.68461538,27.0778261 L6.68461538,27.0778261 L8.07692308,27.0778261 C8.5668667,27.0767844 9.0370383,27.2743374 9.38348152,27.6268058 C9.72992473,27.9792741 9.92410084,28.4576226 9.92307692,28.956087 L9.92307692,28.956087 L9.92307692,30.0869565 C9.92413223,30.588151 9.72784822,31.0688985 9.37806512,31.4218238 C9.02828202,31.774749 8.55413977,31.9704502 8.06153846,31.9653197 L8.06153846,31.9653197 L1.88461538,31.9653197 C0.86501277,31.9653197 0.03844549,31.1242914 0.03844549,30.0869565 L0.03844549,30.0869565 L0.03844549,1.91304348 C0.0364158462,1.41354313 0.230017315,0.933787137 0.576460295,0.579850445 C0.922903275,0.225913753 1.39364925,0.0269521857 1.88461538,0.0269565217 L1.88461538,0.0269565217 L9.29615385,0.0269565217 Z"}})])])])},y4=[],C4=H(v4,_4,y4,!1,null,null,null,null);const b4=C4.exports,x4={Back10:C2,Forward10:m2,Bim:u2,Brightness:T2,Blur:L2,Compare:B2,ConcretePump:H2,CompactExcavator:rs,DroneView:q2,Dumper:V2,Evercam:t3,EvercamLogo:a3,Excavator:rs,FlatbedSemiTrailer:m3,FreeDrawing:C3,IModel:T3,Inspection:L3,Loader:B3,MiniModel:H3,MarkUp:t4,Nerves:b4,OtherTruck:ns,RoadVehicle:X3,Roller:e6,Robot:s6,SemiTrailer:u6,SkidSteerLoader:m6,SmallTruck:C6,TankTruck:T6,The360:L6,TippingTruck:B6,TruckHead:H6,TruckMixer:q6,Unknown:ns,Worker:V6,ZohoCrm:a4,Tag:d4,TagPlus:g4},w4=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),is=Object.fromEntries(Object.entries(x4).map(([t,e])=>[w4(t),e])),S4=A.extend({name:"ESvgIcon",components:{...is},props:{icon:{type:String,default:""}},computed:{svgIconComponent(){return is[this.icon]}}});var T4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r(e.svgIconComponent,e._g(e._b({tag:"component",staticClass:"e-svg-icon"},"component",e.$attrs,!1),e.$listeners))},k4=[],$4=H(S4,T4,k4,!1,null,null,null,null);const ss=$4.exports,hd="",E4={name:"ECalendarHeatmap",components:{EIcon:qe},mixins:[Ue],props:{items:{type:Array,default:()=>[]},startDate:{type:String,default:""},endDate:{type:String,default:""},dayRectSize:{type:Number,default:11},dayGutterSize:{type:Number,default:2},monthGutterSize:{type:Number,default:12},textSize:{type:Number,default:11},borderRadius:{type:Number,default:1},disableMissing:{type:Boolean,default:!1},selectedDate:{type:[String],default:""},labelFn:{type:Function,default:({date:t,count:e})=>`${t}, ${e}`},isDisabledFn:{type:Function,default:()=>!1},highlightColorFn:{type:[Function,null],default:null},colors:{type:Array,default:()=>["#ebedf0","#c0ddf9","#73b3f3","#3886e1","#17459e"]},visibleWeekDays:{type:Array,default:()=>[1,3,5]},controls:{type:Boolean,default:!0},legend:{type:Boolean,default:!0},fullWidth:{type:Boolean,default:!1},isDark:{type:Boolean,default:!1},disabledColor:{type:String,default:"#bababa"}},data(){return{tooltipVisibility:!1,tooltipPositionX:0,tooltipPositionY:0,tooltipContent:"",tooltipItem:"",hoveredDayDate:"",smallTextRatio:.9,daysOffset:0}},computed:{_startDate(){return this._moment(this.startDate).add({days:this.daysOffset}).format("YYYY-MM-DD")},_endDate(){return this._moment(this.endDate).add({days:this.daysOffset}).format("YYYY-MM-DD")},svgWidth(){const t=this._moment(this._endDate).format("YYYY-MM");return this.fullWidth?"calc(100% - 30px)":this.monthsHorizontalTranslations[t]+this.getMonthWidth(this._endDate)},svgHeight(){return this.monthOffsetTop+this.monthHeight+(this.legend?2*this.dayRectSize:0)},maxCount(){return this.items.reduce((t,e)=>Math.max(e.count,t),0)},itemsMap(){return this.items.reduce((t,e)=>({...t,[e.day]:{...e,count:e.count,label:this.labelFn(e),disabled:e.disabled}}),{})},datesTree(){let t={},e=this._moment(this._startDate);const r=new Date(this._endDate).getTime();for(;e<=r;){const n=e.format("YYYY"),i=e.format("MM"),o=e.format("YYYY-MM-DD");let a={...this.itemsMap[o],date:o,selected:o===this.selectedDate};this.itemsMap[o]||(a={...a,count:0,date:o,disabled:this.isDisabledFn(o)},a={...a,label:this.labelFn(a)}),t={...t,[`${n}-${i}`]:{...t[`${n}-${i}`],[o]:{...a,weekDay:e.day(),weekNumber:this.getWeekOfMonth(e)}}},e.add({days:1})}return t},monthsHorizontalTranslations(){const t=this._moment(this._startDate),e=this._moment(this._startDate).startOf("month"),r=this.dayFullSize*(this.getWeekOfMonth(t)-this.getWeekOfMonth(e)),n=this._moment(this._startDate).startOf("month"),i=this._moment(this._endDate).startOf("month"),o=this._moment(n);let a={},u=-r,s;for(;o<=i;){let l=s?this.getMonthWidth(s):0;const d=o.startOf("month").day()===0;let p=0;d&&o>n&&(p=this.monthGutterSize);let m=this.dayFullSize;u+=l+this.monthGutterSize-m+p,a[o.format("YYYY-MM")]=u,s=o.clone(),o.add({months:1})}return a},dayFullSize(){return this.dayRectSize+this.dayGutterSize},monthOffsetTop(){return this.textSize*2},monthOffsetLeft(){return 2.5*this.textSize},monthHeight(){return this.dayFullSize*7},textStyle(){return{fontSize:`${this.textSize}px`}},legendStyle(){const t=this.dayRectSize/2;return{transform:`translate(${t+this.monthOffsetLeft}px, ${this.monthHeight+this.monthOffsetTop+t}px)`}},legendPrefixTextStyle(){return{fontSize:this.textSize*this.smallTextRatio,transform:`translate(${this.dayGutterSize*2}px, ${this.dayRectSize*this.smallTextRatio}px)`,fill:this.fillTextColor}},legendPrefixTextWidth(){return 4*this.textSize*this.smallTextRatio-2*this.dayGutterSize},legendSuffixTextStyle(){const t=(this.dayRectSize+this.dayGutterSize*2)*this.colors.length+this.legendPrefixTextWidth,e=this.dayGutterSize;return{fontSize:this.textSize*this.smallTextRatio,transform:`translate(${e+t}px, ${this.dayRectSize*this.smallTextRatio}px)`,fill:this.fillTextColor}},fillTextColor(){return this.isDark?"white":"black"}},methods:{_moment(...t){return ke(...t).locale("en")},getWeekOfMonth(t){let e=t.week();return t.year()!==t.weekYear()&&(e=t.clone().subtract(1,"week").week()+1),e-this._moment(t).startOf("month").week()+1},getWeekDayTextStyle(t){return this.visibleWeekDays.includes(t)?{...this.textStyle,transform:`translate(${this.dayRectSize}px, ${t*this.dayFullSize+3*this.textSize/4+this.monthOffsetTop}px)`,fill:this.fillTextColor}:{display:"none"}},getMonthTextStyle(t,e){const r=ke.duration(this._moment(this._endDate).diff(this._moment(e))).asDays(),n=ke.duration(this._moment(e).endOf("month").diff(this._moment(this._startDate))).asDays();if(r<15||n<15)return{display:"none"};const i=this.isStartOfYear(e)?this.textSize:0;return{...this.textStyle,transform:`translate(${this.getMonthWidth(e)/2+this.textSize/3-i}px, -${this.textSize*2/3}px)`,fill:this.fillTextColor}},getMonthStyle(t,e){return{transform:`translate(${this.monthsHorizontalTranslations[e]+this.monthOffsetLeft}px, ${this.monthOffsetTop}px)`}},getMonthWidth(t){const e=this._moment(t).endOf("month");return this.dayFullSize*this.getWeekOfMonth(e)},getHighlightStyle(t,e){if(!this.highlightColorFn||typeof this.highlightColorFn!="function")return{};const r=this.highlightColorFn(e);return r?{strokeWidth:t.selected?2:1,stroke:r}:{}},getDayStyle(t,e){let r={};return t.selected&&(r={stroke:this.fillTextColor}),{transform:`translate(${t.weekNumber*this.dayFullSize}px, ${t.weekDay*this.dayFullSize}px)`,fill:`${this.getDayColor(t.count)}`,...this.getHighlightStyle(t,e),...r}},getDisabledDayPath(t){const e=t.weekNumber*this.dayFullSize,r=t.weekDay*this.dayFullSize,n=e+this.dayRectSize,i=r+this.dayRectSize,o=e+this.dayRectSize/2,a=r+this.dayRectSize/2;return[`M ${e} ${r}`,`L ${o} ${a}`,`L ${e} ${i}`,`M ${n} ${r}`,`L ${o} ${a}`,`L ${n} ${i}`].join(" ")},getDayColor(t){const e=Math.ceil(t/this.maxCount*(this.colors.length-1));return this.colors[e]},getLegendRectStyle(t){return{transform:`translateX(${(this.dayRectSize+this.dayGutterSize*2)*t+this.legendPrefixTextWidth}px)`}},isStartOfYear(t){return ke(t).get("month")===0},getMonthText(t){return this._moment(t).format(this.isStartOfYear(t)?"MMM YYYY":"MMM")},onDayRectMouseEnter(t,e){this.tooltipItem=e,this.tooltipContent=e.label,this.tooltipVisibility=!0,this.hoveredDayDate=e.date,this.$nextTick(()=>{this.calculateTooltipPosition(t)})},calculateTooltipPosition(t){var d;const e=this.$el.getBoundingClientRect(),r=((d=t.target)==null?void 0:d.getBoundingClientRect())||{x:0,y:0},n=r.left-e.left,i=r.top-e.top,o=r.bottom-e.top,a=this.$refs.tooltip.clientWidth,u=this.$refs.tooltip.clientHeight;let s=n+r.width/2-a/2;s+e.left<e.left?s=0:s+e.left+a>=e.right&&(s=e.width-a);let l=i-u-this.dayFullSize/2;l+e.top<=e.top&&(l=o+this.dayFullSize/2),this.tooltipPositionX=s,this.tooltipPositionY=l},onDayRectMouseLeave(){this.tooltipVisibility=!1,this.hoveredDayDate=""}}};var M4=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-heatmap-calendar-wrapper"},[r("div",{staticClass:"e-heatmap-calendar overflow-x-hidden",class:{"e-text-white":e.isDark}},[e.controls?r("div",{staticClass:"e-heatmap-calendar__control-left",on:{click:function(n){e.daysOffset-=30}}},[r("EIcon",{attrs:{icon:"angle-left",size:"Xs"}})],1):e._e(),r("svg",{attrs:{width:e.svgWidth,height:e.svgHeight}},[r("g",[r("g",e._l(Array(7),function(n,i){return r("text",{key:i,style:e.getWeekDayTextStyle(i)},[e._v(" "+e._s(e._moment().day(i).format("ddd"))+" ")])}),0),e._l(e.datesTree,function(n,i,o){return r("g",{key:i,staticClass:"e-heatmap-calendar__month",style:e.getMonthStyle(o,i)},[r("text",{style:e.getMonthTextStyle(o,i)},[e._v(" "+e._s(e.getMonthText(i))+" ")]),e._l(n,function(a,u){return r("g",{key:`${u}`,staticClass:"e-heatmap-calendar__day",class:{"e-heatmap-calendar__day--hovered":e.hoveredDayDate===u,"e-heatmap-calendar__day--disabled":a.disabled,"e-heatmap-calendar__day--selected":a.selected}},[r("rect",{style:e.getDayStyle(a,u),attrs:{rx:e.borderRadius,height:e.dayRectSize,width:e.dayRectSize},on:{mouseenter:s=>e.onDayRectMouseEnter(s,a),mouseleave:e.onDayRectMouseLeave,mouseup:function(s){return e.$emit("item-selected",a)}}}),a.disabled?r("path",{style:`stroke: ${e.disabledColor};`,attrs:{d:e.getDisabledDayPath(a)}}):e._e()])})],2)}),e.legend&&!e.$slots.customLegend?r("g",{style:e.legendStyle},[r("text",{style:e.legendPrefixTextStyle},[e._v("less")]),e._l(e.colors,function(n,i){return r("rect",{key:i,style:e.getLegendRectStyle(i),attrs:{height:e.dayRectSize,width:e.dayRectSize,fill:n,rx:e.borderRadius}})}),r("text",{style:e.legendSuffixTextStyle},[e._v("more")])],2):e._e(),r("foreignObject",{attrs:{height:e.svgHeight,width:e.svgWidth,"pointer-events":"none"}},[r("div",{staticClass:"e-heatmap-calendar__custom-legend"},[e._t("customLegend")],2)])],2)])]),r("div",{ref:"tooltip",staticClass:"e-heatmap-calendar__tooltip",class:{"e-heatmap-calendar__tooltip--visible":e.tooltipVisibility},style:{top:e.tooltipPositionY+"px",left:e.tooltipPositionX+"px"}},[e._t("tooltip",function(){return[e._v(" "+e._s(e.tooltipContent)+" ")]},{item:e.tooltipItem})],2),e.controls?r("div",{staticClass:"e-heatmap-calendar__control-right",on:{click:function(n){e.daysOffset+=30}}},[r("EIcon",{attrs:{icon:"angle-right",size:"Sm"}})],1):e._e()])},L4=[],D4=H(E4,M4,L4,!1,null,"c1e4cb0a",null,null);const as=D4.exports,Rt=A.extend({name:"FormField",props:{value:{type:[String,Number,Boolean,Object,Array],default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},type:{type:String,default:"text"},required:{type:Boolean,default:!1},errors:{type:Array,default:()=>[]}},data(){return{currentValue:this.value}},watch:{value(t){this.currentValue=t},currentValue:{immediate:!0,deep:!0,handler(t){this.$emit("input",t)}}}}),Ht=A.extend({name:"ToggleOpen",data(){return{isOpen:!1,selectId:`select-${Date.now()}${Math.random().toString(36).substr(2,9)}`}},created(){this.$root.$on("select-opened",t=>{t!==this.selectId&&this.isOpen&&(this.isOpen=!1)})},beforeDestroy(){this.$root.$off("select-opened")},methods:{toggleOpen(t){t==null||t.stopPropagation(),this.isOpen||this.$root.$emit("select-opened",this.selectId),this.isOpen=!this.isOpen}}}),wt=A.extend({name:"SelectFormField",mixins:[Rt,Ht],props:{options:{type:Array,required:!0},setInitialValue:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1}},computed:{selectedOption(){return this.multiple?this.options.filter(t=>{var e;if(Array.isArray(this.currentValue)&&((e=this.currentValue)!=null&&e.includes(t.value)))return t}):this.getOptionByValue(this.currentValue)},localLabel(){return this.multiple&&Array.isArray(this.selectedOption)&&this.selectedOption.length>1?this.selectedOption.map(t=>t.label).join(", "):!this.multiple&&this.selectedOption?this.selectedOption.label:null},isAllSelected(){return this.multiple?Array.isArray(this.currentValue)&&this.currentValue.length===this.options.filter(t=>!t.disabled).length&&this.multiple:!1},isAtLeastOneSelected(){return this.multiple?Array.isArray(this.currentValue)&&this.currentValue.length>0:!!this.currentValue},radioItemClasses(){return{"e-opacity-50 e-cursor-not-allowed ":this.disabled,"e-bg-gray-800 e-text-gray-200 e-border-gray-500 ":this.dark,"e-text-gray-700 e-bg-white e-border-gray-300 ":!this.dark,"hover:e-border-gray-300":!this.disabled&&this.dark,"hover:e-border-gray-500":!this.disabled&&!this.dark}},selectedItemClasses(){return["e-bg-[#1976d2]/10",{"e-text-[#61b0ff]":this.dark,"e-text-[#1976d2]":!this.dark}]},isValueProvided(){return this.currentValue!==null&&this.currentValue!==void 0}},watch:{setInitialValue:{immediate:!0,handler(t){!t||this.isValueProvided||(this.currentValue=this.multiple?[this.options[0].value]:this.options[0].value,this.$emit("input",this.currentValue),this.$emit("on-select-option",this.selectedOption))}},multiple(t){t?this.currentValue=[this.options[0].value]:this.currentValue=this.options[0].value,this.$emit("input",this.currentValue),this.$emit("on-select-option",this.selectedOption)}},methods:{isSelected(t){var e;return this.multiple?Array.isArray(this.currentValue)&&this.currentValue.includes(t):this.currentValue===null&&this.setInitialValue?t===((e=this.options[0])==null?void 0:e.value):this.currentValue===t},onItemClick(t){const e=this.getOptionByValue(t);if(!(e!=null&&e.disabled||this.disabled)){if(this.multiple){const r=this.currentValue.indexOf(t);r===-1?this.currentValue.push(t):this.currentValue.splice(r,1),this.$emit("input",this.currentValue),this.$emit("on-select-option",this.selectedOption);return}this.$emit("input",t),this.$emit("on-select-option",e),this.toggleOpen()}},selectAll(){if(!this.multiple||this.disabled)return;const t=this.options.filter(e=>!e.disabled).map(e=>e.value);this.$emit("input",t),this.$emit("on-select-option",this.options.filter(e=>!e.disabled))},deselectAll(){!this.multiple||this.disabled||(this.$emit("input",[]),this.$emit("on-select-option",[]))},toggleSelectAll(){!this.multiple||this.disabled||(Array.isArray(this.currentValue)&&this.currentValue.length===this.options.length?this.deselectAll():this.selectAll())},getOptionByValue(t){var e;return(e=this.options.find(r=>r.value===t))!=null?e:null},containerClasses(t){return[this.isSelected(t.value)?this.selectedItemClasses:this.radioItemClasses,t.disabled||this.disabled?"e-opacity-50 e-cursor-not-allowed":"e-cursor-pointer e-select-none"]}}}),P4=A.extend({name:"EToggleSwitch",mixins:[wt],props:{color:{type:String,default:"brand"},size:{type:String,default:K.Sm},vertical:{type:Boolean,default:!1},dark:{type:Boolean,default:!0}},computed:{sizeClasses(){return{container:{"e-p-0.5":this.size===K.Xs,"e-p-1 e-leading-3":this.size===K.Sm,"e-py-1.5 e-px-1.5":this.size===K.Md,"e-p-2 e-p":this.size===K.Lg},button:{"e-px-1":this.size===K.Xs,"e-py-[.2rem] e-px-2 e-rounded-md":this.size===K.Sm,"e-p-1 e-px-2.5":this.size===K.Md,"e-p-1.5 e-px-3":this.size===K.Lg,"e-opacity-50 e-cursor-not-allowed":this.disabled},text:{"!e-text-[0.6rem]":this.size===K.Xs,"e-text-xs":this.size===K.Sm,"e-text-sm":this.size===K.Md,"e-text-base":this.size===K.Lg}}},wrapperClasses(){return{...this.sizeClasses.container,"e-flex e-items-center e-justify-center e-w-fit e-h-min e-rounded-md e-e-shadow-md e-transition-colors e-duration-200 e-ease-in-out":!0,"e-bg-gray-900":this.dark,"e-bg-gray-200":!this.dark,"e-flex-col":this.vertical,"e-opacity-50 e-cursor-not-allowed":this.disabled}},textClasses(){return{...this.sizeClasses.text,"e-font-medium":!0}}},methods:{getButtonClasses(t){const e={"e-toggle-switch e-border-none e-rounded-md e-transition e-duration-200 e-ease-in-out e-cursor-pointer":!0,"e-text-gray-200":this.dark,"e-bg-gray-900":this.dark&&!this.isSelected(t.value),"e-bg-gray-200":!this.dark&&!this.isSelected(t.value),"e-text-gray-900":!this.dark,"e-bg-brand-600":this.color==="brand"&&this.isSelected(t.value),"e-bg-gray-600":!["primary","brand"].includes(this.color)&&this.isSelected(t.value),"e-bg-[#629efc] e-text-gray-900 e-font-normal":this.color==="primary"&&this.isSelected(t.value),"e-opacity-50 e-cursor-not-allowed":t.disabled,"e-shadow ":this.isSelected(t.value)};return{...this.sizeClasses.button,...e}}}});var O4=function(){var e=this,r=e._self._c;return r("div",{class:e.wrapperClasses},e._l(e.options,function(n){return r("button",{key:n.value,class:e.getButtonClasses(n),on:{click:function(i){return e.onItemClick(n.value)}}},[r("span",{class:e.textClasses},[e._v(e._s(n.label))])])}),0)},z4=[],B4=H(P4,O4,z4,!1,null,null,null,null);const os=B4.exports,I4=A.extend({name:"ERangeSlider",props:{value:{type:Array,default:()=>[0,100]},min:{type:Number,default:0},max:{type:Number,default:100},disabled:{type:Boolean,default:!1},step:{type:Number,default:60},isTime:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!0},dark:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},data(){return{slider:null,sliderRect:{},selectedThumb:null}},computed:{range:{get(){return this.value},set(t){this.$emit("input",t)}},rangeDistance(){return this.max-this.min},showTooltip(){return this.tooltip&&!this.disabled}},mounted(){this.range=this.value},methods:{getLabel(t){return this.isTime?this.minutesToTime(t):t.toString()},getPosition(t){return(t-this.min)/this.rangeDistance*100},getEmptyRangeStyle(t=!1){let e,r;t?(e=this.range[1],r=this.max):(e=this.min,r=this.range[0]);const n=this.disabled?"#c6c6c6":"#8ac5ff",i=this.getPosition(e),o=this.getPosition(r)-i;return{left:`calc(${i}% + 0px)`,width:`calc(${o}% + 0px)`,background:`${n}`}},getRangeStyle(t){const e=this.disabled?"#c6c6c6":"#3b82f6",r=this.getPosition(t[0]),n=this.getPosition(t[1])-r;return{left:`calc(${r}% + 0px)`,width:`calc(${n}% + 0px)`,background:`${e}`}},onMouseMove(t){var e;if((e=this.selectedThumb)!=null&&e.hasPointerCapture(t.pointerId)){if(this.slider=this.$refs.slider,this.sliderRect=this.slider.getBoundingClientRect(),!this.sliderRect)return;const n=(t.clientX-this.sliderRect.left)/this.sliderRect.width,i=Math.round(n*this.rangeDistance+this.min),o=this.roundToStep(i);if(this.selectedThumb.id==="input-min-thumb"){if(o>this.range[1]){this.range=[this.range[1],this.range[1]];return}if(o<=this.min){this.range=[this.min,this.range[1]];return}this.range=[o,this.range[1]]}if(this.selectedThumb.id==="input-max-thumb"){if(o<this.range[0]){this.range=[this.range[0],this.range[0]];return}if(o>=this.max){this.range=[this.range[0],this.max];return}this.range=[this.range[0],o]}}},onMouseDown(t){var e,r;(e=t.target)!=null&&e.matches(".e-range-slider__thumb, .e-range-slider__tooltip")&&(this.selectedThumb=t.target.closest(".e-range-slider__thumb"),t instanceof PointerEvent&&((r=this.selectedThumb)==null||r.setPointerCapture(t.pointerId)))},onMouseUp(t){var e;this.selectedThumb&&(t instanceof PointerEvent&&((e=this.selectedThumb)==null||e.releasePointerCapture(t.pointerId)),this.selectedThumb=null)},roundToStep(t){let e=Math.round(t/this.step),r=this.step*e,n=t*this.step>0?this.step*(e+1):this.step*(e-1);return Math.abs(t-r)<Math.abs(t-n)?r:n},minutesToTime(t){const e=Math.floor(t/60).toString().padStart(2,"0"),r=(t%60).toString().padStart(2,"0");return`${e}:${r}`}}});var F4=function(){var e=this,r=e._self._c;return r("div",{ref:"slider",staticClass:"e-range-slider",on:{pointerdown:function(n){return n.preventDefault(),e.onMouseDown.apply(null,arguments)},pointerup:function(n){return n.preventDefault(),e.onMouseUp.apply(null,arguments)},pointermove:function(n){return n.preventDefault(),e.onMouseMove.apply(null,arguments)},touchstart:function(n){return n.preventDefault(),e.onMouseDown.apply(null,arguments)},touchend:function(n){return n.preventDefault(),e.onMouseUp.apply(null,arguments)}}},[r("div",{staticClass:"e-range-slider__wrapper"},[r("input",{staticClass:"e-range-slider__input",attrs:{id:"input-min",tabindex:"-1"},domProps:{value:e.range[0]}}),r("input",{staticClass:"e-range-slider__input",attrs:{id:"input-max",tabindex:"-1"},domProps:{value:e.range[1]}}),r("div",{staticClass:"e-range-slider__track"},[r("div",{staticClass:"e-range-slider__bg",style:e.getEmptyRangeStyle()}),r("div",{staticClass:"e-range-slider__bg",style:e.getRangeStyle(e.range)}),r("div",{staticClass:"e-range-slider__bg",style:e.getEmptyRangeStyle(!0)})]),r("div",{staticClass:"e-absolute e-top-1/2 e-range-slider__container",class:{"e-pointer-events-none":e.disabled||e.readonly,"e-cursor-grabbing":e.selectedThumb&&e.selectedThumb.id==="input-min-thumb","hover:e-cursor-grab":!e.disabled&&!e.readonly&&!e.selectedThumb},style:{left:`${e.getPosition(e.range[0])}%`}},[r("div",{staticClass:"e-range-slider__thumb",class:[e.disabled?"e-bg-[#c6c6c6] e-border-[#c6c6c6]":"e-bg-primary e-border-primary"],attrs:{id:"input-min-thumb"}},[e.showTooltip?r("div",{staticClass:"e-range-slider__tooltip",class:[e.dark?"e-text-gray-900":"e-text-white"]},[e._v(" "+e._s(e.getLabel(e.range[0]))+" ")]):e._e()])]),r("div",{staticClass:"e-absolute e-top-1/2",class:{"e-pointer-events-none":e.disabled||e.readonly,"e-cursor-grabbing":e.selectedThumb&&e.selectedThumb.id==="input-max-thumb","hover:e-cursor-grab":!e.disabled&&!e.readonly&&!e.selectedThumb},style:{left:`${e.getPosition(e.range[1])}%`}},[r("div",{staticClass:"e-range-slider__thumb",class:[e.disabled?"e-bg-[#c6c6c6] e-border-[#c6c6c6]":"e-bg-primary e-border-primary"],attrs:{id:"input-max-thumb"}},[e.showTooltip?r("div",{staticClass:"e-range-slider__tooltip",class:[e.dark?"e-text-gray-900":"e-text-white"]},[e._v(" "+e._s(e.getLabel(e.range[1]))+" ")]):e._e()])])])])},A4=[],R4=H(I4,F4,A4,!1,null,null,null,null);const H4=R4.exports,N4=A.extend({name:"EDivider",props:{dark:{type:Boolean,default:!1}}});var j4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("hr",{staticClass:"e-divider",class:[e.dark?"e-border-white/[.12]":"e-border-black/[.12]"]})},G4=[],W4=H(N4,j4,G4,!1,null,null,null,null);const q4=W4.exports,U4=A.extend({name:"ESchedulePicker",components:{ERow:Wr,ECol:qr,ERangeSlider:H4,EDivider:q4},props:{scheduleType:{type:String,default:"continuous",required:!0},preloadSchedule:{type:[Object,String],default:()=>({}),required:!1},editMode:{type:Boolean,default:!0},dark:{type:Boolean,default:!1},step:{type:Number,default:15}},data(){return{min:0,max:1439,enabledDays:{monday:!0,tuesday:!0,wednesday:!0,thursday:!0,friday:!0,saturday:!0,sunday:!0},schedule:null,hours:[0,1439]}},computed:{isDisabled(){return!this.editMode&&[vt.Continuous,vt.WorkingHours].includes(this.scheduleType)}},watch:{scheduleType:{immediate:!0,handler(){this.schedule=Qr(Ii[this.scheduleType]),this.initEnabledDays(),this.hours=Object.values(this.schedule)[1]}},schedule:{deep:!0,handler(){this.changeSchedule()}}},mounted(){if(Object.keys(this.preloadSchedule).length){let t=typeof this.preloadSchedule=="string"?JSON.parse(this.preloadSchedule):this.preloadSchedule;Object.keys(this.enabledDays).forEach(e=>{var r;this.enabledDays[e]=((r=t[e])==null?void 0:r.length)>0}),this.schedule=Qr(t),this.hours=Object.values(this.schedule)[1]}},methods:{initEnabledDays(){Object.keys(this.enabledDays).forEach(t=>{this.enabledDays[t]=this.scheduleType===vt.WorkingHours?!["saturday","sunday"].includes(t):!0})},toTextSchedule(){return Object.fromEntries(Object.entries(this.schedule).map(([t,e])=>{if(!(e!=null&&e.length)||!this.enabledDays[t])return[t,[]];{const r=Vr(e[0]),n=Vr(e[1]);return[t,[`${r}-${n}`]]}}))},changeSchedule(){this.$emit("input",this.toTextSchedule())},onHoursChange(t){this.schedule=Object.entries(this.schedule).reduce((e,[r])=>({...e,[r]:t}),{})}}});var Z4=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-m-2 e-w-full"},[r("ERow",{staticClass:"e-w-full"},[r("ECol",{staticClass:"e-caption",class:[e.dark?"e-text-white":"e-text-gray-900"],attrs:{cols:"2"}},[e._v(" Hours ")]),r("ECol",[r("ERangeSlider",{attrs:{max:e.max,min:e.min,readonly:e.isDisabled,step:e.step,dark:e.dark,"is-time":""},on:{input:e.onHoursChange},model:{value:e.hours,callback:function(n){e.hours=n},expression:"hours"}})],1)],1),r("EDivider",{attrs:{dark:e.dark}}),r("ERow",{staticClass:"e-m-0 e-w-full"},[r("ECol",{staticClass:"e-caption",class:[e.dark?"e-text-white":"e-text-gray-900"],attrs:{cols:"12"}},[e._v(" Days ")])],1),e._l(e.schedule,function(n,i){return r("ERow",{key:i,staticClass:"e-w-full"},[r("ECol",{attrs:{cols:"2"}},[r("div",{staticClass:"e-flex e-items-center e-my-0 e-h-full"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.enabledDays[i],expression:"enabledDays[day]"}],staticClass:"e-w-5 e-h-auto",attrs:{type:"checkbox",disabled:e.isDisabled},domProps:{checked:Array.isArray(e.enabledDays[i])?e._i(e.enabledDays[i],null)>-1:e.enabledDays[i]},on:{change:[function(o){var a=e.enabledDays[i],u=o.target,s=!!u.checked;if(Array.isArray(a)){var l=null,d=e._i(a,l);u.checked?d<0&&e.$set(e.enabledDays,i,a.concat([l])):d>-1&&e.$set(e.enabledDays,i,a.slice(0,d).concat(a.slice(d+1)))}else e.$set(e.enabledDays,i,s)},e.changeSchedule]}}),r("label",{staticClass:"e-ml-2",class:[e.dark?"e-text-white":"e-text-gray-900"]},[e._v(" "+e._s(i[0].toUpperCase())+" ")])])]),r("ECol",[r("ERangeSlider",{attrs:{max:e.max,min:e.min,disabled:!e.enabledDays[i],readonly:e.isDisabled,step:e.step,dark:e.dark,"is-time":""},on:{input:e.changeSchedule},model:{value:e.schedule[i],callback:function(o){e.$set(e.schedule,i,o)},expression:"schedule[day]"}})],1)],1)})],2)},Y4=[],X4=H(U4,Z4,Y4,!1,null,null,null,null);const ls=X4.exports,cs=A.extend({mixins:[Ge,Ue],data(){return{inactivityListeners:[],isInactivityListenerActive:!1}},beforeDestroy(){this.$removeInactivityListeners()},methods:{resetInactivityListenerTimer(t=()=>{},e=0,r=[]){this.isInactivityListenerActive&&(this.$clearTimeouts(),this.setInactivityListenerTimer(t,e,r))},setInactivityListenerTimer(t=()=>{},e=0,r=[]){t&&e&&this.$setTimeout(()=>{t(),r.length>0&&this.setInactivityListenerReminderTimers(t,r)},e*1e3)},setInactivityListenerReminderTimers(t=()=>{},e=[],r=0){const n=e[r];r<e.length?this.$setTimeout(()=>{t(),this.setInactivityListenerReminderTimers(t,e,r+1)},n*1e3):this.isInactivityListenerActive&&this.$removeInactivityListeners()},$registerInactivityListener({callback:t=()=>{},duration:e=0,reminders:r=[]}){this.isInactivityListenerActive=!0,this.resetInactivityListenerTimer(t,e,r);const n=()=>this.resetInactivityListenerTimer(t,e,r);this.$addEventListener("mousemove",n),this.inactivityListeners.push(n)},$removeInactivityListeners(){this.isInactivityListenerActive&&(this.isInactivityListenerActive=!1,this.inactivityListeners.forEach(t=>{this.$removeEventListener("mousemove",t)}),this.$clearTimeouts())}}}),us=Object.freeze(Object.defineProperty({__proto__:null,eventListeners:Ge,formField:Rt,inactivityListener:cs,selectFormField:wt,timeouts:Ue,toggleOpen:Ht},Symbol.toStringTag,{value:"Module"})),V4=A.extend({name:"EPopover",directives:{ClickOutside:tn},mixins:[Ht],props:{dark:{type:Boolean,default:!1},label:{type:String,default:"Click to open"},panelSide:{type:String,default:"center"},panelClasses:{type:[Object,String,Array],default:()=>({})}},computed:{panelThemeClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"right-0 ":this.panelSide==="right","left-0":this.panelSide==="left"}}},methods:{closePopover(){this.isOpen=!1}}}),fd="";var Q4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",e._b({directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closePopover,expression:"closePopover"}],staticClass:"e-popover__wrapper e-relative e-w-full"},"div",e.$attrs,!1),[e._t("trigger",function(){return[r("div",e._g(e._b({staticClass:"e-popover__trigger-button e-relative e-w-full e-rounded e-py-2 e-leading-5 e-cursor-pointer e-h-[40px] e-flex e-justify-center e-items-center",attrs:{role:"button"},on:{click:e.toggleOpen}},"div",e.$attrs,!1),e.$listeners),[e._t("trigger-button-content",function(){return[r("span",[e._v(" "+e._s(e.label)+" ")])]})],2)]},{toggle:e.toggleOpen,isOpen:e.isOpen}),e.isOpen?r("div",e._b({staticClass:"e-popover__menu-wrapper e-absolute e-bg-gray-800 e-z-[5] e-min-w-[160px] e-w-full e-min-h-12 e-max-h-72 e-overflow-auto e-text-sm e-rounded-md e-scrollbar-thin e-mt-1 e-scrollbar-thumb-rounded-full e-scrollbar-track-rounded-full e-scrollbar-thumb-gray-400 shadow-2xl focus:e-outline-none sm:e-text-sm",class:[e.panelThemeClasses,e.panelClasses]},"div",e.$attrs,!1),[e._t("panel",function(){return[e._t("default")]})],2):e._e()],2)},K4=[],J4=H(V4,Q4,K4,!1,null,"59138e1e",null,null);const hn=J4.exports,ec=A.extend({name:"ECheckbox",components:{EIcon:qe},props:{checked:{type:Boolean,default:!1}}}),pd="";var tc=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",e._g(e._b({staticClass:"e-select-checkbox e-box-border e-w-4 e-h-4 e-rounded e-flex e-items-center e-justify-center e-align-middle e-border-solid e-border-2",class:{"e-border-gray-500":!e.checked,"e-bg-[#1976d2] e-border-[#1976d2]":e.checked},staticStyle:{"border-radius":"2px"}},"div",e.$attrs,!1),e.$listeners),[e.checked?r("EIcon",{attrs:{icon:"far fa-check",color:"e-text-white",size:"xs"}}):e._e()],1)},rc=[],nc=H(ec,tc,rc,!1,null,"c5642bf0",null,null);const ic=nc.exports,sc=A.extend({name:"ESelect",components:{ECheckbox:ic,EIcon:qe,EPopover:hn},directives:{ResizeObserver:Ke},mixins:[wt],props:{dark:{type:Boolean,default:!1},withSelectAll:{type:Boolean,default:!1},customSelectionLabel:{type:String,default:""},name:{type:String,default:"Items"},label:{type:String,default:"Select an option"},withCheckbox:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},searchPlaceholder:{type:String,default:"Type to search..."},withSearchQueryVisible:{type:Boolean,default:!1}},data(){return{searchQuery:"",menuStyle:{}}},computed:{customLabel(){return this.multiple&&Array.isArray(this.value)&&this.value.length===0||!this.multiple&&(this.value===null||this.value===void 0)?this.label:this.multiple&&this.customSelectionLabel.length>0?this.customSelectionLabel:this.localLabel||this.label},filteredOptions(){if(!this.searchQuery)return this.options;const t=this.searchQuery.toLowerCase().trim();return this.options.filter(e=>e.label.toLowerCase().includes(t))},scrollbarClasses(){return{"e-scrollbar-track-gray-800 e-scrollbar-thumb-gray-500":this.dark,"e-scrollbar-track-white e-scrollbar-thumb-gray-400":!this.dark}},showSearchClearButton(){return(this.searchQuery.length>0||this.isAtLeastOneSelected)&&this.searchable&&!this.disabled}},methods:{handleTriggerClick(t,e){this.disabled||(e(t),this.$nextTick(()=>{const r=this.$refs.searchInput;r&&r.focus()}),this.withSearchQueryVisible&&(this.searchQuery=this.getOptionByValue(this.value).label||""))},handleMenuStyle(){const t=this.$refs.ESelectWrapper;this.menuStyle={maxWidth:`${t==null?void 0:t.clientWidth}px`,minWidth:"160px"}},clearSearch(){this.searchQuery="",this.$emit("input",this.multiple?[]:null);const t=this.$refs.searchInput;t&&t.focus()}}}),md="";var ac=function(){var e=this,r=e._self._c;return r("EPopover",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.handleMenuStyle,expression:"handleMenuStyle"}],attrs:{dark:e.dark},scopedSlots:e._u([{key:"trigger",fn:function({isOpen:n,toggle:i}){return[e._t("activator",function(){return[r("div",{staticClass:"e-select__trigger-button e-relative e-w-full e-rounded e-border e-border-solid e-py-2 e-pl-3 e-leading-5 e-cursor-pointer e-h-[40px] e-flex e-items-center e-bg-gray-900",class:e.radioItemClasses,attrs:{id:`e-select-trigger-${Date.now()}`,"data-test-id":`select-trigger-${Date.now()}`,role:"button"},on:{click:o=>e.handleTriggerClick(o,i)}},[n&&e.searchable?r("div",{staticClass:"e-select__search-input-wrapper e-flex e-items-center e-gap-2 e-w-full e-mr-10"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.searchQuery,expression:"searchQuery"}],ref:"searchInput",staticClass:"e-select__search-input e-w-full e-h-6 e-bg-transparent placeholder:e-text-sm e-text-sm e-outline-none e-border-none",class:{"e-text-white placeholder:e-text-gray-400":e.dark,"e-text-gray-700 placeholder:e-text-gray-500":!e.dark},attrs:{placeholder:e.searchPlaceholder,type:"text"},domProps:{value:e.searchQuery},on:{click:function(o){o.stopPropagation()},input:function(o){o.target.composing||(e.searchQuery=o.target.value)}}})]):[e.multiple&&e.selectedOption.length===0||!e.selectedOption?e._t("label",function(){return[e.customLabel&&!e.searchable?r("span",{staticClass:"e-select-label e-text-sm"},[e._v(e._s(e.customLabel))]):r("span",{staticClass:"e-select-label e-text-sm e-text-gray-400"},[e._v(e._s(e.searchPlaceholder))])]}):e._t("selection",function(){return[r("span",{staticClass:"e-capitalize e-select__trigger-button-text e-truncate"},[e._v(" "+e._s(e.customLabel)+" ")])]})],e.showSearchClearButton?r("button",{staticClass:"e-select__clean-search-button e-flex e-bg-transparent e-z-[2] e-absolute e-right-10 e-cursor-pointer e-border-none e-items-center e-justify-center e-w-5 e-h-5",on:{click:function(o){return o.stopPropagation(),e.clearSearch.apply(null,arguments)}}},[r("EIcon",{attrs:{color:"e-text-gray-400 hover:e-text-[#1976d2]",icon:"far fa-xmark",size:"lg"}})],1):e._e(),e._t("pre-append-icon",function(){return[r("span",{staticClass:"e-select__trigger-button-icon e-absolute e-inset-y-0 e-right-0 e-flex e-items-center e-justify-end e-px-3 e-pr-4 e-bg-transparent e-border-transparent e-text-gray-400"},[r("EIcon",{attrs:{icon:n?"fas fa-sort-up e-mt-2.5":"fas fa-sort-down e-mb-1.5"}})],1)]})],2)]},{attrs:{class:e.radioItemClasses,isOpen:n},on:{click:i}})]}},{key:"panel",fn:function(){return[e.multiple&&e.withSelectAll?r("div",{staticClass:"e-select__menu-check-all-wrapper e-relative e-cursor-pointer e-select-none e-p-2",on:{click:e.toggleSelectAll}},[r("div",{staticClass:"e-select__menu-check-all e-flex e-justify-start e-items-center e-gap-2 e-p-1 e-w-full",class:{"e-text-[#1976d2] ":e.isAllSelected&&!e.dark,"e-text-[#61b0ff]":e.isAllSelected&&e.dark}},[r("ECheckbox",{attrs:{checked:e.isAllSelected}}),r("span",{staticClass:"e-capitalize e-select__menu-check-all-text e-text-sm e-font-medium"},[e._v(" All "+e._s(e.name||"")+" ")])],1)]):e._e(),e.multiple&&e.withSelectAll?r("hr",{staticClass:"e-border-0 e-h-px e-m-0",class:{"e-bg-gray-700":e.dark,"e-bg-gray-200":!e.dark}}):e._e(),e._l(e.filteredOptions,function(n,i){return r("div",{key:i,staticClass:"e-select__menu-item-wrapper e-relative e-select-none e-p-2",class:e.containerClasses(n),attrs:{id:`select-item-${n.value}`,"data-test-id":`select-item-${i}`},on:{click:function(o){return e.onItemClick(n.value)}}},[r("div",{staticClass:"e-select__menu-item e-flex e-justify-start e-items-center e-gap-2 e-p-1 e-w-i"},[e.withCheckbox||e.multiple?r("ECheckbox",{attrs:{checked:e.isSelected(n.value)}}):e._e(),e._t("item",function(){return[r("span",{staticClass:"e-select__menu-item-text e-block e-text-sm e-font-medium"},[e._v(" "+e._s(n.label)+" ")])]},{item:n,isSelected:e.isSelected(n.value)})],2)])}),e.filteredOptions.length===0?r("div",{staticClass:"e-select__no-values-box e-p-4 e-text-center e-text-gray-500"},[e._v(" No results found ")]):e._e()]},proxy:!0}],null,!0)})},oc=[],lc=H(sc,ac,oc,!1,null,null,null,null);const ds=lc.exports,cc=A.extend({name:"EGlobalSearch",components:{EIcon:qe},mixins:[Ge],props:{dark:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},timezone:{type:String,default:"Europe/Dublin"},convertedDateFormat:{type:String,default:"YYYY-MM-DDTHH:mm:ss"},currentDateFormat:{type:String,default:"YYYY-MM-DDTHH:mm:ssZ"},isFixedPosition:{type:Boolean,default:!0},isHidden:{type:Boolean,default:!0},deep:{type:Boolean,default:!0}},data(){return{search:"",isSearching:!1}},computed:{inputClasses(){return{"e-bg-gray-900 e-text-white e-ring-gray-700 focus:e-ring-2 focus:e-ring-blue-500 e-placeholder-gray-500":this.dark,"e-bg-white e-text-[#000057] e-ring-gray-300 focus:e-ring-2 hover:e-ring-gray-400 focus:e-ring-blue-500 e-placeholder-gray-400":!this.dark}}},watch:{search(t){t?t.length>=3&&this.$emit("search-results",this.searchObjectsByQuery(this.items,t)):this.$emit("reset")}},mounted(){!this.isHidden&&this.search.length>0?this.isSearching=!0:(this.$addEventListener("keydown",this.onKeyHandler),this.$addEventListener("keyup",this.onKeyHandler))},methods:{onInput(t){this.search=t.target.value},searchObjectsByQuery(t,e){return t.reduce((r,n,i)=>{const o=this.findMatchesInObject(n,e,[]);return o.length>0&&r.push({index:i,matches:o}),r},[])},findMatchesInObject(t,e,r){return Object.entries(t).reduce((n,[i,o])=>{const a=[...r,i],u=this.matchesQuery(o,e)?[{path:a,value:o}]:[];let s=[];this.deep&&Array.isArray(o)&&(s=o.flatMap((d,p)=>this.findMatchesInObject(d,e,[...a,`${p}`])));const l=this.deep&&typeof o=="object"&&o!==null?this.findMatchesInObject(o,e,a):[];return[...n,...u,...s,...l]},[])},matchesQuery(t,e){return`${this.isValidDate(t)?this.formattedTimestamp(t):t}`.toLowerCase().indexOf(e.toLowerCase())!==-1},isValidDate(t){return ke(t,this.currentDateFormat,!0).isValid()},formattedTimestamp(t){return ke.tz(t,this.timezone).format(this.convertedDateFormat)},onKeyHandler(t){const e=t,r=e.ctrlKey&&e.type==="keydown",n=e.shiftKey&&e.type==="keydown",i=["f","F"].includes(e.key)&&e.type==="keydown",o=e.key==="Escape"&&e.type==="keydown";i&&r&&n&&(this.isSearching=!0,this.$nextTick(()=>{const a=this.$refs.searchField;a&&a.focus()})),o&&(this.isSearching=!1,this.search="")}}}),gd="";var uc=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"show",rawName:"v-show",value:!e.isFixedPosition||e.isSearching,expression:"!isFixedPosition || isSearching"}],staticClass:"global-search e-relative",class:{"global-search--fixed e-p-4 e-bg-white e-m-3":e.isFixedPosition}},[r("div",{staticClass:"e-relative"},[r("input",e._g({directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],ref:"searchField",class:["global-search__field e-shadow-sm e-ring-1 e-ring-inset e-relative e-block e-w-full e-h-full disabled:e-cursor-not-allowed disabled:e-opacity-75 focus:e-outline-none e-border-0 e-text-sm e-placeholder-gray-400 e-px-4 e-py-3 e-gap-x-1.5 e-rounded-md",e.inputClasses],attrs:{id:"global-search-input",placeholder:"Search",autocomplete:"off",type:"text"},domProps:{value:e.search},on:{input:function(n){n.target.composing||(e.search=n.target.value)}}},e.$listeners)),r("span",{staticClass:"e-absolute e-inset-y-0 e-end-0 e-flex e-items-center e-justify-center e-pointer-events-none e-px-2.5"},[r("EIcon",{attrs:{icon:"search",size:"Sm"}})],1)])])},dc=[],hc=H(cc,uc,dc,!1,null,null,null,null);const hs=hc.exports,fc=A.extend({name:"ETooltip",props:{text:{type:String,required:!0},position:{type:String,default:Oe.Top},color:{type:String,default:se.Default},dark:{type:Boolean,default:!1}},data:function(){return{isHovered:!1}},computed:{tooltipClasses(){const t=this.position,e=this.color,r={"e-bg-gray-800 e-text-white":!this.dark,"e-bg-slate-300 e-text-slate-800":this.dark};return{"tooltip e-w-max e-text-sm e-text-center e-px-2 e-py-1 e-absolute e-rounded-md e-shadow-md e-opacity-0 group-hover:e-opacity-100 e-transition-opacity e-duration-300":!0,"tooltip-left":t===Oe.Left,"tooltip-right":t===Oe.Right,"tooltip-top":t===Oe.Top,"tooltip-bottom":t===Oe.Bottom,"e-bg-orange-700 e-text-white":e===se.Warning,"e-bg-red-700 e-text-white":e===se.Error,"e-bg-green-900 e-text-white":e===se.Success,"e-bg-blue-700 e-text-white":e===se.Primary,"e-bg-sky-500 e-text-white":e===se.Info,"e-bg-brand-900 e-text-white":e===se.Brand,"e-bg-gray-200 e-text-gray-700":e===se.Gray,...r}},triangleClasses(){const t=this.position,e=this.color;return{"triangle e-absolute e-border-transparent":!0,"triangle-left":t===Oe.Left,"triangle-right":t===Oe.Right,"triangle-top":t===Oe.Top,"triangle-bottom":t===Oe.Bottom,"e-border-b-gray-800":e===se.Default,"e-border-b-orange-700":e===se.Warning,"e-border-b-red-700":e===se.Error,"e-border-b-green-900":e===se.Success,"e-border-b-blue-700":e===se.Primary,"e-border-b-sky-500":e===se.Info,"e-border-b-brand-900":e===se.Brand,"e-border-b-gray-900":e===se.Gray}}},methods:{toggleTooltip(){this.isHovered=!this.isHovered}}}),vd="";var pc=function(){var e=this,r=e._self._c;return r("div",{staticClass:"tooltip-box e-w-max e-relative e-group",on:{mouseenter:e.toggleTooltip,mouseleave:e.toggleTooltip}},[e._t("default"),e.isHovered?r("div",{class:e.tooltipClasses},[r("span",{class:e.triangleClasses}),e._v(" "+e._s(e.text)+" ")]):e._e()],2)},mc=[],gc=H(fc,pc,mc,!1,null,"3ebb5ef2",null,null);const St=gc.exports,vc=A.extend({name:"EActionButton",components:{ETooltip:St,EIcon:qe},props:{tooltipText:{type:String,default:null},tooltipColor:{type:String,default:"default"},tooltipPosition:{type:String,default:"top"},buttonClasses:{type:[String,Object,Array],default:null},icon:{type:String,default:null},iconSize:{type:String,default:K.Sm},iconColor:{type:String,default:se.Default},dark:{type:Boolean,default:!0}},computed:{withTooltip(){return!!this.tooltipText},buttonClassesContainsBg(){return this.buttonClasses?typeof this.buttonClasses=="string"&&this.buttonClasses.split("e-bg-").length>1||typeof this.buttonClasses=="object"&&Object.keys(this.buttonClasses).some(t=>t.split("e-bg-").length>1):!1},buttonStyle(){const t=this.dark?"e-bg-gray-900 e-text-white hover:e-bg-gray-700":"e-bg-white text-e-text-gray-900 hover:e-bg-gray-100";return this.buttonClassesContainsBg?this.buttonClasses:[this.buttonClasses,t]}}});var _c=function(){var e=this,r=e._self._c;return e.withTooltip?r("ETooltip",{attrs:{text:e.tooltipText,position:e.tooltipPosition,color:e.tooltipColor,dark:e.dark}},[r("button",e._g(e._b({staticClass:"e-action-button e-w-max e-px-3 e-py-2 e-flex e-border-none e-justify-center e-align-middle e-items-center e-cursor-pointer",class:e.buttonStyle},"button",e.$attrs,!1),e.$listeners),[r("EIcon",{attrs:{icon:e.icon,size:e.iconSize,color:e.iconColor}}),e._t("default")],2)]):r("button",e._g(e._b({staticClass:"e-action-button e-w-max e-px-3 e-py-2 e-flex e-border-none e-justify-center e-align-middle e-items-center e-cursor-pointer",class:e.buttonStyle},"button",e.$attrs,!1),e.$listeners),[r("EIcon",{attrs:{icon:e.icon,size:e.iconSize}}),e._t("default")],2)},yc=[],Cc=H(vc,_c,yc,!1,null,null,null,null);const ft=Cc.exports,bc=A.extend({name:"EZoomSlider",components:{EActionButton:ft},props:{dark:{type:Boolean,default:!0}}});var xc=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-zoom-slider e-flex e-flex-col e-p-5"},[r("EActionButton",{attrs:{"tooltip-text":"Zoom in","tooltip-position":"right",icon:"fas fa-plus",dark:e.dark,"icon-size":"Base","button-classes":"action-btn__first-vertical e-border-none e-rounded-none e-rounded-t-md e-shadow-xl","data-test-id":"zoomable-img-zoom-in"},on:{click:function(n){return e.$emit("zoom-in")}}}),r("EActionButton",{attrs:{"tooltip-text":"Zoom out","tooltip-position":"right",icon:"fas fa-minus",dark:e.dark,"icon-size":"Base","button-classes":"action-btn__last-vertical e-border-none e-rounded-none e-rounded-b-md","data-test-id":"zoomable-img-zoom-out"},on:{click:function(n){return e.$emit("zoom-out")}}})],1)},wc=[],Sc=H(bc,xc,wc,!1,null,null,null,null);const fn=Sc.exports,Tc=A.extend({name:"EFadeTransition",props:{duration:{type:Number,default:300}},computed:{durationClass(){return{100:"e-duration-100",200:"e-duration-200",300:"e-duration-300",400:"e-duration-400",500:"e-duration-500",600:"e-duration-600",700:"e-duration-700",800:"e-duration-800",900:"e-duration-900",1e3:"e-duration-1000"}[this.duration]}}});var kc=function(){var e=this,r=e._self._c;return r("transition",{attrs:{"enter-active-class":`e-transition e-ease-out ${e.durationClass}`,"leave-active-class":`e-transition e-ease-in ${e.durationClass}`,"enter-class":"e-opacity-0","enter-to-class":"e-opacity-100","leave-class":"e-opacity-100","leave-to-class":"e-opacity-0"}},[e._t("default")],2)},$c=[],Ec=H(Tc,kc,$c,!1,null,null,null,null);const Nt=Ec.exports,Mc=A.extend({name:"EZoomableImg",components:{EZoomSlider:fn,EFadeTransition:Nt},directives:{ResizeObserver:Ke},mixins:[Ue,Ge],props:{src:{type:String,default:""},alt:{type:String,default:""},allowZoom:{type:Boolean,default:!0},imgProps:{type:Object,default:()=>({})},slider:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},hideContentOnBlur:{type:Boolean,default:!0},initialParams:{type:Object,default:()=>({})},embedded:{type:Boolean,default:!1},overlayStyle:{type:Object,default:()=>({})},foregroundStyle:{type:Object,default:()=>({})},pan:{type:Boolean,default:!0},slotTransition:{type:Boolean,default:!0},height:{type:[String,Number],default:void 0},isCalendarActive:{type:Boolean,default:!1},blurBackground:{type:Boolean,default:!1},cover:{type:Boolean,default:!1},isWidget:{type:Boolean,default:!1},isAnnotationActive:{type:Boolean,default:!1},isMobile:{type:Boolean,default:!1},placeholderImage:{type:String,default:""},showMiniature:{type:Boolean,default:!1},miniatureWidth:{type:Number,default:150}},data(){const t={x:0,y:0};return{image:null,frame:null,imageLoaded:!1,zoomLevel:1,previousZoomLevel:1,imageMouse:t,zoomOrigin:t,frameMouse:t,frameMousePanStart:t,frameMousePreviousPan:t,translation:t,isPanning:!1,isPinching:!1,zoomStarted:!1,firstLoad:!0,isSliderActive:!1,imgStyle:{},contentStyle:{},isFocused:!0,forceHideContent:!1,imageAspectRatio:1,frameAspectRatio:1,wrapperExtraStyle:{},preventDefaultScroll:!0,mouseLeft:!1,pointers:{},pinchDistance:0,lastTapTime:0,minZoomLevel:1,maxZoomLevel:20,backgroundSnapshotSrc:null,miniatureOverlayStyle:{}}},computed:{frameStyle(){return this.height?{height:`${this.height}px`}:{}},wrapperStyle(){if(!this.imageLoaded)return{display:"none"};let t,e;return this.isPanning&&!this.isAnnotationActive?(t=this.frameMouse.x-this.frameMousePanStart.x+this.frameMousePreviousPan.x,e=this.frameMouse.y-this.frameMousePanStart.y+this.frameMousePreviousPan.y):(t=this.frameMousePreviousPan.x,e=this.frameMousePreviousPan.y),{transform:Math.abs(t)<.5&&Math.abs(e)<.5?"none":`translate(${t}px,${e}px)`}},imageCenter(){var e;const t=(e=this.image)==null?void 0:e.getBoundingClientRect();return{x:((t==null?void 0:t.width)||0)/2,y:((t==null?void 0:t.height)||0)/2}},sliderModel:{get(){return this.zoomLevel*100},set(t){this.previousZoomLevel=this.zoomLevel,this.zoomLevel=t/100,this.updateImageStyle(),this.savePreviousPan()}},showContent(){return this.hideContentOnBlur?this.forceHideContent?!1:this.isFocused&&this.touches<2:!0},miniatureContainerStyle(){if(!this.image)return{};const t=this.image.naturalWidth/this.image.naturalHeight,e=this.miniatureWidth/t;return{width:`${this.miniatureWidth}px`,height:`${e}px`}},miniatureOverlayComputedStyle(){return{...this.miniatureOverlayStyle,...this.miniatureOverlayBaseStyle}},miniatureOverlayBaseStyle(){return{boxShadow:`0 0 0 ${this.miniatureWidth}px #0006`}},currentState(){var t,e;return{image:this.image,zoomLevel:this.zoomLevel,translation:this.translation,previousZoomLevel:this.previousZoomLevel,imageMouse:this.imageMouse,zoomOrigin:this.zoomOrigin,frameMouse:this.frameMouse,frameMousePanStart:this.frameMousePanStart,frameMousePreviousPan:this.frameMousePreviousPan,isPanning:this.isPanning,zoomStarted:this.zoomStarted,firstLoad:this.firstLoad,isSliderActive:this.isSliderActive,imgStyle:this.imgStyle,contentStyle:this.contentStyle,isFocused:this.isFocused,forceHideContent:this.forceHideContent,imageAspectRatio:this.imageAspectRatio,frameAspectRatio:this.frameAspectRatio,wrapperExtraStyle:this.wrapperExtraStyle,offsetWidth:(t=this.image)==null?void 0:t.offsetWidth,offsetHeight:(e=this.image)==null?void 0:e.offsetHeight}}},watch:{isCalendarActive(){this.$setTimeout(this.onResize,100)},initialParams:{immediate:!0,handler(t){if(typeof t=="object")for(let e in t)this[e]=t[e]}},image:{immediate:!0,deep:!0,handler(){var t;(t=this.image)!=null&&t.offsetWidth&&this.emitChange()}},wrapperStyle(){this.$nextTick(this.updateMiniatureOverlayStyle)},imageStyle(){this.$nextTick(this.updateMiniatureOverlayStyle)}},mounted(){this.$addEventListener("orientationchange",this.handleOrientationChange),this.$root.$on("resize-snapshot-player",()=>{this.$setTimeout(this.setAspectRatio,200)})},methods:{onResize(){this.updateContentStyle(),this.$setTimeout(this.setAspectRatio,500)},handleOrientationChange(){this.$setTimeout(this.setAspectRatio,1e3)},setAspectRatio(){var r,n;this.frame=this.$refs.frame,this.image=this.$refs.image;const t=(r=this.frame)==null?void 0:r.getBoundingClientRect(),e=(n=this.image)==null?void 0:n.getBoundingClientRect();if(this.$setTimeout(this.emitChange,50),!t||this.isMobile&&!this.isWidget&&(!e||(e==null?void 0:e.width)<=1||(e==null?void 0:e.height)<=1)){this.$setTimeout(this.setAspectRatio,50);return}this.frameAspectRatio=t.width/t.height,this.imageAspectRatio=e.width/e.height},updateImageStyle(){this.translation={x:this.zoomOrigin.x*(this.zoomLevel-this.previousZoomLevel)+this.translation.x,y:this.zoomOrigin.y*(this.zoomLevel-this.previousZoomLevel)+this.translation.y},this.imgStyle={...this.imgStyle,transform:`translate(${-this.translation.x}px, ${-this.translation.y}px) scale(${this.zoomLevel})`},this.emitChange()},updateMiniatureOverlayStyle(){if(!this.showMiniature||!this.image||!this.frame||!this.$refs.miniatureImage||this.zoomLevel===1){this.miniatureOverlayStyle={};return}const t=this.image.getBoundingClientRect(),e=this.frame.getBoundingClientRect(),r=(e.left-t.left)/t.width*100,n=(e.top-t.top)/t.height*100,i=e.width/t.width*100,o=e.height/t.height*100;this.miniatureOverlayStyle={left:`${r}%`,top:`${n}%`,width:`${i}%`,height:`${o}%`}},onImageLoaded(t){var n,i;if(this.imageLoaded=!0,this.wrapperExtraStyle={...this.wrapperExtraStyle,alignContent:"flex-start !important"},this.$setTimeout(()=>{this.wrapperExtraStyle={justifyContent:"center",alignContent:"center !important"}}),this.blurBackground&&(this.backgroundSnapshotSrc=this.getSnapshotSrc()),!this.firstLoad)return;this.updateContentStyle(),this.imageMouse=this.imageCenter,this.zoomOrigin=this.imageCenter;const e=(n=this.image)==null?void 0:n.getBoundingClientRect(),r=(i=this.frame)==null?void 0:i.getBoundingClientRect();!e||!r||(this.isMobile&&!this.isWidget?this.setAspectRatio():this.$nextTick(()=>{this.setAspectRatio(),this.firstLoad=!1}),this.updateImageStyle(),this.$emit("load",t))},onError(t){this.$emit("error",t)},onMouseEnter(){this.mouseLeft=!1,this.isFocused=!0},onMouseLeave(){this.isSliderActive||(this.isFocused=!1),this.mouseLeft=!0;const t={which:1,preventDefault:()=>{}};this.onMouseUp(t)},onMouseMove(t){var e;if(!(this.disabled||!this.imageLoaded||this.mouseLeft)&&this.frame){const r=this.frame.getBoundingClientRect(),n=(e=this.image)==null?void 0:e.getBoundingClientRect();this.frameMouse={x:(t==null?void 0:t.clientX)-r.left,y:(t==null?void 0:t.clientY)-r.top},this.imageMouse={x:((t==null?void 0:t.clientX)-(n==null?void 0:n.left))/this.zoomLevel,y:((t==null?void 0:t.clientY)-(n==null?void 0:n.top))/this.zoomLevel},this.zoomStarted&&(this.zoomStarted=!1),this.$nextTick(this.emitChange)}},onMousedown(t){if(!(!this.pan||this.disabled||!this.imageLoaded||(t==null?void 0:t.which)!==1||this.isSliderActive)){if(this.isAnnotationActive){this.frameMousePanStart={x:this.frameMouse.x,y:this.frameMouse.y},this.isPanning=!0,this.$nextTick(this.emitChange);return}t.preventDefault(),this.frameMousePanStart=this.frameMouse,this.isPanning=!0}},onMouseUp(t){if(!(!this.pan||this.disabled||!this.imageLoaded||!this.isPanning||(t==null?void 0:t.which)!==1||this.isSliderActive)){if(this.isAnnotationActive){this.isPanning=!1,this.$nextTick(this.emitChange);return}t.preventDefault(),this.savePreviousPan({x:this.frameMousePreviousPan.x+this.frameMouse.x-this.frameMousePanStart.x,y:this.frameMousePreviousPan.y+this.frameMouse.y-this.frameMousePanStart.y}),this.isPanning=!1,this.isPinching=!1,this.$nextTick(this.emitChange)}},onMouseWheel(t){this.disabled||!this.imageLoaded||!this.allowZoom||(this.zoom(t.deltaY),this.preventDefaultScroll&&t.preventDefault())},updateZoomLevel(t){let e=1;this.isMobile?e=this.zoomLevel*t:t<0?e=this.zoomLevel*1.2:this.zoomLevel>=1.25&&(e=this.zoomLevel*.8),e<this.minZoomLevel?this.zoomLevel=this.minZoomLevel:e>this.maxZoomLevel?this.zoomLevel=this.maxZoomLevel:this.zoomLevel=e},zoom(t){this.isPanning=!1,this.previousZoomLevel=this.zoomLevel,this.updateZoomLevel(t),this.preventDefaultScroll=this.previousZoomLevel!==this.zoomLevel,this.zoomStarted||(this.zoomOrigin=this.imageMouse,this.zoomStarted=!0),this.updateImageStyle(),this.$nextTick(()=>{this.savePreviousPan(),this.emitChange()})},getBounds(){var s,l;const t=(s=this.frame)==null?void 0:s.getBoundingClientRect(),e=(l=this.image)==null?void 0:l.getBoundingClientRect(),r=t.width/this.imageAspectRatio,n=t.height*this.imageAspectRatio;let{top:i,right:o,bottom:a,left:u}=t;return e.width<t.width?(u=t.left+(t.width-n)/2,o=u+n):e.height<t.height&&(i=t.top+(t.height-r)/2,a=i+r),{top:i,right:o,bottom:a,left:u}},savePreviousPan({x:t,y:e}={}){var r;if(this.image){const n=(r=this.image)==null?void 0:r.getBoundingClientRect(),i=this.getBounds(),[o,a,u,s]=[n.right-i.right,i.top-n.top,n.bottom-i.bottom,i.left-n.left].map(l=>l<0?l:0);this.frameMousePreviousPan={x:(t||this.frameMousePreviousPan.x)+s-o,y:(e||this.frameMousePreviousPan.y)+a-u}}},onSliderMouseDown(){var r,n;const t=(r=this.frame)==null?void 0:r.getBoundingClientRect(),e=(n=this.image)==null?void 0:n.getBoundingClientRect();this.zoomOrigin={x:((t==null?void 0:t.left)+(t==null?void 0:t.width)/2-(e==null?void 0:e.left))/this.zoomLevel,y:((t==null?void 0:t.top)+(t==null?void 0:t.height)/2-(e==null?void 0:e.top))/this.zoomLevel},this.isSliderActive=!0},onSliderMouseUp(){this.isSliderActive=!1},updateContentStyle(){var t,e,r;this.contentStyle={maxWidth:`${window.innerWidth-(((r=(e=(t=this.$refs)==null?void 0:t.frame)==null?void 0:e.getBoundingClientRect())==null?void 0:r.left)||0)}px`}},emitChange(){this.$emit("change",this.currentState)},getPointersMidPoint(t,e){return{x:t.clientX+(e.clientX-t.clientX)/2,y:t.clientY+(e.clientY-t.clientY)/2}},getPointersDistance(t,e){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)},updatePointerEvent(t){this.pointers[t.pointerId]=t},clearPointerEvent(t){this.$delete(this.pointers,t.pointerId)},updatePinchZoomOrigin(){const t=Object.values(this.pointers);if(t.length!==2)return;const e=this.getPointersMidPoint(...t);this.zoomOrigin={x:e.x/this.zoomLevel,y:e.y/this.zoomLevel}},updatePinchDistance(){const t=Object.values(this.pointers);t.length===2&&(this.pinchDistance=this.getPointersDistance(...t))},onPointerDown(t){if(!(!this.isMobile||this.foregroundStyle.zIndex==2)){if(this.updatePointerEvent(t),this.isPinching=Object.values(this.pointers).length===2,this.isPinching){this.isPanning=!1,this.updatePinchZoomOrigin(),this.updatePinchDistance();return}this.onMouseMove(t),this.onMousedown(t)}},onPointerMove(t){if(!(!this.isMobile||this.foregroundStyle.zIndex==2)){if(this.updatePointerEvent(t),this.isPinching){const e=this.pinchDistance;this.updatePinchDistance();const r=this.pinchDistance/e;r%1>.008&&this.zoom(r);return}this.onMouseMove(t)}},onPointerUp(t){if(!this.isMobile||this.foregroundStyle.zIndex==2)return;this.clearPointerEvent(t),this.onMouseUp(t);const e=new Date().getTime(),r=e-this.lastTapTime;r>100&&r<200&&this.zoom(this.zoomLevel>1?0:3),this.lastTapTime=e},getSnapshotSrc(){const t=this.$refs.image;return t==null?void 0:t.src}}}),_d="";var Lc=function(){var n;var e=this,r=e._self._c;return r("div",e._b({directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResize,expression:"onResize"}],ref:"frame",staticClass:"zoomable-img e-flex e-justify-center e-items-center e-relative",class:{"zoomable-img--loading":!e.imageLoaded,"zoomable-img--zoomed":e.zoomLevel>1,"zoomable-img--panning":e.isPanning,"zoomable-img--disabled":e.disabled,"zoomable-img--portrait-frame":e.frameAspectRatio<e.imageAspectRatio,"zoomable-img--landscape-frame":e.frameAspectRatio>=e.imageAspectRatio,"zoomable-img--embedded":e.embedded,"zoomable-img--cover":e.cover},style:e.frameStyle,attrs:{"data-test-id":"zoomable-img-frame"},on:{wheel:e.onMouseWheel,mouseup:e.onMouseUp,mousedown:e.onMousedown,mousemove:e.onMouseMove,mouseenter:e.onMouseEnter,mouseleave:e.onMouseLeave,pointerdown:e.onPointerDown,pointermove:e.onPointerMove,pointerup:e.onPointerUp,pointercancel:e.onPointerUp,pointerout:e.onPointerUp,pointerleave:e.onPointerUp}},"div",e.$attrs,!1),[r("div",{staticClass:"zoomable-img__wrapper e-flex e-justify-center e-items-center",style:{...e.wrapperStyle,...e.wrapperExtraStyle},attrs:{"data-test-id":"zoomable-img-wrapper"}},[e.blurBackground&&e.imageLoaded&&e.backgroundSnapshotSrc?r("img",{class:e.isMobile?"zoomable-img__img-background-mobile":"zoomable-img__img-background",style:e.imgStyle,attrs:{src:e.backgroundSnapshotSrc,alt:e.alt}}):e._e(),r("img",e._g(e._b({directives:[{name:"show",rawName:"v-show",value:e.imageLoaded||!!e.placeholderImage,expression:"imageLoaded || !!placeholderImage"}],ref:"image",staticClass:"zoomable-img__img e-absolute",style:e.imgStyle,attrs:{src:(n=e.src)!=null?n:e.placeholderImage,alt:e.alt,crossorigin:"anonymous","data-test-id":"zoomable-img-image"},on:{load:e.onImageLoaded,error:e.onError}},"img",e.$props.imgProps,!1),e.$listeners))]),r("div",{staticClass:"zoomable-img__wrapper zoomable-img__wrapper--overlay e-flex e-justify-center e-items-center",style:{...e.wrapperStyle,...e.wrapperExtraStyle,...e.overlayStyle}},[r("div",{staticClass:"zoomable-img__img e-relative",style:{width:`${e.image?e.image.offsetWidth:0}px`,height:`${e.image?e.image.offsetHeight:0}px`,...e.imgStyle}},[e._t("imageOverlay",null,{state:e.currentState})],2)]),r("div",{ref:"foreground",staticClass:"zoomable-img__content e-flex e-justify-center e-items-center e-p-0",class:{"e-h-full":!e.embedded,"e-w-full":!e.embedded},style:{...e.contentStyle,...e.foregroundStyle},attrs:{id:"img-foreground","data-test-id":"zoomable-img-foreground"}},[e.imageLoaded?e._e():e._t("placeholder",null,{dataTestId:"zoomable-img-placeholder"}),e.showContent&&e.slotTransition?r("EFadeTransition",[e.showContent?e._t("default",null,{dataTestId:"zoomable-img-content"}):e._e()],2):e.showContent?e._t("default",null,{dataTestId:"zoomable-img-content"}):e._e(),r("EFadeTransition",[e.showContent&&e.slider&&e.allowZoom?r("div",{staticClass:"zoomable-img__slider-container",attrs:{"data-test-id":"zoomable-img-zoom-slider"}},[e._t("extraWidgets"),r("EZoomSlider",{attrs:{vertical:""},on:{mouseup:e.onSliderMouseUp,mousedown:e.onSliderMouseDown,"zoom-in":function(i){return e.zoom(-1)},"zoom-out":function(i){return e.zoom(1)}},model:{value:e.sliderModel,callback:function(i){e.sliderModel=i},expression:"sliderModel"}})],2):e._e()]),r("EFadeTransition",[e.showMiniature&&e.imageLoaded&&e.zoomLevel>1?r("div",{staticClass:"zoomable-img__miniature-container e-shadow",style:e.miniatureContainerStyle},[r("img",{ref:"miniatureImage",staticClass:"zoomable-img__miniature",attrs:{src:e.src,alt:e.alt}}),r("div",{staticClass:"zoomable-img__miniature-overlay",style:e.miniatureOverlayComputedStyle})]):e._e()])],2)])},Dc=[],Pc=H(Mc,Lc,Dc,!1,null,null,null,null);const pn=Pc.exports,Oc=A.extend({name:"EImagePlayer",components:{EZoomableImg:pn},directives:{ResizeObserver:Ke},mixins:[Ue,Ge],model:{prop:"frameIndex",event:"update-frame-index"},props:{frames:{type:Array,required:!0},timePerFrame:{type:Number,default:500},isPlaying:{type:Boolean,default:!1},frameIndex:{type:Number,default:0},height:{type:[String,Number],default:0},initialQuality:{type:[String,Number],default:"auto"},preload:{type:Boolean,default:!0},preloadSize:{type:Number,default:10},resetIndexOnFramesChange:{type:Boolean,default:!1},preloadWhilePlaying:{type:Boolean,default:!0},withControls:{type:Boolean,default:!0},playOnClick:{type:Boolean,default:!0},disablePlayPauseAnimation:{type:Boolean,default:!1},disablePlayButton:{type:Boolean,default:!1},isLive:{type:Boolean,default:!1},selectedSnapshotQuality:{type:[String,Number],default:"auto"},placeholderImage:{type:String,default:""},isMobile:{type:Boolean,default:!1},isZoomable:{type:Boolean,default:!0},isAnnotationActive:{type:Boolean,default:!1},aspectRatio:{type:Number,default:null},preloadingQueueId:{type:Number,default:0}},data(){return{src:this.placeholderImage,imageLoaded:!1,playing:!1,playerStyle:{},image:null,previousSrc:"",resolveImageLoadingPromise:()=>({}),preloadedFrames:[],preloadingFramesImgs:[],frameError:!1,animationId:-1,imgStyle:{},previousFrameIndex:0,isFullscreen:!1,mouseDownTime:0,playPauseAnimation:!1,latestValidSnapshotTimestamp:"",progressBar:null,isDraggingCursor:!1,hovered:!1,mousePosition:{x:0,y:0},screenHeight:screen.height}},computed:{imgProps(){return{id:"zoomable-img__img",ref:"image",crossorigin:"anonymous",class:"zoomable-img__img e-absolute e-w-full e-h-full e-object-contain e-z-10 d-block",dataTestId:"zoomable-img-image"}},playerDimensions(){return{width:"100%",height:this.height}},isLastFrame(){return this.frameIndex===this.frames.length-1},altText(){var t,e;return`${((t=this.frames[this.frameIndex])==null?void 0:t.label)||""} ${((e=this.frames[this.frameIndex])==null?void 0:e.timestamp)||""}`},playedPercentage(){return this.isLastFrame?100:Math.abs(this.frameIndex/this.frames.length*100)},mouseToWidthRatio(){var t,e,r;return this.mousePosition.x/((r=(e=(t=this.progressBar)==null?void 0:t.getBoundingClientRect())==null?void 0:e.width)!=null?r:1)},hoverBarStyle(){return{width:`${100*this.mouseToWidthRatio}%`}},hoveredFrameIndex(){return Math.round(this.mouseToWidthRatio*(this.frames.length-1))},progressStyle(){return{width:`${100*((this.isDraggingCursor?this.hoveredFrameIndex:this.frameIndex)/(this.frames.length-1))}%`}},preloadedChunks(){const t=[...this.preloadedFrames];return t.sort((e,r)=>e>r?1:-1),t.reduce((e,r)=>{if(!e.length)return[[r,r]];const[n,i]=e.slice(-1)[0]||[0,0];return r-i>1?[...e,[r,r]]:[...e.slice(0,-1),[n,r]]},[])}},watch:{frames:{handler(){var t;this.src=((t=this.frames[this.frameIndex])==null?void 0:t.src)||"",this.resetIndexOnFramesChange&&this.$emit("update-frame-index",0),this.imageLoaded=!0,this.preloadedFrames=[],this.flushPreloadingQueue(),this.$setTimeout(async()=>{this.updateRefs(),await this.loadTargetFrame(),this.handleBuffering()})},immediate:!0,deep:!0},isLastFrame(t){t&&this.$emit("frames-ended")},frameIndex:{immediate:!0,async handler(){this.frameIndex&&this.frameIndex===this.previousFrameIndex||(Number.isNaN(this.frameIndex)&&this.$emit("update-frame-index",0),this.frameIndex===0&&(this.previousFrameIndex=this.frameIndex),this.isLastFrame&&!this.isLive&&(this.playing=!1),this.playing||(this.cancelDelay(),await this.loadTargetFrame(),this.handleBuffering()))}},playing:{immediate:!0,async handler(t){t?this.play():this.pause(),this.animatePlayPauseOverlay()}},preloadedFrames:{handler(t,e){this.$emit("preloaded-frames-change",t)}},isPlaying:{immediate:!0,async handler(){this.playing=this.isPlaying}},selectedSnapshotQuality(){var t;this.src=(t=this.getFrameSrc(this.frames[this.frameIndex]))!=null?t:this.frames[this.frameIndex].src},isLive:{immediate:!0,handler(t){var e;t||(this.src=(e=this.frames[this.frameIndex])==null?void 0:e.src)}},imageLoaded(t){this.$emit("loading",!t)}},mounted(){this.$setTimeout(()=>{this.initializeFullscreenListeners(),this.progressBar=this.$refs.progressBar,this.$addEventListener("keydown",this.handleKeyDown)})},beforeDestroy(){this.cancelDelay(),this.flushPreloadingQueue(),this.removeFullscreenListeners()},methods:{getProgressBarMousePosition(t){var r;if(!this.progressBar)return{x:0,y:0};const e=(r=this.progressBar)==null?void 0:r.getBoundingClientRect();return{x:t.clientX-e.x,y:t.clientY-e.y}},onProgressBarMouseEnter(){this.hovered=!0},onProgressBarMouseMove(t){this.mousePosition=this.getProgressBarMousePosition(t)},onProgressBarMouseLeave(){this.hovered=!1,this.isDraggingCursor=!1},onProgressBarClick(){this.$emit("update-frame-index",this.hoveredFrameIndex),this.$emit("seek",this.hoveredFrameIndex)},getProgressBarChunkStyle(t,e){const[r,n]=[100*t/(this.frames.length-1),100*e/(this.frames.length-1)];return{left:`${r}%`,width:`${n-r}%`}},animatePlayPauseOverlay(){this.disablePlayPauseAnimation||(this.playPauseAnimation=!0,this.$setTimeout(()=>this.playPauseAnimation=!1,500))},isImageClick(t){const e=t==null?void 0:t.target;return e?e&&(e.id==="img-foreground"||typeof e.className=="string"&&e.className.indexOf("zoomable-img__img")!==-1):!1},onFrameMouseDown(t){!this.isImageClick(t)||!this.playOnClick||(this.mouseDownTime=new Date().getTime())},onFrameMouseUp(t){this.isLastFrame||this.disablePlayButton||!this.playOnClick||this.isAnnotationActive||!this.isImageClick(t)||new Date().getTime()-this.mouseDownTime>200||(this.playing=!this.playing)},removeFullscreenListeners(){const t=document;t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled?(t.removeEventListener("fullscreenchange",this.handleFullscreenChange),t.removeEventListener("webkitfullscreenchange",this.handleFullscreenChange),t.removeEventListener("mozfullscreenchange",this.handleFullscreenChange),t.removeEventListener("MSFullscreenChange",this.handleFullscreenChange)):console.log("Fullscreen API is not supported in this browser.")},initializeFullscreenListeners(){const t=document;t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled?(t.addEventListener("fullscreenchange",this.handleFullscreenChange),t.addEventListener("webkitfullscreenchange",this.handleFullscreenChange),t.addEventListener("mozfullscreenchange",this.handleFullscreenChange),t.addEventListener("MSFullscreenChange",this.handleFullscreenChange)):console.log("Fullscreen API is not supported in this browser.")},handleFullscreenChange(){const t=document;this.isFullscreen=!!t.fullscreenElement||!!t.mozFullScreenElement||!!t.webkitFullscreenElement||!!t.msFullscreenElement||window.innerWidth==screen.width&&window.innerHeight==screen.height},closeFullscreenMode(){document.fullscreenElement&&(Yr().then(()=>{this.isFullscreen=!1}),this.isFullscreen=!1)},openFullscreenMode(){const t=document.querySelector("#imagePlayer");t&&(Zr(t).then(()=>{this.isFullscreen=!0}),this.isFullscreen=!0)},toggleFullscreenMode(){this.isFullscreen?this.closeFullscreenMode():this.openFullscreenMode()},updateRefs(){var t,e,r;this.image=(r=(e=(t=this.$refs)==null?void 0:t.zoomableImage)==null?void 0:e.$refs)==null?void 0:r.image},incrementCurrentFrameIndex(){const t=this.frameIndex+1;this.frames[t]&&this.$emit("update-frame-index",t)},getFrameSrc(t){if(t)return t.srcSet?t.srcSet[this.selectedSnapshotQuality]:t.src},loadTargetFrame(){if(!(this.frameIndex&&this.frameIndex===this.previousFrameIndex))return new Promise(t=>{this.updateRefs(),this.previousSrc=this.src,this.previousFrameIndex=this.frameIndex,this.resolveImageLoadingPromise=t,this.src=this.getFrameSrc(this.frames[this.frameIndex])})},async handleBuffering(){this.preload&&await this.buffer()},async buffer(){let t=this.frameIndex+this.preloadSize;this.preloadSize===1/0&&(t=this.frames.length-1),await this.preloadFrames({start:this.frameIndex,end:t})},async preloadFrames({start:t,end:e}){const[r,n]=[Math.min(this.frames.length-1,t),Math.min(this.frames.length-1,e)],i=new Array(n-r+1).fill(0).map((a,u)=>a+r+u),o=this.preloadingQueueId;for(const a of i){if(o!==this.preloadingQueueId||this.playing&&!this.preloadWhilePlaying)return;this.preloadedFrames.includes(a)||await new Promise(s=>{const l=new Image;l.onload=()=>{this.preloadedFrames=[...this.preloadedFrames,a],s()},l.onerror=()=>{s()},this.preloadingFramesImgs=[...this.preloadingFramesImgs,l];const d=this.getFrameSrc(this.frames[a]);a||s(),l.src=d})}},async delay(){return this.frameError?(this.frameError=!1,Promise.resolve()):new Promise(t=>{const e=performance.now(),r=n=>{n-e<this.timePerFrame?this.animationId=window.requestAnimationFrame(r):t()};this.animationId=window.requestAnimationFrame(r)})},cancelDelay(){window.cancelAnimationFrame(this.animationId)},async play(){var r,n;const t=performance.now();if(this.isLastFrame&&!this.isLive){this.$emit("update-frame-index",0);return}this.$emit("update-playback",!0),this.playing=!0,this.cancelDelay(),this.incrementCurrentFrameIndex(),await this.$nextTick(),await this.loadTargetFrame(),this.handleBuffering(),await this.delay(),this.playing&&this.play();const e=performance.now();this.$emit("performance-intervals-changed",{id:(r=this.frames[this.frameIndex])==null?void 0:r.timestamp,frame:(n=this.frames[this.frameIndex])==null?void 0:n.label,duration:e-t})},flushPreloadingQueue(){this.$emit("cancel-previous-preloading"),this.preloadingFramesImgs.forEach(t=>{t.src=""}),this.preloadingFramesImgs=[]},async pause(){this.playing=!1,this.imageLoaded=!0,this.src=this.previousSrc,this.cancelDelay(),this.handleBuffering(),this.$emit("update-playback",!1)},onLoad(){var e,r,n,i;this.$emit("on-image-load",this.image),this.$emit("snapshot-changed",{data:(e=this.frames[this.frameIndex])==null?void 0:e.src,createdAt:(r=this.frames[this.frameIndex])==null?void 0:r.timestamp});const t=(i=(n=this.frames)==null?void 0:n[this.frameIndex])==null?void 0:i.timestamp;t&&this.$emit("timestamp-change",t),this.imageLoaded=!0,this.previousSrc=this.src,this.resolveImageLoadingPromise()},onError(t){if(this.frameIndex>1)return this.$emit("update-frame-index",this.frameIndex-1);this.frameError=!0,this.src=this.previousSrc,this.resolveImageLoadingPromise(),this.$emit("error",t)},onChange(t){this.$emit("change",t)},onBeforeUpdate(t){this.$emit("hook:beforeUpdate",t)},onBeforeDestroy(t){this.$emit("hook:beforeDestroy",t)},togglePlay(){this.playing=!this.playing},handleKeyDown(t){var r;const e=(r=document.activeElement)==null?void 0:r.tagName.toLowerCase();if(!(e==="input"||this.isAnnotationActive))switch(t.key.toLowerCase()){case" ":if(e==="button")return;this.disablePlayButton||this.togglePlay();break;case"escape":t.preventDefault(),this.closeFullscreenMode(),this.isFullscreen=!1;break}}}}),yd="";var zc=function(){var n,i;var e=this,r=e._self._c;return r("div",{staticClass:"e-image-player player e-h-full e-w-full",style:e.playerDimensions,attrs:{id:"imagePlayer"}},[r("div",{staticClass:"player__frames player-container",style:e.playerDimensions,attrs:{id:"img-container"},on:{pointerdown:e.onFrameMouseDown,pointerup:e.onFrameMouseUp}},[r("div",{staticClass:"e-h-full e-w-full e-shrink-0 e-relative"},[r("img",{staticClass:"e-absolute e-block e-w-full e-h-full background-fade",attrs:{src:e.src||((n=e.frames[e.frameIndex])==null?void 0:n.src)||"",alt:"background-image"}}),r("EZoomableImg",e._g(e._b({directives:[{name:"show",rawName:"v-show",value:e.imageLoaded&&e.src||e.placeholderImage,expression:"(imageLoaded && src) || placeholderImage"}],ref:"zoomableImage",attrs:{"img-props":{imgProps:e.imgProps},"overlay-style":{zIndex:1},src:e.src||((i=e.frames[e.frameIndex])==null?void 0:i.src)||e.placeholderImage||"",alt:e.altText,"hide-content-on-blur":!1,height:e.height.split("px")[0],"placeholder-image":e.placeholderImage,slider:!1,"is-mobile":e.isMobile,disabled:!e.isZoomable,"is-annotation-active":e.isAnnotationActive,"blur-background":""},on:{load:e.onLoad,error:e.onError,change:e.onChange,"hook:beforeUpdate":e.onBeforeUpdate,"hook:beforeDestroy":e.onBeforeDestroy},scopedSlots:e._u([{key:"imageOverlay",fn:function(){return[e._t("default"),e._t("imageOverlay",null,{image:e.image})]},proxy:!0}],null,!0)},"EZoomableImg",e.$attrs,!1),e.$listeners),[e._t("player-container-overlay")],2),e.playPauseAnimation?r("div",{staticClass:"image-player-overlay e-flex e-items-center e-justify-center"},[r("div",{staticClass:"image-player-overlay__wrapper"},[e.playing?r("svg",{attrs:{height:"100%",viewBox:"-1 0 36 36",width:"100%"}},[r("path",{attrs:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}})]):r("svg",{attrs:{height:"100%",viewBox:"0.5 0 36 36",width:"100%"}},[r("path",{attrs:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}})])])]):e._e(),e._t("imagePlayerOverlay")],2)]),e._t("controls",function(){return[e.withControls?r("div",{staticClass:"e-absolute e-bottom-0 e-w-[97%] e-p-4 e-pt-8 e-z-50 e-space-y-4 e-bg-gradient-to-t e-from-[#363434] e-to-transparent"},[r("div",{staticClass:"e-font-semibold e-text-white"},[e._v(" "+e._s(e.frames[e.frameIndex].label)+" - "+e._s(e.frameIndex)+" / "+e._s(e.frames.length-1)+" ")]),r("div",{staticClass:"e-flex e-justify-start e-gap-2 e-items-center"},[r("button",{staticClass:"e-text-white e-bg-transparent e-border-none e-cursor-pointer action-btn__first-vertical e-rounded-md",on:{click:e.togglePlay}},[r("i",{staticClass:"fas fa-2x",class:{"fa-play":!e.playing,"fa-pause":e.playing}})]),r("div",{ref:"progressBar",staticClass:"e-w-full e-h-3 e-relative e-bg-gray-200 e-rounded-md",on:{click:e.onProgressBarClick,mouseenter:e.onProgressBarMouseEnter,mousemove:e.onProgressBarMouseMove,mouseleave:e.onProgressBarMouseLeave}},[r("div",{staticClass:"e-bg-blue-500 e-w-full e-h-full e-absolute e-rounded-md e-z-[1]",style:{width:`${e.playedPercentage}%`}}),e._l(e.preloadedChunks,function([o,a]){return r("div",{key:a,staticClass:"e-bg-blue-300 e-h-full e-absolute e-rounded-md",style:e.getProgressBarChunkStyle(o,a)})})],2),r("button",{ref:"fullScreenBtn",staticClass:"e-text-white e-bg-transparent e-border-none e-cursor-pointer action-btn__second-vertical e-rounded-md",on:{click:e.toggleFullscreenMode}},[r("i",{staticClass:"fas fa-2x",class:{"fa-expand":!e.isFullscreen,"fa-compress":e.isFullscreen}})])])]):e._e()]},{playing:e.playing,togglePlay:e.togglePlay,play:e.play,pause:e.pause,toggleFullscreen:e.toggleFullscreenMode,preloadedFrames:e.preloadedFrames,isLastFrame:e.isLastFrame})],2)},Bc=[],Ic=H(Oc,zc,Bc,!1,null,null,null,null);const fs=Ic.exports,Fc=A.extend({name:"ELayout",directives:{ResizeObserver:Ke},mixins:[Ue],props:{height:{type:[String,Number],default:null},withOverlay:{type:Boolean,default:!1}},data(){return{footerHeight:0,overlayFooterHeight:0,wrapperStyle:{width:"100%",height:"100%"},mainStyle:{width:"100%",height:"100%"},mainHeight:"100%"}},computed:{bottomStyle(){return{bottom:`${this.overlayFooterHeight}px`}}},watch:{mainHeight(){this.onResize()},height:{immediate:!0,handler(){this.onResize()}}},mounted(){this.setOverlayFooterHeight(),this.setFooterHeight()},methods:{onResize(){this.setFooterHeight(),this.setOverlayFooterHeight()},onOverlayClick(t){this.$emit("overlay-click",t)},setOverlayFooterHeight(){const t=this.$refs.overlayFooter;t||this.$setTimeout(()=>{this.setOverlayFooterHeight()}),this.overlayFooterHeight=t==null?void 0:t.clientHeight},setFooterHeight(){const t=this.$refs.footer;t||this.$setTimeout(()=>{this.setFooterHeight()}),this.footerHeight=t==null?void 0:t.clientHeight,this.$attrs.isFullscreen?this.mainHeight=`${screen.height}px`:this.mainHeight=`${this.height?this.height.split("px")[0]-this.footerHeight:"100"}px`,this.mainStyle={width:"100%",height:this.mainHeight}}}});var Ac=function(){var e=this,r=e._self._c;return r("div",e._b({directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResize,expression:"onResize"}],ref:"globalLayout",staticClass:"e-layout e-w-full e-h-full e-relative",style:{width:"100%",height:e.mainHeight},attrs:{id:"globalLayout"}},"div",e.$attrs,!1),[r("div",{staticClass:"e-layout__container e-relative",style:e.mainStyle},[r("div",{staticClass:"e-layout__main e-w-full e-h-full e-absolute e-inset-0 e-z-0",style:e.mainStyle},[e._t("main",null,{size:{...e.mainStyle}})],2),e.withOverlay?r("div",{staticClass:"e-layout__overlay e-w-full e-h-full e-absolute e-inset-0 e-z-[1]",style:e.mainStyle,on:{click:e.onOverlayClick}},[e._t("overlay",null,{size:{...e.mainStyle}})],2):e._e(),r("div",{staticClass:"e-layout__top-left e-absolute e-left-0 e-top-0 e-z-[2]"},[e._t("top-left")],2),r("div",{staticClass:"e-absolute e-right-0 e-top-0 e-layout__top-right e-z-[2]"},[e._t("top-right")],2),r("div",{staticClass:"e-absolute e-right-0 e-bottom-10 e-layout__bottom-right e-z-[2]",style:e.bottomStyle},[e._t("bottom-right")],2),r("div",{staticClass:"e-absolute e-left-0 e-bottom-10 e-layout__bottom-left e-z-[2]",style:e.bottomStyle},[e._t("bottom-left")],2),r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.setOverlayFooterHeight,expression:"setOverlayFooterHeight"}],ref:"overlayFooter",staticClass:"e-absolute e-bottom-0 e-left-0 e-right-0 e-layout__overlay-footer e-z-[2]"},[e._t("overlay-footer")],2)]),r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.setFooterHeight,expression:"setFooterHeight"}],ref:"footer",staticClass:"e-layout__footer e-relative e-z-[2]"},[e._t("footer")],2)])},Rc=[],Hc=H(Fc,Ac,Rc,!1,null,null,null,null);const ps=Hc.exports;var Nc=H({name:"EContextProvider",provide(){return{...this.$props.context}},props:{context:{type:Object,required:!0}},render(){return this.$scopedSlots.default()}},null,null,!1,null,null,null,null);const jc=Nc.exports,Gc=A.extend({name:"EChatWrapper",props:{dark:{type:Boolean,default:!1},embedded:{type:Boolean,default:!1}},computed:{borderClasses(){return this.embedded?{}:{"e-border-[1px] e-border-solid e-rounded-lg e-overflow-hidden":!0,"e-border-gray-300":!this.dark,"e-border-gray-600":this.dark}},wrapperClasses(){return{"e-bg-gray-800 e-text-white":this.dark,"e-bg-white e-text-gray-800":!this.dark,...this.borderClasses}}}}),wd="";var Wc=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-chat-wrapper e-h-full",class:e.wrapperClasses},[e._t("default")],2)},qc=[],Uc=H(Gc,Wc,qc,!1,null,null,null,null);const Zc=Uc.exports,Yc=A.extend({name:"EChatHeader",components:{EAvatar:Mt},props:{size:{type:String,default:"xs"},backgroundClasses:{type:String,default:""}}}),Sd="";var Xc=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EAvatar",{staticClass:"e-evercam-logo",attrs:{image:"https://dash.evercam.io/evercam-logo.svg",size:e.size,"background-classes":e.backgroundClasses}})},Vc=[],Qc=H(Yc,Xc,Vc,!1,null,null,null,null);const ms=Qc.exports,Kc=A.extend({name:"EChatHeader",components:{EEvercamLogo:ms},props:{title:{type:String,default:"Evercam Copilot"},hidden:{type:Boolean,default:!1},dark:{type:Boolean,default:!1}},computed:{backgroundClasses(){return{"e-bg-gray-700":this.dark,"e-bg-gray-50":!this.dark}},headerClasses(){return{"e-hidden":this.hidden,...this.backgroundClasses}}}});var Jc=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-chat-header e-flex e-items-center e-justify-between",class:e.headerClasses},[r("div",{staticClass:"e-chat-logo e-flex e-w-full e-items-center e-justify-start e-gap-2 e-px-5 e-py-4"},[e._t("logo",function(){return[r("div",{},[r("EEvercamLogo",{attrs:{size:"xs","background-classes":"e-bg-white e-p-[2px] e-rounded-full !e-pr-[2.5px] !e-pt-[3.5px]"}})],1)]}),r("div",{staticClass:"e-font-semibold e-h-min e-text-base"},[e._v(e._s(e.title))]),e._t("chip")],2),e._t("append")],2)},e8=[],t8=H(Kc,Jc,e8,!1,null,null,null,null);const r8=t8.exports,n8=A.extend({name:"EChatBody",directives:{ResizeObserver:Ke},props:{dark:{type:Boolean,default:!1}},data(){return{autoScroll:!0,previousChildCount:0,showGoToBottomButton:!1}},computed:{bodyClasses(){return{"e-custom-scrollbar--light":!this.dark,"e-custom-scrollbar--dark":this.dark}},goToBottomButtonClasses(){return{"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"e-bg-gray-600":this.dark,"e-bg-gray-200":!this.dark}}},watch:{autoScroll(t){t&&this.scrollToBottom()}},mounted(){this.scrollToBottom()},methods:{onContentResized(){const e=this.$refs.contentWrapper.childElementCount;e!==this.previousChildCount&&(this.autoScroll=!0),this.autoScroll&&this.scrollToBottom(),this.previousChildCount=e},scrollToBottom(){const t=this.$refs.anchor;this.$nextTick(()=>{t.scrollIntoView({behavior:"smooth"})})},disableAutoScroll(){this.autoScroll=!1},onScroll(){const t=this.$refs.chatBody;t.scrollHeight-t.scrollTop<=t.clientHeight+1&&(this.autoScroll=!0),this.showGoToBottomButton=t.scrollHeight-t.scrollTop>t.clientHeight+100},onWheel(t){t.deltaY<0&&this.disableAutoScroll()},onKeyUp(t){["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"].includes(t.key)&&this.disableAutoScroll()},onTouch(){this.disableAutoScroll()},onTouchMove(){this.disableAutoScroll()}}}),Td="";var i8=function(){var e=this,r=e._self._c;return r("div",e._b({ref:"chatBody",staticClass:"e-chat-body e-space-y-2 e-py-3 e-px-5 e-leading-6",class:e.bodyClasses,attrs:{tabindex:"0"},on:{scroll:e.onScroll,wheel:e.onWheel,keyup:function(n){return n.stopPropagation(),e.onKeyUp.apply(null,arguments)},touchstart:e.onTouch,touchmove:e.onTouchMove}},"div",e.$attrs,!1),[r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onContentResized,expression:"onContentResized"}],ref:"contentWrapper",staticClass:"e-chat-body__content"},[e._t("default")],2),r("div",{ref:"anchor",staticClass:"e-chat-body__anchor"}),e.showGoToBottomButton?r("div",{staticClass:"e-chat-body__go-to-bottom e-sticky e-bottom-1 e-flex e-justify-center"},[r("button",{staticClass:"e-animate-bounce e-inline-flex e-items-center e-justify-center e-cursor-pointer e-h-8 e-w-8 e-border-none focus:e-outline-none e-rounded-full",class:e.goToBottomButtonClasses,on:{click:e.scrollToBottom}},[r("EIcon",{attrs:{icon:"arrow-down",size:"Base"}})],1)]):e._e()])},s8=[],a8=H(n8,i8,s8,!1,null,null,null,null);const o8=a8.exports,l8=A.extend({props:{size:{type:Number,default:12},color:{type:String,default:"#c5393d"},withDot:{type:Boolean,default:!0}},computed:{computedSize(){return`${this.size}px`},computedMargin(){return`${this.size/2}px`},computedShadowSize(){return`${this.size*2}px`},computedSecondaryColor(){return ht(this.color,0)||"#fff"},dotContainerStyle(){return{margin:`${this.computedMargin} auto`,width:this.computedSize,height:this.computedSize,position:"relative"}},shadowStyle(){return{width:this.computedSize,height:this.computedSize,"--boxShadowColor":ht(this.color,.7),"--backgroundColor":ht(this.color,.7),"--secondaryColor":this.computedSecondaryColor,"--shadowSize":this.computedShadowSize}},secondShadowStyle(){return{...this.shadowStyle,animationDelay:".33s",animationDuration:"2.3s"}},dotStyle(){return{width:this.computedSize,height:this.computedSize,backgroundColor:this.withDot?ht(this.color,1):void 0}}},methods:{toRgba:ht}}),kd="";var c8=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-pulsating-dot",style:e.dotContainerStyle},[r("span",{staticClass:"e-pulsating-dot__shadow",style:e.shadowStyle}),r("span",{staticClass:"e-pulsating-dot__shadow",style:e.secondShadowStyle}),r("div",{staticClass:"e-pulsating-dot__dot",style:e.dotStyle},[e._t("icon")],2)])},u8=[],d8=H(l8,c8,u8,!1,null,"cf575c64",null,null);const h8=d8.exports;var gs={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(typeof self!="undefined"?self:ot,()=>(()=>{var r={75:function(a){(function(){var u,s,l,d,p,m;typeof performance!="undefined"&&performance!==null&&performance.now?a.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(a.exports=function(){return(u()-p)/1e6},s=process.hrtime,d=(u=function(){var b;return 1e9*(b=s())[0]+b[1]})(),m=1e9*process.uptime(),p=d-m):Date.now?(a.exports=function(){return Date.now()-l},l=Date.now()):(a.exports=function(){return new Date().getTime()-l},l=new Date().getTime())}).call(this)},4087:(a,u,s)=>{for(var l=s(75),d=typeof window=="undefined"?s.g:window,p=["moz","webkit"],m="AnimationFrame",b=d["request"+m],x=d["cancel"+m]||d["cancelRequest"+m],h=0;!b&&h<p.length;h++)b=d[p[h]+"Request"+m],x=d[p[h]+"Cancel"+m]||d[p[h]+"CancelRequest"+m];if(!b||!x){var y=0,$=0,D=[];b=function(S){if(D.length===0){var R=l(),E=Math.max(0,16.666666666666668-(R-y));y=E+R,setTimeout(function(){var j=D.slice(0);D.length=0;for(var Q=0;Q<j.length;Q++)if(!j[Q].cancelled)try{j[Q].callback(y)}catch(U){setTimeout(function(){throw U},0)}},Math.round(E))}return D.push({handle:++$,callback:S,cancelled:!1}),$},x=function(S){for(var R=0;R<D.length;R++)D[R].handle===S&&(D[R].cancelled=!0)}}a.exports=function(S){return b.call(d,S)},a.exports.cancel=function(){x.apply(d,arguments)},a.exports.polyfill=function(S){S||(S=d),S.requestAnimationFrame=b,S.cancelAnimationFrame=x}}},n={};function i(a){var u=n[a];if(u!==void 0)return u.exports;var s=n[a]={exports:{}};return r[a].call(s.exports,s,s.exports,i),s.exports}i.n=a=>{var u=a&&a.__esModule?()=>a.default:()=>a;return i.d(u,{a:u}),u},i.d=(a,u)=>{for(var s in u)i.o(u,s)&&!i.o(a,s)&&Object.defineProperty(a,s,{enumerable:!0,get:u[s]})},i.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),i.o=(a,u)=>Object.prototype.hasOwnProperty.call(a,u);var o={};return(()=>{i.d(o,{default:()=>X});var a=i(4087),u=i.n(a);const s=function(I){return new RegExp(/<[a-z][\s\S]*>/i).test(I)},l=function(I,T){return Math.floor(Math.random()*(T-I+1))+I};var d="TYPE_CHARACTER",p="REMOVE_CHARACTER",m="REMOVE_ALL",b="REMOVE_LAST_VISIBLE_NODE",x="PAUSE_FOR",h="CALL_FUNCTION",y="ADD_HTML_TAG_ELEMENT",$="CHANGE_DELETE_SPEED",D="CHANGE_DELAY",S="CHANGE_CURSOR",R="PASTE_STRING",E="HTML_TAG";function j(I){return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},j(I)}function Q(I,T){var P=Object.keys(I);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(I);T&&(N=N.filter(function(ne){return Object.getOwnPropertyDescriptor(I,ne).enumerable})),P.push.apply(P,N)}return P}function U(I){for(var T=1;T<arguments.length;T++){var P=arguments[T]!=null?arguments[T]:{};T%2?Q(Object(P),!0).forEach(function(N){L(I,N,P[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(P)):Q(Object(P)).forEach(function(N){Object.defineProperty(I,N,Object.getOwnPropertyDescriptor(P,N))})}return I}function C(I){return function(T){if(Array.isArray(T))return z(T)}(I)||function(T){if(typeof Symbol!="undefined"&&T[Symbol.iterator]!=null||T["@@iterator"]!=null)return Array.from(T)}(I)||function(T,P){if(T){if(typeof T=="string")return z(T,P);var N=Object.prototype.toString.call(T).slice(8,-1);return N==="Object"&&T.constructor&&(N=T.constructor.name),N==="Map"||N==="Set"?Array.from(T):N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N)?z(T,P):void 0}}(I)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
236
+ 23 59 9 57 541 57 l488 0 24 -24z`}})])])},J6=[],e4=H(Q6,K6,J6,!1,null,null,null,null);const t4=e4.exports,r4=A.extend({name:"ZohoCrm",components:{BaseIcon:de},props:{color:{type:String,default:"grey"}}});var n4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{height:"20",width:"20",viewBox:"16 -9 5 40",small:!0,color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{stroke:e.color,"stroke-width":"1",d:"M26.2 24c-3.2 0-6.2-1.2-8.4-3.5l-6.6-6.6c-.8-.8-1.2-1.8-1.2-2.9s.4-2.1 1.2-2.9C11.9 7.4 12.9 7 14 7c1.1 0 2.1.4 2.9 1.2l6.1 6.1c.7.7 1.9.7 2.6 0 .3-.3.5-.8.5-1.3s-.2-1-.5-1.3L19 5.1c-2-1.9-4.4-2.9-7-2.9-2.7 0-5.1 1-7 2.9-1.8 1.9-2.8 4.4-2.8 7 .1 2.6 1.1 5 2.9 6.8 1.8 1.8 4.3 2.8 6.8 2.8.9 0 1.9-.1 2.8-.4.6-.2 1.2.2 1.4.8.2.6-.2 1.2-.8 1.4-1 .4-2.1.5-3.3.5-3.2 0-6.2-1.2-8.4-3.4C1.3 18.4.1 15.4 0 12.3c0-1.7.3-3.3.9-4.8s1.4-2.8 2.5-3.9 2.4-2 3.8-2.6c1.5-.6 3.1-1 4.7-1 3.2 0 6.2 1.2 8.4 3.5l6.6 6.6c.8.8 1.2 1.8 1.2 2.9s-.4 2.1-1.2 2.9c-1.6 1.6-4.2 1.6-5.7 0l-6.1-6.1c-.7-.7-1.9-.7-2.6 0-.3.3-.5.8-.5 1.3s.2 1 .5 1.3l6.6 6.6c1.8 1.8 4.3 2.8 6.9 2.8s5.1-1 6.9-2.9c1.8-1.8 2.9-4.3 2.9-6.9s-1-5.1-2.9-6.9c-1.8-1.8-4.3-2.9-6.9-2.9-.8 0-1.7.1-2.5.3-.1 0-.2.1-.3.1-.6.2-1.2-.2-1.4-.8-.2-.6.2-1.2.8-1.4.1 0 .3-.1.4-.1 1-.3 2-.4 3-.4 1.6 0 3.2.3 4.7.9 1.4.6 2.7 1.5 3.8 2.6s2 2.4 2.6 3.8c.6 1.5.9 3.1.9 4.7 0 3.2-1.3 6.2-3.5 8.5-2.1 2.4-5.1 3.6-8.3 3.6z"}})])},i4=[],s4=H(r4,n4,i4,!1,null,null,null,null);const a4=s4.exports,o4=A.extend({name:"Tag",components:{BaseIcon:de},props:{color:{type:String,default:"#000"},backgroundColor:{type:String,default:"white"}}});var l4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{small:!0,width:"24",height:"24",viewBox:"0 0 24 24"}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{fill:e.color,d:"M22,4C22,2.89 21.1,2 20,2H4A2,2 0 0,0 2,4V16A2,2 0 0,0 4,18H18L22,22V4Z"}}),r("line",{attrs:{x1:"6",y1:"7",x2:"18",y2:"7",stroke:e.backgroundColor,"stroke-width":"2"}}),r("line",{attrs:{x1:"6",y1:"10",x2:"18",y2:"10",stroke:e.backgroundColor,"stroke-width":"2"}}),r("line",{attrs:{x1:"6",y1:"13",x2:"18",y2:"13",stroke:e.backgroundColor,"stroke-width":"2"}})])},c4=[],u4=H(o4,l4,c4,!1,null,null,null,null);const d4=u4.exports,h4=A.extend({name:"Tag",components:{BaseIcon:de},props:{color:{type:String,default:"#000"},backgroundColor:{type:String,default:"white"}}});var f4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{small:!0,width:"24",height:"24",viewBox:"0 0 24 24"}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{fill:e.color,d:"M22,4C22,2.89 21.1,2 20,2H4A2,2 0 0,0 2,4V16A2,2 0 0,0 4,18H18L22,22V4Z"}}),r("line",{attrs:{x1:"12",y1:"6",x2:"12",y2:"14",stroke:e.backgroundColor,"stroke-width":"2"}}),r("line",{attrs:{x1:"8",y1:"10",x2:"16",y2:"10",stroke:e.backgroundColor,"stroke-width":"2"}})])},p4=[],m4=H(h4,f4,p4,!1,null,null,null,null);const g4=m4.exports,v4=A.extend({name:"Nerves",components:{BaseIcon:de},props:{color:{type:String,default:"white"}}});var _4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._g(e._b({attrs:{small:!0,width:"39px",height:"32px",viewBox:"0 0 39 32"}},"BaseIcon",e.$attrs,!1),e.$listeners),[r("g",{attrs:{transform:"translate(-150.000000, -24.000000)",fill:"#FFFFFF","fill-rule":"nonzero"}},[r("g",{attrs:{transform:"translate(150.000000, 24.000000)"}},[r("path",{style:`fill: ${e.color}`,attrs:{d:"M36.8961538,0.0347826087 C37.9157565,0.0347826087 38.7423077,0.875708644 38.7423077,1.91304348 L38.7423077,1.91304348 L38.7423077,30.0947826 C38.7423077,31.1321174 37.9157565,31.9730435 36.8961538,31.9730435 L36.8961538,31.9730435 L29.4846154,31.9730435 L29.4884615,31.9886957 C29.0885173,31.9836286 28.7010575,31.8462773 28.3846154,31.5973913 L28.3846154,31.5973913 L10.4,17.9565217 C9.92639703,17.5948183 9.6506735,17.0250601 9.65756147,16.4226087 L9.65756147,16.4226087 L9.65756147,15.64 C9.65686375,14.933417 10.0458734,14.2861439 10.6644383,13.9648756 C11.2830032,13.6436073 12.0264516,13.7027078 12.5884615,14.1178261 L12.5884615,14.1178261 L29.7038462,26.7373913 C30.0199016,26.968534 30.3992227,27.0930678 30.7884615,27.0934783 L30.7884615,27.0934783 L32.0923077,27.0934783 C32.5822513,27.09452 33.0524229,26.8969669 33.3988661,26.5444986 C33.7453093,26.1920303 33.9394855,25.7136818 33.9384615,25.2152174 L33.9384615,25.2152174 L33.9384615,6.79652174 C33.9394855,6.29805736 33.7453093,5.81970886 33.3988661,5.46724054 C33.0524229,5.11477223 32.5822513,4.91721914 32.0923077,4.91826087 L32.0923077,4.91826087 L30.7153846,4.91826087 C30.225441,4.9193026 29.7552694,4.72174951 29.4088262,4.36928119 C29.062383,4.01681288 28.8682069,3.53846438 28.8692308,3.04 L28.8692308,3.04 L28.8692308,1.91304348 C28.8692308,0.875708644 29.695782,0.0347826087 30.7153846,0.0347826087 L30.7153846,0.0347826087 Z M9.29615385,0.00739130435 C9.69614711,0.0121740752 10.0836931,0.149555936 10.4,0.398695652 L10.4,0.398695652 L28.3846154,14.0434783 C28.8571972,14.4035114 29.1305978,14.972929 29.1192308,15.5734783 L29.1192308,15.5734783 L29.1192308,16.356087 C29.1190118,17.0612911 28.7305478,17.7069474 28.1133582,18.0279227 C27.4961685,18.348898 26.7542665,18.2910992 26.1923077,17.8782609 L26.1923077,17.8782609 L9.08461538,5.27043478 C8.76974759,5.03645424 8.389914,4.91038181 8,4.91043478 L8,4.91043478 L6.68461538,4.91043478 C6.19431782,4.9104337 5.72415756,5.10885839 5.37782578,5.4619474 C5.031494,5.81503642 4.83744009,6.2937853 4.83846154,6.7926087 L4.83846154,6.7926087 L4.83846154,25.1995652 C4.83846154,26.2369001 5.66501277,27.0778261 6.68461538,27.0778261 L6.68461538,27.0778261 L8.07692308,27.0778261 C8.5668667,27.0767844 9.0370383,27.2743374 9.38348152,27.6268058 C9.72992473,27.9792741 9.92410084,28.4576226 9.92307692,28.956087 L9.92307692,28.956087 L9.92307692,30.0869565 C9.92413223,30.588151 9.72784822,31.0688985 9.37806512,31.4218238 C9.02828202,31.774749 8.55413977,31.9704502 8.06153846,31.9653197 L8.06153846,31.9653197 L1.88461538,31.9653197 C0.86501277,31.9653197 0.03844549,31.1242914 0.03844549,30.0869565 L0.03844549,30.0869565 L0.03844549,1.91304348 C0.0364158462,1.41354313 0.230017315,0.933787137 0.576460295,0.579850445 C0.922903275,0.225913753 1.39364925,0.0269521857 1.88461538,0.0269565217 L1.88461538,0.0269565217 L9.29615385,0.0269565217 Z"}})])])])},y4=[],C4=H(v4,_4,y4,!1,null,null,null,null);const b4=C4.exports,x4={Back10:C2,Forward10:m2,Bim:u2,Brightness:T2,Blur:L2,Compare:B2,ConcretePump:H2,CompactExcavator:rs,DroneView:q2,Dumper:V2,Evercam:t3,EvercamLogo:a3,Excavator:rs,FlatbedSemiTrailer:m3,FreeDrawing:C3,IModel:T3,Inspection:L3,Loader:B3,MiniModel:H3,MarkUp:t4,Nerves:b4,OtherTruck:ns,RoadVehicle:X3,Roller:e6,Robot:s6,SemiTrailer:u6,SkidSteerLoader:m6,SmallTruck:C6,TankTruck:T6,The360:L6,TippingTruck:B6,TruckHead:H6,TruckMixer:q6,Unknown:ns,Worker:V6,ZohoCrm:a4,Tag:d4,TagPlus:g4},w4=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),is=Object.fromEntries(Object.entries(x4).map(([t,e])=>[w4(t),e])),S4=A.extend({name:"ESvgIcon",components:{...is},props:{icon:{type:String,default:""}},computed:{svgIconComponent(){return is[this.icon]}}});var T4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r(e.svgIconComponent,e._g(e._b({tag:"component",staticClass:"e-svg-icon"},"component",e.$attrs,!1),e.$listeners))},k4=[],$4=H(S4,T4,k4,!1,null,null,null,null);const ss=$4.exports,hd="",E4={name:"ECalendarHeatmap",components:{EIcon:qe},mixins:[Ue],props:{items:{type:Array,default:()=>[]},startDate:{type:String,default:""},endDate:{type:String,default:""},dayRectSize:{type:Number,default:11},dayGutterSize:{type:Number,default:2},monthGutterSize:{type:Number,default:12},textSize:{type:Number,default:11},borderRadius:{type:Number,default:1},disableMissing:{type:Boolean,default:!1},selectedDate:{type:[String],default:""},labelFn:{type:Function,default:({date:t,count:e})=>`${t}, ${e}`},isDisabledFn:{type:Function,default:()=>!1},highlightColorFn:{type:[Function,null],default:null},colors:{type:Array,default:()=>["#ebedf0","#c0ddf9","#73b3f3","#3886e1","#17459e"]},visibleWeekDays:{type:Array,default:()=>[1,3,5]},controls:{type:Boolean,default:!0},legend:{type:Boolean,default:!0},fullWidth:{type:Boolean,default:!1},isDark:{type:Boolean,default:!1},disabledColor:{type:String,default:"#bababa"}},data(){return{tooltipVisibility:!1,tooltipPositionX:0,tooltipPositionY:0,tooltipContent:"",tooltipItem:"",hoveredDayDate:"",smallTextRatio:.9,daysOffset:0}},computed:{_startDate(){return this._moment(this.startDate).add({days:this.daysOffset}).format("YYYY-MM-DD")},_endDate(){return this._moment(this.endDate).add({days:this.daysOffset}).format("YYYY-MM-DD")},svgWidth(){const t=this._moment(this._endDate).format("YYYY-MM");return this.fullWidth?"calc(100% - 30px)":this.monthsHorizontalTranslations[t]+this.getMonthWidth(this._endDate)},svgHeight(){return this.monthOffsetTop+this.monthHeight+(this.legend?2*this.dayRectSize:0)},maxCount(){return this.items.reduce((t,e)=>Math.max(e.count,t),0)},itemsMap(){return this.items.reduce((t,e)=>({...t,[e.day]:{...e,count:e.count,label:this.labelFn(e),disabled:e.disabled}}),{})},datesTree(){let t={},e=this._moment(this._startDate);const r=new Date(this._endDate).getTime();for(;e<=r;){const n=e.format("YYYY"),i=e.format("MM"),o=e.format("YYYY-MM-DD");let a={...this.itemsMap[o],date:o,selected:o===this.selectedDate};this.itemsMap[o]||(a={...a,count:0,date:o,disabled:this.isDisabledFn(o)},a={...a,label:this.labelFn(a)}),t={...t,[`${n}-${i}`]:{...t[`${n}-${i}`],[o]:{...a,weekDay:e.day(),weekNumber:this.getWeekOfMonth(e)}}},e.add({days:1})}return t},monthsHorizontalTranslations(){const t=this._moment(this._startDate),e=this._moment(this._startDate).startOf("month"),r=this.dayFullSize*(this.getWeekOfMonth(t)-this.getWeekOfMonth(e)),n=this._moment(this._startDate).startOf("month"),i=this._moment(this._endDate).startOf("month"),o=this._moment(n);let a={},u=-r,s;for(;o<=i;){let l=s?this.getMonthWidth(s):0;const d=o.startOf("month").day()===0;let p=0;d&&o>n&&(p=this.monthGutterSize);let m=this.dayFullSize;u+=l+this.monthGutterSize-m+p,a[o.format("YYYY-MM")]=u,s=o.clone(),o.add({months:1})}return a},dayFullSize(){return this.dayRectSize+this.dayGutterSize},monthOffsetTop(){return this.textSize*2},monthOffsetLeft(){return 2.5*this.textSize},monthHeight(){return this.dayFullSize*7},textStyle(){return{fontSize:`${this.textSize}px`}},legendStyle(){const t=this.dayRectSize/2;return{transform:`translate(${t+this.monthOffsetLeft}px, ${this.monthHeight+this.monthOffsetTop+t}px)`}},legendPrefixTextStyle(){return{fontSize:this.textSize*this.smallTextRatio,transform:`translate(${this.dayGutterSize*2}px, ${this.dayRectSize*this.smallTextRatio}px)`,fill:this.fillTextColor}},legendPrefixTextWidth(){return 4*this.textSize*this.smallTextRatio-2*this.dayGutterSize},legendSuffixTextStyle(){const t=(this.dayRectSize+this.dayGutterSize*2)*this.colors.length+this.legendPrefixTextWidth,e=this.dayGutterSize;return{fontSize:this.textSize*this.smallTextRatio,transform:`translate(${e+t}px, ${this.dayRectSize*this.smallTextRatio}px)`,fill:this.fillTextColor}},fillTextColor(){return this.isDark?"white":"black"}},methods:{_moment(...t){return ke(...t).locale("en")},getWeekOfMonth(t){let e=t.week();return t.year()!==t.weekYear()&&(e=t.clone().subtract(1,"week").week()+1),e-this._moment(t).startOf("month").week()+1},getWeekDayTextStyle(t){return this.visibleWeekDays.includes(t)?{...this.textStyle,transform:`translate(${this.dayRectSize}px, ${t*this.dayFullSize+3*this.textSize/4+this.monthOffsetTop}px)`,fill:this.fillTextColor}:{display:"none"}},getMonthTextStyle(t,e){const r=ke.duration(this._moment(this._endDate).diff(this._moment(e))).asDays(),n=ke.duration(this._moment(e).endOf("month").diff(this._moment(this._startDate))).asDays();if(r<15||n<15)return{display:"none"};const i=this.isStartOfYear(e)?this.textSize:0;return{...this.textStyle,transform:`translate(${this.getMonthWidth(e)/2+this.textSize/3-i}px, -${this.textSize*2/3}px)`,fill:this.fillTextColor}},getMonthStyle(t,e){return{transform:`translate(${this.monthsHorizontalTranslations[e]+this.monthOffsetLeft}px, ${this.monthOffsetTop}px)`}},getMonthWidth(t){const e=this._moment(t).endOf("month");return this.dayFullSize*this.getWeekOfMonth(e)},getHighlightStyle(t,e){if(!this.highlightColorFn||typeof this.highlightColorFn!="function")return{};const r=this.highlightColorFn(e);return r?{strokeWidth:t.selected?2:1,stroke:r}:{}},getDayStyle(t,e){let r={};return t.selected&&(r={stroke:this.fillTextColor}),{transform:`translate(${t.weekNumber*this.dayFullSize}px, ${t.weekDay*this.dayFullSize}px)`,fill:`${this.getDayColor(t.count)}`,...this.getHighlightStyle(t,e),...r}},getDisabledDayPath(t){const e=t.weekNumber*this.dayFullSize,r=t.weekDay*this.dayFullSize,n=e+this.dayRectSize,i=r+this.dayRectSize,o=e+this.dayRectSize/2,a=r+this.dayRectSize/2;return[`M ${e} ${r}`,`L ${o} ${a}`,`L ${e} ${i}`,`M ${n} ${r}`,`L ${o} ${a}`,`L ${n} ${i}`].join(" ")},getDayColor(t){const e=Math.ceil(t/this.maxCount*(this.colors.length-1));return this.colors[e]},getLegendRectStyle(t){return{transform:`translateX(${(this.dayRectSize+this.dayGutterSize*2)*t+this.legendPrefixTextWidth}px)`}},isStartOfYear(t){return ke(t).get("month")===0},getMonthText(t){return this._moment(t).format(this.isStartOfYear(t)?"MMM YYYY":"MMM")},onDayRectMouseEnter(t,e){this.tooltipItem=e,this.tooltipContent=e.label,this.tooltipVisibility=!0,this.hoveredDayDate=e.date,this.$nextTick(()=>{this.calculateTooltipPosition(t)})},calculateTooltipPosition(t){var d;const e=this.$el.getBoundingClientRect(),r=((d=t.target)==null?void 0:d.getBoundingClientRect())||{x:0,y:0},n=r.left-e.left,i=r.top-e.top,o=r.bottom-e.top,a=this.$refs.tooltip.clientWidth,u=this.$refs.tooltip.clientHeight;let s=n+r.width/2-a/2;s+e.left<e.left?s=0:s+e.left+a>=e.right&&(s=e.width-a);let l=i-u-this.dayFullSize/2;l+e.top<=e.top&&(l=o+this.dayFullSize/2),this.tooltipPositionX=s,this.tooltipPositionY=l},onDayRectMouseLeave(){this.tooltipVisibility=!1,this.hoveredDayDate=""}}};var M4=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-heatmap-calendar-wrapper"},[r("div",{staticClass:"e-heatmap-calendar overflow-x-hidden",class:{"e-text-white":e.isDark}},[e.controls?r("div",{staticClass:"e-heatmap-calendar__control-left",on:{click:function(n){e.daysOffset-=30}}},[r("EIcon",{attrs:{icon:"angle-left",size:"Xs"}})],1):e._e(),r("svg",{attrs:{width:e.svgWidth,height:e.svgHeight}},[r("g",[r("g",e._l(Array(7),function(n,i){return r("text",{key:i,style:e.getWeekDayTextStyle(i)},[e._v(" "+e._s(e._moment().day(i).format("ddd"))+" ")])}),0),e._l(e.datesTree,function(n,i,o){return r("g",{key:i,staticClass:"e-heatmap-calendar__month",style:e.getMonthStyle(o,i)},[r("text",{style:e.getMonthTextStyle(o,i)},[e._v(" "+e._s(e.getMonthText(i))+" ")]),e._l(n,function(a,u){return r("g",{key:`${u}`,staticClass:"e-heatmap-calendar__day",class:{"e-heatmap-calendar__day--hovered":e.hoveredDayDate===u,"e-heatmap-calendar__day--disabled":a.disabled,"e-heatmap-calendar__day--selected":a.selected}},[r("rect",{style:e.getDayStyle(a,u),attrs:{rx:e.borderRadius,height:e.dayRectSize,width:e.dayRectSize},on:{mouseenter:s=>e.onDayRectMouseEnter(s,a),mouseleave:e.onDayRectMouseLeave,mouseup:function(s){return e.$emit("item-selected",a)}}}),a.disabled?r("path",{style:`stroke: ${e.disabledColor};`,attrs:{d:e.getDisabledDayPath(a)}}):e._e()])})],2)}),e.legend&&!e.$slots.customLegend?r("g",{style:e.legendStyle},[r("text",{style:e.legendPrefixTextStyle},[e._v("less")]),e._l(e.colors,function(n,i){return r("rect",{key:i,style:e.getLegendRectStyle(i),attrs:{height:e.dayRectSize,width:e.dayRectSize,fill:n,rx:e.borderRadius}})}),r("text",{style:e.legendSuffixTextStyle},[e._v("more")])],2):e._e(),r("foreignObject",{attrs:{height:e.svgHeight,width:e.svgWidth,"pointer-events":"none"}},[r("div",{staticClass:"e-heatmap-calendar__custom-legend"},[e._t("customLegend")],2)])],2)])]),r("div",{ref:"tooltip",staticClass:"e-heatmap-calendar__tooltip",class:{"e-heatmap-calendar__tooltip--visible":e.tooltipVisibility},style:{top:e.tooltipPositionY+"px",left:e.tooltipPositionX+"px"}},[e._t("tooltip",function(){return[e._v(" "+e._s(e.tooltipContent)+" ")]},{item:e.tooltipItem})],2),e.controls?r("div",{staticClass:"e-heatmap-calendar__control-right",on:{click:function(n){e.daysOffset+=30}}},[r("EIcon",{attrs:{icon:"angle-right",size:"Sm"}})],1):e._e()])},L4=[],D4=H(E4,M4,L4,!1,null,"c1e4cb0a",null,null);const as=D4.exports,Rt=A.extend({name:"FormField",props:{value:{type:[String,Number,Boolean,Object,Array],default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},type:{type:String,default:"text"},required:{type:Boolean,default:!1},errors:{type:Array,default:()=>[]}},data(){return{currentValue:this.value}},watch:{value(t){this.currentValue=t},currentValue:{immediate:!0,deep:!0,handler(t){this.$emit("input",t)}}}}),Ht=A.extend({name:"ToggleOpen",data(){return{isOpen:!1,selectId:`select-${Date.now()}${Math.random().toString(36).substr(2,9)}`}},created(){this.$root.$on("select-opened",t=>{t!==this.selectId&&this.isOpen&&(this.isOpen=!1)})},beforeDestroy(){this.$root.$off("select-opened")},methods:{toggleOpen(t){t==null||t.stopPropagation(),this.isOpen||this.$root.$emit("select-opened",this.selectId),this.isOpen=!this.isOpen}}}),wt=A.extend({name:"SelectFormField",mixins:[Rt,Ht],props:{options:{type:Array,required:!0},setInitialValue:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1}},computed:{selectedOption(){return this.multiple?this.options.filter(t=>{var e;if(Array.isArray(this.currentValue)&&((e=this.currentValue)!=null&&e.includes(t.value)))return t}):this.getOptionByValue(this.currentValue)},localLabel(){return this.multiple&&Array.isArray(this.selectedOption)&&this.selectedOption.length>1?this.selectedOption.map(t=>t.label).join(", "):!this.multiple&&this.selectedOption?this.selectedOption.label:null},isAllSelected(){return this.multiple?Array.isArray(this.currentValue)&&this.currentValue.length===this.options.filter(t=>!t.disabled).length&&this.multiple:!1},isAtLeastOneSelected(){return this.multiple?Array.isArray(this.currentValue)&&this.currentValue.length>0:!!this.currentValue},radioItemClasses(){return{"e-opacity-50 e-cursor-not-allowed ":this.disabled,"e-bg-gray-800 e-text-gray-200 e-border-gray-500 ":this.dark,"e-text-gray-700 e-bg-white e-border-gray-300 ":!this.dark,"hover:e-border-gray-300":!this.disabled&&this.dark,"hover:e-border-gray-500":!this.disabled&&!this.dark}},selectedItemClasses(){return["e-bg-[#1976d2]/10",{"e-text-[#61b0ff]":this.dark,"e-text-[#1976d2]":!this.dark}]},isValueProvided(){return this.currentValue!==null&&this.currentValue!==void 0}},watch:{setInitialValue:{immediate:!0,handler(t){!t||this.isValueProvided||(this.currentValue=this.multiple?[this.options[0].value]:this.options[0].value,this.$emit("input",this.currentValue),this.$emit("on-select-option",this.selectedOption))}},multiple(t){t?this.currentValue=[this.options[0].value]:this.currentValue=this.options[0].value,this.$emit("input",this.currentValue),this.$emit("on-select-option",this.selectedOption)}},methods:{isSelected(t){var e;return this.multiple?Array.isArray(this.currentValue)&&this.currentValue.includes(t):this.currentValue===null&&this.setInitialValue?t===((e=this.options[0])==null?void 0:e.value):this.currentValue===t},onItemClick(t){const e=this.getOptionByValue(t);if(!(e!=null&&e.disabled||this.disabled)){if(this.multiple){const r=this.currentValue.indexOf(t);r===-1?this.currentValue.push(t):this.currentValue.splice(r,1),this.$emit("input",this.currentValue),this.$emit("on-select-option",this.selectedOption);return}this.$emit("input",t),this.$emit("on-select-option",e),this.toggleOpen()}},selectAll(){if(!this.multiple||this.disabled)return;const t=this.options.filter(e=>!e.disabled).map(e=>e.value);this.$emit("input",t),this.$emit("on-select-option",this.options.filter(e=>!e.disabled))},deselectAll(){!this.multiple||this.disabled||(this.$emit("input",[]),this.$emit("on-select-option",[]))},toggleSelectAll(){!this.multiple||this.disabled||(Array.isArray(this.currentValue)&&this.currentValue.length===this.options.length?this.deselectAll():this.selectAll())},getOptionByValue(t){var e;return(e=this.options.find(r=>r.value===t))!=null?e:null},containerClasses(t){return[this.isSelected(t.value)?this.selectedItemClasses:this.radioItemClasses,t.disabled||this.disabled?"e-opacity-50 e-cursor-not-allowed":"e-cursor-pointer e-select-none"]}}}),P4=A.extend({name:"EToggleSwitch",mixins:[wt],props:{color:{type:String,default:"brand"},size:{type:String,default:K.Sm},vertical:{type:Boolean,default:!1},dark:{type:Boolean,default:!0}},computed:{sizeClasses(){return{container:{"e-p-1 e-leading-3":this.size===K.Sm,"e-py-1.5 e-px-1.5":this.size===K.Md,"e-p-2 e-p":this.size===K.Lg},button:{"e-py-[.2rem] e-px-2 e-rounded-md":this.size===K.Sm,"e-p-1 e-px-2.5":this.size===K.Md,"e-p-1.5 e-px-3":this.size===K.Lg,"e-opacity-50 e-cursor-not-allowed":this.disabled},text:{"e-text-xs":this.size===K.Sm,"e-text-sm":this.size===K.Md,"e-text-base":this.size===K.Lg}}},wrapperClasses(){return{...this.sizeClasses.container,"e-flex e-items-center e-justify-center e-w-fit e-h-min e-rounded-md e-e-shadow-md e-transition-colors e-duration-200 e-ease-in-out":!0,"e-bg-gray-900":this.dark,"e-bg-gray-200":!this.dark,"e-flex-col":this.vertical,"e-opacity-50 e-cursor-not-allowed":this.disabled}},textClasses(){return{...this.sizeClasses.text,"e-font-medium":!0}}},methods:{getButtonClasses(t){const e={"e-toggle-switch e-border-none e-rounded-md e-transition e-duration-200 e-ease-in-out e-cursor-pointer":!0,"e-text-gray-200":this.dark,"e-bg-gray-900":this.dark&&!this.isSelected(t.value),"e-bg-gray-200":!this.dark&&!this.isSelected(t.value),"e-text-gray-900":!this.dark,"e-bg-brand-600":this.color==="brand"&&this.isSelected(t.value),"e-bg-gray-600":!["primary","brand"].includes(this.color)&&this.isSelected(t.value),"e-bg-[#629efc] e-text-gray-900 e-font-normal":this.color==="primary"&&this.isSelected(t.value),"e-opacity-50 e-cursor-not-allowed":t.disabled,"e-shadow ":this.isSelected(t.value)};return{...this.sizeClasses.button,...e}}}});var O4=function(){var e=this,r=e._self._c;return r("div",{class:e.wrapperClasses},e._l(e.options,function(n){return r("button",{key:n.value,class:e.getButtonClasses(n),on:{click:function(i){return e.onItemClick(n.value)}}},[r("span",{class:e.textClasses},[e._v(e._s(n.label))])])}),0)},z4=[],B4=H(P4,O4,z4,!1,null,null,null,null);const os=B4.exports,I4=A.extend({name:"ERangeSlider",props:{value:{type:Array,default:()=>[0,100]},min:{type:Number,default:0},max:{type:Number,default:100},disabled:{type:Boolean,default:!1},step:{type:Number,default:60},isTime:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!0},dark:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},data(){return{slider:null,sliderRect:{},selectedThumb:null}},computed:{range:{get(){return this.value},set(t){this.$emit("input",t)}},rangeDistance(){return this.max-this.min},showTooltip(){return this.tooltip&&!this.disabled}},mounted(){this.range=this.value},methods:{getLabel(t){return this.isTime?this.minutesToTime(t):t.toString()},getPosition(t){return(t-this.min)/this.rangeDistance*100},getEmptyRangeStyle(t=!1){let e,r;t?(e=this.range[1],r=this.max):(e=this.min,r=this.range[0]);const n=this.disabled?"#c6c6c6":"#8ac5ff",i=this.getPosition(e),o=this.getPosition(r)-i;return{left:`calc(${i}% + 0px)`,width:`calc(${o}% + 0px)`,background:`${n}`}},getRangeStyle(t){const e=this.disabled?"#c6c6c6":"#3b82f6",r=this.getPosition(t[0]),n=this.getPosition(t[1])-r;return{left:`calc(${r}% + 0px)`,width:`calc(${n}% + 0px)`,background:`${e}`}},onMouseMove(t){var e;if((e=this.selectedThumb)!=null&&e.hasPointerCapture(t.pointerId)){if(this.slider=this.$refs.slider,this.sliderRect=this.slider.getBoundingClientRect(),!this.sliderRect)return;const n=(t.clientX-this.sliderRect.left)/this.sliderRect.width,i=Math.round(n*this.rangeDistance+this.min),o=this.roundToStep(i);if(this.selectedThumb.id==="input-min-thumb"){if(o>this.range[1]){this.range=[this.range[1],this.range[1]];return}if(o<=this.min){this.range=[this.min,this.range[1]];return}this.range=[o,this.range[1]]}if(this.selectedThumb.id==="input-max-thumb"){if(o<this.range[0]){this.range=[this.range[0],this.range[0]];return}if(o>=this.max){this.range=[this.range[0],this.max];return}this.range=[this.range[0],o]}}},onMouseDown(t){var e,r;(e=t.target)!=null&&e.matches(".e-range-slider__thumb, .e-range-slider__tooltip")&&(this.selectedThumb=t.target.closest(".e-range-slider__thumb"),t instanceof PointerEvent&&((r=this.selectedThumb)==null||r.setPointerCapture(t.pointerId)))},onMouseUp(t){var e;this.selectedThumb&&(t instanceof PointerEvent&&((e=this.selectedThumb)==null||e.releasePointerCapture(t.pointerId)),this.selectedThumb=null)},roundToStep(t){let e=Math.round(t/this.step),r=this.step*e,n=t*this.step>0?this.step*(e+1):this.step*(e-1);return Math.abs(t-r)<Math.abs(t-n)?r:n},minutesToTime(t){const e=Math.floor(t/60).toString().padStart(2,"0"),r=(t%60).toString().padStart(2,"0");return`${e}:${r}`}}});var F4=function(){var e=this,r=e._self._c;return r("div",{ref:"slider",staticClass:"e-range-slider",on:{pointerdown:function(n){return n.preventDefault(),e.onMouseDown.apply(null,arguments)},pointerup:function(n){return n.preventDefault(),e.onMouseUp.apply(null,arguments)},pointermove:function(n){return n.preventDefault(),e.onMouseMove.apply(null,arguments)},touchstart:function(n){return n.preventDefault(),e.onMouseDown.apply(null,arguments)},touchend:function(n){return n.preventDefault(),e.onMouseUp.apply(null,arguments)}}},[r("div",{staticClass:"e-range-slider__wrapper"},[r("input",{staticClass:"e-range-slider__input",attrs:{id:"input-min",tabindex:"-1"},domProps:{value:e.range[0]}}),r("input",{staticClass:"e-range-slider__input",attrs:{id:"input-max",tabindex:"-1"},domProps:{value:e.range[1]}}),r("div",{staticClass:"e-range-slider__track"},[r("div",{staticClass:"e-range-slider__bg",style:e.getEmptyRangeStyle()}),r("div",{staticClass:"e-range-slider__bg",style:e.getRangeStyle(e.range)}),r("div",{staticClass:"e-range-slider__bg",style:e.getEmptyRangeStyle(!0)})]),r("div",{staticClass:"e-absolute e-top-1/2 e-range-slider__container",class:{"e-pointer-events-none":e.disabled||e.readonly,"e-cursor-grabbing":e.selectedThumb&&e.selectedThumb.id==="input-min-thumb","hover:e-cursor-grab":!e.disabled&&!e.readonly&&!e.selectedThumb},style:{left:`${e.getPosition(e.range[0])}%`}},[r("div",{staticClass:"e-range-slider__thumb",class:[e.disabled?"e-bg-[#c6c6c6] e-border-[#c6c6c6]":"e-bg-primary e-border-primary"],attrs:{id:"input-min-thumb"}},[e.showTooltip?r("div",{staticClass:"e-range-slider__tooltip",class:[e.dark?"e-text-gray-900":"e-text-white"]},[e._v(" "+e._s(e.getLabel(e.range[0]))+" ")]):e._e()])]),r("div",{staticClass:"e-absolute e-top-1/2",class:{"e-pointer-events-none":e.disabled||e.readonly,"e-cursor-grabbing":e.selectedThumb&&e.selectedThumb.id==="input-max-thumb","hover:e-cursor-grab":!e.disabled&&!e.readonly&&!e.selectedThumb},style:{left:`${e.getPosition(e.range[1])}%`}},[r("div",{staticClass:"e-range-slider__thumb",class:[e.disabled?"e-bg-[#c6c6c6] e-border-[#c6c6c6]":"e-bg-primary e-border-primary"],attrs:{id:"input-max-thumb"}},[e.showTooltip?r("div",{staticClass:"e-range-slider__tooltip",class:[e.dark?"e-text-gray-900":"e-text-white"]},[e._v(" "+e._s(e.getLabel(e.range[1]))+" ")]):e._e()])])])])},A4=[],R4=H(I4,F4,A4,!1,null,null,null,null);const H4=R4.exports,N4=A.extend({name:"EDivider",props:{dark:{type:Boolean,default:!1}}});var j4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("hr",{staticClass:"e-divider",class:[e.dark?"e-border-white/[.12]":"e-border-black/[.12]"]})},G4=[],W4=H(N4,j4,G4,!1,null,null,null,null);const q4=W4.exports,U4=A.extend({name:"ESchedulePicker",components:{ERow:Wr,ECol:qr,ERangeSlider:H4,EDivider:q4},props:{scheduleType:{type:String,default:"continuous",required:!0},preloadSchedule:{type:[Object,String],default:()=>({}),required:!1},editMode:{type:Boolean,default:!0},dark:{type:Boolean,default:!1},step:{type:Number,default:15}},data(){return{min:0,max:1439,enabledDays:{monday:!0,tuesday:!0,wednesday:!0,thursday:!0,friday:!0,saturday:!0,sunday:!0},schedule:null,hours:[0,1439]}},computed:{isDisabled(){return!this.editMode&&[vt.Continuous,vt.WorkingHours].includes(this.scheduleType)}},watch:{scheduleType:{immediate:!0,handler(){this.schedule=Qr(Ii[this.scheduleType]),this.initEnabledDays(),this.hours=Object.values(this.schedule)[1]}},schedule:{deep:!0,handler(){this.changeSchedule()}}},mounted(){if(Object.keys(this.preloadSchedule).length){let t=typeof this.preloadSchedule=="string"?JSON.parse(this.preloadSchedule):this.preloadSchedule;Object.keys(this.enabledDays).forEach(e=>{var r;this.enabledDays[e]=((r=t[e])==null?void 0:r.length)>0}),this.schedule=Qr(t),this.hours=Object.values(this.schedule)[1]}},methods:{initEnabledDays(){Object.keys(this.enabledDays).forEach(t=>{this.enabledDays[t]=this.scheduleType===vt.WorkingHours?!["saturday","sunday"].includes(t):!0})},toTextSchedule(){return Object.fromEntries(Object.entries(this.schedule).map(([t,e])=>{if(!(e!=null&&e.length)||!this.enabledDays[t])return[t,[]];{const r=Vr(e[0]),n=Vr(e[1]);return[t,[`${r}-${n}`]]}}))},changeSchedule(){this.$emit("input",this.toTextSchedule())},onHoursChange(t){this.schedule=Object.entries(this.schedule).reduce((e,[r])=>({...e,[r]:t}),{})}}});var Z4=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-m-2 e-w-full"},[r("ERow",{staticClass:"e-w-full"},[r("ECol",{staticClass:"e-caption",class:[e.dark?"e-text-white":"e-text-gray-900"],attrs:{cols:"2"}},[e._v(" Hours ")]),r("ECol",[r("ERangeSlider",{attrs:{max:e.max,min:e.min,readonly:e.isDisabled,step:e.step,dark:e.dark,"is-time":""},on:{input:e.onHoursChange},model:{value:e.hours,callback:function(n){e.hours=n},expression:"hours"}})],1)],1),r("EDivider",{attrs:{dark:e.dark}}),r("ERow",{staticClass:"e-m-0 e-w-full"},[r("ECol",{staticClass:"e-caption",class:[e.dark?"e-text-white":"e-text-gray-900"],attrs:{cols:"12"}},[e._v(" Days ")])],1),e._l(e.schedule,function(n,i){return r("ERow",{key:i,staticClass:"e-w-full"},[r("ECol",{attrs:{cols:"2"}},[r("div",{staticClass:"e-flex e-items-center e-my-0 e-h-full"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.enabledDays[i],expression:"enabledDays[day]"}],staticClass:"e-w-5 e-h-auto",attrs:{type:"checkbox",disabled:e.isDisabled},domProps:{checked:Array.isArray(e.enabledDays[i])?e._i(e.enabledDays[i],null)>-1:e.enabledDays[i]},on:{change:[function(o){var a=e.enabledDays[i],u=o.target,s=!!u.checked;if(Array.isArray(a)){var l=null,d=e._i(a,l);u.checked?d<0&&e.$set(e.enabledDays,i,a.concat([l])):d>-1&&e.$set(e.enabledDays,i,a.slice(0,d).concat(a.slice(d+1)))}else e.$set(e.enabledDays,i,s)},e.changeSchedule]}}),r("label",{staticClass:"e-ml-2",class:[e.dark?"e-text-white":"e-text-gray-900"]},[e._v(" "+e._s(i[0].toUpperCase())+" ")])])]),r("ECol",[r("ERangeSlider",{attrs:{max:e.max,min:e.min,disabled:!e.enabledDays[i],readonly:e.isDisabled,step:e.step,dark:e.dark,"is-time":""},on:{input:e.changeSchedule},model:{value:e.schedule[i],callback:function(o){e.$set(e.schedule,i,o)},expression:"schedule[day]"}})],1)],1)})],2)},Y4=[],X4=H(U4,Z4,Y4,!1,null,null,null,null);const ls=X4.exports,cs=A.extend({mixins:[Ge,Ue],data(){return{inactivityListeners:[],isInactivityListenerActive:!1}},beforeDestroy(){this.$removeInactivityListeners()},methods:{resetInactivityListenerTimer(t=()=>{},e=0,r=[]){this.isInactivityListenerActive&&(this.$clearTimeouts(),this.setInactivityListenerTimer(t,e,r))},setInactivityListenerTimer(t=()=>{},e=0,r=[]){t&&e&&this.$setTimeout(()=>{t(),r.length>0&&this.setInactivityListenerReminderTimers(t,r)},e*1e3)},setInactivityListenerReminderTimers(t=()=>{},e=[],r=0){const n=e[r];r<e.length?this.$setTimeout(()=>{t(),this.setInactivityListenerReminderTimers(t,e,r+1)},n*1e3):this.isInactivityListenerActive&&this.$removeInactivityListeners()},$registerInactivityListener({callback:t=()=>{},duration:e=0,reminders:r=[]}){this.isInactivityListenerActive=!0,this.resetInactivityListenerTimer(t,e,r);const n=()=>this.resetInactivityListenerTimer(t,e,r);this.$addEventListener("mousemove",n),this.inactivityListeners.push(n)},$removeInactivityListeners(){this.isInactivityListenerActive&&(this.isInactivityListenerActive=!1,this.inactivityListeners.forEach(t=>{this.$removeEventListener("mousemove",t)}),this.$clearTimeouts())}}}),us=Object.freeze(Object.defineProperty({__proto__:null,eventListeners:Ge,formField:Rt,inactivityListener:cs,selectFormField:wt,timeouts:Ue,toggleOpen:Ht},Symbol.toStringTag,{value:"Module"})),V4=A.extend({name:"EPopover",directives:{ClickOutside:tn},mixins:[Ht],props:{dark:{type:Boolean,default:!1},label:{type:String,default:"Click to open"},panelSide:{type:String,default:"center"},panelClasses:{type:[Object,String,Array],default:()=>({})}},computed:{panelThemeClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"right-0 ":this.panelSide==="right","left-0":this.panelSide==="left"}}},methods:{closePopover(){this.isOpen=!1}}}),fd="";var Q4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",e._b({directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closePopover,expression:"closePopover"}],staticClass:"e-popover__wrapper e-relative e-w-full"},"div",e.$attrs,!1),[e._t("trigger",function(){return[r("div",e._g(e._b({staticClass:"e-popover__trigger-button e-relative e-w-full e-rounded e-py-2 e-leading-5 e-cursor-pointer e-h-[40px] e-flex e-justify-center e-items-center",attrs:{role:"button"},on:{click:e.toggleOpen}},"div",e.$attrs,!1),e.$listeners),[e._t("trigger-button-content",function(){return[r("span",[e._v(" "+e._s(e.label)+" ")])]})],2)]},{toggle:e.toggleOpen,isOpen:e.isOpen}),e.isOpen?r("div",e._b({staticClass:"e-popover__menu-wrapper e-absolute e-bg-gray-800 e-z-[5] e-min-w-[160px] e-w-full e-min-h-12 e-max-h-72 e-overflow-auto e-text-sm e-rounded-md e-scrollbar-thin e-mt-1 e-scrollbar-thumb-rounded-full e-scrollbar-track-rounded-full e-scrollbar-thumb-gray-400 shadow-2xl focus:e-outline-none sm:e-text-sm",class:[e.panelThemeClasses,e.panelClasses]},"div",e.$attrs,!1),[e._t("panel",function(){return[e._t("default")]})],2):e._e()],2)},K4=[],J4=H(V4,Q4,K4,!1,null,"59138e1e",null,null);const hn=J4.exports,ec=A.extend({name:"ECheckbox",components:{EIcon:qe},props:{checked:{type:Boolean,default:!1}}}),pd="";var tc=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",e._g(e._b({staticClass:"e-select-checkbox e-box-border e-w-4 e-h-4 e-rounded e-flex e-items-center e-justify-center e-align-middle e-border-solid e-border-2",class:{"e-border-gray-500":!e.checked,"e-bg-[#1976d2] e-border-[#1976d2]":e.checked},staticStyle:{"border-radius":"2px"}},"div",e.$attrs,!1),e.$listeners),[e.checked?r("EIcon",{attrs:{icon:"far fa-check",color:"e-text-white",size:"xs"}}):e._e()],1)},rc=[],nc=H(ec,tc,rc,!1,null,"c5642bf0",null,null);const ic=nc.exports,sc=A.extend({name:"ESelect",components:{ECheckbox:ic,EIcon:qe,EPopover:hn},directives:{ResizeObserver:Ke},mixins:[wt],props:{dark:{type:Boolean,default:!1},withSelectAll:{type:Boolean,default:!1},customSelectionLabel:{type:String,default:""},name:{type:String,default:"Items"},label:{type:String,default:"Select an option"},withCheckbox:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},searchPlaceholder:{type:String,default:"Type to search..."},withSearchQueryVisible:{type:Boolean,default:!1}},data(){return{searchQuery:"",menuStyle:{}}},computed:{customLabel(){return this.multiple&&Array.isArray(this.value)&&this.value.length===0||!this.multiple&&(this.value===null||this.value===void 0)?this.label:this.multiple&&this.customSelectionLabel.length>0?this.customSelectionLabel:this.localLabel||this.label},filteredOptions(){if(!this.searchQuery)return this.options;const t=this.searchQuery.toLowerCase().trim();return this.options.filter(e=>e.label.toLowerCase().includes(t))},scrollbarClasses(){return{"e-scrollbar-track-gray-800 e-scrollbar-thumb-gray-500":this.dark,"e-scrollbar-track-white e-scrollbar-thumb-gray-400":!this.dark}},showSearchClearButton(){return(this.searchQuery.length>0||this.isAtLeastOneSelected)&&this.searchable&&!this.disabled}},methods:{handleTriggerClick(t,e){this.disabled||(e(t),this.$nextTick(()=>{const r=this.$refs.searchInput;r&&r.focus()}),this.withSearchQueryVisible&&(this.searchQuery=this.getOptionByValue(this.value).label||""))},handleMenuStyle(){const t=this.$refs.ESelectWrapper;this.menuStyle={maxWidth:`${t==null?void 0:t.clientWidth}px`,minWidth:"160px"}},clearSearch(){this.searchQuery="",this.$emit("input",this.multiple?[]:null);const t=this.$refs.searchInput;t&&t.focus()}}}),md="";var ac=function(){var e=this,r=e._self._c;return r("EPopover",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.handleMenuStyle,expression:"handleMenuStyle"}],attrs:{dark:e.dark},scopedSlots:e._u([{key:"trigger",fn:function({isOpen:n,toggle:i}){return[e._t("activator",function(){return[r("div",{staticClass:"e-select__trigger-button e-relative e-w-full e-rounded e-border e-border-solid e-py-2 e-pl-3 e-leading-5 e-cursor-pointer e-h-[40px] e-flex e-items-center e-bg-gray-900",class:e.radioItemClasses,attrs:{id:`e-select-trigger-${Date.now()}`,"data-test-id":`select-trigger-${Date.now()}`,role:"button"},on:{click:o=>e.handleTriggerClick(o,i)}},[n&&e.searchable?r("div",{staticClass:"e-select__search-input-wrapper e-flex e-items-center e-gap-2 e-w-full e-mr-10"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.searchQuery,expression:"searchQuery"}],ref:"searchInput",staticClass:"e-select__search-input e-w-full e-h-6 e-bg-transparent placeholder:e-text-sm e-text-sm e-outline-none e-border-none",class:{"e-text-white placeholder:e-text-gray-400":e.dark,"e-text-gray-700 placeholder:e-text-gray-500":!e.dark},attrs:{placeholder:e.searchPlaceholder,type:"text"},domProps:{value:e.searchQuery},on:{click:function(o){o.stopPropagation()},input:function(o){o.target.composing||(e.searchQuery=o.target.value)}}})]):[e.multiple&&e.selectedOption.length===0||!e.selectedOption?e._t("label",function(){return[e.customLabel&&!e.searchable?r("span",{staticClass:"e-select-label e-text-sm"},[e._v(e._s(e.customLabel))]):r("span",{staticClass:"e-select-label e-text-sm e-text-gray-400"},[e._v(e._s(e.searchPlaceholder))])]}):e._t("selection",function(){return[r("span",{staticClass:"e-capitalize e-select__trigger-button-text e-truncate"},[e._v(" "+e._s(e.customLabel)+" ")])]})],e.showSearchClearButton?r("button",{staticClass:"e-select__clean-search-button e-flex e-bg-transparent e-z-[2] e-absolute e-right-10 e-cursor-pointer e-border-none e-items-center e-justify-center e-w-5 e-h-5",on:{click:function(o){return o.stopPropagation(),e.clearSearch.apply(null,arguments)}}},[r("EIcon",{attrs:{color:"e-text-gray-400 hover:e-text-[#1976d2]",icon:"far fa-xmark",size:"lg"}})],1):e._e(),e._t("pre-append-icon",function(){return[r("span",{staticClass:"e-select__trigger-button-icon e-absolute e-inset-y-0 e-right-0 e-flex e-items-center e-justify-end e-px-3 e-pr-4 e-bg-transparent e-border-transparent e-text-gray-400"},[r("EIcon",{attrs:{icon:n?"fas fa-sort-up e-mt-2.5":"fas fa-sort-down e-mb-1.5"}})],1)]})],2)]},{attrs:{class:e.radioItemClasses,isOpen:n},on:{click:i}})]}},{key:"panel",fn:function(){return[e.multiple&&e.withSelectAll?r("div",{staticClass:"e-select__menu-check-all-wrapper e-relative e-cursor-pointer e-select-none e-p-2",on:{click:e.toggleSelectAll}},[r("div",{staticClass:"e-select__menu-check-all e-flex e-justify-start e-items-center e-gap-2 e-p-1 e-w-full",class:{"e-text-[#1976d2] ":e.isAllSelected&&!e.dark,"e-text-[#61b0ff]":e.isAllSelected&&e.dark}},[r("ECheckbox",{attrs:{checked:e.isAllSelected}}),r("span",{staticClass:"e-capitalize e-select__menu-check-all-text e-text-sm e-font-medium"},[e._v(" All "+e._s(e.name||"")+" ")])],1)]):e._e(),e.multiple&&e.withSelectAll?r("hr",{staticClass:"e-border-0 e-h-px e-m-0",class:{"e-bg-gray-700":e.dark,"e-bg-gray-200":!e.dark}}):e._e(),e._l(e.filteredOptions,function(n,i){return r("div",{key:i,staticClass:"e-select__menu-item-wrapper e-relative e-select-none e-p-2",class:e.containerClasses(n),attrs:{id:`select-item-${n.value}`,"data-test-id":`select-item-${i}`},on:{click:function(o){return e.onItemClick(n.value)}}},[r("div",{staticClass:"e-select__menu-item e-flex e-justify-start e-items-center e-gap-2 e-p-1 e-w-i"},[e.withCheckbox||e.multiple?r("ECheckbox",{attrs:{checked:e.isSelected(n.value)}}):e._e(),e._t("item",function(){return[r("span",{staticClass:"e-select__menu-item-text e-block e-text-sm e-font-medium"},[e._v(" "+e._s(n.label)+" ")])]},{item:n,isSelected:e.isSelected(n.value)})],2)])}),e.filteredOptions.length===0?r("div",{staticClass:"e-select__no-values-box e-p-4 e-text-center e-text-gray-500"},[e._v(" No results found ")]):e._e()]},proxy:!0}],null,!0)})},oc=[],lc=H(sc,ac,oc,!1,null,null,null,null);const ds=lc.exports,cc=A.extend({name:"EGlobalSearch",components:{EIcon:qe},mixins:[Ge],props:{dark:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},timezone:{type:String,default:"Europe/Dublin"},convertedDateFormat:{type:String,default:"YYYY-MM-DDTHH:mm:ss"},currentDateFormat:{type:String,default:"YYYY-MM-DDTHH:mm:ssZ"},isFixedPosition:{type:Boolean,default:!0},isHidden:{type:Boolean,default:!0},deep:{type:Boolean,default:!0}},data(){return{search:"",isSearching:!1}},computed:{inputClasses(){return{"e-bg-gray-900 e-text-white e-ring-gray-700 focus:e-ring-2 focus:e-ring-blue-500 e-placeholder-gray-500":this.dark,"e-bg-white e-text-[#000057] e-ring-gray-300 focus:e-ring-2 hover:e-ring-gray-400 focus:e-ring-blue-500 e-placeholder-gray-400":!this.dark}}},watch:{search(t){t?t.length>=3&&this.$emit("search-results",this.searchObjectsByQuery(this.items,t)):this.$emit("reset")}},mounted(){!this.isHidden&&this.search.length>0?this.isSearching=!0:(this.$addEventListener("keydown",this.onKeyHandler),this.$addEventListener("keyup",this.onKeyHandler))},methods:{onInput(t){this.search=t.target.value},searchObjectsByQuery(t,e){return t.reduce((r,n,i)=>{const o=this.findMatchesInObject(n,e,[]);return o.length>0&&r.push({index:i,matches:o}),r},[])},findMatchesInObject(t,e,r){return Object.entries(t).reduce((n,[i,o])=>{const a=[...r,i],u=this.matchesQuery(o,e)?[{path:a,value:o}]:[];let s=[];this.deep&&Array.isArray(o)&&(s=o.flatMap((d,p)=>this.findMatchesInObject(d,e,[...a,`${p}`])));const l=this.deep&&typeof o=="object"&&o!==null?this.findMatchesInObject(o,e,a):[];return[...n,...u,...s,...l]},[])},matchesQuery(t,e){return`${this.isValidDate(t)?this.formattedTimestamp(t):t}`.toLowerCase().indexOf(e.toLowerCase())!==-1},isValidDate(t){return ke(t,this.currentDateFormat,!0).isValid()},formattedTimestamp(t){return ke.tz(t,this.timezone).format(this.convertedDateFormat)},onKeyHandler(t){const e=t,r=e.ctrlKey&&e.type==="keydown",n=e.shiftKey&&e.type==="keydown",i=["f","F"].includes(e.key)&&e.type==="keydown",o=e.key==="Escape"&&e.type==="keydown";i&&r&&n&&(this.isSearching=!0,this.$nextTick(()=>{const a=this.$refs.searchField;a&&a.focus()})),o&&(this.isSearching=!1,this.search="")}}}),gd="";var uc=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"show",rawName:"v-show",value:!e.isFixedPosition||e.isSearching,expression:"!isFixedPosition || isSearching"}],staticClass:"global-search e-relative",class:{"global-search--fixed e-p-4 e-bg-white e-m-3":e.isFixedPosition}},[r("div",{staticClass:"e-relative"},[r("input",e._g({directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],ref:"searchField",class:["global-search__field e-shadow-sm e-ring-1 e-ring-inset e-relative e-block e-w-full e-h-full disabled:e-cursor-not-allowed disabled:e-opacity-75 focus:e-outline-none e-border-0 e-text-sm e-placeholder-gray-400 e-px-4 e-py-3 e-gap-x-1.5 e-rounded-md",e.inputClasses],attrs:{id:"global-search-input",placeholder:"Search",autocomplete:"off",type:"text"},domProps:{value:e.search},on:{input:function(n){n.target.composing||(e.search=n.target.value)}}},e.$listeners)),r("span",{staticClass:"e-absolute e-inset-y-0 e-end-0 e-flex e-items-center e-justify-center e-pointer-events-none e-px-2.5"},[r("EIcon",{attrs:{icon:"search",size:"Sm"}})],1)])])},dc=[],hc=H(cc,uc,dc,!1,null,null,null,null);const hs=hc.exports,fc=A.extend({name:"ETooltip",props:{text:{type:String,required:!0},position:{type:String,default:Oe.Top},color:{type:String,default:se.Default},dark:{type:Boolean,default:!1}},data:function(){return{isHovered:!1}},computed:{tooltipClasses(){const t=this.position,e=this.color,r={"e-bg-gray-800 e-text-white":!this.dark,"e-bg-slate-300 e-text-slate-800":this.dark};return{"tooltip e-w-max e-text-sm e-text-center e-px-2 e-py-1 e-absolute e-rounded-md e-shadow-md e-opacity-0 group-hover:e-opacity-100 e-transition-opacity e-duration-300":!0,"tooltip-left":t===Oe.Left,"tooltip-right":t===Oe.Right,"tooltip-top":t===Oe.Top,"tooltip-bottom":t===Oe.Bottom,"e-bg-orange-700 e-text-white":e===se.Warning,"e-bg-red-700 e-text-white":e===se.Error,"e-bg-green-900 e-text-white":e===se.Success,"e-bg-blue-700 e-text-white":e===se.Primary,"e-bg-sky-500 e-text-white":e===se.Info,"e-bg-brand-900 e-text-white":e===se.Brand,"e-bg-gray-200 e-text-gray-700":e===se.Gray,...r}},triangleClasses(){const t=this.position,e=this.color;return{"triangle e-absolute e-border-transparent":!0,"triangle-left":t===Oe.Left,"triangle-right":t===Oe.Right,"triangle-top":t===Oe.Top,"triangle-bottom":t===Oe.Bottom,"e-border-b-gray-800":e===se.Default,"e-border-b-orange-700":e===se.Warning,"e-border-b-red-700":e===se.Error,"e-border-b-green-900":e===se.Success,"e-border-b-blue-700":e===se.Primary,"e-border-b-sky-500":e===se.Info,"e-border-b-brand-900":e===se.Brand,"e-border-b-gray-900":e===se.Gray}}},methods:{toggleTooltip(){this.isHovered=!this.isHovered}}}),vd="";var pc=function(){var e=this,r=e._self._c;return r("div",{staticClass:"tooltip-box e-w-max e-relative e-group",on:{mouseenter:e.toggleTooltip,mouseleave:e.toggleTooltip}},[e._t("default"),e.isHovered?r("div",{class:e.tooltipClasses},[r("span",{class:e.triangleClasses}),e._v(" "+e._s(e.text)+" ")]):e._e()],2)},mc=[],gc=H(fc,pc,mc,!1,null,"3ebb5ef2",null,null);const St=gc.exports,vc=A.extend({name:"EActionButton",components:{ETooltip:St,EIcon:qe},props:{tooltipText:{type:String,default:null},tooltipColor:{type:String,default:"default"},tooltipPosition:{type:String,default:"top"},buttonClasses:{type:[String,Object,Array],default:null},icon:{type:String,default:null},iconSize:{type:String,default:K.Sm},iconColor:{type:String,default:se.Default},dark:{type:Boolean,default:!0}},computed:{withTooltip(){return!!this.tooltipText},buttonClassesContainsBg(){return this.buttonClasses?typeof this.buttonClasses=="string"&&this.buttonClasses.split("e-bg-").length>1||typeof this.buttonClasses=="object"&&Object.keys(this.buttonClasses).some(t=>t.split("e-bg-").length>1):!1},buttonStyle(){const t=this.dark?"e-bg-gray-900 e-text-white hover:e-bg-gray-700":"e-bg-white text-e-text-gray-900 hover:e-bg-gray-100";return this.buttonClassesContainsBg?this.buttonClasses:[this.buttonClasses,t]}}});var _c=function(){var e=this,r=e._self._c;return e.withTooltip?r("ETooltip",{attrs:{text:e.tooltipText,position:e.tooltipPosition,color:e.tooltipColor,dark:e.dark}},[r("button",e._g(e._b({staticClass:"e-action-button e-w-max e-px-3 e-py-2 e-flex e-border-none e-justify-center e-align-middle e-items-center e-cursor-pointer",class:e.buttonStyle},"button",e.$attrs,!1),e.$listeners),[r("EIcon",{attrs:{icon:e.icon,size:e.iconSize,color:e.iconColor}}),e._t("default")],2)]):r("button",e._g(e._b({staticClass:"e-action-button e-w-max e-px-3 e-py-2 e-flex e-border-none e-justify-center e-align-middle e-items-center e-cursor-pointer",class:e.buttonStyle},"button",e.$attrs,!1),e.$listeners),[r("EIcon",{attrs:{icon:e.icon,size:e.iconSize}}),e._t("default")],2)},yc=[],Cc=H(vc,_c,yc,!1,null,null,null,null);const ft=Cc.exports,bc=A.extend({name:"EZoomSlider",components:{EActionButton:ft},props:{dark:{type:Boolean,default:!0}}});var xc=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-zoom-slider e-flex e-flex-col e-p-5"},[r("EActionButton",{attrs:{"tooltip-text":"Zoom in","tooltip-position":"right",icon:"fas fa-plus",dark:e.dark,"icon-size":"Base","button-classes":"action-btn__first-vertical e-border-none e-rounded-none e-rounded-t-md e-shadow-xl","data-test-id":"zoomable-img-zoom-in"},on:{click:function(n){return e.$emit("zoom-in")}}}),r("EActionButton",{attrs:{"tooltip-text":"Zoom out","tooltip-position":"right",icon:"fas fa-minus",dark:e.dark,"icon-size":"Base","button-classes":"action-btn__last-vertical e-border-none e-rounded-none e-rounded-b-md","data-test-id":"zoomable-img-zoom-out"},on:{click:function(n){return e.$emit("zoom-out")}}})],1)},wc=[],Sc=H(bc,xc,wc,!1,null,null,null,null);const fn=Sc.exports,Tc=A.extend({name:"EFadeTransition",props:{duration:{type:Number,default:300}},computed:{durationClass(){return{100:"e-duration-100",200:"e-duration-200",300:"e-duration-300",400:"e-duration-400",500:"e-duration-500",600:"e-duration-600",700:"e-duration-700",800:"e-duration-800",900:"e-duration-900",1e3:"e-duration-1000"}[this.duration]}}});var kc=function(){var e=this,r=e._self._c;return r("transition",{attrs:{"enter-active-class":`e-transition e-ease-out ${e.durationClass}`,"leave-active-class":`e-transition e-ease-in ${e.durationClass}`,"enter-class":"e-opacity-0","enter-to-class":"e-opacity-100","leave-class":"e-opacity-100","leave-to-class":"e-opacity-0"}},[e._t("default")],2)},$c=[],Ec=H(Tc,kc,$c,!1,null,null,null,null);const Nt=Ec.exports,Mc=A.extend({name:"EZoomableImg",components:{EZoomSlider:fn,EFadeTransition:Nt},directives:{ResizeObserver:Ke},mixins:[Ue,Ge],props:{src:{type:String,default:""},alt:{type:String,default:""},allowZoom:{type:Boolean,default:!0},imgProps:{type:Object,default:()=>({})},slider:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},hideContentOnBlur:{type:Boolean,default:!0},initialParams:{type:Object,default:()=>({})},embedded:{type:Boolean,default:!1},overlayStyle:{type:Object,default:()=>({})},foregroundStyle:{type:Object,default:()=>({})},pan:{type:Boolean,default:!0},slotTransition:{type:Boolean,default:!0},height:{type:[String,Number],default:void 0},isCalendarActive:{type:Boolean,default:!1},blurBackground:{type:Boolean,default:!1},cover:{type:Boolean,default:!1},isWidget:{type:Boolean,default:!1},isAnnotationActive:{type:Boolean,default:!1},isMobile:{type:Boolean,default:!1},placeholderImage:{type:String,default:""},showMiniature:{type:Boolean,default:!1},miniatureWidth:{type:Number,default:150}},data(){const t={x:0,y:0};return{image:null,frame:null,imageLoaded:!1,zoomLevel:1,previousZoomLevel:1,imageMouse:t,zoomOrigin:t,frameMouse:t,frameMousePanStart:t,frameMousePreviousPan:t,translation:t,isPanning:!1,isPinching:!1,zoomStarted:!1,firstLoad:!0,isSliderActive:!1,imgStyle:{},contentStyle:{},isFocused:!0,forceHideContent:!1,imageAspectRatio:1,frameAspectRatio:1,wrapperExtraStyle:{},preventDefaultScroll:!0,mouseLeft:!1,pointers:{},pinchDistance:0,lastTapTime:0,minZoomLevel:1,maxZoomLevel:20,backgroundSnapshotSrc:null,miniatureOverlayStyle:{}}},computed:{frameStyle(){return this.height?{height:`${this.height}px`}:{}},wrapperStyle(){if(!this.imageLoaded)return{display:"none"};let t,e;return this.isPanning&&!this.isAnnotationActive?(t=this.frameMouse.x-this.frameMousePanStart.x+this.frameMousePreviousPan.x,e=this.frameMouse.y-this.frameMousePanStart.y+this.frameMousePreviousPan.y):(t=this.frameMousePreviousPan.x,e=this.frameMousePreviousPan.y),{transform:Math.abs(t)<.5&&Math.abs(e)<.5?"none":`translate(${t}px,${e}px)`}},imageCenter(){var e;const t=(e=this.image)==null?void 0:e.getBoundingClientRect();return{x:((t==null?void 0:t.width)||0)/2,y:((t==null?void 0:t.height)||0)/2}},sliderModel:{get(){return this.zoomLevel*100},set(t){this.previousZoomLevel=this.zoomLevel,this.zoomLevel=t/100,this.updateImageStyle(),this.savePreviousPan()}},showContent(){return this.hideContentOnBlur?this.forceHideContent?!1:this.isFocused&&this.touches<2:!0},miniatureContainerStyle(){if(!this.image)return{};const t=this.image.naturalWidth/this.image.naturalHeight,e=this.miniatureWidth/t;return{width:`${this.miniatureWidth}px`,height:`${e}px`}},miniatureOverlayComputedStyle(){return{...this.miniatureOverlayStyle,...this.miniatureOverlayBaseStyle}},miniatureOverlayBaseStyle(){return{boxShadow:`0 0 0 ${this.miniatureWidth}px #0006`}},currentState(){var t,e;return{image:this.image,zoomLevel:this.zoomLevel,translation:this.translation,previousZoomLevel:this.previousZoomLevel,imageMouse:this.imageMouse,zoomOrigin:this.zoomOrigin,frameMouse:this.frameMouse,frameMousePanStart:this.frameMousePanStart,frameMousePreviousPan:this.frameMousePreviousPan,isPanning:this.isPanning,zoomStarted:this.zoomStarted,firstLoad:this.firstLoad,isSliderActive:this.isSliderActive,imgStyle:this.imgStyle,contentStyle:this.contentStyle,isFocused:this.isFocused,forceHideContent:this.forceHideContent,imageAspectRatio:this.imageAspectRatio,frameAspectRatio:this.frameAspectRatio,wrapperExtraStyle:this.wrapperExtraStyle,offsetWidth:(t=this.image)==null?void 0:t.offsetWidth,offsetHeight:(e=this.image)==null?void 0:e.offsetHeight}}},watch:{isCalendarActive(){this.$setTimeout(this.onResize,100)},initialParams:{immediate:!0,handler(t){if(typeof t=="object")for(let e in t)this[e]=t[e]}},image:{immediate:!0,deep:!0,handler(){var t;(t=this.image)!=null&&t.offsetWidth&&this.emitChange()}},wrapperStyle(){this.$nextTick(this.updateMiniatureOverlayStyle)},imageStyle(){this.$nextTick(this.updateMiniatureOverlayStyle)}},mounted(){this.$addEventListener("orientationchange",this.handleOrientationChange),this.$root.$on("resize-snapshot-player",()=>{this.$setTimeout(this.setAspectRatio,200)})},methods:{onResize(){this.updateContentStyle(),this.$setTimeout(this.setAspectRatio,500)},handleOrientationChange(){this.$setTimeout(this.setAspectRatio,1e3)},setAspectRatio(){var r,n;this.frame=this.$refs.frame,this.image=this.$refs.image;const t=(r=this.frame)==null?void 0:r.getBoundingClientRect(),e=(n=this.image)==null?void 0:n.getBoundingClientRect();if(this.$setTimeout(this.emitChange,50),!t||this.isMobile&&!this.isWidget&&(!e||(e==null?void 0:e.width)<=1||(e==null?void 0:e.height)<=1)){this.$setTimeout(this.setAspectRatio,50);return}this.frameAspectRatio=t.width/t.height,this.imageAspectRatio=e.width/e.height},updateImageStyle(){this.translation={x:this.zoomOrigin.x*(this.zoomLevel-this.previousZoomLevel)+this.translation.x,y:this.zoomOrigin.y*(this.zoomLevel-this.previousZoomLevel)+this.translation.y},this.imgStyle={...this.imgStyle,transform:`translate(${-this.translation.x}px, ${-this.translation.y}px) scale(${this.zoomLevel})`},this.emitChange()},updateMiniatureOverlayStyle(){if(!this.showMiniature||!this.image||!this.frame||!this.$refs.miniatureImage||this.zoomLevel===1){this.miniatureOverlayStyle={};return}const t=this.image.getBoundingClientRect(),e=this.frame.getBoundingClientRect(),r=(e.left-t.left)/t.width*100,n=(e.top-t.top)/t.height*100,i=e.width/t.width*100,o=e.height/t.height*100;this.miniatureOverlayStyle={left:`${r}%`,top:`${n}%`,width:`${i}%`,height:`${o}%`}},onImageLoaded(t){var n,i;if(this.imageLoaded=!0,this.wrapperExtraStyle={...this.wrapperExtraStyle,alignContent:"flex-start !important"},this.$setTimeout(()=>{this.wrapperExtraStyle={justifyContent:"center",alignContent:"center !important"}}),this.blurBackground&&(this.backgroundSnapshotSrc=this.getSnapshotSrc()),!this.firstLoad)return;this.updateContentStyle(),this.imageMouse=this.imageCenter,this.zoomOrigin=this.imageCenter;const e=(n=this.image)==null?void 0:n.getBoundingClientRect(),r=(i=this.frame)==null?void 0:i.getBoundingClientRect();!e||!r||(this.isMobile&&!this.isWidget?this.setAspectRatio():this.$nextTick(()=>{this.setAspectRatio(),this.firstLoad=!1}),this.updateImageStyle(),this.$emit("load",t))},onError(t){this.$emit("error",t)},onMouseEnter(){this.mouseLeft=!1,this.isFocused=!0},onMouseLeave(){this.isSliderActive||(this.isFocused=!1),this.mouseLeft=!0;const t={which:1,preventDefault:()=>{}};this.onMouseUp(t)},onMouseMove(t){var e;if(!(this.disabled||!this.imageLoaded||this.mouseLeft)&&this.frame){const r=this.frame.getBoundingClientRect(),n=(e=this.image)==null?void 0:e.getBoundingClientRect();this.frameMouse={x:(t==null?void 0:t.clientX)-r.left,y:(t==null?void 0:t.clientY)-r.top},this.imageMouse={x:((t==null?void 0:t.clientX)-(n==null?void 0:n.left))/this.zoomLevel,y:((t==null?void 0:t.clientY)-(n==null?void 0:n.top))/this.zoomLevel},this.zoomStarted&&(this.zoomStarted=!1),this.$nextTick(this.emitChange)}},onMousedown(t){if(!(!this.pan||this.disabled||!this.imageLoaded||(t==null?void 0:t.which)!==1||this.isSliderActive)){if(this.isAnnotationActive){this.frameMousePanStart={x:this.frameMouse.x,y:this.frameMouse.y},this.isPanning=!0,this.$nextTick(this.emitChange);return}t.preventDefault(),this.frameMousePanStart=this.frameMouse,this.isPanning=!0}},onMouseUp(t){if(!(!this.pan||this.disabled||!this.imageLoaded||!this.isPanning||(t==null?void 0:t.which)!==1||this.isSliderActive)){if(this.isAnnotationActive){this.isPanning=!1,this.$nextTick(this.emitChange);return}t.preventDefault(),this.savePreviousPan({x:this.frameMousePreviousPan.x+this.frameMouse.x-this.frameMousePanStart.x,y:this.frameMousePreviousPan.y+this.frameMouse.y-this.frameMousePanStart.y}),this.isPanning=!1,this.isPinching=!1,this.$nextTick(this.emitChange)}},onMouseWheel(t){this.disabled||!this.imageLoaded||!this.allowZoom||(this.zoom(t.deltaY),this.preventDefaultScroll&&t.preventDefault())},updateZoomLevel(t){let e=1;this.isMobile?e=this.zoomLevel*t:t<0?e=this.zoomLevel*1.2:this.zoomLevel>=1.25&&(e=this.zoomLevel*.8),e<this.minZoomLevel?this.zoomLevel=this.minZoomLevel:e>this.maxZoomLevel?this.zoomLevel=this.maxZoomLevel:this.zoomLevel=e},zoom(t){this.isPanning=!1,this.previousZoomLevel=this.zoomLevel,this.updateZoomLevel(t),this.preventDefaultScroll=this.previousZoomLevel!==this.zoomLevel,this.zoomStarted||(this.zoomOrigin=this.imageMouse,this.zoomStarted=!0),this.updateImageStyle(),this.$nextTick(()=>{this.savePreviousPan(),this.emitChange()})},getBounds(){var s,l;const t=(s=this.frame)==null?void 0:s.getBoundingClientRect(),e=(l=this.image)==null?void 0:l.getBoundingClientRect(),r=t.width/this.imageAspectRatio,n=t.height*this.imageAspectRatio;let{top:i,right:o,bottom:a,left:u}=t;return e.width<t.width?(u=t.left+(t.width-n)/2,o=u+n):e.height<t.height&&(i=t.top+(t.height-r)/2,a=i+r),{top:i,right:o,bottom:a,left:u}},savePreviousPan({x:t,y:e}={}){var r;if(this.image){const n=(r=this.image)==null?void 0:r.getBoundingClientRect(),i=this.getBounds(),[o,a,u,s]=[n.right-i.right,i.top-n.top,n.bottom-i.bottom,i.left-n.left].map(l=>l<0?l:0);this.frameMousePreviousPan={x:(t||this.frameMousePreviousPan.x)+s-o,y:(e||this.frameMousePreviousPan.y)+a-u}}},onSliderMouseDown(){var r,n;const t=(r=this.frame)==null?void 0:r.getBoundingClientRect(),e=(n=this.image)==null?void 0:n.getBoundingClientRect();this.zoomOrigin={x:((t==null?void 0:t.left)+(t==null?void 0:t.width)/2-(e==null?void 0:e.left))/this.zoomLevel,y:((t==null?void 0:t.top)+(t==null?void 0:t.height)/2-(e==null?void 0:e.top))/this.zoomLevel},this.isSliderActive=!0},onSliderMouseUp(){this.isSliderActive=!1},updateContentStyle(){var t,e,r;this.contentStyle={maxWidth:`${window.innerWidth-(((r=(e=(t=this.$refs)==null?void 0:t.frame)==null?void 0:e.getBoundingClientRect())==null?void 0:r.left)||0)}px`}},emitChange(){this.$emit("change",this.currentState)},getPointersMidPoint(t,e){return{x:t.clientX+(e.clientX-t.clientX)/2,y:t.clientY+(e.clientY-t.clientY)/2}},getPointersDistance(t,e){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)},updatePointerEvent(t){this.pointers[t.pointerId]=t},clearPointerEvent(t){this.$delete(this.pointers,t.pointerId)},updatePinchZoomOrigin(){const t=Object.values(this.pointers);if(t.length!==2)return;const e=this.getPointersMidPoint(...t);this.zoomOrigin={x:e.x/this.zoomLevel,y:e.y/this.zoomLevel}},updatePinchDistance(){const t=Object.values(this.pointers);t.length===2&&(this.pinchDistance=this.getPointersDistance(...t))},onPointerDown(t){if(!(!this.isMobile||this.foregroundStyle.zIndex==2)){if(this.updatePointerEvent(t),this.isPinching=Object.values(this.pointers).length===2,this.isPinching){this.isPanning=!1,this.updatePinchZoomOrigin(),this.updatePinchDistance();return}this.onMouseMove(t),this.onMousedown(t)}},onPointerMove(t){if(!(!this.isMobile||this.foregroundStyle.zIndex==2)){if(this.updatePointerEvent(t),this.isPinching){const e=this.pinchDistance;this.updatePinchDistance();const r=this.pinchDistance/e;r%1>.008&&this.zoom(r);return}this.onMouseMove(t)}},onPointerUp(t){if(!this.isMobile||this.foregroundStyle.zIndex==2)return;this.clearPointerEvent(t),this.onMouseUp(t);const e=new Date().getTime(),r=e-this.lastTapTime;r>100&&r<200&&this.zoom(this.zoomLevel>1?0:3),this.lastTapTime=e},getSnapshotSrc(){const t=this.$refs.image;return t==null?void 0:t.src}}}),_d="";var Lc=function(){var n;var e=this,r=e._self._c;return r("div",e._b({directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResize,expression:"onResize"}],ref:"frame",staticClass:"zoomable-img e-flex e-justify-center e-items-center e-relative",class:{"zoomable-img--loading":!e.imageLoaded,"zoomable-img--zoomed":e.zoomLevel>1,"zoomable-img--panning":e.isPanning,"zoomable-img--disabled":e.disabled,"zoomable-img--portrait-frame":e.frameAspectRatio<e.imageAspectRatio,"zoomable-img--landscape-frame":e.frameAspectRatio>=e.imageAspectRatio,"zoomable-img--embedded":e.embedded,"zoomable-img--cover":e.cover},style:e.frameStyle,attrs:{"data-test-id":"zoomable-img-frame"},on:{wheel:e.onMouseWheel,mouseup:e.onMouseUp,mousedown:e.onMousedown,mousemove:e.onMouseMove,mouseenter:e.onMouseEnter,mouseleave:e.onMouseLeave,pointerdown:e.onPointerDown,pointermove:e.onPointerMove,pointerup:e.onPointerUp,pointercancel:e.onPointerUp,pointerout:e.onPointerUp,pointerleave:e.onPointerUp}},"div",e.$attrs,!1),[r("div",{staticClass:"zoomable-img__wrapper e-flex e-justify-center e-items-center",style:{...e.wrapperStyle,...e.wrapperExtraStyle},attrs:{"data-test-id":"zoomable-img-wrapper"}},[e.blurBackground&&e.imageLoaded&&e.backgroundSnapshotSrc?r("img",{class:e.isMobile?"zoomable-img__img-background-mobile":"zoomable-img__img-background",style:e.imgStyle,attrs:{src:e.backgroundSnapshotSrc,alt:e.alt}}):e._e(),r("img",e._g(e._b({directives:[{name:"show",rawName:"v-show",value:e.imageLoaded||!!e.placeholderImage,expression:"imageLoaded || !!placeholderImage"}],ref:"image",staticClass:"zoomable-img__img e-absolute",style:e.imgStyle,attrs:{src:(n=e.src)!=null?n:e.placeholderImage,alt:e.alt,crossorigin:"anonymous","data-test-id":"zoomable-img-image"},on:{load:e.onImageLoaded,error:e.onError}},"img",e.$props.imgProps,!1),e.$listeners))]),r("div",{staticClass:"zoomable-img__wrapper zoomable-img__wrapper--overlay e-flex e-justify-center e-items-center",style:{...e.wrapperStyle,...e.wrapperExtraStyle,...e.overlayStyle}},[r("div",{staticClass:"zoomable-img__img e-relative",style:{width:`${e.image?e.image.offsetWidth:0}px`,height:`${e.image?e.image.offsetHeight:0}px`,...e.imgStyle}},[e._t("imageOverlay",null,{state:e.currentState})],2)]),r("div",{ref:"foreground",staticClass:"zoomable-img__content e-flex e-justify-center e-items-center e-p-0",class:{"e-h-full":!e.embedded,"e-w-full":!e.embedded},style:{...e.contentStyle,...e.foregroundStyle},attrs:{id:"img-foreground","data-test-id":"zoomable-img-foreground"}},[e.imageLoaded?e._e():e._t("placeholder",null,{dataTestId:"zoomable-img-placeholder"}),e.showContent&&e.slotTransition?r("EFadeTransition",[e.showContent?e._t("default",null,{dataTestId:"zoomable-img-content"}):e._e()],2):e.showContent?e._t("default",null,{dataTestId:"zoomable-img-content"}):e._e(),r("EFadeTransition",[e.showContent&&e.slider&&e.allowZoom?r("div",{staticClass:"zoomable-img__slider-container",attrs:{"data-test-id":"zoomable-img-zoom-slider"}},[e._t("extraWidgets"),r("EZoomSlider",{attrs:{vertical:""},on:{mouseup:e.onSliderMouseUp,mousedown:e.onSliderMouseDown,"zoom-in":function(i){return e.zoom(-1)},"zoom-out":function(i){return e.zoom(1)}},model:{value:e.sliderModel,callback:function(i){e.sliderModel=i},expression:"sliderModel"}})],2):e._e()]),r("EFadeTransition",[e.showMiniature&&e.imageLoaded&&e.zoomLevel>1?r("div",{staticClass:"zoomable-img__miniature-container e-shadow",style:e.miniatureContainerStyle},[r("img",{ref:"miniatureImage",staticClass:"zoomable-img__miniature",attrs:{src:e.src,alt:e.alt}}),r("div",{staticClass:"zoomable-img__miniature-overlay",style:e.miniatureOverlayComputedStyle})]):e._e()])],2)])},Dc=[],Pc=H(Mc,Lc,Dc,!1,null,null,null,null);const pn=Pc.exports,Oc=A.extend({name:"EImagePlayer",components:{EZoomableImg:pn},directives:{ResizeObserver:Ke},mixins:[Ue,Ge],model:{prop:"frameIndex",event:"update-frame-index"},props:{frames:{type:Array,required:!0},timePerFrame:{type:Number,default:500},isPlaying:{type:Boolean,default:!1},frameIndex:{type:Number,default:0},height:{type:[String,Number],default:0},initialQuality:{type:[String,Number],default:"auto"},preload:{type:Boolean,default:!0},preloadSize:{type:Number,default:10},resetIndexOnFramesChange:{type:Boolean,default:!1},preloadWhilePlaying:{type:Boolean,default:!0},withControls:{type:Boolean,default:!0},playOnClick:{type:Boolean,default:!0},disablePlayPauseAnimation:{type:Boolean,default:!1},disablePlayButton:{type:Boolean,default:!1},isLive:{type:Boolean,default:!1},selectedSnapshotQuality:{type:[String,Number],default:"auto"},placeholderImage:{type:String,default:""},isMobile:{type:Boolean,default:!1},isZoomable:{type:Boolean,default:!0},isAnnotationActive:{type:Boolean,default:!1},aspectRatio:{type:Number,default:null},preloadingQueueId:{type:Number,default:0}},data(){return{src:this.placeholderImage,imageLoaded:!1,playing:!1,playerStyle:{},image:null,previousSrc:"",resolveImageLoadingPromise:()=>({}),preloadedFrames:[],preloadingFramesImgs:[],frameError:!1,animationId:-1,imgStyle:{},previousFrameIndex:0,isFullscreen:!1,mouseDownTime:0,playPauseAnimation:!1,latestValidSnapshotTimestamp:"",progressBar:null,isDraggingCursor:!1,hovered:!1,mousePosition:{x:0,y:0},screenHeight:screen.height}},computed:{imgProps(){return{id:"zoomable-img__img",ref:"image",crossorigin:"anonymous",class:"zoomable-img__img e-absolute e-w-full e-h-full e-object-contain e-z-10 d-block",dataTestId:"zoomable-img-image"}},playerDimensions(){return{width:"100%",height:this.height}},isLastFrame(){return this.frameIndex===this.frames.length-1},altText(){var t,e;return`${((t=this.frames[this.frameIndex])==null?void 0:t.label)||""} ${((e=this.frames[this.frameIndex])==null?void 0:e.timestamp)||""}`},playedPercentage(){return this.isLastFrame?100:Math.abs(this.frameIndex/this.frames.length*100)},mouseToWidthRatio(){var t,e,r;return this.mousePosition.x/((r=(e=(t=this.progressBar)==null?void 0:t.getBoundingClientRect())==null?void 0:e.width)!=null?r:1)},hoverBarStyle(){return{width:`${100*this.mouseToWidthRatio}%`}},hoveredFrameIndex(){return Math.round(this.mouseToWidthRatio*(this.frames.length-1))},progressStyle(){return{width:`${100*((this.isDraggingCursor?this.hoveredFrameIndex:this.frameIndex)/(this.frames.length-1))}%`}},preloadedChunks(){const t=[...this.preloadedFrames];return t.sort((e,r)=>e>r?1:-1),t.reduce((e,r)=>{if(!e.length)return[[r,r]];const[n,i]=e.slice(-1)[0]||[0,0];return r-i>1?[...e,[r,r]]:[...e.slice(0,-1),[n,r]]},[])}},watch:{frames:{handler(){var t;this.src=((t=this.frames[this.frameIndex])==null?void 0:t.src)||"",this.resetIndexOnFramesChange&&this.$emit("update-frame-index",0),this.imageLoaded=!0,this.preloadedFrames=[],this.flushPreloadingQueue(),this.$setTimeout(async()=>{this.updateRefs(),await this.loadTargetFrame(),this.handleBuffering()})},immediate:!0,deep:!0},isLastFrame(t){t&&this.$emit("frames-ended")},frameIndex:{immediate:!0,async handler(){this.frameIndex&&this.frameIndex===this.previousFrameIndex||(Number.isNaN(this.frameIndex)&&this.$emit("update-frame-index",0),this.frameIndex===0&&(this.previousFrameIndex=this.frameIndex),this.isLastFrame&&!this.isLive&&(this.playing=!1),this.playing||(this.cancelDelay(),await this.loadTargetFrame(),this.handleBuffering()))}},playing:{immediate:!0,async handler(t){t?this.play():this.pause(),this.animatePlayPauseOverlay()}},preloadedFrames:{handler(t,e){this.$emit("preloaded-frames-change",t)}},isPlaying:{immediate:!0,async handler(){this.playing=this.isPlaying}},selectedSnapshotQuality(){var t;this.src=(t=this.getFrameSrc(this.frames[this.frameIndex]))!=null?t:this.frames[this.frameIndex].src},isLive:{immediate:!0,handler(t){var e;t||(this.src=(e=this.frames[this.frameIndex])==null?void 0:e.src)}},imageLoaded(t){this.$emit("loading",!t)}},mounted(){this.$setTimeout(()=>{this.initializeFullscreenListeners(),this.progressBar=this.$refs.progressBar,this.$addEventListener("keydown",this.handleKeyDown)})},beforeDestroy(){this.cancelDelay(),this.flushPreloadingQueue(),this.removeFullscreenListeners()},methods:{getProgressBarMousePosition(t){var r;if(!this.progressBar)return{x:0,y:0};const e=(r=this.progressBar)==null?void 0:r.getBoundingClientRect();return{x:t.clientX-e.x,y:t.clientY-e.y}},onProgressBarMouseEnter(){this.hovered=!0},onProgressBarMouseMove(t){this.mousePosition=this.getProgressBarMousePosition(t)},onProgressBarMouseLeave(){this.hovered=!1,this.isDraggingCursor=!1},onProgressBarClick(){this.$emit("update-frame-index",this.hoveredFrameIndex),this.$emit("seek",this.hoveredFrameIndex)},getProgressBarChunkStyle(t,e){const[r,n]=[100*t/(this.frames.length-1),100*e/(this.frames.length-1)];return{left:`${r}%`,width:`${n-r}%`}},animatePlayPauseOverlay(){this.disablePlayPauseAnimation||(this.playPauseAnimation=!0,this.$setTimeout(()=>this.playPauseAnimation=!1,500))},isImageClick(t){const e=t==null?void 0:t.target;return e?e&&(e.id==="img-foreground"||typeof e.className=="string"&&e.className.indexOf("zoomable-img__img")!==-1):!1},onFrameMouseDown(t){!this.isImageClick(t)||!this.playOnClick||(this.mouseDownTime=new Date().getTime())},onFrameMouseUp(t){this.isLastFrame||this.disablePlayButton||!this.playOnClick||this.isAnnotationActive||!this.isImageClick(t)||new Date().getTime()-this.mouseDownTime>200||(this.playing=!this.playing)},removeFullscreenListeners(){const t=document;t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled?(t.removeEventListener("fullscreenchange",this.handleFullscreenChange),t.removeEventListener("webkitfullscreenchange",this.handleFullscreenChange),t.removeEventListener("mozfullscreenchange",this.handleFullscreenChange),t.removeEventListener("MSFullscreenChange",this.handleFullscreenChange)):console.log("Fullscreen API is not supported in this browser.")},initializeFullscreenListeners(){const t=document;t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled?(t.addEventListener("fullscreenchange",this.handleFullscreenChange),t.addEventListener("webkitfullscreenchange",this.handleFullscreenChange),t.addEventListener("mozfullscreenchange",this.handleFullscreenChange),t.addEventListener("MSFullscreenChange",this.handleFullscreenChange)):console.log("Fullscreen API is not supported in this browser.")},handleFullscreenChange(){const t=document;this.isFullscreen=!!t.fullscreenElement||!!t.mozFullScreenElement||!!t.webkitFullscreenElement||!!t.msFullscreenElement||window.innerWidth==screen.width&&window.innerHeight==screen.height},closeFullscreenMode(){document.fullscreenElement&&(Yr().then(()=>{this.isFullscreen=!1}),this.isFullscreen=!1)},openFullscreenMode(){const t=document.querySelector("#imagePlayer");t&&(Zr(t).then(()=>{this.isFullscreen=!0}),this.isFullscreen=!0)},toggleFullscreenMode(){this.isFullscreen?this.closeFullscreenMode():this.openFullscreenMode()},updateRefs(){var t,e,r;this.image=(r=(e=(t=this.$refs)==null?void 0:t.zoomableImage)==null?void 0:e.$refs)==null?void 0:r.image},incrementCurrentFrameIndex(){const t=this.frameIndex+1;this.frames[t]&&this.$emit("update-frame-index",t)},getFrameSrc(t){if(t)return t.srcSet?t.srcSet[this.selectedSnapshotQuality]:t.src},loadTargetFrame(){if(!(this.frameIndex&&this.frameIndex===this.previousFrameIndex))return new Promise(t=>{this.updateRefs(),this.previousSrc=this.src,this.previousFrameIndex=this.frameIndex,this.resolveImageLoadingPromise=t,this.src=this.getFrameSrc(this.frames[this.frameIndex])})},async handleBuffering(){this.preload&&await this.buffer()},async buffer(){let t=this.frameIndex+this.preloadSize;this.preloadSize===1/0&&(t=this.frames.length-1),await this.preloadFrames({start:this.frameIndex,end:t})},async preloadFrames({start:t,end:e}){const[r,n]=[Math.min(this.frames.length-1,t),Math.min(this.frames.length-1,e)],i=new Array(n-r+1).fill(0).map((a,u)=>a+r+u),o=this.preloadingQueueId;for(const a of i){if(o!==this.preloadingQueueId||this.playing&&!this.preloadWhilePlaying)return;this.preloadedFrames.includes(a)||await new Promise(s=>{const l=new Image;l.onload=()=>{this.preloadedFrames=[...this.preloadedFrames,a],s()},l.onerror=()=>{s()},this.preloadingFramesImgs=[...this.preloadingFramesImgs,l];const d=this.getFrameSrc(this.frames[a]);a||s(),l.src=d})}},async delay(){return this.frameError?(this.frameError=!1,Promise.resolve()):new Promise(t=>{const e=performance.now(),r=n=>{n-e<this.timePerFrame?this.animationId=window.requestAnimationFrame(r):t()};this.animationId=window.requestAnimationFrame(r)})},cancelDelay(){window.cancelAnimationFrame(this.animationId)},async play(){var r,n;const t=performance.now();if(this.isLastFrame&&!this.isLive){this.$emit("update-frame-index",0);return}this.$emit("update-playback",!0),this.playing=!0,this.cancelDelay(),this.incrementCurrentFrameIndex(),await this.$nextTick(),await this.loadTargetFrame(),this.handleBuffering(),await this.delay(),this.playing&&this.play();const e=performance.now();this.$emit("performance-intervals-changed",{id:(r=this.frames[this.frameIndex])==null?void 0:r.timestamp,frame:(n=this.frames[this.frameIndex])==null?void 0:n.label,duration:e-t})},flushPreloadingQueue(){this.$emit("cancel-previous-preloading"),this.preloadingFramesImgs.forEach(t=>{t.src=""}),this.preloadingFramesImgs=[]},async pause(){this.playing=!1,this.imageLoaded=!0,this.src=this.previousSrc,this.cancelDelay(),this.handleBuffering(),this.$emit("update-playback",!1)},onLoad(){var e,r,n,i;this.$emit("on-image-load",this.image),this.$emit("snapshot-changed",{data:(e=this.frames[this.frameIndex])==null?void 0:e.src,createdAt:(r=this.frames[this.frameIndex])==null?void 0:r.timestamp});const t=(i=(n=this.frames)==null?void 0:n[this.frameIndex])==null?void 0:i.timestamp;t&&this.$emit("timestamp-change",t),this.imageLoaded=!0,this.previousSrc=this.src,this.resolveImageLoadingPromise()},onError(t){if(this.frameIndex>1)return this.$emit("update-frame-index",this.frameIndex-1);this.frameError=!0,this.src=this.previousSrc,this.resolveImageLoadingPromise(),this.$emit("error",t)},onChange(t){this.$emit("change",t)},onBeforeUpdate(t){this.$emit("hook:beforeUpdate",t)},onBeforeDestroy(t){this.$emit("hook:beforeDestroy",t)},togglePlay(){this.playing=!this.playing},handleKeyDown(t){var r;const e=(r=document.activeElement)==null?void 0:r.tagName.toLowerCase();if(!(e==="input"||this.isAnnotationActive))switch(t.key.toLowerCase()){case" ":if(e==="button")return;this.disablePlayButton||this.togglePlay();break;case"escape":t.preventDefault(),this.closeFullscreenMode(),this.isFullscreen=!1;break}}}}),yd="";var zc=function(){var n,i;var e=this,r=e._self._c;return r("div",{staticClass:"e-image-player player e-h-full e-w-full",style:e.playerDimensions,attrs:{id:"imagePlayer"}},[r("div",{staticClass:"player__frames player-container",style:e.playerDimensions,attrs:{id:"img-container"},on:{pointerdown:e.onFrameMouseDown,pointerup:e.onFrameMouseUp}},[r("div",{staticClass:"e-h-full e-w-full e-shrink-0 e-relative"},[r("img",{staticClass:"e-absolute e-block e-w-full e-h-full background-fade",attrs:{src:e.src||((n=e.frames[e.frameIndex])==null?void 0:n.src)||"",alt:"background-image"}}),r("EZoomableImg",e._g(e._b({directives:[{name:"show",rawName:"v-show",value:e.imageLoaded&&e.src||e.placeholderImage,expression:"(imageLoaded && src) || placeholderImage"}],ref:"zoomableImage",attrs:{"img-props":{imgProps:e.imgProps},"overlay-style":{zIndex:1},src:e.src||((i=e.frames[e.frameIndex])==null?void 0:i.src)||e.placeholderImage||"",alt:e.altText,"hide-content-on-blur":!1,height:e.height.split("px")[0],"placeholder-image":e.placeholderImage,slider:!1,"is-mobile":e.isMobile,disabled:!e.isZoomable,"is-annotation-active":e.isAnnotationActive,"blur-background":""},on:{load:e.onLoad,error:e.onError,change:e.onChange,"hook:beforeUpdate":e.onBeforeUpdate,"hook:beforeDestroy":e.onBeforeDestroy},scopedSlots:e._u([{key:"imageOverlay",fn:function(){return[e._t("default"),e._t("imageOverlay",null,{image:e.image})]},proxy:!0}],null,!0)},"EZoomableImg",e.$attrs,!1),e.$listeners),[e._t("player-container-overlay")],2),e.playPauseAnimation?r("div",{staticClass:"image-player-overlay e-flex e-items-center e-justify-center"},[r("div",{staticClass:"image-player-overlay__wrapper"},[e.playing?r("svg",{attrs:{height:"100%",viewBox:"-1 0 36 36",width:"100%"}},[r("path",{attrs:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}})]):r("svg",{attrs:{height:"100%",viewBox:"0.5 0 36 36",width:"100%"}},[r("path",{attrs:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}})])])]):e._e(),e._t("imagePlayerOverlay")],2)]),e._t("controls",function(){return[e.withControls?r("div",{staticClass:"e-absolute e-bottom-0 e-w-[97%] e-p-4 e-pt-8 e-z-50 e-space-y-4 e-bg-gradient-to-t e-from-[#363434] e-to-transparent"},[r("div",{staticClass:"e-font-semibold e-text-white"},[e._v(" "+e._s(e.frames[e.frameIndex].label)+" - "+e._s(e.frameIndex)+" / "+e._s(e.frames.length-1)+" ")]),r("div",{staticClass:"e-flex e-justify-start e-gap-2 e-items-center"},[r("button",{staticClass:"e-text-white e-bg-transparent e-border-none e-cursor-pointer action-btn__first-vertical e-rounded-md",on:{click:e.togglePlay}},[r("i",{staticClass:"fas fa-2x",class:{"fa-play":!e.playing,"fa-pause":e.playing}})]),r("div",{ref:"progressBar",staticClass:"e-w-full e-h-3 e-relative e-bg-gray-200 e-rounded-md",on:{click:e.onProgressBarClick,mouseenter:e.onProgressBarMouseEnter,mousemove:e.onProgressBarMouseMove,mouseleave:e.onProgressBarMouseLeave}},[r("div",{staticClass:"e-bg-blue-500 e-w-full e-h-full e-absolute e-rounded-md e-z-[1]",style:{width:`${e.playedPercentage}%`}}),e._l(e.preloadedChunks,function([o,a]){return r("div",{key:a,staticClass:"e-bg-blue-300 e-h-full e-absolute e-rounded-md",style:e.getProgressBarChunkStyle(o,a)})})],2),r("button",{ref:"fullScreenBtn",staticClass:"e-text-white e-bg-transparent e-border-none e-cursor-pointer action-btn__second-vertical e-rounded-md",on:{click:e.toggleFullscreenMode}},[r("i",{staticClass:"fas fa-2x",class:{"fa-expand":!e.isFullscreen,"fa-compress":e.isFullscreen}})])])]):e._e()]},{playing:e.playing,togglePlay:e.togglePlay,play:e.play,pause:e.pause,toggleFullscreen:e.toggleFullscreenMode,preloadedFrames:e.preloadedFrames,isLastFrame:e.isLastFrame})],2)},Bc=[],Ic=H(Oc,zc,Bc,!1,null,null,null,null);const fs=Ic.exports,Fc=A.extend({name:"ELayout",directives:{ResizeObserver:Ke},mixins:[Ue],props:{height:{type:[String,Number],default:null},withOverlay:{type:Boolean,default:!1}},data(){return{footerHeight:0,overlayFooterHeight:0,wrapperStyle:{width:"100%",height:"100%"},mainStyle:{width:"100%",height:"100%"},mainHeight:"100%"}},computed:{bottomStyle(){return{bottom:`${this.overlayFooterHeight}px`}}},watch:{mainHeight(){this.onResize()},height:{immediate:!0,handler(){this.onResize()}}},mounted(){this.setOverlayFooterHeight(),this.setFooterHeight()},methods:{onResize(){this.setFooterHeight(),this.setOverlayFooterHeight()},onOverlayClick(t){this.$emit("overlay-click",t)},setOverlayFooterHeight(){const t=this.$refs.overlayFooter;t||this.$setTimeout(()=>{this.setOverlayFooterHeight()}),this.overlayFooterHeight=t==null?void 0:t.clientHeight},setFooterHeight(){const t=this.$refs.footer;t||this.$setTimeout(()=>{this.setFooterHeight()}),this.footerHeight=t==null?void 0:t.clientHeight,this.$attrs.isFullscreen?this.mainHeight=`${screen.height}px`:this.mainHeight=`${this.height?this.height.split("px")[0]-this.footerHeight:"100"}px`,this.mainStyle={width:"100%",height:this.mainHeight}}}});var Ac=function(){var e=this,r=e._self._c;return r("div",e._b({directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResize,expression:"onResize"}],ref:"globalLayout",staticClass:"e-layout e-w-full e-h-full e-relative",style:{width:"100%",height:e.mainHeight},attrs:{id:"globalLayout"}},"div",e.$attrs,!1),[r("div",{staticClass:"e-layout__container e-relative",style:e.mainStyle},[r("div",{staticClass:"e-layout__main e-w-full e-h-full e-absolute e-inset-0 e-z-0",style:e.mainStyle},[e._t("main",null,{size:{...e.mainStyle}})],2),e.withOverlay?r("div",{staticClass:"e-layout__overlay e-w-full e-h-full e-absolute e-inset-0 e-z-[1]",style:e.mainStyle,on:{click:e.onOverlayClick}},[e._t("overlay",null,{size:{...e.mainStyle}})],2):e._e(),r("div",{staticClass:"e-layout__top-left e-absolute e-left-0 e-top-0 e-z-[2]"},[e._t("top-left")],2),r("div",{staticClass:"e-absolute e-right-0 e-top-0 e-layout__top-right e-z-[2]"},[e._t("top-right")],2),r("div",{staticClass:"e-absolute e-right-0 e-bottom-10 e-layout__bottom-right e-z-[2]",style:e.bottomStyle},[e._t("bottom-right")],2),r("div",{staticClass:"e-absolute e-left-0 e-bottom-10 e-layout__bottom-left e-z-[2]",style:e.bottomStyle},[e._t("bottom-left")],2),r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.setOverlayFooterHeight,expression:"setOverlayFooterHeight"}],ref:"overlayFooter",staticClass:"e-absolute e-bottom-0 e-left-0 e-right-0 e-layout__overlay-footer e-z-[2]"},[e._t("overlay-footer")],2)]),r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.setFooterHeight,expression:"setFooterHeight"}],ref:"footer",staticClass:"e-layout__footer e-relative e-z-[2]"},[e._t("footer")],2)])},Rc=[],Hc=H(Fc,Ac,Rc,!1,null,null,null,null);const ps=Hc.exports;var Nc=H({name:"EContextProvider",provide(){return{...this.$props.context}},props:{context:{type:Object,required:!0}},render(){return this.$scopedSlots.default()}},null,null,!1,null,null,null,null);const jc=Nc.exports,Gc=A.extend({name:"EChatWrapper",props:{dark:{type:Boolean,default:!1},embedded:{type:Boolean,default:!1}},computed:{borderClasses(){return this.embedded?{}:{"e-border-[1px] e-border-solid e-rounded-lg e-overflow-hidden":!0,"e-border-gray-300":!this.dark,"e-border-gray-600":this.dark}},wrapperClasses(){return{"e-bg-gray-800 e-text-white":this.dark,"e-bg-white e-text-gray-800":!this.dark,...this.borderClasses}}}}),wd="";var Wc=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-chat-wrapper e-h-full",class:e.wrapperClasses},[e._t("default")],2)},qc=[],Uc=H(Gc,Wc,qc,!1,null,null,null,null);const Zc=Uc.exports,Yc=A.extend({name:"EChatHeader",components:{EAvatar:Mt},props:{size:{type:String,default:"xs"},backgroundClasses:{type:String,default:""}}}),Sd="";var Xc=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EAvatar",{staticClass:"e-evercam-logo",attrs:{image:"https://dash.evercam.io/evercam-logo.svg",size:e.size,"background-classes":e.backgroundClasses}})},Vc=[],Qc=H(Yc,Xc,Vc,!1,null,null,null,null);const ms=Qc.exports,Kc=A.extend({name:"EChatHeader",components:{EEvercamLogo:ms},props:{title:{type:String,default:"Evercam Copilot"},hidden:{type:Boolean,default:!1},dark:{type:Boolean,default:!1}},computed:{backgroundClasses(){return{"e-bg-gray-700":this.dark,"e-bg-gray-50":!this.dark}},headerClasses(){return{"e-hidden":this.hidden,...this.backgroundClasses}}}});var Jc=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-chat-header e-flex e-items-center e-justify-between",class:e.headerClasses},[r("div",{staticClass:"e-chat-logo e-flex e-w-full e-items-center e-justify-start e-gap-2 e-px-5 e-py-4"},[e._t("logo",function(){return[r("div",{},[r("EEvercamLogo",{attrs:{size:"xs","background-classes":"e-bg-white e-p-[2px] e-rounded-full !e-pr-[2.5px] !e-pt-[3.5px]"}})],1)]}),r("div",{staticClass:"e-font-semibold e-h-min e-text-base"},[e._v(e._s(e.title))]),e._t("chip")],2),e._t("append")],2)},e8=[],t8=H(Kc,Jc,e8,!1,null,null,null,null);const r8=t8.exports,n8=A.extend({name:"EChatBody",directives:{ResizeObserver:Ke},props:{dark:{type:Boolean,default:!1}},data(){return{autoScroll:!0,previousChildCount:0,showGoToBottomButton:!1}},computed:{bodyClasses(){return{"e-custom-scrollbar--light":!this.dark,"e-custom-scrollbar--dark":this.dark}},goToBottomButtonClasses(){return{"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"e-bg-gray-600":this.dark,"e-bg-gray-200":!this.dark}}},watch:{autoScroll(t){t&&this.scrollToBottom()}},mounted(){this.scrollToBottom()},methods:{onContentResized(){const e=this.$refs.contentWrapper.childElementCount;e!==this.previousChildCount&&(this.autoScroll=!0),this.autoScroll&&this.scrollToBottom(),this.previousChildCount=e},scrollToBottom(){const t=this.$refs.anchor;this.$nextTick(()=>{t.scrollIntoView({behavior:"smooth"})})},disableAutoScroll(){this.autoScroll=!1},onScroll(){const t=this.$refs.chatBody;t.scrollHeight-t.scrollTop<=t.clientHeight+1&&(this.autoScroll=!0),this.showGoToBottomButton=t.scrollHeight-t.scrollTop>t.clientHeight+100},onWheel(t){t.deltaY<0&&this.disableAutoScroll()},onKeyUp(t){["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"].includes(t.key)&&this.disableAutoScroll()},onTouch(){this.disableAutoScroll()},onTouchMove(){this.disableAutoScroll()}}}),Td="";var i8=function(){var e=this,r=e._self._c;return r("div",e._b({ref:"chatBody",staticClass:"e-chat-body e-space-y-2 e-py-3 e-px-5 e-leading-6",class:e.bodyClasses,attrs:{tabindex:"0"},on:{scroll:e.onScroll,wheel:e.onWheel,keyup:function(n){return n.stopPropagation(),e.onKeyUp.apply(null,arguments)},touchstart:e.onTouch,touchmove:e.onTouchMove}},"div",e.$attrs,!1),[r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onContentResized,expression:"onContentResized"}],ref:"contentWrapper",staticClass:"e-chat-body__content"},[e._t("default")],2),r("div",{ref:"anchor",staticClass:"e-chat-body__anchor"}),e.showGoToBottomButton?r("div",{staticClass:"e-chat-body__go-to-bottom e-sticky e-bottom-1 e-flex e-justify-center"},[r("button",{staticClass:"e-animate-bounce e-inline-flex e-items-center e-justify-center e-cursor-pointer e-h-8 e-w-8 e-border-none focus:e-outline-none e-rounded-full",class:e.goToBottomButtonClasses,on:{click:e.scrollToBottom}},[r("EIcon",{attrs:{icon:"arrow-down",size:"Base"}})],1)]):e._e()])},s8=[],a8=H(n8,i8,s8,!1,null,null,null,null);const o8=a8.exports,l8=A.extend({props:{size:{type:Number,default:12},color:{type:String,default:"#c5393d"},withDot:{type:Boolean,default:!0}},computed:{computedSize(){return`${this.size}px`},computedMargin(){return`${this.size/2}px`},computedShadowSize(){return`${this.size*2}px`},computedSecondaryColor(){return ht(this.color,0)||"#fff"},dotContainerStyle(){return{margin:`${this.computedMargin} auto`,width:this.computedSize,height:this.computedSize,position:"relative"}},shadowStyle(){return{width:this.computedSize,height:this.computedSize,"--boxShadowColor":ht(this.color,.7),"--backgroundColor":ht(this.color,.7),"--secondaryColor":this.computedSecondaryColor,"--shadowSize":this.computedShadowSize}},secondShadowStyle(){return{...this.shadowStyle,animationDelay:".33s",animationDuration:"2.3s"}},dotStyle(){return{width:this.computedSize,height:this.computedSize,backgroundColor:this.withDot?ht(this.color,1):void 0}}},methods:{toRgba:ht}}),kd="";var c8=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-pulsating-dot",style:e.dotContainerStyle},[r("span",{staticClass:"e-pulsating-dot__shadow",style:e.shadowStyle}),r("span",{staticClass:"e-pulsating-dot__shadow",style:e.secondShadowStyle}),r("div",{staticClass:"e-pulsating-dot__dot",style:e.dotStyle},[e._t("icon")],2)])},u8=[],d8=H(l8,c8,u8,!1,null,"cf575c64",null,null);const h8=d8.exports;var gs={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(typeof self!="undefined"?self:ot,()=>(()=>{var r={75:function(a){(function(){var u,s,l,d,p,m;typeof performance!="undefined"&&performance!==null&&performance.now?a.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(a.exports=function(){return(u()-p)/1e6},s=process.hrtime,d=(u=function(){var b;return 1e9*(b=s())[0]+b[1]})(),m=1e9*process.uptime(),p=d-m):Date.now?(a.exports=function(){return Date.now()-l},l=Date.now()):(a.exports=function(){return new Date().getTime()-l},l=new Date().getTime())}).call(this)},4087:(a,u,s)=>{for(var l=s(75),d=typeof window=="undefined"?s.g:window,p=["moz","webkit"],m="AnimationFrame",b=d["request"+m],x=d["cancel"+m]||d["cancelRequest"+m],h=0;!b&&h<p.length;h++)b=d[p[h]+"Request"+m],x=d[p[h]+"Cancel"+m]||d[p[h]+"CancelRequest"+m];if(!b||!x){var y=0,$=0,D=[];b=function(S){if(D.length===0){var R=l(),E=Math.max(0,16.666666666666668-(R-y));y=E+R,setTimeout(function(){var j=D.slice(0);D.length=0;for(var Q=0;Q<j.length;Q++)if(!j[Q].cancelled)try{j[Q].callback(y)}catch(U){setTimeout(function(){throw U},0)}},Math.round(E))}return D.push({handle:++$,callback:S,cancelled:!1}),$},x=function(S){for(var R=0;R<D.length;R++)D[R].handle===S&&(D[R].cancelled=!0)}}a.exports=function(S){return b.call(d,S)},a.exports.cancel=function(){x.apply(d,arguments)},a.exports.polyfill=function(S){S||(S=d),S.requestAnimationFrame=b,S.cancelAnimationFrame=x}}},n={};function i(a){var u=n[a];if(u!==void 0)return u.exports;var s=n[a]={exports:{}};return r[a].call(s.exports,s,s.exports,i),s.exports}i.n=a=>{var u=a&&a.__esModule?()=>a.default:()=>a;return i.d(u,{a:u}),u},i.d=(a,u)=>{for(var s in u)i.o(u,s)&&!i.o(a,s)&&Object.defineProperty(a,s,{enumerable:!0,get:u[s]})},i.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),i.o=(a,u)=>Object.prototype.hasOwnProperty.call(a,u);var o={};return(()=>{i.d(o,{default:()=>X});var a=i(4087),u=i.n(a);const s=function(I){return new RegExp(/<[a-z][\s\S]*>/i).test(I)},l=function(I,T){return Math.floor(Math.random()*(T-I+1))+I};var d="TYPE_CHARACTER",p="REMOVE_CHARACTER",m="REMOVE_ALL",b="REMOVE_LAST_VISIBLE_NODE",x="PAUSE_FOR",h="CALL_FUNCTION",y="ADD_HTML_TAG_ELEMENT",$="CHANGE_DELETE_SPEED",D="CHANGE_DELAY",S="CHANGE_CURSOR",R="PASTE_STRING",E="HTML_TAG";function j(I){return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},j(I)}function Q(I,T){var P=Object.keys(I);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(I);T&&(N=N.filter(function(ne){return Object.getOwnPropertyDescriptor(I,ne).enumerable})),P.push.apply(P,N)}return P}function U(I){for(var T=1;T<arguments.length;T++){var P=arguments[T]!=null?arguments[T]:{};T%2?Q(Object(P),!0).forEach(function(N){L(I,N,P[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(P)):Q(Object(P)).forEach(function(N){Object.defineProperty(I,N,Object.getOwnPropertyDescriptor(P,N))})}return I}function C(I){return function(T){if(Array.isArray(T))return z(T)}(I)||function(T){if(typeof Symbol!="undefined"&&T[Symbol.iterator]!=null||T["@@iterator"]!=null)return Array.from(T)}(I)||function(T,P){if(T){if(typeof T=="string")return z(T,P);var N=Object.prototype.toString.call(T).slice(8,-1);return N==="Object"&&T.constructor&&(N=T.constructor.name),N==="Map"||N==="Set"?Array.from(T):N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N)?z(T,P):void 0}}(I)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
237
237
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function z(I,T){(T==null||T>I.length)&&(T=I.length);for(var P=0,N=new Array(T);P<T;P++)N[P]=I[P];return N}function q(I,T){for(var P=0;P<T.length;P++){var N=T[P];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(I,Y(N.key),N)}}function L(I,T,P){return(T=Y(T))in I?Object.defineProperty(I,T,{value:P,enumerable:!0,configurable:!0,writable:!0}):I[T]=P,I}function Y(I){var T=function(P,N){if(j(P)!=="object"||P===null)return P;var ne=P[Symbol.toPrimitive];if(ne!==void 0){var _=ne.call(P,"string");if(j(_)!=="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(P)}(I);return j(T)==="symbol"?T:String(T)}const X=function(){function I(N,ne){var _=this;if(function(F,B){if(!(F instanceof B))throw new TypeError("Cannot call a class as a function")}(this,I),L(this,"state",{cursorAnimation:null,lastFrameTime:null,pauseUntil:null,eventQueue:[],eventLoop:null,eventLoopPaused:!1,reverseCalledEvents:[],calledEvents:[],visibleNodes:[],initialOptions:null,elements:{container:null,wrapper:document.createElement("span"),cursor:document.createElement("span")}}),L(this,"options",{strings:null,cursor:"|",delay:"natural",pauseFor:1500,deleteSpeed:"natural",loop:!1,autoStart:!1,devMode:!1,skipAddStyles:!1,wrapperClassName:"Typewriter__wrapper",cursorClassName:"Typewriter__cursor",stringSplitter:null,onCreateTextNode:null,onRemoveNode:null}),L(this,"setupWrapperElement",function(){_.state.elements.container&&(_.state.elements.wrapper.className=_.options.wrapperClassName,_.state.elements.cursor.className=_.options.cursorClassName,_.state.elements.cursor.innerHTML=_.options.cursor,_.state.elements.container.innerHTML="",_.state.elements.container.appendChild(_.state.elements.wrapper),_.state.elements.container.appendChild(_.state.elements.cursor))}),L(this,"start",function(){return _.state.eventLoopPaused=!1,_.runEventLoop(),_}),L(this,"pause",function(){return _.state.eventLoopPaused=!0,_}),L(this,"stop",function(){return _.state.eventLoop&&((0,a.cancel)(_.state.eventLoop),_.state.eventLoop=null),_}),L(this,"pauseFor",function(F){return _.addEventToQueue(x,{ms:F}),_}),L(this,"typeOutAllStrings",function(){return typeof _.options.strings=="string"?(_.typeString(_.options.strings).pauseFor(_.options.pauseFor),_):(_.options.strings.forEach(function(F){_.typeString(F).pauseFor(_.options.pauseFor).deleteAll(_.options.deleteSpeed)}),_)}),L(this,"typeString",function(F){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(s(F))return _.typeOutHTMLString(F,B);if(F){var w=(_.options||{}).stringSplitter,W=typeof w=="function"?w(F):F.split("");_.typeCharacters(W,B)}return _}),L(this,"pasteString",function(F){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return s(F)?_.typeOutHTMLString(F,B,!0):(F&&_.addEventToQueue(R,{character:F,node:B}),_)}),L(this,"typeOutHTMLString",function(F){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,w=arguments.length>2?arguments[2]:void 0,W=function(ce){var le=document.createElement("div");return le.innerHTML=ce,le.childNodes}(F);if(W.length>0)for(var V=0;V<W.length;V++){var M=W[V],re=M.innerHTML;M&&M.nodeType!==3?(M.innerHTML="",_.addEventToQueue(y,{node:M,parentNode:B}),w?_.pasteString(re,M):_.typeString(re,M)):M.textContent&&(w?_.pasteString(M.textContent,B):_.typeString(M.textContent,B))}return _}),L(this,"deleteAll",function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"natural";return _.addEventToQueue(m,{speed:F}),_}),L(this,"changeDeleteSpeed",function(F){if(!F)throw new Error("Must provide new delete speed");return _.addEventToQueue($,{speed:F}),_}),L(this,"changeDelay",function(F){if(!F)throw new Error("Must provide new delay");return _.addEventToQueue(D,{delay:F}),_}),L(this,"changeCursor",function(F){if(!F)throw new Error("Must provide new cursor");return _.addEventToQueue(S,{cursor:F}),_}),L(this,"deleteChars",function(F){if(!F)throw new Error("Must provide amount of characters to delete");for(var B=0;B<F;B++)_.addEventToQueue(p);return _}),L(this,"callFunction",function(F,B){if(!F||typeof F!="function")throw new Error("Callback must be a function");return _.addEventToQueue(h,{cb:F,thisArg:B}),_}),L(this,"typeCharacters",function(F){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!F||!Array.isArray(F))throw new Error("Characters must be an array");return F.forEach(function(w){_.addEventToQueue(d,{character:w,node:B})}),_}),L(this,"removeCharacters",function(F){if(!F||!Array.isArray(F))throw new Error("Characters must be an array");return F.forEach(function(){_.addEventToQueue(p)}),_}),L(this,"addEventToQueue",function(F,B){var w=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return _.addEventToStateProperty(F,B,w,"eventQueue")}),L(this,"addReverseCalledEvent",function(F,B){var w=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return _.options.loop?_.addEventToStateProperty(F,B,w,"reverseCalledEvents"):_}),L(this,"addEventToStateProperty",function(F,B){var w=arguments.length>2&&arguments[2]!==void 0&&arguments[2],W=arguments.length>3?arguments[3]:void 0,V={eventName:F,eventArgs:B||{}};return _.state[W]=w?[V].concat(C(_.state[W])):[].concat(C(_.state[W]),[V]),_}),L(this,"runEventLoop",function(){_.state.lastFrameTime||(_.state.lastFrameTime=Date.now());var F=Date.now(),B=F-_.state.lastFrameTime;if(!_.state.eventQueue.length){if(!_.options.loop)return;_.state.eventQueue=C(_.state.calledEvents),_.state.calledEvents=[],_.options=U({},_.state.initialOptions)}if(_.state.eventLoop=u()(_.runEventLoop),!_.state.eventLoopPaused){if(_.state.pauseUntil){if(F<_.state.pauseUntil)return;_.state.pauseUntil=null}var w,W=C(_.state.eventQueue),V=W.shift();if(!(B<=(w=V.eventName===b||V.eventName===p?_.options.deleteSpeed==="natural"?l(40,80):_.options.deleteSpeed:_.options.delay==="natural"?l(120,160):_.options.delay))){var M=V.eventName,re=V.eventArgs;switch(_.logInDevMode({currentEvent:V,state:_.state,delay:w}),M){case R:case d:var ce=re.character,le=re.node,ie=document.createTextNode(ce),he=ie;_.options.onCreateTextNode&&typeof _.options.onCreateTextNode=="function"&&(he=_.options.onCreateTextNode(ce,ie)),he&&(le?le.appendChild(he):_.state.elements.wrapper.appendChild(he)),_.state.visibleNodes=[].concat(C(_.state.visibleNodes),[{type:"TEXT_NODE",character:ce,node:he}]);break;case p:W.unshift({eventName:b,eventArgs:{removingCharacterNode:!0}});break;case x:var Se=V.eventArgs.ms;_.state.pauseUntil=Date.now()+parseInt(Se);break;case h:var oe=V.eventArgs,ye=oe.cb,Ae=oe.thisArg;ye.call(Ae,{elements:_.state.elements});break;case y:var Be=V.eventArgs,$e=Be.node,Te=Be.parentNode;Te?Te.appendChild($e):_.state.elements.wrapper.appendChild($e),_.state.visibleNodes=[].concat(C(_.state.visibleNodes),[{type:E,node:$e,parentNode:Te||_.state.elements.wrapper}]);break;case m:var Me=_.state.visibleNodes,Ee=re.speed,Le=[];Ee&&Le.push({eventName:$,eventArgs:{speed:Ee,temp:!0}});for(var De=0,et=Me.length;De<et;De++)Le.push({eventName:b,eventArgs:{removingCharacterNode:!1}});Ee&&Le.push({eventName:$,eventArgs:{speed:_.options.deleteSpeed,temp:!0}}),W.unshift.apply(W,Le);break;case b:var Qe=V.eventArgs.removingCharacterNode;if(_.state.visibleNodes.length){var lt=_.state.visibleNodes.pop(),Tt=lt.type,Ze=lt.node,pt=lt.character;_.options.onRemoveNode&&typeof _.options.onRemoveNode=="function"&&_.options.onRemoveNode({node:Ze,character:pt}),Ze&&Ze.parentNode.removeChild(Ze),Tt===E&&Qe&&W.unshift({eventName:b,eventArgs:{}})}break;case $:_.options.deleteSpeed=V.eventArgs.speed;break;case D:_.options.delay=V.eventArgs.delay;break;case S:_.options.cursor=V.eventArgs.cursor,_.state.elements.cursor.innerHTML=V.eventArgs.cursor}_.options.loop&&(V.eventName===b||V.eventArgs&&V.eventArgs.temp||(_.state.calledEvents=[].concat(C(_.state.calledEvents),[V]))),_.state.eventQueue=W,_.state.lastFrameTime=F}}}),N)if(typeof N=="string"){var Z=document.querySelector(N);if(!Z)throw new Error("Could not find container element");this.state.elements.container=Z}else this.state.elements.container=N;ne&&(this.options=U(U({},this.options),ne)),this.state.initialOptions=U({},this.options),this.init()}var T,P;return T=I,(P=[{key:"init",value:function(){var N,ne;this.setupWrapperElement(),this.addEventToQueue(S,{cursor:this.options.cursor},!0),this.addEventToQueue(m,null,!0),!window||window.___TYPEWRITER_JS_STYLES_ADDED___||this.options.skipAddStyles||(N=".Typewriter__cursor{-webkit-animation:Typewriter-cursor 1s infinite;animation:Typewriter-cursor 1s infinite;margin-left:1px}@-webkit-keyframes Typewriter-cursor{0%{opacity:0}50%{opacity:1}100%{opacity:0}}@keyframes Typewriter-cursor{0%{opacity:0}50%{opacity:1}100%{opacity:0}}",(ne=document.createElement("style")).appendChild(document.createTextNode(N)),document.head.appendChild(ne),window.___TYPEWRITER_JS_STYLES_ADDED___=!0),this.options.autoStart===!0&&this.options.strings&&this.typeOutAllStrings().start()}},{key:"logInDevMode",value:function(N){this.options.devMode&&console.log(N)}}])&&q(T.prototype,P),Object.defineProperty(T,"prototype",{writable:!1}),I}()})(),o.default})())})(gs);var f8=gs.exports;const p8=yt(f8);class m8{constructor(e,r){this.processor=null,this.accumulator="",this.totalMarkdown="",this.lastProcessedLength=0,this.regexRenderTargetsById={},this.isRenderingTable=!1,this.isFirstTableRender=!1,this.mdTableHeaderString="",this.isIncompleteTableRow=!1,this.pendingRowString="",this.tableId=0,this.rowId=0,this.typewriter=null,this.container=e,this.htmlRenderingTarget=e,this.exposedRegexes=r.exposedRegexes||[],this.useTableProcessor=!!r.useTableProcessor,this.initProcessor(),this.animated=!!r.animated,this.animated&&(this.typewriter=this.initTypewriter()),this.onAnimationStart=r.onAnimationStart||(()=>{}),this.onAnimationEnd=r.onAnimationEnd||(()=>{})}initProcessor(){this.processor=Zs.unified().use(Gs).use(this.remarkCheckIncompleteTableRows.bind(this)).use(En).use(En).use(js).use(Ws,{allowDangerousHtml:!0}).use(qs,{allowDangerousHtml:!0})}remarkCheckIncompleteTableRows(){return e=>{Us.visit(e,void 0,(r,n,i)=>{var u,s;const o=i,a=r.type;if(a==="text"&&this.exposedRegexes.forEach(({regex:l,type:d})=>{this.processTextNode(r,n,o,l,d)}),!!this.useTableProcessor&&(a==="table"&&!r.data&&(r.data={hProperties:{id:`t-${this.tableId}`}},this.mdTableHeaderString=this.extractTableHeaderString(r),this.setIsRenderingTable(!0)),a==="tableRow"&&!r.data&&(r.data={hProperties:{id:`r-${this.rowId++}`}}),a==="tableRow")){const l=o.children[0].children.length,d=r.children.length,p=this.accumulator.slice((u=r.position)==null?void 0:u.start.offset,(s=r.position)==null?void 0:s.end.offset);d<l?this.isIncompleteTableRow=!0:p.endsWith("|")?(this.isIncompleteTableRow=!1,this.pendingRowString=""):(this.pendingRowString=p,this.isIncompleteTableRow=!0)}})}}setIsRenderingTable(e){e&&!this.isRenderingTable&&(this.isFirstTableRender=!0),!e&&this.isRenderingTable&&this.startNewRenderingCycle(),this.isRenderingTable=e}startNewRenderingCycle(){const e=document.createElement("div");this.container.appendChild(e),this.htmlRenderingTarget=e,this.accumulator="",this.isRenderingTable&&(this.tableId++,this.mdTableHeaderString="",this.isIncompleteTableRow=!1,this.isRenderingTable=!1)}extractTableHeaderString(e){const r=e,n=r.children[0],i=r.align,o=n.children.map(u=>` ${u.children.map(l=>l.value).join("")} `).join("|"),a=i.map(u=>u==="left"?":---":u==="right"?"---:":u==="center"?":---:":"---").join("|");return`|${o}|
238
238
  |${a}|
239
239
  `}async processMarkdown(e){if(!this.processor)throw new Error("Processor not initialized");const r=await this.handleNewMarkdown(e);if(this.accumulator+=r,this.totalMarkdown+=r,this.isRenderingTable&&this.accumulator.length<30)return!1;const n=await this.processor.process(this.accumulator);if(this.isIncompleteTableRow)return this.isIncompleteTableRow=!1,!1;const i=n.toString();return i?(await this.render(i),this.lastProcessedLength=this.accumulator.length,!0):!1}async handleNewMarkdown(e){if(!e.includes(`
240
240
 
241
241
  `))return e;let n=e;const[i]=e.split(`
242
242
 
243
- `);return await this.processMarkdown(i),n=n.replace(i,""),this.startNewRenderingCycle(),n}async render(e){this.isFirstTableRender&&(this.updateContent(e),this.isFirstTableRender=!1),this.isRenderingTable?(this.updateTableContent(e),this.accumulator=this.mdTableHeaderString+this.pendingRowString):this.animated?await this.animateNewChunk(e):this.updateContent(e)}updateTableContent(e){const r=this.extractTableFromHtml(e);if(!r)return;const n=this.htmlRenderingTarget.parentNode,i=this.ensureTableExists(n);this.removeEmptyTableRows(i);const o=r.querySelector("tbody")||document.createElement("tbody"),a=this.ensureTBodyExists(i);this.copyTableHead(r,i),this.copyTableBodyRows(o,a)}processTextNode(e,r,n,i,o){const u=e.value.split(i);if(u.length>1){const s=this.replaceRegexTargets(u,i,o,e,r);n.children.splice(r,1,...s)}}replaceRegexTargets(e,r,n,i,o){return e.map((a,u)=>{var s,l;if(r.test(a)){const d=`regex-target-${n}-${u}-${o}-${this.totalMarkdown.length}-${(l=(s=i==null?void 0:i.position)==null?void 0:s.start)==null?void 0:l.offset}`;return this.regexRenderTargetsById[d]={match:a,type:n},{type:"html",value:`<span id="${d}">${a}</span>`}}return a?{type:"text",value:a}:null}).filter(Boolean)}ensureTableExists(e){let r=e.querySelector(`table#t-${this.tableId}`);return r||(r=document.createElement("table"),r.id=`t-${this.tableId}`,e.appendChild(r)),r}ensureTBodyExists(e){let r=e.querySelector("tbody");return r||(r=document.createElement("tbody"),e.appendChild(r)),r}copyTableHead(e,r){const n=e.querySelector("thead");!r.querySelector("thead")&&n&&r.appendChild(n)}copyTableBodyRows(e,r){const n=e.querySelectorAll("tr"),i=Array.from(r.querySelectorAll("tr")).map(o=>o.id);n&&n.forEach(o=>{!o.innerText.trim()||i.includes(o.id)||r.appendChild(o.cloneNode(!0))})}removeEmptyTableRows(e){e.querySelectorAll("tr").forEach(n=>{const i=n.querySelectorAll("td, th");let o=!0;i.forEach(a=>{a.textContent.trim()!==""&&(o=!1)}),o&&n.parentNode.removeChild(n)})}getRegexRenderTargets(){return this.regexRenderTargetsById}clearRegexRenderTargets(){this.regexRenderTargetsById={}}extractTableFromHtml(e){const r=document.createElement("div");return r.innerHTML=e,r.querySelector(`table#t-${this.tableId}`)}updateContent(e){const r=document.createElement("div");r.innerHTML=e,Ys(this.htmlRenderingTarget,r,{onBeforeElUpdated:(n,i)=>n.classList.contains("Typewriter__wrapper")?(i.innerHTML=n.innerHTML,!1):!0})}initTypewriter(){return new p8(this.container,{loop:!1,delay:0,cursor:""})}async animateNewChunk(e){const r=this.getNewContent(e);await new Promise(n=>{this.onAnimationStart(),this.typewriter.typeString(r).callFunction(()=>{this.onAnimationEnd(),n()}).start()})}getNewContent(e){const r=document.createElement("div");return r.innerHTML=e,(r.textContent||"").slice(this.lastProcessedLength)}}const g8=A.extend({name:"EMarkdown",props:{nextChunks:{type:[Array,String],default:()=>[]},exposedRegexes:{type:Array,default:()=>[]},animated:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},useTableProcessor:{type:Boolean,default:!0}},data(){return{isProcessing:!1,processor:null}},watch:{nextChunks(t){this.handleNewChunk(t.join(""))}},mounted(){this.initProcessor(),this.processInitialChunks()},methods:{initProcessor(){const t=this.$refs.content;this.processor=new m8(t,{exposedRegexes:this.exposedRegexes,animated:this.animated,onAnimationStart:()=>this.$emit("animation-start"),onAnimationEnd:()=>this.$emit("animation-end"),useTableProcessor:this.useTableProcessor})},async processChunk(t){var r;await((r=this.processor)==null?void 0:r.processMarkdown(t))&&this.renderRegexesScopedSlots()},async handleNewChunk(t){await this.processChunk(t)},async processInitialChunks(){const t=Array.isArray(this.nextChunks)?this.nextChunks:[this.nextChunks];for(const e of t)await this.handleNewChunk(e)},renderRegexesScopedSlots(){var e,r;const t=(e=this.processor)==null?void 0:e.getRegexRenderTargets();Object.entries(t).forEach(([n,{match:i,type:o}])=>{this.renderScopedSlot({id:n,type:o,propsData:{match:i}})}),(r=this.processor)==null||r.clearRegexRenderTargets()},renderScopedSlot({id:t,type:e,propsData:r}){const n=document.getElementById(t);if(!n)return;const i=this.$scopedSlots[`markdown.regex.${e}`];if(!i)return;const o=A.extend({functional:!0,props:["scopedSlot","propsData"],render:(u,s)=>s.props.scopedSlot(s.props.propsData)}),a=new A({render:u=>u(o,{props:{scopedSlot:i,propsData:r}})}).$mount();return n.innerHTML="",n.appendChild(a.$el),a}}}),$d="";var v8=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-markdown"},[r("article",{staticClass:"e-mx-auto prose-h1:!e-text-2xl prose-h2:!e-text-xl prose-h2:!e-mt-0 prose-h3:!e-text-lg e-prose e-prose-slate",class:{"e-prose-invert":e.dark}},[r("div",{ref:"content",staticClass:"e-markdown__content"})])])},_8=[],y8=H(g8,v8,_8,!1,null,null,null,null);const C8=y8.exports,b8=A.extend({name:"ECopyToClipboardBtn",components:{EActionButton:ft},mixins:[Ge,Ue],props:{text:{type:[Function,String,Number],required:!0},buttonText:{type:String,default:""},buttonClasses:{type:[String,Object,Array],default:null},description:{type:String,default:"Copy"},iconType:{type:String,default:"far fa-copy"},textOnlyButton:{type:Boolean,default:!1},dark:{type:Boolean,default:!0}},data(){return{loading:!1,tooltipText:this.description||"Copy to clipboard"}},computed:{copyButtonClasses(){return{"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"hover:e-bg-gray-600":this.dark,"hover:e-bg-gray-200":!this.dark,"e-rounded-md e-border-none copy-button e-bg-transparent":!0}}},watch:{tooltipText(t){t!==this.description&&this.$setTimeout(()=>{this.tooltipText=this.description},1e3)}},mounted(){this.$addEventListener("focusin",this.handleFocusin,this.$refs.copyToClipboard)},methods:{handleFocusin(t){t.stopPropagation()},getProp(t,e){return Object.prototype.hasOwnProperty.call(this.$attrs,t)?this.$attrs[t]:e},copyTextToClipboard(){try{this.loading=!0;let t;typeof this.text=="function"?t=this.text():t=this.text;const e=this.$refs.copyToClipboard;e.value=t,e.focus(),e.select(),document.execCommand("copy"),this.tooltipText="Copied!",this.$emit("copied")}catch(t){console.error("Failed to copy text to clipboard",t)}finally{this.loading=!1}}}}),Ed="";var x8=function(){var e=this,r=e._self._c;return r("EActionButton",e._g(e._b({attrs:{"tooltip-text":e.tooltipText,"tooltip-position":"top",icon:e.iconType,"icon-size":"Lg",dark:e.dark,"button-classes":e.copyButtonClasses},on:{click:e.copyTextToClipboard}},"EActionButton",e.$attrs,!1),e.$listeners),[e._v(" "+e._s(e.buttonText)+" "),r("textarea",{ref:"copyToClipboard",staticClass:"copy-to-clipboard",attrs:{readonly:""}})])},w8=[],S8=H(b8,x8,w8,!1,null,"d3d39d0d",null,null);const mn=S8.exports,T8=A.extend({name:"EDialog",components:{EFadeTransition:Nt},mixins:[Ge],props:{value:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},actions:{type:Array,default:()=>[]},title:{type:String,default:""},persistent:{type:Boolean,default:!1},width:{type:[Number,String],default:500},height:{type:[Number,String],default:void 0},closeWithEscape:{type:Boolean,default:!0}},computed:{visible:{get(){return this.value},set(t){this.$emit("input",t)}},panelClasses(){return["e-relative e-transform e-overflow-hidden e-rounded-lg e-text-left e-shadow-xl e-transition-all e-w-full e-flex e-flex-col",this.dark?"e-bg-gray-800":"e-bg-white"]},headerContainerClasses(){return["e-dialog__header",this.dark?"e-bg-gray-800 e-text-gray-50":"e-bg-white e-text-slate-900","e-px-6 e-pt-6 e-pb-4"]},bodyContainerClasses(){return["e-dialog__body e-px-6",this.dark?"e-bg-gray-800 e-text-gray-50":"e-bg-white e-text-slate-900"]},footerContainerClasses(){return["e-dialog__footer",this.dark?"e-bg-gray-700":"e-bg-gray-50","e-flex e-py-3 e-px-4 e-justify-end e-mt-auto e-items-end"]},panelStyles(){const t=typeof this.width=="number"?`${this.width}px`:this.width,e=typeof this.height=="number"?`${this.height}px`:this.height;return{minWidth:t,minHeight:e,width:t,height:e}}},watch:{visible(t){t?this.showDialog():this.closeDialog()}},mounted(){this.visible&&this.showDialog(),this.$addEventListener("keydown",this.handleKeyDown)},methods:{showDialog(){this.$nextTick(()=>{const t=this.$refs.dialog;t&&!t.open&&t.showModal()})},closeDialog(){const t=this.$refs.dialog;t!=null&&t.open&&t.close()},handleBackdropClick(t){!this.persistent&&t.target===t.currentTarget&&(this.visible=!1)},onClose(){this.persistent||(this.visible=!1)},getButtonClasses(t){const e=this.dark?"e-bg-gray-700 e-text-gray-50 e-border-solid e-border-[1px] e-border-gray-500 hover:e-bg-gray-600":"e-bg-white e-text-gray-900 e-border-solid e-border-[1px] e-border-gray-300 hover:e-bg-gray-50",r={[se.Warning]:"e-bg-warning e-text-white e-border-none",[se.Error]:"e-bg-error e-text-white e-border-none",[se.Info]:"e-bg-info e-text-white e-border-none",[se.Success]:"e-bg-success e-text-white e-border-none",[se.Primary]:"e-bg-primary e-text-white e-border-none",[se.Brand]:"e-bg-brand-500 e-text-white e-border-none",[se.Default]:e,[se.Gray]:"e-bg-gray-600 e-text-white hover:e-bg-gray-light e-border-none"};return["e-inline-flex e-w-full e-justify-center e-rounded-md e-px-3 e-py-2 e-text-sm e-font-semibold e-shadow-sm sm:e-ml-3 sm:e-w-auto e-cursor-pointer hover:e-opacity-90",r[t]||r[se.Default]]},onActionClick(t){t.closeOnClick&&(this.visible=!1),this.$emit("action-clicked",t.id||t.label)},handleKeyDown(t){t.key==="Escape"&&(this.persistent||!this.closeWithEscape?t.preventDefault():this.visible=!1)}}}),Md="";var k8=function(){var e=this,r=e._self._c;return r("EFadeTransition",{attrs:{duration:100}},[e.visible?r("dialog",{ref:"dialog",staticClass:"e-dialog e-p-0 e-m-auto e-border-none e-rounded-lg",on:{click:e.handleBackdropClick,close:e.onClose,cancel:e.onClose}},[r("div",{class:e.panelClasses,style:e.panelStyles},[r("div",{class:e.headerContainerClasses},[e._t("header",function(){return[e.title?r("div",{staticClass:"e-text-lg e-font-bold"},[e._v(" "+e._s(e.title)+" ")]):e._e()]},{dark:e.dark})],2),r("div",{class:e.bodyContainerClasses},[e._t("default",null,{dark:e.dark})],2),r("div",{class:e.footerContainerClasses},[e._t("footer",function(){return e._l(e.actions,function(n,i){return r("button",{key:i,class:e.getButtonClasses(n.color),on:{click:function(o){return o.stopPropagation(),e.onActionClick(n)}}},[e._v(" "+e._s(n.label)+" ")])})},{actions:e.actions,dark:e.dark})],2)])]):e._e()])},$8=[],E8=H(T8,k8,$8,!1,null,null,null,null);const M8=E8.exports,L8=A.extend({name:"EFeedbackButton",components:{EDialog:M8,EActionButton:ft},mixins:[Ge,Ue],props:{buttonText:{type:String,default:""},buttonClasses:{type:[String,Object,Array],default:null},description:{type:String,default:"Submit feedback"},iconType:{type:String,default:"far fa-thumbs-up"},withText:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},dialogActions:{type:Array,default:()=>[{label:"Cancel",color:"default",closeOnClick:!0},{label:"Submit",color:"primary"}]},dialogWidth:{type:[Number,String],default:"27rem"}},data(){return{tooltipText:this.description||"Submit feedback",showDialog:!1,feedbackText:""}},computed:{eButtonClasses(){return{"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"hover:e-bg-gray-600":this.dark,"hover:e-bg-gray-200":!this.dark,"e-rounded-md e-border-none e-bg-transparent":!0}},textAreaClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"e-text-gray-600":!this.dark,"e-text-gray-300":this.dark,"e-custom-scrollbar--light":!this.dark,"e-custom-scrollbar--dark":this.dark}},textAreaContainerClasses(){return{"e-border-gray-600":this.dark,"e-border-gray-300":!this.dark}}},watch:{tooltipText(t){t!==this.description&&this.$setTimeout(()=>{this.tooltipText=this.description},1e3)}},methods:{onClick(t){this.withText?this.showDialog=!0:this.submitFeedback(t)},submitFeedback(t){if(t==="Cancel"){this.showDialog=!1;return}this.showDialog=!1,this.$emit("submit",this.feedbackText),this.tooltipText="Thank you!"}}}),Ld="";var D8=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EActionButton",{attrs:{"tooltip-text":e.tooltipText,"tooltip-position":"top",icon:e.iconType,"icon-size":"Lg",dark:e.dark,"button-classes":e.eButtonClasses},on:{click:e.onClick}},[e._v(" "+e._s(e.buttonText)+" "),e.withText?r("EDialog",{staticClass:"e-feedback",attrs:{value:e.showDialog,title:"Feedback",dark:e.dark,width:e.dialogWidth,persistent:"",actions:e.dialogActions,"close-with-escape":!1},on:{"action-clicked":e.submitFeedback}},[r("div",{staticClass:"e-feedback__form"},[r("div",{staticClass:"e-feedback__form-description e-mb-3 e-leading-relaxed"},[e._v(" Thanks for your input! "),r("br"),e._v("Please share your thoughts and experience to help us improve ")]),r("div",{staticClass:"e-rounded-md e-w-full e-overflow-hidden e-border e-border-solid e-py-2 e-mb-6",class:e.textAreaContainerClasses},[r("textarea",{directives:[{name:"model",rawName:"v-model",value:e.feedbackText,expression:"feedbackText"}],staticClass:"e-feedback__textarea focus:e-outline-none e-mr-6 e-border-none e-placeholder-gray-400 e-py-3 e-pl-3 e-w-full",class:e.textAreaClasses,attrs:{autofocus:"",tabindex:"0",rows:"4",placeholder:"Enter your text here..."},domProps:{value:e.feedbackText},on:{input:function(n){n.target.composing||(e.feedbackText=n.target.value)}}})])])]):e._e()],1)},P8=[],O8=H(L8,D8,P8,!1,null,null,null,null);const z8=O8.exports,B8=A.extend({name:"EChatMessageActions",components:{EFeedbackButton:z8,ECopyToClipboardBtn:mn,EActionButton:ft},props:{message:{type:[String,Array],default:""},dark:{type:Boolean,default:!1},showCopyButton:{type:Boolean,default:!1},showRegenerateButton:{type:Boolean,default:!1},showFeedbackButtons:{type:Boolean,default:!1},messageId:{type:[String,Number],default:null}},data(){return{FeedbackType:Qt,showFeedbackDialog:!1}},computed:{messageText(){return(Array.isArray(this.message)?this.message:[this.message]).join("")},eButtonClasses(){return{"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"hover:e-bg-gray-600":this.dark,"hover:e-bg-gray-200":!this.dark,"e-rounded-md e-border-none e-bg-transparent e-border-none":!0}}},methods:{handleFeedback(t,e){this.$emit("feedback",{type:t,text:e})},openFeedbackDialog(){this.showFeedbackDialog=!0}}}),Dd="";var I8=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-message__actions e-relative"},[r("div",{staticClass:"e-message__actions-container e-flex e-gap-1 e-my-2"},[e.showCopyButton?r("ECopyToClipboardBtn",{attrs:{text:e.messageText,dark:e.dark,"button-size":"xs","button-classes":"e-bg-transparent e-border-none",description:"Copy"}}):e._e(),e.showRegenerateButton?r("EActionButton",{attrs:{"tooltip-text":"Regenerate","tooltip-position":"top",icon:"rotate-right","icon-size":"xs",dark:e.dark,"button-classes":e.eButtonClasses},on:{click:function(n){return e.$emit("regenerate")}}}):e._e(),e.showFeedbackButtons?r("EFeedbackButton",{attrs:{dark:e.dark,"with-text":"",description:"Give positive feedback","button-size":"sm","button-classes":"e-bg-transparent e-border-none"},on:{submit:function(n){return e.handleFeedback(e.FeedbackType.Positive,n)}},nativeOn:{click:function(n){return e.openFeedbackDialog.apply(null,arguments)}}}):e._e(),e.showFeedbackButtons?r("EFeedbackButton",{attrs:{dark:e.dark,"with-text":"",description:"Give negative feedback","button-size":"sm","button-classes":"e-bg-transparent e-border-none","icon-type":"far fa-thumbs-down"},on:{submit:function(n){return e.handleFeedback(e.FeedbackType.Negative,n)}},nativeOn:{click:function(n){return e.openFeedbackDialog.apply(null,arguments)}}}):e._e()],1)])},F8=[],A8=H(B8,I8,F8,!1,null,null,null,null);const R8=A8.exports,H8=A.extend({name:"EChatMessage",components:{EFadeTransition:Nt,EAvatar:Mt,EChatMessageActions:R8,EEvercamLogo:ms,EPulsatingDot:h8,EMarkdown:C8},mixins:[Ue],props:{role:{type:String,default:Ye.User},initials:{type:String,default:null},message:{type:[String,Array,Object],default:""},isLoading:{type:Boolean,default:!1},avatarSrc:{type:String,default:null},type:{type:String,default:Vt.Text},showAvatar:{type:Boolean,default:!0},dark:{type:Boolean,default:!1},withActions:{type:Boolean,default:!1},showCopyButton:{type:Boolean,default:!1},showRegenerateButton:{type:Boolean,default:!1},showFeedbackButtons:{type:Boolean,default:!1},loadingMessage:{type:String,default:""},exposedRegexes:{type:Array,default:()=>[]},animated:{type:Boolean,default:!1},eMarkdownProps:{type:Object,default:()=>({})}},data(){return{showActions:!1,nextChunks:[]}},computed:{isBotRole(){return this.role===Ye.Copilot||this.role===Ye.System},userMessageClasses(){return{"e-bg-gray-100 e-text-gray-800":!this.dark,"e-bg-gray-600 e-text-white":this.dark}},logoClasses(){return{"e-bg-white e-rounded-full":this.dark}},dotColor(){return this.dark?"#ff2525":"#c5393d"},markdownScopedSlots(){return Object.keys(this.$scopedSlots).filter(t=>t.startsWith("markdown.")).reduce((t,e)=>(t[e]=this.$scopedSlots[e],t),{})}},watch:{message:{immediate:!0,handler(t,e){t.length&&(e!=null&&e.length?this.nextChunks=t.slice(e.length):this.nextChunks=t)}}},methods:{onMouseOver(){this.showActions=!0},onMouseLeave(t){[null,document.documentElement].includes(t.relatedTarget)||(this.showActions=!1)},onFeedback(t){this.$emit("feedback",t),this.$setTimeout(()=>{this.showActions=!1},1e3)}}}),Pd="";var N8=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-chat-message e-mb-3"},[r("div",{staticClass:"e-chat-message__wrapper e-flex e-items-start e-justify-start e-gap-3",class:{"e-chat-message__rtl":!e.isBotRole}},[e.showAvatar?r("div",{staticClass:"e-chat-message__avatar"},[e.isBotRole?e._t("message-avatar",function(){return[r("div",{class:e.logoClasses},[r("EEvercamLogo",{attrs:{size:"xs","background-classes":"e-bg-white e-p-[2px] e-rounded-full !e-pr-[2.5px] !e-pt-[3.5px]"}})],1)]},{role:e.role}):r("EAvatar",{attrs:{image:e.avatarSrc,size:"Xs"}},[e._v(e._s(e.initials))])],2):e._e(),r("div",{staticClass:"e-chat-message__content e-flex e-w-full",class:{"e-justify-end":!e.isBotRole}},[e._t("message.content",function(){return[e.isLoading&&e.isBotRole?e._t("loadingPlaceholder",function(){return[r("div",[e.loadingMessage?r("EMarkdown",{staticClass:"e-chat-message__markdown e-italic",attrs:{"next-chunks":[e.loadingMessage],animated:"",dark:e.dark,copyable:!1}}):e._e(),r("div",{staticClass:"e-inline-block e-mt-2 e-ml-2"},[r("EPulsatingDot",{attrs:{size:8,color:e.dotColor}})],1)],1)]}):e.isBotRole&&e.type!=="error"?r("EMarkdown",e._b({staticClass:"e-chat-message__markdown e-w-full",attrs:{"next-chunks":e.nextChunks,animated:e.animated,dark:e.dark,"exposed-regexes":e.exposedRegexes},on:{"animation-end":function(n){return e.$emit("animation-end")},"animation-start":function(n){return e.$emit("animation-start")}},scopedSlots:e._u([e._l(e.markdownScopedSlots,function(n,i){return{key:i,fn:function(o){return[e._t(i,null,null,o)]}}})],null,!0)},"EMarkdown",e.eMarkdownProps,!1)):e.type==="error"?r("p",{staticClass:"e-chat-message__error e-px-4 e-py-3 e-border-solid e-border-[1.67px] e-rounded-md e-border-red-400 e-bg-red-500/10 e-text-sm e-font-normal"},[e._v(" "+e._s(e.message)+" ")]):r("p",{staticClass:"e-chat-message__content e-font-medium e-text-wrap e-mb-1 e-rounded-lg e-p-2 e-px-4",class:e.userMessageClasses},[e._v(" "+e._s(e.message)+" ")]),e._t("extraContent")]})],2)]),e._t("message.append"),r("EFadeTransition",[e.withActions?r("EChatMessageActions",{staticClass:"e-left-11",attrs:{"message-id":e.$attrs["data-message-id"],dark:e.dark,"show-copy-button":e.showCopyButton,"show-feedback-buttons":e.showFeedbackButtons,"show-regenerate-button":e.showRegenerateButton,message:e.message},on:{feedback:e.onFeedback,regenerate:function(n){return e.$emit("message-regenerate")}}}):e._e()],1)],2)},j8=[],G8=H(H8,N8,j8,!1,null,null,null,null);const W8=G8.exports,q8=A.extend({name:"EChatFooter",props:{dark:{type:Boolean,default:!1},inline:{type:Boolean,default:!1}},computed:{backgroundClasses(){return this.inline?{}:{"e-bg-gray-700":this.dark,"e-bg-gray-50":!this.dark}},footerClasses(){return{...this.backgroundClasses}}}});var U8=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-chat-footer e-px-3 e-pt-4 e-pb-3",class:e.footerClasses},[e._t("default")],2)},Z8=[],Y8=H(q8,U8,Z8,!1,null,null,null,null);const X8=Y8.exports,V8=A.extend({name:"EVoiceInputVolumeIndicator",props:{isListening:{type:Boolean,required:!0},analyser:{type:Object,required:!0}},data(){return{volume:0,animationFrameId:0}},watch:{isListening:{immediate:!0,handler(t){t?this.startVolumeMonitoring():this.stopVolumeMonitoring()}}},beforeDestroy(){this.stopVolumeMonitoring()},methods:{startVolumeMonitoring(){this.analyser&&this.updateVolume()},updateVolume(){if(!this.analyser)return;const t=new Uint8Array(this.analyser.frequencyBinCount);this.analyser.getByteFrequencyData(t);let e=0;for(const r of t)e+=r**2.75;this.volume=Math.sqrt(e/t.length)/256,this.animationFrameId=requestAnimationFrame(this.updateVolume)},stopVolumeMonitoring(){this.animationFrameId&&cancelAnimationFrame(this.animationFrameId)}}}),Od="";var Q8=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-volume-indicator e-relative e-w-8 e-h-8 e-flex e-items-center e-justify-center"},[r("div",{staticClass:"e-volume-indicator__bubble e-absolute e-inset-y-0 e-rounded-full",style:{transform:`scale(${e.isListening?.5+e.volume*.5:1})`,opacity:e.isListening?.5:0,width:"inherit",height:"inherit"}}),r("div",{staticClass:"e-absolute e-inset-0 e-flex e-items-center e-justify-center"},[e._t("default")],2)])},K8=[],J8=H(V8,Q8,K8,!1,null,null,null,null);const eu=J8.exports,tu=A.extend({name:"EVoiceInput",components:{EVoiceInputVolumeIndicator:eu,EIcon:qe,ETooltip:St},mixins:[Ge],props:{value:{type:String,default:""},dark:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},iconSize:{type:Number,default:10},silenceTimeout:{type:Number,default:1500}},data(){return{recognition:null,isListening:!1,interimTranscript:"",finalTranscript:"",analyser:null,audioContext:null,mediaStream:null,mediaStreamSource:null,silenceTimer:null}},computed:{currentTranscript(){return this.finalTranscript+this.interimTranscript},buttonClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"e-opacity-50":this.disabled}}},watch:{currentTranscript(t){this.$emit("input",t)}},mounted(){this.initSpeechRecognition(),this.$addEventListener("keydown",this.handleKeyDown)},beforeDestroy(){this.stopListening()},methods:{initSpeechRecognition(){const t=window.SpeechRecognition||window.webkitSpeechRecognition;if(!t){console.error("Speech recognition is not supported in this browser.");return}if(this.recognition=new t,this.recognition.continuous=!0,this.recognition.interimResults=!0,this.recognition.lang="en-US",this.recognition.speechStartTimeout=200,this.recognition.onresult=this.handleResult,this.recognition.onerror=this.handleError,this.recognition.onend=this.handleEnd,this.recognition.onspeechend=this.handleSpeechEnd,this.audioContext=new(window.AudioContext||window.webkitAudioContext),!this.audioContext){console.error("Audio context is not supported in this browser.");return}this.analyser=this.audioContext.createAnalyser(),this.analyser.fftSize=256},async toggleListening(){this.recognition&&(this.isListening?this.stopListening():await this.setupVolume())},async setupVolume(){try{this.mediaStream=await navigator.mediaDevices.getUserMedia({audio:!0}),this.audioContext.state!=="running"&&await this.audioContext.resume(),this.mediaStreamSource=this.audioContext.createMediaStreamSource(this.mediaStream),this.mediaStreamSource.connect(this.analyser),this.finalTranscript="",this.interimTranscript="",this.recognition.start(),this.isListening=!0}catch(t){console.error("Error accessing microphone:",t)}},stopListening(){this.isListening=!1,this.recognition.stop(),this.silenceTimer&&(clearTimeout(this.silenceTimer),this.silenceTimer=null),this.flushMediaStream()},flushMediaStream(){var t;this.mediaStream&&(this.mediaStream.getTracks().forEach(e=>e.stop()),(t=this.mediaStreamSource)==null||t.disconnect(),this.mediaStream=null,this.mediaStreamSource=null)},handleResult(t){this.interimTranscript="";for(let e=t.resultIndex;e<t.results.length;++e){const r=t.results[e];r.isFinal?this.finalTranscript+=r[0].transcript+" ":this.interimTranscript+=r[0].transcript}this.silenceTimer&&clearTimeout(this.silenceTimer),this.silenceTimer=setTimeout(()=>{this.submitTranscript()},this.silenceTimeout)},handleEnd(){this.isListening=!1},handleSpeechEnd(){this.submitTranscript()},submitTranscript(){this.finalTranscript.trim().length>0&&(this.$emit("on-voice-message-end",this.finalTranscript.trim()),this.finalTranscript="",this.interimTranscript=""),this.stopListening()},handleKeyDown(t){t.code==="Space"&&t.ctrlKey&&(t.preventDefault(),this.toggleListening())},handleError(t){console.error("Speech recognition error:",t==null?void 0:t.error),this.isListening=!1}}});var ru=function(){var e=this,r=e._self._c;return r("ETooltip",{attrs:{text:"Use Ctrl + Space to speak",dark:e.dark}},[r("button",e._g(e._b({staticClass:"e-chat-input__voice-btn e-border-none e-chat-input__voice-btn e-flex e-items-center e-justify-center e-cursor-pointer e-h-8 e-w-8 disabled:e-cursor-not-allowed focus:e-outline-none",class:{...e.buttonClasses,"e-h-10 e-w-10":!e.isListening},on:{click:e.toggleListening}},"button",e.$attrs,!1),e.$listeners),[e.isListening?r("EVoiceInputVolumeIndicator",{attrs:{analyser:e.analyser,"is-listening":e.isListening}},[r("EIcon",{staticClass:"e-chat-input__voice-btn--icon",attrs:{icon:"stop",color:"e-text-red-600",size:"Sm"}})],1):r("EIcon",{attrs:{icon:"microphone",size:"Base"}})],1)])},nu=[],iu=H(tu,ru,nu,!1,null,null,null,null);const gn=iu.exports,su=A.extend({name:"EChatInput",components:{EIcon:qe,ETooltip:St,EVoiceInput:gn},model:{prop:"value",event:"prompt-changed"},props:{dark:{type:Boolean,default:!1},placeholder:{type:String,default:"Message Copilot"},disabled:{type:Boolean,default:!1},silenceTimeout:{type:Number,default:1500}},data(){return{content:"",maxHeight:175,textAreaHeight:0,isShiftKeyPressed:!1,transcript:""}},computed:{textAreaContainerClasses(){return{"e-border-gray-600":this.dark&&!this.disabled,"e-border-gray-300":!this.dark&&!this.disabled,"e-border-gray-800":this.dark&&this.disabled,"e-border-gray-500":!this.dark&&this.disabled,"e-cursor-not-allowed e-opacity-50":this.disabled}},textAreaClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"e-text-gray-600":!this.dark,"e-text-gray-300":this.dark,"e-custom-scrollbar--light":!this.dark,"e-custom-scrollbar--dark":this.dark}},buttonClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"e-opacity-50":this.isSubmitDisabled}},isSubmitDisabled(){return this.disabled||this.content.length<4},textareaStyle(){return this.textAreaHeight?{height:`${Math.min(this.textAreaHeight,this.maxHeight)}px`,overflowY:this.isOverflowing?"scroll":"hidden"}:{}},isOverflowing(){return!!this.textAreaHeight&&this.textAreaHeight>this.maxHeight}},mounted(){this.focus()},methods:{focus(){this.$refs.chatTextarea.focus()},submitMessage(){this.$emit("submit",this.content),this.content="",this.$nextTick(this.updateTextAreaHeight)},onInput(t){const e=t.target,r=this.content===e.value;this.content=e.value,r||(this.updateTextAreaHeight(),this.$emit("prompt-changed",e.value))},onKeyDown(t){if(!this.disabled){if(!this.isShiftKeyPressed&&t.key==="Enter"){t.preventDefault();return}if(t.key==="Shift"||t.code==="ShiftLeft"){this.isShiftKeyPressed=!0;return}}},onKeyUp(t){if(!this.disabled){if(t.key==="Shift"||t.code==="ShiftLeft"){this.isShiftKeyPressed=!1;return}t.key==="Enter"&&!this.isShiftKeyPressed&&(t.preventDefault(),this.submitMessage())}},updateTextAreaHeight(){const t=this.$refs.chatTextarea;t.style.height="auto",this.textAreaHeight=t.scrollHeight},handleVoiceMessage(t){this.$emit("prompt-changed",t),this.$emit("submit",t),this.transcript=""}}}),zd="";var au=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-chat-input e-relative e-flex e-w-auto e-p-2"},[r("div",{staticClass:"e-rounded-lg e-w-full e-overflow-hidden e-border e-border-solid",class:e.textAreaContainerClasses},[r("textarea",e._b({ref:"chatTextarea",staticClass:"e-chat-input__textarea focus:e-outline-none e-mr-6 e-border-none e-placeholder-gray-400 e-py-3 e-pl-3 e-w-full",class:e.textAreaClasses,style:e.textareaStyle,attrs:{rows:"1",tabindex:"0",autofocus:"",placeholder:e.transcript.length>0?e.transcript:e.placeholder,disabled:e.disabled},on:{keydown:function(n){return n.stopPropagation(),e.onKeyDown.apply(null,arguments)},keyup:e.onKeyUp,input:e.onInput}},"textarea",e.$attrs,!1))]),r("div",{staticClass:"e-absolute e-bottom-3 e-items-center e-flex e-h-min e-gap-1.5",class:e.isOverflowing?"e-right-6":"e-right-4"},[e._t("input-action-button",function(){return[r("EVoiceInput",{attrs:{dark:e.dark,disabled:e.disabled,"silence-timeout":e.silenceTimeout},on:{"on-voice-message-end":e.handleVoiceMessage},model:{value:e.transcript,callback:function(n){e.transcript=n},expression:"transcript"}}),r("ETooltip",{attrs:{text:"Submit",dark:e.dark}},[r("button",{staticClass:"e-chat-input__submit-btn e-inline-flex e-items-center e-justify-center e-cursor-pointer disabled:e-cursor-not-allowed e-h-8 e-w-8 e-border-none focus:e-outline-none",class:e.buttonClasses,attrs:{type:"button",disabled:e.isSubmitDisabled},on:{click:function(n){return n.preventDefault(),e.submitMessage.apply(null,arguments)}}},[r("EIcon",{attrs:{icon:"arrow-up",size:"base"}})],1)])]},{buttonClasses:e.buttonClasses})],2)])},ou=[],lu=H(su,au,ou,!1,null,null,null,null);const cu=lu.exports,uu=A.extend({name:"EChatSuggestionCard",components:{EIcon:qe},props:{text:{type:String,required:!0},icon:{type:String,default:null},color:{type:String,default:"e-text-gray-500"},dark:{type:Boolean,default:!1},width:{type:Number,default:null},display:{type:String,default:"row"}},computed:{classes(){return{"e-flex-row":this.display==="row","e-flex-col":this.display==="column","hover:e-bg-gray-100 e-border-gray-200":!this.dark,"e-bg-gray-800 e-border-gray-600 hover:e-bg-gray-900":this.dark}},styles(){return this.width?{width:`${this.width}px`}:{}}}});var du=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",e._g(e._b({staticClass:"e-chat-suggestion e-p-3 e-flex e-justify-start e-items-start e-gap-2 e-border-solid e-border-[1.67px] e-rounded-md e-cursor-pointer e-w-full",class:e.classes,style:e.styles},"div",e.$attrs,!1),e.$listeners),[r("div",{staticClass:"e-chat-suggestion__icon e-h-6 e-w-6"},[e.icon?r("EIcon",{attrs:{icon:e.icon,size:"Lg",color:e.color}}):e._t("svg-icon")],2),r("div",{staticClass:"e-chat-suggestion__text e-font-medium e-antialiased e-text-wrap",class:{"e-text-gray-200":e.dark,"e-text-gray-600":!e.dark}},[e._v(" "+e._s(e.text)+" ")])])},hu=[],fu=H(uu,du,hu,!1,null,null,null,null);const pu=fu.exports,mu=A.extend({components:{EFadeTransition:Nt,EChatWrapper:Zc,EChatHeader:r8,EChatBody:o8,EChatMessage:W8,EChatFooter:X8,EChatInput:cu,EChatSuggestionCard:pu},props:{dark:{type:Boolean,default:!1},messages:{type:Array,default:()=>[]},user:{type:String,default:"You"},embedded:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},inlineFooter:{type:Boolean,default:!1},height:{type:String,default:void 0},width:{type:String,default:void 0},showUserAvatar:{type:Boolean,default:!0},showCopilotAvatar:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},headerText:{type:String,default:"Evercam Copilot"},inputPlaceholder:{type:String,default:"Message Copilot"},loadingMessage:{type:String,default:""},suggestions:{type:Array,default:()=>[]},exposedRegexes:{type:Array,default:()=>[]},eMarkdownProps:{type:Object,default:()=>({useTableProcessor:!1})},silenceTimeout:{type:Number,default:1500}},data(){return{prompt:"",containerHeight:0,headerHeight:0,bodyHeight:0,footerHeight:0}},computed:{ChatMessageRole(){return Ye},userInitials(){var t,e,r;return((r=(e=(t=this.user.trim())==null?void 0:t.split(/\s+/))==null?void 0:e.map(n=>{var i;return((i=n==null?void 0:n.charAt(0))==null?void 0:i.toUpperCase())||""}))==null?void 0:r.join(""))||this.user[0]||""},chatBodyStyle(){return this.bodyHeight?{maxHeight:`${this.bodyHeight}px`,height:`${this.bodyHeight}px`}:{}},wrapperStyle(){return{height:this.height||"100%",width:this.width||"100%"}},bodyBorderClasses(){let t={};this.showHeader&&(t={"e-border-t-[1px] e-border-t-solid":!0,"e-border-t-gray-300":!this.dark,"e-border-t-gray-600":this.dark});let e={};return this.inlineFooter||(e={"e-border-b-[1px] e-border-b-solid":!0,"e-border-b-gray-300":!this.dark,"e-border-b-gray-600":this.dark}),{...t,...e}},markdownScopedSlots(){return Object.keys(this.$scopedSlots).filter(t=>t.startsWith("markdown.")).reduce((t,e)=>(t[e]=this.$scopedSlots[e],t),{})},showSuggestions(){return this.messages.length===0&&this.suggestions.length>0}},watch:{height(){this.updateChatBodyHeight()},showHeader(){this.updateChatBodyHeight()}},mounted(){this.updateChatBodyHeight()},methods:{sendMessage(){!this.isDisabled&&this.prompt.length>0&&(this.$emit("user-message",this.prompt),this.prompt="")},isUserMessage(t){return t.role===Ye.User},hasActions(t){return this.isLoading||this.isDisabled?!1:t.role===Ye.Copilot&&t.withActions!==!1},getMessageContent(t){return t.content},getMessageInitials(t){return this.isUserMessage(t)?this.userInitials:null},getMessageClasses(t,e){return{"e-mb-11":e===this.messages.length-1&&this.hasActions(t)}},updateChatBodyHeight(){this.$nextTick(()=>{var n,i,o;const t=(n=this.$refs.chatContainer)==null?void 0:n.$el,e=(i=this.$refs.chatHeader)==null?void 0:i.$el,r=(o=this.$refs.chatFooter)==null?void 0:o.$el;!t||!e||!r||(this.headerHeight=e.clientHeight,this.footerHeight=r.clientHeight,this.containerHeight=t.clientHeight,this.height?this.bodyHeight=parseInt(this.height)-this.headerHeight-this.footerHeight:this.bodyHeight=Math.max(500,this.containerHeight-this.headerHeight-this.footerHeight))})},isAvatarVisible(t){return t.role===Ye.User?this.showUserAvatar:t.role===Ye.Copilot?this.showCopilotAvatar:!0},onMessageFeedback(t,e){this.$emit("message-feedback",{...t,messageId:e})}}}),Bd="";var gu=function(){var e=this,r=e._self._c;return r("EChatWrapper",{ref:"chatContainer",staticClass:"e-chat-wrapper",style:e.wrapperStyle,attrs:{dark:e.dark,embedded:e.embedded}},[r("div",{staticClass:"e-w-full e-h-full e-chat-container"},[r("EChatHeader",{ref:"chatHeader",attrs:{hidden:!e.showHeader,dark:e.dark,title:e.headerText},scopedSlots:e._u([{key:"chip",fn:function(){return[e._t("chip")]},proxy:!0},{key:"append",fn:function(){return[e._t("header-append")]},proxy:!0}],null,!0)}),r("EChatBody",{ref:"chatBody",class:e.bodyBorderClasses,style:e.chatBodyStyle,attrs:{dark:e.dark}},[r("EFadeTransition",[e.showSuggestions?r("div",{staticClass:"e-w-full e-flex e-flex-col e-items-center e-justify-center e-mt-8"},[r("div",{staticClass:"e-flex e-flex-col e-justify-center e-items-center e-gap-4"},e._l(e.suggestions,function(n){return r("EChatSuggestionCard",{key:n.text,attrs:{text:n.text,icon:n.icon,color:n.color,dark:e.dark,width:n.width,display:n.display||"row"},on:{click:function(i){return e.$emit("suggestion-clicked",n)}}})}),1)]):e._e()]),e.showSuggestions?e._e():r("div",e._l(e.messages,function(n,i){return r("EChatMessage",{key:`${n.id}-${i}`,class:e.getMessageClasses(n,i),attrs:{dark:e.dark,role:n.role,"is-loading":n.isLoading,"data-message-id":n.id,"show-feedback-buttons":!e.readonly,"show-regenerate-button":!e.readonly,"exposed-regexes":e.exposedRegexes,"show-copy-button":"","e-markdown-props":e.eMarkdownProps,message:e.getMessageContent(n),type:n.type,initials:e.getMessageInitials(n),"show-avatar":e.isAvatarVisible(n),"with-actions":e.hasActions(n)&&i>0},on:{feedback:function(o){return e.onMessageFeedback(o,n.id)},"message-regenerate":function(o){return e.$emit("message-regenerate",n.id)},"animation-end":function(o){return e.$emit("animation-end",o)}},scopedSlots:e._u([e._l(e.markdownScopedSlots,function(o,a){return{key:a,fn:function(u){return[e._t(a,null,null,u)]}}}),{key:"message.content",fn:function(){return[e._t("message.content",null,{message:n})]},proxy:!0},{key:"message.append",fn:function(){return[e._t("message.append",null,{message:n})]},proxy:!0},{key:"extraContent",fn:function(){return[e._t("message.extraContent",null,{message:n})]},proxy:!0}],null,!0)})}),1),e.isLoading?r("EChatMessage",{attrs:{"is-loading":"","loading-message":e.loadingMessage,"data-message-id":-1,"show-avatar":e.showCopilotAvatar,role:e.ChatMessageRole.Copilot,dark:e.dark}}):e._e()],1),e._t("body-append",null,{messages:e.messages}),r("EChatFooter",{directives:[{name:"show",rawName:"v-show",value:!e.readonly,expression:"!readonly"}],ref:"chatFooter",attrs:{dark:e.dark,inline:e.inlineFooter}},[r("EChatInput",{attrs:{dark:e.dark,disabled:e.isDisabled,placeholder:e.inputPlaceholder,"silence-timeout":e.silenceTimeout},on:{"prompt-changed":function(n){return e.$emit("prompt-changed",n)},submit:e.sendMessage},scopedSlots:e._u([{key:"input-action-button",fn:function(){return[e._t("input-action-button")]},proxy:!0}],null,!0),model:{value:e.prompt,callback:function(n){e.prompt=n},expression:"prompt"}})],1)],2)])},vu=[],_u=H(mu,gu,vu,!1,null,"966d186a",null,null);const yu=_u.exports,Cu=A.extend({name:"ERadioGroup",mixins:[wt],props:{dark:{type:Boolean,default:!1},withDescription:{type:Boolean,default:!0}},computed:{radioItemClasses(){return{"e-bg-gray-800 e-text-gray-200 e-border-gray-700":this.dark,"e-text-gray-500 e-bg-white e-border-gray-300":!this.dark}},selectedItemClasses(){return"e-text-[#00315f] e-bg-[#629efc] e-border-transparent"}},methods:{showDescription(t){var e,r;return this.withDescription&&((r=(e=this.options)==null?void 0:e[t])==null?void 0:r.description)&&this.options[t].description.length>0||this.isSelected(t)},containerClasses(t){return[this.isSelected(t)?this.selectedItemClasses:this.radioItemClasses,this.options[t].disabled||this.disabled?"e-opacity-50 e-cursor-not-allowed":"e-cursor-pointer e-select-none"]}}});var bu=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-radio-group__wrapper e-mx-auto e-w-full"},[r("div",[r("div",{staticClass:"e-space-y-2"},e._l(e.options,function(n,i){return r("div",{key:i,staticClass:"e-radio-group__container e-relative e-flex e-border-solid e-border-[1.67px] e-rounded-lg e-px-4 e-py-2.5 e-shadow-md focus:e-outline-none e-max-h-[66px]",class:e.containerClasses(i),on:{click:function(o){return e.onItemClick(i)}}},[r("div",{staticClass:"e-radio-group__option-wrapper e-flex e-w-full e-items-center e-justify-between"},[r("div",{staticClass:"e-radio-group__option-wrapper e-flex e-items-center"},[r("div",{staticClass:"e-text-sm"},[r("h2",{staticClass:"e-radio-group__option-title e-font-semibold e-text-sm e-mb-1 e-mt-1"},[e._v(" "+e._s(n.label)+" ")]),r("div",[e.showDescription(i)?r("span",{staticClass:"e-radio-group__option-description e-mt-2 e-text-sx"},[e._v(" "+e._s(n.description)+" ")]):e._e()])])]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isSelected(i),expression:"isSelected(index)"}],staticClass:"e-shrink-0 e-text-white"},[r("svg",{staticClass:"e-h-6 e-w-6",attrs:{viewBox:"0 0 24 24",fill:"none"}},[r("circle",{attrs:{cx:"12",cy:"12",r:"12",fill:"#fff","fill-opacity":"0.2"}}),r("path",{attrs:{d:"M7 13l3 3 7-7",stroke:"#fff","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}})])])])])}),0)])])},xu=[],wu=H(Cu,bu,xu,!1,null,null,null,null);const vs=wu.exports,Su=A.extend({name:"ETabs",mixins:[Rt],props:{dark:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},activeClass:{type:String,default:null}},methods:{onTabSelected(t){this.currentValue=t,this.$emit("tab-selected",t)},isActive(t){return this.currentValue===t},isLink(t){return!!t&&!this.isExternalLink(t)},isExternalLink(t){return!!t&&t.startsWith("http")},getTabBarItemClasses(t,e=""){return["e-tabs__item e-inline-block e-p-4 e-cursor-pointer e-text-xs",{[this.activeClass]:this.isActive(t)&&!!this.activeClass,"!e-text-gray-200 e-border-gray-700":this.dark&&!this.isActive(t),"hover:!e-text-gray-600 !e-text-gray-800":this.isExternalLink(e)||this.isLink(e),"!e-text-blue-600":this.isExternalLink(e)||this.isLink(e)," hover:e-bg-gray-100 ":!this.isActive(t)&&!this.dark,"!e-text-blue-600 e-bg-blue-100":this.isActive(t)&&!this.dark,"e-tabs__item-active":this.isActive(t)&&this.dark,"e-border-l-3 e-border-l-solid !e-border-b-blue-600":this.vertical&&this.isActive(t),"e-border-b-2 e-border-b-solid !e-border-b-blue-600":!this.vertical&&this.isActive(t)}]},getChildTitle(t){var r,n,i;const e=(r=t.componentOptions)==null?void 0:r.propsData;return e!=null&&e.title?e.title:e!=null&&e.name?e.name:(i=(n=t.data)==null?void 0:n.attrs)!=null&&i.name?t.data.attrs.name:`Tab ${this.currentValue+1}`},renderTab(t,e,r){var o,a,u,s,l,d,p,m;const n=((a=(o=e.data)==null?void 0:o.attrs)==null?void 0:a.href)||((s=(u=e.data)==null?void 0:u.attrs)==null?void 0:s.to),i=this.getTabBarItemClasses(r,n);if(n)try{return this.isExternalLink(n)?t("a",{key:r,class:i,attrs:{href:n,target:"_blank",rel:"noopener noreferrer",...(l=e.data)==null?void 0:l.attrs}},[this.getChildTitle(e)]):t("router-link",{key:r,class:i,attrs:{to:n,...(d=e.data)==null?void 0:d.attrs}},[this.getChildTitle(e)])}catch{return t("a",{key:r,class:i,attrs:{href:n,...(p=e.data)==null?void 0:p.attrs}},[this.getChildTitle(e)])}return t("div",{key:r,class:i,attrs:(m=e.data)==null?void 0:m.attrs,on:{click:()=>this.onTabSelected(r)}},[this.getChildTitle(e)])},renderContent(t,e,r){var n,i,o,a;return(i=(n=e.data)==null?void 0:n.attrs)!=null&&i.href||(a=(o=e.data)==null?void 0:o.attrs)!=null&&a.to||!this.isActive(r)?null:t("div",{class:"tab-content e-overflow-auto e-max-h-screen e-w-full"},[e])}},render(t){var r;const e=((r=this.$slots.default)==null?void 0:r.filter(n=>n.tag))||[];return t("div",{class:["e-tabs e-w-full e-h-full",{"e-flex-col":!this.vertical,"e-flex":this.vertical}]},[t("div",{class:["e-tabs__header e-text-sm e-font-medium e-text-center",{"e-flex e-border-b e-border-b-solid e-w-full":!this.vertical,"e-flex e-flex-col e-border-r e-border-r-solid":this.vertical,"e-text-gray-700":!this.activeClass,"e-tabs__header-light-border":!this.dark&&!this.activeClass,"e-tabs__header-dark-border":this.dark&&!this.activeClass,"e-bg-white":!this.dark,"e-bg-gray-800":this.dark}]},e.map((n,i)=>this.renderTab(t,n,i))),t("div",{class:"tab-content e-w-full"},e.map((n,i)=>this.renderContent(t,n,i)).filter(Boolean))])}}),Id="";var Tu=H(Su,null,null,!1,null,null,null,null);const _s=Tu.exports,ku=A.extend({name:"ECard",props:{title:{type:[String,void 0],default:void 0},width:{type:[Number,String,void 0],default:void 0},height:{type:[Number,String,void 0],default:void 0},imageSize:{type:[Number,String,void 0],default:100},imagePadding:{type:Number,default:0},image:{type:[String,void 0],default:void 0},blurBackground:{type:Boolean,default:!1},imageTranslation:{type:[Number,void 0],default:void 0},dark:{type:Boolean,default:!1}},data(){return{bodyPadding:45}},computed:{surfaceClasses(){return{"e-border-solid e-border-[1px]":!0,"e-border-gray-200":!this.dark,"e-border-gray-600":this.dark}},backgroundClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark}},textClasses(){return{"e-text-gray-200":this.dark,"e-text-gray-600":!this.dark}},containerClasses(){return{...this.surfaceClasses,...this.backgroundClasses,...this.textClasses}},imageContainerClasses(){return{...this.surfaceClasses,...this.textClasses,"e-bg-gray-100":!0}},containerStyle(){let t={};return this.width&&(t={...t,width:isNaN(this.width)?this.width:`${this.width}px`}),this.height&&(t={...t,height:isNaN(this.height)?this.height:`${this.height}px`}),t},effectiveImageSize(){return(isNaN(this.imageSize)?parseInt(this.imageSize):this.imageSize)-2*this.imagePadding},imageStyle(){return{height:"auto",width:`${this.effectiveImageSize}px`,margin:`${this.imagePadding}px`}},imageContainerStyle(){const t=isNaN(this.imageSize)?this.imageSize:`${this.imageSize}px`;return{height:t,width:t,top:`${-this.computedImageTranslation}px`,left:`${-this.computedImageTranslation}px`}},computedImageTranslation(){return isNaN(this.imageTranslation)?-20:this.imageTranslation},titleStyle(){return this.image?{paddingLeft:`${this.imageSize-this.computedImageTranslation}px`}:{}},contentStyle(){return this.image?{paddingTop:`${Math.max(0,this.imageSize-this.bodyPadding-this.computedImageTranslation)}px`}:{}}},mounted(){this.blurBackground&&!/\.(gif|png|svg)$/.test(this.image)&&console.error("ECard: Image should be a gif, png or svg to blur the background")}}),Rd="";var $u=function(){var e=this,r=e._self._c;return r("div",e._g(e._b({staticClass:"e-card e-rounded-lg e-p-3 e-relative",class:e.containerClasses,style:e.containerStyle},"div",e.$attrs,!1),e.$listeners),[e.image?r("div",{staticClass:"e-card__img__container e-absolute e-overflow-hidden e-rounded-lg e-flex e-justify-center e-items-center e-z-0",class:e.imageContainerClasses,style:e.imageContainerStyle},[e.blurBackground?r("img",{staticClass:"e-card__image--bg e-absolute",style:e.imageStyle,attrs:{src:e.image,alt:"card image"}}):e._e(),r("img",{staticClass:"e-card__image e-absolute",style:e.imageStyle,attrs:{src:e.image,alt:"card image"}})]):e._e(),r("div",{staticClass:"e-card__body e-relative e-z-1"},[e.title?r("div",{staticClass:"e-card__title e-font-bold e-text-lg e-mb-2",style:e.titleStyle},[e._t("title",function(){return[e._v(" "+e._s(e.title)+" ")]})],2):e._e(),r("div",{staticClass:"e-card__content",style:e.contentStyle},[e._t("default")],2)])])},Eu=[],Mu=H(ku,$u,Eu,!1,null,null,null,null);const Lu=Mu.exports,vn={EAvatar:Mt,EBadge:Kt,EIcon:qe,ESpinner:Gr,ERow:Wr,ECol:qr,EVideoPlayer:Hi,ETimeline:Yi,EVideoEmbed:Xi,EHeatmapBar:un,EHoursHeatmap:Vi,EReadMore:Qi,ETruncatedDiv:Ki,ECompareSeparator:Ji,EDragResize:dn,EImagesComparator:es,EToggleSwitch:os,EExpandableMenu:ts,EZoomable:Kr,EGlobalSearch:hs,ESvgIcon:ss,ECalendarHeatmap:as,EImagePlayer:fs,EZoomableImg:pn,EZoomSlider:fn,EActionButton:ft,ETooltip:St,ELayout:ps,EChat:yu,EContextProvider:jc,ECopyToClipboardBtn:mn,EPopover:hn,EVoiceRecorderToText:gn,ERadioGroup:vs,ESelect:ds,ETabs:_s,ECard:Lu,ESchedulePicker:ls},Du={install(t){Object.keys(vn).forEach(e=>{t.component(e,vn[e])}),Object.keys(us).forEach(e=>{t.mixin(e,us[e])}),ji.forEach(({name:e,definition:r})=>{t.directive(e,r)})}};G.AvatarSizes=U1,G.BadgeColors=Y1,G.BadgeSizes=q1,G.BaseColor=se,G.ChatMessageRole=Ye,G.ChatMessageType=Vt,G.ClickOutsideDirective=tn,G.Colors=Li,G.CompareMode=nt,G.Days=Mn,G.DirectivesMap=ji,G.EActionButton=ft,G.EAvatar=Mt,G.EBadge=Kt,G.ECalendarHeatmap=as,G.ECol=qr,G.ECompareSeparator=Ji,G.ECopyToClipboardBtn=mn,G.EDragResize=dn,G.EExpandableMenu=ts,G.EGlobalSearch=hs,G.EHeatmapBar=un,G.EHoursHeatmap=Vi,G.EIcon=qe,G.EImagePlayer=fs,G.EImagesComparator=es,G.ELayout=ps,G.EPopover=hn,G.ERadioGroup=vs,G.EReadMore=Qi,G.ERow=Wr,G.ESchedulePicker=ls,G.ESelect=ds,G.ESpinner=Gr,G.ESvgIcon=ss,G.ETabs=_s,G.ETimeline=Yi,G.EToggleSwitch=os,G.ETooltip=St,G.ETruncatedDiv=Ki,G.EVENTS=Q1,G.EVideoEmbed=Xi,G.EVideoPlayer=Hi,G.EVoiceRecorderToText=gn,G.EZoomSlider=fn,G.EZoomable=Kr,G.EZoomableImg=pn,G.FeedbackType=Qt,G.IconSizes=Di,G.ImageQuality=Ln,G.Position=Oe,G.ResizeObserverDirective=Ke,G.ScheduleType=vt,G.Size=K,G.TextSizes=Mi,G.TimelineAxis=rt,G.TimelineChartType=He,G.TimelineIntervalChangeTrigger=_t,G.ToggleSwitchSizes=Z1,G.TooltipColors=X1,G.TooltipPositions=V1,G.components=vn,G.debounce=p0,G.default=Du,G.eventListeners=Ge,G.exitFullScreen=Yr,G.formField=Rt,G.fullConfig=jr,G.generateUniqueId=_0,G.getGradientColors=Xr,G.getImageData=g0,G.getRandomChars=m0,G.hashCode=Bi,G.hexToRgba=Pi,G.hoursMinutesStrToMinutes=Ai,G.inactivityListener=cs,G.isFullScreen=Ur,G.isRgba=zi,G.isValidDate=v0,G.makeFullScreen=Zr,G.minutesToHoursMinutesStr=Vr,G.rgbToRgba=Oi,G.schedules=Ii,G.selectFormField=wt,G.subtractOneHourFromEndIntervals=y0,G.timeouts=Ue,G.toNumericSchedule=Qr,G.toRgba=ht,G.toggleOpen=Ht,G.twentyFourHours=Fi,Object.defineProperties(G,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
243
+ `);return await this.processMarkdown(i),n=n.replace(i,""),this.startNewRenderingCycle(),n}async render(e){this.isFirstTableRender&&(this.updateContent(e),this.isFirstTableRender=!1),this.isRenderingTable?(this.updateTableContent(e),this.accumulator=this.mdTableHeaderString+this.pendingRowString):this.animated?await this.animateNewChunk(e):this.updateContent(e)}updateTableContent(e){const r=this.extractTableFromHtml(e);if(!r)return;const n=this.htmlRenderingTarget.parentNode,i=this.ensureTableExists(n);this.removeEmptyTableRows(i);const o=r.querySelector("tbody")||document.createElement("tbody"),a=this.ensureTBodyExists(i);this.copyTableHead(r,i),this.copyTableBodyRows(o,a)}processTextNode(e,r,n,i,o){const u=e.value.split(i);if(u.length>1){const s=this.replaceRegexTargets(u,i,o,e,r);n.children.splice(r,1,...s)}}replaceRegexTargets(e,r,n,i,o){return e.map((a,u)=>{var s,l;if(r.test(a)){const d=`regex-target-${n}-${u}-${o}-${this.totalMarkdown.length}-${(l=(s=i==null?void 0:i.position)==null?void 0:s.start)==null?void 0:l.offset}`;return this.regexRenderTargetsById[d]={match:a,type:n},{type:"html",value:`<span id="${d}">${a}</span>`}}return a?{type:"text",value:a}:null}).filter(Boolean)}ensureTableExists(e){let r=e.querySelector(`table#t-${this.tableId}`);return r||(r=document.createElement("table"),r.id=`t-${this.tableId}`,e.appendChild(r)),r}ensureTBodyExists(e){let r=e.querySelector("tbody");return r||(r=document.createElement("tbody"),e.appendChild(r)),r}copyTableHead(e,r){const n=e.querySelector("thead");!r.querySelector("thead")&&n&&r.appendChild(n)}copyTableBodyRows(e,r){const n=e.querySelectorAll("tr"),i=Array.from(r.querySelectorAll("tr")).map(o=>o.id);n&&n.forEach(o=>{!o.innerText.trim()||i.includes(o.id)||r.appendChild(o.cloneNode(!0))})}removeEmptyTableRows(e){e.querySelectorAll("tr").forEach(n=>{const i=n.querySelectorAll("td, th");let o=!0;i.forEach(a=>{a.textContent.trim()!==""&&(o=!1)}),o&&n.parentNode.removeChild(n)})}getRegexRenderTargets(){return this.regexRenderTargetsById}clearRegexRenderTargets(){this.regexRenderTargetsById={}}extractTableFromHtml(e){const r=document.createElement("div");return r.innerHTML=e,r.querySelector(`table#t-${this.tableId}`)}updateContent(e){const r=document.createElement("div");r.innerHTML=e,Ys(this.htmlRenderingTarget,r,{onBeforeElUpdated:(n,i)=>n.classList.contains("Typewriter__wrapper")?(i.innerHTML=n.innerHTML,!1):!0})}initTypewriter(){return new p8(this.container,{loop:!1,delay:0,cursor:""})}async animateNewChunk(e){const r=this.getNewContent(e);await new Promise(n=>{this.onAnimationStart(),this.typewriter.typeString(r).callFunction(()=>{this.onAnimationEnd(),n()}).start()})}getNewContent(e){const r=document.createElement("div");return r.innerHTML=e,(r.textContent||"").slice(this.lastProcessedLength)}}const g8=A.extend({name:"EMarkdown",props:{nextChunks:{type:[Array,String],default:()=>[]},exposedRegexes:{type:Array,default:()=>[]},animated:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},useTableProcessor:{type:Boolean,default:!0}},data(){return{isProcessing:!1,processor:null}},watch:{nextChunks(t){this.handleNewChunk(t.join(""))}},mounted(){this.initProcessor(),this.processInitialChunks()},methods:{initProcessor(){const t=this.$refs.content;this.processor=new m8(t,{exposedRegexes:this.exposedRegexes,animated:this.animated,onAnimationStart:()=>this.$emit("animation-start"),onAnimationEnd:()=>this.$emit("animation-end"),useTableProcessor:this.useTableProcessor})},async processChunk(t){var r;await((r=this.processor)==null?void 0:r.processMarkdown(t))&&this.renderRegexesScopedSlots()},async handleNewChunk(t){await this.processChunk(t)},async processInitialChunks(){const t=Array.isArray(this.nextChunks)?this.nextChunks:[this.nextChunks];for(const e of t)await this.handleNewChunk(e)},renderRegexesScopedSlots(){var e,r;const t=(e=this.processor)==null?void 0:e.getRegexRenderTargets();Object.entries(t).forEach(([n,{match:i,type:o}])=>{this.renderScopedSlot({id:n,type:o,propsData:{match:i}})}),(r=this.processor)==null||r.clearRegexRenderTargets()},renderScopedSlot({id:t,type:e,propsData:r}){const n=document.getElementById(t);if(!n)return;const i=this.$scopedSlots[`markdown.regex.${e}`];if(!i)return;const o=A.extend({functional:!0,props:["scopedSlot","propsData"],render:(u,s)=>s.props.scopedSlot(s.props.propsData)}),a=new A({render:u=>u(o,{props:{scopedSlot:i,propsData:r}})}).$mount();return n.innerHTML="",n.appendChild(a.$el),a}}}),$d="";var v8=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-markdown"},[r("article",{staticClass:"e-mx-auto prose-h1:!e-text-2xl prose-h2:!e-text-xl prose-h2:!e-mt-0 prose-h3:!e-text-lg e-prose e-prose-slate",class:{"e-prose-invert":e.dark}},[r("div",{ref:"content",staticClass:"e-markdown__content"})])])},_8=[],y8=H(g8,v8,_8,!1,null,null,null,null);const C8=y8.exports,b8=A.extend({name:"ECopyToClipboardBtn",components:{EActionButton:ft},mixins:[Ge,Ue],props:{text:{type:[Function,String,Number],required:!0},buttonText:{type:String,default:""},buttonClasses:{type:[String,Object,Array],default:null},description:{type:String,default:"Copy"},iconType:{type:String,default:"far fa-copy"},textOnlyButton:{type:Boolean,default:!1},dark:{type:Boolean,default:!0}},data(){return{loading:!1,tooltipText:this.description||"Copy to clipboard"}},computed:{copyButtonClasses(){return{"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"hover:e-bg-gray-600":this.dark,"hover:e-bg-gray-200":!this.dark,"e-rounded-md e-border-none copy-button e-bg-transparent":!0}}},watch:{tooltipText(t){t!==this.description&&this.$setTimeout(()=>{this.tooltipText=this.description},1e3)}},mounted(){this.$addEventListener("focusin",this.handleFocusin,this.$refs.copyToClipboard)},methods:{handleFocusin(t){t.stopPropagation()},getProp(t,e){return Object.prototype.hasOwnProperty.call(this.$attrs,t)?this.$attrs[t]:e},copyTextToClipboard(){try{this.loading=!0;let t;typeof this.text=="function"?t=this.text():t=this.text;const e=this.$refs.copyToClipboard;e.value=t,e.focus(),e.select(),document.execCommand("copy"),this.tooltipText="Copied!",this.$emit("copied")}catch(t){console.error("Failed to copy text to clipboard",t)}finally{this.loading=!1}}}}),Ed="";var x8=function(){var e=this,r=e._self._c;return r("EActionButton",e._g(e._b({attrs:{"tooltip-text":e.tooltipText,"tooltip-position":"top",icon:e.iconType,"icon-size":"Lg",dark:e.dark,"button-classes":e.copyButtonClasses},on:{click:e.copyTextToClipboard}},"EActionButton",e.$attrs,!1),e.$listeners),[e._v(" "+e._s(e.buttonText)+" "),r("textarea",{ref:"copyToClipboard",staticClass:"copy-to-clipboard",attrs:{readonly:""}})])},w8=[],S8=H(b8,x8,w8,!1,null,"d3d39d0d",null,null);const mn=S8.exports,T8=A.extend({name:"EDialog",components:{EFadeTransition:Nt},mixins:[Ge],props:{value:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},actions:{type:Array,default:()=>[]},title:{type:String,default:""},persistent:{type:Boolean,default:!1},width:{type:[Number,String],default:500},height:{type:[Number,String],default:void 0},closeWithEscape:{type:Boolean,default:!0}},computed:{visible:{get(){return this.value},set(t){this.$emit("input",t)}},panelClasses(){return["e-relative e-transform e-overflow-hidden e-rounded-lg e-text-left e-shadow-xl e-transition-all e-w-full e-flex e-flex-col",this.dark?"e-bg-gray-800":"e-bg-white"]},headerContainerClasses(){return["e-dialog__header",this.dark?"e-bg-gray-800 e-text-gray-50":"e-bg-white e-text-slate-900","e-px-6 e-pt-6 e-pb-4"]},bodyContainerClasses(){return["e-dialog__body e-px-6",this.dark?"e-bg-gray-800 e-text-gray-50":"e-bg-white e-text-slate-900"]},footerContainerClasses(){return["e-dialog__footer",this.dark?"e-bg-gray-700":"e-bg-gray-50","e-flex e-py-3 e-px-4 e-justify-end e-mt-auto e-items-end"]},panelStyles(){const t=typeof this.width=="number"?`${this.width}px`:this.width,e=typeof this.height=="number"?`${this.height}px`:this.height;return{minWidth:t,minHeight:e,width:t,height:e}}},watch:{visible(t){t?this.showDialog():this.closeDialog()}},mounted(){this.visible&&this.showDialog(),this.$addEventListener("keydown",this.handleKeyDown)},methods:{showDialog(){this.$nextTick(()=>{const t=this.$refs.dialog;t&&!t.open&&t.showModal()})},closeDialog(){const t=this.$refs.dialog;t!=null&&t.open&&t.close()},handleBackdropClick(t){!this.persistent&&t.target===t.currentTarget&&(this.visible=!1)},onClose(){this.persistent||(this.visible=!1)},getButtonClasses(t){const e=this.dark?"e-bg-gray-700 e-text-gray-50 e-border-solid e-border-[1px] e-border-gray-500 hover:e-bg-gray-600":"e-bg-white e-text-gray-900 e-border-solid e-border-[1px] e-border-gray-300 hover:e-bg-gray-50",r={[se.Warning]:"e-bg-warning e-text-white e-border-none",[se.Error]:"e-bg-error e-text-white e-border-none",[se.Info]:"e-bg-info e-text-white e-border-none",[se.Success]:"e-bg-success e-text-white e-border-none",[se.Primary]:"e-bg-primary e-text-white e-border-none",[se.Brand]:"e-bg-brand-500 e-text-white e-border-none",[se.Default]:e,[se.Gray]:"e-bg-gray-600 e-text-white hover:e-bg-gray-light e-border-none"};return["e-inline-flex e-w-full e-justify-center e-rounded-md e-px-3 e-py-2 e-text-sm e-font-semibold e-shadow-sm sm:e-ml-3 sm:e-w-auto e-cursor-pointer hover:e-opacity-90",r[t]||r[se.Default]]},onActionClick(t){t.closeOnClick&&(this.visible=!1),this.$emit("action-clicked",t.id||t.label)},handleKeyDown(t){t.key==="Escape"&&(this.persistent||!this.closeWithEscape?t.preventDefault():this.visible=!1)}}}),Md="";var k8=function(){var e=this,r=e._self._c;return r("EFadeTransition",{attrs:{duration:100}},[e.visible?r("dialog",{ref:"dialog",staticClass:"e-dialog e-p-0 e-m-auto e-border-none e-rounded-lg",on:{click:e.handleBackdropClick,close:e.onClose,cancel:e.onClose}},[r("div",{class:e.panelClasses,style:e.panelStyles},[r("div",{class:e.headerContainerClasses},[e._t("header",function(){return[e.title?r("div",{staticClass:"e-text-lg e-font-bold"},[e._v(" "+e._s(e.title)+" ")]):e._e()]},{dark:e.dark})],2),r("div",{class:e.bodyContainerClasses},[e._t("default",null,{dark:e.dark})],2),r("div",{class:e.footerContainerClasses},[e._t("footer",function(){return e._l(e.actions,function(n,i){return r("button",{key:i,class:e.getButtonClasses(n.color),on:{click:function(o){return o.stopPropagation(),e.onActionClick(n)}}},[e._v(" "+e._s(n.label)+" ")])})},{actions:e.actions,dark:e.dark})],2)])]):e._e()])},$8=[],E8=H(T8,k8,$8,!1,null,null,null,null);const M8=E8.exports,L8=A.extend({name:"EFeedbackButton",components:{EDialog:M8,EActionButton:ft},mixins:[Ge,Ue],props:{buttonText:{type:String,default:""},buttonClasses:{type:[String,Object,Array],default:null},description:{type:String,default:"Submit feedback"},iconType:{type:String,default:"far fa-thumbs-up"},withText:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},dialogActions:{type:Array,default:()=>[{label:"Cancel",color:"default",closeOnClick:!0},{label:"Submit",color:"primary"}]},dialogWidth:{type:[Number,String],default:"27rem"}},data(){return{tooltipText:this.description||"Submit feedback",showDialog:!1,feedbackText:""}},computed:{eButtonClasses(){return{"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"hover:e-bg-gray-600":this.dark,"hover:e-bg-gray-200":!this.dark,"e-rounded-md e-border-none e-bg-transparent":!0}},textAreaClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"e-text-gray-600":!this.dark,"e-text-gray-300":this.dark,"e-custom-scrollbar--light":!this.dark,"e-custom-scrollbar--dark":this.dark}},textAreaContainerClasses(){return{"e-border-gray-600":this.dark,"e-border-gray-300":!this.dark}}},watch:{tooltipText(t){t!==this.description&&this.$setTimeout(()=>{this.tooltipText=this.description},1e3)}},methods:{onClick(t){this.withText?this.showDialog=!0:this.submitFeedback(t)},submitFeedback(t){if(t==="Cancel"){this.showDialog=!1;return}this.showDialog=!1,this.$emit("submit",this.feedbackText),this.tooltipText="Thank you!"}}}),Ld="";var D8=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EActionButton",{attrs:{"tooltip-text":e.tooltipText,"tooltip-position":"top",icon:e.iconType,"icon-size":"Lg",dark:e.dark,"button-classes":e.eButtonClasses},on:{click:e.onClick}},[e._v(" "+e._s(e.buttonText)+" "),e.withText?r("EDialog",{staticClass:"e-feedback",attrs:{value:e.showDialog,title:"Feedback",dark:e.dark,width:e.dialogWidth,persistent:"",actions:e.dialogActions,"close-with-escape":!1},on:{"action-clicked":e.submitFeedback}},[r("div",{staticClass:"e-feedback__form"},[r("div",{staticClass:"e-feedback__form-description e-mb-3 e-leading-relaxed"},[e._v(" Thanks for your input! "),r("br"),e._v("Please share your thoughts and experience to help us improve ")]),r("div",{staticClass:"e-rounded-md e-w-full e-overflow-hidden e-border e-border-solid e-py-2 e-mb-6",class:e.textAreaContainerClasses},[r("textarea",{directives:[{name:"model",rawName:"v-model",value:e.feedbackText,expression:"feedbackText"}],staticClass:"e-feedback__textarea focus:e-outline-none e-mr-6 e-border-none e-placeholder-gray-400 e-py-3 e-pl-3 e-w-full",class:e.textAreaClasses,attrs:{autofocus:"",tabindex:"0",rows:"4",placeholder:"Enter your text here..."},domProps:{value:e.feedbackText},on:{input:function(n){n.target.composing||(e.feedbackText=n.target.value)}}})])])]):e._e()],1)},P8=[],O8=H(L8,D8,P8,!1,null,null,null,null);const z8=O8.exports,B8=A.extend({name:"EChatMessageActions",components:{EFeedbackButton:z8,ECopyToClipboardBtn:mn,EActionButton:ft},props:{message:{type:[String,Array],default:""},dark:{type:Boolean,default:!1},showCopyButton:{type:Boolean,default:!1},showRegenerateButton:{type:Boolean,default:!1},showFeedbackButtons:{type:Boolean,default:!1},messageId:{type:[String,Number],default:null}},data(){return{FeedbackType:Qt,showFeedbackDialog:!1}},computed:{messageText(){return(Array.isArray(this.message)?this.message:[this.message]).join("")},eButtonClasses(){return{"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"hover:e-bg-gray-600":this.dark,"hover:e-bg-gray-200":!this.dark,"e-rounded-md e-border-none e-bg-transparent e-border-none":!0}}},methods:{handleFeedback(t,e){this.$emit("feedback",{type:t,text:e})},openFeedbackDialog(){this.showFeedbackDialog=!0}}}),Dd="";var I8=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-message__actions e-relative"},[r("div",{staticClass:"e-message__actions-container e-flex e-gap-1 e-my-2"},[e.showCopyButton?r("ECopyToClipboardBtn",{attrs:{text:e.messageText,dark:e.dark,"button-size":"xs","button-classes":"e-bg-transparent e-border-none",description:"Copy"}}):e._e(),e.showRegenerateButton?r("EActionButton",{attrs:{"tooltip-text":"Regenerate","tooltip-position":"top",icon:"rotate-right","icon-size":"xs",dark:e.dark,"button-classes":e.eButtonClasses},on:{click:function(n){return e.$emit("regenerate")}}}):e._e(),e.showFeedbackButtons?r("EFeedbackButton",{attrs:{dark:e.dark,"with-text":"",description:"Give positive feedback","button-size":"sm","button-classes":"e-bg-transparent e-border-none"},on:{submit:function(n){return e.handleFeedback(e.FeedbackType.Positive,n)}},nativeOn:{click:function(n){return e.openFeedbackDialog.apply(null,arguments)}}}):e._e(),e.showFeedbackButtons?r("EFeedbackButton",{attrs:{dark:e.dark,"with-text":"",description:"Give negative feedback","button-size":"sm","button-classes":"e-bg-transparent e-border-none","icon-type":"far fa-thumbs-down"},on:{submit:function(n){return e.handleFeedback(e.FeedbackType.Negative,n)}},nativeOn:{click:function(n){return e.openFeedbackDialog.apply(null,arguments)}}}):e._e()],1)])},F8=[],A8=H(B8,I8,F8,!1,null,null,null,null);const R8=A8.exports,H8=A.extend({name:"EChatMessage",components:{EFadeTransition:Nt,EAvatar:Mt,EChatMessageActions:R8,EEvercamLogo:ms,EPulsatingDot:h8,EMarkdown:C8},mixins:[Ue],props:{role:{type:String,default:Ye.User},initials:{type:String,default:null},message:{type:[String,Array,Object],default:""},isLoading:{type:Boolean,default:!1},avatarSrc:{type:String,default:null},type:{type:String,default:Vt.Text},showAvatar:{type:Boolean,default:!0},dark:{type:Boolean,default:!1},withActions:{type:Boolean,default:!1},showCopyButton:{type:Boolean,default:!1},showRegenerateButton:{type:Boolean,default:!1},showFeedbackButtons:{type:Boolean,default:!1},loadingMessage:{type:String,default:""},exposedRegexes:{type:Array,default:()=>[]},animated:{type:Boolean,default:!1},eMarkdownProps:{type:Object,default:()=>({})}},data(){return{showActions:!1,nextChunks:[]}},computed:{isBotRole(){return this.role===Ye.Copilot||this.role===Ye.System},userMessageClasses(){return{"e-bg-gray-100 e-text-gray-800":!this.dark,"e-bg-gray-600 e-text-white":this.dark}},logoClasses(){return{"e-bg-white e-rounded-full":this.dark}},dotColor(){return this.dark?"#ff2525":"#c5393d"},markdownScopedSlots(){return Object.keys(this.$scopedSlots).filter(t=>t.startsWith("markdown.")).reduce((t,e)=>(t[e]=this.$scopedSlots[e],t),{})}},watch:{message:{immediate:!0,handler(t,e){t.length&&(e!=null&&e.length?this.nextChunks=t.slice(e.length):this.nextChunks=t)}}},methods:{onMouseOver(){this.showActions=!0},onMouseLeave(t){[null,document.documentElement].includes(t.relatedTarget)||(this.showActions=!1)},onFeedback(t){this.$emit("feedback",t),this.$setTimeout(()=>{this.showActions=!1},1e3)}}}),Pd="";var N8=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-chat-message e-mb-3"},[r("div",{staticClass:"e-chat-message__wrapper e-flex e-items-start e-justify-start e-gap-3",class:{"e-chat-message__rtl":!e.isBotRole}},[e.showAvatar?r("div",{staticClass:"e-chat-message__avatar"},[e.isBotRole?e._t("message-avatar",function(){return[r("div",{class:e.logoClasses},[r("EEvercamLogo",{attrs:{size:"xs","background-classes":"e-bg-white e-p-[2px] e-rounded-full !e-pr-[2.5px] !e-pt-[3.5px]"}})],1)]},{role:e.role}):r("EAvatar",{attrs:{image:e.avatarSrc,size:"Xs"}},[e._v(e._s(e.initials))])],2):e._e(),r("div",{staticClass:"e-chat-message__content e-flex e-w-full",class:{"e-justify-end":!e.isBotRole}},[e._t("message.content",function(){return[e.isLoading&&e.isBotRole?e._t("loadingPlaceholder",function(){return[r("div",[e.loadingMessage?r("EMarkdown",{staticClass:"e-chat-message__markdown e-italic",attrs:{"next-chunks":[e.loadingMessage],animated:"",dark:e.dark,copyable:!1}}):e._e(),r("div",{staticClass:"e-inline-block e-mt-2 e-ml-2"},[r("EPulsatingDot",{attrs:{size:8,color:e.dotColor}})],1)],1)]}):e.isBotRole&&e.type!=="error"?r("EMarkdown",e._b({staticClass:"e-chat-message__markdown e-w-full",attrs:{"next-chunks":e.nextChunks,animated:e.animated,dark:e.dark,"exposed-regexes":e.exposedRegexes},on:{"animation-end":function(n){return e.$emit("animation-end")},"animation-start":function(n){return e.$emit("animation-start")}},scopedSlots:e._u([e._l(e.markdownScopedSlots,function(n,i){return{key:i,fn:function(o){return[e._t(i,null,null,o)]}}})],null,!0)},"EMarkdown",e.eMarkdownProps,!1)):e.type==="error"?r("p",{staticClass:"e-chat-message__error e-px-4 e-py-3 e-border-solid e-border-[1.67px] e-rounded-md e-border-red-400 e-bg-red-500/10 e-text-sm e-font-normal"},[e._v(" "+e._s(e.message)+" ")]):r("p",{staticClass:"e-chat-message__content e-font-medium e-text-wrap e-mb-1 e-rounded-lg e-p-2 e-px-4",class:e.userMessageClasses},[e._v(" "+e._s(e.message)+" ")]),e._t("extraContent")]})],2)]),e._t("message.append"),r("EFadeTransition",[e.withActions?r("EChatMessageActions",{staticClass:"e-left-11",attrs:{"message-id":e.$attrs["data-message-id"],dark:e.dark,"show-copy-button":e.showCopyButton,"show-feedback-buttons":e.showFeedbackButtons,"show-regenerate-button":e.showRegenerateButton,message:e.message},on:{feedback:e.onFeedback,regenerate:function(n){return e.$emit("message-regenerate")}}}):e._e()],1)],2)},j8=[],G8=H(H8,N8,j8,!1,null,null,null,null);const W8=G8.exports,q8=A.extend({name:"EChatFooter",props:{dark:{type:Boolean,default:!1},inline:{type:Boolean,default:!1}},computed:{backgroundClasses(){return this.inline?{}:{"e-bg-gray-700":this.dark,"e-bg-gray-50":!this.dark}},footerClasses(){return{...this.backgroundClasses}}}});var U8=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-chat-footer e-px-3 e-pt-4 e-pb-3",class:e.footerClasses},[e._t("default")],2)},Z8=[],Y8=H(q8,U8,Z8,!1,null,null,null,null);const X8=Y8.exports,V8=A.extend({name:"EVoiceInputVolumeIndicator",props:{isListening:{type:Boolean,required:!0},analyser:{type:Object,required:!0}},data(){return{volume:0,animationFrameId:0}},watch:{isListening:{immediate:!0,handler(t){t?this.startVolumeMonitoring():this.stopVolumeMonitoring()}}},beforeDestroy(){this.stopVolumeMonitoring()},methods:{startVolumeMonitoring(){this.analyser&&this.updateVolume()},updateVolume(){if(!this.analyser)return;const t=new Uint8Array(this.analyser.frequencyBinCount);this.analyser.getByteFrequencyData(t);let e=0;for(const r of t)e+=r**2.75;this.volume=Math.sqrt(e/t.length)/256,this.animationFrameId=requestAnimationFrame(this.updateVolume)},stopVolumeMonitoring(){this.animationFrameId&&cancelAnimationFrame(this.animationFrameId)}}}),Od="";var Q8=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-volume-indicator e-relative e-w-8 e-h-8 e-flex e-items-center e-justify-center"},[r("div",{staticClass:"e-volume-indicator__bubble e-absolute e-inset-y-0 e-rounded-full",style:{transform:`scale(${e.isListening?.5+e.volume*.5:1})`,opacity:e.isListening?.5:0,width:"inherit",height:"inherit"}}),r("div",{staticClass:"e-absolute e-inset-0 e-flex e-items-center e-justify-center"},[e._t("default")],2)])},K8=[],J8=H(V8,Q8,K8,!1,null,null,null,null);const eu=J8.exports,tu=A.extend({name:"EVoiceInput",components:{EVoiceInputVolumeIndicator:eu,EIcon:qe,ETooltip:St},mixins:[Ge],props:{value:{type:String,default:""},dark:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},iconSize:{type:Number,default:10},silenceTimeout:{type:Number,default:1500}},data(){return{recognition:null,isListening:!1,interimTranscript:"",finalTranscript:"",analyser:null,audioContext:null,mediaStream:null,mediaStreamSource:null,silenceTimer:null}},computed:{currentTranscript(){return this.finalTranscript+this.interimTranscript},buttonClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"e-opacity-50":this.disabled}}},watch:{currentTranscript(t){this.$emit("input",t)}},mounted(){this.initSpeechRecognition(),this.$addEventListener("keydown",this.handleKeyDown)},beforeDestroy(){this.stopListening()},methods:{initSpeechRecognition(){const t=window.SpeechRecognition||window.webkitSpeechRecognition;if(!t){console.error("Speech recognition is not supported in this browser.");return}if(this.recognition=new t,this.recognition.continuous=!0,this.recognition.interimResults=!0,this.recognition.lang="en-US",this.recognition.speechStartTimeout=200,this.recognition.onresult=this.handleResult,this.recognition.onerror=this.handleError,this.recognition.onend=this.handleEnd,this.recognition.onspeechend=this.handleSpeechEnd,this.audioContext=new(window.AudioContext||window.webkitAudioContext),!this.audioContext){console.error("Audio context is not supported in this browser.");return}this.analyser=this.audioContext.createAnalyser(),this.analyser.fftSize=256},async toggleListening(){this.recognition&&(this.isListening?this.stopListening():await this.setupVolume())},async setupVolume(){try{this.mediaStream=await navigator.mediaDevices.getUserMedia({audio:!0}),this.audioContext.state!=="running"&&await this.audioContext.resume(),this.mediaStreamSource=this.audioContext.createMediaStreamSource(this.mediaStream),this.mediaStreamSource.connect(this.analyser),this.finalTranscript="",this.interimTranscript="",this.recognition.start(),this.isListening=!0}catch(t){console.error("Error accessing microphone:",t)}},stopListening(){this.isListening=!1,this.recognition.stop(),this.silenceTimer&&(clearTimeout(this.silenceTimer),this.silenceTimer=null),this.flushMediaStream()},flushMediaStream(){var t;this.mediaStream&&(this.mediaStream.getTracks().forEach(e=>e.stop()),(t=this.mediaStreamSource)==null||t.disconnect(),this.mediaStream=null,this.mediaStreamSource=null)},handleResult(t){this.interimTranscript="";for(let e=t.resultIndex;e<t.results.length;++e){const r=t.results[e];r.isFinal?this.finalTranscript+=r[0].transcript+" ":this.interimTranscript+=r[0].transcript}this.silenceTimer&&clearTimeout(this.silenceTimer),this.silenceTimer=setTimeout(()=>{this.submitTranscript()},this.silenceTimeout)},handleEnd(){this.isListening=!1},handleSpeechEnd(){this.submitTranscript()},submitTranscript(){this.finalTranscript.trim().length>0&&(this.$emit("on-voice-message-end",this.finalTranscript.trim()),this.finalTranscript="",this.interimTranscript=""),this.stopListening()},handleKeyDown(t){t.code==="Space"&&t.ctrlKey&&(t.preventDefault(),this.toggleListening())},handleError(t){console.error("Speech recognition error:",t==null?void 0:t.error),this.isListening=!1}}});var ru=function(){var e=this,r=e._self._c;return r("ETooltip",{attrs:{text:"Use Ctrl + Space to speak",dark:e.dark}},[r("button",e._g(e._b({staticClass:"e-chat-input__voice-btn e-border-none e-chat-input__voice-btn e-flex e-items-center e-justify-center e-cursor-pointer e-h-8 e-w-8 disabled:e-cursor-not-allowed focus:e-outline-none",class:{...e.buttonClasses,"e-h-10 e-w-10":!e.isListening},on:{click:e.toggleListening}},"button",e.$attrs,!1),e.$listeners),[e.isListening?r("EVoiceInputVolumeIndicator",{attrs:{analyser:e.analyser,"is-listening":e.isListening}},[r("EIcon",{staticClass:"e-chat-input__voice-btn--icon",attrs:{icon:"stop",color:"e-text-red-600",size:"Sm"}})],1):r("EIcon",{attrs:{icon:"microphone",size:"Base"}})],1)])},nu=[],iu=H(tu,ru,nu,!1,null,null,null,null);const gn=iu.exports,su=A.extend({name:"EChatInput",components:{EIcon:qe,ETooltip:St,EVoiceInput:gn},model:{prop:"value",event:"prompt-changed"},props:{dark:{type:Boolean,default:!1},placeholder:{type:String,default:"Message Copilot"},disabled:{type:Boolean,default:!1},silenceTimeout:{type:Number,default:1500}},data(){return{content:"",maxHeight:175,textAreaHeight:0,isShiftKeyPressed:!1,transcript:""}},computed:{textAreaContainerClasses(){return{"e-border-gray-600":this.dark&&!this.disabled,"e-border-gray-300":!this.dark&&!this.disabled,"e-border-gray-800":this.dark&&this.disabled,"e-border-gray-500":!this.dark&&this.disabled,"e-cursor-not-allowed e-opacity-50":this.disabled}},textAreaClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"e-text-gray-600":!this.dark,"e-text-gray-300":this.dark,"e-custom-scrollbar--light":!this.dark,"e-custom-scrollbar--dark":this.dark}},buttonClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"e-opacity-50":this.isSubmitDisabled}},isSubmitDisabled(){return this.disabled||this.content.length<4},textareaStyle(){return this.textAreaHeight?{height:`${Math.min(this.textAreaHeight,this.maxHeight)}px`,overflowY:this.isOverflowing?"scroll":"hidden"}:{}},isOverflowing(){return!!this.textAreaHeight&&this.textAreaHeight>this.maxHeight}},mounted(){this.focus()},methods:{focus(){this.$refs.chatTextarea.focus()},submitMessage(){this.$emit("submit",this.content),this.content="",this.$nextTick(this.updateTextAreaHeight)},onInput(t){const e=t.target,r=this.content===e.value;this.content=e.value,r||(this.updateTextAreaHeight(),this.$emit("prompt-changed",e.value))},onKeyDown(t){if(!this.disabled){if(!this.isShiftKeyPressed&&t.key==="Enter"){t.preventDefault();return}if(t.key==="Shift"||t.code==="ShiftLeft"){this.isShiftKeyPressed=!0;return}}},onKeyUp(t){if(!this.disabled){if(t.key==="Shift"||t.code==="ShiftLeft"){this.isShiftKeyPressed=!1;return}t.key==="Enter"&&!this.isShiftKeyPressed&&(t.preventDefault(),this.submitMessage())}},updateTextAreaHeight(){const t=this.$refs.chatTextarea;t.style.height="auto",this.textAreaHeight=t.scrollHeight},handleVoiceMessage(t){this.$emit("prompt-changed",t),this.$emit("submit",t),this.transcript=""}}}),zd="";var au=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-chat-input e-relative e-flex e-w-auto e-p-2"},[r("div",{staticClass:"e-rounded-lg e-w-full e-overflow-hidden e-border e-border-solid",class:e.textAreaContainerClasses},[r("textarea",e._b({ref:"chatTextarea",staticClass:"e-chat-input__textarea focus:e-outline-none e-mr-6 e-border-none e-placeholder-gray-400 e-py-3 e-pl-3 e-w-full",class:e.textAreaClasses,style:e.textareaStyle,attrs:{rows:"1",tabindex:"0",autofocus:"",placeholder:e.transcript.length>0?e.transcript:e.placeholder,disabled:e.disabled},on:{keydown:function(n){return n.stopPropagation(),e.onKeyDown.apply(null,arguments)},keyup:e.onKeyUp,input:e.onInput}},"textarea",e.$attrs,!1))]),r("div",{staticClass:"e-absolute e-bottom-3 e-items-center e-flex e-h-min e-gap-1.5",class:e.isOverflowing?"e-right-6":"e-right-4"},[e._t("input-action-button",function(){return[r("EVoiceInput",{attrs:{dark:e.dark,disabled:e.disabled,"silence-timeout":e.silenceTimeout},on:{"on-voice-message-end":e.handleVoiceMessage},model:{value:e.transcript,callback:function(n){e.transcript=n},expression:"transcript"}}),r("ETooltip",{attrs:{text:"Submit",dark:e.dark}},[r("button",{staticClass:"e-chat-input__submit-btn e-inline-flex e-items-center e-justify-center e-cursor-pointer disabled:e-cursor-not-allowed e-h-8 e-w-8 e-border-none focus:e-outline-none",class:e.buttonClasses,attrs:{type:"button",disabled:e.isSubmitDisabled},on:{click:function(n){return n.preventDefault(),e.submitMessage.apply(null,arguments)}}},[r("EIcon",{attrs:{icon:"arrow-up",size:"base"}})],1)])]},{buttonClasses:e.buttonClasses})],2)])},ou=[],lu=H(su,au,ou,!1,null,null,null,null);const cu=lu.exports,uu=A.extend({name:"EChatSuggestionCard",components:{EIcon:qe},props:{text:{type:String,required:!0},icon:{type:String,default:null},color:{type:String,default:"e-text-gray-500"},dark:{type:Boolean,default:!1},width:{type:Number,default:null},display:{type:String,default:"row"}},computed:{classes(){return{"e-flex-row":this.display==="row","e-flex-col":this.display==="column","hover:e-bg-gray-100 e-border-gray-200":!this.dark,"e-bg-gray-800 e-border-gray-600 hover:e-bg-gray-900":this.dark}},styles(){return this.width?{width:`${this.width}px`}:{}}}});var du=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",e._g(e._b({staticClass:"e-chat-suggestion e-p-3 e-flex e-justify-start e-items-start e-gap-2 e-border-solid e-border-[1.67px] e-rounded-md e-cursor-pointer e-w-full",class:e.classes,style:e.styles},"div",e.$attrs,!1),e.$listeners),[r("div",{staticClass:"e-chat-suggestion__icon e-h-6 e-w-6"},[e.icon?r("EIcon",{attrs:{icon:e.icon,size:"Lg",color:e.color}}):e._t("svg-icon")],2),r("div",{staticClass:"e-chat-suggestion__text e-font-medium e-antialiased e-text-wrap",class:{"e-text-gray-200":e.dark,"e-text-gray-600":!e.dark}},[e._v(" "+e._s(e.text)+" ")])])},hu=[],fu=H(uu,du,hu,!1,null,null,null,null);const pu=fu.exports,mu=A.extend({components:{EFadeTransition:Nt,EChatWrapper:Zc,EChatHeader:r8,EChatBody:o8,EChatMessage:W8,EChatFooter:X8,EChatInput:cu,EChatSuggestionCard:pu},props:{dark:{type:Boolean,default:!1},messages:{type:Array,default:()=>[]},user:{type:String,default:"You"},embedded:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},inlineFooter:{type:Boolean,default:!1},height:{type:String,default:void 0},width:{type:String,default:void 0},showUserAvatar:{type:Boolean,default:!0},showCopilotAvatar:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},headerText:{type:String,default:"Evercam Copilot"},inputPlaceholder:{type:String,default:"Message Copilot"},loadingMessage:{type:String,default:""},suggestions:{type:Array,default:()=>[]},exposedRegexes:{type:Array,default:()=>[]},eMarkdownProps:{type:Object,default:()=>({useTableProcessor:!1})},silenceTimeout:{type:Number,default:1500}},data(){return{prompt:"",containerHeight:0,headerHeight:0,bodyHeight:0,footerHeight:0}},computed:{ChatMessageRole(){return Ye},userInitials(){var t,e,r;return((r=(e=(t=this.user.trim())==null?void 0:t.split(/\s+/))==null?void 0:e.map(n=>{var i;return((i=n==null?void 0:n.charAt(0))==null?void 0:i.toUpperCase())||""}))==null?void 0:r.join(""))||this.user[0]||""},chatBodyStyle(){return this.bodyHeight?{maxHeight:`${this.bodyHeight}px`,height:`${this.bodyHeight}px`}:{}},wrapperStyle(){return{height:this.height||"100%",width:this.width||"100%"}},bodyBorderClasses(){let t={};this.showHeader&&(t={"e-border-t-[1px] e-border-t-solid":!0,"e-border-t-gray-300":!this.dark,"e-border-t-gray-600":this.dark});let e={};return this.inlineFooter||(e={"e-border-b-[1px] e-border-b-solid":!0,"e-border-b-gray-300":!this.dark,"e-border-b-gray-600":this.dark}),{...t,...e}},markdownScopedSlots(){return Object.keys(this.$scopedSlots).filter(t=>t.startsWith("markdown.")).reduce((t,e)=>(t[e]=this.$scopedSlots[e],t),{})},showSuggestions(){return this.messages.length===0&&this.suggestions.length>0}},watch:{height(){this.updateChatBodyHeight()},showHeader(){this.updateChatBodyHeight()}},mounted(){this.updateChatBodyHeight()},methods:{sendMessage(){!this.isDisabled&&this.prompt.length>0&&(this.$emit("user-message",this.prompt),this.prompt="")},isUserMessage(t){return t.role===Ye.User},hasActions(t){return this.isLoading||this.isDisabled?!1:t.role===Ye.Copilot&&t.withActions!==!1},getMessageContent(t){return t.content},getMessageInitials(t){return this.isUserMessage(t)?this.userInitials:null},getMessageClasses(t,e){return{"e-mb-11":e===this.messages.length-1&&this.hasActions(t)}},updateChatBodyHeight(){this.$nextTick(()=>{var n,i,o;const t=(n=this.$refs.chatContainer)==null?void 0:n.$el,e=(i=this.$refs.chatHeader)==null?void 0:i.$el,r=(o=this.$refs.chatFooter)==null?void 0:o.$el;!t||!e||!r||(this.headerHeight=e.clientHeight,this.footerHeight=r.clientHeight,this.containerHeight=t.clientHeight,this.height?this.bodyHeight=parseInt(this.height)-this.headerHeight-this.footerHeight:this.bodyHeight=Math.max(500,this.containerHeight-this.headerHeight-this.footerHeight))})},isAvatarVisible(t){return t.role===Ye.User?this.showUserAvatar:t.role===Ye.Copilot?this.showCopilotAvatar:!0},onMessageFeedback(t,e){this.$emit("message-feedback",{...t,messageId:e})}}}),Bd="";var gu=function(){var e=this,r=e._self._c;return r("EChatWrapper",{ref:"chatContainer",staticClass:"e-chat-wrapper",style:e.wrapperStyle,attrs:{dark:e.dark,embedded:e.embedded}},[r("div",{staticClass:"e-w-full e-h-full e-chat-container"},[r("EChatHeader",{ref:"chatHeader",attrs:{hidden:!e.showHeader,dark:e.dark,title:e.headerText},scopedSlots:e._u([{key:"chip",fn:function(){return[e._t("chip")]},proxy:!0},{key:"append",fn:function(){return[e._t("header-append")]},proxy:!0}],null,!0)}),r("EChatBody",{ref:"chatBody",class:e.bodyBorderClasses,style:e.chatBodyStyle,attrs:{dark:e.dark}},[r("EFadeTransition",[e.showSuggestions?r("div",{staticClass:"e-w-full e-flex e-flex-col e-items-center e-justify-center e-mt-8"},[r("div",{staticClass:"e-flex e-flex-col e-justify-center e-items-center e-gap-4"},e._l(e.suggestions,function(n){return r("EChatSuggestionCard",{key:n.text,attrs:{text:n.text,icon:n.icon,color:n.color,dark:e.dark,width:n.width,display:n.display||"row"},on:{click:function(i){return e.$emit("suggestion-clicked",n)}}})}),1)]):e._e()]),e.showSuggestions?e._e():r("div",e._l(e.messages,function(n,i){return r("EChatMessage",{key:`${n.id}-${i}`,class:e.getMessageClasses(n,i),attrs:{dark:e.dark,role:n.role,"is-loading":n.isLoading,"data-message-id":n.id,"show-feedback-buttons":!e.readonly,"show-regenerate-button":!e.readonly,"exposed-regexes":e.exposedRegexes,"show-copy-button":"","e-markdown-props":e.eMarkdownProps,message:e.getMessageContent(n),type:n.type,initials:e.getMessageInitials(n),"show-avatar":e.isAvatarVisible(n),"with-actions":e.hasActions(n)&&i>0},on:{feedback:function(o){return e.onMessageFeedback(o,n.id)},"message-regenerate":function(o){return e.$emit("message-regenerate",n.id)},"animation-end":function(o){return e.$emit("animation-end",o)}},scopedSlots:e._u([e._l(e.markdownScopedSlots,function(o,a){return{key:a,fn:function(u){return[e._t(a,null,null,u)]}}}),{key:"message.content",fn:function(){return[e._t("message.content",null,{message:n})]},proxy:!0},{key:"message.append",fn:function(){return[e._t("message.append",null,{message:n})]},proxy:!0},{key:"extraContent",fn:function(){return[e._t("message.extraContent",null,{message:n})]},proxy:!0}],null,!0)})}),1),e.isLoading?r("EChatMessage",{attrs:{"is-loading":"","loading-message":e.loadingMessage,"data-message-id":-1,"show-avatar":e.showCopilotAvatar,role:e.ChatMessageRole.Copilot,dark:e.dark}}):e._e()],1),e._t("body-append",null,{messages:e.messages}),r("EChatFooter",{directives:[{name:"show",rawName:"v-show",value:!e.readonly,expression:"!readonly"}],ref:"chatFooter",attrs:{dark:e.dark,inline:e.inlineFooter}},[r("EChatInput",{attrs:{dark:e.dark,disabled:e.isDisabled,placeholder:e.inputPlaceholder,"silence-timeout":e.silenceTimeout},on:{"prompt-changed":function(n){return e.$emit("prompt-changed",n)},submit:e.sendMessage},scopedSlots:e._u([{key:"input-action-button",fn:function(){return[e._t("input-action-button")]},proxy:!0}],null,!0),model:{value:e.prompt,callback:function(n){e.prompt=n},expression:"prompt"}})],1)],2)])},vu=[],_u=H(mu,gu,vu,!1,null,"966d186a",null,null);const yu=_u.exports,Cu=A.extend({name:"ERadioGroup",mixins:[wt],props:{dark:{type:Boolean,default:!1},withDescription:{type:Boolean,default:!0}},computed:{radioItemClasses(){return{"e-bg-gray-800 e-text-gray-200 e-border-gray-700":this.dark,"e-text-gray-500 e-bg-white e-border-gray-300":!this.dark}},selectedItemClasses(){return"e-text-[#00315f] e-bg-[#629efc] e-border-transparent"}},methods:{showDescription(t){var e,r;return this.withDescription&&((r=(e=this.options)==null?void 0:e[t])==null?void 0:r.description)&&this.options[t].description.length>0||this.isSelected(t)},containerClasses(t){return[this.isSelected(t)?this.selectedItemClasses:this.radioItemClasses,this.options[t].disabled||this.disabled?"e-opacity-50 e-cursor-not-allowed":"e-cursor-pointer e-select-none"]}}});var bu=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-radio-group__wrapper e-mx-auto e-w-full"},[r("div",[r("div",{staticClass:"e-space-y-2"},e._l(e.options,function(n,i){return r("div",{key:i,staticClass:"e-radio-group__container e-relative e-flex e-border-solid e-border-[1.67px] e-rounded-lg e-px-4 e-py-2.5 e-shadow-md focus:e-outline-none e-max-h-[66px]",class:e.containerClasses(i),on:{click:function(o){return e.onItemClick(i)}}},[r("div",{staticClass:"e-radio-group__option-wrapper e-flex e-w-full e-items-center e-justify-between"},[r("div",{staticClass:"e-radio-group__option-wrapper e-flex e-items-center"},[r("div",{staticClass:"e-text-sm"},[r("h2",{staticClass:"e-radio-group__option-title e-font-semibold e-text-sm e-mb-1 e-mt-1"},[e._v(" "+e._s(n.label)+" ")]),r("div",[e.showDescription(i)?r("span",{staticClass:"e-radio-group__option-description e-mt-2 e-text-sx"},[e._v(" "+e._s(n.description)+" ")]):e._e()])])]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isSelected(i),expression:"isSelected(index)"}],staticClass:"e-shrink-0 e-text-white"},[r("svg",{staticClass:"e-h-6 e-w-6",attrs:{viewBox:"0 0 24 24",fill:"none"}},[r("circle",{attrs:{cx:"12",cy:"12",r:"12",fill:"#fff","fill-opacity":"0.2"}}),r("path",{attrs:{d:"M7 13l3 3 7-7",stroke:"#fff","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}})])])])])}),0)])])},xu=[],wu=H(Cu,bu,xu,!1,null,null,null,null);const vs=wu.exports,Su=A.extend({name:"ETabs",mixins:[Rt],props:{dark:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},activeClass:{type:String,default:null}},methods:{onTabSelected(t){this.currentValue=t,this.$emit("tab-selected",t)},isActive(t){return this.currentValue===t},isLink(t){return!!t&&!this.isExternalLink(t)},isExternalLink(t){return!!t&&t.startsWith("http")},getTabBarItemClasses(t,e=""){return["e-tabs__item e-inline-block e-p-4 e-cursor-pointer e-text-xs",{[this.activeClass]:this.isActive(t)&&!!this.activeClass,"e-bg-gray-800 !e-text-gray-200 e-border-gray-700":this.dark&&!this.isActive(t),"hover:!e-text-gray-600 !e-text-gray-800":this.isExternalLink(e)||this.isLink(e),"!e-text-blue-600":this.isExternalLink(e)||this.isLink(e)," hover:e-bg-gray-100 e-bg-white ":!this.isActive(t)&&!this.dark,"!e-text-blue-600 e-bg-blue-100":this.isActive(t)&&!this.dark,"e-text-[#00315f] e-bg-[#629efc] e-border-blue-600":this.isActive(t)&&this.dark,"e-border-l-3 e-border-l-solid !e-border-b-blue-600":this.vertical&&this.isActive(t),"e-border-b-2 e-border-b-solid !e-border-b-blue-600":!this.vertical&&this.isActive(t)}]},getChildTitle(t){var r,n,i;const e=(r=t.componentOptions)==null?void 0:r.propsData;return e!=null&&e.title?e.title:e!=null&&e.name?e.name:(i=(n=t.data)==null?void 0:n.attrs)!=null&&i.name?t.data.attrs.name:`Tab ${this.currentValue+1}`},renderTab(t,e,r){var o,a,u,s,l,d,p,m;const n=((a=(o=e.data)==null?void 0:o.attrs)==null?void 0:a.href)||((s=(u=e.data)==null?void 0:u.attrs)==null?void 0:s.to),i=this.getTabBarItemClasses(r,n);if(n)try{return this.isExternalLink(n)?t("a",{key:r,class:i,attrs:{href:n,target:"_blank",rel:"noopener noreferrer",...(l=e.data)==null?void 0:l.attrs}},[this.getChildTitle(e)]):t("router-link",{key:r,class:i,attrs:{to:n,...(d=e.data)==null?void 0:d.attrs}},[this.getChildTitle(e)])}catch{return t("a",{key:r,class:i,attrs:{href:n,...(p=e.data)==null?void 0:p.attrs}},[this.getChildTitle(e)])}return t("div",{key:r,class:i,attrs:(m=e.data)==null?void 0:m.attrs,on:{click:()=>this.onTabSelected(r)}},[this.getChildTitle(e)])},renderContent(t,e,r){var n,i,o,a;return(i=(n=e.data)==null?void 0:n.attrs)!=null&&i.href||(a=(o=e.data)==null?void 0:o.attrs)!=null&&a.to||!this.isActive(r)?null:t("div",{class:"tab-content e-overflow-auto e-max-h-screen e-w-full e-pb-20"},[e])}},render(t){var r;const e=((r=this.$slots.default)==null?void 0:r.filter(n=>n.tag))||[];return t("div",{class:["e-tabs e-w-full e-h-full",{"e-flex-col":!this.vertical,"e-flex":this.vertical}]},[t("div",{class:["e-tabs__header e-text-sm e-font-medium e-text-center e-border-gray-300",{"e-flex e-border-b e-border-b-solid e-w-full":!this.vertical,"e-flex e-flex-col e-border-r e-border-r-solid":this.vertical,"e-text-gray-700":!this.activeClass}]},e.map((n,i)=>this.renderTab(t,n,i))),t("div",{class:"tab-content e-w-full"},e.map((n,i)=>this.renderContent(t,n,i)).filter(Boolean))])}});var Tu=H(Su,null,null,!1,null,null,null,null);const _s=Tu.exports,ku=A.extend({name:"ECard",props:{title:{type:[String,void 0],default:void 0},width:{type:[Number,String,void 0],default:void 0},height:{type:[Number,String,void 0],default:void 0},imageSize:{type:[Number,String,void 0],default:100},imagePadding:{type:Number,default:0},image:{type:[String,void 0],default:void 0},blurBackground:{type:Boolean,default:!1},imageTranslation:{type:[Number,void 0],default:void 0},dark:{type:Boolean,default:!1}},data(){return{bodyPadding:45}},computed:{surfaceClasses(){return{"e-border-solid e-border-[1px]":!0,"e-border-gray-200":!this.dark,"e-border-gray-600":this.dark}},backgroundClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark}},textClasses(){return{"e-text-gray-200":this.dark,"e-text-gray-600":!this.dark}},containerClasses(){return{...this.surfaceClasses,...this.backgroundClasses,...this.textClasses}},imageContainerClasses(){return{...this.surfaceClasses,...this.textClasses,"e-bg-gray-100":!0}},containerStyle(){let t={};return this.width&&(t={...t,width:isNaN(this.width)?this.width:`${this.width}px`}),this.height&&(t={...t,height:isNaN(this.height)?this.height:`${this.height}px`}),t},effectiveImageSize(){return(isNaN(this.imageSize)?parseInt(this.imageSize):this.imageSize)-2*this.imagePadding},imageStyle(){return{height:"auto",width:`${this.effectiveImageSize}px`,margin:`${this.imagePadding}px`}},imageContainerStyle(){const t=isNaN(this.imageSize)?this.imageSize:`${this.imageSize}px`;return{height:t,width:t,top:`${-this.computedImageTranslation}px`,left:`${-this.computedImageTranslation}px`}},computedImageTranslation(){return isNaN(this.imageTranslation)?-20:this.imageTranslation},titleStyle(){return this.image?{paddingLeft:`${this.imageSize-this.computedImageTranslation}px`}:{}},contentStyle(){return this.image?{paddingTop:`${Math.max(0,this.imageSize-this.bodyPadding-this.computedImageTranslation)}px`}:{}}},mounted(){this.blurBackground&&!/\.(gif|png|svg)$/.test(this.image)&&console.error("ECard: Image should be a gif, png or svg to blur the background")}}),Ad="";var $u=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-card e-rounded-lg e-p-3 e-relative",class:e.containerClasses,style:e.containerStyle},[e.image?r("div",{staticClass:"e-card__img__container e-absolute e-overflow-hidden e-rounded-lg e-flex e-justify-center e-items-center e-z-0",class:e.imageContainerClasses,style:e.imageContainerStyle},[e.blurBackground?r("img",{staticClass:"e-card__image--bg e-absolute",style:e.imageStyle,attrs:{src:e.image,alt:"card image"}}):e._e(),r("img",{staticClass:"e-card__image e-absolute",style:e.imageStyle,attrs:{src:e.image,alt:"card image"}})]):e._e(),r("div",{staticClass:"e-card__body e-relative e-z-1"},[e.title?r("div",{staticClass:"e-card__title e-font-bold e-text-lg e-mb-2",style:e.titleStyle},[e._t("title",function(){return[e._v(" "+e._s(e.title)+" ")]})],2):e._e(),r("div",{staticClass:"e-card__content",style:e.contentStyle},[e._t("default")],2)])])},Eu=[],Mu=H(ku,$u,Eu,!1,null,null,null,null);const Lu=Mu.exports,vn={EAvatar:Mt,EBadge:Kt,EIcon:qe,ESpinner:Gr,ERow:Wr,ECol:qr,EVideoPlayer:Hi,ETimeline:Yi,EVideoEmbed:Xi,EHeatmapBar:un,EHoursHeatmap:Vi,EReadMore:Qi,ETruncatedDiv:Ki,ECompareSeparator:Ji,EDragResize:dn,EImagesComparator:es,EToggleSwitch:os,EExpandableMenu:ts,EZoomable:Kr,EGlobalSearch:hs,ESvgIcon:ss,ECalendarHeatmap:as,EImagePlayer:fs,EZoomableImg:pn,EZoomSlider:fn,EActionButton:ft,ETooltip:St,ELayout:ps,EChat:yu,EContextProvider:jc,ECopyToClipboardBtn:mn,EPopover:hn,EVoiceRecorderToText:gn,ERadioGroup:vs,ESelect:ds,ETabs:_s,ECard:Lu,ESchedulePicker:ls},Du={install(t){Object.keys(vn).forEach(e=>{t.component(e,vn[e])}),Object.keys(us).forEach(e=>{t.mixin(e,us[e])}),ji.forEach(({name:e,definition:r})=>{t.directive(e,r)})}};G.AvatarSizes=U1,G.BadgeColors=Y1,G.BadgeSizes=q1,G.BaseColor=se,G.ChatMessageRole=Ye,G.ChatMessageType=Vt,G.ClickOutsideDirective=tn,G.Colors=Li,G.CompareMode=nt,G.Days=Mn,G.DirectivesMap=ji,G.EActionButton=ft,G.EAvatar=Mt,G.EBadge=Kt,G.ECalendarHeatmap=as,G.ECol=qr,G.ECompareSeparator=Ji,G.ECopyToClipboardBtn=mn,G.EDragResize=dn,G.EExpandableMenu=ts,G.EGlobalSearch=hs,G.EHeatmapBar=un,G.EHoursHeatmap=Vi,G.EIcon=qe,G.EImagePlayer=fs,G.EImagesComparator=es,G.ELayout=ps,G.EPopover=hn,G.ERadioGroup=vs,G.EReadMore=Qi,G.ERow=Wr,G.ESchedulePicker=ls,G.ESelect=ds,G.ESpinner=Gr,G.ESvgIcon=ss,G.ETabs=_s,G.ETimeline=Yi,G.EToggleSwitch=os,G.ETooltip=St,G.ETruncatedDiv=Ki,G.EVENTS=Q1,G.EVideoEmbed=Xi,G.EVideoPlayer=Hi,G.EVoiceRecorderToText=gn,G.EZoomSlider=fn,G.EZoomable=Kr,G.EZoomableImg=pn,G.FeedbackType=Qt,G.IconSizes=Di,G.ImageQuality=Ln,G.Position=Oe,G.ResizeObserverDirective=Ke,G.ScheduleType=vt,G.Size=K,G.TextSizes=Mi,G.TimelineAxis=rt,G.TimelineChartType=He,G.TimelineIntervalChangeTrigger=_t,G.ToggleSwitchSizes=Z1,G.TooltipColors=X1,G.TooltipPositions=V1,G.components=vn,G.debounce=p0,G.default=Du,G.eventListeners=Ge,G.exitFullScreen=Yr,G.formField=Rt,G.fullConfig=jr,G.generateUniqueId=_0,G.getGradientColors=Xr,G.getImageData=g0,G.getRandomChars=m0,G.hashCode=Bi,G.hexToRgba=Pi,G.hoursMinutesStrToMinutes=Ai,G.inactivityListener=cs,G.isFullScreen=Ur,G.isRgba=zi,G.isValidDate=v0,G.makeFullScreen=Zr,G.minutesToHoursMinutesStr=Vr,G.rgbToRgba=Oi,G.schedules=Ii,G.selectFormField=wt,G.subtractOneHourFromEndIntervals=y0,G.timeouts=Ue,G.toNumericSchedule=Qr,G.toRgba=ht,G.toggleOpen=Ht,G.twentyFourHours=Fi,Object.defineProperties(G,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
244
244
  //# sourceMappingURL=index.umd.js.map