@evercam/ui 1.0.0-preview-cameraPowerSchedule-018bccfc2 → 1.0.0-preview-evideo-player-debug-mode-8791c884f

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,F){typeof exports=="object"&&typeof module!="undefined"?F(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"],F):(G=typeof globalThis!="undefined"?globalThis:G||self,F(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,F,at,js,ke,Gs,qs,Ws,En,Us,Zs,Ys,Xs){var Cs,bs,xs,ws,Ss,Ts,ks,$s;"use strict";function Vs(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 a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(t,i,a.get?a:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const O=Vs(js);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 Qs=F.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,a,o,c){var s=typeof t=="function"?t.options:t;e&&(s.render=e,s.staticRenderFns=r,s._compiled=!0),n&&(s.functional=!0),a&&(s._scopeId="data-v-"+a);var l;if(o?(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(o)},s._ssrRegister=l):i&&(l=c?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 f=s.beforeCreate;s.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:s}}var Ks=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()])},Js=[],ea=H(Qs,Ks,Js,!1,null,null,null,null);const Kt=ea.exports,ta=F.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 ra=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)},na=[],ia=H(ta,ra,na,!1,null,null,null,null);const Mt=ia.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(a=>r!==!1&&r[a]!==!1).concat(Object.keys(r).filter(a=>r[a]!==!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 o},default:function(){return c}});const r=n(In);function n(s){return s&&s.__esModule?s:{default:s}}let i=new Set;function a(s,l,d){typeof process!="undefined"&&process.env.JEST_WORKER_ID||d&&i.has(d)||(d&&i.add(d),console.warn(""),l.forEach(f=>console.warn(s,"-",f)))}function o(s){return r.default.dim(s)}const c={info(s,l){a(r.default.bold(r.default.cyan("info")),...Array.isArray(s)?[s]:[l,s])},warn(s,l){a(r.default.bold(r.default.yellow("warn")),...Array.isArray(s)?[s]:[l,s])},risk(s,l){a(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(a){return a&&a.__esModule?a:{default:a}}function n({version:a,from:o,to:c}){e.default.warn(`${o}-color-renamed`,[`As of Tailwind CSS ${a}, \`${o}\` has been renamed to \`${c}\`.`,"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 o of n){for(let c in o){var i;!(r==null||(i=r.hasOwnProperty)===null||i===void 0)&&i.call(r,c)||(r[c]=o[c])}for(let c of Object.getOwnPropertySymbols(o)){var a;!(r==null||(a=r.hasOwnProperty)===null||a===void 0)&&a.call(r,c)||(r[c]=o[c])}}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(f,m){for(var b in m)Object.defineProperty(f,b,{enumerable:!0,get:m[b]})}e(t,{flagEnabled:function(){return c},issueFlagNotices:function(){return l},default:function(){return d}});const r=i(In),n=i(Lt);function i(f){return f&&f.__esModule?f:{default:f}}let a={optimizeUniversalDefaults:!1,generalizedModifiers:!0,disableColorOpacityUtilitiesByDefault:!1,relativeContentPathsByDefault:!1},o={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity","disableColorOpacityUtilitiesByDefault","relativeContentPathsByDefault"],experimental:["optimizeUniversalDefaults","generalizedModifiers"]};function c(f,m){if(o.future.includes(m)){var b,x,h;return f.future==="all"||((h=(x=f==null||(b=f.future)===null||b===void 0?void 0:b[m])!==null&&x!==void 0?x:a[m])!==null&&h!==void 0?h:!1)}if(o.experimental.includes(m)){var y,$,D;return f.experimental==="all"||((D=($=f==null||(y=f.experimental)===null||y===void 0?void 0:y[m])!==null&&$!==void 0?$:a[m])!==null&&D!==void 0?D:!1)}return!1}function s(f){if(f.experimental==="all")return o.experimental;var m;return Object.keys((m=f==null?void 0:f.experimental)!==null&&m!==void 0?m:{}).filter(b=>o.experimental.includes(b)&&f.experimental[b])}function l(f){if(process.env.JEST_WORKER_ID===void 0&&s(f).length>0){let m=s(f).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=o})(Dt),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeConfig",{enumerable:!0,get:function(){return a}});const e=Dt,r=i(Lt);function n(o){if(typeof WeakMap!="function")return null;var c=new WeakMap,s=new WeakMap;return(n=function(l){return l?s:c})(o)}function i(o,c){if(!c&&o&&o.__esModule)return o;if(o===null||typeof o!="object"&&typeof o!="function")return{default:o};var s=n(c);if(s&&s.has(o))return s.get(o);var l={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in o)if(f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)){var m=d?Object.getOwnPropertyDescriptor(o,f):null;m&&(m.get||m.set)?Object.defineProperty(l,f,m):l[f]=o[f]}return l.default=o,s&&s.set(o,l),l}function a(o){if((()=>{if(o.purge||!o.content||!Array.isArray(o.content)&&!(typeof o.content=="object"&&o.content!==null))return!1;if(Array.isArray(o.content))return o.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 o.content=="object"&&o.content!==null){if(Object.keys(o.content).some(l=>!["files","relative","extract","transform"].includes(l)))return!1;if(Array.isArray(o.content.files)){if(!o.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 o.content.extract=="object"){for(let l of Object.values(o.content.extract))if(typeof l!="function")return!1}else if(!(o.content.extract===void 0||typeof o.content.extract=="function"))return!1;if(typeof o.content.transform=="object"){for(let l of Object.values(o.content.transform))if(typeof l!="function")return!1}else if(!(o.content.transform===void 0||typeof o.content.transform=="function"))return!1;if(typeof o.content.relative!="boolean"&&typeof o.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"]),o.safelist=(()=>{var l;let{content:d,purge:f,safelist:m}=o;return Array.isArray(m)?m:Array.isArray(d==null?void 0:d.safelist)?d.safelist:Array.isArray(f==null?void 0:f.safelist)?f.safelist:Array.isArray(f==null||(l=f.options)===null||l===void 0?void 0:l.safelist)?f.options.safelist:[]})(),o.blocklist=(()=>{let{blocklist:l}=o;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 o.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"]),o.prefix="";else{var s;o.prefix=(s=o.prefix)!==null&&s!==void 0?s:""}o.content={relative:(()=>{let{content:l}=o;return l!=null&&l.relative?l.relative:(0,e.flagEnabled)(o,"relativeContentPathsByDefault")})(),files:(()=>{let{content:l,purge:d}=o;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=o.purge)===null||m===void 0)&&m.extract?o.purge.extract:!((b=o.content)===null||b===void 0)&&b.extract?o.content.extract:!((x=o.purge)===null||x===void 0||(h=x.extract)===null||h===void 0)&&h.DEFAULT?o.purge.extract.DEFAULT:!((y=o.content)===null||y===void 0||($=y.extract)===null||$===void 0)&&$.DEFAULT?o.content.extract.DEFAULT:!((D=o.purge)===null||D===void 0||(S=D.options)===null||S===void 0)&&S.extractors?o.purge.options.extractors:!((R=o.content)===null||R===void 0||(E=R.options)===null||E===void 0)&&E.extractors?o.content.options.extractors:{}})(),d={},f=(()=>{var m,b,x,h;if(!((m=o.purge)===null||m===void 0||(b=m.options)===null||b===void 0)&&b.defaultExtractor)return o.purge.options.defaultExtractor;if(!((x=o.content)===null||x===void 0||(h=x.options)===null||h===void 0)&&h.defaultExtractor)return o.content.options.defaultExtractor})();if(f!==void 0&&(d.DEFAULT=f),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 f,m,b,x,h,y;return!((f=o.purge)===null||f===void 0)&&f.transform?o.purge.transform:!((m=o.content)===null||m===void 0)&&m.transform?o.content.transform:!((b=o.purge)===null||b===void 0||(x=b.transform)===null||x===void 0)&&x.DEFAULT?o.purge.transform.DEFAULT:!((h=o.content)===null||h===void 0||(y=h.transform)===null||y===void 0)&&y.DEFAULT?o.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 o.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 o}}(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={},qn={};(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]}})(qn),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(qn);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,a=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,o=/(?:\d+|\d*\.\d+)%?/,c=/(?:\s*,\s*|\s+)/,s=/\s*[,/]\s*/,l=/var\(--(?:[^ )]*?)(?:,(?:[^ )]*?|var\(--[^ )]*?\)))?\)/,d=new RegExp(`^(rgba?)\\(\\s*(${o.source}|${l.source})(?:${c.source}(${o.source}|${l.source}))?(?:${c.source}(${o.source}|${l.source}))?(?:${s.source}(${o.source}|${l.source}))?\\s*\\)$`),f=new RegExp(`^(hsla?)\\(\\s*((?:${o.source})(?:deg|rad|grad|turn)?|${l.source})(?:${c.source}(${o.source}|${l.source}))?(?:${c.source}(${o.source}|${l.source}))?(?:${s.source}(${o.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(a,(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(f);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(a,o){for(var c in o)Object.defineProperty(a,c,{enumerable:!0,get:o[c]})}e(t,{withAlphaValue:function(){return n},default:function(){return i}});const r=nr;function n(a,o,c){if(typeof a=="function")return a({opacityValue:o});let s=(0,r.parseColor)(a,{loose:!0});return s===null?c:(0,r.formatColor)({...s,alpha:o})}function i({color:a,property:o,variable:c}){let s=[].concat(o);if(typeof a=="function")return{[c]:"1",...Object.fromEntries(s.map(d=>[d,a({opacityVariable:c,opacityValue:`var(${c})`})]))};const l=(0,r.parseColor)(a);return l===null?Object.fromEntries(s.map(d=>[d,a])):l.alpha!==void 0?Object.fromEntries(s.map(d=>[d,a])):{[c]:"1",...Object.fromEntries(s.map(d=>[d,(0,r.formatColor)({...l,alpha:`var(${c})`})]))}}}(rr);var ir={},Wn={},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=[],a=[],o=0,c=!1;for(let s=0;s<r.length;s++){let l=r[s];i.length===0&&l===n[0]&&!c&&(n.length===1||r.slice(s,s+n.length)===n)&&(a.push(r.slice(o,s)),o=s+n.length),c=c?!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 a.push(r.slice(o)),a}})(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 o},formatBoxShadowValue:function(){return c}});const r=Pt;let n=new Set(["inset","inherit","initial","revert","unset"]),i=/\ +(?![^(]*\))/g,a=/^-?(\d+|\.\d+)(.*?)$/g;function o(s){return(0,r.splitAtTopLevelOnly)(s,",").map(d=>{let f=d.trim(),m={raw:f},b=f.split(i),x=new Set;for(let h of b)a.lastIndex=0,!x.has("KEYWORD")&&n.has(h)?(m.keyword=h,x.add("KEYWORD")):a.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 c(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(", ")}}(Wn),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 f},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=Wn,i=Pt;let a=["min","max","clamp","calc"];function o(P){return a.some(N=>new RegExp(`^${N}\\(.*\\)`).test(P))}const c=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&&c.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,A)=>A+" ".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 A(){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)},q=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+=q([")",","]);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+=q([")"]):w("[")?Z+=q(["]"]):["+","-","*","/"].includes(V)&&!["(","+","-","*","/",","].includes(A())?Z+=` ${V} `:Z+=V}return Z.replace(/\s+/g," ")})}function f(P){return P.startsWith("url(")}function m(P){return!isNaN(Number(P))||o(P)}function b(P){return P.endsWith("%")&&m(P.slice(0,-1))||o(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)||o(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:f(_)||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 W=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 W.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 a=["cover","contain"];return(0,r.splitAtTopLevelOnly)(i,",").every(o=>{let c=(0,r.splitAtTopLevelOnly)(o,"_").filter(Boolean);return c.length===1&&a.includes(c[0])?!0:c.length!==1&&c.length!==2?!1:c.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 W in z)Object.defineProperty(C,W,{enumerable:!0,get:z[W]})}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,a=s(Jt),o=Un,c=Dt;function s(C){return C&&C.__esModule?C:{default:C}}function l(C,z){C.walkClasses(W=>{W.value=z(W.value),W.raws&&W.raws.value&&(W.raws.value=(0,r.default)(W.raws.value))})}function d(C,z){if(!b(C))return;let W=C.slice(1,-1);if(z(W))return(0,i.normalize)(W)}function f(C,z={},W){let L=z[C];if(L!==void 0)return(0,a.default)(L);if(b(C)){let Y=d(C,W);return Y===void 0?void 0:(0,a.default)(Y)}}function m(C,z={},{validate:W=()=>!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("-")?f(C.slice(1),z.values,W):d(C,W)}function b(C){return C.startsWith("[")&&C.endsWith("]")}function x(C){let z=C.lastIndexOf("/"),W=C.lastIndexOf("[",z),L=C.indexOf("]",z);return C[z-1]==="]"||C[z+1]==="["||W!==-1&&L!==-1&&W<z&&z<L&&(z=C.lastIndexOf("/",W)),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:W=1})=>z.replace(/<alpha-value>/g,W)}return C}function y(C){return(0,i.normalize)(C.slice(1,-1))}function $(C,z={},{tailwindConfig:W={}}={}){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=W.theme)===null||P===void 0||(N=P.opacity)===null||N===void 0?void 0:N[I])===void 0?void 0:(0,n.withAlphaValue)(_,W.theme.opacity[I]))}return m(C,z,{validate:i.color})}function D(C,z={}){var W;return(W=z.values)===null||W===void 0?void 0:W[C]}function S(C){return(z,W)=>m(z,W,{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(o.backgroundSize)},E=Object.keys(R);function j(C,z){let W=C.indexOf(z);return W===-1?[void 0,C]:[C.slice(0,W),C.slice(W+1)]}function Q(C,z,W,L){if(W.values&&z in W.values)for(let{type:X}of C!=null?C:[]){let I=R[X](z,W,{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}]`,W),I,null]}let Y=U(C,z,W,L);for(let X of Y)return X;return[]}function*U(C,z,W,L){let Y=(0,c.flagEnabled)(L,"generalizedModifiers"),[X,I]=x(z);if(Y&&W.modifiers!=null&&(W.modifiers==="any"||typeof W.modifiers=="object"&&(I&&b(I)||I in W.modifiers))||(X=z,I=void 0),I!==void 0&&X===""&&(X="DEFAULT"),I!==void 0&&typeof W.modifiers=="object"){var P,N;let ne=(N=(P=W.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,W,{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 W}});const e=b(Jt),r=b(On),n=b(zn),i=b(er),a=Fn,o=An,c=Rn,s=b(Hn),l=Nn,d=jn,f=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,a.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,o.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,o.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,f.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 W(L){let Y=[...U(L),{prefix:"",important:!1,separator:":"}];var X,I;return(0,c.normalizeConfig)((0,a.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={},sa={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(sa),r=Dt;function n(a){return a&&a.__esModule?a:{default:a}}function i(a){var o;const c=((o=a==null?void 0:a.presets)!==null&&o!==void 0?o:[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)(a,d)).map(d=>s[d]);return[a,...l,...c]}})(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(a){return a&&a.__esModule?a:{default:a}}function i(...a){let[,...o]=(0,r.default)(a[0]);return(0,e.default)([...a,...o])}}(Dn);let sr=Dn;var aa=(sr.__esModule?sr:{default:sr}).default;const oa=yt(aa);let ar=er;var or=(ar.__esModule?ar:{default:ar}).default;const Xn=yt(or),la=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 a=function(o){return{__options:o,handler:n(o),config:i(o)}};return a.__isOptionsFunction=!0,a.__pluginFunction=n,a.__configFunction=i,a};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,a=16,o=9007199254740991,c="[object Arguments]",s="[object Array]",l="[object AsyncFunction]",d="[object Boolean]",f="[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]",W="[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\]$/,A=/^(?:0|[1-9]\d*)$/,B={};B[W]=B[L]=B[Y]=B[X]=B[I]=B[T]=B[P]=B[N]=B[ne]=!0,B[c]=B[s]=B[C]=B[d]=B[z]=B[f]=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,q=typeof self=="object"&&self&&self.Object===Object&&self,V=w||q||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 p=re&&re.require&&re.require("util").types;return p||le&&le.binding&&le.binding("util")}catch{}}(),he=ie&&ie.isTypedArray;function Se(p,v,k){switch(k.length){case 0:return p.call(v);case 1:return p.call(v,k[0]);case 2:return p.call(v,k[0],k[1]);case 3:return p.call(v,k[0],k[1],k[2])}return p.apply(v,k)}function oe(p,v){for(var k=-1,te=Array(p);++k<p;)te[k]=v(k);return te}function ye(p){return function(v){return p(v)}}function Ae(p,v){return p==null?void 0:p[v]}function Be(p,v){return function(k){return p(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 p=/[^.]+$/.exec(Ee&&Ee.keys&&Ee.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""}(),Ke=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,Es=Be(Object.getPrototypeOf,Object),Ms=Object.create,F8=Me.propertyIsEnumerable,A8=$e.splice,ct=pt?pt.toStringTag:void 0,qt=function(){try{var p=Cn(Object,"defineProperty");return p({},"",{}),p}catch{}}(),R8=Ze?Ze.isBuffer:void 0,Ls=Math.max,H8=Date.now,Ds=Cn(V,"Map"),kt=Cn(Object,"create"),N8=function(){function p(){}return function(v){if(!dt(v))return{};if(Ms)return Ms(v);p.prototype=v;var k=new p;return p.prototype=void 0,k}}();function ut(p){var v=-1,k=p==null?0:p.length;for(this.clear();++v<k;){var te=p[v];this.set(te[0],te[1])}}function j8(){this.__data__=kt?kt(null):{},this.size=0}function G8(p){var v=this.has(p)&&delete this.__data__[p];return this.size-=v?1:0,v}function q8(p){var v=this.__data__;if(kt){var k=v[p];return k===n?void 0:k}return De.call(v,p)?v[p]:void 0}function W8(p){var v=this.__data__;return kt?v[p]!==void 0:De.call(v,p)}function U8(p,v){var k=this.__data__;return this.size+=this.has(p)?0:1,k[p]=kt&&v===void 0?n:v,this}ut.prototype.clear=j8,ut.prototype.delete=G8,ut.prototype.get=q8,ut.prototype.has=W8,ut.prototype.set=U8;function tt(p){var v=-1,k=p==null?0:p.length;for(this.clear();++v<k;){var te=p[v];this.set(te[0],te[1])}}function Z8(){this.__data__=[],this.size=0}function Y8(p){var v=this.__data__,k=Wt(v,p);if(k<0)return!1;var te=v.length-1;return k==te?v.pop():A8.call(v,k,1),--this.size,!0}function X8(p){var v=this.__data__,k=Wt(v,p);return k<0?void 0:v[k][1]}function V8(p){return Wt(this.__data__,p)>-1}function Q8(p,v){var k=this.__data__,te=Wt(k,p);return te<0?(++this.size,k.push([p,v])):k[te][1]=v,this}tt.prototype.clear=Z8,tt.prototype.delete=Y8,tt.prototype.get=X8,tt.prototype.has=V8,tt.prototype.set=Q8;function mt(p){var v=-1,k=p==null?0:p.length;for(this.clear();++v<k;){var te=p[v];this.set(te[0],te[1])}}function K8(){this.size=0,this.__data__={hash:new ut,map:new(Ds||tt),string:new ut}}function J8(p){var v=Zt(this,p).delete(p);return this.size-=v?1:0,v}function e7(p){return Zt(this,p).get(p)}function t7(p){return Zt(this,p).has(p)}function r7(p,v){var k=Zt(this,p),te=k.size;return k.set(p,v),this.size+=k.size==te?0:1,this}mt.prototype.clear=K8,mt.prototype.delete=J8,mt.prototype.get=e7,mt.prototype.has=t7,mt.prototype.set=r7;function gt(p){var v=this.__data__=new tt(p);this.size=v.size}function n7(){this.__data__=new tt,this.size=0}function i7(p){var v=this.__data__,k=v.delete(p);return this.size=v.size,k}function s7(p){return this.__data__.get(p)}function a7(p){return this.__data__.has(p)}function o7(p,v){var k=this.__data__;if(k instanceof tt){var te=k.__data__;if(!Ds||te.length<r-1)return te.push([p,v]),this.size=++k.size,this;k=this.__data__=new mt(te)}return k.set(p,v),this.size=k.size,this}gt.prototype.clear=n7,gt.prototype.delete=i7,gt.prototype.get=s7,gt.prototype.has=a7,gt.prototype.set=o7;function l7(p,v){var k=wn(p),te=!k&&xn(p),pe=!k&&!te&&Is(p),ve=!k&&!te&&!pe&&As(p),xe=k||te||pe||ve,fe=xe?oe(p.length,String):[],we=fe.length;for(var qe in p)(v||De.call(p,qe))&&!(xe&&(qe=="length"||pe&&(qe=="offset"||qe=="parent")||ve&&(qe=="buffer"||qe=="byteLength"||qe=="byteOffset")||zs(qe,we)))&&fe.push(qe);return fe}function _n(p,v,k){(k!==void 0&&!Yt(p[v],k)||k===void 0&&!(v in p))&&yn(p,v,k)}function c7(p,v,k){var te=p[v];(!(De.call(p,v)&&Yt(te,k))||k===void 0&&!(v in p))&&yn(p,v,k)}function Wt(p,v){for(var k=p.length;k--;)if(Yt(p[k][0],v))return k;return-1}function yn(p,v,k){v=="__proto__"&&qt?qt(p,v,{configurable:!0,enumerable:!0,value:k,writable:!0}):p[v]=k}var u7=w7();function Ut(p){return p==null?p===void 0?Q:$:ct&&ct in Object(p)?S7(p):L7(p)}function Ps(p){return $t(p)&&Ut(p)==c}function d7(p){if(!dt(p)||E7(p))return!1;var v=Tn(p)?Tt:Z;return v.test(z7(p))}function h7(p){return $t(p)&&Fs(p.length)&&!!B[Ut(p)]}function f7(p){if(!dt(p))return M7(p);var v=Bs(p),k=[];for(var te in p)te=="constructor"&&(v||!De.call(p,te))||k.push(te);return k}function Os(p,v,k,te,pe){p!==v&&u7(v,function(ve,xe){if(pe||(pe=new gt),dt(ve))p7(p,v,xe,k,Os,te,pe);else{var fe=te?te(bn(p,xe),ve,xe+"",p,v,pe):void 0;fe===void 0&&(fe=ve),_n(p,xe,fe)}},Rs)}function p7(p,v,k,te,pe,ve,xe){var fe=bn(p,k),we=bn(v,k),qe=xe.get(we);if(qe){_n(p,k,qe);return}var Re=ve?ve(fe,we,k+"",p,v,xe):void 0,Et=Re===void 0;if(Et){var kn=wn(we),$n=!kn&&Is(we),Ns=!kn&&!$n&&As(we);Re=we,kn||$n||Ns?wn(fe)?Re=fe:B7(fe)?Re=C7(fe):$n?(Et=!1,Re=v7(we,!0)):Ns?(Et=!1,Re=y7(we,!0)):Re=[]:I7(we)||xn(we)?(Re=fe,xn(fe)?Re=F7(fe):(!dt(fe)||Tn(fe))&&(Re=T7(we))):Et=!1}Et&&(xe.set(we,Re),pe(Re,we,te,ve,xe),xe.delete(we)),_n(p,k,Re)}function m7(p,v){return P7(D7(p,v,Hs),p+"")}var g7=qt?function(p,v){return qt(p,"toString",{configurable:!0,enumerable:!1,value:R7(v),writable:!0})}:Hs;function v7(p,v){if(v)return p.slice();var k=p.length,te=Gt?Gt(k):new p.constructor(k);return p.copy(te),te}function _7(p){var v=new p.constructor(p.byteLength);return new jt(v).set(new jt(p)),v}function y7(p,v){var k=v?_7(p.buffer):p.buffer;return new p.constructor(k,p.byteOffset,p.length)}function C7(p,v){var k=-1,te=p.length;for(v||(v=Array(te));++k<te;)v[k]=p[k];return v}function b7(p,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],p[fe],fe,k,p):void 0;we===void 0&&(we=p[fe]),pe?yn(k,fe,we):c7(k,fe,we)}return k}function x7(p){return m7(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=p.length>3&&typeof ve=="function"?(pe--,ve):void 0,xe&&k7(k[0],k[1],xe)&&(ve=pe<3?void 0:ve,pe=1),v=Object(v);++te<pe;){var fe=k[te];fe&&p(v,fe,te,ve)}return v})}function w7(p){return function(v,k,te){for(var pe=-1,ve=Object(v),xe=te(v),fe=xe.length;fe--;){var we=xe[p?fe:++pe];if(k(ve[we],we,ve)===!1)break}return v}}function Zt(p,v){var k=p.__data__;return $7(v)?k[typeof v=="string"?"string":"hash"]:k.map}function Cn(p,v){var k=Ae(p,v);return d7(k)?k:void 0}function S7(p){var v=De.call(p,ct),k=p[ct];try{p[ct]=void 0;var te=!0}catch{}var pe=Ke.call(p);return te&&(v?p[ct]=k:delete p[ct]),pe}function T7(p){return typeof p.constructor=="function"&&!Bs(p)?N8(Es(p)):{}}function zs(p,v){var k=typeof p;return v=v==null?o:v,!!v&&(k=="number"||k!="symbol"&&A.test(p))&&p>-1&&p%1==0&&p<v}function k7(p,v,k){if(!dt(k))return!1;var te=typeof v;return(te=="number"?Sn(k)&&zs(v,k.length):te=="string"&&v in k)?Yt(k[v],p):!1}function $7(p){var v=typeof p;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?p!=="__proto__":p===null}function E7(p){return!!et&&et in p}function Bs(p){var v=p&&p.constructor,k=typeof v=="function"&&v.prototype||Me;return p===k}function M7(p){var v=[];if(p!=null)for(var k in Object(p))v.push(k);return v}function L7(p){return Ke.call(p)}function D7(p,v,k){return v=Ls(v===void 0?p.length-1:v,0),function(){for(var te=arguments,pe=-1,ve=Ls(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(p,this,fe)}}function bn(p,v){if(!(v==="constructor"&&typeof p[v]=="function")&&v!="__proto__")return p[v]}var P7=O7(g7);function O7(p){var v=0,k=0;return function(){var te=H8(),pe=a-(te-k);if(k=te,pe>0){if(++v>=i)return arguments[0]}else v=0;return p.apply(void 0,arguments)}}function z7(p){if(p!=null){try{return Le.call(p)}catch{}try{return p+""}catch{}}return""}function Yt(p,v){return p===v||p!==p&&v!==v}var xn=Ps(function(){return arguments}())?Ps:function(p){return $t(p)&&De.call(p,"callee")&&!F8.call(p,"callee")},wn=Array.isArray;function Sn(p){return p!=null&&Fs(p.length)&&!Tn(p)}function B7(p){return $t(p)&&Sn(p)}var Is=R8||H7;function Tn(p){if(!dt(p))return!1;var v=Ut(p);return v==b||v==x||v==l||v==S}function Fs(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=o}function dt(p){var v=typeof p;return p!=null&&(v=="object"||v=="function")}function $t(p){return p!=null&&typeof p=="object"}function I7(p){if(!$t(p)||Ut(p)!=D)return!1;var v=Es(p);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 As=he?ye(he):h7;function F7(p){return b7(p,Rs(p))}function Rs(p){return Sn(p)?l7(p,!0):f7(p)}var A7=x7(function(p,v,k){Os(p,v,k)});function R7(p){return function(){return p}}function Hs(p){return p}function H7(){return!1}t.exports=A7}(Ot,Ot.exports);var ca=Ot.exports;function ua(){if(!arguments.length)return[];var t=arguments[0];return da(t)?t:[t]}var da=Array.isArray,ha=ua;const g=or,ae=t=>t.toFixed(7).replace(/(\.[0-9]+?)0+$/,"$1").replace(/\.0$/,""),ze=t=>`${ae(t/16)}rem`,u=(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:u(16,14),marginBottom:u(16,14)},'[class~="lead"]':{fontSize:u(18,14),lineHeight:ae(28/18),marginTop:u(16,18),marginBottom:u(16,18)},blockquote:{marginTop:u(24,18),marginBottom:u(24,18),paddingInlineStart:u(20,18)},h1:{fontSize:u(30,14),marginTop:"0",marginBottom:u(24,30),lineHeight:ae(36/30)},h2:{fontSize:u(20,14),marginTop:u(32,20),marginBottom:u(16,20),lineHeight:ae(28/20)},h3:{fontSize:u(18,14),marginTop:u(28,18),marginBottom:u(8,18),lineHeight:ae(28/18)},h4:{marginTop:u(20,14),marginBottom:u(8,14),lineHeight:ae(20/14)},img:{marginTop:u(24,14),marginBottom:u(24,14)},picture:{marginTop:u(24,14),marginBottom:u(24,14)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:u(24,14),marginBottom:u(24,14)},kbd:{fontSize:u(12,14),borderRadius:ze(5),paddingTop:u(2,14),paddingInlineEnd:u(5,14),paddingBottom:u(2,14),paddingInlineStart:u(5,14)},code:{fontSize:u(12,14)},"h2 code":{fontSize:u(18,20)},"h3 code":{fontSize:u(16,18)},pre:{fontSize:u(12,14),lineHeight:ae(20/12),marginTop:u(20,12),marginBottom:u(20,12),borderRadius:ze(4),paddingTop:u(8,12),paddingInlineEnd:u(12,12),paddingBottom:u(8,12),paddingInlineStart:u(12,12)},ol:{marginTop:u(16,14),marginBottom:u(16,14),paddingInlineStart:u(22,14)},ul:{marginTop:u(16,14),marginBottom:u(16,14),paddingInlineStart:u(22,14)},li:{marginTop:u(4,14),marginBottom:u(4,14)},"ol > li":{paddingInlineStart:u(6,14)},"ul > li":{paddingInlineStart:u(6,14)},"> ul > li p":{marginTop:u(8,14),marginBottom:u(8,14)},"> ul > li > p:first-child":{marginTop:u(16,14)},"> ul > li > p:last-child":{marginBottom:u(16,14)},"> ol > li > p:first-child":{marginTop:u(16,14)},"> ol > li > p:last-child":{marginBottom:u(16,14)},"ul ul, ul ol, ol ul, ol ol":{marginTop:u(8,14),marginBottom:u(8,14)},dl:{marginTop:u(16,14),marginBottom:u(16,14)},dt:{marginTop:u(16,14)},dd:{marginTop:u(4,14),paddingInlineStart:u(22,14)},hr:{marginTop:u(40,14),marginBottom:u(40,14)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:u(12,14),lineHeight:ae(18/12)},"thead th":{paddingInlineEnd:u(12,12),paddingBottom:u(8,12),paddingInlineStart:u(12,12)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:u(8,12),paddingInlineEnd:u(12,12),paddingBottom:u(8,12),paddingInlineStart:u(12,12)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:u(24,14),marginBottom:u(24,14)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:u(12,14),lineHeight:ae(16/12),marginTop:u(8,12)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},base:{css:[{fontSize:ze(16),lineHeight:ae(28/16),p:{marginTop:u(20,16),marginBottom:u(20,16)},'[class~="lead"]':{fontSize:u(20,16),lineHeight:ae(32/20),marginTop:u(24,20),marginBottom:u(24,20)},blockquote:{marginTop:u(32,20),marginBottom:u(32,20),paddingInlineStart:u(20,20)},h1:{fontSize:u(36,16),marginTop:"0",marginBottom:u(32,36),lineHeight:ae(40/36)},h2:{fontSize:u(24,16),marginTop:u(48,24),marginBottom:u(24,24),lineHeight:ae(32/24)},h3:{fontSize:u(20,16),marginTop:u(32,20),marginBottom:u(12,20),lineHeight:ae(32/20)},h4:{marginTop:u(24,16),marginBottom:u(8,16),lineHeight:ae(24/16)},img:{marginTop:u(32,16),marginBottom:u(32,16)},picture:{marginTop:u(32,16),marginBottom:u(32,16)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:u(32,16),marginBottom:u(32,16)},kbd:{fontSize:u(14,16),borderRadius:ze(5),paddingTop:u(3,16),paddingInlineEnd:u(6,16),paddingBottom:u(3,16),paddingInlineStart:u(6,16)},code:{fontSize:u(14,16)},"h2 code":{fontSize:u(21,24)},"h3 code":{fontSize:u(18,20)},pre:{fontSize:u(14,16),lineHeight:ae(24/14),marginTop:u(24,14),marginBottom:u(24,14),borderRadius:ze(6),paddingTop:u(12,14),paddingInlineEnd:u(16,14),paddingBottom:u(12,14),paddingInlineStart:u(16,14)},ol:{marginTop:u(20,16),marginBottom:u(20,16),paddingInlineStart:u(26,16)},ul:{marginTop:u(20,16),marginBottom:u(20,16),paddingInlineStart:u(26,16)},li:{marginTop:u(8,16),marginBottom:u(8,16)},"ol > li":{paddingInlineStart:u(6,16)},"ul > li":{paddingInlineStart:u(6,16)},"> ul > li p":{marginTop:u(12,16),marginBottom:u(12,16)},"> ul > li > p:first-child":{marginTop:u(20,16)},"> ul > li > p:last-child":{marginBottom:u(20,16)},"> ol > li > p:first-child":{marginTop:u(20,16)},"> ol > li > p:last-child":{marginBottom:u(20,16)},"ul ul, ul ol, ol ul, ol ol":{marginTop:u(12,16),marginBottom:u(12,16)},dl:{marginTop:u(20,16),marginBottom:u(20,16)},dt:{marginTop:u(20,16)},dd:{marginTop:u(8,16),paddingInlineStart:u(26,16)},hr:{marginTop:u(48,16),marginBottom:u(48,16)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:u(14,16),lineHeight:ae(24/14)},"thead th":{paddingInlineEnd:u(8,14),paddingBottom:u(8,14),paddingInlineStart:u(8,14)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:u(8,14),paddingInlineEnd:u(8,14),paddingBottom:u(8,14),paddingInlineStart:u(8,14)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:u(32,16),marginBottom:u(32,16)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:u(14,16),lineHeight:ae(20/14),marginTop:u(12,14)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},lg:{css:[{fontSize:ze(18),lineHeight:ae(32/18),p:{marginTop:u(24,18),marginBottom:u(24,18)},'[class~="lead"]':{fontSize:u(22,18),lineHeight:ae(32/22),marginTop:u(24,22),marginBottom:u(24,22)},blockquote:{marginTop:u(40,24),marginBottom:u(40,24),paddingInlineStart:u(24,24)},h1:{fontSize:u(48,18),marginTop:"0",marginBottom:u(40,48),lineHeight:ae(48/48)},h2:{fontSize:u(30,18),marginTop:u(56,30),marginBottom:u(32,30),lineHeight:ae(40/30)},h3:{fontSize:u(24,18),marginTop:u(40,24),marginBottom:u(16,24),lineHeight:ae(36/24)},h4:{marginTop:u(32,18),marginBottom:u(8,18),lineHeight:ae(28/18)},img:{marginTop:u(32,18),marginBottom:u(32,18)},picture:{marginTop:u(32,18),marginBottom:u(32,18)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:u(32,18),marginBottom:u(32,18)},kbd:{fontSize:u(16,18),borderRadius:ze(5),paddingTop:u(4,18),paddingInlineEnd:u(8,18),paddingBottom:u(4,18),paddingInlineStart:u(8,18)},code:{fontSize:u(16,18)},"h2 code":{fontSize:u(26,30)},"h3 code":{fontSize:u(21,24)},pre:{fontSize:u(16,18),lineHeight:ae(28/16),marginTop:u(32,16),marginBottom:u(32,16),borderRadius:ze(6),paddingTop:u(16,16),paddingInlineEnd:u(24,16),paddingBottom:u(16,16),paddingInlineStart:u(24,16)},ol:{marginTop:u(24,18),marginBottom:u(24,18),paddingInlineStart:u(28,18)},ul:{marginTop:u(24,18),marginBottom:u(24,18),paddingInlineStart:u(28,18)},li:{marginTop:u(12,18),marginBottom:u(12,18)},"ol > li":{paddingInlineStart:u(8,18)},"ul > li":{paddingInlineStart:u(8,18)},"> ul > li p":{marginTop:u(16,18),marginBottom:u(16,18)},"> ul > li > p:first-child":{marginTop:u(24,18)},"> ul > li > p:last-child":{marginBottom:u(24,18)},"> ol > li > p:first-child":{marginTop:u(24,18)},"> ol > li > p:last-child":{marginBottom:u(24,18)},"ul ul, ul ol, ol ul, ol ol":{marginTop:u(16,18),marginBottom:u(16,18)},dl:{marginTop:u(24,18),marginBottom:u(24,18)},dt:{marginTop:u(24,18)},dd:{marginTop:u(12,18),paddingInlineStart:u(28,18)},hr:{marginTop:u(56,18),marginBottom:u(56,18)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:u(16,18),lineHeight:ae(24/16)},"thead th":{paddingInlineEnd:u(12,16),paddingBottom:u(12,16),paddingInlineStart:u(12,16)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:u(12,16),paddingInlineEnd:u(12,16),paddingBottom:u(12,16),paddingInlineStart:u(12,16)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:u(32,18),marginBottom:u(32,18)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:u(16,18),lineHeight:ae(24/16),marginTop:u(16,16)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},xl:{css:[{fontSize:ze(20),lineHeight:ae(36/20),p:{marginTop:u(24,20),marginBottom:u(24,20)},'[class~="lead"]':{fontSize:u(24,20),lineHeight:ae(36/24),marginTop:u(24,24),marginBottom:u(24,24)},blockquote:{marginTop:u(48,30),marginBottom:u(48,30),paddingInlineStart:u(32,30)},h1:{fontSize:u(56,20),marginTop:"0",marginBottom:u(48,56),lineHeight:ae(56/56)},h2:{fontSize:u(36,20),marginTop:u(56,36),marginBottom:u(32,36),lineHeight:ae(40/36)},h3:{fontSize:u(30,20),marginTop:u(48,30),marginBottom:u(20,30),lineHeight:ae(40/30)},h4:{marginTop:u(36,20),marginBottom:u(12,20),lineHeight:ae(32/20)},img:{marginTop:u(40,20),marginBottom:u(40,20)},picture:{marginTop:u(40,20),marginBottom:u(40,20)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:u(40,20),marginBottom:u(40,20)},kbd:{fontSize:u(18,20),borderRadius:ze(5),paddingTop:u(5,20),paddingInlineEnd:u(8,20),paddingBottom:u(5,20),paddingInlineStart:u(8,20)},code:{fontSize:u(18,20)},"h2 code":{fontSize:u(31,36)},"h3 code":{fontSize:u(27,30)},pre:{fontSize:u(18,20),lineHeight:ae(32/18),marginTop:u(36,18),marginBottom:u(36,18),borderRadius:ze(8),paddingTop:u(20,18),paddingInlineEnd:u(24,18),paddingBottom:u(20,18),paddingInlineStart:u(24,18)},ol:{marginTop:u(24,20),marginBottom:u(24,20),paddingInlineStart:u(32,20)},ul:{marginTop:u(24,20),marginBottom:u(24,20),paddingInlineStart:u(32,20)},li:{marginTop:u(12,20),marginBottom:u(12,20)},"ol > li":{paddingInlineStart:u(8,20)},"ul > li":{paddingInlineStart:u(8,20)},"> ul > li p":{marginTop:u(16,20),marginBottom:u(16,20)},"> ul > li > p:first-child":{marginTop:u(24,20)},"> ul > li > p:last-child":{marginBottom:u(24,20)},"> ol > li > p:first-child":{marginTop:u(24,20)},"> ol > li > p:last-child":{marginBottom:u(24,20)},"ul ul, ul ol, ol ul, ol ol":{marginTop:u(16,20),marginBottom:u(16,20)},dl:{marginTop:u(24,20),marginBottom:u(24,20)},dt:{marginTop:u(24,20)},dd:{marginTop:u(12,20),paddingInlineStart:u(32,20)},hr:{marginTop:u(56,20),marginBottom:u(56,20)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:u(18,20),lineHeight:ae(28/18)},"thead th":{paddingInlineEnd:u(12,18),paddingBottom:u(16,18),paddingInlineStart:u(12,18)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:u(16,18),paddingInlineEnd:u(12,18),paddingBottom:u(16,18),paddingInlineStart:u(12,18)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:u(40,20),marginBottom:u(40,20)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:u(18,20),lineHeight:ae(28/18),marginTop:u(18,18)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},"2xl":{css:[{fontSize:ze(24),lineHeight:ae(40/24),p:{marginTop:u(32,24),marginBottom:u(32,24)},'[class~="lead"]':{fontSize:u(30,24),lineHeight:ae(44/30),marginTop:u(32,30),marginBottom:u(32,30)},blockquote:{marginTop:u(64,36),marginBottom:u(64,36),paddingInlineStart:u(40,36)},h1:{fontSize:u(64,24),marginTop:"0",marginBottom:u(56,64),lineHeight:ae(64/64)},h2:{fontSize:u(48,24),marginTop:u(72,48),marginBottom:u(40,48),lineHeight:ae(52/48)},h3:{fontSize:u(36,24),marginTop:u(56,36),marginBottom:u(24,36),lineHeight:ae(44/36)},h4:{marginTop:u(40,24),marginBottom:u(16,24),lineHeight:ae(36/24)},img:{marginTop:u(48,24),marginBottom:u(48,24)},picture:{marginTop:u(48,24),marginBottom:u(48,24)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:u(48,24),marginBottom:u(48,24)},kbd:{fontSize:u(20,24),borderRadius:ze(6),paddingTop:u(6,24),paddingInlineEnd:u(8,24),paddingBottom:u(6,24),paddingInlineStart:u(8,24)},code:{fontSize:u(20,24)},"h2 code":{fontSize:u(42,48)},"h3 code":{fontSize:u(32,36)},pre:{fontSize:u(20,24),lineHeight:ae(36/20),marginTop:u(40,20),marginBottom:u(40,20),borderRadius:ze(8),paddingTop:u(24,20),paddingInlineEnd:u(32,20),paddingBottom:u(24,20),paddingInlineStart:u(32,20)},ol:{marginTop:u(32,24),marginBottom:u(32,24),paddingInlineStart:u(38,24)},ul:{marginTop:u(32,24),marginBottom:u(32,24),paddingInlineStart:u(38,24)},li:{marginTop:u(12,24),marginBottom:u(12,24)},"ol > li":{paddingInlineStart:u(10,24)},"ul > li":{paddingInlineStart:u(10,24)},"> ul > li p":{marginTop:u(20,24),marginBottom:u(20,24)},"> ul > li > p:first-child":{marginTop:u(32,24)},"> ul > li > p:last-child":{marginBottom:u(32,24)},"> ol > li > p:first-child":{marginTop:u(32,24)},"> ol > li > p:last-child":{marginBottom:u(32,24)},"ul ul, ul ol, ol ul, ol ol":{marginTop:u(16,24),marginBottom:u(16,24)},dl:{marginTop:u(32,24),marginBottom:u(32,24)},dt:{marginTop:u(32,24)},dd:{marginTop:u(12,24),paddingInlineStart:u(38,24)},hr:{marginTop:u(72,24),marginBottom:u(72,24)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:u(20,24),lineHeight:ae(28/20)},"thead th":{paddingInlineEnd:u(12,20),paddingBottom:u(16,20),paddingInlineStart:u(12,20)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:u(16,20),paddingInlineEnd:u(12,20),paddingBottom:u(16,20),paddingInlineStart:u(12,20)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:u(48,24),marginBottom:u(48,24)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:u(20,24),lineHeight:ae(32/20),marginTop:u(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 fa={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:u(32,16),marginBottom:u(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},pa="[object Object]";function ma(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function ga(t,e){return function(r){return t(e(r))}}var va=Function.prototype,Jn=Object.prototype,ei=va.toString,_a=Jn.hasOwnProperty,ya=ei.call(Object),Ca=Jn.toString,ba=ga(Object.getPrototypeOf,Object);function xa(t){return!!t&&typeof t=="object"}function wa(t){if(!xa(t)||Ca.call(t)!=pa||ma(t))return!1;var e=ba(t);if(e===null)return!0;var r=_a.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&ei.call(r)==ya}var Sa=wa,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(a){for(var o=a.toLowerCase(),c="",s=!1,l=0;l<6&&o[l]!==void 0;l++){var d=o.charCodeAt(l),f=d>=97&&d<=102||d>=48&&d<=57;if(s=d===32,!f)break;c+=o[l]}if(c.length!==0){var m=parseInt(c,16),b=m>=55296&&m<=57343;return b||m===0||m>1114111?["�",c.length+(s?1:0)]:[String.fromCodePoint(m),c.length+(s?1:0)]}}var n=/\\/;function i(a){var o=n.test(a);if(!o)return a;for(var c="",s=0;s<a.length;s++){if(a[s]==="\\"){var l=r(a.slice(s+1,s+7));if(l!==void 0){c+=l[0],s+=l[1];continue}if(a[s+1]==="\\"){c+="\\",s++;continue}a.length===s+1&&(c+=a[s]);continue}c+=a[s]}return c}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,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];for(;a.length>0;){var c=a.shift();if(!n[c])return;n=n[c]}return n}t.exports=e.default})(vr,vr.exports);var Ta=vr.exports,_r={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];for(;a.length>0;){var c=a.shift();n[c]||(n[c]={}),n=n[c]}}t.exports=e.default})(_r,_r.exports);var ka=_r.exports,yr={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var i="",a=n.indexOf("/*"),o=0;a>=0;){i=i+n.slice(o,a);var c=n.indexOf("*/",a+2);if(c<0)return i;o=c+2,a=n.indexOf("/*",o)}return i=i+n.slice(o),i}t.exports=e.default})(yr,yr.exports);var $a=yr.exports;Fe.__esModule=!0,Fe.stripComments=Fe.ensureObject=Fe.getProp=Fe.unesc=void 0;var Ea=zt(ti);Fe.unesc=Ea.default;var Ma=zt(Ta);Fe.getProp=Ma.default;var La=zt(ka);Fe.ensureObject=La.default;var Da=zt($a);Fe.stripComments=Da.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(c,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(c,d.key,d)}}function i(c,s,l){return s&&n(c.prototype,s),l&&n(c,l),c}var a=function c(s,l){if(typeof s!="object"||s===null)return s;var d=new s.constructor;for(var f in s)if(s.hasOwnProperty(f)){var m=s[f],b=typeof m;f==="parent"&&b==="object"?l&&(d[f]=l):m instanceof Array?d[f]=m.map(function(x){return c(x,d)}):d[f]=c(m,d)}return d},o=function(){function c(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=c.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 f=a(this);for(var m in d)f[m]=d[m];return f},s.appendToPropertyAndEscape=function(d,f,m){this.raws||(this.raws={});var b=this[d],x=this.raws[d];this[d]=b+f,x||m!==f?this.raws[d]=(x||b)+m:delete this.raws[d]},s.setPropertyAndEscape=function(d,f,m){this.raws||(this.raws={}),this[d]=f,this.raws[d]=m},s.setPropertyWithoutEscape=function(d,f){this[d]=f,this.raws&&delete this.raws[d]},s.isAtPosition=function(d,f){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>f||this.source.end.line===d&&this.source.end.column<f)},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(c,[{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}}]),c}();e.default=o,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 Pa="tag";ue.TAG=Pa;var Oa="string";ue.STRING=Oa;var za="selector";ue.SELECTOR=za;var Ba="root";ue.ROOT=Ba;var Ia="pseudo";ue.PSEUDO=Ia;var Fa="nesting";ue.NESTING=Fa;var Aa="id";ue.ID=Aa;var Ra="comment";ue.COMMENT=Ra;var Ha="combinator";ue.COMBINATOR=Ha;var Na="class";ue.CLASS=Na;var ja="attribute";ue.ATTRIBUTE=ja;var Ga="universal";ue.UNIVERSAL=Ga,function(t,e){e.__esModule=!0,e.default=void 0;var r=o(it),n=a(ue);function i(){if(typeof WeakMap!="function")return null;var h=new WeakMap;return i=function(){return h},h}function a(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 o(h){return h&&h.__esModule?h:{default:h}}function c(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 f(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=c(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("")},f(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 a(d,f){for(var m=0;m<f.length;m++){var b=f[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(d,b.key,b)}}function o(d,f,m){return f&&a(d.prototype,f),m&&a(d,m),d}function c(d,f){d.prototype=Object.create(f.prototype),d.prototype.constructor=d,s(d,f)}function s(d,f){return s=Object.setPrototypeOf||function(b,x){return b.__proto__=x,b},s(d,f)}var l=function(d){c(f,d);function f(b){var x;return x=d.call(this,b)||this,x.type=n.ROOT,x}var m=f.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)},o(f,[{key:"errorGenerator",set:function(x){this._error=x}}]),f}(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 a(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},o(s,l)}var c=function(s){a(l,s);function l(d){var f;return f=s.call(this,d)||this,f.type=n.SELECTOR,f}return l}(r.default);e.default=c,t.exports=e.default})(br,br.exports);var ni=br.exports,xr={exports:{}};/*! https://mths.be/cssesc v3.0.0 by @mathias */var qa={},Wa=qa.hasOwnProperty,Ua=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},Za=/[ -,\.\/:-@\[-\^`\{-~]/,Ya=/[ -,\.\/:-@\[\]\^`\{-~]/,Xa=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,wr=function t(e,r){r=Ua(r,t.options),r.quotes!="single"&&r.quotes!="double"&&(r.quotes="single");for(var n=r.quotes=="double"?'"':"'",i=r.isIdentifier,a=e.charAt(0),o="",c=0,s=e.length;c<s;){var l=e.charAt(c++),d=l.charCodeAt(),f=void 0;if(d<32||d>126){if(d>=55296&&d<=56319&&c<s){var m=e.charCodeAt(c++);(m&64512)==56320?d=((d&1023)<<10)+(m&1023)+65536:c--}f="\\"+d.toString(16).toUpperCase()+" "}else r.escapeEverything?Za.test(l)?f="\\"+l:f="\\"+d.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?f="\\"+d.toString(16).toUpperCase()+" ":l=="\\"||!i&&(l=='"'&&n==l||l=="'"&&n==l)||i&&Ya.test(l)?f="\\"+l:f=l;o+=f}return i&&(/^-[-\d]/.test(o)?o="\\-"+o.slice(1):/\d/.test(a)&&(o="\\3"+a+" "+o.slice(1))),o=o.replace(Xa,function(b,x,h){return x&&x.length%2?b:(x||"")+h}),!i&&r.wrap?n+o+n:o};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=o(Sr),n=Fe,i=o(it),a=ue;function o(m){return m&&m.__esModule?m:{default:m}}function c(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&&c(m.prototype,b),x&&c(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 f=function(m){l(b,m);function b(h){var y;return y=m.call(this,h)||this,y.type=a.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=f,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 a(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},o(s,l)}var c=function(s){a(l,s);function l(d){var f;return f=s.call(this,d)||this,f.type=n.COMMENT,f}return l}(r.default);e.default=c,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 a(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},o(s,l)}var c=function(s){a(l,s);function l(f){var m;return m=s.call(this,f)||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=c,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=a(Sr),n=Fe,i=a(it);function a(f){return f&&f.__esModule?f:{default:f}}function o(f,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(f,x.key,x)}}function c(f,m,b){return m&&o(f.prototype,m),b&&o(f,b),f}function s(f,m){f.prototype=Object.create(m.prototype),f.prototype.constructor=f,l(f,m)}function l(f,m){return l=Object.setPrototypeOf||function(x,h){return x.__proto__=h,x},l(f,m)}var d=function(f){s(m,f);function m(){return f.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(f.prototype.valueToString.call(this))},c(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 a(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},o(s,l)}var c=function(s){a(l,s);function l(d){var f;return f=s.call(this,d)||this,f.type=n.TAG,f}return l}(r.default);e.default=c,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 a(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},o(s,l)}var c=function(s){a(l,s);function l(d){var f;return f=s.call(this,d)||this,f.type=n.STRING,f}return l}(r.default);e.default=c,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 a(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},o(s,l)}var c=function(s){a(l,s);function l(f){var m;return m=s.call(this,f)||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=c,t.exports=e.default})(Dr,Dr.exports);var ci=Dr.exports,Pr={},Va=Qa;function Qa(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=o(Sr),r=o(ti),n=o(Mr),i=ue,a;function o(E){return E&&E.__esModule?E:{default:E}}function c(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&&c(E.prototype,j),Q&&c(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 f=Va,m=/^('|")([^]*)\1$/,b=f(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),x=f(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),h=f(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:f(function(){return C.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:f(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),W=S[z],L=(0,e.default)(this._value,W);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,W=z.replace(/[^']/g,"").length,L=z.replace(/[^"]/g,"").length;if(W+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===W?this.preferredQuoteMark(C):L<W?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 W=(0,e.default)(z,{isIdentifier:!0});W!==z?this.raws[C]=W:delete this.raws[C]}},Q._spacesFor=function(C){var z={before:"",after:""},W=this.spaces[C]||{},L=this.raws.spaces&&this.raws.spaces[C]||{};return Object.assign(z,W,L)},Q._stringFor=function(C,z,W){z===void 0&&(z=C),W===void 0&&(W=R);var L=this._spacesFor(z);return W(this.stringifyProperty(C),L)},Q.offsetOf=function(C){var z=1,W=this._spacesFor("attribute");if(z+=W.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+=W.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(W,L){return W.length>0&&!C.quoted&&L.before.length===0&&!(C.spaces.value&&C.spaces.value.after)&&(L.before=" "),R(W,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),W=z.deprecatedUsage,L=z.unescaped,Y=z.quoteMark;if(W&&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=(a={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},a[null]={isIdentifier:!0},a);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 a(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},o(s,l)}var c=function(s){a(l,s);function l(d){var f;return f=s.call(this,d)||this,f.type=n.UNIVERSAL,f.value="*",f}return l}(r.default);e.default=c,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 a(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},o(s,l)}var c=function(s){a(l,s);function l(d){var f;return f=s.call(this,d)||this,f.type=n.COMBINATOR,f}return l}(r.default);e.default=c,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 a(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},o(s,l)}var c=function(s){a(l,s);function l(d){var f;return f=s.call(this,d)||this,f.type=n.NESTING,f.value="&",f}return l}(r.default);e.default=c,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,a){return i-a})}t.exports=e.default})(Fr,Fr.exports);var Ka=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 Ja=38;ee.ampersand=Ja;var eo=42;ee.asterisk=eo;var to=64;ee.at=to;var ro=44;ee.comma=ro;var no=58;ee.colon=no;var io=59;ee.semicolon=io;var so=40;ee.openParenthesis=so;var ao=41;ee.closeParenthesis=ao;var oo=91;ee.openSquare=oo;var lo=93;ee.closeSquare=lo;var co=36;ee.dollar=co;var uo=126;ee.tilde=uo;var ho=94;ee.caret=ho;var fo=43;ee.plus=fo;var po=61;ee.equals=po;var mo=124;ee.pipe=mo;var go=62;ee.greaterThan=go;var vo=32;ee.space=vo;var pi=39;ee.singleQuote=pi;var _o=34;ee.doubleQuote=_o;var yo=47;ee.slash=yo;var Co=33;ee.bang=Co;var bo=92;ee.backslash=bo;var xo=13;ee.cr=xo;var wo=12;ee.feed=wo;var So=10;ee.newline=So;var To=9;ee.tab=To;var ko=pi;ee.str=ko;var $o=-1;ee.comment=$o;var Eo=-2;ee.word=Eo;var Mo=-3;ee.combinator=Mo,function(t){t.__esModule=!0,t.default=x,t.FIELDS=void 0;var e=a(ee),r,n;function i(){if(typeof WeakMap!="function")return null;var h=new WeakMap;return i=function(){return h},h}function a(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 o=(r={},r[e.tab]=!0,r[e.newline]=!0,r[e.cr]=!0,r[e.feed]=!0,r),c=(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 f(h,y){var $=y,D;do{if(D=h.charCodeAt($),c[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(!o[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,W,L,Y,X,I,T,P,N,ne,_;function Z(A,B){if(h.safe)$+=B,T=$.length-1;else throw h.error("Unclosed "+A,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,W=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,W=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,W=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,W=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,W=P,z=T-N):U===e.slash?(T=j,_=U,W=E,z=j-R,Q=T+1):(T=f($,j),_=e.word,W=E,z=T-R),Q=T+1;break}y.push([_,E,j-R,W,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),a=Q(si),o=Q(ai),c=Q(oi),s=Q(li),l=Q(ci),d=j(Pr),f=Q(ui),m=Q(di),b=Q(hi),x=Q(Ka),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 A=E();if(A&&A.has(Z))return A.get(Z);var B={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in Z)if(Object.prototype.hasOwnProperty.call(Z,q)){var V=w?Object.getOwnPropertyDescriptor(Z,q):null;V&&(V.get||V.set)?Object.defineProperty(B,q,V):B[q]=Z[q]}return B.default=Z,A&&A.set(Z,B),B}function Q(Z){return Z&&Z.__esModule?Z:{default:Z}}function U(Z,A){for(var B=0;B<A.length;B++){var w=A[B];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(Z,w.key,w)}}function C(Z,A,B){return A&&U(Z.prototype,A),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),W=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,A,B,w){return{start:{line:Z,column:A},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,A){if(Z)return X(Z[h.FIELDS.START_LINE],Z[h.FIELDS.START_COL],A[h.FIELDS.END_LINE],A[h.FIELDS.END_COL])}function P(Z,A){var B=Z[A];if(typeof B=="string")return B.indexOf("\\")!==-1&&((0,D.ensureObject)(Z,"raws"),Z[A]=(0,D.unesc)(B),Z.raws[A]===void 0&&(Z.raws[A]=B)),Z}function N(Z,A){for(var B=-1,w=[];(B=Z.indexOf(A,B+1))!==-1;)w.push(B);return w}function ne(){var Z=Array.prototype.concat.apply([],arguments);return Z.filter(function(A,B){return B===Z.indexOf(A)})}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 q=T(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new r.default({source:q}),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 A=Z.prototype;return A._errorGenerator=function(){var w=this;return function(q,V){return typeof w.rule=="string"?new Error(q):w.rule.error(q,V)}},A.attribute=function(){var w=[],q=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(q[1],q[2],this.currToken[3],this.currToken[4]),sourceIndex:q[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 Ke=(0,d.unescapeValue)(oe),lt=Ke.unescaped,Tt=Ke.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++},A.parseWhitespaceEquivalentTokens=function(w){w<0&&(w=this.tokens.length);var q=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 a.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[q],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},A.convertWhitespaceNodesToSpace=function(w,q){var V=this;q===void 0&&(q=!1);var M="",re="";w.forEach(function(le){var ie=V.lossySpace(le.spaces.before,q),he=V.lossySpace(le.rawSpaceBefore,q);M+=ie+V.lossySpace(le.spaces.after,q&&ie.length===0),re+=ie+le.value+V.lossySpace(le.rawSpaceAfter,q&&he.length===0)}),re===M&&(re=void 0);var ce={space:M,rawSpace:re};return ce},A.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},A.namedCombinator=function(){if(this.isNamedCombinator()){var w=this.content(this.tokens[this.position+1]),q=(0,D.unesc)(w).toLowerCase(),V={};q!==w&&(V.value="/"+w+"/");var M=new m.default({value:"/"+q+"/",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()},A.combinator=function(){var w=this;if(this.content()==="|")return this.namespace();var q=this.locateNextMeaningfulToken(this.position);if(q<0||this.tokens[q][h.FIELDS.TYPE]===y.comma){var V=this.parseWhitespaceEquivalentTokens(q);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;q>this.position&&(he=this.parseWhitespaceEquivalentTokens(q));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)},A.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++},A.comment=function(){var w=this.currToken;this.newNode(new a.default({value:this.content(),source:I(w),sourceIndex:w[h.FIELDS.START_POS]})),this.position++},A.error=function(w,q){throw this.root.error(w,q)},A.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[h.FIELDS.START_POS]})},A.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[h.FIELDS.START_POS])},A.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[h.FIELDS.START_POS])},A.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[h.FIELDS.START_POS])},A.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)},A.nesting=function(){if(this.nextToken){var w=this.content(this.nextToken);if(w==="|"){this.position++;return}}var q=this.currToken;this.newNode(new b.default({value:this.content(),source:I(q),sourceIndex:q[h.FIELDS.START_POS]})),this.position++},A.parentheses=function(){var w=this.current.last,q=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&&q;)this.currToken[h.FIELDS.TYPE]===y.openParenthesis&&q++,this.currToken[h.FIELDS.TYPE]===y.closeParenthesis&&q--,q?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&&q;)this.currToken[h.FIELDS.TYPE]===y.openParenthesis&&q++,this.currToken[h.FIELDS.TYPE]===y.closeParenthesis&&q--,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(q)return this.expected("closing parenthesis",this.currToken[h.FIELDS.START_POS])},A.pseudo=function(){for(var w=this,q="",V=this.currToken;this.currToken&&this.currToken[h.FIELDS.TYPE]===y.colon;)q+=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){q+=M,w.newNode(new l.default({value:q,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])},A.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(q){return q.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()},A.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++},A.universal=function(w){var q=this.nextToken;if(q&&this.content(q)==="|")return this.position++,this.namespace();var V=this.currToken;this.newNode(new f.default({value:this.content(),source:I(V),sourceIndex:V[h.FIELDS.START_POS]}),w),this.position++},A.splitWord=function(w,q){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&&q)return q.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 o.default(P(et,"value"))}else{var Ke={value:$e,source:Le,sourceIndex:Ee};P(Ke,"value"),Te=new c.default(Ke)}V.newNode(Te,w),w=null}),this.position++},A.word=function(w){var q=this.nextToken;return q&&this.content(q)==="|"?(this.position++,this.namespace()):this.splitWord(w)},A.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},A.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()}},A.expected=function(w,q,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:q}):this.error("Expected "+re+" "+w+".",{index:q})},A.requiredSpace=function(w){return this.options.lossy?" ":w},A.optionalSpace=function(w){return this.options.lossy?"":w},A.lossySpace=function(w,q){return this.options.lossy?q?" ":"":w},A.parseParenthesisToken=function(w){var q=this.content(w);return w[h.FIELDS.TYPE]===y.space?this.requiredSpace(q):q},A.newNode=function(w,q){return q&&(/^ +$/.test(q)&&(this.options.lossy||(this.spaces=(this.spaces||"")+q),q=!0),w.namespace=q,P(w,"namespace")),this.spaces&&(w.spaces.before=this.spaces,this.spaces=""),this.current.append(w)},A.content=function(w){return w===void 0&&(w=this.currToken),this.css.slice(w[h.FIELDS.START_POS],w[h.FIELDS.END_POS])},A.locateNextMeaningfulToken=function(w){w===void 0&&(w=this.position+1);for(var q=w;q<this.tokens.length;)if(W[this.tokens[q][h.FIELDS.TYPE]]){q++;continue}else return q;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 Lo=hr.exports;(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Lo);function n(a){return a&&a.__esModule?a:{default:a}}var i=function(){function a(c,s){this.func=c||function(){},this.funcRes=null,this.options=s}var o=a.prototype;return o._shouldUpdateSelector=function(s,l){l===void 0&&(l={});var d=Object.assign({},this.options,l);return d.updateSelector===!1?!1:typeof s!="string"},o._isLossy=function(s){s===void 0&&(s={});var l=Object.assign({},this.options,s);return l.lossless===!1},o._root=function(s,l){l===void 0&&(l={});var d=new r.default(s,this._parseOptions(l));return d.root},o._parseOptions=function(s){return{lossy:this._isLossy(s)}},o._run=function(s,l){var d=this;return l===void 0&&(l={}),new Promise(function(f,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(f,m)}catch(x){m(x);return}})},o._runSync=function(s,l){l===void 0&&(l={});var d=this._root(s,l),f=this.func(d);if(f&&typeof f.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:f,root:d,string:m}},o.ast=function(s,l){return this._run(s,l).then(function(d){return d.root})},o.astSync=function(s,l){return this._runSync(s,l).root},o.transform=function(s,l){return this._run(s,l).then(function(d){return d.transform})},o.transformSync=function(s,l){return this._runSync(s,l).transform},o.process=function(s,l){return this._run(s,l).then(function(d){return d.string||d.root.toString()})},o.processSync=function(s,l){var d=this._runSync(s,l);return d.string||d.root.toString()},a}();e.default=i,t.exports=e.default})(dr,dr.exports);var Do=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 Po=Ne(Pr),Oo=Ne(ii),zo=Ne(di),Bo=Ne(si),Io=Ne(ai),Fo=Ne(hi),Ao=Ne(ci),Ro=Ne(ri),Ho=Ne(ni),No=Ne(li),jo=Ne(oi),Go=Ne(ui);function Ne(t){return t&&t.__esModule?t:{default:t}}var qo=function(e){return new Po.default(e)};_e.attribute=qo;var Wo=function(e){return new Oo.default(e)};_e.className=Wo;var Uo=function(e){return new zo.default(e)};_e.combinator=Uo;var Zo=function(e){return new Bo.default(e)};_e.comment=Zo;var Yo=function(e){return new Io.default(e)};_e.id=Yo;var Xo=function(e){return new Fo.default(e)};_e.nesting=Xo;var Vo=function(e){return new Ao.default(e)};_e.pseudo=Vo;var Qo=function(e){return new Ro.default(e)};_e.root=Qo;var Ko=function(e){return new Ho.default(e)};_e.selector=Ko;var Jo=function(e){return new No.default(e)};_e.string=Jo;var e1=function(e){return new jo.default(e)};_e.tag=e1;var t1=function(e){return new Go.default(e)};_e.universal=t1;var ge={};ge.__esModule=!0,ge.isNode=Ar,ge.isPseudoElement=_i,ge.isPseudoClass=h1,ge.isContainer=f1,ge.isNamespace=p1,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,r1=(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"&&r1[t.type]}function je(t,e){return Ar(e)&&e.type===t}var gi=je.bind(null,be.ATTRIBUTE);ge.isAttribute=gi;var n1=je.bind(null,be.CLASS);ge.isClassName=n1;var i1=je.bind(null,be.COMBINATOR);ge.isCombinator=i1;var s1=je.bind(null,be.COMMENT);ge.isComment=s1;var a1=je.bind(null,be.ID);ge.isIdentifier=a1;var o1=je.bind(null,be.NESTING);ge.isNesting=o1;var Rr=je.bind(null,be.PSEUDO);ge.isPseudo=Rr;var l1=je.bind(null,be.ROOT);ge.isRoot=l1;var c1=je.bind(null,be.SELECTOR);ge.isSelector=c1;var u1=je.bind(null,be.STRING);ge.isString=u1;var vi=je.bind(null,be.TAG);ge.isTag=vi;var d1=je.bind(null,be.UNIVERSAL);ge.isUniversal=d1;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 h1(t){return Rr(t)&&!_i(t)}function f1(t){return!!(Ar(t)&&t.walk)}function p1(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=o(Do),n=a(mi);function i(){if(typeof WeakMap!="function")return null;var l=new WeakMap;return i=function(){return l},l}function a(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 f={},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(f,b,x):f[b]=l[b]}return f.default=l,d&&d.set(l,f),f}function o(l){return l&&l.__esModule?l:{default:l}}var c=function(d){return new r.default(d)};Object.assign(c,n),delete c.__esModule;var s=c;e.default=s,t.exports=e.default}(ur,ur.exports);var m1=ur.exports;const g1=Sa,yi=m1,v1=yi();var _1={isUsableColor(t,e){return g1(e)&&t!=="gray"&&e[600]},commonTrailingPseudos(t){let e=v1.astSync(t),r=[];for(let[i,a]of e.nodes.entries())for(const[o,c]of[...a.nodes].reverse().entries()){if(c.type!=="pseudo"||!c.value.startsWith("::"))break;r[o]=r[o]||[],r[o][i]=c}let n=yi.selector();for(const i of r){if(!i)continue;if(new Set([...i.map(o=>o.value)]).size>1)break;i.forEach(o=>o.remove()),n.prepend(i[0])}return n.nodes.length?[n.toString(),e.toString()]:[null,t]}};const y1=Kn,C1=ca,b1=ha,x1=fa,{commonTrailingPseudos:w1}=_1,Ci={};function Hr(t,{className:e,modifier:r,prefix:n}){let i=n(`.not-${e}`).slice(1),a=t.startsWith(">")?`${r==="DEFAULT"?`.${e}`:`.${e}-${r}`} `:"",[o,c]=w1(t);return o?`:where(${a}${c}):not(:where([class~="${i}"],[class~="${i}"] *))${o}`:`:where(${a}${t}):not(:where([class~="${i}"],[class~="${i}"] *))`}function bi(t){return typeof t=="object"&&t!==null}function S1(t={},{target:e,className:r,modifier:n,prefix:i}){function a(o,c){return e==="legacy"?[o,c]:Array.isArray(c)?[o,c]:bi(c)?Object.values(c).some(bi)?[Hr(o,{className:r,modifier:n,prefix:i}),c,Object.fromEntries(Object.entries(c).map(([l,d])=>a(l,d)))]:[Hr(o,{className:r,modifier:n,prefix:i}),c]:[o,c]}return Object.fromEntries(Object.entries(C1({},...Object.keys(t).filter(o=>Ci[o]).map(o=>Ci[o](t[o])),...b1(t.css||{}))).map(([o,c])=>a(o,c)))}var xi=y1.withOptions(({className:t="prose",target:e="modern"}={})=>function({addVariant:r,addComponents:n,theme:i,prefix:a}){let o=i("typography"),c={className:t,prefix:a};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(f=>`& ${f}`):l.join(", ");r(`${t}-${s}`,e==="legacy"?d:`& :is(${Hr(d,c)})`)}n(Object.keys(o).map(s=>({[s==="DEFAULT"?`.${t}`:`.${t}-${s}`]:S1(o[s],{target:e,className:t,modifier:s,prefix:a})})))},()=>({theme:{typography:x1}}));const wi=yt(xi),T1=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,a])=>typeof a=="object"?Object.entries(e(a)).map(([o,c])=>({[i+(o==="DEFAULT"?"":`-${o}`)]:c})):[{[`${i}`]:a}])),r=e})(Si);var k1={importDefault:t=>t&&t.__esModule?t.default:t};const $1=Si,{importDefault:E1}=k1,M1=E1($1),Nr=["track","thumb","corner"],Bt=(t,e)=>e?{"@supports (-moz-appearance:none)":t}:t,L1=({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())}),D1=({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 P1={addBaseStyles:L1,addBaseSizeUtilities:({addUtilities:t},e)=>{t(D1({preferPseudoElements:e==="pseudoelements"}))},addColorUtilities:({matchUtilities:t,theme:e})=>{const r=M1(e("colors")),n=Object.fromEntries(Object.entries(r).map(([i,a])=>[i,ki(a)]));Nr.forEach(i=>{t({[`scrollbar-${i}`]:a=>({[`--scrollbar-${i}`]:ki(a)})},{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)})})}},O1={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 z1=Kn,{addBaseStyles:B1,addBaseSizeUtilities:I1,addColorUtilities:F1,addRoundedUtilities:A1,addSizeUtilities:R1}=P1,{addVariants:H1}=O1;var $i=z1.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"),B1(e,r),I1(e,r),F1(e),H1(e),t.nocompatible&&(A1(e),R1(e))});const Ei=yt($i),N1=Xt({__proto__:null,default:Ei},[$i]);var It={exports:{}};const Ct=Xn||la,j1={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:j1},G1={...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]},q1={prefix:"e-",dark:"class",corePlugins:{preflight:!1},content:["./src/**/*.{html,js,vue,ts}"],theme:{extend:{ringWidth:{1:"1px"},colors:G1,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||T1,Ei||N1({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=q1;const W1=(It.exports==null?{}:It.exports).default||It.exports,jr=oa(W1),Mi=jr.theme.fontSize,Li=jr.theme.colors,U1=[K.Dot,K.Xs,K.Sm,K.Md,K.Lg,K.Xl],Z1=[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],Y1=[K.Sm,K.Md,K.Lg],X1=[se.Warning,se.Error,se.Info,se.Success,se.Primary,se.Default],V1=[se.Warning,se.Error,se.Info,se.Success,se.Primary,se.Default],Q1=[Oe.Top,Oe.Bottom,Oe.Right,Oe.Left],K1=["play","pause","ended","loadeddata","waiting","playing","timeupdate","canplay","canplaythrough","statechanged"],J1=F.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 e0=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})])},t0=[],r0=H(J1,e0,t0,!1,null,null,null,null);const We=r0.exports,n0=F.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"]}`}}}}),Z7="";var i0=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"}})])},s0=[],a0=H(n0,i0,s0,!1,null,"9a1333ac",null,null);const Gr=a0.exports,o0=F.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}}}}),Y7="";var l0=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)},c0=[],u0=H(o0,l0,c0,!1,null,null,null,null);const qr=u0.exports,d0=F.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}}}),X7="";var h0=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-col",class:e.colClasses},[e._t("default")],2)},f0=[],p0=H(d0,h0,f0,!1,null,null,null,null);const Wr=p0.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 m0(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 g0(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 v0(t,e=0,r=0,n=t.naturalWidth,i=t.naturalHeight){const a=document.createElement("canvas"),o=a.getContext("2d");a.width=n,a.height=i,o==null||o.drawImage(t,e,r,n,i,0,0,n,i);const c=a.toDataURL();return a.remove(),c}function _0(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 y0(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,a)=>O.interpolate(t,e)(n(a)))}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(a=>Ai(a)):[0,Fi]}},{})}function C0(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[e,r.map(n=>{const[i,a]=n.split("-");let[o,c]=a.split(":");return o=parseInt(o),o=Math.max(0,o-1),`${i}-${o.toString().padStart(2,"0")}:${c}`})]))}const b0=F.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 a=0-r.width*(this.scale-1),o=0-r.height*(this.scale-1);this.left=Math.min(0,Math.max(a,this.left)),this.top=Math.min(0,Math.max(o,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 a=t.clientX,o=t.clientY,c=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail)),s=this.scale;this.scale+=c/10,this.updateZoomScale();const l=((a-i.left)/i.width).toFixed(2),d=((o-i.top)/i.height).toFixed(2);this.left=Math.round(a-n.left-Number(l)*(i.width*this.scale/s)),this.top=Math.round(o-n.top-Number(d)*(i.height*this.scale/s));const f=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>f&&(this.left=f),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,a,o,c]=[r.top-n.top,n.right-r.right,n.bottom-r.bottom,r.left-n.left].map(s=>s<0?s:0);this.left+=c-a,this.top+=i-o},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)}}}),V7="";var x0=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()])])},w0=[],S0=H(b0,x0,w0,!1,null,"06b5341b",null,null);const Kr=S0.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)}`},T0=F.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 a,o;if(!this.isHls)return;const e=this.$refs.player,r=(a=this.preloadedInterval)==null?void 0:a.start,n=(o=this.preloadedInterval)==null?void 0:o.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,a,o,c;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),(a=this.player)==null||a.attachMedia(e),(o=this.player)==null||o.on(at.Events.MANIFEST_PARSED,(s,l)=>{var m;const d=(m=l.levels[l.firstLevel])==null?void 0:m.details,f=d==null?void 0:d.startTimeOffset;e.currentTime=f||0,this.playing&&e.play()}),(c=this.player)==null||c.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,a=this.$refs.player,o=()=>this.fallbackSrc&&(a==null?void 0:a.currentSrc)!==this.fallbackSrc,c=()=>this.initHls(this.fallbackSrc),s=()=>{if(o()){c();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),o()?c():this.player.startLoad();return}n&&(console.error("A media error occurred:",e),o()?c():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(),a=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=a*this.videoDuration,n.currentTime=a*this.videoDuration,this.wasPaused)return;const o=n.play();o!==void 0&&o.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}}}}),Q7="";var k0=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)},$0=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"timeline"},[e("div",{staticClass:"thumb-indicator"})])}],E0=H(T0,k0,$0,!1,null,"d7aeb2b0",null,null);const Hi=E0.exports,Ve={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__)}},M0=(t,e)=>t===e||t.contains(e),L0=(t,e)=>r=>{M0(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:L0(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:Ve},{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 Qe({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():D0(t)}function D0(t){return ke.parseZone(t).utcOffset()}const P0=F.extend({name:"ETimelineMilestone",directives:{resizeObserver:Ve},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(),a=e.dataset.timeoutId;a&&(clearTimeout(Number(a)),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,a=setTimeout(()=>{e.classList.remove(me.milestoneHovered),e.dataset.timeoutId=""},i);e.dataset.timeoutId=String(a),this.timeouts.push(a),this.isMouseOver=!1},onMilestoneClick(t,e){this.$emit("milestone-click",e)},tzStringToDate(t){return Qe({timestamp:t,timezone:this.timezone})}}}),K7="";var O0=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)])},z0=[],B0=H(P0,O0,z0,!1,null,null,null,null);const I0=B0.exports,F0=F.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`}}}}),J7="";var A0=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)})])},R0=[],H0=H(F0,A0,R0,!1,null,"614947ed",null,null);const N0=H0.exports,j0=F.extend({name:"ETimelineMarkers",components:{ETimelineMarker:N0},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 c;if(!t.isDraggable)return;(c=r.sourceEvent)==null||c.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 a=this.timeScale(i);const o=this.isTimestampAllowedForMarker(i,t);if(r.type==="drag"&&o&&e.attr("style",`left: ${a}px`),r.type==="end"){const s=t.id||t.timestamp;a=o?a:this.timeScale(this.tzStringToDate(t.timestamp)),this.markersPositions={...this.markersPositions,[s]:{...this.markersPositions[s],position:a}},e.classed(me.markerDragged,!1)}r.type!=="start"&&this.$emit(`marker-drag-${r.type}`,{marker:t,newTimestamp:o?this.dateToTzString(i):t.timestamp})},updateMarkers(){if(!this.markers.length)return;const t=12,e=200;this.markers.forEach((r,n,i)=>{const a=typeof r.timestamp=="string"?this.tzStringToDate(r.timestamp):r.timestamp,o=this.timeScale(a);let c=!1;const s=this.stickyMarkers?Math.max(o,n*t):o;if(n<i.length-1){const l=i[n+1],d=typeof l.timestamp=="string"?this.tzStringToDate(l.timestamp):l.timestamp,f=this.timeScale(d);c=(this.stickyMarkers?Math.max(f,(n+1)*t):o)-s<e+t}this.markersPositions={...this.markersPositions,[r.id]:{isHidden:c,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 Qe({timestamp:t,timezone:this.timeZone})},dateToTzString(t){return Ft({date:t,timezone:this.timeZone})}}});var G0=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-tl-markers"},e._l(e.markers,function(n){var i,a;return r("ETimelineMarker",{key:n.id,attrs:{marker:n,height:e.height,position:(i=e.markersPositions[n.id])==null?void 0:i.position,hidden:(a=e.markersPositions[n.id])==null?void 0:a.isHidden,"data-id":n.id},on:{"marker-clicked":function(o){return e.$emit("marker-clicked",o)}},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)},q0=[],W0=H(j0,G0,q0,!1,null,null,null,null);const U0=W0.exports,Z0=F.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(),a=[(this.focusedEndDate.getTime()-this.focusedStartDate.getTime())/r,1/0],o=this.initialTimeScale.copy();o.domain(t);const c=o(this.minDate),s=-(e-o(this.maxDate));return{scaleExtent:a,translateExtent:[[c||-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,a=n>=this.maxDate;if(i||a){const c=O.zoomIdentity.translate(this.lastTransform.x,this.lastTransform.y).scale(this.lastTransform.k);this.selection.call(this.zoomBehavior.transform,c),this.updateBoundaries(i,a);return}const o=t.transform.k/this.lastTransform.k;this.transformDiff={scale:o,translation:t.transform.x-this.lastTransform.x},this.lastTransform={...t.transform},this.timeScale=t.transform.rescaleX(this.timeScale).domain([r,n])},toD3Date(t){return Qe({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[a,o]=this.timeScale.domain();if(n.getTime()===a.getTime()&&i.getTime()===o.getTime())return;const c=this.initialTimeScale.domain().map(h=>h.getTime()),s=c[1]-c[0],l=i.getTime()-n.getTime(),d=.1*l,f=l+2*d;let m=s/f;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),a=(n+i)/2,c=this.getWidth()/2-a,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+c,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),a=this.toDateString(n);this.$emit("visible-interval-change",{fromDate:i,toDate:a,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}}}),ed="";var Y0=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)},X0=[],V0=H(Z0,Y0,X0,!1,null,null,null,null);const Q0=V0.exports,K0=F.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()}}}),td="";var J0=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})`}})},el=[],tl=H(K0,J0,el,!1,null,null,null,null);const rn=tl.exports,At=t=>{const e=O.utcFormat("%_d")(t),r=rl(parseInt(e));return`${e}${r}`},qi=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),Wi=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)},rl=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:Wi},{precision:J._1_minute,interval:O.utcMinute.every(5),format:Wi},{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:(Cs=O.utcSecond.every(20))==null?void 0:Cs.filter(Ui(2)),format:nn},{precision:J._30_seconds,interval:(bs=O.utcSecond.every(30))==null?void 0:bs.filter(Ui(2)),format:nn},{precision:J._1_minute,interval:O.utcMinute.filter(on(5)),format:st},{precision:J._2_minutes,interval:(xs=O.utcMinute.every(2))==null?void 0:xs.filter(on(10)),format:st},{precision:J._5_minutes,interval:(ws=O.utcMinute.every(5))==null?void 0:ws.filter(on(20)),format:st},{precision:J._15_minutes,interval:(Ss=O.utcMinute.every(15))==null?void 0:Ss.filter(xt(1)),format:st},{precision:J._30_minutes,interval:(Ts=O.utcMinute.every(30))==null?void 0:Ts.filter(xt(2)),format:st},{precision:J._1_hour,interval:O.utcHour.filter(xt(6)),format:bt},{precision:J._2_hours,interval:(ks=O.utcHour.every(2))==null?void 0:ks.filter(xt(6)),format:bt},{precision:J._3_hours,interval:($s=O.utcHour.every(3))==null?void 0:$s.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:qi},{precision:J._2_days,interval:O.utcDay.every(2),format:qi},{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:""}]},nl=F.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]}}}),rd="";var il=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}})},sl=[],al=H(nl,il,sl,!1,null,null,null,null);const ol=al.exports,ll=F.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]}}}),nd="";var cl=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}})},ul=[],dl=H(ll,cl,ul,!1,null,null,null,null);const hl=dl.exports,fl=F.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]}}}),id="";var pl=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}})},ml=[],gl=H(fl,pl,ml,!1,null,null,null,null);const vl=gl.exports,_l=F.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 yl=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:a,stop:o,opacity:c}){return r("linearGradient",{key:`${a}-${i}-${n.chartType}`,attrs:{id:`${a}-${i}-${n.chartType}`,x1:"0%",x2:"0%",y1:"0%",y2:"100%"}},[r("stop",{attrs:{offset:"0%","stop-color":n.color,"stop-opacity":c}}),r("stop",{attrs:{offset:`${o}%`,"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:a,opacity:o}){return r("linearGradient",{key:`${a}-${i}-${n.chartType}`,attrs:{id:`${a}-${i}-${n.chartType}`,width:"100%",height:"100%"}},[r("stop",{attrs:{"stop-color":n.color,"stop-opacity":o}})],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)},Cl=[],bl=H(_l,yl,Cl,!1,null,null,null,null);const xl=bl.exports,wl=F.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 Qe({timestamp:t,timezone:this.timezone})}}});var Sl=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})`}})},Tl=[],kl=H(wl,Sl,Tl,!1,null,null,null,null);const $l=kl.exports,El=F.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 Qe({timestamp:t,timezone:this.timezone})}}});var Ml=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`}})},Ll=[],Dl=H(El,Ml,Ll,!1,null,null,null,null);const Zi=Dl.exports,Pl=F.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 Ol=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}})},zl=[],Bl=H(Pl,Ol,zl,!1,null,null,null,null);const Il=Bl.exports,Fl=F.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 Al=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}})},Rl=[],Hl=H(Fl,Al,Rl,!1,null,null,null,null);const Nl=Hl.exports,jl=F.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 Qe({timestamp:t,timezone:this.timezone})},dateToTzString(t){return Ft({date:t,timezone:this.timezone})}}});var Gl=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)},ql=[],Wl=H(jl,Gl,ql,!1,null,null,null,null);const Ul=Wl.exports,Zl=F.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})`}}}),sd="";var Yl=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()])},Xl=[],Vl=H(Zl,Yl,Xl,!1,null,null,null,null);const cn=Vl.exports,Ql=F.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 Kl=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)},Jl=[],e5=H(Ql,Kl,Jl,!1,null,null,null,null);const t5=e5.exports,r5=F.extend({name:"ETimelineRectsChart",directives:{},components:{ETimelineGroupContainer:cn,ETimelineRectsChartGroupedDots:t5},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),a=n+(i-n)/2,o=e.length>1,c=a;return o?r={...r,textContent:`${e.length}`,textX:a-this.dotsSize/2-`${e.length}`.length*2,textY:this.yPosition-this.dotsSize/2}:r={...r,textX:r.textX-this.textPadding},{...e[0],x:c,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 a=t[i-1],o=this.getEventRectX(n,this.timeScale),c=this.getEventRectX(a,this.timeScale),s=this.getEventRectWidth(a,this.timeScale,this.rectMinWidth);c+s+this.groupingThreshold>=o?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 a=(this.getEventRectWidth(t,this.timeScale,this.rectMinWidth)-e)/r;return a<Math.min(n==null?void 0:n.length,4)?"":(n==null?void 0:n.length)<=a?n:`${n.slice(0,a-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),a=e(i)-e(n);return Math.max(a,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 Qe({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()}}}),ad="";var n5=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(a){return e.onMouseOver(a,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(a){return e.onGroupedEventsMouseOver(a,n.groupedEvents,e.groupId)},mouseleave:function(a){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)},i5=[],s5=H(r5,n5,i5,!1,null,null,null,null);const a5=s5.exports,o5=F.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 a=i===0?1:i,o=new Date((s=this.eventsGroup.events[a+1])==null?void 0:s.timestamp),c=new Date((l=this.eventsGroup.events[a-1])==null?void 0:l.timestamp);return o>=t&&o<=e||c>=t&&c<=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 Qe({timestamp:t,timezone:this.timezone})}}}),od="";var l5=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(a){return e.$emit("event-mouseover",a,n,e.groupId)},mouseleave:function(a){return e.$emit("event-mouseout")}}})])})],2)])},c5=[],u5=H(o5,l5,c5,!1,null,null,null,null);const d5=u5.exports,h5=F.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 a=i===0?1:i,o=new Date((s=this.eventsGroup.events[a+1])==null?void 0:s.endDate),c=new Date((l=this.eventsGroup.events[a-1])==null?void 0:l.startDate);return o>=t&&o<=e||c>=t&&c<=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,a=this.yScale(i+t.count);return{x:n,y:a,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 Qe({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)}}}}),ld="";var f5=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(a){return e.$emit("event-mouseout")},mouseover:function(a){return e.$emit("event-mouseover",a,n,e.groupId)},click:function(a){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)])},p5=[],m5=H(h5,f5,p5,!1,null,null,null,null);const g5=m5.exports,v5=F.extend({name:"ETimeline",directives:{resizeObserver:Ve},components:{ETimelineSVGDefs:xl,EXAxisBackground:vl,EXAxisDetailed:hl,EXAxisOverview:ol,ETimelineMilestone:I0,ETimelineMarkers:U0,ETimelineCursor:Il,ETimelineSelectedTimestampCursor:Nl,EZoomBehavior:Q0,ECursorBehavior:Ul,ETimelineRectsChart:a5,ETimelineForbiddenInterval:$l,ETimelineLinesChart:d5,ETimelineBarsChart:g5},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=a=>{const o=new Date(a.startDate||a.timestamp),c=new Date(a.endDate||a.timestamp),s=new Date(this.visibleFrom),l=new Date(this.visibleTo);return c>=s&&c<=l||o>=s&&o<=l},e=this.flattenedBarsCounts.filter(t),r=this.flattenedLinesCounts.filter(t).map(a=>a.count),n={};e.forEach(a=>{const o=a.startDate||a.timestamp;n[o]=(n[o]||0)+a.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),a=new Date(e+n);return[i.toISOString(),a.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 a=i.timestamp||i.startDate;e[a]={...e[a]||{},[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 a=i.startDate||i.timestamp;n[a]=(n[a]||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(a=>new Date(a.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(a=>{const o=isNaN(new Date(a.startDate).getTime())?-1/0:new Date(a.startDate).getTime(),c=isNaN(new Date(a.endDate).getTime())?1/0:new Date(a.endDate).getTime();return e>=o&&e<=c});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 c;const[a,o]=i;return(c=this.hiddenGroupsLabels)!=null&&c.includes(a)?n:[...n,{type:a,count:o,label:this.getExternalLabelText(a)}]},[]),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 Qe({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=a=>a.clone().add(1,e),n=a=>a.clone().subtract(1,e);let i=[];for(let a=0;a<t.length;a++){const o=t[a];if(i.push(o),a===t.length-1)break;const c=t[a+1],s=ke(o.timestamp),l=ke(c.timestamp);if(l.diff(s,e)>1){const d=r(s).toISOString(),f=n(l).toISOString();i.push({timestamp:d,count:0}),d!==f&&i.push({timestamp:f,count:0})}}if(this.flattenLineGraphEnds){const a=ke(t[0].timestamp),o=ke(t[t.length-1].timestamp),c=n(a).toISOString(),s=r(o).toISOString();i=[{timestamp:c,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}))}}}),cd="";var _5=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:a}){var o;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(c){return e.$emit("marker-drag-end",c)},"marker-drag-start":function(c){return e.$emit("marker-drag-start",c)},"marker-drag-drag":function(c){return e.$emit("marker-drag-drag",c)}},scopedSlots:e._u([e._l(e.markersScopedSlots,function(c,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&&a&&!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(c,s){return r("ETimelineForbiddenInterval",{key:s,attrs:{"time-scale":n,interval:c,index:s,height:e.timelineHeight,timezone:e.timezone}})}),e._l(e.barGroups,function(c,s){return r("ETimelineRectsChart",{key:s,attrs:{"time-scale":n,"events-group":c,"group-id":s,y:e.getBarGroupYPosition(s,c.bottom),height:e.barHeight,width:e.width,"rect-y-padding":e.barYPadding,dark:e.dark,"show-label":e.showLabels,timezone:e.timezone,dots:c.chartType===e.TimelineChartType.Dots,"dots-size":c.dotsSize,"bar-border-radius":c.barBorderRadius,"group-overlapping-dots":c.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(c,s){return r("ETimelineRectsChart",{key:s,attrs:{width:e.width,y:e.getMilestoneGroupYPosition(s),height:c.height,"group-id":s,"events-group":c,"time-scale":n,dark:e.dark,dots:!0,"show-label":!1}})}),e._l(e.insertZerosAtInterval?e.filledGapsLineGraphGroups:e.lineGraphGroups,function(c,s){return r("ETimelineLinesChart",{key:s,attrs:{"group-id":s,"time-scale":n,"events-group":c,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(c,s,l){return r("ETimelineBarsChart",{key:s,attrs:{"group-id":s,width:e.width,y:e.getChartsYPosition(s),height:e.chartHeight,"events-group":c,"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(c,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(c.events),function(l,d){return r("ETimelineMilestone",{key:`${l.milestoneType}-${d}`,class:e.getMilestoneClass(l),attrs:{"time-scale":n,y:e.getMilestoneGroupYPosition(s),height:c.height||e.barHeight,"data-timestamp":l.timestamp,milestone:l,dot:c.dots,size:l.size||e.milestoneBulletSize,"transition-duration":c.milestonesTransitionDuration,"line-height":c.milestonesLineHeight,"dot-size":c.milestonesDotSize,"data-test-id":`milestone-${l.milestoneType}-${d}`,"background-color":e.getMilestoneColors(l.color,c.color).background,"border-color":e.getMilestoneColors(l.color,c.color).border,timezone:e.timezone},on:{"hovered-milestone":e.onHoverMilestone,"milestone-click":function(f){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(c){return r("div",{key:c,staticClass:"external-label",class:e.computedClasses.background,style:e.getExternalLabelWrapperStyles(c),on:{click:function(s){return s.stopPropagation(),e.toggleGroupVisibility(c)}}},[r("div",{staticClass:"external-label__content",style:e.getExternalLabelStyles(c)},[e._v(" "+e._s(e.getExternalLabelText(c))+" ")])])}),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:a&&!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,W=P,z=T-N):U===e.slash?(T=j,_=U,W=E,z=j-R,Q=T+1):(T=f($,j),_=e.word,W=E,z=T-R),Q=T+1;break}y.push([_,E,j-R,W,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),a=Q(si),o=Q(ai),c=Q(oi),s=Q(li),l=Q(ci),d=j(Pr),f=Q(ui),m=Q(di),b=Q(hi),x=Q(Ka),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 A=E();if(A&&A.has(Z))return A.get(Z);var B={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in Z)if(Object.prototype.hasOwnProperty.call(Z,q)){var V=w?Object.getOwnPropertyDescriptor(Z,q):null;V&&(V.get||V.set)?Object.defineProperty(B,q,V):B[q]=Z[q]}return B.default=Z,A&&A.set(Z,B),B}function Q(Z){return Z&&Z.__esModule?Z:{default:Z}}function U(Z,A){for(var B=0;B<A.length;B++){var w=A[B];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(Z,w.key,w)}}function C(Z,A,B){return A&&U(Z.prototype,A),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),W=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,A,B,w){return{start:{line:Z,column:A},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,A){if(Z)return X(Z[h.FIELDS.START_LINE],Z[h.FIELDS.START_COL],A[h.FIELDS.END_LINE],A[h.FIELDS.END_COL])}function P(Z,A){var B=Z[A];if(typeof B=="string")return B.indexOf("\\")!==-1&&((0,D.ensureObject)(Z,"raws"),Z[A]=(0,D.unesc)(B),Z.raws[A]===void 0&&(Z.raws[A]=B)),Z}function N(Z,A){for(var B=-1,w=[];(B=Z.indexOf(A,B+1))!==-1;)w.push(B);return w}function ne(){var Z=Array.prototype.concat.apply([],arguments);return Z.filter(function(A,B){return B===Z.indexOf(A)})}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 q=T(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new r.default({source:q}),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 A=Z.prototype;return A._errorGenerator=function(){var w=this;return function(q,V){return typeof w.rule=="string"?new Error(q):w.rule.error(q,V)}},A.attribute=function(){var w=[],q=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(q[1],q[2],this.currToken[3],this.currToken[4]),sourceIndex:q[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 Ke=(0,d.unescapeValue)(oe),lt=Ke.unescaped,Tt=Ke.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++},A.parseWhitespaceEquivalentTokens=function(w){w<0&&(w=this.tokens.length);var q=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 a.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[q],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},A.convertWhitespaceNodesToSpace=function(w,q){var V=this;q===void 0&&(q=!1);var M="",re="";w.forEach(function(le){var ie=V.lossySpace(le.spaces.before,q),he=V.lossySpace(le.rawSpaceBefore,q);M+=ie+V.lossySpace(le.spaces.after,q&&ie.length===0),re+=ie+le.value+V.lossySpace(le.rawSpaceAfter,q&&he.length===0)}),re===M&&(re=void 0);var ce={space:M,rawSpace:re};return ce},A.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},A.namedCombinator=function(){if(this.isNamedCombinator()){var w=this.content(this.tokens[this.position+1]),q=(0,D.unesc)(w).toLowerCase(),V={};q!==w&&(V.value="/"+w+"/");var M=new m.default({value:"/"+q+"/",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()},A.combinator=function(){var w=this;if(this.content()==="|")return this.namespace();var q=this.locateNextMeaningfulToken(this.position);if(q<0||this.tokens[q][h.FIELDS.TYPE]===y.comma){var V=this.parseWhitespaceEquivalentTokens(q);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;q>this.position&&(he=this.parseWhitespaceEquivalentTokens(q));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)},A.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++},A.comment=function(){var w=this.currToken;this.newNode(new a.default({value:this.content(),source:I(w),sourceIndex:w[h.FIELDS.START_POS]})),this.position++},A.error=function(w,q){throw this.root.error(w,q)},A.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[h.FIELDS.START_POS]})},A.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[h.FIELDS.START_POS])},A.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[h.FIELDS.START_POS])},A.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[h.FIELDS.START_POS])},A.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)},A.nesting=function(){if(this.nextToken){var w=this.content(this.nextToken);if(w==="|"){this.position++;return}}var q=this.currToken;this.newNode(new b.default({value:this.content(),source:I(q),sourceIndex:q[h.FIELDS.START_POS]})),this.position++},A.parentheses=function(){var w=this.current.last,q=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&&q;)this.currToken[h.FIELDS.TYPE]===y.openParenthesis&&q++,this.currToken[h.FIELDS.TYPE]===y.closeParenthesis&&q--,q?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&&q;)this.currToken[h.FIELDS.TYPE]===y.openParenthesis&&q++,this.currToken[h.FIELDS.TYPE]===y.closeParenthesis&&q--,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(q)return this.expected("closing parenthesis",this.currToken[h.FIELDS.START_POS])},A.pseudo=function(){for(var w=this,q="",V=this.currToken;this.currToken&&this.currToken[h.FIELDS.TYPE]===y.colon;)q+=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){q+=M,w.newNode(new l.default({value:q,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])},A.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(q){return q.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()},A.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++},A.universal=function(w){var q=this.nextToken;if(q&&this.content(q)==="|")return this.position++,this.namespace();var V=this.currToken;this.newNode(new f.default({value:this.content(),source:I(V),sourceIndex:V[h.FIELDS.START_POS]}),w),this.position++},A.splitWord=function(w,q){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&&q)return q.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 o.default(P(et,"value"))}else{var Ke={value:$e,source:Le,sourceIndex:Ee};P(Ke,"value"),Te=new c.default(Ke)}V.newNode(Te,w),w=null}),this.position++},A.word=function(w){var q=this.nextToken;return q&&this.content(q)==="|"?(this.position++,this.namespace()):this.splitWord(w)},A.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},A.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()}},A.expected=function(w,q,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:q}):this.error("Expected "+re+" "+w+".",{index:q})},A.requiredSpace=function(w){return this.options.lossy?" ":w},A.optionalSpace=function(w){return this.options.lossy?"":w},A.lossySpace=function(w,q){return this.options.lossy?q?" ":"":w},A.parseParenthesisToken=function(w){var q=this.content(w);return w[h.FIELDS.TYPE]===y.space?this.requiredSpace(q):q},A.newNode=function(w,q){return q&&(/^ +$/.test(q)&&(this.options.lossy||(this.spaces=(this.spaces||"")+q),q=!0),w.namespace=q,P(w,"namespace")),this.spaces&&(w.spaces.before=this.spaces,this.spaces=""),this.current.append(w)},A.content=function(w){return w===void 0&&(w=this.currToken),this.css.slice(w[h.FIELDS.START_POS],w[h.FIELDS.END_POS])},A.locateNextMeaningfulToken=function(w){w===void 0&&(w=this.position+1);for(var q=w;q<this.tokens.length;)if(W[this.tokens[q][h.FIELDS.TYPE]]){q++;continue}else return q;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 Lo=hr.exports;(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Lo);function n(a){return a&&a.__esModule?a:{default:a}}var i=function(){function a(c,s){this.func=c||function(){},this.funcRes=null,this.options=s}var o=a.prototype;return o._shouldUpdateSelector=function(s,l){l===void 0&&(l={});var d=Object.assign({},this.options,l);return d.updateSelector===!1?!1:typeof s!="string"},o._isLossy=function(s){s===void 0&&(s={});var l=Object.assign({},this.options,s);return l.lossless===!1},o._root=function(s,l){l===void 0&&(l={});var d=new r.default(s,this._parseOptions(l));return d.root},o._parseOptions=function(s){return{lossy:this._isLossy(s)}},o._run=function(s,l){var d=this;return l===void 0&&(l={}),new Promise(function(f,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(f,m)}catch(x){m(x);return}})},o._runSync=function(s,l){l===void 0&&(l={});var d=this._root(s,l),f=this.func(d);if(f&&typeof f.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:f,root:d,string:m}},o.ast=function(s,l){return this._run(s,l).then(function(d){return d.root})},o.astSync=function(s,l){return this._runSync(s,l).root},o.transform=function(s,l){return this._run(s,l).then(function(d){return d.transform})},o.transformSync=function(s,l){return this._runSync(s,l).transform},o.process=function(s,l){return this._run(s,l).then(function(d){return d.string||d.root.toString()})},o.processSync=function(s,l){var d=this._runSync(s,l);return d.string||d.root.toString()},a}();e.default=i,t.exports=e.default})(dr,dr.exports);var Do=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 Po=Ne(Pr),Oo=Ne(ii),zo=Ne(di),Bo=Ne(si),Io=Ne(ai),Fo=Ne(hi),Ao=Ne(ci),Ro=Ne(ri),Ho=Ne(ni),No=Ne(li),jo=Ne(oi),Go=Ne(ui);function Ne(t){return t&&t.__esModule?t:{default:t}}var qo=function(e){return new Po.default(e)};_e.attribute=qo;var Wo=function(e){return new Oo.default(e)};_e.className=Wo;var Uo=function(e){return new zo.default(e)};_e.combinator=Uo;var Zo=function(e){return new Bo.default(e)};_e.comment=Zo;var Yo=function(e){return new Io.default(e)};_e.id=Yo;var Xo=function(e){return new Fo.default(e)};_e.nesting=Xo;var Vo=function(e){return new Ao.default(e)};_e.pseudo=Vo;var Qo=function(e){return new Ro.default(e)};_e.root=Qo;var Ko=function(e){return new Ho.default(e)};_e.selector=Ko;var Jo=function(e){return new No.default(e)};_e.string=Jo;var e1=function(e){return new jo.default(e)};_e.tag=e1;var t1=function(e){return new Go.default(e)};_e.universal=t1;var ge={};ge.__esModule=!0,ge.isNode=Ar,ge.isPseudoElement=_i,ge.isPseudoClass=h1,ge.isContainer=f1,ge.isNamespace=p1,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,r1=(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"&&r1[t.type]}function je(t,e){return Ar(e)&&e.type===t}var gi=je.bind(null,be.ATTRIBUTE);ge.isAttribute=gi;var n1=je.bind(null,be.CLASS);ge.isClassName=n1;var i1=je.bind(null,be.COMBINATOR);ge.isCombinator=i1;var s1=je.bind(null,be.COMMENT);ge.isComment=s1;var a1=je.bind(null,be.ID);ge.isIdentifier=a1;var o1=je.bind(null,be.NESTING);ge.isNesting=o1;var Rr=je.bind(null,be.PSEUDO);ge.isPseudo=Rr;var l1=je.bind(null,be.ROOT);ge.isRoot=l1;var c1=je.bind(null,be.SELECTOR);ge.isSelector=c1;var u1=je.bind(null,be.STRING);ge.isString=u1;var vi=je.bind(null,be.TAG);ge.isTag=vi;var d1=je.bind(null,be.UNIVERSAL);ge.isUniversal=d1;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 h1(t){return Rr(t)&&!_i(t)}function f1(t){return!!(Ar(t)&&t.walk)}function p1(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=o(Do),n=a(mi);function i(){if(typeof WeakMap!="function")return null;var l=new WeakMap;return i=function(){return l},l}function a(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 f={},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(f,b,x):f[b]=l[b]}return f.default=l,d&&d.set(l,f),f}function o(l){return l&&l.__esModule?l:{default:l}}var c=function(d){return new r.default(d)};Object.assign(c,n),delete c.__esModule;var s=c;e.default=s,t.exports=e.default}(ur,ur.exports);var m1=ur.exports;const g1=Sa,yi=m1,v1=yi();var _1={isUsableColor(t,e){return g1(e)&&t!=="gray"&&e[600]},commonTrailingPseudos(t){let e=v1.astSync(t),r=[];for(let[i,a]of e.nodes.entries())for(const[o,c]of[...a.nodes].reverse().entries()){if(c.type!=="pseudo"||!c.value.startsWith("::"))break;r[o]=r[o]||[],r[o][i]=c}let n=yi.selector();for(const i of r){if(!i)continue;if(new Set([...i.map(o=>o.value)]).size>1)break;i.forEach(o=>o.remove()),n.prepend(i[0])}return n.nodes.length?[n.toString(),e.toString()]:[null,t]}};const y1=Kn,C1=ca,b1=ha,x1=fa,{commonTrailingPseudos:w1}=_1,Ci={};function Hr(t,{className:e,modifier:r,prefix:n}){let i=n(`.not-${e}`).slice(1),a=t.startsWith(">")?`${r==="DEFAULT"?`.${e}`:`.${e}-${r}`} `:"",[o,c]=w1(t);return o?`:where(${a}${c}):not(:where([class~="${i}"],[class~="${i}"] *))${o}`:`:where(${a}${t}):not(:where([class~="${i}"],[class~="${i}"] *))`}function bi(t){return typeof t=="object"&&t!==null}function S1(t={},{target:e,className:r,modifier:n,prefix:i}){function a(o,c){return e==="legacy"?[o,c]:Array.isArray(c)?[o,c]:bi(c)?Object.values(c).some(bi)?[Hr(o,{className:r,modifier:n,prefix:i}),c,Object.fromEntries(Object.entries(c).map(([l,d])=>a(l,d)))]:[Hr(o,{className:r,modifier:n,prefix:i}),c]:[o,c]}return Object.fromEntries(Object.entries(C1({},...Object.keys(t).filter(o=>Ci[o]).map(o=>Ci[o](t[o])),...b1(t.css||{}))).map(([o,c])=>a(o,c)))}var xi=y1.withOptions(({className:t="prose",target:e="modern"}={})=>function({addVariant:r,addComponents:n,theme:i,prefix:a}){let o=i("typography"),c={className:t,prefix:a};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(f=>`& ${f}`):l.join(", ");r(`${t}-${s}`,e==="legacy"?d:`& :is(${Hr(d,c)})`)}n(Object.keys(o).map(s=>({[s==="DEFAULT"?`.${t}`:`.${t}-${s}`]:S1(o[s],{target:e,className:t,modifier:s,prefix:a})})))},()=>({theme:{typography:x1}}));const wi=yt(xi),T1=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,a])=>typeof a=="object"?Object.entries(e(a)).map(([o,c])=>({[i+(o==="DEFAULT"?"":`-${o}`)]:c})):[{[`${i}`]:a}])),r=e})(Si);var k1={importDefault:t=>t&&t.__esModule?t.default:t};const $1=Si,{importDefault:E1}=k1,M1=E1($1),Nr=["track","thumb","corner"],Bt=(t,e)=>e?{"@supports (-moz-appearance:none)":t}:t,L1=({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())}),D1=({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 P1={addBaseStyles:L1,addBaseSizeUtilities:({addUtilities:t},e)=>{t(D1({preferPseudoElements:e==="pseudoelements"}))},addColorUtilities:({matchUtilities:t,theme:e})=>{const r=M1(e("colors")),n=Object.fromEntries(Object.entries(r).map(([i,a])=>[i,ki(a)]));Nr.forEach(i=>{t({[`scrollbar-${i}`]:a=>({[`--scrollbar-${i}`]:ki(a)})},{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)})})}},O1={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 z1=Kn,{addBaseStyles:B1,addBaseSizeUtilities:I1,addColorUtilities:F1,addRoundedUtilities:A1,addSizeUtilities:R1}=P1,{addVariants:H1}=O1;var $i=z1.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"),B1(e,r),I1(e,r),F1(e),H1(e),t.nocompatible&&(A1(e),R1(e))});const Ei=yt($i),N1=Xt({__proto__:null,default:Ei},[$i]);var It={exports:{}};const Ct=Xn||la,j1={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:j1},G1={...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]},q1={prefix:"e-",dark:"class",corePlugins:{preflight:!1},content:["./src/**/*.{html,js,vue,ts}"],theme:{extend:{ringWidth:{1:"1px"},colors:G1,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||T1,Ei||N1({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=q1;const W1=(It.exports==null?{}:It.exports).default||It.exports,jr=oa(W1),Mi=jr.theme.fontSize,Li=jr.theme.colors,U1=[K.Dot,K.Xs,K.Sm,K.Md,K.Lg,K.Xl],Z1=[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],Y1=[K.Sm,K.Md,K.Lg],X1=[se.Warning,se.Error,se.Info,se.Success,se.Primary,se.Default],V1=[se.Warning,se.Error,se.Info,se.Success,se.Primary,se.Default],Q1=[Oe.Top,Oe.Bottom,Oe.Right,Oe.Left],K1=["play","pause","ended","loadeddata","waiting","playing","timeupdate","canplay","canplaythrough","statechanged"],J1=F.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 e0=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})])},t0=[],r0=H(J1,e0,t0,!1,null,null,null,null);const We=r0.exports,n0=F.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"]}`}}}}),Z7="";var i0=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"}})])},s0=[],a0=H(n0,i0,s0,!1,null,"9a1333ac",null,null);const Gr=a0.exports,o0=F.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}}}}),Y7="";var l0=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)},c0=[],u0=H(o0,l0,c0,!1,null,null,null,null);const qr=u0.exports,d0=F.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}}}),X7="";var h0=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-col",class:e.colClasses},[e._t("default")],2)},f0=[],p0=H(d0,h0,f0,!1,null,null,null,null);const Wr=p0.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 m0(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 g0(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 v0(t,e=0,r=0,n=t.naturalWidth,i=t.naturalHeight){const a=document.createElement("canvas"),o=a.getContext("2d");a.width=n,a.height=i,o==null||o.drawImage(t,e,r,n,i,0,0,n,i);const c=a.toDataURL();return a.remove(),c}function _0(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 y0(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,a)=>O.interpolate(t,e)(n(a)))}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(a=>Ai(a)):[0,Fi]}},{})}function C0(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[e,r.map(n=>{const[i,a]=n.split("-");let[o,c]=a.split(":");return o=parseInt(o),o=Math.max(0,o-1),`${i}-${o.toString().padStart(2,"0")}:${c}`})]))}const b0=F.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 a=0-r.width*(this.scale-1),o=0-r.height*(this.scale-1);this.left=Math.min(0,Math.max(a,this.left)),this.top=Math.min(0,Math.max(o,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 a=t.clientX,o=t.clientY,c=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail)),s=this.scale;this.scale+=c/10,this.updateZoomScale();const l=((a-i.left)/i.width).toFixed(2),d=((o-i.top)/i.height).toFixed(2);this.left=Math.round(a-n.left-Number(l)*(i.width*this.scale/s)),this.top=Math.round(o-n.top-Number(d)*(i.height*this.scale/s));const f=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>f&&(this.left=f),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,a,o,c]=[r.top-n.top,n.right-r.right,n.bottom-r.bottom,r.left-n.left].map(s=>s<0?s:0);this.left+=c-a,this.top+=i-o},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)}}}),V7="";var x0=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()])])},w0=[],S0=H(b0,x0,w0,!1,null,"06b5341b",null,null);const Kr=S0.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)}`},T0=F.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 a,o;if(!this.isHls)return;const e=this.$refs.player,r=(a=this.preloadedInterval)==null?void 0:a.start,n=(o=this.preloadedInterval)==null?void 0:o.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="",e=!1){var i,a,o,c,s;const r=this.$refs.player,n=this.sources[0];(i=this.player)!=null&&i.stopLoad&&this.player.stopLoad(),at.isSupported()&&(this.isLoading=!0,this.player=new at({startPosition:0,debug:e,xhrSetup:l=>{this.streamingToken&&l.setRequestHeader("Authorization",`Bearer ${this.streamingToken}`)},...this.hlsOptions}),this.player.enableDebug=()=>{this.player.destroy(),this.initHls(t,!0)},r._hls=this.player,(a=this.player)==null||a.loadSource(t||n.src),(o=this.player)==null||o.attachMedia(r),(c=this.player)==null||c.on(at.Events.MANIFEST_PARSED,(l,d)=>{var b;const f=(b=d.levels[d.firstLevel])==null?void 0:b.details,m=f==null?void 0:f.startTimeOffset;r.currentTime=m||0,this.playing&&r.play()}),(s=this.player)==null||s.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,a=this.$refs.player,o=()=>this.fallbackSrc&&(a==null?void 0:a.currentSrc)!==this.fallbackSrc,c=()=>this.initHls(this.fallbackSrc),s=()=>{if(o()){c();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),o()?c():this.player.startLoad();return}n&&(console.error("A media error occurred:",e),o()?c():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(),a=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=a*this.videoDuration,n.currentTime=a*this.videoDuration,this.wasPaused)return;const o=n.play();o!==void 0&&o.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}}}}),Q7="";var k0=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)},$0=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"timeline"},[e("div",{staticClass:"thumb-indicator"})])}],E0=H(T0,k0,$0,!1,null,"3cfb08b8",null,null);const Hi=E0.exports,Ve={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__)}},M0=(t,e)=>t===e||t.contains(e),L0=(t,e)=>r=>{M0(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:L0(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:Ve},{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 Qe({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():D0(t)}function D0(t){return ke.parseZone(t).utcOffset()}const P0=F.extend({name:"ETimelineMilestone",directives:{resizeObserver:Ve},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(),a=e.dataset.timeoutId;a&&(clearTimeout(Number(a)),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,a=setTimeout(()=>{e.classList.remove(me.milestoneHovered),e.dataset.timeoutId=""},i);e.dataset.timeoutId=String(a),this.timeouts.push(a),this.isMouseOver=!1},onMilestoneClick(t,e){this.$emit("milestone-click",e)},tzStringToDate(t){return Qe({timestamp:t,timezone:this.timezone})}}}),K7="";var O0=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)])},z0=[],B0=H(P0,O0,z0,!1,null,null,null,null);const I0=B0.exports,F0=F.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`}}}}),J7="";var A0=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)})])},R0=[],H0=H(F0,A0,R0,!1,null,"614947ed",null,null);const N0=H0.exports,j0=F.extend({name:"ETimelineMarkers",components:{ETimelineMarker:N0},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 c;if(!t.isDraggable)return;(c=r.sourceEvent)==null||c.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 a=this.timeScale(i);const o=this.isTimestampAllowedForMarker(i,t);if(r.type==="drag"&&o&&e.attr("style",`left: ${a}px`),r.type==="end"){const s=t.id||t.timestamp;a=o?a:this.timeScale(this.tzStringToDate(t.timestamp)),this.markersPositions={...this.markersPositions,[s]:{...this.markersPositions[s],position:a}},e.classed(me.markerDragged,!1)}r.type!=="start"&&this.$emit(`marker-drag-${r.type}`,{marker:t,newTimestamp:o?this.dateToTzString(i):t.timestamp})},updateMarkers(){if(!this.markers.length)return;const t=12,e=200;this.markers.forEach((r,n,i)=>{const a=typeof r.timestamp=="string"?this.tzStringToDate(r.timestamp):r.timestamp,o=this.timeScale(a);let c=!1;const s=this.stickyMarkers?Math.max(o,n*t):o;if(n<i.length-1){const l=i[n+1],d=typeof l.timestamp=="string"?this.tzStringToDate(l.timestamp):l.timestamp,f=this.timeScale(d);c=(this.stickyMarkers?Math.max(f,(n+1)*t):o)-s<e+t}this.markersPositions={...this.markersPositions,[r.id]:{isHidden:c,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 Qe({timestamp:t,timezone:this.timeZone})},dateToTzString(t){return Ft({date:t,timezone:this.timeZone})}}});var G0=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-tl-markers"},e._l(e.markers,function(n){var i,a;return r("ETimelineMarker",{key:n.id,attrs:{marker:n,height:e.height,position:(i=e.markersPositions[n.id])==null?void 0:i.position,hidden:(a=e.markersPositions[n.id])==null?void 0:a.isHidden,"data-id":n.id},on:{"marker-clicked":function(o){return e.$emit("marker-clicked",o)}},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)},q0=[],W0=H(j0,G0,q0,!1,null,null,null,null);const U0=W0.exports,Z0=F.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(),a=[(this.focusedEndDate.getTime()-this.focusedStartDate.getTime())/r,1/0],o=this.initialTimeScale.copy();o.domain(t);const c=o(this.minDate),s=-(e-o(this.maxDate));return{scaleExtent:a,translateExtent:[[c||-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,a=n>=this.maxDate;if(i||a){const c=O.zoomIdentity.translate(this.lastTransform.x,this.lastTransform.y).scale(this.lastTransform.k);this.selection.call(this.zoomBehavior.transform,c),this.updateBoundaries(i,a);return}const o=t.transform.k/this.lastTransform.k;this.transformDiff={scale:o,translation:t.transform.x-this.lastTransform.x},this.lastTransform={...t.transform},this.timeScale=t.transform.rescaleX(this.timeScale).domain([r,n])},toD3Date(t){return Qe({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[a,o]=this.timeScale.domain();if(n.getTime()===a.getTime()&&i.getTime()===o.getTime())return;const c=this.initialTimeScale.domain().map(h=>h.getTime()),s=c[1]-c[0],l=i.getTime()-n.getTime(),d=.1*l,f=l+2*d;let m=s/f;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),a=(n+i)/2,c=this.getWidth()/2-a,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+c,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),a=this.toDateString(n);this.$emit("visible-interval-change",{fromDate:i,toDate:a,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}}}),ed="";var Y0=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)},X0=[],V0=H(Z0,Y0,X0,!1,null,null,null,null);const Q0=V0.exports,K0=F.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()}}}),td="";var J0=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})`}})},el=[],tl=H(K0,J0,el,!1,null,null,null,null);const rn=tl.exports,At=t=>{const e=O.utcFormat("%_d")(t),r=rl(parseInt(e));return`${e}${r}`},qi=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),Wi=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)},rl=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:Wi},{precision:J._1_minute,interval:O.utcMinute.every(5),format:Wi},{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:(Cs=O.utcSecond.every(20))==null?void 0:Cs.filter(Ui(2)),format:nn},{precision:J._30_seconds,interval:(bs=O.utcSecond.every(30))==null?void 0:bs.filter(Ui(2)),format:nn},{precision:J._1_minute,interval:O.utcMinute.filter(on(5)),format:st},{precision:J._2_minutes,interval:(xs=O.utcMinute.every(2))==null?void 0:xs.filter(on(10)),format:st},{precision:J._5_minutes,interval:(ws=O.utcMinute.every(5))==null?void 0:ws.filter(on(20)),format:st},{precision:J._15_minutes,interval:(Ss=O.utcMinute.every(15))==null?void 0:Ss.filter(xt(1)),format:st},{precision:J._30_minutes,interval:(Ts=O.utcMinute.every(30))==null?void 0:Ts.filter(xt(2)),format:st},{precision:J._1_hour,interval:O.utcHour.filter(xt(6)),format:bt},{precision:J._2_hours,interval:(ks=O.utcHour.every(2))==null?void 0:ks.filter(xt(6)),format:bt},{precision:J._3_hours,interval:($s=O.utcHour.every(3))==null?void 0:$s.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:qi},{precision:J._2_days,interval:O.utcDay.every(2),format:qi},{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:""}]},nl=F.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]}}}),rd="";var il=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}})},sl=[],al=H(nl,il,sl,!1,null,null,null,null);const ol=al.exports,ll=F.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]}}}),nd="";var cl=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}})},ul=[],dl=H(ll,cl,ul,!1,null,null,null,null);const hl=dl.exports,fl=F.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]}}}),id="";var pl=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}})},ml=[],gl=H(fl,pl,ml,!1,null,null,null,null);const vl=gl.exports,_l=F.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 yl=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:a,stop:o,opacity:c}){return r("linearGradient",{key:`${a}-${i}-${n.chartType}`,attrs:{id:`${a}-${i}-${n.chartType}`,x1:"0%",x2:"0%",y1:"0%",y2:"100%"}},[r("stop",{attrs:{offset:"0%","stop-color":n.color,"stop-opacity":c}}),r("stop",{attrs:{offset:`${o}%`,"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:a,opacity:o}){return r("linearGradient",{key:`${a}-${i}-${n.chartType}`,attrs:{id:`${a}-${i}-${n.chartType}`,width:"100%",height:"100%"}},[r("stop",{attrs:{"stop-color":n.color,"stop-opacity":o}})],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)},Cl=[],bl=H(_l,yl,Cl,!1,null,null,null,null);const xl=bl.exports,wl=F.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 Qe({timestamp:t,timezone:this.timezone})}}});var Sl=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})`}})},Tl=[],kl=H(wl,Sl,Tl,!1,null,null,null,null);const $l=kl.exports,El=F.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 Qe({timestamp:t,timezone:this.timezone})}}});var Ml=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`}})},Ll=[],Dl=H(El,Ml,Ll,!1,null,null,null,null);const Zi=Dl.exports,Pl=F.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 Ol=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}})},zl=[],Bl=H(Pl,Ol,zl,!1,null,null,null,null);const Il=Bl.exports,Fl=F.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 Al=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}})},Rl=[],Hl=H(Fl,Al,Rl,!1,null,null,null,null);const Nl=Hl.exports,jl=F.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 Qe({timestamp:t,timezone:this.timezone})},dateToTzString(t){return Ft({date:t,timezone:this.timezone})}}});var Gl=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)},ql=[],Wl=H(jl,Gl,ql,!1,null,null,null,null);const Ul=Wl.exports,Zl=F.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})`}}}),sd="";var Yl=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()])},Xl=[],Vl=H(Zl,Yl,Xl,!1,null,null,null,null);const cn=Vl.exports,Ql=F.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 Kl=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)},Jl=[],e5=H(Ql,Kl,Jl,!1,null,null,null,null);const t5=e5.exports,r5=F.extend({name:"ETimelineRectsChart",directives:{},components:{ETimelineGroupContainer:cn,ETimelineRectsChartGroupedDots:t5},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),a=n+(i-n)/2,o=e.length>1,c=a;return o?r={...r,textContent:`${e.length}`,textX:a-this.dotsSize/2-`${e.length}`.length*2,textY:this.yPosition-this.dotsSize/2}:r={...r,textX:r.textX-this.textPadding},{...e[0],x:c,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 a=t[i-1],o=this.getEventRectX(n,this.timeScale),c=this.getEventRectX(a,this.timeScale),s=this.getEventRectWidth(a,this.timeScale,this.rectMinWidth);c+s+this.groupingThreshold>=o?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 a=(this.getEventRectWidth(t,this.timeScale,this.rectMinWidth)-e)/r;return a<Math.min(n==null?void 0:n.length,4)?"":(n==null?void 0:n.length)<=a?n:`${n.slice(0,a-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),a=e(i)-e(n);return Math.max(a,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 Qe({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()}}}),ad="";var n5=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(a){return e.onMouseOver(a,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(a){return e.onGroupedEventsMouseOver(a,n.groupedEvents,e.groupId)},mouseleave:function(a){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)},i5=[],s5=H(r5,n5,i5,!1,null,null,null,null);const a5=s5.exports,o5=F.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 a=i===0?1:i,o=new Date((s=this.eventsGroup.events[a+1])==null?void 0:s.timestamp),c=new Date((l=this.eventsGroup.events[a-1])==null?void 0:l.timestamp);return o>=t&&o<=e||c>=t&&c<=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 Qe({timestamp:t,timezone:this.timezone})}}}),od="";var l5=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(a){return e.$emit("event-mouseover",a,n,e.groupId)},mouseleave:function(a){return e.$emit("event-mouseout")}}})])})],2)])},c5=[],u5=H(o5,l5,c5,!1,null,null,null,null);const d5=u5.exports,h5=F.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 a=i===0?1:i,o=new Date((s=this.eventsGroup.events[a+1])==null?void 0:s.endDate),c=new Date((l=this.eventsGroup.events[a-1])==null?void 0:l.startDate);return o>=t&&o<=e||c>=t&&c<=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,a=this.yScale(i+t.count);return{x:n,y:a,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 Qe({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)}}}}),ld="";var f5=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(a){return e.$emit("event-mouseout")},mouseover:function(a){return e.$emit("event-mouseover",a,n,e.groupId)},click:function(a){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)])},p5=[],m5=H(h5,f5,p5,!1,null,null,null,null);const g5=m5.exports,v5=F.extend({name:"ETimeline",directives:{resizeObserver:Ve},components:{ETimelineSVGDefs:xl,EXAxisBackground:vl,EXAxisDetailed:hl,EXAxisOverview:ol,ETimelineMilestone:I0,ETimelineMarkers:U0,ETimelineCursor:Il,ETimelineSelectedTimestampCursor:Nl,EZoomBehavior:Q0,ECursorBehavior:Ul,ETimelineRectsChart:a5,ETimelineForbiddenInterval:$l,ETimelineLinesChart:d5,ETimelineBarsChart:g5},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=a=>{const o=new Date(a.startDate||a.timestamp),c=new Date(a.endDate||a.timestamp),s=new Date(this.visibleFrom),l=new Date(this.visibleTo);return c>=s&&c<=l||o>=s&&o<=l},e=this.flattenedBarsCounts.filter(t),r=this.flattenedLinesCounts.filter(t).map(a=>a.count),n={};e.forEach(a=>{const o=a.startDate||a.timestamp;n[o]=(n[o]||0)+a.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),a=new Date(e+n);return[i.toISOString(),a.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 a=i.timestamp||i.startDate;e[a]={...e[a]||{},[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 a=i.startDate||i.timestamp;n[a]=(n[a]||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(a=>new Date(a.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(a=>{const o=isNaN(new Date(a.startDate).getTime())?-1/0:new Date(a.startDate).getTime(),c=isNaN(new Date(a.endDate).getTime())?1/0:new Date(a.endDate).getTime();return e>=o&&e<=c});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 c;const[a,o]=i;return(c=this.hiddenGroupsLabels)!=null&&c.includes(a)?n:[...n,{type:a,count:o,label:this.getExternalLabelText(a)}]},[]),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 Qe({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=a=>a.clone().add(1,e),n=a=>a.clone().subtract(1,e);let i=[];for(let a=0;a<t.length;a++){const o=t[a];if(i.push(o),a===t.length-1)break;const c=t[a+1],s=ke(o.timestamp),l=ke(c.timestamp);if(l.diff(s,e)>1){const d=r(s).toISOString(),f=n(l).toISOString();i.push({timestamp:d,count:0}),d!==f&&i.push({timestamp:f,count:0})}}if(this.flattenLineGraphEnds){const a=ke(t[0].timestamp),o=ke(t[t.length-1].timestamp),c=n(a).toISOString(),s=r(o).toISOString();i=[{timestamp:c,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}))}}}),cd="";var _5=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:a}){var o;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(c){return e.$emit("marker-drag-end",c)},"marker-drag-start":function(c){return e.$emit("marker-drag-start",c)},"marker-drag-drag":function(c){return e.$emit("marker-drag-drag",c)}},scopedSlots:e._u([e._l(e.markersScopedSlots,function(c,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&&a&&!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(c,s){return r("ETimelineForbiddenInterval",{key:s,attrs:{"time-scale":n,interval:c,index:s,height:e.timelineHeight,timezone:e.timezone}})}),e._l(e.barGroups,function(c,s){return r("ETimelineRectsChart",{key:s,attrs:{"time-scale":n,"events-group":c,"group-id":s,y:e.getBarGroupYPosition(s,c.bottom),height:e.barHeight,width:e.width,"rect-y-padding":e.barYPadding,dark:e.dark,"show-label":e.showLabels,timezone:e.timezone,dots:c.chartType===e.TimelineChartType.Dots,"dots-size":c.dotsSize,"bar-border-radius":c.barBorderRadius,"group-overlapping-dots":c.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(c,s){return r("ETimelineRectsChart",{key:s,attrs:{width:e.width,y:e.getMilestoneGroupYPosition(s),height:c.height,"group-id":s,"events-group":c,"time-scale":n,dark:e.dark,dots:!0,"show-label":!1}})}),e._l(e.insertZerosAtInterval?e.filledGapsLineGraphGroups:e.lineGraphGroups,function(c,s){return r("ETimelineLinesChart",{key:s,attrs:{"group-id":s,"time-scale":n,"events-group":c,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(c,s,l){return r("ETimelineBarsChart",{key:s,attrs:{"group-id":s,width:e.width,y:e.getChartsYPosition(s),height:e.chartHeight,"events-group":c,"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(c,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(c.events),function(l,d){return r("ETimelineMilestone",{key:`${l.milestoneType}-${d}`,class:e.getMilestoneClass(l),attrs:{"time-scale":n,y:e.getMilestoneGroupYPosition(s),height:c.height||e.barHeight,"data-timestamp":l.timestamp,milestone:l,dot:c.dots,size:l.size||e.milestoneBulletSize,"transition-duration":c.milestonesTransitionDuration,"line-height":c.milestonesLineHeight,"dot-size":c.milestonesDotSize,"data-test-id":`milestone-${l.milestoneType}-${d}`,"background-color":e.getMilestoneColors(l.color,c.color).background,"border-color":e.getMilestoneColors(l.color,c.color).border,timezone:e.timezone},on:{"hovered-milestone":e.onHoverMilestone,"milestone-click":function(f){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(c){return r("div",{key:c,staticClass:"external-label",class:e.computedClasses.background,style:e.getExternalLabelWrapperStyles(c),on:{click:function(s){return s.stopPropagation(),e.toggleGroupVisibility(c)}}},[r("div",{staticClass:"external-label__content",style:e.getExternalLabelStyles(c)},[e._v(" "+e._s(e.getExternalLabelText(c))+" ")])])}),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:a&&!e.isHoveringEvent&&!e.isHoveringMilestone,expression:`
4
4
  isHoveringTimeline &&
5
5
  !isHoveringEvent &&
6
6
  !isHoveringMilestone